contentful 9.1.3 → 9.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contentful.browser.js +1570 -1845
- package/dist/contentful.browser.js.map +1 -1
- package/dist/contentful.browser.min.js +1 -1
- package/dist/contentful.node.js +1465 -1739
- package/dist/contentful.node.js.map +1 -1
- package/dist/contentful.node.min.js +1 -1
- package/dist/es-modules/contentful.js +1 -1
- package/package.json +4 -4
|
@@ -1358,7 +1358,7 @@ module.exports = defaults;
|
|
|
1358
1358
|
/***/ (function(module, exports) {
|
|
1359
1359
|
|
|
1360
1360
|
module.exports = {
|
|
1361
|
-
"version": "0.
|
|
1361
|
+
"version": "0.24.0"
|
|
1362
1362
|
};
|
|
1363
1363
|
|
|
1364
1364
|
/***/ }),
|
|
@@ -2315,7 +2315,9 @@ var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
|
2315
2315
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
2316
2316
|
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
2317
2317
|
|
|
2318
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
2318
2319
|
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
2320
|
+
var $max = GetIntrinsic('%Math.max%');
|
|
2319
2321
|
|
|
2320
2322
|
if ($defineProperty) {
|
|
2321
2323
|
try {
|
|
@@ -2326,8 +2328,20 @@ if ($defineProperty) {
|
|
|
2326
2328
|
}
|
|
2327
2329
|
}
|
|
2328
2330
|
|
|
2329
|
-
module.exports = function callBind() {
|
|
2330
|
-
|
|
2331
|
+
module.exports = function callBind(originalFunction) {
|
|
2332
|
+
var func = $reflectApply(bind, $call, arguments);
|
|
2333
|
+
if ($gOPD && $defineProperty) {
|
|
2334
|
+
var desc = $gOPD(func, 'length');
|
|
2335
|
+
if (desc.configurable) {
|
|
2336
|
+
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
2337
|
+
$defineProperty(
|
|
2338
|
+
func,
|
|
2339
|
+
'length',
|
|
2340
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
2341
|
+
);
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
return func;
|
|
2331
2345
|
};
|
|
2332
2346
|
|
|
2333
2347
|
var applyBind = function applyBind() {
|
|
@@ -3888,14 +3902,6 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
3888
3902
|
"use strict";
|
|
3889
3903
|
|
|
3890
3904
|
|
|
3891
|
-
/* globals
|
|
3892
|
-
AggregateError,
|
|
3893
|
-
Atomics,
|
|
3894
|
-
FinalizationRegistry,
|
|
3895
|
-
SharedArrayBuffer,
|
|
3896
|
-
WeakRef,
|
|
3897
|
-
*/
|
|
3898
|
-
|
|
3899
3905
|
var undefined;
|
|
3900
3906
|
|
|
3901
3907
|
var $SyntaxError = SyntaxError;
|
|
@@ -3905,8 +3911,7 @@ var $TypeError = TypeError;
|
|
|
3905
3911
|
// eslint-disable-next-line consistent-return
|
|
3906
3912
|
var getEvalledConstructor = function (expressionSyntax) {
|
|
3907
3913
|
try {
|
|
3908
|
-
|
|
3909
|
-
return Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
3914
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
3910
3915
|
} catch (e) {}
|
|
3911
3916
|
};
|
|
3912
3917
|
|
|
@@ -3943,9 +3948,7 @@ var hasSymbols = __webpack_require__(/*! has-symbols */ "../node_modules/has-sym
|
|
|
3943
3948
|
|
|
3944
3949
|
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
3945
3950
|
|
|
3946
|
-
var
|
|
3947
|
-
var asyncGenFunctionPrototype = asyncGenFunction ? asyncGenFunction.prototype : undefined;
|
|
3948
|
-
var asyncGenPrototype = asyncGenFunctionPrototype ? asyncGenFunctionPrototype.prototype : undefined;
|
|
3951
|
+
var needsEval = {};
|
|
3949
3952
|
|
|
3950
3953
|
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
3951
3954
|
|
|
@@ -3955,10 +3958,10 @@ var INTRINSICS = {
|
|
|
3955
3958
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
3956
3959
|
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
3957
3960
|
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
3958
|
-
'%AsyncFunction%':
|
|
3959
|
-
'%AsyncGenerator%':
|
|
3960
|
-
'%AsyncGeneratorFunction%':
|
|
3961
|
-
'%AsyncIteratorPrototype%':
|
|
3961
|
+
'%AsyncFunction%': needsEval,
|
|
3962
|
+
'%AsyncGenerator%': needsEval,
|
|
3963
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
3964
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
3962
3965
|
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
3963
3966
|
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
3964
3967
|
'%Boolean%': Boolean,
|
|
@@ -3975,7 +3978,7 @@ var INTRINSICS = {
|
|
|
3975
3978
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
3976
3979
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
3977
3980
|
'%Function%': $Function,
|
|
3978
|
-
'%GeneratorFunction%':
|
|
3981
|
+
'%GeneratorFunction%': needsEval,
|
|
3979
3982
|
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
3980
3983
|
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
3981
3984
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
@@ -4016,6 +4019,31 @@ var INTRINSICS = {
|
|
|
4016
4019
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
4017
4020
|
};
|
|
4018
4021
|
|
|
4022
|
+
var doEval = function doEval(name) {
|
|
4023
|
+
var value;
|
|
4024
|
+
if (name === '%AsyncFunction%') {
|
|
4025
|
+
value = getEvalledConstructor('async function () {}');
|
|
4026
|
+
} else if (name === '%GeneratorFunction%') {
|
|
4027
|
+
value = getEvalledConstructor('function* () {}');
|
|
4028
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
4029
|
+
value = getEvalledConstructor('async function* () {}');
|
|
4030
|
+
} else if (name === '%AsyncGenerator%') {
|
|
4031
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
4032
|
+
if (fn) {
|
|
4033
|
+
value = fn.prototype;
|
|
4034
|
+
}
|
|
4035
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
4036
|
+
var gen = doEval('%AsyncGenerator%');
|
|
4037
|
+
if (gen) {
|
|
4038
|
+
value = getProto(gen.prototype);
|
|
4039
|
+
}
|
|
4040
|
+
}
|
|
4041
|
+
|
|
4042
|
+
INTRINSICS[name] = value;
|
|
4043
|
+
|
|
4044
|
+
return value;
|
|
4045
|
+
};
|
|
4046
|
+
|
|
4019
4047
|
var LEGACY_ALIASES = {
|
|
4020
4048
|
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
4021
4049
|
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
@@ -4075,11 +4103,19 @@ var hasOwn = __webpack_require__(/*! has */ "../node_modules/has/src/index.js");
|
|
|
4075
4103
|
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
4076
4104
|
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
4077
4105
|
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
4106
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
4078
4107
|
|
|
4079
4108
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
4080
4109
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
4081
4110
|
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
4082
4111
|
var stringToPath = function stringToPath(string) {
|
|
4112
|
+
var first = $strSlice(string, 0, 1);
|
|
4113
|
+
var last = $strSlice(string, -1);
|
|
4114
|
+
if (first === '%' && last !== '%') {
|
|
4115
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
4116
|
+
} else if (last === '%' && first !== '%') {
|
|
4117
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
4118
|
+
}
|
|
4083
4119
|
var result = [];
|
|
4084
4120
|
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
4085
4121
|
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
@@ -4098,6 +4134,9 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
|
4098
4134
|
|
|
4099
4135
|
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
4100
4136
|
var value = INTRINSICS[intrinsicName];
|
|
4137
|
+
if (value === needsEval) {
|
|
4138
|
+
value = doEval(intrinsicName);
|
|
4139
|
+
}
|
|
4101
4140
|
if (typeof value === 'undefined' && !allowMissing) {
|
|
4102
4141
|
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
4103
4142
|
}
|
|
@@ -4136,6 +4175,17 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
4136
4175
|
|
|
4137
4176
|
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
4138
4177
|
var part = parts[i];
|
|
4178
|
+
var first = $strSlice(part, 0, 1);
|
|
4179
|
+
var last = $strSlice(part, -1);
|
|
4180
|
+
if (
|
|
4181
|
+
(
|
|
4182
|
+
(first === '"' || first === "'" || first === '`')
|
|
4183
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
4184
|
+
)
|
|
4185
|
+
&& first !== last
|
|
4186
|
+
) {
|
|
4187
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
4188
|
+
}
|
|
4139
4189
|
if (part === 'constructor' || !isOwn) {
|
|
4140
4190
|
skipFurtherCaching = true;
|
|
4141
4191
|
}
|
|
@@ -4146,13 +4196,16 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
4146
4196
|
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
4147
4197
|
value = INTRINSICS[intrinsicRealName];
|
|
4148
4198
|
} else if (value != null) {
|
|
4199
|
+
if (!(part in value)) {
|
|
4200
|
+
if (!allowMissing) {
|
|
4201
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
4202
|
+
}
|
|
4203
|
+
return void undefined;
|
|
4204
|
+
}
|
|
4149
4205
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
4150
4206
|
var desc = $gOPD(value, part);
|
|
4151
4207
|
isOwn = !!desc;
|
|
4152
4208
|
|
|
4153
|
-
if (!allowMissing && !(part in value)) {
|
|
4154
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
4155
|
-
}
|
|
4156
4209
|
// By convention, when a data property is converted to an accessor
|
|
4157
4210
|
// property to emulate a data property that does not suffer from
|
|
4158
4211
|
// the override mistake, that accessor's getter is marked with
|
|
@@ -4189,9 +4242,9 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
4189
4242
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4190
4243
|
|
|
4191
4244
|
"use strict";
|
|
4192
|
-
/* WEBPACK VAR INJECTION */(function(global) {
|
|
4193
4245
|
|
|
4194
|
-
|
|
4246
|
+
|
|
4247
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
4195
4248
|
var hasSymbolSham = __webpack_require__(/*! ./shams */ "../node_modules/has-symbols/shams.js");
|
|
4196
4249
|
|
|
4197
4250
|
module.exports = function hasNativeSymbols() {
|
|
@@ -4203,7 +4256,6 @@ module.exports = function hasNativeSymbols() {
|
|
|
4203
4256
|
return hasSymbolSham();
|
|
4204
4257
|
};
|
|
4205
4258
|
|
|
4206
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../node_modules/webpack/buildin/global.js")))
|
|
4207
4259
|
|
|
4208
4260
|
/***/ }),
|
|
4209
4261
|
|
|
@@ -4240,7 +4292,7 @@ module.exports = function hasSymbols() {
|
|
|
4240
4292
|
|
|
4241
4293
|
var symVal = 42;
|
|
4242
4294
|
obj[sym] = symVal;
|
|
4243
|
-
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
|
|
4295
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
4244
4296
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
4245
4297
|
|
|
4246
4298
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -4572,2151 +4624,1824 @@ module.exports = isString;
|
|
|
4572
4624
|
|
|
4573
4625
|
/***/ }),
|
|
4574
4626
|
|
|
4575
|
-
/***/ "../node_modules/
|
|
4576
|
-
|
|
4577
|
-
!*** ../node_modules/
|
|
4578
|
-
|
|
4627
|
+
/***/ "../node_modules/object-inspect/index.js":
|
|
4628
|
+
/*!***********************************************!*\
|
|
4629
|
+
!*** ../node_modules/object-inspect/index.js ***!
|
|
4630
|
+
\***********************************************/
|
|
4579
4631
|
/*! no static exports found */
|
|
4580
4632
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4581
4633
|
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
function windowedDelay() {
|
|
4607
|
-
const now = Date.now();
|
|
4608
|
-
|
|
4609
|
-
if ((now - currentTick) > interval) {
|
|
4610
|
-
activeCount = 1;
|
|
4611
|
-
currentTick = now;
|
|
4612
|
-
return 0;
|
|
4613
|
-
}
|
|
4614
|
-
|
|
4615
|
-
if (activeCount < limit) {
|
|
4616
|
-
activeCount++;
|
|
4617
|
-
} else {
|
|
4618
|
-
currentTick += interval;
|
|
4619
|
-
activeCount = 1;
|
|
4620
|
-
}
|
|
4621
|
-
|
|
4622
|
-
return currentTick - now;
|
|
4623
|
-
}
|
|
4624
|
-
|
|
4625
|
-
const strictTicks = [];
|
|
4634
|
+
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
4635
|
+
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
4636
|
+
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
4637
|
+
var mapForEach = hasMap && Map.prototype.forEach;
|
|
4638
|
+
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
4639
|
+
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
4640
|
+
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
4641
|
+
var setForEach = hasSet && Set.prototype.forEach;
|
|
4642
|
+
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
4643
|
+
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
4644
|
+
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
4645
|
+
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
4646
|
+
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
4647
|
+
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
4648
|
+
var booleanValueOf = Boolean.prototype.valueOf;
|
|
4649
|
+
var objectToString = Object.prototype.toString;
|
|
4650
|
+
var functionToString = Function.prototype.toString;
|
|
4651
|
+
var match = String.prototype.match;
|
|
4652
|
+
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
4653
|
+
var gOPS = Object.getOwnPropertySymbols;
|
|
4654
|
+
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
4655
|
+
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
4656
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
4626
4657
|
|
|
4627
|
-
|
|
4628
|
-
|
|
4658
|
+
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
4659
|
+
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
4660
|
+
? function (O) {
|
|
4661
|
+
return O.__proto__; // eslint-disable-line no-proto
|
|
4662
|
+
}
|
|
4663
|
+
: null
|
|
4664
|
+
);
|
|
4629
4665
|
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
}
|
|
4666
|
+
var inspectCustom = __webpack_require__(/*! ./util.inspect */ 1).custom;
|
|
4667
|
+
var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
|
|
4668
|
+
var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag !== 'undefined' ? Symbol.toStringTag : null;
|
|
4634
4669
|
|
|
4635
|
-
|
|
4670
|
+
module.exports = function inspect_(obj, options, depth, seen) {
|
|
4671
|
+
var opts = options || {};
|
|
4636
4672
|
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4673
|
+
if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
|
|
4674
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
4675
|
+
}
|
|
4676
|
+
if (
|
|
4677
|
+
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
4678
|
+
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
4679
|
+
: opts.maxStringLength !== null
|
|
4680
|
+
)
|
|
4681
|
+
) {
|
|
4682
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
4683
|
+
}
|
|
4684
|
+
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
4685
|
+
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
4686
|
+
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
4687
|
+
}
|
|
4641
4688
|
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4689
|
+
if (
|
|
4690
|
+
has(opts, 'indent')
|
|
4691
|
+
&& opts.indent !== null
|
|
4692
|
+
&& opts.indent !== '\t'
|
|
4693
|
+
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
4694
|
+
) {
|
|
4695
|
+
throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
|
|
4696
|
+
}
|
|
4645
4697
|
|
|
4646
|
-
|
|
4698
|
+
if (typeof obj === 'undefined') {
|
|
4699
|
+
return 'undefined';
|
|
4700
|
+
}
|
|
4701
|
+
if (obj === null) {
|
|
4702
|
+
return 'null';
|
|
4703
|
+
}
|
|
4704
|
+
if (typeof obj === 'boolean') {
|
|
4705
|
+
return obj ? 'true' : 'false';
|
|
4706
|
+
}
|
|
4647
4707
|
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4708
|
+
if (typeof obj === 'string') {
|
|
4709
|
+
return inspectString(obj, opts);
|
|
4710
|
+
}
|
|
4711
|
+
if (typeof obj === 'number') {
|
|
4712
|
+
if (obj === 0) {
|
|
4713
|
+
return Infinity / obj > 0 ? '0' : '-0';
|
|
4714
|
+
}
|
|
4715
|
+
return String(obj);
|
|
4716
|
+
}
|
|
4717
|
+
if (typeof obj === 'bigint') {
|
|
4718
|
+
return String(obj) + 'n';
|
|
4719
|
+
}
|
|
4653
4720
|
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
};
|
|
4721
|
+
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
4722
|
+
if (typeof depth === 'undefined') { depth = 0; }
|
|
4723
|
+
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
4724
|
+
return isArray(obj) ? '[Array]' : '[Object]';
|
|
4725
|
+
}
|
|
4660
4726
|
|
|
4661
|
-
|
|
4727
|
+
var indent = getIndent(opts, depth);
|
|
4662
4728
|
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4729
|
+
if (typeof seen === 'undefined') {
|
|
4730
|
+
seen = [];
|
|
4731
|
+
} else if (indexOf(seen, obj) >= 0) {
|
|
4732
|
+
return '[Circular]';
|
|
4733
|
+
}
|
|
4666
4734
|
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4735
|
+
function inspect(value, from, noIndent) {
|
|
4736
|
+
if (from) {
|
|
4737
|
+
seen = seen.slice();
|
|
4738
|
+
seen.push(from);
|
|
4739
|
+
}
|
|
4740
|
+
if (noIndent) {
|
|
4741
|
+
var newOpts = {
|
|
4742
|
+
depth: opts.depth
|
|
4743
|
+
};
|
|
4744
|
+
if (has(opts, 'quoteStyle')) {
|
|
4745
|
+
newOpts.quoteStyle = opts.quoteStyle;
|
|
4746
|
+
}
|
|
4747
|
+
return inspect_(value, newOpts, depth + 1, seen);
|
|
4748
|
+
}
|
|
4749
|
+
return inspect_(value, opts, depth + 1, seen);
|
|
4750
|
+
}
|
|
4672
4751
|
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
throttled.isEnabled = true;
|
|
4678
|
-
|
|
4679
|
-
return throttled;
|
|
4680
|
-
};
|
|
4681
|
-
};
|
|
4682
|
-
|
|
4683
|
-
module.exports = pThrottle;
|
|
4684
|
-
module.exports.AbortError = AbortError;
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
/***/ }),
|
|
4688
|
-
|
|
4689
|
-
/***/ "../node_modules/process/browser.js":
|
|
4690
|
-
/*!******************************************!*\
|
|
4691
|
-
!*** ../node_modules/process/browser.js ***!
|
|
4692
|
-
\******************************************/
|
|
4693
|
-
/*! no static exports found */
|
|
4694
|
-
/***/ (function(module, exports) {
|
|
4695
|
-
|
|
4696
|
-
// shim for using process in browser
|
|
4697
|
-
var process = module.exports = {};
|
|
4698
|
-
|
|
4699
|
-
// cached from whatever global is present so that test runners that stub it
|
|
4700
|
-
// don't break things. But we need to wrap it in a try catch in case it is
|
|
4701
|
-
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
4702
|
-
// function because try/catches deoptimize in certain engines.
|
|
4703
|
-
|
|
4704
|
-
var cachedSetTimeout;
|
|
4705
|
-
var cachedClearTimeout;
|
|
4706
|
-
|
|
4707
|
-
function defaultSetTimout() {
|
|
4708
|
-
throw new Error('setTimeout has not been defined');
|
|
4709
|
-
}
|
|
4710
|
-
function defaultClearTimeout () {
|
|
4711
|
-
throw new Error('clearTimeout has not been defined');
|
|
4712
|
-
}
|
|
4713
|
-
(function () {
|
|
4714
|
-
try {
|
|
4715
|
-
if (typeof setTimeout === 'function') {
|
|
4716
|
-
cachedSetTimeout = setTimeout;
|
|
4717
|
-
} else {
|
|
4718
|
-
cachedSetTimeout = defaultSetTimout;
|
|
4719
|
-
}
|
|
4720
|
-
} catch (e) {
|
|
4721
|
-
cachedSetTimeout = defaultSetTimout;
|
|
4752
|
+
if (typeof obj === 'function') {
|
|
4753
|
+
var name = nameOf(obj);
|
|
4754
|
+
var keys = arrObjKeys(obj, inspect);
|
|
4755
|
+
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
|
|
4722
4756
|
}
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4757
|
+
if (isSymbol(obj)) {
|
|
4758
|
+
var symString = hasShammedSymbols ? String(obj).replace(/^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
4759
|
+
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
4760
|
+
}
|
|
4761
|
+
if (isElement(obj)) {
|
|
4762
|
+
var s = '<' + String(obj.nodeName).toLowerCase();
|
|
4763
|
+
var attrs = obj.attributes || [];
|
|
4764
|
+
for (var i = 0; i < attrs.length; i++) {
|
|
4765
|
+
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
4728
4766
|
}
|
|
4729
|
-
|
|
4730
|
-
|
|
4767
|
+
s += '>';
|
|
4768
|
+
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
4769
|
+
s += '</' + String(obj.nodeName).toLowerCase() + '>';
|
|
4770
|
+
return s;
|
|
4731
4771
|
}
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4772
|
+
if (isArray(obj)) {
|
|
4773
|
+
if (obj.length === 0) { return '[]'; }
|
|
4774
|
+
var xs = arrObjKeys(obj, inspect);
|
|
4775
|
+
if (indent && !singleLineValues(xs)) {
|
|
4776
|
+
return '[' + indentedJoin(xs, indent) + ']';
|
|
4777
|
+
}
|
|
4778
|
+
return '[ ' + xs.join(', ') + ' ]';
|
|
4737
4779
|
}
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
return
|
|
4780
|
+
if (isError(obj)) {
|
|
4781
|
+
var parts = arrObjKeys(obj, inspect);
|
|
4782
|
+
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
4783
|
+
return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
|
|
4742
4784
|
}
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
4749
|
-
return cachedSetTimeout.call(null, fun, 0);
|
|
4750
|
-
} catch(e){
|
|
4751
|
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
4752
|
-
return cachedSetTimeout.call(this, fun, 0);
|
|
4785
|
+
if (typeof obj === 'object' && customInspect) {
|
|
4786
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
|
|
4787
|
+
return obj[inspectSymbol]();
|
|
4788
|
+
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
4789
|
+
return obj.inspect();
|
|
4753
4790
|
}
|
|
4754
4791
|
}
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
return clearTimeout(marker);
|
|
4792
|
+
if (isMap(obj)) {
|
|
4793
|
+
var mapParts = [];
|
|
4794
|
+
mapForEach.call(obj, function (value, key) {
|
|
4795
|
+
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
4796
|
+
});
|
|
4797
|
+
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
4762
4798
|
}
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4799
|
+
if (isSet(obj)) {
|
|
4800
|
+
var setParts = [];
|
|
4801
|
+
setForEach.call(obj, function (value) {
|
|
4802
|
+
setParts.push(inspect(value, obj));
|
|
4803
|
+
});
|
|
4804
|
+
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
4767
4805
|
}
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4806
|
+
if (isWeakMap(obj)) {
|
|
4807
|
+
return weakCollectionOf('WeakMap');
|
|
4808
|
+
}
|
|
4809
|
+
if (isWeakSet(obj)) {
|
|
4810
|
+
return weakCollectionOf('WeakSet');
|
|
4811
|
+
}
|
|
4812
|
+
if (isWeakRef(obj)) {
|
|
4813
|
+
return weakCollectionOf('WeakRef');
|
|
4814
|
+
}
|
|
4815
|
+
if (isNumber(obj)) {
|
|
4816
|
+
return markBoxed(inspect(Number(obj)));
|
|
4817
|
+
}
|
|
4818
|
+
if (isBigInt(obj)) {
|
|
4819
|
+
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
4820
|
+
}
|
|
4821
|
+
if (isBoolean(obj)) {
|
|
4822
|
+
return markBoxed(booleanValueOf.call(obj));
|
|
4823
|
+
}
|
|
4824
|
+
if (isString(obj)) {
|
|
4825
|
+
return markBoxed(inspect(String(obj)));
|
|
4826
|
+
}
|
|
4827
|
+
if (!isDate(obj) && !isRegExp(obj)) {
|
|
4828
|
+
var ys = arrObjKeys(obj, inspect);
|
|
4829
|
+
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
4830
|
+
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
4831
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
|
|
4832
|
+
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
4833
|
+
var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
|
|
4834
|
+
if (ys.length === 0) { return tag + '{}'; }
|
|
4835
|
+
if (indent) {
|
|
4836
|
+
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
4779
4837
|
}
|
|
4838
|
+
return tag + '{ ' + ys.join(', ') + ' }';
|
|
4780
4839
|
}
|
|
4840
|
+
return String(obj);
|
|
4841
|
+
};
|
|
4781
4842
|
|
|
4843
|
+
function wrapQuotes(s, defaultStyle, opts) {
|
|
4844
|
+
var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
|
|
4845
|
+
return quoteChar + s + quoteChar;
|
|
4846
|
+
}
|
|
4782
4847
|
|
|
4783
|
-
|
|
4848
|
+
function quote(s) {
|
|
4849
|
+
return String(s).replace(/"/g, '"');
|
|
4784
4850
|
}
|
|
4785
|
-
var queue = [];
|
|
4786
|
-
var draining = false;
|
|
4787
|
-
var currentQueue;
|
|
4788
|
-
var queueIndex = -1;
|
|
4789
4851
|
|
|
4790
|
-
function
|
|
4791
|
-
|
|
4792
|
-
|
|
4852
|
+
function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4853
|
+
function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4854
|
+
function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4855
|
+
function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4856
|
+
function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4857
|
+
function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4858
|
+
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4859
|
+
|
|
4860
|
+
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
4861
|
+
function isSymbol(obj) {
|
|
4862
|
+
if (hasShammedSymbols) {
|
|
4863
|
+
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
|
4793
4864
|
}
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
queue = currentQueue.concat(queue);
|
|
4797
|
-
} else {
|
|
4798
|
-
queueIndex = -1;
|
|
4865
|
+
if (typeof obj === 'symbol') {
|
|
4866
|
+
return true;
|
|
4799
4867
|
}
|
|
4800
|
-
if (
|
|
4801
|
-
|
|
4868
|
+
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
4869
|
+
return false;
|
|
4802
4870
|
}
|
|
4871
|
+
try {
|
|
4872
|
+
symToString.call(obj);
|
|
4873
|
+
return true;
|
|
4874
|
+
} catch (e) {}
|
|
4875
|
+
return false;
|
|
4803
4876
|
}
|
|
4804
4877
|
|
|
4805
|
-
function
|
|
4806
|
-
if (
|
|
4807
|
-
return;
|
|
4808
|
-
}
|
|
4809
|
-
var timeout = runTimeout(cleanUpNextTick);
|
|
4810
|
-
draining = true;
|
|
4811
|
-
|
|
4812
|
-
var len = queue.length;
|
|
4813
|
-
while(len) {
|
|
4814
|
-
currentQueue = queue;
|
|
4815
|
-
queue = [];
|
|
4816
|
-
while (++queueIndex < len) {
|
|
4817
|
-
if (currentQueue) {
|
|
4818
|
-
currentQueue[queueIndex].run();
|
|
4819
|
-
}
|
|
4820
|
-
}
|
|
4821
|
-
queueIndex = -1;
|
|
4822
|
-
len = queue.length;
|
|
4878
|
+
function isBigInt(obj) {
|
|
4879
|
+
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
4880
|
+
return false;
|
|
4823
4881
|
}
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4882
|
+
try {
|
|
4883
|
+
bigIntValueOf.call(obj);
|
|
4884
|
+
return true;
|
|
4885
|
+
} catch (e) {}
|
|
4886
|
+
return false;
|
|
4827
4887
|
}
|
|
4828
4888
|
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
args[i - 1] = arguments[i];
|
|
4834
|
-
}
|
|
4835
|
-
}
|
|
4836
|
-
queue.push(new Item(fun, args));
|
|
4837
|
-
if (queue.length === 1 && !draining) {
|
|
4838
|
-
runTimeout(drainQueue);
|
|
4839
|
-
}
|
|
4840
|
-
};
|
|
4889
|
+
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
4890
|
+
function has(obj, key) {
|
|
4891
|
+
return hasOwn.call(obj, key);
|
|
4892
|
+
}
|
|
4841
4893
|
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
this.fun = fun;
|
|
4845
|
-
this.array = array;
|
|
4894
|
+
function toStr(obj) {
|
|
4895
|
+
return objectToString.call(obj);
|
|
4846
4896
|
}
|
|
4847
|
-
Item.prototype.run = function () {
|
|
4848
|
-
this.fun.apply(null, this.array);
|
|
4849
|
-
};
|
|
4850
|
-
process.title = 'browser';
|
|
4851
|
-
process.browser = true;
|
|
4852
|
-
process.env = {};
|
|
4853
|
-
process.argv = [];
|
|
4854
|
-
process.version = ''; // empty string to avoid regexp issues
|
|
4855
|
-
process.versions = {};
|
|
4856
4897
|
|
|
4857
|
-
function
|
|
4898
|
+
function nameOf(f) {
|
|
4899
|
+
if (f.name) { return f.name; }
|
|
4900
|
+
var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
4901
|
+
if (m) { return m[1]; }
|
|
4902
|
+
return null;
|
|
4903
|
+
}
|
|
4858
4904
|
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
process.prependListener = noop;
|
|
4867
|
-
process.prependOnceListener = noop;
|
|
4905
|
+
function indexOf(xs, x) {
|
|
4906
|
+
if (xs.indexOf) { return xs.indexOf(x); }
|
|
4907
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
|
4908
|
+
if (xs[i] === x) { return i; }
|
|
4909
|
+
}
|
|
4910
|
+
return -1;
|
|
4911
|
+
}
|
|
4868
4912
|
|
|
4869
|
-
|
|
4913
|
+
function isMap(x) {
|
|
4914
|
+
if (!mapSize || !x || typeof x !== 'object') {
|
|
4915
|
+
return false;
|
|
4916
|
+
}
|
|
4917
|
+
try {
|
|
4918
|
+
mapSize.call(x);
|
|
4919
|
+
try {
|
|
4920
|
+
setSize.call(x);
|
|
4921
|
+
} catch (s) {
|
|
4922
|
+
return true;
|
|
4923
|
+
}
|
|
4924
|
+
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
4925
|
+
} catch (e) {}
|
|
4926
|
+
return false;
|
|
4927
|
+
}
|
|
4870
4928
|
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4929
|
+
function isWeakMap(x) {
|
|
4930
|
+
if (!weakMapHas || !x || typeof x !== 'object') {
|
|
4931
|
+
return false;
|
|
4932
|
+
}
|
|
4933
|
+
try {
|
|
4934
|
+
weakMapHas.call(x, weakMapHas);
|
|
4935
|
+
try {
|
|
4936
|
+
weakSetHas.call(x, weakSetHas);
|
|
4937
|
+
} catch (s) {
|
|
4938
|
+
return true;
|
|
4939
|
+
}
|
|
4940
|
+
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
4941
|
+
} catch (e) {}
|
|
4942
|
+
return false;
|
|
4943
|
+
}
|
|
4874
4944
|
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
}
|
|
4879
|
-
|
|
4945
|
+
function isWeakRef(x) {
|
|
4946
|
+
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
4947
|
+
return false;
|
|
4948
|
+
}
|
|
4949
|
+
try {
|
|
4950
|
+
weakRefDeref.call(x);
|
|
4951
|
+
return true;
|
|
4952
|
+
} catch (e) {}
|
|
4953
|
+
return false;
|
|
4954
|
+
}
|
|
4880
4955
|
|
|
4956
|
+
function isSet(x) {
|
|
4957
|
+
if (!setSize || !x || typeof x !== 'object') {
|
|
4958
|
+
return false;
|
|
4959
|
+
}
|
|
4960
|
+
try {
|
|
4961
|
+
setSize.call(x);
|
|
4962
|
+
try {
|
|
4963
|
+
mapSize.call(x);
|
|
4964
|
+
} catch (m) {
|
|
4965
|
+
return true;
|
|
4966
|
+
}
|
|
4967
|
+
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
|
4968
|
+
} catch (e) {}
|
|
4969
|
+
return false;
|
|
4970
|
+
}
|
|
4881
4971
|
|
|
4882
|
-
|
|
4972
|
+
function isWeakSet(x) {
|
|
4973
|
+
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
4974
|
+
return false;
|
|
4975
|
+
}
|
|
4976
|
+
try {
|
|
4977
|
+
weakSetHas.call(x, weakSetHas);
|
|
4978
|
+
try {
|
|
4979
|
+
weakMapHas.call(x, weakMapHas);
|
|
4980
|
+
} catch (s) {
|
|
4981
|
+
return true;
|
|
4982
|
+
}
|
|
4983
|
+
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
4984
|
+
} catch (e) {}
|
|
4985
|
+
return false;
|
|
4986
|
+
}
|
|
4883
4987
|
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4988
|
+
function isElement(x) {
|
|
4989
|
+
if (!x || typeof x !== 'object') { return false; }
|
|
4990
|
+
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
4991
|
+
return true;
|
|
4992
|
+
}
|
|
4993
|
+
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
4994
|
+
}
|
|
4890
4995
|
|
|
4891
|
-
|
|
4996
|
+
function inspectString(str, opts) {
|
|
4997
|
+
if (str.length > opts.maxStringLength) {
|
|
4998
|
+
var remaining = str.length - opts.maxStringLength;
|
|
4999
|
+
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
5000
|
+
return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer;
|
|
5001
|
+
}
|
|
5002
|
+
// eslint-disable-next-line no-control-regex
|
|
5003
|
+
var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte);
|
|
5004
|
+
return wrapQuotes(s, 'single', opts);
|
|
5005
|
+
}
|
|
4892
5006
|
|
|
5007
|
+
function lowbyte(c) {
|
|
5008
|
+
var n = c.charCodeAt(0);
|
|
5009
|
+
var x = {
|
|
5010
|
+
8: 'b',
|
|
5011
|
+
9: 't',
|
|
5012
|
+
10: 'n',
|
|
5013
|
+
12: 'f',
|
|
5014
|
+
13: 'r'
|
|
5015
|
+
}[n];
|
|
5016
|
+
if (x) { return '\\' + x; }
|
|
5017
|
+
return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
|
|
5018
|
+
}
|
|
4893
5019
|
|
|
4894
|
-
|
|
4895
|
-
|
|
5020
|
+
function markBoxed(str) {
|
|
5021
|
+
return 'Object(' + str + ')';
|
|
5022
|
+
}
|
|
4896
5023
|
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
};
|
|
5024
|
+
function weakCollectionOf(type) {
|
|
5025
|
+
return type + ' { ? }';
|
|
5026
|
+
}
|
|
4901
5027
|
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
5028
|
+
function collectionOf(type, size, entries, indent) {
|
|
5029
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');
|
|
5030
|
+
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
5031
|
+
}
|
|
5032
|
+
|
|
5033
|
+
function singleLineValues(xs) {
|
|
5034
|
+
for (var i = 0; i < xs.length; i++) {
|
|
5035
|
+
if (indexOf(xs[i], '\n') >= 0) {
|
|
5036
|
+
return false;
|
|
4910
5037
|
}
|
|
4911
|
-
}
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
5038
|
+
}
|
|
5039
|
+
return true;
|
|
5040
|
+
}
|
|
5041
|
+
|
|
5042
|
+
function getIndent(opts, depth) {
|
|
5043
|
+
var baseIndent;
|
|
5044
|
+
if (opts.indent === '\t') {
|
|
5045
|
+
baseIndent = '\t';
|
|
5046
|
+
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
5047
|
+
baseIndent = Array(opts.indent + 1).join(' ');
|
|
5048
|
+
} else {
|
|
5049
|
+
return null;
|
|
5050
|
+
}
|
|
5051
|
+
return {
|
|
5052
|
+
base: baseIndent,
|
|
5053
|
+
prev: Array(depth + 1).join(baseIndent)
|
|
5054
|
+
};
|
|
5055
|
+
}
|
|
5056
|
+
|
|
5057
|
+
function indentedJoin(xs, indent) {
|
|
5058
|
+
if (xs.length === 0) { return ''; }
|
|
5059
|
+
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
5060
|
+
return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
|
|
5061
|
+
}
|
|
5062
|
+
|
|
5063
|
+
function arrObjKeys(obj, inspect) {
|
|
5064
|
+
var isArr = isArray(obj);
|
|
5065
|
+
var xs = [];
|
|
5066
|
+
if (isArr) {
|
|
5067
|
+
xs.length = obj.length;
|
|
5068
|
+
for (var i = 0; i < obj.length; i++) {
|
|
5069
|
+
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
5070
|
+
}
|
|
5071
|
+
}
|
|
5072
|
+
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
5073
|
+
var symMap;
|
|
5074
|
+
if (hasShammedSymbols) {
|
|
5075
|
+
symMap = {};
|
|
5076
|
+
for (var k = 0; k < syms.length; k++) {
|
|
5077
|
+
symMap['$' + syms[k]] = syms[k];
|
|
5078
|
+
}
|
|
5079
|
+
}
|
|
5080
|
+
|
|
5081
|
+
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
5082
|
+
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
5083
|
+
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
5084
|
+
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
5085
|
+
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
5086
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
5087
|
+
} else if ((/[^\w$]/).test(key)) {
|
|
5088
|
+
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
5089
|
+
} else {
|
|
5090
|
+
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
5091
|
+
}
|
|
5092
|
+
}
|
|
5093
|
+
if (typeof gOPS === 'function') {
|
|
5094
|
+
for (var j = 0; j < syms.length; j++) {
|
|
5095
|
+
if (isEnumerable.call(obj, syms[j])) {
|
|
5096
|
+
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
5097
|
+
}
|
|
5098
|
+
}
|
|
5099
|
+
}
|
|
5100
|
+
return xs;
|
|
5101
|
+
}
|
|
4915
5102
|
|
|
4916
5103
|
|
|
4917
5104
|
/***/ }),
|
|
4918
5105
|
|
|
4919
|
-
/***/ "../node_modules/
|
|
4920
|
-
|
|
4921
|
-
!*** ../node_modules/
|
|
4922
|
-
|
|
5106
|
+
/***/ "../node_modules/p-throttle/index.js":
|
|
5107
|
+
/*!*******************************************!*\
|
|
5108
|
+
!*** ../node_modules/p-throttle/index.js ***!
|
|
5109
|
+
\*******************************************/
|
|
4923
5110
|
/*! no static exports found */
|
|
4924
5111
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4925
5112
|
|
|
4926
5113
|
"use strict";
|
|
4927
5114
|
|
|
4928
5115
|
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
parse: parse,
|
|
4936
|
-
stringify: stringify
|
|
4937
|
-
};
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
/***/ }),
|
|
4941
|
-
|
|
4942
|
-
/***/ "../node_modules/qs/lib/parse.js":
|
|
4943
|
-
/*!***************************************!*\
|
|
4944
|
-
!*** ../node_modules/qs/lib/parse.js ***!
|
|
4945
|
-
\***************************************/
|
|
4946
|
-
/*! no static exports found */
|
|
4947
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4948
|
-
|
|
4949
|
-
"use strict";
|
|
5116
|
+
class AbortError extends Error {
|
|
5117
|
+
constructor() {
|
|
5118
|
+
super('Throttled function aborted');
|
|
5119
|
+
this.name = 'AbortError';
|
|
5120
|
+
}
|
|
5121
|
+
}
|
|
4950
5122
|
|
|
5123
|
+
const pThrottle = ({limit, interval, strict}) => {
|
|
5124
|
+
if (!Number.isFinite(limit)) {
|
|
5125
|
+
throw new TypeError('Expected `limit` to be a finite number');
|
|
5126
|
+
}
|
|
4951
5127
|
|
|
4952
|
-
|
|
5128
|
+
if (!Number.isFinite(interval)) {
|
|
5129
|
+
throw new TypeError('Expected `interval` to be a finite number');
|
|
5130
|
+
}
|
|
4953
5131
|
|
|
4954
|
-
|
|
4955
|
-
var isArray = Array.isArray;
|
|
5132
|
+
const queue = new Map();
|
|
4956
5133
|
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
allowPrototypes: false,
|
|
4960
|
-
allowSparse: false,
|
|
4961
|
-
arrayLimit: 20,
|
|
4962
|
-
charset: 'utf-8',
|
|
4963
|
-
charsetSentinel: false,
|
|
4964
|
-
comma: false,
|
|
4965
|
-
decoder: utils.decode,
|
|
4966
|
-
delimiter: '&',
|
|
4967
|
-
depth: 5,
|
|
4968
|
-
ignoreQueryPrefix: false,
|
|
4969
|
-
interpretNumericEntities: false,
|
|
4970
|
-
parameterLimit: 1000,
|
|
4971
|
-
parseArrays: true,
|
|
4972
|
-
plainObjects: false,
|
|
4973
|
-
strictNullHandling: false
|
|
4974
|
-
};
|
|
5134
|
+
let currentTick = 0;
|
|
5135
|
+
let activeCount = 0;
|
|
4975
5136
|
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
return String.fromCharCode(parseInt(numberStr, 10));
|
|
4979
|
-
});
|
|
4980
|
-
};
|
|
5137
|
+
function windowedDelay() {
|
|
5138
|
+
const now = Date.now();
|
|
4981
5139
|
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
5140
|
+
if ((now - currentTick) > interval) {
|
|
5141
|
+
activeCount = 1;
|
|
5142
|
+
currentTick = now;
|
|
5143
|
+
return 0;
|
|
5144
|
+
}
|
|
4986
5145
|
|
|
4987
|
-
|
|
4988
|
-
|
|
5146
|
+
if (activeCount < limit) {
|
|
5147
|
+
activeCount++;
|
|
5148
|
+
} else {
|
|
5149
|
+
currentTick += interval;
|
|
5150
|
+
activeCount = 1;
|
|
5151
|
+
}
|
|
4989
5152
|
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
|
4993
|
-
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
|
4994
|
-
// the ✓ character, such as us-ascii.
|
|
4995
|
-
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
5153
|
+
return currentTick - now;
|
|
5154
|
+
}
|
|
4996
5155
|
|
|
4997
|
-
|
|
4998
|
-
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
5156
|
+
const strictTicks = [];
|
|
4999
5157
|
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
5003
|
-
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
5004
|
-
var parts = cleanStr.split(options.delimiter, limit);
|
|
5005
|
-
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
5006
|
-
var i;
|
|
5158
|
+
function strictDelay() {
|
|
5159
|
+
const now = Date.now();
|
|
5007
5160
|
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
if (parts[i] === charsetSentinel) {
|
|
5013
|
-
charset = 'utf-8';
|
|
5014
|
-
} else if (parts[i] === isoSentinel) {
|
|
5015
|
-
charset = 'iso-8859-1';
|
|
5016
|
-
}
|
|
5017
|
-
skipIndex = i;
|
|
5018
|
-
i = parts.length; // The eslint settings do not allow break;
|
|
5019
|
-
}
|
|
5020
|
-
}
|
|
5021
|
-
}
|
|
5161
|
+
if (strictTicks.length < limit) {
|
|
5162
|
+
strictTicks.push(now);
|
|
5163
|
+
return 0;
|
|
5164
|
+
}
|
|
5022
5165
|
|
|
5023
|
-
|
|
5024
|
-
if (i === skipIndex) {
|
|
5025
|
-
continue;
|
|
5026
|
-
}
|
|
5027
|
-
var part = parts[i];
|
|
5166
|
+
const earliestTime = strictTicks.shift() + interval;
|
|
5028
5167
|
|
|
5029
|
-
|
|
5030
|
-
|
|
5168
|
+
if (now >= earliestTime) {
|
|
5169
|
+
strictTicks.push(now);
|
|
5170
|
+
return 0;
|
|
5171
|
+
}
|
|
5031
5172
|
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
val = options.strictNullHandling ? null : '';
|
|
5036
|
-
} else {
|
|
5037
|
-
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
5038
|
-
val = utils.maybeMap(
|
|
5039
|
-
parseArrayValue(part.slice(pos + 1), options),
|
|
5040
|
-
function (encodedVal) {
|
|
5041
|
-
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
5042
|
-
}
|
|
5043
|
-
);
|
|
5044
|
-
}
|
|
5173
|
+
strictTicks.push(earliestTime);
|
|
5174
|
+
return earliestTime - now;
|
|
5175
|
+
}
|
|
5045
5176
|
|
|
5046
|
-
|
|
5047
|
-
val = interpretNumericEntities(val);
|
|
5048
|
-
}
|
|
5177
|
+
const getDelay = strict ? strictDelay : windowedDelay;
|
|
5049
5178
|
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5179
|
+
return function_ => {
|
|
5180
|
+
const throttled = function (...args) {
|
|
5181
|
+
if (!throttled.isEnabled) {
|
|
5182
|
+
return (async () => function_.apply(this, args))();
|
|
5183
|
+
}
|
|
5053
5184
|
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5185
|
+
let timeout;
|
|
5186
|
+
return new Promise((resolve, reject) => {
|
|
5187
|
+
const execute = () => {
|
|
5188
|
+
resolve(function_.apply(this, args));
|
|
5189
|
+
queue.delete(timeout);
|
|
5190
|
+
};
|
|
5060
5191
|
|
|
5061
|
-
|
|
5062
|
-
};
|
|
5192
|
+
timeout = setTimeout(execute, getDelay());
|
|
5063
5193
|
|
|
5064
|
-
|
|
5065
|
-
|
|
5194
|
+
queue.set(timeout, reject);
|
|
5195
|
+
});
|
|
5196
|
+
};
|
|
5066
5197
|
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5198
|
+
throttled.abort = () => {
|
|
5199
|
+
for (const timeout of queue.keys()) {
|
|
5200
|
+
clearTimeout(timeout);
|
|
5201
|
+
queue.get(timeout)(new AbortError());
|
|
5202
|
+
}
|
|
5070
5203
|
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
obj = options.plainObjects ? Object.create(null) : {};
|
|
5075
|
-
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
5076
|
-
var index = parseInt(cleanRoot, 10);
|
|
5077
|
-
if (!options.parseArrays && cleanRoot === '') {
|
|
5078
|
-
obj = { 0: leaf };
|
|
5079
|
-
} else if (
|
|
5080
|
-
!isNaN(index)
|
|
5081
|
-
&& root !== cleanRoot
|
|
5082
|
-
&& String(index) === cleanRoot
|
|
5083
|
-
&& index >= 0
|
|
5084
|
-
&& (options.parseArrays && index <= options.arrayLimit)
|
|
5085
|
-
) {
|
|
5086
|
-
obj = [];
|
|
5087
|
-
obj[index] = leaf;
|
|
5088
|
-
} else {
|
|
5089
|
-
obj[cleanRoot] = leaf;
|
|
5090
|
-
}
|
|
5091
|
-
}
|
|
5204
|
+
queue.clear();
|
|
5205
|
+
strictTicks.splice(0, strictTicks.length);
|
|
5206
|
+
};
|
|
5092
5207
|
|
|
5093
|
-
|
|
5094
|
-
}
|
|
5208
|
+
throttled.isEnabled = true;
|
|
5095
5209
|
|
|
5096
|
-
|
|
5210
|
+
return throttled;
|
|
5211
|
+
};
|
|
5097
5212
|
};
|
|
5098
5213
|
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
return;
|
|
5102
|
-
}
|
|
5103
|
-
|
|
5104
|
-
// Transform dot notation to bracket notation
|
|
5105
|
-
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
5106
|
-
|
|
5107
|
-
// The regex chunks
|
|
5108
|
-
|
|
5109
|
-
var brackets = /(\[[^[\]]*])/;
|
|
5110
|
-
var child = /(\[[^[\]]*])/g;
|
|
5214
|
+
module.exports = pThrottle;
|
|
5215
|
+
module.exports.AbortError = AbortError;
|
|
5111
5216
|
|
|
5112
|
-
// Get the parent
|
|
5113
5217
|
|
|
5114
|
-
|
|
5115
|
-
var parent = segment ? key.slice(0, segment.index) : key;
|
|
5218
|
+
/***/ }),
|
|
5116
5219
|
|
|
5117
|
-
|
|
5220
|
+
/***/ "../node_modules/process/browser.js":
|
|
5221
|
+
/*!******************************************!*\
|
|
5222
|
+
!*** ../node_modules/process/browser.js ***!
|
|
5223
|
+
\******************************************/
|
|
5224
|
+
/*! no static exports found */
|
|
5225
|
+
/***/ (function(module, exports) {
|
|
5118
5226
|
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
|
5122
|
-
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
5123
|
-
if (!options.allowPrototypes) {
|
|
5124
|
-
return;
|
|
5125
|
-
}
|
|
5126
|
-
}
|
|
5227
|
+
// shim for using process in browser
|
|
5228
|
+
var process = module.exports = {};
|
|
5127
5229
|
|
|
5128
|
-
|
|
5129
|
-
|
|
5230
|
+
// cached from whatever global is present so that test runners that stub it
|
|
5231
|
+
// don't break things. But we need to wrap it in a try catch in case it is
|
|
5232
|
+
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
5233
|
+
// function because try/catches deoptimize in certain engines.
|
|
5130
5234
|
|
|
5131
|
-
|
|
5235
|
+
var cachedSetTimeout;
|
|
5236
|
+
var cachedClearTimeout;
|
|
5132
5237
|
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5238
|
+
function defaultSetTimout() {
|
|
5239
|
+
throw new Error('setTimeout has not been defined');
|
|
5240
|
+
}
|
|
5241
|
+
function defaultClearTimeout () {
|
|
5242
|
+
throw new Error('clearTimeout has not been defined');
|
|
5243
|
+
}
|
|
5244
|
+
(function () {
|
|
5245
|
+
try {
|
|
5246
|
+
if (typeof setTimeout === 'function') {
|
|
5247
|
+
cachedSetTimeout = setTimeout;
|
|
5248
|
+
} else {
|
|
5249
|
+
cachedSetTimeout = defaultSetTimout;
|
|
5250
|
+
}
|
|
5251
|
+
} catch (e) {
|
|
5252
|
+
cachedSetTimeout = defaultSetTimout;
|
|
5253
|
+
}
|
|
5254
|
+
try {
|
|
5255
|
+
if (typeof clearTimeout === 'function') {
|
|
5256
|
+
cachedClearTimeout = clearTimeout;
|
|
5257
|
+
} else {
|
|
5258
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
5259
|
+
}
|
|
5260
|
+
} catch (e) {
|
|
5261
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
5262
|
+
}
|
|
5263
|
+
} ())
|
|
5264
|
+
function runTimeout(fun) {
|
|
5265
|
+
if (cachedSetTimeout === setTimeout) {
|
|
5266
|
+
//normal enviroments in sane situations
|
|
5267
|
+
return setTimeout(fun, 0);
|
|
5268
|
+
}
|
|
5269
|
+
// if setTimeout wasn't available but was latter defined
|
|
5270
|
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
5271
|
+
cachedSetTimeout = setTimeout;
|
|
5272
|
+
return setTimeout(fun, 0);
|
|
5273
|
+
}
|
|
5274
|
+
try {
|
|
5275
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
5276
|
+
return cachedSetTimeout(fun, 0);
|
|
5277
|
+
} catch(e){
|
|
5278
|
+
try {
|
|
5279
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
5280
|
+
return cachedSetTimeout.call(null, fun, 0);
|
|
5281
|
+
} catch(e){
|
|
5282
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
5283
|
+
return cachedSetTimeout.call(this, fun, 0);
|
|
5140
5284
|
}
|
|
5141
|
-
keys.push(segment[1]);
|
|
5142
5285
|
}
|
|
5143
5286
|
|
|
5144
|
-
// If there's a remainder, just add whatever is left
|
|
5145
5287
|
|
|
5146
|
-
|
|
5147
|
-
|
|
5288
|
+
}
|
|
5289
|
+
function runClearTimeout(marker) {
|
|
5290
|
+
if (cachedClearTimeout === clearTimeout) {
|
|
5291
|
+
//normal enviroments in sane situations
|
|
5292
|
+
return clearTimeout(marker);
|
|
5293
|
+
}
|
|
5294
|
+
// if clearTimeout wasn't available but was latter defined
|
|
5295
|
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
5296
|
+
cachedClearTimeout = clearTimeout;
|
|
5297
|
+
return clearTimeout(marker);
|
|
5298
|
+
}
|
|
5299
|
+
try {
|
|
5300
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
5301
|
+
return cachedClearTimeout(marker);
|
|
5302
|
+
} catch (e){
|
|
5303
|
+
try {
|
|
5304
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
5305
|
+
return cachedClearTimeout.call(null, marker);
|
|
5306
|
+
} catch (e){
|
|
5307
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
5308
|
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
5309
|
+
return cachedClearTimeout.call(this, marker);
|
|
5310
|
+
}
|
|
5148
5311
|
}
|
|
5149
5312
|
|
|
5150
|
-
return parseObject(keys, val, options, valuesParsed);
|
|
5151
|
-
};
|
|
5152
5313
|
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5314
|
+
|
|
5315
|
+
}
|
|
5316
|
+
var queue = [];
|
|
5317
|
+
var draining = false;
|
|
5318
|
+
var currentQueue;
|
|
5319
|
+
var queueIndex = -1;
|
|
5320
|
+
|
|
5321
|
+
function cleanUpNextTick() {
|
|
5322
|
+
if (!draining || !currentQueue) {
|
|
5323
|
+
return;
|
|
5324
|
+
}
|
|
5325
|
+
draining = false;
|
|
5326
|
+
if (currentQueue.length) {
|
|
5327
|
+
queue = currentQueue.concat(queue);
|
|
5328
|
+
} else {
|
|
5329
|
+
queueIndex = -1;
|
|
5330
|
+
}
|
|
5331
|
+
if (queue.length) {
|
|
5332
|
+
drainQueue();
|
|
5156
5333
|
}
|
|
5334
|
+
}
|
|
5157
5335
|
|
|
5158
|
-
|
|
5159
|
-
|
|
5336
|
+
function drainQueue() {
|
|
5337
|
+
if (draining) {
|
|
5338
|
+
return;
|
|
5160
5339
|
}
|
|
5340
|
+
var timeout = runTimeout(cleanUpNextTick);
|
|
5341
|
+
draining = true;
|
|
5161
5342
|
|
|
5162
|
-
|
|
5163
|
-
|
|
5343
|
+
var len = queue.length;
|
|
5344
|
+
while(len) {
|
|
5345
|
+
currentQueue = queue;
|
|
5346
|
+
queue = [];
|
|
5347
|
+
while (++queueIndex < len) {
|
|
5348
|
+
if (currentQueue) {
|
|
5349
|
+
currentQueue[queueIndex].run();
|
|
5350
|
+
}
|
|
5351
|
+
}
|
|
5352
|
+
queueIndex = -1;
|
|
5353
|
+
len = queue.length;
|
|
5164
5354
|
}
|
|
5165
|
-
|
|
5355
|
+
currentQueue = null;
|
|
5356
|
+
draining = false;
|
|
5357
|
+
runClearTimeout(timeout);
|
|
5358
|
+
}
|
|
5166
5359
|
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
5179
|
-
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
5180
|
-
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
5181
|
-
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
5182
|
-
parseArrays: opts.parseArrays !== false,
|
|
5183
|
-
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
5184
|
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
5185
|
-
};
|
|
5360
|
+
process.nextTick = function (fun) {
|
|
5361
|
+
var args = new Array(arguments.length - 1);
|
|
5362
|
+
if (arguments.length > 1) {
|
|
5363
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
5364
|
+
args[i - 1] = arguments[i];
|
|
5365
|
+
}
|
|
5366
|
+
}
|
|
5367
|
+
queue.push(new Item(fun, args));
|
|
5368
|
+
if (queue.length === 1 && !draining) {
|
|
5369
|
+
runTimeout(drainQueue);
|
|
5370
|
+
}
|
|
5186
5371
|
};
|
|
5187
5372
|
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5373
|
+
// v8 likes predictible objects
|
|
5374
|
+
function Item(fun, array) {
|
|
5375
|
+
this.fun = fun;
|
|
5376
|
+
this.array = array;
|
|
5377
|
+
}
|
|
5378
|
+
Item.prototype.run = function () {
|
|
5379
|
+
this.fun.apply(null, this.array);
|
|
5380
|
+
};
|
|
5381
|
+
process.title = 'browser';
|
|
5382
|
+
process.browser = true;
|
|
5383
|
+
process.env = {};
|
|
5384
|
+
process.argv = [];
|
|
5385
|
+
process.version = ''; // empty string to avoid regexp issues
|
|
5386
|
+
process.versions = {};
|
|
5194
5387
|
|
|
5195
|
-
|
|
5196
|
-
var obj = options.plainObjects ? Object.create(null) : {};
|
|
5388
|
+
function noop() {}
|
|
5197
5389
|
|
|
5198
|
-
|
|
5390
|
+
process.on = noop;
|
|
5391
|
+
process.addListener = noop;
|
|
5392
|
+
process.once = noop;
|
|
5393
|
+
process.off = noop;
|
|
5394
|
+
process.removeListener = noop;
|
|
5395
|
+
process.removeAllListeners = noop;
|
|
5396
|
+
process.emit = noop;
|
|
5397
|
+
process.prependListener = noop;
|
|
5398
|
+
process.prependOnceListener = noop;
|
|
5199
5399
|
|
|
5200
|
-
|
|
5201
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
5202
|
-
var key = keys[i];
|
|
5203
|
-
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
5204
|
-
obj = utils.merge(obj, newObj, options);
|
|
5205
|
-
}
|
|
5400
|
+
process.listeners = function (name) { return [] }
|
|
5206
5401
|
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5402
|
+
process.binding = function (name) {
|
|
5403
|
+
throw new Error('process.binding is not supported');
|
|
5404
|
+
};
|
|
5210
5405
|
|
|
5211
|
-
|
|
5406
|
+
process.cwd = function () { return '/' };
|
|
5407
|
+
process.chdir = function (dir) {
|
|
5408
|
+
throw new Error('process.chdir is not supported');
|
|
5212
5409
|
};
|
|
5410
|
+
process.umask = function() { return 0; };
|
|
5213
5411
|
|
|
5214
5412
|
|
|
5215
5413
|
/***/ }),
|
|
5216
5414
|
|
|
5217
|
-
/***/ "../node_modules/qs/lib/
|
|
5218
|
-
|
|
5219
|
-
!*** ../node_modules/qs/lib/
|
|
5220
|
-
|
|
5415
|
+
/***/ "../node_modules/qs/lib/formats.js":
|
|
5416
|
+
/*!*****************************************!*\
|
|
5417
|
+
!*** ../node_modules/qs/lib/formats.js ***!
|
|
5418
|
+
\*****************************************/
|
|
5221
5419
|
/*! no static exports found */
|
|
5222
5420
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5223
5421
|
|
|
5224
5422
|
"use strict";
|
|
5225
5423
|
|
|
5226
5424
|
|
|
5227
|
-
var
|
|
5228
|
-
var
|
|
5229
|
-
var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
|
|
5230
|
-
var has = Object.prototype.hasOwnProperty;
|
|
5425
|
+
var replace = String.prototype.replace;
|
|
5426
|
+
var percentTwenties = /%20/g;
|
|
5231
5427
|
|
|
5232
|
-
var
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
},
|
|
5236
|
-
comma: 'comma',
|
|
5237
|
-
indices: function indices(prefix, key) {
|
|
5238
|
-
return prefix + '[' + key + ']';
|
|
5239
|
-
},
|
|
5240
|
-
repeat: function repeat(prefix) {
|
|
5241
|
-
return prefix;
|
|
5242
|
-
}
|
|
5428
|
+
var Format = {
|
|
5429
|
+
RFC1738: 'RFC1738',
|
|
5430
|
+
RFC3986: 'RFC3986'
|
|
5243
5431
|
};
|
|
5244
5432
|
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5433
|
+
module.exports = {
|
|
5434
|
+
'default': Format.RFC3986,
|
|
5435
|
+
formatters: {
|
|
5436
|
+
RFC1738: function (value) {
|
|
5437
|
+
return replace.call(value, percentTwenties, '+');
|
|
5438
|
+
},
|
|
5439
|
+
RFC3986: function (value) {
|
|
5440
|
+
return String(value);
|
|
5441
|
+
}
|
|
5442
|
+
},
|
|
5443
|
+
RFC1738: Format.RFC1738,
|
|
5444
|
+
RFC3986: Format.RFC3986
|
|
5249
5445
|
};
|
|
5250
5446
|
|
|
5251
|
-
var toISO = Date.prototype.toISOString;
|
|
5252
5447
|
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5448
|
+
/***/ }),
|
|
5449
|
+
|
|
5450
|
+
/***/ "../node_modules/qs/lib/index.js":
|
|
5451
|
+
/*!***************************************!*\
|
|
5452
|
+
!*** ../node_modules/qs/lib/index.js ***!
|
|
5453
|
+
\***************************************/
|
|
5454
|
+
/*! no static exports found */
|
|
5455
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5456
|
+
|
|
5457
|
+
"use strict";
|
|
5458
|
+
|
|
5459
|
+
|
|
5460
|
+
var stringify = __webpack_require__(/*! ./stringify */ "../node_modules/qs/lib/stringify.js");
|
|
5461
|
+
var parse = __webpack_require__(/*! ./parse */ "../node_modules/qs/lib/parse.js");
|
|
5462
|
+
var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
|
|
5463
|
+
|
|
5464
|
+
module.exports = {
|
|
5465
|
+
formats: formats,
|
|
5466
|
+
parse: parse,
|
|
5467
|
+
stringify: stringify
|
|
5468
|
+
};
|
|
5469
|
+
|
|
5470
|
+
|
|
5471
|
+
/***/ }),
|
|
5472
|
+
|
|
5473
|
+
/***/ "../node_modules/qs/lib/parse.js":
|
|
5474
|
+
/*!***************************************!*\
|
|
5475
|
+
!*** ../node_modules/qs/lib/parse.js ***!
|
|
5476
|
+
\***************************************/
|
|
5477
|
+
/*! no static exports found */
|
|
5478
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5479
|
+
|
|
5480
|
+
"use strict";
|
|
5481
|
+
|
|
5482
|
+
|
|
5483
|
+
var utils = __webpack_require__(/*! ./utils */ "../node_modules/qs/lib/utils.js");
|
|
5484
|
+
|
|
5485
|
+
var has = Object.prototype.hasOwnProperty;
|
|
5486
|
+
var isArray = Array.isArray;
|
|
5487
|
+
|
|
5488
|
+
var defaults = {
|
|
5256
5489
|
allowDots: false,
|
|
5490
|
+
allowPrototypes: false,
|
|
5491
|
+
allowSparse: false,
|
|
5492
|
+
arrayLimit: 20,
|
|
5257
5493
|
charset: 'utf-8',
|
|
5258
5494
|
charsetSentinel: false,
|
|
5495
|
+
comma: false,
|
|
5496
|
+
decoder: utils.decode,
|
|
5259
5497
|
delimiter: '&',
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
indices: false,
|
|
5267
|
-
serializeDate: function serializeDate(date) {
|
|
5268
|
-
return toISO.call(date);
|
|
5269
|
-
},
|
|
5270
|
-
skipNulls: false,
|
|
5498
|
+
depth: 5,
|
|
5499
|
+
ignoreQueryPrefix: false,
|
|
5500
|
+
interpretNumericEntities: false,
|
|
5501
|
+
parameterLimit: 1000,
|
|
5502
|
+
parseArrays: true,
|
|
5503
|
+
plainObjects: false,
|
|
5271
5504
|
strictNullHandling: false
|
|
5272
5505
|
};
|
|
5273
5506
|
|
|
5274
|
-
var
|
|
5275
|
-
return
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|| typeof v === 'symbol'
|
|
5279
|
-
|| typeof v === 'bigint';
|
|
5507
|
+
var interpretNumericEntities = function (str) {
|
|
5508
|
+
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
5509
|
+
return String.fromCharCode(parseInt(numberStr, 10));
|
|
5510
|
+
});
|
|
5280
5511
|
};
|
|
5281
5512
|
|
|
5282
|
-
var
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
generateArrayPrefix,
|
|
5286
|
-
strictNullHandling,
|
|
5287
|
-
skipNulls,
|
|
5288
|
-
encoder,
|
|
5289
|
-
filter,
|
|
5290
|
-
sort,
|
|
5291
|
-
allowDots,
|
|
5292
|
-
serializeDate,
|
|
5293
|
-
format,
|
|
5294
|
-
formatter,
|
|
5295
|
-
encodeValuesOnly,
|
|
5296
|
-
charset,
|
|
5297
|
-
sideChannel
|
|
5298
|
-
) {
|
|
5299
|
-
var obj = object;
|
|
5300
|
-
|
|
5301
|
-
if (sideChannel.has(object)) {
|
|
5302
|
-
throw new RangeError('Cyclic object value');
|
|
5513
|
+
var parseArrayValue = function (val, options) {
|
|
5514
|
+
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
5515
|
+
return val.split(',');
|
|
5303
5516
|
}
|
|
5304
5517
|
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5518
|
+
return val;
|
|
5519
|
+
};
|
|
5520
|
+
|
|
5521
|
+
// This is what browsers will submit when the ✓ character occurs in an
|
|
5522
|
+
// application/x-www-form-urlencoded body and the encoding of the page containing
|
|
5523
|
+
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
|
5524
|
+
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
|
5525
|
+
// the ✓ character, such as us-ascii.
|
|
5526
|
+
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
5527
|
+
|
|
5528
|
+
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
|
5529
|
+
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
5530
|
+
|
|
5531
|
+
var parseValues = function parseQueryStringValues(str, options) {
|
|
5532
|
+
var obj = {};
|
|
5533
|
+
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
5534
|
+
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
5535
|
+
var parts = cleanStr.split(options.delimiter, limit);
|
|
5536
|
+
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
5537
|
+
var i;
|
|
5538
|
+
|
|
5539
|
+
var charset = options.charset;
|
|
5540
|
+
if (options.charsetSentinel) {
|
|
5541
|
+
for (i = 0; i < parts.length; ++i) {
|
|
5542
|
+
if (parts[i].indexOf('utf8=') === 0) {
|
|
5543
|
+
if (parts[i] === charsetSentinel) {
|
|
5544
|
+
charset = 'utf-8';
|
|
5545
|
+
} else if (parts[i] === isoSentinel) {
|
|
5546
|
+
charset = 'iso-8859-1';
|
|
5547
|
+
}
|
|
5548
|
+
skipIndex = i;
|
|
5549
|
+
i = parts.length; // The eslint settings do not allow break;
|
|
5313
5550
|
}
|
|
5314
|
-
|
|
5315
|
-
});
|
|
5551
|
+
}
|
|
5316
5552
|
}
|
|
5317
5553
|
|
|
5318
|
-
|
|
5319
|
-
if (
|
|
5320
|
-
|
|
5554
|
+
for (i = 0; i < parts.length; ++i) {
|
|
5555
|
+
if (i === skipIndex) {
|
|
5556
|
+
continue;
|
|
5321
5557
|
}
|
|
5558
|
+
var part = parts[i];
|
|
5322
5559
|
|
|
5323
|
-
|
|
5324
|
-
|
|
5560
|
+
var bracketEqualsPos = part.indexOf(']=');
|
|
5561
|
+
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
5325
5562
|
|
|
5326
|
-
|
|
5327
|
-
if (
|
|
5328
|
-
|
|
5329
|
-
|
|
5563
|
+
var key, val;
|
|
5564
|
+
if (pos === -1) {
|
|
5565
|
+
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
5566
|
+
val = options.strictNullHandling ? null : '';
|
|
5567
|
+
} else {
|
|
5568
|
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
5569
|
+
val = utils.maybeMap(
|
|
5570
|
+
parseArrayValue(part.slice(pos + 1), options),
|
|
5571
|
+
function (encodedVal) {
|
|
5572
|
+
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
5573
|
+
}
|
|
5574
|
+
);
|
|
5330
5575
|
}
|
|
5331
|
-
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
5332
|
-
}
|
|
5333
5576
|
|
|
5334
|
-
|
|
5577
|
+
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
5578
|
+
val = interpretNumericEntities(val);
|
|
5579
|
+
}
|
|
5335
5580
|
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5581
|
+
if (part.indexOf('[]=') > -1) {
|
|
5582
|
+
val = isArray(val) ? [val] : val;
|
|
5583
|
+
}
|
|
5339
5584
|
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
objKeys = filter;
|
|
5346
|
-
} else {
|
|
5347
|
-
var keys = Object.keys(obj);
|
|
5348
|
-
objKeys = sort ? keys.sort(sort) : keys;
|
|
5585
|
+
if (has.call(obj, key)) {
|
|
5586
|
+
obj[key] = utils.combine(obj[key], val);
|
|
5587
|
+
} else {
|
|
5588
|
+
obj[key] = val;
|
|
5589
|
+
}
|
|
5349
5590
|
}
|
|
5350
5591
|
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
|
|
5592
|
+
return obj;
|
|
5593
|
+
};
|
|
5354
5594
|
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
}
|
|
5595
|
+
var parseObject = function (chain, val, options, valuesParsed) {
|
|
5596
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
|
5358
5597
|
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5598
|
+
for (var i = chain.length - 1; i >= 0; --i) {
|
|
5599
|
+
var obj;
|
|
5600
|
+
var root = chain[i];
|
|
5362
5601
|
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5602
|
+
if (root === '[]' && options.parseArrays) {
|
|
5603
|
+
obj = [].concat(leaf);
|
|
5604
|
+
} else {
|
|
5605
|
+
obj = options.plainObjects ? Object.create(null) : {};
|
|
5606
|
+
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
5607
|
+
var index = parseInt(cleanRoot, 10);
|
|
5608
|
+
if (!options.parseArrays && cleanRoot === '') {
|
|
5609
|
+
obj = { 0: leaf };
|
|
5610
|
+
} else if (
|
|
5611
|
+
!isNaN(index)
|
|
5612
|
+
&& root !== cleanRoot
|
|
5613
|
+
&& String(index) === cleanRoot
|
|
5614
|
+
&& index >= 0
|
|
5615
|
+
&& (options.parseArrays && index <= options.arrayLimit)
|
|
5616
|
+
) {
|
|
5617
|
+
obj = [];
|
|
5618
|
+
obj[index] = leaf;
|
|
5619
|
+
} else {
|
|
5620
|
+
obj[cleanRoot] = leaf;
|
|
5621
|
+
}
|
|
5622
|
+
}
|
|
5623
|
+
|
|
5624
|
+
leaf = obj;
|
|
5382
5625
|
}
|
|
5383
5626
|
|
|
5384
|
-
return
|
|
5627
|
+
return leaf;
|
|
5385
5628
|
};
|
|
5386
5629
|
|
|
5387
|
-
var
|
|
5388
|
-
if (!
|
|
5389
|
-
return
|
|
5630
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
5631
|
+
if (!givenKey) {
|
|
5632
|
+
return;
|
|
5390
5633
|
}
|
|
5391
5634
|
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
}
|
|
5635
|
+
// Transform dot notation to bracket notation
|
|
5636
|
+
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
5395
5637
|
|
|
5396
|
-
|
|
5397
|
-
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
5398
|
-
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
5399
|
-
}
|
|
5638
|
+
// The regex chunks
|
|
5400
5639
|
|
|
5401
|
-
var
|
|
5402
|
-
|
|
5403
|
-
if (!has.call(formats.formatters, opts.format)) {
|
|
5404
|
-
throw new TypeError('Unknown format option provided.');
|
|
5405
|
-
}
|
|
5406
|
-
format = opts.format;
|
|
5407
|
-
}
|
|
5408
|
-
var formatter = formats.formatters[format];
|
|
5640
|
+
var brackets = /(\[[^[\]]*])/;
|
|
5641
|
+
var child = /(\[[^[\]]*])/g;
|
|
5409
5642
|
|
|
5410
|
-
|
|
5411
|
-
if (typeof opts.filter === 'function' || isArray(opts.filter)) {
|
|
5412
|
-
filter = opts.filter;
|
|
5413
|
-
}
|
|
5643
|
+
// Get the parent
|
|
5414
5644
|
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
5418
|
-
charset: charset,
|
|
5419
|
-
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
5420
|
-
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
5421
|
-
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
5422
|
-
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
5423
|
-
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
5424
|
-
filter: filter,
|
|
5425
|
-
format: format,
|
|
5426
|
-
formatter: formatter,
|
|
5427
|
-
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
|
5428
|
-
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
|
5429
|
-
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
|
5430
|
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
5431
|
-
};
|
|
5432
|
-
};
|
|
5645
|
+
var segment = options.depth > 0 && brackets.exec(key);
|
|
5646
|
+
var parent = segment ? key.slice(0, segment.index) : key;
|
|
5433
5647
|
|
|
5434
|
-
|
|
5435
|
-
var obj = object;
|
|
5436
|
-
var options = normalizeStringifyOptions(opts);
|
|
5648
|
+
// Stash the parent if it exists
|
|
5437
5649
|
|
|
5438
|
-
var
|
|
5439
|
-
|
|
5650
|
+
var keys = [];
|
|
5651
|
+
if (parent) {
|
|
5652
|
+
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
|
5653
|
+
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
5654
|
+
if (!options.allowPrototypes) {
|
|
5655
|
+
return;
|
|
5656
|
+
}
|
|
5657
|
+
}
|
|
5440
5658
|
|
|
5441
|
-
|
|
5442
|
-
filter = options.filter;
|
|
5443
|
-
obj = filter('', obj);
|
|
5444
|
-
} else if (isArray(options.filter)) {
|
|
5445
|
-
filter = options.filter;
|
|
5446
|
-
objKeys = filter;
|
|
5659
|
+
keys.push(parent);
|
|
5447
5660
|
}
|
|
5448
5661
|
|
|
5449
|
-
|
|
5662
|
+
// Loop through children appending to the array until we hit depth
|
|
5450
5663
|
|
|
5451
|
-
|
|
5452
|
-
|
|
5664
|
+
var i = 0;
|
|
5665
|
+
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
|
5666
|
+
i += 1;
|
|
5667
|
+
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
5668
|
+
if (!options.allowPrototypes) {
|
|
5669
|
+
return;
|
|
5670
|
+
}
|
|
5671
|
+
}
|
|
5672
|
+
keys.push(segment[1]);
|
|
5453
5673
|
}
|
|
5454
5674
|
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
5460
|
-
} else {
|
|
5461
|
-
arrayFormat = 'indices';
|
|
5675
|
+
// If there's a remainder, just add whatever is left
|
|
5676
|
+
|
|
5677
|
+
if (segment) {
|
|
5678
|
+
keys.push('[' + key.slice(segment.index) + ']');
|
|
5462
5679
|
}
|
|
5463
5680
|
|
|
5464
|
-
|
|
5681
|
+
return parseObject(keys, val, options, valuesParsed);
|
|
5682
|
+
};
|
|
5465
5683
|
|
|
5466
|
-
|
|
5467
|
-
|
|
5684
|
+
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
5685
|
+
if (!opts) {
|
|
5686
|
+
return defaults;
|
|
5468
5687
|
}
|
|
5469
5688
|
|
|
5470
|
-
if (
|
|
5471
|
-
|
|
5689
|
+
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
|
5690
|
+
throw new TypeError('Decoder has to be a function.');
|
|
5472
5691
|
}
|
|
5473
5692
|
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5693
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
5694
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
5695
|
+
}
|
|
5696
|
+
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
5477
5697
|
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5698
|
+
return {
|
|
5699
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
5700
|
+
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
5701
|
+
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
5702
|
+
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
5703
|
+
charset: charset,
|
|
5704
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
5705
|
+
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
5706
|
+
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
5707
|
+
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
5708
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
5709
|
+
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
5710
|
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
5711
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
5712
|
+
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
5713
|
+
parseArrays: opts.parseArrays !== false,
|
|
5714
|
+
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
5715
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
5716
|
+
};
|
|
5717
|
+
};
|
|
5718
|
+
|
|
5719
|
+
module.exports = function (str, opts) {
|
|
5720
|
+
var options = normalizeParseOptions(opts);
|
|
5721
|
+
|
|
5722
|
+
if (str === '' || str === null || typeof str === 'undefined') {
|
|
5723
|
+
return options.plainObjects ? Object.create(null) : {};
|
|
5498
5724
|
}
|
|
5499
5725
|
|
|
5500
|
-
var
|
|
5501
|
-
var
|
|
5726
|
+
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
5727
|
+
var obj = options.plainObjects ? Object.create(null) : {};
|
|
5502
5728
|
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
}
|
|
5729
|
+
// Iterate over the keys and setup the new object
|
|
5730
|
+
|
|
5731
|
+
var keys = Object.keys(tempObj);
|
|
5732
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
5733
|
+
var key = keys[i];
|
|
5734
|
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
5735
|
+
obj = utils.merge(obj, newObj, options);
|
|
5511
5736
|
}
|
|
5512
5737
|
|
|
5513
|
-
|
|
5738
|
+
if (options.allowSparse === true) {
|
|
5739
|
+
return obj;
|
|
5740
|
+
}
|
|
5741
|
+
|
|
5742
|
+
return utils.compact(obj);
|
|
5514
5743
|
};
|
|
5515
5744
|
|
|
5516
5745
|
|
|
5517
5746
|
/***/ }),
|
|
5518
5747
|
|
|
5519
|
-
/***/ "../node_modules/qs/lib/
|
|
5520
|
-
|
|
5521
|
-
!*** ../node_modules/qs/lib/
|
|
5522
|
-
|
|
5748
|
+
/***/ "../node_modules/qs/lib/stringify.js":
|
|
5749
|
+
/*!*******************************************!*\
|
|
5750
|
+
!*** ../node_modules/qs/lib/stringify.js ***!
|
|
5751
|
+
\*******************************************/
|
|
5523
5752
|
/*! no static exports found */
|
|
5524
5753
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5525
5754
|
|
|
5526
5755
|
"use strict";
|
|
5527
5756
|
|
|
5528
5757
|
|
|
5758
|
+
var getSideChannel = __webpack_require__(/*! side-channel */ "../node_modules/side-channel/index.js");
|
|
5759
|
+
var utils = __webpack_require__(/*! ./utils */ "../node_modules/qs/lib/utils.js");
|
|
5529
5760
|
var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
|
|
5530
|
-
|
|
5531
5761
|
var has = Object.prototype.hasOwnProperty;
|
|
5532
|
-
var isArray = Array.isArray;
|
|
5533
|
-
|
|
5534
|
-
var hexTable = (function () {
|
|
5535
|
-
var array = [];
|
|
5536
|
-
for (var i = 0; i < 256; ++i) {
|
|
5537
|
-
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
5538
|
-
}
|
|
5539
|
-
|
|
5540
|
-
return array;
|
|
5541
|
-
}());
|
|
5542
|
-
|
|
5543
|
-
var compactQueue = function compactQueue(queue) {
|
|
5544
|
-
while (queue.length > 1) {
|
|
5545
|
-
var item = queue.pop();
|
|
5546
|
-
var obj = item.obj[item.prop];
|
|
5547
|
-
|
|
5548
|
-
if (isArray(obj)) {
|
|
5549
|
-
var compacted = [];
|
|
5550
|
-
|
|
5551
|
-
for (var j = 0; j < obj.length; ++j) {
|
|
5552
|
-
if (typeof obj[j] !== 'undefined') {
|
|
5553
|
-
compacted.push(obj[j]);
|
|
5554
|
-
}
|
|
5555
|
-
}
|
|
5556
5762
|
|
|
5557
|
-
|
|
5558
|
-
|
|
5763
|
+
var arrayPrefixGenerators = {
|
|
5764
|
+
brackets: function brackets(prefix) {
|
|
5765
|
+
return prefix + '[]';
|
|
5766
|
+
},
|
|
5767
|
+
comma: 'comma',
|
|
5768
|
+
indices: function indices(prefix, key) {
|
|
5769
|
+
return prefix + '[' + key + ']';
|
|
5770
|
+
},
|
|
5771
|
+
repeat: function repeat(prefix) {
|
|
5772
|
+
return prefix;
|
|
5559
5773
|
}
|
|
5560
5774
|
};
|
|
5561
5775
|
|
|
5562
|
-
var
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
obj[i] = source[i];
|
|
5567
|
-
}
|
|
5568
|
-
}
|
|
5569
|
-
|
|
5570
|
-
return obj;
|
|
5776
|
+
var isArray = Array.isArray;
|
|
5777
|
+
var push = Array.prototype.push;
|
|
5778
|
+
var pushToArray = function (arr, valueOrArray) {
|
|
5779
|
+
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
5571
5780
|
};
|
|
5572
5781
|
|
|
5573
|
-
var
|
|
5574
|
-
/* eslint no-param-reassign: 0 */
|
|
5575
|
-
if (!source) {
|
|
5576
|
-
return target;
|
|
5577
|
-
}
|
|
5782
|
+
var toISO = Date.prototype.toISOString;
|
|
5578
5783
|
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5784
|
+
var defaultFormat = formats['default'];
|
|
5785
|
+
var defaults = {
|
|
5786
|
+
addQueryPrefix: false,
|
|
5787
|
+
allowDots: false,
|
|
5788
|
+
charset: 'utf-8',
|
|
5789
|
+
charsetSentinel: false,
|
|
5790
|
+
delimiter: '&',
|
|
5791
|
+
encode: true,
|
|
5792
|
+
encoder: utils.encode,
|
|
5793
|
+
encodeValuesOnly: false,
|
|
5794
|
+
format: defaultFormat,
|
|
5795
|
+
formatter: formats.formatters[defaultFormat],
|
|
5796
|
+
// deprecated
|
|
5797
|
+
indices: false,
|
|
5798
|
+
serializeDate: function serializeDate(date) {
|
|
5799
|
+
return toISO.call(date);
|
|
5800
|
+
},
|
|
5801
|
+
skipNulls: false,
|
|
5802
|
+
strictNullHandling: false
|
|
5803
|
+
};
|
|
5589
5804
|
|
|
5590
|
-
|
|
5591
|
-
|
|
5805
|
+
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
5806
|
+
return typeof v === 'string'
|
|
5807
|
+
|| typeof v === 'number'
|
|
5808
|
+
|| typeof v === 'boolean'
|
|
5809
|
+
|| typeof v === 'symbol'
|
|
5810
|
+
|| typeof v === 'bigint';
|
|
5811
|
+
};
|
|
5592
5812
|
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5813
|
+
var stringify = function stringify(
|
|
5814
|
+
object,
|
|
5815
|
+
prefix,
|
|
5816
|
+
generateArrayPrefix,
|
|
5817
|
+
strictNullHandling,
|
|
5818
|
+
skipNulls,
|
|
5819
|
+
encoder,
|
|
5820
|
+
filter,
|
|
5821
|
+
sort,
|
|
5822
|
+
allowDots,
|
|
5823
|
+
serializeDate,
|
|
5824
|
+
format,
|
|
5825
|
+
formatter,
|
|
5826
|
+
encodeValuesOnly,
|
|
5827
|
+
charset,
|
|
5828
|
+
sideChannel
|
|
5829
|
+
) {
|
|
5830
|
+
var obj = object;
|
|
5596
5831
|
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
mergeTarget = arrayToObject(target, options);
|
|
5832
|
+
if (sideChannel.has(object)) {
|
|
5833
|
+
throw new RangeError('Cyclic object value');
|
|
5600
5834
|
}
|
|
5601
5835
|
|
|
5602
|
-
if (
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
}
|
|
5611
|
-
} else {
|
|
5612
|
-
target[i] = item;
|
|
5836
|
+
if (typeof filter === 'function') {
|
|
5837
|
+
obj = filter(prefix, obj);
|
|
5838
|
+
} else if (obj instanceof Date) {
|
|
5839
|
+
obj = serializeDate(obj);
|
|
5840
|
+
} else if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
5841
|
+
obj = utils.maybeMap(obj, function (value) {
|
|
5842
|
+
if (value instanceof Date) {
|
|
5843
|
+
return serializeDate(value);
|
|
5613
5844
|
}
|
|
5845
|
+
return value;
|
|
5614
5846
|
});
|
|
5615
|
-
return target;
|
|
5616
5847
|
}
|
|
5617
5848
|
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
if (has.call(acc, key)) {
|
|
5622
|
-
acc[key] = merge(acc[key], value, options);
|
|
5623
|
-
} else {
|
|
5624
|
-
acc[key] = value;
|
|
5849
|
+
if (obj === null) {
|
|
5850
|
+
if (strictNullHandling) {
|
|
5851
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
|
5625
5852
|
}
|
|
5626
|
-
return acc;
|
|
5627
|
-
}, mergeTarget);
|
|
5628
|
-
};
|
|
5629
|
-
|
|
5630
|
-
var assign = function assignSingleSource(target, source) {
|
|
5631
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
5632
|
-
acc[key] = source[key];
|
|
5633
|
-
return acc;
|
|
5634
|
-
}, target);
|
|
5635
|
-
};
|
|
5636
5853
|
|
|
5637
|
-
|
|
5638
|
-
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
5639
|
-
if (charset === 'iso-8859-1') {
|
|
5640
|
-
// unescape never throws, no try...catch needed:
|
|
5641
|
-
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
5642
|
-
}
|
|
5643
|
-
// utf-8
|
|
5644
|
-
try {
|
|
5645
|
-
return decodeURIComponent(strWithoutPlus);
|
|
5646
|
-
} catch (e) {
|
|
5647
|
-
return strWithoutPlus;
|
|
5854
|
+
obj = '';
|
|
5648
5855
|
}
|
|
5649
|
-
};
|
|
5650
5856
|
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5857
|
+
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
5858
|
+
if (encoder) {
|
|
5859
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
|
5860
|
+
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
5861
|
+
}
|
|
5862
|
+
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
5656
5863
|
}
|
|
5657
5864
|
|
|
5658
|
-
var
|
|
5659
|
-
if (typeof str === 'symbol') {
|
|
5660
|
-
string = Symbol.prototype.toString.call(str);
|
|
5661
|
-
} else if (typeof str !== 'string') {
|
|
5662
|
-
string = String(str);
|
|
5663
|
-
}
|
|
5865
|
+
var values = [];
|
|
5664
5866
|
|
|
5665
|
-
if (
|
|
5666
|
-
return
|
|
5667
|
-
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
5668
|
-
});
|
|
5867
|
+
if (typeof obj === 'undefined') {
|
|
5868
|
+
return values;
|
|
5669
5869
|
}
|
|
5670
5870
|
|
|
5671
|
-
var
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
5682
|
-
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
5683
|
-
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
5684
|
-
) {
|
|
5685
|
-
out += string.charAt(i);
|
|
5686
|
-
continue;
|
|
5687
|
-
}
|
|
5871
|
+
var objKeys;
|
|
5872
|
+
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
5873
|
+
// we need to join elements in
|
|
5874
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
|
|
5875
|
+
} else if (isArray(filter)) {
|
|
5876
|
+
objKeys = filter;
|
|
5877
|
+
} else {
|
|
5878
|
+
var keys = Object.keys(obj);
|
|
5879
|
+
objKeys = sort ? keys.sort(sort) : keys;
|
|
5880
|
+
}
|
|
5688
5881
|
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
}
|
|
5882
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
|
5883
|
+
var key = objKeys[i];
|
|
5884
|
+
var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
|
|
5693
5885
|
|
|
5694
|
-
if (
|
|
5695
|
-
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
|
5886
|
+
if (skipNulls && value === null) {
|
|
5696
5887
|
continue;
|
|
5697
5888
|
}
|
|
5698
5889
|
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
}
|
|
5890
|
+
var keyPrefix = isArray(obj)
|
|
5891
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
|
|
5892
|
+
: prefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
5703
5893
|
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5894
|
+
sideChannel.set(object, true);
|
|
5895
|
+
var valueSideChannel = getSideChannel();
|
|
5896
|
+
pushToArray(values, stringify(
|
|
5897
|
+
value,
|
|
5898
|
+
keyPrefix,
|
|
5899
|
+
generateArrayPrefix,
|
|
5900
|
+
strictNullHandling,
|
|
5901
|
+
skipNulls,
|
|
5902
|
+
encoder,
|
|
5903
|
+
filter,
|
|
5904
|
+
sort,
|
|
5905
|
+
allowDots,
|
|
5906
|
+
serializeDate,
|
|
5907
|
+
format,
|
|
5908
|
+
formatter,
|
|
5909
|
+
encodeValuesOnly,
|
|
5910
|
+
charset,
|
|
5911
|
+
valueSideChannel
|
|
5912
|
+
));
|
|
5710
5913
|
}
|
|
5711
5914
|
|
|
5712
|
-
return
|
|
5915
|
+
return values;
|
|
5713
5916
|
};
|
|
5714
5917
|
|
|
5715
|
-
var
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
for (var i = 0; i < queue.length; ++i) {
|
|
5720
|
-
var item = queue[i];
|
|
5721
|
-
var obj = item.obj[item.prop];
|
|
5722
|
-
|
|
5723
|
-
var keys = Object.keys(obj);
|
|
5724
|
-
for (var j = 0; j < keys.length; ++j) {
|
|
5725
|
-
var key = keys[j];
|
|
5726
|
-
var val = obj[key];
|
|
5727
|
-
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
5728
|
-
queue.push({ obj: obj, prop: key });
|
|
5729
|
-
refs.push(val);
|
|
5730
|
-
}
|
|
5731
|
-
}
|
|
5918
|
+
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
5919
|
+
if (!opts) {
|
|
5920
|
+
return defaults;
|
|
5732
5921
|
}
|
|
5733
5922
|
|
|
5734
|
-
|
|
5923
|
+
if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
|
|
5924
|
+
throw new TypeError('Encoder has to be a function.');
|
|
5925
|
+
}
|
|
5735
5926
|
|
|
5736
|
-
|
|
5737
|
-
|
|
5927
|
+
var charset = opts.charset || defaults.charset;
|
|
5928
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
5929
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
5930
|
+
}
|
|
5738
5931
|
|
|
5739
|
-
var
|
|
5740
|
-
|
|
5741
|
-
|
|
5932
|
+
var format = formats['default'];
|
|
5933
|
+
if (typeof opts.format !== 'undefined') {
|
|
5934
|
+
if (!has.call(formats.formatters, opts.format)) {
|
|
5935
|
+
throw new TypeError('Unknown format option provided.');
|
|
5936
|
+
}
|
|
5937
|
+
format = opts.format;
|
|
5938
|
+
}
|
|
5939
|
+
var formatter = formats.formatters[format];
|
|
5742
5940
|
|
|
5743
|
-
var
|
|
5744
|
-
if (
|
|
5745
|
-
|
|
5941
|
+
var filter = defaults.filter;
|
|
5942
|
+
if (typeof opts.filter === 'function' || isArray(opts.filter)) {
|
|
5943
|
+
filter = opts.filter;
|
|
5746
5944
|
}
|
|
5747
5945
|
|
|
5748
|
-
return
|
|
5946
|
+
return {
|
|
5947
|
+
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
5948
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
5949
|
+
charset: charset,
|
|
5950
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
5951
|
+
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
5952
|
+
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
5953
|
+
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
5954
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
5955
|
+
filter: filter,
|
|
5956
|
+
format: format,
|
|
5957
|
+
formatter: formatter,
|
|
5958
|
+
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
|
5959
|
+
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
|
5960
|
+
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
|
5961
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
5962
|
+
};
|
|
5749
5963
|
};
|
|
5750
5964
|
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5965
|
+
module.exports = function (object, opts) {
|
|
5966
|
+
var obj = object;
|
|
5967
|
+
var options = normalizeStringifyOptions(opts);
|
|
5754
5968
|
|
|
5755
|
-
var
|
|
5756
|
-
|
|
5757
|
-
var mapped = [];
|
|
5758
|
-
for (var i = 0; i < val.length; i += 1) {
|
|
5759
|
-
mapped.push(fn(val[i]));
|
|
5760
|
-
}
|
|
5761
|
-
return mapped;
|
|
5762
|
-
}
|
|
5763
|
-
return fn(val);
|
|
5764
|
-
};
|
|
5969
|
+
var objKeys;
|
|
5970
|
+
var filter;
|
|
5765
5971
|
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
isBuffer: isBuffer,
|
|
5774
|
-
isRegExp: isRegExp,
|
|
5775
|
-
maybeMap: maybeMap,
|
|
5776
|
-
merge: merge
|
|
5777
|
-
};
|
|
5972
|
+
if (typeof options.filter === 'function') {
|
|
5973
|
+
filter = options.filter;
|
|
5974
|
+
obj = filter('', obj);
|
|
5975
|
+
} else if (isArray(options.filter)) {
|
|
5976
|
+
filter = options.filter;
|
|
5977
|
+
objKeys = filter;
|
|
5978
|
+
}
|
|
5778
5979
|
|
|
5980
|
+
var keys = [];
|
|
5779
5981
|
|
|
5780
|
-
|
|
5982
|
+
if (typeof obj !== 'object' || obj === null) {
|
|
5983
|
+
return '';
|
|
5984
|
+
}
|
|
5781
5985
|
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5986
|
+
var arrayFormat;
|
|
5987
|
+
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
|
5988
|
+
arrayFormat = opts.arrayFormat;
|
|
5989
|
+
} else if (opts && 'indices' in opts) {
|
|
5990
|
+
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
5991
|
+
} else {
|
|
5992
|
+
arrayFormat = 'indices';
|
|
5993
|
+
}
|
|
5788
5994
|
|
|
5789
|
-
|
|
5995
|
+
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
5790
5996
|
|
|
5997
|
+
if (!objKeys) {
|
|
5998
|
+
objKeys = Object.keys(obj);
|
|
5999
|
+
}
|
|
5791
6000
|
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
6001
|
+
if (options.sort) {
|
|
6002
|
+
objKeys.sort(options.sort);
|
|
6003
|
+
}
|
|
5795
6004
|
|
|
5796
|
-
var
|
|
5797
|
-
var
|
|
5798
|
-
var
|
|
6005
|
+
var sideChannel = getSideChannel();
|
|
6006
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
|
6007
|
+
var key = objKeys[i];
|
|
5799
6008
|
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
6009
|
+
if (options.skipNulls && obj[key] === null) {
|
|
6010
|
+
continue;
|
|
6011
|
+
}
|
|
6012
|
+
pushToArray(keys, stringify(
|
|
6013
|
+
obj[key],
|
|
6014
|
+
key,
|
|
6015
|
+
generateArrayPrefix,
|
|
6016
|
+
options.strictNullHandling,
|
|
6017
|
+
options.skipNulls,
|
|
6018
|
+
options.encode ? options.encoder : null,
|
|
6019
|
+
options.filter,
|
|
6020
|
+
options.sort,
|
|
6021
|
+
options.allowDots,
|
|
6022
|
+
options.serializeDate,
|
|
6023
|
+
options.format,
|
|
6024
|
+
options.formatter,
|
|
6025
|
+
options.encodeValuesOnly,
|
|
6026
|
+
options.charset,
|
|
6027
|
+
sideChannel
|
|
6028
|
+
));
|
|
6029
|
+
}
|
|
5806
6030
|
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
* given key.
|
|
5810
|
-
*
|
|
5811
|
-
* That node is also moved to the head of the list, so that if it's accessed
|
|
5812
|
-
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
5813
|
-
* used nodes can be accessed relatively quickly.
|
|
5814
|
-
*/
|
|
5815
|
-
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
5816
|
-
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
5817
|
-
if (curr.key === key) {
|
|
5818
|
-
prev.next = curr.next;
|
|
5819
|
-
curr.next = list.next;
|
|
5820
|
-
list.next = curr; // eslint-disable-line no-param-reassign
|
|
5821
|
-
return curr;
|
|
5822
|
-
}
|
|
5823
|
-
}
|
|
5824
|
-
};
|
|
6031
|
+
var joined = keys.join(options.delimiter);
|
|
6032
|
+
var prefix = options.addQueryPrefix === true ? '?' : '';
|
|
5825
6033
|
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
// Prepend the new node to the beginning of the list
|
|
5836
|
-
objects.next = { // eslint-disable-line no-param-reassign
|
|
5837
|
-
key: key,
|
|
5838
|
-
next: objects.next,
|
|
5839
|
-
value: value
|
|
5840
|
-
};
|
|
5841
|
-
}
|
|
5842
|
-
};
|
|
5843
|
-
var listHas = function (objects, key) {
|
|
5844
|
-
return !!listGetNode(objects, key);
|
|
5845
|
-
};
|
|
6034
|
+
if (options.charsetSentinel) {
|
|
6035
|
+
if (options.charset === 'iso-8859-1') {
|
|
6036
|
+
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
|
|
6037
|
+
prefix += 'utf8=%26%2310003%3B&';
|
|
6038
|
+
} else {
|
|
6039
|
+
// encodeURIComponent('✓')
|
|
6040
|
+
prefix += 'utf8=%E2%9C%93&';
|
|
6041
|
+
}
|
|
6042
|
+
}
|
|
5846
6043
|
|
|
5847
|
-
|
|
5848
|
-
var $wm;
|
|
5849
|
-
var $m;
|
|
5850
|
-
var $o;
|
|
5851
|
-
var channel = {
|
|
5852
|
-
assert: function (key) {
|
|
5853
|
-
if (!channel.has(key)) {
|
|
5854
|
-
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
5855
|
-
}
|
|
5856
|
-
},
|
|
5857
|
-
get: function (key) { // eslint-disable-line consistent-return
|
|
5858
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
5859
|
-
if ($wm) {
|
|
5860
|
-
return $weakMapGet($wm, key);
|
|
5861
|
-
}
|
|
5862
|
-
} else if ($Map) {
|
|
5863
|
-
if ($m) {
|
|
5864
|
-
return $mapGet($m, key);
|
|
5865
|
-
}
|
|
5866
|
-
} else {
|
|
5867
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
5868
|
-
return listGet($o, key);
|
|
5869
|
-
}
|
|
5870
|
-
}
|
|
5871
|
-
},
|
|
5872
|
-
has: function (key) {
|
|
5873
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
5874
|
-
if ($wm) {
|
|
5875
|
-
return $weakMapHas($wm, key);
|
|
5876
|
-
}
|
|
5877
|
-
} else if ($Map) {
|
|
5878
|
-
if ($m) {
|
|
5879
|
-
return $mapHas($m, key);
|
|
5880
|
-
}
|
|
5881
|
-
} else {
|
|
5882
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
5883
|
-
return listHas($o, key);
|
|
5884
|
-
}
|
|
5885
|
-
}
|
|
5886
|
-
return false;
|
|
5887
|
-
},
|
|
5888
|
-
set: function (key, value) {
|
|
5889
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
5890
|
-
if (!$wm) {
|
|
5891
|
-
$wm = new $WeakMap();
|
|
5892
|
-
}
|
|
5893
|
-
$weakMapSet($wm, key, value);
|
|
5894
|
-
} else if ($Map) {
|
|
5895
|
-
if (!$m) {
|
|
5896
|
-
$m = new $Map();
|
|
5897
|
-
}
|
|
5898
|
-
$mapSet($m, key, value);
|
|
5899
|
-
} else {
|
|
5900
|
-
if (!$o) {
|
|
5901
|
-
/*
|
|
5902
|
-
* Initialize the linked list as an empty node, so that we don't have
|
|
5903
|
-
* to special-case handling of the first node: we can always refer to
|
|
5904
|
-
* it as (previous node).next, instead of something like (list).head
|
|
5905
|
-
*/
|
|
5906
|
-
$o = { key: {}, next: null };
|
|
5907
|
-
}
|
|
5908
|
-
listSet($o, key, value);
|
|
5909
|
-
}
|
|
5910
|
-
}
|
|
5911
|
-
};
|
|
5912
|
-
return channel;
|
|
6044
|
+
return joined.length > 0 ? prefix + joined : '';
|
|
5913
6045
|
};
|
|
5914
6046
|
|
|
5915
6047
|
|
|
5916
6048
|
/***/ }),
|
|
5917
6049
|
|
|
5918
|
-
/***/ "../node_modules/
|
|
5919
|
-
|
|
5920
|
-
!*** ../node_modules/
|
|
5921
|
-
|
|
6050
|
+
/***/ "../node_modules/qs/lib/utils.js":
|
|
6051
|
+
/*!***************************************!*\
|
|
6052
|
+
!*** ../node_modules/qs/lib/utils.js ***!
|
|
6053
|
+
\***************************************/
|
|
5922
6054
|
/*! no static exports found */
|
|
5923
6055
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5924
6056
|
|
|
5925
6057
|
"use strict";
|
|
5926
6058
|
|
|
5927
6059
|
|
|
5928
|
-
var
|
|
6060
|
+
var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
|
|
5929
6061
|
|
|
5930
|
-
var
|
|
5931
|
-
var
|
|
5932
|
-
var $TypeError = TypeError;
|
|
6062
|
+
var has = Object.prototype.hasOwnProperty;
|
|
6063
|
+
var isArray = Array.isArray;
|
|
5933
6064
|
|
|
5934
|
-
|
|
5935
|
-
var
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
};
|
|
6065
|
+
var hexTable = (function () {
|
|
6066
|
+
var array = [];
|
|
6067
|
+
for (var i = 0; i < 256; ++i) {
|
|
6068
|
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
6069
|
+
}
|
|
5940
6070
|
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
try {
|
|
5944
|
-
$gOPD({}, '');
|
|
5945
|
-
} catch (e) {
|
|
5946
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
5947
|
-
}
|
|
5948
|
-
}
|
|
6071
|
+
return array;
|
|
6072
|
+
}());
|
|
5949
6073
|
|
|
5950
|
-
var
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
var
|
|
5954
|
-
? (function () {
|
|
5955
|
-
try {
|
|
5956
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
5957
|
-
arguments.callee; // IE 8 does not throw here
|
|
5958
|
-
return throwTypeError;
|
|
5959
|
-
} catch (calleeThrows) {
|
|
5960
|
-
try {
|
|
5961
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
5962
|
-
return $gOPD(arguments, 'callee').get;
|
|
5963
|
-
} catch (gOPDthrows) {
|
|
5964
|
-
return throwTypeError;
|
|
5965
|
-
}
|
|
5966
|
-
}
|
|
5967
|
-
}())
|
|
5968
|
-
: throwTypeError;
|
|
6074
|
+
var compactQueue = function compactQueue(queue) {
|
|
6075
|
+
while (queue.length > 1) {
|
|
6076
|
+
var item = queue.pop();
|
|
6077
|
+
var obj = item.obj[item.prop];
|
|
5969
6078
|
|
|
5970
|
-
|
|
6079
|
+
if (isArray(obj)) {
|
|
6080
|
+
var compacted = [];
|
|
5971
6081
|
|
|
5972
|
-
var
|
|
6082
|
+
for (var j = 0; j < obj.length; ++j) {
|
|
6083
|
+
if (typeof obj[j] !== 'undefined') {
|
|
6084
|
+
compacted.push(obj[j]);
|
|
6085
|
+
}
|
|
6086
|
+
}
|
|
5973
6087
|
|
|
5974
|
-
|
|
6088
|
+
item.obj[item.prop] = compacted;
|
|
6089
|
+
}
|
|
6090
|
+
}
|
|
6091
|
+
};
|
|
5975
6092
|
|
|
5976
|
-
var
|
|
6093
|
+
var arrayToObject = function arrayToObject(source, options) {
|
|
6094
|
+
var obj = options && options.plainObjects ? Object.create(null) : {};
|
|
6095
|
+
for (var i = 0; i < source.length; ++i) {
|
|
6096
|
+
if (typeof source[i] !== 'undefined') {
|
|
6097
|
+
obj[i] = source[i];
|
|
6098
|
+
}
|
|
6099
|
+
}
|
|
5977
6100
|
|
|
5978
|
-
|
|
5979
|
-
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
5980
|
-
'%Array%': Array,
|
|
5981
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
5982
|
-
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
5983
|
-
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
5984
|
-
'%AsyncFunction%': needsEval,
|
|
5985
|
-
'%AsyncGenerator%': needsEval,
|
|
5986
|
-
'%AsyncGeneratorFunction%': needsEval,
|
|
5987
|
-
'%AsyncIteratorPrototype%': needsEval,
|
|
5988
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
5989
|
-
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
5990
|
-
'%Boolean%': Boolean,
|
|
5991
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
5992
|
-
'%Date%': Date,
|
|
5993
|
-
'%decodeURI%': decodeURI,
|
|
5994
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
5995
|
-
'%encodeURI%': encodeURI,
|
|
5996
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
5997
|
-
'%Error%': Error,
|
|
5998
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
5999
|
-
'%EvalError%': EvalError,
|
|
6000
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
6001
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
6002
|
-
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
6003
|
-
'%Function%': $Function,
|
|
6004
|
-
'%GeneratorFunction%': needsEval,
|
|
6005
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
6006
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
6007
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
6008
|
-
'%isFinite%': isFinite,
|
|
6009
|
-
'%isNaN%': isNaN,
|
|
6010
|
-
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
6011
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
6012
|
-
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
6013
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
6014
|
-
'%Math%': Math,
|
|
6015
|
-
'%Number%': Number,
|
|
6016
|
-
'%Object%': Object,
|
|
6017
|
-
'%parseFloat%': parseFloat,
|
|
6018
|
-
'%parseInt%': parseInt,
|
|
6019
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
6020
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
6021
|
-
'%RangeError%': RangeError,
|
|
6022
|
-
'%ReferenceError%': ReferenceError,
|
|
6023
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
6024
|
-
'%RegExp%': RegExp,
|
|
6025
|
-
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
6026
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
6027
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
6028
|
-
'%String%': String,
|
|
6029
|
-
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
6030
|
-
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
6031
|
-
'%SyntaxError%': $SyntaxError,
|
|
6032
|
-
'%ThrowTypeError%': ThrowTypeError,
|
|
6033
|
-
'%TypedArray%': TypedArray,
|
|
6034
|
-
'%TypeError%': $TypeError,
|
|
6035
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
6036
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
6037
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
6038
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
6039
|
-
'%URIError%': URIError,
|
|
6040
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
6041
|
-
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
6042
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
6101
|
+
return obj;
|
|
6043
6102
|
};
|
|
6044
6103
|
|
|
6045
|
-
var
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
value = getEvalledConstructor('function* () {}');
|
|
6051
|
-
} else if (name === '%AsyncGeneratorFunction%') {
|
|
6052
|
-
value = getEvalledConstructor('async function* () {}');
|
|
6053
|
-
} else if (name === '%AsyncGenerator%') {
|
|
6054
|
-
var fn = doEval('%AsyncGeneratorFunction%');
|
|
6055
|
-
if (fn) {
|
|
6056
|
-
value = fn.prototype;
|
|
6057
|
-
}
|
|
6058
|
-
} else if (name === '%AsyncIteratorPrototype%') {
|
|
6059
|
-
var gen = doEval('%AsyncGenerator%');
|
|
6060
|
-
if (gen) {
|
|
6061
|
-
value = getProto(gen.prototype);
|
|
6062
|
-
}
|
|
6063
|
-
}
|
|
6104
|
+
var merge = function merge(target, source, options) {
|
|
6105
|
+
/* eslint no-param-reassign: 0 */
|
|
6106
|
+
if (!source) {
|
|
6107
|
+
return target;
|
|
6108
|
+
}
|
|
6064
6109
|
|
|
6065
|
-
|
|
6110
|
+
if (typeof source !== 'object') {
|
|
6111
|
+
if (isArray(target)) {
|
|
6112
|
+
target.push(source);
|
|
6113
|
+
} else if (target && typeof target === 'object') {
|
|
6114
|
+
if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
|
|
6115
|
+
target[source] = true;
|
|
6116
|
+
}
|
|
6117
|
+
} else {
|
|
6118
|
+
return [target, source];
|
|
6119
|
+
}
|
|
6066
6120
|
|
|
6067
|
-
|
|
6068
|
-
}
|
|
6121
|
+
return target;
|
|
6122
|
+
}
|
|
6069
6123
|
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
6074
|
-
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
6075
|
-
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
6076
|
-
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
6077
|
-
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
6078
|
-
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
6079
|
-
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
6080
|
-
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
6081
|
-
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
6082
|
-
'%DatePrototype%': ['Date', 'prototype'],
|
|
6083
|
-
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
6084
|
-
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
6085
|
-
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
6086
|
-
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
6087
|
-
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
6088
|
-
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
6089
|
-
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
6090
|
-
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
6091
|
-
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
6092
|
-
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
6093
|
-
'%JSONParse%': ['JSON', 'parse'],
|
|
6094
|
-
'%JSONStringify%': ['JSON', 'stringify'],
|
|
6095
|
-
'%MapPrototype%': ['Map', 'prototype'],
|
|
6096
|
-
'%NumberPrototype%': ['Number', 'prototype'],
|
|
6097
|
-
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
6098
|
-
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
6099
|
-
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
6100
|
-
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
6101
|
-
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
6102
|
-
'%Promise_all%': ['Promise', 'all'],
|
|
6103
|
-
'%Promise_reject%': ['Promise', 'reject'],
|
|
6104
|
-
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
6105
|
-
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
6106
|
-
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
6107
|
-
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
6108
|
-
'%SetPrototype%': ['Set', 'prototype'],
|
|
6109
|
-
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
6110
|
-
'%StringPrototype%': ['String', 'prototype'],
|
|
6111
|
-
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
6112
|
-
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
6113
|
-
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
6114
|
-
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
6115
|
-
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
6116
|
-
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
6117
|
-
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
6118
|
-
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
6119
|
-
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
6120
|
-
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
6121
|
-
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
6122
|
-
};
|
|
6124
|
+
if (!target || typeof target !== 'object') {
|
|
6125
|
+
return [target].concat(source);
|
|
6126
|
+
}
|
|
6123
6127
|
|
|
6124
|
-
var
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
6129
|
-
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
6128
|
+
var mergeTarget = target;
|
|
6129
|
+
if (isArray(target) && !isArray(source)) {
|
|
6130
|
+
mergeTarget = arrayToObject(target, options);
|
|
6131
|
+
}
|
|
6130
6132
|
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
var
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
return result;
|
|
6147
|
-
};
|
|
6148
|
-
/* end adaptation */
|
|
6133
|
+
if (isArray(target) && isArray(source)) {
|
|
6134
|
+
source.forEach(function (item, i) {
|
|
6135
|
+
if (has.call(target, i)) {
|
|
6136
|
+
var targetItem = target[i];
|
|
6137
|
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
6138
|
+
target[i] = merge(targetItem, item, options);
|
|
6139
|
+
} else {
|
|
6140
|
+
target.push(item);
|
|
6141
|
+
}
|
|
6142
|
+
} else {
|
|
6143
|
+
target[i] = item;
|
|
6144
|
+
}
|
|
6145
|
+
});
|
|
6146
|
+
return target;
|
|
6147
|
+
}
|
|
6149
6148
|
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
var alias;
|
|
6153
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
6154
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
6155
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
6156
|
-
}
|
|
6157
|
-
|
|
6158
|
-
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
6159
|
-
var value = INTRINSICS[intrinsicName];
|
|
6160
|
-
if (value === needsEval) {
|
|
6161
|
-
value = doEval(intrinsicName);
|
|
6162
|
-
}
|
|
6163
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
6164
|
-
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
6165
|
-
}
|
|
6149
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
6150
|
+
var value = source[key];
|
|
6166
6151
|
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6152
|
+
if (has.call(acc, key)) {
|
|
6153
|
+
acc[key] = merge(acc[key], value, options);
|
|
6154
|
+
} else {
|
|
6155
|
+
acc[key] = value;
|
|
6156
|
+
}
|
|
6157
|
+
return acc;
|
|
6158
|
+
}, mergeTarget);
|
|
6159
|
+
};
|
|
6173
6160
|
|
|
6174
|
-
|
|
6161
|
+
var assign = function assignSingleSource(target, source) {
|
|
6162
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
6163
|
+
acc[key] = source[key];
|
|
6164
|
+
return acc;
|
|
6165
|
+
}, target);
|
|
6175
6166
|
};
|
|
6176
6167
|
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6168
|
+
var decode = function (str, decoder, charset) {
|
|
6169
|
+
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
6170
|
+
if (charset === 'iso-8859-1') {
|
|
6171
|
+
// unescape never throws, no try...catch needed:
|
|
6172
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
6173
|
+
}
|
|
6174
|
+
// utf-8
|
|
6175
|
+
try {
|
|
6176
|
+
return decodeURIComponent(strWithoutPlus);
|
|
6177
|
+
} catch (e) {
|
|
6178
|
+
return strWithoutPlus;
|
|
6179
|
+
}
|
|
6180
|
+
};
|
|
6184
6181
|
|
|
6185
|
-
|
|
6186
|
-
|
|
6182
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
6183
|
+
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
6184
|
+
// It has been adapted here for stricter adherence to RFC 3986
|
|
6185
|
+
if (str.length === 0) {
|
|
6186
|
+
return str;
|
|
6187
|
+
}
|
|
6187
6188
|
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6189
|
+
var string = str;
|
|
6190
|
+
if (typeof str === 'symbol') {
|
|
6191
|
+
string = Symbol.prototype.toString.call(str);
|
|
6192
|
+
} else if (typeof str !== 'string') {
|
|
6193
|
+
string = String(str);
|
|
6194
|
+
}
|
|
6192
6195
|
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6196
|
+
if (charset === 'iso-8859-1') {
|
|
6197
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
6198
|
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
6199
|
+
});
|
|
6200
|
+
}
|
|
6198
6201
|
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
var last = $strSlice(part, -1);
|
|
6203
|
-
if (
|
|
6204
|
-
(
|
|
6205
|
-
(first === '"' || first === "'" || first === '`')
|
|
6206
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
6207
|
-
)
|
|
6208
|
-
&& first !== last
|
|
6209
|
-
) {
|
|
6210
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
6211
|
-
}
|
|
6212
|
-
if (part === 'constructor' || !isOwn) {
|
|
6213
|
-
skipFurtherCaching = true;
|
|
6214
|
-
}
|
|
6202
|
+
var out = '';
|
|
6203
|
+
for (var i = 0; i < string.length; ++i) {
|
|
6204
|
+
var c = string.charCodeAt(i);
|
|
6215
6205
|
|
|
6216
|
-
|
|
6217
|
-
|
|
6206
|
+
if (
|
|
6207
|
+
c === 0x2D // -
|
|
6208
|
+
|| c === 0x2E // .
|
|
6209
|
+
|| c === 0x5F // _
|
|
6210
|
+
|| c === 0x7E // ~
|
|
6211
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
6212
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
6213
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
6214
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
6215
|
+
) {
|
|
6216
|
+
out += string.charAt(i);
|
|
6217
|
+
continue;
|
|
6218
|
+
}
|
|
6218
6219
|
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
if (!allowMissing) {
|
|
6224
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
6225
|
-
}
|
|
6226
|
-
return void undefined;
|
|
6227
|
-
}
|
|
6228
|
-
if ($gOPD && (i + 1) >= parts.length) {
|
|
6229
|
-
var desc = $gOPD(value, part);
|
|
6230
|
-
isOwn = !!desc;
|
|
6220
|
+
if (c < 0x80) {
|
|
6221
|
+
out = out + hexTable[c];
|
|
6222
|
+
continue;
|
|
6223
|
+
}
|
|
6231
6224
|
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
// uphold the illusion by pretending to see that original data
|
|
6237
|
-
// property, i.e., returning the value rather than the getter
|
|
6238
|
-
// itself.
|
|
6239
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
6240
|
-
value = desc.get;
|
|
6241
|
-
} else {
|
|
6242
|
-
value = value[part];
|
|
6243
|
-
}
|
|
6244
|
-
} else {
|
|
6245
|
-
isOwn = hasOwn(value, part);
|
|
6246
|
-
value = value[part];
|
|
6247
|
-
}
|
|
6225
|
+
if (c < 0x800) {
|
|
6226
|
+
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
|
6227
|
+
continue;
|
|
6228
|
+
}
|
|
6248
6229
|
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
}
|
|
6254
|
-
return value;
|
|
6255
|
-
};
|
|
6230
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
6231
|
+
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
|
6232
|
+
continue;
|
|
6233
|
+
}
|
|
6256
6234
|
|
|
6235
|
+
i += 1;
|
|
6236
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
6237
|
+
out += hexTable[0xF0 | (c >> 18)]
|
|
6238
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
6239
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
6240
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
6241
|
+
}
|
|
6257
6242
|
|
|
6258
|
-
|
|
6243
|
+
return out;
|
|
6244
|
+
};
|
|
6259
6245
|
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
\*************************************************************************/
|
|
6264
|
-
/*! no static exports found */
|
|
6265
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6246
|
+
var compact = function compact(value) {
|
|
6247
|
+
var queue = [{ obj: { o: value }, prop: 'o' }];
|
|
6248
|
+
var refs = [];
|
|
6266
6249
|
|
|
6267
|
-
var
|
|
6268
|
-
var
|
|
6269
|
-
var
|
|
6270
|
-
var mapForEach = hasMap && Map.prototype.forEach;
|
|
6271
|
-
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
6272
|
-
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
6273
|
-
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
6274
|
-
var setForEach = hasSet && Set.prototype.forEach;
|
|
6275
|
-
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
6276
|
-
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
6277
|
-
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
6278
|
-
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
6279
|
-
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
6280
|
-
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
6281
|
-
var booleanValueOf = Boolean.prototype.valueOf;
|
|
6282
|
-
var objectToString = Object.prototype.toString;
|
|
6283
|
-
var functionToString = Function.prototype.toString;
|
|
6284
|
-
var match = String.prototype.match;
|
|
6285
|
-
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
6286
|
-
var gOPS = Object.getOwnPropertySymbols;
|
|
6287
|
-
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
6288
|
-
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
6250
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
6251
|
+
var item = queue[i];
|
|
6252
|
+
var obj = item.obj[item.prop];
|
|
6289
6253
|
|
|
6290
|
-
var
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6254
|
+
var keys = Object.keys(obj);
|
|
6255
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
6256
|
+
var key = keys[j];
|
|
6257
|
+
var val = obj[key];
|
|
6258
|
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
6259
|
+
queue.push({ obj: obj, prop: key });
|
|
6260
|
+
refs.push(val);
|
|
6261
|
+
}
|
|
6294
6262
|
}
|
|
6295
|
-
|
|
6296
|
-
);
|
|
6263
|
+
}
|
|
6297
6264
|
|
|
6298
|
-
|
|
6299
|
-
var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
|
|
6300
|
-
var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol' ? Symbol.toStringTag : null;
|
|
6265
|
+
compactQueue(queue);
|
|
6301
6266
|
|
|
6302
|
-
|
|
6303
|
-
|
|
6267
|
+
return value;
|
|
6268
|
+
};
|
|
6304
6269
|
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
if (
|
|
6309
|
-
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
6310
|
-
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
6311
|
-
: opts.maxStringLength !== null
|
|
6312
|
-
)
|
|
6313
|
-
) {
|
|
6314
|
-
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
6315
|
-
}
|
|
6316
|
-
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
6317
|
-
if (typeof customInspect !== 'boolean') {
|
|
6318
|
-
throw new TypeError('option "customInspect", if provided, must be `true` or `false`');
|
|
6319
|
-
}
|
|
6270
|
+
var isRegExp = function isRegExp(obj) {
|
|
6271
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
6272
|
+
};
|
|
6320
6273
|
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
&& opts.indent !== '\t'
|
|
6325
|
-
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
6326
|
-
) {
|
|
6327
|
-
throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
|
|
6274
|
+
var isBuffer = function isBuffer(obj) {
|
|
6275
|
+
if (!obj || typeof obj !== 'object') {
|
|
6276
|
+
return false;
|
|
6328
6277
|
}
|
|
6329
6278
|
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
}
|
|
6333
|
-
if (obj === null) {
|
|
6334
|
-
return 'null';
|
|
6335
|
-
}
|
|
6336
|
-
if (typeof obj === 'boolean') {
|
|
6337
|
-
return obj ? 'true' : 'false';
|
|
6338
|
-
}
|
|
6339
|
-
|
|
6340
|
-
if (typeof obj === 'string') {
|
|
6341
|
-
return inspectString(obj, opts);
|
|
6342
|
-
}
|
|
6343
|
-
if (typeof obj === 'number') {
|
|
6344
|
-
if (obj === 0) {
|
|
6345
|
-
return Infinity / obj > 0 ? '0' : '-0';
|
|
6346
|
-
}
|
|
6347
|
-
return String(obj);
|
|
6348
|
-
}
|
|
6349
|
-
if (typeof obj === 'bigint') {
|
|
6350
|
-
return String(obj) + 'n';
|
|
6351
|
-
}
|
|
6352
|
-
|
|
6353
|
-
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
6354
|
-
if (typeof depth === 'undefined') { depth = 0; }
|
|
6355
|
-
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
6356
|
-
return isArray(obj) ? '[Array]' : '[Object]';
|
|
6357
|
-
}
|
|
6358
|
-
|
|
6359
|
-
var indent = getIndent(opts, depth);
|
|
6279
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
6280
|
+
};
|
|
6360
6281
|
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
return '[Circular]';
|
|
6365
|
-
}
|
|
6282
|
+
var combine = function combine(a, b) {
|
|
6283
|
+
return [].concat(a, b);
|
|
6284
|
+
};
|
|
6366
6285
|
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
|
|
6372
|
-
if (noIndent) {
|
|
6373
|
-
var newOpts = {
|
|
6374
|
-
depth: opts.depth
|
|
6375
|
-
};
|
|
6376
|
-
if (has(opts, 'quoteStyle')) {
|
|
6377
|
-
newOpts.quoteStyle = opts.quoteStyle;
|
|
6378
|
-
}
|
|
6379
|
-
return inspect_(value, newOpts, depth + 1, seen);
|
|
6286
|
+
var maybeMap = function maybeMap(val, fn) {
|
|
6287
|
+
if (isArray(val)) {
|
|
6288
|
+
var mapped = [];
|
|
6289
|
+
for (var i = 0; i < val.length; i += 1) {
|
|
6290
|
+
mapped.push(fn(val[i]));
|
|
6380
6291
|
}
|
|
6381
|
-
return
|
|
6292
|
+
return mapped;
|
|
6382
6293
|
}
|
|
6294
|
+
return fn(val);
|
|
6295
|
+
};
|
|
6383
6296
|
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
var attrs = obj.attributes || [];
|
|
6396
|
-
for (var i = 0; i < attrs.length; i++) {
|
|
6397
|
-
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
6398
|
-
}
|
|
6399
|
-
s += '>';
|
|
6400
|
-
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
6401
|
-
s += '</' + String(obj.nodeName).toLowerCase() + '>';
|
|
6402
|
-
return s;
|
|
6403
|
-
}
|
|
6404
|
-
if (isArray(obj)) {
|
|
6405
|
-
if (obj.length === 0) { return '[]'; }
|
|
6406
|
-
var xs = arrObjKeys(obj, inspect);
|
|
6407
|
-
if (indent && !singleLineValues(xs)) {
|
|
6408
|
-
return '[' + indentedJoin(xs, indent) + ']';
|
|
6409
|
-
}
|
|
6410
|
-
return '[ ' + xs.join(', ') + ' ]';
|
|
6411
|
-
}
|
|
6412
|
-
if (isError(obj)) {
|
|
6413
|
-
var parts = arrObjKeys(obj, inspect);
|
|
6414
|
-
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
6415
|
-
return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
|
|
6416
|
-
}
|
|
6417
|
-
if (typeof obj === 'object' && customInspect) {
|
|
6418
|
-
if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
|
|
6419
|
-
return obj[inspectSymbol]();
|
|
6420
|
-
} else if (typeof obj.inspect === 'function') {
|
|
6421
|
-
return obj.inspect();
|
|
6422
|
-
}
|
|
6423
|
-
}
|
|
6424
|
-
if (isMap(obj)) {
|
|
6425
|
-
var mapParts = [];
|
|
6426
|
-
mapForEach.call(obj, function (value, key) {
|
|
6427
|
-
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
6428
|
-
});
|
|
6429
|
-
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
6430
|
-
}
|
|
6431
|
-
if (isSet(obj)) {
|
|
6432
|
-
var setParts = [];
|
|
6433
|
-
setForEach.call(obj, function (value) {
|
|
6434
|
-
setParts.push(inspect(value, obj));
|
|
6435
|
-
});
|
|
6436
|
-
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
6437
|
-
}
|
|
6438
|
-
if (isWeakMap(obj)) {
|
|
6439
|
-
return weakCollectionOf('WeakMap');
|
|
6440
|
-
}
|
|
6441
|
-
if (isWeakSet(obj)) {
|
|
6442
|
-
return weakCollectionOf('WeakSet');
|
|
6443
|
-
}
|
|
6444
|
-
if (isWeakRef(obj)) {
|
|
6445
|
-
return weakCollectionOf('WeakRef');
|
|
6446
|
-
}
|
|
6447
|
-
if (isNumber(obj)) {
|
|
6448
|
-
return markBoxed(inspect(Number(obj)));
|
|
6449
|
-
}
|
|
6450
|
-
if (isBigInt(obj)) {
|
|
6451
|
-
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
6452
|
-
}
|
|
6453
|
-
if (isBoolean(obj)) {
|
|
6454
|
-
return markBoxed(booleanValueOf.call(obj));
|
|
6455
|
-
}
|
|
6456
|
-
if (isString(obj)) {
|
|
6457
|
-
return markBoxed(inspect(String(obj)));
|
|
6458
|
-
}
|
|
6459
|
-
if (!isDate(obj) && !isRegExp(obj)) {
|
|
6460
|
-
var ys = arrObjKeys(obj, inspect);
|
|
6461
|
-
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
6462
|
-
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
6463
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
|
|
6464
|
-
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
6465
|
-
var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
|
|
6466
|
-
if (ys.length === 0) { return tag + '{}'; }
|
|
6467
|
-
if (indent) {
|
|
6468
|
-
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
6469
|
-
}
|
|
6470
|
-
return tag + '{ ' + ys.join(', ') + ' }';
|
|
6471
|
-
}
|
|
6472
|
-
return String(obj);
|
|
6297
|
+
module.exports = {
|
|
6298
|
+
arrayToObject: arrayToObject,
|
|
6299
|
+
assign: assign,
|
|
6300
|
+
combine: combine,
|
|
6301
|
+
compact: compact,
|
|
6302
|
+
decode: decode,
|
|
6303
|
+
encode: encode,
|
|
6304
|
+
isBuffer: isBuffer,
|
|
6305
|
+
isRegExp: isRegExp,
|
|
6306
|
+
maybeMap: maybeMap,
|
|
6307
|
+
merge: merge
|
|
6473
6308
|
};
|
|
6474
6309
|
|
|
6475
|
-
function wrapQuotes(s, defaultStyle, opts) {
|
|
6476
|
-
var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
|
|
6477
|
-
return quoteChar + s + quoteChar;
|
|
6478
|
-
}
|
|
6479
6310
|
|
|
6480
|
-
|
|
6481
|
-
return String(s).replace(/"/g, '"');
|
|
6482
|
-
}
|
|
6311
|
+
/***/ }),
|
|
6483
6312
|
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
6313
|
+
/***/ "../node_modules/side-channel/index.js":
|
|
6314
|
+
/*!*********************************************!*\
|
|
6315
|
+
!*** ../node_modules/side-channel/index.js ***!
|
|
6316
|
+
\*********************************************/
|
|
6317
|
+
/*! no static exports found */
|
|
6318
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6491
6319
|
|
|
6492
|
-
|
|
6493
|
-
function isSymbol(obj) {
|
|
6494
|
-
if (typeof obj === 'symbol') {
|
|
6495
|
-
return true;
|
|
6496
|
-
}
|
|
6497
|
-
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
6498
|
-
return false;
|
|
6499
|
-
}
|
|
6500
|
-
try {
|
|
6501
|
-
symToString.call(obj);
|
|
6502
|
-
return true;
|
|
6503
|
-
} catch (e) {}
|
|
6504
|
-
return false;
|
|
6505
|
-
}
|
|
6320
|
+
"use strict";
|
|
6506
6321
|
|
|
6507
|
-
function isBigInt(obj) {
|
|
6508
|
-
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
6509
|
-
return false;
|
|
6510
|
-
}
|
|
6511
|
-
try {
|
|
6512
|
-
bigIntValueOf.call(obj);
|
|
6513
|
-
return true;
|
|
6514
|
-
} catch (e) {}
|
|
6515
|
-
return false;
|
|
6516
|
-
}
|
|
6517
6322
|
|
|
6518
|
-
var
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
}
|
|
6323
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
6324
|
+
var callBound = __webpack_require__(/*! call-bind/callBound */ "../node_modules/call-bind/callBound.js");
|
|
6325
|
+
var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/object-inspect/index.js");
|
|
6522
6326
|
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6327
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
6328
|
+
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
6329
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
6526
6330
|
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6331
|
+
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
6332
|
+
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
6333
|
+
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
6334
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
6335
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
6336
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
6533
6337
|
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6338
|
+
/*
|
|
6339
|
+
* This function traverses the list returning the node corresponding to the
|
|
6340
|
+
* given key.
|
|
6341
|
+
*
|
|
6342
|
+
* That node is also moved to the head of the list, so that if it's accessed
|
|
6343
|
+
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
6344
|
+
* used nodes can be accessed relatively quickly.
|
|
6345
|
+
*/
|
|
6346
|
+
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
6347
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
6348
|
+
if (curr.key === key) {
|
|
6349
|
+
prev.next = curr.next;
|
|
6350
|
+
curr.next = list.next;
|
|
6351
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
6352
|
+
return curr;
|
|
6353
|
+
}
|
|
6354
|
+
}
|
|
6355
|
+
};
|
|
6541
6356
|
|
|
6542
|
-
function
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
}
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
try {
|
|
6563
|
-
weakMapHas.call(x, weakMapHas);
|
|
6564
|
-
try {
|
|
6565
|
-
weakSetHas.call(x, weakSetHas);
|
|
6566
|
-
} catch (s) {
|
|
6567
|
-
return true;
|
|
6568
|
-
}
|
|
6569
|
-
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
6570
|
-
} catch (e) {}
|
|
6571
|
-
return false;
|
|
6572
|
-
}
|
|
6573
|
-
|
|
6574
|
-
function isWeakRef(x) {
|
|
6575
|
-
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
6576
|
-
return false;
|
|
6577
|
-
}
|
|
6578
|
-
try {
|
|
6579
|
-
weakRefDeref.call(x);
|
|
6580
|
-
return true;
|
|
6581
|
-
} catch (e) {}
|
|
6582
|
-
return false;
|
|
6583
|
-
}
|
|
6584
|
-
|
|
6585
|
-
function isSet(x) {
|
|
6586
|
-
if (!setSize || !x || typeof x !== 'object') {
|
|
6587
|
-
return false;
|
|
6588
|
-
}
|
|
6589
|
-
try {
|
|
6590
|
-
setSize.call(x);
|
|
6591
|
-
try {
|
|
6592
|
-
mapSize.call(x);
|
|
6593
|
-
} catch (m) {
|
|
6594
|
-
return true;
|
|
6595
|
-
}
|
|
6596
|
-
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
|
6597
|
-
} catch (e) {}
|
|
6598
|
-
return false;
|
|
6599
|
-
}
|
|
6600
|
-
|
|
6601
|
-
function isWeakSet(x) {
|
|
6602
|
-
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
6603
|
-
return false;
|
|
6604
|
-
}
|
|
6605
|
-
try {
|
|
6606
|
-
weakSetHas.call(x, weakSetHas);
|
|
6607
|
-
try {
|
|
6608
|
-
weakMapHas.call(x, weakMapHas);
|
|
6609
|
-
} catch (s) {
|
|
6610
|
-
return true;
|
|
6611
|
-
}
|
|
6612
|
-
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
6613
|
-
} catch (e) {}
|
|
6614
|
-
return false;
|
|
6615
|
-
}
|
|
6616
|
-
|
|
6617
|
-
function isElement(x) {
|
|
6618
|
-
if (!x || typeof x !== 'object') { return false; }
|
|
6619
|
-
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
6620
|
-
return true;
|
|
6621
|
-
}
|
|
6622
|
-
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
6623
|
-
}
|
|
6624
|
-
|
|
6625
|
-
function inspectString(str, opts) {
|
|
6626
|
-
if (str.length > opts.maxStringLength) {
|
|
6627
|
-
var remaining = str.length - opts.maxStringLength;
|
|
6628
|
-
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
6629
|
-
return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer;
|
|
6630
|
-
}
|
|
6631
|
-
// eslint-disable-next-line no-control-regex
|
|
6632
|
-
var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte);
|
|
6633
|
-
return wrapQuotes(s, 'single', opts);
|
|
6634
|
-
}
|
|
6635
|
-
|
|
6636
|
-
function lowbyte(c) {
|
|
6637
|
-
var n = c.charCodeAt(0);
|
|
6638
|
-
var x = {
|
|
6639
|
-
8: 'b',
|
|
6640
|
-
9: 't',
|
|
6641
|
-
10: 'n',
|
|
6642
|
-
12: 'f',
|
|
6643
|
-
13: 'r'
|
|
6644
|
-
}[n];
|
|
6645
|
-
if (x) { return '\\' + x; }
|
|
6646
|
-
return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
|
|
6647
|
-
}
|
|
6648
|
-
|
|
6649
|
-
function markBoxed(str) {
|
|
6650
|
-
return 'Object(' + str + ')';
|
|
6651
|
-
}
|
|
6652
|
-
|
|
6653
|
-
function weakCollectionOf(type) {
|
|
6654
|
-
return type + ' { ? }';
|
|
6655
|
-
}
|
|
6656
|
-
|
|
6657
|
-
function collectionOf(type, size, entries, indent) {
|
|
6658
|
-
var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');
|
|
6659
|
-
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
6660
|
-
}
|
|
6661
|
-
|
|
6662
|
-
function singleLineValues(xs) {
|
|
6663
|
-
for (var i = 0; i < xs.length; i++) {
|
|
6664
|
-
if (indexOf(xs[i], '\n') >= 0) {
|
|
6665
|
-
return false;
|
|
6666
|
-
}
|
|
6667
|
-
}
|
|
6668
|
-
return true;
|
|
6669
|
-
}
|
|
6670
|
-
|
|
6671
|
-
function getIndent(opts, depth) {
|
|
6672
|
-
var baseIndent;
|
|
6673
|
-
if (opts.indent === '\t') {
|
|
6674
|
-
baseIndent = '\t';
|
|
6675
|
-
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
6676
|
-
baseIndent = Array(opts.indent + 1).join(' ');
|
|
6677
|
-
} else {
|
|
6678
|
-
return null;
|
|
6679
|
-
}
|
|
6680
|
-
return {
|
|
6681
|
-
base: baseIndent,
|
|
6682
|
-
prev: Array(depth + 1).join(baseIndent)
|
|
6683
|
-
};
|
|
6684
|
-
}
|
|
6685
|
-
|
|
6686
|
-
function indentedJoin(xs, indent) {
|
|
6687
|
-
if (xs.length === 0) { return ''; }
|
|
6688
|
-
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
6689
|
-
return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
|
|
6690
|
-
}
|
|
6357
|
+
var listGet = function (objects, key) {
|
|
6358
|
+
var node = listGetNode(objects, key);
|
|
6359
|
+
return node && node.value;
|
|
6360
|
+
};
|
|
6361
|
+
var listSet = function (objects, key, value) {
|
|
6362
|
+
var node = listGetNode(objects, key);
|
|
6363
|
+
if (node) {
|
|
6364
|
+
node.value = value;
|
|
6365
|
+
} else {
|
|
6366
|
+
// Prepend the new node to the beginning of the list
|
|
6367
|
+
objects.next = { // eslint-disable-line no-param-reassign
|
|
6368
|
+
key: key,
|
|
6369
|
+
next: objects.next,
|
|
6370
|
+
value: value
|
|
6371
|
+
};
|
|
6372
|
+
}
|
|
6373
|
+
};
|
|
6374
|
+
var listHas = function (objects, key) {
|
|
6375
|
+
return !!listGetNode(objects, key);
|
|
6376
|
+
};
|
|
6691
6377
|
|
|
6692
|
-
function
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6378
|
+
module.exports = function getSideChannel() {
|
|
6379
|
+
var $wm;
|
|
6380
|
+
var $m;
|
|
6381
|
+
var $o;
|
|
6382
|
+
var channel = {
|
|
6383
|
+
assert: function (key) {
|
|
6384
|
+
if (!channel.has(key)) {
|
|
6385
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
6386
|
+
}
|
|
6387
|
+
},
|
|
6388
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
6389
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
6390
|
+
if ($wm) {
|
|
6391
|
+
return $weakMapGet($wm, key);
|
|
6392
|
+
}
|
|
6393
|
+
} else if ($Map) {
|
|
6394
|
+
if ($m) {
|
|
6395
|
+
return $mapGet($m, key);
|
|
6396
|
+
}
|
|
6397
|
+
} else {
|
|
6398
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
6399
|
+
return listGet($o, key);
|
|
6400
|
+
}
|
|
6401
|
+
}
|
|
6402
|
+
},
|
|
6403
|
+
has: function (key) {
|
|
6404
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
6405
|
+
if ($wm) {
|
|
6406
|
+
return $weakMapHas($wm, key);
|
|
6407
|
+
}
|
|
6408
|
+
} else if ($Map) {
|
|
6409
|
+
if ($m) {
|
|
6410
|
+
return $mapHas($m, key);
|
|
6411
|
+
}
|
|
6412
|
+
} else {
|
|
6413
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
6414
|
+
return listHas($o, key);
|
|
6415
|
+
}
|
|
6416
|
+
}
|
|
6417
|
+
return false;
|
|
6418
|
+
},
|
|
6419
|
+
set: function (key, value) {
|
|
6420
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
6421
|
+
if (!$wm) {
|
|
6422
|
+
$wm = new $WeakMap();
|
|
6423
|
+
}
|
|
6424
|
+
$weakMapSet($wm, key, value);
|
|
6425
|
+
} else if ($Map) {
|
|
6426
|
+
if (!$m) {
|
|
6427
|
+
$m = new $Map();
|
|
6428
|
+
}
|
|
6429
|
+
$mapSet($m, key, value);
|
|
6430
|
+
} else {
|
|
6431
|
+
if (!$o) {
|
|
6432
|
+
/*
|
|
6433
|
+
* Initialize the linked list as an empty node, so that we don't have
|
|
6434
|
+
* to special-case handling of the first node: we can always refer to
|
|
6435
|
+
* it as (previous node).next, instead of something like (list).head
|
|
6436
|
+
*/
|
|
6437
|
+
$o = { key: {}, next: null };
|
|
6438
|
+
}
|
|
6439
|
+
listSet($o, key, value);
|
|
6440
|
+
}
|
|
6441
|
+
}
|
|
6442
|
+
};
|
|
6443
|
+
return channel;
|
|
6444
|
+
};
|
|
6720
6445
|
|
|
6721
6446
|
|
|
6722
6447
|
/***/ }),
|
|
@@ -6835,7 +6560,7 @@ function createClient(params) {
|
|
|
6835
6560
|
|
|
6836
6561
|
const config = _objectSpread(_objectSpread({}, defaultConfig), params);
|
|
6837
6562
|
|
|
6838
|
-
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.1.
|
|
6563
|
+
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.1.4"}`, config.application, config.integration);
|
|
6839
6564
|
config.headers = _objectSpread(_objectSpread({}, config.headers), {}, {
|
|
6840
6565
|
'Content-Type': 'application/vnd.contentful.delivery.v1+json',
|
|
6841
6566
|
'X-Contentful-User-Agent': userAgentHeader
|