@feathersjs/client 4.5.11 → 4.5.14
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/CHANGELOG.md +27 -0
- package/dist/authentication.js +82 -54
- package/dist/authentication.js.map +1 -1
- package/dist/authentication.min.js +1 -1
- package/dist/core.js +96 -53
- package/dist/core.js.map +1 -1
- package/dist/core.min.js +1 -1
- package/dist/feathers.js +1540 -173
- package/dist/feathers.js.map +1 -1
- package/dist/feathers.min.js +1 -1
- package/dist/primus.js +36 -20
- package/dist/primus.js.map +1 -1
- package/dist/primus.min.js +1 -1
- package/dist/rest.js +1448 -108
- package/dist/rest.js.map +1 -1
- package/dist/rest.min.js +1 -1
- package/dist/socketio.js +36 -20
- package/dist/socketio.js.map +1 -1
- package/dist/socketio.min.js +1 -1
- package/package.json +21 -21
package/dist/rest.js
CHANGED
|
@@ -12,7 +12,7 @@ return /******/ (function() { // webpackBootstrap
|
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
14
|
/***/ "../../node_modules/debug/src/browser.js":
|
|
15
|
-
|
|
15
|
+
/*!***********************************************!*\
|
|
16
16
|
!*** ../../node_modules/debug/src/browser.js ***!
|
|
17
17
|
\***********************************************/
|
|
18
18
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -202,7 +202,7 @@ formatters.j = function (v) {
|
|
|
202
202
|
/***/ }),
|
|
203
203
|
|
|
204
204
|
/***/ "../../node_modules/debug/src/common.js":
|
|
205
|
-
|
|
205
|
+
/*!**********************************************!*\
|
|
206
206
|
!*** ../../node_modules/debug/src/common.js ***!
|
|
207
207
|
\**********************************************/
|
|
208
208
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -213,7 +213,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
213
213
|
|
|
214
214
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
215
215
|
|
|
216
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
216
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
217
217
|
|
|
218
218
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
219
219
|
|
|
@@ -250,7 +250,7 @@ function setup(env) {
|
|
|
250
250
|
createDebug.formatters = {};
|
|
251
251
|
/**
|
|
252
252
|
* Selects a color for a debug namespace
|
|
253
|
-
* @param {String} namespace The namespace string for the
|
|
253
|
+
* @param {String} namespace The namespace string for the debug instance to be colored
|
|
254
254
|
* @return {Number|String} An ANSI color code for the given namespace
|
|
255
255
|
* @api private
|
|
256
256
|
*/
|
|
@@ -278,6 +278,8 @@ function setup(env) {
|
|
|
278
278
|
function createDebug(namespace) {
|
|
279
279
|
var prevTime;
|
|
280
280
|
var enableOverride = null;
|
|
281
|
+
var namespacesCache;
|
|
282
|
+
var enabledCache;
|
|
281
283
|
|
|
282
284
|
function debug() {
|
|
283
285
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -341,7 +343,16 @@ function setup(env) {
|
|
|
341
343
|
enumerable: true,
|
|
342
344
|
configurable: false,
|
|
343
345
|
get: function get() {
|
|
344
|
-
|
|
346
|
+
if (enableOverride !== null) {
|
|
347
|
+
return enableOverride;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
351
|
+
namespacesCache = createDebug.namespaces;
|
|
352
|
+
enabledCache = createDebug.enabled(namespace);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
return enabledCache;
|
|
345
356
|
},
|
|
346
357
|
set: function set(v) {
|
|
347
358
|
enableOverride = v;
|
|
@@ -371,6 +382,7 @@ function setup(env) {
|
|
|
371
382
|
|
|
372
383
|
function enable(namespaces) {
|
|
373
384
|
createDebug.save(namespaces);
|
|
385
|
+
createDebug.namespaces = namespaces;
|
|
374
386
|
createDebug.names = [];
|
|
375
387
|
createDebug.skips = [];
|
|
376
388
|
var i;
|
|
@@ -485,7 +497,7 @@ module.exports = setup;
|
|
|
485
497
|
/***/ }),
|
|
486
498
|
|
|
487
499
|
/***/ "./src/rest.js":
|
|
488
|
-
|
|
500
|
+
/*!*********************!*\
|
|
489
501
|
!*** ./src/rest.js ***!
|
|
490
502
|
\*********************/
|
|
491
503
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -495,7 +507,7 @@ module.exports = __webpack_require__(/*! @feathersjs/rest-client */ "../rest-cli
|
|
|
495
507
|
/***/ }),
|
|
496
508
|
|
|
497
509
|
/***/ "../commons/lib/hooks.js":
|
|
498
|
-
|
|
510
|
+
/*!*******************************!*\
|
|
499
511
|
!*** ../commons/lib/hooks.js ***!
|
|
500
512
|
\*******************************/
|
|
501
513
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
@@ -503,7 +515,7 @@ module.exports = __webpack_require__(/*! @feathersjs/rest-client */ "../rest-cli
|
|
|
503
515
|
"use strict";
|
|
504
516
|
|
|
505
517
|
|
|
506
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
518
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
507
519
|
|
|
508
520
|
Object.defineProperty(exports, "__esModule", ({
|
|
509
521
|
value: true
|
|
@@ -515,7 +527,7 @@ var utils_1 = __webpack_require__(/*! ./utils */ "../commons/lib/utils.js");
|
|
|
515
527
|
var _utils_1$_ = utils_1._,
|
|
516
528
|
each = _utils_1$_.each,
|
|
517
529
|
pick = _utils_1$_.pick;
|
|
518
|
-
exports.ACTIVATE_HOOKS = utils_1.createSymbol('__feathersActivateHooks');
|
|
530
|
+
exports.ACTIVATE_HOOKS = (0, utils_1.createSymbol)('__feathersActivateHooks');
|
|
519
531
|
|
|
520
532
|
function createHookObject(method) {
|
|
521
533
|
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -728,7 +740,7 @@ exports.enableHooks = enableHooks;
|
|
|
728
740
|
/***/ }),
|
|
729
741
|
|
|
730
742
|
/***/ "../commons/lib/index.js":
|
|
731
|
-
|
|
743
|
+
/*!*******************************!*\
|
|
732
744
|
!*** ../commons/lib/index.js ***!
|
|
733
745
|
\*******************************/
|
|
734
746
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
@@ -738,12 +750,18 @@ exports.enableHooks = enableHooks;
|
|
|
738
750
|
|
|
739
751
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
740
752
|
if (k2 === undefined) k2 = k;
|
|
741
|
-
Object.
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
753
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
754
|
+
|
|
755
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
756
|
+
desc = {
|
|
757
|
+
enumerable: true,
|
|
758
|
+
get: function get() {
|
|
759
|
+
return m[k];
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
Object.defineProperty(o, k2, desc);
|
|
747
765
|
} : function (o, m, k, k2) {
|
|
748
766
|
if (k2 === undefined) k2 = k;
|
|
749
767
|
o[k2] = m[k];
|
|
@@ -790,7 +808,7 @@ exports.hooks = hookUtils;
|
|
|
790
808
|
/***/ }),
|
|
791
809
|
|
|
792
810
|
/***/ "../commons/lib/utils.js":
|
|
793
|
-
|
|
811
|
+
/*!*******************************!*\
|
|
794
812
|
!*** ../commons/lib/utils.js ***!
|
|
795
813
|
\*******************************/
|
|
796
814
|
/***/ (function(__unused_webpack_module, exports) {
|
|
@@ -800,7 +818,7 @@ exports.hooks = hookUtils;
|
|
|
800
818
|
|
|
801
819
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
802
820
|
|
|
803
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
821
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
804
822
|
|
|
805
823
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
806
824
|
|
|
@@ -810,7 +828,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
810
828
|
|
|
811
829
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
812
830
|
|
|
813
|
-
function _iterableToArrayLimit(arr, i) {
|
|
831
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
814
832
|
|
|
815
833
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
816
834
|
|
|
@@ -960,12 +978,12 @@ exports.createSymbol = createSymbol;
|
|
|
960
978
|
/***/ }),
|
|
961
979
|
|
|
962
980
|
/***/ "../errors/lib/index.js":
|
|
963
|
-
|
|
981
|
+
/*!******************************!*\
|
|
964
982
|
!*** ../errors/lib/index.js ***!
|
|
965
983
|
\******************************/
|
|
966
984
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
967
985
|
|
|
968
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
986
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
969
987
|
|
|
970
988
|
var debug = __webpack_require__(/*! debug */ "../../node_modules/debug/src/browser.js")('@feathersjs/errors');
|
|
971
989
|
|
|
@@ -1209,30 +1227,30 @@ module.exports = Object.assign({
|
|
|
1209
1227
|
/***/ }),
|
|
1210
1228
|
|
|
1211
1229
|
/***/ "../rest-client/lib/angular-http-client.js":
|
|
1212
|
-
|
|
1230
|
+
/*!*************************************************!*\
|
|
1213
1231
|
!*** ../rest-client/lib/angular-http-client.js ***!
|
|
1214
1232
|
\*************************************************/
|
|
1215
1233
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1216
1234
|
|
|
1217
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
1235
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
1218
1236
|
|
|
1219
1237
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1220
1238
|
|
|
1221
1239
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1222
1240
|
|
|
1223
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1241
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
1224
1242
|
|
|
1225
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1243
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1226
1244
|
|
|
1227
1245
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1228
1246
|
|
|
1229
1247
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1230
1248
|
|
|
1231
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1249
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
1232
1250
|
|
|
1233
1251
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1234
1252
|
|
|
1235
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
1253
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1236
1254
|
|
|
1237
1255
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1238
1256
|
|
|
@@ -1293,30 +1311,30 @@ module.exports = AngularHttpService;
|
|
|
1293
1311
|
/***/ }),
|
|
1294
1312
|
|
|
1295
1313
|
/***/ "../rest-client/lib/angular.js":
|
|
1296
|
-
|
|
1314
|
+
/*!*************************************!*\
|
|
1297
1315
|
!*** ../rest-client/lib/angular.js ***!
|
|
1298
1316
|
\*************************************/
|
|
1299
1317
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1300
1318
|
|
|
1301
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
1319
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
1302
1320
|
|
|
1303
1321
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1304
1322
|
|
|
1305
1323
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1306
1324
|
|
|
1307
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1325
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
1308
1326
|
|
|
1309
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1327
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1310
1328
|
|
|
1311
1329
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1312
1330
|
|
|
1313
1331
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1314
1332
|
|
|
1315
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1333
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
1316
1334
|
|
|
1317
1335
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1318
1336
|
|
|
1319
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
1337
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1320
1338
|
|
|
1321
1339
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1322
1340
|
|
|
@@ -1374,30 +1392,30 @@ module.exports = AngularService;
|
|
|
1374
1392
|
/***/ }),
|
|
1375
1393
|
|
|
1376
1394
|
/***/ "../rest-client/lib/axios.js":
|
|
1377
|
-
|
|
1395
|
+
/*!***********************************!*\
|
|
1378
1396
|
!*** ../rest-client/lib/axios.js ***!
|
|
1379
1397
|
\***********************************/
|
|
1380
1398
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1381
1399
|
|
|
1382
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
1400
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
1383
1401
|
|
|
1384
1402
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1385
1403
|
|
|
1386
1404
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1387
1405
|
|
|
1388
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1406
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
1389
1407
|
|
|
1390
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1408
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1391
1409
|
|
|
1392
1410
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1393
1411
|
|
|
1394
1412
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1395
1413
|
|
|
1396
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1414
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
1397
1415
|
|
|
1398
1416
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1399
1417
|
|
|
1400
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
1418
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1401
1419
|
|
|
1402
1420
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1403
1421
|
|
|
@@ -1442,7 +1460,7 @@ module.exports = AxiosService;
|
|
|
1442
1460
|
/***/ }),
|
|
1443
1461
|
|
|
1444
1462
|
/***/ "../rest-client/lib/base.js":
|
|
1445
|
-
|
|
1463
|
+
/*!**********************************!*\
|
|
1446
1464
|
!*** ../rest-client/lib/base.js ***!
|
|
1447
1465
|
\**********************************/
|
|
1448
1466
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -1451,7 +1469,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
1451
1469
|
|
|
1452
1470
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1453
1471
|
|
|
1454
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1472
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
1455
1473
|
|
|
1456
1474
|
var qs = __webpack_require__(/*! qs */ "../../node_modules/qs/lib/index.js");
|
|
1457
1475
|
|
|
@@ -1606,35 +1624,37 @@ module.exports = Base;
|
|
|
1606
1624
|
/***/ }),
|
|
1607
1625
|
|
|
1608
1626
|
/***/ "../rest-client/lib/fetch.js":
|
|
1609
|
-
|
|
1627
|
+
/*!***********************************!*\
|
|
1610
1628
|
!*** ../rest-client/lib/fetch.js ***!
|
|
1611
1629
|
\***********************************/
|
|
1612
1630
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1613
1631
|
|
|
1614
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
1632
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
1615
1633
|
|
|
1616
1634
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1617
1635
|
|
|
1618
1636
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1619
1637
|
|
|
1620
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1638
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
1621
1639
|
|
|
1622
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1640
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1623
1641
|
|
|
1624
1642
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1625
1643
|
|
|
1626
1644
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1627
1645
|
|
|
1628
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1646
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
1629
1647
|
|
|
1630
1648
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1631
1649
|
|
|
1632
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
1650
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1633
1651
|
|
|
1634
1652
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1635
1653
|
|
|
1636
1654
|
var Base = __webpack_require__(/*! ./base */ "../rest-client/lib/base.js");
|
|
1637
1655
|
|
|
1656
|
+
var errors = __webpack_require__(/*! @feathersjs/errors */ "../errors/lib/index.js");
|
|
1657
|
+
|
|
1638
1658
|
var FetchService = /*#__PURE__*/function (_Base) {
|
|
1639
1659
|
_inherits(FetchService, _Base);
|
|
1640
1660
|
|
|
@@ -1692,7 +1712,7 @@ module.exports = FetchService;
|
|
|
1692
1712
|
/***/ }),
|
|
1693
1713
|
|
|
1694
1714
|
/***/ "../rest-client/lib/index.js":
|
|
1695
|
-
|
|
1715
|
+
/*!***********************************!*\
|
|
1696
1716
|
!*** ../rest-client/lib/index.js ***!
|
|
1697
1717
|
\***********************************/
|
|
1698
1718
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -1777,35 +1797,35 @@ module.exports = Object.assign(restClient, {
|
|
|
1777
1797
|
AngularClient: AngularClient,
|
|
1778
1798
|
AngularHttpClient: AngularHttpClient
|
|
1779
1799
|
});
|
|
1780
|
-
module.exports
|
|
1800
|
+
module.exports["default"] = restClient;
|
|
1781
1801
|
|
|
1782
1802
|
/***/ }),
|
|
1783
1803
|
|
|
1784
1804
|
/***/ "../rest-client/lib/jquery.js":
|
|
1785
|
-
|
|
1805
|
+
/*!************************************!*\
|
|
1786
1806
|
!*** ../rest-client/lib/jquery.js ***!
|
|
1787
1807
|
\************************************/
|
|
1788
1808
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1789
1809
|
|
|
1790
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
1810
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
1791
1811
|
|
|
1792
1812
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1793
1813
|
|
|
1794
1814
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1795
1815
|
|
|
1796
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1816
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
1797
1817
|
|
|
1798
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1818
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1799
1819
|
|
|
1800
1820
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1801
1821
|
|
|
1802
1822
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1803
1823
|
|
|
1804
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1824
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
1805
1825
|
|
|
1806
1826
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1807
1827
|
|
|
1808
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
1828
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1809
1829
|
|
|
1810
1830
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1811
1831
|
|
|
@@ -1868,30 +1888,30 @@ module.exports = JQueryService;
|
|
|
1868
1888
|
/***/ }),
|
|
1869
1889
|
|
|
1870
1890
|
/***/ "../rest-client/lib/request.js":
|
|
1871
|
-
|
|
1891
|
+
/*!*************************************!*\
|
|
1872
1892
|
!*** ../rest-client/lib/request.js ***!
|
|
1873
1893
|
\*************************************/
|
|
1874
1894
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1875
1895
|
|
|
1876
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
1896
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
1877
1897
|
|
|
1878
1898
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1879
1899
|
|
|
1880
1900
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1881
1901
|
|
|
1882
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1902
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
1883
1903
|
|
|
1884
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1904
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1885
1905
|
|
|
1886
1906
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1887
1907
|
|
|
1888
1908
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1889
1909
|
|
|
1890
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1910
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
1891
1911
|
|
|
1892
1912
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1893
1913
|
|
|
1894
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
1914
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1895
1915
|
|
|
1896
1916
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1897
1917
|
|
|
@@ -1950,30 +1970,30 @@ module.exports = RequestService;
|
|
|
1950
1970
|
/***/ }),
|
|
1951
1971
|
|
|
1952
1972
|
/***/ "../rest-client/lib/superagent.js":
|
|
1953
|
-
|
|
1973
|
+
/*!****************************************!*\
|
|
1954
1974
|
!*** ../rest-client/lib/superagent.js ***!
|
|
1955
1975
|
\****************************************/
|
|
1956
1976
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1957
1977
|
|
|
1958
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
1978
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
1959
1979
|
|
|
1960
1980
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1961
1981
|
|
|
1962
1982
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1963
1983
|
|
|
1964
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1984
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
1965
1985
|
|
|
1966
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1986
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1967
1987
|
|
|
1968
1988
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1969
1989
|
|
|
1970
1990
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1971
1991
|
|
|
1972
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1992
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
1973
1993
|
|
|
1974
1994
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1975
1995
|
|
|
1976
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
1996
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1977
1997
|
|
|
1978
1998
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1979
1999
|
|
|
@@ -2023,10 +2043,607 @@ var SuperagentService = /*#__PURE__*/function (_Base) {
|
|
|
2023
2043
|
|
|
2024
2044
|
module.exports = SuperagentService;
|
|
2025
2045
|
|
|
2046
|
+
/***/ }),
|
|
2047
|
+
|
|
2048
|
+
/***/ "../../node_modules/call-bind/callBound.js":
|
|
2049
|
+
/*!*************************************************!*\
|
|
2050
|
+
!*** ../../node_modules/call-bind/callBound.js ***!
|
|
2051
|
+
\*************************************************/
|
|
2052
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2053
|
+
|
|
2054
|
+
"use strict";
|
|
2055
|
+
|
|
2056
|
+
|
|
2057
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
|
2058
|
+
|
|
2059
|
+
var callBind = __webpack_require__(/*! ./ */ "../../node_modules/call-bind/index.js");
|
|
2060
|
+
|
|
2061
|
+
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
2062
|
+
|
|
2063
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
2064
|
+
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
2065
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
2066
|
+
return callBind(intrinsic);
|
|
2067
|
+
}
|
|
2068
|
+
return intrinsic;
|
|
2069
|
+
};
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
/***/ }),
|
|
2073
|
+
|
|
2074
|
+
/***/ "../../node_modules/call-bind/index.js":
|
|
2075
|
+
/*!*********************************************!*\
|
|
2076
|
+
!*** ../../node_modules/call-bind/index.js ***!
|
|
2077
|
+
\*********************************************/
|
|
2078
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2079
|
+
|
|
2080
|
+
"use strict";
|
|
2081
|
+
|
|
2082
|
+
|
|
2083
|
+
var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
|
|
2084
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
|
2085
|
+
|
|
2086
|
+
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
2087
|
+
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
2088
|
+
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
2089
|
+
|
|
2090
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
2091
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
2092
|
+
var $max = GetIntrinsic('%Math.max%');
|
|
2093
|
+
|
|
2094
|
+
if ($defineProperty) {
|
|
2095
|
+
try {
|
|
2096
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
2097
|
+
} catch (e) {
|
|
2098
|
+
// IE 8 has a broken defineProperty
|
|
2099
|
+
$defineProperty = null;
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
module.exports = function callBind(originalFunction) {
|
|
2104
|
+
var func = $reflectApply(bind, $call, arguments);
|
|
2105
|
+
if ($gOPD && $defineProperty) {
|
|
2106
|
+
var desc = $gOPD(func, 'length');
|
|
2107
|
+
if (desc.configurable) {
|
|
2108
|
+
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
2109
|
+
$defineProperty(
|
|
2110
|
+
func,
|
|
2111
|
+
'length',
|
|
2112
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
2113
|
+
);
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
return func;
|
|
2117
|
+
};
|
|
2118
|
+
|
|
2119
|
+
var applyBind = function applyBind() {
|
|
2120
|
+
return $reflectApply(bind, $apply, arguments);
|
|
2121
|
+
};
|
|
2122
|
+
|
|
2123
|
+
if ($defineProperty) {
|
|
2124
|
+
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
2125
|
+
} else {
|
|
2126
|
+
module.exports.apply = applyBind;
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
/***/ }),
|
|
2131
|
+
|
|
2132
|
+
/***/ "../../node_modules/function-bind/implementation.js":
|
|
2133
|
+
/*!**********************************************************!*\
|
|
2134
|
+
!*** ../../node_modules/function-bind/implementation.js ***!
|
|
2135
|
+
\**********************************************************/
|
|
2136
|
+
/***/ (function(module) {
|
|
2137
|
+
|
|
2138
|
+
"use strict";
|
|
2139
|
+
|
|
2140
|
+
|
|
2141
|
+
/* eslint no-invalid-this: 1 */
|
|
2142
|
+
|
|
2143
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
2144
|
+
var slice = Array.prototype.slice;
|
|
2145
|
+
var toStr = Object.prototype.toString;
|
|
2146
|
+
var funcType = '[object Function]';
|
|
2147
|
+
|
|
2148
|
+
module.exports = function bind(that) {
|
|
2149
|
+
var target = this;
|
|
2150
|
+
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
|
|
2151
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
2152
|
+
}
|
|
2153
|
+
var args = slice.call(arguments, 1);
|
|
2154
|
+
|
|
2155
|
+
var bound;
|
|
2156
|
+
var binder = function () {
|
|
2157
|
+
if (this instanceof bound) {
|
|
2158
|
+
var result = target.apply(
|
|
2159
|
+
this,
|
|
2160
|
+
args.concat(slice.call(arguments))
|
|
2161
|
+
);
|
|
2162
|
+
if (Object(result) === result) {
|
|
2163
|
+
return result;
|
|
2164
|
+
}
|
|
2165
|
+
return this;
|
|
2166
|
+
} else {
|
|
2167
|
+
return target.apply(
|
|
2168
|
+
that,
|
|
2169
|
+
args.concat(slice.call(arguments))
|
|
2170
|
+
);
|
|
2171
|
+
}
|
|
2172
|
+
};
|
|
2173
|
+
|
|
2174
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
2175
|
+
var boundArgs = [];
|
|
2176
|
+
for (var i = 0; i < boundLength; i++) {
|
|
2177
|
+
boundArgs.push('$' + i);
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
2181
|
+
|
|
2182
|
+
if (target.prototype) {
|
|
2183
|
+
var Empty = function Empty() {};
|
|
2184
|
+
Empty.prototype = target.prototype;
|
|
2185
|
+
bound.prototype = new Empty();
|
|
2186
|
+
Empty.prototype = null;
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
return bound;
|
|
2190
|
+
};
|
|
2191
|
+
|
|
2192
|
+
|
|
2193
|
+
/***/ }),
|
|
2194
|
+
|
|
2195
|
+
/***/ "../../node_modules/function-bind/index.js":
|
|
2196
|
+
/*!*************************************************!*\
|
|
2197
|
+
!*** ../../node_modules/function-bind/index.js ***!
|
|
2198
|
+
\*************************************************/
|
|
2199
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2200
|
+
|
|
2201
|
+
"use strict";
|
|
2202
|
+
|
|
2203
|
+
|
|
2204
|
+
var implementation = __webpack_require__(/*! ./implementation */ "../../node_modules/function-bind/implementation.js");
|
|
2205
|
+
|
|
2206
|
+
module.exports = Function.prototype.bind || implementation;
|
|
2207
|
+
|
|
2208
|
+
|
|
2209
|
+
/***/ }),
|
|
2210
|
+
|
|
2211
|
+
/***/ "../../node_modules/get-intrinsic/index.js":
|
|
2212
|
+
/*!*************************************************!*\
|
|
2213
|
+
!*** ../../node_modules/get-intrinsic/index.js ***!
|
|
2214
|
+
\*************************************************/
|
|
2215
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2216
|
+
|
|
2217
|
+
"use strict";
|
|
2218
|
+
|
|
2219
|
+
|
|
2220
|
+
var undefined;
|
|
2221
|
+
|
|
2222
|
+
var $SyntaxError = SyntaxError;
|
|
2223
|
+
var $Function = Function;
|
|
2224
|
+
var $TypeError = TypeError;
|
|
2225
|
+
|
|
2226
|
+
// eslint-disable-next-line consistent-return
|
|
2227
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
2228
|
+
try {
|
|
2229
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
2230
|
+
} catch (e) {}
|
|
2231
|
+
};
|
|
2232
|
+
|
|
2233
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
2234
|
+
if ($gOPD) {
|
|
2235
|
+
try {
|
|
2236
|
+
$gOPD({}, '');
|
|
2237
|
+
} catch (e) {
|
|
2238
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
var throwTypeError = function () {
|
|
2243
|
+
throw new $TypeError();
|
|
2244
|
+
};
|
|
2245
|
+
var ThrowTypeError = $gOPD
|
|
2246
|
+
? (function () {
|
|
2247
|
+
try {
|
|
2248
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
2249
|
+
arguments.callee; // IE 8 does not throw here
|
|
2250
|
+
return throwTypeError;
|
|
2251
|
+
} catch (calleeThrows) {
|
|
2252
|
+
try {
|
|
2253
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
2254
|
+
return $gOPD(arguments, 'callee').get;
|
|
2255
|
+
} catch (gOPDthrows) {
|
|
2256
|
+
return throwTypeError;
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
}())
|
|
2260
|
+
: throwTypeError;
|
|
2261
|
+
|
|
2262
|
+
var hasSymbols = __webpack_require__(/*! has-symbols */ "../../node_modules/has-symbols/index.js")();
|
|
2263
|
+
|
|
2264
|
+
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
2265
|
+
|
|
2266
|
+
var needsEval = {};
|
|
2267
|
+
|
|
2268
|
+
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
2269
|
+
|
|
2270
|
+
var INTRINSICS = {
|
|
2271
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
2272
|
+
'%Array%': Array,
|
|
2273
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
2274
|
+
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
2275
|
+
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
2276
|
+
'%AsyncFunction%': needsEval,
|
|
2277
|
+
'%AsyncGenerator%': needsEval,
|
|
2278
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
2279
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
2280
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
2281
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
2282
|
+
'%Boolean%': Boolean,
|
|
2283
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
2284
|
+
'%Date%': Date,
|
|
2285
|
+
'%decodeURI%': decodeURI,
|
|
2286
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
2287
|
+
'%encodeURI%': encodeURI,
|
|
2288
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
2289
|
+
'%Error%': Error,
|
|
2290
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
2291
|
+
'%EvalError%': EvalError,
|
|
2292
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
2293
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
2294
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
2295
|
+
'%Function%': $Function,
|
|
2296
|
+
'%GeneratorFunction%': needsEval,
|
|
2297
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
2298
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
2299
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
2300
|
+
'%isFinite%': isFinite,
|
|
2301
|
+
'%isNaN%': isNaN,
|
|
2302
|
+
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
2303
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
2304
|
+
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
2305
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
2306
|
+
'%Math%': Math,
|
|
2307
|
+
'%Number%': Number,
|
|
2308
|
+
'%Object%': Object,
|
|
2309
|
+
'%parseFloat%': parseFloat,
|
|
2310
|
+
'%parseInt%': parseInt,
|
|
2311
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
2312
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
2313
|
+
'%RangeError%': RangeError,
|
|
2314
|
+
'%ReferenceError%': ReferenceError,
|
|
2315
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
2316
|
+
'%RegExp%': RegExp,
|
|
2317
|
+
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
2318
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
2319
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
2320
|
+
'%String%': String,
|
|
2321
|
+
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
2322
|
+
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
2323
|
+
'%SyntaxError%': $SyntaxError,
|
|
2324
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
2325
|
+
'%TypedArray%': TypedArray,
|
|
2326
|
+
'%TypeError%': $TypeError,
|
|
2327
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
2328
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
2329
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
2330
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
2331
|
+
'%URIError%': URIError,
|
|
2332
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
2333
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
2334
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
2335
|
+
};
|
|
2336
|
+
|
|
2337
|
+
var doEval = function doEval(name) {
|
|
2338
|
+
var value;
|
|
2339
|
+
if (name === '%AsyncFunction%') {
|
|
2340
|
+
value = getEvalledConstructor('async function () {}');
|
|
2341
|
+
} else if (name === '%GeneratorFunction%') {
|
|
2342
|
+
value = getEvalledConstructor('function* () {}');
|
|
2343
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
2344
|
+
value = getEvalledConstructor('async function* () {}');
|
|
2345
|
+
} else if (name === '%AsyncGenerator%') {
|
|
2346
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
2347
|
+
if (fn) {
|
|
2348
|
+
value = fn.prototype;
|
|
2349
|
+
}
|
|
2350
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
2351
|
+
var gen = doEval('%AsyncGenerator%');
|
|
2352
|
+
if (gen) {
|
|
2353
|
+
value = getProto(gen.prototype);
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
INTRINSICS[name] = value;
|
|
2358
|
+
|
|
2359
|
+
return value;
|
|
2360
|
+
};
|
|
2361
|
+
|
|
2362
|
+
var LEGACY_ALIASES = {
|
|
2363
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
2364
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
2365
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
2366
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
2367
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
2368
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
2369
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
2370
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
2371
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
2372
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
2373
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
2374
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
2375
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
2376
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
2377
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
2378
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
2379
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
2380
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
2381
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
2382
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
2383
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
2384
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
2385
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
2386
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
2387
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
2388
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
2389
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
2390
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
2391
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
2392
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
2393
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
2394
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
2395
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
2396
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
2397
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
2398
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
2399
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
2400
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
2401
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
2402
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
2403
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
2404
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
2405
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
2406
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
2407
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
2408
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
2409
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
2410
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
2411
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
2412
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
2413
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
2414
|
+
};
|
|
2415
|
+
|
|
2416
|
+
var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
|
|
2417
|
+
var hasOwn = __webpack_require__(/*! has */ "../../node_modules/has/src/index.js");
|
|
2418
|
+
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
2419
|
+
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
2420
|
+
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
2421
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
2422
|
+
|
|
2423
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
2424
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2425
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
2426
|
+
var stringToPath = function stringToPath(string) {
|
|
2427
|
+
var first = $strSlice(string, 0, 1);
|
|
2428
|
+
var last = $strSlice(string, -1);
|
|
2429
|
+
if (first === '%' && last !== '%') {
|
|
2430
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
2431
|
+
} else if (last === '%' && first !== '%') {
|
|
2432
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
2433
|
+
}
|
|
2434
|
+
var result = [];
|
|
2435
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
2436
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
2437
|
+
});
|
|
2438
|
+
return result;
|
|
2439
|
+
};
|
|
2440
|
+
/* end adaptation */
|
|
2441
|
+
|
|
2442
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
2443
|
+
var intrinsicName = name;
|
|
2444
|
+
var alias;
|
|
2445
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
2446
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
2447
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
2451
|
+
var value = INTRINSICS[intrinsicName];
|
|
2452
|
+
if (value === needsEval) {
|
|
2453
|
+
value = doEval(intrinsicName);
|
|
2454
|
+
}
|
|
2455
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
2456
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
return {
|
|
2460
|
+
alias: alias,
|
|
2461
|
+
name: intrinsicName,
|
|
2462
|
+
value: value
|
|
2463
|
+
};
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
2467
|
+
};
|
|
2468
|
+
|
|
2469
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
2470
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
2471
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
2472
|
+
}
|
|
2473
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
2474
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
var parts = stringToPath(name);
|
|
2478
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
2479
|
+
|
|
2480
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
2481
|
+
var intrinsicRealName = intrinsic.name;
|
|
2482
|
+
var value = intrinsic.value;
|
|
2483
|
+
var skipFurtherCaching = false;
|
|
2484
|
+
|
|
2485
|
+
var alias = intrinsic.alias;
|
|
2486
|
+
if (alias) {
|
|
2487
|
+
intrinsicBaseName = alias[0];
|
|
2488
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
2492
|
+
var part = parts[i];
|
|
2493
|
+
var first = $strSlice(part, 0, 1);
|
|
2494
|
+
var last = $strSlice(part, -1);
|
|
2495
|
+
if (
|
|
2496
|
+
(
|
|
2497
|
+
(first === '"' || first === "'" || first === '`')
|
|
2498
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
2499
|
+
)
|
|
2500
|
+
&& first !== last
|
|
2501
|
+
) {
|
|
2502
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
2503
|
+
}
|
|
2504
|
+
if (part === 'constructor' || !isOwn) {
|
|
2505
|
+
skipFurtherCaching = true;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
intrinsicBaseName += '.' + part;
|
|
2509
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
2510
|
+
|
|
2511
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
2512
|
+
value = INTRINSICS[intrinsicRealName];
|
|
2513
|
+
} else if (value != null) {
|
|
2514
|
+
if (!(part in value)) {
|
|
2515
|
+
if (!allowMissing) {
|
|
2516
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2517
|
+
}
|
|
2518
|
+
return void undefined;
|
|
2519
|
+
}
|
|
2520
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
2521
|
+
var desc = $gOPD(value, part);
|
|
2522
|
+
isOwn = !!desc;
|
|
2523
|
+
|
|
2524
|
+
// By convention, when a data property is converted to an accessor
|
|
2525
|
+
// property to emulate a data property that does not suffer from
|
|
2526
|
+
// the override mistake, that accessor's getter is marked with
|
|
2527
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
2528
|
+
// uphold the illusion by pretending to see that original data
|
|
2529
|
+
// property, i.e., returning the value rather than the getter
|
|
2530
|
+
// itself.
|
|
2531
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
2532
|
+
value = desc.get;
|
|
2533
|
+
} else {
|
|
2534
|
+
value = value[part];
|
|
2535
|
+
}
|
|
2536
|
+
} else {
|
|
2537
|
+
isOwn = hasOwn(value, part);
|
|
2538
|
+
value = value[part];
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
if (isOwn && !skipFurtherCaching) {
|
|
2542
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
return value;
|
|
2547
|
+
};
|
|
2548
|
+
|
|
2549
|
+
|
|
2550
|
+
/***/ }),
|
|
2551
|
+
|
|
2552
|
+
/***/ "../../node_modules/has-symbols/index.js":
|
|
2553
|
+
/*!***********************************************!*\
|
|
2554
|
+
!*** ../../node_modules/has-symbols/index.js ***!
|
|
2555
|
+
\***********************************************/
|
|
2556
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2557
|
+
|
|
2558
|
+
"use strict";
|
|
2559
|
+
|
|
2560
|
+
|
|
2561
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
2562
|
+
var hasSymbolSham = __webpack_require__(/*! ./shams */ "../../node_modules/has-symbols/shams.js");
|
|
2563
|
+
|
|
2564
|
+
module.exports = function hasNativeSymbols() {
|
|
2565
|
+
if (typeof origSymbol !== 'function') { return false; }
|
|
2566
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
2567
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
2568
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
2569
|
+
|
|
2570
|
+
return hasSymbolSham();
|
|
2571
|
+
};
|
|
2572
|
+
|
|
2573
|
+
|
|
2574
|
+
/***/ }),
|
|
2575
|
+
|
|
2576
|
+
/***/ "../../node_modules/has-symbols/shams.js":
|
|
2577
|
+
/*!***********************************************!*\
|
|
2578
|
+
!*** ../../node_modules/has-symbols/shams.js ***!
|
|
2579
|
+
\***********************************************/
|
|
2580
|
+
/***/ (function(module) {
|
|
2581
|
+
|
|
2582
|
+
"use strict";
|
|
2583
|
+
|
|
2584
|
+
|
|
2585
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
2586
|
+
module.exports = function hasSymbols() {
|
|
2587
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
2588
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
2589
|
+
|
|
2590
|
+
var obj = {};
|
|
2591
|
+
var sym = Symbol('test');
|
|
2592
|
+
var symObj = Object(sym);
|
|
2593
|
+
if (typeof sym === 'string') { return false; }
|
|
2594
|
+
|
|
2595
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
2596
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
2597
|
+
|
|
2598
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
2599
|
+
// if (sym instanceof Symbol) { return false; }
|
|
2600
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
2601
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
2602
|
+
|
|
2603
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
2604
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
2605
|
+
|
|
2606
|
+
var symVal = 42;
|
|
2607
|
+
obj[sym] = symVal;
|
|
2608
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
2609
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
2610
|
+
|
|
2611
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
2612
|
+
|
|
2613
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
2614
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
2615
|
+
|
|
2616
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
2617
|
+
|
|
2618
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
2619
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
2620
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
return true;
|
|
2624
|
+
};
|
|
2625
|
+
|
|
2626
|
+
|
|
2627
|
+
/***/ }),
|
|
2628
|
+
|
|
2629
|
+
/***/ "../../node_modules/has/src/index.js":
|
|
2630
|
+
/*!*******************************************!*\
|
|
2631
|
+
!*** ../../node_modules/has/src/index.js ***!
|
|
2632
|
+
\*******************************************/
|
|
2633
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2634
|
+
|
|
2635
|
+
"use strict";
|
|
2636
|
+
|
|
2637
|
+
|
|
2638
|
+
var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
|
|
2639
|
+
|
|
2640
|
+
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
2641
|
+
|
|
2642
|
+
|
|
2026
2643
|
/***/ }),
|
|
2027
2644
|
|
|
2028
2645
|
/***/ "../../node_modules/ms/index.js":
|
|
2029
|
-
|
|
2646
|
+
/*!**************************************!*\
|
|
2030
2647
|
!*** ../../node_modules/ms/index.js ***!
|
|
2031
2648
|
\**************************************/
|
|
2032
2649
|
/***/ (function(module) {
|
|
@@ -2195,13 +2812,534 @@ function plural(ms, msAbs, n, name) {
|
|
|
2195
2812
|
}
|
|
2196
2813
|
|
|
2197
2814
|
|
|
2815
|
+
/***/ }),
|
|
2816
|
+
|
|
2817
|
+
/***/ "../../node_modules/object-inspect/index.js":
|
|
2818
|
+
/*!**************************************************!*\
|
|
2819
|
+
!*** ../../node_modules/object-inspect/index.js ***!
|
|
2820
|
+
\**************************************************/
|
|
2821
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2822
|
+
|
|
2823
|
+
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
2824
|
+
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
2825
|
+
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
2826
|
+
var mapForEach = hasMap && Map.prototype.forEach;
|
|
2827
|
+
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
2828
|
+
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
2829
|
+
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
2830
|
+
var setForEach = hasSet && Set.prototype.forEach;
|
|
2831
|
+
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
2832
|
+
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
2833
|
+
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
2834
|
+
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
2835
|
+
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
2836
|
+
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
2837
|
+
var booleanValueOf = Boolean.prototype.valueOf;
|
|
2838
|
+
var objectToString = Object.prototype.toString;
|
|
2839
|
+
var functionToString = Function.prototype.toString;
|
|
2840
|
+
var $match = String.prototype.match;
|
|
2841
|
+
var $slice = String.prototype.slice;
|
|
2842
|
+
var $replace = String.prototype.replace;
|
|
2843
|
+
var $toUpperCase = String.prototype.toUpperCase;
|
|
2844
|
+
var $toLowerCase = String.prototype.toLowerCase;
|
|
2845
|
+
var $test = RegExp.prototype.test;
|
|
2846
|
+
var $concat = Array.prototype.concat;
|
|
2847
|
+
var $join = Array.prototype.join;
|
|
2848
|
+
var $arrSlice = Array.prototype.slice;
|
|
2849
|
+
var $floor = Math.floor;
|
|
2850
|
+
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
2851
|
+
var gOPS = Object.getOwnPropertySymbols;
|
|
2852
|
+
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
2853
|
+
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
2854
|
+
// ie, `has-tostringtag/shams
|
|
2855
|
+
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
|
|
2856
|
+
? Symbol.toStringTag
|
|
2857
|
+
: null;
|
|
2858
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
2859
|
+
|
|
2860
|
+
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
2861
|
+
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
2862
|
+
? function (O) {
|
|
2863
|
+
return O.__proto__; // eslint-disable-line no-proto
|
|
2864
|
+
}
|
|
2865
|
+
: null
|
|
2866
|
+
);
|
|
2867
|
+
|
|
2868
|
+
function addNumericSeparator(num, str) {
|
|
2869
|
+
if (
|
|
2870
|
+
num === Infinity
|
|
2871
|
+
|| num === -Infinity
|
|
2872
|
+
|| num !== num
|
|
2873
|
+
|| (num && num > -1000 && num < 1000)
|
|
2874
|
+
|| $test.call(/e/, str)
|
|
2875
|
+
) {
|
|
2876
|
+
return str;
|
|
2877
|
+
}
|
|
2878
|
+
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
2879
|
+
if (typeof num === 'number') {
|
|
2880
|
+
var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
|
|
2881
|
+
if (int !== num) {
|
|
2882
|
+
var intStr = String(int);
|
|
2883
|
+
var dec = $slice.call(str, intStr.length + 1);
|
|
2884
|
+
return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
return $replace.call(str, sepRegex, '$&_');
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
var inspectCustom = (__webpack_require__(/*! ./util.inspect */ "?c95a").custom);
|
|
2891
|
+
var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
|
|
2892
|
+
|
|
2893
|
+
module.exports = function inspect_(obj, options, depth, seen) {
|
|
2894
|
+
var opts = options || {};
|
|
2895
|
+
|
|
2896
|
+
if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
|
|
2897
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
2898
|
+
}
|
|
2899
|
+
if (
|
|
2900
|
+
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
2901
|
+
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
2902
|
+
: opts.maxStringLength !== null
|
|
2903
|
+
)
|
|
2904
|
+
) {
|
|
2905
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
2906
|
+
}
|
|
2907
|
+
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
2908
|
+
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
2909
|
+
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
2910
|
+
}
|
|
2911
|
+
|
|
2912
|
+
if (
|
|
2913
|
+
has(opts, 'indent')
|
|
2914
|
+
&& opts.indent !== null
|
|
2915
|
+
&& opts.indent !== '\t'
|
|
2916
|
+
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
2917
|
+
) {
|
|
2918
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
2919
|
+
}
|
|
2920
|
+
if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
2921
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
2922
|
+
}
|
|
2923
|
+
var numericSeparator = opts.numericSeparator;
|
|
2924
|
+
|
|
2925
|
+
if (typeof obj === 'undefined') {
|
|
2926
|
+
return 'undefined';
|
|
2927
|
+
}
|
|
2928
|
+
if (obj === null) {
|
|
2929
|
+
return 'null';
|
|
2930
|
+
}
|
|
2931
|
+
if (typeof obj === 'boolean') {
|
|
2932
|
+
return obj ? 'true' : 'false';
|
|
2933
|
+
}
|
|
2934
|
+
|
|
2935
|
+
if (typeof obj === 'string') {
|
|
2936
|
+
return inspectString(obj, opts);
|
|
2937
|
+
}
|
|
2938
|
+
if (typeof obj === 'number') {
|
|
2939
|
+
if (obj === 0) {
|
|
2940
|
+
return Infinity / obj > 0 ? '0' : '-0';
|
|
2941
|
+
}
|
|
2942
|
+
var str = String(obj);
|
|
2943
|
+
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
|
2944
|
+
}
|
|
2945
|
+
if (typeof obj === 'bigint') {
|
|
2946
|
+
var bigIntStr = String(obj) + 'n';
|
|
2947
|
+
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
|
2948
|
+
}
|
|
2949
|
+
|
|
2950
|
+
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
2951
|
+
if (typeof depth === 'undefined') { depth = 0; }
|
|
2952
|
+
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
2953
|
+
return isArray(obj) ? '[Array]' : '[Object]';
|
|
2954
|
+
}
|
|
2955
|
+
|
|
2956
|
+
var indent = getIndent(opts, depth);
|
|
2957
|
+
|
|
2958
|
+
if (typeof seen === 'undefined') {
|
|
2959
|
+
seen = [];
|
|
2960
|
+
} else if (indexOf(seen, obj) >= 0) {
|
|
2961
|
+
return '[Circular]';
|
|
2962
|
+
}
|
|
2963
|
+
|
|
2964
|
+
function inspect(value, from, noIndent) {
|
|
2965
|
+
if (from) {
|
|
2966
|
+
seen = $arrSlice.call(seen);
|
|
2967
|
+
seen.push(from);
|
|
2968
|
+
}
|
|
2969
|
+
if (noIndent) {
|
|
2970
|
+
var newOpts = {
|
|
2971
|
+
depth: opts.depth
|
|
2972
|
+
};
|
|
2973
|
+
if (has(opts, 'quoteStyle')) {
|
|
2974
|
+
newOpts.quoteStyle = opts.quoteStyle;
|
|
2975
|
+
}
|
|
2976
|
+
return inspect_(value, newOpts, depth + 1, seen);
|
|
2977
|
+
}
|
|
2978
|
+
return inspect_(value, opts, depth + 1, seen);
|
|
2979
|
+
}
|
|
2980
|
+
|
|
2981
|
+
if (typeof obj === 'function') {
|
|
2982
|
+
var name = nameOf(obj);
|
|
2983
|
+
var keys = arrObjKeys(obj, inspect);
|
|
2984
|
+
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
|
2985
|
+
}
|
|
2986
|
+
if (isSymbol(obj)) {
|
|
2987
|
+
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
2988
|
+
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
2989
|
+
}
|
|
2990
|
+
if (isElement(obj)) {
|
|
2991
|
+
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
|
2992
|
+
var attrs = obj.attributes || [];
|
|
2993
|
+
for (var i = 0; i < attrs.length; i++) {
|
|
2994
|
+
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
2995
|
+
}
|
|
2996
|
+
s += '>';
|
|
2997
|
+
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
2998
|
+
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
|
2999
|
+
return s;
|
|
3000
|
+
}
|
|
3001
|
+
if (isArray(obj)) {
|
|
3002
|
+
if (obj.length === 0) { return '[]'; }
|
|
3003
|
+
var xs = arrObjKeys(obj, inspect);
|
|
3004
|
+
if (indent && !singleLineValues(xs)) {
|
|
3005
|
+
return '[' + indentedJoin(xs, indent) + ']';
|
|
3006
|
+
}
|
|
3007
|
+
return '[ ' + $join.call(xs, ', ') + ' ]';
|
|
3008
|
+
}
|
|
3009
|
+
if (isError(obj)) {
|
|
3010
|
+
var parts = arrObjKeys(obj, inspect);
|
|
3011
|
+
if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
3012
|
+
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
|
3013
|
+
}
|
|
3014
|
+
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
3015
|
+
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
|
3016
|
+
}
|
|
3017
|
+
if (typeof obj === 'object' && customInspect) {
|
|
3018
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
|
|
3019
|
+
return obj[inspectSymbol]();
|
|
3020
|
+
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
3021
|
+
return obj.inspect();
|
|
3022
|
+
}
|
|
3023
|
+
}
|
|
3024
|
+
if (isMap(obj)) {
|
|
3025
|
+
var mapParts = [];
|
|
3026
|
+
mapForEach.call(obj, function (value, key) {
|
|
3027
|
+
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
3028
|
+
});
|
|
3029
|
+
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
3030
|
+
}
|
|
3031
|
+
if (isSet(obj)) {
|
|
3032
|
+
var setParts = [];
|
|
3033
|
+
setForEach.call(obj, function (value) {
|
|
3034
|
+
setParts.push(inspect(value, obj));
|
|
3035
|
+
});
|
|
3036
|
+
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
3037
|
+
}
|
|
3038
|
+
if (isWeakMap(obj)) {
|
|
3039
|
+
return weakCollectionOf('WeakMap');
|
|
3040
|
+
}
|
|
3041
|
+
if (isWeakSet(obj)) {
|
|
3042
|
+
return weakCollectionOf('WeakSet');
|
|
3043
|
+
}
|
|
3044
|
+
if (isWeakRef(obj)) {
|
|
3045
|
+
return weakCollectionOf('WeakRef');
|
|
3046
|
+
}
|
|
3047
|
+
if (isNumber(obj)) {
|
|
3048
|
+
return markBoxed(inspect(Number(obj)));
|
|
3049
|
+
}
|
|
3050
|
+
if (isBigInt(obj)) {
|
|
3051
|
+
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
3052
|
+
}
|
|
3053
|
+
if (isBoolean(obj)) {
|
|
3054
|
+
return markBoxed(booleanValueOf.call(obj));
|
|
3055
|
+
}
|
|
3056
|
+
if (isString(obj)) {
|
|
3057
|
+
return markBoxed(inspect(String(obj)));
|
|
3058
|
+
}
|
|
3059
|
+
if (!isDate(obj) && !isRegExp(obj)) {
|
|
3060
|
+
var ys = arrObjKeys(obj, inspect);
|
|
3061
|
+
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
3062
|
+
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
3063
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
3064
|
+
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
3065
|
+
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
3066
|
+
if (ys.length === 0) { return tag + '{}'; }
|
|
3067
|
+
if (indent) {
|
|
3068
|
+
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
3069
|
+
}
|
|
3070
|
+
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
|
3071
|
+
}
|
|
3072
|
+
return String(obj);
|
|
3073
|
+
};
|
|
3074
|
+
|
|
3075
|
+
function wrapQuotes(s, defaultStyle, opts) {
|
|
3076
|
+
var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
|
|
3077
|
+
return quoteChar + s + quoteChar;
|
|
3078
|
+
}
|
|
3079
|
+
|
|
3080
|
+
function quote(s) {
|
|
3081
|
+
return $replace.call(String(s), /"/g, '"');
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
3085
|
+
function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
3086
|
+
function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
3087
|
+
function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
3088
|
+
function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
3089
|
+
function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
3090
|
+
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
3091
|
+
|
|
3092
|
+
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
3093
|
+
function isSymbol(obj) {
|
|
3094
|
+
if (hasShammedSymbols) {
|
|
3095
|
+
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
|
3096
|
+
}
|
|
3097
|
+
if (typeof obj === 'symbol') {
|
|
3098
|
+
return true;
|
|
3099
|
+
}
|
|
3100
|
+
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
3101
|
+
return false;
|
|
3102
|
+
}
|
|
3103
|
+
try {
|
|
3104
|
+
symToString.call(obj);
|
|
3105
|
+
return true;
|
|
3106
|
+
} catch (e) {}
|
|
3107
|
+
return false;
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
function isBigInt(obj) {
|
|
3111
|
+
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
3112
|
+
return false;
|
|
3113
|
+
}
|
|
3114
|
+
try {
|
|
3115
|
+
bigIntValueOf.call(obj);
|
|
3116
|
+
return true;
|
|
3117
|
+
} catch (e) {}
|
|
3118
|
+
return false;
|
|
3119
|
+
}
|
|
3120
|
+
|
|
3121
|
+
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
3122
|
+
function has(obj, key) {
|
|
3123
|
+
return hasOwn.call(obj, key);
|
|
3124
|
+
}
|
|
3125
|
+
|
|
3126
|
+
function toStr(obj) {
|
|
3127
|
+
return objectToString.call(obj);
|
|
3128
|
+
}
|
|
3129
|
+
|
|
3130
|
+
function nameOf(f) {
|
|
3131
|
+
if (f.name) { return f.name; }
|
|
3132
|
+
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
3133
|
+
if (m) { return m[1]; }
|
|
3134
|
+
return null;
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3137
|
+
function indexOf(xs, x) {
|
|
3138
|
+
if (xs.indexOf) { return xs.indexOf(x); }
|
|
3139
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
|
3140
|
+
if (xs[i] === x) { return i; }
|
|
3141
|
+
}
|
|
3142
|
+
return -1;
|
|
3143
|
+
}
|
|
3144
|
+
|
|
3145
|
+
function isMap(x) {
|
|
3146
|
+
if (!mapSize || !x || typeof x !== 'object') {
|
|
3147
|
+
return false;
|
|
3148
|
+
}
|
|
3149
|
+
try {
|
|
3150
|
+
mapSize.call(x);
|
|
3151
|
+
try {
|
|
3152
|
+
setSize.call(x);
|
|
3153
|
+
} catch (s) {
|
|
3154
|
+
return true;
|
|
3155
|
+
}
|
|
3156
|
+
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
3157
|
+
} catch (e) {}
|
|
3158
|
+
return false;
|
|
3159
|
+
}
|
|
3160
|
+
|
|
3161
|
+
function isWeakMap(x) {
|
|
3162
|
+
if (!weakMapHas || !x || typeof x !== 'object') {
|
|
3163
|
+
return false;
|
|
3164
|
+
}
|
|
3165
|
+
try {
|
|
3166
|
+
weakMapHas.call(x, weakMapHas);
|
|
3167
|
+
try {
|
|
3168
|
+
weakSetHas.call(x, weakSetHas);
|
|
3169
|
+
} catch (s) {
|
|
3170
|
+
return true;
|
|
3171
|
+
}
|
|
3172
|
+
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
3173
|
+
} catch (e) {}
|
|
3174
|
+
return false;
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3177
|
+
function isWeakRef(x) {
|
|
3178
|
+
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
3179
|
+
return false;
|
|
3180
|
+
}
|
|
3181
|
+
try {
|
|
3182
|
+
weakRefDeref.call(x);
|
|
3183
|
+
return true;
|
|
3184
|
+
} catch (e) {}
|
|
3185
|
+
return false;
|
|
3186
|
+
}
|
|
3187
|
+
|
|
3188
|
+
function isSet(x) {
|
|
3189
|
+
if (!setSize || !x || typeof x !== 'object') {
|
|
3190
|
+
return false;
|
|
3191
|
+
}
|
|
3192
|
+
try {
|
|
3193
|
+
setSize.call(x);
|
|
3194
|
+
try {
|
|
3195
|
+
mapSize.call(x);
|
|
3196
|
+
} catch (m) {
|
|
3197
|
+
return true;
|
|
3198
|
+
}
|
|
3199
|
+
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
|
3200
|
+
} catch (e) {}
|
|
3201
|
+
return false;
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3204
|
+
function isWeakSet(x) {
|
|
3205
|
+
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
3206
|
+
return false;
|
|
3207
|
+
}
|
|
3208
|
+
try {
|
|
3209
|
+
weakSetHas.call(x, weakSetHas);
|
|
3210
|
+
try {
|
|
3211
|
+
weakMapHas.call(x, weakMapHas);
|
|
3212
|
+
} catch (s) {
|
|
3213
|
+
return true;
|
|
3214
|
+
}
|
|
3215
|
+
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
3216
|
+
} catch (e) {}
|
|
3217
|
+
return false;
|
|
3218
|
+
}
|
|
3219
|
+
|
|
3220
|
+
function isElement(x) {
|
|
3221
|
+
if (!x || typeof x !== 'object') { return false; }
|
|
3222
|
+
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
3223
|
+
return true;
|
|
3224
|
+
}
|
|
3225
|
+
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
3226
|
+
}
|
|
3227
|
+
|
|
3228
|
+
function inspectString(str, opts) {
|
|
3229
|
+
if (str.length > opts.maxStringLength) {
|
|
3230
|
+
var remaining = str.length - opts.maxStringLength;
|
|
3231
|
+
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
3232
|
+
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
3233
|
+
}
|
|
3234
|
+
// eslint-disable-next-line no-control-regex
|
|
3235
|
+
var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
3236
|
+
return wrapQuotes(s, 'single', opts);
|
|
3237
|
+
}
|
|
3238
|
+
|
|
3239
|
+
function lowbyte(c) {
|
|
3240
|
+
var n = c.charCodeAt(0);
|
|
3241
|
+
var x = {
|
|
3242
|
+
8: 'b',
|
|
3243
|
+
9: 't',
|
|
3244
|
+
10: 'n',
|
|
3245
|
+
12: 'f',
|
|
3246
|
+
13: 'r'
|
|
3247
|
+
}[n];
|
|
3248
|
+
if (x) { return '\\' + x; }
|
|
3249
|
+
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
function markBoxed(str) {
|
|
3253
|
+
return 'Object(' + str + ')';
|
|
3254
|
+
}
|
|
3255
|
+
|
|
3256
|
+
function weakCollectionOf(type) {
|
|
3257
|
+
return type + ' { ? }';
|
|
3258
|
+
}
|
|
3259
|
+
|
|
3260
|
+
function collectionOf(type, size, entries, indent) {
|
|
3261
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
|
|
3262
|
+
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
function singleLineValues(xs) {
|
|
3266
|
+
for (var i = 0; i < xs.length; i++) {
|
|
3267
|
+
if (indexOf(xs[i], '\n') >= 0) {
|
|
3268
|
+
return false;
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
3271
|
+
return true;
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
function getIndent(opts, depth) {
|
|
3275
|
+
var baseIndent;
|
|
3276
|
+
if (opts.indent === '\t') {
|
|
3277
|
+
baseIndent = '\t';
|
|
3278
|
+
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
3279
|
+
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
|
3280
|
+
} else {
|
|
3281
|
+
return null;
|
|
3282
|
+
}
|
|
3283
|
+
return {
|
|
3284
|
+
base: baseIndent,
|
|
3285
|
+
prev: $join.call(Array(depth + 1), baseIndent)
|
|
3286
|
+
};
|
|
3287
|
+
}
|
|
3288
|
+
|
|
3289
|
+
function indentedJoin(xs, indent) {
|
|
3290
|
+
if (xs.length === 0) { return ''; }
|
|
3291
|
+
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
3292
|
+
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
function arrObjKeys(obj, inspect) {
|
|
3296
|
+
var isArr = isArray(obj);
|
|
3297
|
+
var xs = [];
|
|
3298
|
+
if (isArr) {
|
|
3299
|
+
xs.length = obj.length;
|
|
3300
|
+
for (var i = 0; i < obj.length; i++) {
|
|
3301
|
+
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
3302
|
+
}
|
|
3303
|
+
}
|
|
3304
|
+
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
3305
|
+
var symMap;
|
|
3306
|
+
if (hasShammedSymbols) {
|
|
3307
|
+
symMap = {};
|
|
3308
|
+
for (var k = 0; k < syms.length; k++) {
|
|
3309
|
+
symMap['$' + syms[k]] = syms[k];
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
3314
|
+
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
3315
|
+
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
3316
|
+
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
3317
|
+
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
3318
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
3319
|
+
} else if ($test.call(/[^\w$]/, key)) {
|
|
3320
|
+
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
3321
|
+
} else {
|
|
3322
|
+
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3325
|
+
if (typeof gOPS === 'function') {
|
|
3326
|
+
for (var j = 0; j < syms.length; j++) {
|
|
3327
|
+
if (isEnumerable.call(obj, syms[j])) {
|
|
3328
|
+
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
3329
|
+
}
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
return xs;
|
|
3333
|
+
}
|
|
3334
|
+
|
|
3335
|
+
|
|
2198
3336
|
/***/ }),
|
|
2199
3337
|
|
|
2200
3338
|
/***/ "../../node_modules/qs/lib/formats.js":
|
|
2201
|
-
|
|
3339
|
+
/*!********************************************!*\
|
|
2202
3340
|
!*** ../../node_modules/qs/lib/formats.js ***!
|
|
2203
3341
|
\********************************************/
|
|
2204
|
-
/***/ (function(module
|
|
3342
|
+
/***/ (function(module) {
|
|
2205
3343
|
|
|
2206
3344
|
"use strict";
|
|
2207
3345
|
|
|
@@ -2209,33 +3347,30 @@ function plural(ms, msAbs, n, name) {
|
|
|
2209
3347
|
var replace = String.prototype.replace;
|
|
2210
3348
|
var percentTwenties = /%20/g;
|
|
2211
3349
|
|
|
2212
|
-
var util = __webpack_require__(/*! ./utils */ "../../node_modules/qs/lib/utils.js");
|
|
2213
|
-
|
|
2214
3350
|
var Format = {
|
|
2215
3351
|
RFC1738: 'RFC1738',
|
|
2216
3352
|
RFC3986: 'RFC3986'
|
|
2217
3353
|
};
|
|
2218
3354
|
|
|
2219
|
-
module.exports =
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
return String(value);
|
|
2228
|
-
}
|
|
3355
|
+
module.exports = {
|
|
3356
|
+
'default': Format.RFC3986,
|
|
3357
|
+
formatters: {
|
|
3358
|
+
RFC1738: function (value) {
|
|
3359
|
+
return replace.call(value, percentTwenties, '+');
|
|
3360
|
+
},
|
|
3361
|
+
RFC3986: function (value) {
|
|
3362
|
+
return String(value);
|
|
2229
3363
|
}
|
|
2230
3364
|
},
|
|
2231
|
-
Format
|
|
2232
|
-
|
|
3365
|
+
RFC1738: Format.RFC1738,
|
|
3366
|
+
RFC3986: Format.RFC3986
|
|
3367
|
+
};
|
|
2233
3368
|
|
|
2234
3369
|
|
|
2235
3370
|
/***/ }),
|
|
2236
3371
|
|
|
2237
3372
|
/***/ "../../node_modules/qs/lib/index.js":
|
|
2238
|
-
|
|
3373
|
+
/*!******************************************!*\
|
|
2239
3374
|
!*** ../../node_modules/qs/lib/index.js ***!
|
|
2240
3375
|
\******************************************/
|
|
2241
3376
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -2257,7 +3392,7 @@ module.exports = {
|
|
|
2257
3392
|
/***/ }),
|
|
2258
3393
|
|
|
2259
3394
|
/***/ "../../node_modules/qs/lib/parse.js":
|
|
2260
|
-
|
|
3395
|
+
/*!******************************************!*\
|
|
2261
3396
|
!*** ../../node_modules/qs/lib/parse.js ***!
|
|
2262
3397
|
\******************************************/
|
|
2263
3398
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -2273,6 +3408,7 @@ var isArray = Array.isArray;
|
|
|
2273
3408
|
var defaults = {
|
|
2274
3409
|
allowDots: false,
|
|
2275
3410
|
allowPrototypes: false,
|
|
3411
|
+
allowSparse: false,
|
|
2276
3412
|
arrayLimit: 20,
|
|
2277
3413
|
charset: 'utf-8',
|
|
2278
3414
|
charsetSentinel: false,
|
|
@@ -2400,12 +3536,12 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
2400
3536
|
) {
|
|
2401
3537
|
obj = [];
|
|
2402
3538
|
obj[index] = leaf;
|
|
2403
|
-
} else {
|
|
3539
|
+
} else if (cleanRoot !== '__proto__') {
|
|
2404
3540
|
obj[cleanRoot] = leaf;
|
|
2405
3541
|
}
|
|
2406
3542
|
}
|
|
2407
3543
|
|
|
2408
|
-
leaf = obj;
|
|
3544
|
+
leaf = obj;
|
|
2409
3545
|
}
|
|
2410
3546
|
|
|
2411
3547
|
return leaf;
|
|
@@ -2482,6 +3618,7 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
2482
3618
|
return {
|
|
2483
3619
|
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
2484
3620
|
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
3621
|
+
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
2485
3622
|
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
2486
3623
|
charset: charset,
|
|
2487
3624
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
@@ -2518,6 +3655,10 @@ module.exports = function (str, opts) {
|
|
|
2518
3655
|
obj = utils.merge(obj, newObj, options);
|
|
2519
3656
|
}
|
|
2520
3657
|
|
|
3658
|
+
if (options.allowSparse === true) {
|
|
3659
|
+
return obj;
|
|
3660
|
+
}
|
|
3661
|
+
|
|
2521
3662
|
return utils.compact(obj);
|
|
2522
3663
|
};
|
|
2523
3664
|
|
|
@@ -2525,7 +3666,7 @@ module.exports = function (str, opts) {
|
|
|
2525
3666
|
/***/ }),
|
|
2526
3667
|
|
|
2527
3668
|
/***/ "../../node_modules/qs/lib/stringify.js":
|
|
2528
|
-
|
|
3669
|
+
/*!**********************************************!*\
|
|
2529
3670
|
!*** ../../node_modules/qs/lib/stringify.js ***!
|
|
2530
3671
|
\**********************************************/
|
|
2531
3672
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -2533,6 +3674,7 @@ module.exports = function (str, opts) {
|
|
|
2533
3674
|
"use strict";
|
|
2534
3675
|
|
|
2535
3676
|
|
|
3677
|
+
var getSideChannel = __webpack_require__(/*! side-channel */ "../../node_modules/side-channel/index.js");
|
|
2536
3678
|
var utils = __webpack_require__(/*! ./utils */ "../../node_modules/qs/lib/utils.js");
|
|
2537
3679
|
var formats = __webpack_require__(/*! ./formats */ "../../node_modules/qs/lib/formats.js");
|
|
2538
3680
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -2551,6 +3693,7 @@ var arrayPrefixGenerators = {
|
|
|
2551
3693
|
};
|
|
2552
3694
|
|
|
2553
3695
|
var isArray = Array.isArray;
|
|
3696
|
+
var split = String.prototype.split;
|
|
2554
3697
|
var push = Array.prototype.push;
|
|
2555
3698
|
var pushToArray = function (arr, valueOrArray) {
|
|
2556
3699
|
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
@@ -2587,6 +3730,8 @@ var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
|
2587
3730
|
|| typeof v === 'bigint';
|
|
2588
3731
|
};
|
|
2589
3732
|
|
|
3733
|
+
var sentinel = {};
|
|
3734
|
+
|
|
2590
3735
|
var stringify = function stringify(
|
|
2591
3736
|
object,
|
|
2592
3737
|
prefix,
|
|
@@ -2598,11 +3743,33 @@ var stringify = function stringify(
|
|
|
2598
3743
|
sort,
|
|
2599
3744
|
allowDots,
|
|
2600
3745
|
serializeDate,
|
|
3746
|
+
format,
|
|
2601
3747
|
formatter,
|
|
2602
3748
|
encodeValuesOnly,
|
|
2603
|
-
charset
|
|
3749
|
+
charset,
|
|
3750
|
+
sideChannel
|
|
2604
3751
|
) {
|
|
2605
3752
|
var obj = object;
|
|
3753
|
+
|
|
3754
|
+
var tmpSc = sideChannel;
|
|
3755
|
+
var step = 0;
|
|
3756
|
+
var findFlag = false;
|
|
3757
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
|
|
3758
|
+
// Where object last appeared in the ref tree
|
|
3759
|
+
var pos = tmpSc.get(object);
|
|
3760
|
+
step += 1;
|
|
3761
|
+
if (typeof pos !== 'undefined') {
|
|
3762
|
+
if (pos === step) {
|
|
3763
|
+
throw new RangeError('Cyclic object value');
|
|
3764
|
+
} else {
|
|
3765
|
+
findFlag = true; // Break while
|
|
3766
|
+
}
|
|
3767
|
+
}
|
|
3768
|
+
if (typeof tmpSc.get(sentinel) === 'undefined') {
|
|
3769
|
+
step = 0;
|
|
3770
|
+
}
|
|
3771
|
+
}
|
|
3772
|
+
|
|
2606
3773
|
if (typeof filter === 'function') {
|
|
2607
3774
|
obj = filter(prefix, obj);
|
|
2608
3775
|
} else if (obj instanceof Date) {
|
|
@@ -2613,12 +3780,12 @@ var stringify = function stringify(
|
|
|
2613
3780
|
return serializeDate(value);
|
|
2614
3781
|
}
|
|
2615
3782
|
return value;
|
|
2616
|
-
})
|
|
3783
|
+
});
|
|
2617
3784
|
}
|
|
2618
3785
|
|
|
2619
3786
|
if (obj === null) {
|
|
2620
3787
|
if (strictNullHandling) {
|
|
2621
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key') : prefix;
|
|
3788
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
|
2622
3789
|
}
|
|
2623
3790
|
|
|
2624
3791
|
obj = '';
|
|
@@ -2626,8 +3793,16 @@ var stringify = function stringify(
|
|
|
2626
3793
|
|
|
2627
3794
|
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
2628
3795
|
if (encoder) {
|
|
2629
|
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key');
|
|
2630
|
-
|
|
3796
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
|
3797
|
+
if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
|
|
3798
|
+
var valuesArray = split.call(String(obj), ',');
|
|
3799
|
+
var valuesJoined = '';
|
|
3800
|
+
for (var i = 0; i < valuesArray.length; ++i) {
|
|
3801
|
+
valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
|
|
3802
|
+
}
|
|
3803
|
+
return [formatter(keyValue) + '=' + valuesJoined];
|
|
3804
|
+
}
|
|
3805
|
+
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
2631
3806
|
}
|
|
2632
3807
|
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
2633
3808
|
}
|
|
@@ -2639,16 +3814,19 @@ var stringify = function stringify(
|
|
|
2639
3814
|
}
|
|
2640
3815
|
|
|
2641
3816
|
var objKeys;
|
|
2642
|
-
if (isArray(
|
|
3817
|
+
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
3818
|
+
// we need to join elements in
|
|
3819
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
|
|
3820
|
+
} else if (isArray(filter)) {
|
|
2643
3821
|
objKeys = filter;
|
|
2644
3822
|
} else {
|
|
2645
3823
|
var keys = Object.keys(obj);
|
|
2646
3824
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
2647
3825
|
}
|
|
2648
3826
|
|
|
2649
|
-
for (var
|
|
2650
|
-
var key = objKeys[
|
|
2651
|
-
var value = obj[key];
|
|
3827
|
+
for (var j = 0; j < objKeys.length; ++j) {
|
|
3828
|
+
var key = objKeys[j];
|
|
3829
|
+
var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
|
|
2652
3830
|
|
|
2653
3831
|
if (skipNulls && value === null) {
|
|
2654
3832
|
continue;
|
|
@@ -2658,6 +3836,9 @@ var stringify = function stringify(
|
|
|
2658
3836
|
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
|
|
2659
3837
|
: prefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
2660
3838
|
|
|
3839
|
+
sideChannel.set(object, step);
|
|
3840
|
+
var valueSideChannel = getSideChannel();
|
|
3841
|
+
valueSideChannel.set(sentinel, sideChannel);
|
|
2661
3842
|
pushToArray(values, stringify(
|
|
2662
3843
|
value,
|
|
2663
3844
|
keyPrefix,
|
|
@@ -2669,9 +3850,11 @@ var stringify = function stringify(
|
|
|
2669
3850
|
sort,
|
|
2670
3851
|
allowDots,
|
|
2671
3852
|
serializeDate,
|
|
3853
|
+
format,
|
|
2672
3854
|
formatter,
|
|
2673
3855
|
encodeValuesOnly,
|
|
2674
|
-
charset
|
|
3856
|
+
charset,
|
|
3857
|
+
valueSideChannel
|
|
2675
3858
|
));
|
|
2676
3859
|
}
|
|
2677
3860
|
|
|
@@ -2683,7 +3866,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
2683
3866
|
return defaults;
|
|
2684
3867
|
}
|
|
2685
3868
|
|
|
2686
|
-
if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
|
|
3869
|
+
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
|
2687
3870
|
throw new TypeError('Encoder has to be a function.');
|
|
2688
3871
|
}
|
|
2689
3872
|
|
|
@@ -2716,6 +3899,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
2716
3899
|
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
2717
3900
|
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
2718
3901
|
filter: filter,
|
|
3902
|
+
format: format,
|
|
2719
3903
|
formatter: formatter,
|
|
2720
3904
|
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
|
2721
3905
|
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
|
@@ -2764,6 +3948,7 @@ module.exports = function (object, opts) {
|
|
|
2764
3948
|
objKeys.sort(options.sort);
|
|
2765
3949
|
}
|
|
2766
3950
|
|
|
3951
|
+
var sideChannel = getSideChannel();
|
|
2767
3952
|
for (var i = 0; i < objKeys.length; ++i) {
|
|
2768
3953
|
var key = objKeys[i];
|
|
2769
3954
|
|
|
@@ -2781,9 +3966,11 @@ module.exports = function (object, opts) {
|
|
|
2781
3966
|
options.sort,
|
|
2782
3967
|
options.allowDots,
|
|
2783
3968
|
options.serializeDate,
|
|
3969
|
+
options.format,
|
|
2784
3970
|
options.formatter,
|
|
2785
3971
|
options.encodeValuesOnly,
|
|
2786
|
-
options.charset
|
|
3972
|
+
options.charset,
|
|
3973
|
+
sideChannel
|
|
2787
3974
|
));
|
|
2788
3975
|
}
|
|
2789
3976
|
|
|
@@ -2807,14 +3994,16 @@ module.exports = function (object, opts) {
|
|
|
2807
3994
|
/***/ }),
|
|
2808
3995
|
|
|
2809
3996
|
/***/ "../../node_modules/qs/lib/utils.js":
|
|
2810
|
-
|
|
3997
|
+
/*!******************************************!*\
|
|
2811
3998
|
!*** ../../node_modules/qs/lib/utils.js ***!
|
|
2812
3999
|
\******************************************/
|
|
2813
|
-
/***/ (function(module) {
|
|
4000
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2814
4001
|
|
|
2815
4002
|
"use strict";
|
|
2816
4003
|
|
|
2817
4004
|
|
|
4005
|
+
var formats = __webpack_require__(/*! ./formats */ "../../node_modules/qs/lib/formats.js");
|
|
4006
|
+
|
|
2818
4007
|
var has = Object.prototype.hasOwnProperty;
|
|
2819
4008
|
var isArray = Array.isArray;
|
|
2820
4009
|
|
|
@@ -2935,7 +4124,7 @@ var decode = function (str, decoder, charset) {
|
|
|
2935
4124
|
}
|
|
2936
4125
|
};
|
|
2937
4126
|
|
|
2938
|
-
var encode = function encode(str, defaultEncoder, charset) {
|
|
4127
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
2939
4128
|
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
2940
4129
|
// It has been adapted here for stricter adherence to RFC 3986
|
|
2941
4130
|
if (str.length === 0) {
|
|
@@ -2967,6 +4156,7 @@ var encode = function encode(str, defaultEncoder, charset) {
|
|
|
2967
4156
|
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
2968
4157
|
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
2969
4158
|
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
4159
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
2970
4160
|
) {
|
|
2971
4161
|
out += string.charAt(i);
|
|
2972
4162
|
continue;
|
|
@@ -2989,6 +4179,7 @@ var encode = function encode(str, defaultEncoder, charset) {
|
|
|
2989
4179
|
|
|
2990
4180
|
i += 1;
|
|
2991
4181
|
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
4182
|
+
/* eslint operator-linebreak: [2, "before"] */
|
|
2992
4183
|
out += hexTable[0xF0 | (c >> 18)]
|
|
2993
4184
|
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
2994
4185
|
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
@@ -3063,6 +4254,151 @@ module.exports = {
|
|
|
3063
4254
|
};
|
|
3064
4255
|
|
|
3065
4256
|
|
|
4257
|
+
/***/ }),
|
|
4258
|
+
|
|
4259
|
+
/***/ "../../node_modules/side-channel/index.js":
|
|
4260
|
+
/*!************************************************!*\
|
|
4261
|
+
!*** ../../node_modules/side-channel/index.js ***!
|
|
4262
|
+
\************************************************/
|
|
4263
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4264
|
+
|
|
4265
|
+
"use strict";
|
|
4266
|
+
|
|
4267
|
+
|
|
4268
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
|
4269
|
+
var callBound = __webpack_require__(/*! call-bind/callBound */ "../../node_modules/call-bind/callBound.js");
|
|
4270
|
+
var inspect = __webpack_require__(/*! object-inspect */ "../../node_modules/object-inspect/index.js");
|
|
4271
|
+
|
|
4272
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
4273
|
+
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
4274
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
4275
|
+
|
|
4276
|
+
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
4277
|
+
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
4278
|
+
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
4279
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
4280
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
4281
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
4282
|
+
|
|
4283
|
+
/*
|
|
4284
|
+
* This function traverses the list returning the node corresponding to the
|
|
4285
|
+
* given key.
|
|
4286
|
+
*
|
|
4287
|
+
* That node is also moved to the head of the list, so that if it's accessed
|
|
4288
|
+
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
4289
|
+
* used nodes can be accessed relatively quickly.
|
|
4290
|
+
*/
|
|
4291
|
+
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
4292
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
4293
|
+
if (curr.key === key) {
|
|
4294
|
+
prev.next = curr.next;
|
|
4295
|
+
curr.next = list.next;
|
|
4296
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
4297
|
+
return curr;
|
|
4298
|
+
}
|
|
4299
|
+
}
|
|
4300
|
+
};
|
|
4301
|
+
|
|
4302
|
+
var listGet = function (objects, key) {
|
|
4303
|
+
var node = listGetNode(objects, key);
|
|
4304
|
+
return node && node.value;
|
|
4305
|
+
};
|
|
4306
|
+
var listSet = function (objects, key, value) {
|
|
4307
|
+
var node = listGetNode(objects, key);
|
|
4308
|
+
if (node) {
|
|
4309
|
+
node.value = value;
|
|
4310
|
+
} else {
|
|
4311
|
+
// Prepend the new node to the beginning of the list
|
|
4312
|
+
objects.next = { // eslint-disable-line no-param-reassign
|
|
4313
|
+
key: key,
|
|
4314
|
+
next: objects.next,
|
|
4315
|
+
value: value
|
|
4316
|
+
};
|
|
4317
|
+
}
|
|
4318
|
+
};
|
|
4319
|
+
var listHas = function (objects, key) {
|
|
4320
|
+
return !!listGetNode(objects, key);
|
|
4321
|
+
};
|
|
4322
|
+
|
|
4323
|
+
module.exports = function getSideChannel() {
|
|
4324
|
+
var $wm;
|
|
4325
|
+
var $m;
|
|
4326
|
+
var $o;
|
|
4327
|
+
var channel = {
|
|
4328
|
+
assert: function (key) {
|
|
4329
|
+
if (!channel.has(key)) {
|
|
4330
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
4331
|
+
}
|
|
4332
|
+
},
|
|
4333
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
4334
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
4335
|
+
if ($wm) {
|
|
4336
|
+
return $weakMapGet($wm, key);
|
|
4337
|
+
}
|
|
4338
|
+
} else if ($Map) {
|
|
4339
|
+
if ($m) {
|
|
4340
|
+
return $mapGet($m, key);
|
|
4341
|
+
}
|
|
4342
|
+
} else {
|
|
4343
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
4344
|
+
return listGet($o, key);
|
|
4345
|
+
}
|
|
4346
|
+
}
|
|
4347
|
+
},
|
|
4348
|
+
has: function (key) {
|
|
4349
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
4350
|
+
if ($wm) {
|
|
4351
|
+
return $weakMapHas($wm, key);
|
|
4352
|
+
}
|
|
4353
|
+
} else if ($Map) {
|
|
4354
|
+
if ($m) {
|
|
4355
|
+
return $mapHas($m, key);
|
|
4356
|
+
}
|
|
4357
|
+
} else {
|
|
4358
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
4359
|
+
return listHas($o, key);
|
|
4360
|
+
}
|
|
4361
|
+
}
|
|
4362
|
+
return false;
|
|
4363
|
+
},
|
|
4364
|
+
set: function (key, value) {
|
|
4365
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
4366
|
+
if (!$wm) {
|
|
4367
|
+
$wm = new $WeakMap();
|
|
4368
|
+
}
|
|
4369
|
+
$weakMapSet($wm, key, value);
|
|
4370
|
+
} else if ($Map) {
|
|
4371
|
+
if (!$m) {
|
|
4372
|
+
$m = new $Map();
|
|
4373
|
+
}
|
|
4374
|
+
$mapSet($m, key, value);
|
|
4375
|
+
} else {
|
|
4376
|
+
if (!$o) {
|
|
4377
|
+
/*
|
|
4378
|
+
* Initialize the linked list as an empty node, so that we don't have
|
|
4379
|
+
* to special-case handling of the first node: we can always refer to
|
|
4380
|
+
* it as (previous node).next, instead of something like (list).head
|
|
4381
|
+
*/
|
|
4382
|
+
$o = { key: {}, next: null };
|
|
4383
|
+
}
|
|
4384
|
+
listSet($o, key, value);
|
|
4385
|
+
}
|
|
4386
|
+
}
|
|
4387
|
+
};
|
|
4388
|
+
return channel;
|
|
4389
|
+
};
|
|
4390
|
+
|
|
4391
|
+
|
|
4392
|
+
/***/ }),
|
|
4393
|
+
|
|
4394
|
+
/***/ "?c95a":
|
|
4395
|
+
/*!********************************!*\
|
|
4396
|
+
!*** ./util.inspect (ignored) ***!
|
|
4397
|
+
\********************************/
|
|
4398
|
+
/***/ (function() {
|
|
4399
|
+
|
|
4400
|
+
/* (ignored) */
|
|
4401
|
+
|
|
3066
4402
|
/***/ })
|
|
3067
4403
|
|
|
3068
4404
|
/******/ });
|
|
@@ -3073,8 +4409,9 @@ module.exports = {
|
|
|
3073
4409
|
/******/ // The require function
|
|
3074
4410
|
/******/ function __webpack_require__(moduleId) {
|
|
3075
4411
|
/******/ // Check if module is in cache
|
|
3076
|
-
/******/
|
|
3077
|
-
/******/
|
|
4412
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
4413
|
+
/******/ if (cachedModule !== undefined) {
|
|
4414
|
+
/******/ return cachedModule.exports;
|
|
3078
4415
|
/******/ }
|
|
3079
4416
|
/******/ // Create a new module (and put it into the cache)
|
|
3080
4417
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
@@ -3091,10 +4428,13 @@ module.exports = {
|
|
|
3091
4428
|
/******/ }
|
|
3092
4429
|
/******/
|
|
3093
4430
|
/************************************************************************/
|
|
3094
|
-
/******/
|
|
4431
|
+
/******/
|
|
3095
4432
|
/******/ // startup
|
|
3096
4433
|
/******/ // Load entry module and return exports
|
|
3097
|
-
/******/
|
|
4434
|
+
/******/ // This entry module used 'module' so it can't be inlined
|
|
4435
|
+
/******/ var __webpack_exports__ = __webpack_require__("./src/rest.js");
|
|
4436
|
+
/******/
|
|
4437
|
+
/******/ return __webpack_exports__;
|
|
3098
4438
|
/******/ })()
|
|
3099
4439
|
;
|
|
3100
4440
|
});
|