From 262e025979bcea4230476c49ad40a8c2f257f1f7 Mon Sep 17 00:00:00 2001 From: zhoupeng Date: Mon, 8 May 2017 17:59:46 +0800 Subject: [PATCH 1/5] webpack and bower --- .gitignore | 3 +- bower.json | 30 + dist/restructured.js | 12568 +++++++++++++++++++++++++++++++++++++ dist/restructured.min.js | 1 + package.json | 8 +- webpack.config.dev.js | 35 + webpack.config.pro.js | 54 + yarn.lock | 3555 +++++++++++ 8 files changed, 16251 insertions(+), 3 deletions(-) create mode 100644 bower.json create mode 100644 dist/restructured.js create mode 100644 dist/restructured.min.js create mode 100644 webpack.config.dev.js create mode 100644 webpack.config.pro.js create mode 100644 yarn.lock diff --git a/.gitignore b/.gitignore index ddc2a96..9ce4499 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,8 @@ *.pegjs # Parser.js is generated from PEG.js src/Parser.js - +.DS_Store +bower_components/ # Emacs *~ \#* diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..be0c7f3 --- /dev/null +++ b/bower.json @@ -0,0 +1,30 @@ +{ + "name": "restructured", + "description": "A reStructuredText parser for JavaScript", + "main": [ + "dist/restructured.js" + ], + "authors": [ + "seikichi" + ], + "license": { + "type": "MIT", + "url": "http://seikichi.mit-license.org/" + }, + "keywords": [ + "reST", + "reStructuredText", + "rst" + ], + "homepage": "https://github.com/bung87/restructured", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "dependencies": { + "lodash": "^4.17.4" + } +} diff --git a/dist/restructured.js b/dist/restructured.js new file mode 100644 index 0000000..25caf7f --- /dev/null +++ b/dist/restructured.js @@ -0,0 +1,12568 @@ +(function webpackUniversalModuleDefinition(root, factory) { + if(typeof exports === 'object' && typeof module === 'object') + module.exports = factory(require("lodash")); + else if(typeof define === 'function' && define.amd) + define(["lodash"], factory); + else { + var a = typeof exports === 'object' ? factory(require("lodash")) : factory(root["_"]); + for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; + } +})(this, function(__WEBPACK_EXTERNAL_MODULE_0__) { +return /******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 9); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ (function(module, exports) { + +module.exports = __WEBPACK_EXTERNAL_MODULE_0__; + +/***/ }), +/* 1 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); + +var _lodash = __webpack_require__(0); + +var _lodash2 = _interopRequireDefault(_lodash); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var PunctuationOpeners = '"\'(<\\[{\u0F3A\u0F3C\u169B\u2045\u207D\u208D\u2329\u2768' + '\u276A\u276C\u276E\u2770\u2772\u2774\u27C5\u27E6\u27E8\u27EA' + '\u27EC\u27EE\u2983\u2985\u2987\u2989\u298B\u298D\u298F\u2991' + '\u2993\u2995\u2997\u29D8\u29DA\u29FC\u2E22\u2E24\u2E26\u2E28' + '\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u3018\u301A\u301D' + '\u301D\uFD3E\uFE17\uFE35\uFE37\uFE39\uFE3B\uFE3D\uFE3F\uFE41' + '\uFE43\uFE47\uFE59\uFE5B\uFE5D\uFF08\uFF3B\uFF5B\uFF5F\uFF62' + '\xAB\u2018\u201C\u2039\u2E02\u2E04\u2E09\u2E0C\u2E1C\u2E20' + '\u201A\u201E\xBB\u2019\u201D\u203A\u2E03\u2E05\u2E0A\u2E0D' + '\u2E1D\u2E21\u201B\u201F'; + +var PunctuationClosers = '"\')>\\]}\u0F3B\u0F3D\u169C\u2046\u207E\u208E\u232A\u2769' + '\u276B\u276D\u276F\u2771\u2773\u2775\u27C6\u27E7\u27E9\u27EB' + '\u27ED\u27EF\u2984\u2986\u2988\u298A\u298C\u298E\u2990\u2992' + '\u2994\u2996\u2998\u29D9\u29DB\u29FD\u2E23\u2E25\u2E27\u2E29' + '\u3009\u300B\u300D\u300F\u3011\u3015\u3017\u3019\u301B\u301E' + '\u301F\uFD3F\uFE18\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42' + '\uFE44\uFE48\uFE5A\uFE5C\uFE5E\uFF09\uFF3D\uFF5D\uFF60\uFF63' + '\xBB\u2019\u201D\u203A\u2E03\u2E05\u2E0A\u2E0D\u2E1D\u2E21' + '\u201B\u201F\xAB\u2018\u201C\u2039\u2E02\u2E04\u2E09\u2E0C' + '\u2E1C\u2E20\u201A\u201E'; + +var PunctuationOpenerToCloser = {}; +var PunctuationCloserToOpener = {}; + +for (var i = 0; i < PunctuationOpeners.length; i++) { + var opener = PunctuationOpeners[i]; + var closer = PunctuationClosers[i]; + PunctuationOpenerToCloser[opener] = closer; + PunctuationOpenerToCloser[closer] = opener; +} + +var PunctuationDelimiters = '\\-/:\u058A\xA1\xB7\xBF\u037E\u0387\u055A-\u055F\u0589' + '\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C' + '\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D' + '\u07F7-\u07F9\u0830-\u083E\u0964\u0965\u0970\u0DF4\u0E4F' + '\u0E5A\u0E5B\u0F04-\u0F12\u0F85\u0FD0-\u0FD4\u104A-\u104F' + '\u10FB\u1361-\u1368\u1400\u166D\u166E\u16EB-\u16ED\u1735' + '\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945' + '\u19DE\u19DF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-' + '\u1B60\u1C3B-\u1C3F\u1C7E\u1C7F\u1CD3\u2010-\u2017\u2020-' + '\u2027\u2030-\u2038\u203B-\u203E\u2041-\u2043\u2047-' + '\u2051\u2053\u2055-\u205E\u2CF9-\u2CFC\u2CFE\u2CFF\u2E00' + '\u2E01\u2E06-\u2E08\u2E0B\u2E0E-\u2E1B\u2E1E\u2E1F\u2E2A-' + '\u2E2E\u2E30\u2E31\u3001-\u3003\u301C\u3030\u303D\u30A0' + '\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7' + '\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F' + '\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uABEB' + '\uFE10-\uFE16\uFE19\uFE30-\uFE32\uFE45\uFE46\uFE49-\uFE4C' + '\uFE50-\uFE52\uFE54-\uFE58\uFE5F-\uFE61\uFE63\uFE68\uFE6A' + '\uFE6B\uFF01-\uFF03\uFF05-\uFF07\uFF0A\uFF0C-\uFF0F\uFF1A' + '\uFF1B\uFF1F\uFF20\uFF3C\uFF61\uFF64\uFF65'; + +var PunctuationDelimiterSet = {}; +for (var _i = 0; _i < PunctuationOpeners.length; _i++) { + PunctuationDelimiterSet[PunctuationDelimiters[_i]] = true; +} + +var PunctuationClosingDelimiters = '\\\\.,;!?'; + +var PunctuationQuotePairs = { + '\xbb': '\xbb', + '\u2018': '\u201A', + '\u2019': '\u2019', + '\u201A': '\u2018\u2019', + '\u201C': '\u201E', + '\u201E': '\u201C\u201D', + '\u201D': '\u201D', + '\u203A': '\u203A' +}; + +var PunctuationStartStringPrefix = new RegExp('\\s|[' + PunctuationOpeners + PunctuationDelimiters + ']'); + +var PunctuationEndStringSuffix = new RegExp('\\s|[' + PunctuationClosingDelimiters + ('' + PunctuationDelimiters + PunctuationClosers + ']')); + +var ParserUtil = { + calcIndentSize: function calcIndentSize(str) { + var tabStop = 8; + return _lodash2.default.reduce(str, function (total, c) { + if (c === '\t') { + return total + tabStop - (total + tabStop) % tabStop; + } + return total + 1; + }, 0); + }, + isPunctuationOpener: function isPunctuationOpener(c) { + return c in PunctuationOpenerToCloser; + }, + isPunctuationCloser: function isPunctuationCloser(c) { + return c in PunctuationCloserToOpener; + }, + isPunctuationDelimiter: function isPunctuationDelimiter(c) { + return c in PunctuationDelimiterSet; + }, + isMatchPunctuations: function isMatchPunctuations(c1, c2) { + return PunctuationOpenerToCloser[c1] === c2 || c1 in PunctuationQuotePairs && PunctuationQuotePairs[c1].indexOf(c2) !== -1; + }, + isInlineMarkupPrefix: function isInlineMarkupPrefix(c) { + return PunctuationStartStringPrefix.test(c); + }, + isInlineMarkupSuffix: function isInlineMarkupSuffix(c) { + return PunctuationEndStringSuffix.test(c); + }, + isUpperRomanNumber: function isUpperRomanNumber(s) { + return (/^M{0,3}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$/.test(s) + ); + }, + isLowerRomanNumber: function isLowerRomanNumber(s) { + return (/^m{0,3}(cm|cd|d?c{0,3})(xc|xl|l?x{0,3})(ix|iv|v?i{0,3})$/.test(s) + ); + }, + romanToNumber: function romanToNumber(s) { + var values = [['M', 1000], ['CM', 900], ['D', 500], ['CD', 400], ['C', 100], ['XC', 90], ['L', 50], ['XL', 40], ['X', 10], ['IX', 9], ['V', 5], ['IV', 4], ['I', 1]]; + var result = 0; + var str = s; + + for (var _i2 = 0; _i2 < values.length; _i2++) { + var _values$_i = _slicedToArray(values[_i2], 2), + key = _values$_i[0], + value = _values$_i[1]; + + var regex = new RegExp('^' + key); + while (str.match(regex)) { + result += value; + str = str.replace(regex, ''); + } + } + return result; + }, + numberToRoman: function numberToRoman(d) { + var values = [['M', 1000], ['CM', 900], ['D', 500], ['CD', 400], ['C', 100], ['XC', 90], ['L', 50], ['XL', 40], ['X', 10], ['IX', 9], ['V', 5], ['IV', 4], ['I', 1]]; + var rest = d; + var result = ''; + for (var _i3 = 0; _i3 < values.length; _i3++) { + var _values$_i2 = _slicedToArray(values[_i3], 2), + key = _values$_i2[0], + value = _values$_i2[1]; + + while (rest >= value) { + result += key; + rest -= value; + } + } + return result; + } +}; + +exports.default = ParserUtil; + +/***/ }), +/* 2 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _lodash = __webpack_require__(0); + +var _lodash2 = _interopRequireDefault(_lodash); + +var _unistUtilMap = __webpack_require__(8); + +var _unistUtilMap2 = _interopRequireDefault(_unistUtilMap); + +var _Parser = __webpack_require__(5); + +var _Parser2 = _interopRequireDefault(_Parser); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var RST = { + parse: function parse(s) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + var tree = _Parser2.default.parse(s); + + return (0, _unistUtilMap2.default)(tree, function (node) { + var omits = []; + if (!options.position) { + omits.push('position'); + } + if (!options.blanklines) { + omits.push('blanklines'); + } + if (!options.indent) { + omits.push('indent'); + } + return _lodash2.default.omit(node, omits); + }); + } +}; + +exports.default = RST; + +/***/ }), +/* 3 */ +/***/ (function(module, exports) { + +throw new Error("Module parse failed: /Users/bung/js_works/restructured/node_modules/webpack/bin/webpack.js Unexpected character '#' (1:0)\nYou may need an appropriate loader to handle this file type.\n| #!/usr/bin/env node\n| \n| /*"); + +/***/ }), +/* 4 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _lodash = __webpack_require__(0); + +var _lodash2 = _interopRequireDefault(_lodash); + +var _Type = __webpack_require__(6); + +var _Type2 = _interopRequireDefault(_Type); + +var _ParserUtil = __webpack_require__(1); + +var _ParserUtil2 = _interopRequireDefault(_ParserUtil); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +var Elements = {}; + +function capitalize(str) { + return str.charAt(0).toUpperCase() + str.slice(1); +} + +_lodash2.default.forEach(_Type2.default.valueTypes, function (type, name) { + Elements[capitalize(name)] = function () { + function _class(_ref) { + var value = _ref.value, + position = _ref.position; + + _classCallCheck(this, _class); + + this.type = type; + this.value = value; + this.position = position; + } + + return _class; + }(); +}); + +_lodash2.default.forEach(_Type2.default.parentTypes, function (type, name) { + Elements[capitalize(name)] = function () { + function _class2(_ref2) { + var _ref2$children = _ref2.children, + children = _ref2$children === undefined ? [] : _ref2$children, + position = _ref2.position, + _ref2$blanklines = _ref2.blanklines, + blanklines = _ref2$blanklines === undefined ? [] : _ref2$blanklines, + _ref2$bullet = _ref2.bullet, + bullet = _ref2$bullet === undefined ? null : _ref2$bullet, + _ref2$depth = _ref2.depth, + depth = _ref2$depth === undefined ? null : _ref2$depth, + _ref2$role = _ref2.role, + role = _ref2$role === undefined ? null : _ref2$role, + _ref2$indent = _ref2.indent, + indent = _ref2$indent === undefined ? null : _ref2$indent, + _ref2$directive = _ref2.directive, + directive = _ref2$directive === undefined ? null : _ref2$directive; + + _classCallCheck(this, _class2); + + this.type = type; + + if (type === 'bullet_list') { + this.bullet = bullet; + } + if (type === 'interpreted_text') { + this.role = role; + } + if (type === 'section') { + this.depth = depth; + } + if (type === 'directive') { + this.directive = directive; + } + + this.position = position; + if (indent) { + this.indent = indent; + } + this.blanklines = blanklines || []; + this.children = children; + } + + return _class2; + }(); +}); + +Elements.EnumeratorSequence = function () { + function _class3(_ref3) { + var type = _ref3.type, + value = _ref3.value; + + _classCallCheck(this, _class3); + + this.type = type; + this.value = value; + } + + _createClass(_class3, [{ + key: 'width', + value: function width() { + return this.value.length; + } + }, { + key: 'isAuto', + value: function isAuto() { + return this.type === 'auto'; + } + }, { + key: 'isArabicNumerals', + value: function isArabicNumerals() { + return this.type === 'arabic_numerals'; + } + }, { + key: 'isUppercaseAlphabet', + value: function isUppercaseAlphabet() { + return this.type === 'uppercase_alphabet'; + } + }, { + key: 'isLowercaseAlphabet', + value: function isLowercaseAlphabet() { + return this.type === 'lowercase_alphabet'; + } + }, { + key: 'isUppercaseRoman', + value: function isUppercaseRoman() { + return this.type === 'uppercase_roman'; + } + }, { + key: 'isLowercaseRoman', + value: function isLowercaseRoman() { + return this.type === 'lowercase_roman'; + } + }]); + + return _class3; +}(); + +Elements.Enumerator = function () { + function _class4(_ref4) { + var sequence = _ref4.sequence, + format = _ref4.format; + + _classCallCheck(this, _class4); + + this.sequence = sequence; + this.format = format; + } + + _createClass(_class4, [{ + key: 'width', + value: function width() { + if (this.format === 'parentheses') { + return this.sequence.width() + 2; + } + return this.sequence.width() + 1; + } + }, { + key: 'isPeriodFormat', + value: function isPeriodFormat() { + return this.format === 'period'; + } + }, { + key: 'isParenthesesFormat', + value: function isParenthesesFormat() { + return this.format === 'parentheses'; + } + }, { + key: 'isRightParenthesisFormat', + value: function isRightParenthesisFormat() { + return this.format === 'right_parenthesis'; + } + }, { + key: 'isNext', + value: function isNext(e) { + if (this.format !== e.format) { + return false; + } else if (e.sequence.isAuto()) { + return true; + } else if (this.sequence.type !== e.sequence.type) { + return false; + } else if (this.sequence.isArabicNumerals()) { + return parseInt(this.sequence.value, 10) + 1 === parseInt(e.sequence.value, 10); + } else if (this.sequence.isUppercaseAlphabet() || this.sequence.isLowercaseAlphabet()) { + return this.sequence.value.charCodeAt(0) + 1 === e.sequence.value.charCodeAt(0); + } else if (this.sequence.isUppercaseRoman() || this.sequence.isLowercaseRoman()) { + return _ParserUtil2.default.romanToNumber(this.sequence.value.toUpperCase()) + 1 === _ParserUtil2.default.romanToNumber(e.sequence.value.toUpperCase()); + } + return true; // auto + } + }, { + key: 'isFirst', + value: function isFirst() { + if (this.sequence.isUppercaseRoman() || this.sequence.isLowercaseRoman()) { + var value = this.sequence.value; + return value === 'i' || value === 'I' || value.length === 2; + } + return true; + } + }]); + + return _class4; +}(); + +exports.default = Elements; + +/***/ }), +/* 5 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* + * Generated by PEG.js 0.10.0. + * + * http://pegjs.org/ + */ + + + +function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + +function peg$subclass(child, parent) { + function ctor() { + this.constructor = child; + } + ctor.prototype = parent.prototype; + child.prototype = new ctor(); +} + +function peg$SyntaxError(message, expected, found, location) { + this.message = message; + this.expected = expected; + this.found = found; + this.location = location; + this.name = "SyntaxError"; + + if (typeof Error.captureStackTrace === "function") { + Error.captureStackTrace(this, peg$SyntaxError); + } +} + +peg$subclass(peg$SyntaxError, Error); + +peg$SyntaxError.buildMessage = function (expected, found) { + var DESCRIBE_EXPECTATION_FNS = { + literal: function literal(expectation) { + return "\"" + literalEscape(expectation.text) + "\""; + }, + + "class": function _class(expectation) { + var escapedParts = "", + i; + + for (i = 0; i < expectation.parts.length; i++) { + escapedParts += expectation.parts[i] instanceof Array ? classEscape(expectation.parts[i][0]) + "-" + classEscape(expectation.parts[i][1]) : classEscape(expectation.parts[i]); + } + + return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]"; + }, + + any: function any(expectation) { + return "any character"; + }, + + end: function end(expectation) { + return "end of input"; + }, + + other: function other(expectation) { + return expectation.description; + } + }; + + function hex(ch) { + return ch.charCodeAt(0).toString(16).toUpperCase(); + } + + function literalEscape(s) { + return s.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\0/g, '\\0').replace(/\t/g, '\\t').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/[\x00-\x0F]/g, function (ch) { + return '\\x0' + hex(ch); + }).replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) { + return '\\x' + hex(ch); + }); + } + + function classEscape(s) { + return s.replace(/\\/g, '\\\\').replace(/\]/g, '\\]').replace(/\^/g, '\\^').replace(/-/g, '\\-').replace(/\0/g, '\\0').replace(/\t/g, '\\t').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/[\x00-\x0F]/g, function (ch) { + return '\\x0' + hex(ch); + }).replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) { + return '\\x' + hex(ch); + }); + } + + function describeExpectation(expectation) { + return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation); + } + + function describeExpected(expected) { + var descriptions = new Array(expected.length), + i, + j; + + for (i = 0; i < expected.length; i++) { + descriptions[i] = describeExpectation(expected[i]); + } + + descriptions.sort(); + + if (descriptions.length > 0) { + for (i = 1, j = 1; i < descriptions.length; i++) { + if (descriptions[i - 1] !== descriptions[i]) { + descriptions[j] = descriptions[i]; + j++; + } + } + descriptions.length = j; + } + + switch (descriptions.length) { + case 1: + return descriptions[0]; + + case 2: + return descriptions[0] + " or " + descriptions[1]; + + default: + return descriptions.slice(0, -1).join(", ") + ", or " + descriptions[descriptions.length - 1]; + } + } + + function describeFound(found) { + return found ? "\"" + literalEscape(found) + "\"" : "end of input"; + } + + return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found."; +}; + +function peg$parse(input, options) { + options = options !== void 0 ? options : {}; + + var peg$FAILED = {}, + peg$startRuleFunctions = { Document: peg$parseDocument }, + peg$startRuleFunction = peg$parseDocument, + peg$c0 = /^[A-Za-z0-9]/, + peg$c1 = peg$classExpectation([["A", "Z"], ["a", "z"], ["0", "9"]], false, false), + peg$c2 = peg$anyExpectation(), + peg$c3 = "\n", + peg$c4 = peg$literalExpectation("\n", false), + peg$c5 = "\r", + peg$c6 = peg$literalExpectation("\r", false), + peg$c7 = function peg$c7(last) { + return last[0] + (last[1] || ''); + }, + peg$c8 = " ", + peg$c9 = peg$literalExpectation(" ", false), + peg$c10 = "\x0B", + peg$c11 = peg$literalExpectation("\x0B", false), + peg$c12 = "\f", + peg$c13 = peg$literalExpectation("\f", false), + peg$c14 = "\t", + peg$c15 = peg$literalExpectation("\t", false), + peg$c16 = function peg$c16(c) { + return c[1]; + }, + peg$c17 = function peg$c17(lines, last) { + var ret = _.map(lines, function (line) { + return line[0].join('') + (line[1] || ''); + }); + return ret.concat(last[0].join('') + (last[1] || '')); + }, + peg$c18 = function peg$c18(raw) { + return { raw: _.map(raw, function (v) { + return v[1]; + }).join('') }; + }, + peg$c19 = function peg$c19(line) { + return new Elements.UnknownLine({ value: line.raw }); + }, + peg$c20 = function peg$c20(i) { + return ParserUtil.calcIndentSize(i) < currentIndentSize; + }, + peg$c21 = function peg$c21(i) { + var ignore = indentIgnoreLine === location().start.line; + return ignore || ParserUtil.calcIndentSize(i) === currentIndentSize; + }, + peg$c22 = function peg$c22(i) { + return i.join(''); + }, + peg$c23 = function peg$c23(i) { + return ParserUtil.calcIndentSize(i) > currentIndentSize; + }, + peg$c24 = function peg$c24(i) { + return i.join(''); + }, + peg$c25 = function peg$c25(i) { + return ParserUtil.calcIndentSize(i) < currentIndentSize; + }, + peg$c26 = function peg$c26(i) { + return ParserUtil.calcIndentSize(i) >= currentIndentSize; + }, + peg$c27 = function peg$c27() { + return false; + }, + peg$c28 = function peg$c28() { + indentState.pop();return true; + }, + peg$c29 = function peg$c29(w1) { + nextIndentSize = ParserUtil.calcIndentSize(w1); + return true; + }, + peg$c30 = function peg$c30(w1, w2) { + nextIndentSize = Math.min(nextIndentSize, ParserUtil.calcIndentSize(w2)); + return true; + }, + peg$c31 = function peg$c31(w1) { + indentState.push(nextIndentSize);return true; + }, + peg$c32 = function peg$c32() { + return { width: currentIndentSize, offset: indentState.lastIndentDiff() }; + }, + peg$c33 = function peg$c33(i, c) { + indentState.push(ParserUtil.calcIndentSize(i)); + return true; + }, + peg$c34 = function peg$c34() { + indentState.ignore(location().start.line);return true; + }, + peg$c35 = function peg$c35(children, blanklines) { + return new Elements.Document({ children: children }); + }, + peg$c36 = function peg$c36(blanklines, title, children) { + var depth = sectionState.depth(); + sectionState.popSection(); + + return new Elements.Section({ + blanklines: blanklines, + depth: depth, + children: [title].concat(mapByIndex(children, 1)) + }); + }, + peg$c37 = function peg$c37(overline, underline) { + if (overline.line[0] !== underline.line[0]) { + return false; + } + return sectionState.isSubSection(underline.line[0], true); + }, + peg$c38 = function peg$c38(line, underline) { + return sectionState.isSubSection(underline.line[0], false); + }, + peg$c39 = function peg$c39(overline, children, underline) { + sectionState.setNextSection(underline.line[0], true); + return new Elements.Title({ children: children }); + }, + peg$c40 = function peg$c40(children, underline) { + sectionState.setNextSection(underline.line[0], false); + return new Elements.Title({ children: children }); + }, + peg$c41 = "!", + peg$c42 = peg$literalExpectation("!", false), + peg$c43 = "\"", + peg$c44 = peg$literalExpectation("\"", false), + peg$c45 = "#", + peg$c46 = peg$literalExpectation("#", false), + peg$c47 = "$", + peg$c48 = peg$literalExpectation("$", false), + peg$c49 = "%", + peg$c50 = peg$literalExpectation("%", false), + peg$c51 = "&", + peg$c52 = peg$literalExpectation("&", false), + peg$c53 = "'", + peg$c54 = peg$literalExpectation("'", false), + peg$c55 = "(", + peg$c56 = peg$literalExpectation("(", false), + peg$c57 = ")", + peg$c58 = peg$literalExpectation(")", false), + peg$c59 = "*", + peg$c60 = peg$literalExpectation("*", false), + peg$c61 = "+", + peg$c62 = peg$literalExpectation("+", false), + peg$c63 = ",", + peg$c64 = peg$literalExpectation(",", false), + peg$c65 = "-", + peg$c66 = peg$literalExpectation("-", false), + peg$c67 = ".", + peg$c68 = peg$literalExpectation(".", false), + peg$c69 = "/", + peg$c70 = peg$literalExpectation("/", false), + peg$c71 = ":", + peg$c72 = peg$literalExpectation(":", false), + peg$c73 = ";", + peg$c74 = peg$literalExpectation(";", false), + peg$c75 = "<", + peg$c76 = peg$literalExpectation("<", false), + peg$c77 = "=", + peg$c78 = peg$literalExpectation("=", false), + peg$c79 = ">", + peg$c80 = peg$literalExpectation(">", false), + peg$c81 = "?", + peg$c82 = peg$literalExpectation("?", false), + peg$c83 = "@", + peg$c84 = peg$literalExpectation("@", false), + peg$c85 = "[", + peg$c86 = peg$literalExpectation("[", false), + peg$c87 = "\\", + peg$c88 = peg$literalExpectation("\\", false), + peg$c89 = "]", + peg$c90 = peg$literalExpectation("]", false), + peg$c91 = "^", + peg$c92 = peg$literalExpectation("^", false), + peg$c93 = "_", + peg$c94 = peg$literalExpectation("_", false), + peg$c95 = "`", + peg$c96 = peg$literalExpectation("`", false), + peg$c97 = "{", + peg$c98 = peg$literalExpectation("{", false), + peg$c99 = "|", + peg$c100 = peg$literalExpectation("|", false), + peg$c101 = "}", + peg$c102 = peg$literalExpectation("}", false), + peg$c103 = "~", + peg$c104 = peg$literalExpectation("~", false), + peg$c105 = function peg$c105(line) { + return line.length >= 2 && _.uniq(line).length === 1; + }, + peg$c106 = function peg$c106(line) { + return { line: line.join('') }; + }, + peg$c107 = function peg$c107(blanklines, marker) { + return new Elements.Transition({ blanklines: blanklines, children: [] }); + }, + peg$c108 = function peg$c108(line) { + return line.length >= 4 && _.uniq(line).length === 1; + }, + peg$c109 = function peg$c109(line) { + return line; + }, + peg$c110 = function peg$c110(blanklines, element) { + element.blanklines = blanklines || []; + return element; + }, + peg$c111 = function peg$c111(element) { + return element; + }, + peg$c112 = function peg$c112(item) { + return item; + }, + peg$c113 = function peg$c113(i) { + indentState.push(location().start.column - 1);return true; + }, + peg$c114 = function peg$c114() { + return { width: currentIndentSize, offset: indentState.lastIndentDiff() }; + }, + peg$c115 = function peg$c115(indent, children) { + return new Elements.ListItem({ children: children }); + }, + peg$c116 = function peg$c116() { + return new Elements.ListItem({ children: [] }); + }, + peg$c117 = function peg$c117(items) { + return new Elements.BulletList({ bullet: items[0][0], children: mapByIndex(items, 1) }); + }, + peg$c118 = /^[*+\-\u2022\u2023\u2043]/, + peg$c119 = peg$classExpectation(["*", "+", "-", "\u2022", "\u2023", "\u2043"], false, false), + peg$c120 = function peg$c120(b) { + return bulletListState.isSameBullet(b); + }, + peg$c121 = function peg$c121(b) { + return b; + }, + peg$c122 = function peg$c122(b) { + bulletListState.pushBullet(b);return true; + }, + peg$c123 = function peg$c123() { + bulletListState.popBullet();return true; + }, + peg$c124 = function peg$c124(blanklines, b, item) { + item.blanklines = blanklines || []; + return [b, item]; + }, + peg$c125 = function peg$c125(children) { + return new Elements.EnumeratedList({ children: children }); + }, + peg$c126 = function peg$c126() { + enumeratedListState.begin();return true; + }, + peg$c127 = function peg$c127() { + enumeratedListState.end();return true; + }, + peg$c128 = function peg$c128(blanklines, e, item) { + item.blanklines = blanklines || []; + return item; + }, + peg$c129 = function peg$c129(s) { + return new Elements.Enumerator({ sequence: s, format: 'period' }); + }, + peg$c130 = function peg$c130(s) { + return new Elements.Enumerator({ sequence: s, format: 'right_parenthesis' }); + }, + peg$c131 = function peg$c131(s) { + return new Elements.Enumerator({ sequence: s, format: 'parentheses' }); + }, + peg$c132 = function peg$c132(e) { + if (!enumeratedListState.isNext(e)) { + return false; + } + enumeratedListState.set(e); + return true; + }, + peg$c133 = function peg$c133(e) { + return e; + }, + peg$c134 = function peg$c134() { + return enumeratedListState.isNextType('arabic_numerals'); + }, + peg$c135 = function peg$c135() { + return enumeratedListState.isNextType('uppercase_roman'); + }, + peg$c136 = function peg$c136() { + return enumeratedListState.isNextType('lowercase_roman'); + }, + peg$c137 = function peg$c137() { + return enumeratedListState.isNextType('uppercase_alphabet'); + }, + peg$c138 = function peg$c138() { + return enumeratedListState.isNextType('lowercase_alphabet'); + }, + peg$c139 = function peg$c139() { + return new Elements.EnumeratorSequence({ type: 'auto', value: '#' }); + }, + peg$c140 = /^[1-9]/, + peg$c141 = peg$classExpectation([["1", "9"]], false, false), + peg$c142 = /^[0-9]/, + peg$c143 = peg$classExpectation([["0", "9"]], false, false), + peg$c144 = function peg$c144(head, tail) { + return new Elements.EnumeratorSequence({ type: 'arabic_numerals', value: [head].concat(tail).join('') }); + }, + peg$c145 = /^[0]/, + peg$c146 = peg$classExpectation(["0"], false, false), + peg$c147 = function peg$c147(head) { + return new Elements.EnumeratorSequence({ type: 'arabic_numerals', value: head }); + }, + peg$c148 = /^[A-Z]/, + peg$c149 = peg$classExpectation([["A", "Z"]], false, false), + peg$c150 = function peg$c150(s) { + return new Elements.EnumeratorSequence({ type: 'uppercase_alphabet', value: s }); + }, + peg$c151 = /^[a-z]/, + peg$c152 = peg$classExpectation([["a", "z"]], false, false), + peg$c153 = function peg$c153(s) { + return new Elements.EnumeratorSequence({ type: 'lowercase_alphabet', value: s }); + }, + peg$c154 = /^[IVXLCDM]/, + peg$c155 = peg$classExpectation(["I", "V", "X", "L", "C", "D", "M"], false, false), + peg$c156 = function peg$c156(s) { + return ParserUtil.isUpperRomanNumber(s.join('')); + }, + peg$c157 = function peg$c157(s) { + return new Elements.EnumeratorSequence({ type: 'uppercase_roman', value: s.join('') }); + }, + peg$c158 = /^[ivxlcdm]/, + peg$c159 = peg$classExpectation(["i", "v", "x", "l", "c", "d", "m"], false, false), + peg$c160 = function peg$c160(s) { + return ParserUtil.isLowerRomanNumber(s.join('')); + }, + peg$c161 = function peg$c161(s) { + return new Elements.EnumeratorSequence({ type: 'lowercase_roman', value: s.join('') }); + }, + peg$c162 = function peg$c162(children) { + return new Elements.DefinitionList({ children: children }); + }, + peg$c163 = function peg$c163(blanklines, term, classifiers, indent, body) { + var classifiers = mapByIndex(classifiers, 3); + return new Elements.DefinitionListItem({ + blanklines: blanklines, + indent: indent, + children: [term].concat(_toConsumableArray(classifiers), [body]) + }); + }, + peg$c164 = function peg$c164(children) { + return new Elements.Term({ children: children }); + }, + peg$c165 = function peg$c165(children) { + return new Elements.Definition({ children: children }); + }, + peg$c166 = function peg$c166(text) { + return new Elements.Text({ value: mapByIndex(text, 3).join('') }); + }, + peg$c167 = function peg$c167(children) { + return new Elements.Classifier({ children: children }); + }, + peg$c168 = function peg$c168(blanklines, indent, inner, outer) { + var innerIndent = { width: indent.width, offset: indent.width - outer.indent.width }; + inner.indent = innerIndent; + + var children = [inner].concat(outer.children); + var indent = outer.indent; + return new Elements.BlockQuote({ indent: indent, blanklines: blanklines, children: children }); + }, + peg$c169 = function peg$c169(nested, attribution) { + return new Elements.BlockQuote({ children: nested.concat(attribution || []) }); + }, + peg$c170 = function peg$c170(blanklines, indent, children, attribution) { + return new Elements.BlockQuote({ + indent: indent, + blanklines: blanklines, + children: children.concat(attribution || []) + }); + }, + peg$c171 = function peg$c171(head, tail) { + return [head].concat(_.map(tail, function (v) { + return v[1]; + })); + }, + peg$c172 = "---", + peg$c173 = peg$literalExpectation("---", false), + peg$c174 = "--", + peg$c175 = peg$literalExpectation("--", false), + peg$c176 = "\u2014", + peg$c177 = peg$literalExpectation("\u2014", false), + peg$c178 = function peg$c178(blanklines, body) { + return new Elements.Attribution({ blanklines: blanklines, children: body.children }); + }, + peg$c179 = function peg$c179(body) { + return body; + }, + peg$c180 = function peg$c180(body) { + return body; + }, + peg$c181 = "..", + peg$c182 = peg$literalExpectation("..", false), + peg$c183 = function peg$c183(head, tail) { + var children = [new Elements.Text({ value: head.raw })]; + var indent = null; + if (!_.isNull(tail)) { + indent = tail[1].indent; + children = children.concat(tail[1].children); + } + return new Elements.Comment({ indent: indent, children: children }); + }, + peg$c184 = function peg$c184(comment) { + if (!_.isNull(comment)) { + return comment; + } + return new Elements.Comment({}); + }, + peg$c185 = function peg$c185(indent) { + return null; + }, + peg$c186 = function peg$c186(indent, comments) { + var children = _.map(_.reject(comments, _.isNull), function (v) { + var ws = v[0], + raw = v[1].raw; + var text = _.repeat(' ', ws.length - indent.width) + raw; + return new Elements.Text({ value: text }); + }); + return new Elements.Comment({ indent: indent, children: children }); + }, + peg$c187 = function peg$c187(c) { + return ParserUtil.isInlineMarkupSuffix(c); + }, + peg$c188 = function peg$c188() { + return markupEndString.length === 1; + }, + peg$c189 = function peg$c189(s) { + return s === markupEndString; + }, + peg$c190 = function peg$c190() { + return markupEndString.length === 2; + }, + peg$c191 = function peg$c191(s) { + return s.join('') === markupEndString; + }, + peg$c192 = function peg$c192() { + return markupEndString.length === 3; + }, + peg$c193 = function peg$c193() { + return markupEndString === '``'; + }, + peg$c194 = function peg$c194(text) { + return new Text({ value: mapByIndex(text, 2).join('') }); + }, + peg$c195 = function peg$c195(text, last) { + if (!_.isNull(last)) { + text = new Text({ value: text.value + last }); + } + return text; + }, + peg$c196 = function peg$c196(text, last) { + return [new Text({ value: text.value + last })]; + }, + peg$c197 = function peg$c197(first, middle, last) { + var children = (_.isNull(first) ? [] : [first]).concat(mapByIndex(middle, 1)); + if (children.length === 0) { + children.push(new Text({ value: '' })); + } + var lastText = children[children.length - 1]; + children[children.length - 1] = new Text({ value: lastText.value + last }); + return children; + }, + peg$c198 = function peg$c198() { + markupEndString = '*';return true; + }, + peg$c199 = function peg$c199(children) { + return new Elements.Emphasis({ children: children }); + }, + peg$c200 = "**", + peg$c201 = peg$literalExpectation("**", false), + peg$c202 = function peg$c202() { + markupEndString = '**';return true; + }, + peg$c203 = function peg$c203(children) { + return new Elements.Strong({ children: children }); + }, + peg$c204 = function peg$c204(role) { + markupEndString = '`';return true; + }, + peg$c205 = function peg$c205(role, children) { + var roleStr = null; + if (!_.isNull(role)) { + roleStr = _.map(role[1], function (v) { + return v[3]; + }).join(''); + } + return new Elements.InterpretedText({ role: roleStr, children: children }); + }, + peg$c206 = "``", + peg$c207 = peg$literalExpectation("``", false), + peg$c208 = function peg$c208() { + markupEndString = '``';return true; + }, + peg$c209 = function peg$c209(children) { + return new Elements.Literal({ children: children }); + }, + peg$c210 = function peg$c210() { + markupEndString = '|';return true; + }, + peg$c211 = function peg$c211(children) { + return new Elements.SubstitutionReference({ children: children }); + }, + peg$c212 = "_`", + peg$c213 = peg$literalExpectation("_`", false), + peg$c214 = function peg$c214() { + markupEndString = '`';return true; + }, + peg$c215 = function peg$c215(children) { + return new Elements.InlineInternalTarget({ children: children }); + }, + peg$c216 = function peg$c216(label) { + if (_.isArray(label)) { + return label.join(''); + } + return label; + }, + peg$c217 = "]_", + peg$c218 = peg$literalExpectation("]_", false), + peg$c219 = function peg$c219(label) { + return new Elements.FootnoteReference({ children: [new Text({ value: label })] }); + }, + peg$c220 = function peg$c220(label) { + return new Elements.CitationReference({ children: [new Text({ value: label })] }); + }, + peg$c221 = function peg$c221() { + markupEndString = '`_';return true; + }, + peg$c222 = function peg$c222(children) { + return new Elements.Reference({ anonymous: false, simple: false, children: children }); + }, + peg$c223 = function peg$c223(ref) { + return new Elements.Reference({ anonymous: false, simple: true, children: [new Text({ value: ref })] }); + }, + peg$c224 = function peg$c224() { + markupEndString = '`__';return true; + }, + peg$c225 = function peg$c225(children) { + return new Elements.Reference({ anonymous: true, simple: false, children: children }); + return { children: children }; + }, + peg$c226 = "__", + peg$c227 = peg$literalExpectation("__", false), + peg$c228 = function peg$c228(ref) { + return new Elements.Reference({ anonymous: true, simple: true, children: [new Text({ value: ref })] }); + }, + peg$c229 = /^[\-_.:+]/, + peg$c230 = peg$classExpectation(["-", "_", ".", ":", "+"], false, false), + peg$c231 = function peg$c231(head, tail) { + return head + tail.join(''); + }, + peg$c232 = /^[\-.:+]/, + peg$c233 = peg$classExpectation(["-", ".", ":", "+"], false, false), + peg$c234 = function peg$c234(block) { + return block; + }, + peg$c235 = "::", + peg$c236 = peg$literalExpectation("::", false), + peg$c237 = function peg$c237(indent, lines) { + var children = _.map(lines, function (line) { + if (!_.isUndefined(line[0])) { + var indentSize = ParserUtil.calcIndentSize(line[0].join('')); + var text = _.repeat(' ', Math.max(0, indentSize - indent.width)); + } else { + var indentSize = ParserUtil.calcIndentSize(line[1].join('')); + var text = _.repeat(' ', indentSize - indent.width) + line[2].raw; + } + return new Elements.Text({ value: text }); + }); + return new Elements.LiteralBlock({ children: children }); + }, + peg$c238 = function peg$c238(lines) { + var children = _.map(lines, function (line) { + return new Elements.Text({ value: line[2].raw }); + }); + return new Elements.LiteralBlock({ children: children }); + }, + peg$c239 = function peg$c239(q) { + literalBlockQuoting = q;return true; + }, + peg$c240 = function peg$c240(q) { + return literalBlockQuoting === q; + }, + peg$c241 = function peg$c241(indent, head, tail, outer) { + var first = new Elements.LineBlock({ children: [head].concat(tail) }); + var children = [first].concat(outer.children); + return new Elements.LineBlock({ children: children }); + }, + peg$c242 = function peg$c242(indent, block) { + return block; + }, + peg$c243 = function peg$c243(head, tail) { + return new Elements.LineBlock({ children: [head].concat(_toConsumableArray(tail)) }); + }, + peg$c244 = "| ", + peg$c245 = peg$literalExpectation("| ", false), + peg$c246 = function peg$c246(children) { + return new Elements.Line({ children: children }); + }, + peg$c247 = function peg$c247() { + return new Elements.Line({ children: [] }); + }, + peg$c248 = function peg$c248(i) { + return ParserUtil.calcIndentSize(i) === lineBlockState.current(); + }, + peg$c249 = function peg$c249(i) { + return ParserUtil.calcIndentSize(i) > lineBlockState.current(); + }, + peg$c250 = function peg$c250(i) { + lineBlockState.push(ParserUtil.calcIndentSize(i)); + return true; + }, + peg$c251 = function peg$c251() { + return { width: lineBlockState.current(), offset: lineBlockState.diff() }; + }, + peg$c252 = function peg$c252() { + lineBlockState.pop();return true; + }, + peg$c253 = function peg$c253(c) { + return ParserUtil.isInlineMarkupPrefix(c); + }, + peg$c254 = function peg$c254(c) { + return c; + }, + peg$c255 = function peg$c255(p, s, f) { + return !(p === '*' && s === '*') && !ParserUtil.isMatchPunctuations(p, f); + }, + peg$c256 = function peg$c256(children) { + return new Elements.Paragraph({ children: _.flatten(mapByIndex(children, 1)) }); + }, + peg$c257 = function peg$c257(children, last) { + var texts = mapByIndex(children, 1); + if (last) { + if (texts[texts.length - 1].type !== 'text') { + return texts.concat(new Text({ value: last })); + } + texts[texts.length - 1] = new Text({ value: texts[texts.length - 1].value + last }); + } + return texts; + }, + peg$c258 = function peg$c258(text, last) { + return new Text({ value: mapByIndex(text, 2).join('') + last }); + }, + peg$c259 = function peg$c259(text, last) { + var s = mapByIndex(text, 2).join(''); + if (!_.isNull(last)) { + s += last[1]; + } + return new Text({ value: s }); + }, + peg$c260 = function peg$c260(text, last) { + var s = mapByIndex(text, 2).join('') + last[1]; + return new Text({ value: s }); + }, + peg$c261 = /^[A-Za-z]/, + peg$c262 = peg$classExpectation([["A", "Z"], ["a", "z"]], false, false), + peg$c263 = /^[\-_+:.]/, + peg$c264 = peg$classExpectation(["-", "_", "+", ":", "."], false, false), + peg$c265 = function peg$c265(first, last) { + return _.flatMap(first, function (v) { + return _.compact(v); + }).concat(last).join(''); + }, + peg$c266 = function peg$c266(directive, head, tail) { + var children = [new Elements.Text({ value: head.raw })]; + var indent = null; + if (!_.isNull(tail)) { + indent = tail[1].indent; + children = children.concat(tail[1].children); + } + return new Elements.Directive({ directive: directive, indent: indent, children: children }); + }, + peg$c267 = function peg$c267(directive, block) { + if (!_.isNull(block)) { + return new Elements.Directive({ + directive: directive, + indent: block.indent, + children: block.children + }); + } + return new Elements.Directive({ directive: directive }); + }, + peg$c268 = function peg$c268(indent, blocks) { + var children = _.map(_.reject(blocks, _.isNull), function (v) { + var ws = v[0], + raw = v[1].raw; + var text = _.repeat(' ', ws.length - indent.width) + raw; + return new Elements.Text({ value: text }); + }); + return new Elements.Directive({ indent: indent, children: children }); + }, + peg$c269 = function peg$c269(blanklines, children) { + return new Elements.Unknown({ blanklines: blanklines, children: _.flatten(mapByIndex(children, 1)) }); + }, + peg$currPos = 0, + peg$savedPos = 0, + peg$posDetailsCache = [{ line: 1, column: 1 }], + peg$maxFailPos = 0, + peg$maxFailExpected = [], + peg$silentFails = 0, + peg$result; + + if ("startRule" in options) { + if (!(options.startRule in peg$startRuleFunctions)) { + throw new Error("Can't start parsing from rule \"" + options.startRule + "\"."); + } + + peg$startRuleFunction = peg$startRuleFunctions[options.startRule]; + } + + function text() { + return input.substring(peg$savedPos, peg$currPos); + } + + function location() { + return peg$computeLocation(peg$savedPos, peg$currPos); + } + + function expected(description, location) { + location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos); + + throw peg$buildStructuredError([peg$otherExpectation(description)], input.substring(peg$savedPos, peg$currPos), location); + } + + function error(message, location) { + location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos); + + throw peg$buildSimpleError(message, location); + } + + function peg$literalExpectation(text, ignoreCase) { + return { type: "literal", text: text, ignoreCase: ignoreCase }; + } + + function peg$classExpectation(parts, inverted, ignoreCase) { + return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase }; + } + + function peg$anyExpectation() { + return { type: "any" }; + } + + function peg$endExpectation() { + return { type: "end" }; + } + + function peg$otherExpectation(description) { + return { type: "other", description: description }; + } + + function peg$computePosDetails(pos) { + var details = peg$posDetailsCache[pos], + p; + + if (details) { + return details; + } else { + p = pos - 1; + while (!peg$posDetailsCache[p]) { + p--; + } + + details = peg$posDetailsCache[p]; + details = { + line: details.line, + column: details.column + }; + + while (p < pos) { + if (input.charCodeAt(p) === 10) { + details.line++; + details.column = 1; + } else { + details.column++; + } + + p++; + } + + peg$posDetailsCache[pos] = details; + return details; + } + } + + function peg$computeLocation(startPos, endPos) { + var startPosDetails = peg$computePosDetails(startPos), + endPosDetails = peg$computePosDetails(endPos); + + return { + start: { + offset: startPos, + line: startPosDetails.line, + column: startPosDetails.column + }, + end: { + offset: endPos, + line: endPosDetails.line, + column: endPosDetails.column + } + }; + } + + function peg$fail(expected) { + if (peg$currPos < peg$maxFailPos) { + return; + } + + if (peg$currPos > peg$maxFailPos) { + peg$maxFailPos = peg$currPos; + peg$maxFailExpected = []; + } + + peg$maxFailExpected.push(expected); + } + + function peg$buildSimpleError(message, location) { + return new peg$SyntaxError(message, null, null, location); + } + + function peg$buildStructuredError(expected, found, location) { + return new peg$SyntaxError(peg$SyntaxError.buildMessage(expected, found), expected, found, location); + } + + function peg$parseAlphanumericAscii() { + var s0; + + if (peg$c0.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c1); + } + } + + return s0; + } + + function peg$parseEof() { + var s0, s1; + + s0 = peg$currPos; + peg$silentFails++; + if (input.length > peg$currPos) { + s1 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + peg$silentFails--; + if (s1 === peg$FAILED) { + s0 = void 0; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseNewline() { + var s0, s1, s2, s3; + + if (input.charCodeAt(peg$currPos) === 10) { + s0 = peg$c3; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c4); + } + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 13) { + s2 = peg$c5; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c6); + } + } + if (s2 !== peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 10) { + s3 = peg$c3; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c4); + } + } + if (s3 === peg$FAILED) { + s3 = null; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c7(s1); + } + s0 = s1; + } + + return s0; + } + + function peg$parseWhitespace() { + var s0; + + if (input.charCodeAt(peg$currPos) === 32) { + s0 = peg$c8; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c9); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 11) { + s0 = peg$c10; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c11); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 12) { + s0 = peg$c12; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c13); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 9) { + s0 = peg$c14; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c15); + } + } + } + } + } + + return s0; + } + + function peg$parseEndline() { + var s0; + + s0 = peg$parseNewline(); + if (s0 === peg$FAILED) { + s0 = peg$parseEof(); + } + + return s0; + } + + function peg$parseNormalizedToWhitespace() { + var s0; + + s0 = peg$parseWhitespace(); + if (s0 === peg$FAILED) { + s0 = peg$parseNewline(); + } + + return s0; + } + + function peg$parseNonspacechar() { + var s0, s1, s2, s3; + + s0 = peg$currPos; + s1 = peg$currPos; + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = void 0; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + if (input.length > peg$currPos) { + s3 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c16(s1); + } + s0 = s1; + + return s0; + } + + function peg$parseBlankLines() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8; + + s0 = peg$currPos; + s1 = []; + s2 = peg$currPos; + s3 = []; + s4 = peg$parseWhitespace(); + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseWhitespace(); + } + if (s3 !== peg$FAILED) { + s4 = peg$parseNewline(); + if (s4 !== peg$FAILED) { + s5 = peg$currPos; + peg$silentFails++; + s6 = peg$currPos; + s7 = []; + s8 = peg$parseWhitespace(); + while (s8 !== peg$FAILED) { + s7.push(s8); + s8 = peg$parseWhitespace(); + } + if (s7 !== peg$FAILED) { + s8 = peg$parseEndline(); + if (s8 !== peg$FAILED) { + s7 = [s7, s8]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + peg$silentFails--; + if (s6 !== peg$FAILED) { + peg$currPos = s5; + s5 = void 0; + } else { + s5 = peg$FAILED; + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$currPos; + s3 = []; + s4 = peg$parseWhitespace(); + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseWhitespace(); + } + if (s3 !== peg$FAILED) { + s4 = peg$parseNewline(); + if (s4 !== peg$FAILED) { + s5 = peg$currPos; + peg$silentFails++; + s6 = peg$currPos; + s7 = []; + s8 = peg$parseWhitespace(); + while (s8 !== peg$FAILED) { + s7.push(s8); + s8 = peg$parseWhitespace(); + } + if (s7 !== peg$FAILED) { + s8 = peg$parseEndline(); + if (s8 !== peg$FAILED) { + s7 = [s7, s8]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + peg$silentFails--; + if (s6 !== peg$FAILED) { + peg$currPos = s5; + s5 = void 0; + } else { + s5 = peg$FAILED; + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + s3 = []; + s4 = peg$parseWhitespace(); + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseWhitespace(); + } + if (s3 !== peg$FAILED) { + s4 = peg$parseEndline(); + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c17(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseRawLine() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = []; + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + if (input.length > peg$currPos) { + s4 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + if (input.length > peg$currPos) { + s4 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parseEndline(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c18(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseNotEmptyRawLine() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = []; + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + if (input.length > peg$currPos) { + s4 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + if (input.length > peg$currPos) { + s4 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$parseEndline(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c18(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseUnknownLine() { + var s0, s1; + + s0 = peg$currPos; + s1 = peg$parseNotEmptyRawLine(); + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c19(s1); + } + s0 = s1; + + return s0; + } + + function peg$parseEndIndent() { + var s0, s1, s2, s3, s4, s5, s6; + + s0 = peg$currPos; + peg$silentFails++; + s1 = peg$currPos; + s2 = peg$parseBlankLines(); + if (s2 === peg$FAILED) { + s2 = null; + } + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$parseWhitespace(); + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseWhitespace(); + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + if (input.length > peg$currPos) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s5 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s6 = peg$c20(s3); + if (s6) { + s6 = void 0; + } else { + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + s2 = [s2, s3, s4, s5, s6]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + peg$silentFails--; + if (s1 !== peg$FAILED) { + peg$currPos = s0; + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseSameIndent() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = []; + s2 = peg$parseWhitespace(); + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$parseWhitespace(); + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c21(s1); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c22(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseDeepIndent() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = []; + s2 = peg$parseWhitespace(); + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$parseWhitespace(); + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c23(s1); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c24(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseShallowIndent() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = []; + s2 = peg$parseWhitespace(); + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$parseWhitespace(); + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c25(s1); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c24(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseSameOrDeepIndent() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = []; + s2 = peg$parseWhitespace(); + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$parseWhitespace(); + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c26(s1); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c24(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseFail$() { + var s0, s1, s2; + + s0 = peg$currPos; + peg$savedPos = peg$currPos; + s1 = peg$c27(); + if (s1) { + s1 = void 0; + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + if (input.length > peg$currPos) { + s2 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parsePopIndent$() { + var s0; + + peg$savedPos = peg$currPos; + s0 = peg$c28(); + if (s0) { + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseFailbackIndent$() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = peg$parsePopIndent$(); + if (s1 !== peg$FAILED) { + s2 = peg$parseFail$(); + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parsePushCommonIndent$() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12; + + s0 = peg$currPos; + s1 = peg$currPos; + peg$silentFails++; + s2 = peg$parseDeepIndent(); + peg$silentFails--; + if (s2 !== peg$FAILED) { + peg$currPos = s1; + s1 = void 0; + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$currPos; + s4 = []; + s5 = peg$parseWhitespace(); + if (s5 !== peg$FAILED) { + while (s5 !== peg$FAILED) { + s4.push(s5); + s5 = peg$parseWhitespace(); + } + } else { + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseRawLine(); + if (s5 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s6 = peg$c29(s4); + if (s6) { + s6 = void 0; + } else { + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + s7 = []; + s8 = peg$currPos; + s9 = []; + s10 = peg$parseWhitespace(); + while (s10 !== peg$FAILED) { + s9.push(s10); + s10 = peg$parseWhitespace(); + } + if (s9 !== peg$FAILED) { + s10 = peg$parseNewline(); + if (s10 !== peg$FAILED) { + s9 = [s9, s10]; + s8 = s9; + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + if (s8 === peg$FAILED) { + s8 = peg$currPos; + s9 = peg$currPos; + peg$silentFails++; + s10 = peg$parseDeepIndent(); + peg$silentFails--; + if (s10 !== peg$FAILED) { + peg$currPos = s9; + s9 = void 0; + } else { + s9 = peg$FAILED; + } + if (s9 !== peg$FAILED) { + s10 = []; + s11 = peg$parseWhitespace(); + if (s11 !== peg$FAILED) { + while (s11 !== peg$FAILED) { + s10.push(s11); + s11 = peg$parseWhitespace(); + } + } else { + s10 = peg$FAILED; + } + if (s10 !== peg$FAILED) { + s11 = peg$parseRawLine(); + if (s11 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s12 = peg$c30(s4, s10); + if (s12) { + s12 = void 0; + } else { + s12 = peg$FAILED; + } + if (s12 !== peg$FAILED) { + s9 = [s9, s10, s11, s12]; + s8 = s9; + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } + while (s8 !== peg$FAILED) { + s7.push(s8); + s8 = peg$currPos; + s9 = []; + s10 = peg$parseWhitespace(); + while (s10 !== peg$FAILED) { + s9.push(s10); + s10 = peg$parseWhitespace(); + } + if (s9 !== peg$FAILED) { + s10 = peg$parseNewline(); + if (s10 !== peg$FAILED) { + s9 = [s9, s10]; + s8 = s9; + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + if (s8 === peg$FAILED) { + s8 = peg$currPos; + s9 = peg$currPos; + peg$silentFails++; + s10 = peg$parseDeepIndent(); + peg$silentFails--; + if (s10 !== peg$FAILED) { + peg$currPos = s9; + s9 = void 0; + } else { + s9 = peg$FAILED; + } + if (s9 !== peg$FAILED) { + s10 = []; + s11 = peg$parseWhitespace(); + if (s11 !== peg$FAILED) { + while (s11 !== peg$FAILED) { + s10.push(s11); + s11 = peg$parseWhitespace(); + } + } else { + s10 = peg$FAILED; + } + if (s10 !== peg$FAILED) { + s11 = peg$parseRawLine(); + if (s11 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s12 = peg$c30(s4, s10); + if (s12) { + s12 = void 0; + } else { + s12 = peg$FAILED; + } + if (s12 !== peg$FAILED) { + s9 = [s9, s10, s11, s12]; + s8 = s9; + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } + } + if (s7 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s8 = peg$c31(s4); + if (s8) { + s8 = void 0; + } else { + s8 = peg$FAILED; + } + if (s8 !== peg$FAILED) { + s4 = [s4, s5, s6, s7, s8]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + peg$silentFails--; + if (s3 !== peg$FAILED) { + peg$currPos = s2; + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c32(); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parsePushFirstIndent$() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = peg$currPos; + peg$silentFails++; + s2 = peg$currPos; + s3 = peg$parseDeepIndent(); + if (s3 !== peg$FAILED) { + s4 = peg$parseNonspacechar(); + if (s4 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s5 = peg$c33(s3, s4); + if (s5) { + s5 = void 0; + } else { + s5 = peg$FAILED; + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + peg$silentFails--; + if (s2 !== peg$FAILED) { + peg$currPos = s1; + s1 = void 0; + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c32(); + } + s0 = s1; + + return s0; + } + + function peg$parseSkipIndentCheck$() { + var s0; + + peg$savedPos = peg$currPos; + s0 = peg$c34(); + if (s0) { + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseDocument() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = []; + s2 = peg$parseSection(); + if (s2 === peg$FAILED) { + s2 = peg$parseTransition(); + if (s2 === peg$FAILED) { + s2 = peg$parseBodyElement(); + if (s2 === peg$FAILED) { + s2 = peg$parseUnknown(); + } + } + } + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$parseSection(); + if (s2 === peg$FAILED) { + s2 = peg$parseTransition(); + if (s2 === peg$FAILED) { + s2 = peg$parseBodyElement(); + if (s2 === peg$FAILED) { + s2 = peg$parseUnknown(); + } + } + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parseBlankLines(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c35(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseSection() { + var s0, s1, s2, s3, s4, s5, s6, s7; + + s0 = peg$currPos; + s1 = peg$parseBlankLines(); + if (s1 === peg$FAILED) { + s1 = null; + } + if (s1 !== peg$FAILED) { + s2 = peg$parseIsSubSection(); + if (s2 !== peg$FAILED) { + s3 = peg$parseSectionWithOverline(); + if (s3 === peg$FAILED) { + s3 = peg$parseSectionWithoutOverline(); + } + if (s3 !== peg$FAILED) { + s4 = []; + s5 = peg$currPos; + s6 = peg$parseIsSubSection(); + if (s6 !== peg$FAILED) { + s7 = peg$parseSection(); + if (s7 !== peg$FAILED) { + s6 = [s6, s7]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + if (s5 === peg$FAILED) { + s5 = peg$currPos; + s6 = peg$currPos; + peg$silentFails++; + s7 = peg$parseIsSection(); + peg$silentFails--; + if (s7 === peg$FAILED) { + s6 = void 0; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + s7 = peg$parseTransition(); + if (s7 !== peg$FAILED) { + s6 = [s6, s7]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + if (s5 === peg$FAILED) { + s5 = peg$currPos; + s6 = peg$currPos; + peg$silentFails++; + s7 = peg$parseIsSection(); + peg$silentFails--; + if (s7 === peg$FAILED) { + s6 = void 0; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + s7 = peg$parseBodyElement(); + if (s7 !== peg$FAILED) { + s6 = [s6, s7]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } + } + while (s5 !== peg$FAILED) { + s4.push(s5); + s5 = peg$currPos; + s6 = peg$parseIsSubSection(); + if (s6 !== peg$FAILED) { + s7 = peg$parseSection(); + if (s7 !== peg$FAILED) { + s6 = [s6, s7]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + if (s5 === peg$FAILED) { + s5 = peg$currPos; + s6 = peg$currPos; + peg$silentFails++; + s7 = peg$parseIsSection(); + peg$silentFails--; + if (s7 === peg$FAILED) { + s6 = void 0; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + s7 = peg$parseTransition(); + if (s7 !== peg$FAILED) { + s6 = [s6, s7]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + if (s5 === peg$FAILED) { + s5 = peg$currPos; + s6 = peg$currPos; + peg$silentFails++; + s7 = peg$parseIsSection(); + peg$silentFails--; + if (s7 === peg$FAILED) { + s6 = void 0; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + s7 = peg$parseBodyElement(); + if (s7 !== peg$FAILED) { + s6 = [s6, s7]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } + } + } + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c36(s1, s3, s4); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseIsSection() { + var s0, s1, s2, s3, s4, s5, s6; + + s0 = peg$currPos; + peg$silentFails++; + s1 = peg$currPos; + s2 = peg$parseBlankLines(); + if (s2 === peg$FAILED) { + s2 = null; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseSectionLine(); + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseBlankLines(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseRawLine(); + if (s5 !== peg$FAILED) { + s6 = peg$parseSectionLine(); + if (s6 !== peg$FAILED) { + s2 = [s2, s3, s4, s5, s6]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + peg$silentFails--; + if (s1 !== peg$FAILED) { + peg$currPos = s0; + s0 = void 0; + } else { + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + peg$silentFails++; + s1 = peg$currPos; + s2 = peg$parseBlankLines(); + if (s2 === peg$FAILED) { + s2 = null; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseRawLine(); + if (s3 !== peg$FAILED) { + s4 = peg$parseSectionLine(); + if (s4 !== peg$FAILED) { + s2 = [s2, s3, s4]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + peg$silentFails--; + if (s1 !== peg$FAILED) { + peg$currPos = s0; + s0 = void 0; + } else { + s0 = peg$FAILED; + } + } + + return s0; + } + + function peg$parseIsSubSection() { + var s0, s1, s2, s3, s4, s5, s6, s7; + + s0 = peg$currPos; + peg$silentFails++; + s1 = peg$currPos; + s2 = peg$parseBlankLines(); + if (s2 === peg$FAILED) { + s2 = null; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseSectionLine(); + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseBlankLines(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseRawLine(); + if (s5 !== peg$FAILED) { + s6 = peg$parseSectionLine(); + if (s6 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s7 = peg$c37(s3, s6); + if (s7) { + s7 = void 0; + } else { + s7 = peg$FAILED; + } + if (s7 !== peg$FAILED) { + s2 = [s2, s3, s4, s5, s6, s7]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + peg$silentFails--; + if (s1 !== peg$FAILED) { + peg$currPos = s0; + s0 = void 0; + } else { + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + peg$silentFails++; + s1 = peg$currPos; + s2 = peg$parseBlankLines(); + if (s2 === peg$FAILED) { + s2 = null; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseRawLine(); + if (s3 !== peg$FAILED) { + s4 = peg$parseSectionLine(); + if (s4 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s5 = peg$c38(s3, s4); + if (s5) { + s5 = void 0; + } else { + s5 = peg$FAILED; + } + if (s5 !== peg$FAILED) { + s2 = [s2, s3, s4, s5]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + peg$silentFails--; + if (s1 !== peg$FAILED) { + peg$currPos = s0; + s0 = void 0; + } else { + s0 = peg$FAILED; + } + } + + return s0; + } + + function peg$parseSectionWithOverline() { + var s0, s1, s2, s3, s4, s5, s6; + + s0 = peg$currPos; + s1 = peg$currPos; + peg$silentFails++; + s2 = peg$currPos; + s3 = peg$parseSectionLine(); + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseBlankLines(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseRawLine(); + if (s5 !== peg$FAILED) { + s6 = peg$parseSectionLine(); + if (s6 !== peg$FAILED) { + s3 = [s3, s4, s5, s6]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + peg$silentFails--; + if (s2 !== peg$FAILED) { + peg$currPos = s1; + s1 = void 0; + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$parseSectionLine(); + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$parseWhitespace(); + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseWhitespace(); + } + if (s3 !== peg$FAILED) { + s4 = peg$parseOnelineParagraph(); + if (s4 !== peg$FAILED) { + s5 = peg$parseNewline(); + if (s5 !== peg$FAILED) { + s6 = peg$parseSectionLine(); + if (s6 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c39(s2, s4, s6); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseSectionWithoutOverline() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = peg$currPos; + peg$silentFails++; + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseBlankLines(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$parseRawLine(); + if (s4 !== peg$FAILED) { + s5 = peg$parseSectionLine(); + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + peg$silentFails--; + if (s2 !== peg$FAILED) { + peg$currPos = s1; + s1 = void 0; + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$parseOnelineParagraph(); + if (s2 !== peg$FAILED) { + s3 = peg$parseNewline(); + if (s3 !== peg$FAILED) { + s4 = peg$parseSectionLine(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c40(s2, s4); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseSectionLine() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = []; + if (input.charCodeAt(peg$currPos) === 33) { + s2 = peg$c41; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c42); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 34) { + s2 = peg$c43; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c44); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 35) { + s2 = peg$c45; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c46); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 36) { + s2 = peg$c47; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c48); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 37) { + s2 = peg$c49; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c50); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 38) { + s2 = peg$c51; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c52); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 39) { + s2 = peg$c53; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c54); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 40) { + s2 = peg$c55; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c56); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 41) { + s2 = peg$c57; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c58); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 42) { + s2 = peg$c59; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c60); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 43) { + s2 = peg$c61; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c62); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 44) { + s2 = peg$c63; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c64); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 45) { + s2 = peg$c65; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c66); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 46) { + s2 = peg$c67; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c68); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 47) { + s2 = peg$c69; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c70); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 58) { + s2 = peg$c71; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c72); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 59) { + s2 = peg$c73; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c74); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 60) { + s2 = peg$c75; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c76); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 61) { + s2 = peg$c77; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c78); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 62) { + s2 = peg$c79; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c80); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 63) { + s2 = peg$c81; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c82); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 64) { + s2 = peg$c83; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c84); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 91) { + s2 = peg$c85; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c86); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 92) { + s2 = peg$c87; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c88); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 93) { + s2 = peg$c89; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c90); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 94) { + s2 = peg$c91; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c92); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 95) { + s2 = peg$c93; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c94); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 96) { + s2 = peg$c95; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c96); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 123) { + s2 = peg$c97; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c98); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 124) { + s2 = peg$c99; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c100); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 125) { + s2 = peg$c101; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c102); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 126) { + s2 = peg$c103; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c104); + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + if (input.charCodeAt(peg$currPos) === 33) { + s2 = peg$c41; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c42); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 34) { + s2 = peg$c43; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c44); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 35) { + s2 = peg$c45; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c46); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 36) { + s2 = peg$c47; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c48); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 37) { + s2 = peg$c49; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c50); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 38) { + s2 = peg$c51; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c52); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 39) { + s2 = peg$c53; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c54); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 40) { + s2 = peg$c55; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c56); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 41) { + s2 = peg$c57; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c58); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 42) { + s2 = peg$c59; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c60); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 43) { + s2 = peg$c61; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c62); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 44) { + s2 = peg$c63; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c64); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 45) { + s2 = peg$c65; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c66); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 46) { + s2 = peg$c67; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c68); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 47) { + s2 = peg$c69; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c70); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 58) { + s2 = peg$c71; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c72); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 59) { + s2 = peg$c73; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c74); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 60) { + s2 = peg$c75; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c76); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 61) { + s2 = peg$c77; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c78); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 62) { + s2 = peg$c79; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c80); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 63) { + s2 = peg$c81; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c82); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 64) { + s2 = peg$c83; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c84); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 91) { + s2 = peg$c85; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c86); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 92) { + s2 = peg$c87; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c88); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 93) { + s2 = peg$c89; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c90); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 94) { + s2 = peg$c91; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c92); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 95) { + s2 = peg$c93; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c94); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 96) { + s2 = peg$c95; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c96); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 123) { + s2 = peg$c97; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c98); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 124) { + s2 = peg$c99; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c100); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 125) { + s2 = peg$c101; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c102); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 126) { + s2 = peg$c103; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c104); + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c105(s1); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$parseWhitespace(); + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseWhitespace(); + } + if (s3 !== peg$FAILED) { + s4 = peg$parseNewline(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c106(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseTransition() { + var s0, s1, s2, s3, s4, s5, s6; + + s0 = peg$currPos; + s1 = peg$parseBlankLines(); + if (s1 === peg$FAILED) { + s1 = null; + } + if (s1 !== peg$FAILED) { + s2 = peg$parseTransitionMarker(); + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$parseWhitespace(); + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseWhitespace(); + } + if (s3 !== peg$FAILED) { + s4 = peg$parseNewline(); + if (s4 !== peg$FAILED) { + s5 = peg$currPos; + peg$silentFails++; + s6 = peg$parseBlankLines(); + peg$silentFails--; + if (s6 !== peg$FAILED) { + peg$currPos = s5; + s5 = void 0; + } else { + s5 = peg$FAILED; + } + if (s5 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c107(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseTransitionMarker() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = []; + if (input.charCodeAt(peg$currPos) === 33) { + s2 = peg$c41; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c42); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 34) { + s2 = peg$c43; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c44); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 35) { + s2 = peg$c45; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c46); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 36) { + s2 = peg$c47; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c48); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 37) { + s2 = peg$c49; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c50); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 38) { + s2 = peg$c51; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c52); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 39) { + s2 = peg$c53; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c54); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 40) { + s2 = peg$c55; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c56); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 41) { + s2 = peg$c57; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c58); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 42) { + s2 = peg$c59; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c60); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 43) { + s2 = peg$c61; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c62); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 44) { + s2 = peg$c63; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c64); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 45) { + s2 = peg$c65; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c66); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 46) { + s2 = peg$c67; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c68); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 47) { + s2 = peg$c69; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c70); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 58) { + s2 = peg$c71; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c72); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 59) { + s2 = peg$c73; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c74); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 60) { + s2 = peg$c75; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c76); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 61) { + s2 = peg$c77; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c78); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 62) { + s2 = peg$c79; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c80); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 63) { + s2 = peg$c81; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c82); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 64) { + s2 = peg$c83; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c84); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 91) { + s2 = peg$c85; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c86); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 92) { + s2 = peg$c87; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c88); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 93) { + s2 = peg$c89; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c90); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 94) { + s2 = peg$c91; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c92); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 95) { + s2 = peg$c93; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c94); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 96) { + s2 = peg$c95; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c96); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 123) { + s2 = peg$c97; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c98); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 124) { + s2 = peg$c99; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c100); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 125) { + s2 = peg$c101; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c102); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 126) { + s2 = peg$c103; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c104); + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + if (input.charCodeAt(peg$currPos) === 33) { + s2 = peg$c41; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c42); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 34) { + s2 = peg$c43; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c44); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 35) { + s2 = peg$c45; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c46); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 36) { + s2 = peg$c47; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c48); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 37) { + s2 = peg$c49; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c50); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 38) { + s2 = peg$c51; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c52); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 39) { + s2 = peg$c53; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c54); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 40) { + s2 = peg$c55; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c56); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 41) { + s2 = peg$c57; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c58); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 42) { + s2 = peg$c59; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c60); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 43) { + s2 = peg$c61; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c62); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 44) { + s2 = peg$c63; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c64); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 45) { + s2 = peg$c65; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c66); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 46) { + s2 = peg$c67; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c68); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 47) { + s2 = peg$c69; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c70); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 58) { + s2 = peg$c71; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c72); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 59) { + s2 = peg$c73; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c74); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 60) { + s2 = peg$c75; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c76); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 61) { + s2 = peg$c77; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c78); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 62) { + s2 = peg$c79; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c80); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 63) { + s2 = peg$c81; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c82); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 64) { + s2 = peg$c83; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c84); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 91) { + s2 = peg$c85; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c86); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 92) { + s2 = peg$c87; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c88); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 93) { + s2 = peg$c89; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c90); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 94) { + s2 = peg$c91; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c92); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 95) { + s2 = peg$c93; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c94); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 96) { + s2 = peg$c95; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c96); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 123) { + s2 = peg$c97; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c98); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 124) { + s2 = peg$c99; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c100); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 125) { + s2 = peg$c101; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c102); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 126) { + s2 = peg$c103; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c104); + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c108(s1); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c109(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseBodyElementExceptBlockQuote() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = peg$parseBlankLines(); + if (s1 === peg$FAILED) { + s1 = null; + } + if (s1 !== peg$FAILED) { + s2 = peg$parseDirective(); + if (s2 === peg$FAILED) { + s2 = peg$parseComment(); + if (s2 === peg$FAILED) { + s2 = peg$parseLiteralBlock(); + if (s2 === peg$FAILED) { + s2 = peg$parseBulletList(); + if (s2 === peg$FAILED) { + s2 = peg$parseEnumeratedList(); + if (s2 === peg$FAILED) { + s2 = peg$parseDefinitionList(); + if (s2 === peg$FAILED) { + s2 = peg$parseLineBlock(); + if (s2 === peg$FAILED) { + s2 = peg$parseParagraph(); + } + } + } + } + } + } + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c110(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseBodyElement() { + var s0, s1; + + s0 = peg$currPos; + s1 = peg$parseBodyElementExceptBlockQuote(); + if (s1 === peg$FAILED) { + s1 = peg$parseBlockQuote(); + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c111(s1); + } + s0 = s1; + + return s0; + } + + function peg$parseListItem() { + var s0, s1; + + s0 = peg$currPos; + s1 = peg$parseNonEmptyListItem(); + if (s1 === peg$FAILED) { + s1 = peg$parseEmptyListItem(); + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c112(s1); + } + s0 = s1; + + return s0; + } + + function peg$parsePushListItemIndent$() { + var s0, s1, s2, s3, s4, s5, s6; + + s0 = peg$currPos; + s1 = peg$currPos; + peg$silentFails++; + s2 = peg$currPos; + s3 = []; + s4 = peg$parseWhitespace(); + if (s4 !== peg$FAILED) { + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseWhitespace(); + } + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseNonspacechar(); + peg$silentFails--; + if (s5 !== peg$FAILED) { + peg$currPos = s4; + s4 = void 0; + } else { + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseSkipIndentCheck$(); + if (s5 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s6 = peg$c113(s3); + if (s6) { + s6 = void 0; + } else { + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + s3 = [s3, s4, s5, s6]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + peg$silentFails--; + if (s2 !== peg$FAILED) { + peg$currPos = s1; + s1 = void 0; + } else { + s1 = peg$FAILED; + } + if (s1 === peg$FAILED) { + s1 = peg$currPos; + peg$silentFails++; + s2 = peg$currPos; + s3 = peg$parseBlankLines(); + if (s3 !== peg$FAILED) { + s4 = peg$parsePushFirstIndent$(); + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + peg$silentFails--; + if (s2 !== peg$FAILED) { + peg$currPos = s1; + s1 = void 0; + } else { + s1 = peg$FAILED; + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c114(); + } + s0 = s1; + + return s0; + } + + function peg$parseNonEmptyListItem() { + var s0, s1, s2, s3; + + s0 = peg$currPos; + s1 = peg$parsePushListItemIndent$(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$parseBodyElement(); + if (s3 !== peg$FAILED) { + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseBodyElement(); + } + } else { + s2 = peg$FAILED; + } + if (s2 === peg$FAILED) { + s2 = peg$parseFailbackIndent$(); + } + if (s2 !== peg$FAILED) { + s3 = peg$parsePopIndent$(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c115(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseEmptyListItem() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = []; + s2 = peg$parseWhitespace(); + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$parseWhitespace(); + } + if (s1 !== peg$FAILED) { + s2 = peg$parseEndline(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c116(); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseBulletList() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$parsePushBullet$(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$parseBulletListItem(); + if (s3 !== peg$FAILED) { + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseBulletListItem(); + } + } else { + s2 = peg$FAILED; + } + if (s2 === peg$FAILED) { + s2 = peg$currPos; + s3 = peg$parsePopBullet$(); + if (s3 !== peg$FAILED) { + s4 = peg$parseFail$(); + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } + if (s2 !== peg$FAILED) { + s3 = peg$parsePopBullet$(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c117(s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseBullet() { + var s0; + + if (peg$c118.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c119); + } + } + + return s0; + } + + function peg$parseSameBullet() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = peg$parseBullet(); + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c120(s1); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c121(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parsePushBullet$() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + peg$silentFails++; + s1 = peg$currPos; + s2 = peg$parseBlankLines(); + if (s2 === peg$FAILED) { + s2 = null; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseSameIndent(); + if (s3 !== peg$FAILED) { + s4 = peg$parseBullet(); + if (s4 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s5 = peg$c122(s4); + if (s5) { + s5 = void 0; + } else { + s5 = peg$FAILED; + } + if (s5 !== peg$FAILED) { + s2 = [s2, s3, s4, s5]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + peg$silentFails--; + if (s1 !== peg$FAILED) { + peg$currPos = s0; + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parsePopBullet$() { + var s0; + + peg$savedPos = peg$currPos; + s0 = peg$c123(); + if (s0) { + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseBulletListItem() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$parseBlankLines(); + if (s1 === peg$FAILED) { + s1 = null; + } + if (s1 !== peg$FAILED) { + s2 = peg$parseSameIndent(); + if (s2 !== peg$FAILED) { + s3 = peg$parseSameBullet(); + if (s3 !== peg$FAILED) { + s4 = peg$parseListItem(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c124(s1, s3, s4); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseEnumeratedList() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = peg$parseBeginEnumeratedList$(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$parseEnumeratedListItem(); + if (s3 !== peg$FAILED) { + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseEnumeratedListItem(); + } + } else { + s2 = peg$FAILED; + } + if (s2 === peg$FAILED) { + s2 = peg$currPos; + s3 = peg$parseEndEnumeratedList$(); + if (s3 !== peg$FAILED) { + s4 = peg$parseFail$(); + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } + if (s2 !== peg$FAILED) { + s3 = peg$parseEndEnumeratedList$(); + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseBlankLines(); + peg$silentFails--; + if (s5 !== peg$FAILED) { + peg$currPos = s4; + s4 = void 0; + } else { + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c125(s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseBeginEnumeratedList$() { + var s0, s1, s2, s3; + + s0 = peg$currPos; + peg$silentFails++; + s1 = peg$currPos; + s2 = peg$parseBlankLines(); + if (s2 === peg$FAILED) { + s2 = null; + } + if (s2 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s3 = peg$c126(); + if (s3) { + s3 = void 0; + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + peg$silentFails--; + if (s1 !== peg$FAILED) { + peg$currPos = s0; + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseEndEnumeratedList$() { + var s0; + + peg$savedPos = peg$currPos; + s0 = peg$c127(); + if (s0) { + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseEnumeratedListItem() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$parseBlankLines(); + if (s1 === peg$FAILED) { + s1 = null; + } + if (s1 !== peg$FAILED) { + s2 = peg$parseSameIndent(); + if (s2 !== peg$FAILED) { + s3 = peg$parseNextEnumerator(); + if (s3 !== peg$FAILED) { + s4 = peg$parseListItem(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c128(s1, s3, s4); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseEnumerator() { + var s0, s1, s2, s3; + + s0 = peg$currPos; + s1 = peg$parseEnumerationSequence(); + if (s1 !== peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 46) { + s2 = peg$c67; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c68); + } + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c129(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseEnumerationSequence(); + if (s1 !== peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 41) { + s2 = peg$c57; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c58); + } + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c130(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 40) { + s1 = peg$c55; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c56); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parseEnumerationSequence(); + if (s2 !== peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 41) { + s3 = peg$c57; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c58); + } + } + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c131(s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + } + + return s0; + } + + function peg$parseNextEnumerator() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = peg$parseEnumerator(); + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c132(s1); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c133(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseEnumerationSequence() { + var s0, s1, s2; + + s0 = peg$parseAutoEnumerationSequence(); + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseAcceptNumeral$(); + if (s1 !== peg$FAILED) { + s2 = peg$parseArabicNumeralsEnumerationSequence(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c133(s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseAcceptUpperCaseRoman$(); + if (s1 !== peg$FAILED) { + s2 = peg$parseUpperCaseRomanEnumerationSequence(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c133(s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseAcceptLowerCaseRoman$(); + if (s1 !== peg$FAILED) { + s2 = peg$parseLowerCaseRomanEnumerationSequence(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c133(s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseAcceptUpperCaseAlphabet$(); + if (s1 !== peg$FAILED) { + s2 = peg$parseUpperCaseAlphabetEnumerationSequence(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c133(s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseAcceptLowerCaseAlphabet$(); + if (s1 !== peg$FAILED) { + s2 = peg$parseLowerCaseAlphabetEnumerationSequence(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c133(s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + } + } + } + } + + return s0; + } + + function peg$parseAcceptNumeral$() { + var s0; + + peg$savedPos = peg$currPos; + s0 = peg$c134(); + if (s0) { + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseAcceptUpperCaseRoman$() { + var s0; + + peg$savedPos = peg$currPos; + s0 = peg$c135(); + if (s0) { + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseAcceptLowerCaseRoman$() { + var s0; + + peg$savedPos = peg$currPos; + s0 = peg$c136(); + if (s0) { + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseAcceptUpperCaseAlphabet$() { + var s0; + + peg$savedPos = peg$currPos; + s0 = peg$c137(); + if (s0) { + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseAcceptLowerCaseAlphabet$() { + var s0; + + peg$savedPos = peg$currPos; + s0 = peg$c138(); + if (s0) { + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseAutoEnumerationSequence() { + var s0, s1; + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 35) { + s1 = peg$c45; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c46); + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c139(); + } + s0 = s1; + + return s0; + } + + function peg$parseArabicNumeralsEnumerationSequence() { + var s0, s1, s2, s3; + + s0 = peg$currPos; + if (peg$c140.test(input.charAt(peg$currPos))) { + s1 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c141); + } + } + if (s1 !== peg$FAILED) { + s2 = []; + if (peg$c142.test(input.charAt(peg$currPos))) { + s3 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c143); + } + } + while (s3 !== peg$FAILED) { + s2.push(s3); + if (peg$c142.test(input.charAt(peg$currPos))) { + s3 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c143); + } + } + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c144(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (peg$c145.test(input.charAt(peg$currPos))) { + s1 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c146); + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c147(s1); + } + s0 = s1; + } + + return s0; + } + + function peg$parseUpperCaseAlphabetEnumerationSequence() { + var s0, s1; + + s0 = peg$currPos; + if (peg$c148.test(input.charAt(peg$currPos))) { + s1 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c149); + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c150(s1); + } + s0 = s1; + + return s0; + } + + function peg$parseLowerCaseAlphabetEnumerationSequence() { + var s0, s1; + + s0 = peg$currPos; + if (peg$c151.test(input.charAt(peg$currPos))) { + s1 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c152); + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c153(s1); + } + s0 = s1; + + return s0; + } + + function peg$parseUpperCaseRomanEnumerationSequence() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = []; + if (peg$c154.test(input.charAt(peg$currPos))) { + s2 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c155); + } + } + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + if (peg$c154.test(input.charAt(peg$currPos))) { + s2 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c155); + } + } + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c156(s1); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c157(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseLowerCaseRomanEnumerationSequence() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = []; + if (peg$c158.test(input.charAt(peg$currPos))) { + s2 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c159); + } + } + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + if (peg$c158.test(input.charAt(peg$currPos))) { + s2 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c159); + } + } + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c160(s1); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c161(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseDefinitionList() { + var s0, s1, s2, s3; + + s0 = peg$currPos; + s1 = []; + s2 = peg$parseDefinitionListItem(); + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$parseDefinitionListItem(); + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseBlankLines(); + peg$silentFails--; + if (s3 !== peg$FAILED) { + peg$currPos = s2; + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c162(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseDefinitionListItem() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + + s0 = peg$currPos; + s1 = peg$parseBlankLines(); + if (s1 === peg$FAILED) { + s1 = null; + } + if (s1 !== peg$FAILED) { + s2 = peg$parseSameIndent(); + if (s2 !== peg$FAILED) { + s3 = peg$parseDefinitionTerm(); + if (s3 !== peg$FAILED) { + s4 = []; + s5 = peg$currPos; + s6 = []; + s7 = peg$parseWhitespace(); + if (s7 !== peg$FAILED) { + while (s7 !== peg$FAILED) { + s6.push(s7); + s7 = peg$parseWhitespace(); + } + } else { + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 58) { + s7 = peg$c71; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c72); + } + } + if (s7 !== peg$FAILED) { + s8 = []; + s9 = peg$parseWhitespace(); + if (s9 !== peg$FAILED) { + while (s9 !== peg$FAILED) { + s8.push(s9); + s9 = peg$parseWhitespace(); + } + } else { + s8 = peg$FAILED; + } + if (s8 !== peg$FAILED) { + s9 = peg$parseDefinitionClassifier(); + if (s9 !== peg$FAILED) { + s6 = [s6, s7, s8, s9]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + while (s5 !== peg$FAILED) { + s4.push(s5); + s5 = peg$currPos; + s6 = []; + s7 = peg$parseWhitespace(); + if (s7 !== peg$FAILED) { + while (s7 !== peg$FAILED) { + s6.push(s7); + s7 = peg$parseWhitespace(); + } + } else { + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 58) { + s7 = peg$c71; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c72); + } + } + if (s7 !== peg$FAILED) { + s8 = []; + s9 = peg$parseWhitespace(); + if (s9 !== peg$FAILED) { + while (s9 !== peg$FAILED) { + s8.push(s9); + s9 = peg$parseWhitespace(); + } + } else { + s8 = peg$FAILED; + } + if (s8 !== peg$FAILED) { + s9 = peg$parseDefinitionClassifier(); + if (s9 !== peg$FAILED) { + s6 = [s6, s7, s8, s9]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } + if (s4 !== peg$FAILED) { + s5 = []; + s6 = peg$parseWhitespace(); + while (s6 !== peg$FAILED) { + s5.push(s6); + s6 = peg$parseWhitespace(); + } + if (s5 !== peg$FAILED) { + s6 = peg$parseNewline(); + if (s6 !== peg$FAILED) { + s7 = peg$parsePushFirstIndent$(); + if (s7 !== peg$FAILED) { + s8 = peg$parseDefinitionListBody(); + if (s8 === peg$FAILED) { + s8 = peg$parseFailbackIndent$(); + } + if (s8 !== peg$FAILED) { + s9 = peg$parsePopIndent$(); + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c163(s1, s3, s4, s7, s8); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseDefinitionTerm() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = []; + s2 = peg$parseInlineMarkupWithoutNewline(); + if (s2 === peg$FAILED) { + s2 = peg$parseDefinitionTermText(); + } + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$parseInlineMarkupWithoutNewline(); + if (s2 === peg$FAILED) { + s2 = peg$parseDefinitionTermText(); + } + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c164(s1); + } + s0 = s1; + + return s0; + } + + function peg$parseDefinitionListBody() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = []; + s2 = peg$parseBodyElement(); + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$parseBodyElement(); + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c165(s1); + } + s0 = s1; + + return s0; + } + + function peg$parseDefinitionClassifierBeggining() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = []; + s2 = peg$parseWhitespace(); + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$parseWhitespace(); + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 58) { + s2 = peg$c71; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c72); + } + } + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$parseWhitespace(); + if (s4 !== peg$FAILED) { + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseWhitespace(); + } + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s1 = [s1, s2, s3]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseDefinitionTermText() { + var s0, s1, s2, s3, s4, s5, s6; + + s0 = peg$currPos; + s1 = []; + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseDefinitionClassifierBeggining(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$currPos; + peg$silentFails++; + s6 = peg$parseInlineMarkupBeggining(); + peg$silentFails--; + if (s6 === peg$FAILED) { + s5 = void 0; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + if (s5 !== peg$FAILED) { + if (input.length > peg$currPos) { + s6 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s6 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s6 !== peg$FAILED) { + s3 = [s3, s4, s5, s6]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseDefinitionClassifierBeggining(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$currPos; + peg$silentFails++; + s6 = peg$parseInlineMarkupBeggining(); + peg$silentFails--; + if (s6 === peg$FAILED) { + s5 = void 0; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + if (s5 !== peg$FAILED) { + if (input.length > peg$currPos) { + s6 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s6 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s6 !== peg$FAILED) { + s3 = [s3, s4, s5, s6]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c166(s1); + } + s0 = s1; + + return s0; + } + + function peg$parseDefinitionClassifier() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = []; + s2 = peg$parseInlineMarkupWithoutNewline(); + if (s2 === peg$FAILED) { + s2 = peg$parseDefinitionTermText(); + } + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$parseInlineMarkupWithoutNewline(); + if (s2 === peg$FAILED) { + s2 = peg$parseDefinitionTermText(); + } + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c167(s1); + } + s0 = s1; + + return s0; + } + + function peg$parseBlockQuote() { + var s0; + + s0 = peg$parseNestedBlockQuote(); + if (s0 === peg$FAILED) { + s0 = peg$parseSimpleBlockQuote(); + } + + return s0; + } + + function peg$parseNestedBlockQuote() { + var s0, s1, s2, s3, s4, s5, s6, s7; + + s0 = peg$currPos; + s1 = peg$parseBlankLines(); + if (s1 === peg$FAILED) { + s1 = null; + } + if (s1 !== peg$FAILED) { + s2 = peg$parsePushFirstIndent$(); + if (s2 !== peg$FAILED) { + s3 = peg$parseInnerBlockQuote(); + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$currPos; + s6 = peg$parseBlankLines(); + if (s6 !== peg$FAILED) { + s7 = peg$parseShallowIndent(); + if (s7 !== peg$FAILED) { + s6 = [s6, s7]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + if (s5 === peg$FAILED) { + s5 = peg$parseFailbackIndent$(); + } + peg$silentFails--; + if (s5 !== peg$FAILED) { + peg$currPos = s4; + s4 = void 0; + } else { + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parsePopIndent$(); + if (s5 !== peg$FAILED) { + s6 = peg$parseBlockQuote(); + if (s6 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c168(s1, s2, s3, s6); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseInnerBlockQuote() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = peg$parseBlockQuoteBody(); + if (s1 === peg$FAILED) { + s1 = peg$parseFailbackIndent$(); + } + if (s1 !== peg$FAILED) { + s2 = peg$parseAttribution(); + if (s2 === peg$FAILED) { + s2 = null; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c169(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseSimpleBlockQuote() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = peg$parseBlankLines(); + if (s1 === peg$FAILED) { + s1 = null; + } + if (s1 !== peg$FAILED) { + s2 = peg$parsePushFirstIndent$(); + if (s2 !== peg$FAILED) { + s3 = peg$parseBlockQuoteBody(); + if (s3 === peg$FAILED) { + s3 = peg$parseFailbackIndent$(); + } + if (s3 !== peg$FAILED) { + s4 = peg$parseAttribution(); + if (s4 === peg$FAILED) { + s4 = null; + } + if (s4 !== peg$FAILED) { + s5 = peg$parsePopIndent$(); + if (s5 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c170(s1, s2, s3, s4); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseBlockQuoteBody() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = peg$parseBodyElementExceptBlockQuote(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseAttribution(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseBodyElement(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseAttribution(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseBodyElement(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c171(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseAttribution() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8; + + s0 = peg$currPos; + s1 = peg$parseBlankLines(); + if (s1 !== peg$FAILED) { + s2 = peg$parseSameIndent(); + if (s2 !== peg$FAILED) { + if (input.substr(peg$currPos, 3) === peg$c172) { + s3 = peg$c172; + peg$currPos += 3; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c173); + } + } + if (s3 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c174) { + s3 = peg$c174; + peg$currPos += 2; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c175); + } + } + if (s3 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 8212) { + s3 = peg$c176; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c177); + } + } + } + } + if (s3 !== peg$FAILED) { + s4 = []; + s5 = peg$parseWhitespace(); + while (s5 !== peg$FAILED) { + s4.push(s5); + s5 = peg$parseWhitespace(); + } + if (s4 !== peg$FAILED) { + s5 = peg$currPos; + peg$silentFails++; + s6 = peg$currPos; + s7 = peg$currPos; + peg$silentFails++; + s8 = peg$parseEndline(); + peg$silentFails--; + if (s8 === peg$FAILED) { + s7 = void 0; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + if (s7 !== peg$FAILED) { + if (input.length > peg$currPos) { + s8 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s8 !== peg$FAILED) { + s7 = [s7, s8]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + peg$silentFails--; + if (s6 !== peg$FAILED) { + peg$currPos = s5; + s5 = void 0; + } else { + s5 = peg$FAILED; + } + if (s5 !== peg$FAILED) { + s6 = peg$parseAttributionBodyWithIndent(); + if (s6 === peg$FAILED) { + s6 = peg$parseAttributionBodyWithoutIndent(); + } + if (s6 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c178(s1, s6); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parsePushAttributionIndent$() { + var s0, s1, s2, s3; + + s0 = peg$currPos; + peg$silentFails++; + s1 = peg$currPos; + s2 = peg$parseRawLine(); + if (s2 !== peg$FAILED) { + s3 = peg$parsePushFirstIndent$(); + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + peg$silentFails--; + if (s1 !== peg$FAILED) { + peg$currPos = s0; + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseAttributionBodyWithIndent() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$parsePushAttributionIndent$(); + if (s1 !== peg$FAILED) { + s2 = peg$parseSkipIndentCheck$(); + if (s2 !== peg$FAILED) { + s3 = peg$parseParagraph(); + if (s3 === peg$FAILED) { + s3 = peg$parseFailbackIndent$(); + } + if (s3 !== peg$FAILED) { + s4 = peg$parsePopIndent$(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c179(s3); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseAttributionBodyWithoutIndent() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = peg$parseSkipIndentCheck$(); + if (s1 !== peg$FAILED) { + s2 = peg$parseParagraph(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c180(s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseComment() { + var s0; + + s0 = peg$parseCommentStartFromFirstLine(); + if (s0 === peg$FAILED) { + s0 = peg$parseCommentStartFromNextLine(); + } + + return s0; + } + + function peg$parseCommentStartFromFirstLine() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8; + + s0 = peg$currPos; + s1 = peg$parseSameIndent(); + if (s1 !== peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c181) { + s2 = peg$c181; + peg$currPos += 2; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c182); + } + } + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$parseWhitespace(); + if (s4 !== peg$FAILED) { + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseWhitespace(); + } + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseNonspacechar(); + peg$silentFails--; + if (s5 !== peg$FAILED) { + peg$currPos = s4; + s4 = void 0; + } else { + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseRawLine(); + if (s5 !== peg$FAILED) { + s6 = peg$currPos; + s7 = peg$parseBlankLines(); + if (s7 === peg$FAILED) { + s7 = null; + } + if (s7 !== peg$FAILED) { + s8 = peg$parseCommentBlock(); + if (s8 !== peg$FAILED) { + s7 = [s7, s8]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + if (s6 === peg$FAILED) { + s6 = null; + } + if (s6 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c183(s5, s6); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseCommentStartFromNextLine() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = peg$parseSameIndent(); + if (s1 !== peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c181) { + s2 = peg$c181; + peg$currPos += 2; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c182); + } + } + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$parseWhitespace(); + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseWhitespace(); + } + if (s3 !== peg$FAILED) { + s4 = peg$parseNewline(); + if (s4 !== peg$FAILED) { + s5 = peg$parseCommentBlock(); + if (s5 === peg$FAILED) { + s5 = null; + } + if (s5 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c184(s5); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseCommentBlock() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = peg$parsePushCommonIndent$(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = []; + s5 = peg$parseWhitespace(); + while (s5 !== peg$FAILED) { + s4.push(s5); + s5 = peg$parseWhitespace(); + } + if (s4 !== peg$FAILED) { + s5 = peg$parseNewline(); + if (s5 !== peg$FAILED) { + peg$savedPos = s3; + s4 = peg$c185(s1); + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = peg$currPos; + s4 = peg$parseSameOrDeepIndent(); + if (s4 !== peg$FAILED) { + s5 = peg$parseNotEmptyRawLine(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + if (s3 !== peg$FAILED) { + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = []; + s5 = peg$parseWhitespace(); + while (s5 !== peg$FAILED) { + s4.push(s5); + s5 = peg$parseWhitespace(); + } + if (s4 !== peg$FAILED) { + s5 = peg$parseNewline(); + if (s5 !== peg$FAILED) { + peg$savedPos = s3; + s4 = peg$c185(s1); + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = peg$currPos; + s4 = peg$parseSameOrDeepIndent(); + if (s4 !== peg$FAILED) { + s5 = peg$parseNotEmptyRawLine(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + } + } else { + s2 = peg$FAILED; + } + if (s2 === peg$FAILED) { + s2 = peg$parseFailbackIndent$(); + } + if (s2 !== peg$FAILED) { + s3 = peg$parsePopIndent$(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c186(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseInlineMarkupFollowing() { + var s0, s1, s2; + + s0 = peg$parseEndline(); + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.length > peg$currPos) { + s1 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c187(s1); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + return s0; + } + + function peg$parseInlineMarkup() { + var s0; + + s0 = peg$parseStrongEmphasis(); + if (s0 === peg$FAILED) { + s0 = peg$parseEmphasis(); + if (s0 === peg$FAILED) { + s0 = peg$parseInlineLiteral(); + if (s0 === peg$FAILED) { + s0 = peg$parseInlineInternalTarget(); + if (s0 === peg$FAILED) { + s0 = peg$parseHyperlinkReference(); + if (s0 === peg$FAILED) { + s0 = peg$parseInterpretedText(); + if (s0 === peg$FAILED) { + s0 = peg$parseSubstitutionReference(); + if (s0 === peg$FAILED) { + s0 = peg$parseFootnoteReference(); + if (s0 === peg$FAILED) { + s0 = peg$parseCitationReference(); + } + } + } + } + } + } + } + } + + return s0; + } + + function peg$parseInlineMarkupWithoutNewline() { + var s0; + + s0 = peg$parseStrongEmphasisWithoutNewline(); + if (s0 === peg$FAILED) { + s0 = peg$parseEmphasisWithoutNewline(); + if (s0 === peg$FAILED) { + s0 = peg$parseInlineLiteralWithoutNewline(); + } + } + + return s0; + } + + function peg$parseMarkupEndString() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + peg$savedPos = peg$currPos; + s1 = peg$c188(); + if (s1) { + s1 = void 0; + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + if (input.length > peg$currPos) { + s2 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s2 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s3 = peg$c189(s2); + if (s3) { + s3 = void 0; + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s1 = [s1, s2, s3]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + peg$savedPos = peg$currPos; + s1 = peg$c190(); + if (s1) { + s1 = void 0; + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + if (input.length > peg$currPos) { + s3 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s3 !== peg$FAILED) { + if (input.length > peg$currPos) { + s4 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s3 = peg$c191(s2); + if (s3) { + s3 = void 0; + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s1 = [s1, s2, s3]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + peg$savedPos = peg$currPos; + s1 = peg$c192(); + if (s1) { + s1 = void 0; + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + if (input.length > peg$currPos) { + s3 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s3 !== peg$FAILED) { + if (input.length > peg$currPos) { + s4 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s4 !== peg$FAILED) { + if (input.length > peg$currPos) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s3 = peg$c191(s2); + if (s3) { + s3 = void 0; + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s1 = [s1, s2, s3]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + } + + return s0; + } + + function peg$parseMarkupTextWithoutNewline() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10; + + s0 = peg$currPos; + s1 = []; + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseNewline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$currPos; + s6 = peg$currPos; + peg$silentFails++; + s7 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s7 === peg$FAILED) { + s6 = void 0; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s7 = peg$c193(); + if (s7) { + s7 = void 0; + } else { + s7 = peg$FAILED; + } + if (s7 === peg$FAILED) { + s7 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 92) { + s8 = peg$c87; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c88); + } + } + peg$silentFails--; + if (s8 === peg$FAILED) { + s7 = void 0; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } + if (s7 !== peg$FAILED) { + if (input.length > peg$currPos) { + s8 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s8 !== peg$FAILED) { + s9 = peg$parseMarkupEndString(); + if (s9 !== peg$FAILED) { + s10 = peg$parseInlineMarkupFollowing(); + if (s10 !== peg$FAILED) { + s6 = [s6, s7, s8, s9, s10]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + if (input.length > peg$currPos) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseNewline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$currPos; + s6 = peg$currPos; + peg$silentFails++; + s7 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s7 === peg$FAILED) { + s6 = void 0; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s7 = peg$c193(); + if (s7) { + s7 = void 0; + } else { + s7 = peg$FAILED; + } + if (s7 === peg$FAILED) { + s7 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 92) { + s8 = peg$c87; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c88); + } + } + peg$silentFails--; + if (s8 === peg$FAILED) { + s7 = void 0; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } + if (s7 !== peg$FAILED) { + if (input.length > peg$currPos) { + s8 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s8 !== peg$FAILED) { + s9 = peg$parseMarkupEndString(); + if (s9 !== peg$FAILED) { + s10 = peg$parseInlineMarkupFollowing(); + if (s10 !== peg$FAILED) { + s6 = [s6, s7, s8, s9, s10]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + if (input.length > peg$currPos) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c194(s1); + } + s0 = s1; + + return s0; + } + + function peg$parseMarkupTextWithoutIndent() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = peg$parseMarkupTextWithoutNewline(); + if (s1 !== peg$FAILED) { + s2 = peg$parseNewline(); + if (s2 === peg$FAILED) { + s2 = null; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c195(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseMarkupTailWithoutNewline() { + var s0, s1, s2, s3, s4, s5, s6, s7; + + s0 = peg$currPos; + s1 = peg$parseMarkupTextWithoutNewline(); + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseEndline(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = void 0; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + if (input.length > peg$currPos) { + s4 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s4 !== peg$FAILED) { + s5 = peg$parseMarkupEndString(); + if (s5 !== peg$FAILED) { + s6 = peg$currPos; + peg$silentFails++; + s7 = peg$parseInlineMarkupFollowing(); + peg$silentFails--; + if (s7 !== peg$FAILED) { + peg$currPos = s6; + s6 = void 0; + } else { + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c196(s1, s4); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseMarkupTail() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8; + + s0 = peg$currPos; + s1 = peg$parseMarkupTextWithoutIndent(); + if (s1 === peg$FAILED) { + s1 = null; + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parseSameIndent(); + if (s4 !== peg$FAILED) { + s5 = peg$parseMarkupTextWithoutIndent(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parseSameIndent(); + if (s4 !== peg$FAILED) { + s5 = peg$parseMarkupTextWithoutIndent(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + if (input.length > peg$currPos) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parseMarkupEndString(); + if (s6 !== peg$FAILED) { + s7 = peg$currPos; + peg$silentFails++; + s8 = peg$parseInlineMarkupFollowing(); + peg$silentFails--; + if (s8 !== peg$FAILED) { + peg$currPos = s7; + s7 = void 0; + } else { + s7 = peg$FAILED; + } + if (s7 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c197(s1, s2, s5); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseEmphasis() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 42) { + s2 = peg$c59; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c60); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 42) { + s4 = peg$c59; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c60); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s2 = [s2, s3, s4]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c198(); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseMarkupTail(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c199(s3); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseEmphasisWithoutNewline() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 42) { + s2 = peg$c59; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c60); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 42) { + s4 = peg$c59; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c60); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s2 = [s2, s3, s4]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c198(); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseMarkupTailWithoutNewline(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c199(s3); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseStrongEmphasis() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c200) { + s2 = peg$c200; + peg$currPos += 2; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c201); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c202(); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseMarkupTail(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c203(s3); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseStrongEmphasisWithoutNewline() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c200) { + s2 = peg$c200; + peg$currPos += 2; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c201); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c202(); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseMarkupTailWithoutNewline(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c203(s3); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseInterpretedText() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8; + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 58) { + s2 = peg$c71; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c72); + } + } + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$currPos; + s5 = peg$currPos; + peg$silentFails++; + s6 = peg$parseEndline(); + peg$silentFails--; + if (s6 === peg$FAILED) { + s5 = void 0; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + if (s5 !== peg$FAILED) { + s6 = peg$currPos; + peg$silentFails++; + s7 = peg$parseWhitespace(); + peg$silentFails--; + if (s7 === peg$FAILED) { + s6 = void 0; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + s7 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 58) { + s8 = peg$c71; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c72); + } + } + peg$silentFails--; + if (s8 === peg$FAILED) { + s7 = void 0; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + if (s7 !== peg$FAILED) { + if (input.length > peg$currPos) { + s8 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s8 !== peg$FAILED) { + s5 = [s5, s6, s7, s8]; + s4 = s5; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$currPos; + s5 = peg$currPos; + peg$silentFails++; + s6 = peg$parseEndline(); + peg$silentFails--; + if (s6 === peg$FAILED) { + s5 = void 0; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + if (s5 !== peg$FAILED) { + s6 = peg$currPos; + peg$silentFails++; + s7 = peg$parseWhitespace(); + peg$silentFails--; + if (s7 === peg$FAILED) { + s6 = void 0; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + s7 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 58) { + s8 = peg$c71; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c72); + } + } + peg$silentFails--; + if (s8 === peg$FAILED) { + s7 = void 0; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + if (s7 !== peg$FAILED) { + if (input.length > peg$currPos) { + s8 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s8 !== peg$FAILED) { + s5 = [s5, s6, s7, s8]; + s4 = s5; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 58) { + s4 = peg$c71; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c72); + } + } + if (s4 !== peg$FAILED) { + s2 = [s2, s3, s4]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 === peg$FAILED) { + s1 = null; + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 96) { + s3 = peg$c95; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c96); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s3 = peg$c204(s1); + if (s3) { + s3 = void 0; + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$parseMarkupTail(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c205(s1, s4); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseInlineLiteral() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c206) { + s2 = peg$c206; + peg$currPos += 2; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c207); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c208(); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseMarkupTail(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c209(s3); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseInlineLiteralWithoutNewline() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c206) { + s2 = peg$c206; + peg$currPos += 2; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c207); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c208(); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseMarkupTailWithoutNewline(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c209(s3); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseSubstitutionReference() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 124) { + s2 = peg$c99; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c100); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c210(); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseMarkupTail(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c211(s3); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseInlineInternalTarget() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c212) { + s2 = peg$c212; + peg$currPos += 2; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c213); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c214(); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseMarkupTail(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c215(s3); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseFootnoteLabel() { + var s0, s1, s2, s3; + + s0 = peg$currPos; + s1 = []; + if (peg$c142.test(input.charAt(peg$currPos))) { + s2 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c143); + } + } + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + if (peg$c142.test(input.charAt(peg$currPos))) { + s2 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c143); + } + } + } + } else { + s1 = peg$FAILED; + } + if (s1 === peg$FAILED) { + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 35) { + s2 = peg$c45; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c46); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$parseReferenceName(); + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 35) { + s1 = peg$c45; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c46); + } + } + if (s1 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 42) { + s1 = peg$c59; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c60); + } + } + } + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c216(s1); + } + s0 = s1; + + return s0; + } + + function peg$parseFootnoteReference() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 91) { + s1 = peg$c85; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c86); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parseFootnoteLabel(); + if (s2 !== peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c217) { + s3 = peg$c217; + peg$currPos += 2; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c218); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseInlineMarkupFollowing(); + peg$silentFails--; + if (s5 !== peg$FAILED) { + peg$currPos = s4; + s4 = void 0; + } else { + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c219(s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseCitationReference() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 91) { + s1 = peg$c85; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c86); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parseReferenceName(); + if (s2 !== peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c217) { + s3 = peg$c217; + peg$currPos += 2; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c218); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseInlineMarkupFollowing(); + peg$silentFails--; + if (s5 !== peg$FAILED) { + peg$currPos = s4; + s4 = void 0; + } else { + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c220(s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseHyperlinkReference() { + var s0; + + s0 = peg$parseAnonymousHyperlinkReference(); + if (s0 === peg$FAILED) { + s0 = peg$parseAnonymousSimpleHyperlinkReference(); + if (s0 === peg$FAILED) { + s0 = peg$parseNamedHyperlinkReference(); + if (s0 === peg$FAILED) { + s0 = peg$parseNamedSimpleHyperlinkReference(); + } + } + } + + return s0; + } + + function peg$parseNamedHyperlinkReference() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 96) { + s2 = peg$c95; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c96); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c221(); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseMarkupTail(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c222(s3); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseNamedSimpleHyperlinkReference() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$parseHyperlinkReferenceName(); + if (s1 !== peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 95) { + s2 = peg$c93; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c94); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseInlineMarkupFollowing(); + peg$silentFails--; + if (s4 !== peg$FAILED) { + peg$currPos = s3; + s3 = void 0; + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c223(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseAnonymousHyperlinkReference() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 96) { + s2 = peg$c95; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c96); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseNormalizedToWhitespace(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c224(); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseMarkupTail(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c225(s3); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseAnonymousSimpleHyperlinkReference() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$parseHyperlinkReferenceName(); + if (s1 !== peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c226) { + s2 = peg$c226; + peg$currPos += 2; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c227); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseInlineMarkupFollowing(); + peg$silentFails--; + if (s4 !== peg$FAILED) { + peg$currPos = s3; + s3 = void 0; + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c228(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseReferenceName() { + var s0, s1, s2, s3; + + s0 = peg$currPos; + s1 = peg$parseAlphanumericAscii(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$parseAlphanumericAscii(); + if (s3 === peg$FAILED) { + if (peg$c229.test(input.charAt(peg$currPos))) { + s3 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c230); + } + } + } + if (s3 !== peg$FAILED) { + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseAlphanumericAscii(); + if (s3 === peg$FAILED) { + if (peg$c229.test(input.charAt(peg$currPos))) { + s3 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c230); + } + } + } + } + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c231(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseHyperlinkReferenceName() { + var s0, s1, s2, s3; + + s0 = peg$currPos; + s1 = peg$parseAlphanumericAscii(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$parseAlphanumericAscii(); + if (s3 === peg$FAILED) { + if (peg$c232.test(input.charAt(peg$currPos))) { + s3 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c233); + } + } + } + if (s3 !== peg$FAILED) { + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseAlphanumericAscii(); + if (s3 === peg$FAILED) { + if (peg$c232.test(input.charAt(peg$currPos))) { + s3 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c233); + } + } + } + } + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c231(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseLiteralBlock() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = peg$parseSameIndent(); + if (s1 !== peg$FAILED) { + s2 = peg$parseLiteralBlockWithoutIndent(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c234(s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseLiteralBlockWithoutIndent() { + var s0; + + s0 = peg$parseIndentedLiteralBlockWithoutIndent(); + if (s0 === peg$FAILED) { + s0 = peg$parseQuotedLiteralBlockWithoutIndent(); + } + + return s0; + } + + function peg$parseIndentedLiteralBlockWithoutIndent() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13; + + s0 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c235) { + s1 = peg$c235; + peg$currPos += 2; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c236); + } + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$parseWhitespace(); + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseWhitespace(); + } + if (s2 !== peg$FAILED) { + s3 = peg$parseNewline(); + if (s3 !== peg$FAILED) { + s4 = peg$parseBlankLines(); + if (s4 !== peg$FAILED) { + s5 = peg$parsePushCommonIndent$(); + if (s5 !== peg$FAILED) { + s6 = []; + s7 = peg$currPos; + s8 = []; + s9 = peg$parseWhitespace(); + while (s9 !== peg$FAILED) { + s8.push(s9); + s9 = peg$parseWhitespace(); + } + if (s8 !== peg$FAILED) { + s9 = peg$parseNewline(); + if (s9 !== peg$FAILED) { + s10 = peg$currPos; + peg$silentFails++; + s11 = peg$currPos; + s12 = peg$parseBlankLines(); + if (s12 === peg$FAILED) { + s12 = null; + } + if (s12 !== peg$FAILED) { + s13 = peg$parseShallowIndent(); + if (s13 !== peg$FAILED) { + s12 = [s12, s13]; + s11 = s12; + } else { + peg$currPos = s11; + s11 = peg$FAILED; + } + } else { + peg$currPos = s11; + s11 = peg$FAILED; + } + peg$silentFails--; + if (s11 === peg$FAILED) { + s10 = void 0; + } else { + peg$currPos = s10; + s10 = peg$FAILED; + } + if (s10 !== peg$FAILED) { + s8 = [s8, s9, s10]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + if (s7 === peg$FAILED) { + s7 = peg$currPos; + s8 = peg$currPos; + peg$silentFails++; + s9 = peg$parseSameOrDeepIndent(); + peg$silentFails--; + if (s9 !== peg$FAILED) { + peg$currPos = s8; + s8 = void 0; + } else { + s8 = peg$FAILED; + } + if (s8 !== peg$FAILED) { + s9 = []; + s10 = peg$parseWhitespace(); + if (s10 !== peg$FAILED) { + while (s10 !== peg$FAILED) { + s9.push(s10); + s10 = peg$parseWhitespace(); + } + } else { + s9 = peg$FAILED; + } + if (s9 !== peg$FAILED) { + s10 = peg$parseRawLine(); + if (s10 !== peg$FAILED) { + s8 = [s8, s9, s10]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } + if (s7 !== peg$FAILED) { + while (s7 !== peg$FAILED) { + s6.push(s7); + s7 = peg$currPos; + s8 = []; + s9 = peg$parseWhitespace(); + while (s9 !== peg$FAILED) { + s8.push(s9); + s9 = peg$parseWhitespace(); + } + if (s8 !== peg$FAILED) { + s9 = peg$parseNewline(); + if (s9 !== peg$FAILED) { + s10 = peg$currPos; + peg$silentFails++; + s11 = peg$currPos; + s12 = peg$parseBlankLines(); + if (s12 === peg$FAILED) { + s12 = null; + } + if (s12 !== peg$FAILED) { + s13 = peg$parseShallowIndent(); + if (s13 !== peg$FAILED) { + s12 = [s12, s13]; + s11 = s12; + } else { + peg$currPos = s11; + s11 = peg$FAILED; + } + } else { + peg$currPos = s11; + s11 = peg$FAILED; + } + peg$silentFails--; + if (s11 === peg$FAILED) { + s10 = void 0; + } else { + peg$currPos = s10; + s10 = peg$FAILED; + } + if (s10 !== peg$FAILED) { + s8 = [s8, s9, s10]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + if (s7 === peg$FAILED) { + s7 = peg$currPos; + s8 = peg$currPos; + peg$silentFails++; + s9 = peg$parseSameOrDeepIndent(); + peg$silentFails--; + if (s9 !== peg$FAILED) { + peg$currPos = s8; + s8 = void 0; + } else { + s8 = peg$FAILED; + } + if (s8 !== peg$FAILED) { + s9 = []; + s10 = peg$parseWhitespace(); + if (s10 !== peg$FAILED) { + while (s10 !== peg$FAILED) { + s9.push(s10); + s10 = peg$parseWhitespace(); + } + } else { + s9 = peg$FAILED; + } + if (s9 !== peg$FAILED) { + s10 = peg$parseRawLine(); + if (s10 !== peg$FAILED) { + s8 = [s8, s9, s10]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } + } + } else { + s6 = peg$FAILED; + } + if (s6 === peg$FAILED) { + s6 = peg$parseFailbackIndent$(); + } + if (s6 !== peg$FAILED) { + s7 = peg$parsePopIndent$(); + if (s7 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c237(s5, s6); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseQuotedLiteralBlockWithoutIndent() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10; + + s0 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c235) { + s1 = peg$c235; + peg$currPos += 2; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c236); + } + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$parseWhitespace(); + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseWhitespace(); + } + if (s2 !== peg$FAILED) { + s3 = peg$parseNewline(); + if (s3 !== peg$FAILED) { + s4 = peg$parseBlankLines(); + if (s4 !== peg$FAILED) { + s5 = peg$parseSetQuoting$(); + if (s5 !== peg$FAILED) { + s6 = []; + s7 = peg$currPos; + s8 = peg$parseSameIndent(); + if (s8 !== peg$FAILED) { + s9 = peg$parseIsValidQuoting$(); + if (s9 !== peg$FAILED) { + s10 = peg$parseNotEmptyRawLine(); + if (s10 !== peg$FAILED) { + s8 = [s8, s9, s10]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + if (s7 !== peg$FAILED) { + while (s7 !== peg$FAILED) { + s6.push(s7); + s7 = peg$currPos; + s8 = peg$parseSameIndent(); + if (s8 !== peg$FAILED) { + s9 = peg$parseIsValidQuoting$(); + if (s9 !== peg$FAILED) { + s10 = peg$parseNotEmptyRawLine(); + if (s10 !== peg$FAILED) { + s8 = [s8, s9, s10]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } + } else { + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + s7 = peg$currPos; + peg$silentFails++; + s8 = peg$parseBlankLines(); + peg$silentFails--; + if (s8 !== peg$FAILED) { + peg$currPos = s7; + s7 = void 0; + } else { + s7 = peg$FAILED; + } + if (s7 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c238(s6); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseQuoting() { + var s0; + + if (input.charCodeAt(peg$currPos) === 33) { + s0 = peg$c41; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c42); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 34) { + s0 = peg$c43; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c44); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 35) { + s0 = peg$c45; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c46); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 36) { + s0 = peg$c47; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c48); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 37) { + s0 = peg$c49; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c50); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 38) { + s0 = peg$c51; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c52); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 39) { + s0 = peg$c53; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c54); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 40) { + s0 = peg$c55; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c56); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 41) { + s0 = peg$c57; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c58); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 42) { + s0 = peg$c59; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c60); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 43) { + s0 = peg$c61; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c62); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 44) { + s0 = peg$c63; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c64); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 45) { + s0 = peg$c65; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c66); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 46) { + s0 = peg$c67; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c68); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 47) { + s0 = peg$c69; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c70); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 58) { + s0 = peg$c71; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c72); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 59) { + s0 = peg$c73; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c74); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 60) { + s0 = peg$c75; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c76); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 61) { + s0 = peg$c77; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c78); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 62) { + s0 = peg$c79; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c80); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 63) { + s0 = peg$c81; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c82); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 64) { + s0 = peg$c83; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c84); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 91) { + s0 = peg$c85; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c86); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 92) { + s0 = peg$c87; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c88); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 93) { + s0 = peg$c89; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c90); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 94) { + s0 = peg$c91; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c92); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 95) { + s0 = peg$c93; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c94); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 96) { + s0 = peg$c95; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c96); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 123) { + s0 = peg$c97; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c98); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 124) { + s0 = peg$c99; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c100); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 125) { + s0 = peg$c101; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c102); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 126) { + s0 = peg$c103; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c104); + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + + return s0; + } + + function peg$parseSetQuoting$() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + peg$silentFails++; + s1 = peg$currPos; + s2 = peg$parseSameIndent(); + if (s2 !== peg$FAILED) { + s3 = peg$parseQuoting(); + if (s3 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s4 = peg$c239(s3); + if (s4) { + s4 = void 0; + } else { + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s2 = [s2, s3, s4]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + peg$silentFails--; + if (s1 !== peg$FAILED) { + peg$currPos = s0; + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseIsValidQuoting$() { + var s0, s1, s2, s3; + + s0 = peg$currPos; + peg$silentFails++; + s1 = peg$currPos; + s2 = peg$parseQuoting(); + if (s2 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s3 = peg$c240(s2); + if (s3) { + s3 = void 0; + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + peg$silentFails--; + if (s1 !== peg$FAILED) { + peg$currPos = s0; + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseLineBlock() { + var s0; + + s0 = peg$parseNestedLineBlock(); + if (s0 === peg$FAILED) { + s0 = peg$parseSimpleLineBlock(); + } + + return s0; + } + + function peg$parseNestedLineBlock() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = peg$parsePushLineBlockIndent$(); + if (s1 !== peg$FAILED) { + s2 = peg$parseLine(); + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$parseLine(); + if (s4 === peg$FAILED) { + s4 = peg$parseLineBlock(); + } + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseLine(); + if (s4 === peg$FAILED) { + s4 = peg$parseLineBlock(); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$parsePopLineBlockIndent$(); + if (s4 !== peg$FAILED) { + s5 = peg$parseLineBlock(); + if (s5 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c241(s1, s2, s3, s5); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseSimpleLineBlock() { + var s0, s1, s2, s3; + + s0 = peg$currPos; + s1 = peg$parsePushLineBlockIndent$(); + if (s1 !== peg$FAILED) { + s2 = peg$parseLineBolockMain(); + if (s2 === peg$FAILED) { + s2 = peg$parseFailbackLineBlockIndent$(); + } + if (s2 !== peg$FAILED) { + s3 = peg$parsePopLineBlockIndent$(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c242(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseLineBolockMain() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$parseLine(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$parseLine(); + if (s3 === peg$FAILED) { + s3 = peg$parseLineBlock(); + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseLine(); + if (s3 === peg$FAILED) { + s3 = peg$parseLineBlock(); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseBlankLines(); + peg$silentFails--; + if (s4 !== peg$FAILED) { + peg$currPos = s3; + s3 = void 0; + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c243(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseLine() { + var s0; + + s0 = peg$parseNonEmptyLine(); + if (s0 === peg$FAILED) { + s0 = peg$parseEmptyLine(); + } + + return s0; + } + + function peg$parseNonEmptyLine() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = peg$parseSameIndent(); + if (s1 !== peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c244) { + s2 = peg$c244; + peg$currPos += 2; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c245); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$parseSameLineBlockIndent(); + if (s3 !== peg$FAILED) { + s4 = peg$parseOnelineParagraph(); + if (s4 !== peg$FAILED) { + s5 = peg$parseNewline(); + if (s5 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c246(s4); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseEmptyLine() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = peg$parseSameIndent(); + if (s1 !== peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 124) { + s2 = peg$c99; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c100); + } + } + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$parseWhitespace(); + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseWhitespace(); + } + if (s3 !== peg$FAILED) { + s4 = peg$parseNewline(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c247(); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseSameLineBlockIndent() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = []; + s2 = peg$parseWhitespace(); + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$parseWhitespace(); + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c248(s1); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c24(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseDeepLineBlockIndent() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = []; + s2 = peg$parseWhitespace(); + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$parseWhitespace(); + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c249(s1); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c24(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parsePushLineBlockIndent$() { + var s0, s1, s2, s3, s4, s5, s6, s7; + + s0 = peg$currPos; + s1 = peg$currPos; + peg$silentFails++; + s2 = peg$currPos; + s3 = []; + s4 = peg$parseEmptyLine(); + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseEmptyLine(); + } + if (s3 !== peg$FAILED) { + s4 = peg$parseSameIndent(); + if (s4 !== peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c244) { + s5 = peg$c244; + peg$currPos += 2; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c245); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parseDeepLineBlockIndent(); + if (s6 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s7 = peg$c250(s6); + if (s7) { + s7 = void 0; + } else { + s7 = peg$FAILED; + } + if (s7 !== peg$FAILED) { + s3 = [s3, s4, s5, s6, s7]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + peg$silentFails--; + if (s2 !== peg$FAILED) { + peg$currPos = s1; + s1 = void 0; + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c251(); + } + s0 = s1; + + return s0; + } + + function peg$parsePopLineBlockIndent$() { + var s0; + + peg$savedPos = peg$currPos; + s0 = peg$c252(); + if (s0) { + s0 = void 0; + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseFailbackLineBlockIndent$() { + var s0, s1, s2; + + s0 = peg$currPos; + s1 = peg$parsePopLineBlockIndent$(); + if (s1 !== peg$FAILED) { + s2 = peg$parseFail$(); + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseInlineMarkupPreceding() { + var s0, s1, s2; + + s0 = peg$currPos; + if (input.length > peg$currPos) { + s1 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s2 = peg$c253(s1); + if (s2) { + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c254(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseInlineMarkupStartString() { + var s0; + + if (input.substr(peg$currPos, 2) === peg$c200) { + s0 = peg$c200; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c201); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 42) { + s0 = peg$c59; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c60); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c206) { + s0 = peg$c206; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c207); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 96) { + s0 = peg$c95; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c96); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 124) { + s0 = peg$c99; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c100); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c212) { + s0 = peg$c212; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c213); + } + } + } + } + } + } + } + + return s0; + } + + function peg$parseInlineMarkupBeggining() { + var s0, s1, s2, s3, s4, s5, s6; + + s0 = peg$currPos; + s1 = peg$parseInlineMarkupPreceding(); + if (s1 !== peg$FAILED) { + s2 = peg$parseInlineMarkupStartString(); + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseWhitespace(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + if (input.length > peg$currPos) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s5 !== peg$FAILED) { + peg$savedPos = peg$currPos; + s6 = peg$c255(s1, s2, s5); + if (s6) { + s6 = void 0; + } else { + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + s1 = [s1, s2, s3, s4, s5, s6]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseInlineMarkupPreceding(); + if (s1 !== peg$FAILED) { + s2 = peg$parseInterpretedText(); + if (s2 === peg$FAILED) { + s2 = peg$parseFootnoteReference(); + if (s2 === peg$FAILED) { + s2 = peg$parseCitationReference(); + if (s2 === peg$FAILED) { + s2 = peg$parseAnonymousSimpleHyperlinkReference(); + if (s2 === peg$FAILED) { + s2 = peg$parseNamedSimpleHyperlinkReference(); + } + } + } + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + return s0; + } + + function peg$parseParagraph() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = []; + s2 = peg$currPos; + s3 = peg$parseSameIndent(); + if (s3 !== peg$FAILED) { + s4 = peg$parseParagraphBlock(); + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$currPos; + s3 = peg$parseSameIndent(); + if (s3 !== peg$FAILED) { + s4 = peg$parseParagraphBlock(); + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$currPos; + s4 = peg$parseLiteralBlockWithoutIndent(); + if (s4 !== peg$FAILED) { + s5 = peg$parseSkipIndentCheck$(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = peg$parseBlankLines(); + if (s3 === peg$FAILED) { + s3 = peg$parseEndIndent(); + } + } + peg$silentFails--; + if (s3 !== peg$FAILED) { + peg$currPos = s2; + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c256(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseParagraphBlock() { + var s0, s1, s2, s3, s4; + + s0 = peg$currPos; + s1 = []; + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseBlankLines(); + if (s4 === peg$FAILED) { + s4 = peg$parseLiteralBlockWithoutIndent(); + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$parseInlineMarkup(); + if (s4 === peg$FAILED) { + s4 = peg$parseParagraphText(); + } + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseBlankLines(); + if (s4 === peg$FAILED) { + s4 = peg$parseLiteralBlockWithoutIndent(); + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$parseInlineMarkup(); + if (s4 === peg$FAILED) { + s4 = peg$parseParagraphText(); + } + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$parseWhitespace(); + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseWhitespace(); + } + if (s2 !== peg$FAILED) { + s3 = peg$parseEndline(); + if (s3 === peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseLiteralBlockWithoutIndent(); + peg$silentFails--; + if (s4 !== peg$FAILED) { + peg$currPos = s3; + s3 = void 0; + } else { + s3 = peg$FAILED; + } + } + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c257(s1, s3); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseParagraphText() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = []; + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + if (s4 === peg$FAILED) { + s4 = peg$parseLiteralBlockWithoutIndent(); + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseInlineMarkupBeggining(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + if (input.length > peg$currPos) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + if (s4 === peg$FAILED) { + s4 = peg$parseLiteralBlockWithoutIndent(); + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseInlineMarkupBeggining(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + if (input.length > peg$currPos) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseEndline(); + if (s3 === peg$FAILED) { + s3 = peg$parseLiteralBlockWithoutIndent(); + } + peg$silentFails--; + if (s3 !== peg$FAILED) { + peg$currPos = s2; + s2 = void 0; + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c194(s1); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = []; + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseInlineMarkupBeggining(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + if (input.length > peg$currPos) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseInlineMarkupBeggining(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + if (input.length > peg$currPos) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parseInlineMarkupPreceding(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c258(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + return s0; + } + + function peg$parseOnelineParagraph() { + var s0, s1; + + s0 = []; + s1 = peg$parseInlineMarkupWithoutNewline(); + if (s1 === peg$FAILED) { + s1 = peg$parseOnelineText(); + } + if (s1 !== peg$FAILED) { + while (s1 !== peg$FAILED) { + s0.push(s1); + s1 = peg$parseInlineMarkupWithoutNewline(); + if (s1 === peg$FAILED) { + s1 = peg$parseOnelineText(); + } + } + } else { + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseOnelineText() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = []; + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseInlineMarkupBeggining(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + if (input.length > peg$currPos) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseInlineMarkupBeggining(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + if (input.length > peg$currPos) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } + } else { + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$parseInlineMarkupPreceding(); + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 === peg$FAILED) { + s2 = null; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c259(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = []; + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseInlineMarkupBeggining(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + if (input.length > peg$currPos) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseInlineMarkupBeggining(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + if (input.length > peg$currPos) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c2); + } + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + s3 = peg$currPos; + peg$silentFails++; + s4 = peg$parseEndline(); + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = void 0; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$parseInlineMarkupPreceding(); + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c260(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + return s0; + } + + function peg$parseDirectiveType() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = []; + s2 = peg$currPos; + if (peg$c261.test(input.charAt(peg$currPos))) { + s3 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c262); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + if (input.substr(peg$currPos, 2) === peg$c235) { + s5 = peg$c235; + peg$currPos += 2; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c236); + } + } + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + if (peg$c263.test(input.charAt(peg$currPos))) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c264); + } + } + if (s5 === peg$FAILED) { + s5 = null; + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$currPos; + if (peg$c261.test(input.charAt(peg$currPos))) { + s3 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c262); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + if (input.substr(peg$currPos, 2) === peg$c235) { + s5 = peg$c235; + peg$currPos += 2; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c236); + } + } + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + if (peg$c263.test(input.charAt(peg$currPos))) { + s5 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c264); + } + } + if (s5 === peg$FAILED) { + s5 = null; + } + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } + if (s1 !== peg$FAILED) { + if (peg$c261.test(input.charAt(peg$currPos))) { + s2 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c262); + } + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c265(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseDirective() { + var s0; + + s0 = peg$parseDirectiveStartFromFirstLine(); + if (s0 === peg$FAILED) { + s0 = peg$parseDirectiveStartFromNextLine(); + } + + return s0; + } + + function peg$parseDirectiveStartFromFirstLine() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11; + + s0 = peg$currPos; + s1 = peg$parseSameIndent(); + if (s1 !== peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c181) { + s2 = peg$c181; + peg$currPos += 2; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c182); + } + } + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$parseWhitespace(); + if (s4 !== peg$FAILED) { + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseWhitespace(); + } + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$parseDirectiveType(); + if (s4 !== peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c235) { + s5 = peg$c235; + peg$currPos += 2; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c236); + } + } + if (s5 !== peg$FAILED) { + s6 = []; + s7 = peg$parseWhitespace(); + if (s7 !== peg$FAILED) { + while (s7 !== peg$FAILED) { + s6.push(s7); + s7 = peg$parseWhitespace(); + } + } else { + s6 = peg$FAILED; + } + if (s6 !== peg$FAILED) { + s7 = peg$currPos; + peg$silentFails++; + s8 = peg$parseNonspacechar(); + peg$silentFails--; + if (s8 !== peg$FAILED) { + peg$currPos = s7; + s7 = void 0; + } else { + s7 = peg$FAILED; + } + if (s7 !== peg$FAILED) { + s8 = peg$parseRawLine(); + if (s8 !== peg$FAILED) { + s9 = peg$currPos; + s10 = peg$parseBlankLines(); + if (s10 === peg$FAILED) { + s10 = null; + } + if (s10 !== peg$FAILED) { + s11 = peg$parseDirectiveBlock(); + if (s11 !== peg$FAILED) { + s10 = [s10, s11]; + s9 = s10; + } else { + peg$currPos = s9; + s9 = peg$FAILED; + } + } else { + peg$currPos = s9; + s9 = peg$FAILED; + } + if (s9 === peg$FAILED) { + s9 = null; + } + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c266(s4, s8, s9); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseDirectiveStartFromNextLine() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8; + + s0 = peg$currPos; + s1 = peg$parseSameIndent(); + if (s1 !== peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c181) { + s2 = peg$c181; + peg$currPos += 2; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c182); + } + } + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$parseWhitespace(); + if (s4 !== peg$FAILED) { + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseWhitespace(); + } + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s4 = peg$parseDirectiveType(); + if (s4 !== peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c235) { + s5 = peg$c235; + peg$currPos += 2; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$c236); + } + } + if (s5 !== peg$FAILED) { + s6 = []; + s7 = peg$parseWhitespace(); + while (s7 !== peg$FAILED) { + s6.push(s7); + s7 = peg$parseWhitespace(); + } + if (s6 !== peg$FAILED) { + s7 = peg$parseNewline(); + if (s7 !== peg$FAILED) { + s8 = peg$parseDirectiveBlock(); + if (s8 === peg$FAILED) { + s8 = null; + } + if (s8 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c267(s4, s8); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseDirectiveBlock() { + var s0, s1, s2, s3, s4, s5, s6; + + s0 = peg$currPos; + s1 = peg$parseBlankLines(); + if (s1 === peg$FAILED) { + s1 = null; + } + if (s1 !== peg$FAILED) { + s2 = peg$parsePushCommonIndent$(); + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$currPos; + s5 = []; + s6 = peg$parseWhitespace(); + while (s6 !== peg$FAILED) { + s5.push(s6); + s6 = peg$parseWhitespace(); + } + if (s5 !== peg$FAILED) { + s6 = peg$parseNewline(); + if (s6 !== peg$FAILED) { + peg$savedPos = s4; + s5 = peg$c185(s2); + s4 = s5; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 === peg$FAILED) { + s4 = peg$currPos; + s5 = peg$parseSameOrDeepIndent(); + if (s5 !== peg$FAILED) { + s6 = peg$parseNotEmptyRawLine(); + if (s6 !== peg$FAILED) { + s5 = [s5, s6]; + s4 = s5; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } + if (s4 !== peg$FAILED) { + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$currPos; + s5 = []; + s6 = peg$parseWhitespace(); + while (s6 !== peg$FAILED) { + s5.push(s6); + s6 = peg$parseWhitespace(); + } + if (s5 !== peg$FAILED) { + s6 = peg$parseNewline(); + if (s6 !== peg$FAILED) { + peg$savedPos = s4; + s5 = peg$c185(s2); + s4 = s5; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 === peg$FAILED) { + s4 = peg$currPos; + s5 = peg$parseSameOrDeepIndent(); + if (s5 !== peg$FAILED) { + s6 = peg$parseNotEmptyRawLine(); + if (s6 !== peg$FAILED) { + s5 = [s5, s6]; + s4 = s5; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } + } + } else { + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = peg$parseFailbackIndent$(); + } + if (s3 !== peg$FAILED) { + s4 = peg$parsePopIndent$(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c268(s2, s3); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + function peg$parseUnknown() { + var s0, s1, s2, s3, s4, s5; + + s0 = peg$currPos; + s1 = peg$parseBlankLines(); + if (s1 === peg$FAILED) { + s1 = null; + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseBlankLines(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseUnknownLine(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseBlankLines(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = void 0; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseUnknownLine(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$c269(s1, s2); + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + // utilities + var _ = __webpack_require__(0); + var ParserUtil = __webpack_require__(1).default; + + function mapByIndex(seq, index) { + return _.map(seq, function (v) { + return v[index]; + }); + }; + + // nodes + var Elements = {}; + _.forEach(__webpack_require__(4).default, function (ctor, name) { + function wrapped(params) { + ctor.apply(this, [Object.assign({}, { position: location() }, params)]); + } + wrapped.prototype = ctor.prototype; + Elements[name] = wrapped; + }); + + var Text = Elements.Text; + + // variables + var currentIndentSize = 0; + var indentIgnoreLine = null; + var nextIndentSize = null; + + var markupEndString = null; + var attributesIndentList = []; + + var literalBlockQuoting = null; + + var enumeratedListState = function () { + var nextEnumeratorType = null; + var enumeratorStack = []; + var currentEnumerator = null; + + return { + begin: function begin() { + enumeratorStack.push(currentEnumerator); + currentEnumerator = null; + nextEnumeratorType = null; + }, + end: function end() { + currentEnumerator = enumeratorStack.pop(); + if (!_.isNull(currentEnumerator)) { + nextEnumeratorType = currentEnumerator.sequence.type; + } + }, + set: function set(e) { + currentEnumerator = e; + nextEnumeratorType = currentEnumerator.sequence.type; + }, + isNext: function isNext(e) { + return _.isNull(currentEnumerator) || currentEnumerator.isNext(e); + }, + isNextType: function isNextType(type) { + return _.isNull(currentEnumerator) || nextEnumeratorType === type; + } + }; + }(); + + var indentState = function () { + var indentSizeStack = []; + + return { + push: function push(indentSize) { + indentSizeStack.push(currentIndentSize); + currentIndentSize = indentSize; + }, + pop: function pop() { + currentIndentSize = indentSizeStack.pop(); + }, + ignore: function ignore(line) { + indentIgnoreLine = line; + }, + + lastIndentDiff: function lastIndentDiff() { + if (indentSizeStack.length === 0) { + return currentIndentSize; + } + return currentIndentSize - indentSizeStack[indentSizeStack.length - 1]; + } + }; + }(); + + var lineBlockState = function () { + var currentIndentSize = -1; + var indentSizeStack = []; + + return { + current: function current() { + return currentIndentSize; + }, + push: function push(indentSize) { + indentSizeStack.push(currentIndentSize); + currentIndentSize = indentSize; + }, + pop: function pop() { + currentIndentSize = indentSizeStack.pop(); + }, + diff: function diff() { + if (indentSizeStack.length === 0) { + return currentIndentSize; + } + return currentIndentSize - indentSizeStack[indentSizeStack.length - 1]; + } + }; + }(); + + var bulletListState = function () { + var stack = []; + var current = null; + return { + pushBullet: function pushBullet(bullet) { + stack.push(current); + current = bullet; + }, + popBullet: function popBullet() { + current = stack.pop(); + }, + isSameBullet: function isSameBullet(bullet) { + return current === bullet; + } + }; + }(); + + var sectionState = function () { + var stack = []; + var currentIndex = -1; + return { + isSubSection: function isSubSection(c, overline) { + if (currentIndex === stack.length - 1) { + for (var i = 0, len = stack.length; i < len; i++) { + if (stack[i].c === c && stack[i].overline === overline) { + return false; + } + } + return true; + } + var next = stack[currentIndex + 1]; + return next.c === c && next.overline === overline; + }, + setNextSection: function setNextSection(c, overline) { + for (var i = 0, len = stack.length; i < len; i++) { + if (stack[i].c === c && stack[i].overline === overline) { + currentIndex = i; + return; + } + } + stack.push({ c: c, overline: overline }); + currentIndex = stack.length - 1; + }, + popSection: function popSection() { + --currentIndex; + }, + depth: function depth() { + return currentIndex + 1; + } + }; + }(); + + peg$result = peg$startRuleFunction(); + + if (peg$result !== peg$FAILED && peg$currPos === input.length) { + return peg$result; + } else { + if (peg$result !== peg$FAILED && peg$currPos < input.length) { + peg$fail(peg$endExpectation()); + } + + throw peg$buildStructuredError(peg$maxFailExpected, peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, peg$maxFailPos < input.length ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)); + } +} + +module.exports = { + SyntaxError: peg$SyntaxError, + parse: peg$parse +}; + +/***/ }), +/* 6 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +var values = ['text', 'unknown_line']; + +var parents = [ +// Document Structure +'document', 'section', 'title', 'transition', +// Body Elements +'paragraph', 'bullet_list', 'list_item', 'enumerated_list', 'definition_list', 'definition_list_item', 'term', 'classifier', 'definition', 'field_list', 'field', 'field_name', 'field_body', 'docinfo', 'author', 'authors', 'organization', 'contact', 'version', 'status', 'date', 'copyright', 'field', 'topic', 'option_list', 'option_list_item', 'option_group', 'option', 'option_string', 'option_argument', 'description', 'literal_block', 'line_block', 'line', 'block_quote', 'attribution', 'doctest_block', 'table', 'tgroup', 'colspec', 'thead', 'tbody', 'row', 'entry', +// Explicit Markup Blocks +'footnote', 'label', 'citation', 'target', 'substitution_definition', 'comment', +// Inline Markups +'emphasis', 'strong', 'literal', 'reference', 'target', 'footnote_reference', 'citation_reference', 'substitution_reference', 'reference', +// Error Handling +'system_message', 'problematic', 'unknown', +// restructured Original Elements +'directive', 'interpreted_text']; + +var Type = { + parentTypes: {}, + valueTypes: {} +}; + +function camelize(str) { + return str.replace(/_([a-z])/g, function (_, w) { + return w.toUpperCase(); + }); +} + +var _iteratorNormalCompletion = true; +var _didIteratorError = false; +var _iteratorError = undefined; + +try { + for (var _iterator = values[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var type = _step.value; + + Type.valueTypes[camelize(type)] = type; + } +} catch (err) { + _didIteratorError = true; + _iteratorError = err; +} finally { + try { + if (!_iteratorNormalCompletion && _iterator.return) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } +} + +var _iteratorNormalCompletion2 = true; +var _didIteratorError2 = false; +var _iteratorError2 = undefined; + +try { + for (var _iterator2 = parents[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { + var _type = _step2.value; + + Type.parentTypes[camelize(_type)] = _type; + } +} catch (err) { + _didIteratorError2 = true; + _iteratorError2 = err; +} finally { + try { + if (!_iteratorNormalCompletion2 && _iterator2.return) { + _iterator2.return(); + } + } finally { + if (_didIteratorError2) { + throw _iteratorError2; + } + } +} + +exports.default = Type; + +/***/ }), +/* 7 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ + + +/* eslint-disable no-unused-vars */ +var getOwnPropertySymbols = Object.getOwnPropertySymbols; +var hasOwnProperty = Object.prototype.hasOwnProperty; +var propIsEnumerable = Object.prototype.propertyIsEnumerable; + +function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); + } + + return Object(val); +} + +function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } + + // Detect buggy property enumeration order in older V8 versions. + + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst') { + return false; + } + + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; + } +} + +module.exports = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; + + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); + + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } + + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } + + return to; +}; + + +/***/ }), +/* 8 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +// LICENSE : MIT + +var ObjectAssign = __webpack_require__(7); +module.exports = function map(ast, mapFn) { + return (function preorder(node, index, parent) { + const newNode = ObjectAssign({}, mapFn(node, index, parent)); + if (node.children) { + newNode.children = node.children.map(function (child, index) { + return preorder(child, index, node); + }); + } + return newNode; + }(ast, null, null)); +}; + +/***/ }), +/* 9 */ +/***/ (function(module, exports, __webpack_require__) { + +__webpack_require__(2); +(function webpackMissingModule() { throw new Error("Cannot find module \"[object Object]\""); }()); +module.exports = __webpack_require__(3); + + +/***/ }) +/******/ ]); +}); \ No newline at end of file diff --git a/dist/restructured.min.js b/dist/restructured.min.js new file mode 100644 index 0000000..be77da8 --- /dev/null +++ b/dist/restructured.min.js @@ -0,0 +1 @@ +!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("lodash"));else if("function"==typeof define&&define.amd)define(["lodash"],r);else{var n=r("object"==typeof exports?require("lodash"):e._);for(var t in n)("object"==typeof exports?exports:e)[t]=n[t]}}(this,function(e){return function(e){function __webpack_require__(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,__webpack_require__),t.l=!0,t.exports}var r={};return __webpack_require__.m=e,__webpack_require__.c=r,__webpack_require__.i=function(e){return e},__webpack_require__.d=function(exports,e,r){__webpack_require__.o(exports,e)||Object.defineProperty(exports,e,{configurable:!1,enumerable:!0,get:r})},__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,"a",r),r},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=9)}([function(r,exports){r.exports=e},function(e,exports,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});for(var n=(function(){function sliceIterator(e,r){var n=[],t=!0,a=!1,i=void 0;try{for(var p,o=e[Symbol.iterator]();!(t=(p=o.next()).done)&&(n.push(p.value),!r||n.length!==r);t=!0);}catch(e){a=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(a)throw i}}return n}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return sliceIterator(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()),t=r(0),a=function(e){return e&&e.__esModule?e:{default:e}}(t),i="\"'(<\\[{༺༼᚛⁅⁽₍〈❨❪❬❮❰❲❴⟅⟦⟨⟪⟬⟮⦃⦅⦇⦉⦋⦍⦏⦑⦓⦕⦗⧘⧚⧼⸢⸤⸦⸨〈《「『【〔〖〘〚〝〝﴾︗︵︷︹︻︽︿﹁﹃﹇﹙﹛﹝([{⦅「«‘“‹⸂⸄⸉⸌⸜⸠‚„»’”›⸃⸅⸊⸍⸝⸡‛‟",p="\"')>\\]}༻༽᚜⁆⁾₎〉❩❫❭❯❱❳❵⟆⟧⟩⟫⟭⟯⦄⦆⦈⦊⦌⦎⦐⦒⦔⦖⦘⧙⧛⧽⸣⸥⸧⸩〉》」』】〕〗〙〛〞〟﴿︘︶︸︺︼︾﹀﹂﹄﹈﹚﹜﹞)]}⦆」»’”›⸃⸅⸊⸍⸝⸡‛‟«‘“‹⸂⸄⸉⸌⸜⸠‚„",o={},s={},l=0;l=s;)a+=o,t-=s;return a}};exports.default=A},function(e,exports,r){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var n=r(0),t=_interopRequireDefault(n),a=r(8),i=_interopRequireDefault(a),p=r(5),o=_interopRequireDefault(p),s={parse:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o.default.parse(e);return(0,i.default)(n,function(e){var n=[];return r.position||n.push("position"),r.blanklines||n.push("blanklines"),r.indent||n.push("indent"),t.default.omit(e,n)})}};exports.default=s},function(e,exports){throw new Error("Module parse failed: /Users/bung/js_works/restructured/node_modules/webpack/bin/webpack.js Unexpected character '#' (1:0)\nYou may need an appropriate loader to handle this file type.\n| #!/usr/bin/env node\n| \n| /*")},function(e,exports,r){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}Object.defineProperty(exports,"__esModule",{value:!0});var n=function(){function defineProperties(e,r){for(var n=0;nga&&(ga=la,fa=[]),fa.push(e))}function peg$buildStructuredError(e,r,n){return new peg$SyntaxError(peg$SyntaxError.buildMessage(e,r),e,r,n)}function peg$parseAlphanumericAscii(){var r;return o.test(e.charAt(la))?(r=e.charAt(la),la++):(r=a,0===$a&&peg$fail(s)),r}function peg$parseEof(){var r,n;return r=la,$a++,e.length>la?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(l)),$a--,n===a?r=void 0:(la=r,r=a),r}function peg$parseNewline(){var r,n,t,i;return 10===e.charCodeAt(la)?(r=u,la++):(r=a,0===$a&&peg$fail(c)),r===a&&(r=la,n=la,13===e.charCodeAt(la)?(t=g,la++):(t=a,0===$a&&peg$fail(f)),t!==a?(10===e.charCodeAt(la)?(i=u,la++):(i=a,0===$a&&peg$fail(c)),i===a&&(i=null),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a&&(ua=r,n=h(n)),r=n),r}function peg$parseWhitespace(){var r;return 32===e.charCodeAt(la)?(r=d,la++):(r=a,0===$a&&peg$fail(v)),r===a&&(11===e.charCodeAt(la)?(r=m,la++):(r=a,0===$a&&peg$fail(A)),r===a&&(12===e.charCodeAt(la)?(r=C,la++):(r=a,0===$a&&peg$fail(k)),r===a&&(9===e.charCodeAt(la)?(r=w,la++):(r=a,0===$a&&peg$fail(I))))),r}function peg$parseEndline(){var e;return e=peg$parseNewline(),e===a&&(e=peg$parseEof()),e}function peg$parseNormalizedToWhitespace(){var e;return e=peg$parseWhitespace(),e===a&&(e=peg$parseNewline()),e}function peg$parseNonspacechar(){var r,n,t,i;return r=la,n=la,t=la,$a++,i=peg$parseNormalizedToWhitespace(),$a--,i===a?t=void 0:(la=t,t=a),t!==a?(e.length>la?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(l)),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a&&(ua=r,n=E(n)),r=n}function peg$parseBlankLines(){var e,r,n,t,i,p,o,s,l;for(e=la,r=[],n=la,t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();if(t!==a)if((i=peg$parseNewline())!==a){for(p=la,$a++,o=la,s=[],l=peg$parseWhitespace();l!==a;)s.push(l),l=peg$parseWhitespace();s!==a?(l=peg$parseEndline(),l!==a?(s=[s,l],o=s):(la=o,o=a)):(la=o,o=a),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(t=[t,i,p],n=t):(la=n,n=a)}else la=n,n=a;else la=n,n=a;for(;n!==a;){for(r.push(n),n=la,t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();if(t!==a)if((i=peg$parseNewline())!==a){for(p=la,$a++,o=la,s=[],l=peg$parseWhitespace();l!==a;)s.push(l),l=peg$parseWhitespace();s!==a?(l=peg$parseEndline(),l!==a?(s=[s,l],o=s):(la=o,o=a)):(la=o,o=a),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(t=[t,i,p],n=t):(la=n,n=a)}else la=n,n=a;else la=n,n=a}if(r!==a){for(n=la,t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();t!==a?(i=peg$parseEndline(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=e,r=L(r,n),e=r):(la=e,e=a)}else la=e,e=a;return e}function peg$parseRawLine(){var r,n,t,i,p;for(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);return n!==a?(t=peg$parseEndline(),t!==a?(ua=r,n=y(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseNotEmptyRawLine(){var r,n,t,i,p;if(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);else n=a;return n!==a?(t=peg$parseEndline(),t!==a?(ua=r,n=y(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseUnknownLine(){var e,r;return e=la,r=peg$parseNotEmptyRawLine(),r!==a&&(ua=e,r=x(r)),e=r}function peg$parseEndIndent(){var r,n,t,i,p,o,s;if(r=la,$a++,n=la,t=peg$parseBlankLines(),t===a&&(t=null),t!==a){for(i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=la,$a++,o=peg$parseNormalizedToWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(ua=la,s=b(i),s=s?void 0:a,s!==a?(t=[t,i,p,o,s],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a)):(la=n,n=a)}else la=n,n=a;return $a--,n!==a?(la=r,r=void 0):r=a,r}function peg$parseSameIndent(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(ua=la,n=B(r),n=n?void 0:a,n!==a?(ua=e,r=S(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseDeepIndent(){var e,r,n;if(e=la,r=[],(n=peg$parseWhitespace())!==a)for(;n!==a;)r.push(n),n=peg$parseWhitespace();else r=a;return r!==a?(ua=la,n=_(r),n=n?void 0:a,n!==a?(ua=e,r=W(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseShallowIndent(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(ua=la,n=N(r),n=n?void 0:a,n!==a?(ua=e,r=W(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseSameOrDeepIndent(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(ua=la,n=T(r),n=n?void 0:a,n!==a?(ua=e,r=W(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseFail$(){var r,n,t;return r=la,ua=la,n=M(),n=n?void 0:a,n!==a?(e.length>la?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(l)),t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parsePopIndent$(){var e;return ua=la,e=R(),e=e?void 0:a}function peg$parseFailbackIndent$(){var e,r,n;return e=la,r=peg$parsePopIndent$(),r!==a?(n=peg$parseFail$(),n!==a?(r=[r,n],e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parsePushCommonIndent$(){var e,r,n,t,i,p,o,s,l,u,c,g,f;if(e=la,r=la,$a++,n=peg$parseDeepIndent(),$a--,n!==a?(la=r,r=void 0):r=a,r!==a){if(n=la,$a++,t=la,i=[],(p=peg$parseWhitespace())!==a)for(;p!==a;)i.push(p),p=peg$parseWhitespace();else i=a;if(i!==a)if((p=peg$parseRawLine())!==a)if(ua=la,o=P(i),(o=o?void 0:a)!==a){for(s=[],l=la,u=[],c=peg$parseWhitespace();c!==a;)u.push(c),c=peg$parseWhitespace();if(u!==a?(c=peg$parseNewline(),c!==a?(u=[u,c],l=u):(la=l,l=a)):(la=l,l=a),l===a)if(l=la,u=la,$a++,c=peg$parseDeepIndent(),$a--,c!==a?(la=u,u=void 0):u=a,u!==a){if(c=[],(g=peg$parseWhitespace())!==a)for(;g!==a;)c.push(g),g=peg$parseWhitespace();else c=a;c!==a?(g=peg$parseRawLine(),g!==a?(ua=la,f=D(i,c),f=f?void 0:a,f!==a?(u=[u,c,g,f],l=u):(la=l,l=a)):(la=l,l=a)):(la=l,l=a)}else la=l,l=a;for(;l!==a;){for(s.push(l),l=la,u=[],c=peg$parseWhitespace();c!==a;)u.push(c),c=peg$parseWhitespace();if(u!==a?(c=peg$parseNewline(),c!==a?(u=[u,c],l=u):(la=l,l=a)):(la=l,l=a),l===a)if(l=la,u=la,$a++,c=peg$parseDeepIndent(),$a--,c!==a?(la=u,u=void 0):u=a,u!==a){if(c=[],(g=peg$parseWhitespace())!==a)for(;g!==a;)c.push(g),g=peg$parseWhitespace();else c=a;c!==a?(g=peg$parseRawLine(),g!==a?(ua=la,f=D(i,c),f=f?void 0:a,f!==a?(u=[u,c,g,f],l=u):(la=l,l=a)):(la=l,l=a)):(la=l,l=a)}else la=l,l=a}s!==a?(ua=la,l=q(i),l=l?void 0:a,l!==a?(i=[i,p,o,s,l],t=i):(la=t,t=a)):(la=t,t=a)}else la=t,t=a;else la=t,t=a;else la=t,t=a;$a--,t!==a?(la=n,n=void 0):n=a,n!==a?(ua=e,r=F(),e=r):(la=e,e=a)}else la=e,e=a;return e}function peg$parsePushFirstIndent$(){var e,r,n,t,i,p;return e=la,r=la,$a++,n=la,t=peg$parseDeepIndent(),t!==a?(i=peg$parseNonspacechar(),i!==a?(ua=la,p=j(t,i),p=p?void 0:a,p!==a?(t=[t,i,p],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),$a--,n!==a?(la=r,r=void 0):r=a,r!==a&&(ua=e,r=F()),e=r}function peg$parseSkipIndentCheck$(){var e;return ua=la,e=O(),e=e?void 0:a}function peg$parseDocument(){var e,r,n;for(e=la,r=[],n=peg$parseSection(),n===a&&(n=peg$parseTransition())===a&&(n=peg$parseBodyElement())===a&&(n=peg$parseUnknown());n!==a;)r.push(n),(n=peg$parseSection())===a&&(n=peg$parseTransition())===a&&(n=peg$parseBodyElement())===a&&(n=peg$parseUnknown());return r!==a?(n=peg$parseBlankLines(),n!==a?(ua=e,r=z(r,n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseSection(){var e,r,n,t,i,p,o;if(e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a)if(peg$parseIsSubSection()!==a)if(n=peg$parseSectionWithOverline(),n===a&&(n=peg$parseSectionWithoutOverline()),n!==a){for(t=[],i=la,p=peg$parseIsSubSection(),p!==a?(o=peg$parseSection(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=la,$a++,o=peg$parseIsSection(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=peg$parseTransition(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=la,$a++,o=peg$parseIsSection(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=peg$parseBodyElement(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a)));i!==a;)t.push(i),i=la,p=peg$parseIsSubSection(),p!==a?(o=peg$parseSection(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=la,$a++,o=peg$parseIsSection(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=peg$parseTransition(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=la,$a++,o=peg$parseIsSection(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=peg$parseBodyElement(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a)));t!==a?(ua=e,r=U(r,n,t),e=r):(la=e,e=a)}else la=e,e=a;else la=e,e=a;else la=e,e=a;return e}function peg$parseIsSection(){var e,r,n,t,i,p,o;return e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(t=peg$parseSectionLine(),t!==a?(i=la,$a++,p=peg$parseBlankLines(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseRawLine(),p!==a?(o=peg$parseSectionLine(),o!==a?(n=[n,t,i,p,o],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e===a&&(e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(t=peg$parseRawLine(),t!==a?(i=peg$parseSectionLine(),i!==a?(n=[n,t,i],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a),e}function peg$parseIsSubSection(){var e,r,n,t,i,p,o,s;return e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(t=peg$parseSectionLine(),t!==a?(i=la,$a++,p=peg$parseBlankLines(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseRawLine(),p!==a?(o=peg$parseSectionLine(),o!==a?(ua=la,s=Q(t,o),s=s?void 0:a,s!==a?(n=[n,t,i,p,o,s],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e===a&&(e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(t=peg$parseRawLine(),t!==a?(i=peg$parseSectionLine(),i!==a?(ua=la,p=H(t,i),p=p?void 0:a,p!==a?(n=[n,t,i,p],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a),e}function peg$parseSectionWithOverline(){var e,r,n,t,i,p,o;if(e=la,r=la,$a++,n=la,t=peg$parseSectionLine(),t!==a?(i=la,$a++,p=peg$parseBlankLines(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseRawLine(),p!==a?(o=peg$parseSectionLine(),o!==a?(t=[t,i,p,o],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),$a--,n!==a?(la=r,r=void 0):r=a,r!==a)if((n=peg$parseSectionLine())!==a){for(t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();t!==a?(i=peg$parseOnelineParagraph(),i!==a?(p=peg$parseNewline(),p!==a?(o=peg$parseSectionLine(),o!==a?(ua=e,r=X(n,i,o),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;else la=e,e=a;return e}function peg$parseSectionWithoutOverline(){var e,r,n,t,i,p;return e=la,r=la,$a++,n=la,t=la,$a++,i=peg$parseBlankLines(),$a--,i===a?t=void 0:(la=t,t=a),t!==a?(i=peg$parseRawLine(),i!==a?(p=peg$parseSectionLine(),p!==a?(t=[t,i,p],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),$a--,n!==a?(la=r,r=void 0):r=a,r!==a?(n=peg$parseOnelineParagraph(),n!==a?(t=peg$parseNewline(),t!==a?(i=peg$parseSectionLine(),i!==a?(ua=e,r=V(n,i),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseSectionLine(){var r,n,t,i,p;if(r=la,n=[],33===e.charCodeAt(la)?(t=Z,la++):(t=a,0===$a&&peg$fail(Y)),t===a&&(34===e.charCodeAt(la)?(t=G,la++):(t=a,0===$a&&peg$fail(J)),t===a&&(35===e.charCodeAt(la)?(t=K,la++):(t=a,0===$a&&peg$fail(ee)),t===a&&(36===e.charCodeAt(la)?(t=re,la++):(t=a,0===$a&&peg$fail(ne)),t===a&&(37===e.charCodeAt(la)?(t=te,la++):(t=a,0===$a&&peg$fail(ae)),t===a&&(38===e.charCodeAt(la)?(t=ie,la++):(t=a,0===$a&&peg$fail(pe)),t===a&&(39===e.charCodeAt(la)?(t=oe,la++):(t=a,0===$a&&peg$fail(se)),t===a&&(40===e.charCodeAt(la)?(t=le,la++):(t=a,0===$a&&peg$fail(ue)),t===a&&(41===e.charCodeAt(la)?(t=ce,la++):(t=a,0===$a&&peg$fail(ge)),t===a&&(42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t===a&&(43===e.charCodeAt(la)?(t=he,la++):(t=a,0===$a&&peg$fail(de)),t===a&&(44===e.charCodeAt(la)?(t=ve,la++):(t=a,0===$a&&peg$fail(me)),t===a&&(45===e.charCodeAt(la)?(t=Ae,la++):(t=a,0===$a&&peg$fail(Ce)),t===a&&(46===e.charCodeAt(la)?(t=ke,la++):(t=a,0===$a&&peg$fail(we)),t===a&&(47===e.charCodeAt(la)?(t=Ie,la++):(t=a,0===$a&&peg$fail(Ee)),t===a&&(58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t===a&&(59===e.charCodeAt(la)?(t=xe,la++):(t=a,0===$a&&peg$fail(be)),t===a&&(60===e.charCodeAt(la)?(t=Be,la++):(t=a,0===$a&&peg$fail(Se)),t===a&&(61===e.charCodeAt(la)?(t=_e,la++):(t=a,0===$a&&peg$fail(We)),t===a&&(62===e.charCodeAt(la)?(t=Ne,la++):(t=a,0===$a&&peg$fail(Te)),t===a&&(63===e.charCodeAt(la)?(t=Me,la++):(t=a,0===$a&&peg$fail(Re)),t===a&&(64===e.charCodeAt(la)?(t=Pe,la++):(t=a,0===$a&&peg$fail(De)),t===a&&(91===e.charCodeAt(la)?(t=qe,la++):(t=a,0===$a&&peg$fail(Fe)),t===a&&(92===e.charCodeAt(la)?(t=je,la++):(t=a,0===$a&&peg$fail(Oe)),t===a&&(93===e.charCodeAt(la)?(t=ze,la++):(t=a,0===$a&&peg$fail(Ue)),t===a&&(94===e.charCodeAt(la)?(t=Qe,la++):(t=a,0===$a&&peg$fail(He)),t===a&&(95===e.charCodeAt(la)?(t=Xe,la++):(t=a,0===$a&&peg$fail(Ve)),t===a&&(96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ye)),t===a&&(123===e.charCodeAt(la)?(t=Ge,la++):(t=a,0===$a&&peg$fail(Je)),t===a&&(124===e.charCodeAt(la)?(t=Ke,la++):(t=a,0===$a&&peg$fail(er)),t===a&&(125===e.charCodeAt(la)?(t=rr,la++):(t=a,0===$a&&peg$fail(nr)),t===a&&(126===e.charCodeAt(la)?(t=tr,la++):(t=a,0===$a&&peg$fail(ar))))))))))))))))))))))))))))))))),t!==a)for(;t!==a;)n.push(t),33===e.charCodeAt(la)?(t=Z,la++):(t=a,0===$a&&peg$fail(Y)),t===a&&(34===e.charCodeAt(la)?(t=G,la++):(t=a,0===$a&&peg$fail(J)),t===a&&(35===e.charCodeAt(la)?(t=K,la++):(t=a,0===$a&&peg$fail(ee)),t===a&&(36===e.charCodeAt(la)?(t=re,la++):(t=a,0===$a&&peg$fail(ne)),t===a&&(37===e.charCodeAt(la)?(t=te,la++):(t=a,0===$a&&peg$fail(ae)),t===a&&(38===e.charCodeAt(la)?(t=ie,la++):(t=a,0===$a&&peg$fail(pe)),t===a&&(39===e.charCodeAt(la)?(t=oe,la++):(t=a,0===$a&&peg$fail(se)),t===a&&(40===e.charCodeAt(la)?(t=le,la++):(t=a,0===$a&&peg$fail(ue)),t===a&&(41===e.charCodeAt(la)?(t=ce,la++):(t=a,0===$a&&peg$fail(ge)),t===a&&(42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t===a&&(43===e.charCodeAt(la)?(t=he,la++):(t=a,0===$a&&peg$fail(de)),t===a&&(44===e.charCodeAt(la)?(t=ve,la++):(t=a,0===$a&&peg$fail(me)),t===a&&(45===e.charCodeAt(la)?(t=Ae,la++):(t=a,0===$a&&peg$fail(Ce)),t===a&&(46===e.charCodeAt(la)?(t=ke,la++):(t=a,0===$a&&peg$fail(we)),t===a&&(47===e.charCodeAt(la)?(t=Ie,la++):(t=a,0===$a&&peg$fail(Ee)),t===a&&(58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t===a&&(59===e.charCodeAt(la)?(t=xe,la++):(t=a,0===$a&&peg$fail(be)),t===a&&(60===e.charCodeAt(la)?(t=Be,la++):(t=a,0===$a&&peg$fail(Se)),t===a&&(61===e.charCodeAt(la)?(t=_e,la++):(t=a,0===$a&&peg$fail(We)),t===a&&(62===e.charCodeAt(la)?(t=Ne,la++):(t=a,0===$a&&peg$fail(Te)),t===a&&(63===e.charCodeAt(la)?(t=Me,la++):(t=a,0===$a&&peg$fail(Re)),t===a&&(64===e.charCodeAt(la)?(t=Pe,la++):(t=a,0===$a&&peg$fail(De)),t===a&&(91===e.charCodeAt(la)?(t=qe,la++):(t=a,0===$a&&peg$fail(Fe)),t===a&&(92===e.charCodeAt(la)?(t=je,la++):(t=a,0===$a&&peg$fail(Oe)),t===a&&(93===e.charCodeAt(la)?(t=ze,la++):(t=a,0===$a&&peg$fail(Ue)),t===a&&(94===e.charCodeAt(la)?(t=Qe,la++):(t=a,0===$a&&peg$fail(He)),t===a&&(95===e.charCodeAt(la)?(t=Xe,la++):(t=a,0===$a&&peg$fail(Ve)),t===a&&(96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ye)),t===a&&(123===e.charCodeAt(la)?(t=Ge,la++):(t=a,0===$a&&peg$fail(Je)),t===a&&(124===e.charCodeAt(la)?(t=Ke,la++):(t=a,0===$a&&peg$fail(er)),t===a&&(125===e.charCodeAt(la)?(t=rr,la++):(t=a,0===$a&&peg$fail(nr)),t===a&&(126===e.charCodeAt(la)?(t=tr,la++):(t=a,0===$a&&peg$fail(ar)))))))))))))))))))))))))))))))));else n=a;if(n!==a)if(ua=la,t=ir(n),(t=t?void 0:a)!==a){for(i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=peg$parseNewline(),p!==a?(ua=r,n=pr(n),r=n):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;return r}function peg$parseTransition(){var e,r,n,t,i,p,o;if(e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a)if((n=peg$parseTransitionMarker())!==a){for(t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();t!==a?(i=peg$parseNewline(),i!==a?(p=la,$a++,o=peg$parseBlankLines(),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(ua=e,r=or(r,n),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;else la=e,e=a;return e}function peg$parseTransitionMarker(){var r,n,t;if(r=la,n=[],33===e.charCodeAt(la)?(t=Z,la++):(t=a,0===$a&&peg$fail(Y)),t===a&&(34===e.charCodeAt(la)?(t=G,la++):(t=a,0===$a&&peg$fail(J)),t===a&&(35===e.charCodeAt(la)?(t=K,la++):(t=a,0===$a&&peg$fail(ee)),t===a&&(36===e.charCodeAt(la)?(t=re,la++):(t=a,0===$a&&peg$fail(ne)),t===a&&(37===e.charCodeAt(la)?(t=te,la++):(t=a,0===$a&&peg$fail(ae)),t===a&&(38===e.charCodeAt(la)?(t=ie,la++):(t=a,0===$a&&peg$fail(pe)),t===a&&(39===e.charCodeAt(la)?(t=oe,la++):(t=a,0===$a&&peg$fail(se)),t===a&&(40===e.charCodeAt(la)?(t=le,la++):(t=a,0===$a&&peg$fail(ue)),t===a&&(41===e.charCodeAt(la)?(t=ce,la++):(t=a,0===$a&&peg$fail(ge)),t===a&&(42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t===a&&(43===e.charCodeAt(la)?(t=he,la++):(t=a,0===$a&&peg$fail(de)),t===a&&(44===e.charCodeAt(la)?(t=ve,la++):(t=a,0===$a&&peg$fail(me)),t===a&&(45===e.charCodeAt(la)?(t=Ae,la++):(t=a,0===$a&&peg$fail(Ce)),t===a&&(46===e.charCodeAt(la)?(t=ke,la++):(t=a,0===$a&&peg$fail(we)),t===a&&(47===e.charCodeAt(la)?(t=Ie,la++):(t=a,0===$a&&peg$fail(Ee)),t===a&&(58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t===a&&(59===e.charCodeAt(la)?(t=xe,la++):(t=a,0===$a&&peg$fail(be)),t===a&&(60===e.charCodeAt(la)?(t=Be,la++):(t=a,0===$a&&peg$fail(Se)),t===a&&(61===e.charCodeAt(la)?(t=_e,la++):(t=a,0===$a&&peg$fail(We)),t===a&&(62===e.charCodeAt(la)?(t=Ne,la++):(t=a,0===$a&&peg$fail(Te)),t===a&&(63===e.charCodeAt(la)?(t=Me,la++):(t=a,0===$a&&peg$fail(Re)),t===a&&(64===e.charCodeAt(la)?(t=Pe,la++):(t=a,0===$a&&peg$fail(De)),t===a&&(91===e.charCodeAt(la)?(t=qe,la++):(t=a,0===$a&&peg$fail(Fe)),t===a&&(92===e.charCodeAt(la)?(t=je,la++):(t=a,0===$a&&peg$fail(Oe)),t===a&&(93===e.charCodeAt(la)?(t=ze,la++):(t=a,0===$a&&peg$fail(Ue)),t===a&&(94===e.charCodeAt(la)?(t=Qe,la++):(t=a,0===$a&&peg$fail(He)),t===a&&(95===e.charCodeAt(la)?(t=Xe,la++):(t=a,0===$a&&peg$fail(Ve)),t===a&&(96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ye)),t===a&&(123===e.charCodeAt(la)?(t=Ge,la++):(t=a,0===$a&&peg$fail(Je)),t===a&&(124===e.charCodeAt(la)?(t=Ke,la++):(t=a,0===$a&&peg$fail(er)),t===a&&(125===e.charCodeAt(la)?(t=rr,la++):(t=a,0===$a&&peg$fail(nr)),t===a&&(126===e.charCodeAt(la)?(t=tr,la++):(t=a,0===$a&&peg$fail(ar))))))))))))))))))))))))))))))))),t!==a)for(;t!==a;)n.push(t),33===e.charCodeAt(la)?(t=Z,la++):(t=a,0===$a&&peg$fail(Y)),t===a&&(34===e.charCodeAt(la)?(t=G,la++):(t=a,0===$a&&peg$fail(J)),t===a&&(35===e.charCodeAt(la)?(t=K,la++):(t=a,0===$a&&peg$fail(ee)),t===a&&(36===e.charCodeAt(la)?(t=re,la++):(t=a,0===$a&&peg$fail(ne)),t===a&&(37===e.charCodeAt(la)?(t=te,la++):(t=a,0===$a&&peg$fail(ae)),t===a&&(38===e.charCodeAt(la)?(t=ie,la++):(t=a,0===$a&&peg$fail(pe)),t===a&&(39===e.charCodeAt(la)?(t=oe,la++):(t=a,0===$a&&peg$fail(se)),t===a&&(40===e.charCodeAt(la)?(t=le,la++):(t=a,0===$a&&peg$fail(ue)),t===a&&(41===e.charCodeAt(la)?(t=ce,la++):(t=a,0===$a&&peg$fail(ge)),t===a&&(42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t===a&&(43===e.charCodeAt(la)?(t=he,la++):(t=a,0===$a&&peg$fail(de)),t===a&&(44===e.charCodeAt(la)?(t=ve,la++):(t=a,0===$a&&peg$fail(me)),t===a&&(45===e.charCodeAt(la)?(t=Ae,la++):(t=a,0===$a&&peg$fail(Ce)),t===a&&(46===e.charCodeAt(la)?(t=ke,la++):(t=a,0===$a&&peg$fail(we)),t===a&&(47===e.charCodeAt(la)?(t=Ie,la++):(t=a,0===$a&&peg$fail(Ee)),t===a&&(58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t===a&&(59===e.charCodeAt(la)?(t=xe,la++):(t=a,0===$a&&peg$fail(be)),t===a&&(60===e.charCodeAt(la)?(t=Be,la++):(t=a,0===$a&&peg$fail(Se)),t===a&&(61===e.charCodeAt(la)?(t=_e,la++):(t=a,0===$a&&peg$fail(We)),t===a&&(62===e.charCodeAt(la)?(t=Ne,la++):(t=a,0===$a&&peg$fail(Te)),t===a&&(63===e.charCodeAt(la)?(t=Me,la++):(t=a,0===$a&&peg$fail(Re)),t===a&&(64===e.charCodeAt(la)?(t=Pe,la++):(t=a,0===$a&&peg$fail(De)),t===a&&(91===e.charCodeAt(la)?(t=qe,la++):(t=a,0===$a&&peg$fail(Fe)),t===a&&(92===e.charCodeAt(la)?(t=je,la++):(t=a,0===$a&&peg$fail(Oe)),t===a&&(93===e.charCodeAt(la)?(t=ze,la++):(t=a,0===$a&&peg$fail(Ue)),t===a&&(94===e.charCodeAt(la)?(t=Qe,la++):(t=a,0===$a&&peg$fail(He)),t===a&&(95===e.charCodeAt(la)?(t=Xe,la++):(t=a,0===$a&&peg$fail(Ve)),t===a&&(96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ye)),t===a&&(123===e.charCodeAt(la)?(t=Ge,la++):(t=a,0===$a&&peg$fail(Je)),t===a&&(124===e.charCodeAt(la)?(t=Ke,la++):(t=a,0===$a&&peg$fail(er)),t===a&&(125===e.charCodeAt(la)?(t=rr,la++):(t=a,0===$a&&peg$fail(nr)),t===a&&(126===e.charCodeAt(la)?(t=tr,la++):(t=a,0===$a&&peg$fail(ar)))))))))))))))))))))))))))))))));else n=a;return n!==a?(ua=la,t=sr(n),t=t?void 0:a,t!==a?(ua=r,n=lr(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseBodyElementExceptBlockQuote(){var e,r,n;return e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a?(n=peg$parseDirective(),n===a&&(n=peg$parseComment())===a&&(n=peg$parseLiteralBlock())===a&&(n=peg$parseBulletList())===a&&(n=peg$parseEnumeratedList())===a&&(n=peg$parseDefinitionList())===a&&(n=peg$parseLineBlock())===a&&(n=peg$parseParagraph()),n!==a?(ua=e,r=ur(r,n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseBodyElement(){var e,r;return e=la,r=peg$parseBodyElementExceptBlockQuote(),r===a&&(r=peg$parseBlockQuote()),r!==a&&(ua=e,r=cr(r)),e=r}function peg$parseListItem(){var e,r;return e=la,r=peg$parseNonEmptyListItem(),r===a&&(r=peg$parseEmptyListItem()),r!==a&&(ua=e,r=gr(r)),e=r}function peg$parsePushListItemIndent$(){var e,r,n,t,i,p,o;if(e=la,r=la,$a++,n=la,t=[],(i=peg$parseWhitespace())!==a)for(;i!==a;)t.push(i),i=peg$parseWhitespace();else t=a;return t!==a?(i=la,$a++,p=peg$parseNonspacechar(),$a--,p!==a?(la=i,i=void 0):i=a,i!==a?(p=peg$parseSkipIndentCheck$(),p!==a?(ua=la,o=fr(t),o=o?void 0:a,o!==a?(t=[t,i,p,o],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),$a--,n!==a?(la=r,r=void 0):r=a,r===a&&(r=la,$a++,n=la,t=peg$parseBlankLines(),t!==a?(i=peg$parsePushFirstIndent$(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),$a--,n!==a?(la=r,r=void 0):r=a),r!==a&&(ua=e,r=$r()),e=r}function peg$parseNonEmptyListItem(){var e,r,n,t;if(e=la,(r=peg$parsePushListItemIndent$())!==a){if(n=[],(t=peg$parseBodyElement())!==a)for(;t!==a;)n.push(t),t=peg$parseBodyElement();else n=a;n===a&&(n=peg$parseFailbackIndent$()),n!==a?(t=peg$parsePopIndent$(),t!==a?(ua=e,r=hr(r,n),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseEmptyListItem(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(n=peg$parseEndline(),n!==a?(ua=e,r=dr(),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseBulletList(){var e,r,n,t,i;if(e=la,(r=peg$parsePushBullet$())!==a){if(n=[],(t=peg$parseBulletListItem())!==a)for(;t!==a;)n.push(t),t=peg$parseBulletListItem();else n=a;n===a&&(n=la,t=peg$parsePopBullet$(),t!==a?(i=peg$parseFail$(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a)),n!==a?(t=peg$parsePopBullet$(),t!==a?(ua=e,r=vr(n),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseBullet(){var r;return mr.test(e.charAt(la))?(r=e.charAt(la),la++):(r=a,0===$a&&peg$fail(Ar)),r}function peg$parseSameBullet(){var e,r,n;return e=la,r=peg$parseBullet(),r!==a?(ua=la,n=Cr(r),n=n?void 0:a,n!==a?(ua=e,r=kr(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parsePushBullet$(){var e,r,n,t,i,p;return e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(t=peg$parseSameIndent(),t!==a?(i=peg$parseBullet(),i!==a?(ua=la,p=wr(i),p=p?void 0:a,p!==a?(n=[n,t,i,p],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e}function peg$parsePopBullet$(){var e;return ua=la,e=Ir(),e=e?void 0:a}function peg$parseBulletListItem(){var e,r,n,t,i;return e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a?(n=peg$parseSameIndent(),n!==a?(t=peg$parseSameBullet(),t!==a?(i=peg$parseListItem(),i!==a?(ua=e,r=Er(r,t,i),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseEnumeratedList(){var e,r,n,t,i,p;if(e=la,(r=peg$parseBeginEnumeratedList$())!==a){if(n=[],(t=peg$parseEnumeratedListItem())!==a)for(;t!==a;)n.push(t),t=peg$parseEnumeratedListItem();else n=a;n===a&&(n=la,t=peg$parseEndEnumeratedList$(),t!==a?(i=peg$parseFail$(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a)),n!==a?(t=peg$parseEndEnumeratedList$(),t!==a?(i=la,$a++,p=peg$parseBlankLines(),$a--,p!==a?(la=i,i=void 0):i=a,i!==a?(ua=e,r=Lr(n),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseBeginEnumeratedList$(){var e,r,n,t;return e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(ua=la,t=yr(),t=t?void 0:a,t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e}function peg$parseEndEnumeratedList$(){var e;return ua=la,e=xr(),e=e?void 0:a}function peg$parseEnumeratedListItem(){var e,r,n,t,i;return e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a?(n=peg$parseSameIndent(),n!==a?(t=peg$parseNextEnumerator(),t!==a?(i=peg$parseListItem(),i!==a?(ua=e,r=br(r,t,i),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseEnumerator(){var r,n,t,i;return r=la,n=peg$parseEnumerationSequence(),n!==a?(46===e.charCodeAt(la)?(t=ke,la++):(t=a,0===$a&&peg$fail(we)),t!==a?(ua=r,n=Br(n),r=n):(la=r,r=a)):(la=r,r=a),r===a&&(r=la,n=peg$parseEnumerationSequence(),n!==a?(41===e.charCodeAt(la)?(t=ce,la++):(t=a,0===$a&&peg$fail(ge)),t!==a?(ua=r,n=Sr(n),r=n):(la=r,r=a)):(la=r,r=a),r===a&&(r=la,40===e.charCodeAt(la)?(n=le,la++):(n=a,0===$a&&peg$fail(ue)),n!==a?(t=peg$parseEnumerationSequence(),t!==a?(41===e.charCodeAt(la)?(i=ce,la++):(i=a,0===$a&&peg$fail(ge)),i!==a?(ua=r,n=_r(t),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a))),r}function peg$parseNextEnumerator(){var e,r,n;return e=la,r=peg$parseEnumerator(),r!==a?(ua=la,n=Wr(r),n=n?void 0:a,n!==a?(ua=e,r=Nr(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseEnumerationSequence(){var e,r,n;return e=peg$parseAutoEnumerationSequence(),e===a&&(e=la,r=peg$parseAcceptNumeral$(),r!==a?(n=peg$parseArabicNumeralsEnumerationSequence(),n!==a?(ua=e,r=Nr(n),e=r):(la=e,e=a)):(la=e,e=a),e===a&&(e=la,r=peg$parseAcceptUpperCaseRoman$(),r!==a?(n=peg$parseUpperCaseRomanEnumerationSequence(),n!==a?(ua=e,r=Nr(n),e=r):(la=e,e=a)):(la=e,e=a),e===a&&(e=la,r=peg$parseAcceptLowerCaseRoman$(),r!==a?(n=peg$parseLowerCaseRomanEnumerationSequence(),n!==a?(ua=e,r=Nr(n),e=r):(la=e,e=a)):(la=e,e=a),e===a&&(e=la,r=peg$parseAcceptUpperCaseAlphabet$(),r!==a?(n=peg$parseUpperCaseAlphabetEnumerationSequence(),n!==a?(ua=e,r=Nr(n),e=r):(la=e,e=a)):(la=e,e=a),e===a&&(e=la,r=peg$parseAcceptLowerCaseAlphabet$(),r!==a?(n=peg$parseLowerCaseAlphabetEnumerationSequence(),n!==a?(ua=e,r=Nr(n),e=r):(la=e,e=a)):(la=e,e=a)))))),e}function peg$parseAcceptNumeral$(){var e;return ua=la,e=Tr(),e=e?void 0:a}function peg$parseAcceptUpperCaseRoman$(){var e;return ua=la,e=Mr(),e=e?void 0:a}function peg$parseAcceptLowerCaseRoman$(){var e;return ua=la,e=Rr(),e=e?void 0:a}function peg$parseAcceptUpperCaseAlphabet$(){var e;return ua=la,e=Pr(),e=e?void 0:a}function peg$parseAcceptLowerCaseAlphabet$(){var e;return ua=la,e=Dr(),e=e?void 0:a}function peg$parseAutoEnumerationSequence(){var r,n;return r=la,35===e.charCodeAt(la)?(n=K,la++):(n=a,0===$a&&peg$fail(ee)),n!==a&&(ua=r,n=qr()),r=n}function peg$parseArabicNumeralsEnumerationSequence(){var r,n,t,i;if(r=la,Fr.test(e.charAt(la))?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(jr)),n!==a){for(t=[],Or.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(zr));i!==a;)t.push(i),Or.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(zr));t!==a?(ua=r,n=Ur(n,t),r=n):(la=r,r=a)}else la=r,r=a;return r===a&&(r=la,Qr.test(e.charAt(la))?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(Hr)),n!==a&&(ua=r,n=Xr(n)),r=n),r}function peg$parseUpperCaseAlphabetEnumerationSequence(){var r,n;return r=la,Vr.test(e.charAt(la))?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(Zr)),n!==a&&(ua=r,n=Yr(n)),r=n}function peg$parseLowerCaseAlphabetEnumerationSequence(){var r,n;return r=la,Gr.test(e.charAt(la))?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(Jr)),n!==a&&(ua=r,n=Kr(n)),r=n}function peg$parseUpperCaseRomanEnumerationSequence(){var r,n,t;if(r=la,n=[],en.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(rn)),t!==a)for(;t!==a;)n.push(t),en.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(rn));else n=a;return n!==a?(ua=la,t=nn(n),t=t?void 0:a,t!==a?(ua=r,n=tn(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseLowerCaseRomanEnumerationSequence(){var r,n,t;if(r=la,n=[],an.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(pn)),t!==a)for(;t!==a;)n.push(t),an.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(pn));else n=a;return n!==a?(ua=la,t=on(n),t=t?void 0:a,t!==a?(ua=r,n=sn(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseDefinitionList(){var e,r,n,t;if(e=la,r=[],(n=peg$parseDefinitionListItem())!==a)for(;n!==a;)r.push(n),n=peg$parseDefinitionListItem();else r=a;return r!==a?(n=la,$a++,t=peg$parseBlankLines(),$a--,t!==a?(la=n,n=void 0):n=a,n!==a?(ua=e,r=ln(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseDefinitionListItem(){var r,n,t,i,p,o,s,l,u;if(r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a)if(peg$parseSameIndent()!==a)if((t=peg$parseDefinitionTerm())!==a){if(i=[],p=la,o=[],(s=peg$parseWhitespace())!==a)for(;s!==a;)o.push(s),s=peg$parseWhitespace();else o=a;if(o!==a)if(58===e.charCodeAt(la)?(s=Le,la++):(s=a,0===$a&&peg$fail(ye)),s!==a){if(l=[],(u=peg$parseWhitespace())!==a)for(;u!==a;)l.push(u),u=peg$parseWhitespace();else l=a;l!==a?(u=peg$parseDefinitionClassifier(),u!==a?(o=[o,s,l,u],p=o):(la=p,p=a)):(la=p,p=a)}else la=p,p=a;else la=p,p=a;for(;p!==a;){if(i.push(p),p=la,o=[],(s=peg$parseWhitespace())!==a)for(;s!==a;)o.push(s),s=peg$parseWhitespace();else o=a;if(o!==a)if(58===e.charCodeAt(la)?(s=Le,la++):(s=a,0===$a&&peg$fail(ye)),s!==a){if(l=[],(u=peg$parseWhitespace())!==a)for(;u!==a;)l.push(u),u=peg$parseWhitespace();else l=a;l!==a?(u=peg$parseDefinitionClassifier(),u!==a?(o=[o,s,l,u],p=o):(la=p,p=a)):(la=p,p=a)}else la=p,p=a;else la=p,p=a}if(i!==a){for(p=[],o=peg$parseWhitespace();o!==a;)p.push(o),o=peg$parseWhitespace();p!==a?(o=peg$parseNewline(),o!==a?(s=peg$parsePushFirstIndent$(),s!==a?(l=peg$parseDefinitionListBody(),l===a&&(l=peg$parseFailbackIndent$()),l!==a?(u=peg$parsePopIndent$(),u!==a?(ua=r,n=un(n,t,i,s,l),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a}else la=r,r=a;else la=r,r=a;else la=r,r=a;return r}function peg$parseDefinitionTerm(){var e,r,n;if(e=la,r=[],n=peg$parseInlineMarkupWithoutNewline(),n===a&&(n=peg$parseDefinitionTermText()),n!==a)for(;n!==a;)r.push(n),(n=peg$parseInlineMarkupWithoutNewline())===a&&(n=peg$parseDefinitionTermText());else r=a;return r!==a&&(ua=e,r=cn(r)),e=r}function peg$parseDefinitionListBody(){var e,r,n;if(e=la,r=[],(n=peg$parseBodyElement())!==a)for(;n!==a;)r.push(n),n=peg$parseBodyElement();else r=a;return r!==a&&(ua=e,r=gn(r)),e=r}function peg$parseDefinitionClassifierBeggining(){var r,n,t,i,p;if(r=la,n=[],(t=peg$parseWhitespace())!==a)for(;t!==a;)n.push(t),t=peg$parseWhitespace();else n=a;if(n!==a)if(58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t!==a){if(i=[],(p=peg$parseWhitespace())!==a)for(;p!==a;)i.push(p),p=peg$parseWhitespace();else i=a;i!==a?(n=[n,t,i],r=n):(la=r,r=a)}else la=r,r=a;else la=r,r=a;return r}function peg$parseDefinitionTermText(){var r,n,t,i,p,o,s;if(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseDefinitionClassifierBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=la,$a++,s=peg$parseInlineMarkupBeggining(),$a--,s===a?o=void 0:(la=o,o=a),o!==a?(e.length>la?(s=e.charAt(la),la++):(s=a,0===$a&&peg$fail(l)),s!==a?(i=[i,p,o,s],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseDefinitionClassifierBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=la,$a++,s=peg$parseInlineMarkupBeggining(),$a--,s===a?o=void 0:(la=o,o=a),o!==a?(e.length>la?(s=e.charAt(la),la++):(s=a,0===$a&&peg$fail(l)),s!==a?(i=[i,p,o,s],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);else n=a;return n!==a&&(ua=r,n=fn(n)),r=n}function peg$parseDefinitionClassifier(){var e,r,n;if(e=la,r=[],n=peg$parseInlineMarkupWithoutNewline(),n===a&&(n=peg$parseDefinitionTermText()),n!==a)for(;n!==a;)r.push(n),(n=peg$parseInlineMarkupWithoutNewline())===a&&(n=peg$parseDefinitionTermText());else r=a;return r!==a&&(ua=e,r=$n(r)),e=r}function peg$parseBlockQuote(){var e;return e=peg$parseNestedBlockQuote(),e===a&&(e=peg$parseSimpleBlockQuote()),e}function peg$parseNestedBlockQuote(){var e,r,n,t,i,p,o,s;return e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a?(n=peg$parsePushFirstIndent$(),n!==a?(t=peg$parseInnerBlockQuote(),t!==a?(i=la,$a++,p=la,o=peg$parseBlankLines(),o!==a?(s=peg$parseShallowIndent(),s!==a?(o=[o,s],p=o):(la=p,p=a)):(la=p,p=a),p===a&&(p=peg$parseFailbackIndent$()),$a--,p!==a?(la=i,i=void 0):i=a,i!==a?(p=peg$parsePopIndent$(),p!==a?(o=peg$parseBlockQuote(),o!==a?(ua=e,r=hn(r,n,t,o),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseInnerBlockQuote(){var e,r,n;return e=la,r=peg$parseBlockQuoteBody(),r===a&&(r=peg$parseFailbackIndent$()),r!==a?(n=peg$parseAttribution(),n===a&&(n=null),n!==a?(ua=e,r=dn(r,n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseSimpleBlockQuote(){var e,r,n,t,i,p;return e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a?(n=peg$parsePushFirstIndent$(),n!==a?(t=peg$parseBlockQuoteBody(),t===a&&(t=peg$parseFailbackIndent$()),t!==a?(i=peg$parseAttribution(),i===a&&(i=null),i!==a?(p=peg$parsePopIndent$(),p!==a?(ua=e,r=vn(r,n,t,i),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseBlockQuoteBody(){var e,r,n,t,i,p;if(e=la,(r=peg$parseBodyElementExceptBlockQuote())!==a){for(n=[],t=la,i=la,$a++,p=peg$parseAttribution(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseBodyElement(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseAttribution(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseBodyElement(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);n!==a?(ua=e,r=mn(r,n),e=r):(la=e,e=a)}else la=e,e=a;return e}function peg$parseAttribution(){var r,n,t,i,p,o,s,u;if(r=la,(n=peg$parseBlankLines())!==a)if(peg$parseSameIndent()!==a)if(e.substr(la,3)===An?(t=An,la+=3):(t=a,0===$a&&peg$fail(Cn)),t===a&&(e.substr(la,2)===kn?(t=kn,la+=2):(t=a,0===$a&&peg$fail(wn)),t===a&&(8212===e.charCodeAt(la)?(t=In,la++):(t=a,0===$a&&peg$fail(En)))),t!==a){for(i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=la,$a++,o=la,s=la,$a++,u=peg$parseEndline(),$a--,u===a?s=void 0:(la=s,s=a),s!==a?(e.length>la?(u=e.charAt(la),la++):(u=a,0===$a&&peg$fail(l)),u!==a?(s=[s,u],o=s):(la=o,o=a)):(la=o,o=a),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(o=peg$parseAttributionBodyWithIndent(),o===a&&(o=peg$parseAttributionBodyWithoutIndent()),o!==a?(ua=r,n=Ln(n,o),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;else la=r,r=a;return r}function peg$parsePushAttributionIndent$(){var e,r,n,t;return e=la,$a++,r=la,n=peg$parseRawLine(),n!==a?(t=peg$parsePushFirstIndent$(),t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e}function peg$parseAttributionBodyWithIndent(){var e,r,n,t,i;return e=la,r=peg$parsePushAttributionIndent$(),r!==a?(n=peg$parseSkipIndentCheck$(),n!==a?(t=peg$parseParagraph(),t===a&&(t=peg$parseFailbackIndent$()),t!==a?(i=peg$parsePopIndent$(),i!==a?(ua=e,r=yn(t),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseAttributionBodyWithoutIndent(){var e,r,n;return e=la,r=peg$parseSkipIndentCheck$(),r!==a?(n=peg$parseParagraph(),n!==a?(ua=e,r=xn(n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseComment(){var e;return e=peg$parseCommentStartFromFirstLine(),e===a&&(e=peg$parseCommentStartFromNextLine()),e}function peg$parseCommentStartFromFirstLine(){var r,n,t,i,p,o,s,l,u;if(r=la,(n=peg$parseSameIndent())!==a)if(e.substr(la,2)===bn?(t=bn,la+=2):(t=a,0===$a&&peg$fail(Bn)),t!==a){if(i=[],(p=peg$parseWhitespace())!==a)for(;p!==a;)i.push(p),p=peg$parseWhitespace();else i=a;i!==a?(p=la,$a++,o=peg$parseNonspacechar(),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(o=peg$parseRawLine(),o!==a?(s=la,l=peg$parseBlankLines(),l===a&&(l=null),l!==a?(u=peg$parseCommentBlock(),u!==a?(l=[l,u],s=l):(la=s,s=a)):(la=s,s=a),s===a&&(s=null),s!==a?(ua=r,n=Sn(o,s),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;return r}function peg$parseCommentStartFromNextLine(){var r,n,t,i,p,o;if(r=la,(n=peg$parseSameIndent())!==a)if(e.substr(la,2)===bn?(t=bn,la+=2):(t=a,0===$a&&peg$fail(Bn)),t!==a){for(i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=peg$parseNewline(),p!==a?(o=peg$parseCommentBlock(),o===a&&(o=null),o!==a?(ua=r,n=_n(o),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;return r}function peg$parseCommentBlock(){var e,r,n,t,i,p;if(e=la,(r=peg$parsePushCommonIndent$())!==a){for(n=[],t=la,i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();if(i!==a?(p=peg$parseNewline(),p!==a?(ua=t,i=Wn(r),t=i):(la=t,t=a)):(la=t,t=a),t===a&&(t=la,i=peg$parseSameOrDeepIndent(),i!==a?(p=peg$parseNotEmptyRawLine(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a)),t!==a)for(;t!==a;){for(n.push(t),t=la,i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=peg$parseNewline(),p!==a?(ua=t,i=Wn(r),t=i):(la=t,t=a)):(la=t,t=a),t===a&&(t=la,i=peg$parseSameOrDeepIndent(),i!==a?(p=peg$parseNotEmptyRawLine(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a))}else n=a;n===a&&(n=peg$parseFailbackIndent$()),n!==a?(t=peg$parsePopIndent$(),t!==a?(ua=e,r=Nn(r,n),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseInlineMarkupFollowing(){var r,n,t;return r=peg$parseEndline(),r===a&&(r=la,e.length>la?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(l)),n!==a?(ua=la,t=Tn(n),t=t?void 0:a,t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a)),r}function peg$parseInlineMarkup(){var e;return e=peg$parseStrongEmphasis(),e===a&&(e=peg$parseEmphasis())===a&&(e=peg$parseInlineLiteral())===a&&(e=peg$parseInlineInternalTarget())===a&&(e=peg$parseHyperlinkReference())===a&&(e=peg$parseInterpretedText())===a&&(e=peg$parseSubstitutionReference())===a&&(e=peg$parseFootnoteReference())===a&&(e=peg$parseCitationReference()),e}function peg$parseInlineMarkupWithoutNewline(){var e;return e=peg$parseStrongEmphasisWithoutNewline(),e===a&&(e=peg$parseEmphasisWithoutNewline())===a&&(e=peg$parseInlineLiteralWithoutNewline()),e}function peg$parseMarkupEndString(){var r,n,t,i,p,o;return r=la,ua=la,n=Mn(),n=n?void 0:a,n!==a?(e.length>la?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(l)),t!==a?(ua=la,i=Rn(t),i=i?void 0:a,i!==a?(n=[n,t,i],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r===a&&(r=la,ua=la,n=Pn(),n=n?void 0:a,n!==a?(t=la,e.length>la?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(l)),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t!==a?(ua=la,i=Dn(t),i=i?void 0:a,i!==a?(n=[n,t,i],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r===a&&(r=la,ua=la,n=qn(),n=n?void 0:a,n!==a?(t=la,e.length>la?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(l)),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),t!==a?(ua=la,i=Dn(t),i=i?void 0:a,i!==a?(n=[n,t,i],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a))),r}function peg$parseMarkupTextWithoutNewline(){var r,n,t,i,p,o,s,u,c,g,f;if(r=la,n=[],t=la,i=la,$a++,p=peg$parseNewline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=la,s=la,$a++,u=peg$parseNormalizedToWhitespace(),$a--,u===a?s=void 0:(la=s,s=a),s!==a?(ua=la,u=Fn(),u=u?void 0:a,u===a&&(u=la,$a++,92===e.charCodeAt(la)?(c=je,la++):(c=a,0===$a&&peg$fail(Oe)),$a--,c===a?u=void 0:(la=u,u=a)),u!==a?(e.length>la?(c=e.charAt(la),la++):(c=a,0===$a&&peg$fail(l)),c!==a?(g=peg$parseMarkupEndString(),g!==a?(f=peg$parseInlineMarkupFollowing(),f!==a?(s=[s,u,c,g,f],o=s):(la=o,o=a)):(la=o,o=a)):(la=o,o=a)):(la=o,o=a)):(la=o,o=a),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseNewline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=la,s=la,$a++,u=peg$parseNormalizedToWhitespace(),$a--,u===a?s=void 0:(la=s,s=a),s!==a?(ua=la,u=Fn(),u=u?void 0:a,u===a&&(u=la,$a++,92===e.charCodeAt(la)?(c=je,la++):(c=a,0===$a&&peg$fail(Oe)),$a--,c===a?u=void 0:(la=u,u=a)),u!==a?(e.length>la?(c=e.charAt(la),la++):(c=a,0===$a&&peg$fail(l)),c!==a?(g=peg$parseMarkupEndString(),g!==a?(f=peg$parseInlineMarkupFollowing(),f!==a?(s=[s,u,c,g,f],o=s):(la=o,o=a)):(la=o,o=a)):(la=o,o=a)):(la=o,o=a)):(la=o,o=a),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);else n=a;return n!==a&&(ua=r,n=jn(n)),r=n}function peg$parseMarkupTextWithoutIndent(){var e,r,n;return e=la,r=peg$parseMarkupTextWithoutNewline(),r!==a?(n=peg$parseNewline(),n===a&&(n=null),n!==a?(ua=e,r=On(r,n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseMarkupTailWithoutNewline(){var r,n,t,i,p,o,s,u;return r=la,n=peg$parseMarkupTextWithoutNewline(),n!==a?(t=la,$a++,i=peg$parseEndline(),$a--,i===a?t=void 0:(la=t,t=a),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(o=peg$parseMarkupEndString(),o!==a?(s=la,$a++,u=peg$parseInlineMarkupFollowing(),$a--,u!==a?(la=s,s=void 0):s=a,s!==a?(ua=r,n=zn(n,p),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseMarkupTail(){var r,n,t,i,p,o,s,u,c;if(r=la,n=peg$parseMarkupTextWithoutIndent(),n===a&&(n=null),n!==a){for(t=[],i=la,p=peg$parseSameIndent(),p!==a?(o=peg$parseMarkupTextWithoutIndent(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a);i!==a;)t.push(i),i=la,p=peg$parseSameIndent(),p!==a?(o=peg$parseMarkupTextWithoutIndent(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a);t!==a?(i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseNormalizedToWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(s=peg$parseMarkupEndString(),s!==a?(u=la,$a++,c=peg$parseInlineMarkupFollowing(),$a--,c!==a?(la=u,u=void 0):u=a,u!==a?(ua=r,n=Un(n,t,o),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;return r}function peg$parseEmphasis(){var r,n,t,i,p,o;return r=la,n=la,42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t!==a?(i=la,$a++,42===e.charCodeAt(la)?(p=fe,la++):(p=a,0===$a&&peg$fail($e)),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseNormalizedToWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(t=[t,i,p],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=Qn(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=Hn(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseEmphasisWithoutNewline(){var r,n,t,i,p,o;return r=la,n=la,42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t!==a?(i=la,$a++,42===e.charCodeAt(la)?(p=fe,la++):(p=a,0===$a&&peg$fail($e)),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseNormalizedToWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(t=[t,i,p],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=Qn(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTailWithoutNewline(),i!==a?(ua=r,n=Hn(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseStrongEmphasis(){var r,n,t,i,p;return r=la,n=la,e.substr(la,2)===Xn?(t=Xn,la+=2):(t=a,0===$a&&peg$fail(Vn)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=Zn(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=Yn(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseStrongEmphasisWithoutNewline(){var r,n,t,i,p;return r=la,n=la,e.substr(la,2)===Xn?(t=Xn,la+=2):(t=a,0===$a&&peg$fail(Vn)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=Zn(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTailWithoutNewline(),i!==a?(ua=r,n=Yn(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseInterpretedText(){var r,n,t,i,p,o,s,u,c;if(r=la,n=la,58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t!==a){if(i=[],p=la,o=la,$a++,s=peg$parseEndline(),$a--,s===a?o=void 0:(la=o,o=a),o!==a?(s=la,$a++,u=peg$parseWhitespace(),$a--,u===a?s=void 0:(la=s,s=a),s!==a?(u=la,$a++,58===e.charCodeAt(la)?(c=Le,la++):(c=a,0===$a&&peg$fail(ye)),$a--,c===a?u=void 0:(la=u,u=a),u!==a?(e.length>la?(c=e.charAt(la),la++):(c=a,0===$a&&peg$fail(l)),c!==a?(o=[o,s,u,c],p=o):(la=p,p=a)):(la=p,p=a)):(la=p,p=a)):(la=p,p=a),p!==a)for(;p!==a;)i.push(p),p=la,o=la,$a++,s=peg$parseEndline(),$a--,s===a?o=void 0:(la=o,o=a),o!==a?(s=la,$a++,u=peg$parseWhitespace(),$a--,u===a?s=void 0:(la=s,s=a),s!==a?(u=la,$a++,58===e.charCodeAt(la)?(c=Le,la++):(c=a,0===$a&&peg$fail(ye)),$a--,c===a?u=void 0:(la=u,u=a),u!==a?(e.length>la?(c=e.charAt(la),la++):(c=a,0===$a&&peg$fail(l)),c!==a?(o=[o,s,u,c],p=o):(la=p,p=a)):(la=p,p=a)):(la=p,p=a)):(la=p,p=a);else i=a;i!==a?(58===e.charCodeAt(la)?(p=Le,la++):(p=a,0===$a&&peg$fail(ye)),p!==a?(t=[t,i,p],n=t):(la=n,n=a)):(la=n,n=a)}else la=n,n=a;return n===a&&(n=null),n!==a?(t=la,96===e.charCodeAt(la)?(i=Ze,la++):(i=a,0===$a&&peg$fail(Ye)),i!==a?(p=la,$a++,o=peg$parseNormalizedToWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t!==a?(ua=la,i=Gn(n),i=i?void 0:a,i!==a?(p=peg$parseMarkupTail(),p!==a?(ua=r,n=Jn(n,p),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseInlineLiteral(){var r,n,t,i,p;return r=la,n=la,e.substr(la,2)===Kn?(t=Kn,la+=2):(t=a,0===$a&&peg$fail(et)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=rt(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=nt(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseInlineLiteralWithoutNewline(){var r,n,t,i,p;return r=la,n=la,e.substr(la,2)===Kn?(t=Kn,la+=2):(t=a,0===$a&&peg$fail(et)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=rt(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTailWithoutNewline(),i!==a?(ua=r,n=nt(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseSubstitutionReference(){var r,n,t,i,p;return r=la,n=la,124===e.charCodeAt(la)?(t=Ke,la++):(t=a,0===$a&&peg$fail(er)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=tt(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=at(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseInlineInternalTarget(){var r,n,t,i,p;return r=la,n=la,e.substr(la,2)===it?(t=it,la+=2):(t=a,0===$a&&peg$fail(pt)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=ot(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=st(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseFootnoteLabel(){var r,n,t,i;if(r=la,n=[],Or.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(zr)),t!==a)for(;t!==a;)n.push(t),Or.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(zr));else n=a;return n===a&&(n=la,35===e.charCodeAt(la)?(t=K,la++):(t=a,0===$a&&peg$fail(ee)),t!==a?(i=peg$parseReferenceName(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n===a&&(35===e.charCodeAt(la)?(n=K,la++):(n=a,0===$a&&peg$fail(ee)),n===a&&(42===e.charCodeAt(la)?(n=fe,la++):(n=a,0===$a&&peg$fail($e))))),n!==a&&(ua=r,n=lt(n)),r=n}function peg$parseFootnoteReference(){var r,n,t,i,p,o;return r=la,91===e.charCodeAt(la)?(n=qe,la++):(n=a,0===$a&&peg$fail(Fe)),n!==a?(t=peg$parseFootnoteLabel(),t!==a?(e.substr(la,2)===ut?(i=ut,la+=2):(i=a,0===$a&&peg$fail(ct)),i!==a?(p=la,$a++,o=peg$parseInlineMarkupFollowing(),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(ua=r,n=gt(t),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseCitationReference(){var r,n,t,i,p,o;return r=la,91===e.charCodeAt(la)?(n=qe,la++):(n=a,0===$a&&peg$fail(Fe)),n!==a?(t=peg$parseReferenceName(),t!==a?(e.substr(la,2)===ut?(i=ut,la+=2):(i=a,0===$a&&peg$fail(ct)),i!==a?(p=la,$a++,o=peg$parseInlineMarkupFollowing(),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(ua=r,n=ft(t),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseHyperlinkReference(){var e;return e=peg$parseAnonymousHyperlinkReference(),e===a&&(e=peg$parseAnonymousSimpleHyperlinkReference())===a&&(e=peg$parseNamedHyperlinkReference())===a&&(e=peg$parseNamedSimpleHyperlinkReference()),e}function peg$parseNamedHyperlinkReference(){var r,n,t,i,p;return r=la,n=la,96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ye)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=$t(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=ht(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseNamedSimpleHyperlinkReference(){var r,n,t,i,p;return r=la,n=peg$parseHyperlinkReferenceName(),n!==a?(95===e.charCodeAt(la)?(t=Xe,la++):(t=a,0===$a&&peg$fail(Ve)),t!==a?(i=la,$a++,p=peg$parseInlineMarkupFollowing(),$a--,p!==a?(la=i,i=void 0):i=a,i!==a?(ua=r,n=dt(n),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseAnonymousHyperlinkReference(){var r,n,t,i,p;return r=la,n=la,96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ye)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=vt(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=mt(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseAnonymousSimpleHyperlinkReference(){var r,n,t,i,p;return r=la,n=peg$parseHyperlinkReferenceName(),n!==a?(e.substr(la,2)===At?(t=At,la+=2):(t=a,0===$a&&peg$fail(Ct)),t!==a?(i=la,$a++,p=peg$parseInlineMarkupFollowing(),$a--,p!==a?(la=i,i=void 0):i=a,i!==a?(ua=r,n=kt(n),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseReferenceName(){var r,n,t,i;if(r=la,(n=peg$parseAlphanumericAscii())!==a){if(t=[],i=peg$parseAlphanumericAscii(),i===a&&(wt.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(It))),i!==a)for(;i!==a;)t.push(i),(i=peg$parseAlphanumericAscii())===a&&(wt.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(It)));else t=a;t!==a?(ua=r,n=Et(n,t),r=n):(la=r,r=a)}else la=r,r=a;return r}function peg$parseHyperlinkReferenceName(){var r,n,t,i;if(r=la,(n=peg$parseAlphanumericAscii())!==a){if(t=[],i=peg$parseAlphanumericAscii(),i===a&&(Lt.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(yt))),i!==a)for(;i!==a;)t.push(i),(i=peg$parseAlphanumericAscii())===a&&(Lt.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(yt)));else t=a;t!==a?(ua=r,n=Et(n,t),r=n):(la=r,r=a)}else la=r,r=a;return r}function peg$parseLiteralBlock(){var e,r,n;return e=la,r=peg$parseSameIndent(),r!==a?(n=peg$parseLiteralBlockWithoutIndent(),n!==a?(ua=e,r=xt(n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseLiteralBlockWithoutIndent(){var e;return e=peg$parseIndentedLiteralBlockWithoutIndent(),e===a&&(e=peg$parseQuotedLiteralBlockWithoutIndent()),e}function peg$parseIndentedLiteralBlockWithoutIndent(){var r,n,t,i,p,o,s,l,u,c,g,f,h;if(r=la,e.substr(la,2)===bt?(n=bt,la+=2):(n=a,0===$a&&peg$fail(Bt)),n!==a){for(t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();if(t!==a)if((i=peg$parseNewline())!==a)if(peg$parseBlankLines()!==a)if((p=peg$parsePushCommonIndent$())!==a){for(o=[],s=la,l=[],u=peg$parseWhitespace();u!==a;)l.push(u),u=peg$parseWhitespace();if(l!==a?(u=peg$parseNewline(),u!==a?(c=la,$a++,g=la,f=peg$parseBlankLines(),f===a&&(f=null),f!==a?(h=peg$parseShallowIndent(),h!==a?(f=[f,h],g=f):(la=g,g=a)):(la=g,g=a),$a--,g===a?c=void 0:(la=c,c=a),c!==a?(l=[l,u,c],s=l):(la=s,s=a)):(la=s,s=a)):(la=s,s=a),s===a)if(s=la,l=la,$a++,u=peg$parseSameOrDeepIndent(),$a--,u!==a?(la=l,l=void 0):l=a,l!==a){if(u=[],(c=peg$parseWhitespace())!==a)for(;c!==a;)u.push(c),c=peg$parseWhitespace();else u=a;u!==a?(c=peg$parseRawLine(),c!==a?(l=[l,u,c],s=l):(la=s,s=a)):(la=s,s=a)}else la=s,s=a;if(s!==a)for(;s!==a;){for(o.push(s),s=la,l=[],u=peg$parseWhitespace();u!==a;)l.push(u),u=peg$parseWhitespace();if(l!==a?(u=peg$parseNewline(),u!==a?(c=la,$a++,g=la,f=peg$parseBlankLines(),f===a&&(f=null),f!==a?(h=peg$parseShallowIndent(),h!==a?(f=[f,h],g=f):(la=g,g=a)):(la=g,g=a),$a--,g===a?c=void 0:(la=c,c=a),c!==a?(l=[l,u,c],s=l):(la=s,s=a)):(la=s,s=a)):(la=s,s=a),s===a)if(s=la,l=la,$a++,u=peg$parseSameOrDeepIndent(),$a--,u!==a?(la=l,l=void 0):l=a,l!==a){if(u=[],(c=peg$parseWhitespace())!==a)for(;c!==a;)u.push(c),c=peg$parseWhitespace();else u=a;u!==a?(c=peg$parseRawLine(),c!==a?(l=[l,u,c],s=l):(la=s,s=a)):(la=s,s=a)}else la=s,s=a}else o=a;o===a&&(o=peg$parseFailbackIndent$()),o!==a?(s=peg$parsePopIndent$(),s!==a?(ua=r,n=St(p,o),r=n):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;else la=r,r=a;else la=r,r=a}else la=r,r=a;return r}function peg$parseQuotedLiteralBlockWithoutIndent(){var r,n,t,i,p,o,s,l,u;if(r=la,e.substr(la,2)===bt?(n=bt,la+=2):(n=a,0===$a&&peg$fail(Bt)),n!==a){for(t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();if(t!==a)if((i=peg$parseNewline())!==a)if(peg$parseBlankLines()!==a)if(peg$parseSetQuoting$()!==a){if(p=[],o=la,s=peg$parseSameIndent(),s!==a?(l=peg$parseIsValidQuoting$(),l!==a?(u=peg$parseNotEmptyRawLine(),u!==a?(s=[s,l,u],o=s):(la=o,o=a)):(la=o,o=a)):(la=o,o=a),o!==a)for(;o!==a;)p.push(o),o=la,s=peg$parseSameIndent(),s!==a?(l=peg$parseIsValidQuoting$(),l!==a?(u=peg$parseNotEmptyRawLine(),u!==a?(s=[s,l,u],o=s):(la=o,o=a)):(la=o,o=a)):(la=o,o=a);else p=a;p!==a?(o=la,$a++,s=peg$parseBlankLines(),$a--,s!==a?(la=o,o=void 0):o=a,o!==a?(ua=r,n=_t(p),r=n):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;else la=r,r=a;else la=r,r=a}else la=r,r=a;return r}function peg$parseQuoting(){var r;return 33===e.charCodeAt(la)?(r=Z,la++):(r=a,0===$a&&peg$fail(Y)),r===a&&(34===e.charCodeAt(la)?(r=G,la++):(r=a,0===$a&&peg$fail(J)),r===a&&(35===e.charCodeAt(la)?(r=K,la++):(r=a,0===$a&&peg$fail(ee)),r===a&&(36===e.charCodeAt(la)?(r=re,la++):(r=a,0===$a&&peg$fail(ne)),r===a&&(37===e.charCodeAt(la)?(r=te,la++):(r=a,0===$a&&peg$fail(ae)),r===a&&(38===e.charCodeAt(la)?(r=ie,la++):(r=a,0===$a&&peg$fail(pe)),r===a&&(39===e.charCodeAt(la)?(r=oe,la++):(r=a,0===$a&&peg$fail(se)),r===a&&(40===e.charCodeAt(la)?(r=le,la++):(r=a,0===$a&&peg$fail(ue)),r===a&&(41===e.charCodeAt(la)?(r=ce,la++):(r=a,0===$a&&peg$fail(ge)),r===a&&(42===e.charCodeAt(la)?(r=fe,la++):(r=a,0===$a&&peg$fail($e)),r===a&&(43===e.charCodeAt(la)?(r=he,la++):(r=a,0===$a&&peg$fail(de)),r===a&&(44===e.charCodeAt(la)?(r=ve,la++):(r=a,0===$a&&peg$fail(me)),r===a&&(45===e.charCodeAt(la)?(r=Ae,la++):(r=a,0===$a&&peg$fail(Ce)),r===a&&(46===e.charCodeAt(la)?(r=ke,la++):(r=a,0===$a&&peg$fail(we)),r===a&&(47===e.charCodeAt(la)?(r=Ie,la++):(r=a,0===$a&&peg$fail(Ee)),r===a&&(58===e.charCodeAt(la)?(r=Le,la++):(r=a,0===$a&&peg$fail(ye)),r===a&&(59===e.charCodeAt(la)?(r=xe,la++):(r=a,0===$a&&peg$fail(be)),r===a&&(60===e.charCodeAt(la)?(r=Be,la++):(r=a,0===$a&&peg$fail(Se)),r===a&&(61===e.charCodeAt(la)?(r=_e,la++):(r=a,0===$a&&peg$fail(We)),r===a&&(62===e.charCodeAt(la)?(r=Ne,la++):(r=a,0===$a&&peg$fail(Te)),r===a&&(63===e.charCodeAt(la)?(r=Me,la++):(r=a,0===$a&&peg$fail(Re)),r===a&&(64===e.charCodeAt(la)?(r=Pe,la++):(r=a,0===$a&&peg$fail(De)),r===a&&(91===e.charCodeAt(la)?(r=qe,la++):(r=a,0===$a&&peg$fail(Fe)),r===a&&(92===e.charCodeAt(la)?(r=je,la++):(r=a,0===$a&&peg$fail(Oe)),r===a&&(93===e.charCodeAt(la)?(r=ze,la++):(r=a,0===$a&&peg$fail(Ue)),r===a&&(94===e.charCodeAt(la)?(r=Qe,la++):(r=a,0===$a&&peg$fail(He)),r===a&&(95===e.charCodeAt(la)?(r=Xe,la++):(r=a,0===$a&&peg$fail(Ve)),r===a&&(96===e.charCodeAt(la)?(r=Ze,la++):(r=a,0===$a&&peg$fail(Ye)),r===a&&(123===e.charCodeAt(la)?(r=Ge,la++):(r=a,0===$a&&peg$fail(Je)),r===a&&(124===e.charCodeAt(la)?(r=Ke,la++):(r=a,0===$a&&peg$fail(er)),r===a&&(125===e.charCodeAt(la)?(r=rr,la++):(r=a,0===$a&&peg$fail(nr)),r===a&&(126===e.charCodeAt(la)?(r=tr,la++):(r=a,0===$a&&peg$fail(ar))))))))))))))))))))))))))))))))),r}function peg$parseSetQuoting$(){var e,r,n,t,i;return e=la,$a++,r=la,n=peg$parseSameIndent(),n!==a?(t=peg$parseQuoting(),t!==a?(ua=la,i=Wt(t),i=i?void 0:a,i!==a?(n=[n,t,i],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e}function peg$parseIsValidQuoting$(){var e,r,n,t;return e=la,$a++,r=la,n=peg$parseQuoting(),n!==a?(ua=la,t=Nt(n),t=t?void 0:a,t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e}function peg$parseLineBlock(){var e;return e=peg$parseNestedLineBlock(),e===a&&(e=peg$parseSimpleLineBlock()),e}function peg$parseNestedLineBlock(){var e,r,n,t,i,p;if(e=la,(r=peg$parsePushLineBlockIndent$())!==a)if((n=peg$parseLine())!==a){for(t=[],i=peg$parseLine(),i===a&&(i=peg$parseLineBlock());i!==a;)t.push(i),(i=peg$parseLine())===a&&(i=peg$parseLineBlock());t!==a?(i=peg$parsePopLineBlockIndent$(),i!==a?(p=peg$parseLineBlock(),p!==a?(ua=e,r=Tt(r,n,t,p),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;else la=e,e=a;return e}function peg$parseSimpleLineBlock(){var e,r,n,t;return e=la,r=peg$parsePushLineBlockIndent$(),r!==a?(n=peg$parseLineBolockMain(),n===a&&(n=peg$parseFailbackLineBlockIndent$()),n!==a?(t=peg$parsePopLineBlockIndent$(),t!==a?(ua=e,r=Mt(r,n),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseLineBolockMain(){var e,r,n,t,i;if(e=la,(r=peg$parseLine())!==a){for(n=[],t=peg$parseLine(),t===a&&(t=peg$parseLineBlock());t!==a;)n.push(t),(t=peg$parseLine())===a&&(t=peg$parseLineBlock());n!==a?(t=la,$a++,i=peg$parseBlankLines(),$a--,i!==a?(la=t,t=void 0):t=a,t!==a?(ua=e,r=Rt(r,n),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseLine(){var e;return e=peg$parseNonEmptyLine(),e===a&&(e=peg$parseEmptyLine()),e}function peg$parseNonEmptyLine(){var r,n,t,i,p,o;return r=la,n=peg$parseSameIndent(),n!==a?(e.substr(la,2)===Pt?(t=Pt,la+=2):(t=a,0===$a&&peg$fail(Dt)),t!==a?(i=peg$parseSameLineBlockIndent(),i!==a?(p=peg$parseOnelineParagraph(),p!==a?(o=peg$parseNewline(),o!==a?(ua=r,n=qt(p),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseEmptyLine(){var r,n,t,i,p;if(r=la,(n=peg$parseSameIndent())!==a)if(124===e.charCodeAt(la)?(t=Ke,la++):(t=a,0===$a&&peg$fail(er)),t!==a){for(i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=peg$parseNewline(),p!==a?(ua=r,n=Ft(),r=n):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;return r}function peg$parseSameLineBlockIndent(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(ua=la,n=jt(r),n=n?void 0:a,n!==a?(ua=e,r=W(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseDeepLineBlockIndent(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(ua=la,n=Ot(r),n=n?void 0:a,n!==a?(ua=e,r=W(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parsePushLineBlockIndent$(){var r,n,t,i,p,o,s,l;for(r=la,n=la,$a++,t=la,i=[],p=peg$parseEmptyLine();p!==a;)i.push(p),p=peg$parseEmptyLine();return i!==a?(p=peg$parseSameIndent(),p!==a?(e.substr(la,2)===Pt?(o=Pt,la+=2):(o=a,0===$a&&peg$fail(Dt)),o!==a?(s=peg$parseDeepLineBlockIndent(),s!==a?(ua=la,l=zt(s),l=l?void 0:a,l!==a?(i=[i,p,o,s,l],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),$a--,t!==a?(la=n,n=void 0):n=a,n!==a&&(ua=r,n=Ut()),r=n}function peg$parsePopLineBlockIndent$(){var e;return ua=la,e=Qt(),e=e?void 0:a}function peg$parseFailbackLineBlockIndent$(){var e,r,n;return e=la,r=peg$parsePopLineBlockIndent$(),r!==a?(n=peg$parseFail$(),n!==a?(r=[r,n],e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseInlineMarkupPreceding(){var r,n,t;return r=la,e.length>la?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(l)),n!==a?(ua=la,t=Ht(n),t=t?void 0:a,t!==a?(ua=r,n=Xt(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseInlineMarkupStartString(){var r;return e.substr(la,2)===Xn?(r=Xn,la+=2):(r=a,0===$a&&peg$fail(Vn)),r===a&&(42===e.charCodeAt(la)?(r=fe,la++):(r=a,0===$a&&peg$fail($e)),r===a&&(e.substr(la,2)===Kn?(r=Kn,la+=2):(r=a,0===$a&&peg$fail(et)),r===a&&(96===e.charCodeAt(la)?(r=Ze,la++):(r=a,0===$a&&peg$fail(Ye)),r===a&&(124===e.charCodeAt(la)?(r=Ke,la++):(r=a,0===$a&&peg$fail(er)),r===a&&(e.substr(la,2)===it?(r=it,la+=2):(r=a,0===$a&&peg$fail(pt))))))),r}function peg$parseInlineMarkupBeggining(){var r,n,t,i,p,o,s;return r=la,n=peg$parseInlineMarkupPreceding(),n!==a?(t=peg$parseInlineMarkupStartString(),t!==a?(i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(ua=la,s=Vt(n,t,o),s=s?void 0:a,s!==a?(n=[n,t,i,p,o,s],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r===a&&(r=la,n=peg$parseInlineMarkupPreceding(),n!==a?(t=peg$parseInterpretedText(),t===a&&(t=peg$parseFootnoteReference())===a&&(t=peg$parseCitationReference())===a&&(t=peg$parseAnonymousSimpleHyperlinkReference())===a&&(t=peg$parseNamedSimpleHyperlinkReference()),t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a)),r}function peg$parseParagraph(){var e,r,n,t,i,p;if(e=la,r=[],n=la,t=peg$parseSameIndent(),t!==a?(i=peg$parseParagraphBlock(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a)for(;n!==a;)r.push(n),n=la,t=peg$parseSameIndent(),t!==a?(i=peg$parseParagraphBlock(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a);else r=a;return r!==a?(n=la,$a++,t=la,i=peg$parseLiteralBlockWithoutIndent(),i!==a?(p=peg$parseSkipIndentCheck$(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t===a&&(t=peg$parseBlankLines())===a&&(t=peg$parseEndIndent()),$a--,t!==a?(la=n,n=void 0):n=a,n!==a?(ua=e,r=Zt(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseParagraphBlock(){var e,r,n,t,i;if(e=la,r=[],n=la,t=la,$a++,i=peg$parseBlankLines(),i===a&&(i=peg$parseLiteralBlockWithoutIndent()),$a--,i===a?t=void 0:(la=t,t=a),t!==a?(i=peg$parseInlineMarkup(),i===a&&(i=peg$parseParagraphText()),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a)for(;n!==a;)r.push(n),n=la,t=la,$a++,i=peg$parseBlankLines(),i===a&&(i=peg$parseLiteralBlockWithoutIndent()),$a--,i===a?t=void 0:(la=t,t=a),t!==a?(i=peg$parseInlineMarkup(),i===a&&(i=peg$parseParagraphText()),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a);else r=a;if(r!==a){for(n=[],t=peg$parseWhitespace();t!==a;)n.push(t),t=peg$parseWhitespace();n!==a?(t=peg$parseEndline(),t===a&&(t=la,$a++,i=peg$parseLiteralBlockWithoutIndent(),$a--,i!==a?(la=t,t=void 0):t=a),t!==a?(ua=e,r=Yt(r,t),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseParagraphText(){var r,n,t,i,p,o;if(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),p===a&&(p=peg$parseLiteralBlockWithoutIndent()),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),p===a&&(p=peg$parseLiteralBlockWithoutIndent()),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);else n=a;if(n!==a?(t=la,$a++,i=peg$parseEndline(),i===a&&(i=peg$parseLiteralBlockWithoutIndent()),$a--,i!==a?(la=t,t=void 0):t=a,t!==a?(ua=r,n=jn(n),r=n):(la=r,r=a)):(la=r,r=a),r===a){for(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);n!==a?(t=peg$parseInlineMarkupPreceding(),t!==a?(ua=r,n=Gt(n,t),r=n):(la=r,r=a)):(la=r,r=a)}return r}function peg$parseOnelineParagraph(){var e,r;if(e=[],r=peg$parseInlineMarkupWithoutNewline(),r===a&&(r=peg$parseOnelineText()),r!==a)for(;r!==a;)e.push(r),(r=peg$parseInlineMarkupWithoutNewline())===a&&(r=peg$parseOnelineText());else e=a;return e}function peg$parseOnelineText(){var r,n,t,i,p,o;if(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);else n=a;if(n!==a?(t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseInlineMarkupPreceding(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t===a&&(t=null),t!==a?(ua=r,n=Jt(n,t),r=n):(la=r,r=a)):(la=r,r=a),r===a){for(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);n!==a?(t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseInlineMarkupPreceding(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t!==a?(ua=r,n=Kt(n,t),r=n):(la=r,r=a)):(la=r,r=a)}return r}function peg$parseDirectiveType(){var r,n,t,i,p,o;for(r=la,n=[],t=la,ea.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(ra)),i!==a?(p=la,$a++,e.substr(la,2)===bt?(o=bt,la+=2):(o=a,0===$a&&peg$fail(Bt)),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(na.test(e.charAt(la))?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(ta)),o===a&&(o=null),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);t!==a;)n.push(t),t=la,ea.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(ra)),i!==a?(p=la,$a++,e.substr(la,2)===bt?(o=bt,la+=2):(o=a,0===$a&&peg$fail(Bt)),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(na.test(e.charAt(la))?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(ta)),o===a&&(o=null),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);return n!==a?(ea.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(ra)),t!==a?(ua=r,n=aa(n,t),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseDirective(){var e;return e=peg$parseDirectiveStartFromFirstLine(),e===a&&(e=peg$parseDirectiveStartFromNextLine()),e}function peg$parseDirectiveStartFromFirstLine(){var r,n,t,i,p,o,s,l,u,c,g,f;if(r=la,(n=peg$parseSameIndent())!==a)if(e.substr(la,2)===bn?(t=bn,la+=2):(t=a,0===$a&&peg$fail(Bn)),t!==a){if(i=[],(p=peg$parseWhitespace())!==a)for(;p!==a;)i.push(p),p=peg$parseWhitespace();else i=a;if(i!==a)if((p=peg$parseDirectiveType())!==a)if(e.substr(la,2)===bt?(o=bt,la+=2):(o=a,0===$a&&peg$fail(Bt)),o!==a){if(s=[],(l=peg$parseWhitespace())!==a)for(;l!==a;)s.push(l),l=peg$parseWhitespace();else s=a;s!==a?(l=la,$a++,u=peg$parseNonspacechar(),$a--,u!==a?(la=l,l=void 0):l=a,l!==a?(u=peg$parseRawLine(),u!==a?(c=la,g=peg$parseBlankLines(),g===a&&(g=null),g!==a?(f=peg$parseDirectiveBlock(),f!==a?(g=[g,f],c=g):(la=c,c=a)):(la=c,c=a),c===a&&(c=null),c!==a?(ua=r,n=ia(p,u,c),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;else la=r,r=a}else la=r,r=a;else la=r,r=a;return r}function peg$parseDirectiveStartFromNextLine(){var r,n,t,i,p,o,s,l,u;if(r=la,(n=peg$parseSameIndent())!==a)if(e.substr(la,2)===bn?(t=bn,la+=2):(t=a,0===$a&&peg$fail(Bn)),t!==a){if(i=[],(p=peg$parseWhitespace())!==a)for(;p!==a;)i.push(p),p=peg$parseWhitespace();else i=a;if(i!==a)if((p=peg$parseDirectiveType())!==a)if(e.substr(la,2)===bt?(o=bt,la+=2):(o=a,0===$a&&peg$fail(Bt)),o!==a){for(s=[],l=peg$parseWhitespace();l!==a;)s.push(l),l=peg$parseWhitespace();s!==a?(l=peg$parseNewline(),l!==a?(u=peg$parseDirectiveBlock(),u===a&&(u=null),u!==a?(ua=r,n=pa(p,u),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;else la=r,r=a}else la=r,r=a;else la=r,r=a;return r}function peg$parseDirectiveBlock(){var e,r,n,t,i,p,o;if(e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a)if((n=peg$parsePushCommonIndent$())!==a){for(t=[],i=la,p=[],o=peg$parseWhitespace();o!==a;)p.push(o),o=peg$parseWhitespace();if(p!==a?(o=peg$parseNewline(),o!==a?(ua=i,p=Wn(n),i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=peg$parseSameOrDeepIndent(),p!==a?(o=peg$parseNotEmptyRawLine(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a)),i!==a)for(;i!==a;){for(t.push(i),i=la,p=[],o=peg$parseWhitespace();o!==a;)p.push(o),o=peg$parseWhitespace();p!==a?(o=peg$parseNewline(),o!==a?(ua=i,p=Wn(n),i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=peg$parseSameOrDeepIndent(),p!==a?(o=peg$parseNotEmptyRawLine(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a))}else t=a;t===a&&(t=peg$parseFailbackIndent$()),t!==a?(i=peg$parsePopIndent$(),i!==a?(ua=e,r=oa(n,t),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;else la=e,e=a;return e}function peg$parseUnknown(){var e,r,n,t,i,p;if(e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a){if(n=[],t=la,i=la,$a++,p=peg$parseBlankLines(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseUnknownLine(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseBlankLines(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseUnknownLine(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);else n=a;n!==a?(ua=e,r=sa(r,n),e=r):(la=e,e=a)}else la=e,e=a;return e}function mapByIndex(e,r){return ha.map(e,function(e){return e[r]})}n=void 0!==n?n:{};var t,a={},i={Document:peg$parseDocument},p=peg$parseDocument,o=/^[A-Za-z0-9]/,s=peg$classExpectation([["A","Z"],["a","z"],["0","9"]],!1,!1),l=function(){return{type:"any"}}(),u="\n",c=peg$literalExpectation("\n",!1),g="\r",f=peg$literalExpectation("\r",!1),h=function(e){return e[0]+(e[1]||"")},d=" ",v=peg$literalExpectation(" ",!1),m="\v",A=peg$literalExpectation("\v",!1),C="\f",k=peg$literalExpectation("\f",!1),w="\t",I=peg$literalExpectation("\t",!1),E=function(e){return e[1]},L=function(e,r){return ha.map(e,function(e){return e[0].join("")+(e[1]||"")}).concat(r[0].join("")+(r[1]||""))},y=function(e){return{raw:ha.map(e,function(e){return e[1]}).join("")}},x=function(e){return new va.UnknownLine({value:e.raw})},b=function(e){return da.calcIndentSize(e)Aa},W=function(e){return e.join("")},N=function(e){return da.calcIndentSize(e)=Aa},M=function(){return!1},R=function(){return La.pop(),!0},P=function(e){return ka=da.calcIndentSize(e),!0},D=function(e,r){return ka=Math.min(ka,da.calcIndentSize(r)),!0},q=function(e){return La.push(ka),!0},F=function(){return{width:Aa,offset:La.lastIndentDiff()}},j=function(e,r){return La.push(da.calcIndentSize(e)),!0},O=function(){return La.ignore(location().start.line),!0},z=function(e,r){return new va.Document({children:e})},U=function(e,r,n){var t=ba.depth();return ba.popSection(),new va.Section({blanklines:e,depth:t,children:[r].concat(mapByIndex(n,1))})},Q=function(e,r){return e.line[0]===r.line[0]&&ba.isSubSection(r.line[0],!0)},H=function(e,r){return ba.isSubSection(r.line[0],!1)},X=function(e,r,n){return ba.setNextSection(n.line[0],!0),new va.Title({children:r})},V=function(e,r){return ba.setNextSection(r.line[0],!1),new va.Title({children:e})},Z="!",Y=peg$literalExpectation("!",!1),G='"',J=peg$literalExpectation('"',!1),K="#",ee=peg$literalExpectation("#",!1),re="$",ne=peg$literalExpectation("$",!1),te="%",ae=peg$literalExpectation("%",!1),ie="&",pe=peg$literalExpectation("&",!1),oe="'",se=peg$literalExpectation("'",!1),le="(",ue=peg$literalExpectation("(",!1),ce=")",ge=peg$literalExpectation(")",!1),fe="*",$e=peg$literalExpectation("*",!1),he="+",de=peg$literalExpectation("+",!1),ve=",",me=peg$literalExpectation(",",!1),Ae="-",Ce=peg$literalExpectation("-",!1),ke=".",we=peg$literalExpectation(".",!1),Ie="/",Ee=peg$literalExpectation("/",!1),Le=":",ye=peg$literalExpectation(":",!1),xe=";",be=peg$literalExpectation(";",!1),Be="<",Se=peg$literalExpectation("<",!1),_e="=",We=peg$literalExpectation("=",!1),Ne=">",Te=peg$literalExpectation(">",!1),Me="?",Re=peg$literalExpectation("?",!1),Pe="@",De=peg$literalExpectation("@",!1),qe="[",Fe=peg$literalExpectation("[",!1),je="\\",Oe=peg$literalExpectation("\\",!1),ze="]",Ue=peg$literalExpectation("]",!1),Qe="^",He=peg$literalExpectation("^",!1),Xe="_",Ve=peg$literalExpectation("_",!1),Ze="`",Ye=peg$literalExpectation("`",!1),Ge="{",Je=peg$literalExpectation("{",!1),Ke="|",er=peg$literalExpectation("|",!1),rr="}",nr=peg$literalExpectation("}",!1),tr="~",ar=peg$literalExpectation("~",!1),ir=function(e){return e.length>=2&&1===ha.uniq(e).length},pr=function(e){return{line:e.join("")}},or=function(e,r){return new va.Transition({blanklines:e,children:[]})},sr=function(e){return e.length>=4&&1===ha.uniq(e).length},lr=function(e){return e},ur=function(e,r){return r.blanklines=e||[],r},cr=function(e){return e},gr=function(e){return e},fr=function(e){return La.push(location().start.column-1),!0},$r=function(){return{width:Aa,offset:La.lastIndentDiff()}},hr=function(e,r){return new va.ListItem({children:r})},dr=function(){return new va.ListItem({children:[]})},vr=function(e){return new va.BulletList({bullet:e[0][0],children:mapByIndex(e,1)})},mr=/^[*+\-\u2022\u2023\u2043]/,Ar=peg$classExpectation(["*","+","-","•","‣","⁃"],!1,!1),Cr=function(e){return xa.isSameBullet(e)},kr=function(e){return e},wr=function(e){return xa.pushBullet(e),!0},Ir=function(){return xa.popBullet(),!0},Er=function(e,r,n){return n.blanklines=e||[],[r,n]},Lr=function(e){return new va.EnumeratedList({children:e})},yr=function(){return Ea.begin(),!0},xr=function(){return Ea.end(),!0},br=function(e,r,n){return n.blanklines=e||[],n},Br=function(e){return new va.Enumerator({sequence:e,format:"period"})},Sr=function(e){return new va.Enumerator({sequence:e,format:"right_parenthesis"})},_r=function(e){return new va.Enumerator({sequence:e,format:"parentheses"})},Wr=function(e){return!!Ea.isNext(e)&&(Ea.set(e),!0)},Nr=function(e){return e},Tr=function(){return Ea.isNextType("arabic_numerals")},Mr=function(){return Ea.isNextType("uppercase_roman")},Rr=function(){return Ea.isNextType("lowercase_roman")},Pr=function(){return Ea.isNextType("uppercase_alphabet")},Dr=function(){return Ea.isNextType("lowercase_alphabet")},qr=function(){return new va.EnumeratorSequence({type:"auto",value:"#"})},Fr=/^[1-9]/,jr=peg$classExpectation([["1","9"]],!1,!1),Or=/^[0-9]/,zr=peg$classExpectation([["0","9"]],!1,!1),Ur=function(e,r){return new va.EnumeratorSequence({type:"arabic_numerals",value:[e].concat(r).join("")})},Qr=/^[0]/,Hr=peg$classExpectation(["0"],!1,!1),Xr=function(e){return new va.EnumeratorSequence({type:"arabic_numerals",value:e})},Vr=/^[A-Z]/,Zr=peg$classExpectation([["A","Z"]],!1,!1),Yr=function(e){return new va.EnumeratorSequence({type:"uppercase_alphabet",value:e})},Gr=/^[a-z]/,Jr=peg$classExpectation([["a","z"]],!1,!1),Kr=function(e){return new va.EnumeratorSequence({type:"lowercase_alphabet",value:e})},en=/^[IVXLCDM]/,rn=peg$classExpectation(["I","V","X","L","C","D","M"],!1,!1),nn=function(e){return da.isUpperRomanNumber(e.join(""))},tn=function(e){return new va.EnumeratorSequence({type:"uppercase_roman",value:e.join("")})},an=/^[ivxlcdm]/,pn=peg$classExpectation(["i","v","x","l","c","d","m"],!1,!1),on=function(e){return da.isLowerRomanNumber(e.join(""))},sn=function(e){return new va.EnumeratorSequence({type:"lowercase_roman",value:e.join("")})},ln=function(e){return new va.DefinitionList({children:e})},un=function(e,r,n,t,a){var n=mapByIndex(n,3);return new va.DefinitionListItem({blanklines:e,indent:t,children:[r].concat(_toConsumableArray(n),[a])})},cn=function(e){return new va.Term({children:e})},gn=function(e){return new va.Definition({children:e})},fn=function(e){return new va.Text({value:mapByIndex(e,3).join("")})},$n=function(e){return new va.Classifier({children:e})},hn=function(e,r,n,t){var a={width:r.width,offset:r.width-t.indent.width};n.indent=a;var i=[n].concat(t.children),r=t.indent;return new va.BlockQuote({indent:r,blanklines:e,children:i})},dn=function(e,r){return new va.BlockQuote({children:e.concat(r||[])})},vn=function(e,r,n,t){return new va.BlockQuote({indent:r,blanklines:e,children:n.concat(t||[])})},mn=function(e,r){return[e].concat(ha.map(r,function(e){return e[1]}))},An="---",Cn=peg$literalExpectation("---",!1),kn="--",wn=peg$literalExpectation("--",!1),In="—",En=peg$literalExpectation("—",!1),Ln=function(e,r){return new va.Attribution({blanklines:e,children:r.children})},yn=function(e){return e},xn=function(e){return e},bn="..",Bn=peg$literalExpectation("..",!1),Sn=function(e,r){var n=[new va.Text({value:e.raw})],t=null;return ha.isNull(r)||(t=r[1].indent,n=n.concat(r[1].children)),new va.Comment({indent:t,children:n})},_n=function(e){return ha.isNull(e)?new va.Comment({}):e},Wn=function(e){return null},Nn=function(e,r){var n=ha.map(ha.reject(r,ha.isNull),function(r){var n=r[0],t=r[1].raw,a=ha.repeat(" ",n.length-e.width)+t;return new va.Text({value:a})});return new va.Comment({indent:e,children:n})},Tn=function(e){return da.isInlineMarkupSuffix(e)},Mn=function(){return 1===wa.length},Rn=function(e){return e===wa},Pn=function(){return 2===wa.length},Dn=function(e){return e.join("")===wa},qn=function(){return 3===wa.length},Fn=function(){return"``"===wa},jn=function(e){return new ma({value:mapByIndex(e,2).join("")})},On=function(e,r){return ha.isNull(r)||(e=new ma({value:e.value+r})),e},zn=function(e,r){return[new ma({value:e.value+r})]},Un=function(e,r,n){var t=(ha.isNull(e)?[]:[e]).concat(mapByIndex(r,1));0===t.length&&t.push(new ma({value:""}));var a=t[t.length-1];return t[t.length-1]=new ma({value:a.value+n}),t},Qn=function(){return wa="*",!0},Hn=function(e){return new va.Emphasis({children:e})},Xn="**",Vn=peg$literalExpectation("**",!1),Zn=function(){return wa="**",!0},Yn=function(e){return new va.Strong({children:e})},Gn=function(e){return wa="`",!0},Jn=function(e,r){var n=null;return ha.isNull(e)||(n=ha.map(e[1],function(e){return e[3]}).join("")),new va.InterpretedText({role:n,children:r})},Kn="``",et=peg$literalExpectation("``",!1),rt=function(){return wa="``",!0},nt=function(e){return new va.Literal({children:e})},tt=function(){return wa="|",!0},at=function(e){return new va.SubstitutionReference({children:e})},it="_`",pt=peg$literalExpectation("_`",!1),ot=function(){return wa="`",!0},st=function(e){return new va.InlineInternalTarget({children:e})},lt=function(e){return ha.isArray(e)?e.join(""):e},ut="]_",ct=peg$literalExpectation("]_",!1),gt=function(e){return new va.FootnoteReference({children:[new ma({value:e})]})},ft=function(e){return new va.CitationReference({children:[new ma({value:e})]})},$t=function(){return wa="`_",!0},ht=function(e){return new va.Reference({anonymous:!1,simple:!1,children:e})},dt=function(e){return new va.Reference({anonymous:!1,simple:!0,children:[new ma({value:e})]})},vt=function(){return wa="`__",!0},mt=function(e){return new va.Reference({anonymous:!0,simple:!1,children:e})},At="__",Ct=peg$literalExpectation("__",!1),kt=function(e){return new va.Reference({anonymous:!0,simple:!0,children:[new ma({value:e})]})},wt=/^[\-_.:+]/,It=peg$classExpectation(["-","_",".",":","+"],!1,!1),Et=function(e,r){return e+r.join("")},Lt=/^[\-.:+]/,yt=peg$classExpectation(["-",".",":","+"],!1,!1),xt=function(e){return e},bt="::",Bt=peg$literalExpectation("::",!1),St=function(e,r){var n=ha.map(r,function(r){if(ha.isUndefined(r[0]))var n=da.calcIndentSize(r[1].join("")),t=ha.repeat(" ",n-e.width)+r[2].raw;else var n=da.calcIndentSize(r[0].join("")),t=ha.repeat(" ",Math.max(0,n-e.width));return new va.Text({value:t})});return new va.LiteralBlock({children:n})},_t=function(e){var r=ha.map(e,function(e){return new va.Text({value:e[2].raw})});return new va.LiteralBlock({children:r})},Wt=function(e){return Ia=e,!0},Nt=function(e){return Ia===e},Tt=function(e,r,n,t){var a=new va.LineBlock({children:[r].concat(n)}),i=[a].concat(t.children);return new va.LineBlock({children:i})},Mt=function(e,r){return r},Rt=function(e,r){return new va.LineBlock({children:[e].concat(_toConsumableArray(r))})},Pt="| ",Dt=peg$literalExpectation("| ",!1),qt=function(e){return new va.Line({children:e})},Ft=function(){return new va.Line({children:[]})},jt=function(e){return da.calcIndentSize(e)===ya.current()},Ot=function(e){return da.calcIndentSize(e)>ya.current()},zt=function(e){return ya.push(da.calcIndentSize(e)),!0},Ut=function(){return{width:ya.current(),offset:ya.diff()}},Qt=function(){return ya.pop(),!0},Ht=function(e){return da.isInlineMarkupPrefix(e)},Xt=function(e){return e},Vt=function(e,r,n){return!("*"===e&&"*"===r||da.isMatchPunctuations(e,n))},Zt=function(e){return new va.Paragraph({children:ha.flatten(mapByIndex(e,1))})},Yt=function(e,r){var n=mapByIndex(e,1);if(r){if("text"!==n[n.length-1].type)return n.concat(new ma({value:r}));n[n.length-1]=new ma({value:n[n.length-1].value+r})}return n},Gt=function(e,r){return new ma({value:mapByIndex(e,2).join("")+r})},Jt=function(e,r){var n=mapByIndex(e,2).join("");return ha.isNull(r)||(n+=r[1]),new ma({value:n})},Kt=function(e,r){var n=mapByIndex(e,2).join("")+r[1];return new ma({value:n})},ea=/^[A-Za-z]/,ra=peg$classExpectation([["A","Z"],["a","z"]],!1,!1),na=/^[\-_+:.]/,ta=peg$classExpectation(["-","_","+",":","."],!1,!1),aa=function(e,r){return ha.flatMap(e,function(e){return ha.compact(e)}).concat(r).join("")},ia=function(e,r,n){var t=[new va.Text({value:r.raw})],a=null;return ha.isNull(n)||(a=n[1].indent,t=t.concat(n[1].children)),new va.Directive({directive:e,indent:a,children:t})},pa=function(e,r){return ha.isNull(r)?new va.Directive({directive:e}):new va.Directive({directive:e,indent:r.indent,children:r.children})},oa=function(e,r){var n=ha.map(ha.reject(r,ha.isNull),function(r){var n=r[0],t=r[1].raw,a=ha.repeat(" ",n.length-e.width)+t;return new va.Text({value:a})});return new va.Directive({indent:e,children:n})},sa=function(e,r){return new va.Unknown({blanklines:e,children:ha.flatten(mapByIndex(r,1))})},la=0,ua=0,ca=[{line:1,column:1}],ga=0,fa=[],$a=0;if("startRule"in n){if(!(n.startRule in i))throw new Error("Can't start parsing from rule \""+n.startRule+'".');p=i[n.startRule]}var ha=r(0),da=r(1).default,va={};ha.forEach(r(4).default,function(e,r){function wrapped(r){e.apply(this,[Object.assign({},{position:location()},r)])}wrapped.prototype=e.prototype,va[r]=wrapped});var ma=va.Text,Aa=0,Ca=null,ka=null,wa=null,Ia=null,Ea=function(){var e=null,r=[],n=null;return{begin:function(){r.push(n),n=null,e=null},end:function(){n=r.pop(),ha.isNull(n)||(e=n.sequence.type)},set:function(r){n=r,e=n.sequence.type},isNext:function(e){return ha.isNull(n)||n.isNext(e)},isNextType:function(r){return ha.isNull(n)||e===r}}}(),La=function(){var e=[];return{push:function(r){e.push(Aa),Aa=r},pop:function(){Aa=e.pop()},ignore:function(e){Ca=e},lastIndentDiff:function(){return 0===e.length?Aa:Aa-e[e.length-1]}}}(),ya=function(){var e=-1,r=[];return{current:function(){return e},push:function(n){r.push(e),e=n},pop:function(){e=r.pop()},diff:function(){return 0===r.length?e:e-r[r.length-1]}}}(),xa=function(){var e=[],r=null;return{pushBullet:function(n){e.push(r),r=n},popBullet:function(){r=e.pop()},isSameBullet:function(e){return r===e}}}(),ba=function(){var e=[],r=-1;return{isSubSection:function(n,t){if(r===e.length-1){for(var a=0,i=e.length;a0){for(r=1,n=1;r src/Parser.pegjs", diff --git a/webpack.config.dev.js b/webpack.config.dev.js new file mode 100644 index 0000000..228c8a8 --- /dev/null +++ b/webpack.config.dev.js @@ -0,0 +1,35 @@ +var path = require('path'); +var webpack = require('webpack'); + +module.exports = { + entry: './src/RST.js', + output: { + filename: 'restructured.js', + path: path.resolve(__dirname, 'dist'), + libraryTarget: 'umd' + }, + externals: { + "lodash": { + commonjs: "lodash", + commonjs2: "lodash", + amd: "lodash", + root: "_" + } + }, + module: { + rules: [ + { + + test: path.join(__dirname, 'src'), + loader: 'babel-loader', + query: { + presets: ['es2015'] + } + } + ,{ + test: /\.pegjs.mustache$/, + loaders: ['mustache-loader','pegjs-loader'] + } + ] + } +} \ No newline at end of file diff --git a/webpack.config.pro.js b/webpack.config.pro.js new file mode 100644 index 0000000..0a518bb --- /dev/null +++ b/webpack.config.pro.js @@ -0,0 +1,54 @@ +var path = require('path'); +var webpack = require('webpack'); + +module.exports = { + entry: './src/RST.js', + output: { + filename: 'restructured.min.js', + path: path.resolve(__dirname, 'dist'), + libraryTarget: 'umd' + }, + externals: { + "lodash": { + commonjs: "lodash", + commonjs2: "lodash", + amd: "lodash", + root: "_" + } + }, + module: { + rules: [ + { + + test: path.join(__dirname, 'src'), + loader: 'babel-loader', + query: { + presets: ['es2015'] + } + } + ,{ + test: /\.pegjs.mustache$/, + loaders: ['mustache-loader','pegjs-loader'] + } + ] + } + ,plugins: [ + new webpack.LoaderOptionsPlugin({ + minimize: true, + debug: false + }), + new webpack.optimize.UglifyJsPlugin({ + beautify: false, + mangle: { + screw_ie8: true, + except: ['$super', '$', 'exports', 'require'], + keep_fnames: true + } + , + compress: { + screw_ie8: true + }, + comments: false + }) + ] +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..fd12368 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,3555 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +abbrev@1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.0.tgz#d0554c2256636e2f56e7c2e5ad183f859428d81f" + +acorn-dynamic-import@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz#c752bd210bef679501b6c6cb7fc84f8f47158cc4" + dependencies: + acorn "^4.0.3" + +acorn-es7-plugin@^1.0.12: + version "1.1.7" + resolved "https://registry.yarnpkg.com/acorn-es7-plugin/-/acorn-es7-plugin-1.1.7.tgz#f2ee1f3228a90eead1245f9ab1922eb2e71d336b" + +acorn-jsx@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b" + dependencies: + acorn "^3.0.4" + +acorn@^3.0.4: + version "3.3.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" + +acorn@^4.0.0, acorn@^4.0.3: + version "4.0.11" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.11.tgz#edcda3bd937e7556410d42ed5860f67399c794c0" + +acorn@^5.0.0, acorn@^5.0.1: + version "5.0.3" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.0.3.tgz#c460df08491463f028ccb82eab3730bf01087b3d" + +ajv-keywords@^1.0.0, ajv-keywords@^1.1.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-1.5.1.tgz#314dd0a4b3368fad3dfcdc54ede6171b886daf3c" + +ajv@^4.7.0, ajv@^4.9.1: + version "4.11.8" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" + dependencies: + co "^4.6.0" + json-stable-stringify "^1.0.1" + +align-text@^0.1.1, align-text@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" + dependencies: + kind-of "^3.0.2" + longest "^1.0.1" + repeat-string "^1.5.2" + +ansi-escapes@^1.1.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e" + +ansi-regex@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + +ansi-styles@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + +anymatch@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507" + dependencies: + arrify "^1.0.0" + micromatch "^2.1.5" + +aproba@^1.0.3: + version "1.1.1" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.1.1.tgz#95d3600f07710aa0e9298c726ad5ecf2eacbabab" + +are-we-there-yet@~1.1.2: + version "1.1.4" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d" + dependencies: + delegates "^1.0.0" + readable-stream "^2.0.6" + +argparse@^1.0.7: + version "1.0.9" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" + dependencies: + sprintf-js "~1.0.2" + +arr-diff@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" + dependencies: + arr-flatten "^1.0.1" + +arr-flatten@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.0.3.tgz#a274ed85ac08849b6bd7847c4580745dc51adfb1" + +array-filter@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-1.0.0.tgz#baf79e62e6ef4c2a4c0b831232daffec251f9d83" + +array-filter@~0.0.0: + version "0.0.1" + resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-0.0.1.tgz#7da8cf2e26628ed732803581fd21f67cacd2eeec" + +array-map@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/array-map/-/array-map-0.0.0.tgz#88a2bab73d1cf7bcd5c1b118a003f66f665fa662" + +array-reduce@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/array-reduce/-/array-reduce-0.0.0.tgz#173899d3ffd1c7d9383e4479525dbe278cab5f2b" + +array-union@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" + dependencies: + array-uniq "^1.0.1" + +array-uniq@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" + +array-unique@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" + +array.prototype.find@^2.0.1: + version "2.0.4" + resolved "https://registry.yarnpkg.com/array.prototype.find/-/array.prototype.find-2.0.4.tgz#556a5c5362c08648323ddaeb9de9d14bc1864c90" + dependencies: + define-properties "^1.1.2" + es-abstract "^1.7.0" + +arrify@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + +asn1.js@^4.0.0: + version "4.9.1" + resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.9.1.tgz#48ba240b45a9280e94748990ba597d216617fd40" + dependencies: + bn.js "^4.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +asn1@~0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + +assert-plus@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" + +assert@^1.1.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91" + dependencies: + util "0.10.3" + +async-each@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" + +async@^2.1.2: + version "2.4.0" + resolved "https://registry.yarnpkg.com/async/-/async-2.4.0.tgz#4990200f18ea5b837c2cc4f8c031a6985c385611" + dependencies: + lodash "^4.14.0" + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + +aws-sign2@~0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" + +aws4@^1.2.1: + version "1.6.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" + +babel-cli@^6.3.17: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.24.1.tgz#207cd705bba61489b2ea41b5312341cf6aca2283" + dependencies: + babel-core "^6.24.1" + babel-polyfill "^6.23.0" + babel-register "^6.24.1" + babel-runtime "^6.22.0" + commander "^2.8.1" + convert-source-map "^1.1.0" + fs-readdir-recursive "^1.0.0" + glob "^7.0.0" + lodash "^4.2.0" + output-file-sync "^1.1.0" + path-is-absolute "^1.0.0" + slash "^1.0.0" + source-map "^0.5.0" + v8flags "^2.0.10" + optionalDependencies: + chokidar "^1.6.1" + +babel-code-frame@^6.16.0, babel-code-frame@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.22.0.tgz#027620bee567a88c32561574e7fd0801d33118e4" + dependencies: + chalk "^1.1.0" + esutils "^2.0.2" + js-tokens "^3.0.0" + +babel-core@^6.0.0, babel-core@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.24.1.tgz#8c428564dce1e1f41fb337ec34f4c3b022b5ad83" + dependencies: + babel-code-frame "^6.22.0" + babel-generator "^6.24.1" + babel-helpers "^6.24.1" + babel-messages "^6.23.0" + babel-register "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + babylon "^6.11.0" + convert-source-map "^1.1.0" + debug "^2.1.1" + json5 "^0.5.0" + lodash "^4.2.0" + minimatch "^3.0.2" + path-is-absolute "^1.0.0" + private "^0.1.6" + slash "^1.0.0" + source-map "^0.5.0" + +babel-generator@^6.1.0, babel-generator@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.24.1.tgz#e715f486c58ded25649d888944d52aa07c5d9497" + dependencies: + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-types "^6.24.1" + detect-indent "^4.0.0" + jsesc "^1.3.0" + lodash "^4.2.0" + source-map "^0.5.0" + trim-right "^1.0.1" + +babel-helper-call-delegate@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" + dependencies: + babel-helper-hoist-variables "^6.24.1" + babel-runtime "^6.22.0" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helper-define-map@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.24.1.tgz#7a9747f258d8947d32d515f6aa1c7bd02204a080" + dependencies: + babel-helper-function-name "^6.24.1" + babel-runtime "^6.22.0" + babel-types "^6.24.1" + lodash "^4.2.0" + +babel-helper-function-name@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" + dependencies: + babel-helper-get-function-arity "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helper-get-function-arity@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-hoist-variables@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-optimise-call-expression@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-regex@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.24.1.tgz#d36e22fab1008d79d88648e32116868128456ce8" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + lodash "^4.2.0" + +babel-helper-replace-supers@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" + dependencies: + babel-helper-optimise-call-expression "^6.24.1" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helpers@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-loader@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-7.0.0.tgz#2e43a66bee1fff4470533d0402c8a4532fafbaf7" + dependencies: + find-cache-dir "^0.1.1" + loader-utils "^1.0.2" + mkdirp "^0.5.1" + +babel-messages@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-check-es2015-constants@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-espower@^2.0.0: + version "2.3.2" + resolved "https://registry.yarnpkg.com/babel-plugin-espower/-/babel-plugin-espower-2.3.2.tgz#5516b8fcdb26c9f0e1d8160749f6e4c65e71271e" + dependencies: + babel-generator "^6.1.0" + babylon "^6.1.0" + call-matcher "^1.0.0" + core-js "^2.0.0" + espower-location-detector "^1.0.0" + espurify "^1.6.0" + estraverse "^4.1.1" + +babel-plugin-transform-es2015-arrow-functions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-block-scoping@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.24.1.tgz#76c295dc3a4741b1665adfd3167215dcff32a576" + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + lodash "^4.2.0" + +babel-plugin-transform-es2015-classes@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" + dependencies: + babel-helper-define-map "^6.24.1" + babel-helper-function-name "^6.24.1" + babel-helper-optimise-call-expression "^6.24.1" + babel-helper-replace-supers "^6.24.1" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-computed-properties@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-destructuring@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-duplicate-keys@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-for-of@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-function-name@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" + dependencies: + babel-helper-function-name "^6.24.1" + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-literals@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-modules-amd@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" + dependencies: + babel-plugin-transform-es2015-modules-commonjs "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-modules-commonjs@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.24.1.tgz#d3e310b40ef664a36622200097c6d440298f2bfe" + dependencies: + babel-plugin-transform-strict-mode "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-modules-systemjs@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" + dependencies: + babel-helper-hoist-variables "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-modules-umd@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" + dependencies: + babel-plugin-transform-es2015-modules-amd "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-object-super@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" + dependencies: + babel-helper-replace-supers "^6.24.1" + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-parameters@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" + dependencies: + babel-helper-call-delegate "^6.24.1" + babel-helper-get-function-arity "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-shorthand-properties@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-spread@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-sticky-regex@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" + dependencies: + babel-helper-regex "^6.24.1" + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-template-literals@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-typeof-symbol@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-unicode-regex@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" + dependencies: + babel-helper-regex "^6.24.1" + babel-runtime "^6.22.0" + regexpu-core "^2.0.0" + +babel-plugin-transform-regenerator@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.24.1.tgz#b8da305ad43c3c99b4848e4fe4037b770d23c418" + dependencies: + regenerator-transform "0.9.11" + +babel-plugin-transform-strict-mode@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-unassert@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/babel-plugin-unassert/-/babel-plugin-unassert-2.1.2.tgz#a1ea61811726db747079443ec1b15c4b06c6b944" + +babel-polyfill@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.23.0.tgz#8364ca62df8eafb830499f699177466c3b03499d" + dependencies: + babel-runtime "^6.22.0" + core-js "^2.4.0" + regenerator-runtime "^0.10.0" + +babel-preset-es2015@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz#d44050d6bc2c9feea702aaf38d727a0210538939" + dependencies: + babel-plugin-check-es2015-constants "^6.22.0" + babel-plugin-transform-es2015-arrow-functions "^6.22.0" + babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" + babel-plugin-transform-es2015-block-scoping "^6.24.1" + babel-plugin-transform-es2015-classes "^6.24.1" + babel-plugin-transform-es2015-computed-properties "^6.24.1" + babel-plugin-transform-es2015-destructuring "^6.22.0" + babel-plugin-transform-es2015-duplicate-keys "^6.24.1" + babel-plugin-transform-es2015-for-of "^6.22.0" + babel-plugin-transform-es2015-function-name "^6.24.1" + babel-plugin-transform-es2015-literals "^6.22.0" + babel-plugin-transform-es2015-modules-amd "^6.24.1" + babel-plugin-transform-es2015-modules-commonjs "^6.24.1" + babel-plugin-transform-es2015-modules-systemjs "^6.24.1" + babel-plugin-transform-es2015-modules-umd "^6.24.1" + babel-plugin-transform-es2015-object-super "^6.24.1" + babel-plugin-transform-es2015-parameters "^6.24.1" + babel-plugin-transform-es2015-shorthand-properties "^6.24.1" + babel-plugin-transform-es2015-spread "^6.22.0" + babel-plugin-transform-es2015-sticky-regex "^6.24.1" + babel-plugin-transform-es2015-template-literals "^6.22.0" + babel-plugin-transform-es2015-typeof-symbol "^6.22.0" + babel-plugin-transform-es2015-unicode-regex "^6.24.1" + babel-plugin-transform-regenerator "^6.24.1" + +babel-register@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.24.1.tgz#7e10e13a2f71065bdfad5a1787ba45bca6ded75f" + dependencies: + babel-core "^6.24.1" + babel-runtime "^6.22.0" + core-js "^2.4.0" + home-or-tmp "^2.0.0" + lodash "^4.2.0" + mkdirp "^0.5.1" + source-map-support "^0.4.2" + +babel-runtime@^6.18.0, babel-runtime@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.23.0.tgz#0a9489f144de70efb3ce4300accdb329e2fc543b" + dependencies: + core-js "^2.4.0" + regenerator-runtime "^0.10.0" + +babel-template@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.24.1.tgz#04ae514f1f93b3a2537f2a0f60a5a45fb8308333" + dependencies: + babel-runtime "^6.22.0" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + babylon "^6.11.0" + lodash "^4.2.0" + +babel-traverse@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.24.1.tgz#ab36673fd356f9a0948659e7b338d5feadb31695" + dependencies: + babel-code-frame "^6.22.0" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-types "^6.24.1" + babylon "^6.15.0" + debug "^2.2.0" + globals "^9.0.0" + invariant "^2.2.0" + lodash "^4.2.0" + +babel-types@^6.19.0, babel-types@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.24.1.tgz#a136879dc15b3606bda0d90c1fc74304c2ff0975" + dependencies: + babel-runtime "^6.22.0" + esutils "^2.0.2" + lodash "^4.2.0" + to-fast-properties "^1.0.1" + +babel@^6.3.26: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel/-/babel-6.23.0.tgz#d0d1e7d803e974765beea3232d4e153c0efb90f4" + +babylon@^6.1.0, babylon@^6.11.0, babylon@^6.15.0: + version "6.17.0" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.17.0.tgz#37da948878488b9c4e3c4038893fa3314b3fc932" + +balanced-match@^0.4.1: + version "0.4.2" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" + +base64-js@^1.0.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.2.0.tgz#a39992d723584811982be5e290bb6a53d86700f1" + +bcrypt-pbkdf@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" + dependencies: + tweetnacl "^0.14.3" + +big.js@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.1.3.tgz#4cada2193652eb3ca9ec8e55c9015669c9806978" + +binary-extensions@^1.0.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.8.0.tgz#48ec8d16df4377eae5fa5884682480af4d95c774" + +block-stream@*: + version "0.0.9" + resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" + dependencies: + inherits "~2.0.0" + +bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: + version "4.11.6" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.6.tgz#53344adb14617a13f6e8dd2ce28905d1c0ba3215" + +boom@2.x.x: + version "2.10.1" + resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" + dependencies: + hoek "2.x.x" + +brace-expansion@^1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.7.tgz#3effc3c50e000531fb720eaff80f0ae8ef23cf59" + dependencies: + balanced-match "^0.4.1" + concat-map "0.0.1" + +braces@^1.8.2: + version "1.8.5" + resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" + dependencies: + expand-range "^1.8.1" + preserve "^0.2.0" + repeat-element "^1.1.2" + +brorand@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" + +browser-stdout@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.0.tgz#f351d32969d32fa5d7a5567154263d928ae3bd1f" + +browserify-aes@^1.0.0, browserify-aes@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.0.6.tgz#5e7725dbdef1fd5930d4ebab48567ce451c48a0a" + dependencies: + buffer-xor "^1.0.2" + cipher-base "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.0" + inherits "^2.0.1" + +browserify-cipher@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.0.tgz#9988244874bf5ed4e28da95666dcd66ac8fc363a" + dependencies: + browserify-aes "^1.0.4" + browserify-des "^1.0.0" + evp_bytestokey "^1.0.0" + +browserify-des@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.0.tgz#daa277717470922ed2fe18594118a175439721dd" + dependencies: + cipher-base "^1.0.1" + des.js "^1.0.0" + inherits "^2.0.1" + +browserify-rsa@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524" + dependencies: + bn.js "^4.1.0" + randombytes "^2.0.1" + +browserify-sign@^4.0.0: + version "4.0.4" + resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.0.4.tgz#aa4eb68e5d7b658baa6bf6a57e630cbd7a93d298" + dependencies: + bn.js "^4.1.1" + browserify-rsa "^4.0.0" + create-hash "^1.1.0" + create-hmac "^1.1.2" + elliptic "^6.0.0" + inherits "^2.0.1" + parse-asn1 "^5.0.0" + +browserify-zlib@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.1.4.tgz#bb35f8a519f600e0fa6b8485241c979d0141fb2d" + dependencies: + pako "~0.2.0" + +buffer-shims@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51" + +buffer-xor@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" + +buffer@^4.3.0: + version "4.9.1" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298" + dependencies: + base64-js "^1.0.2" + ieee754 "^1.1.4" + isarray "^1.0.0" + +builtin-modules@^1.0.0, builtin-modules@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" + +builtin-status-codes@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" + +call-matcher@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/call-matcher/-/call-matcher-1.0.1.tgz#5134d077984f712a54dad3cbf62de28dce416ca8" + dependencies: + core-js "^2.0.0" + deep-equal "^1.0.0" + espurify "^1.6.0" + estraverse "^4.0.0" + +call-signature@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/call-signature/-/call-signature-0.0.2.tgz#a84abc825a55ef4cb2b028bd74e205a65b9a4996" + +caller-path@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f" + dependencies: + callsites "^0.2.0" + +callsites@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-0.2.0.tgz#afab96262910a7f33c19a5775825c69f34e350ca" + +camel-case@3.0.x: + version "3.0.0" + resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-3.0.0.tgz#ca3c3688a4e9cf3a4cda777dc4dcbc713249cf73" + dependencies: + no-case "^2.2.0" + upper-case "^1.1.1" + +camelcase@^1.0.2: + version "1.2.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" + +camelcase@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" + +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + +center-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" + dependencies: + align-text "^0.1.3" + lazy-cache "^1.0.3" + +chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + dependencies: + ansi-styles "^2.2.1" + escape-string-regexp "^1.0.2" + has-ansi "^2.0.0" + strip-ansi "^3.0.0" + supports-color "^2.0.0" + +chokidar@^1.4.3, chokidar@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.6.1.tgz#2f4447ab5e96e50fb3d789fd90d4c72e0e4c70c2" + dependencies: + anymatch "^1.3.0" + async-each "^1.0.0" + glob-parent "^2.0.0" + inherits "^2.0.1" + is-binary-path "^1.0.0" + is-glob "^2.0.0" + path-is-absolute "^1.0.0" + readdirp "^2.0.0" + optionalDependencies: + fsevents "^1.0.0" + +cipher-base@^1.0.0, cipher-base@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.3.tgz#eeabf194419ce900da3018c207d212f2a6df0a07" + dependencies: + inherits "^2.0.1" + +circular-json@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.1.tgz#be8b36aefccde8b3ca7aa2d6afc07a37242c0d2d" + +clean-css@4.0.x: + version "4.0.12" + resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.0.12.tgz#a02e61707f1840bd3338f54dbc9acbda4e772fa3" + dependencies: + source-map "0.5.x" + +cli-cursor@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987" + dependencies: + restore-cursor "^1.0.1" + +cli-width@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.1.0.tgz#b234ca209b29ef66fc518d9b98d5847b00edf00a" + +cliui@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" + dependencies: + center-align "^0.1.1" + right-align "^0.1.1" + wordwrap "0.0.2" + +cliui@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + wrap-ansi "^2.0.0" + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + +code-point-at@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + +combined-stream@^1.0.5, combined-stream@~1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" + dependencies: + delayed-stream "~1.0.0" + +commander@2.9.0, commander@2.9.x, commander@^2.8.1, commander@^2.9.0, commander@~2.9.0: + version "2.9.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4" + dependencies: + graceful-readlink ">= 1.0.0" + +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + +concat-stream@^1.5.2: + version "1.6.0" + resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7" + dependencies: + inherits "^2.0.3" + readable-stream "^2.2.2" + typedarray "^0.0.6" + +console-browserify@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" + dependencies: + date-now "^0.1.4" + +console-control-strings@^1.0.0, console-control-strings@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + +constants-browserify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" + +contains-path@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" + +convert-source-map@^1.1.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.0.tgz#9acd70851c6d5dfdd93d9282e5edf94a03ff46b5" + +core-js@^2.0.0, core-js@^2.4.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.4.1.tgz#4de911e667b0eae9124e34254b53aea6fc618d3e" + +core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + +create-ecdh@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.0.tgz#888c723596cdf7612f6498233eebd7a35301737d" + dependencies: + bn.js "^4.1.0" + elliptic "^6.0.0" + +create-hash@^1.1.0, create-hash@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.1.2.tgz#51210062d7bb7479f6c65bb41a92208b1d61abad" + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + ripemd160 "^1.0.0" + sha.js "^2.3.6" + +create-hmac@^1.1.0, create-hmac@^1.1.2: + version "1.1.4" + resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.4.tgz#d3fb4ba253eb8b3f56e39ea2fbcb8af747bd3170" + dependencies: + create-hash "^1.1.0" + inherits "^2.0.1" + +cryptiles@2.x.x: + version "2.0.5" + resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" + dependencies: + boom "2.x.x" + +crypto-browserify@^3.11.0: + version "3.11.0" + resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.11.0.tgz#3652a0906ab9b2a7e0c3ce66a408e957a2485522" + dependencies: + browserify-cipher "^1.0.0" + browserify-sign "^4.0.0" + create-ecdh "^4.0.0" + create-hash "^1.1.0" + create-hmac "^1.1.0" + diffie-hellman "^5.0.0" + inherits "^2.0.1" + pbkdf2 "^3.0.3" + public-encrypt "^4.0.0" + randombytes "^2.0.0" + +d@1: + version "1.0.0" + resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f" + dependencies: + es5-ext "^0.10.9" + +damerau-levenshtein@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.4.tgz#03191c432cb6eea168bb77f3a55ffdccb8978514" + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + dependencies: + assert-plus "^1.0.0" + +date-now@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" + +debug@2.6.0: + version "2.6.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.0.tgz#bc596bcabe7617f11d9fa15361eded5608b8499b" + dependencies: + ms "0.7.2" + +debug@^2.1.1, debug@^2.2.0: + version "2.6.6" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.6.tgz#a9fa6fbe9ca43cf1e79f73b75c0189cbb7d6db5a" + dependencies: + ms "0.7.3" + +decamelize@^1.0.0, decamelize@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + +deep-equal@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.0.1.tgz#f5d260292b660e084eff4cdbc9f08ad3247448b5" + +deep-extend@~0.4.0: + version "0.4.1" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.1.tgz#efe4113d08085f4e6f9687759810f807469e2253" + +deep-is@~0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + +define-properties@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94" + dependencies: + foreach "^2.0.5" + object-keys "^1.0.8" + +del@^2.0.2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8" + dependencies: + globby "^5.0.0" + is-path-cwd "^1.0.0" + is-path-in-cwd "^1.0.0" + object-assign "^4.0.1" + pify "^2.0.0" + pinkie-promise "^2.0.0" + rimraf "^2.2.8" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + +des.js@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc" + dependencies: + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +detect-indent@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" + dependencies: + repeating "^2.0.0" + +diff-match-patch@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/diff-match-patch/-/diff-match-patch-1.0.0.tgz#1cc3c83a490d67f95d91e39f6ad1f2e086b63048" + +diff@3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-3.2.0.tgz#c9ce393a4b7cbd0b058a725c93df299027868ff9" + +diffie-hellman@^5.0.0: + version "5.0.2" + resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.2.tgz#b5835739270cfe26acf632099fded2a07f209e5e" + dependencies: + bn.js "^4.1.0" + miller-rabin "^4.0.0" + randombytes "^2.0.0" + +doctrine@1.3.x, doctrine@^1.2.2: + version "1.3.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.3.0.tgz#13e75682b55518424276f7c173783456ef913d26" + dependencies: + esutils "^2.0.2" + isarray "^1.0.0" + +doctrine@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.0.0.tgz#c73d8d2909d22291e1a007a395804da8b665fe63" + dependencies: + esutils "^2.0.2" + isarray "^1.0.0" + +domain-browser@^1.1.1: + version "1.1.7" + resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.1.7.tgz#867aa4b093faa05f1de08c06f4d7b21fdf8698bc" + +eastasianwidth@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.1.1.tgz#44d656de9da415694467335365fb3147b8572b7c" + +ecc-jsbn@~0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" + dependencies: + jsbn "~0.1.0" + +elliptic@^6.0.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.4.0.tgz#cac9af8762c85836187003c8dfe193e5e2eae5df" + dependencies: + bn.js "^4.4.0" + brorand "^1.0.1" + hash.js "^1.0.0" + hmac-drbg "^1.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.0" + +emojis-list@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" + +empower-core@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/empower-core/-/empower-core-0.6.1.tgz#6c187f502fcef7554d57933396aac655483772b1" + dependencies: + call-signature "0.0.2" + core-js "^2.0.0" + +empower@^1.1.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/empower/-/empower-1.2.1.tgz#b63302741b6d503a241bff115befc948c8362c60" + dependencies: + core-js "^2.0.0" + empower-core "^0.6.1" + +enhanced-resolve@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-3.1.0.tgz#9f4b626f577245edcf4b2ad83d86e17f4f421dec" + dependencies: + graceful-fs "^4.1.2" + memory-fs "^0.4.0" + object-assign "^4.0.1" + tapable "^0.2.5" + +errno@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.4.tgz#b896e23a9e5e8ba33871fc996abd3635fc9a1c7d" + dependencies: + prr "~0.0.0" + +error-ex@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" + dependencies: + is-arrayish "^0.2.1" + +es-abstract@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.7.0.tgz#dfade774e01bfcd97f96180298c449c8623fb94c" + dependencies: + es-to-primitive "^1.1.1" + function-bind "^1.1.0" + is-callable "^1.1.3" + is-regex "^1.0.3" + +es-to-primitive@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.1.1.tgz#45355248a88979034b6792e19bb81f2b7975dd0d" + dependencies: + is-callable "^1.1.1" + is-date-object "^1.0.1" + is-symbol "^1.0.1" + +es5-ext@^0.10.14, es5-ext@^0.10.9, es5-ext@~0.10.14: + version "0.10.15" + resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.15.tgz#c330a5934c1ee21284a7c081a86e5fd937c91ea6" + dependencies: + es6-iterator "2" + es6-symbol "~3.1" + +es6-iterator@2, es6-iterator@^2.0.1, es6-iterator@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.1.tgz#8e319c9f0453bf575d374940a655920e59ca5512" + dependencies: + d "1" + es5-ext "^0.10.14" + es6-symbol "^3.1" + +es6-map@^0.1.3: + version "0.1.5" + resolved "https://registry.yarnpkg.com/es6-map/-/es6-map-0.1.5.tgz#9136e0503dcc06a301690f0bb14ff4e364e949f0" + dependencies: + d "1" + es5-ext "~0.10.14" + es6-iterator "~2.0.1" + es6-set "~0.1.5" + es6-symbol "~3.1.1" + event-emitter "~0.3.5" + +es6-set@^0.1.4, es6-set@~0.1.5: + version "0.1.5" + resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.5.tgz#d2b3ec5d4d800ced818db538d28974db0a73ccb1" + dependencies: + d "1" + es5-ext "~0.10.14" + es6-iterator "~2.0.1" + es6-symbol "3.1.1" + event-emitter "~0.3.5" + +es6-symbol@3.1.1, es6-symbol@^3.1, es6-symbol@^3.1.1, es6-symbol@~3.1, es6-symbol@~3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77" + dependencies: + d "1" + es5-ext "~0.10.14" + +es6-weak-map@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.2.tgz#5e3ab32251ffd1538a1f8e5ffa1357772f92d96f" + dependencies: + d "1" + es5-ext "^0.10.14" + es6-iterator "^2.0.1" + es6-symbol "^3.1.1" + +escape-string-regexp@1.0.5, escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + +escope@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/escope/-/escope-3.6.0.tgz#e01975e812781a163a6dadfdd80398dc64c889c3" + dependencies: + es6-map "^0.1.3" + es6-weak-map "^2.0.1" + esrecurse "^4.1.0" + estraverse "^4.1.1" + +eslint-config-airbnb-base@^5.0.2: + version "5.0.3" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-5.0.3.tgz#9714ac35ec2cd7fab0d44d148a9f91db2944074d" + +eslint-config-airbnb@^10.0.1: + version "10.0.1" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-10.0.1.tgz#a470108646d6c45e1f639a03f11d504a1aa4aedc" + dependencies: + eslint-config-airbnb-base "^5.0.2" + +eslint-import-resolver-node@^0.2.0: + version "0.2.3" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.2.3.tgz#5add8106e8c928db2cba232bcd9efa846e3da16c" + dependencies: + debug "^2.2.0" + object-assign "^4.0.1" + resolve "^1.1.6" + +eslint-plugin-import@^1.14.0: + version "1.16.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-1.16.0.tgz#b2fa07ebcc53504d0f2a4477582ec8bff1871b9f" + dependencies: + builtin-modules "^1.1.1" + contains-path "^0.1.0" + debug "^2.2.0" + doctrine "1.3.x" + es6-map "^0.1.3" + es6-set "^0.1.4" + eslint-import-resolver-node "^0.2.0" + has "^1.0.1" + lodash.cond "^4.3.0" + lodash.endswith "^4.0.1" + lodash.find "^4.3.0" + lodash.findindex "^4.3.0" + minimatch "^3.0.3" + object-assign "^4.0.1" + pkg-dir "^1.0.0" + pkg-up "^1.0.0" + +eslint-plugin-jsx-a11y@^2.2.1: + version "2.2.3" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-2.2.3.tgz#4e35cb71b8a7db702ac415c806eb8e8d9ea6c65d" + dependencies: + damerau-levenshtein "^1.0.0" + jsx-ast-utils "^1.0.0" + object-assign "^4.0.1" + +eslint-plugin-react@^6.2.0: + version "6.10.3" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-6.10.3.tgz#c5435beb06774e12c7db2f6abaddcbf900cd3f78" + dependencies: + array.prototype.find "^2.0.1" + doctrine "^1.2.2" + has "^1.0.1" + jsx-ast-utils "^1.3.4" + object.assign "^4.0.4" + +eslint-watch@^2.1.4: + version "2.1.14" + resolved "https://registry.yarnpkg.com/eslint-watch/-/eslint-watch-2.1.14.tgz#a9d200aefb158349f3631ec91a2ec484d152cbfe" + dependencies: + chalk "^1.1.3" + chokidar "^1.4.3" + debug "^2.2.0" + keypress "^0.2.1" + lodash "^4.13.1" + optionator "^0.8.1" + text-table "^0.2.0" + +eslint@^3.4.0: + version "3.19.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.19.0.tgz#c8fc6201c7f40dd08941b87c085767386a679acc" + dependencies: + babel-code-frame "^6.16.0" + chalk "^1.1.3" + concat-stream "^1.5.2" + debug "^2.1.1" + doctrine "^2.0.0" + escope "^3.6.0" + espree "^3.4.0" + esquery "^1.0.0" + estraverse "^4.2.0" + esutils "^2.0.2" + file-entry-cache "^2.0.0" + glob "^7.0.3" + globals "^9.14.0" + ignore "^3.2.0" + imurmurhash "^0.1.4" + inquirer "^0.12.0" + is-my-json-valid "^2.10.0" + is-resolvable "^1.0.0" + js-yaml "^3.5.1" + json-stable-stringify "^1.0.0" + levn "^0.3.0" + lodash "^4.0.0" + mkdirp "^0.5.0" + natural-compare "^1.4.0" + optionator "^0.8.2" + path-is-inside "^1.0.1" + pluralize "^1.2.1" + progress "^1.1.8" + require-uncached "^1.0.2" + shelljs "^0.7.5" + strip-bom "^3.0.0" + strip-json-comments "~2.0.1" + table "^3.7.8" + text-table "~0.2.0" + user-home "^2.0.0" + +espower-babel@^4.0.1: + version "4.0.3" + resolved "https://registry.yarnpkg.com/espower-babel/-/espower-babel-4.0.3.tgz#814d4a2e0ec4f5280a0cbdcfc6ee7b030bae1b42" + dependencies: + babel-core "^6.0.0" + babel-plugin-espower "^2.0.0" + minimatch "^3.0.0" + source-map-support "^0.4.0" + xtend "^4.0.0" + +espower-location-detector@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/espower-location-detector/-/espower-location-detector-1.0.0.tgz#a17b7ecc59d30e179e2bef73fb4137704cb331b5" + dependencies: + is-url "^1.2.1" + path-is-absolute "^1.0.0" + source-map "^0.5.0" + xtend "^4.0.0" + +espree@^3.4.0: + version "3.4.3" + resolved "https://registry.yarnpkg.com/espree/-/espree-3.4.3.tgz#2910b5ccd49ce893c2ffffaab4fd8b3a31b82374" + dependencies: + acorn "^5.0.1" + acorn-jsx "^3.0.0" + +esprima@^3.1.1: + version "3.1.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" + +espurify@^1.6.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/espurify/-/espurify-1.7.0.tgz#1c5cf6cbccc32e6f639380bd4f991fab9ba9d226" + dependencies: + core-js "^2.0.0" + +esquery@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.0.tgz#cfba8b57d7fba93f17298a8a006a04cda13d80fa" + dependencies: + estraverse "^4.0.0" + +esrecurse@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.1.0.tgz#4713b6536adf7f2ac4f327d559e7756bff648220" + dependencies: + estraverse "~4.1.0" + object-assign "^4.0.1" + +estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" + +estraverse@~4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.1.1.tgz#f6caca728933a850ef90661d0e17982ba47111a2" + +esutils@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" + +event-emitter@~0.3.5: + version "0.3.5" + resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39" + dependencies: + d "1" + es5-ext "~0.10.14" + +eventemitter3@1.x.x: + version "1.2.0" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-1.2.0.tgz#1c86991d816ad1e504750e73874224ecf3bec508" + +events@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" + +evp_bytestokey@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.0.tgz#497b66ad9fef65cd7c08a6180824ba1476b66e53" + dependencies: + create-hash "^1.1.1" + +exec-sh@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.0.tgz#14f75de3f20d286ef933099b2ce50a90359cef10" + dependencies: + merge "^1.1.3" + +exit-hook@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8" + +expand-brackets@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" + dependencies: + is-posix-bracket "^0.1.0" + +expand-range@^1.8.1: + version "1.8.2" + resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" + dependencies: + fill-range "^2.1.0" + +extend@~3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" + +extglob@^0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" + dependencies: + is-extglob "^1.0.0" + +extsprintf@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550" + +fast-levenshtein@~2.0.4: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + +figures@^1.3.5: + version "1.7.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e" + dependencies: + escape-string-regexp "^1.0.5" + object-assign "^4.1.0" + +file-entry-cache@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-2.0.0.tgz#c392990c3e684783d838b8c84a45d8a048458361" + dependencies: + flat-cache "^1.2.1" + object-assign "^4.0.1" + +filename-regex@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" + +fill-range@^2.1.0: + version "2.2.3" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" + dependencies: + is-number "^2.1.0" + isobject "^2.0.0" + randomatic "^1.1.3" + repeat-element "^1.1.2" + repeat-string "^1.5.2" + +find-cache-dir@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-0.1.1.tgz#c8defae57c8a52a8a784f9e31c57c742e993a0b9" + dependencies: + commondir "^1.0.1" + mkdirp "^0.5.1" + pkg-dir "^1.0.0" + +find-up@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" + dependencies: + path-exists "^2.0.0" + pinkie-promise "^2.0.0" + +flat-cache@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-1.2.2.tgz#fa86714e72c21db88601761ecf2f555d1abc6b96" + dependencies: + circular-json "^0.3.1" + del "^2.0.2" + graceful-fs "^4.1.2" + write "^0.2.1" + +for-in@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" + +for-own@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" + dependencies: + for-in "^1.0.1" + +foreach@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99" + +foreman@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/foreman/-/foreman-2.0.0.tgz#00acd20f9dbbe2f79d04697bcca2a77ee00ee031" + dependencies: + commander "~2.9.0" + http-proxy "~1.11.1" + mustache "^2.2.1" + shell-quote "~1.4.2" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + +form-data@~2.1.1: + version "2.1.4" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.5" + mime-types "^2.1.12" + +fs-readdir-recursive@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.0.0.tgz#8cd1745c8b4f8a29c8caec392476921ba195f560" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + +fsevents@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.1.tgz#f19fd28f43eeaf761680e519a203c4d0b3d31aff" + dependencies: + nan "^2.3.0" + node-pre-gyp "^0.6.29" + +fstream-ignore@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" + dependencies: + fstream "^1.0.0" + inherits "2" + minimatch "^3.0.0" + +fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: + version "1.0.11" + resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" + dependencies: + graceful-fs "^4.1.2" + inherits "~2.0.0" + mkdirp ">=0.5 0" + rimraf "2" + +function-bind@^1.0.2, function-bind@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.0.tgz#16176714c801798e4e8f2cf7f7529467bb4a5771" + +gauge@~2.7.3: + version "2.7.4" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" + dependencies: + aproba "^1.0.3" + console-control-strings "^1.0.0" + has-unicode "^2.0.0" + object-assign "^4.1.0" + signal-exit "^3.0.0" + string-width "^1.0.1" + strip-ansi "^3.0.1" + wide-align "^1.1.0" + +generate-function@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" + +generate-object-property@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0" + dependencies: + is-property "^1.0.0" + +get-caller-file@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" + +getpass@^0.1.1: + version "0.1.7" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + dependencies: + assert-plus "^1.0.0" + +glob-base@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" + dependencies: + glob-parent "^2.0.0" + is-glob "^2.0.0" + +glob-parent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" + dependencies: + is-glob "^2.0.0" + +glob@7.1.1, glob@^7.0.0, glob@^7.0.3, glob@^7.0.5: + version "7.1.1" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.2" + once "^1.3.0" + path-is-absolute "^1.0.0" + +globals@^9.0.0, globals@^9.14.0: + version "9.17.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-9.17.0.tgz#0c0ca696d9b9bb694d2e5470bd37777caad50286" + +globby@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d" + dependencies: + array-union "^1.0.1" + arrify "^1.0.0" + glob "^7.0.3" + object-assign "^4.0.1" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +graceful-fs@^4.1.2, graceful-fs@^4.1.4: + version "4.1.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" + +"graceful-readlink@>= 1.0.0": + version "1.0.1" + resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" + +growl@1.9.2: + version "1.9.2" + resolved "https://registry.yarnpkg.com/growl/-/growl-1.9.2.tgz#0ea7743715db8d8de2c5ede1775e1b45ac85c02f" + +har-schema@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" + +har-validator@~4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" + dependencies: + ajv "^4.9.1" + har-schema "^1.0.5" + +has-ansi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + dependencies: + ansi-regex "^2.0.0" + +has-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" + +has-unicode@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + +has@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28" + dependencies: + function-bind "^1.0.2" + +hash.js@^1.0.0, hash.js@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.0.3.tgz#1332ff00156c0a0ffdd8236013d07b77a0451573" + dependencies: + inherits "^2.0.1" + +hawk@~3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" + dependencies: + boom "2.x.x" + cryptiles "2.x.x" + hoek "2.x.x" + sntp "1.x.x" + +he@1.1.x: + version "1.1.1" + resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd" + +hmac-drbg@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" + dependencies: + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" + +hoek@2.x.x: + version "2.16.3" + resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" + +hogan.js@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/hogan.js/-/hogan.js-3.0.2.tgz#4cd9e1abd4294146e7679e41d7898732b02c7bfd" + dependencies: + mkdirp "0.3.0" + nopt "1.0.10" + +home-or-tmp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.1" + +hosted-git-info@^2.1.4: + version "2.4.2" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.4.2.tgz#0076b9f46a270506ddbaaea56496897460612a67" + +html-minifier@^3.1.0: + version "3.4.4" + resolved "https://registry.yarnpkg.com/html-minifier/-/html-minifier-3.4.4.tgz#616fe3e3ef16da02b393d9a6099eeff468a35df0" + dependencies: + camel-case "3.0.x" + clean-css "4.0.x" + commander "2.9.x" + he "1.1.x" + ncname "1.0.x" + param-case "2.1.x" + relateurl "0.2.x" + uglify-js "~2.8.22" + +http-proxy@~1.11.1: + version "1.11.3" + resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.11.3.tgz#1915dc888751e2a6bf3c2abfcb1808fa86c72353" + dependencies: + eventemitter3 "1.x.x" + requires-port "0.x.x" + +http-signature@~1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" + dependencies: + assert-plus "^0.2.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +https-browserify@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-0.0.1.tgz#3f91365cabe60b77ed0ebba24b454e3e09d95a82" + +ieee754@^1.1.4: + version "1.1.8" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.8.tgz#be33d40ac10ef1926701f6f08a2d86fbfd1ad3e4" + +ignore@^3.2.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.0.tgz#3812d22cbe9125f2c2b4915755a1b8abd745a001" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + +indexof@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d" + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, inherits@~2.0.1: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + +inherits@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" + +ini@~1.3.0: + version "1.3.4" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e" + +inquirer@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-0.12.0.tgz#1ef2bfd63504df0bc75785fff8c2c41df12f077e" + dependencies: + ansi-escapes "^1.1.0" + ansi-regex "^2.0.0" + chalk "^1.0.0" + cli-cursor "^1.0.1" + cli-width "^2.0.0" + figures "^1.3.5" + lodash "^4.3.0" + readline2 "^1.0.1" + run-async "^0.1.0" + rx-lite "^3.1.2" + string-width "^1.0.1" + strip-ansi "^3.0.0" + through "^2.3.6" + +interpret@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.3.tgz#cbc35c62eeee73f19ab7b10a801511401afc0f90" + +invariant@^2.2.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" + dependencies: + loose-envify "^1.0.0" + +invert-kv@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + +is-binary-path@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" + dependencies: + binary-extensions "^1.0.0" + +is-buffer@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.5.tgz#1f3b26ef613b214b88cbca23cc6c01d87961eecc" + +is-builtin-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" + dependencies: + builtin-modules "^1.0.0" + +is-callable@^1.1.1, is-callable@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2" + +is-date-object@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" + +is-dotfile@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.2.tgz#2c132383f39199f8edc268ca01b9b007d205cc4d" + +is-equal-shallow@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" + dependencies: + is-primitive "^2.0.0" + +is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + +is-extglob@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" + +is-finite@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + +is-glob@^2.0.0, is-glob@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" + dependencies: + is-extglob "^1.0.0" + +is-my-json-valid@^2.10.0: + version "2.16.0" + resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.16.0.tgz#f079dd9bfdae65ee2038aae8acbc86ab109e3693" + dependencies: + generate-function "^2.0.0" + generate-object-property "^1.1.0" + jsonpointer "^4.0.0" + xtend "^4.0.0" + +is-number@^2.0.2, is-number@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" + dependencies: + kind-of "^3.0.2" + +is-path-cwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" + +is-path-in-cwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz#6477582b8214d602346094567003be8a9eac04dc" + dependencies: + is-path-inside "^1.0.0" + +is-path-inside@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.0.tgz#fc06e5a1683fbda13de667aff717bbc10a48f37f" + dependencies: + path-is-inside "^1.0.1" + +is-posix-bracket@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" + +is-primitive@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" + +is-property@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" + +is-regex@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" + dependencies: + has "^1.0.1" + +is-resolvable@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.0.0.tgz#8df57c61ea2e3c501408d100fb013cf8d6e0cc62" + dependencies: + tryit "^1.0.1" + +is-symbol@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572" + +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + +is-url@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/is-url/-/is-url-1.2.2.tgz#498905a593bf47cc2d9e7f738372bbf7696c7f26" + +is-utf8@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" + +isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + dependencies: + isarray "1.0.0" + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + +jodid25519@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/jodid25519/-/jodid25519-1.0.2.tgz#06d4912255093419477d425633606e0e90782967" + dependencies: + jsbn "~0.1.0" + +js-tokens@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7" + +js-yaml@^3.5.1: + version "3.8.3" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.3.tgz#33a05ec481c850c8875929166fe1beb61c728766" + dependencies: + argparse "^1.0.7" + esprima "^3.1.1" + +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + +jsesc@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" + +jsesc@~0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" + +json-loader@^0.5.4: + version "0.5.4" + resolved "https://registry.yarnpkg.com/json-loader/-/json-loader-0.5.4.tgz#8baa1365a632f58a3c46d20175fc6002c96e37de" + +json-schema@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" + +json-stable-stringify@^1.0.0, json-stable-stringify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" + dependencies: + jsonify "~0.0.0" + +json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + +json3@3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/json3/-/json3-3.3.2.tgz#3c0434743df93e2f5c42aee7b19bcb483575f4e1" + +json5@^0.5.0, json5@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" + +jsonify@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" + +jsonpointer@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9" + +jsprim@^1.2.2: + version "1.4.0" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.0.tgz#a3b87e40298d8c380552d8cc7628a0bb95a22918" + dependencies: + assert-plus "1.0.0" + extsprintf "1.0.2" + json-schema "0.2.3" + verror "1.3.6" + +jsx-ast-utils@^1.0.0, jsx-ast-utils@^1.3.4: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-1.4.1.tgz#3867213e8dd79bf1e8f2300c0cfc1efb182c0df1" + +keypress@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/keypress/-/keypress-0.2.1.tgz#1e80454250018dbad4c3fe94497d6e67b6269c77" + +kind-of@^3.0.2: + version "3.2.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.0.tgz#b58abe4d5c044ad33726a8c1525b48cf891bff07" + dependencies: + is-buffer "^1.1.5" + +lazy-cache@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" + +lcid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" + dependencies: + invert-kv "^1.0.0" + +levn@^0.3.0, levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +load-json-file@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + pinkie-promise "^2.0.0" + strip-bom "^2.0.0" + +loader-runner@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.3.0.tgz#f482aea82d543e07921700d5a46ef26fdac6b8a2" + +loader-utils@^0.2.16, loader-utils@^0.2.4: + version "0.2.17" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-0.2.17.tgz#f86e6374d43205a6e6c60e9196f17c0299bfb348" + dependencies: + big.js "^3.1.3" + emojis-list "^2.0.0" + json5 "^0.5.0" + object-assign "^4.0.1" + +loader-utils@^1.0.2: + version "1.1.0" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.1.0.tgz#c98aef488bcceda2ffb5e2de646d6a754429f5cd" + dependencies: + big.js "^3.1.3" + emojis-list "^2.0.0" + json5 "^0.5.0" + +lodash._baseassign@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e" + dependencies: + lodash._basecopy "^3.0.0" + lodash.keys "^3.0.0" + +lodash._basecopy@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" + +lodash._basecreate@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz#1bc661614daa7fc311b7d03bf16806a0213cf821" + +lodash._getnative@^3.0.0: + version "3.9.1" + resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" + +lodash._isiterateecall@^3.0.0: + version "3.0.9" + resolved "https://registry.yarnpkg.com/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz#5203ad7ba425fae842460e696db9cf3e6aac057c" + +lodash.cond@^4.3.0: + version "4.5.2" + resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5" + +lodash.create@3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/lodash.create/-/lodash.create-3.1.1.tgz#d7f2849f0dbda7e04682bb8cd72ab022461debe7" + dependencies: + lodash._baseassign "^3.0.0" + lodash._basecreate "^3.0.0" + lodash._isiterateecall "^3.0.0" + +lodash.endswith@^4.0.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/lodash.endswith/-/lodash.endswith-4.2.1.tgz#fed59ac1738ed3e236edd7064ec456448b37bc09" + +lodash.find@^4.3.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash.find/-/lodash.find-4.6.0.tgz#cb0704d47ab71789ffa0de8b97dd926fb88b13b1" + +lodash.findindex@^4.3.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash.findindex/-/lodash.findindex-4.6.0.tgz#a3245dee61fb9b6e0624b535125624bb69c11106" + +lodash.isarguments@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" + +lodash.isarray@^3.0.0: + version "3.0.4" + resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" + +lodash.keys@^3.0.0: + version "3.1.2" + resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a" + dependencies: + lodash._getnative "^3.0.0" + lodash.isarguments "^3.0.0" + lodash.isarray "^3.0.0" + +lodash@^4.0.0, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.2.0, lodash@^4.3.0: + version "4.17.4" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" + +longest@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" + +loose-envify@^1.0.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" + dependencies: + js-tokens "^3.0.0" + +lower-case@^1.1.1: + version "1.1.4" + resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-1.1.4.tgz#9a2cabd1b9e8e0ae993a4bf7d5875c39c42e8eac" + +memory-fs@^0.4.0, memory-fs@~0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" + dependencies: + errno "^0.1.3" + readable-stream "^2.0.1" + +merge@^1.1.3: + version "1.2.0" + resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da" + +micromatch@^2.1.5: + version "2.3.11" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" + dependencies: + arr-diff "^2.0.0" + array-unique "^0.2.1" + braces "^1.8.2" + expand-brackets "^0.1.4" + extglob "^0.3.1" + filename-regex "^2.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.1" + kind-of "^3.0.2" + normalize-path "^2.0.1" + object.omit "^2.0.0" + parse-glob "^3.0.4" + regex-cache "^0.4.2" + +miller-rabin@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.0.tgz#4a62fb1d42933c05583982f4c716f6fb9e6c6d3d" + dependencies: + bn.js "^4.0.0" + brorand "^1.0.1" + +mime-db@~1.27.0: + version "1.27.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.27.0.tgz#820f572296bbd20ec25ed55e5b5de869e5436eb1" + +mime-types@^2.1.12, mime-types@~2.1.7: + version "2.1.15" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.15.tgz#a4ebf5064094569237b8cf70046776d09fc92aed" + dependencies: + mime-db "~1.27.0" + +minimalistic-assert@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz#702be2dda6b37f4836bcb3f5db56641b64a1d3d3" + +minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" + +minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + dependencies: + brace-expansion "^1.1.7" + +minimist@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + +minimist@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + +mkdirp@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.3.0.tgz#1bbf5ab1ba827af23575143490426455f481fe1e" + +mkdirp@0.5.1, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0: + version "0.5.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + dependencies: + minimist "0.0.8" + +mocha@^3.0.2: + version "3.3.0" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-3.3.0.tgz#d29b7428d3f52c82e2e65df1ecb7064e1aabbfb5" + dependencies: + browser-stdout "1.3.0" + commander "2.9.0" + debug "2.6.0" + diff "3.2.0" + escape-string-regexp "1.0.5" + glob "7.1.1" + growl "1.9.2" + json3 "3.3.2" + lodash.create "3.1.1" + mkdirp "0.5.1" + supports-color "3.1.2" + +ms@0.7.2: + version "0.7.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" + +ms@0.7.3: + version "0.7.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.3.tgz#708155a5e44e33f5fd0fc53e81d0d40a91be1fff" + +mustache-loader@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/mustache-loader/-/mustache-loader-0.4.1.tgz#1e665a8d5cb2d78e69cfa6cebb33f34f95fd53c2" + dependencies: + hogan.js "^3.0.2" + html-minifier "^3.1.0" + loader-utils "^0.2.4" + xtend "^4.0.0" + +mustache@^2.2.1: + version "2.3.0" + resolved "https://registry.yarnpkg.com/mustache/-/mustache-2.3.0.tgz#4028f7778b17708a489930a6e52ac3bca0da41d0" + +mute-stream@0.0.5: + version "0.0.5" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0" + +nan@^2.3.0: + version "2.6.2" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.6.2.tgz#e4ff34e6c95fdfb5aecc08de6596f43605a7db45" + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + +ncname@1.0.x: + version "1.0.0" + resolved "https://registry.yarnpkg.com/ncname/-/ncname-1.0.0.tgz#5b57ad18b1ca092864ef62b0b1ed8194f383b71c" + dependencies: + xml-char-classes "^1.0.0" + +no-case@^2.2.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/no-case/-/no-case-2.3.1.tgz#7aeba1c73a52184265554b7dc03baf720df80081" + dependencies: + lower-case "^1.1.1" + +node-libs-browser@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.0.0.tgz#a3a59ec97024985b46e958379646f96c4b616646" + dependencies: + assert "^1.1.1" + browserify-zlib "^0.1.4" + buffer "^4.3.0" + console-browserify "^1.1.0" + constants-browserify "^1.0.0" + crypto-browserify "^3.11.0" + domain-browser "^1.1.1" + events "^1.0.0" + https-browserify "0.0.1" + os-browserify "^0.2.0" + path-browserify "0.0.0" + process "^0.11.0" + punycode "^1.2.4" + querystring-es3 "^0.2.0" + readable-stream "^2.0.5" + stream-browserify "^2.0.1" + stream-http "^2.3.1" + string_decoder "^0.10.25" + timers-browserify "^2.0.2" + tty-browserify "0.0.0" + url "^0.11.0" + util "^0.10.3" + vm-browserify "0.0.4" + +node-pre-gyp@^0.6.29: + version "0.6.34" + resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.34.tgz#94ad1c798a11d7fc67381b50d47f8cc18d9799f7" + dependencies: + mkdirp "^0.5.1" + nopt "^4.0.1" + npmlog "^4.0.2" + rc "^1.1.7" + request "^2.81.0" + rimraf "^2.6.1" + semver "^5.3.0" + tar "^2.2.1" + tar-pack "^3.4.0" + +nopt@1.0.10: + version "1.0.10" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee" + dependencies: + abbrev "1" + +nopt@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" + dependencies: + abbrev "1" + osenv "^0.1.4" + +normalize-package-data@^2.3.2: + version "2.3.8" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.3.8.tgz#d819eda2a9dedbd1ffa563ea4071d936782295bb" + dependencies: + hosted-git-info "^2.1.4" + is-builtin-module "^1.0.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + +normalize-path@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" + dependencies: + remove-trailing-separator "^1.0.1" + +npmlog@^4.0.2: + version "4.1.0" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.0.tgz#dc59bee85f64f00ed424efb2af0783df25d1c0b5" + dependencies: + are-we-there-yet "~1.1.2" + console-control-strings "~1.1.0" + gauge "~2.7.3" + set-blocking "~2.0.0" + +number-is-nan@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + +oauth-sign@~0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" + +object-assign@^4.0.1, object-assign@^4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + +object-keys@^1.0.0, object-keys@^1.0.10, object-keys@^1.0.8: + version "1.0.11" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d" + +object.assign@^4.0.4: + version "4.0.4" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.0.4.tgz#b1c9cc044ef1b9fe63606fc141abbb32e14730cc" + dependencies: + define-properties "^1.1.2" + function-bind "^1.1.0" + object-keys "^1.0.10" + +object.omit@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" + dependencies: + for-own "^0.1.4" + is-extendable "^0.1.1" + +once@^1.3.0, once@^1.3.3: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + dependencies: + wrappy "1" + +onetime@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789" + +optionator@^0.8.1, optionator@^0.8.2: + version "0.8.2" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.4" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + wordwrap "~1.0.0" + +os-browserify@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.2.1.tgz#63fc4ccee5d2d7763d26bbf8601078e6c2e0044f" + +os-homedir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + +os-locale@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" + dependencies: + lcid "^1.0.0" + +os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + +osenv@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.4.tgz#42fe6d5953df06c8064be6f176c3d05aaaa34644" + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + +output-file-sync@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/output-file-sync/-/output-file-sync-1.1.2.tgz#d0a33eefe61a205facb90092e826598d5245ce76" + dependencies: + graceful-fs "^4.1.4" + mkdirp "^0.5.1" + object-assign "^4.1.0" + +pako@~0.2.0: + version "0.2.9" + resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75" + +param-case@2.1.x: + version "2.1.1" + resolved "https://registry.yarnpkg.com/param-case/-/param-case-2.1.1.tgz#df94fd8cf6531ecf75e6bef9a0858fbc72be2247" + dependencies: + no-case "^2.2.0" + +parse-asn1@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.0.tgz#37c4f9b7ed3ab65c74817b5f2480937fbf97c712" + dependencies: + asn1.js "^4.0.0" + browserify-aes "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.0" + pbkdf2 "^3.0.3" + +parse-glob@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" + dependencies: + glob-base "^0.3.0" + is-dotfile "^1.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.0" + +parse-json@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" + dependencies: + error-ex "^1.2.0" + +path-browserify@0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a" + +path-exists@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" + dependencies: + pinkie-promise "^2.0.0" + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + +path-is-inside@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" + +path-parse@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" + +path-type@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" + dependencies: + graceful-fs "^4.1.2" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +pbkdf2@^3.0.3: + version "3.0.9" + resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.9.tgz#f2c4b25a600058b3c3773c086c37dbbee1ffe693" + dependencies: + create-hmac "^1.1.2" + +pegjs@^0.10.0: + version "0.10.0" + resolved "https://registry.yarnpkg.com/pegjs/-/pegjs-0.10.0.tgz#cf8bafae6eddff4b5a7efb185269eaaf4610ddbd" + +performance-now@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" + +pify@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + +pkg-dir@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4" + dependencies: + find-up "^1.0.0" + +pkg-up@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-1.0.0.tgz#3e08fb461525c4421624a33b9f7e6d0af5b05a26" + dependencies: + find-up "^1.0.0" + +pluralize@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-1.2.1.tgz#d1a21483fd22bb41e58a12fa3421823140897c45" + +power-assert-context-formatter@^1.0.7: + version "1.1.1" + resolved "https://registry.yarnpkg.com/power-assert-context-formatter/-/power-assert-context-formatter-1.1.1.tgz#edba352d3ed8a603114d667265acce60d689ccdf" + dependencies: + core-js "^2.0.0" + power-assert-context-traversal "^1.1.1" + +power-assert-context-reducer-ast@^1.0.7: + version "1.1.2" + resolved "https://registry.yarnpkg.com/power-assert-context-reducer-ast/-/power-assert-context-reducer-ast-1.1.2.tgz#484a99e26f4973ff8832e5c5cc756702e6094174" + dependencies: + acorn "^4.0.0" + acorn-es7-plugin "^1.0.12" + core-js "^2.0.0" + espurify "^1.6.0" + estraverse "^4.2.0" + +power-assert-context-traversal@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/power-assert-context-traversal/-/power-assert-context-traversal-1.1.1.tgz#88cabca0d13b6359f07d3d3e8afa699264577ed9" + dependencies: + core-js "^2.0.0" + estraverse "^4.1.0" + +power-assert-formatter@^1.3.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/power-assert-formatter/-/power-assert-formatter-1.4.1.tgz#5dc125ed50a3dfb1dda26c19347f3bf58ec2884a" + dependencies: + core-js "^2.0.0" + power-assert-context-formatter "^1.0.7" + power-assert-context-reducer-ast "^1.0.7" + power-assert-renderer-assertion "^1.0.7" + power-assert-renderer-comparison "^1.0.7" + power-assert-renderer-diagram "^1.0.7" + power-assert-renderer-file "^1.0.7" + +power-assert-renderer-assertion@^1.0.7: + version "1.1.1" + resolved "https://registry.yarnpkg.com/power-assert-renderer-assertion/-/power-assert-renderer-assertion-1.1.1.tgz#cbfc0e77e0086a8f96af3f1d8e67b9ee7e28ce98" + dependencies: + power-assert-renderer-base "^1.1.1" + power-assert-util-string-width "^1.1.1" + +power-assert-renderer-base@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/power-assert-renderer-base/-/power-assert-renderer-base-1.1.1.tgz#96a650c6fd05ee1bc1f66b54ad61442c8b3f63eb" + +power-assert-renderer-comparison@^1.0.7: + version "1.1.1" + resolved "https://registry.yarnpkg.com/power-assert-renderer-comparison/-/power-assert-renderer-comparison-1.1.1.tgz#d7439d97d85156be4e30a00f2fb5a72514ce3c08" + dependencies: + core-js "^2.0.0" + diff-match-patch "^1.0.0" + power-assert-renderer-base "^1.1.1" + stringifier "^1.3.0" + type-name "^2.0.1" + +power-assert-renderer-diagram@^1.0.7: + version "1.1.2" + resolved "https://registry.yarnpkg.com/power-assert-renderer-diagram/-/power-assert-renderer-diagram-1.1.2.tgz#655f8f711935a9b6d541b86327654717c637a986" + dependencies: + core-js "^2.0.0" + power-assert-renderer-base "^1.1.1" + power-assert-util-string-width "^1.1.1" + stringifier "^1.3.0" + +power-assert-renderer-file@^1.0.7: + version "1.1.1" + resolved "https://registry.yarnpkg.com/power-assert-renderer-file/-/power-assert-renderer-file-1.1.1.tgz#a37e2bbd178ccacd04e78dbb79c92fe34933c5e7" + dependencies: + power-assert-renderer-base "^1.1.1" + +power-assert-util-string-width@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/power-assert-util-string-width/-/power-assert-util-string-width-1.1.1.tgz#be659eb7937fdd2e6c9a77268daaf64bd5b7c592" + dependencies: + eastasianwidth "^0.1.1" + +power-assert@^1.2.0: + version "1.4.2" + resolved "https://registry.yarnpkg.com/power-assert/-/power-assert-1.4.2.tgz#43319cd0fecd3221f276f1cc49ffa2eaeb9a1815" + dependencies: + define-properties "^1.1.2" + empower "^1.1.0" + power-assert-formatter "^1.3.1" + universal-deep-strict-equal "^1.2.1" + xtend "^4.0.0" + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + +preserve@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" + +private@^0.1.6: + version "0.1.7" + resolved "https://registry.yarnpkg.com/private/-/private-0.1.7.tgz#68ce5e8a1ef0a23bb570cc28537b5332aba63ef1" + +process-nextick-args@~1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" + +process@^0.11.0: + version "0.11.10" + resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" + +progress@^1.1.8: + version "1.1.8" + resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be" + +prr@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/prr/-/prr-0.0.0.tgz#1a84b85908325501411853d0081ee3fa86e2926a" + +public-encrypt@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.0.tgz#39f699f3a46560dd5ebacbca693caf7c65c18cc6" + dependencies: + bn.js "^4.1.0" + browserify-rsa "^4.0.0" + create-hash "^1.1.0" + parse-asn1 "^5.0.0" + randombytes "^2.0.1" + +punycode@1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" + +punycode@^1.2.4, punycode@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + +qs@~6.4.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" + +querystring-es3@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" + +querystring@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" + +randomatic@^1.1.3: + version "1.1.6" + resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.6.tgz#110dcabff397e9dcff7c0789ccc0a49adf1ec5bb" + dependencies: + is-number "^2.0.2" + kind-of "^3.0.2" + +randombytes@^2.0.0, randombytes@^2.0.1: + version "2.0.3" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.0.3.tgz#674c99760901c3c4112771a31e521dc349cc09ec" + +rc@^1.1.7: + version "1.2.1" + resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.1.tgz#2e03e8e42ee450b8cb3dce65be1bf8974e1dfd95" + dependencies: + deep-extend "~0.4.0" + ini "~1.3.0" + minimist "^1.2.0" + strip-json-comments "~2.0.1" + +read-pkg-up@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" + dependencies: + find-up "^1.0.0" + read-pkg "^1.0.0" + +read-pkg@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" + dependencies: + load-json-file "^1.0.0" + normalize-package-data "^2.3.2" + path-type "^1.0.0" + +readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.1.4, readable-stream@^2.2.2, readable-stream@^2.2.6: + version "2.2.9" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.9.tgz#cf78ec6f4a6d1eb43d26488cac97f042e74b7fc8" + dependencies: + buffer-shims "~1.0.0" + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "~1.0.0" + process-nextick-args "~1.0.6" + string_decoder "~1.0.0" + util-deprecate "~1.0.1" + +readdirp@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" + dependencies: + graceful-fs "^4.1.2" + minimatch "^3.0.2" + readable-stream "^2.0.2" + set-immediate-shim "^1.0.1" + +readline2@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/readline2/-/readline2-1.0.1.tgz#41059608ffc154757b715d9989d199ffbf372e35" + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + mute-stream "0.0.5" + +rechoir@^0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" + dependencies: + resolve "^1.1.6" + +regenerate@^1.2.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.2.tgz#d1941c67bad437e1be76433add5b385f95b19260" + +regenerator-runtime@^0.10.0: + version "0.10.5" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658" + +regenerator-transform@0.9.11: + version "0.9.11" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.9.11.tgz#3a7d067520cb7b7176769eb5ff868691befe1283" + dependencies: + babel-runtime "^6.18.0" + babel-types "^6.19.0" + private "^0.1.6" + +regex-cache@^0.4.2: + version "0.4.3" + resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.3.tgz#9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145" + dependencies: + is-equal-shallow "^0.1.3" + is-primitive "^2.0.0" + +regexpu-core@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" + dependencies: + regenerate "^1.2.1" + regjsgen "^0.2.0" + regjsparser "^0.1.4" + +regjsgen@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" + +regjsparser@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" + dependencies: + jsesc "~0.5.0" + +relateurl@0.2.x: + version "0.2.7" + resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" + +remove-trailing-separator@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.0.1.tgz#615ebb96af559552d4bf4057c8436d486ab63cc4" + +repeat-element@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" + +repeat-string@^1.5.2: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + +repeating@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" + dependencies: + is-finite "^1.0.0" + +request@^2.81.0: + version "2.81.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" + dependencies: + aws-sign2 "~0.6.0" + aws4 "^1.2.1" + caseless "~0.12.0" + combined-stream "~1.0.5" + extend "~3.0.0" + forever-agent "~0.6.1" + form-data "~2.1.1" + har-validator "~4.2.1" + hawk "~3.1.3" + http-signature "~1.1.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.7" + oauth-sign "~0.8.1" + performance-now "^0.2.0" + qs "~6.4.0" + safe-buffer "^5.0.1" + stringstream "~0.0.4" + tough-cookie "~2.3.0" + tunnel-agent "^0.6.0" + uuid "^3.0.0" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + +require-main-filename@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" + +require-uncached@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3" + dependencies: + caller-path "^0.1.0" + resolve-from "^1.0.0" + +requires-port@0.x.x: + version "0.0.1" + resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-0.0.1.tgz#4b4414411d9df7c855995dd899a8c78a2951c16d" + +resolve-from@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226" + +resolve@^1.1.6: + version "1.3.3" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.3.3.tgz#655907c3469a8680dc2de3a275a8fdd69691f0e5" + dependencies: + path-parse "^1.0.5" + +restore-cursor@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541" + dependencies: + exit-hook "^1.0.0" + onetime "^1.0.0" + +right-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" + dependencies: + align-text "^0.1.1" + +rimraf@2, rimraf@^2.2.8, rimraf@^2.5.1, rimraf@^2.6.1: + version "2.6.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.1.tgz#c2338ec643df7a1b7fe5c54fa86f57428a55f33d" + dependencies: + glob "^7.0.5" + +ripemd160@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-1.0.1.tgz#93a4bbd4942bc574b69a8fa57c71de10ecca7d6e" + +run-async@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/run-async/-/run-async-0.1.0.tgz#c8ad4a5e110661e402a7d21b530e009f25f8e389" + dependencies: + once "^1.3.0" + +rx-lite@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102" + +safe-buffer@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.0.1.tgz#d263ca54696cd8a306b5ca6551e92de57918fbe7" + +"semver@2 || 3 || 4 || 5", semver@^5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" + +set-blocking@^2.0.0, set-blocking@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + +set-immediate-shim@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" + +setimmediate@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" + +sha.js@^2.3.6: + version "2.4.8" + resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.8.tgz#37068c2c476b6baf402d14a49c67f597921f634f" + dependencies: + inherits "^2.0.1" + +shell-quote@~1.4.2: + version "1.4.3" + resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.4.3.tgz#952c44e0b1ed9013ef53958179cc643e8777466b" + dependencies: + array-filter "~0.0.0" + array-map "~0.0.0" + array-reduce "~0.0.0" + jsonify "~0.0.0" + +shelljs@^0.7.5: + version "0.7.7" + resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.7.tgz#b2f5c77ef97148f4b4f6e22682e10bba8667cff1" + dependencies: + glob "^7.0.0" + interpret "^1.0.0" + rechoir "^0.6.2" + +signal-exit@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" + +slash@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" + +slice-ansi@0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35" + +sntp@1.x.x: + version "1.0.9" + resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" + dependencies: + hoek "2.x.x" + +source-list-map@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-1.1.2.tgz#9889019d1024cce55cdc069498337ef6186a11a1" + +source-map-support@^0.4.0, source-map-support@^0.4.2: + version "0.4.15" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.15.tgz#03202df65c06d2bd8c7ec2362a193056fef8d3b1" + dependencies: + source-map "^0.5.6" + +source-map@0.5.x, source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@~0.5.1, source-map@~0.5.3: + version "0.5.6" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412" + +spdx-correct@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40" + dependencies: + spdx-license-ids "^1.0.2" + +spdx-expression-parse@~1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c" + +spdx-license-ids@^1.0.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + +sshpk@^1.7.0: + version "1.13.0" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.0.tgz#ff2a3e4fd04497555fed97b39a0fd82fafb3a33c" + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + dashdash "^1.12.0" + getpass "^0.1.1" + optionalDependencies: + bcrypt-pbkdf "^1.0.0" + ecc-jsbn "~0.1.1" + jodid25519 "^1.0.0" + jsbn "~0.1.0" + tweetnacl "~0.14.0" + +stream-browserify@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db" + dependencies: + inherits "~2.0.1" + readable-stream "^2.0.2" + +stream-http@^2.3.1: + version "2.7.0" + resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.7.0.tgz#cec1f4e3b494bc4a81b451808970f8b20b4ed5f6" + dependencies: + builtin-status-codes "^3.0.0" + inherits "^2.0.1" + readable-stream "^2.2.6" + to-arraybuffer "^1.0.0" + xtend "^4.0.0" + +string-width@^1.0.1, string-width@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + strip-ansi "^3.0.0" + +string-width@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.0.0.tgz#635c5436cc72a6e0c387ceca278d4e2eec52687e" + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^3.0.0" + +string_decoder@^0.10.25: + version "0.10.31" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" + +string_decoder@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.0.tgz#f06f41157b664d86069f84bdbdc9b0d8ab281667" + dependencies: + buffer-shims "~1.0.0" + +stringifier@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/stringifier/-/stringifier-1.3.0.tgz#def18342f6933db0f2dbfc9aa02175b448c17959" + dependencies: + core-js "^2.0.0" + traverse "^0.6.6" + type-name "^2.0.1" + +stringstream@~0.0.4: + version "0.0.5" + resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + dependencies: + ansi-regex "^2.0.0" + +strip-bom@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" + dependencies: + is-utf8 "^0.2.0" + +strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + +strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + +supports-color@3.1.2, supports-color@^3.1.0: + version "3.1.2" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.1.2.tgz#72a262894d9d408b956ca05ff37b2ed8a6e2a2d5" + dependencies: + has-flag "^1.0.0" + +supports-color@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + +table@^3.7.8: + version "3.8.3" + resolved "https://registry.yarnpkg.com/table/-/table-3.8.3.tgz#2bbc542f0fda9861a755d3947fefd8b3f513855f" + dependencies: + ajv "^4.7.0" + ajv-keywords "^1.0.0" + chalk "^1.1.1" + lodash "^4.0.0" + slice-ansi "0.0.4" + string-width "^2.0.0" + +tapable@^0.2.5, tapable@~0.2.5: + version "0.2.6" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.6.tgz#206be8e188860b514425375e6f1ae89bfb01fd8d" + +tar-pack@^3.4.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.4.0.tgz#23be2d7f671a8339376cbdb0b8fe3fdebf317984" + dependencies: + debug "^2.2.0" + fstream "^1.0.10" + fstream-ignore "^1.0.5" + once "^1.3.3" + readable-stream "^2.1.4" + rimraf "^2.5.1" + tar "^2.2.1" + uid-number "^0.0.6" + +tar@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" + dependencies: + block-stream "*" + fstream "^1.0.2" + inherits "2" + +text-table@^0.2.0, text-table@~0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + +through@^2.3.6: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + +timers-browserify@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.2.tgz#ab4883cf597dcd50af211349a00fbca56ac86b86" + dependencies: + setimmediate "^1.0.4" + +to-arraybuffer@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" + +to-fast-properties@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" + +tough-cookie@~2.3.0: + version "2.3.2" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a" + dependencies: + punycode "^1.4.1" + +traverse@^0.6.6: + version "0.6.6" + resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137" + +trim-right@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" + +tryit@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/tryit/-/tryit-1.0.3.tgz#393be730a9446fd1ead6da59a014308f36c289cb" + +tty-browserify@0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" + +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + dependencies: + safe-buffer "^5.0.1" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + dependencies: + prelude-ls "~1.1.2" + +type-name@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/type-name/-/type-name-2.0.2.tgz#efe7d4123d8ac52afff7f40c7e4dec5266008fb4" + +typedarray@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" + +uglify-js@^2.8.5, uglify-js@~2.8.22: + version "2.8.23" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.23.tgz#8230dd9783371232d62a7821e2cf9a817270a8a0" + dependencies: + source-map "~0.5.1" + yargs "~3.10.0" + optionalDependencies: + uglify-to-browserify "~1.0.0" + +uglify-to-browserify@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" + +uid-number@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" + +unist-util-map@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/unist-util-map/-/unist-util-map-1.0.3.tgz#26a913d7cddb3cd3e9a886d135d37a3d1f54e514" + dependencies: + object-assign "^4.0.1" + +universal-deep-strict-equal@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/universal-deep-strict-equal/-/universal-deep-strict-equal-1.2.2.tgz#0da4ac2f73cff7924c81fa4de018ca562ca2b0a7" + dependencies: + array-filter "^1.0.0" + indexof "0.0.1" + object-keys "^1.0.0" + +upper-case@^1.1.1: + version "1.1.3" + resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-1.1.3.tgz#f6b4501c2ec4cdd26ba78be7222961de77621598" + +url@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" + dependencies: + punycode "1.3.2" + querystring "0.2.0" + +user-home@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190" + +user-home@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/user-home/-/user-home-2.0.0.tgz#9c70bfd8169bc1dcbf48604e0f04b8b49cde9e9f" + dependencies: + os-homedir "^1.0.0" + +util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + +util@0.10.3, util@^0.10.3: + version "0.10.3" + resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" + dependencies: + inherits "2.0.1" + +uuid@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1" + +v8flags@^2.0.10: + version "2.1.1" + resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-2.1.1.tgz#aab1a1fa30d45f88dd321148875ac02c0b55e5b4" + dependencies: + user-home "^1.1.1" + +validate-npm-package-license@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc" + dependencies: + spdx-correct "~1.0.0" + spdx-expression-parse "~1.0.0" + +verror@1.3.6: + version "1.3.6" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.3.6.tgz#cff5df12946d297d2baaefaa2689e25be01c005c" + dependencies: + extsprintf "1.0.2" + +vm-browserify@0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73" + dependencies: + indexof "0.0.1" + +watch@^0.19.2: + version "0.19.3" + resolved "https://registry.yarnpkg.com/watch/-/watch-0.19.3.tgz#78221aee8e2dbe23cd4458917da31eece54b3766" + dependencies: + exec-sh "^0.2.0" + minimist "^1.2.0" + +watchpack@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.3.1.tgz#7d8693907b28ce6013e7f3610aa2a1acf07dad87" + dependencies: + async "^2.1.2" + chokidar "^1.4.3" + graceful-fs "^4.1.2" + +webpack-sources@^0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-0.2.3.tgz#17c62bfaf13c707f9d02c479e0dcdde8380697fb" + dependencies: + source-list-map "^1.1.1" + source-map "~0.5.3" + +webpack@^2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-2.5.1.tgz#61742f0cf8af555b87460a9cd8bba2f1e3ee2fce" + dependencies: + acorn "^5.0.0" + acorn-dynamic-import "^2.0.0" + ajv "^4.7.0" + ajv-keywords "^1.1.1" + async "^2.1.2" + enhanced-resolve "^3.0.0" + interpret "^1.0.0" + json-loader "^0.5.4" + json5 "^0.5.1" + loader-runner "^2.3.0" + loader-utils "^0.2.16" + memory-fs "~0.4.1" + mkdirp "~0.5.0" + node-libs-browser "^2.0.0" + source-map "^0.5.3" + supports-color "^3.1.0" + tapable "~0.2.5" + uglify-js "^2.8.5" + watchpack "^1.3.1" + webpack-sources "^0.2.3" + yargs "^6.0.0" + +which-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" + +wide-align@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.0.tgz#40edde802a71fea1f070da3e62dcda2e7add96ad" + dependencies: + string-width "^1.0.1" + +window-size@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" + +wordwrap@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" + +wordwrap@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + +wrap-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + +write@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/write/-/write-0.2.1.tgz#5fc03828e264cea3fe91455476f7a3c566cb0757" + dependencies: + mkdirp "^0.5.1" + +xml-char-classes@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/xml-char-classes/-/xml-char-classes-1.0.0.tgz#64657848a20ffc5df583a42ad8a277b4512bbc4d" + +xtend@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" + +y18n@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" + +yargs-parser@^4.2.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-4.2.1.tgz#29cceac0dc4f03c6c87b4a9f217dd18c9f74871c" + dependencies: + camelcase "^3.0.0" + +yargs@^6.0.0: + version "6.6.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-6.6.0.tgz#782ec21ef403345f830a808ca3d513af56065208" + dependencies: + camelcase "^3.0.0" + cliui "^3.2.0" + decamelize "^1.1.1" + get-caller-file "^1.0.1" + os-locale "^1.4.0" + read-pkg-up "^1.0.1" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^1.0.2" + which-module "^1.0.0" + y18n "^3.2.1" + yargs-parser "^4.2.0" + +yargs@~3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" + dependencies: + camelcase "^1.0.2" + cliui "^2.1.0" + decamelize "^1.0.0" + window-size "0.1.0" From 1dc24eca82ccadc205f8e44e8272bd8b8251c3ec Mon Sep 17 00:00:00 2001 From: zhoupeng Date: Mon, 8 May 2017 18:53:34 +0800 Subject: [PATCH 2/5] webpack config --- dist/restructured.js | 50 ++++++++++++++++++++-------------------- dist/restructured.min.js | 2 +- src/index.js | 3 +++ webpack.config.dev.js | 3 ++- webpack.config.pro.js | 1 + 5 files changed, 32 insertions(+), 27 deletions(-) create mode 100644 src/index.js diff --git a/dist/restructured.js b/dist/restructured.js index 25caf7f..4aa80f1 100644 --- a/dist/restructured.js +++ b/dist/restructured.js @@ -3,10 +3,10 @@ module.exports = factory(require("lodash")); else if(typeof define === 'function' && define.amd) define(["lodash"], factory); - else { - var a = typeof exports === 'object' ? factory(require("lodash")) : factory(root["_"]); - for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; - } + else if(typeof exports === 'object') + exports["restructured"] = factory(require("lodash")); + else + root["restructured"] = factory(root["_"]); })(this, function(__WEBPACK_EXTERNAL_MODULE_0__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache @@ -73,7 +73,7 @@ return /******/ (function(modules) { // webpackBootstrap /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 9); +/******/ return __webpack_require__(__webpack_require__.s = 6); /******/ }) /************************************************************************/ /******/ ([ @@ -232,7 +232,7 @@ var _unistUtilMap = __webpack_require__(8); var _unistUtilMap2 = _interopRequireDefault(_unistUtilMap); -var _Parser = __webpack_require__(5); +var _Parser = __webpack_require__(4); var _Parser2 = _interopRequireDefault(_Parser); @@ -264,12 +264,6 @@ exports.default = RST; /***/ }), /* 3 */ -/***/ (function(module, exports) { - -throw new Error("Module parse failed: /Users/bung/js_works/restructured/node_modules/webpack/bin/webpack.js Unexpected character '#' (1:0)\nYou may need an appropriate loader to handle this file type.\n| #!/usr/bin/env node\n| \n| /*"); - -/***/ }), -/* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -285,7 +279,7 @@ var _lodash = __webpack_require__(0); var _lodash2 = _interopRequireDefault(_lodash); -var _Type = __webpack_require__(6); +var _Type = __webpack_require__(5); var _Type2 = _interopRequireDefault(_Type); @@ -488,7 +482,7 @@ Elements.Enumerator = function () { exports.default = Elements; /***/ }), -/* 5 */ +/* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12180,7 +12174,7 @@ function peg$parse(input, options) { // nodes var Elements = {}; - _.forEach(__webpack_require__(4).default, function (ctor, name) { + _.forEach(__webpack_require__(3).default, function (ctor, name) { function wrapped(params) { ctor.apply(this, [Object.assign({}, { position: location() }, params)]); } @@ -12349,7 +12343,7 @@ module.exports = { }; /***/ }), -/* 6 */ +/* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12437,6 +12431,21 @@ try { exports.default = Type; +/***/ }), +/* 6 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var _RST = __webpack_require__(2); + +var _RST2 = _interopRequireDefault(_RST); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = _RST2.default; + /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { @@ -12554,15 +12563,6 @@ module.exports = function map(ast, mapFn) { }(ast, null, null)); }; -/***/ }), -/* 9 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(2); -(function webpackMissingModule() { throw new Error("Cannot find module \"[object Object]\""); }()); -module.exports = __webpack_require__(3); - - /***/ }) /******/ ]); }); \ No newline at end of file diff --git a/dist/restructured.min.js b/dist/restructured.min.js index be77da8..cbe8aa9 100644 --- a/dist/restructured.min.js +++ b/dist/restructured.min.js @@ -1 +1 @@ -!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("lodash"));else if("function"==typeof define&&define.amd)define(["lodash"],r);else{var n=r("object"==typeof exports?require("lodash"):e._);for(var t in n)("object"==typeof exports?exports:e)[t]=n[t]}}(this,function(e){return function(e){function __webpack_require__(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,__webpack_require__),t.l=!0,t.exports}var r={};return __webpack_require__.m=e,__webpack_require__.c=r,__webpack_require__.i=function(e){return e},__webpack_require__.d=function(exports,e,r){__webpack_require__.o(exports,e)||Object.defineProperty(exports,e,{configurable:!1,enumerable:!0,get:r})},__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,"a",r),r},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=9)}([function(r,exports){r.exports=e},function(e,exports,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});for(var n=(function(){function sliceIterator(e,r){var n=[],t=!0,a=!1,i=void 0;try{for(var p,o=e[Symbol.iterator]();!(t=(p=o.next()).done)&&(n.push(p.value),!r||n.length!==r);t=!0);}catch(e){a=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(a)throw i}}return n}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return sliceIterator(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()),t=r(0),a=function(e){return e&&e.__esModule?e:{default:e}}(t),i="\"'(<\\[{༺༼᚛⁅⁽₍〈❨❪❬❮❰❲❴⟅⟦⟨⟪⟬⟮⦃⦅⦇⦉⦋⦍⦏⦑⦓⦕⦗⧘⧚⧼⸢⸤⸦⸨〈《「『【〔〖〘〚〝〝﴾︗︵︷︹︻︽︿﹁﹃﹇﹙﹛﹝([{⦅「«‘“‹⸂⸄⸉⸌⸜⸠‚„»’”›⸃⸅⸊⸍⸝⸡‛‟",p="\"')>\\]}༻༽᚜⁆⁾₎〉❩❫❭❯❱❳❵⟆⟧⟩⟫⟭⟯⦄⦆⦈⦊⦌⦎⦐⦒⦔⦖⦘⧙⧛⧽⸣⸥⸧⸩〉》」』】〕〗〙〛〞〟﴿︘︶︸︺︼︾﹀﹂﹄﹈﹚﹜﹞)]}⦆」»’”›⸃⸅⸊⸍⸝⸡‛‟«‘“‹⸂⸄⸉⸌⸜⸠‚„",o={},s={},l=0;l=s;)a+=o,t-=s;return a}};exports.default=A},function(e,exports,r){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var n=r(0),t=_interopRequireDefault(n),a=r(8),i=_interopRequireDefault(a),p=r(5),o=_interopRequireDefault(p),s={parse:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o.default.parse(e);return(0,i.default)(n,function(e){var n=[];return r.position||n.push("position"),r.blanklines||n.push("blanklines"),r.indent||n.push("indent"),t.default.omit(e,n)})}};exports.default=s},function(e,exports){throw new Error("Module parse failed: /Users/bung/js_works/restructured/node_modules/webpack/bin/webpack.js Unexpected character '#' (1:0)\nYou may need an appropriate loader to handle this file type.\n| #!/usr/bin/env node\n| \n| /*")},function(e,exports,r){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}Object.defineProperty(exports,"__esModule",{value:!0});var n=function(){function defineProperties(e,r){for(var n=0;nga&&(ga=la,fa=[]),fa.push(e))}function peg$buildStructuredError(e,r,n){return new peg$SyntaxError(peg$SyntaxError.buildMessage(e,r),e,r,n)}function peg$parseAlphanumericAscii(){var r;return o.test(e.charAt(la))?(r=e.charAt(la),la++):(r=a,0===$a&&peg$fail(s)),r}function peg$parseEof(){var r,n;return r=la,$a++,e.length>la?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(l)),$a--,n===a?r=void 0:(la=r,r=a),r}function peg$parseNewline(){var r,n,t,i;return 10===e.charCodeAt(la)?(r=u,la++):(r=a,0===$a&&peg$fail(c)),r===a&&(r=la,n=la,13===e.charCodeAt(la)?(t=g,la++):(t=a,0===$a&&peg$fail(f)),t!==a?(10===e.charCodeAt(la)?(i=u,la++):(i=a,0===$a&&peg$fail(c)),i===a&&(i=null),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a&&(ua=r,n=h(n)),r=n),r}function peg$parseWhitespace(){var r;return 32===e.charCodeAt(la)?(r=d,la++):(r=a,0===$a&&peg$fail(v)),r===a&&(11===e.charCodeAt(la)?(r=m,la++):(r=a,0===$a&&peg$fail(A)),r===a&&(12===e.charCodeAt(la)?(r=C,la++):(r=a,0===$a&&peg$fail(k)),r===a&&(9===e.charCodeAt(la)?(r=w,la++):(r=a,0===$a&&peg$fail(I))))),r}function peg$parseEndline(){var e;return e=peg$parseNewline(),e===a&&(e=peg$parseEof()),e}function peg$parseNormalizedToWhitespace(){var e;return e=peg$parseWhitespace(),e===a&&(e=peg$parseNewline()),e}function peg$parseNonspacechar(){var r,n,t,i;return r=la,n=la,t=la,$a++,i=peg$parseNormalizedToWhitespace(),$a--,i===a?t=void 0:(la=t,t=a),t!==a?(e.length>la?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(l)),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a&&(ua=r,n=E(n)),r=n}function peg$parseBlankLines(){var e,r,n,t,i,p,o,s,l;for(e=la,r=[],n=la,t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();if(t!==a)if((i=peg$parseNewline())!==a){for(p=la,$a++,o=la,s=[],l=peg$parseWhitespace();l!==a;)s.push(l),l=peg$parseWhitespace();s!==a?(l=peg$parseEndline(),l!==a?(s=[s,l],o=s):(la=o,o=a)):(la=o,o=a),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(t=[t,i,p],n=t):(la=n,n=a)}else la=n,n=a;else la=n,n=a;for(;n!==a;){for(r.push(n),n=la,t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();if(t!==a)if((i=peg$parseNewline())!==a){for(p=la,$a++,o=la,s=[],l=peg$parseWhitespace();l!==a;)s.push(l),l=peg$parseWhitespace();s!==a?(l=peg$parseEndline(),l!==a?(s=[s,l],o=s):(la=o,o=a)):(la=o,o=a),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(t=[t,i,p],n=t):(la=n,n=a)}else la=n,n=a;else la=n,n=a}if(r!==a){for(n=la,t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();t!==a?(i=peg$parseEndline(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=e,r=L(r,n),e=r):(la=e,e=a)}else la=e,e=a;return e}function peg$parseRawLine(){var r,n,t,i,p;for(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);return n!==a?(t=peg$parseEndline(),t!==a?(ua=r,n=y(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseNotEmptyRawLine(){var r,n,t,i,p;if(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);else n=a;return n!==a?(t=peg$parseEndline(),t!==a?(ua=r,n=y(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseUnknownLine(){var e,r;return e=la,r=peg$parseNotEmptyRawLine(),r!==a&&(ua=e,r=x(r)),e=r}function peg$parseEndIndent(){var r,n,t,i,p,o,s;if(r=la,$a++,n=la,t=peg$parseBlankLines(),t===a&&(t=null),t!==a){for(i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=la,$a++,o=peg$parseNormalizedToWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(ua=la,s=b(i),s=s?void 0:a,s!==a?(t=[t,i,p,o,s],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a)):(la=n,n=a)}else la=n,n=a;return $a--,n!==a?(la=r,r=void 0):r=a,r}function peg$parseSameIndent(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(ua=la,n=B(r),n=n?void 0:a,n!==a?(ua=e,r=S(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseDeepIndent(){var e,r,n;if(e=la,r=[],(n=peg$parseWhitespace())!==a)for(;n!==a;)r.push(n),n=peg$parseWhitespace();else r=a;return r!==a?(ua=la,n=_(r),n=n?void 0:a,n!==a?(ua=e,r=W(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseShallowIndent(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(ua=la,n=N(r),n=n?void 0:a,n!==a?(ua=e,r=W(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseSameOrDeepIndent(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(ua=la,n=T(r),n=n?void 0:a,n!==a?(ua=e,r=W(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseFail$(){var r,n,t;return r=la,ua=la,n=M(),n=n?void 0:a,n!==a?(e.length>la?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(l)),t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parsePopIndent$(){var e;return ua=la,e=R(),e=e?void 0:a}function peg$parseFailbackIndent$(){var e,r,n;return e=la,r=peg$parsePopIndent$(),r!==a?(n=peg$parseFail$(),n!==a?(r=[r,n],e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parsePushCommonIndent$(){var e,r,n,t,i,p,o,s,l,u,c,g,f;if(e=la,r=la,$a++,n=peg$parseDeepIndent(),$a--,n!==a?(la=r,r=void 0):r=a,r!==a){if(n=la,$a++,t=la,i=[],(p=peg$parseWhitespace())!==a)for(;p!==a;)i.push(p),p=peg$parseWhitespace();else i=a;if(i!==a)if((p=peg$parseRawLine())!==a)if(ua=la,o=P(i),(o=o?void 0:a)!==a){for(s=[],l=la,u=[],c=peg$parseWhitespace();c!==a;)u.push(c),c=peg$parseWhitespace();if(u!==a?(c=peg$parseNewline(),c!==a?(u=[u,c],l=u):(la=l,l=a)):(la=l,l=a),l===a)if(l=la,u=la,$a++,c=peg$parseDeepIndent(),$a--,c!==a?(la=u,u=void 0):u=a,u!==a){if(c=[],(g=peg$parseWhitespace())!==a)for(;g!==a;)c.push(g),g=peg$parseWhitespace();else c=a;c!==a?(g=peg$parseRawLine(),g!==a?(ua=la,f=D(i,c),f=f?void 0:a,f!==a?(u=[u,c,g,f],l=u):(la=l,l=a)):(la=l,l=a)):(la=l,l=a)}else la=l,l=a;for(;l!==a;){for(s.push(l),l=la,u=[],c=peg$parseWhitespace();c!==a;)u.push(c),c=peg$parseWhitespace();if(u!==a?(c=peg$parseNewline(),c!==a?(u=[u,c],l=u):(la=l,l=a)):(la=l,l=a),l===a)if(l=la,u=la,$a++,c=peg$parseDeepIndent(),$a--,c!==a?(la=u,u=void 0):u=a,u!==a){if(c=[],(g=peg$parseWhitespace())!==a)for(;g!==a;)c.push(g),g=peg$parseWhitespace();else c=a;c!==a?(g=peg$parseRawLine(),g!==a?(ua=la,f=D(i,c),f=f?void 0:a,f!==a?(u=[u,c,g,f],l=u):(la=l,l=a)):(la=l,l=a)):(la=l,l=a)}else la=l,l=a}s!==a?(ua=la,l=q(i),l=l?void 0:a,l!==a?(i=[i,p,o,s,l],t=i):(la=t,t=a)):(la=t,t=a)}else la=t,t=a;else la=t,t=a;else la=t,t=a;$a--,t!==a?(la=n,n=void 0):n=a,n!==a?(ua=e,r=F(),e=r):(la=e,e=a)}else la=e,e=a;return e}function peg$parsePushFirstIndent$(){var e,r,n,t,i,p;return e=la,r=la,$a++,n=la,t=peg$parseDeepIndent(),t!==a?(i=peg$parseNonspacechar(),i!==a?(ua=la,p=j(t,i),p=p?void 0:a,p!==a?(t=[t,i,p],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),$a--,n!==a?(la=r,r=void 0):r=a,r!==a&&(ua=e,r=F()),e=r}function peg$parseSkipIndentCheck$(){var e;return ua=la,e=O(),e=e?void 0:a}function peg$parseDocument(){var e,r,n;for(e=la,r=[],n=peg$parseSection(),n===a&&(n=peg$parseTransition())===a&&(n=peg$parseBodyElement())===a&&(n=peg$parseUnknown());n!==a;)r.push(n),(n=peg$parseSection())===a&&(n=peg$parseTransition())===a&&(n=peg$parseBodyElement())===a&&(n=peg$parseUnknown());return r!==a?(n=peg$parseBlankLines(),n!==a?(ua=e,r=z(r,n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseSection(){var e,r,n,t,i,p,o;if(e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a)if(peg$parseIsSubSection()!==a)if(n=peg$parseSectionWithOverline(),n===a&&(n=peg$parseSectionWithoutOverline()),n!==a){for(t=[],i=la,p=peg$parseIsSubSection(),p!==a?(o=peg$parseSection(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=la,$a++,o=peg$parseIsSection(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=peg$parseTransition(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=la,$a++,o=peg$parseIsSection(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=peg$parseBodyElement(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a)));i!==a;)t.push(i),i=la,p=peg$parseIsSubSection(),p!==a?(o=peg$parseSection(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=la,$a++,o=peg$parseIsSection(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=peg$parseTransition(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=la,$a++,o=peg$parseIsSection(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=peg$parseBodyElement(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a)));t!==a?(ua=e,r=U(r,n,t),e=r):(la=e,e=a)}else la=e,e=a;else la=e,e=a;else la=e,e=a;return e}function peg$parseIsSection(){var e,r,n,t,i,p,o;return e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(t=peg$parseSectionLine(),t!==a?(i=la,$a++,p=peg$parseBlankLines(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseRawLine(),p!==a?(o=peg$parseSectionLine(),o!==a?(n=[n,t,i,p,o],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e===a&&(e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(t=peg$parseRawLine(),t!==a?(i=peg$parseSectionLine(),i!==a?(n=[n,t,i],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a),e}function peg$parseIsSubSection(){var e,r,n,t,i,p,o,s;return e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(t=peg$parseSectionLine(),t!==a?(i=la,$a++,p=peg$parseBlankLines(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseRawLine(),p!==a?(o=peg$parseSectionLine(),o!==a?(ua=la,s=Q(t,o),s=s?void 0:a,s!==a?(n=[n,t,i,p,o,s],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e===a&&(e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(t=peg$parseRawLine(),t!==a?(i=peg$parseSectionLine(),i!==a?(ua=la,p=H(t,i),p=p?void 0:a,p!==a?(n=[n,t,i,p],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a),e}function peg$parseSectionWithOverline(){var e,r,n,t,i,p,o;if(e=la,r=la,$a++,n=la,t=peg$parseSectionLine(),t!==a?(i=la,$a++,p=peg$parseBlankLines(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseRawLine(),p!==a?(o=peg$parseSectionLine(),o!==a?(t=[t,i,p,o],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),$a--,n!==a?(la=r,r=void 0):r=a,r!==a)if((n=peg$parseSectionLine())!==a){for(t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();t!==a?(i=peg$parseOnelineParagraph(),i!==a?(p=peg$parseNewline(),p!==a?(o=peg$parseSectionLine(),o!==a?(ua=e,r=X(n,i,o),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;else la=e,e=a;return e}function peg$parseSectionWithoutOverline(){var e,r,n,t,i,p;return e=la,r=la,$a++,n=la,t=la,$a++,i=peg$parseBlankLines(),$a--,i===a?t=void 0:(la=t,t=a),t!==a?(i=peg$parseRawLine(),i!==a?(p=peg$parseSectionLine(),p!==a?(t=[t,i,p],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),$a--,n!==a?(la=r,r=void 0):r=a,r!==a?(n=peg$parseOnelineParagraph(),n!==a?(t=peg$parseNewline(),t!==a?(i=peg$parseSectionLine(),i!==a?(ua=e,r=V(n,i),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseSectionLine(){var r,n,t,i,p;if(r=la,n=[],33===e.charCodeAt(la)?(t=Z,la++):(t=a,0===$a&&peg$fail(Y)),t===a&&(34===e.charCodeAt(la)?(t=G,la++):(t=a,0===$a&&peg$fail(J)),t===a&&(35===e.charCodeAt(la)?(t=K,la++):(t=a,0===$a&&peg$fail(ee)),t===a&&(36===e.charCodeAt(la)?(t=re,la++):(t=a,0===$a&&peg$fail(ne)),t===a&&(37===e.charCodeAt(la)?(t=te,la++):(t=a,0===$a&&peg$fail(ae)),t===a&&(38===e.charCodeAt(la)?(t=ie,la++):(t=a,0===$a&&peg$fail(pe)),t===a&&(39===e.charCodeAt(la)?(t=oe,la++):(t=a,0===$a&&peg$fail(se)),t===a&&(40===e.charCodeAt(la)?(t=le,la++):(t=a,0===$a&&peg$fail(ue)),t===a&&(41===e.charCodeAt(la)?(t=ce,la++):(t=a,0===$a&&peg$fail(ge)),t===a&&(42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t===a&&(43===e.charCodeAt(la)?(t=he,la++):(t=a,0===$a&&peg$fail(de)),t===a&&(44===e.charCodeAt(la)?(t=ve,la++):(t=a,0===$a&&peg$fail(me)),t===a&&(45===e.charCodeAt(la)?(t=Ae,la++):(t=a,0===$a&&peg$fail(Ce)),t===a&&(46===e.charCodeAt(la)?(t=ke,la++):(t=a,0===$a&&peg$fail(we)),t===a&&(47===e.charCodeAt(la)?(t=Ie,la++):(t=a,0===$a&&peg$fail(Ee)),t===a&&(58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t===a&&(59===e.charCodeAt(la)?(t=xe,la++):(t=a,0===$a&&peg$fail(be)),t===a&&(60===e.charCodeAt(la)?(t=Be,la++):(t=a,0===$a&&peg$fail(Se)),t===a&&(61===e.charCodeAt(la)?(t=_e,la++):(t=a,0===$a&&peg$fail(We)),t===a&&(62===e.charCodeAt(la)?(t=Ne,la++):(t=a,0===$a&&peg$fail(Te)),t===a&&(63===e.charCodeAt(la)?(t=Me,la++):(t=a,0===$a&&peg$fail(Re)),t===a&&(64===e.charCodeAt(la)?(t=Pe,la++):(t=a,0===$a&&peg$fail(De)),t===a&&(91===e.charCodeAt(la)?(t=qe,la++):(t=a,0===$a&&peg$fail(Fe)),t===a&&(92===e.charCodeAt(la)?(t=je,la++):(t=a,0===$a&&peg$fail(Oe)),t===a&&(93===e.charCodeAt(la)?(t=ze,la++):(t=a,0===$a&&peg$fail(Ue)),t===a&&(94===e.charCodeAt(la)?(t=Qe,la++):(t=a,0===$a&&peg$fail(He)),t===a&&(95===e.charCodeAt(la)?(t=Xe,la++):(t=a,0===$a&&peg$fail(Ve)),t===a&&(96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ye)),t===a&&(123===e.charCodeAt(la)?(t=Ge,la++):(t=a,0===$a&&peg$fail(Je)),t===a&&(124===e.charCodeAt(la)?(t=Ke,la++):(t=a,0===$a&&peg$fail(er)),t===a&&(125===e.charCodeAt(la)?(t=rr,la++):(t=a,0===$a&&peg$fail(nr)),t===a&&(126===e.charCodeAt(la)?(t=tr,la++):(t=a,0===$a&&peg$fail(ar))))))))))))))))))))))))))))))))),t!==a)for(;t!==a;)n.push(t),33===e.charCodeAt(la)?(t=Z,la++):(t=a,0===$a&&peg$fail(Y)),t===a&&(34===e.charCodeAt(la)?(t=G,la++):(t=a,0===$a&&peg$fail(J)),t===a&&(35===e.charCodeAt(la)?(t=K,la++):(t=a,0===$a&&peg$fail(ee)),t===a&&(36===e.charCodeAt(la)?(t=re,la++):(t=a,0===$a&&peg$fail(ne)),t===a&&(37===e.charCodeAt(la)?(t=te,la++):(t=a,0===$a&&peg$fail(ae)),t===a&&(38===e.charCodeAt(la)?(t=ie,la++):(t=a,0===$a&&peg$fail(pe)),t===a&&(39===e.charCodeAt(la)?(t=oe,la++):(t=a,0===$a&&peg$fail(se)),t===a&&(40===e.charCodeAt(la)?(t=le,la++):(t=a,0===$a&&peg$fail(ue)),t===a&&(41===e.charCodeAt(la)?(t=ce,la++):(t=a,0===$a&&peg$fail(ge)),t===a&&(42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t===a&&(43===e.charCodeAt(la)?(t=he,la++):(t=a,0===$a&&peg$fail(de)),t===a&&(44===e.charCodeAt(la)?(t=ve,la++):(t=a,0===$a&&peg$fail(me)),t===a&&(45===e.charCodeAt(la)?(t=Ae,la++):(t=a,0===$a&&peg$fail(Ce)),t===a&&(46===e.charCodeAt(la)?(t=ke,la++):(t=a,0===$a&&peg$fail(we)),t===a&&(47===e.charCodeAt(la)?(t=Ie,la++):(t=a,0===$a&&peg$fail(Ee)),t===a&&(58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t===a&&(59===e.charCodeAt(la)?(t=xe,la++):(t=a,0===$a&&peg$fail(be)),t===a&&(60===e.charCodeAt(la)?(t=Be,la++):(t=a,0===$a&&peg$fail(Se)),t===a&&(61===e.charCodeAt(la)?(t=_e,la++):(t=a,0===$a&&peg$fail(We)),t===a&&(62===e.charCodeAt(la)?(t=Ne,la++):(t=a,0===$a&&peg$fail(Te)),t===a&&(63===e.charCodeAt(la)?(t=Me,la++):(t=a,0===$a&&peg$fail(Re)),t===a&&(64===e.charCodeAt(la)?(t=Pe,la++):(t=a,0===$a&&peg$fail(De)),t===a&&(91===e.charCodeAt(la)?(t=qe,la++):(t=a,0===$a&&peg$fail(Fe)),t===a&&(92===e.charCodeAt(la)?(t=je,la++):(t=a,0===$a&&peg$fail(Oe)),t===a&&(93===e.charCodeAt(la)?(t=ze,la++):(t=a,0===$a&&peg$fail(Ue)),t===a&&(94===e.charCodeAt(la)?(t=Qe,la++):(t=a,0===$a&&peg$fail(He)),t===a&&(95===e.charCodeAt(la)?(t=Xe,la++):(t=a,0===$a&&peg$fail(Ve)),t===a&&(96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ye)),t===a&&(123===e.charCodeAt(la)?(t=Ge,la++):(t=a,0===$a&&peg$fail(Je)),t===a&&(124===e.charCodeAt(la)?(t=Ke,la++):(t=a,0===$a&&peg$fail(er)),t===a&&(125===e.charCodeAt(la)?(t=rr,la++):(t=a,0===$a&&peg$fail(nr)),t===a&&(126===e.charCodeAt(la)?(t=tr,la++):(t=a,0===$a&&peg$fail(ar)))))))))))))))))))))))))))))))));else n=a;if(n!==a)if(ua=la,t=ir(n),(t=t?void 0:a)!==a){for(i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=peg$parseNewline(),p!==a?(ua=r,n=pr(n),r=n):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;return r}function peg$parseTransition(){var e,r,n,t,i,p,o;if(e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a)if((n=peg$parseTransitionMarker())!==a){for(t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();t!==a?(i=peg$parseNewline(),i!==a?(p=la,$a++,o=peg$parseBlankLines(),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(ua=e,r=or(r,n),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;else la=e,e=a;return e}function peg$parseTransitionMarker(){var r,n,t;if(r=la,n=[],33===e.charCodeAt(la)?(t=Z,la++):(t=a,0===$a&&peg$fail(Y)),t===a&&(34===e.charCodeAt(la)?(t=G,la++):(t=a,0===$a&&peg$fail(J)),t===a&&(35===e.charCodeAt(la)?(t=K,la++):(t=a,0===$a&&peg$fail(ee)),t===a&&(36===e.charCodeAt(la)?(t=re,la++):(t=a,0===$a&&peg$fail(ne)),t===a&&(37===e.charCodeAt(la)?(t=te,la++):(t=a,0===$a&&peg$fail(ae)),t===a&&(38===e.charCodeAt(la)?(t=ie,la++):(t=a,0===$a&&peg$fail(pe)),t===a&&(39===e.charCodeAt(la)?(t=oe,la++):(t=a,0===$a&&peg$fail(se)),t===a&&(40===e.charCodeAt(la)?(t=le,la++):(t=a,0===$a&&peg$fail(ue)),t===a&&(41===e.charCodeAt(la)?(t=ce,la++):(t=a,0===$a&&peg$fail(ge)),t===a&&(42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t===a&&(43===e.charCodeAt(la)?(t=he,la++):(t=a,0===$a&&peg$fail(de)),t===a&&(44===e.charCodeAt(la)?(t=ve,la++):(t=a,0===$a&&peg$fail(me)),t===a&&(45===e.charCodeAt(la)?(t=Ae,la++):(t=a,0===$a&&peg$fail(Ce)),t===a&&(46===e.charCodeAt(la)?(t=ke,la++):(t=a,0===$a&&peg$fail(we)),t===a&&(47===e.charCodeAt(la)?(t=Ie,la++):(t=a,0===$a&&peg$fail(Ee)),t===a&&(58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t===a&&(59===e.charCodeAt(la)?(t=xe,la++):(t=a,0===$a&&peg$fail(be)),t===a&&(60===e.charCodeAt(la)?(t=Be,la++):(t=a,0===$a&&peg$fail(Se)),t===a&&(61===e.charCodeAt(la)?(t=_e,la++):(t=a,0===$a&&peg$fail(We)),t===a&&(62===e.charCodeAt(la)?(t=Ne,la++):(t=a,0===$a&&peg$fail(Te)),t===a&&(63===e.charCodeAt(la)?(t=Me,la++):(t=a,0===$a&&peg$fail(Re)),t===a&&(64===e.charCodeAt(la)?(t=Pe,la++):(t=a,0===$a&&peg$fail(De)),t===a&&(91===e.charCodeAt(la)?(t=qe,la++):(t=a,0===$a&&peg$fail(Fe)),t===a&&(92===e.charCodeAt(la)?(t=je,la++):(t=a,0===$a&&peg$fail(Oe)),t===a&&(93===e.charCodeAt(la)?(t=ze,la++):(t=a,0===$a&&peg$fail(Ue)),t===a&&(94===e.charCodeAt(la)?(t=Qe,la++):(t=a,0===$a&&peg$fail(He)),t===a&&(95===e.charCodeAt(la)?(t=Xe,la++):(t=a,0===$a&&peg$fail(Ve)),t===a&&(96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ye)),t===a&&(123===e.charCodeAt(la)?(t=Ge,la++):(t=a,0===$a&&peg$fail(Je)),t===a&&(124===e.charCodeAt(la)?(t=Ke,la++):(t=a,0===$a&&peg$fail(er)),t===a&&(125===e.charCodeAt(la)?(t=rr,la++):(t=a,0===$a&&peg$fail(nr)),t===a&&(126===e.charCodeAt(la)?(t=tr,la++):(t=a,0===$a&&peg$fail(ar))))))))))))))))))))))))))))))))),t!==a)for(;t!==a;)n.push(t),33===e.charCodeAt(la)?(t=Z,la++):(t=a,0===$a&&peg$fail(Y)),t===a&&(34===e.charCodeAt(la)?(t=G,la++):(t=a,0===$a&&peg$fail(J)),t===a&&(35===e.charCodeAt(la)?(t=K,la++):(t=a,0===$a&&peg$fail(ee)),t===a&&(36===e.charCodeAt(la)?(t=re,la++):(t=a,0===$a&&peg$fail(ne)),t===a&&(37===e.charCodeAt(la)?(t=te,la++):(t=a,0===$a&&peg$fail(ae)),t===a&&(38===e.charCodeAt(la)?(t=ie,la++):(t=a,0===$a&&peg$fail(pe)),t===a&&(39===e.charCodeAt(la)?(t=oe,la++):(t=a,0===$a&&peg$fail(se)),t===a&&(40===e.charCodeAt(la)?(t=le,la++):(t=a,0===$a&&peg$fail(ue)),t===a&&(41===e.charCodeAt(la)?(t=ce,la++):(t=a,0===$a&&peg$fail(ge)),t===a&&(42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t===a&&(43===e.charCodeAt(la)?(t=he,la++):(t=a,0===$a&&peg$fail(de)),t===a&&(44===e.charCodeAt(la)?(t=ve,la++):(t=a,0===$a&&peg$fail(me)),t===a&&(45===e.charCodeAt(la)?(t=Ae,la++):(t=a,0===$a&&peg$fail(Ce)),t===a&&(46===e.charCodeAt(la)?(t=ke,la++):(t=a,0===$a&&peg$fail(we)),t===a&&(47===e.charCodeAt(la)?(t=Ie,la++):(t=a,0===$a&&peg$fail(Ee)),t===a&&(58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t===a&&(59===e.charCodeAt(la)?(t=xe,la++):(t=a,0===$a&&peg$fail(be)),t===a&&(60===e.charCodeAt(la)?(t=Be,la++):(t=a,0===$a&&peg$fail(Se)),t===a&&(61===e.charCodeAt(la)?(t=_e,la++):(t=a,0===$a&&peg$fail(We)),t===a&&(62===e.charCodeAt(la)?(t=Ne,la++):(t=a,0===$a&&peg$fail(Te)),t===a&&(63===e.charCodeAt(la)?(t=Me,la++):(t=a,0===$a&&peg$fail(Re)),t===a&&(64===e.charCodeAt(la)?(t=Pe,la++):(t=a,0===$a&&peg$fail(De)),t===a&&(91===e.charCodeAt(la)?(t=qe,la++):(t=a,0===$a&&peg$fail(Fe)),t===a&&(92===e.charCodeAt(la)?(t=je,la++):(t=a,0===$a&&peg$fail(Oe)),t===a&&(93===e.charCodeAt(la)?(t=ze,la++):(t=a,0===$a&&peg$fail(Ue)),t===a&&(94===e.charCodeAt(la)?(t=Qe,la++):(t=a,0===$a&&peg$fail(He)),t===a&&(95===e.charCodeAt(la)?(t=Xe,la++):(t=a,0===$a&&peg$fail(Ve)),t===a&&(96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ye)),t===a&&(123===e.charCodeAt(la)?(t=Ge,la++):(t=a,0===$a&&peg$fail(Je)),t===a&&(124===e.charCodeAt(la)?(t=Ke,la++):(t=a,0===$a&&peg$fail(er)),t===a&&(125===e.charCodeAt(la)?(t=rr,la++):(t=a,0===$a&&peg$fail(nr)),t===a&&(126===e.charCodeAt(la)?(t=tr,la++):(t=a,0===$a&&peg$fail(ar)))))))))))))))))))))))))))))))));else n=a;return n!==a?(ua=la,t=sr(n),t=t?void 0:a,t!==a?(ua=r,n=lr(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseBodyElementExceptBlockQuote(){var e,r,n;return e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a?(n=peg$parseDirective(),n===a&&(n=peg$parseComment())===a&&(n=peg$parseLiteralBlock())===a&&(n=peg$parseBulletList())===a&&(n=peg$parseEnumeratedList())===a&&(n=peg$parseDefinitionList())===a&&(n=peg$parseLineBlock())===a&&(n=peg$parseParagraph()),n!==a?(ua=e,r=ur(r,n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseBodyElement(){var e,r;return e=la,r=peg$parseBodyElementExceptBlockQuote(),r===a&&(r=peg$parseBlockQuote()),r!==a&&(ua=e,r=cr(r)),e=r}function peg$parseListItem(){var e,r;return e=la,r=peg$parseNonEmptyListItem(),r===a&&(r=peg$parseEmptyListItem()),r!==a&&(ua=e,r=gr(r)),e=r}function peg$parsePushListItemIndent$(){var e,r,n,t,i,p,o;if(e=la,r=la,$a++,n=la,t=[],(i=peg$parseWhitespace())!==a)for(;i!==a;)t.push(i),i=peg$parseWhitespace();else t=a;return t!==a?(i=la,$a++,p=peg$parseNonspacechar(),$a--,p!==a?(la=i,i=void 0):i=a,i!==a?(p=peg$parseSkipIndentCheck$(),p!==a?(ua=la,o=fr(t),o=o?void 0:a,o!==a?(t=[t,i,p,o],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),$a--,n!==a?(la=r,r=void 0):r=a,r===a&&(r=la,$a++,n=la,t=peg$parseBlankLines(),t!==a?(i=peg$parsePushFirstIndent$(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),$a--,n!==a?(la=r,r=void 0):r=a),r!==a&&(ua=e,r=$r()),e=r}function peg$parseNonEmptyListItem(){var e,r,n,t;if(e=la,(r=peg$parsePushListItemIndent$())!==a){if(n=[],(t=peg$parseBodyElement())!==a)for(;t!==a;)n.push(t),t=peg$parseBodyElement();else n=a;n===a&&(n=peg$parseFailbackIndent$()),n!==a?(t=peg$parsePopIndent$(),t!==a?(ua=e,r=hr(r,n),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseEmptyListItem(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(n=peg$parseEndline(),n!==a?(ua=e,r=dr(),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseBulletList(){var e,r,n,t,i;if(e=la,(r=peg$parsePushBullet$())!==a){if(n=[],(t=peg$parseBulletListItem())!==a)for(;t!==a;)n.push(t),t=peg$parseBulletListItem();else n=a;n===a&&(n=la,t=peg$parsePopBullet$(),t!==a?(i=peg$parseFail$(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a)),n!==a?(t=peg$parsePopBullet$(),t!==a?(ua=e,r=vr(n),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseBullet(){var r;return mr.test(e.charAt(la))?(r=e.charAt(la),la++):(r=a,0===$a&&peg$fail(Ar)),r}function peg$parseSameBullet(){var e,r,n;return e=la,r=peg$parseBullet(),r!==a?(ua=la,n=Cr(r),n=n?void 0:a,n!==a?(ua=e,r=kr(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parsePushBullet$(){var e,r,n,t,i,p;return e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(t=peg$parseSameIndent(),t!==a?(i=peg$parseBullet(),i!==a?(ua=la,p=wr(i),p=p?void 0:a,p!==a?(n=[n,t,i,p],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e}function peg$parsePopBullet$(){var e;return ua=la,e=Ir(),e=e?void 0:a}function peg$parseBulletListItem(){var e,r,n,t,i;return e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a?(n=peg$parseSameIndent(),n!==a?(t=peg$parseSameBullet(),t!==a?(i=peg$parseListItem(),i!==a?(ua=e,r=Er(r,t,i),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseEnumeratedList(){var e,r,n,t,i,p;if(e=la,(r=peg$parseBeginEnumeratedList$())!==a){if(n=[],(t=peg$parseEnumeratedListItem())!==a)for(;t!==a;)n.push(t),t=peg$parseEnumeratedListItem();else n=a;n===a&&(n=la,t=peg$parseEndEnumeratedList$(),t!==a?(i=peg$parseFail$(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a)),n!==a?(t=peg$parseEndEnumeratedList$(),t!==a?(i=la,$a++,p=peg$parseBlankLines(),$a--,p!==a?(la=i,i=void 0):i=a,i!==a?(ua=e,r=Lr(n),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseBeginEnumeratedList$(){var e,r,n,t;return e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(ua=la,t=yr(),t=t?void 0:a,t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e}function peg$parseEndEnumeratedList$(){var e;return ua=la,e=xr(),e=e?void 0:a}function peg$parseEnumeratedListItem(){var e,r,n,t,i;return e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a?(n=peg$parseSameIndent(),n!==a?(t=peg$parseNextEnumerator(),t!==a?(i=peg$parseListItem(),i!==a?(ua=e,r=br(r,t,i),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseEnumerator(){var r,n,t,i;return r=la,n=peg$parseEnumerationSequence(),n!==a?(46===e.charCodeAt(la)?(t=ke,la++):(t=a,0===$a&&peg$fail(we)),t!==a?(ua=r,n=Br(n),r=n):(la=r,r=a)):(la=r,r=a),r===a&&(r=la,n=peg$parseEnumerationSequence(),n!==a?(41===e.charCodeAt(la)?(t=ce,la++):(t=a,0===$a&&peg$fail(ge)),t!==a?(ua=r,n=Sr(n),r=n):(la=r,r=a)):(la=r,r=a),r===a&&(r=la,40===e.charCodeAt(la)?(n=le,la++):(n=a,0===$a&&peg$fail(ue)),n!==a?(t=peg$parseEnumerationSequence(),t!==a?(41===e.charCodeAt(la)?(i=ce,la++):(i=a,0===$a&&peg$fail(ge)),i!==a?(ua=r,n=_r(t),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a))),r}function peg$parseNextEnumerator(){var e,r,n;return e=la,r=peg$parseEnumerator(),r!==a?(ua=la,n=Wr(r),n=n?void 0:a,n!==a?(ua=e,r=Nr(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseEnumerationSequence(){var e,r,n;return e=peg$parseAutoEnumerationSequence(),e===a&&(e=la,r=peg$parseAcceptNumeral$(),r!==a?(n=peg$parseArabicNumeralsEnumerationSequence(),n!==a?(ua=e,r=Nr(n),e=r):(la=e,e=a)):(la=e,e=a),e===a&&(e=la,r=peg$parseAcceptUpperCaseRoman$(),r!==a?(n=peg$parseUpperCaseRomanEnumerationSequence(),n!==a?(ua=e,r=Nr(n),e=r):(la=e,e=a)):(la=e,e=a),e===a&&(e=la,r=peg$parseAcceptLowerCaseRoman$(),r!==a?(n=peg$parseLowerCaseRomanEnumerationSequence(),n!==a?(ua=e,r=Nr(n),e=r):(la=e,e=a)):(la=e,e=a),e===a&&(e=la,r=peg$parseAcceptUpperCaseAlphabet$(),r!==a?(n=peg$parseUpperCaseAlphabetEnumerationSequence(),n!==a?(ua=e,r=Nr(n),e=r):(la=e,e=a)):(la=e,e=a),e===a&&(e=la,r=peg$parseAcceptLowerCaseAlphabet$(),r!==a?(n=peg$parseLowerCaseAlphabetEnumerationSequence(),n!==a?(ua=e,r=Nr(n),e=r):(la=e,e=a)):(la=e,e=a)))))),e}function peg$parseAcceptNumeral$(){var e;return ua=la,e=Tr(),e=e?void 0:a}function peg$parseAcceptUpperCaseRoman$(){var e;return ua=la,e=Mr(),e=e?void 0:a}function peg$parseAcceptLowerCaseRoman$(){var e;return ua=la,e=Rr(),e=e?void 0:a}function peg$parseAcceptUpperCaseAlphabet$(){var e;return ua=la,e=Pr(),e=e?void 0:a}function peg$parseAcceptLowerCaseAlphabet$(){var e;return ua=la,e=Dr(),e=e?void 0:a}function peg$parseAutoEnumerationSequence(){var r,n;return r=la,35===e.charCodeAt(la)?(n=K,la++):(n=a,0===$a&&peg$fail(ee)),n!==a&&(ua=r,n=qr()),r=n}function peg$parseArabicNumeralsEnumerationSequence(){var r,n,t,i;if(r=la,Fr.test(e.charAt(la))?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(jr)),n!==a){for(t=[],Or.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(zr));i!==a;)t.push(i),Or.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(zr));t!==a?(ua=r,n=Ur(n,t),r=n):(la=r,r=a)}else la=r,r=a;return r===a&&(r=la,Qr.test(e.charAt(la))?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(Hr)),n!==a&&(ua=r,n=Xr(n)),r=n),r}function peg$parseUpperCaseAlphabetEnumerationSequence(){var r,n;return r=la,Vr.test(e.charAt(la))?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(Zr)),n!==a&&(ua=r,n=Yr(n)),r=n}function peg$parseLowerCaseAlphabetEnumerationSequence(){var r,n;return r=la,Gr.test(e.charAt(la))?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(Jr)),n!==a&&(ua=r,n=Kr(n)),r=n}function peg$parseUpperCaseRomanEnumerationSequence(){var r,n,t;if(r=la,n=[],en.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(rn)),t!==a)for(;t!==a;)n.push(t),en.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(rn));else n=a;return n!==a?(ua=la,t=nn(n),t=t?void 0:a,t!==a?(ua=r,n=tn(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseLowerCaseRomanEnumerationSequence(){var r,n,t;if(r=la,n=[],an.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(pn)),t!==a)for(;t!==a;)n.push(t),an.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(pn));else n=a;return n!==a?(ua=la,t=on(n),t=t?void 0:a,t!==a?(ua=r,n=sn(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseDefinitionList(){var e,r,n,t;if(e=la,r=[],(n=peg$parseDefinitionListItem())!==a)for(;n!==a;)r.push(n),n=peg$parseDefinitionListItem();else r=a;return r!==a?(n=la,$a++,t=peg$parseBlankLines(),$a--,t!==a?(la=n,n=void 0):n=a,n!==a?(ua=e,r=ln(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseDefinitionListItem(){var r,n,t,i,p,o,s,l,u;if(r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a)if(peg$parseSameIndent()!==a)if((t=peg$parseDefinitionTerm())!==a){if(i=[],p=la,o=[],(s=peg$parseWhitespace())!==a)for(;s!==a;)o.push(s),s=peg$parseWhitespace();else o=a;if(o!==a)if(58===e.charCodeAt(la)?(s=Le,la++):(s=a,0===$a&&peg$fail(ye)),s!==a){if(l=[],(u=peg$parseWhitespace())!==a)for(;u!==a;)l.push(u),u=peg$parseWhitespace();else l=a;l!==a?(u=peg$parseDefinitionClassifier(),u!==a?(o=[o,s,l,u],p=o):(la=p,p=a)):(la=p,p=a)}else la=p,p=a;else la=p,p=a;for(;p!==a;){if(i.push(p),p=la,o=[],(s=peg$parseWhitespace())!==a)for(;s!==a;)o.push(s),s=peg$parseWhitespace();else o=a;if(o!==a)if(58===e.charCodeAt(la)?(s=Le,la++):(s=a,0===$a&&peg$fail(ye)),s!==a){if(l=[],(u=peg$parseWhitespace())!==a)for(;u!==a;)l.push(u),u=peg$parseWhitespace();else l=a;l!==a?(u=peg$parseDefinitionClassifier(),u!==a?(o=[o,s,l,u],p=o):(la=p,p=a)):(la=p,p=a)}else la=p,p=a;else la=p,p=a}if(i!==a){for(p=[],o=peg$parseWhitespace();o!==a;)p.push(o),o=peg$parseWhitespace();p!==a?(o=peg$parseNewline(),o!==a?(s=peg$parsePushFirstIndent$(),s!==a?(l=peg$parseDefinitionListBody(),l===a&&(l=peg$parseFailbackIndent$()),l!==a?(u=peg$parsePopIndent$(),u!==a?(ua=r,n=un(n,t,i,s,l),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a}else la=r,r=a;else la=r,r=a;else la=r,r=a;return r}function peg$parseDefinitionTerm(){var e,r,n;if(e=la,r=[],n=peg$parseInlineMarkupWithoutNewline(),n===a&&(n=peg$parseDefinitionTermText()),n!==a)for(;n!==a;)r.push(n),(n=peg$parseInlineMarkupWithoutNewline())===a&&(n=peg$parseDefinitionTermText());else r=a;return r!==a&&(ua=e,r=cn(r)),e=r}function peg$parseDefinitionListBody(){var e,r,n;if(e=la,r=[],(n=peg$parseBodyElement())!==a)for(;n!==a;)r.push(n),n=peg$parseBodyElement();else r=a;return r!==a&&(ua=e,r=gn(r)),e=r}function peg$parseDefinitionClassifierBeggining(){var r,n,t,i,p;if(r=la,n=[],(t=peg$parseWhitespace())!==a)for(;t!==a;)n.push(t),t=peg$parseWhitespace();else n=a;if(n!==a)if(58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t!==a){if(i=[],(p=peg$parseWhitespace())!==a)for(;p!==a;)i.push(p),p=peg$parseWhitespace();else i=a;i!==a?(n=[n,t,i],r=n):(la=r,r=a)}else la=r,r=a;else la=r,r=a;return r}function peg$parseDefinitionTermText(){var r,n,t,i,p,o,s;if(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseDefinitionClassifierBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=la,$a++,s=peg$parseInlineMarkupBeggining(),$a--,s===a?o=void 0:(la=o,o=a),o!==a?(e.length>la?(s=e.charAt(la),la++):(s=a,0===$a&&peg$fail(l)),s!==a?(i=[i,p,o,s],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseDefinitionClassifierBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=la,$a++,s=peg$parseInlineMarkupBeggining(),$a--,s===a?o=void 0:(la=o,o=a),o!==a?(e.length>la?(s=e.charAt(la),la++):(s=a,0===$a&&peg$fail(l)),s!==a?(i=[i,p,o,s],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);else n=a;return n!==a&&(ua=r,n=fn(n)),r=n}function peg$parseDefinitionClassifier(){var e,r,n;if(e=la,r=[],n=peg$parseInlineMarkupWithoutNewline(),n===a&&(n=peg$parseDefinitionTermText()),n!==a)for(;n!==a;)r.push(n),(n=peg$parseInlineMarkupWithoutNewline())===a&&(n=peg$parseDefinitionTermText());else r=a;return r!==a&&(ua=e,r=$n(r)),e=r}function peg$parseBlockQuote(){var e;return e=peg$parseNestedBlockQuote(),e===a&&(e=peg$parseSimpleBlockQuote()),e}function peg$parseNestedBlockQuote(){var e,r,n,t,i,p,o,s;return e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a?(n=peg$parsePushFirstIndent$(),n!==a?(t=peg$parseInnerBlockQuote(),t!==a?(i=la,$a++,p=la,o=peg$parseBlankLines(),o!==a?(s=peg$parseShallowIndent(),s!==a?(o=[o,s],p=o):(la=p,p=a)):(la=p,p=a),p===a&&(p=peg$parseFailbackIndent$()),$a--,p!==a?(la=i,i=void 0):i=a,i!==a?(p=peg$parsePopIndent$(),p!==a?(o=peg$parseBlockQuote(),o!==a?(ua=e,r=hn(r,n,t,o),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseInnerBlockQuote(){var e,r,n;return e=la,r=peg$parseBlockQuoteBody(),r===a&&(r=peg$parseFailbackIndent$()),r!==a?(n=peg$parseAttribution(),n===a&&(n=null),n!==a?(ua=e,r=dn(r,n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseSimpleBlockQuote(){var e,r,n,t,i,p;return e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a?(n=peg$parsePushFirstIndent$(),n!==a?(t=peg$parseBlockQuoteBody(),t===a&&(t=peg$parseFailbackIndent$()),t!==a?(i=peg$parseAttribution(),i===a&&(i=null),i!==a?(p=peg$parsePopIndent$(),p!==a?(ua=e,r=vn(r,n,t,i),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseBlockQuoteBody(){var e,r,n,t,i,p;if(e=la,(r=peg$parseBodyElementExceptBlockQuote())!==a){for(n=[],t=la,i=la,$a++,p=peg$parseAttribution(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseBodyElement(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseAttribution(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseBodyElement(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);n!==a?(ua=e,r=mn(r,n),e=r):(la=e,e=a)}else la=e,e=a;return e}function peg$parseAttribution(){var r,n,t,i,p,o,s,u;if(r=la,(n=peg$parseBlankLines())!==a)if(peg$parseSameIndent()!==a)if(e.substr(la,3)===An?(t=An,la+=3):(t=a,0===$a&&peg$fail(Cn)),t===a&&(e.substr(la,2)===kn?(t=kn,la+=2):(t=a,0===$a&&peg$fail(wn)),t===a&&(8212===e.charCodeAt(la)?(t=In,la++):(t=a,0===$a&&peg$fail(En)))),t!==a){for(i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=la,$a++,o=la,s=la,$a++,u=peg$parseEndline(),$a--,u===a?s=void 0:(la=s,s=a),s!==a?(e.length>la?(u=e.charAt(la),la++):(u=a,0===$a&&peg$fail(l)),u!==a?(s=[s,u],o=s):(la=o,o=a)):(la=o,o=a),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(o=peg$parseAttributionBodyWithIndent(),o===a&&(o=peg$parseAttributionBodyWithoutIndent()),o!==a?(ua=r,n=Ln(n,o),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;else la=r,r=a;return r}function peg$parsePushAttributionIndent$(){var e,r,n,t;return e=la,$a++,r=la,n=peg$parseRawLine(),n!==a?(t=peg$parsePushFirstIndent$(),t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e}function peg$parseAttributionBodyWithIndent(){var e,r,n,t,i;return e=la,r=peg$parsePushAttributionIndent$(),r!==a?(n=peg$parseSkipIndentCheck$(),n!==a?(t=peg$parseParagraph(),t===a&&(t=peg$parseFailbackIndent$()),t!==a?(i=peg$parsePopIndent$(),i!==a?(ua=e,r=yn(t),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseAttributionBodyWithoutIndent(){var e,r,n;return e=la,r=peg$parseSkipIndentCheck$(),r!==a?(n=peg$parseParagraph(),n!==a?(ua=e,r=xn(n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseComment(){var e;return e=peg$parseCommentStartFromFirstLine(),e===a&&(e=peg$parseCommentStartFromNextLine()),e}function peg$parseCommentStartFromFirstLine(){var r,n,t,i,p,o,s,l,u;if(r=la,(n=peg$parseSameIndent())!==a)if(e.substr(la,2)===bn?(t=bn,la+=2):(t=a,0===$a&&peg$fail(Bn)),t!==a){if(i=[],(p=peg$parseWhitespace())!==a)for(;p!==a;)i.push(p),p=peg$parseWhitespace();else i=a;i!==a?(p=la,$a++,o=peg$parseNonspacechar(),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(o=peg$parseRawLine(),o!==a?(s=la,l=peg$parseBlankLines(),l===a&&(l=null),l!==a?(u=peg$parseCommentBlock(),u!==a?(l=[l,u],s=l):(la=s,s=a)):(la=s,s=a),s===a&&(s=null),s!==a?(ua=r,n=Sn(o,s),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;return r}function peg$parseCommentStartFromNextLine(){var r,n,t,i,p,o;if(r=la,(n=peg$parseSameIndent())!==a)if(e.substr(la,2)===bn?(t=bn,la+=2):(t=a,0===$a&&peg$fail(Bn)),t!==a){for(i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=peg$parseNewline(),p!==a?(o=peg$parseCommentBlock(),o===a&&(o=null),o!==a?(ua=r,n=_n(o),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;return r}function peg$parseCommentBlock(){var e,r,n,t,i,p;if(e=la,(r=peg$parsePushCommonIndent$())!==a){for(n=[],t=la,i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();if(i!==a?(p=peg$parseNewline(),p!==a?(ua=t,i=Wn(r),t=i):(la=t,t=a)):(la=t,t=a),t===a&&(t=la,i=peg$parseSameOrDeepIndent(),i!==a?(p=peg$parseNotEmptyRawLine(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a)),t!==a)for(;t!==a;){for(n.push(t),t=la,i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=peg$parseNewline(),p!==a?(ua=t,i=Wn(r),t=i):(la=t,t=a)):(la=t,t=a),t===a&&(t=la,i=peg$parseSameOrDeepIndent(),i!==a?(p=peg$parseNotEmptyRawLine(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a))}else n=a;n===a&&(n=peg$parseFailbackIndent$()),n!==a?(t=peg$parsePopIndent$(),t!==a?(ua=e,r=Nn(r,n),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseInlineMarkupFollowing(){var r,n,t;return r=peg$parseEndline(),r===a&&(r=la,e.length>la?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(l)),n!==a?(ua=la,t=Tn(n),t=t?void 0:a,t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a)),r}function peg$parseInlineMarkup(){var e;return e=peg$parseStrongEmphasis(),e===a&&(e=peg$parseEmphasis())===a&&(e=peg$parseInlineLiteral())===a&&(e=peg$parseInlineInternalTarget())===a&&(e=peg$parseHyperlinkReference())===a&&(e=peg$parseInterpretedText())===a&&(e=peg$parseSubstitutionReference())===a&&(e=peg$parseFootnoteReference())===a&&(e=peg$parseCitationReference()),e}function peg$parseInlineMarkupWithoutNewline(){var e;return e=peg$parseStrongEmphasisWithoutNewline(),e===a&&(e=peg$parseEmphasisWithoutNewline())===a&&(e=peg$parseInlineLiteralWithoutNewline()),e}function peg$parseMarkupEndString(){var r,n,t,i,p,o;return r=la,ua=la,n=Mn(),n=n?void 0:a,n!==a?(e.length>la?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(l)),t!==a?(ua=la,i=Rn(t),i=i?void 0:a,i!==a?(n=[n,t,i],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r===a&&(r=la,ua=la,n=Pn(),n=n?void 0:a,n!==a?(t=la,e.length>la?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(l)),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t!==a?(ua=la,i=Dn(t),i=i?void 0:a,i!==a?(n=[n,t,i],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r===a&&(r=la,ua=la,n=qn(),n=n?void 0:a,n!==a?(t=la,e.length>la?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(l)),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),t!==a?(ua=la,i=Dn(t),i=i?void 0:a,i!==a?(n=[n,t,i],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a))),r}function peg$parseMarkupTextWithoutNewline(){var r,n,t,i,p,o,s,u,c,g,f;if(r=la,n=[],t=la,i=la,$a++,p=peg$parseNewline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=la,s=la,$a++,u=peg$parseNormalizedToWhitespace(),$a--,u===a?s=void 0:(la=s,s=a),s!==a?(ua=la,u=Fn(),u=u?void 0:a,u===a&&(u=la,$a++,92===e.charCodeAt(la)?(c=je,la++):(c=a,0===$a&&peg$fail(Oe)),$a--,c===a?u=void 0:(la=u,u=a)),u!==a?(e.length>la?(c=e.charAt(la),la++):(c=a,0===$a&&peg$fail(l)),c!==a?(g=peg$parseMarkupEndString(),g!==a?(f=peg$parseInlineMarkupFollowing(),f!==a?(s=[s,u,c,g,f],o=s):(la=o,o=a)):(la=o,o=a)):(la=o,o=a)):(la=o,o=a)):(la=o,o=a),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseNewline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=la,s=la,$a++,u=peg$parseNormalizedToWhitespace(),$a--,u===a?s=void 0:(la=s,s=a),s!==a?(ua=la,u=Fn(),u=u?void 0:a,u===a&&(u=la,$a++,92===e.charCodeAt(la)?(c=je,la++):(c=a,0===$a&&peg$fail(Oe)),$a--,c===a?u=void 0:(la=u,u=a)),u!==a?(e.length>la?(c=e.charAt(la),la++):(c=a,0===$a&&peg$fail(l)),c!==a?(g=peg$parseMarkupEndString(),g!==a?(f=peg$parseInlineMarkupFollowing(),f!==a?(s=[s,u,c,g,f],o=s):(la=o,o=a)):(la=o,o=a)):(la=o,o=a)):(la=o,o=a)):(la=o,o=a),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);else n=a;return n!==a&&(ua=r,n=jn(n)),r=n}function peg$parseMarkupTextWithoutIndent(){var e,r,n;return e=la,r=peg$parseMarkupTextWithoutNewline(),r!==a?(n=peg$parseNewline(),n===a&&(n=null),n!==a?(ua=e,r=On(r,n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseMarkupTailWithoutNewline(){var r,n,t,i,p,o,s,u;return r=la,n=peg$parseMarkupTextWithoutNewline(),n!==a?(t=la,$a++,i=peg$parseEndline(),$a--,i===a?t=void 0:(la=t,t=a),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(o=peg$parseMarkupEndString(),o!==a?(s=la,$a++,u=peg$parseInlineMarkupFollowing(),$a--,u!==a?(la=s,s=void 0):s=a,s!==a?(ua=r,n=zn(n,p),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseMarkupTail(){var r,n,t,i,p,o,s,u,c;if(r=la,n=peg$parseMarkupTextWithoutIndent(),n===a&&(n=null),n!==a){for(t=[],i=la,p=peg$parseSameIndent(),p!==a?(o=peg$parseMarkupTextWithoutIndent(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a);i!==a;)t.push(i),i=la,p=peg$parseSameIndent(),p!==a?(o=peg$parseMarkupTextWithoutIndent(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a);t!==a?(i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseNormalizedToWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(s=peg$parseMarkupEndString(),s!==a?(u=la,$a++,c=peg$parseInlineMarkupFollowing(),$a--,c!==a?(la=u,u=void 0):u=a,u!==a?(ua=r,n=Un(n,t,o),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;return r}function peg$parseEmphasis(){var r,n,t,i,p,o;return r=la,n=la,42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t!==a?(i=la,$a++,42===e.charCodeAt(la)?(p=fe,la++):(p=a,0===$a&&peg$fail($e)),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseNormalizedToWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(t=[t,i,p],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=Qn(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=Hn(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseEmphasisWithoutNewline(){var r,n,t,i,p,o;return r=la,n=la,42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t!==a?(i=la,$a++,42===e.charCodeAt(la)?(p=fe,la++):(p=a,0===$a&&peg$fail($e)),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseNormalizedToWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(t=[t,i,p],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=Qn(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTailWithoutNewline(),i!==a?(ua=r,n=Hn(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseStrongEmphasis(){var r,n,t,i,p;return r=la,n=la,e.substr(la,2)===Xn?(t=Xn,la+=2):(t=a,0===$a&&peg$fail(Vn)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=Zn(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=Yn(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseStrongEmphasisWithoutNewline(){var r,n,t,i,p;return r=la,n=la,e.substr(la,2)===Xn?(t=Xn,la+=2):(t=a,0===$a&&peg$fail(Vn)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=Zn(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTailWithoutNewline(),i!==a?(ua=r,n=Yn(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseInterpretedText(){var r,n,t,i,p,o,s,u,c;if(r=la,n=la,58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t!==a){if(i=[],p=la,o=la,$a++,s=peg$parseEndline(),$a--,s===a?o=void 0:(la=o,o=a),o!==a?(s=la,$a++,u=peg$parseWhitespace(),$a--,u===a?s=void 0:(la=s,s=a),s!==a?(u=la,$a++,58===e.charCodeAt(la)?(c=Le,la++):(c=a,0===$a&&peg$fail(ye)),$a--,c===a?u=void 0:(la=u,u=a),u!==a?(e.length>la?(c=e.charAt(la),la++):(c=a,0===$a&&peg$fail(l)),c!==a?(o=[o,s,u,c],p=o):(la=p,p=a)):(la=p,p=a)):(la=p,p=a)):(la=p,p=a),p!==a)for(;p!==a;)i.push(p),p=la,o=la,$a++,s=peg$parseEndline(),$a--,s===a?o=void 0:(la=o,o=a),o!==a?(s=la,$a++,u=peg$parseWhitespace(),$a--,u===a?s=void 0:(la=s,s=a),s!==a?(u=la,$a++,58===e.charCodeAt(la)?(c=Le,la++):(c=a,0===$a&&peg$fail(ye)),$a--,c===a?u=void 0:(la=u,u=a),u!==a?(e.length>la?(c=e.charAt(la),la++):(c=a,0===$a&&peg$fail(l)),c!==a?(o=[o,s,u,c],p=o):(la=p,p=a)):(la=p,p=a)):(la=p,p=a)):(la=p,p=a);else i=a;i!==a?(58===e.charCodeAt(la)?(p=Le,la++):(p=a,0===$a&&peg$fail(ye)),p!==a?(t=[t,i,p],n=t):(la=n,n=a)):(la=n,n=a)}else la=n,n=a;return n===a&&(n=null),n!==a?(t=la,96===e.charCodeAt(la)?(i=Ze,la++):(i=a,0===$a&&peg$fail(Ye)),i!==a?(p=la,$a++,o=peg$parseNormalizedToWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t!==a?(ua=la,i=Gn(n),i=i?void 0:a,i!==a?(p=peg$parseMarkupTail(),p!==a?(ua=r,n=Jn(n,p),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseInlineLiteral(){var r,n,t,i,p;return r=la,n=la,e.substr(la,2)===Kn?(t=Kn,la+=2):(t=a,0===$a&&peg$fail(et)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=rt(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=nt(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseInlineLiteralWithoutNewline(){var r,n,t,i,p;return r=la,n=la,e.substr(la,2)===Kn?(t=Kn,la+=2):(t=a,0===$a&&peg$fail(et)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=rt(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTailWithoutNewline(),i!==a?(ua=r,n=nt(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseSubstitutionReference(){var r,n,t,i,p;return r=la,n=la,124===e.charCodeAt(la)?(t=Ke,la++):(t=a,0===$a&&peg$fail(er)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=tt(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=at(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseInlineInternalTarget(){var r,n,t,i,p;return r=la,n=la,e.substr(la,2)===it?(t=it,la+=2):(t=a,0===$a&&peg$fail(pt)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=ot(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=st(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseFootnoteLabel(){var r,n,t,i;if(r=la,n=[],Or.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(zr)),t!==a)for(;t!==a;)n.push(t),Or.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(zr));else n=a;return n===a&&(n=la,35===e.charCodeAt(la)?(t=K,la++):(t=a,0===$a&&peg$fail(ee)),t!==a?(i=peg$parseReferenceName(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n===a&&(35===e.charCodeAt(la)?(n=K,la++):(n=a,0===$a&&peg$fail(ee)),n===a&&(42===e.charCodeAt(la)?(n=fe,la++):(n=a,0===$a&&peg$fail($e))))),n!==a&&(ua=r,n=lt(n)),r=n}function peg$parseFootnoteReference(){var r,n,t,i,p,o;return r=la,91===e.charCodeAt(la)?(n=qe,la++):(n=a,0===$a&&peg$fail(Fe)),n!==a?(t=peg$parseFootnoteLabel(),t!==a?(e.substr(la,2)===ut?(i=ut,la+=2):(i=a,0===$a&&peg$fail(ct)),i!==a?(p=la,$a++,o=peg$parseInlineMarkupFollowing(),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(ua=r,n=gt(t),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseCitationReference(){var r,n,t,i,p,o;return r=la,91===e.charCodeAt(la)?(n=qe,la++):(n=a,0===$a&&peg$fail(Fe)),n!==a?(t=peg$parseReferenceName(),t!==a?(e.substr(la,2)===ut?(i=ut,la+=2):(i=a,0===$a&&peg$fail(ct)),i!==a?(p=la,$a++,o=peg$parseInlineMarkupFollowing(),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(ua=r,n=ft(t),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseHyperlinkReference(){var e;return e=peg$parseAnonymousHyperlinkReference(),e===a&&(e=peg$parseAnonymousSimpleHyperlinkReference())===a&&(e=peg$parseNamedHyperlinkReference())===a&&(e=peg$parseNamedSimpleHyperlinkReference()),e}function peg$parseNamedHyperlinkReference(){var r,n,t,i,p;return r=la,n=la,96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ye)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=$t(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=ht(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseNamedSimpleHyperlinkReference(){var r,n,t,i,p;return r=la,n=peg$parseHyperlinkReferenceName(),n!==a?(95===e.charCodeAt(la)?(t=Xe,la++):(t=a,0===$a&&peg$fail(Ve)),t!==a?(i=la,$a++,p=peg$parseInlineMarkupFollowing(),$a--,p!==a?(la=i,i=void 0):i=a,i!==a?(ua=r,n=dt(n),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseAnonymousHyperlinkReference(){var r,n,t,i,p;return r=la,n=la,96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ye)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=vt(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=mt(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseAnonymousSimpleHyperlinkReference(){var r,n,t,i,p;return r=la,n=peg$parseHyperlinkReferenceName(),n!==a?(e.substr(la,2)===At?(t=At,la+=2):(t=a,0===$a&&peg$fail(Ct)),t!==a?(i=la,$a++,p=peg$parseInlineMarkupFollowing(),$a--,p!==a?(la=i,i=void 0):i=a,i!==a?(ua=r,n=kt(n),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseReferenceName(){var r,n,t,i;if(r=la,(n=peg$parseAlphanumericAscii())!==a){if(t=[],i=peg$parseAlphanumericAscii(),i===a&&(wt.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(It))),i!==a)for(;i!==a;)t.push(i),(i=peg$parseAlphanumericAscii())===a&&(wt.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(It)));else t=a;t!==a?(ua=r,n=Et(n,t),r=n):(la=r,r=a)}else la=r,r=a;return r}function peg$parseHyperlinkReferenceName(){var r,n,t,i;if(r=la,(n=peg$parseAlphanumericAscii())!==a){if(t=[],i=peg$parseAlphanumericAscii(),i===a&&(Lt.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(yt))),i!==a)for(;i!==a;)t.push(i),(i=peg$parseAlphanumericAscii())===a&&(Lt.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(yt)));else t=a;t!==a?(ua=r,n=Et(n,t),r=n):(la=r,r=a)}else la=r,r=a;return r}function peg$parseLiteralBlock(){var e,r,n;return e=la,r=peg$parseSameIndent(),r!==a?(n=peg$parseLiteralBlockWithoutIndent(),n!==a?(ua=e,r=xt(n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseLiteralBlockWithoutIndent(){var e;return e=peg$parseIndentedLiteralBlockWithoutIndent(),e===a&&(e=peg$parseQuotedLiteralBlockWithoutIndent()),e}function peg$parseIndentedLiteralBlockWithoutIndent(){var r,n,t,i,p,o,s,l,u,c,g,f,h;if(r=la,e.substr(la,2)===bt?(n=bt,la+=2):(n=a,0===$a&&peg$fail(Bt)),n!==a){for(t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();if(t!==a)if((i=peg$parseNewline())!==a)if(peg$parseBlankLines()!==a)if((p=peg$parsePushCommonIndent$())!==a){for(o=[],s=la,l=[],u=peg$parseWhitespace();u!==a;)l.push(u),u=peg$parseWhitespace();if(l!==a?(u=peg$parseNewline(),u!==a?(c=la,$a++,g=la,f=peg$parseBlankLines(),f===a&&(f=null),f!==a?(h=peg$parseShallowIndent(),h!==a?(f=[f,h],g=f):(la=g,g=a)):(la=g,g=a),$a--,g===a?c=void 0:(la=c,c=a),c!==a?(l=[l,u,c],s=l):(la=s,s=a)):(la=s,s=a)):(la=s,s=a),s===a)if(s=la,l=la,$a++,u=peg$parseSameOrDeepIndent(),$a--,u!==a?(la=l,l=void 0):l=a,l!==a){if(u=[],(c=peg$parseWhitespace())!==a)for(;c!==a;)u.push(c),c=peg$parseWhitespace();else u=a;u!==a?(c=peg$parseRawLine(),c!==a?(l=[l,u,c],s=l):(la=s,s=a)):(la=s,s=a)}else la=s,s=a;if(s!==a)for(;s!==a;){for(o.push(s),s=la,l=[],u=peg$parseWhitespace();u!==a;)l.push(u),u=peg$parseWhitespace();if(l!==a?(u=peg$parseNewline(),u!==a?(c=la,$a++,g=la,f=peg$parseBlankLines(),f===a&&(f=null),f!==a?(h=peg$parseShallowIndent(),h!==a?(f=[f,h],g=f):(la=g,g=a)):(la=g,g=a),$a--,g===a?c=void 0:(la=c,c=a),c!==a?(l=[l,u,c],s=l):(la=s,s=a)):(la=s,s=a)):(la=s,s=a),s===a)if(s=la,l=la,$a++,u=peg$parseSameOrDeepIndent(),$a--,u!==a?(la=l,l=void 0):l=a,l!==a){if(u=[],(c=peg$parseWhitespace())!==a)for(;c!==a;)u.push(c),c=peg$parseWhitespace();else u=a;u!==a?(c=peg$parseRawLine(),c!==a?(l=[l,u,c],s=l):(la=s,s=a)):(la=s,s=a)}else la=s,s=a}else o=a;o===a&&(o=peg$parseFailbackIndent$()),o!==a?(s=peg$parsePopIndent$(),s!==a?(ua=r,n=St(p,o),r=n):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;else la=r,r=a;else la=r,r=a}else la=r,r=a;return r}function peg$parseQuotedLiteralBlockWithoutIndent(){var r,n,t,i,p,o,s,l,u;if(r=la,e.substr(la,2)===bt?(n=bt,la+=2):(n=a,0===$a&&peg$fail(Bt)),n!==a){for(t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();if(t!==a)if((i=peg$parseNewline())!==a)if(peg$parseBlankLines()!==a)if(peg$parseSetQuoting$()!==a){if(p=[],o=la,s=peg$parseSameIndent(),s!==a?(l=peg$parseIsValidQuoting$(),l!==a?(u=peg$parseNotEmptyRawLine(),u!==a?(s=[s,l,u],o=s):(la=o,o=a)):(la=o,o=a)):(la=o,o=a),o!==a)for(;o!==a;)p.push(o),o=la,s=peg$parseSameIndent(),s!==a?(l=peg$parseIsValidQuoting$(),l!==a?(u=peg$parseNotEmptyRawLine(),u!==a?(s=[s,l,u],o=s):(la=o,o=a)):(la=o,o=a)):(la=o,o=a);else p=a;p!==a?(o=la,$a++,s=peg$parseBlankLines(),$a--,s!==a?(la=o,o=void 0):o=a,o!==a?(ua=r,n=_t(p),r=n):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;else la=r,r=a;else la=r,r=a}else la=r,r=a;return r}function peg$parseQuoting(){var r;return 33===e.charCodeAt(la)?(r=Z,la++):(r=a,0===$a&&peg$fail(Y)),r===a&&(34===e.charCodeAt(la)?(r=G,la++):(r=a,0===$a&&peg$fail(J)),r===a&&(35===e.charCodeAt(la)?(r=K,la++):(r=a,0===$a&&peg$fail(ee)),r===a&&(36===e.charCodeAt(la)?(r=re,la++):(r=a,0===$a&&peg$fail(ne)),r===a&&(37===e.charCodeAt(la)?(r=te,la++):(r=a,0===$a&&peg$fail(ae)),r===a&&(38===e.charCodeAt(la)?(r=ie,la++):(r=a,0===$a&&peg$fail(pe)),r===a&&(39===e.charCodeAt(la)?(r=oe,la++):(r=a,0===$a&&peg$fail(se)),r===a&&(40===e.charCodeAt(la)?(r=le,la++):(r=a,0===$a&&peg$fail(ue)),r===a&&(41===e.charCodeAt(la)?(r=ce,la++):(r=a,0===$a&&peg$fail(ge)),r===a&&(42===e.charCodeAt(la)?(r=fe,la++):(r=a,0===$a&&peg$fail($e)),r===a&&(43===e.charCodeAt(la)?(r=he,la++):(r=a,0===$a&&peg$fail(de)),r===a&&(44===e.charCodeAt(la)?(r=ve,la++):(r=a,0===$a&&peg$fail(me)),r===a&&(45===e.charCodeAt(la)?(r=Ae,la++):(r=a,0===$a&&peg$fail(Ce)),r===a&&(46===e.charCodeAt(la)?(r=ke,la++):(r=a,0===$a&&peg$fail(we)),r===a&&(47===e.charCodeAt(la)?(r=Ie,la++):(r=a,0===$a&&peg$fail(Ee)),r===a&&(58===e.charCodeAt(la)?(r=Le,la++):(r=a,0===$a&&peg$fail(ye)),r===a&&(59===e.charCodeAt(la)?(r=xe,la++):(r=a,0===$a&&peg$fail(be)),r===a&&(60===e.charCodeAt(la)?(r=Be,la++):(r=a,0===$a&&peg$fail(Se)),r===a&&(61===e.charCodeAt(la)?(r=_e,la++):(r=a,0===$a&&peg$fail(We)),r===a&&(62===e.charCodeAt(la)?(r=Ne,la++):(r=a,0===$a&&peg$fail(Te)),r===a&&(63===e.charCodeAt(la)?(r=Me,la++):(r=a,0===$a&&peg$fail(Re)),r===a&&(64===e.charCodeAt(la)?(r=Pe,la++):(r=a,0===$a&&peg$fail(De)),r===a&&(91===e.charCodeAt(la)?(r=qe,la++):(r=a,0===$a&&peg$fail(Fe)),r===a&&(92===e.charCodeAt(la)?(r=je,la++):(r=a,0===$a&&peg$fail(Oe)),r===a&&(93===e.charCodeAt(la)?(r=ze,la++):(r=a,0===$a&&peg$fail(Ue)),r===a&&(94===e.charCodeAt(la)?(r=Qe,la++):(r=a,0===$a&&peg$fail(He)),r===a&&(95===e.charCodeAt(la)?(r=Xe,la++):(r=a,0===$a&&peg$fail(Ve)),r===a&&(96===e.charCodeAt(la)?(r=Ze,la++):(r=a,0===$a&&peg$fail(Ye)),r===a&&(123===e.charCodeAt(la)?(r=Ge,la++):(r=a,0===$a&&peg$fail(Je)),r===a&&(124===e.charCodeAt(la)?(r=Ke,la++):(r=a,0===$a&&peg$fail(er)),r===a&&(125===e.charCodeAt(la)?(r=rr,la++):(r=a,0===$a&&peg$fail(nr)),r===a&&(126===e.charCodeAt(la)?(r=tr,la++):(r=a,0===$a&&peg$fail(ar))))))))))))))))))))))))))))))))),r}function peg$parseSetQuoting$(){var e,r,n,t,i;return e=la,$a++,r=la,n=peg$parseSameIndent(),n!==a?(t=peg$parseQuoting(),t!==a?(ua=la,i=Wt(t),i=i?void 0:a,i!==a?(n=[n,t,i],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e}function peg$parseIsValidQuoting$(){var e,r,n,t;return e=la,$a++,r=la,n=peg$parseQuoting(),n!==a?(ua=la,t=Nt(n),t=t?void 0:a,t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e}function peg$parseLineBlock(){var e;return e=peg$parseNestedLineBlock(),e===a&&(e=peg$parseSimpleLineBlock()),e}function peg$parseNestedLineBlock(){var e,r,n,t,i,p;if(e=la,(r=peg$parsePushLineBlockIndent$())!==a)if((n=peg$parseLine())!==a){for(t=[],i=peg$parseLine(),i===a&&(i=peg$parseLineBlock());i!==a;)t.push(i),(i=peg$parseLine())===a&&(i=peg$parseLineBlock());t!==a?(i=peg$parsePopLineBlockIndent$(),i!==a?(p=peg$parseLineBlock(),p!==a?(ua=e,r=Tt(r,n,t,p),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;else la=e,e=a;return e}function peg$parseSimpleLineBlock(){var e,r,n,t;return e=la,r=peg$parsePushLineBlockIndent$(),r!==a?(n=peg$parseLineBolockMain(),n===a&&(n=peg$parseFailbackLineBlockIndent$()),n!==a?(t=peg$parsePopLineBlockIndent$(),t!==a?(ua=e,r=Mt(r,n),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseLineBolockMain(){var e,r,n,t,i;if(e=la,(r=peg$parseLine())!==a){for(n=[],t=peg$parseLine(),t===a&&(t=peg$parseLineBlock());t!==a;)n.push(t),(t=peg$parseLine())===a&&(t=peg$parseLineBlock());n!==a?(t=la,$a++,i=peg$parseBlankLines(),$a--,i!==a?(la=t,t=void 0):t=a,t!==a?(ua=e,r=Rt(r,n),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseLine(){var e;return e=peg$parseNonEmptyLine(),e===a&&(e=peg$parseEmptyLine()),e}function peg$parseNonEmptyLine(){var r,n,t,i,p,o;return r=la,n=peg$parseSameIndent(),n!==a?(e.substr(la,2)===Pt?(t=Pt,la+=2):(t=a,0===$a&&peg$fail(Dt)),t!==a?(i=peg$parseSameLineBlockIndent(),i!==a?(p=peg$parseOnelineParagraph(),p!==a?(o=peg$parseNewline(),o!==a?(ua=r,n=qt(p),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseEmptyLine(){var r,n,t,i,p;if(r=la,(n=peg$parseSameIndent())!==a)if(124===e.charCodeAt(la)?(t=Ke,la++):(t=a,0===$a&&peg$fail(er)),t!==a){for(i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=peg$parseNewline(),p!==a?(ua=r,n=Ft(),r=n):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;return r}function peg$parseSameLineBlockIndent(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(ua=la,n=jt(r),n=n?void 0:a,n!==a?(ua=e,r=W(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseDeepLineBlockIndent(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(ua=la,n=Ot(r),n=n?void 0:a,n!==a?(ua=e,r=W(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parsePushLineBlockIndent$(){var r,n,t,i,p,o,s,l;for(r=la,n=la,$a++,t=la,i=[],p=peg$parseEmptyLine();p!==a;)i.push(p),p=peg$parseEmptyLine();return i!==a?(p=peg$parseSameIndent(),p!==a?(e.substr(la,2)===Pt?(o=Pt,la+=2):(o=a,0===$a&&peg$fail(Dt)),o!==a?(s=peg$parseDeepLineBlockIndent(),s!==a?(ua=la,l=zt(s),l=l?void 0:a,l!==a?(i=[i,p,o,s,l],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),$a--,t!==a?(la=n,n=void 0):n=a,n!==a&&(ua=r,n=Ut()),r=n}function peg$parsePopLineBlockIndent$(){var e;return ua=la,e=Qt(),e=e?void 0:a}function peg$parseFailbackLineBlockIndent$(){var e,r,n;return e=la,r=peg$parsePopLineBlockIndent$(),r!==a?(n=peg$parseFail$(),n!==a?(r=[r,n],e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseInlineMarkupPreceding(){var r,n,t;return r=la,e.length>la?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(l)),n!==a?(ua=la,t=Ht(n),t=t?void 0:a,t!==a?(ua=r,n=Xt(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseInlineMarkupStartString(){var r;return e.substr(la,2)===Xn?(r=Xn,la+=2):(r=a,0===$a&&peg$fail(Vn)),r===a&&(42===e.charCodeAt(la)?(r=fe,la++):(r=a,0===$a&&peg$fail($e)),r===a&&(e.substr(la,2)===Kn?(r=Kn,la+=2):(r=a,0===$a&&peg$fail(et)),r===a&&(96===e.charCodeAt(la)?(r=Ze,la++):(r=a,0===$a&&peg$fail(Ye)),r===a&&(124===e.charCodeAt(la)?(r=Ke,la++):(r=a,0===$a&&peg$fail(er)),r===a&&(e.substr(la,2)===it?(r=it,la+=2):(r=a,0===$a&&peg$fail(pt))))))),r}function peg$parseInlineMarkupBeggining(){var r,n,t,i,p,o,s;return r=la,n=peg$parseInlineMarkupPreceding(),n!==a?(t=peg$parseInlineMarkupStartString(),t!==a?(i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(ua=la,s=Vt(n,t,o),s=s?void 0:a,s!==a?(n=[n,t,i,p,o,s],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r===a&&(r=la,n=peg$parseInlineMarkupPreceding(),n!==a?(t=peg$parseInterpretedText(),t===a&&(t=peg$parseFootnoteReference())===a&&(t=peg$parseCitationReference())===a&&(t=peg$parseAnonymousSimpleHyperlinkReference())===a&&(t=peg$parseNamedSimpleHyperlinkReference()),t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a)),r}function peg$parseParagraph(){var e,r,n,t,i,p;if(e=la,r=[],n=la,t=peg$parseSameIndent(),t!==a?(i=peg$parseParagraphBlock(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a)for(;n!==a;)r.push(n),n=la,t=peg$parseSameIndent(),t!==a?(i=peg$parseParagraphBlock(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a);else r=a;return r!==a?(n=la,$a++,t=la,i=peg$parseLiteralBlockWithoutIndent(),i!==a?(p=peg$parseSkipIndentCheck$(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t===a&&(t=peg$parseBlankLines())===a&&(t=peg$parseEndIndent()),$a--,t!==a?(la=n,n=void 0):n=a,n!==a?(ua=e,r=Zt(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseParagraphBlock(){var e,r,n,t,i;if(e=la,r=[],n=la,t=la,$a++,i=peg$parseBlankLines(),i===a&&(i=peg$parseLiteralBlockWithoutIndent()),$a--,i===a?t=void 0:(la=t,t=a),t!==a?(i=peg$parseInlineMarkup(),i===a&&(i=peg$parseParagraphText()),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a)for(;n!==a;)r.push(n),n=la,t=la,$a++,i=peg$parseBlankLines(),i===a&&(i=peg$parseLiteralBlockWithoutIndent()),$a--,i===a?t=void 0:(la=t,t=a),t!==a?(i=peg$parseInlineMarkup(),i===a&&(i=peg$parseParagraphText()),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a);else r=a;if(r!==a){for(n=[],t=peg$parseWhitespace();t!==a;)n.push(t),t=peg$parseWhitespace();n!==a?(t=peg$parseEndline(),t===a&&(t=la,$a++,i=peg$parseLiteralBlockWithoutIndent(),$a--,i!==a?(la=t,t=void 0):t=a),t!==a?(ua=e,r=Yt(r,t),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseParagraphText(){var r,n,t,i,p,o;if(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),p===a&&(p=peg$parseLiteralBlockWithoutIndent()),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),p===a&&(p=peg$parseLiteralBlockWithoutIndent()),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);else n=a;if(n!==a?(t=la,$a++,i=peg$parseEndline(),i===a&&(i=peg$parseLiteralBlockWithoutIndent()),$a--,i!==a?(la=t,t=void 0):t=a,t!==a?(ua=r,n=jn(n),r=n):(la=r,r=a)):(la=r,r=a),r===a){for(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);n!==a?(t=peg$parseInlineMarkupPreceding(),t!==a?(ua=r,n=Gt(n,t),r=n):(la=r,r=a)):(la=r,r=a)}return r}function peg$parseOnelineParagraph(){var e,r;if(e=[],r=peg$parseInlineMarkupWithoutNewline(),r===a&&(r=peg$parseOnelineText()),r!==a)for(;r!==a;)e.push(r),(r=peg$parseInlineMarkupWithoutNewline())===a&&(r=peg$parseOnelineText());else e=a;return e}function peg$parseOnelineText(){var r,n,t,i,p,o;if(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);else n=a;if(n!==a?(t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseInlineMarkupPreceding(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t===a&&(t=null),t!==a?(ua=r,n=Jt(n,t),r=n):(la=r,r=a)):(la=r,r=a),r===a){for(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);n!==a?(t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseInlineMarkupPreceding(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t!==a?(ua=r,n=Kt(n,t),r=n):(la=r,r=a)):(la=r,r=a)}return r}function peg$parseDirectiveType(){var r,n,t,i,p,o;for(r=la,n=[],t=la,ea.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(ra)),i!==a?(p=la,$a++,e.substr(la,2)===bt?(o=bt,la+=2):(o=a,0===$a&&peg$fail(Bt)),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(na.test(e.charAt(la))?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(ta)),o===a&&(o=null),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);t!==a;)n.push(t),t=la,ea.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(ra)),i!==a?(p=la,$a++,e.substr(la,2)===bt?(o=bt,la+=2):(o=a,0===$a&&peg$fail(Bt)),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(na.test(e.charAt(la))?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(ta)),o===a&&(o=null),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);return n!==a?(ea.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(ra)),t!==a?(ua=r,n=aa(n,t),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseDirective(){var e;return e=peg$parseDirectiveStartFromFirstLine(),e===a&&(e=peg$parseDirectiveStartFromNextLine()),e}function peg$parseDirectiveStartFromFirstLine(){var r,n,t,i,p,o,s,l,u,c,g,f;if(r=la,(n=peg$parseSameIndent())!==a)if(e.substr(la,2)===bn?(t=bn,la+=2):(t=a,0===$a&&peg$fail(Bn)),t!==a){if(i=[],(p=peg$parseWhitespace())!==a)for(;p!==a;)i.push(p),p=peg$parseWhitespace();else i=a;if(i!==a)if((p=peg$parseDirectiveType())!==a)if(e.substr(la,2)===bt?(o=bt,la+=2):(o=a,0===$a&&peg$fail(Bt)),o!==a){if(s=[],(l=peg$parseWhitespace())!==a)for(;l!==a;)s.push(l),l=peg$parseWhitespace();else s=a;s!==a?(l=la,$a++,u=peg$parseNonspacechar(),$a--,u!==a?(la=l,l=void 0):l=a,l!==a?(u=peg$parseRawLine(),u!==a?(c=la,g=peg$parseBlankLines(),g===a&&(g=null),g!==a?(f=peg$parseDirectiveBlock(),f!==a?(g=[g,f],c=g):(la=c,c=a)):(la=c,c=a),c===a&&(c=null),c!==a?(ua=r,n=ia(p,u,c),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;else la=r,r=a}else la=r,r=a;else la=r,r=a;return r}function peg$parseDirectiveStartFromNextLine(){var r,n,t,i,p,o,s,l,u;if(r=la,(n=peg$parseSameIndent())!==a)if(e.substr(la,2)===bn?(t=bn,la+=2):(t=a,0===$a&&peg$fail(Bn)),t!==a){if(i=[],(p=peg$parseWhitespace())!==a)for(;p!==a;)i.push(p),p=peg$parseWhitespace();else i=a;if(i!==a)if((p=peg$parseDirectiveType())!==a)if(e.substr(la,2)===bt?(o=bt,la+=2):(o=a,0===$a&&peg$fail(Bt)),o!==a){for(s=[],l=peg$parseWhitespace();l!==a;)s.push(l),l=peg$parseWhitespace();s!==a?(l=peg$parseNewline(),l!==a?(u=peg$parseDirectiveBlock(),u===a&&(u=null),u!==a?(ua=r,n=pa(p,u),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;else la=r,r=a}else la=r,r=a;else la=r,r=a;return r}function peg$parseDirectiveBlock(){var e,r,n,t,i,p,o;if(e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a)if((n=peg$parsePushCommonIndent$())!==a){for(t=[],i=la,p=[],o=peg$parseWhitespace();o!==a;)p.push(o),o=peg$parseWhitespace();if(p!==a?(o=peg$parseNewline(),o!==a?(ua=i,p=Wn(n),i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=peg$parseSameOrDeepIndent(),p!==a?(o=peg$parseNotEmptyRawLine(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a)),i!==a)for(;i!==a;){for(t.push(i),i=la,p=[],o=peg$parseWhitespace();o!==a;)p.push(o),o=peg$parseWhitespace();p!==a?(o=peg$parseNewline(),o!==a?(ua=i,p=Wn(n),i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=peg$parseSameOrDeepIndent(),p!==a?(o=peg$parseNotEmptyRawLine(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a))}else t=a;t===a&&(t=peg$parseFailbackIndent$()),t!==a?(i=peg$parsePopIndent$(),i!==a?(ua=e,r=oa(n,t),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;else la=e,e=a;return e}function peg$parseUnknown(){var e,r,n,t,i,p;if(e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a){if(n=[],t=la,i=la,$a++,p=peg$parseBlankLines(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseUnknownLine(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseBlankLines(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseUnknownLine(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);else n=a;n!==a?(ua=e,r=sa(r,n),e=r):(la=e,e=a)}else la=e,e=a;return e}function mapByIndex(e,r){return ha.map(e,function(e){return e[r]})}n=void 0!==n?n:{};var t,a={},i={Document:peg$parseDocument},p=peg$parseDocument,o=/^[A-Za-z0-9]/,s=peg$classExpectation([["A","Z"],["a","z"],["0","9"]],!1,!1),l=function(){return{type:"any"}}(),u="\n",c=peg$literalExpectation("\n",!1),g="\r",f=peg$literalExpectation("\r",!1),h=function(e){return e[0]+(e[1]||"")},d=" ",v=peg$literalExpectation(" ",!1),m="\v",A=peg$literalExpectation("\v",!1),C="\f",k=peg$literalExpectation("\f",!1),w="\t",I=peg$literalExpectation("\t",!1),E=function(e){return e[1]},L=function(e,r){return ha.map(e,function(e){return e[0].join("")+(e[1]||"")}).concat(r[0].join("")+(r[1]||""))},y=function(e){return{raw:ha.map(e,function(e){return e[1]}).join("")}},x=function(e){return new va.UnknownLine({value:e.raw})},b=function(e){return da.calcIndentSize(e)Aa},W=function(e){return e.join("")},N=function(e){return da.calcIndentSize(e)=Aa},M=function(){return!1},R=function(){return La.pop(),!0},P=function(e){return ka=da.calcIndentSize(e),!0},D=function(e,r){return ka=Math.min(ka,da.calcIndentSize(r)),!0},q=function(e){return La.push(ka),!0},F=function(){return{width:Aa,offset:La.lastIndentDiff()}},j=function(e,r){return La.push(da.calcIndentSize(e)),!0},O=function(){return La.ignore(location().start.line),!0},z=function(e,r){return new va.Document({children:e})},U=function(e,r,n){var t=ba.depth();return ba.popSection(),new va.Section({blanklines:e,depth:t,children:[r].concat(mapByIndex(n,1))})},Q=function(e,r){return e.line[0]===r.line[0]&&ba.isSubSection(r.line[0],!0)},H=function(e,r){return ba.isSubSection(r.line[0],!1)},X=function(e,r,n){return ba.setNextSection(n.line[0],!0),new va.Title({children:r})},V=function(e,r){return ba.setNextSection(r.line[0],!1),new va.Title({children:e})},Z="!",Y=peg$literalExpectation("!",!1),G='"',J=peg$literalExpectation('"',!1),K="#",ee=peg$literalExpectation("#",!1),re="$",ne=peg$literalExpectation("$",!1),te="%",ae=peg$literalExpectation("%",!1),ie="&",pe=peg$literalExpectation("&",!1),oe="'",se=peg$literalExpectation("'",!1),le="(",ue=peg$literalExpectation("(",!1),ce=")",ge=peg$literalExpectation(")",!1),fe="*",$e=peg$literalExpectation("*",!1),he="+",de=peg$literalExpectation("+",!1),ve=",",me=peg$literalExpectation(",",!1),Ae="-",Ce=peg$literalExpectation("-",!1),ke=".",we=peg$literalExpectation(".",!1),Ie="/",Ee=peg$literalExpectation("/",!1),Le=":",ye=peg$literalExpectation(":",!1),xe=";",be=peg$literalExpectation(";",!1),Be="<",Se=peg$literalExpectation("<",!1),_e="=",We=peg$literalExpectation("=",!1),Ne=">",Te=peg$literalExpectation(">",!1),Me="?",Re=peg$literalExpectation("?",!1),Pe="@",De=peg$literalExpectation("@",!1),qe="[",Fe=peg$literalExpectation("[",!1),je="\\",Oe=peg$literalExpectation("\\",!1),ze="]",Ue=peg$literalExpectation("]",!1),Qe="^",He=peg$literalExpectation("^",!1),Xe="_",Ve=peg$literalExpectation("_",!1),Ze="`",Ye=peg$literalExpectation("`",!1),Ge="{",Je=peg$literalExpectation("{",!1),Ke="|",er=peg$literalExpectation("|",!1),rr="}",nr=peg$literalExpectation("}",!1),tr="~",ar=peg$literalExpectation("~",!1),ir=function(e){return e.length>=2&&1===ha.uniq(e).length},pr=function(e){return{line:e.join("")}},or=function(e,r){return new va.Transition({blanklines:e,children:[]})},sr=function(e){return e.length>=4&&1===ha.uniq(e).length},lr=function(e){return e},ur=function(e,r){return r.blanklines=e||[],r},cr=function(e){return e},gr=function(e){return e},fr=function(e){return La.push(location().start.column-1),!0},$r=function(){return{width:Aa,offset:La.lastIndentDiff()}},hr=function(e,r){return new va.ListItem({children:r})},dr=function(){return new va.ListItem({children:[]})},vr=function(e){return new va.BulletList({bullet:e[0][0],children:mapByIndex(e,1)})},mr=/^[*+\-\u2022\u2023\u2043]/,Ar=peg$classExpectation(["*","+","-","•","‣","⁃"],!1,!1),Cr=function(e){return xa.isSameBullet(e)},kr=function(e){return e},wr=function(e){return xa.pushBullet(e),!0},Ir=function(){return xa.popBullet(),!0},Er=function(e,r,n){return n.blanklines=e||[],[r,n]},Lr=function(e){return new va.EnumeratedList({children:e})},yr=function(){return Ea.begin(),!0},xr=function(){return Ea.end(),!0},br=function(e,r,n){return n.blanklines=e||[],n},Br=function(e){return new va.Enumerator({sequence:e,format:"period"})},Sr=function(e){return new va.Enumerator({sequence:e,format:"right_parenthesis"})},_r=function(e){return new va.Enumerator({sequence:e,format:"parentheses"})},Wr=function(e){return!!Ea.isNext(e)&&(Ea.set(e),!0)},Nr=function(e){return e},Tr=function(){return Ea.isNextType("arabic_numerals")},Mr=function(){return Ea.isNextType("uppercase_roman")},Rr=function(){return Ea.isNextType("lowercase_roman")},Pr=function(){return Ea.isNextType("uppercase_alphabet")},Dr=function(){return Ea.isNextType("lowercase_alphabet")},qr=function(){return new va.EnumeratorSequence({type:"auto",value:"#"})},Fr=/^[1-9]/,jr=peg$classExpectation([["1","9"]],!1,!1),Or=/^[0-9]/,zr=peg$classExpectation([["0","9"]],!1,!1),Ur=function(e,r){return new va.EnumeratorSequence({type:"arabic_numerals",value:[e].concat(r).join("")})},Qr=/^[0]/,Hr=peg$classExpectation(["0"],!1,!1),Xr=function(e){return new va.EnumeratorSequence({type:"arabic_numerals",value:e})},Vr=/^[A-Z]/,Zr=peg$classExpectation([["A","Z"]],!1,!1),Yr=function(e){return new va.EnumeratorSequence({type:"uppercase_alphabet",value:e})},Gr=/^[a-z]/,Jr=peg$classExpectation([["a","z"]],!1,!1),Kr=function(e){return new va.EnumeratorSequence({type:"lowercase_alphabet",value:e})},en=/^[IVXLCDM]/,rn=peg$classExpectation(["I","V","X","L","C","D","M"],!1,!1),nn=function(e){return da.isUpperRomanNumber(e.join(""))},tn=function(e){return new va.EnumeratorSequence({type:"uppercase_roman",value:e.join("")})},an=/^[ivxlcdm]/,pn=peg$classExpectation(["i","v","x","l","c","d","m"],!1,!1),on=function(e){return da.isLowerRomanNumber(e.join(""))},sn=function(e){return new va.EnumeratorSequence({type:"lowercase_roman",value:e.join("")})},ln=function(e){return new va.DefinitionList({children:e})},un=function(e,r,n,t,a){var n=mapByIndex(n,3);return new va.DefinitionListItem({blanklines:e,indent:t,children:[r].concat(_toConsumableArray(n),[a])})},cn=function(e){return new va.Term({children:e})},gn=function(e){return new va.Definition({children:e})},fn=function(e){return new va.Text({value:mapByIndex(e,3).join("")})},$n=function(e){return new va.Classifier({children:e})},hn=function(e,r,n,t){var a={width:r.width,offset:r.width-t.indent.width};n.indent=a;var i=[n].concat(t.children),r=t.indent;return new va.BlockQuote({indent:r,blanklines:e,children:i})},dn=function(e,r){return new va.BlockQuote({children:e.concat(r||[])})},vn=function(e,r,n,t){return new va.BlockQuote({indent:r,blanklines:e,children:n.concat(t||[])})},mn=function(e,r){return[e].concat(ha.map(r,function(e){return e[1]}))},An="---",Cn=peg$literalExpectation("---",!1),kn="--",wn=peg$literalExpectation("--",!1),In="—",En=peg$literalExpectation("—",!1),Ln=function(e,r){return new va.Attribution({blanklines:e,children:r.children})},yn=function(e){return e},xn=function(e){return e},bn="..",Bn=peg$literalExpectation("..",!1),Sn=function(e,r){var n=[new va.Text({value:e.raw})],t=null;return ha.isNull(r)||(t=r[1].indent,n=n.concat(r[1].children)),new va.Comment({indent:t,children:n})},_n=function(e){return ha.isNull(e)?new va.Comment({}):e},Wn=function(e){return null},Nn=function(e,r){var n=ha.map(ha.reject(r,ha.isNull),function(r){var n=r[0],t=r[1].raw,a=ha.repeat(" ",n.length-e.width)+t;return new va.Text({value:a})});return new va.Comment({indent:e,children:n})},Tn=function(e){return da.isInlineMarkupSuffix(e)},Mn=function(){return 1===wa.length},Rn=function(e){return e===wa},Pn=function(){return 2===wa.length},Dn=function(e){return e.join("")===wa},qn=function(){return 3===wa.length},Fn=function(){return"``"===wa},jn=function(e){return new ma({value:mapByIndex(e,2).join("")})},On=function(e,r){return ha.isNull(r)||(e=new ma({value:e.value+r})),e},zn=function(e,r){return[new ma({value:e.value+r})]},Un=function(e,r,n){var t=(ha.isNull(e)?[]:[e]).concat(mapByIndex(r,1));0===t.length&&t.push(new ma({value:""}));var a=t[t.length-1];return t[t.length-1]=new ma({value:a.value+n}),t},Qn=function(){return wa="*",!0},Hn=function(e){return new va.Emphasis({children:e})},Xn="**",Vn=peg$literalExpectation("**",!1),Zn=function(){return wa="**",!0},Yn=function(e){return new va.Strong({children:e})},Gn=function(e){return wa="`",!0},Jn=function(e,r){var n=null;return ha.isNull(e)||(n=ha.map(e[1],function(e){return e[3]}).join("")),new va.InterpretedText({role:n,children:r})},Kn="``",et=peg$literalExpectation("``",!1),rt=function(){return wa="``",!0},nt=function(e){return new va.Literal({children:e})},tt=function(){return wa="|",!0},at=function(e){return new va.SubstitutionReference({children:e})},it="_`",pt=peg$literalExpectation("_`",!1),ot=function(){return wa="`",!0},st=function(e){return new va.InlineInternalTarget({children:e})},lt=function(e){return ha.isArray(e)?e.join(""):e},ut="]_",ct=peg$literalExpectation("]_",!1),gt=function(e){return new va.FootnoteReference({children:[new ma({value:e})]})},ft=function(e){return new va.CitationReference({children:[new ma({value:e})]})},$t=function(){return wa="`_",!0},ht=function(e){return new va.Reference({anonymous:!1,simple:!1,children:e})},dt=function(e){return new va.Reference({anonymous:!1,simple:!0,children:[new ma({value:e})]})},vt=function(){return wa="`__",!0},mt=function(e){return new va.Reference({anonymous:!0,simple:!1,children:e})},At="__",Ct=peg$literalExpectation("__",!1),kt=function(e){return new va.Reference({anonymous:!0,simple:!0,children:[new ma({value:e})]})},wt=/^[\-_.:+]/,It=peg$classExpectation(["-","_",".",":","+"],!1,!1),Et=function(e,r){return e+r.join("")},Lt=/^[\-.:+]/,yt=peg$classExpectation(["-",".",":","+"],!1,!1),xt=function(e){return e},bt="::",Bt=peg$literalExpectation("::",!1),St=function(e,r){var n=ha.map(r,function(r){if(ha.isUndefined(r[0]))var n=da.calcIndentSize(r[1].join("")),t=ha.repeat(" ",n-e.width)+r[2].raw;else var n=da.calcIndentSize(r[0].join("")),t=ha.repeat(" ",Math.max(0,n-e.width));return new va.Text({value:t})});return new va.LiteralBlock({children:n})},_t=function(e){var r=ha.map(e,function(e){return new va.Text({value:e[2].raw})});return new va.LiteralBlock({children:r})},Wt=function(e){return Ia=e,!0},Nt=function(e){return Ia===e},Tt=function(e,r,n,t){var a=new va.LineBlock({children:[r].concat(n)}),i=[a].concat(t.children);return new va.LineBlock({children:i})},Mt=function(e,r){return r},Rt=function(e,r){return new va.LineBlock({children:[e].concat(_toConsumableArray(r))})},Pt="| ",Dt=peg$literalExpectation("| ",!1),qt=function(e){return new va.Line({children:e})},Ft=function(){return new va.Line({children:[]})},jt=function(e){return da.calcIndentSize(e)===ya.current()},Ot=function(e){return da.calcIndentSize(e)>ya.current()},zt=function(e){return ya.push(da.calcIndentSize(e)),!0},Ut=function(){return{width:ya.current(),offset:ya.diff()}},Qt=function(){return ya.pop(),!0},Ht=function(e){return da.isInlineMarkupPrefix(e)},Xt=function(e){return e},Vt=function(e,r,n){return!("*"===e&&"*"===r||da.isMatchPunctuations(e,n))},Zt=function(e){return new va.Paragraph({children:ha.flatten(mapByIndex(e,1))})},Yt=function(e,r){var n=mapByIndex(e,1);if(r){if("text"!==n[n.length-1].type)return n.concat(new ma({value:r}));n[n.length-1]=new ma({value:n[n.length-1].value+r})}return n},Gt=function(e,r){return new ma({value:mapByIndex(e,2).join("")+r})},Jt=function(e,r){var n=mapByIndex(e,2).join("");return ha.isNull(r)||(n+=r[1]),new ma({value:n})},Kt=function(e,r){var n=mapByIndex(e,2).join("")+r[1];return new ma({value:n})},ea=/^[A-Za-z]/,ra=peg$classExpectation([["A","Z"],["a","z"]],!1,!1),na=/^[\-_+:.]/,ta=peg$classExpectation(["-","_","+",":","."],!1,!1),aa=function(e,r){return ha.flatMap(e,function(e){return ha.compact(e)}).concat(r).join("")},ia=function(e,r,n){var t=[new va.Text({value:r.raw})],a=null;return ha.isNull(n)||(a=n[1].indent,t=t.concat(n[1].children)),new va.Directive({directive:e,indent:a,children:t})},pa=function(e,r){return ha.isNull(r)?new va.Directive({directive:e}):new va.Directive({directive:e,indent:r.indent,children:r.children})},oa=function(e,r){var n=ha.map(ha.reject(r,ha.isNull),function(r){var n=r[0],t=r[1].raw,a=ha.repeat(" ",n.length-e.width)+t;return new va.Text({value:a})});return new va.Directive({indent:e,children:n})},sa=function(e,r){return new va.Unknown({blanklines:e,children:ha.flatten(mapByIndex(r,1))})},la=0,ua=0,ca=[{line:1,column:1}],ga=0,fa=[],$a=0;if("startRule"in n){if(!(n.startRule in i))throw new Error("Can't start parsing from rule \""+n.startRule+'".');p=i[n.startRule]}var ha=r(0),da=r(1).default,va={};ha.forEach(r(4).default,function(e,r){function wrapped(r){e.apply(this,[Object.assign({},{position:location()},r)])}wrapped.prototype=e.prototype,va[r]=wrapped});var ma=va.Text,Aa=0,Ca=null,ka=null,wa=null,Ia=null,Ea=function(){var e=null,r=[],n=null;return{begin:function(){r.push(n),n=null,e=null},end:function(){n=r.pop(),ha.isNull(n)||(e=n.sequence.type)},set:function(r){n=r,e=n.sequence.type},isNext:function(e){return ha.isNull(n)||n.isNext(e)},isNextType:function(r){return ha.isNull(n)||e===r}}}(),La=function(){var e=[];return{push:function(r){e.push(Aa),Aa=r},pop:function(){Aa=e.pop()},ignore:function(e){Ca=e},lastIndentDiff:function(){return 0===e.length?Aa:Aa-e[e.length-1]}}}(),ya=function(){var e=-1,r=[];return{current:function(){return e},push:function(n){r.push(e),e=n},pop:function(){e=r.pop()},diff:function(){return 0===r.length?e:e-r[r.length-1]}}}(),xa=function(){var e=[],r=null;return{pushBullet:function(n){e.push(r),r=n},popBullet:function(){r=e.pop()},isSameBullet:function(e){return r===e}}}(),ba=function(){var e=[],r=-1;return{isSubSection:function(n,t){if(r===e.length-1){for(var a=0,i=e.length;a0){for(r=1,n=1;r\\]}༻༽᚜⁆⁾₎〉❩❫❭❯❱❳❵⟆⟧⟩⟫⟭⟯⦄⦆⦈⦊⦌⦎⦐⦒⦔⦖⦘⧙⧛⧽⸣⸥⸧⸩〉》」』】〕〗〙〛〞〟﴿︘︶︸︺︼︾﹀﹂﹄﹈﹚﹜﹞)]}⦆」»’”›⸃⸅⸊⸍⸝⸡‛‟«‘“‹⸂⸄⸉⸌⸜⸠‚„",o={},s={},l=0;l=s;)a+=o,t-=s;return a}};exports.default=A},function(e,exports,r){"use strict";function _toConsumableArray(e){if(Array.isArray(e)){for(var r=0,n=Array(e.length);rga&&(ga=la,fa=[]),fa.push(e))}function peg$buildStructuredError(e,r,n){return new peg$SyntaxError(peg$SyntaxError.buildMessage(e,r),e,r,n)}function peg$parseAlphanumericAscii(){var r;return o.test(e.charAt(la))?(r=e.charAt(la),la++):(r=a,0===$a&&peg$fail(s)),r}function peg$parseEof(){var r,n;return r=la,$a++,e.length>la?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(l)),$a--,n===a?r=void 0:(la=r,r=a),r}function peg$parseNewline(){var r,n,t,i;return 10===e.charCodeAt(la)?(r=u,la++):(r=a,0===$a&&peg$fail(c)),r===a&&(r=la,n=la,13===e.charCodeAt(la)?(t=g,la++):(t=a,0===$a&&peg$fail(f)),t!==a?(10===e.charCodeAt(la)?(i=u,la++):(i=a,0===$a&&peg$fail(c)),i===a&&(i=null),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a&&(ua=r,n=h(n)),r=n),r}function peg$parseWhitespace(){var r;return 32===e.charCodeAt(la)?(r=d,la++):(r=a,0===$a&&peg$fail(v)),r===a&&(11===e.charCodeAt(la)?(r=m,la++):(r=a,0===$a&&peg$fail(A)),r===a&&(12===e.charCodeAt(la)?(r=C,la++):(r=a,0===$a&&peg$fail(k)),r===a&&(9===e.charCodeAt(la)?(r=w,la++):(r=a,0===$a&&peg$fail(I))))),r}function peg$parseEndline(){var e;return e=peg$parseNewline(),e===a&&(e=peg$parseEof()),e}function peg$parseNormalizedToWhitespace(){var e;return e=peg$parseWhitespace(),e===a&&(e=peg$parseNewline()),e}function peg$parseNonspacechar(){var r,n,t,i;return r=la,n=la,t=la,$a++,i=peg$parseNormalizedToWhitespace(),$a--,i===a?t=void 0:(la=t,t=a),t!==a?(e.length>la?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(l)),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a&&(ua=r,n=E(n)),r=n}function peg$parseBlankLines(){var e,r,n,t,i,p,o,s,l;for(e=la,r=[],n=la,t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();if(t!==a)if((i=peg$parseNewline())!==a){for(p=la,$a++,o=la,s=[],l=peg$parseWhitespace();l!==a;)s.push(l),l=peg$parseWhitespace();s!==a?(l=peg$parseEndline(),l!==a?(s=[s,l],o=s):(la=o,o=a)):(la=o,o=a),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(t=[t,i,p],n=t):(la=n,n=a)}else la=n,n=a;else la=n,n=a;for(;n!==a;){for(r.push(n),n=la,t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();if(t!==a)if((i=peg$parseNewline())!==a){for(p=la,$a++,o=la,s=[],l=peg$parseWhitespace();l!==a;)s.push(l),l=peg$parseWhitespace();s!==a?(l=peg$parseEndline(),l!==a?(s=[s,l],o=s):(la=o,o=a)):(la=o,o=a),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(t=[t,i,p],n=t):(la=n,n=a)}else la=n,n=a;else la=n,n=a}if(r!==a){for(n=la,t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();t!==a?(i=peg$parseEndline(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=e,r=L(r,n),e=r):(la=e,e=a)}else la=e,e=a;return e}function peg$parseRawLine(){var r,n,t,i,p;for(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);return n!==a?(t=peg$parseEndline(),t!==a?(ua=r,n=y(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseNotEmptyRawLine(){var r,n,t,i,p;if(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);else n=a;return n!==a?(t=peg$parseEndline(),t!==a?(ua=r,n=y(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseUnknownLine(){var e,r;return e=la,r=peg$parseNotEmptyRawLine(),r!==a&&(ua=e,r=x(r)),e=r}function peg$parseEndIndent(){var r,n,t,i,p,o,s;if(r=la,$a++,n=la,t=peg$parseBlankLines(),t===a&&(t=null),t!==a){for(i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=la,$a++,o=peg$parseNormalizedToWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(ua=la,s=b(i),s=s?void 0:a,s!==a?(t=[t,i,p,o,s],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a)):(la=n,n=a)}else la=n,n=a;return $a--,n!==a?(la=r,r=void 0):r=a,r}function peg$parseSameIndent(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(ua=la,n=B(r),n=n?void 0:a,n!==a?(ua=e,r=S(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseDeepIndent(){var e,r,n;if(e=la,r=[],(n=peg$parseWhitespace())!==a)for(;n!==a;)r.push(n),n=peg$parseWhitespace();else r=a;return r!==a?(ua=la,n=_(r),n=n?void 0:a,n!==a?(ua=e,r=W(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseShallowIndent(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(ua=la,n=N(r),n=n?void 0:a,n!==a?(ua=e,r=W(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseSameOrDeepIndent(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(ua=la,n=T(r),n=n?void 0:a,n!==a?(ua=e,r=W(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseFail$(){var r,n,t;return r=la,ua=la,n=M(),n=n?void 0:a,n!==a?(e.length>la?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(l)),t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parsePopIndent$(){var e;return ua=la,e=R(),e=e?void 0:a}function peg$parseFailbackIndent$(){var e,r,n;return e=la,r=peg$parsePopIndent$(),r!==a?(n=peg$parseFail$(),n!==a?(r=[r,n],e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parsePushCommonIndent$(){var e,r,n,t,i,p,o,s,l,u,c,g,f;if(e=la,r=la,$a++,n=peg$parseDeepIndent(),$a--,n!==a?(la=r,r=void 0):r=a,r!==a){if(n=la,$a++,t=la,i=[],(p=peg$parseWhitespace())!==a)for(;p!==a;)i.push(p),p=peg$parseWhitespace();else i=a;if(i!==a)if((p=peg$parseRawLine())!==a)if(ua=la,o=P(i),(o=o?void 0:a)!==a){for(s=[],l=la,u=[],c=peg$parseWhitespace();c!==a;)u.push(c),c=peg$parseWhitespace();if(u!==a?(c=peg$parseNewline(),c!==a?(u=[u,c],l=u):(la=l,l=a)):(la=l,l=a),l===a)if(l=la,u=la,$a++,c=peg$parseDeepIndent(),$a--,c!==a?(la=u,u=void 0):u=a,u!==a){if(c=[],(g=peg$parseWhitespace())!==a)for(;g!==a;)c.push(g),g=peg$parseWhitespace();else c=a;c!==a?(g=peg$parseRawLine(),g!==a?(ua=la,f=D(i,c),f=f?void 0:a,f!==a?(u=[u,c,g,f],l=u):(la=l,l=a)):(la=l,l=a)):(la=l,l=a)}else la=l,l=a;for(;l!==a;){for(s.push(l),l=la,u=[],c=peg$parseWhitespace();c!==a;)u.push(c),c=peg$parseWhitespace();if(u!==a?(c=peg$parseNewline(),c!==a?(u=[u,c],l=u):(la=l,l=a)):(la=l,l=a),l===a)if(l=la,u=la,$a++,c=peg$parseDeepIndent(),$a--,c!==a?(la=u,u=void 0):u=a,u!==a){if(c=[],(g=peg$parseWhitespace())!==a)for(;g!==a;)c.push(g),g=peg$parseWhitespace();else c=a;c!==a?(g=peg$parseRawLine(),g!==a?(ua=la,f=D(i,c),f=f?void 0:a,f!==a?(u=[u,c,g,f],l=u):(la=l,l=a)):(la=l,l=a)):(la=l,l=a)}else la=l,l=a}s!==a?(ua=la,l=q(i),l=l?void 0:a,l!==a?(i=[i,p,o,s,l],t=i):(la=t,t=a)):(la=t,t=a)}else la=t,t=a;else la=t,t=a;else la=t,t=a;$a--,t!==a?(la=n,n=void 0):n=a,n!==a?(ua=e,r=F(),e=r):(la=e,e=a)}else la=e,e=a;return e}function peg$parsePushFirstIndent$(){var e,r,n,t,i,p;return e=la,r=la,$a++,n=la,t=peg$parseDeepIndent(),t!==a?(i=peg$parseNonspacechar(),i!==a?(ua=la,p=j(t,i),p=p?void 0:a,p!==a?(t=[t,i,p],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),$a--,n!==a?(la=r,r=void 0):r=a,r!==a&&(ua=e,r=F()),e=r}function peg$parseSkipIndentCheck$(){var e;return ua=la,e=O(),e=e?void 0:a}function peg$parseDocument(){var e,r,n;for(e=la,r=[],n=peg$parseSection(),n===a&&(n=peg$parseTransition())===a&&(n=peg$parseBodyElement())===a&&(n=peg$parseUnknown());n!==a;)r.push(n),(n=peg$parseSection())===a&&(n=peg$parseTransition())===a&&(n=peg$parseBodyElement())===a&&(n=peg$parseUnknown());return r!==a?(n=peg$parseBlankLines(),n!==a?(ua=e,r=z(r,n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseSection(){var e,r,n,t,i,p,o;if(e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a)if(peg$parseIsSubSection()!==a)if(n=peg$parseSectionWithOverline(),n===a&&(n=peg$parseSectionWithoutOverline()),n!==a){for(t=[],i=la,p=peg$parseIsSubSection(),p!==a?(o=peg$parseSection(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=la,$a++,o=peg$parseIsSection(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=peg$parseTransition(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=la,$a++,o=peg$parseIsSection(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=peg$parseBodyElement(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a)));i!==a;)t.push(i),i=la,p=peg$parseIsSubSection(),p!==a?(o=peg$parseSection(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=la,$a++,o=peg$parseIsSection(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=peg$parseTransition(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=la,$a++,o=peg$parseIsSection(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=peg$parseBodyElement(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a)));t!==a?(ua=e,r=U(r,n,t),e=r):(la=e,e=a)}else la=e,e=a;else la=e,e=a;else la=e,e=a;return e}function peg$parseIsSection(){var e,r,n,t,i,p,o;return e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(t=peg$parseSectionLine(),t!==a?(i=la,$a++,p=peg$parseBlankLines(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseRawLine(),p!==a?(o=peg$parseSectionLine(),o!==a?(n=[n,t,i,p,o],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e===a&&(e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(t=peg$parseRawLine(),t!==a?(i=peg$parseSectionLine(),i!==a?(n=[n,t,i],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a),e}function peg$parseIsSubSection(){var e,r,n,t,i,p,o,s;return e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(t=peg$parseSectionLine(),t!==a?(i=la,$a++,p=peg$parseBlankLines(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseRawLine(),p!==a?(o=peg$parseSectionLine(),o!==a?(ua=la,s=Q(t,o),s=s?void 0:a,s!==a?(n=[n,t,i,p,o,s],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e===a&&(e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(t=peg$parseRawLine(),t!==a?(i=peg$parseSectionLine(),i!==a?(ua=la,p=H(t,i),p=p?void 0:a,p!==a?(n=[n,t,i,p],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a),e}function peg$parseSectionWithOverline(){var e,r,n,t,i,p,o;if(e=la,r=la,$a++,n=la,t=peg$parseSectionLine(),t!==a?(i=la,$a++,p=peg$parseBlankLines(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseRawLine(),p!==a?(o=peg$parseSectionLine(),o!==a?(t=[t,i,p,o],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),$a--,n!==a?(la=r,r=void 0):r=a,r!==a)if((n=peg$parseSectionLine())!==a){for(t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();t!==a?(i=peg$parseOnelineParagraph(),i!==a?(p=peg$parseNewline(),p!==a?(o=peg$parseSectionLine(),o!==a?(ua=e,r=X(n,i,o),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;else la=e,e=a;return e}function peg$parseSectionWithoutOverline(){var e,r,n,t,i,p;return e=la,r=la,$a++,n=la,t=la,$a++,i=peg$parseBlankLines(),$a--,i===a?t=void 0:(la=t,t=a),t!==a?(i=peg$parseRawLine(),i!==a?(p=peg$parseSectionLine(),p!==a?(t=[t,i,p],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),$a--,n!==a?(la=r,r=void 0):r=a,r!==a?(n=peg$parseOnelineParagraph(),n!==a?(t=peg$parseNewline(),t!==a?(i=peg$parseSectionLine(),i!==a?(ua=e,r=V(n,i),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseSectionLine(){var r,n,t,i,p;if(r=la,n=[],33===e.charCodeAt(la)?(t=Z,la++):(t=a,0===$a&&peg$fail(G)),t===a&&(34===e.charCodeAt(la)?(t=J,la++):(t=a,0===$a&&peg$fail(K)),t===a&&(35===e.charCodeAt(la)?(t=Y,la++):(t=a,0===$a&&peg$fail(ee)),t===a&&(36===e.charCodeAt(la)?(t=re,la++):(t=a,0===$a&&peg$fail(ne)),t===a&&(37===e.charCodeAt(la)?(t=te,la++):(t=a,0===$a&&peg$fail(ae)),t===a&&(38===e.charCodeAt(la)?(t=ie,la++):(t=a,0===$a&&peg$fail(pe)),t===a&&(39===e.charCodeAt(la)?(t=oe,la++):(t=a,0===$a&&peg$fail(se)),t===a&&(40===e.charCodeAt(la)?(t=le,la++):(t=a,0===$a&&peg$fail(ue)),t===a&&(41===e.charCodeAt(la)?(t=ce,la++):(t=a,0===$a&&peg$fail(ge)),t===a&&(42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t===a&&(43===e.charCodeAt(la)?(t=he,la++):(t=a,0===$a&&peg$fail(de)),t===a&&(44===e.charCodeAt(la)?(t=ve,la++):(t=a,0===$a&&peg$fail(me)),t===a&&(45===e.charCodeAt(la)?(t=Ae,la++):(t=a,0===$a&&peg$fail(Ce)),t===a&&(46===e.charCodeAt(la)?(t=ke,la++):(t=a,0===$a&&peg$fail(we)),t===a&&(47===e.charCodeAt(la)?(t=Ie,la++):(t=a,0===$a&&peg$fail(Ee)),t===a&&(58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t===a&&(59===e.charCodeAt(la)?(t=xe,la++):(t=a,0===$a&&peg$fail(be)),t===a&&(60===e.charCodeAt(la)?(t=Be,la++):(t=a,0===$a&&peg$fail(Se)),t===a&&(61===e.charCodeAt(la)?(t=_e,la++):(t=a,0===$a&&peg$fail(We)),t===a&&(62===e.charCodeAt(la)?(t=Ne,la++):(t=a,0===$a&&peg$fail(Te)),t===a&&(63===e.charCodeAt(la)?(t=Me,la++):(t=a,0===$a&&peg$fail(Re)),t===a&&(64===e.charCodeAt(la)?(t=Pe,la++):(t=a,0===$a&&peg$fail(De)),t===a&&(91===e.charCodeAt(la)?(t=qe,la++):(t=a,0===$a&&peg$fail(Fe)),t===a&&(92===e.charCodeAt(la)?(t=je,la++):(t=a,0===$a&&peg$fail(Oe)),t===a&&(93===e.charCodeAt(la)?(t=ze,la++):(t=a,0===$a&&peg$fail(Ue)),t===a&&(94===e.charCodeAt(la)?(t=Qe,la++):(t=a,0===$a&&peg$fail(He)),t===a&&(95===e.charCodeAt(la)?(t=Xe,la++):(t=a,0===$a&&peg$fail(Ve)),t===a&&(96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ge)),t===a&&(123===e.charCodeAt(la)?(t=Je,la++):(t=a,0===$a&&peg$fail(Ke)),t===a&&(124===e.charCodeAt(la)?(t=Ye,la++):(t=a,0===$a&&peg$fail(er)),t===a&&(125===e.charCodeAt(la)?(t=rr,la++):(t=a,0===$a&&peg$fail(nr)),t===a&&(126===e.charCodeAt(la)?(t=tr,la++):(t=a,0===$a&&peg$fail(ar))))))))))))))))))))))))))))))))),t!==a)for(;t!==a;)n.push(t),33===e.charCodeAt(la)?(t=Z,la++):(t=a,0===$a&&peg$fail(G)),t===a&&(34===e.charCodeAt(la)?(t=J,la++):(t=a,0===$a&&peg$fail(K)),t===a&&(35===e.charCodeAt(la)?(t=Y,la++):(t=a,0===$a&&peg$fail(ee)),t===a&&(36===e.charCodeAt(la)?(t=re,la++):(t=a,0===$a&&peg$fail(ne)),t===a&&(37===e.charCodeAt(la)?(t=te,la++):(t=a,0===$a&&peg$fail(ae)),t===a&&(38===e.charCodeAt(la)?(t=ie,la++):(t=a,0===$a&&peg$fail(pe)),t===a&&(39===e.charCodeAt(la)?(t=oe,la++):(t=a,0===$a&&peg$fail(se)),t===a&&(40===e.charCodeAt(la)?(t=le,la++):(t=a,0===$a&&peg$fail(ue)),t===a&&(41===e.charCodeAt(la)?(t=ce,la++):(t=a,0===$a&&peg$fail(ge)),t===a&&(42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t===a&&(43===e.charCodeAt(la)?(t=he,la++):(t=a,0===$a&&peg$fail(de)),t===a&&(44===e.charCodeAt(la)?(t=ve,la++):(t=a,0===$a&&peg$fail(me)),t===a&&(45===e.charCodeAt(la)?(t=Ae,la++):(t=a,0===$a&&peg$fail(Ce)),t===a&&(46===e.charCodeAt(la)?(t=ke,la++):(t=a,0===$a&&peg$fail(we)),t===a&&(47===e.charCodeAt(la)?(t=Ie,la++):(t=a,0===$a&&peg$fail(Ee)),t===a&&(58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t===a&&(59===e.charCodeAt(la)?(t=xe,la++):(t=a,0===$a&&peg$fail(be)),t===a&&(60===e.charCodeAt(la)?(t=Be,la++):(t=a,0===$a&&peg$fail(Se)),t===a&&(61===e.charCodeAt(la)?(t=_e,la++):(t=a,0===$a&&peg$fail(We)),t===a&&(62===e.charCodeAt(la)?(t=Ne,la++):(t=a,0===$a&&peg$fail(Te)),t===a&&(63===e.charCodeAt(la)?(t=Me,la++):(t=a,0===$a&&peg$fail(Re)),t===a&&(64===e.charCodeAt(la)?(t=Pe,la++):(t=a,0===$a&&peg$fail(De)),t===a&&(91===e.charCodeAt(la)?(t=qe,la++):(t=a,0===$a&&peg$fail(Fe)),t===a&&(92===e.charCodeAt(la)?(t=je,la++):(t=a,0===$a&&peg$fail(Oe)),t===a&&(93===e.charCodeAt(la)?(t=ze,la++):(t=a,0===$a&&peg$fail(Ue)),t===a&&(94===e.charCodeAt(la)?(t=Qe,la++):(t=a,0===$a&&peg$fail(He)),t===a&&(95===e.charCodeAt(la)?(t=Xe,la++):(t=a,0===$a&&peg$fail(Ve)),t===a&&(96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ge)),t===a&&(123===e.charCodeAt(la)?(t=Je,la++):(t=a,0===$a&&peg$fail(Ke)),t===a&&(124===e.charCodeAt(la)?(t=Ye,la++):(t=a,0===$a&&peg$fail(er)),t===a&&(125===e.charCodeAt(la)?(t=rr,la++):(t=a,0===$a&&peg$fail(nr)),t===a&&(126===e.charCodeAt(la)?(t=tr,la++):(t=a,0===$a&&peg$fail(ar)))))))))))))))))))))))))))))))));else n=a;if(n!==a)if(ua=la,t=ir(n),(t=t?void 0:a)!==a){for(i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=peg$parseNewline(),p!==a?(ua=r,n=pr(n),r=n):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;return r}function peg$parseTransition(){var e,r,n,t,i,p,o;if(e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a)if((n=peg$parseTransitionMarker())!==a){for(t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();t!==a?(i=peg$parseNewline(),i!==a?(p=la,$a++,o=peg$parseBlankLines(),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(ua=e,r=or(r,n),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;else la=e,e=a;return e}function peg$parseTransitionMarker(){var r,n,t;if(r=la,n=[],33===e.charCodeAt(la)?(t=Z,la++):(t=a,0===$a&&peg$fail(G)),t===a&&(34===e.charCodeAt(la)?(t=J,la++):(t=a,0===$a&&peg$fail(K)),t===a&&(35===e.charCodeAt(la)?(t=Y,la++):(t=a,0===$a&&peg$fail(ee)),t===a&&(36===e.charCodeAt(la)?(t=re,la++):(t=a,0===$a&&peg$fail(ne)),t===a&&(37===e.charCodeAt(la)?(t=te,la++):(t=a,0===$a&&peg$fail(ae)),t===a&&(38===e.charCodeAt(la)?(t=ie,la++):(t=a,0===$a&&peg$fail(pe)),t===a&&(39===e.charCodeAt(la)?(t=oe,la++):(t=a,0===$a&&peg$fail(se)),t===a&&(40===e.charCodeAt(la)?(t=le,la++):(t=a,0===$a&&peg$fail(ue)),t===a&&(41===e.charCodeAt(la)?(t=ce,la++):(t=a,0===$a&&peg$fail(ge)),t===a&&(42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t===a&&(43===e.charCodeAt(la)?(t=he,la++):(t=a,0===$a&&peg$fail(de)),t===a&&(44===e.charCodeAt(la)?(t=ve,la++):(t=a,0===$a&&peg$fail(me)),t===a&&(45===e.charCodeAt(la)?(t=Ae,la++):(t=a,0===$a&&peg$fail(Ce)),t===a&&(46===e.charCodeAt(la)?(t=ke,la++):(t=a,0===$a&&peg$fail(we)),t===a&&(47===e.charCodeAt(la)?(t=Ie,la++):(t=a,0===$a&&peg$fail(Ee)),t===a&&(58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t===a&&(59===e.charCodeAt(la)?(t=xe,la++):(t=a,0===$a&&peg$fail(be)),t===a&&(60===e.charCodeAt(la)?(t=Be,la++):(t=a,0===$a&&peg$fail(Se)),t===a&&(61===e.charCodeAt(la)?(t=_e,la++):(t=a,0===$a&&peg$fail(We)),t===a&&(62===e.charCodeAt(la)?(t=Ne,la++):(t=a,0===$a&&peg$fail(Te)),t===a&&(63===e.charCodeAt(la)?(t=Me,la++):(t=a,0===$a&&peg$fail(Re)),t===a&&(64===e.charCodeAt(la)?(t=Pe,la++):(t=a,0===$a&&peg$fail(De)),t===a&&(91===e.charCodeAt(la)?(t=qe,la++):(t=a,0===$a&&peg$fail(Fe)),t===a&&(92===e.charCodeAt(la)?(t=je,la++):(t=a,0===$a&&peg$fail(Oe)),t===a&&(93===e.charCodeAt(la)?(t=ze,la++):(t=a,0===$a&&peg$fail(Ue)),t===a&&(94===e.charCodeAt(la)?(t=Qe,la++):(t=a,0===$a&&peg$fail(He)),t===a&&(95===e.charCodeAt(la)?(t=Xe,la++):(t=a,0===$a&&peg$fail(Ve)),t===a&&(96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ge)),t===a&&(123===e.charCodeAt(la)?(t=Je,la++):(t=a,0===$a&&peg$fail(Ke)),t===a&&(124===e.charCodeAt(la)?(t=Ye,la++):(t=a,0===$a&&peg$fail(er)),t===a&&(125===e.charCodeAt(la)?(t=rr,la++):(t=a,0===$a&&peg$fail(nr)),t===a&&(126===e.charCodeAt(la)?(t=tr,la++):(t=a,0===$a&&peg$fail(ar))))))))))))))))))))))))))))))))),t!==a)for(;t!==a;)n.push(t),33===e.charCodeAt(la)?(t=Z,la++):(t=a,0===$a&&peg$fail(G)),t===a&&(34===e.charCodeAt(la)?(t=J,la++):(t=a,0===$a&&peg$fail(K)),t===a&&(35===e.charCodeAt(la)?(t=Y,la++):(t=a,0===$a&&peg$fail(ee)),t===a&&(36===e.charCodeAt(la)?(t=re,la++):(t=a,0===$a&&peg$fail(ne)),t===a&&(37===e.charCodeAt(la)?(t=te,la++):(t=a,0===$a&&peg$fail(ae)),t===a&&(38===e.charCodeAt(la)?(t=ie,la++):(t=a,0===$a&&peg$fail(pe)),t===a&&(39===e.charCodeAt(la)?(t=oe,la++):(t=a,0===$a&&peg$fail(se)),t===a&&(40===e.charCodeAt(la)?(t=le,la++):(t=a,0===$a&&peg$fail(ue)),t===a&&(41===e.charCodeAt(la)?(t=ce,la++):(t=a,0===$a&&peg$fail(ge)),t===a&&(42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t===a&&(43===e.charCodeAt(la)?(t=he,la++):(t=a,0===$a&&peg$fail(de)),t===a&&(44===e.charCodeAt(la)?(t=ve,la++):(t=a,0===$a&&peg$fail(me)),t===a&&(45===e.charCodeAt(la)?(t=Ae,la++):(t=a,0===$a&&peg$fail(Ce)),t===a&&(46===e.charCodeAt(la)?(t=ke,la++):(t=a,0===$a&&peg$fail(we)),t===a&&(47===e.charCodeAt(la)?(t=Ie,la++):(t=a,0===$a&&peg$fail(Ee)),t===a&&(58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t===a&&(59===e.charCodeAt(la)?(t=xe,la++):(t=a,0===$a&&peg$fail(be)),t===a&&(60===e.charCodeAt(la)?(t=Be,la++):(t=a,0===$a&&peg$fail(Se)),t===a&&(61===e.charCodeAt(la)?(t=_e,la++):(t=a,0===$a&&peg$fail(We)),t===a&&(62===e.charCodeAt(la)?(t=Ne,la++):(t=a,0===$a&&peg$fail(Te)),t===a&&(63===e.charCodeAt(la)?(t=Me,la++):(t=a,0===$a&&peg$fail(Re)),t===a&&(64===e.charCodeAt(la)?(t=Pe,la++):(t=a,0===$a&&peg$fail(De)),t===a&&(91===e.charCodeAt(la)?(t=qe,la++):(t=a,0===$a&&peg$fail(Fe)),t===a&&(92===e.charCodeAt(la)?(t=je,la++):(t=a,0===$a&&peg$fail(Oe)),t===a&&(93===e.charCodeAt(la)?(t=ze,la++):(t=a,0===$a&&peg$fail(Ue)),t===a&&(94===e.charCodeAt(la)?(t=Qe,la++):(t=a,0===$a&&peg$fail(He)),t===a&&(95===e.charCodeAt(la)?(t=Xe,la++):(t=a,0===$a&&peg$fail(Ve)),t===a&&(96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ge)),t===a&&(123===e.charCodeAt(la)?(t=Je,la++):(t=a,0===$a&&peg$fail(Ke)),t===a&&(124===e.charCodeAt(la)?(t=Ye,la++):(t=a,0===$a&&peg$fail(er)),t===a&&(125===e.charCodeAt(la)?(t=rr,la++):(t=a,0===$a&&peg$fail(nr)),t===a&&(126===e.charCodeAt(la)?(t=tr,la++):(t=a,0===$a&&peg$fail(ar)))))))))))))))))))))))))))))))));else n=a;return n!==a?(ua=la,t=sr(n),t=t?void 0:a,t!==a?(ua=r,n=lr(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseBodyElementExceptBlockQuote(){var e,r,n;return e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a?(n=peg$parseDirective(),n===a&&(n=peg$parseComment())===a&&(n=peg$parseLiteralBlock())===a&&(n=peg$parseBulletList())===a&&(n=peg$parseEnumeratedList())===a&&(n=peg$parseDefinitionList())===a&&(n=peg$parseLineBlock())===a&&(n=peg$parseParagraph()),n!==a?(ua=e,r=ur(r,n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseBodyElement(){var e,r;return e=la,r=peg$parseBodyElementExceptBlockQuote(),r===a&&(r=peg$parseBlockQuote()),r!==a&&(ua=e,r=cr(r)),e=r}function peg$parseListItem(){var e,r;return e=la,r=peg$parseNonEmptyListItem(),r===a&&(r=peg$parseEmptyListItem()),r!==a&&(ua=e,r=gr(r)),e=r}function peg$parsePushListItemIndent$(){var e,r,n,t,i,p,o;if(e=la,r=la,$a++,n=la,t=[],(i=peg$parseWhitespace())!==a)for(;i!==a;)t.push(i),i=peg$parseWhitespace();else t=a;return t!==a?(i=la,$a++,p=peg$parseNonspacechar(),$a--,p!==a?(la=i,i=void 0):i=a,i!==a?(p=peg$parseSkipIndentCheck$(),p!==a?(ua=la,o=fr(t),o=o?void 0:a,o!==a?(t=[t,i,p,o],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),$a--,n!==a?(la=r,r=void 0):r=a,r===a&&(r=la,$a++,n=la,t=peg$parseBlankLines(),t!==a?(i=peg$parsePushFirstIndent$(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),$a--,n!==a?(la=r,r=void 0):r=a),r!==a&&(ua=e,r=$r()),e=r}function peg$parseNonEmptyListItem(){var e,r,n,t;if(e=la,(r=peg$parsePushListItemIndent$())!==a){if(n=[],(t=peg$parseBodyElement())!==a)for(;t!==a;)n.push(t),t=peg$parseBodyElement();else n=a;n===a&&(n=peg$parseFailbackIndent$()),n!==a?(t=peg$parsePopIndent$(),t!==a?(ua=e,r=hr(r,n),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseEmptyListItem(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(n=peg$parseEndline(),n!==a?(ua=e,r=dr(),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseBulletList(){var e,r,n,t,i;if(e=la,(r=peg$parsePushBullet$())!==a){if(n=[],(t=peg$parseBulletListItem())!==a)for(;t!==a;)n.push(t),t=peg$parseBulletListItem();else n=a;n===a&&(n=la,t=peg$parsePopBullet$(),t!==a?(i=peg$parseFail$(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a)),n!==a?(t=peg$parsePopBullet$(),t!==a?(ua=e,r=vr(n),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseBullet(){var r;return mr.test(e.charAt(la))?(r=e.charAt(la),la++):(r=a,0===$a&&peg$fail(Ar)),r}function peg$parseSameBullet(){var e,r,n;return e=la,r=peg$parseBullet(),r!==a?(ua=la,n=Cr(r),n=n?void 0:a,n!==a?(ua=e,r=kr(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parsePushBullet$(){var e,r,n,t,i,p;return e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(t=peg$parseSameIndent(),t!==a?(i=peg$parseBullet(),i!==a?(ua=la,p=wr(i),p=p?void 0:a,p!==a?(n=[n,t,i,p],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e}function peg$parsePopBullet$(){var e;return ua=la,e=Ir(),e=e?void 0:a}function peg$parseBulletListItem(){var e,r,n,t,i;return e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a?(n=peg$parseSameIndent(),n!==a?(t=peg$parseSameBullet(),t!==a?(i=peg$parseListItem(),i!==a?(ua=e,r=Er(r,t,i),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseEnumeratedList(){var e,r,n,t,i,p;if(e=la,(r=peg$parseBeginEnumeratedList$())!==a){if(n=[],(t=peg$parseEnumeratedListItem())!==a)for(;t!==a;)n.push(t),t=peg$parseEnumeratedListItem();else n=a;n===a&&(n=la,t=peg$parseEndEnumeratedList$(),t!==a?(i=peg$parseFail$(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a)),n!==a?(t=peg$parseEndEnumeratedList$(),t!==a?(i=la,$a++,p=peg$parseBlankLines(),$a--,p!==a?(la=i,i=void 0):i=a,i!==a?(ua=e,r=Lr(n),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseBeginEnumeratedList$(){var e,r,n,t;return e=la,$a++,r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a?(ua=la,t=yr(),t=t?void 0:a,t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e}function peg$parseEndEnumeratedList$(){var e;return ua=la,e=xr(),e=e?void 0:a}function peg$parseEnumeratedListItem(){var e,r,n,t,i;return e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a?(n=peg$parseSameIndent(),n!==a?(t=peg$parseNextEnumerator(),t!==a?(i=peg$parseListItem(),i!==a?(ua=e,r=br(r,t,i),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseEnumerator(){var r,n,t,i;return r=la,n=peg$parseEnumerationSequence(),n!==a?(46===e.charCodeAt(la)?(t=ke,la++):(t=a,0===$a&&peg$fail(we)),t!==a?(ua=r,n=Br(n),r=n):(la=r,r=a)):(la=r,r=a),r===a&&(r=la,n=peg$parseEnumerationSequence(),n!==a?(41===e.charCodeAt(la)?(t=ce,la++):(t=a,0===$a&&peg$fail(ge)),t!==a?(ua=r,n=Sr(n),r=n):(la=r,r=a)):(la=r,r=a),r===a&&(r=la,40===e.charCodeAt(la)?(n=le,la++):(n=a,0===$a&&peg$fail(ue)),n!==a?(t=peg$parseEnumerationSequence(),t!==a?(41===e.charCodeAt(la)?(i=ce,la++):(i=a,0===$a&&peg$fail(ge)),i!==a?(ua=r,n=_r(t),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a))),r}function peg$parseNextEnumerator(){var e,r,n;return e=la,r=peg$parseEnumerator(),r!==a?(ua=la,n=Wr(r),n=n?void 0:a,n!==a?(ua=e,r=Nr(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseEnumerationSequence(){var e,r,n;return e=peg$parseAutoEnumerationSequence(),e===a&&(e=la,r=peg$parseAcceptNumeral$(),r!==a?(n=peg$parseArabicNumeralsEnumerationSequence(),n!==a?(ua=e,r=Nr(n),e=r):(la=e,e=a)):(la=e,e=a),e===a&&(e=la,r=peg$parseAcceptUpperCaseRoman$(),r!==a?(n=peg$parseUpperCaseRomanEnumerationSequence(),n!==a?(ua=e,r=Nr(n),e=r):(la=e,e=a)):(la=e,e=a),e===a&&(e=la,r=peg$parseAcceptLowerCaseRoman$(),r!==a?(n=peg$parseLowerCaseRomanEnumerationSequence(),n!==a?(ua=e,r=Nr(n),e=r):(la=e,e=a)):(la=e,e=a),e===a&&(e=la,r=peg$parseAcceptUpperCaseAlphabet$(),r!==a?(n=peg$parseUpperCaseAlphabetEnumerationSequence(),n!==a?(ua=e,r=Nr(n),e=r):(la=e,e=a)):(la=e,e=a),e===a&&(e=la,r=peg$parseAcceptLowerCaseAlphabet$(),r!==a?(n=peg$parseLowerCaseAlphabetEnumerationSequence(),n!==a?(ua=e,r=Nr(n),e=r):(la=e,e=a)):(la=e,e=a)))))),e}function peg$parseAcceptNumeral$(){var e;return ua=la,e=Tr(),e=e?void 0:a}function peg$parseAcceptUpperCaseRoman$(){var e;return ua=la,e=Mr(),e=e?void 0:a}function peg$parseAcceptLowerCaseRoman$(){var e;return ua=la,e=Rr(),e=e?void 0:a}function peg$parseAcceptUpperCaseAlphabet$(){var e;return ua=la,e=Pr(),e=e?void 0:a}function peg$parseAcceptLowerCaseAlphabet$(){var e;return ua=la,e=Dr(),e=e?void 0:a}function peg$parseAutoEnumerationSequence(){var r,n;return r=la,35===e.charCodeAt(la)?(n=Y,la++):(n=a,0===$a&&peg$fail(ee)),n!==a&&(ua=r,n=qr()),r=n}function peg$parseArabicNumeralsEnumerationSequence(){var r,n,t,i;if(r=la,Fr.test(e.charAt(la))?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(jr)),n!==a){for(t=[],Or.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(zr));i!==a;)t.push(i),Or.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(zr));t!==a?(ua=r,n=Ur(n,t),r=n):(la=r,r=a)}else la=r,r=a;return r===a&&(r=la,Qr.test(e.charAt(la))?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(Hr)),n!==a&&(ua=r,n=Xr(n)),r=n),r}function peg$parseUpperCaseAlphabetEnumerationSequence(){var r,n;return r=la,Vr.test(e.charAt(la))?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(Zr)),n!==a&&(ua=r,n=Gr(n)),r=n}function peg$parseLowerCaseAlphabetEnumerationSequence(){var r,n;return r=la,Jr.test(e.charAt(la))?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(Kr)),n!==a&&(ua=r,n=Yr(n)),r=n}function peg$parseUpperCaseRomanEnumerationSequence(){var r,n,t;if(r=la,n=[],en.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(rn)),t!==a)for(;t!==a;)n.push(t),en.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(rn));else n=a;return n!==a?(ua=la,t=nn(n),t=t?void 0:a,t!==a?(ua=r,n=tn(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseLowerCaseRomanEnumerationSequence(){var r,n,t;if(r=la,n=[],an.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(pn)),t!==a)for(;t!==a;)n.push(t),an.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(pn));else n=a;return n!==a?(ua=la,t=on(n),t=t?void 0:a,t!==a?(ua=r,n=sn(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseDefinitionList(){var e,r,n,t;if(e=la,r=[],(n=peg$parseDefinitionListItem())!==a)for(;n!==a;)r.push(n),n=peg$parseDefinitionListItem();else r=a;return r!==a?(n=la,$a++,t=peg$parseBlankLines(),$a--,t!==a?(la=n,n=void 0):n=a,n!==a?(ua=e,r=ln(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseDefinitionListItem(){var r,n,t,i,p,o,s,l,u;if(r=la,n=peg$parseBlankLines(),n===a&&(n=null),n!==a)if(peg$parseSameIndent()!==a)if((t=peg$parseDefinitionTerm())!==a){if(i=[],p=la,o=[],(s=peg$parseWhitespace())!==a)for(;s!==a;)o.push(s),s=peg$parseWhitespace();else o=a;if(o!==a)if(58===e.charCodeAt(la)?(s=Le,la++):(s=a,0===$a&&peg$fail(ye)),s!==a){if(l=[],(u=peg$parseWhitespace())!==a)for(;u!==a;)l.push(u),u=peg$parseWhitespace();else l=a;l!==a?(u=peg$parseDefinitionClassifier(),u!==a?(o=[o,s,l,u],p=o):(la=p,p=a)):(la=p,p=a)}else la=p,p=a;else la=p,p=a;for(;p!==a;){if(i.push(p),p=la,o=[],(s=peg$parseWhitespace())!==a)for(;s!==a;)o.push(s),s=peg$parseWhitespace();else o=a;if(o!==a)if(58===e.charCodeAt(la)?(s=Le,la++):(s=a,0===$a&&peg$fail(ye)),s!==a){if(l=[],(u=peg$parseWhitespace())!==a)for(;u!==a;)l.push(u),u=peg$parseWhitespace();else l=a;l!==a?(u=peg$parseDefinitionClassifier(),u!==a?(o=[o,s,l,u],p=o):(la=p,p=a)):(la=p,p=a)}else la=p,p=a;else la=p,p=a}if(i!==a){for(p=[],o=peg$parseWhitespace();o!==a;)p.push(o),o=peg$parseWhitespace();p!==a?(o=peg$parseNewline(),o!==a?(s=peg$parsePushFirstIndent$(),s!==a?(l=peg$parseDefinitionListBody(),l===a&&(l=peg$parseFailbackIndent$()),l!==a?(u=peg$parsePopIndent$(),u!==a?(ua=r,n=un(n,t,i,s,l),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a}else la=r,r=a;else la=r,r=a;else la=r,r=a;return r}function peg$parseDefinitionTerm(){var e,r,n;if(e=la,r=[],n=peg$parseInlineMarkupWithoutNewline(),n===a&&(n=peg$parseDefinitionTermText()),n!==a)for(;n!==a;)r.push(n),(n=peg$parseInlineMarkupWithoutNewline())===a&&(n=peg$parseDefinitionTermText());else r=a;return r!==a&&(ua=e,r=cn(r)),e=r}function peg$parseDefinitionListBody(){var e,r,n;if(e=la,r=[],(n=peg$parseBodyElement())!==a)for(;n!==a;)r.push(n),n=peg$parseBodyElement();else r=a;return r!==a&&(ua=e,r=gn(r)),e=r}function peg$parseDefinitionClassifierBeggining(){var r,n,t,i,p;if(r=la,n=[],(t=peg$parseWhitespace())!==a)for(;t!==a;)n.push(t),t=peg$parseWhitespace();else n=a;if(n!==a)if(58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t!==a){if(i=[],(p=peg$parseWhitespace())!==a)for(;p!==a;)i.push(p),p=peg$parseWhitespace();else i=a;i!==a?(n=[n,t,i],r=n):(la=r,r=a)}else la=r,r=a;else la=r,r=a;return r}function peg$parseDefinitionTermText(){var r,n,t,i,p,o,s;if(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseDefinitionClassifierBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=la,$a++,s=peg$parseInlineMarkupBeggining(),$a--,s===a?o=void 0:(la=o,o=a),o!==a?(e.length>la?(s=e.charAt(la),la++):(s=a,0===$a&&peg$fail(l)),s!==a?(i=[i,p,o,s],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseDefinitionClassifierBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(o=la,$a++,s=peg$parseInlineMarkupBeggining(),$a--,s===a?o=void 0:(la=o,o=a),o!==a?(e.length>la?(s=e.charAt(la),la++):(s=a,0===$a&&peg$fail(l)),s!==a?(i=[i,p,o,s],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);else n=a;return n!==a&&(ua=r,n=fn(n)),r=n}function peg$parseDefinitionClassifier(){var e,r,n;if(e=la,r=[],n=peg$parseInlineMarkupWithoutNewline(),n===a&&(n=peg$parseDefinitionTermText()),n!==a)for(;n!==a;)r.push(n),(n=peg$parseInlineMarkupWithoutNewline())===a&&(n=peg$parseDefinitionTermText());else r=a;return r!==a&&(ua=e,r=$n(r)),e=r}function peg$parseBlockQuote(){var e;return e=peg$parseNestedBlockQuote(),e===a&&(e=peg$parseSimpleBlockQuote()),e}function peg$parseNestedBlockQuote(){var e,r,n,t,i,p,o,s;return e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a?(n=peg$parsePushFirstIndent$(),n!==a?(t=peg$parseInnerBlockQuote(),t!==a?(i=la,$a++,p=la,o=peg$parseBlankLines(),o!==a?(s=peg$parseShallowIndent(),s!==a?(o=[o,s],p=o):(la=p,p=a)):(la=p,p=a),p===a&&(p=peg$parseFailbackIndent$()),$a--,p!==a?(la=i,i=void 0):i=a,i!==a?(p=peg$parsePopIndent$(),p!==a?(o=peg$parseBlockQuote(),o!==a?(ua=e,r=hn(r,n,t,o),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseInnerBlockQuote(){var e,r,n;return e=la,r=peg$parseBlockQuoteBody(),r===a&&(r=peg$parseFailbackIndent$()),r!==a?(n=peg$parseAttribution(),n===a&&(n=null),n!==a?(ua=e,r=dn(r,n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseSimpleBlockQuote(){var e,r,n,t,i,p;return e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a?(n=peg$parsePushFirstIndent$(),n!==a?(t=peg$parseBlockQuoteBody(),t===a&&(t=peg$parseFailbackIndent$()),t!==a?(i=peg$parseAttribution(),i===a&&(i=null),i!==a?(p=peg$parsePopIndent$(),p!==a?(ua=e,r=vn(r,n,t,i),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseBlockQuoteBody(){var e,r,n,t,i,p;if(e=la,(r=peg$parseBodyElementExceptBlockQuote())!==a){for(n=[],t=la,i=la,$a++,p=peg$parseAttribution(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseBodyElement(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseAttribution(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseBodyElement(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);n!==a?(ua=e,r=mn(r,n),e=r):(la=e,e=a)}else la=e,e=a;return e}function peg$parseAttribution(){var r,n,t,i,p,o,s,u;if(r=la,(n=peg$parseBlankLines())!==a)if(peg$parseSameIndent()!==a)if(e.substr(la,3)===An?(t=An,la+=3):(t=a,0===$a&&peg$fail(Cn)),t===a&&(e.substr(la,2)===kn?(t=kn,la+=2):(t=a,0===$a&&peg$fail(wn)),t===a&&(8212===e.charCodeAt(la)?(t=In,la++):(t=a,0===$a&&peg$fail(En)))),t!==a){for(i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=la,$a++,o=la,s=la,$a++,u=peg$parseEndline(),$a--,u===a?s=void 0:(la=s,s=a),s!==a?(e.length>la?(u=e.charAt(la),la++):(u=a,0===$a&&peg$fail(l)),u!==a?(s=[s,u],o=s):(la=o,o=a)):(la=o,o=a),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(o=peg$parseAttributionBodyWithIndent(),o===a&&(o=peg$parseAttributionBodyWithoutIndent()),o!==a?(ua=r,n=Ln(n,o),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;else la=r,r=a;return r}function peg$parsePushAttributionIndent$(){var e,r,n,t;return e=la,$a++,r=la,n=peg$parseRawLine(),n!==a?(t=peg$parsePushFirstIndent$(),t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e}function peg$parseAttributionBodyWithIndent(){var e,r,n,t,i;return e=la,r=peg$parsePushAttributionIndent$(),r!==a?(n=peg$parseSkipIndentCheck$(),n!==a?(t=peg$parseParagraph(),t===a&&(t=peg$parseFailbackIndent$()),t!==a?(i=peg$parsePopIndent$(),i!==a?(ua=e,r=yn(t),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseAttributionBodyWithoutIndent(){var e,r,n;return e=la,r=peg$parseSkipIndentCheck$(),r!==a?(n=peg$parseParagraph(),n!==a?(ua=e,r=xn(n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseComment(){var e;return e=peg$parseCommentStartFromFirstLine(),e===a&&(e=peg$parseCommentStartFromNextLine()),e}function peg$parseCommentStartFromFirstLine(){var r,n,t,i,p,o,s,l,u;if(r=la,(n=peg$parseSameIndent())!==a)if(e.substr(la,2)===bn?(t=bn,la+=2):(t=a,0===$a&&peg$fail(Bn)),t!==a){if(i=[],(p=peg$parseWhitespace())!==a)for(;p!==a;)i.push(p),p=peg$parseWhitespace();else i=a;i!==a?(p=la,$a++,o=peg$parseNonspacechar(),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(o=peg$parseRawLine(),o!==a?(s=la,l=peg$parseBlankLines(),l===a&&(l=null),l!==a?(u=peg$parseCommentBlock(),u!==a?(l=[l,u],s=l):(la=s,s=a)):(la=s,s=a),s===a&&(s=null),s!==a?(ua=r,n=Sn(o,s),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;return r}function peg$parseCommentStartFromNextLine(){var r,n,t,i,p,o;if(r=la,(n=peg$parseSameIndent())!==a)if(e.substr(la,2)===bn?(t=bn,la+=2):(t=a,0===$a&&peg$fail(Bn)),t!==a){for(i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=peg$parseNewline(),p!==a?(o=peg$parseCommentBlock(),o===a&&(o=null),o!==a?(ua=r,n=_n(o),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;return r}function peg$parseCommentBlock(){var e,r,n,t,i,p;if(e=la,(r=peg$parsePushCommonIndent$())!==a){for(n=[],t=la,i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();if(i!==a?(p=peg$parseNewline(),p!==a?(ua=t,i=Wn(r),t=i):(la=t,t=a)):(la=t,t=a),t===a&&(t=la,i=peg$parseSameOrDeepIndent(),i!==a?(p=peg$parseNotEmptyRawLine(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a)),t!==a)for(;t!==a;){for(n.push(t),t=la,i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=peg$parseNewline(),p!==a?(ua=t,i=Wn(r),t=i):(la=t,t=a)):(la=t,t=a),t===a&&(t=la,i=peg$parseSameOrDeepIndent(),i!==a?(p=peg$parseNotEmptyRawLine(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a))}else n=a;n===a&&(n=peg$parseFailbackIndent$()),n!==a?(t=peg$parsePopIndent$(),t!==a?(ua=e,r=Nn(r,n),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseInlineMarkupFollowing(){var r,n,t;return r=peg$parseEndline(),r===a&&(r=la,e.length>la?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(l)),n!==a?(ua=la,t=Tn(n),t=t?void 0:a,t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a)),r}function peg$parseInlineMarkup(){var e;return e=peg$parseStrongEmphasis(),e===a&&(e=peg$parseEmphasis())===a&&(e=peg$parseInlineLiteral())===a&&(e=peg$parseInlineInternalTarget())===a&&(e=peg$parseHyperlinkReference())===a&&(e=peg$parseInterpretedText())===a&&(e=peg$parseSubstitutionReference())===a&&(e=peg$parseFootnoteReference())===a&&(e=peg$parseCitationReference()),e}function peg$parseInlineMarkupWithoutNewline(){var e;return e=peg$parseStrongEmphasisWithoutNewline(),e===a&&(e=peg$parseEmphasisWithoutNewline())===a&&(e=peg$parseInlineLiteralWithoutNewline()),e}function peg$parseMarkupEndString(){var r,n,t,i,p,o;return r=la,ua=la,n=Mn(),n=n?void 0:a,n!==a?(e.length>la?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(l)),t!==a?(ua=la,i=Rn(t),i=i?void 0:a,i!==a?(n=[n,t,i],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r===a&&(r=la,ua=la,n=Pn(),n=n?void 0:a,n!==a?(t=la,e.length>la?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(l)),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t!==a?(ua=la,i=Dn(t),i=i?void 0:a,i!==a?(n=[n,t,i],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r===a&&(r=la,ua=la,n=qn(),n=n?void 0:a,n!==a?(t=la,e.length>la?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(l)),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),t!==a?(ua=la,i=Dn(t),i=i?void 0:a,i!==a?(n=[n,t,i],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a))),r}function peg$parseMarkupTextWithoutNewline(){var r,n,t,i,p,o,s,u,c,g,f;if(r=la,n=[],t=la,i=la,$a++,p=peg$parseNewline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=la,s=la,$a++,u=peg$parseNormalizedToWhitespace(),$a--,u===a?s=void 0:(la=s,s=a),s!==a?(ua=la,u=Fn(),u=u?void 0:a,u===a&&(u=la,$a++,92===e.charCodeAt(la)?(c=je,la++):(c=a,0===$a&&peg$fail(Oe)),$a--,c===a?u=void 0:(la=u,u=a)),u!==a?(e.length>la?(c=e.charAt(la),la++):(c=a,0===$a&&peg$fail(l)),c!==a?(g=peg$parseMarkupEndString(),g!==a?(f=peg$parseInlineMarkupFollowing(),f!==a?(s=[s,u,c,g,f],o=s):(la=o,o=a)):(la=o,o=a)):(la=o,o=a)):(la=o,o=a)):(la=o,o=a),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseNewline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=la,s=la,$a++,u=peg$parseNormalizedToWhitespace(),$a--,u===a?s=void 0:(la=s,s=a),s!==a?(ua=la,u=Fn(),u=u?void 0:a,u===a&&(u=la,$a++,92===e.charCodeAt(la)?(c=je,la++):(c=a,0===$a&&peg$fail(Oe)),$a--,c===a?u=void 0:(la=u,u=a)),u!==a?(e.length>la?(c=e.charAt(la),la++):(c=a,0===$a&&peg$fail(l)),c!==a?(g=peg$parseMarkupEndString(),g!==a?(f=peg$parseInlineMarkupFollowing(),f!==a?(s=[s,u,c,g,f],o=s):(la=o,o=a)):(la=o,o=a)):(la=o,o=a)):(la=o,o=a)):(la=o,o=a),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);else n=a;return n!==a&&(ua=r,n=jn(n)),r=n}function peg$parseMarkupTextWithoutIndent(){var e,r,n;return e=la,r=peg$parseMarkupTextWithoutNewline(),r!==a?(n=peg$parseNewline(),n===a&&(n=null),n!==a?(ua=e,r=On(r,n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseMarkupTailWithoutNewline(){var r,n,t,i,p,o,s,u;return r=la,n=peg$parseMarkupTextWithoutNewline(),n!==a?(t=la,$a++,i=peg$parseEndline(),$a--,i===a?t=void 0:(la=t,t=a),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(e.length>la?(p=e.charAt(la),la++):(p=a,0===$a&&peg$fail(l)),p!==a?(o=peg$parseMarkupEndString(),o!==a?(s=la,$a++,u=peg$parseInlineMarkupFollowing(),$a--,u!==a?(la=s,s=void 0):s=a,s!==a?(ua=r,n=zn(n,p),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseMarkupTail(){var r,n,t,i,p,o,s,u,c;if(r=la,n=peg$parseMarkupTextWithoutIndent(),n===a&&(n=null),n!==a){for(t=[],i=la,p=peg$parseSameIndent(),p!==a?(o=peg$parseMarkupTextWithoutIndent(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a);i!==a;)t.push(i),i=la,p=peg$parseSameIndent(),p!==a?(o=peg$parseMarkupTextWithoutIndent(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a);t!==a?(i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseNormalizedToWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(s=peg$parseMarkupEndString(),s!==a?(u=la,$a++,c=peg$parseInlineMarkupFollowing(),$a--,c!==a?(la=u,u=void 0):u=a,u!==a?(ua=r,n=Un(n,t,o),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;return r}function peg$parseEmphasis(){var r,n,t,i,p,o;return r=la,n=la,42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t!==a?(i=la,$a++,42===e.charCodeAt(la)?(p=fe,la++):(p=a,0===$a&&peg$fail($e)),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseNormalizedToWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(t=[t,i,p],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=Qn(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=Hn(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseEmphasisWithoutNewline(){var r,n,t,i,p,o;return r=la,n=la,42===e.charCodeAt(la)?(t=fe,la++):(t=a,0===$a&&peg$fail($e)),t!==a?(i=la,$a++,42===e.charCodeAt(la)?(p=fe,la++):(p=a,0===$a&&peg$fail($e)),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseNormalizedToWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(t=[t,i,p],n=t):(la=n,n=a)):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=Qn(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTailWithoutNewline(),i!==a?(ua=r,n=Hn(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseStrongEmphasis(){var r,n,t,i,p;return r=la,n=la,e.substr(la,2)===Xn?(t=Xn,la+=2):(t=a,0===$a&&peg$fail(Vn)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=Zn(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=Gn(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseStrongEmphasisWithoutNewline(){var r,n,t,i,p;return r=la,n=la,e.substr(la,2)===Xn?(t=Xn,la+=2):(t=a,0===$a&&peg$fail(Vn)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=Zn(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTailWithoutNewline(),i!==a?(ua=r,n=Gn(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseInterpretedText(){var r,n,t,i,p,o,s,u,c;if(r=la,n=la,58===e.charCodeAt(la)?(t=Le,la++):(t=a,0===$a&&peg$fail(ye)),t!==a){if(i=[],p=la,o=la,$a++,s=peg$parseEndline(),$a--,s===a?o=void 0:(la=o,o=a),o!==a?(s=la,$a++,u=peg$parseWhitespace(),$a--,u===a?s=void 0:(la=s,s=a),s!==a?(u=la,$a++,58===e.charCodeAt(la)?(c=Le,la++):(c=a,0===$a&&peg$fail(ye)),$a--,c===a?u=void 0:(la=u,u=a),u!==a?(e.length>la?(c=e.charAt(la),la++):(c=a,0===$a&&peg$fail(l)),c!==a?(o=[o,s,u,c],p=o):(la=p,p=a)):(la=p,p=a)):(la=p,p=a)):(la=p,p=a),p!==a)for(;p!==a;)i.push(p),p=la,o=la,$a++,s=peg$parseEndline(),$a--,s===a?o=void 0:(la=o,o=a),o!==a?(s=la,$a++,u=peg$parseWhitespace(),$a--,u===a?s=void 0:(la=s,s=a),s!==a?(u=la,$a++,58===e.charCodeAt(la)?(c=Le,la++):(c=a,0===$a&&peg$fail(ye)),$a--,c===a?u=void 0:(la=u,u=a),u!==a?(e.length>la?(c=e.charAt(la),la++):(c=a,0===$a&&peg$fail(l)),c!==a?(o=[o,s,u,c],p=o):(la=p,p=a)):(la=p,p=a)):(la=p,p=a)):(la=p,p=a);else i=a;i!==a?(58===e.charCodeAt(la)?(p=Le,la++):(p=a,0===$a&&peg$fail(ye)),p!==a?(t=[t,i,p],n=t):(la=n,n=a)):(la=n,n=a)}else la=n,n=a;return n===a&&(n=null),n!==a?(t=la,96===e.charCodeAt(la)?(i=Ze,la++):(i=a,0===$a&&peg$fail(Ge)),i!==a?(p=la,$a++,o=peg$parseNormalizedToWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t!==a?(ua=la,i=Jn(n),i=i?void 0:a,i!==a?(p=peg$parseMarkupTail(),p!==a?(ua=r,n=Kn(n,p),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseInlineLiteral(){var r,n,t,i,p;return r=la,n=la,e.substr(la,2)===Yn?(t=Yn,la+=2):(t=a,0===$a&&peg$fail(et)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=rt(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=nt(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseInlineLiteralWithoutNewline(){var r,n,t,i,p;return r=la,n=la,e.substr(la,2)===Yn?(t=Yn,la+=2):(t=a,0===$a&&peg$fail(et)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=rt(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTailWithoutNewline(),i!==a?(ua=r,n=nt(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseSubstitutionReference(){var r,n,t,i,p;return r=la,n=la,124===e.charCodeAt(la)?(t=Ye,la++):(t=a,0===$a&&peg$fail(er)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=tt(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=at(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseInlineInternalTarget(){var r,n,t,i,p;return r=la,n=la,e.substr(la,2)===it?(t=it,la+=2):(t=a,0===$a&&peg$fail(pt)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=ot(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=st(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseFootnoteLabel(){var r,n,t,i;if(r=la,n=[],Or.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(zr)),t!==a)for(;t!==a;)n.push(t),Or.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(zr));else n=a;return n===a&&(n=la,35===e.charCodeAt(la)?(t=Y,la++):(t=a,0===$a&&peg$fail(ee)),t!==a?(i=peg$parseReferenceName(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n===a&&(35===e.charCodeAt(la)?(n=Y,la++):(n=a,0===$a&&peg$fail(ee)),n===a&&(42===e.charCodeAt(la)?(n=fe,la++):(n=a,0===$a&&peg$fail($e))))),n!==a&&(ua=r,n=lt(n)),r=n}function peg$parseFootnoteReference(){var r,n,t,i,p,o;return r=la,91===e.charCodeAt(la)?(n=qe,la++):(n=a,0===$a&&peg$fail(Fe)),n!==a?(t=peg$parseFootnoteLabel(),t!==a?(e.substr(la,2)===ut?(i=ut,la+=2):(i=a,0===$a&&peg$fail(ct)),i!==a?(p=la,$a++,o=peg$parseInlineMarkupFollowing(),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(ua=r,n=gt(t),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseCitationReference(){var r,n,t,i,p,o;return r=la,91===e.charCodeAt(la)?(n=qe,la++):(n=a,0===$a&&peg$fail(Fe)),n!==a?(t=peg$parseReferenceName(),t!==a?(e.substr(la,2)===ut?(i=ut,la+=2):(i=a,0===$a&&peg$fail(ct)),i!==a?(p=la,$a++,o=peg$parseInlineMarkupFollowing(),$a--,o!==a?(la=p,p=void 0):p=a,p!==a?(ua=r,n=ft(t),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseHyperlinkReference(){var e;return e=peg$parseAnonymousHyperlinkReference(),e===a&&(e=peg$parseAnonymousSimpleHyperlinkReference())===a&&(e=peg$parseNamedHyperlinkReference())===a&&(e=peg$parseNamedSimpleHyperlinkReference()),e}function peg$parseNamedHyperlinkReference(){var r,n,t,i,p;return r=la,n=la,96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ge)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=$t(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=ht(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseNamedSimpleHyperlinkReference(){var r,n,t,i,p;return r=la,n=peg$parseHyperlinkReferenceName(),n!==a?(95===e.charCodeAt(la)?(t=Xe,la++):(t=a,0===$a&&peg$fail(Ve)),t!==a?(i=la,$a++,p=peg$parseInlineMarkupFollowing(),$a--,p!==a?(la=i,i=void 0):i=a,i!==a?(ua=r,n=dt(n),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseAnonymousHyperlinkReference(){var r,n,t,i,p;return r=la,n=la,96===e.charCodeAt(la)?(t=Ze,la++):(t=a,0===$a&&peg$fail(Ge)),t!==a?(i=la,$a++,p=peg$parseNormalizedToWhitespace(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a?(ua=la,t=vt(),t=t?void 0:a,t!==a?(i=peg$parseMarkupTail(),i!==a?(ua=r,n=mt(i),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseAnonymousSimpleHyperlinkReference(){var r,n,t,i,p;return r=la,n=peg$parseHyperlinkReferenceName(),n!==a?(e.substr(la,2)===At?(t=At,la+=2):(t=a,0===$a&&peg$fail(Ct)),t!==a?(i=la,$a++,p=peg$parseInlineMarkupFollowing(),$a--,p!==a?(la=i,i=void 0):i=a,i!==a?(ua=r,n=kt(n),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseReferenceName(){var r,n,t,i;if(r=la,(n=peg$parseAlphanumericAscii())!==a){if(t=[],i=peg$parseAlphanumericAscii(),i===a&&(wt.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(It))),i!==a)for(;i!==a;)t.push(i),(i=peg$parseAlphanumericAscii())===a&&(wt.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(It)));else t=a;t!==a?(ua=r,n=Et(n,t),r=n):(la=r,r=a)}else la=r,r=a;return r}function peg$parseHyperlinkReferenceName(){var r,n,t,i;if(r=la,(n=peg$parseAlphanumericAscii())!==a){if(t=[],i=peg$parseAlphanumericAscii(),i===a&&(Lt.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(yt))),i!==a)for(;i!==a;)t.push(i),(i=peg$parseAlphanumericAscii())===a&&(Lt.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(yt)));else t=a;t!==a?(ua=r,n=Et(n,t),r=n):(la=r,r=a)}else la=r,r=a;return r}function peg$parseLiteralBlock(){var e,r,n;return e=la,r=peg$parseSameIndent(),r!==a?(n=peg$parseLiteralBlockWithoutIndent(),n!==a?(ua=e,r=xt(n),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseLiteralBlockWithoutIndent(){var e;return e=peg$parseIndentedLiteralBlockWithoutIndent(),e===a&&(e=peg$parseQuotedLiteralBlockWithoutIndent()),e}function peg$parseIndentedLiteralBlockWithoutIndent(){var r,n,t,i,p,o,s,l,u,c,g,f,h;if(r=la,e.substr(la,2)===bt?(n=bt,la+=2):(n=a,0===$a&&peg$fail(Bt)),n!==a){for(t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();if(t!==a)if((i=peg$parseNewline())!==a)if(peg$parseBlankLines()!==a)if((p=peg$parsePushCommonIndent$())!==a){for(o=[],s=la,l=[],u=peg$parseWhitespace();u!==a;)l.push(u),u=peg$parseWhitespace();if(l!==a?(u=peg$parseNewline(),u!==a?(c=la,$a++,g=la,f=peg$parseBlankLines(),f===a&&(f=null),f!==a?(h=peg$parseShallowIndent(),h!==a?(f=[f,h],g=f):(la=g,g=a)):(la=g,g=a),$a--,g===a?c=void 0:(la=c,c=a),c!==a?(l=[l,u,c],s=l):(la=s,s=a)):(la=s,s=a)):(la=s,s=a),s===a)if(s=la,l=la,$a++,u=peg$parseSameOrDeepIndent(),$a--,u!==a?(la=l,l=void 0):l=a,l!==a){if(u=[],(c=peg$parseWhitespace())!==a)for(;c!==a;)u.push(c),c=peg$parseWhitespace();else u=a;u!==a?(c=peg$parseRawLine(),c!==a?(l=[l,u,c],s=l):(la=s,s=a)):(la=s,s=a)}else la=s,s=a;if(s!==a)for(;s!==a;){for(o.push(s),s=la,l=[],u=peg$parseWhitespace();u!==a;)l.push(u),u=peg$parseWhitespace();if(l!==a?(u=peg$parseNewline(),u!==a?(c=la,$a++,g=la,f=peg$parseBlankLines(),f===a&&(f=null),f!==a?(h=peg$parseShallowIndent(),h!==a?(f=[f,h],g=f):(la=g,g=a)):(la=g,g=a),$a--,g===a?c=void 0:(la=c,c=a),c!==a?(l=[l,u,c],s=l):(la=s,s=a)):(la=s,s=a)):(la=s,s=a),s===a)if(s=la,l=la,$a++,u=peg$parseSameOrDeepIndent(),$a--,u!==a?(la=l,l=void 0):l=a,l!==a){if(u=[],(c=peg$parseWhitespace())!==a)for(;c!==a;)u.push(c),c=peg$parseWhitespace();else u=a;u!==a?(c=peg$parseRawLine(),c!==a?(l=[l,u,c],s=l):(la=s,s=a)):(la=s,s=a)}else la=s,s=a}else o=a;o===a&&(o=peg$parseFailbackIndent$()),o!==a?(s=peg$parsePopIndent$(),s!==a?(ua=r,n=St(p,o),r=n):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;else la=r,r=a;else la=r,r=a}else la=r,r=a;return r}function peg$parseQuotedLiteralBlockWithoutIndent(){var r,n,t,i,p,o,s,l,u;if(r=la,e.substr(la,2)===bt?(n=bt,la+=2):(n=a,0===$a&&peg$fail(Bt)),n!==a){for(t=[],i=peg$parseWhitespace();i!==a;)t.push(i),i=peg$parseWhitespace();if(t!==a)if((i=peg$parseNewline())!==a)if(peg$parseBlankLines()!==a)if(peg$parseSetQuoting$()!==a){if(p=[],o=la,s=peg$parseSameIndent(),s!==a?(l=peg$parseIsValidQuoting$(),l!==a?(u=peg$parseNotEmptyRawLine(),u!==a?(s=[s,l,u],o=s):(la=o,o=a)):(la=o,o=a)):(la=o,o=a),o!==a)for(;o!==a;)p.push(o),o=la,s=peg$parseSameIndent(),s!==a?(l=peg$parseIsValidQuoting$(),l!==a?(u=peg$parseNotEmptyRawLine(),u!==a?(s=[s,l,u],o=s):(la=o,o=a)):(la=o,o=a)):(la=o,o=a);else p=a;p!==a?(o=la,$a++,s=peg$parseBlankLines(),$a--,s!==a?(la=o,o=void 0):o=a,o!==a?(ua=r,n=_t(p),r=n):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;else la=r,r=a;else la=r,r=a}else la=r,r=a;return r}function peg$parseQuoting(){var r;return 33===e.charCodeAt(la)?(r=Z,la++):(r=a,0===$a&&peg$fail(G)),r===a&&(34===e.charCodeAt(la)?(r=J,la++):(r=a,0===$a&&peg$fail(K)),r===a&&(35===e.charCodeAt(la)?(r=Y,la++):(r=a,0===$a&&peg$fail(ee)),r===a&&(36===e.charCodeAt(la)?(r=re,la++):(r=a,0===$a&&peg$fail(ne)),r===a&&(37===e.charCodeAt(la)?(r=te,la++):(r=a,0===$a&&peg$fail(ae)),r===a&&(38===e.charCodeAt(la)?(r=ie,la++):(r=a,0===$a&&peg$fail(pe)),r===a&&(39===e.charCodeAt(la)?(r=oe,la++):(r=a,0===$a&&peg$fail(se)),r===a&&(40===e.charCodeAt(la)?(r=le,la++):(r=a,0===$a&&peg$fail(ue)),r===a&&(41===e.charCodeAt(la)?(r=ce,la++):(r=a,0===$a&&peg$fail(ge)),r===a&&(42===e.charCodeAt(la)?(r=fe,la++):(r=a,0===$a&&peg$fail($e)),r===a&&(43===e.charCodeAt(la)?(r=he,la++):(r=a,0===$a&&peg$fail(de)),r===a&&(44===e.charCodeAt(la)?(r=ve,la++):(r=a,0===$a&&peg$fail(me)),r===a&&(45===e.charCodeAt(la)?(r=Ae,la++):(r=a,0===$a&&peg$fail(Ce)),r===a&&(46===e.charCodeAt(la)?(r=ke,la++):(r=a,0===$a&&peg$fail(we)),r===a&&(47===e.charCodeAt(la)?(r=Ie,la++):(r=a,0===$a&&peg$fail(Ee)),r===a&&(58===e.charCodeAt(la)?(r=Le,la++):(r=a,0===$a&&peg$fail(ye)),r===a&&(59===e.charCodeAt(la)?(r=xe,la++):(r=a,0===$a&&peg$fail(be)),r===a&&(60===e.charCodeAt(la)?(r=Be,la++):(r=a,0===$a&&peg$fail(Se)),r===a&&(61===e.charCodeAt(la)?(r=_e,la++):(r=a,0===$a&&peg$fail(We)),r===a&&(62===e.charCodeAt(la)?(r=Ne,la++):(r=a,0===$a&&peg$fail(Te)),r===a&&(63===e.charCodeAt(la)?(r=Me,la++):(r=a,0===$a&&peg$fail(Re)),r===a&&(64===e.charCodeAt(la)?(r=Pe,la++):(r=a,0===$a&&peg$fail(De)),r===a&&(91===e.charCodeAt(la)?(r=qe,la++):(r=a,0===$a&&peg$fail(Fe)),r===a&&(92===e.charCodeAt(la)?(r=je,la++):(r=a,0===$a&&peg$fail(Oe)),r===a&&(93===e.charCodeAt(la)?(r=ze,la++):(r=a,0===$a&&peg$fail(Ue)),r===a&&(94===e.charCodeAt(la)?(r=Qe,la++):(r=a,0===$a&&peg$fail(He)),r===a&&(95===e.charCodeAt(la)?(r=Xe,la++):(r=a,0===$a&&peg$fail(Ve)),r===a&&(96===e.charCodeAt(la)?(r=Ze,la++):(r=a,0===$a&&peg$fail(Ge)),r===a&&(123===e.charCodeAt(la)?(r=Je,la++):(r=a,0===$a&&peg$fail(Ke)),r===a&&(124===e.charCodeAt(la)?(r=Ye,la++):(r=a,0===$a&&peg$fail(er)),r===a&&(125===e.charCodeAt(la)?(r=rr,la++):(r=a,0===$a&&peg$fail(nr)),r===a&&(126===e.charCodeAt(la)?(r=tr,la++):(r=a,0===$a&&peg$fail(ar))))))))))))))))))))))))))))))))),r}function peg$parseSetQuoting$(){var e,r,n,t,i;return e=la,$a++,r=la,n=peg$parseSameIndent(),n!==a?(t=peg$parseQuoting(),t!==a?(ua=la,i=Wt(t),i=i?void 0:a,i!==a?(n=[n,t,i],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e}function peg$parseIsValidQuoting$(){var e,r,n,t;return e=la,$a++,r=la,n=peg$parseQuoting(),n!==a?(ua=la,t=Nt(n),t=t?void 0:a,t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a),$a--,r!==a?(la=e,e=void 0):e=a,e}function peg$parseLineBlock(){var e;return e=peg$parseNestedLineBlock(),e===a&&(e=peg$parseSimpleLineBlock()),e}function peg$parseNestedLineBlock(){var e,r,n,t,i,p;if(e=la,(r=peg$parsePushLineBlockIndent$())!==a)if((n=peg$parseLine())!==a){for(t=[],i=peg$parseLine(),i===a&&(i=peg$parseLineBlock());i!==a;)t.push(i),(i=peg$parseLine())===a&&(i=peg$parseLineBlock());t!==a?(i=peg$parsePopLineBlockIndent$(),i!==a?(p=peg$parseLineBlock(),p!==a?(ua=e,r=Tt(r,n,t,p),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;else la=e,e=a;return e}function peg$parseSimpleLineBlock(){var e,r,n,t;return e=la,r=peg$parsePushLineBlockIndent$(),r!==a?(n=peg$parseLineBolockMain(),n===a&&(n=peg$parseFailbackLineBlockIndent$()),n!==a?(t=peg$parsePopLineBlockIndent$(),t!==a?(ua=e,r=Mt(r,n),e=r):(la=e,e=a)):(la=e,e=a)):(la=e,e=a),e}function peg$parseLineBolockMain(){var e,r,n,t,i;if(e=la,(r=peg$parseLine())!==a){for(n=[],t=peg$parseLine(),t===a&&(t=peg$parseLineBlock());t!==a;)n.push(t),(t=peg$parseLine())===a&&(t=peg$parseLineBlock());n!==a?(t=la,$a++,i=peg$parseBlankLines(),$a--,i!==a?(la=t,t=void 0):t=a,t!==a?(ua=e,r=Rt(r,n),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseLine(){var e;return e=peg$parseNonEmptyLine(),e===a&&(e=peg$parseEmptyLine()),e}function peg$parseNonEmptyLine(){var r,n,t,i,p,o;return r=la,n=peg$parseSameIndent(),n!==a?(e.substr(la,2)===Pt?(t=Pt,la+=2):(t=a,0===$a&&peg$fail(Dt)),t!==a?(i=peg$parseSameLineBlockIndent(),i!==a?(p=peg$parseOnelineParagraph(),p!==a?(o=peg$parseNewline(),o!==a?(ua=r,n=qt(p),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r}function peg$parseEmptyLine(){var r,n,t,i,p;if(r=la,(n=peg$parseSameIndent())!==a)if(124===e.charCodeAt(la)?(t=Ye,la++):(t=a,0===$a&&peg$fail(er)),t!==a){for(i=[],p=peg$parseWhitespace();p!==a;)i.push(p),p=peg$parseWhitespace();i!==a?(p=peg$parseNewline(),p!==a?(ua=r,n=Ft(),r=n):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;return r}function peg$parseSameLineBlockIndent(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(ua=la,n=jt(r),n=n?void 0:a,n!==a?(ua=e,r=W(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseDeepLineBlockIndent(){var e,r,n;for(e=la,r=[],n=peg$parseWhitespace();n!==a;)r.push(n),n=peg$parseWhitespace();return r!==a?(ua=la,n=Ot(r),n=n?void 0:a,n!==a?(ua=e,r=W(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parsePushLineBlockIndent$(){var r,n,t,i,p,o,s,l;for(r=la,n=la,$a++,t=la,i=[],p=peg$parseEmptyLine();p!==a;)i.push(p),p=peg$parseEmptyLine();return i!==a?(p=peg$parseSameIndent(),p!==a?(e.substr(la,2)===Pt?(o=Pt,la+=2):(o=a,0===$a&&peg$fail(Dt)),o!==a?(s=peg$parseDeepLineBlockIndent(),s!==a?(ua=la,l=zt(s),l=l?void 0:a,l!==a?(i=[i,p,o,s,l],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),$a--,t!==a?(la=n,n=void 0):n=a,n!==a&&(ua=r,n=Ut()),r=n}function peg$parsePopLineBlockIndent$(){var e;return ua=la,e=Qt(),e=e?void 0:a}function peg$parseFailbackLineBlockIndent$(){var e,r,n;return e=la,r=peg$parsePopLineBlockIndent$(),r!==a?(n=peg$parseFail$(),n!==a?(r=[r,n],e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseInlineMarkupPreceding(){var r,n,t;return r=la,e.length>la?(n=e.charAt(la),la++):(n=a,0===$a&&peg$fail(l)),n!==a?(ua=la,t=Ht(n),t=t?void 0:a,t!==a?(ua=r,n=Xt(n),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseInlineMarkupStartString(){var r;return e.substr(la,2)===Xn?(r=Xn,la+=2):(r=a,0===$a&&peg$fail(Vn)),r===a&&(42===e.charCodeAt(la)?(r=fe,la++):(r=a,0===$a&&peg$fail($e)),r===a&&(e.substr(la,2)===Yn?(r=Yn,la+=2):(r=a,0===$a&&peg$fail(et)),r===a&&(96===e.charCodeAt(la)?(r=Ze,la++):(r=a,0===$a&&peg$fail(Ge)),r===a&&(124===e.charCodeAt(la)?(r=Ye,la++):(r=a,0===$a&&peg$fail(er)),r===a&&(e.substr(la,2)===it?(r=it,la+=2):(r=a,0===$a&&peg$fail(pt))))))),r}function peg$parseInlineMarkupBeggining(){var r,n,t,i,p,o,s;return r=la,n=peg$parseInlineMarkupPreceding(),n!==a?(t=peg$parseInlineMarkupStartString(),t!==a?(i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseWhitespace(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(ua=la,s=Vt(n,t,o),s=s?void 0:a,s!==a?(n=[n,t,i,p,o,s],r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a),r===a&&(r=la,n=peg$parseInlineMarkupPreceding(),n!==a?(t=peg$parseInterpretedText(),t===a&&(t=peg$parseFootnoteReference())===a&&(t=peg$parseCitationReference())===a&&(t=peg$parseAnonymousSimpleHyperlinkReference())===a&&(t=peg$parseNamedSimpleHyperlinkReference()),t!==a?(n=[n,t],r=n):(la=r,r=a)):(la=r,r=a)),r}function peg$parseParagraph(){var e,r,n,t,i,p;if(e=la,r=[],n=la,t=peg$parseSameIndent(),t!==a?(i=peg$parseParagraphBlock(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a)for(;n!==a;)r.push(n),n=la,t=peg$parseSameIndent(),t!==a?(i=peg$parseParagraphBlock(),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a);else r=a;return r!==a?(n=la,$a++,t=la,i=peg$parseLiteralBlockWithoutIndent(),i!==a?(p=peg$parseSkipIndentCheck$(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t===a&&(t=peg$parseBlankLines())===a&&(t=peg$parseEndIndent()),$a--,t!==a?(la=n,n=void 0):n=a,n!==a?(ua=e,r=Zt(r),e=r):(la=e,e=a)):(la=e,e=a),e}function peg$parseParagraphBlock(){var e,r,n,t,i;if(e=la,r=[],n=la,t=la,$a++,i=peg$parseBlankLines(),i===a&&(i=peg$parseLiteralBlockWithoutIndent()),$a--,i===a?t=void 0:(la=t,t=a),t!==a?(i=peg$parseInlineMarkup(),i===a&&(i=peg$parseParagraphText()),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a),n!==a)for(;n!==a;)r.push(n),n=la,t=la,$a++,i=peg$parseBlankLines(),i===a&&(i=peg$parseLiteralBlockWithoutIndent()),$a--,i===a?t=void 0:(la=t,t=a),t!==a?(i=peg$parseInlineMarkup(),i===a&&(i=peg$parseParagraphText()),i!==a?(t=[t,i],n=t):(la=n,n=a)):(la=n,n=a);else r=a;if(r!==a){for(n=[],t=peg$parseWhitespace();t!==a;)n.push(t),t=peg$parseWhitespace();n!==a?(t=peg$parseEndline(),t===a&&(t=la,$a++,i=peg$parseLiteralBlockWithoutIndent(),$a--,i!==a?(la=t,t=void 0):t=a),t!==a?(ua=e,r=Gt(r,t),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;return e}function peg$parseParagraphText(){var r,n,t,i,p,o;if(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),p===a&&(p=peg$parseLiteralBlockWithoutIndent()),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),p===a&&(p=peg$parseLiteralBlockWithoutIndent()),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);else n=a;if(n!==a?(t=la,$a++,i=peg$parseEndline(),i===a&&(i=peg$parseLiteralBlockWithoutIndent()),$a--,i!==a?(la=t,t=void 0):t=a,t!==a?(ua=r,n=jn(n),r=n):(la=r,r=a)):(la=r,r=a),r===a){for(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);n!==a?(t=peg$parseInlineMarkupPreceding(),t!==a?(ua=r,n=Jt(n,t),r=n):(la=r,r=a)):(la=r,r=a)}return r}function peg$parseOnelineParagraph(){var e,r;if(e=[],r=peg$parseInlineMarkupWithoutNewline(),r===a&&(r=peg$parseOnelineText()),r!==a)for(;r!==a;)e.push(r),(r=peg$parseInlineMarkupWithoutNewline())===a&&(r=peg$parseOnelineText());else e=a;return e}function peg$parseOnelineText(){var r,n,t,i,p,o;if(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);else n=a;if(n!==a?(t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseInlineMarkupPreceding(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t===a&&(t=null),t!==a?(ua=r,n=Kt(n,t),r=n):(la=r,r=a)):(la=r,r=a),r===a){for(r=la,n=[],t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=la,$a++,o=peg$parseInlineMarkupBeggining(),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(e.length>la?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(l)),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);n!==a?(t=la,i=la,$a++,p=peg$parseEndline(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseInlineMarkupPreceding(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t!==a?(ua=r,n=Yt(n,t),r=n):(la=r,r=a)):(la=r,r=a)}return r}function peg$parseDirectiveType(){var r,n,t,i,p,o;for(r=la,n=[],t=la,ea.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(ra)),i!==a?(p=la,$a++,e.substr(la,2)===bt?(o=bt,la+=2):(o=a,0===$a&&peg$fail(Bt)),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(na.test(e.charAt(la))?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(ta)),o===a&&(o=null),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);t!==a;)n.push(t),t=la,ea.test(e.charAt(la))?(i=e.charAt(la),la++):(i=a,0===$a&&peg$fail(ra)),i!==a?(p=la,$a++,e.substr(la,2)===bt?(o=bt,la+=2):(o=a,0===$a&&peg$fail(Bt)),$a--,o===a?p=void 0:(la=p,p=a),p!==a?(na.test(e.charAt(la))?(o=e.charAt(la),la++):(o=a,0===$a&&peg$fail(ta)),o===a&&(o=null),o!==a?(i=[i,p,o],t=i):(la=t,t=a)):(la=t,t=a)):(la=t,t=a);return n!==a?(ea.test(e.charAt(la))?(t=e.charAt(la),la++):(t=a,0===$a&&peg$fail(ra)),t!==a?(ua=r,n=aa(n,t),r=n):(la=r,r=a)):(la=r,r=a),r}function peg$parseDirective(){var e;return e=peg$parseDirectiveStartFromFirstLine(),e===a&&(e=peg$parseDirectiveStartFromNextLine()),e}function peg$parseDirectiveStartFromFirstLine(){var r,n,t,i,p,o,s,l,u,c,g,f;if(r=la,(n=peg$parseSameIndent())!==a)if(e.substr(la,2)===bn?(t=bn,la+=2):(t=a,0===$a&&peg$fail(Bn)),t!==a){if(i=[],(p=peg$parseWhitespace())!==a)for(;p!==a;)i.push(p),p=peg$parseWhitespace();else i=a;if(i!==a)if((p=peg$parseDirectiveType())!==a)if(e.substr(la,2)===bt?(o=bt,la+=2):(o=a,0===$a&&peg$fail(Bt)),o!==a){if(s=[],(l=peg$parseWhitespace())!==a)for(;l!==a;)s.push(l),l=peg$parseWhitespace();else s=a;s!==a?(l=la,$a++,u=peg$parseNonspacechar(),$a--,u!==a?(la=l,l=void 0):l=a,l!==a?(u=peg$parseRawLine(),u!==a?(c=la,g=peg$parseBlankLines(),g===a&&(g=null),g!==a?(f=peg$parseDirectiveBlock(),f!==a?(g=[g,f],c=g):(la=c,c=a)):(la=c,c=a),c===a&&(c=null),c!==a?(ua=r,n=ia(p,u,c),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;else la=r,r=a}else la=r,r=a;else la=r,r=a;return r}function peg$parseDirectiveStartFromNextLine(){var r,n,t,i,p,o,s,l,u;if(r=la,(n=peg$parseSameIndent())!==a)if(e.substr(la,2)===bn?(t=bn,la+=2):(t=a,0===$a&&peg$fail(Bn)),t!==a){if(i=[],(p=peg$parseWhitespace())!==a)for(;p!==a;)i.push(p),p=peg$parseWhitespace();else i=a;if(i!==a)if((p=peg$parseDirectiveType())!==a)if(e.substr(la,2)===bt?(o=bt,la+=2):(o=a,0===$a&&peg$fail(Bt)),o!==a){for(s=[],l=peg$parseWhitespace();l!==a;)s.push(l),l=peg$parseWhitespace();s!==a?(l=peg$parseNewline(),l!==a?(u=peg$parseDirectiveBlock(),u===a&&(u=null),u!==a?(ua=r,n=pa(p,u),r=n):(la=r,r=a)):(la=r,r=a)):(la=r,r=a)}else la=r,r=a;else la=r,r=a;else la=r,r=a}else la=r,r=a;else la=r,r=a;return r}function peg$parseDirectiveBlock(){var e,r,n,t,i,p,o;if(e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a)if((n=peg$parsePushCommonIndent$())!==a){for(t=[],i=la,p=[],o=peg$parseWhitespace();o!==a;)p.push(o),o=peg$parseWhitespace();if(p!==a?(o=peg$parseNewline(),o!==a?(ua=i,p=Wn(n),i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=peg$parseSameOrDeepIndent(),p!==a?(o=peg$parseNotEmptyRawLine(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a)),i!==a)for(;i!==a;){for(t.push(i),i=la,p=[],o=peg$parseWhitespace();o!==a;)p.push(o),o=peg$parseWhitespace();p!==a?(o=peg$parseNewline(),o!==a?(ua=i,p=Wn(n),i=p):(la=i,i=a)):(la=i,i=a),i===a&&(i=la,p=peg$parseSameOrDeepIndent(),p!==a?(o=peg$parseNotEmptyRawLine(),o!==a?(p=[p,o],i=p):(la=i,i=a)):(la=i,i=a))}else t=a;t===a&&(t=peg$parseFailbackIndent$()),t!==a?(i=peg$parsePopIndent$(),i!==a?(ua=e,r=oa(n,t),e=r):(la=e,e=a)):(la=e,e=a)}else la=e,e=a;else la=e,e=a;return e}function peg$parseUnknown(){var e,r,n,t,i,p;if(e=la,r=peg$parseBlankLines(),r===a&&(r=null),r!==a){if(n=[],t=la,i=la,$a++,p=peg$parseBlankLines(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseUnknownLine(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a),t!==a)for(;t!==a;)n.push(t),t=la,i=la,$a++,p=peg$parseBlankLines(),$a--,p===a?i=void 0:(la=i,i=a),i!==a?(p=peg$parseUnknownLine(),p!==a?(i=[i,p],t=i):(la=t,t=a)):(la=t,t=a);else n=a;n!==a?(ua=e,r=sa(r,n),e=r):(la=e,e=a)}else la=e,e=a;return e}function mapByIndex(e,r){return ha.map(e,function(e){return e[r]})}n=void 0!==n?n:{};var t,a={},i={Document:peg$parseDocument},p=peg$parseDocument,o=/^[A-Za-z0-9]/,s=peg$classExpectation([["A","Z"],["a","z"],["0","9"]],!1,!1),l=function(){return{type:"any"}}(),u="\n",c=peg$literalExpectation("\n",!1),g="\r",f=peg$literalExpectation("\r",!1),h=function(e){return e[0]+(e[1]||"")},d=" ",v=peg$literalExpectation(" ",!1),m="\v",A=peg$literalExpectation("\v",!1),C="\f",k=peg$literalExpectation("\f",!1),w="\t",I=peg$literalExpectation("\t",!1),E=function(e){return e[1]},L=function(e,r){return ha.map(e,function(e){return e[0].join("")+(e[1]||"")}).concat(r[0].join("")+(r[1]||""))},y=function(e){return{raw:ha.map(e,function(e){return e[1]}).join("")}},x=function(e){return new va.UnknownLine({value:e.raw})},b=function(e){return da.calcIndentSize(e)Aa},W=function(e){return e.join("")},N=function(e){return da.calcIndentSize(e)=Aa},M=function(){return!1},R=function(){return La.pop(),!0},P=function(e){return ka=da.calcIndentSize(e),!0},D=function(e,r){return ka=Math.min(ka,da.calcIndentSize(r)),!0},q=function(e){return La.push(ka),!0},F=function(){return{width:Aa,offset:La.lastIndentDiff()}},j=function(e,r){return La.push(da.calcIndentSize(e)),!0},O=function(){return La.ignore(location().start.line),!0},z=function(e,r){return new va.Document({children:e})},U=function(e,r,n){var t=ba.depth();return ba.popSection(),new va.Section({blanklines:e,depth:t,children:[r].concat(mapByIndex(n,1))})},Q=function(e,r){return e.line[0]===r.line[0]&&ba.isSubSection(r.line[0],!0)},H=function(e,r){return ba.isSubSection(r.line[0],!1)},X=function(e,r,n){return ba.setNextSection(n.line[0],!0),new va.Title({children:r})},V=function(e,r){return ba.setNextSection(r.line[0],!1),new va.Title({children:e})},Z="!",G=peg$literalExpectation("!",!1),J='"',K=peg$literalExpectation('"',!1),Y="#",ee=peg$literalExpectation("#",!1),re="$",ne=peg$literalExpectation("$",!1),te="%",ae=peg$literalExpectation("%",!1),ie="&",pe=peg$literalExpectation("&",!1),oe="'",se=peg$literalExpectation("'",!1),le="(",ue=peg$literalExpectation("(",!1),ce=")",ge=peg$literalExpectation(")",!1),fe="*",$e=peg$literalExpectation("*",!1),he="+",de=peg$literalExpectation("+",!1),ve=",",me=peg$literalExpectation(",",!1),Ae="-",Ce=peg$literalExpectation("-",!1),ke=".",we=peg$literalExpectation(".",!1),Ie="/",Ee=peg$literalExpectation("/",!1),Le=":",ye=peg$literalExpectation(":",!1),xe=";",be=peg$literalExpectation(";",!1),Be="<",Se=peg$literalExpectation("<",!1),_e="=",We=peg$literalExpectation("=",!1),Ne=">",Te=peg$literalExpectation(">",!1),Me="?",Re=peg$literalExpectation("?",!1),Pe="@",De=peg$literalExpectation("@",!1),qe="[",Fe=peg$literalExpectation("[",!1),je="\\",Oe=peg$literalExpectation("\\",!1),ze="]",Ue=peg$literalExpectation("]",!1),Qe="^",He=peg$literalExpectation("^",!1),Xe="_",Ve=peg$literalExpectation("_",!1),Ze="`",Ge=peg$literalExpectation("`",!1),Je="{",Ke=peg$literalExpectation("{",!1),Ye="|",er=peg$literalExpectation("|",!1),rr="}",nr=peg$literalExpectation("}",!1),tr="~",ar=peg$literalExpectation("~",!1),ir=function(e){return e.length>=2&&1===ha.uniq(e).length},pr=function(e){return{line:e.join("")}},or=function(e,r){return new va.Transition({blanklines:e,children:[]})},sr=function(e){return e.length>=4&&1===ha.uniq(e).length},lr=function(e){return e},ur=function(e,r){return r.blanklines=e||[],r},cr=function(e){return e},gr=function(e){return e},fr=function(e){return La.push(location().start.column-1),!0},$r=function(){return{width:Aa,offset:La.lastIndentDiff()}},hr=function(e,r){return new va.ListItem({children:r})},dr=function(){return new va.ListItem({children:[]})},vr=function(e){return new va.BulletList({bullet:e[0][0],children:mapByIndex(e,1)})},mr=/^[*+\-\u2022\u2023\u2043]/,Ar=peg$classExpectation(["*","+","-","•","‣","⁃"],!1,!1),Cr=function(e){return xa.isSameBullet(e)},kr=function(e){return e},wr=function(e){return xa.pushBullet(e),!0},Ir=function(){return xa.popBullet(),!0},Er=function(e,r,n){return n.blanklines=e||[],[r,n]},Lr=function(e){return new va.EnumeratedList({children:e})},yr=function(){return Ea.begin(),!0},xr=function(){return Ea.end(),!0},br=function(e,r,n){return n.blanklines=e||[],n},Br=function(e){return new va.Enumerator({sequence:e,format:"period"})},Sr=function(e){return new va.Enumerator({sequence:e,format:"right_parenthesis"})},_r=function(e){return new va.Enumerator({sequence:e,format:"parentheses"})},Wr=function(e){return!!Ea.isNext(e)&&(Ea.set(e),!0)},Nr=function(e){return e},Tr=function(){return Ea.isNextType("arabic_numerals")},Mr=function(){return Ea.isNextType("uppercase_roman")},Rr=function(){return Ea.isNextType("lowercase_roman")},Pr=function(){return Ea.isNextType("uppercase_alphabet")},Dr=function(){return Ea.isNextType("lowercase_alphabet")},qr=function(){return new va.EnumeratorSequence({type:"auto",value:"#"})},Fr=/^[1-9]/,jr=peg$classExpectation([["1","9"]],!1,!1),Or=/^[0-9]/,zr=peg$classExpectation([["0","9"]],!1,!1),Ur=function(e,r){return new va.EnumeratorSequence({type:"arabic_numerals",value:[e].concat(r).join("")})},Qr=/^[0]/,Hr=peg$classExpectation(["0"],!1,!1),Xr=function(e){return new va.EnumeratorSequence({type:"arabic_numerals",value:e})},Vr=/^[A-Z]/,Zr=peg$classExpectation([["A","Z"]],!1,!1),Gr=function(e){return new va.EnumeratorSequence({type:"uppercase_alphabet",value:e})},Jr=/^[a-z]/,Kr=peg$classExpectation([["a","z"]],!1,!1),Yr=function(e){return new va.EnumeratorSequence({type:"lowercase_alphabet",value:e})},en=/^[IVXLCDM]/,rn=peg$classExpectation(["I","V","X","L","C","D","M"],!1,!1),nn=function(e){return da.isUpperRomanNumber(e.join(""))},tn=function(e){return new va.EnumeratorSequence({type:"uppercase_roman",value:e.join("")})},an=/^[ivxlcdm]/,pn=peg$classExpectation(["i","v","x","l","c","d","m"],!1,!1),on=function(e){return da.isLowerRomanNumber(e.join(""))},sn=function(e){return new va.EnumeratorSequence({type:"lowercase_roman",value:e.join("")})},ln=function(e){return new va.DefinitionList({children:e})},un=function(e,r,n,t,a){var n=mapByIndex(n,3);return new va.DefinitionListItem({blanklines:e,indent:t,children:[r].concat(_toConsumableArray(n),[a])})},cn=function(e){return new va.Term({children:e})},gn=function(e){return new va.Definition({children:e})},fn=function(e){return new va.Text({value:mapByIndex(e,3).join("")})},$n=function(e){return new va.Classifier({children:e})},hn=function(e,r,n,t){var a={width:r.width,offset:r.width-t.indent.width};n.indent=a;var i=[n].concat(t.children),r=t.indent;return new va.BlockQuote({indent:r,blanklines:e,children:i})},dn=function(e,r){return new va.BlockQuote({children:e.concat(r||[])})},vn=function(e,r,n,t){return new va.BlockQuote({indent:r,blanklines:e,children:n.concat(t||[])})},mn=function(e,r){return[e].concat(ha.map(r,function(e){return e[1]}))},An="---",Cn=peg$literalExpectation("---",!1),kn="--",wn=peg$literalExpectation("--",!1),In="—",En=peg$literalExpectation("—",!1),Ln=function(e,r){return new va.Attribution({blanklines:e,children:r.children})},yn=function(e){return e},xn=function(e){return e},bn="..",Bn=peg$literalExpectation("..",!1),Sn=function(e,r){var n=[new va.Text({value:e.raw})],t=null;return ha.isNull(r)||(t=r[1].indent,n=n.concat(r[1].children)),new va.Comment({indent:t,children:n})},_n=function(e){return ha.isNull(e)?new va.Comment({}):e},Wn=function(e){return null},Nn=function(e,r){var n=ha.map(ha.reject(r,ha.isNull),function(r){var n=r[0],t=r[1].raw,a=ha.repeat(" ",n.length-e.width)+t;return new va.Text({value:a})});return new va.Comment({indent:e,children:n})},Tn=function(e){return da.isInlineMarkupSuffix(e)},Mn=function(){return 1===wa.length},Rn=function(e){return e===wa},Pn=function(){return 2===wa.length},Dn=function(e){return e.join("")===wa},qn=function(){return 3===wa.length},Fn=function(){return"``"===wa},jn=function(e){return new ma({value:mapByIndex(e,2).join("")})},On=function(e,r){return ha.isNull(r)||(e=new ma({value:e.value+r})),e},zn=function(e,r){return[new ma({value:e.value+r})]},Un=function(e,r,n){var t=(ha.isNull(e)?[]:[e]).concat(mapByIndex(r,1));0===t.length&&t.push(new ma({value:""}));var a=t[t.length-1];return t[t.length-1]=new ma({value:a.value+n}),t},Qn=function(){return wa="*",!0},Hn=function(e){return new va.Emphasis({children:e})},Xn="**",Vn=peg$literalExpectation("**",!1),Zn=function(){return wa="**",!0},Gn=function(e){return new va.Strong({children:e})},Jn=function(e){return wa="`",!0},Kn=function(e,r){var n=null;return ha.isNull(e)||(n=ha.map(e[1],function(e){return e[3]}).join("")),new va.InterpretedText({role:n,children:r})},Yn="``",et=peg$literalExpectation("``",!1),rt=function(){return wa="``",!0},nt=function(e){return new va.Literal({children:e})},tt=function(){return wa="|",!0},at=function(e){return new va.SubstitutionReference({children:e})},it="_`",pt=peg$literalExpectation("_`",!1),ot=function(){return wa="`",!0},st=function(e){return new va.InlineInternalTarget({children:e})},lt=function(e){return ha.isArray(e)?e.join(""):e},ut="]_",ct=peg$literalExpectation("]_",!1),gt=function(e){return new va.FootnoteReference({children:[new ma({value:e})]})},ft=function(e){return new va.CitationReference({children:[new ma({value:e})]})},$t=function(){return wa="`_",!0},ht=function(e){return new va.Reference({anonymous:!1,simple:!1,children:e})},dt=function(e){return new va.Reference({anonymous:!1,simple:!0,children:[new ma({value:e})]})},vt=function(){return wa="`__",!0},mt=function(e){return new va.Reference({anonymous:!0,simple:!1,children:e})},At="__",Ct=peg$literalExpectation("__",!1),kt=function(e){return new va.Reference({anonymous:!0,simple:!0,children:[new ma({value:e})]})},wt=/^[\-_.:+]/,It=peg$classExpectation(["-","_",".",":","+"],!1,!1),Et=function(e,r){return e+r.join("")},Lt=/^[\-.:+]/,yt=peg$classExpectation(["-",".",":","+"],!1,!1),xt=function(e){return e},bt="::",Bt=peg$literalExpectation("::",!1),St=function(e,r){var n=ha.map(r,function(r){if(ha.isUndefined(r[0]))var n=da.calcIndentSize(r[1].join("")),t=ha.repeat(" ",n-e.width)+r[2].raw;else var n=da.calcIndentSize(r[0].join("")),t=ha.repeat(" ",Math.max(0,n-e.width));return new va.Text({value:t})});return new va.LiteralBlock({children:n})},_t=function(e){var r=ha.map(e,function(e){return new va.Text({value:e[2].raw})});return new va.LiteralBlock({children:r})},Wt=function(e){return Ia=e,!0},Nt=function(e){return Ia===e},Tt=function(e,r,n,t){var a=new va.LineBlock({children:[r].concat(n)}),i=[a].concat(t.children);return new va.LineBlock({children:i})},Mt=function(e,r){return r},Rt=function(e,r){return new va.LineBlock({children:[e].concat(_toConsumableArray(r))})},Pt="| ",Dt=peg$literalExpectation("| ",!1),qt=function(e){return new va.Line({children:e})},Ft=function(){return new va.Line({children:[]})},jt=function(e){return da.calcIndentSize(e)===ya.current()},Ot=function(e){return da.calcIndentSize(e)>ya.current()},zt=function(e){return ya.push(da.calcIndentSize(e)),!0},Ut=function(){return{width:ya.current(),offset:ya.diff()}},Qt=function(){return ya.pop(),!0},Ht=function(e){return da.isInlineMarkupPrefix(e)},Xt=function(e){return e},Vt=function(e,r,n){return!("*"===e&&"*"===r||da.isMatchPunctuations(e,n))},Zt=function(e){return new va.Paragraph({children:ha.flatten(mapByIndex(e,1))})},Gt=function(e,r){var n=mapByIndex(e,1);if(r){if("text"!==n[n.length-1].type)return n.concat(new ma({value:r}));n[n.length-1]=new ma({value:n[n.length-1].value+r})}return n},Jt=function(e,r){return new ma({value:mapByIndex(e,2).join("")+r})},Kt=function(e,r){var n=mapByIndex(e,2).join("");return ha.isNull(r)||(n+=r[1]),new ma({value:n})},Yt=function(e,r){var n=mapByIndex(e,2).join("")+r[1];return new ma({value:n})},ea=/^[A-Za-z]/,ra=peg$classExpectation([["A","Z"],["a","z"]],!1,!1),na=/^[\-_+:.]/,ta=peg$classExpectation(["-","_","+",":","."],!1,!1),aa=function(e,r){return ha.flatMap(e,function(e){return ha.compact(e)}).concat(r).join("")},ia=function(e,r,n){var t=[new va.Text({value:r.raw})],a=null;return ha.isNull(n)||(a=n[1].indent,t=t.concat(n[1].children)),new va.Directive({directive:e,indent:a,children:t})},pa=function(e,r){return ha.isNull(r)?new va.Directive({directive:e}):new va.Directive({directive:e,indent:r.indent,children:r.children})},oa=function(e,r){var n=ha.map(ha.reject(r,ha.isNull),function(r){var n=r[0],t=r[1].raw,a=ha.repeat(" ",n.length-e.width)+t;return new va.Text({value:a})});return new va.Directive({indent:e,children:n})},sa=function(e,r){return new va.Unknown({blanklines:e,children:ha.flatten(mapByIndex(r,1))})},la=0,ua=0,ca=[{line:1,column:1}],ga=0,fa=[],$a=0;if("startRule"in n){if(!(n.startRule in i))throw new Error("Can't start parsing from rule \""+n.startRule+'".');p=i[n.startRule]}var ha=r(0),da=r(1).default,va={};ha.forEach(r(4).default,function(e,r){function wrapped(r){e.apply(this,[Object.assign({},{position:location()},r)])}wrapped.prototype=e.prototype,va[r]=wrapped});var ma=va.Text,Aa=0,Ca=null,ka=null,wa=null,Ia=null,Ea=function(){var e=null,r=[],n=null;return{begin:function(){r.push(n),n=null,e=null},end:function(){n=r.pop(),ha.isNull(n)||(e=n.sequence.type)},set:function(r){n=r,e=n.sequence.type},isNext:function(e){return ha.isNull(n)||n.isNext(e)},isNextType:function(r){return ha.isNull(n)||e===r}}}(),La=function(){var e=[];return{push:function(r){e.push(Aa),Aa=r},pop:function(){Aa=e.pop()},ignore:function(e){Ca=e},lastIndentDiff:function(){return 0===e.length?Aa:Aa-e[e.length-1]}}}(),ya=function(){var e=-1,r=[];return{current:function(){return e},push:function(n){r.push(e),e=n},pop:function(){e=r.pop()},diff:function(){return 0===r.length?e:e-r[r.length-1]}}}(),xa=function(){var e=[],r=null;return{pushBullet:function(n){e.push(r),r=n},popBullet:function(){r=e.pop()},isSameBullet:function(e){return r===e}}}(),ba=function(){var e=[],r=-1;return{isSubSection:function(n,t){if(r===e.length-1){for(var a=0,i=e.length;a0){for(r=1,n=1;r1&&void 0!==arguments[1]?arguments[1]:{},n=o.default.parse(e);return(0,i.default)(n,function(e){var n=[];return r.position||n.push("position"),r.blanklines||n.push("blanklines"),r.indent||n.push("indent"),t.default.omit(e,n)})}};exports.default=s},function(e,exports,r){"use strict";function camelize(e){return e.replace(/_([a-z])/g,function(e,r){return r.toUpperCase()})}Object.defineProperty(exports,"__esModule",{value:!0});var n=["text","unknown_line"],t=["document","section","title","transition","paragraph","bullet_list","list_item","enumerated_list","definition_list","definition_list_item","term","classifier","definition","field_list","field","field_name","field_body","docinfo","author","authors","organization","contact","version","status","date","copyright","field","topic","option_list","option_list_item","option_group","option","option_string","option_argument","description","literal_block","line_block","line","block_quote","attribution","doctest_block","table","tgroup","colspec","thead","tbody","row","entry","footnote","label","citation","target","substitution_definition","comment","emphasis","strong","literal","reference","target","footnote_reference","citation_reference","substitution_reference","reference","system_message","problematic","unknown","directive","interpreted_text"],a={parentTypes:{},valueTypes:{}},i=!0,p=!1,o=void 0;try{for(var s,l=n[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var u=s.value;a.valueTypes[camelize(u)]=u}}catch(e){p=!0,o=e}finally{try{!i&&l.return&&l.return()}finally{if(p)throw o}}var c=!0,g=!1,f=void 0;try{for(var h,d=t[Symbol.iterator]();!(c=(h=d.next()).done);c=!0){var v=h.value;a.parentTypes[camelize(v)]=v}}catch(e){g=!0,f=e}finally{try{!c&&d.return&&d.return()}finally{if(g)throw f}}exports.default=a},function(e,exports,r){"use strict";function toObject(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},n=0;n<10;n++)r["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(r).map(function(e){return r[e]}).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var i,p,o=toObject(e),s=1;s Date: Mon, 8 May 2017 19:57:32 +0800 Subject: [PATCH 3/5] browser usage --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index f75fbf0..562fc16 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ A reStructuredText parser for JavaScript. [demo](https://seikichi.github.io/restructured/). ## Example +### CLI ```bash > npm install -g restructured @@ -52,6 +53,21 @@ This is a paragraph. console.log(JSON.stringify(parsed)); ``` +### Browser + +file `dist/restructured.js` + +Dependens on `lodash`. + +use `require()` function + +```javascript + require(["restructured"], function (restructured) { + console.log(restructured.parse(text)) + }); +``` + + The above script outputs the following JSON. ```json From cab95dcf5359ede1f9bd56c54106e085e0d3e51b Mon Sep 17 00:00:00 2001 From: zhoupeng Date: Tue, 9 May 2017 01:32:50 +0800 Subject: [PATCH 4/5] node_js 4.3 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 665c5e6..ac28721 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,3 @@ language: node_js node_js: - - 4.1 + - 4.3 From a2f87fff0011e58fd1533b67950be02575e4fcb2 Mon Sep 17 00:00:00 2001 From: zhoupeng Date: Tue, 9 May 2017 01:44:31 +0800 Subject: [PATCH 5/5] fix eol-last --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index db8f7f5..317d086 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,3 @@ import RST from './RST'; -module.exports = RST; \ No newline at end of file +module.exports = RST;