@readme/markdown 6.39.3 β 6.41.0
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 +643 -691
- package/dist/main.node.js +279 -169
- package/package.json +38 -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;
|
|
@@ -28136,7 +28153,7 @@ module.exports = function ImageCompiler() {
|
|
|
28136
28153
|
var originalImageCompiler = visitors.image;
|
|
28137
28154
|
|
|
28138
28155
|
visitors.image = function compile(node) {
|
|
28139
|
-
var _node$data, _node$data$hPropertie, _visitors$figure;
|
|
28156
|
+
var _node$data, _node$data$hPropertie, _node$data2, _node$data2$hProperti, _visitors$figure;
|
|
28140
28157
|
|
|
28141
28158
|
if (((_node$data = node.data) === null || _node$data === void 0 ? void 0 : (_node$data$hPropertie = _node$data.hProperties) === null || _node$data$hPropertie === void 0 ? void 0 : _node$data$hPropertie.className) === 'emoji') return node.title;
|
|
28142
28159
|
|
|
@@ -28144,7 +28161,7 @@ module.exports = function ImageCompiler() {
|
|
|
28144
28161
|
args[_key - 1] = arguments[_key];
|
|
28145
28162
|
}
|
|
28146
28163
|
|
|
28147
|
-
if (node.data.hProperties.width) return (_visitors$figure = visitors.figure).call.apply(_visitors$figure, [this, node].concat(args));
|
|
28164
|
+
if ((_node$data2 = node.data) !== null && _node$data2 !== void 0 && (_node$data2$hProperti = _node$data2.hProperties) !== null && _node$data2$hProperti !== void 0 && _node$data2$hProperti.width) return (_visitors$figure = visitors.figure).call.apply(_visitors$figure, [this, node].concat(args));
|
|
28148
28165
|
return originalImageCompiler.call.apply(originalImageCompiler, [this, node].concat(args));
|
|
28149
28166
|
};
|
|
28150
28167
|
};
|
|
@@ -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,9 +28822,9 @@ 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 */
|
|
28726
28830
|
var RGXP = /^\[block:(.*)\]([^]+?)\[\/block\]/;
|
|
@@ -29203,9 +29307,9 @@ var _defineProperty = __webpack_require__(9713);
|
|
|
29203
29307
|
|
|
29204
29308
|
var _slicedToArray = __webpack_require__(3038);
|
|
29205
29309
|
|
|
29206
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
29310
|
+
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
29311
|
|
|
29208
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
29312
|
+
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
29313
|
|
|
29210
29314
|
var flatMap = __webpack_require__(5885);
|
|
29211
29315
|
|
|
@@ -36640,543 +36744,6 @@ function disallowed(code) {
|
|
|
36640
36744
|
}
|
|
36641
36745
|
|
|
36642
36746
|
|
|
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
36747
|
/***/ }),
|
|
37181
36748
|
|
|
37182
36749
|
/***/ 2703:
|
|
@@ -47467,32 +47034,6 @@ function repeat(str, num) {
|
|
|
47467
47034
|
}
|
|
47468
47035
|
|
|
47469
47036
|
|
|
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
47037
|
/***/ }),
|
|
47497
47038
|
|
|
47498
47039
|
/***/ 6582:
|
|
@@ -49607,48 +49148,66 @@ function parseOrigin(origin) {
|
|
|
49607
49148
|
|
|
49608
49149
|
/***/ }),
|
|
49609
49150
|
|
|
49610
|
-
/***/
|
|
49151
|
+
/***/ 939:
|
|
49152
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
49153
|
+
|
|
49154
|
+
"use strict";
|
|
49155
|
+
|
|
49156
|
+
|
|
49157
|
+
module.exports = __webpack_require__(5905)
|
|
49158
|
+
|
|
49159
|
+
|
|
49160
|
+
/***/ }),
|
|
49161
|
+
|
|
49162
|
+
/***/ 5442:
|
|
49611
49163
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
49612
49164
|
|
|
49613
49165
|
"use strict";
|
|
49614
49166
|
|
|
49615
49167
|
|
|
49616
|
-
var
|
|
49617
|
-
var
|
|
49168
|
+
var p = __webpack_require__(8064)
|
|
49169
|
+
var proc = __webpack_require__(4228)
|
|
49618
49170
|
var buffer = __webpack_require__(8738)
|
|
49619
49171
|
|
|
49620
49172
|
module.exports = VFile
|
|
49621
49173
|
|
|
49622
49174
|
var own = {}.hasOwnProperty
|
|
49623
|
-
var proto = VFile.prototype
|
|
49624
49175
|
|
|
49625
49176
|
// Order of setting (least specific to most), we need this because otherwise
|
|
49626
49177
|
// `{stem: 'a', path: '~/b.js'}` would throw, as a path is needed before a
|
|
49627
49178
|
// stem can be set.
|
|
49628
49179
|
var order = ['history', 'path', 'basename', 'stem', 'extname', 'dirname']
|
|
49629
49180
|
|
|
49630
|
-
|
|
49181
|
+
VFile.prototype.toString = toString
|
|
49631
49182
|
|
|
49632
49183
|
// Access full path (`~/index.min.js`).
|
|
49633
|
-
Object.defineProperty(
|
|
49184
|
+
Object.defineProperty(VFile.prototype, 'path', {get: getPath, set: setPath})
|
|
49634
49185
|
|
|
49635
49186
|
// Access parent path (`~`).
|
|
49636
|
-
Object.defineProperty(
|
|
49187
|
+
Object.defineProperty(VFile.prototype, 'dirname', {
|
|
49188
|
+
get: getDirname,
|
|
49189
|
+
set: setDirname
|
|
49190
|
+
})
|
|
49637
49191
|
|
|
49638
49192
|
// Access basename (`index.min.js`).
|
|
49639
|
-
Object.defineProperty(
|
|
49193
|
+
Object.defineProperty(VFile.prototype, 'basename', {
|
|
49194
|
+
get: getBasename,
|
|
49195
|
+
set: setBasename
|
|
49196
|
+
})
|
|
49640
49197
|
|
|
49641
49198
|
// Access extname (`.js`).
|
|
49642
|
-
Object.defineProperty(
|
|
49199
|
+
Object.defineProperty(VFile.prototype, 'extname', {
|
|
49200
|
+
get: getExtname,
|
|
49201
|
+
set: setExtname
|
|
49202
|
+
})
|
|
49643
49203
|
|
|
49644
49204
|
// Access stem (`index.min`).
|
|
49645
|
-
Object.defineProperty(
|
|
49205
|
+
Object.defineProperty(VFile.prototype, 'stem', {get: getStem, set: setStem})
|
|
49646
49206
|
|
|
49647
49207
|
// Construct a new file.
|
|
49648
49208
|
function VFile(options) {
|
|
49649
49209
|
var prop
|
|
49650
49210
|
var index
|
|
49651
|
-
var length
|
|
49652
49211
|
|
|
49653
49212
|
if (!options) {
|
|
49654
49213
|
options = {}
|
|
@@ -49665,13 +49224,12 @@ function VFile(options) {
|
|
|
49665
49224
|
this.data = {}
|
|
49666
49225
|
this.messages = []
|
|
49667
49226
|
this.history = []
|
|
49668
|
-
this.cwd =
|
|
49227
|
+
this.cwd = proc.cwd()
|
|
49669
49228
|
|
|
49670
49229
|
// Set path related properties in the correct order.
|
|
49671
49230
|
index = -1
|
|
49672
|
-
length = order.length
|
|
49673
49231
|
|
|
49674
|
-
while (++index < length) {
|
|
49232
|
+
while (++index < order.length) {
|
|
49675
49233
|
prop = order[index]
|
|
49676
49234
|
|
|
49677
49235
|
if (own.call(options, prop)) {
|
|
@@ -49681,7 +49239,7 @@ function VFile(options) {
|
|
|
49681
49239
|
|
|
49682
49240
|
// Set non-path related properties.
|
|
49683
49241
|
for (prop in options) {
|
|
49684
|
-
if (order.indexOf(prop)
|
|
49242
|
+
if (order.indexOf(prop) < 0) {
|
|
49685
49243
|
this[prop] = options[prop]
|
|
49686
49244
|
}
|
|
49687
49245
|
}
|
|
@@ -49694,76 +49252,73 @@ function getPath() {
|
|
|
49694
49252
|
function setPath(path) {
|
|
49695
49253
|
assertNonEmpty(path, 'path')
|
|
49696
49254
|
|
|
49697
|
-
if (path !==
|
|
49255
|
+
if (this.path !== path) {
|
|
49698
49256
|
this.history.push(path)
|
|
49699
49257
|
}
|
|
49700
49258
|
}
|
|
49701
49259
|
|
|
49702
49260
|
function getDirname() {
|
|
49703
|
-
return typeof this.path === 'string' ?
|
|
49261
|
+
return typeof this.path === 'string' ? p.dirname(this.path) : undefined
|
|
49704
49262
|
}
|
|
49705
49263
|
|
|
49706
49264
|
function setDirname(dirname) {
|
|
49707
49265
|
assertPath(this.path, 'dirname')
|
|
49708
|
-
this.path =
|
|
49266
|
+
this.path = p.join(dirname || '', this.basename)
|
|
49709
49267
|
}
|
|
49710
49268
|
|
|
49711
49269
|
function getBasename() {
|
|
49712
|
-
return typeof this.path === 'string' ?
|
|
49270
|
+
return typeof this.path === 'string' ? p.basename(this.path) : undefined
|
|
49713
49271
|
}
|
|
49714
49272
|
|
|
49715
49273
|
function setBasename(basename) {
|
|
49716
49274
|
assertNonEmpty(basename, 'basename')
|
|
49717
49275
|
assertPart(basename, 'basename')
|
|
49718
|
-
this.path =
|
|
49276
|
+
this.path = p.join(this.dirname || '', basename)
|
|
49719
49277
|
}
|
|
49720
49278
|
|
|
49721
49279
|
function getExtname() {
|
|
49722
|
-
return typeof this.path === 'string' ?
|
|
49280
|
+
return typeof this.path === 'string' ? p.extname(this.path) : undefined
|
|
49723
49281
|
}
|
|
49724
49282
|
|
|
49725
49283
|
function setExtname(extname) {
|
|
49726
|
-
|
|
49727
|
-
|
|
49728
|
-
assertPart(ext, 'extname')
|
|
49284
|
+
assertPart(extname, 'extname')
|
|
49729
49285
|
assertPath(this.path, 'extname')
|
|
49730
49286
|
|
|
49731
|
-
if (
|
|
49732
|
-
if (
|
|
49287
|
+
if (extname) {
|
|
49288
|
+
if (extname.charCodeAt(0) !== 46 /* `.` */) {
|
|
49733
49289
|
throw new Error('`extname` must start with `.`')
|
|
49734
49290
|
}
|
|
49735
49291
|
|
|
49736
|
-
if (
|
|
49292
|
+
if (extname.indexOf('.', 1) > -1) {
|
|
49737
49293
|
throw new Error('`extname` cannot contain multiple dots')
|
|
49738
49294
|
}
|
|
49739
49295
|
}
|
|
49740
49296
|
|
|
49741
|
-
this.path =
|
|
49297
|
+
this.path = p.join(this.dirname, this.stem + (extname || ''))
|
|
49742
49298
|
}
|
|
49743
49299
|
|
|
49744
49300
|
function getStem() {
|
|
49745
49301
|
return typeof this.path === 'string'
|
|
49746
|
-
?
|
|
49302
|
+
? p.basename(this.path, this.extname)
|
|
49747
49303
|
: undefined
|
|
49748
49304
|
}
|
|
49749
49305
|
|
|
49750
49306
|
function setStem(stem) {
|
|
49751
49307
|
assertNonEmpty(stem, 'stem')
|
|
49752
49308
|
assertPart(stem, 'stem')
|
|
49753
|
-
this.path =
|
|
49309
|
+
this.path = p.join(this.dirname || '', stem + (this.extname || ''))
|
|
49754
49310
|
}
|
|
49755
49311
|
|
|
49756
49312
|
// Get the value of the file.
|
|
49757
49313
|
function toString(encoding) {
|
|
49758
|
-
|
|
49759
|
-
return buffer(value) ? value.toString(encoding) : String(value)
|
|
49314
|
+
return (this.contents || '').toString(encoding)
|
|
49760
49315
|
}
|
|
49761
49316
|
|
|
49762
|
-
// Assert that `part` is not a path (i.e., does not contain `
|
|
49317
|
+
// Assert that `part` is not a path (i.e., does not contain `p.sep`).
|
|
49763
49318
|
function assertPart(part, name) {
|
|
49764
|
-
if (part.indexOf(
|
|
49319
|
+
if (part && part.indexOf(p.sep) > -1) {
|
|
49765
49320
|
throw new Error(
|
|
49766
|
-
'`' + name + '` cannot be a path: did not expect `' +
|
|
49321
|
+
'`' + name + '` cannot be a path: did not expect `' + p.sep + '`'
|
|
49767
49322
|
)
|
|
49768
49323
|
}
|
|
49769
49324
|
}
|
|
@@ -49785,32 +49340,29 @@ function assertPath(path, name) {
|
|
|
49785
49340
|
|
|
49786
49341
|
/***/ }),
|
|
49787
49342
|
|
|
49788
|
-
/***/
|
|
49343
|
+
/***/ 5905:
|
|
49789
49344
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
49790
49345
|
|
|
49791
49346
|
"use strict";
|
|
49792
49347
|
|
|
49793
49348
|
|
|
49794
49349
|
var VMessage = __webpack_require__(734)
|
|
49795
|
-
var VFile = __webpack_require__(
|
|
49350
|
+
var VFile = __webpack_require__(5442)
|
|
49796
49351
|
|
|
49797
49352
|
module.exports = VFile
|
|
49798
49353
|
|
|
49799
|
-
|
|
49800
|
-
|
|
49801
|
-
|
|
49802
|
-
proto.info = info
|
|
49803
|
-
proto.fail = fail
|
|
49354
|
+
VFile.prototype.message = message
|
|
49355
|
+
VFile.prototype.info = info
|
|
49356
|
+
VFile.prototype.fail = fail
|
|
49804
49357
|
|
|
49805
49358
|
// Create a message with `reason` at `position`.
|
|
49806
49359
|
// When an error is passed in as `reason`, copies the stack.
|
|
49807
49360
|
function message(reason, position, origin) {
|
|
49808
|
-
var filePath = this.path
|
|
49809
49361
|
var message = new VMessage(reason, position, origin)
|
|
49810
49362
|
|
|
49811
|
-
if (
|
|
49812
|
-
message.name =
|
|
49813
|
-
message.file =
|
|
49363
|
+
if (this.path) {
|
|
49364
|
+
message.name = this.path + ':' + message.name
|
|
49365
|
+
message.file = this.path
|
|
49814
49366
|
}
|
|
49815
49367
|
|
|
49816
49368
|
message.fatal = false
|
|
@@ -49840,6 +49392,406 @@ function info() {
|
|
|
49840
49392
|
}
|
|
49841
49393
|
|
|
49842
49394
|
|
|
49395
|
+
/***/ }),
|
|
49396
|
+
|
|
49397
|
+
/***/ 8064:
|
|
49398
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
49399
|
+
|
|
49400
|
+
"use strict";
|
|
49401
|
+
|
|
49402
|
+
|
|
49403
|
+
// A derivative work based on:
|
|
49404
|
+
// <https://github.com/browserify/path-browserify>.
|
|
49405
|
+
// Which is licensed:
|
|
49406
|
+
//
|
|
49407
|
+
// MIT License
|
|
49408
|
+
//
|
|
49409
|
+
// Copyright (c) 2013 James Halliday
|
|
49410
|
+
//
|
|
49411
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
49412
|
+
// this software and associated documentation files (the "Software"), to deal in
|
|
49413
|
+
// the Software without restriction, including without limitation the rights to
|
|
49414
|
+
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
49415
|
+
// the Software, and to permit persons to whom the Software is furnished to do so,
|
|
49416
|
+
// subject to the following conditions:
|
|
49417
|
+
//
|
|
49418
|
+
// The above copyright notice and this permission notice shall be included in all
|
|
49419
|
+
// copies or substantial portions of the Software.
|
|
49420
|
+
//
|
|
49421
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
49422
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
49423
|
+
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
49424
|
+
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
49425
|
+
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
49426
|
+
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
49427
|
+
// A derivative work based on:
|
|
49428
|
+
//
|
|
49429
|
+
// Parts of that are extracted from Nodeβs internal `path` module:
|
|
49430
|
+
// <https://github.com/nodejs/node/blob/master/lib/path.js>.
|
|
49431
|
+
// Which is licensed:
|
|
49432
|
+
//
|
|
49433
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
49434
|
+
//
|
|
49435
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
49436
|
+
// copy of this software and associated documentation files (the
|
|
49437
|
+
// "Software"), to deal in the Software without restriction, including
|
|
49438
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
49439
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
49440
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
49441
|
+
// following conditions:
|
|
49442
|
+
//
|
|
49443
|
+
// The above copyright notice and this permission notice shall be included
|
|
49444
|
+
// in all copies or substantial portions of the Software.
|
|
49445
|
+
//
|
|
49446
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
49447
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
49448
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
49449
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
49450
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
49451
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
49452
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
49453
|
+
|
|
49454
|
+
exports.basename = basename
|
|
49455
|
+
exports.dirname = dirname
|
|
49456
|
+
exports.extname = extname
|
|
49457
|
+
exports.join = join
|
|
49458
|
+
exports.sep = '/'
|
|
49459
|
+
|
|
49460
|
+
function basename(path, ext) {
|
|
49461
|
+
var start = 0
|
|
49462
|
+
var end = -1
|
|
49463
|
+
var index
|
|
49464
|
+
var firstNonSlashEnd
|
|
49465
|
+
var seenNonSlash
|
|
49466
|
+
var extIndex
|
|
49467
|
+
|
|
49468
|
+
if (ext !== undefined && typeof ext !== 'string') {
|
|
49469
|
+
throw new TypeError('"ext" argument must be a string')
|
|
49470
|
+
}
|
|
49471
|
+
|
|
49472
|
+
assertPath(path)
|
|
49473
|
+
index = path.length
|
|
49474
|
+
|
|
49475
|
+
if (ext === undefined || !ext.length || ext.length > path.length) {
|
|
49476
|
+
while (index--) {
|
|
49477
|
+
if (path.charCodeAt(index) === 47 /* `/` */) {
|
|
49478
|
+
// If we reached a path separator that was not part of a set of path
|
|
49479
|
+
// separators at the end of the string, stop now.
|
|
49480
|
+
if (seenNonSlash) {
|
|
49481
|
+
start = index + 1
|
|
49482
|
+
break
|
|
49483
|
+
}
|
|
49484
|
+
} else if (end < 0) {
|
|
49485
|
+
// We saw the first non-path separator, mark this as the end of our
|
|
49486
|
+
// path component.
|
|
49487
|
+
seenNonSlash = true
|
|
49488
|
+
end = index + 1
|
|
49489
|
+
}
|
|
49490
|
+
}
|
|
49491
|
+
|
|
49492
|
+
return end < 0 ? '' : path.slice(start, end)
|
|
49493
|
+
}
|
|
49494
|
+
|
|
49495
|
+
if (ext === path) {
|
|
49496
|
+
return ''
|
|
49497
|
+
}
|
|
49498
|
+
|
|
49499
|
+
firstNonSlashEnd = -1
|
|
49500
|
+
extIndex = ext.length - 1
|
|
49501
|
+
|
|
49502
|
+
while (index--) {
|
|
49503
|
+
if (path.charCodeAt(index) === 47 /* `/` */) {
|
|
49504
|
+
// If we reached a path separator that was not part of a set of path
|
|
49505
|
+
// separators at the end of the string, stop now.
|
|
49506
|
+
if (seenNonSlash) {
|
|
49507
|
+
start = index + 1
|
|
49508
|
+
break
|
|
49509
|
+
}
|
|
49510
|
+
} else {
|
|
49511
|
+
if (firstNonSlashEnd < 0) {
|
|
49512
|
+
// We saw the first non-path separator, remember this index in case
|
|
49513
|
+
// we need it if the extension ends up not matching.
|
|
49514
|
+
seenNonSlash = true
|
|
49515
|
+
firstNonSlashEnd = index + 1
|
|
49516
|
+
}
|
|
49517
|
+
|
|
49518
|
+
if (extIndex > -1) {
|
|
49519
|
+
// Try to match the explicit extension.
|
|
49520
|
+
if (path.charCodeAt(index) === ext.charCodeAt(extIndex--)) {
|
|
49521
|
+
if (extIndex < 0) {
|
|
49522
|
+
// We matched the extension, so mark this as the end of our path
|
|
49523
|
+
// component
|
|
49524
|
+
end = index
|
|
49525
|
+
}
|
|
49526
|
+
} else {
|
|
49527
|
+
// Extension does not match, so our result is the entire path
|
|
49528
|
+
// component
|
|
49529
|
+
extIndex = -1
|
|
49530
|
+
end = firstNonSlashEnd
|
|
49531
|
+
}
|
|
49532
|
+
}
|
|
49533
|
+
}
|
|
49534
|
+
}
|
|
49535
|
+
|
|
49536
|
+
if (start === end) {
|
|
49537
|
+
end = firstNonSlashEnd
|
|
49538
|
+
} else if (end < 0) {
|
|
49539
|
+
end = path.length
|
|
49540
|
+
}
|
|
49541
|
+
|
|
49542
|
+
return path.slice(start, end)
|
|
49543
|
+
}
|
|
49544
|
+
|
|
49545
|
+
function dirname(path) {
|
|
49546
|
+
var end
|
|
49547
|
+
var unmatchedSlash
|
|
49548
|
+
var index
|
|
49549
|
+
|
|
49550
|
+
assertPath(path)
|
|
49551
|
+
|
|
49552
|
+
if (!path.length) {
|
|
49553
|
+
return '.'
|
|
49554
|
+
}
|
|
49555
|
+
|
|
49556
|
+
end = -1
|
|
49557
|
+
index = path.length
|
|
49558
|
+
|
|
49559
|
+
// Prefix `--` is important to not run on `0`.
|
|
49560
|
+
while (--index) {
|
|
49561
|
+
if (path.charCodeAt(index) === 47 /* `/` */) {
|
|
49562
|
+
if (unmatchedSlash) {
|
|
49563
|
+
end = index
|
|
49564
|
+
break
|
|
49565
|
+
}
|
|
49566
|
+
} else if (!unmatchedSlash) {
|
|
49567
|
+
// We saw the first non-path separator
|
|
49568
|
+
unmatchedSlash = true
|
|
49569
|
+
}
|
|
49570
|
+
}
|
|
49571
|
+
|
|
49572
|
+
return end < 0
|
|
49573
|
+
? path.charCodeAt(0) === 47 /* `/` */
|
|
49574
|
+
? '/'
|
|
49575
|
+
: '.'
|
|
49576
|
+
: end === 1 && path.charCodeAt(0) === 47 /* `/` */
|
|
49577
|
+
? '//'
|
|
49578
|
+
: path.slice(0, end)
|
|
49579
|
+
}
|
|
49580
|
+
|
|
49581
|
+
function extname(path) {
|
|
49582
|
+
var startDot = -1
|
|
49583
|
+
var startPart = 0
|
|
49584
|
+
var end = -1
|
|
49585
|
+
// Track the state of characters (if any) we see before our first dot and
|
|
49586
|
+
// after any path separator we find.
|
|
49587
|
+
var preDotState = 0
|
|
49588
|
+
var unmatchedSlash
|
|
49589
|
+
var code
|
|
49590
|
+
var index
|
|
49591
|
+
|
|
49592
|
+
assertPath(path)
|
|
49593
|
+
|
|
49594
|
+
index = path.length
|
|
49595
|
+
|
|
49596
|
+
while (index--) {
|
|
49597
|
+
code = path.charCodeAt(index)
|
|
49598
|
+
|
|
49599
|
+
if (code === 47 /* `/` */) {
|
|
49600
|
+
// If we reached a path separator that was not part of a set of path
|
|
49601
|
+
// separators at the end of the string, stop now.
|
|
49602
|
+
if (unmatchedSlash) {
|
|
49603
|
+
startPart = index + 1
|
|
49604
|
+
break
|
|
49605
|
+
}
|
|
49606
|
+
|
|
49607
|
+
continue
|
|
49608
|
+
}
|
|
49609
|
+
|
|
49610
|
+
if (end < 0) {
|
|
49611
|
+
// We saw the first non-path separator, mark this as the end of our
|
|
49612
|
+
// extension.
|
|
49613
|
+
unmatchedSlash = true
|
|
49614
|
+
end = index + 1
|
|
49615
|
+
}
|
|
49616
|
+
|
|
49617
|
+
if (code === 46 /* `.` */) {
|
|
49618
|
+
// If this is our first dot, mark it as the start of our extension.
|
|
49619
|
+
if (startDot < 0) {
|
|
49620
|
+
startDot = index
|
|
49621
|
+
} else if (preDotState !== 1) {
|
|
49622
|
+
preDotState = 1
|
|
49623
|
+
}
|
|
49624
|
+
} else if (startDot > -1) {
|
|
49625
|
+
// We saw a non-dot and non-path separator before our dot, so we should
|
|
49626
|
+
// have a good chance at having a non-empty extension.
|
|
49627
|
+
preDotState = -1
|
|
49628
|
+
}
|
|
49629
|
+
}
|
|
49630
|
+
|
|
49631
|
+
if (
|
|
49632
|
+
startDot < 0 ||
|
|
49633
|
+
end < 0 ||
|
|
49634
|
+
// We saw a non-dot character immediately before the dot.
|
|
49635
|
+
preDotState === 0 ||
|
|
49636
|
+
// The (right-most) trimmed path component is exactly `..`.
|
|
49637
|
+
(preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)
|
|
49638
|
+
) {
|
|
49639
|
+
return ''
|
|
49640
|
+
}
|
|
49641
|
+
|
|
49642
|
+
return path.slice(startDot, end)
|
|
49643
|
+
}
|
|
49644
|
+
|
|
49645
|
+
function join() {
|
|
49646
|
+
var index = -1
|
|
49647
|
+
var joined
|
|
49648
|
+
|
|
49649
|
+
while (++index < arguments.length) {
|
|
49650
|
+
assertPath(arguments[index])
|
|
49651
|
+
|
|
49652
|
+
if (arguments[index]) {
|
|
49653
|
+
joined =
|
|
49654
|
+
joined === undefined
|
|
49655
|
+
? arguments[index]
|
|
49656
|
+
: joined + '/' + arguments[index]
|
|
49657
|
+
}
|
|
49658
|
+
}
|
|
49659
|
+
|
|
49660
|
+
return joined === undefined ? '.' : normalize(joined)
|
|
49661
|
+
}
|
|
49662
|
+
|
|
49663
|
+
// Note: `normalize` is not exposed as `path.normalize`, so some code is
|
|
49664
|
+
// manually removed from it.
|
|
49665
|
+
function normalize(path) {
|
|
49666
|
+
var absolute
|
|
49667
|
+
var value
|
|
49668
|
+
|
|
49669
|
+
assertPath(path)
|
|
49670
|
+
|
|
49671
|
+
absolute = path.charCodeAt(0) === 47 /* `/` */
|
|
49672
|
+
|
|
49673
|
+
// Normalize the path according to POSIX rules.
|
|
49674
|
+
value = normalizeString(path, !absolute)
|
|
49675
|
+
|
|
49676
|
+
if (!value.length && !absolute) {
|
|
49677
|
+
value = '.'
|
|
49678
|
+
}
|
|
49679
|
+
|
|
49680
|
+
if (value.length && path.charCodeAt(path.length - 1) === 47 /* / */) {
|
|
49681
|
+
value += '/'
|
|
49682
|
+
}
|
|
49683
|
+
|
|
49684
|
+
return absolute ? '/' + value : value
|
|
49685
|
+
}
|
|
49686
|
+
|
|
49687
|
+
// Resolve `.` and `..` elements in a path with directory names.
|
|
49688
|
+
function normalizeString(path, allowAboveRoot) {
|
|
49689
|
+
var result = ''
|
|
49690
|
+
var lastSegmentLength = 0
|
|
49691
|
+
var lastSlash = -1
|
|
49692
|
+
var dots = 0
|
|
49693
|
+
var index = -1
|
|
49694
|
+
var code
|
|
49695
|
+
var lastSlashIndex
|
|
49696
|
+
|
|
49697
|
+
while (++index <= path.length) {
|
|
49698
|
+
if (index < path.length) {
|
|
49699
|
+
code = path.charCodeAt(index)
|
|
49700
|
+
} else if (code === 47 /* `/` */) {
|
|
49701
|
+
break
|
|
49702
|
+
} else {
|
|
49703
|
+
code = 47 /* `/` */
|
|
49704
|
+
}
|
|
49705
|
+
|
|
49706
|
+
if (code === 47 /* `/` */) {
|
|
49707
|
+
if (lastSlash === index - 1 || dots === 1) {
|
|
49708
|
+
// Empty.
|
|
49709
|
+
} else if (lastSlash !== index - 1 && dots === 2) {
|
|
49710
|
+
if (
|
|
49711
|
+
result.length < 2 ||
|
|
49712
|
+
lastSegmentLength !== 2 ||
|
|
49713
|
+
result.charCodeAt(result.length - 1) !== 46 /* `.` */ ||
|
|
49714
|
+
result.charCodeAt(result.length - 2) !== 46 /* `.` */
|
|
49715
|
+
) {
|
|
49716
|
+
if (result.length > 2) {
|
|
49717
|
+
lastSlashIndex = result.lastIndexOf('/')
|
|
49718
|
+
|
|
49719
|
+
/* istanbul ignore else - No clue how to cover it. */
|
|
49720
|
+
if (lastSlashIndex !== result.length - 1) {
|
|
49721
|
+
if (lastSlashIndex < 0) {
|
|
49722
|
+
result = ''
|
|
49723
|
+
lastSegmentLength = 0
|
|
49724
|
+
} else {
|
|
49725
|
+
result = result.slice(0, lastSlashIndex)
|
|
49726
|
+
lastSegmentLength = result.length - 1 - result.lastIndexOf('/')
|
|
49727
|
+
}
|
|
49728
|
+
|
|
49729
|
+
lastSlash = index
|
|
49730
|
+
dots = 0
|
|
49731
|
+
continue
|
|
49732
|
+
}
|
|
49733
|
+
} else if (result.length) {
|
|
49734
|
+
result = ''
|
|
49735
|
+
lastSegmentLength = 0
|
|
49736
|
+
lastSlash = index
|
|
49737
|
+
dots = 0
|
|
49738
|
+
continue
|
|
49739
|
+
}
|
|
49740
|
+
}
|
|
49741
|
+
|
|
49742
|
+
if (allowAboveRoot) {
|
|
49743
|
+
result = result.length ? result + '/..' : '..'
|
|
49744
|
+
lastSegmentLength = 2
|
|
49745
|
+
}
|
|
49746
|
+
} else {
|
|
49747
|
+
if (result.length) {
|
|
49748
|
+
result += '/' + path.slice(lastSlash + 1, index)
|
|
49749
|
+
} else {
|
|
49750
|
+
result = path.slice(lastSlash + 1, index)
|
|
49751
|
+
}
|
|
49752
|
+
|
|
49753
|
+
lastSegmentLength = index - lastSlash - 1
|
|
49754
|
+
}
|
|
49755
|
+
|
|
49756
|
+
lastSlash = index
|
|
49757
|
+
dots = 0
|
|
49758
|
+
} else if (code === 46 /* `.` */ && dots > -1) {
|
|
49759
|
+
dots++
|
|
49760
|
+
} else {
|
|
49761
|
+
dots = -1
|
|
49762
|
+
}
|
|
49763
|
+
}
|
|
49764
|
+
|
|
49765
|
+
return result
|
|
49766
|
+
}
|
|
49767
|
+
|
|
49768
|
+
function assertPath(path) {
|
|
49769
|
+
if (typeof path !== 'string') {
|
|
49770
|
+
throw new TypeError(
|
|
49771
|
+
'Path must be a string. Received ' + JSON.stringify(path)
|
|
49772
|
+
)
|
|
49773
|
+
}
|
|
49774
|
+
}
|
|
49775
|
+
|
|
49776
|
+
|
|
49777
|
+
/***/ }),
|
|
49778
|
+
|
|
49779
|
+
/***/ 4228:
|
|
49780
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
49781
|
+
|
|
49782
|
+
"use strict";
|
|
49783
|
+
|
|
49784
|
+
|
|
49785
|
+
// Somewhat based on:
|
|
49786
|
+
// <https://github.com/defunctzombie/node-process/blob/master/browser.js>.
|
|
49787
|
+
// But I donβt think one tiny line of code can be copyrighted. π
|
|
49788
|
+
exports.cwd = cwd
|
|
49789
|
+
|
|
49790
|
+
function cwd() {
|
|
49791
|
+
return '/'
|
|
49792
|
+
}
|
|
49793
|
+
|
|
49794
|
+
|
|
49843
49795
|
/***/ }),
|
|
49844
49796
|
|
|
49845
49797
|
/***/ 7529:
|
|
@@ -51859,9 +51811,9 @@ function _slicedToArray(arr, i) {
|
|
|
51859
51811
|
|
|
51860
51812
|
|
|
51861
51813
|
|
|
51862
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
51814
|
+
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
51815
|
|
|
51864
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
51816
|
+
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
51817
|
|
|
51866
51818
|
/* eslint-disable no-param-reassign */
|
|
51867
51819
|
__webpack_require__(2787);
|
|
@@ -51930,7 +51882,7 @@ var GlossaryItem = Components.GlossaryItem,
|
|
|
51930
51882
|
/* Custom Unified Parsers
|
|
51931
51883
|
*/
|
|
51932
51884
|
|
|
51933
|
-
var customParsers = Object.values(__webpack_require__(
|
|
51885
|
+
var customParsers = Object.values(__webpack_require__(1332)).map(function (parser) {
|
|
51934
51886
|
return parser.sanitize(sanitize);
|
|
51935
51887
|
});
|
|
51936
51888
|
/* Custom Unified Compilers
|