@readme/markdown 6.39.4 β 6.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.css +1 -0
- package/dist/main.js +875 -720
- package/dist/main.node.js +511 -198
- package/package.json +40 -37
package/dist/main.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
var a = typeof exports === 'object' ? factory(require("@readme/variable"), require("react")) : factory(root["@readme/variable"], root["React"]);
|
|
8
8
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
9
|
}
|
|
10
|
-
})(self,
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE__3689__, __WEBPACK_EXTERNAL_MODULE__4466__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -2020,6 +2020,8 @@ module.exports = ErrorReportingPreprocessorMixin;
|
|
|
2020
2020
|
"use strict";
|
|
2021
2021
|
|
|
2022
2022
|
|
|
2023
|
+
var _createClass = __webpack_require__(3913);
|
|
2024
|
+
|
|
2023
2025
|
var _classCallCheck = __webpack_require__(4575);
|
|
2024
2026
|
|
|
2025
2027
|
var _inherits = __webpack_require__(2205);
|
|
@@ -2054,7 +2056,7 @@ var ErrorReportingTokenizerMixin = /*#__PURE__*/function (_ErrorReportingMixinB)
|
|
|
2054
2056
|
return _this;
|
|
2055
2057
|
}
|
|
2056
2058
|
|
|
2057
|
-
return ErrorReportingTokenizerMixin;
|
|
2059
|
+
return _createClass(ErrorReportingTokenizerMixin);
|
|
2058
2060
|
}(ErrorReportingMixinBase);
|
|
2059
2061
|
|
|
2060
2062
|
module.exports = ErrorReportingTokenizerMixin;
|
|
@@ -10153,16 +10155,16 @@ module.exports = TableOfContents;
|
|
|
10153
10155
|
"use strict";
|
|
10154
10156
|
__webpack_require__.r(__webpack_exports__);
|
|
10155
10157
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10156
|
-
/* harmony export */ "GlossaryItem": () => (/* reexport default from dynamic */ _GlossaryItem__WEBPACK_IMPORTED_MODULE_0___default.a),
|
|
10157
|
-
/* harmony export */ "Code": () => (/* reexport default from dynamic */ _Code__WEBPACK_IMPORTED_MODULE_1___default.a),
|
|
10158
|
-
/* harmony export */ "Table": () => (/* reexport default from dynamic */ _Table__WEBPACK_IMPORTED_MODULE_2___default.a),
|
|
10159
10158
|
/* harmony export */ "Anchor": () => (/* reexport default from dynamic */ _Anchor__WEBPACK_IMPORTED_MODULE_3___default.a),
|
|
10160
|
-
/* harmony export */ "Heading": () => (/* reexport default from dynamic */ _Heading__WEBPACK_IMPORTED_MODULE_4___default.a),
|
|
10161
10159
|
/* harmony export */ "Callout": () => (/* reexport default from dynamic */ _Callout__WEBPACK_IMPORTED_MODULE_5___default.a),
|
|
10160
|
+
/* harmony export */ "Code": () => (/* reexport default from dynamic */ _Code__WEBPACK_IMPORTED_MODULE_1___default.a),
|
|
10162
10161
|
/* harmony export */ "CodeTabs": () => (/* reexport default from dynamic */ _CodeTabs__WEBPACK_IMPORTED_MODULE_6___default.a),
|
|
10163
|
-
/* harmony export */ "Image": () => (/* reexport default from dynamic */ _Image__WEBPACK_IMPORTED_MODULE_7___default.a),
|
|
10164
10162
|
/* harmony export */ "Embed": () => (/* reexport default from dynamic */ _Embed__WEBPACK_IMPORTED_MODULE_8___default.a),
|
|
10163
|
+
/* harmony export */ "GlossaryItem": () => (/* reexport default from dynamic */ _GlossaryItem__WEBPACK_IMPORTED_MODULE_0___default.a),
|
|
10165
10164
|
/* harmony export */ "HTMLBlock": () => (/* reexport default from dynamic */ _HTMLBlock__WEBPACK_IMPORTED_MODULE_9___default.a),
|
|
10165
|
+
/* harmony export */ "Heading": () => (/* reexport default from dynamic */ _Heading__WEBPACK_IMPORTED_MODULE_4___default.a),
|
|
10166
|
+
/* harmony export */ "Image": () => (/* reexport default from dynamic */ _Image__WEBPACK_IMPORTED_MODULE_7___default.a),
|
|
10167
|
+
/* harmony export */ "Table": () => (/* reexport default from dynamic */ _Table__WEBPACK_IMPORTED_MODULE_2___default.a),
|
|
10166
10168
|
/* harmony export */ "TableOfContents": () => (/* reexport default from dynamic */ _TableOfContents__WEBPACK_IMPORTED_MODULE_10___default.a)
|
|
10167
10169
|
/* harmony export */ });
|
|
10168
10170
|
/* harmony import */ var _GlossaryItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6566);
|
|
@@ -26282,6 +26284,7 @@ var _typeof = __webpack_require__(8);
|
|
|
26282
26284
|
e.isRequired = e;
|
|
26283
26285
|
var r = {
|
|
26284
26286
|
array: e,
|
|
26287
|
+
bigint: e,
|
|
26285
26288
|
bool: e,
|
|
26286
26289
|
func: e,
|
|
26287
26290
|
number: e,
|
|
@@ -27857,9 +27860,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27857
27860
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4942);
|
|
27858
27861
|
|
|
27859
27862
|
|
|
27860
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
27863
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27861
27864
|
|
|
27862
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
27865
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
27863
27866
|
|
|
27864
27867
|
var options = {
|
|
27865
27868
|
compatibilityMode: false,
|
|
@@ -28006,9 +28009,9 @@ module.exports = function DivCompiler() {
|
|
|
28006
28009
|
|
|
28007
28010
|
var _defineProperty = __webpack_require__(9713);
|
|
28008
28011
|
|
|
28009
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
28012
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
28010
28013
|
|
|
28011
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
28014
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
28012
28015
|
|
|
28013
28016
|
function EmbedCompiler(node) {
|
|
28014
28017
|
var data = node.data.hProperties;
|
|
@@ -28028,6 +28031,20 @@ module.exports = function () {
|
|
|
28028
28031
|
|
|
28029
28032
|
/***/ }),
|
|
28030
28033
|
|
|
28034
|
+
/***/ 8418:
|
|
28035
|
+
/***/ ((module) => {
|
|
28036
|
+
|
|
28037
|
+
module.exports = function EscapeCompiler() {
|
|
28038
|
+
var Compiler = this.Compiler;
|
|
28039
|
+
var visitors = Compiler.prototype.visitors;
|
|
28040
|
+
|
|
28041
|
+
visitors.escape = function compile(node) {
|
|
28042
|
+
return "\\".concat(node.value);
|
|
28043
|
+
};
|
|
28044
|
+
};
|
|
28045
|
+
|
|
28046
|
+
/***/ }),
|
|
28047
|
+
|
|
28031
28048
|
/***/ 8705:
|
|
28032
28049
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
28033
28050
|
|
|
@@ -28035,9 +28052,9 @@ var _slicedToArray = __webpack_require__(3038);
|
|
|
28035
28052
|
|
|
28036
28053
|
var _defineProperty = __webpack_require__(9713);
|
|
28037
28054
|
|
|
28038
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
28055
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
28039
28056
|
|
|
28040
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
28057
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
28041
28058
|
|
|
28042
28059
|
var _require = __webpack_require__(7589),
|
|
28043
28060
|
imgSizeByWidth = _require.imgSizeByWidth;
|
|
@@ -28160,17 +28177,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28160
28177
|
/* harmony export */ "breakCompiler": () => (/* reexport default from dynamic */ _break__WEBPACK_IMPORTED_MODULE_0___default.a),
|
|
28161
28178
|
/* harmony export */ "codeTabsCompiler": () => (/* reexport default from dynamic */ _code_tabs__WEBPACK_IMPORTED_MODULE_1___default.a),
|
|
28162
28179
|
/* harmony export */ "divCompiler": () => (/* reexport default from dynamic */ _div__WEBPACK_IMPORTED_MODULE_2___default.a),
|
|
28163
|
-
/* harmony export */ "
|
|
28164
|
-
/* harmony export */ "
|
|
28165
|
-
/* harmony export */ "
|
|
28166
|
-
/* harmony export */ "
|
|
28167
|
-
/* harmony export */ "
|
|
28168
|
-
/* harmony export */ "
|
|
28169
|
-
/* harmony export */ "
|
|
28170
|
-
/* harmony export */ "
|
|
28171
|
-
/* harmony export */ "
|
|
28172
|
-
/* harmony export */ "
|
|
28173
|
-
/* harmony export */ "
|
|
28180
|
+
/* harmony export */ "escapeCompiler": () => (/* reexport default from dynamic */ _escape__WEBPACK_IMPORTED_MODULE_3___default.a),
|
|
28181
|
+
/* harmony export */ "figureCompiler": () => (/* reexport default from dynamic */ _figure__WEBPACK_IMPORTED_MODULE_4___default.a),
|
|
28182
|
+
/* harmony export */ "htmlBlockCompiler": () => (/* reexport default from dynamic */ _html_block__WEBPACK_IMPORTED_MODULE_5___default.a),
|
|
28183
|
+
/* harmony export */ "iconCompiler": () => (/* reexport default from dynamic */ _i__WEBPACK_IMPORTED_MODULE_6___default.a),
|
|
28184
|
+
/* harmony export */ "imageCompiler": () => (/* reexport default from dynamic */ _image__WEBPACK_IMPORTED_MODULE_7___default.a),
|
|
28185
|
+
/* harmony export */ "rdmeCalloutCompiler": () => (/* reexport default from dynamic */ _callout__WEBPACK_IMPORTED_MODULE_8___default.a),
|
|
28186
|
+
/* harmony export */ "rdmeEmbedCompiler": () => (/* reexport default from dynamic */ _embed__WEBPACK_IMPORTED_MODULE_9___default.a),
|
|
28187
|
+
/* harmony export */ "rdmeGlossaryCompiler": () => (/* reexport default from dynamic */ _glossary__WEBPACK_IMPORTED_MODULE_10___default.a),
|
|
28188
|
+
/* harmony export */ "rdmePinCompiler": () => (/* reexport default from dynamic */ _pin__WEBPACK_IMPORTED_MODULE_11___default.a),
|
|
28189
|
+
/* harmony export */ "rdmeVarCompiler": () => (/* reexport default from dynamic */ _var__WEBPACK_IMPORTED_MODULE_12___default.a),
|
|
28190
|
+
/* harmony export */ "tableCompiler": () => (/* reexport default from dynamic */ _table__WEBPACK_IMPORTED_MODULE_13___default.a),
|
|
28191
|
+
/* harmony export */ "tableHeadCompiler": () => (/* reexport default from dynamic */ _table_head__WEBPACK_IMPORTED_MODULE_14___default.a),
|
|
28192
|
+
/* harmony export */ "yamlCompiler": () => (/* reexport default from dynamic */ _yaml__WEBPACK_IMPORTED_MODULE_15___default.a)
|
|
28174
28193
|
/* harmony export */ });
|
|
28175
28194
|
/* harmony import */ var _break__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3688);
|
|
28176
28195
|
/* harmony import */ var _break__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_break__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -28178,28 +28197,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28178
28197
|
/* harmony import */ var _code_tabs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_code_tabs__WEBPACK_IMPORTED_MODULE_1__);
|
|
28179
28198
|
/* harmony import */ var _div__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58);
|
|
28180
28199
|
/* harmony import */ var _div__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_div__WEBPACK_IMPORTED_MODULE_2__);
|
|
28181
|
-
/* harmony import */ var
|
|
28182
|
-
/* harmony import */ var
|
|
28183
|
-
/* harmony import */ var
|
|
28184
|
-
/* harmony import */ var
|
|
28185
|
-
/* harmony import */ var
|
|
28186
|
-
/* harmony import */ var
|
|
28187
|
-
/* harmony import */ var
|
|
28188
|
-
/* harmony import */ var
|
|
28189
|
-
/* harmony import */ var
|
|
28190
|
-
/* harmony import */ var
|
|
28191
|
-
/* harmony import */ var
|
|
28192
|
-
/* harmony import */ var
|
|
28193
|
-
/* harmony import */ var
|
|
28194
|
-
/* harmony import */ var
|
|
28195
|
-
/* harmony import */ var
|
|
28196
|
-
/* harmony import */ var
|
|
28197
|
-
/* harmony import */ var
|
|
28198
|
-
/* harmony import */ var
|
|
28199
|
-
/* harmony import */ var
|
|
28200
|
-
/* harmony import */ var
|
|
28201
|
-
/* harmony import */ var
|
|
28202
|
-
/* harmony import */ var
|
|
28200
|
+
/* harmony import */ var _escape__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8418);
|
|
28201
|
+
/* harmony import */ var _escape__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_escape__WEBPACK_IMPORTED_MODULE_3__);
|
|
28202
|
+
/* harmony import */ var _figure__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8705);
|
|
28203
|
+
/* harmony import */ var _figure__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_figure__WEBPACK_IMPORTED_MODULE_4__);
|
|
28204
|
+
/* harmony import */ var _html_block__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(215);
|
|
28205
|
+
/* harmony import */ var _html_block__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_html_block__WEBPACK_IMPORTED_MODULE_5__);
|
|
28206
|
+
/* harmony import */ var _i__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4258);
|
|
28207
|
+
/* harmony import */ var _i__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_i__WEBPACK_IMPORTED_MODULE_6__);
|
|
28208
|
+
/* harmony import */ var _image__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(3356);
|
|
28209
|
+
/* harmony import */ var _image__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_image__WEBPACK_IMPORTED_MODULE_7__);
|
|
28210
|
+
/* harmony import */ var _callout__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(5733);
|
|
28211
|
+
/* harmony import */ var _callout__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_callout__WEBPACK_IMPORTED_MODULE_8__);
|
|
28212
|
+
/* harmony import */ var _embed__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4338);
|
|
28213
|
+
/* harmony import */ var _embed__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_embed__WEBPACK_IMPORTED_MODULE_9__);
|
|
28214
|
+
/* harmony import */ var _glossary__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(2459);
|
|
28215
|
+
/* harmony import */ var _glossary__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_glossary__WEBPACK_IMPORTED_MODULE_10__);
|
|
28216
|
+
/* harmony import */ var _pin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(2151);
|
|
28217
|
+
/* harmony import */ var _pin__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_pin__WEBPACK_IMPORTED_MODULE_11__);
|
|
28218
|
+
/* harmony import */ var _var__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(1067);
|
|
28219
|
+
/* harmony import */ var _var__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_var__WEBPACK_IMPORTED_MODULE_12__);
|
|
28220
|
+
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(4669);
|
|
28221
|
+
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_table__WEBPACK_IMPORTED_MODULE_13__);
|
|
28222
|
+
/* harmony import */ var _table_head__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(186);
|
|
28223
|
+
/* harmony import */ var _table_head__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_table_head__WEBPACK_IMPORTED_MODULE_14__);
|
|
28224
|
+
/* harmony import */ var _yaml__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(1773);
|
|
28225
|
+
/* harmony import */ var _yaml__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_yaml__WEBPACK_IMPORTED_MODULE_15__);
|
|
28226
|
+
|
|
28227
|
+
|
|
28203
28228
|
|
|
28204
28229
|
|
|
28205
28230
|
|
|
@@ -28311,6 +28336,20 @@ module.exports = function RdmeVarCompiler() {
|
|
|
28311
28336
|
|
|
28312
28337
|
/***/ }),
|
|
28313
28338
|
|
|
28339
|
+
/***/ 1773:
|
|
28340
|
+
/***/ ((module) => {
|
|
28341
|
+
|
|
28342
|
+
module.exports = function YamlCompiler() {
|
|
28343
|
+
var Compiler = this.Compiler;
|
|
28344
|
+
var visitors = Compiler.prototype.visitors;
|
|
28345
|
+
|
|
28346
|
+
visitors.yaml = function compile(node) {
|
|
28347
|
+
return "---\n".concat(node.value, "\n---");
|
|
28348
|
+
};
|
|
28349
|
+
};
|
|
28350
|
+
|
|
28351
|
+
/***/ }),
|
|
28352
|
+
|
|
28314
28353
|
/***/ 8399:
|
|
28315
28354
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
28316
28355
|
|
|
@@ -28453,11 +28492,11 @@ var _setPrototypeOf = __webpack_require__(9489);
|
|
|
28453
28492
|
|
|
28454
28493
|
var _slicedToArray = __webpack_require__(3038);
|
|
28455
28494
|
|
|
28456
|
-
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(re, groups) { return new BabelRegExp(re,
|
|
28495
|
+
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(re, groups) { return new BabelRegExp(re, void 0, groups); }; var _super = RegExp.prototype, _groups = new WeakMap(); function BabelRegExp(re, flags, groups) { var _this = new RegExp(re, flags); return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype); } function buildGroups(result, re) { var g = _groups.get(re); return Object.keys(g).reduce(function (groups, name) { return groups[name] = result[g[name]], groups; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) { var result = _super.exec.call(this, str); return result && (result.groups = buildGroups(result, this)), result; }, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) { if ("string" == typeof substitution) { var groups = _groups.get(this); return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) { return "$" + groups[name]; })); } if ("function" == typeof substitution) { var _this = this; return _super[Symbol.replace].call(this, str, function () { var args = arguments; return "object" != _typeof(args[args.length - 1]) && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args); }); } return _super[Symbol.replace].call(this, str, substitution); }, _wrapRegExp.apply(this, arguments); }
|
|
28457
28496
|
|
|
28458
28497
|
function tokenizer(eat, value) {
|
|
28459
28498
|
// eslint-disable-next-line unicorn/no-unsafe-regex
|
|
28460
|
-
var TAB_BLOCK_RGXP = /^(?:(?:^|\n)```(?:(?!\n```)[\s\S])*\n```
|
|
28499
|
+
var TAB_BLOCK_RGXP = /^(?:(?:^|\n)```(?:(?!\n```)[\s\S])*\n```[^\S\n]*){2,}/g;
|
|
28461
28500
|
|
|
28462
28501
|
var _ref = TAB_BLOCK_RGXP.exec(value) || [],
|
|
28463
28502
|
_ref2 = _slicedToArray(_ref, 1),
|
|
@@ -28474,7 +28513,7 @@ function tokenizer(eat, value) {
|
|
|
28474
28513
|
*/
|
|
28475
28514
|
// eslint-disable-next-line unicorn/no-unsafe-regex
|
|
28476
28515
|
|
|
28477
|
-
var CODE_BLOCK_RGXP = /*#__PURE__*/_wrapRegExp(/(?:^|\n)```[\t
|
|
28516
|
+
var CODE_BLOCK_RGXP = /*#__PURE__*/_wrapRegExp(/(?:^|\n)```[ \t]*([^\s]+)?(?: *([^\n]+))?(((?!\n```)[\s\S])*)?\n```/g, {
|
|
28478
28517
|
lang: 1,
|
|
28479
28518
|
meta: 2,
|
|
28480
28519
|
code: 3
|
|
@@ -28671,34 +28710,99 @@ module.exports.sanitize = function (sanitizeSchema) {
|
|
|
28671
28710
|
|
|
28672
28711
|
/***/ }),
|
|
28673
28712
|
|
|
28674
|
-
/***/
|
|
28713
|
+
/***/ 1332:
|
|
28675
28714
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
28676
28715
|
|
|
28677
28716
|
"use strict";
|
|
28717
|
+
// ESM COMPAT FLAG
|
|
28678
28718
|
__webpack_require__.r(__webpack_exports__);
|
|
28679
|
-
|
|
28680
|
-
|
|
28681
|
-
|
|
28682
|
-
|
|
28683
|
-
|
|
28684
|
-
|
|
28685
|
-
|
|
28686
|
-
|
|
28687
|
-
/*
|
|
28688
|
-
|
|
28689
|
-
|
|
28690
|
-
|
|
28691
|
-
|
|
28692
|
-
|
|
28693
|
-
|
|
28694
|
-
|
|
28695
|
-
|
|
28696
|
-
|
|
28697
|
-
|
|
28698
|
-
|
|
28699
|
-
|
|
28700
|
-
|
|
28701
|
-
|
|
28719
|
+
|
|
28720
|
+
// EXPORTS
|
|
28721
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
28722
|
+
"compactHeadings": () => (/* reexport */ (compact_headings_default())),
|
|
28723
|
+
"escape": () => (/* reexport */ parse_escape),
|
|
28724
|
+
"flavorCallout": () => (/* reexport */ (callout_default())),
|
|
28725
|
+
"flavorCodeTabs": () => (/* reexport */ (code_tabs_default())),
|
|
28726
|
+
"flavorEmbed": () => (/* reexport */ (embed_default())),
|
|
28727
|
+
"gemojiParser": () => (/* reexport */ (gemoji_parser_default())),
|
|
28728
|
+
"magicBlockParser": () => (/* reexport */ (magic_block_parser_default())),
|
|
28729
|
+
"variableParser": () => (/* reexport */ (variable_parser_default()))
|
|
28730
|
+
});
|
|
28731
|
+
|
|
28732
|
+
// EXTERNAL MODULE: ./processor/parse/magic-block-parser.js
|
|
28733
|
+
var magic_block_parser = __webpack_require__(7589);
|
|
28734
|
+
var magic_block_parser_default = /*#__PURE__*/__webpack_require__.n(magic_block_parser);
|
|
28735
|
+
// EXTERNAL MODULE: ./processor/parse/flavored/code-tabs.js
|
|
28736
|
+
var code_tabs = __webpack_require__(5289);
|
|
28737
|
+
var code_tabs_default = /*#__PURE__*/__webpack_require__.n(code_tabs);
|
|
28738
|
+
// EXTERNAL MODULE: ./processor/parse/flavored/callout.js
|
|
28739
|
+
var callout = __webpack_require__(3910);
|
|
28740
|
+
var callout_default = /*#__PURE__*/__webpack_require__.n(callout);
|
|
28741
|
+
// EXTERNAL MODULE: ./processor/parse/flavored/embed.js
|
|
28742
|
+
var flavored_embed = __webpack_require__(1559);
|
|
28743
|
+
var embed_default = /*#__PURE__*/__webpack_require__.n(flavored_embed);
|
|
28744
|
+
;// CONCATENATED MODULE: ./processor/parse/escape.js
|
|
28745
|
+
// @note: this is copied from https://github.com/remarkjs/remark/blob/remark-parse%407.0.2/packages/remark-parse/lib/tokenize/escape.js
|
|
28746
|
+
var lineFeed = '\n';
|
|
28747
|
+
var backslash = '\\'; // eslint-disable-next-line consistent-return
|
|
28748
|
+
|
|
28749
|
+
function escape_escape(eat, value, silent) {
|
|
28750
|
+
var self = this;
|
|
28751
|
+
var character;
|
|
28752
|
+
var node;
|
|
28753
|
+
|
|
28754
|
+
if (value.charAt(0) === backslash) {
|
|
28755
|
+
character = value.charAt(1);
|
|
28756
|
+
|
|
28757
|
+
if (self.escape.indexOf(character) !== -1) {
|
|
28758
|
+
if (silent) {
|
|
28759
|
+
return true;
|
|
28760
|
+
}
|
|
28761
|
+
|
|
28762
|
+
if (character === lineFeed) {
|
|
28763
|
+
node = {
|
|
28764
|
+
type: 'break'
|
|
28765
|
+
};
|
|
28766
|
+
} else {
|
|
28767
|
+
node = {
|
|
28768
|
+
type: 'escape',
|
|
28769
|
+
value: character
|
|
28770
|
+
};
|
|
28771
|
+
}
|
|
28772
|
+
|
|
28773
|
+
return eat(backslash + character)(node);
|
|
28774
|
+
}
|
|
28775
|
+
}
|
|
28776
|
+
}
|
|
28777
|
+
|
|
28778
|
+
function locate(value, fromIndex) {
|
|
28779
|
+
return value.indexOf('\\', fromIndex);
|
|
28780
|
+
}
|
|
28781
|
+
|
|
28782
|
+
escape_escape.locator = locate;
|
|
28783
|
+
|
|
28784
|
+
function parser() {
|
|
28785
|
+
var Parser = this.Parser;
|
|
28786
|
+
var inlineTokenizers = Parser.prototype.inlineTokenizers;
|
|
28787
|
+
inlineTokenizers.escape = escape_escape;
|
|
28788
|
+
}
|
|
28789
|
+
|
|
28790
|
+
parser.sanitize = function () {
|
|
28791
|
+
return parser;
|
|
28792
|
+
};
|
|
28793
|
+
|
|
28794
|
+
/* harmony default export */ const parse_escape = (parser);
|
|
28795
|
+
// EXTERNAL MODULE: ./processor/parse/compact-headings.js
|
|
28796
|
+
var compact_headings = __webpack_require__(8399);
|
|
28797
|
+
var compact_headings_default = /*#__PURE__*/__webpack_require__.n(compact_headings);
|
|
28798
|
+
// EXTERNAL MODULE: ./processor/parse/variable-parser.js
|
|
28799
|
+
var variable_parser = __webpack_require__(2697);
|
|
28800
|
+
var variable_parser_default = /*#__PURE__*/__webpack_require__.n(variable_parser);
|
|
28801
|
+
// EXTERNAL MODULE: ./processor/parse/gemoji-parser.js
|
|
28802
|
+
var gemoji_parser = __webpack_require__(7201);
|
|
28803
|
+
var gemoji_parser_default = /*#__PURE__*/__webpack_require__.n(gemoji_parser);
|
|
28804
|
+
;// CONCATENATED MODULE: ./processor/parse/index.js
|
|
28805
|
+
|
|
28702
28806
|
|
|
28703
28807
|
|
|
28704
28808
|
|
|
@@ -28718,11 +28822,21 @@ var _defineProperty = __webpack_require__(9713);
|
|
|
28718
28822
|
|
|
28719
28823
|
var _slicedToArray = __webpack_require__(3038);
|
|
28720
28824
|
|
|
28721
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
28825
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
28722
28826
|
|
|
28723
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
28827
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
28724
28828
|
|
|
28725
28829
|
/* eslint-disable consistent-return */
|
|
28830
|
+
var unified = __webpack_require__(8835);
|
|
28831
|
+
|
|
28832
|
+
var rehypeParse = __webpack_require__(3322);
|
|
28833
|
+
|
|
28834
|
+
var rehypeSanitize = __webpack_require__(1667);
|
|
28835
|
+
|
|
28836
|
+
var rehypeStringify = __webpack_require__(7532);
|
|
28837
|
+
|
|
28838
|
+
var globalSanitizeSchema = __webpack_require__(8229);
|
|
28839
|
+
|
|
28726
28840
|
var RGXP = /^\[block:(.*)\]([^]+?)\[\/block\]/;
|
|
28727
28841
|
var compatibilityMode;
|
|
28728
28842
|
|
|
@@ -28753,6 +28867,13 @@ var imgSizeByWidth = new Proxy(new Map(Array.from(imgSizeValues).reverse()), {
|
|
|
28753
28867
|
return match ? match[1] : width in sizes ? sizes[width] : width;
|
|
28754
28868
|
}
|
|
28755
28869
|
});
|
|
28870
|
+
var processor = unified().use(rehypeParse, {
|
|
28871
|
+
fragment: true
|
|
28872
|
+
}).use(rehypeSanitize, globalSanitizeSchema).use(rehypeStringify);
|
|
28873
|
+
|
|
28874
|
+
var sanitize = function sanitize(html) {
|
|
28875
|
+
return processor.processSync(html).toString();
|
|
28876
|
+
};
|
|
28756
28877
|
|
|
28757
28878
|
function tokenize(eat, value) {
|
|
28758
28879
|
var _this = this;
|
|
@@ -29000,7 +29121,7 @@ function tokenize(eat, value) {
|
|
|
29000
29121
|
data: {
|
|
29001
29122
|
hName: 'html-block',
|
|
29002
29123
|
hProperties: {
|
|
29003
|
-
html: json.html,
|
|
29124
|
+
html: sanitize(json.html),
|
|
29004
29125
|
runScripts: compatibilityMode
|
|
29005
29126
|
}
|
|
29006
29127
|
}
|
|
@@ -29203,9 +29324,9 @@ var _defineProperty = __webpack_require__(9713);
|
|
|
29203
29324
|
|
|
29204
29325
|
var _slicedToArray = __webpack_require__(3038);
|
|
29205
29326
|
|
|
29206
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
29327
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29207
29328
|
|
|
29208
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
29329
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29209
29330
|
|
|
29210
29331
|
var flatMap = __webpack_require__(5885);
|
|
29211
29332
|
|
|
@@ -31215,54 +31336,134 @@ function ok() {
|
|
|
31215
31336
|
|
|
31216
31337
|
/***/ }),
|
|
31217
31338
|
|
|
31218
|
-
/***/
|
|
31339
|
+
/***/ 3216:
|
|
31219
31340
|
/***/ ((module) => {
|
|
31220
31341
|
|
|
31221
31342
|
"use strict";
|
|
31222
31343
|
|
|
31223
31344
|
|
|
31224
|
-
module.exports =
|
|
31345
|
+
module.exports = convert
|
|
31225
31346
|
|
|
31226
|
-
|
|
31227
|
-
|
|
31228
|
-
|
|
31229
|
-
|
|
31347
|
+
function convert(test) {
|
|
31348
|
+
if (typeof test === 'string') {
|
|
31349
|
+
return tagNameFactory(test)
|
|
31350
|
+
}
|
|
31230
31351
|
|
|
31231
|
-
if (
|
|
31232
|
-
|
|
31233
|
-
|
|
31234
|
-
|
|
31235
|
-
|
|
31236
|
-
|
|
31237
|
-
)
|
|
31238
|
-
) {
|
|
31239
|
-
throw new Error(
|
|
31240
|
-
'Expected `string` or `Array.<string>` for `tagNames`, not `' +
|
|
31241
|
-
tagNames +
|
|
31242
|
-
'`'
|
|
31243
|
-
)
|
|
31352
|
+
if (test === null || test === undefined) {
|
|
31353
|
+
return element
|
|
31354
|
+
}
|
|
31355
|
+
|
|
31356
|
+
if (typeof test === 'object') {
|
|
31357
|
+
return any(test)
|
|
31244
31358
|
}
|
|
31245
31359
|
|
|
31360
|
+
if (typeof test === 'function') {
|
|
31361
|
+
return callFactory(test)
|
|
31362
|
+
}
|
|
31363
|
+
|
|
31364
|
+
throw new Error('Expected function, string, or array as test')
|
|
31365
|
+
}
|
|
31366
|
+
|
|
31367
|
+
function convertAll(tests) {
|
|
31368
|
+
var length = tests.length
|
|
31369
|
+
var index = -1
|
|
31370
|
+
var results = []
|
|
31371
|
+
|
|
31372
|
+
while (++index < length) {
|
|
31373
|
+
results[index] = convert(tests[index])
|
|
31374
|
+
}
|
|
31375
|
+
|
|
31376
|
+
return results
|
|
31377
|
+
}
|
|
31378
|
+
|
|
31379
|
+
function any(tests) {
|
|
31380
|
+
var checks = convertAll(tests)
|
|
31381
|
+
var length = checks.length
|
|
31382
|
+
|
|
31383
|
+
return matches
|
|
31384
|
+
|
|
31385
|
+
function matches() {
|
|
31386
|
+
var index = -1
|
|
31387
|
+
|
|
31388
|
+
while (++index < length) {
|
|
31389
|
+
if (checks[index].apply(this, arguments)) {
|
|
31390
|
+
return true
|
|
31391
|
+
}
|
|
31392
|
+
}
|
|
31393
|
+
|
|
31394
|
+
return false
|
|
31395
|
+
}
|
|
31396
|
+
}
|
|
31397
|
+
|
|
31398
|
+
// Utility to convert a string a tag name check.
|
|
31399
|
+
function tagNameFactory(test) {
|
|
31400
|
+
return tagName
|
|
31401
|
+
|
|
31402
|
+
function tagName(node) {
|
|
31403
|
+
return element(node) && node.tagName === test
|
|
31404
|
+
}
|
|
31405
|
+
}
|
|
31406
|
+
|
|
31407
|
+
// Utility to convert a function check.
|
|
31408
|
+
function callFactory(test) {
|
|
31409
|
+
return call
|
|
31410
|
+
|
|
31411
|
+
function call(node) {
|
|
31412
|
+
return element(node) && Boolean(test.apply(this, arguments))
|
|
31413
|
+
}
|
|
31414
|
+
}
|
|
31415
|
+
|
|
31416
|
+
// Utility to return true if this is an element.
|
|
31417
|
+
function element(node) {
|
|
31418
|
+
return (
|
|
31419
|
+
node &&
|
|
31420
|
+
typeof node === 'object' &&
|
|
31421
|
+
node.type === 'element' &&
|
|
31422
|
+
typeof node.tagName === 'string'
|
|
31423
|
+
)
|
|
31424
|
+
}
|
|
31425
|
+
|
|
31426
|
+
|
|
31427
|
+
/***/ }),
|
|
31428
|
+
|
|
31429
|
+
/***/ 8909:
|
|
31430
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
31431
|
+
|
|
31432
|
+
"use strict";
|
|
31433
|
+
|
|
31434
|
+
|
|
31435
|
+
var convert = __webpack_require__(3216)
|
|
31436
|
+
|
|
31437
|
+
module.exports = isElement
|
|
31438
|
+
|
|
31439
|
+
isElement.convert = convert
|
|
31440
|
+
|
|
31441
|
+
// Check if if `node` is an `element` and whether it passes the given test.
|
|
31442
|
+
function isElement(node, test, index, parent, context) {
|
|
31443
|
+
var hasParent = parent !== null && parent !== undefined
|
|
31444
|
+
var hasIndex = index !== null && index !== undefined
|
|
31445
|
+
var check = convert(test)
|
|
31446
|
+
|
|
31246
31447
|
if (
|
|
31247
|
-
|
|
31248
|
-
typeof
|
|
31249
|
-
node.type !== 'element' ||
|
|
31250
|
-
typeof node.tagName !== 'string'
|
|
31448
|
+
hasIndex &&
|
|
31449
|
+
(typeof index !== 'number' || index < 0 || index === Infinity)
|
|
31251
31450
|
) {
|
|
31252
|
-
|
|
31451
|
+
throw new Error('Expected positive finite index for child node')
|
|
31253
31452
|
}
|
|
31254
31453
|
|
|
31255
|
-
if (
|
|
31256
|
-
|
|
31454
|
+
if (hasParent && (!parent.type || !parent.children)) {
|
|
31455
|
+
throw new Error('Expected parent node')
|
|
31257
31456
|
}
|
|
31258
31457
|
|
|
31259
|
-
|
|
31458
|
+
if (!node || !node.type || typeof node.type !== 'string') {
|
|
31459
|
+
return false
|
|
31460
|
+
}
|
|
31260
31461
|
|
|
31261
|
-
if (
|
|
31262
|
-
|
|
31462
|
+
if (hasParent !== hasIndex) {
|
|
31463
|
+
throw new Error('Expected both parent and index')
|
|
31263
31464
|
}
|
|
31264
31465
|
|
|
31265
|
-
return
|
|
31466
|
+
return check.call(context, node, index, parent)
|
|
31266
31467
|
}
|
|
31267
31468
|
|
|
31268
31469
|
|
|
@@ -36640,543 +36841,6 @@ function disallowed(code) {
|
|
|
36640
36841
|
}
|
|
36641
36842
|
|
|
36642
36843
|
|
|
36643
|
-
/***/ }),
|
|
36644
|
-
|
|
36645
|
-
/***/ 6470:
|
|
36646
|
-
/***/ ((module) => {
|
|
36647
|
-
|
|
36648
|
-
"use strict";
|
|
36649
|
-
// 'path' module extracted from Node.js v8.11.1 (only the posix part)
|
|
36650
|
-
// transplited with Babel
|
|
36651
|
-
|
|
36652
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
36653
|
-
//
|
|
36654
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
36655
|
-
// copy of this software and associated documentation files (the
|
|
36656
|
-
// "Software"), to deal in the Software without restriction, including
|
|
36657
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
36658
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
36659
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
36660
|
-
// following conditions:
|
|
36661
|
-
//
|
|
36662
|
-
// The above copyright notice and this permission notice shall be included
|
|
36663
|
-
// in all copies or substantial portions of the Software.
|
|
36664
|
-
//
|
|
36665
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
36666
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
36667
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
36668
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
36669
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
36670
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
36671
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
36672
|
-
|
|
36673
|
-
|
|
36674
|
-
|
|
36675
|
-
function assertPath(path) {
|
|
36676
|
-
if (typeof path !== 'string') {
|
|
36677
|
-
throw new TypeError('Path must be a string. Received ' + JSON.stringify(path));
|
|
36678
|
-
}
|
|
36679
|
-
}
|
|
36680
|
-
|
|
36681
|
-
// Resolves . and .. elements in a path with directory names
|
|
36682
|
-
function normalizeStringPosix(path, allowAboveRoot) {
|
|
36683
|
-
var res = '';
|
|
36684
|
-
var lastSegmentLength = 0;
|
|
36685
|
-
var lastSlash = -1;
|
|
36686
|
-
var dots = 0;
|
|
36687
|
-
var code;
|
|
36688
|
-
for (var i = 0; i <= path.length; ++i) {
|
|
36689
|
-
if (i < path.length)
|
|
36690
|
-
code = path.charCodeAt(i);
|
|
36691
|
-
else if (code === 47 /*/*/)
|
|
36692
|
-
break;
|
|
36693
|
-
else
|
|
36694
|
-
code = 47 /*/*/;
|
|
36695
|
-
if (code === 47 /*/*/) {
|
|
36696
|
-
if (lastSlash === i - 1 || dots === 1) {
|
|
36697
|
-
// NOOP
|
|
36698
|
-
} else if (lastSlash !== i - 1 && dots === 2) {
|
|
36699
|
-
if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 /*.*/ || res.charCodeAt(res.length - 2) !== 46 /*.*/) {
|
|
36700
|
-
if (res.length > 2) {
|
|
36701
|
-
var lastSlashIndex = res.lastIndexOf('/');
|
|
36702
|
-
if (lastSlashIndex !== res.length - 1) {
|
|
36703
|
-
if (lastSlashIndex === -1) {
|
|
36704
|
-
res = '';
|
|
36705
|
-
lastSegmentLength = 0;
|
|
36706
|
-
} else {
|
|
36707
|
-
res = res.slice(0, lastSlashIndex);
|
|
36708
|
-
lastSegmentLength = res.length - 1 - res.lastIndexOf('/');
|
|
36709
|
-
}
|
|
36710
|
-
lastSlash = i;
|
|
36711
|
-
dots = 0;
|
|
36712
|
-
continue;
|
|
36713
|
-
}
|
|
36714
|
-
} else if (res.length === 2 || res.length === 1) {
|
|
36715
|
-
res = '';
|
|
36716
|
-
lastSegmentLength = 0;
|
|
36717
|
-
lastSlash = i;
|
|
36718
|
-
dots = 0;
|
|
36719
|
-
continue;
|
|
36720
|
-
}
|
|
36721
|
-
}
|
|
36722
|
-
if (allowAboveRoot) {
|
|
36723
|
-
if (res.length > 0)
|
|
36724
|
-
res += '/..';
|
|
36725
|
-
else
|
|
36726
|
-
res = '..';
|
|
36727
|
-
lastSegmentLength = 2;
|
|
36728
|
-
}
|
|
36729
|
-
} else {
|
|
36730
|
-
if (res.length > 0)
|
|
36731
|
-
res += '/' + path.slice(lastSlash + 1, i);
|
|
36732
|
-
else
|
|
36733
|
-
res = path.slice(lastSlash + 1, i);
|
|
36734
|
-
lastSegmentLength = i - lastSlash - 1;
|
|
36735
|
-
}
|
|
36736
|
-
lastSlash = i;
|
|
36737
|
-
dots = 0;
|
|
36738
|
-
} else if (code === 46 /*.*/ && dots !== -1) {
|
|
36739
|
-
++dots;
|
|
36740
|
-
} else {
|
|
36741
|
-
dots = -1;
|
|
36742
|
-
}
|
|
36743
|
-
}
|
|
36744
|
-
return res;
|
|
36745
|
-
}
|
|
36746
|
-
|
|
36747
|
-
function _format(sep, pathObject) {
|
|
36748
|
-
var dir = pathObject.dir || pathObject.root;
|
|
36749
|
-
var base = pathObject.base || (pathObject.name || '') + (pathObject.ext || '');
|
|
36750
|
-
if (!dir) {
|
|
36751
|
-
return base;
|
|
36752
|
-
}
|
|
36753
|
-
if (dir === pathObject.root) {
|
|
36754
|
-
return dir + base;
|
|
36755
|
-
}
|
|
36756
|
-
return dir + sep + base;
|
|
36757
|
-
}
|
|
36758
|
-
|
|
36759
|
-
var posix = {
|
|
36760
|
-
// path.resolve([from ...], to)
|
|
36761
|
-
resolve: function resolve() {
|
|
36762
|
-
var resolvedPath = '';
|
|
36763
|
-
var resolvedAbsolute = false;
|
|
36764
|
-
var cwd;
|
|
36765
|
-
|
|
36766
|
-
for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
|
36767
|
-
var path;
|
|
36768
|
-
if (i >= 0)
|
|
36769
|
-
path = arguments[i];
|
|
36770
|
-
else {
|
|
36771
|
-
if (cwd === undefined)
|
|
36772
|
-
cwd = process.cwd();
|
|
36773
|
-
path = cwd;
|
|
36774
|
-
}
|
|
36775
|
-
|
|
36776
|
-
assertPath(path);
|
|
36777
|
-
|
|
36778
|
-
// Skip empty entries
|
|
36779
|
-
if (path.length === 0) {
|
|
36780
|
-
continue;
|
|
36781
|
-
}
|
|
36782
|
-
|
|
36783
|
-
resolvedPath = path + '/' + resolvedPath;
|
|
36784
|
-
resolvedAbsolute = path.charCodeAt(0) === 47 /*/*/;
|
|
36785
|
-
}
|
|
36786
|
-
|
|
36787
|
-
// At this point the path should be resolved to a full absolute path, but
|
|
36788
|
-
// handle relative paths to be safe (might happen when process.cwd() fails)
|
|
36789
|
-
|
|
36790
|
-
// Normalize the path
|
|
36791
|
-
resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute);
|
|
36792
|
-
|
|
36793
|
-
if (resolvedAbsolute) {
|
|
36794
|
-
if (resolvedPath.length > 0)
|
|
36795
|
-
return '/' + resolvedPath;
|
|
36796
|
-
else
|
|
36797
|
-
return '/';
|
|
36798
|
-
} else if (resolvedPath.length > 0) {
|
|
36799
|
-
return resolvedPath;
|
|
36800
|
-
} else {
|
|
36801
|
-
return '.';
|
|
36802
|
-
}
|
|
36803
|
-
},
|
|
36804
|
-
|
|
36805
|
-
normalize: function normalize(path) {
|
|
36806
|
-
assertPath(path);
|
|
36807
|
-
|
|
36808
|
-
if (path.length === 0) return '.';
|
|
36809
|
-
|
|
36810
|
-
var isAbsolute = path.charCodeAt(0) === 47 /*/*/;
|
|
36811
|
-
var trailingSeparator = path.charCodeAt(path.length - 1) === 47 /*/*/;
|
|
36812
|
-
|
|
36813
|
-
// Normalize the path
|
|
36814
|
-
path = normalizeStringPosix(path, !isAbsolute);
|
|
36815
|
-
|
|
36816
|
-
if (path.length === 0 && !isAbsolute) path = '.';
|
|
36817
|
-
if (path.length > 0 && trailingSeparator) path += '/';
|
|
36818
|
-
|
|
36819
|
-
if (isAbsolute) return '/' + path;
|
|
36820
|
-
return path;
|
|
36821
|
-
},
|
|
36822
|
-
|
|
36823
|
-
isAbsolute: function isAbsolute(path) {
|
|
36824
|
-
assertPath(path);
|
|
36825
|
-
return path.length > 0 && path.charCodeAt(0) === 47 /*/*/;
|
|
36826
|
-
},
|
|
36827
|
-
|
|
36828
|
-
join: function join() {
|
|
36829
|
-
if (arguments.length === 0)
|
|
36830
|
-
return '.';
|
|
36831
|
-
var joined;
|
|
36832
|
-
for (var i = 0; i < arguments.length; ++i) {
|
|
36833
|
-
var arg = arguments[i];
|
|
36834
|
-
assertPath(arg);
|
|
36835
|
-
if (arg.length > 0) {
|
|
36836
|
-
if (joined === undefined)
|
|
36837
|
-
joined = arg;
|
|
36838
|
-
else
|
|
36839
|
-
joined += '/' + arg;
|
|
36840
|
-
}
|
|
36841
|
-
}
|
|
36842
|
-
if (joined === undefined)
|
|
36843
|
-
return '.';
|
|
36844
|
-
return posix.normalize(joined);
|
|
36845
|
-
},
|
|
36846
|
-
|
|
36847
|
-
relative: function relative(from, to) {
|
|
36848
|
-
assertPath(from);
|
|
36849
|
-
assertPath(to);
|
|
36850
|
-
|
|
36851
|
-
if (from === to) return '';
|
|
36852
|
-
|
|
36853
|
-
from = posix.resolve(from);
|
|
36854
|
-
to = posix.resolve(to);
|
|
36855
|
-
|
|
36856
|
-
if (from === to) return '';
|
|
36857
|
-
|
|
36858
|
-
// Trim any leading backslashes
|
|
36859
|
-
var fromStart = 1;
|
|
36860
|
-
for (; fromStart < from.length; ++fromStart) {
|
|
36861
|
-
if (from.charCodeAt(fromStart) !== 47 /*/*/)
|
|
36862
|
-
break;
|
|
36863
|
-
}
|
|
36864
|
-
var fromEnd = from.length;
|
|
36865
|
-
var fromLen = fromEnd - fromStart;
|
|
36866
|
-
|
|
36867
|
-
// Trim any leading backslashes
|
|
36868
|
-
var toStart = 1;
|
|
36869
|
-
for (; toStart < to.length; ++toStart) {
|
|
36870
|
-
if (to.charCodeAt(toStart) !== 47 /*/*/)
|
|
36871
|
-
break;
|
|
36872
|
-
}
|
|
36873
|
-
var toEnd = to.length;
|
|
36874
|
-
var toLen = toEnd - toStart;
|
|
36875
|
-
|
|
36876
|
-
// Compare paths to find the longest common path from root
|
|
36877
|
-
var length = fromLen < toLen ? fromLen : toLen;
|
|
36878
|
-
var lastCommonSep = -1;
|
|
36879
|
-
var i = 0;
|
|
36880
|
-
for (; i <= length; ++i) {
|
|
36881
|
-
if (i === length) {
|
|
36882
|
-
if (toLen > length) {
|
|
36883
|
-
if (to.charCodeAt(toStart + i) === 47 /*/*/) {
|
|
36884
|
-
// We get here if `from` is the exact base path for `to`.
|
|
36885
|
-
// For example: from='/foo/bar'; to='/foo/bar/baz'
|
|
36886
|
-
return to.slice(toStart + i + 1);
|
|
36887
|
-
} else if (i === 0) {
|
|
36888
|
-
// We get here if `from` is the root
|
|
36889
|
-
// For example: from='/'; to='/foo'
|
|
36890
|
-
return to.slice(toStart + i);
|
|
36891
|
-
}
|
|
36892
|
-
} else if (fromLen > length) {
|
|
36893
|
-
if (from.charCodeAt(fromStart + i) === 47 /*/*/) {
|
|
36894
|
-
// We get here if `to` is the exact base path for `from`.
|
|
36895
|
-
// For example: from='/foo/bar/baz'; to='/foo/bar'
|
|
36896
|
-
lastCommonSep = i;
|
|
36897
|
-
} else if (i === 0) {
|
|
36898
|
-
// We get here if `to` is the root.
|
|
36899
|
-
// For example: from='/foo'; to='/'
|
|
36900
|
-
lastCommonSep = 0;
|
|
36901
|
-
}
|
|
36902
|
-
}
|
|
36903
|
-
break;
|
|
36904
|
-
}
|
|
36905
|
-
var fromCode = from.charCodeAt(fromStart + i);
|
|
36906
|
-
var toCode = to.charCodeAt(toStart + i);
|
|
36907
|
-
if (fromCode !== toCode)
|
|
36908
|
-
break;
|
|
36909
|
-
else if (fromCode === 47 /*/*/)
|
|
36910
|
-
lastCommonSep = i;
|
|
36911
|
-
}
|
|
36912
|
-
|
|
36913
|
-
var out = '';
|
|
36914
|
-
// Generate the relative path based on the path difference between `to`
|
|
36915
|
-
// and `from`
|
|
36916
|
-
for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
|
|
36917
|
-
if (i === fromEnd || from.charCodeAt(i) === 47 /*/*/) {
|
|
36918
|
-
if (out.length === 0)
|
|
36919
|
-
out += '..';
|
|
36920
|
-
else
|
|
36921
|
-
out += '/..';
|
|
36922
|
-
}
|
|
36923
|
-
}
|
|
36924
|
-
|
|
36925
|
-
// Lastly, append the rest of the destination (`to`) path that comes after
|
|
36926
|
-
// the common path parts
|
|
36927
|
-
if (out.length > 0)
|
|
36928
|
-
return out + to.slice(toStart + lastCommonSep);
|
|
36929
|
-
else {
|
|
36930
|
-
toStart += lastCommonSep;
|
|
36931
|
-
if (to.charCodeAt(toStart) === 47 /*/*/)
|
|
36932
|
-
++toStart;
|
|
36933
|
-
return to.slice(toStart);
|
|
36934
|
-
}
|
|
36935
|
-
},
|
|
36936
|
-
|
|
36937
|
-
_makeLong: function _makeLong(path) {
|
|
36938
|
-
return path;
|
|
36939
|
-
},
|
|
36940
|
-
|
|
36941
|
-
dirname: function dirname(path) {
|
|
36942
|
-
assertPath(path);
|
|
36943
|
-
if (path.length === 0) return '.';
|
|
36944
|
-
var code = path.charCodeAt(0);
|
|
36945
|
-
var hasRoot = code === 47 /*/*/;
|
|
36946
|
-
var end = -1;
|
|
36947
|
-
var matchedSlash = true;
|
|
36948
|
-
for (var i = path.length - 1; i >= 1; --i) {
|
|
36949
|
-
code = path.charCodeAt(i);
|
|
36950
|
-
if (code === 47 /*/*/) {
|
|
36951
|
-
if (!matchedSlash) {
|
|
36952
|
-
end = i;
|
|
36953
|
-
break;
|
|
36954
|
-
}
|
|
36955
|
-
} else {
|
|
36956
|
-
// We saw the first non-path separator
|
|
36957
|
-
matchedSlash = false;
|
|
36958
|
-
}
|
|
36959
|
-
}
|
|
36960
|
-
|
|
36961
|
-
if (end === -1) return hasRoot ? '/' : '.';
|
|
36962
|
-
if (hasRoot && end === 1) return '//';
|
|
36963
|
-
return path.slice(0, end);
|
|
36964
|
-
},
|
|
36965
|
-
|
|
36966
|
-
basename: function basename(path, ext) {
|
|
36967
|
-
if (ext !== undefined && typeof ext !== 'string') throw new TypeError('"ext" argument must be a string');
|
|
36968
|
-
assertPath(path);
|
|
36969
|
-
|
|
36970
|
-
var start = 0;
|
|
36971
|
-
var end = -1;
|
|
36972
|
-
var matchedSlash = true;
|
|
36973
|
-
var i;
|
|
36974
|
-
|
|
36975
|
-
if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {
|
|
36976
|
-
if (ext.length === path.length && ext === path) return '';
|
|
36977
|
-
var extIdx = ext.length - 1;
|
|
36978
|
-
var firstNonSlashEnd = -1;
|
|
36979
|
-
for (i = path.length - 1; i >= 0; --i) {
|
|
36980
|
-
var code = path.charCodeAt(i);
|
|
36981
|
-
if (code === 47 /*/*/) {
|
|
36982
|
-
// If we reached a path separator that was not part of a set of path
|
|
36983
|
-
// separators at the end of the string, stop now
|
|
36984
|
-
if (!matchedSlash) {
|
|
36985
|
-
start = i + 1;
|
|
36986
|
-
break;
|
|
36987
|
-
}
|
|
36988
|
-
} else {
|
|
36989
|
-
if (firstNonSlashEnd === -1) {
|
|
36990
|
-
// We saw the first non-path separator, remember this index in case
|
|
36991
|
-
// we need it if the extension ends up not matching
|
|
36992
|
-
matchedSlash = false;
|
|
36993
|
-
firstNonSlashEnd = i + 1;
|
|
36994
|
-
}
|
|
36995
|
-
if (extIdx >= 0) {
|
|
36996
|
-
// Try to match the explicit extension
|
|
36997
|
-
if (code === ext.charCodeAt(extIdx)) {
|
|
36998
|
-
if (--extIdx === -1) {
|
|
36999
|
-
// We matched the extension, so mark this as the end of our path
|
|
37000
|
-
// component
|
|
37001
|
-
end = i;
|
|
37002
|
-
}
|
|
37003
|
-
} else {
|
|
37004
|
-
// Extension does not match, so our result is the entire path
|
|
37005
|
-
// component
|
|
37006
|
-
extIdx = -1;
|
|
37007
|
-
end = firstNonSlashEnd;
|
|
37008
|
-
}
|
|
37009
|
-
}
|
|
37010
|
-
}
|
|
37011
|
-
}
|
|
37012
|
-
|
|
37013
|
-
if (start === end) end = firstNonSlashEnd;else if (end === -1) end = path.length;
|
|
37014
|
-
return path.slice(start, end);
|
|
37015
|
-
} else {
|
|
37016
|
-
for (i = path.length - 1; i >= 0; --i) {
|
|
37017
|
-
if (path.charCodeAt(i) === 47 /*/*/) {
|
|
37018
|
-
// If we reached a path separator that was not part of a set of path
|
|
37019
|
-
// separators at the end of the string, stop now
|
|
37020
|
-
if (!matchedSlash) {
|
|
37021
|
-
start = i + 1;
|
|
37022
|
-
break;
|
|
37023
|
-
}
|
|
37024
|
-
} else if (end === -1) {
|
|
37025
|
-
// We saw the first non-path separator, mark this as the end of our
|
|
37026
|
-
// path component
|
|
37027
|
-
matchedSlash = false;
|
|
37028
|
-
end = i + 1;
|
|
37029
|
-
}
|
|
37030
|
-
}
|
|
37031
|
-
|
|
37032
|
-
if (end === -1) return '';
|
|
37033
|
-
return path.slice(start, end);
|
|
37034
|
-
}
|
|
37035
|
-
},
|
|
37036
|
-
|
|
37037
|
-
extname: function extname(path) {
|
|
37038
|
-
assertPath(path);
|
|
37039
|
-
var startDot = -1;
|
|
37040
|
-
var startPart = 0;
|
|
37041
|
-
var end = -1;
|
|
37042
|
-
var matchedSlash = true;
|
|
37043
|
-
// Track the state of characters (if any) we see before our first dot and
|
|
37044
|
-
// after any path separator we find
|
|
37045
|
-
var preDotState = 0;
|
|
37046
|
-
for (var i = path.length - 1; i >= 0; --i) {
|
|
37047
|
-
var code = path.charCodeAt(i);
|
|
37048
|
-
if (code === 47 /*/*/) {
|
|
37049
|
-
// If we reached a path separator that was not part of a set of path
|
|
37050
|
-
// separators at the end of the string, stop now
|
|
37051
|
-
if (!matchedSlash) {
|
|
37052
|
-
startPart = i + 1;
|
|
37053
|
-
break;
|
|
37054
|
-
}
|
|
37055
|
-
continue;
|
|
37056
|
-
}
|
|
37057
|
-
if (end === -1) {
|
|
37058
|
-
// We saw the first non-path separator, mark this as the end of our
|
|
37059
|
-
// extension
|
|
37060
|
-
matchedSlash = false;
|
|
37061
|
-
end = i + 1;
|
|
37062
|
-
}
|
|
37063
|
-
if (code === 46 /*.*/) {
|
|
37064
|
-
// If this is our first dot, mark it as the start of our extension
|
|
37065
|
-
if (startDot === -1)
|
|
37066
|
-
startDot = i;
|
|
37067
|
-
else if (preDotState !== 1)
|
|
37068
|
-
preDotState = 1;
|
|
37069
|
-
} else if (startDot !== -1) {
|
|
37070
|
-
// We saw a non-dot and non-path separator before our dot, so we should
|
|
37071
|
-
// have a good chance at having a non-empty extension
|
|
37072
|
-
preDotState = -1;
|
|
37073
|
-
}
|
|
37074
|
-
}
|
|
37075
|
-
|
|
37076
|
-
if (startDot === -1 || end === -1 ||
|
|
37077
|
-
// We saw a non-dot character immediately before the dot
|
|
37078
|
-
preDotState === 0 ||
|
|
37079
|
-
// The (right-most) trimmed path component is exactly '..'
|
|
37080
|
-
preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
|
|
37081
|
-
return '';
|
|
37082
|
-
}
|
|
37083
|
-
return path.slice(startDot, end);
|
|
37084
|
-
},
|
|
37085
|
-
|
|
37086
|
-
format: function format(pathObject) {
|
|
37087
|
-
if (pathObject === null || typeof pathObject !== 'object') {
|
|
37088
|
-
throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject);
|
|
37089
|
-
}
|
|
37090
|
-
return _format('/', pathObject);
|
|
37091
|
-
},
|
|
37092
|
-
|
|
37093
|
-
parse: function parse(path) {
|
|
37094
|
-
assertPath(path);
|
|
37095
|
-
|
|
37096
|
-
var ret = { root: '', dir: '', base: '', ext: '', name: '' };
|
|
37097
|
-
if (path.length === 0) return ret;
|
|
37098
|
-
var code = path.charCodeAt(0);
|
|
37099
|
-
var isAbsolute = code === 47 /*/*/;
|
|
37100
|
-
var start;
|
|
37101
|
-
if (isAbsolute) {
|
|
37102
|
-
ret.root = '/';
|
|
37103
|
-
start = 1;
|
|
37104
|
-
} else {
|
|
37105
|
-
start = 0;
|
|
37106
|
-
}
|
|
37107
|
-
var startDot = -1;
|
|
37108
|
-
var startPart = 0;
|
|
37109
|
-
var end = -1;
|
|
37110
|
-
var matchedSlash = true;
|
|
37111
|
-
var i = path.length - 1;
|
|
37112
|
-
|
|
37113
|
-
// Track the state of characters (if any) we see before our first dot and
|
|
37114
|
-
// after any path separator we find
|
|
37115
|
-
var preDotState = 0;
|
|
37116
|
-
|
|
37117
|
-
// Get non-dir info
|
|
37118
|
-
for (; i >= start; --i) {
|
|
37119
|
-
code = path.charCodeAt(i);
|
|
37120
|
-
if (code === 47 /*/*/) {
|
|
37121
|
-
// If we reached a path separator that was not part of a set of path
|
|
37122
|
-
// separators at the end of the string, stop now
|
|
37123
|
-
if (!matchedSlash) {
|
|
37124
|
-
startPart = i + 1;
|
|
37125
|
-
break;
|
|
37126
|
-
}
|
|
37127
|
-
continue;
|
|
37128
|
-
}
|
|
37129
|
-
if (end === -1) {
|
|
37130
|
-
// We saw the first non-path separator, mark this as the end of our
|
|
37131
|
-
// extension
|
|
37132
|
-
matchedSlash = false;
|
|
37133
|
-
end = i + 1;
|
|
37134
|
-
}
|
|
37135
|
-
if (code === 46 /*.*/) {
|
|
37136
|
-
// If this is our first dot, mark it as the start of our extension
|
|
37137
|
-
if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;
|
|
37138
|
-
} else if (startDot !== -1) {
|
|
37139
|
-
// We saw a non-dot and non-path separator before our dot, so we should
|
|
37140
|
-
// have a good chance at having a non-empty extension
|
|
37141
|
-
preDotState = -1;
|
|
37142
|
-
}
|
|
37143
|
-
}
|
|
37144
|
-
|
|
37145
|
-
if (startDot === -1 || end === -1 ||
|
|
37146
|
-
// We saw a non-dot character immediately before the dot
|
|
37147
|
-
preDotState === 0 ||
|
|
37148
|
-
// The (right-most) trimmed path component is exactly '..'
|
|
37149
|
-
preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
|
|
37150
|
-
if (end !== -1) {
|
|
37151
|
-
if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end);else ret.base = ret.name = path.slice(startPart, end);
|
|
37152
|
-
}
|
|
37153
|
-
} else {
|
|
37154
|
-
if (startPart === 0 && isAbsolute) {
|
|
37155
|
-
ret.name = path.slice(1, startDot);
|
|
37156
|
-
ret.base = path.slice(1, end);
|
|
37157
|
-
} else {
|
|
37158
|
-
ret.name = path.slice(startPart, startDot);
|
|
37159
|
-
ret.base = path.slice(startPart, end);
|
|
37160
|
-
}
|
|
37161
|
-
ret.ext = path.slice(startDot, end);
|
|
37162
|
-
}
|
|
37163
|
-
|
|
37164
|
-
if (startPart > 0) ret.dir = path.slice(0, startPart - 1);else if (isAbsolute) ret.dir = '/';
|
|
37165
|
-
|
|
37166
|
-
return ret;
|
|
37167
|
-
},
|
|
37168
|
-
|
|
37169
|
-
sep: '/',
|
|
37170
|
-
delimiter: ':',
|
|
37171
|
-
win32: null,
|
|
37172
|
-
posix: null
|
|
37173
|
-
};
|
|
37174
|
-
|
|
37175
|
-
posix.posix = posix;
|
|
37176
|
-
|
|
37177
|
-
module.exports = posix;
|
|
37178
|
-
|
|
37179
|
-
|
|
37180
36844
|
/***/ }),
|
|
37181
36845
|
|
|
37182
36846
|
/***/ 2703:
|
|
@@ -38700,6 +38364,104 @@ var svg = __webpack_require__(5789)
|
|
|
38700
38364
|
module.exports = merge([xml, xlink, xmlns, aria, svg])
|
|
38701
38365
|
|
|
38702
38366
|
|
|
38367
|
+
/***/ }),
|
|
38368
|
+
|
|
38369
|
+
/***/ 3322:
|
|
38370
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
38371
|
+
|
|
38372
|
+
"use strict";
|
|
38373
|
+
|
|
38374
|
+
|
|
38375
|
+
var fromParse5 = __webpack_require__(7721)
|
|
38376
|
+
var Parser5 = __webpack_require__(6425)
|
|
38377
|
+
var errors = __webpack_require__(2471)
|
|
38378
|
+
|
|
38379
|
+
var base = 'https://html.spec.whatwg.org/multipage/parsing.html#parse-error-'
|
|
38380
|
+
|
|
38381
|
+
var fatalities = {2: true, 1: false, 0: null}
|
|
38382
|
+
|
|
38383
|
+
module.exports = parse
|
|
38384
|
+
|
|
38385
|
+
function parse(options) {
|
|
38386
|
+
var settings = Object.assign({}, options, this.data('settings'))
|
|
38387
|
+
var position = settings.position
|
|
38388
|
+
|
|
38389
|
+
position = typeof position === 'boolean' ? position : true
|
|
38390
|
+
|
|
38391
|
+
this.Parser = parser
|
|
38392
|
+
|
|
38393
|
+
function parser(doc, file) {
|
|
38394
|
+
var fn = settings.fragment ? 'parseFragment' : 'parse'
|
|
38395
|
+
var onParseError = settings.emitParseErrors ? onerror : null
|
|
38396
|
+
var parse5 = new Parser5({
|
|
38397
|
+
sourceCodeLocationInfo: position,
|
|
38398
|
+
onParseError: onParseError,
|
|
38399
|
+
scriptingEnabled: false
|
|
38400
|
+
})
|
|
38401
|
+
|
|
38402
|
+
return fromParse5(parse5[fn](doc), {
|
|
38403
|
+
space: settings.space,
|
|
38404
|
+
file: file,
|
|
38405
|
+
verbose: settings.verbose
|
|
38406
|
+
})
|
|
38407
|
+
|
|
38408
|
+
function onerror(err) {
|
|
38409
|
+
var code = err.code
|
|
38410
|
+
var name = camelcase(code)
|
|
38411
|
+
var setting = settings[name]
|
|
38412
|
+
var config = setting === undefined || setting === null ? true : setting
|
|
38413
|
+
var level = typeof config === 'number' ? config : config ? 1 : 0
|
|
38414
|
+
var start = {
|
|
38415
|
+
line: err.startLine,
|
|
38416
|
+
column: err.startCol,
|
|
38417
|
+
offset: err.startOffset
|
|
38418
|
+
}
|
|
38419
|
+
var end = {line: err.endLine, column: err.endCol, offset: err.endOffset}
|
|
38420
|
+
var info
|
|
38421
|
+
var message
|
|
38422
|
+
|
|
38423
|
+
if (level) {
|
|
38424
|
+
info = errors[name] || /* istanbul ignore next */ {
|
|
38425
|
+
reason: '',
|
|
38426
|
+
description: ''
|
|
38427
|
+
}
|
|
38428
|
+
|
|
38429
|
+
message = file.message(format(info.reason), {start: start, end: end})
|
|
38430
|
+
message.source = 'parse-error'
|
|
38431
|
+
message.ruleId = code
|
|
38432
|
+
message.fatal = fatalities[level]
|
|
38433
|
+
message.note = format(info.description)
|
|
38434
|
+
message.url = info.url === false ? null : base + code
|
|
38435
|
+
}
|
|
38436
|
+
|
|
38437
|
+
function format(value) {
|
|
38438
|
+
return value.replace(/%c(?:-(\d+))?/g, char).replace(/%x/g, encodedChar)
|
|
38439
|
+
}
|
|
38440
|
+
|
|
38441
|
+
function char($0, $1) {
|
|
38442
|
+
var offset = $1 ? -parseInt($1, 10) : 0
|
|
38443
|
+
var char = doc.charAt(err.startOffset + offset)
|
|
38444
|
+
return char === '`' ? '` ` `' : char
|
|
38445
|
+
}
|
|
38446
|
+
|
|
38447
|
+
function encodedChar() {
|
|
38448
|
+
var char = doc.charCodeAt(err.startOffset).toString(16).toUpperCase()
|
|
38449
|
+
|
|
38450
|
+
return '0x' + char
|
|
38451
|
+
}
|
|
38452
|
+
}
|
|
38453
|
+
}
|
|
38454
|
+
}
|
|
38455
|
+
|
|
38456
|
+
function camelcase(value) {
|
|
38457
|
+
return value.replace(/-[a-z]/g, replacer)
|
|
38458
|
+
}
|
|
38459
|
+
|
|
38460
|
+
function replacer($0) {
|
|
38461
|
+
return $0.charAt(1).toUpperCase()
|
|
38462
|
+
}
|
|
38463
|
+
|
|
38464
|
+
|
|
38703
38465
|
/***/ }),
|
|
38704
38466
|
|
|
38705
38467
|
/***/ 6388:
|
|
@@ -47467,32 +47229,6 @@ function repeat(str, num) {
|
|
|
47467
47229
|
}
|
|
47468
47230
|
|
|
47469
47231
|
|
|
47470
|
-
/***/ }),
|
|
47471
|
-
|
|
47472
|
-
/***/ 8245:
|
|
47473
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
47474
|
-
|
|
47475
|
-
"use strict";
|
|
47476
|
-
|
|
47477
|
-
|
|
47478
|
-
var path = __webpack_require__(6470);
|
|
47479
|
-
|
|
47480
|
-
function replaceExt(npath, ext) {
|
|
47481
|
-
if (typeof npath !== 'string') {
|
|
47482
|
-
return npath;
|
|
47483
|
-
}
|
|
47484
|
-
|
|
47485
|
-
if (npath.length === 0) {
|
|
47486
|
-
return npath;
|
|
47487
|
-
}
|
|
47488
|
-
|
|
47489
|
-
var nFileName = path.basename(npath, path.extname(npath)) + ext;
|
|
47490
|
-
return path.join(path.dirname(npath), nFileName);
|
|
47491
|
-
}
|
|
47492
|
-
|
|
47493
|
-
module.exports = replaceExt;
|
|
47494
|
-
|
|
47495
|
-
|
|
47496
47232
|
/***/ }),
|
|
47497
47233
|
|
|
47498
47234
|
/***/ 6582:
|
|
@@ -49607,48 +49343,66 @@ function parseOrigin(origin) {
|
|
|
49607
49343
|
|
|
49608
49344
|
/***/ }),
|
|
49609
49345
|
|
|
49610
|
-
/***/
|
|
49346
|
+
/***/ 939:
|
|
49611
49347
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
49612
49348
|
|
|
49613
49349
|
"use strict";
|
|
49614
49350
|
|
|
49615
49351
|
|
|
49616
|
-
|
|
49617
|
-
|
|
49352
|
+
module.exports = __webpack_require__(5905)
|
|
49353
|
+
|
|
49354
|
+
|
|
49355
|
+
/***/ }),
|
|
49356
|
+
|
|
49357
|
+
/***/ 5442:
|
|
49358
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
49359
|
+
|
|
49360
|
+
"use strict";
|
|
49361
|
+
|
|
49362
|
+
|
|
49363
|
+
var p = __webpack_require__(8064)
|
|
49364
|
+
var proc = __webpack_require__(4228)
|
|
49618
49365
|
var buffer = __webpack_require__(8738)
|
|
49619
49366
|
|
|
49620
49367
|
module.exports = VFile
|
|
49621
49368
|
|
|
49622
49369
|
var own = {}.hasOwnProperty
|
|
49623
|
-
var proto = VFile.prototype
|
|
49624
49370
|
|
|
49625
49371
|
// Order of setting (least specific to most), we need this because otherwise
|
|
49626
49372
|
// `{stem: 'a', path: '~/b.js'}` would throw, as a path is needed before a
|
|
49627
49373
|
// stem can be set.
|
|
49628
49374
|
var order = ['history', 'path', 'basename', 'stem', 'extname', 'dirname']
|
|
49629
49375
|
|
|
49630
|
-
|
|
49376
|
+
VFile.prototype.toString = toString
|
|
49631
49377
|
|
|
49632
49378
|
// Access full path (`~/index.min.js`).
|
|
49633
|
-
Object.defineProperty(
|
|
49379
|
+
Object.defineProperty(VFile.prototype, 'path', {get: getPath, set: setPath})
|
|
49634
49380
|
|
|
49635
49381
|
// Access parent path (`~`).
|
|
49636
|
-
Object.defineProperty(
|
|
49382
|
+
Object.defineProperty(VFile.prototype, 'dirname', {
|
|
49383
|
+
get: getDirname,
|
|
49384
|
+
set: setDirname
|
|
49385
|
+
})
|
|
49637
49386
|
|
|
49638
49387
|
// Access basename (`index.min.js`).
|
|
49639
|
-
Object.defineProperty(
|
|
49388
|
+
Object.defineProperty(VFile.prototype, 'basename', {
|
|
49389
|
+
get: getBasename,
|
|
49390
|
+
set: setBasename
|
|
49391
|
+
})
|
|
49640
49392
|
|
|
49641
49393
|
// Access extname (`.js`).
|
|
49642
|
-
Object.defineProperty(
|
|
49394
|
+
Object.defineProperty(VFile.prototype, 'extname', {
|
|
49395
|
+
get: getExtname,
|
|
49396
|
+
set: setExtname
|
|
49397
|
+
})
|
|
49643
49398
|
|
|
49644
49399
|
// Access stem (`index.min`).
|
|
49645
|
-
Object.defineProperty(
|
|
49400
|
+
Object.defineProperty(VFile.prototype, 'stem', {get: getStem, set: setStem})
|
|
49646
49401
|
|
|
49647
49402
|
// Construct a new file.
|
|
49648
49403
|
function VFile(options) {
|
|
49649
49404
|
var prop
|
|
49650
49405
|
var index
|
|
49651
|
-
var length
|
|
49652
49406
|
|
|
49653
49407
|
if (!options) {
|
|
49654
49408
|
options = {}
|
|
@@ -49665,13 +49419,12 @@ function VFile(options) {
|
|
|
49665
49419
|
this.data = {}
|
|
49666
49420
|
this.messages = []
|
|
49667
49421
|
this.history = []
|
|
49668
|
-
this.cwd =
|
|
49422
|
+
this.cwd = proc.cwd()
|
|
49669
49423
|
|
|
49670
49424
|
// Set path related properties in the correct order.
|
|
49671
49425
|
index = -1
|
|
49672
|
-
length = order.length
|
|
49673
49426
|
|
|
49674
|
-
while (++index < length) {
|
|
49427
|
+
while (++index < order.length) {
|
|
49675
49428
|
prop = order[index]
|
|
49676
49429
|
|
|
49677
49430
|
if (own.call(options, prop)) {
|
|
@@ -49681,7 +49434,7 @@ function VFile(options) {
|
|
|
49681
49434
|
|
|
49682
49435
|
// Set non-path related properties.
|
|
49683
49436
|
for (prop in options) {
|
|
49684
|
-
if (order.indexOf(prop)
|
|
49437
|
+
if (order.indexOf(prop) < 0) {
|
|
49685
49438
|
this[prop] = options[prop]
|
|
49686
49439
|
}
|
|
49687
49440
|
}
|
|
@@ -49694,76 +49447,73 @@ function getPath() {
|
|
|
49694
49447
|
function setPath(path) {
|
|
49695
49448
|
assertNonEmpty(path, 'path')
|
|
49696
49449
|
|
|
49697
|
-
if (path !==
|
|
49450
|
+
if (this.path !== path) {
|
|
49698
49451
|
this.history.push(path)
|
|
49699
49452
|
}
|
|
49700
49453
|
}
|
|
49701
49454
|
|
|
49702
49455
|
function getDirname() {
|
|
49703
|
-
return typeof this.path === 'string' ?
|
|
49456
|
+
return typeof this.path === 'string' ? p.dirname(this.path) : undefined
|
|
49704
49457
|
}
|
|
49705
49458
|
|
|
49706
49459
|
function setDirname(dirname) {
|
|
49707
49460
|
assertPath(this.path, 'dirname')
|
|
49708
|
-
this.path =
|
|
49461
|
+
this.path = p.join(dirname || '', this.basename)
|
|
49709
49462
|
}
|
|
49710
49463
|
|
|
49711
49464
|
function getBasename() {
|
|
49712
|
-
return typeof this.path === 'string' ?
|
|
49465
|
+
return typeof this.path === 'string' ? p.basename(this.path) : undefined
|
|
49713
49466
|
}
|
|
49714
49467
|
|
|
49715
49468
|
function setBasename(basename) {
|
|
49716
49469
|
assertNonEmpty(basename, 'basename')
|
|
49717
49470
|
assertPart(basename, 'basename')
|
|
49718
|
-
this.path =
|
|
49471
|
+
this.path = p.join(this.dirname || '', basename)
|
|
49719
49472
|
}
|
|
49720
49473
|
|
|
49721
49474
|
function getExtname() {
|
|
49722
|
-
return typeof this.path === 'string' ?
|
|
49475
|
+
return typeof this.path === 'string' ? p.extname(this.path) : undefined
|
|
49723
49476
|
}
|
|
49724
49477
|
|
|
49725
49478
|
function setExtname(extname) {
|
|
49726
|
-
|
|
49727
|
-
|
|
49728
|
-
assertPart(ext, 'extname')
|
|
49479
|
+
assertPart(extname, 'extname')
|
|
49729
49480
|
assertPath(this.path, 'extname')
|
|
49730
49481
|
|
|
49731
|
-
if (
|
|
49732
|
-
if (
|
|
49482
|
+
if (extname) {
|
|
49483
|
+
if (extname.charCodeAt(0) !== 46 /* `.` */) {
|
|
49733
49484
|
throw new Error('`extname` must start with `.`')
|
|
49734
49485
|
}
|
|
49735
49486
|
|
|
49736
|
-
if (
|
|
49487
|
+
if (extname.indexOf('.', 1) > -1) {
|
|
49737
49488
|
throw new Error('`extname` cannot contain multiple dots')
|
|
49738
49489
|
}
|
|
49739
49490
|
}
|
|
49740
49491
|
|
|
49741
|
-
this.path =
|
|
49492
|
+
this.path = p.join(this.dirname, this.stem + (extname || ''))
|
|
49742
49493
|
}
|
|
49743
49494
|
|
|
49744
49495
|
function getStem() {
|
|
49745
49496
|
return typeof this.path === 'string'
|
|
49746
|
-
?
|
|
49497
|
+
? p.basename(this.path, this.extname)
|
|
49747
49498
|
: undefined
|
|
49748
49499
|
}
|
|
49749
49500
|
|
|
49750
49501
|
function setStem(stem) {
|
|
49751
49502
|
assertNonEmpty(stem, 'stem')
|
|
49752
49503
|
assertPart(stem, 'stem')
|
|
49753
|
-
this.path =
|
|
49504
|
+
this.path = p.join(this.dirname || '', stem + (this.extname || ''))
|
|
49754
49505
|
}
|
|
49755
49506
|
|
|
49756
49507
|
// Get the value of the file.
|
|
49757
49508
|
function toString(encoding) {
|
|
49758
|
-
|
|
49759
|
-
return buffer(value) ? value.toString(encoding) : String(value)
|
|
49509
|
+
return (this.contents || '').toString(encoding)
|
|
49760
49510
|
}
|
|
49761
49511
|
|
|
49762
|
-
// Assert that `part` is not a path (i.e., does not contain `
|
|
49512
|
+
// Assert that `part` is not a path (i.e., does not contain `p.sep`).
|
|
49763
49513
|
function assertPart(part, name) {
|
|
49764
|
-
if (part.indexOf(
|
|
49514
|
+
if (part && part.indexOf(p.sep) > -1) {
|
|
49765
49515
|
throw new Error(
|
|
49766
|
-
'`' + name + '` cannot be a path: did not expect `' +
|
|
49516
|
+
'`' + name + '` cannot be a path: did not expect `' + p.sep + '`'
|
|
49767
49517
|
)
|
|
49768
49518
|
}
|
|
49769
49519
|
}
|
|
@@ -49785,32 +49535,29 @@ function assertPath(path, name) {
|
|
|
49785
49535
|
|
|
49786
49536
|
/***/ }),
|
|
49787
49537
|
|
|
49788
|
-
/***/
|
|
49538
|
+
/***/ 5905:
|
|
49789
49539
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
49790
49540
|
|
|
49791
49541
|
"use strict";
|
|
49792
49542
|
|
|
49793
49543
|
|
|
49794
49544
|
var VMessage = __webpack_require__(734)
|
|
49795
|
-
var VFile = __webpack_require__(
|
|
49545
|
+
var VFile = __webpack_require__(5442)
|
|
49796
49546
|
|
|
49797
49547
|
module.exports = VFile
|
|
49798
49548
|
|
|
49799
|
-
|
|
49800
|
-
|
|
49801
|
-
|
|
49802
|
-
proto.info = info
|
|
49803
|
-
proto.fail = fail
|
|
49549
|
+
VFile.prototype.message = message
|
|
49550
|
+
VFile.prototype.info = info
|
|
49551
|
+
VFile.prototype.fail = fail
|
|
49804
49552
|
|
|
49805
49553
|
// Create a message with `reason` at `position`.
|
|
49806
49554
|
// When an error is passed in as `reason`, copies the stack.
|
|
49807
49555
|
function message(reason, position, origin) {
|
|
49808
|
-
var filePath = this.path
|
|
49809
49556
|
var message = new VMessage(reason, position, origin)
|
|
49810
49557
|
|
|
49811
|
-
if (
|
|
49812
|
-
message.name =
|
|
49813
|
-
message.file =
|
|
49558
|
+
if (this.path) {
|
|
49559
|
+
message.name = this.path + ':' + message.name
|
|
49560
|
+
message.file = this.path
|
|
49814
49561
|
}
|
|
49815
49562
|
|
|
49816
49563
|
message.fatal = false
|
|
@@ -49840,6 +49587,406 @@ function info() {
|
|
|
49840
49587
|
}
|
|
49841
49588
|
|
|
49842
49589
|
|
|
49590
|
+
/***/ }),
|
|
49591
|
+
|
|
49592
|
+
/***/ 8064:
|
|
49593
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
49594
|
+
|
|
49595
|
+
"use strict";
|
|
49596
|
+
|
|
49597
|
+
|
|
49598
|
+
// A derivative work based on:
|
|
49599
|
+
// <https://github.com/browserify/path-browserify>.
|
|
49600
|
+
// Which is licensed:
|
|
49601
|
+
//
|
|
49602
|
+
// MIT License
|
|
49603
|
+
//
|
|
49604
|
+
// Copyright (c) 2013 James Halliday
|
|
49605
|
+
//
|
|
49606
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
49607
|
+
// this software and associated documentation files (the "Software"), to deal in
|
|
49608
|
+
// the Software without restriction, including without limitation the rights to
|
|
49609
|
+
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
49610
|
+
// the Software, and to permit persons to whom the Software is furnished to do so,
|
|
49611
|
+
// subject to the following conditions:
|
|
49612
|
+
//
|
|
49613
|
+
// The above copyright notice and this permission notice shall be included in all
|
|
49614
|
+
// copies or substantial portions of the Software.
|
|
49615
|
+
//
|
|
49616
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
49617
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
49618
|
+
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
49619
|
+
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
49620
|
+
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
49621
|
+
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
49622
|
+
// A derivative work based on:
|
|
49623
|
+
//
|
|
49624
|
+
// Parts of that are extracted from Nodeβs internal `path` module:
|
|
49625
|
+
// <https://github.com/nodejs/node/blob/master/lib/path.js>.
|
|
49626
|
+
// Which is licensed:
|
|
49627
|
+
//
|
|
49628
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
49629
|
+
//
|
|
49630
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
49631
|
+
// copy of this software and associated documentation files (the
|
|
49632
|
+
// "Software"), to deal in the Software without restriction, including
|
|
49633
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
49634
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
49635
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
49636
|
+
// following conditions:
|
|
49637
|
+
//
|
|
49638
|
+
// The above copyright notice and this permission notice shall be included
|
|
49639
|
+
// in all copies or substantial portions of the Software.
|
|
49640
|
+
//
|
|
49641
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
49642
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
49643
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
49644
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
49645
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
49646
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
49647
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
49648
|
+
|
|
49649
|
+
exports.basename = basename
|
|
49650
|
+
exports.dirname = dirname
|
|
49651
|
+
exports.extname = extname
|
|
49652
|
+
exports.join = join
|
|
49653
|
+
exports.sep = '/'
|
|
49654
|
+
|
|
49655
|
+
function basename(path, ext) {
|
|
49656
|
+
var start = 0
|
|
49657
|
+
var end = -1
|
|
49658
|
+
var index
|
|
49659
|
+
var firstNonSlashEnd
|
|
49660
|
+
var seenNonSlash
|
|
49661
|
+
var extIndex
|
|
49662
|
+
|
|
49663
|
+
if (ext !== undefined && typeof ext !== 'string') {
|
|
49664
|
+
throw new TypeError('"ext" argument must be a string')
|
|
49665
|
+
}
|
|
49666
|
+
|
|
49667
|
+
assertPath(path)
|
|
49668
|
+
index = path.length
|
|
49669
|
+
|
|
49670
|
+
if (ext === undefined || !ext.length || ext.length > path.length) {
|
|
49671
|
+
while (index--) {
|
|
49672
|
+
if (path.charCodeAt(index) === 47 /* `/` */) {
|
|
49673
|
+
// If we reached a path separator that was not part of a set of path
|
|
49674
|
+
// separators at the end of the string, stop now.
|
|
49675
|
+
if (seenNonSlash) {
|
|
49676
|
+
start = index + 1
|
|
49677
|
+
break
|
|
49678
|
+
}
|
|
49679
|
+
} else if (end < 0) {
|
|
49680
|
+
// We saw the first non-path separator, mark this as the end of our
|
|
49681
|
+
// path component.
|
|
49682
|
+
seenNonSlash = true
|
|
49683
|
+
end = index + 1
|
|
49684
|
+
}
|
|
49685
|
+
}
|
|
49686
|
+
|
|
49687
|
+
return end < 0 ? '' : path.slice(start, end)
|
|
49688
|
+
}
|
|
49689
|
+
|
|
49690
|
+
if (ext === path) {
|
|
49691
|
+
return ''
|
|
49692
|
+
}
|
|
49693
|
+
|
|
49694
|
+
firstNonSlashEnd = -1
|
|
49695
|
+
extIndex = ext.length - 1
|
|
49696
|
+
|
|
49697
|
+
while (index--) {
|
|
49698
|
+
if (path.charCodeAt(index) === 47 /* `/` */) {
|
|
49699
|
+
// If we reached a path separator that was not part of a set of path
|
|
49700
|
+
// separators at the end of the string, stop now.
|
|
49701
|
+
if (seenNonSlash) {
|
|
49702
|
+
start = index + 1
|
|
49703
|
+
break
|
|
49704
|
+
}
|
|
49705
|
+
} else {
|
|
49706
|
+
if (firstNonSlashEnd < 0) {
|
|
49707
|
+
// We saw the first non-path separator, remember this index in case
|
|
49708
|
+
// we need it if the extension ends up not matching.
|
|
49709
|
+
seenNonSlash = true
|
|
49710
|
+
firstNonSlashEnd = index + 1
|
|
49711
|
+
}
|
|
49712
|
+
|
|
49713
|
+
if (extIndex > -1) {
|
|
49714
|
+
// Try to match the explicit extension.
|
|
49715
|
+
if (path.charCodeAt(index) === ext.charCodeAt(extIndex--)) {
|
|
49716
|
+
if (extIndex < 0) {
|
|
49717
|
+
// We matched the extension, so mark this as the end of our path
|
|
49718
|
+
// component
|
|
49719
|
+
end = index
|
|
49720
|
+
}
|
|
49721
|
+
} else {
|
|
49722
|
+
// Extension does not match, so our result is the entire path
|
|
49723
|
+
// component
|
|
49724
|
+
extIndex = -1
|
|
49725
|
+
end = firstNonSlashEnd
|
|
49726
|
+
}
|
|
49727
|
+
}
|
|
49728
|
+
}
|
|
49729
|
+
}
|
|
49730
|
+
|
|
49731
|
+
if (start === end) {
|
|
49732
|
+
end = firstNonSlashEnd
|
|
49733
|
+
} else if (end < 0) {
|
|
49734
|
+
end = path.length
|
|
49735
|
+
}
|
|
49736
|
+
|
|
49737
|
+
return path.slice(start, end)
|
|
49738
|
+
}
|
|
49739
|
+
|
|
49740
|
+
function dirname(path) {
|
|
49741
|
+
var end
|
|
49742
|
+
var unmatchedSlash
|
|
49743
|
+
var index
|
|
49744
|
+
|
|
49745
|
+
assertPath(path)
|
|
49746
|
+
|
|
49747
|
+
if (!path.length) {
|
|
49748
|
+
return '.'
|
|
49749
|
+
}
|
|
49750
|
+
|
|
49751
|
+
end = -1
|
|
49752
|
+
index = path.length
|
|
49753
|
+
|
|
49754
|
+
// Prefix `--` is important to not run on `0`.
|
|
49755
|
+
while (--index) {
|
|
49756
|
+
if (path.charCodeAt(index) === 47 /* `/` */) {
|
|
49757
|
+
if (unmatchedSlash) {
|
|
49758
|
+
end = index
|
|
49759
|
+
break
|
|
49760
|
+
}
|
|
49761
|
+
} else if (!unmatchedSlash) {
|
|
49762
|
+
// We saw the first non-path separator
|
|
49763
|
+
unmatchedSlash = true
|
|
49764
|
+
}
|
|
49765
|
+
}
|
|
49766
|
+
|
|
49767
|
+
return end < 0
|
|
49768
|
+
? path.charCodeAt(0) === 47 /* `/` */
|
|
49769
|
+
? '/'
|
|
49770
|
+
: '.'
|
|
49771
|
+
: end === 1 && path.charCodeAt(0) === 47 /* `/` */
|
|
49772
|
+
? '//'
|
|
49773
|
+
: path.slice(0, end)
|
|
49774
|
+
}
|
|
49775
|
+
|
|
49776
|
+
function extname(path) {
|
|
49777
|
+
var startDot = -1
|
|
49778
|
+
var startPart = 0
|
|
49779
|
+
var end = -1
|
|
49780
|
+
// Track the state of characters (if any) we see before our first dot and
|
|
49781
|
+
// after any path separator we find.
|
|
49782
|
+
var preDotState = 0
|
|
49783
|
+
var unmatchedSlash
|
|
49784
|
+
var code
|
|
49785
|
+
var index
|
|
49786
|
+
|
|
49787
|
+
assertPath(path)
|
|
49788
|
+
|
|
49789
|
+
index = path.length
|
|
49790
|
+
|
|
49791
|
+
while (index--) {
|
|
49792
|
+
code = path.charCodeAt(index)
|
|
49793
|
+
|
|
49794
|
+
if (code === 47 /* `/` */) {
|
|
49795
|
+
// If we reached a path separator that was not part of a set of path
|
|
49796
|
+
// separators at the end of the string, stop now.
|
|
49797
|
+
if (unmatchedSlash) {
|
|
49798
|
+
startPart = index + 1
|
|
49799
|
+
break
|
|
49800
|
+
}
|
|
49801
|
+
|
|
49802
|
+
continue
|
|
49803
|
+
}
|
|
49804
|
+
|
|
49805
|
+
if (end < 0) {
|
|
49806
|
+
// We saw the first non-path separator, mark this as the end of our
|
|
49807
|
+
// extension.
|
|
49808
|
+
unmatchedSlash = true
|
|
49809
|
+
end = index + 1
|
|
49810
|
+
}
|
|
49811
|
+
|
|
49812
|
+
if (code === 46 /* `.` */) {
|
|
49813
|
+
// If this is our first dot, mark it as the start of our extension.
|
|
49814
|
+
if (startDot < 0) {
|
|
49815
|
+
startDot = index
|
|
49816
|
+
} else if (preDotState !== 1) {
|
|
49817
|
+
preDotState = 1
|
|
49818
|
+
}
|
|
49819
|
+
} else if (startDot > -1) {
|
|
49820
|
+
// We saw a non-dot and non-path separator before our dot, so we should
|
|
49821
|
+
// have a good chance at having a non-empty extension.
|
|
49822
|
+
preDotState = -1
|
|
49823
|
+
}
|
|
49824
|
+
}
|
|
49825
|
+
|
|
49826
|
+
if (
|
|
49827
|
+
startDot < 0 ||
|
|
49828
|
+
end < 0 ||
|
|
49829
|
+
// We saw a non-dot character immediately before the dot.
|
|
49830
|
+
preDotState === 0 ||
|
|
49831
|
+
// The (right-most) trimmed path component is exactly `..`.
|
|
49832
|
+
(preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)
|
|
49833
|
+
) {
|
|
49834
|
+
return ''
|
|
49835
|
+
}
|
|
49836
|
+
|
|
49837
|
+
return path.slice(startDot, end)
|
|
49838
|
+
}
|
|
49839
|
+
|
|
49840
|
+
function join() {
|
|
49841
|
+
var index = -1
|
|
49842
|
+
var joined
|
|
49843
|
+
|
|
49844
|
+
while (++index < arguments.length) {
|
|
49845
|
+
assertPath(arguments[index])
|
|
49846
|
+
|
|
49847
|
+
if (arguments[index]) {
|
|
49848
|
+
joined =
|
|
49849
|
+
joined === undefined
|
|
49850
|
+
? arguments[index]
|
|
49851
|
+
: joined + '/' + arguments[index]
|
|
49852
|
+
}
|
|
49853
|
+
}
|
|
49854
|
+
|
|
49855
|
+
return joined === undefined ? '.' : normalize(joined)
|
|
49856
|
+
}
|
|
49857
|
+
|
|
49858
|
+
// Note: `normalize` is not exposed as `path.normalize`, so some code is
|
|
49859
|
+
// manually removed from it.
|
|
49860
|
+
function normalize(path) {
|
|
49861
|
+
var absolute
|
|
49862
|
+
var value
|
|
49863
|
+
|
|
49864
|
+
assertPath(path)
|
|
49865
|
+
|
|
49866
|
+
absolute = path.charCodeAt(0) === 47 /* `/` */
|
|
49867
|
+
|
|
49868
|
+
// Normalize the path according to POSIX rules.
|
|
49869
|
+
value = normalizeString(path, !absolute)
|
|
49870
|
+
|
|
49871
|
+
if (!value.length && !absolute) {
|
|
49872
|
+
value = '.'
|
|
49873
|
+
}
|
|
49874
|
+
|
|
49875
|
+
if (value.length && path.charCodeAt(path.length - 1) === 47 /* / */) {
|
|
49876
|
+
value += '/'
|
|
49877
|
+
}
|
|
49878
|
+
|
|
49879
|
+
return absolute ? '/' + value : value
|
|
49880
|
+
}
|
|
49881
|
+
|
|
49882
|
+
// Resolve `.` and `..` elements in a path with directory names.
|
|
49883
|
+
function normalizeString(path, allowAboveRoot) {
|
|
49884
|
+
var result = ''
|
|
49885
|
+
var lastSegmentLength = 0
|
|
49886
|
+
var lastSlash = -1
|
|
49887
|
+
var dots = 0
|
|
49888
|
+
var index = -1
|
|
49889
|
+
var code
|
|
49890
|
+
var lastSlashIndex
|
|
49891
|
+
|
|
49892
|
+
while (++index <= path.length) {
|
|
49893
|
+
if (index < path.length) {
|
|
49894
|
+
code = path.charCodeAt(index)
|
|
49895
|
+
} else if (code === 47 /* `/` */) {
|
|
49896
|
+
break
|
|
49897
|
+
} else {
|
|
49898
|
+
code = 47 /* `/` */
|
|
49899
|
+
}
|
|
49900
|
+
|
|
49901
|
+
if (code === 47 /* `/` */) {
|
|
49902
|
+
if (lastSlash === index - 1 || dots === 1) {
|
|
49903
|
+
// Empty.
|
|
49904
|
+
} else if (lastSlash !== index - 1 && dots === 2) {
|
|
49905
|
+
if (
|
|
49906
|
+
result.length < 2 ||
|
|
49907
|
+
lastSegmentLength !== 2 ||
|
|
49908
|
+
result.charCodeAt(result.length - 1) !== 46 /* `.` */ ||
|
|
49909
|
+
result.charCodeAt(result.length - 2) !== 46 /* `.` */
|
|
49910
|
+
) {
|
|
49911
|
+
if (result.length > 2) {
|
|
49912
|
+
lastSlashIndex = result.lastIndexOf('/')
|
|
49913
|
+
|
|
49914
|
+
/* istanbul ignore else - No clue how to cover it. */
|
|
49915
|
+
if (lastSlashIndex !== result.length - 1) {
|
|
49916
|
+
if (lastSlashIndex < 0) {
|
|
49917
|
+
result = ''
|
|
49918
|
+
lastSegmentLength = 0
|
|
49919
|
+
} else {
|
|
49920
|
+
result = result.slice(0, lastSlashIndex)
|
|
49921
|
+
lastSegmentLength = result.length - 1 - result.lastIndexOf('/')
|
|
49922
|
+
}
|
|
49923
|
+
|
|
49924
|
+
lastSlash = index
|
|
49925
|
+
dots = 0
|
|
49926
|
+
continue
|
|
49927
|
+
}
|
|
49928
|
+
} else if (result.length) {
|
|
49929
|
+
result = ''
|
|
49930
|
+
lastSegmentLength = 0
|
|
49931
|
+
lastSlash = index
|
|
49932
|
+
dots = 0
|
|
49933
|
+
continue
|
|
49934
|
+
}
|
|
49935
|
+
}
|
|
49936
|
+
|
|
49937
|
+
if (allowAboveRoot) {
|
|
49938
|
+
result = result.length ? result + '/..' : '..'
|
|
49939
|
+
lastSegmentLength = 2
|
|
49940
|
+
}
|
|
49941
|
+
} else {
|
|
49942
|
+
if (result.length) {
|
|
49943
|
+
result += '/' + path.slice(lastSlash + 1, index)
|
|
49944
|
+
} else {
|
|
49945
|
+
result = path.slice(lastSlash + 1, index)
|
|
49946
|
+
}
|
|
49947
|
+
|
|
49948
|
+
lastSegmentLength = index - lastSlash - 1
|
|
49949
|
+
}
|
|
49950
|
+
|
|
49951
|
+
lastSlash = index
|
|
49952
|
+
dots = 0
|
|
49953
|
+
} else if (code === 46 /* `.` */ && dots > -1) {
|
|
49954
|
+
dots++
|
|
49955
|
+
} else {
|
|
49956
|
+
dots = -1
|
|
49957
|
+
}
|
|
49958
|
+
}
|
|
49959
|
+
|
|
49960
|
+
return result
|
|
49961
|
+
}
|
|
49962
|
+
|
|
49963
|
+
function assertPath(path) {
|
|
49964
|
+
if (typeof path !== 'string') {
|
|
49965
|
+
throw new TypeError(
|
|
49966
|
+
'Path must be a string. Received ' + JSON.stringify(path)
|
|
49967
|
+
)
|
|
49968
|
+
}
|
|
49969
|
+
}
|
|
49970
|
+
|
|
49971
|
+
|
|
49972
|
+
/***/ }),
|
|
49973
|
+
|
|
49974
|
+
/***/ 4228:
|
|
49975
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
49976
|
+
|
|
49977
|
+
"use strict";
|
|
49978
|
+
|
|
49979
|
+
|
|
49980
|
+
// Somewhat based on:
|
|
49981
|
+
// <https://github.com/defunctzombie/node-process/blob/master/browser.js>.
|
|
49982
|
+
// But I donβt think one tiny line of code can be copyrighted. π
|
|
49983
|
+
exports.cwd = cwd
|
|
49984
|
+
|
|
49985
|
+
function cwd() {
|
|
49986
|
+
return '/'
|
|
49987
|
+
}
|
|
49988
|
+
|
|
49989
|
+
|
|
49843
49990
|
/***/ }),
|
|
49844
49991
|
|
|
49845
49992
|
/***/ 7529:
|
|
@@ -51650,6 +51797,14 @@ module.exports = JSON.parse('{"classId":"classID","dataType":"datatype","itemId"
|
|
|
51650
51797
|
|
|
51651
51798
|
/***/ }),
|
|
51652
51799
|
|
|
51800
|
+
/***/ 2471:
|
|
51801
|
+
/***/ ((module) => {
|
|
51802
|
+
|
|
51803
|
+
"use strict";
|
|
51804
|
+
module.exports = JSON.parse('{"abandonedHeadElementChild":{"reason":"Unexpected metadata element after head","description":"Unexpected element after head. Expected the element before `</head>`","url":false},"abruptClosingOfEmptyComment":{"reason":"Unexpected abruptly closed empty comment","description":"Unexpected `>` or `->`. Expected `-->` to close comments"},"abruptDoctypePublicIdentifier":{"reason":"Unexpected abruptly closed public identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the public identifier"},"abruptDoctypeSystemIdentifier":{"reason":"Unexpected abruptly closed system identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the identifier identifier"},"absenceOfDigitsInNumericCharacterReference":{"reason":"Unexpected non-digit at start of numeric character reference","description":"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},"cdataInHtmlContent":{"reason":"Unexpected CDATA section in HTML","description":"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},"characterReferenceOutsideUnicodeRange":{"reason":"Unexpected too big numeric character reference","description":"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},"closingOfElementWithOpenChildElements":{"reason":"Unexpected closing tag with open child elements","description":"Unexpectedly closing tag. Expected other tags to be closed first","url":false},"controlCharacterInInputStream":{"reason":"Unexpected control character","description":"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},"controlCharacterReference":{"reason":"Unexpected control character reference","description":"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},"disallowedContentInNoscriptInHead":{"reason":"Disallowed content inside `<noscript>` in `<head>`","description":"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`","url":false},"duplicateAttribute":{"reason":"Unexpected duplicate attribute","description":"Unexpectedly double attribute. Expected attributes to occur only once"},"endTagWithAttributes":{"reason":"Unexpected attribute on closing tag","description":"Unexpected attribute. Expected `>` instead"},"endTagWithTrailingSolidus":{"reason":"Unexpected slash at end of closing tag","description":"Unexpected `%c-1`. Expected `>` instead"},"endTagWithoutMatchingOpenElement":{"reason":"Unexpected unopened end tag","description":"Unexpected end tag. Expected no end tag or another end tag","url":false},"eofBeforeTagName":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected tag name instead"},"eofInCdata":{"reason":"Unexpected end of file in CDATA","description":"Unexpected end of file. Expected `]]>` to close the CDATA"},"eofInComment":{"reason":"Unexpected end of file in comment","description":"Unexpected end of file. Expected `-->` to close the comment"},"eofInDoctype":{"reason":"Unexpected end of file in doctype","description":"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},"eofInElementThatCanContainOnlyText":{"reason":"Unexpected end of file in element that can only contain text","description":"Unexpected end of file. Expected text or a closing tag","url":false},"eofInScriptHtmlCommentLikeText":{"reason":"Unexpected end of file in comment inside script","description":"Unexpected end of file. Expected `-->` to close the comment"},"eofInTag":{"reason":"Unexpected end of file in tag","description":"Unexpected end of file. Expected `>` to close the tag"},"incorrectlyClosedComment":{"reason":"Incorrectly closed comment","description":"Unexpected `%c-1`. Expected `-->` to close the comment"},"incorrectlyOpenedComment":{"reason":"Incorrectly opened comment","description":"Unexpected `%c`. Expected `<!--` to open the comment"},"invalidCharacterSequenceAfterDoctypeName":{"reason":"Invalid sequence after doctype name","description":"Unexpected sequence at `%c`. Expected `public` or `system`"},"invalidFirstCharacterOfTagName":{"reason":"Invalid first character in tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"misplacedDoctype":{"reason":"Misplaced doctype","description":"Unexpected doctype. Expected doctype before head","url":false},"misplacedStartTagForHeadElement":{"reason":"Misplaced `<head>` start tag","description":"Unexpected start tag `<head>`. Expected `<head>` directly after doctype","url":false},"missingAttributeValue":{"reason":"Missing attribute value","description":"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},"missingDoctype":{"reason":"Missing doctype before other content","description":"Expected a `<!doctype html>` before anything else","url":false},"missingDoctypeName":{"reason":"Missing doctype name","description":"Unexpected doctype end at `%c`. Expected `html` instead"},"missingDoctypePublicIdentifier":{"reason":"Missing public identifier in doctype","description":"Unexpected `%c`. Expected identifier for `public` instead"},"missingDoctypeSystemIdentifier":{"reason":"Missing system identifier in doctype","description":"Unexpected `%c`. Expected identifier for `system` instead (suggested: `\\"about:legacy-compat\\"`)"},"missingEndTagName":{"reason":"Missing name in end tag","description":"Unexpected `%c`. Expected an ASCII letter instead"},"missingQuoteBeforeDoctypePublicIdentifier":{"reason":"Missing quote before public identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingQuoteBeforeDoctypeSystemIdentifier":{"reason":"Missing quote before system identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingSemicolonAfterCharacterReference":{"reason":"Missing semicolon after character reference","description":"Unexpected `%c`. Expected `;` instead"},"missingWhitespaceAfterDoctypePublicKeyword":{"reason":"Missing whitespace after public identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceAfterDoctypeSystemKeyword":{"reason":"Missing whitespace after system identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBeforeDoctypeName":{"reason":"Missing whitespace before doctype name","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenAttributes":{"reason":"Missing whitespace between attributes","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers":{"reason":"Missing whitespace between public and system identifiers in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"nestedComment":{"reason":"Unexpected nested comment","description":"Unexpected `<!--`. Expected `-->`"},"nestedNoscriptInHead":{"reason":"Unexpected nested `<noscript>` in `<head>`","description":"Unexpected `<noscript>`. Expected a closing tag or a meta element","url":false},"nonConformingDoctype":{"reason":"Unexpected non-conforming doctype declaration","description":"Expected `<!doctype html>` or `<!doctype html system \\"about:legacy-compat\\">`","url":false},"nonVoidHtmlElementStartTagWithTrailingSolidus":{"reason":"Unexpected trailing slash on start tag of non-void element","description":"Unexpected `/`. Expected `>` instead"},"noncharacterCharacterReference":{"reason":"Unexpected noncharacter code point referenced by character reference","description":"Unexpected code point. Do not use noncharacters in HTML"},"noncharacterInInputStream":{"reason":"Unexpected noncharacter character","description":"Unexpected code point `%x`. Do not use noncharacters in HTML"},"nullCharacterReference":{"reason":"Unexpected NULL character referenced by character reference","description":"Unexpected code point. Do not use NULL characters in HTML"},"openElementsLeftAfterEof":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected closing tag instead","url":false},"surrogateCharacterReference":{"reason":"Unexpected surrogate character referenced by character reference","description":"Unexpected code point. Do not use lone surrogate characters in HTML"},"surrogateInInputStream":{"reason":"Unexpected surrogate character","description":"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},"unexpectedCharacterAfterDoctypeSystemIdentifier":{"reason":"Invalid character after system identifier in doctype","description":"Unexpected character at `%c`. Expected `>`"},"unexpectedCharacterInAttributeName":{"reason":"Unexpected character in attribute name","description":"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},"unexpectedCharacterInUnquotedAttributeValue":{"reason":"Unexpected character in unquoted attribute value","description":"Unexpected `%c`. Quote the attribute value to include it"},"unexpectedEqualsSignBeforeAttributeName":{"reason":"Unexpected equals sign before attribute name ","description":"Unexpected `%c`. Add an attribute name before it"},"unexpectedNullCharacter":{"reason":"Unexpected NULL character","description":"Unexpected code point `%x`. Do not use NULL characters in HTML"},"unexpectedQuestionMarkInsteadOfTagName":{"reason":"Unexpected question mark instead of tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"unexpectedSolidusInTag":{"reason":"Unexpected slash in tag","description":"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},"unknownNamedCharacterReference":{"reason":"Unexpected unknown named character reference","description":"Unexpected character reference. Expected known named character references"}}');
|
|
51805
|
+
|
|
51806
|
+
/***/ }),
|
|
51807
|
+
|
|
51653
51808
|
/***/ 9052:
|
|
51654
51809
|
/***/ ((module) => {
|
|
51655
51810
|
|
|
@@ -51859,9 +52014,9 @@ function _slicedToArray(arr, i) {
|
|
|
51859
52014
|
|
|
51860
52015
|
|
|
51861
52016
|
|
|
51862
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
52017
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
51863
52018
|
|
|
51864
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
52019
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,defineProperty/* default */.Z)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
51865
52020
|
|
|
51866
52021
|
/* eslint-disable no-param-reassign */
|
|
51867
52022
|
__webpack_require__(2787);
|
|
@@ -51930,7 +52085,7 @@ var GlossaryItem = Components.GlossaryItem,
|
|
|
51930
52085
|
/* Custom Unified Parsers
|
|
51931
52086
|
*/
|
|
51932
52087
|
|
|
51933
|
-
var customParsers = Object.values(__webpack_require__(
|
|
52088
|
+
var customParsers = Object.values(__webpack_require__(1332)).map(function (parser) {
|
|
51934
52089
|
return parser.sanitize(sanitize);
|
|
51935
52090
|
});
|
|
51936
52091
|
/* Custom Unified Compilers
|