contentful 9.1.2 → 9.1.6

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.
@@ -605,7 +605,7 @@ module.exports = function xhrAdapter(config) {
605
605
 
606
606
  // Handle timeout
607
607
  request.ontimeout = function handleTimeout() {
608
- var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
608
+ var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
609
609
  var transitional = config.transitional || defaults.transitional;
610
610
  if (config.timeoutErrorMessage) {
611
611
  timeoutErrorMessage = config.timeoutErrorMessage;
@@ -1723,7 +1723,7 @@ module.exports = defaults;
1723
1723
  /***/ (function(module, exports) {
1724
1724
 
1725
1725
  module.exports = {
1726
- "version": "0.22.0"
1726
+ "version": "0.24.0"
1727
1727
  };
1728
1728
 
1729
1729
  /***/ }),
@@ -2680,7 +2680,9 @@ var $apply = GetIntrinsic('%Function.prototype.apply%');
2680
2680
  var $call = GetIntrinsic('%Function.prototype.call%');
2681
2681
  var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
2682
2682
 
2683
+ var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
2683
2684
  var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2685
+ var $max = GetIntrinsic('%Math.max%');
2684
2686
 
2685
2687
  if ($defineProperty) {
2686
2688
  try {
@@ -2691,8 +2693,20 @@ if ($defineProperty) {
2691
2693
  }
2692
2694
  }
2693
2695
 
2694
- module.exports = function callBind() {
2695
- return $reflectApply(bind, $call, arguments);
2696
+ module.exports = function callBind(originalFunction) {
2697
+ var func = $reflectApply(bind, $call, arguments);
2698
+ if ($gOPD && $defineProperty) {
2699
+ var desc = $gOPD(func, 'length');
2700
+ if (desc.configurable) {
2701
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
2702
+ $defineProperty(
2703
+ func,
2704
+ 'length',
2705
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2706
+ );
2707
+ }
2708
+ }
2709
+ return func;
2696
2710
  };
2697
2711
 
2698
2712
  var applyBind = function applyBind() {
@@ -2895,11 +2909,8 @@ __webpack_require__.r(__webpack_exports__);
2895
2909
  /* harmony import */ var lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isstring__WEBPACK_IMPORTED_MODULE_2__);
2896
2910
  /* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! p-throttle */ "../node_modules/p-throttle/index.js");
2897
2911
  /* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(p_throttle__WEBPACK_IMPORTED_MODULE_3__);
2898
- /* harmony import */ var os__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! os */ "os");
2899
- /* harmony import */ var os__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(os__WEBPACK_IMPORTED_MODULE_4__);
2900
- /* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash.isplainobject */ "../node_modules/lodash.isplainobject/index.js");
2901
- /* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isplainobject__WEBPACK_IMPORTED_MODULE_5__);
2902
-
2912
+ /* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash.isplainobject */ "../node_modules/lodash.isplainobject/index.js");
2913
+ /* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4__);
2903
2914
 
2904
2915
 
2905
2916
 
@@ -2911,14 +2922,9 @@ function ownKeys(object, enumerableOnly) {
2911
2922
 
2912
2923
  if (Object.getOwnPropertySymbols) {
2913
2924
  var symbols = Object.getOwnPropertySymbols(object);
2914
-
2915
- if (enumerableOnly) {
2916
- symbols = symbols.filter(function (sym) {
2917
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
2918
- });
2919
- }
2920
-
2921
- keys.push.apply(keys, symbols);
2925
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
2926
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
2927
+ })), keys.push.apply(keys, symbols);
2922
2928
  }
2923
2929
 
2924
2930
  return keys;
@@ -2926,19 +2932,12 @@ function ownKeys(object, enumerableOnly) {
2926
2932
 
2927
2933
  function _objectSpread2(target) {
2928
2934
  for (var i = 1; i < arguments.length; i++) {
2929
- var source = arguments[i] != null ? arguments[i] : {};
2930
-
2931
- if (i % 2) {
2932
- ownKeys(Object(source), true).forEach(function (key) {
2933
- _defineProperty(target, key, source[key]);
2934
- });
2935
- } else if (Object.getOwnPropertyDescriptors) {
2936
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2937
- } else {
2938
- ownKeys(Object(source)).forEach(function (key) {
2939
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2940
- });
2941
- }
2935
+ var source = null != arguments[i] ? arguments[i] : {};
2936
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
2937
+ _defineProperty(target, key, source[key]);
2938
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
2939
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2940
+ });
2942
2941
  }
2943
2942
 
2944
2943
  return target;
@@ -2947,80 +2946,59 @@ function _objectSpread2(target) {
2947
2946
  function _typeof(obj) {
2948
2947
  "@babel/helpers - typeof";
2949
2948
 
2950
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
2951
- _typeof = function (obj) {
2952
- return typeof obj;
2953
- };
2954
- } else {
2955
- _typeof = function (obj) {
2956
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2957
- };
2958
- }
2959
-
2960
- return _typeof(obj);
2949
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
2950
+ return typeof obj;
2951
+ } : function (obj) {
2952
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2953
+ }, _typeof(obj);
2961
2954
  }
2962
2955
 
2963
2956
  function _wrapRegExp() {
2964
2957
  _wrapRegExp = function (re, groups) {
2965
- return new BabelRegExp(re, undefined, groups);
2958
+ return new BabelRegExp(re, void 0, groups);
2966
2959
  };
2967
2960
 
2968
- var _super = RegExp.prototype;
2969
-
2970
- var _groups = new WeakMap();
2961
+ var _super = RegExp.prototype,
2962
+ _groups = new WeakMap();
2971
2963
 
2972
2964
  function BabelRegExp(re, flags, groups) {
2973
2965
  var _this = new RegExp(re, flags);
2974
2966
 
2975
- _groups.set(_this, groups || _groups.get(re));
2976
-
2977
- return _setPrototypeOf(_this, BabelRegExp.prototype);
2967
+ return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
2978
2968
  }
2979
2969
 
2980
- _inherits(BabelRegExp, RegExp);
2970
+ function buildGroups(result, re) {
2971
+ var g = _groups.get(re);
2981
2972
 
2982
- BabelRegExp.prototype.exec = function (str) {
2983
- var result = _super.exec.call(this, str);
2973
+ return Object.keys(g).reduce(function (groups, name) {
2974
+ return groups[name] = result[g[name]], groups;
2975
+ }, Object.create(null));
2976
+ }
2984
2977
 
2985
- if (result) result.groups = buildGroups(result, this);
2986
- return result;
2987
- };
2978
+ return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
2979
+ var result = _super.exec.call(this, str);
2988
2980
 
2989
- BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
2990
- if (typeof substitution === "string") {
2981
+ return result && (result.groups = buildGroups(result, this)), result;
2982
+ }, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
2983
+ if ("string" == typeof substitution) {
2991
2984
  var groups = _groups.get(this);
2992
2985
 
2993
2986
  return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
2994
2987
  return "$" + groups[name];
2995
2988
  }));
2996
- } else if (typeof substitution === "function") {
2989
+ }
2990
+
2991
+ if ("function" == typeof substitution) {
2997
2992
  var _this = this;
2998
2993
 
2999
2994
  return _super[Symbol.replace].call(this, str, function () {
3000
2995
  var args = arguments;
3001
-
3002
- if (typeof args[args.length - 1] !== "object") {
3003
- args = [].slice.call(args);
3004
- args.push(buildGroups(args, _this));
3005
- }
3006
-
3007
- return substitution.apply(this, args);
2996
+ return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
3008
2997
  });
3009
- } else {
3010
- return _super[Symbol.replace].call(this, str, substitution);
3011
2998
  }
3012
- };
3013
-
3014
- function buildGroups(result, re) {
3015
- var g = _groups.get(re);
3016
-
3017
- return Object.keys(g).reduce(function (groups, name) {
3018
- groups[name] = result[g[name]];
3019
- return groups;
3020
- }, Object.create(null));
3021
- }
3022
2999
 
3023
- return _wrapRegExp.apply(this, arguments);
3000
+ return _super[Symbol.replace].call(this, str, substitution);
3001
+ }, _wrapRegExp.apply(this, arguments);
3024
3002
  }
3025
3003
 
3026
3004
  function _defineProperty(obj, key, value) {
@@ -3050,6 +3028,9 @@ function _inherits(subClass, superClass) {
3050
3028
  configurable: true
3051
3029
  }
3052
3030
  });
3031
+ Object.defineProperty(subClass, "prototype", {
3032
+ writable: false
3033
+ });
3053
3034
  if (superClass) _setPrototypeOf(subClass, superClass);
3054
3035
  }
3055
3036
 
@@ -3280,15 +3261,16 @@ var rateLimitThrottle = (function (axiosInstance) {
3280
3261
  };
3281
3262
  });
3282
3263
 
3283
- var attempts = {};
3284
- var networkErrorAttempts = 0;
3285
-
3286
3264
  var delay = function delay(ms) {
3287
3265
  return new Promise(function (resolve) {
3288
3266
  setTimeout(resolve, ms);
3289
3267
  });
3290
3268
  };
3291
3269
 
3270
+ var defaultWait = function defaultWait(attempts) {
3271
+ return Math.pow(Math.SQRT2, attempts);
3272
+ };
3273
+
3292
3274
  function rateLimit(instance) {
3293
3275
  var maxRetry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
3294
3276
  var _instance$defaults = instance.defaults,
@@ -3314,40 +3296,24 @@ function rateLimit(instance) {
3314
3296
 
3315
3297
  if (!config || !instance.defaults.retryOnError) {
3316
3298
  return Promise.reject(error);
3299
+ } // Retried already for max attempts
3300
+
3301
+
3302
+ var doneAttempts = config.attempts || 1;
3303
+
3304
+ if (doneAttempts > maxRetry) {
3305
+ error.attempts = config.attempts;
3306
+ return Promise.reject(error);
3317
3307
  }
3318
3308
 
3319
3309
  var retryErrorType = null;
3320
- var wait = 0; // Errors without response did not receive anything from the server
3310
+ var wait = defaultWait(doneAttempts); // Errors without response did not receive anything from the server
3321
3311
 
3322
3312
  if (!response) {
3323
3313
  retryErrorType = 'Connection';
3324
- networkErrorAttempts++;
3325
-
3326
- if (networkErrorAttempts > maxRetry) {
3327
- error.attempts = networkErrorAttempts;
3328
- return Promise.reject(error);
3329
- }
3330
-
3331
- wait = Math.pow(Math.SQRT2, networkErrorAttempts);
3332
- response = {};
3333
- } else {
3334
- networkErrorAttempts = 0;
3335
- }
3336
-
3337
- if (response.status >= 500 && response.status < 600) {
3314
+ } else if (response.status >= 500 && response.status < 600) {
3338
3315
  // 5** errors are server related
3339
3316
  retryErrorType = "Server ".concat(response.status);
3340
- var headers = response.headers || {};
3341
- var requestId = headers['x-contentful-request-id'] || null;
3342
- attempts[requestId] = attempts[requestId] || 0;
3343
- attempts[requestId]++; // we reject if there are too many errors with the same request id or request id is not defined
3344
-
3345
- if (attempts[requestId] > maxRetry || !requestId) {
3346
- error.attempts = attempts[requestId];
3347
- return Promise.reject(error);
3348
- }
3349
-
3350
- wait = Math.pow(Math.SQRT2, attempts[requestId]);
3351
3317
  } else if (response.status === 429) {
3352
3318
  // 429 errors are exceeded rate limit exceptions
3353
3319
  retryErrorType = 'Rate limit'; // all headers are lowercased by axios https://github.com/mzabriskie/axios/issues/413
@@ -3360,7 +3326,9 @@ function rateLimit(instance) {
3360
3326
  if (retryErrorType) {
3361
3327
  // convert to ms and add jitter
3362
3328
  wait = Math.floor(wait * 1000 + Math.random() * 200 + 500);
3363
- instance.defaults.logHandler('warning', "".concat(retryErrorType, " error occurred. Waiting for ").concat(wait, " ms before retrying..."));
3329
+ instance.defaults.logHandler('warning', "".concat(retryErrorType, " error occurred. Waiting for ").concat(wait, " ms before retrying...")); // increase attempts counter
3330
+
3331
+ config.attempts = doneAttempts + 1;
3364
3332
  /* Somehow between the interceptor and retrying the request the httpAgent/httpsAgent gets transformed from an Agent-like object
3365
3333
  to a regular object, causing failures on retries after rate limits. Removing these properties here fixes the error, but retry
3366
3334
  requests still use the original http/httpsAgent property */
@@ -3628,8 +3596,8 @@ function getBrowserOS() {
3628
3596
  }
3629
3597
 
3630
3598
  function getNodeOS() {
3631
- var platform = os__WEBPACK_IMPORTED_MODULE_4___default.a.platform() || 'linux';
3632
- var version = os__WEBPACK_IMPORTED_MODULE_4___default.a.release() || '0.0.0';
3599
+ var platform = process.platform || 'linux';
3600
+ var version = process.version || '0.0.0';
3633
3601
  var platformMap = {
3634
3602
  android: 'Android',
3635
3603
  aix: 'Linux',
@@ -3726,7 +3694,7 @@ function errorHandler(errorResponse) {
3726
3694
  config.headers['Authorization'] = "Bearer ".concat(token);
3727
3695
  }
3728
3696
 
3729
- if (!lodash_isplainobject__WEBPACK_IMPORTED_MODULE_5___default()(response) || !lodash_isplainobject__WEBPACK_IMPORTED_MODULE_5___default()(config)) {
3697
+ if (!lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(response) || !lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(config)) {
3730
3698
  throw errorResponse;
3731
3699
  }
3732
3700
 
@@ -3738,7 +3706,7 @@ function errorHandler(errorResponse) {
3738
3706
  details: {}
3739
3707
  };
3740
3708
 
3741
- if (lodash_isplainobject__WEBPACK_IMPORTED_MODULE_5___default()(config)) {
3709
+ if (lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(config)) {
3742
3710
  errorData.request = {
3743
3711
  url: config.url,
3744
3712
  headers: config.headers,
@@ -3747,7 +3715,7 @@ function errorHandler(errorResponse) {
3747
3715
  };
3748
3716
  }
3749
3717
 
3750
- if (data && lodash_isplainobject__WEBPACK_IMPORTED_MODULE_5___default()(data)) {
3718
+ if (data && lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(data)) {
3751
3719
  if ('requestId' in data) {
3752
3720
  errorData.requestId = data.requestId || 'UNKNOWN';
3753
3721
  }
@@ -5508,14 +5476,6 @@ module.exports = Function.prototype.bind || implementation;
5508
5476
  "use strict";
5509
5477
 
5510
5478
 
5511
- /* globals
5512
- AggregateError,
5513
- Atomics,
5514
- FinalizationRegistry,
5515
- SharedArrayBuffer,
5516
- WeakRef,
5517
- */
5518
-
5519
5479
  var undefined;
5520
5480
 
5521
5481
  var $SyntaxError = SyntaxError;
@@ -5525,8 +5485,7 @@ var $TypeError = TypeError;
5525
5485
  // eslint-disable-next-line consistent-return
5526
5486
  var getEvalledConstructor = function (expressionSyntax) {
5527
5487
  try {
5528
- // eslint-disable-next-line no-new-func
5529
- return Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
5488
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
5530
5489
  } catch (e) {}
5531
5490
  };
5532
5491
 
@@ -5563,9 +5522,7 @@ var hasSymbols = __webpack_require__(/*! has-symbols */ "../node_modules/has-sym
5563
5522
 
5564
5523
  var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
5565
5524
 
5566
- var asyncGenFunction = getEvalledConstructor('async function* () {}');
5567
- var asyncGenFunctionPrototype = asyncGenFunction ? asyncGenFunction.prototype : undefined;
5568
- var asyncGenPrototype = asyncGenFunctionPrototype ? asyncGenFunctionPrototype.prototype : undefined;
5525
+ var needsEval = {};
5569
5526
 
5570
5527
  var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
5571
5528
 
@@ -5575,10 +5532,10 @@ var INTRINSICS = {
5575
5532
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
5576
5533
  '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
5577
5534
  '%AsyncFromSyncIteratorPrototype%': undefined,
5578
- '%AsyncFunction%': getEvalledConstructor('async function () {}'),
5579
- '%AsyncGenerator%': asyncGenFunctionPrototype,
5580
- '%AsyncGeneratorFunction%': asyncGenFunction,
5581
- '%AsyncIteratorPrototype%': asyncGenPrototype ? getProto(asyncGenPrototype) : undefined,
5535
+ '%AsyncFunction%': needsEval,
5536
+ '%AsyncGenerator%': needsEval,
5537
+ '%AsyncGeneratorFunction%': needsEval,
5538
+ '%AsyncIteratorPrototype%': needsEval,
5582
5539
  '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
5583
5540
  '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
5584
5541
  '%Boolean%': Boolean,
@@ -5595,7 +5552,7 @@ var INTRINSICS = {
5595
5552
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
5596
5553
  '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
5597
5554
  '%Function%': $Function,
5598
- '%GeneratorFunction%': getEvalledConstructor('function* () {}'),
5555
+ '%GeneratorFunction%': needsEval,
5599
5556
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
5600
5557
  '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
5601
5558
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
@@ -5636,6 +5593,31 @@ var INTRINSICS = {
5636
5593
  '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
5637
5594
  };
5638
5595
 
5596
+ var doEval = function doEval(name) {
5597
+ var value;
5598
+ if (name === '%AsyncFunction%') {
5599
+ value = getEvalledConstructor('async function () {}');
5600
+ } else if (name === '%GeneratorFunction%') {
5601
+ value = getEvalledConstructor('function* () {}');
5602
+ } else if (name === '%AsyncGeneratorFunction%') {
5603
+ value = getEvalledConstructor('async function* () {}');
5604
+ } else if (name === '%AsyncGenerator%') {
5605
+ var fn = doEval('%AsyncGeneratorFunction%');
5606
+ if (fn) {
5607
+ value = fn.prototype;
5608
+ }
5609
+ } else if (name === '%AsyncIteratorPrototype%') {
5610
+ var gen = doEval('%AsyncGenerator%');
5611
+ if (gen) {
5612
+ value = getProto(gen.prototype);
5613
+ }
5614
+ }
5615
+
5616
+ INTRINSICS[name] = value;
5617
+
5618
+ return value;
5619
+ };
5620
+
5639
5621
  var LEGACY_ALIASES = {
5640
5622
  '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
5641
5623
  '%ArrayPrototype%': ['Array', 'prototype'],
@@ -5695,11 +5677,19 @@ var hasOwn = __webpack_require__(/*! has */ "../node_modules/has/src/index.js");
5695
5677
  var $concat = bind.call(Function.call, Array.prototype.concat);
5696
5678
  var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
5697
5679
  var $replace = bind.call(Function.call, String.prototype.replace);
5680
+ var $strSlice = bind.call(Function.call, String.prototype.slice);
5698
5681
 
5699
5682
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
5700
5683
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
5701
5684
  var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
5702
5685
  var stringToPath = function stringToPath(string) {
5686
+ var first = $strSlice(string, 0, 1);
5687
+ var last = $strSlice(string, -1);
5688
+ if (first === '%' && last !== '%') {
5689
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
5690
+ } else if (last === '%' && first !== '%') {
5691
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
5692
+ }
5703
5693
  var result = [];
5704
5694
  $replace(string, rePropName, function (match, number, quote, subString) {
5705
5695
  result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
@@ -5718,6 +5708,9 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
5718
5708
 
5719
5709
  if (hasOwn(INTRINSICS, intrinsicName)) {
5720
5710
  var value = INTRINSICS[intrinsicName];
5711
+ if (value === needsEval) {
5712
+ value = doEval(intrinsicName);
5713
+ }
5721
5714
  if (typeof value === 'undefined' && !allowMissing) {
5722
5715
  throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
5723
5716
  }
@@ -5756,6 +5749,17 @@ module.exports = function GetIntrinsic(name, allowMissing) {
5756
5749
 
5757
5750
  for (var i = 1, isOwn = true; i < parts.length; i += 1) {
5758
5751
  var part = parts[i];
5752
+ var first = $strSlice(part, 0, 1);
5753
+ var last = $strSlice(part, -1);
5754
+ if (
5755
+ (
5756
+ (first === '"' || first === "'" || first === '`')
5757
+ || (last === '"' || last === "'" || last === '`')
5758
+ )
5759
+ && first !== last
5760
+ ) {
5761
+ throw new $SyntaxError('property names with quotes must have matching quotes');
5762
+ }
5759
5763
  if (part === 'constructor' || !isOwn) {
5760
5764
  skipFurtherCaching = true;
5761
5765
  }
@@ -5766,13 +5770,16 @@ module.exports = function GetIntrinsic(name, allowMissing) {
5766
5770
  if (hasOwn(INTRINSICS, intrinsicRealName)) {
5767
5771
  value = INTRINSICS[intrinsicRealName];
5768
5772
  } else if (value != null) {
5773
+ if (!(part in value)) {
5774
+ if (!allowMissing) {
5775
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
5776
+ }
5777
+ return void undefined;
5778
+ }
5769
5779
  if ($gOPD && (i + 1) >= parts.length) {
5770
5780
  var desc = $gOPD(value, part);
5771
5781
  isOwn = !!desc;
5772
5782
 
5773
- if (!allowMissing && !(part in value)) {
5774
- throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
5775
- }
5776
5783
  // By convention, when a data property is converted to an accessor
5777
5784
  // property to emulate a data property that does not suffer from
5778
5785
  // the override mistake, that accessor's getter is marked with
@@ -5811,7 +5818,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
5811
5818
  "use strict";
5812
5819
 
5813
5820
 
5814
- var origSymbol = global.Symbol;
5821
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
5815
5822
  var hasSymbolSham = __webpack_require__(/*! ./shams */ "../node_modules/has-symbols/shams.js");
5816
5823
 
5817
5824
  module.exports = function hasNativeSymbols() {
@@ -5859,7 +5866,7 @@ module.exports = function hasSymbols() {
5859
5866
 
5860
5867
  var symVal = 42;
5861
5868
  obj[sym] = symVal;
5862
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
5869
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
5863
5870
  if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
5864
5871
 
5865
5872
  if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
@@ -6354,456 +6361,500 @@ function plural(ms, n, name) {
6354
6361
 
6355
6362
  /***/ }),
6356
6363
 
6357
- /***/ "../node_modules/p-throttle/index.js":
6358
- /*!*******************************************!*\
6359
- !*** ../node_modules/p-throttle/index.js ***!
6360
- \*******************************************/
6364
+ /***/ "../node_modules/object-inspect/index.js":
6365
+ /*!***********************************************!*\
6366
+ !*** ../node_modules/object-inspect/index.js ***!
6367
+ \***********************************************/
6361
6368
  /*! no static exports found */
6362
6369
  /***/ (function(module, exports, __webpack_require__) {
6363
6370
 
6364
- "use strict";
6365
-
6366
-
6367
- class AbortError extends Error {
6368
- constructor() {
6369
- super('Throttled function aborted');
6370
- this.name = 'AbortError';
6371
- }
6372
- }
6373
-
6374
- const pThrottle = ({limit, interval, strict}) => {
6375
- if (!Number.isFinite(limit)) {
6376
- throw new TypeError('Expected `limit` to be a finite number');
6377
- }
6371
+ var hasMap = typeof Map === 'function' && Map.prototype;
6372
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
6373
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
6374
+ var mapForEach = hasMap && Map.prototype.forEach;
6375
+ var hasSet = typeof Set === 'function' && Set.prototype;
6376
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
6377
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
6378
+ var setForEach = hasSet && Set.prototype.forEach;
6379
+ var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
6380
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
6381
+ var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
6382
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
6383
+ var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
6384
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
6385
+ var booleanValueOf = Boolean.prototype.valueOf;
6386
+ var objectToString = Object.prototype.toString;
6387
+ var functionToString = Function.prototype.toString;
6388
+ var match = String.prototype.match;
6389
+ var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
6390
+ var gOPS = Object.getOwnPropertySymbols;
6391
+ var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
6392
+ var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
6393
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
6378
6394
 
6379
- if (!Number.isFinite(interval)) {
6380
- throw new TypeError('Expected `interval` to be a finite number');
6381
- }
6395
+ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
6396
+ [].__proto__ === Array.prototype // eslint-disable-line no-proto
6397
+ ? function (O) {
6398
+ return O.__proto__; // eslint-disable-line no-proto
6399
+ }
6400
+ : null
6401
+ );
6382
6402
 
6383
- const queue = new Map();
6403
+ var inspectCustom = __webpack_require__(/*! ./util.inspect */ "../node_modules/object-inspect/util.inspect.js").custom;
6404
+ var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
6405
+ var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag !== 'undefined' ? Symbol.toStringTag : null;
6384
6406
 
6385
- let currentTick = 0;
6386
- let activeCount = 0;
6407
+ module.exports = function inspect_(obj, options, depth, seen) {
6408
+ var opts = options || {};
6387
6409
 
6388
- function windowedDelay() {
6389
- const now = Date.now();
6410
+ if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
6411
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
6412
+ }
6413
+ if (
6414
+ has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
6415
+ ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
6416
+ : opts.maxStringLength !== null
6417
+ )
6418
+ ) {
6419
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
6420
+ }
6421
+ var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
6422
+ if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
6423
+ throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
6424
+ }
6390
6425
 
6391
- if ((now - currentTick) > interval) {
6392
- activeCount = 1;
6393
- currentTick = now;
6394
- return 0;
6395
- }
6426
+ if (
6427
+ has(opts, 'indent')
6428
+ && opts.indent !== null
6429
+ && opts.indent !== '\t'
6430
+ && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
6431
+ ) {
6432
+ throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
6433
+ }
6396
6434
 
6397
- if (activeCount < limit) {
6398
- activeCount++;
6399
- } else {
6400
- currentTick += interval;
6401
- activeCount = 1;
6402
- }
6435
+ if (typeof obj === 'undefined') {
6436
+ return 'undefined';
6437
+ }
6438
+ if (obj === null) {
6439
+ return 'null';
6440
+ }
6441
+ if (typeof obj === 'boolean') {
6442
+ return obj ? 'true' : 'false';
6443
+ }
6403
6444
 
6404
- return currentTick - now;
6405
- }
6445
+ if (typeof obj === 'string') {
6446
+ return inspectString(obj, opts);
6447
+ }
6448
+ if (typeof obj === 'number') {
6449
+ if (obj === 0) {
6450
+ return Infinity / obj > 0 ? '0' : '-0';
6451
+ }
6452
+ return String(obj);
6453
+ }
6454
+ if (typeof obj === 'bigint') {
6455
+ return String(obj) + 'n';
6456
+ }
6406
6457
 
6407
- const strictTicks = [];
6458
+ var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
6459
+ if (typeof depth === 'undefined') { depth = 0; }
6460
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
6461
+ return isArray(obj) ? '[Array]' : '[Object]';
6462
+ }
6408
6463
 
6409
- function strictDelay() {
6410
- const now = Date.now();
6464
+ var indent = getIndent(opts, depth);
6411
6465
 
6412
- if (strictTicks.length < limit) {
6413
- strictTicks.push(now);
6414
- return 0;
6415
- }
6466
+ if (typeof seen === 'undefined') {
6467
+ seen = [];
6468
+ } else if (indexOf(seen, obj) >= 0) {
6469
+ return '[Circular]';
6470
+ }
6416
6471
 
6417
- const earliestTime = strictTicks.shift() + interval;
6418
-
6419
- if (now >= earliestTime) {
6420
- strictTicks.push(now);
6421
- return 0;
6422
- }
6423
-
6424
- strictTicks.push(earliestTime);
6425
- return earliestTime - now;
6426
- }
6427
-
6428
- const getDelay = strict ? strictDelay : windowedDelay;
6429
-
6430
- return function_ => {
6431
- const throttled = function (...args) {
6432
- if (!throttled.isEnabled) {
6433
- return (async () => function_.apply(this, args))();
6434
- }
6435
-
6436
- let timeout;
6437
- return new Promise((resolve, reject) => {
6438
- const execute = () => {
6439
- resolve(function_.apply(this, args));
6440
- queue.delete(timeout);
6441
- };
6442
-
6443
- timeout = setTimeout(execute, getDelay());
6444
-
6445
- queue.set(timeout, reject);
6446
- });
6447
- };
6448
-
6449
- throttled.abort = () => {
6450
- for (const timeout of queue.keys()) {
6451
- clearTimeout(timeout);
6452
- queue.get(timeout)(new AbortError());
6453
- }
6454
-
6455
- queue.clear();
6456
- strictTicks.splice(0, strictTicks.length);
6457
- };
6458
-
6459
- throttled.isEnabled = true;
6460
-
6461
- return throttled;
6462
- };
6463
- };
6464
-
6465
- module.exports = pThrottle;
6466
- module.exports.AbortError = AbortError;
6467
-
6468
-
6469
- /***/ }),
6470
-
6471
- /***/ "../node_modules/qs/lib/formats.js":
6472
- /*!*****************************************!*\
6473
- !*** ../node_modules/qs/lib/formats.js ***!
6474
- \*****************************************/
6475
- /*! no static exports found */
6476
- /***/ (function(module, exports, __webpack_require__) {
6477
-
6478
- "use strict";
6479
-
6480
-
6481
- var replace = String.prototype.replace;
6482
- var percentTwenties = /%20/g;
6483
-
6484
- var Format = {
6485
- RFC1738: 'RFC1738',
6486
- RFC3986: 'RFC3986'
6487
- };
6488
-
6489
- module.exports = {
6490
- 'default': Format.RFC3986,
6491
- formatters: {
6492
- RFC1738: function (value) {
6493
- return replace.call(value, percentTwenties, '+');
6494
- },
6495
- RFC3986: function (value) {
6496
- return String(value);
6472
+ function inspect(value, from, noIndent) {
6473
+ if (from) {
6474
+ seen = seen.slice();
6475
+ seen.push(from);
6497
6476
  }
6498
- },
6499
- RFC1738: Format.RFC1738,
6500
- RFC3986: Format.RFC3986
6501
- };
6502
-
6503
-
6504
- /***/ }),
6505
-
6506
- /***/ "../node_modules/qs/lib/index.js":
6507
- /*!***************************************!*\
6508
- !*** ../node_modules/qs/lib/index.js ***!
6509
- \***************************************/
6510
- /*! no static exports found */
6511
- /***/ (function(module, exports, __webpack_require__) {
6512
-
6513
- "use strict";
6514
-
6515
-
6516
- var stringify = __webpack_require__(/*! ./stringify */ "../node_modules/qs/lib/stringify.js");
6517
- var parse = __webpack_require__(/*! ./parse */ "../node_modules/qs/lib/parse.js");
6518
- var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
6519
-
6520
- module.exports = {
6521
- formats: formats,
6522
- parse: parse,
6523
- stringify: stringify
6524
- };
6525
-
6526
-
6527
- /***/ }),
6528
-
6529
- /***/ "../node_modules/qs/lib/parse.js":
6530
- /*!***************************************!*\
6531
- !*** ../node_modules/qs/lib/parse.js ***!
6532
- \***************************************/
6533
- /*! no static exports found */
6534
- /***/ (function(module, exports, __webpack_require__) {
6535
-
6536
- "use strict";
6537
-
6538
-
6539
- var utils = __webpack_require__(/*! ./utils */ "../node_modules/qs/lib/utils.js");
6540
-
6541
- var has = Object.prototype.hasOwnProperty;
6542
- var isArray = Array.isArray;
6543
-
6544
- var defaults = {
6545
- allowDots: false,
6546
- allowPrototypes: false,
6547
- allowSparse: false,
6548
- arrayLimit: 20,
6549
- charset: 'utf-8',
6550
- charsetSentinel: false,
6551
- comma: false,
6552
- decoder: utils.decode,
6553
- delimiter: '&',
6554
- depth: 5,
6555
- ignoreQueryPrefix: false,
6556
- interpretNumericEntities: false,
6557
- parameterLimit: 1000,
6558
- parseArrays: true,
6559
- plainObjects: false,
6560
- strictNullHandling: false
6561
- };
6562
-
6563
- var interpretNumericEntities = function (str) {
6564
- return str.replace(/&#(\d+);/g, function ($0, numberStr) {
6565
- return String.fromCharCode(parseInt(numberStr, 10));
6566
- });
6567
- };
6568
-
6569
- var parseArrayValue = function (val, options) {
6570
- if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
6571
- return val.split(',');
6477
+ if (noIndent) {
6478
+ var newOpts = {
6479
+ depth: opts.depth
6480
+ };
6481
+ if (has(opts, 'quoteStyle')) {
6482
+ newOpts.quoteStyle = opts.quoteStyle;
6483
+ }
6484
+ return inspect_(value, newOpts, depth + 1, seen);
6485
+ }
6486
+ return inspect_(value, opts, depth + 1, seen);
6572
6487
  }
6573
6488
 
6574
- return val;
6575
- };
6576
-
6577
- // This is what browsers will submit when the character occurs in an
6578
- // application/x-www-form-urlencoded body and the encoding of the page containing
6579
- // the form is iso-8859-1, or when the submitted form has an accept-charset
6580
- // attribute of iso-8859-1. Presumably also with other charsets that do not contain
6581
- // the character, such as us-ascii.
6582
- var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
6583
-
6584
- // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
6585
- var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
6586
-
6587
- var parseValues = function parseQueryStringValues(str, options) {
6588
- var obj = {};
6589
- var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
6590
- var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
6591
- var parts = cleanStr.split(options.delimiter, limit);
6592
- var skipIndex = -1; // Keep track of where the utf8 sentinel was found
6593
- var i;
6594
-
6595
- var charset = options.charset;
6596
- if (options.charsetSentinel) {
6597
- for (i = 0; i < parts.length; ++i) {
6598
- if (parts[i].indexOf('utf8=') === 0) {
6599
- if (parts[i] === charsetSentinel) {
6600
- charset = 'utf-8';
6601
- } else if (parts[i] === isoSentinel) {
6602
- charset = 'iso-8859-1';
6603
- }
6604
- skipIndex = i;
6605
- i = parts.length; // The eslint settings do not allow break;
6606
- }
6489
+ if (typeof obj === 'function') {
6490
+ var name = nameOf(obj);
6491
+ var keys = arrObjKeys(obj, inspect);
6492
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
6493
+ }
6494
+ if (isSymbol(obj)) {
6495
+ var symString = hasShammedSymbols ? String(obj).replace(/^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
6496
+ return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
6497
+ }
6498
+ if (isElement(obj)) {
6499
+ var s = '<' + String(obj.nodeName).toLowerCase();
6500
+ var attrs = obj.attributes || [];
6501
+ for (var i = 0; i < attrs.length; i++) {
6502
+ s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
6503
+ }
6504
+ s += '>';
6505
+ if (obj.childNodes && obj.childNodes.length) { s += '...'; }
6506
+ s += '</' + String(obj.nodeName).toLowerCase() + '>';
6507
+ return s;
6508
+ }
6509
+ if (isArray(obj)) {
6510
+ if (obj.length === 0) { return '[]'; }
6511
+ var xs = arrObjKeys(obj, inspect);
6512
+ if (indent && !singleLineValues(xs)) {
6513
+ return '[' + indentedJoin(xs, indent) + ']';
6514
+ }
6515
+ return '[ ' + xs.join(', ') + ' ]';
6516
+ }
6517
+ if (isError(obj)) {
6518
+ var parts = arrObjKeys(obj, inspect);
6519
+ if (parts.length === 0) { return '[' + String(obj) + ']'; }
6520
+ return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
6521
+ }
6522
+ if (typeof obj === 'object' && customInspect) {
6523
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
6524
+ return obj[inspectSymbol]();
6525
+ } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
6526
+ return obj.inspect();
6527
+ }
6528
+ }
6529
+ if (isMap(obj)) {
6530
+ var mapParts = [];
6531
+ mapForEach.call(obj, function (value, key) {
6532
+ mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
6533
+ });
6534
+ return collectionOf('Map', mapSize.call(obj), mapParts, indent);
6535
+ }
6536
+ if (isSet(obj)) {
6537
+ var setParts = [];
6538
+ setForEach.call(obj, function (value) {
6539
+ setParts.push(inspect(value, obj));
6540
+ });
6541
+ return collectionOf('Set', setSize.call(obj), setParts, indent);
6542
+ }
6543
+ if (isWeakMap(obj)) {
6544
+ return weakCollectionOf('WeakMap');
6545
+ }
6546
+ if (isWeakSet(obj)) {
6547
+ return weakCollectionOf('WeakSet');
6548
+ }
6549
+ if (isWeakRef(obj)) {
6550
+ return weakCollectionOf('WeakRef');
6551
+ }
6552
+ if (isNumber(obj)) {
6553
+ return markBoxed(inspect(Number(obj)));
6554
+ }
6555
+ if (isBigInt(obj)) {
6556
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
6557
+ }
6558
+ if (isBoolean(obj)) {
6559
+ return markBoxed(booleanValueOf.call(obj));
6560
+ }
6561
+ if (isString(obj)) {
6562
+ return markBoxed(inspect(String(obj)));
6563
+ }
6564
+ if (!isDate(obj) && !isRegExp(obj)) {
6565
+ var ys = arrObjKeys(obj, inspect);
6566
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
6567
+ var protoTag = obj instanceof Object ? '' : 'null prototype';
6568
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
6569
+ var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
6570
+ var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
6571
+ if (ys.length === 0) { return tag + '{}'; }
6572
+ if (indent) {
6573
+ return tag + '{' + indentedJoin(ys, indent) + '}';
6607
6574
  }
6575
+ return tag + '{ ' + ys.join(', ') + ' }';
6608
6576
  }
6577
+ return String(obj);
6578
+ };
6609
6579
 
6610
- for (i = 0; i < parts.length; ++i) {
6611
- if (i === skipIndex) {
6612
- continue;
6613
- }
6614
- var part = parts[i];
6615
-
6616
- var bracketEqualsPos = part.indexOf(']=');
6617
- var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
6618
-
6619
- var key, val;
6620
- if (pos === -1) {
6621
- key = options.decoder(part, defaults.decoder, charset, 'key');
6622
- val = options.strictNullHandling ? null : '';
6623
- } else {
6624
- key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
6625
- val = utils.maybeMap(
6626
- parseArrayValue(part.slice(pos + 1), options),
6627
- function (encodedVal) {
6628
- return options.decoder(encodedVal, defaults.decoder, charset, 'value');
6629
- }
6630
- );
6631
- }
6580
+ function wrapQuotes(s, defaultStyle, opts) {
6581
+ var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
6582
+ return quoteChar + s + quoteChar;
6583
+ }
6632
6584
 
6633
- if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
6634
- val = interpretNumericEntities(val);
6635
- }
6585
+ function quote(s) {
6586
+ return String(s).replace(/"/g, '&quot;');
6587
+ }
6636
6588
 
6637
- if (part.indexOf('[]=') > -1) {
6638
- val = isArray(val) ? [val] : val;
6639
- }
6589
+ function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
6590
+ function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
6591
+ function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
6592
+ function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
6593
+ function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
6594
+ function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
6595
+ function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
6640
6596
 
6641
- if (has.call(obj, key)) {
6642
- obj[key] = utils.combine(obj[key], val);
6643
- } else {
6644
- obj[key] = val;
6645
- }
6597
+ // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
6598
+ function isSymbol(obj) {
6599
+ if (hasShammedSymbols) {
6600
+ return obj && typeof obj === 'object' && obj instanceof Symbol;
6646
6601
  }
6602
+ if (typeof obj === 'symbol') {
6603
+ return true;
6604
+ }
6605
+ if (!obj || typeof obj !== 'object' || !symToString) {
6606
+ return false;
6607
+ }
6608
+ try {
6609
+ symToString.call(obj);
6610
+ return true;
6611
+ } catch (e) {}
6612
+ return false;
6613
+ }
6647
6614
 
6648
- return obj;
6649
- };
6615
+ function isBigInt(obj) {
6616
+ if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
6617
+ return false;
6618
+ }
6619
+ try {
6620
+ bigIntValueOf.call(obj);
6621
+ return true;
6622
+ } catch (e) {}
6623
+ return false;
6624
+ }
6650
6625
 
6651
- var parseObject = function (chain, val, options, valuesParsed) {
6652
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
6626
+ var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
6627
+ function has(obj, key) {
6628
+ return hasOwn.call(obj, key);
6629
+ }
6653
6630
 
6654
- for (var i = chain.length - 1; i >= 0; --i) {
6655
- var obj;
6656
- var root = chain[i];
6631
+ function toStr(obj) {
6632
+ return objectToString.call(obj);
6633
+ }
6657
6634
 
6658
- if (root === '[]' && options.parseArrays) {
6659
- obj = [].concat(leaf);
6660
- } else {
6661
- obj = options.plainObjects ? Object.create(null) : {};
6662
- var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
6663
- var index = parseInt(cleanRoot, 10);
6664
- if (!options.parseArrays && cleanRoot === '') {
6665
- obj = { 0: leaf };
6666
- } else if (
6667
- !isNaN(index)
6668
- && root !== cleanRoot
6669
- && String(index) === cleanRoot
6670
- && index >= 0
6671
- && (options.parseArrays && index <= options.arrayLimit)
6672
- ) {
6673
- obj = [];
6674
- obj[index] = leaf;
6675
- } else {
6676
- obj[cleanRoot] = leaf;
6677
- }
6678
- }
6635
+ function nameOf(f) {
6636
+ if (f.name) { return f.name; }
6637
+ var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/);
6638
+ if (m) { return m[1]; }
6639
+ return null;
6640
+ }
6679
6641
 
6680
- leaf = obj;
6642
+ function indexOf(xs, x) {
6643
+ if (xs.indexOf) { return xs.indexOf(x); }
6644
+ for (var i = 0, l = xs.length; i < l; i++) {
6645
+ if (xs[i] === x) { return i; }
6681
6646
  }
6647
+ return -1;
6648
+ }
6682
6649
 
6683
- return leaf;
6684
- };
6685
-
6686
- var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
6687
- if (!givenKey) {
6688
- return;
6650
+ function isMap(x) {
6651
+ if (!mapSize || !x || typeof x !== 'object') {
6652
+ return false;
6689
6653
  }
6654
+ try {
6655
+ mapSize.call(x);
6656
+ try {
6657
+ setSize.call(x);
6658
+ } catch (s) {
6659
+ return true;
6660
+ }
6661
+ return x instanceof Map; // core-js workaround, pre-v2.5.0
6662
+ } catch (e) {}
6663
+ return false;
6664
+ }
6690
6665
 
6691
- // Transform dot notation to bracket notation
6692
- var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
6693
-
6694
- // The regex chunks
6695
-
6696
- var brackets = /(\[[^[\]]*])/;
6697
- var child = /(\[[^[\]]*])/g;
6698
-
6699
- // Get the parent
6700
-
6701
- var segment = options.depth > 0 && brackets.exec(key);
6702
- var parent = segment ? key.slice(0, segment.index) : key;
6666
+ function isWeakMap(x) {
6667
+ if (!weakMapHas || !x || typeof x !== 'object') {
6668
+ return false;
6669
+ }
6670
+ try {
6671
+ weakMapHas.call(x, weakMapHas);
6672
+ try {
6673
+ weakSetHas.call(x, weakSetHas);
6674
+ } catch (s) {
6675
+ return true;
6676
+ }
6677
+ return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
6678
+ } catch (e) {}
6679
+ return false;
6680
+ }
6703
6681
 
6704
- // Stash the parent if it exists
6682
+ function isWeakRef(x) {
6683
+ if (!weakRefDeref || !x || typeof x !== 'object') {
6684
+ return false;
6685
+ }
6686
+ try {
6687
+ weakRefDeref.call(x);
6688
+ return true;
6689
+ } catch (e) {}
6690
+ return false;
6691
+ }
6705
6692
 
6706
- var keys = [];
6707
- if (parent) {
6708
- // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
6709
- if (!options.plainObjects && has.call(Object.prototype, parent)) {
6710
- if (!options.allowPrototypes) {
6711
- return;
6712
- }
6693
+ function isSet(x) {
6694
+ if (!setSize || !x || typeof x !== 'object') {
6695
+ return false;
6696
+ }
6697
+ try {
6698
+ setSize.call(x);
6699
+ try {
6700
+ mapSize.call(x);
6701
+ } catch (m) {
6702
+ return true;
6713
6703
  }
6704
+ return x instanceof Set; // core-js workaround, pre-v2.5.0
6705
+ } catch (e) {}
6706
+ return false;
6707
+ }
6714
6708
 
6715
- keys.push(parent);
6709
+ function isWeakSet(x) {
6710
+ if (!weakSetHas || !x || typeof x !== 'object') {
6711
+ return false;
6716
6712
  }
6713
+ try {
6714
+ weakSetHas.call(x, weakSetHas);
6715
+ try {
6716
+ weakMapHas.call(x, weakMapHas);
6717
+ } catch (s) {
6718
+ return true;
6719
+ }
6720
+ return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
6721
+ } catch (e) {}
6722
+ return false;
6723
+ }
6717
6724
 
6718
- // Loop through children appending to the array until we hit depth
6725
+ function isElement(x) {
6726
+ if (!x || typeof x !== 'object') { return false; }
6727
+ if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
6728
+ return true;
6729
+ }
6730
+ return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
6731
+ }
6719
6732
 
6720
- var i = 0;
6721
- while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
6722
- i += 1;
6723
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
6724
- if (!options.allowPrototypes) {
6725
- return;
6726
- }
6727
- }
6728
- keys.push(segment[1]);
6733
+ function inspectString(str, opts) {
6734
+ if (str.length > opts.maxStringLength) {
6735
+ var remaining = str.length - opts.maxStringLength;
6736
+ var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
6737
+ return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer;
6729
6738
  }
6739
+ // eslint-disable-next-line no-control-regex
6740
+ var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte);
6741
+ return wrapQuotes(s, 'single', opts);
6742
+ }
6730
6743
 
6731
- // If there's a remainder, just add whatever is left
6744
+ function lowbyte(c) {
6745
+ var n = c.charCodeAt(0);
6746
+ var x = {
6747
+ 8: 'b',
6748
+ 9: 't',
6749
+ 10: 'n',
6750
+ 12: 'f',
6751
+ 13: 'r'
6752
+ }[n];
6753
+ if (x) { return '\\' + x; }
6754
+ return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
6755
+ }
6732
6756
 
6733
- if (segment) {
6734
- keys.push('[' + key.slice(segment.index) + ']');
6735
- }
6757
+ function markBoxed(str) {
6758
+ return 'Object(' + str + ')';
6759
+ }
6736
6760
 
6737
- return parseObject(keys, val, options, valuesParsed);
6738
- };
6761
+ function weakCollectionOf(type) {
6762
+ return type + ' { ? }';
6763
+ }
6739
6764
 
6740
- var normalizeParseOptions = function normalizeParseOptions(opts) {
6741
- if (!opts) {
6742
- return defaults;
6743
- }
6765
+ function collectionOf(type, size, entries, indent) {
6766
+ var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');
6767
+ return type + ' (' + size + ') {' + joinedEntries + '}';
6768
+ }
6744
6769
 
6745
- if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
6746
- throw new TypeError('Decoder has to be a function.');
6770
+ function singleLineValues(xs) {
6771
+ for (var i = 0; i < xs.length; i++) {
6772
+ if (indexOf(xs[i], '\n') >= 0) {
6773
+ return false;
6774
+ }
6747
6775
  }
6776
+ return true;
6777
+ }
6748
6778
 
6749
- if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
6750
- throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
6779
+ function getIndent(opts, depth) {
6780
+ var baseIndent;
6781
+ if (opts.indent === '\t') {
6782
+ baseIndent = '\t';
6783
+ } else if (typeof opts.indent === 'number' && opts.indent > 0) {
6784
+ baseIndent = Array(opts.indent + 1).join(' ');
6785
+ } else {
6786
+ return null;
6751
6787
  }
6752
- var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
6753
-
6754
6788
  return {
6755
- allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
6756
- allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
6757
- allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
6758
- arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
6759
- charset: charset,
6760
- charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
6761
- comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
6762
- decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
6763
- delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
6764
- // eslint-disable-next-line no-implicit-coercion, no-extra-parens
6765
- depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
6766
- ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
6767
- interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
6768
- parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
6769
- parseArrays: opts.parseArrays !== false,
6770
- plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
6771
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
6789
+ base: baseIndent,
6790
+ prev: Array(depth + 1).join(baseIndent)
6772
6791
  };
6773
- };
6792
+ }
6774
6793
 
6775
- module.exports = function (str, opts) {
6776
- var options = normalizeParseOptions(opts);
6794
+ function indentedJoin(xs, indent) {
6795
+ if (xs.length === 0) { return ''; }
6796
+ var lineJoiner = '\n' + indent.prev + indent.base;
6797
+ return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
6798
+ }
6777
6799
 
6778
- if (str === '' || str === null || typeof str === 'undefined') {
6779
- return options.plainObjects ? Object.create(null) : {};
6800
+ function arrObjKeys(obj, inspect) {
6801
+ var isArr = isArray(obj);
6802
+ var xs = [];
6803
+ if (isArr) {
6804
+ xs.length = obj.length;
6805
+ for (var i = 0; i < obj.length; i++) {
6806
+ xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
6807
+ }
6808
+ }
6809
+ var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
6810
+ var symMap;
6811
+ if (hasShammedSymbols) {
6812
+ symMap = {};
6813
+ for (var k = 0; k < syms.length; k++) {
6814
+ symMap['$' + syms[k]] = syms[k];
6815
+ }
6780
6816
  }
6781
6817
 
6782
- var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
6783
- var obj = options.plainObjects ? Object.create(null) : {};
6818
+ for (var key in obj) { // eslint-disable-line no-restricted-syntax
6819
+ if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
6820
+ if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
6821
+ if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
6822
+ // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
6823
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
6824
+ } else if ((/[^\w$]/).test(key)) {
6825
+ xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
6826
+ } else {
6827
+ xs.push(key + ': ' + inspect(obj[key], obj));
6828
+ }
6829
+ }
6830
+ if (typeof gOPS === 'function') {
6831
+ for (var j = 0; j < syms.length; j++) {
6832
+ if (isEnumerable.call(obj, syms[j])) {
6833
+ xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
6834
+ }
6835
+ }
6836
+ }
6837
+ return xs;
6838
+ }
6784
6839
 
6785
- // Iterate over the keys and setup the new object
6786
6840
 
6787
- var keys = Object.keys(tempObj);
6788
- for (var i = 0; i < keys.length; ++i) {
6789
- var key = keys[i];
6790
- var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
6791
- obj = utils.merge(obj, newObj, options);
6792
- }
6841
+ /***/ }),
6793
6842
 
6794
- if (options.allowSparse === true) {
6795
- return obj;
6796
- }
6843
+ /***/ "../node_modules/object-inspect/util.inspect.js":
6844
+ /*!******************************************************!*\
6845
+ !*** ../node_modules/object-inspect/util.inspect.js ***!
6846
+ \******************************************************/
6847
+ /*! no static exports found */
6848
+ /***/ (function(module, exports, __webpack_require__) {
6797
6849
 
6798
- return utils.compact(obj);
6799
- };
6850
+ module.exports = __webpack_require__(/*! util */ "util").inspect;
6800
6851
 
6801
6852
 
6802
6853
  /***/ }),
6803
6854
 
6804
- /***/ "../node_modules/qs/lib/stringify.js":
6855
+ /***/ "../node_modules/p-throttle/index.js":
6805
6856
  /*!*******************************************!*\
6806
- !*** ../node_modules/qs/lib/stringify.js ***!
6857
+ !*** ../node_modules/p-throttle/index.js ***!
6807
6858
  \*******************************************/
6808
6859
  /*! no static exports found */
6809
6860
  /***/ (function(module, exports, __webpack_require__) {
@@ -6811,301 +6862,148 @@ module.exports = function (str, opts) {
6811
6862
  "use strict";
6812
6863
 
6813
6864
 
6814
- var getSideChannel = __webpack_require__(/*! side-channel */ "../node_modules/side-channel/index.js");
6815
- var utils = __webpack_require__(/*! ./utils */ "../node_modules/qs/lib/utils.js");
6816
- var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
6817
- var has = Object.prototype.hasOwnProperty;
6818
-
6819
- var arrayPrefixGenerators = {
6820
- brackets: function brackets(prefix) {
6821
- return prefix + '[]';
6822
- },
6823
- comma: 'comma',
6824
- indices: function indices(prefix, key) {
6825
- return prefix + '[' + key + ']';
6826
- },
6827
- repeat: function repeat(prefix) {
6828
- return prefix;
6829
- }
6830
- };
6831
-
6832
- var isArray = Array.isArray;
6833
- var push = Array.prototype.push;
6834
- var pushToArray = function (arr, valueOrArray) {
6835
- push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
6836
- };
6837
-
6838
- var toISO = Date.prototype.toISOString;
6839
-
6840
- var defaultFormat = formats['default'];
6841
- var defaults = {
6842
- addQueryPrefix: false,
6843
- allowDots: false,
6844
- charset: 'utf-8',
6845
- charsetSentinel: false,
6846
- delimiter: '&',
6847
- encode: true,
6848
- encoder: utils.encode,
6849
- encodeValuesOnly: false,
6850
- format: defaultFormat,
6851
- formatter: formats.formatters[defaultFormat],
6852
- // deprecated
6853
- indices: false,
6854
- serializeDate: function serializeDate(date) {
6855
- return toISO.call(date);
6856
- },
6857
- skipNulls: false,
6858
- strictNullHandling: false
6859
- };
6860
-
6861
- var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
6862
- return typeof v === 'string'
6863
- || typeof v === 'number'
6864
- || typeof v === 'boolean'
6865
- || typeof v === 'symbol'
6866
- || typeof v === 'bigint';
6867
- };
6868
-
6869
- var stringify = function stringify(
6870
- object,
6871
- prefix,
6872
- generateArrayPrefix,
6873
- strictNullHandling,
6874
- skipNulls,
6875
- encoder,
6876
- filter,
6877
- sort,
6878
- allowDots,
6879
- serializeDate,
6880
- format,
6881
- formatter,
6882
- encodeValuesOnly,
6883
- charset,
6884
- sideChannel
6885
- ) {
6886
- var obj = object;
6865
+ class AbortError extends Error {
6866
+ constructor() {
6867
+ super('Throttled function aborted');
6868
+ this.name = 'AbortError';
6869
+ }
6870
+ }
6887
6871
 
6888
- if (sideChannel.has(object)) {
6889
- throw new RangeError('Cyclic object value');
6890
- }
6872
+ const pThrottle = ({limit, interval, strict}) => {
6873
+ if (!Number.isFinite(limit)) {
6874
+ throw new TypeError('Expected `limit` to be a finite number');
6875
+ }
6891
6876
 
6892
- if (typeof filter === 'function') {
6893
- obj = filter(prefix, obj);
6894
- } else if (obj instanceof Date) {
6895
- obj = serializeDate(obj);
6896
- } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
6897
- obj = utils.maybeMap(obj, function (value) {
6898
- if (value instanceof Date) {
6899
- return serializeDate(value);
6900
- }
6901
- return value;
6902
- });
6903
- }
6877
+ if (!Number.isFinite(interval)) {
6878
+ throw new TypeError('Expected `interval` to be a finite number');
6879
+ }
6904
6880
 
6905
- if (obj === null) {
6906
- if (strictNullHandling) {
6907
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
6908
- }
6881
+ const queue = new Map();
6909
6882
 
6910
- obj = '';
6911
- }
6883
+ let currentTick = 0;
6884
+ let activeCount = 0;
6912
6885
 
6913
- if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
6914
- if (encoder) {
6915
- var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
6916
- return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
6917
- }
6918
- return [formatter(prefix) + '=' + formatter(String(obj))];
6919
- }
6886
+ function windowedDelay() {
6887
+ const now = Date.now();
6920
6888
 
6921
- var values = [];
6889
+ if ((now - currentTick) > interval) {
6890
+ activeCount = 1;
6891
+ currentTick = now;
6892
+ return 0;
6893
+ }
6922
6894
 
6923
- if (typeof obj === 'undefined') {
6924
- return values;
6925
- }
6895
+ if (activeCount < limit) {
6896
+ activeCount++;
6897
+ } else {
6898
+ currentTick += interval;
6899
+ activeCount = 1;
6900
+ }
6926
6901
 
6927
- var objKeys;
6928
- if (generateArrayPrefix === 'comma' && isArray(obj)) {
6929
- // we need to join elements in
6930
- objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
6931
- } else if (isArray(filter)) {
6932
- objKeys = filter;
6933
- } else {
6934
- var keys = Object.keys(obj);
6935
- objKeys = sort ? keys.sort(sort) : keys;
6936
- }
6902
+ return currentTick - now;
6903
+ }
6937
6904
 
6938
- for (var i = 0; i < objKeys.length; ++i) {
6939
- var key = objKeys[i];
6940
- var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
6905
+ const strictTicks = [];
6941
6906
 
6942
- if (skipNulls && value === null) {
6943
- continue;
6944
- }
6907
+ function strictDelay() {
6908
+ const now = Date.now();
6945
6909
 
6946
- var keyPrefix = isArray(obj)
6947
- ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
6948
- : prefix + (allowDots ? '.' + key : '[' + key + ']');
6910
+ if (strictTicks.length < limit) {
6911
+ strictTicks.push(now);
6912
+ return 0;
6913
+ }
6949
6914
 
6950
- sideChannel.set(object, true);
6951
- var valueSideChannel = getSideChannel();
6952
- pushToArray(values, stringify(
6953
- value,
6954
- keyPrefix,
6955
- generateArrayPrefix,
6956
- strictNullHandling,
6957
- skipNulls,
6958
- encoder,
6959
- filter,
6960
- sort,
6961
- allowDots,
6962
- serializeDate,
6963
- format,
6964
- formatter,
6965
- encodeValuesOnly,
6966
- charset,
6967
- valueSideChannel
6968
- ));
6969
- }
6915
+ const earliestTime = strictTicks.shift() + interval;
6970
6916
 
6971
- return values;
6972
- };
6917
+ if (now >= earliestTime) {
6918
+ strictTicks.push(now);
6919
+ return 0;
6920
+ }
6973
6921
 
6974
- var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
6975
- if (!opts) {
6976
- return defaults;
6977
- }
6922
+ strictTicks.push(earliestTime);
6923
+ return earliestTime - now;
6924
+ }
6978
6925
 
6979
- if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
6980
- throw new TypeError('Encoder has to be a function.');
6981
- }
6926
+ const getDelay = strict ? strictDelay : windowedDelay;
6982
6927
 
6983
- var charset = opts.charset || defaults.charset;
6984
- if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
6985
- throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
6986
- }
6928
+ return function_ => {
6929
+ const throttled = function (...args) {
6930
+ if (!throttled.isEnabled) {
6931
+ return (async () => function_.apply(this, args))();
6932
+ }
6987
6933
 
6988
- var format = formats['default'];
6989
- if (typeof opts.format !== 'undefined') {
6990
- if (!has.call(formats.formatters, opts.format)) {
6991
- throw new TypeError('Unknown format option provided.');
6992
- }
6993
- format = opts.format;
6994
- }
6995
- var formatter = formats.formatters[format];
6934
+ let timeout;
6935
+ return new Promise((resolve, reject) => {
6936
+ const execute = () => {
6937
+ resolve(function_.apply(this, args));
6938
+ queue.delete(timeout);
6939
+ };
6996
6940
 
6997
- var filter = defaults.filter;
6998
- if (typeof opts.filter === 'function' || isArray(opts.filter)) {
6999
- filter = opts.filter;
7000
- }
6941
+ timeout = setTimeout(execute, getDelay());
7001
6942
 
7002
- return {
7003
- addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
7004
- allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
7005
- charset: charset,
7006
- charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
7007
- delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
7008
- encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
7009
- encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
7010
- encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
7011
- filter: filter,
7012
- format: format,
7013
- formatter: formatter,
7014
- serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
7015
- skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
7016
- sort: typeof opts.sort === 'function' ? opts.sort : null,
7017
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
7018
- };
7019
- };
6943
+ queue.set(timeout, reject);
6944
+ });
6945
+ };
7020
6946
 
7021
- module.exports = function (object, opts) {
7022
- var obj = object;
7023
- var options = normalizeStringifyOptions(opts);
6947
+ throttled.abort = () => {
6948
+ for (const timeout of queue.keys()) {
6949
+ clearTimeout(timeout);
6950
+ queue.get(timeout)(new AbortError());
6951
+ }
7024
6952
 
7025
- var objKeys;
7026
- var filter;
6953
+ queue.clear();
6954
+ strictTicks.splice(0, strictTicks.length);
6955
+ };
7027
6956
 
7028
- if (typeof options.filter === 'function') {
7029
- filter = options.filter;
7030
- obj = filter('', obj);
7031
- } else if (isArray(options.filter)) {
7032
- filter = options.filter;
7033
- objKeys = filter;
7034
- }
6957
+ throttled.isEnabled = true;
7035
6958
 
7036
- var keys = [];
6959
+ return throttled;
6960
+ };
6961
+ };
7037
6962
 
7038
- if (typeof obj !== 'object' || obj === null) {
7039
- return '';
7040
- }
6963
+ module.exports = pThrottle;
6964
+ module.exports.AbortError = AbortError;
7041
6965
 
7042
- var arrayFormat;
7043
- if (opts && opts.arrayFormat in arrayPrefixGenerators) {
7044
- arrayFormat = opts.arrayFormat;
7045
- } else if (opts && 'indices' in opts) {
7046
- arrayFormat = opts.indices ? 'indices' : 'repeat';
7047
- } else {
7048
- arrayFormat = 'indices';
7049
- }
7050
6966
 
7051
- var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
6967
+ /***/ }),
7052
6968
 
7053
- if (!objKeys) {
7054
- objKeys = Object.keys(obj);
7055
- }
6969
+ /***/ "../node_modules/qs/lib/formats.js":
6970
+ /*!*****************************************!*\
6971
+ !*** ../node_modules/qs/lib/formats.js ***!
6972
+ \*****************************************/
6973
+ /*! no static exports found */
6974
+ /***/ (function(module, exports, __webpack_require__) {
7056
6975
 
7057
- if (options.sort) {
7058
- objKeys.sort(options.sort);
7059
- }
6976
+ "use strict";
7060
6977
 
7061
- var sideChannel = getSideChannel();
7062
- for (var i = 0; i < objKeys.length; ++i) {
7063
- var key = objKeys[i];
7064
6978
 
7065
- if (options.skipNulls && obj[key] === null) {
7066
- continue;
7067
- }
7068
- pushToArray(keys, stringify(
7069
- obj[key],
7070
- key,
7071
- generateArrayPrefix,
7072
- options.strictNullHandling,
7073
- options.skipNulls,
7074
- options.encode ? options.encoder : null,
7075
- options.filter,
7076
- options.sort,
7077
- options.allowDots,
7078
- options.serializeDate,
7079
- options.format,
7080
- options.formatter,
7081
- options.encodeValuesOnly,
7082
- options.charset,
7083
- sideChannel
7084
- ));
7085
- }
6979
+ var replace = String.prototype.replace;
6980
+ var percentTwenties = /%20/g;
7086
6981
 
7087
- var joined = keys.join(options.delimiter);
7088
- var prefix = options.addQueryPrefix === true ? '?' : '';
6982
+ var Format = {
6983
+ RFC1738: 'RFC1738',
6984
+ RFC3986: 'RFC3986'
6985
+ };
7089
6986
 
7090
- if (options.charsetSentinel) {
7091
- if (options.charset === 'iso-8859-1') {
7092
- // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
7093
- prefix += 'utf8=%26%2310003%3B&';
7094
- } else {
7095
- // encodeURIComponent('✓')
7096
- prefix += 'utf8=%E2%9C%93&';
6987
+ module.exports = {
6988
+ 'default': Format.RFC3986,
6989
+ formatters: {
6990
+ RFC1738: function (value) {
6991
+ return replace.call(value, percentTwenties, '+');
6992
+ },
6993
+ RFC3986: function (value) {
6994
+ return String(value);
7097
6995
  }
7098
- }
7099
-
7100
- return joined.length > 0 ? prefix + joined : '';
6996
+ },
6997
+ RFC1738: Format.RFC1738,
6998
+ RFC3986: Format.RFC3986
7101
6999
  };
7102
7000
 
7103
7001
 
7104
7002
  /***/ }),
7105
7003
 
7106
- /***/ "../node_modules/qs/lib/utils.js":
7004
+ /***/ "../node_modules/qs/lib/index.js":
7107
7005
  /*!***************************************!*\
7108
- !*** ../node_modules/qs/lib/utils.js ***!
7006
+ !*** ../node_modules/qs/lib/index.js ***!
7109
7007
  \***************************************/
7110
7008
  /*! no static exports found */
7111
7009
  /***/ (function(module, exports, __webpack_require__) {
@@ -7113,1209 +7011,991 @@ module.exports = function (object, opts) {
7113
7011
  "use strict";
7114
7012
 
7115
7013
 
7014
+ var stringify = __webpack_require__(/*! ./stringify */ "../node_modules/qs/lib/stringify.js");
7015
+ var parse = __webpack_require__(/*! ./parse */ "../node_modules/qs/lib/parse.js");
7116
7016
  var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
7117
7017
 
7118
- var has = Object.prototype.hasOwnProperty;
7119
- var isArray = Array.isArray;
7018
+ module.exports = {
7019
+ formats: formats,
7020
+ parse: parse,
7021
+ stringify: stringify
7022
+ };
7120
7023
 
7121
- var hexTable = (function () {
7122
- var array = [];
7123
- for (var i = 0; i < 256; ++i) {
7124
- array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
7125
- }
7126
7024
 
7127
- return array;
7128
- }());
7025
+ /***/ }),
7129
7026
 
7130
- var compactQueue = function compactQueue(queue) {
7131
- while (queue.length > 1) {
7132
- var item = queue.pop();
7133
- var obj = item.obj[item.prop];
7027
+ /***/ "../node_modules/qs/lib/parse.js":
7028
+ /*!***************************************!*\
7029
+ !*** ../node_modules/qs/lib/parse.js ***!
7030
+ \***************************************/
7031
+ /*! no static exports found */
7032
+ /***/ (function(module, exports, __webpack_require__) {
7033
+
7034
+ "use strict";
7134
7035
 
7135
- if (isArray(obj)) {
7136
- var compacted = [];
7137
7036
 
7138
- for (var j = 0; j < obj.length; ++j) {
7139
- if (typeof obj[j] !== 'undefined') {
7140
- compacted.push(obj[j]);
7141
- }
7142
- }
7037
+ var utils = __webpack_require__(/*! ./utils */ "../node_modules/qs/lib/utils.js");
7143
7038
 
7144
- item.obj[item.prop] = compacted;
7145
- }
7146
- }
7147
- };
7039
+ var has = Object.prototype.hasOwnProperty;
7040
+ var isArray = Array.isArray;
7148
7041
 
7149
- var arrayToObject = function arrayToObject(source, options) {
7150
- var obj = options && options.plainObjects ? Object.create(null) : {};
7151
- for (var i = 0; i < source.length; ++i) {
7152
- if (typeof source[i] !== 'undefined') {
7153
- obj[i] = source[i];
7154
- }
7155
- }
7042
+ var defaults = {
7043
+ allowDots: false,
7044
+ allowPrototypes: false,
7045
+ allowSparse: false,
7046
+ arrayLimit: 20,
7047
+ charset: 'utf-8',
7048
+ charsetSentinel: false,
7049
+ comma: false,
7050
+ decoder: utils.decode,
7051
+ delimiter: '&',
7052
+ depth: 5,
7053
+ ignoreQueryPrefix: false,
7054
+ interpretNumericEntities: false,
7055
+ parameterLimit: 1000,
7056
+ parseArrays: true,
7057
+ plainObjects: false,
7058
+ strictNullHandling: false
7059
+ };
7156
7060
 
7157
- return obj;
7061
+ var interpretNumericEntities = function (str) {
7062
+ return str.replace(/&#(\d+);/g, function ($0, numberStr) {
7063
+ return String.fromCharCode(parseInt(numberStr, 10));
7064
+ });
7158
7065
  };
7159
7066
 
7160
- var merge = function merge(target, source, options) {
7161
- /* eslint no-param-reassign: 0 */
7162
- if (!source) {
7163
- return target;
7067
+ var parseArrayValue = function (val, options) {
7068
+ if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
7069
+ return val.split(',');
7164
7070
  }
7165
7071
 
7166
- if (typeof source !== 'object') {
7167
- if (isArray(target)) {
7168
- target.push(source);
7169
- } else if (target && typeof target === 'object') {
7170
- if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
7171
- target[source] = true;
7172
- }
7173
- } else {
7174
- return [target, source];
7175
- }
7072
+ return val;
7073
+ };
7176
7074
 
7177
- return target;
7178
- }
7075
+ // This is what browsers will submit when the ✓ character occurs in an
7076
+ // application/x-www-form-urlencoded body and the encoding of the page containing
7077
+ // the form is iso-8859-1, or when the submitted form has an accept-charset
7078
+ // attribute of iso-8859-1. Presumably also with other charsets that do not contain
7079
+ // the ✓ character, such as us-ascii.
7080
+ var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
7179
7081
 
7180
- if (!target || typeof target !== 'object') {
7181
- return [target].concat(source);
7182
- }
7082
+ // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
7083
+ var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
7183
7084
 
7184
- var mergeTarget = target;
7185
- if (isArray(target) && !isArray(source)) {
7186
- mergeTarget = arrayToObject(target, options);
7187
- }
7085
+ var parseValues = function parseQueryStringValues(str, options) {
7086
+ var obj = {};
7087
+ var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
7088
+ var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
7089
+ var parts = cleanStr.split(options.delimiter, limit);
7090
+ var skipIndex = -1; // Keep track of where the utf8 sentinel was found
7091
+ var i;
7188
7092
 
7189
- if (isArray(target) && isArray(source)) {
7190
- source.forEach(function (item, i) {
7191
- if (has.call(target, i)) {
7192
- var targetItem = target[i];
7193
- if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
7194
- target[i] = merge(targetItem, item, options);
7195
- } else {
7196
- target.push(item);
7093
+ var charset = options.charset;
7094
+ if (options.charsetSentinel) {
7095
+ for (i = 0; i < parts.length; ++i) {
7096
+ if (parts[i].indexOf('utf8=') === 0) {
7097
+ if (parts[i] === charsetSentinel) {
7098
+ charset = 'utf-8';
7099
+ } else if (parts[i] === isoSentinel) {
7100
+ charset = 'iso-8859-1';
7197
7101
  }
7198
- } else {
7199
- target[i] = item;
7102
+ skipIndex = i;
7103
+ i = parts.length; // The eslint settings do not allow break;
7200
7104
  }
7201
- });
7202
- return target;
7105
+ }
7203
7106
  }
7204
7107
 
7205
- return Object.keys(source).reduce(function (acc, key) {
7206
- var value = source[key];
7108
+ for (i = 0; i < parts.length; ++i) {
7109
+ if (i === skipIndex) {
7110
+ continue;
7111
+ }
7112
+ var part = parts[i];
7207
7113
 
7208
- if (has.call(acc, key)) {
7209
- acc[key] = merge(acc[key], value, options);
7114
+ var bracketEqualsPos = part.indexOf(']=');
7115
+ var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
7116
+
7117
+ var key, val;
7118
+ if (pos === -1) {
7119
+ key = options.decoder(part, defaults.decoder, charset, 'key');
7120
+ val = options.strictNullHandling ? null : '';
7210
7121
  } else {
7211
- acc[key] = value;
7122
+ key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
7123
+ val = utils.maybeMap(
7124
+ parseArrayValue(part.slice(pos + 1), options),
7125
+ function (encodedVal) {
7126
+ return options.decoder(encodedVal, defaults.decoder, charset, 'value');
7127
+ }
7128
+ );
7212
7129
  }
7213
- return acc;
7214
- }, mergeTarget);
7215
- };
7216
-
7217
- var assign = function assignSingleSource(target, source) {
7218
- return Object.keys(source).reduce(function (acc, key) {
7219
- acc[key] = source[key];
7220
- return acc;
7221
- }, target);
7222
- };
7223
7130
 
7224
- var decode = function (str, decoder, charset) {
7225
- var strWithoutPlus = str.replace(/\+/g, ' ');
7226
- if (charset === 'iso-8859-1') {
7227
- // unescape never throws, no try...catch needed:
7228
- return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
7229
- }
7230
- // utf-8
7231
- try {
7232
- return decodeURIComponent(strWithoutPlus);
7233
- } catch (e) {
7234
- return strWithoutPlus;
7235
- }
7236
- };
7131
+ if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
7132
+ val = interpretNumericEntities(val);
7133
+ }
7237
7134
 
7238
- var encode = function encode(str, defaultEncoder, charset, kind, format) {
7239
- // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
7240
- // It has been adapted here for stricter adherence to RFC 3986
7241
- if (str.length === 0) {
7242
- return str;
7243
- }
7135
+ if (part.indexOf('[]=') > -1) {
7136
+ val = isArray(val) ? [val] : val;
7137
+ }
7244
7138
 
7245
- var string = str;
7246
- if (typeof str === 'symbol') {
7247
- string = Symbol.prototype.toString.call(str);
7248
- } else if (typeof str !== 'string') {
7249
- string = String(str);
7139
+ if (has.call(obj, key)) {
7140
+ obj[key] = utils.combine(obj[key], val);
7141
+ } else {
7142
+ obj[key] = val;
7143
+ }
7250
7144
  }
7251
7145
 
7252
- if (charset === 'iso-8859-1') {
7253
- return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
7254
- return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
7255
- });
7256
- }
7146
+ return obj;
7147
+ };
7257
7148
 
7258
- var out = '';
7259
- for (var i = 0; i < string.length; ++i) {
7260
- var c = string.charCodeAt(i);
7149
+ var parseObject = function (chain, val, options, valuesParsed) {
7150
+ var leaf = valuesParsed ? val : parseArrayValue(val, options);
7261
7151
 
7262
- if (
7263
- c === 0x2D // -
7264
- || c === 0x2E // .
7265
- || c === 0x5F // _
7266
- || c === 0x7E // ~
7267
- || (c >= 0x30 && c <= 0x39) // 0-9
7268
- || (c >= 0x41 && c <= 0x5A) // a-z
7269
- || (c >= 0x61 && c <= 0x7A) // A-Z
7270
- || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
7271
- ) {
7272
- out += string.charAt(i);
7273
- continue;
7274
- }
7152
+ for (var i = chain.length - 1; i >= 0; --i) {
7153
+ var obj;
7154
+ var root = chain[i];
7275
7155
 
7276
- if (c < 0x80) {
7277
- out = out + hexTable[c];
7278
- continue;
7156
+ if (root === '[]' && options.parseArrays) {
7157
+ obj = [].concat(leaf);
7158
+ } else {
7159
+ obj = options.plainObjects ? Object.create(null) : {};
7160
+ var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
7161
+ var index = parseInt(cleanRoot, 10);
7162
+ if (!options.parseArrays && cleanRoot === '') {
7163
+ obj = { 0: leaf };
7164
+ } else if (
7165
+ !isNaN(index)
7166
+ && root !== cleanRoot
7167
+ && String(index) === cleanRoot
7168
+ && index >= 0
7169
+ && (options.parseArrays && index <= options.arrayLimit)
7170
+ ) {
7171
+ obj = [];
7172
+ obj[index] = leaf;
7173
+ } else {
7174
+ obj[cleanRoot] = leaf;
7175
+ }
7279
7176
  }
7280
7177
 
7281
- if (c < 0x800) {
7282
- out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
7283
- continue;
7284
- }
7178
+ leaf = obj;
7179
+ }
7285
7180
 
7286
- if (c < 0xD800 || c >= 0xE000) {
7287
- out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
7288
- continue;
7289
- }
7181
+ return leaf;
7182
+ };
7290
7183
 
7291
- i += 1;
7292
- c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
7293
- out += hexTable[0xF0 | (c >> 18)]
7294
- + hexTable[0x80 | ((c >> 12) & 0x3F)]
7295
- + hexTable[0x80 | ((c >> 6) & 0x3F)]
7296
- + hexTable[0x80 | (c & 0x3F)];
7184
+ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
7185
+ if (!givenKey) {
7186
+ return;
7297
7187
  }
7298
7188
 
7299
- return out;
7300
- };
7189
+ // Transform dot notation to bracket notation
7190
+ var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
7191
+
7192
+ // The regex chunks
7193
+
7194
+ var brackets = /(\[[^[\]]*])/;
7195
+ var child = /(\[[^[\]]*])/g;
7301
7196
 
7302
- var compact = function compact(value) {
7303
- var queue = [{ obj: { o: value }, prop: 'o' }];
7304
- var refs = [];
7197
+ // Get the parent
7305
7198
 
7306
- for (var i = 0; i < queue.length; ++i) {
7307
- var item = queue[i];
7308
- var obj = item.obj[item.prop];
7199
+ var segment = options.depth > 0 && brackets.exec(key);
7200
+ var parent = segment ? key.slice(0, segment.index) : key;
7309
7201
 
7310
- var keys = Object.keys(obj);
7311
- for (var j = 0; j < keys.length; ++j) {
7312
- var key = keys[j];
7313
- var val = obj[key];
7314
- if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
7315
- queue.push({ obj: obj, prop: key });
7316
- refs.push(val);
7202
+ // Stash the parent if it exists
7203
+
7204
+ var keys = [];
7205
+ if (parent) {
7206
+ // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
7207
+ if (!options.plainObjects && has.call(Object.prototype, parent)) {
7208
+ if (!options.allowPrototypes) {
7209
+ return;
7317
7210
  }
7318
7211
  }
7319
- }
7320
-
7321
- compactQueue(queue);
7322
7212
 
7323
- return value;
7324
- };
7213
+ keys.push(parent);
7214
+ }
7325
7215
 
7326
- var isRegExp = function isRegExp(obj) {
7327
- return Object.prototype.toString.call(obj) === '[object RegExp]';
7328
- };
7216
+ // Loop through children appending to the array until we hit depth
7329
7217
 
7330
- var isBuffer = function isBuffer(obj) {
7331
- if (!obj || typeof obj !== 'object') {
7332
- return false;
7218
+ var i = 0;
7219
+ while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
7220
+ i += 1;
7221
+ if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
7222
+ if (!options.allowPrototypes) {
7223
+ return;
7224
+ }
7225
+ }
7226
+ keys.push(segment[1]);
7333
7227
  }
7334
7228
 
7335
- return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
7336
- };
7337
-
7338
- var combine = function combine(a, b) {
7339
- return [].concat(a, b);
7340
- };
7229
+ // If there's a remainder, just add whatever is left
7341
7230
 
7342
- var maybeMap = function maybeMap(val, fn) {
7343
- if (isArray(val)) {
7344
- var mapped = [];
7345
- for (var i = 0; i < val.length; i += 1) {
7346
- mapped.push(fn(val[i]));
7347
- }
7348
- return mapped;
7231
+ if (segment) {
7232
+ keys.push('[' + key.slice(segment.index) + ']');
7349
7233
  }
7350
- return fn(val);
7351
- };
7352
7234
 
7353
- module.exports = {
7354
- arrayToObject: arrayToObject,
7355
- assign: assign,
7356
- combine: combine,
7357
- compact: compact,
7358
- decode: decode,
7359
- encode: encode,
7360
- isBuffer: isBuffer,
7361
- isRegExp: isRegExp,
7362
- maybeMap: maybeMap,
7363
- merge: merge
7235
+ return parseObject(keys, val, options, valuesParsed);
7364
7236
  };
7365
7237
 
7238
+ var normalizeParseOptions = function normalizeParseOptions(opts) {
7239
+ if (!opts) {
7240
+ return defaults;
7241
+ }
7366
7242
 
7367
- /***/ }),
7243
+ if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
7244
+ throw new TypeError('Decoder has to be a function.');
7245
+ }
7368
7246
 
7369
- /***/ "../node_modules/side-channel/index.js":
7370
- /*!*********************************************!*\
7371
- !*** ../node_modules/side-channel/index.js ***!
7372
- \*********************************************/
7373
- /*! no static exports found */
7374
- /***/ (function(module, exports, __webpack_require__) {
7247
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
7248
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
7249
+ }
7250
+ var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
7375
7251
 
7376
- "use strict";
7252
+ return {
7253
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
7254
+ allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
7255
+ allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
7256
+ arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
7257
+ charset: charset,
7258
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
7259
+ comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
7260
+ decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
7261
+ delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
7262
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
7263
+ depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
7264
+ ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
7265
+ interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
7266
+ parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
7267
+ parseArrays: opts.parseArrays !== false,
7268
+ plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
7269
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
7270
+ };
7271
+ };
7377
7272
 
7273
+ module.exports = function (str, opts) {
7274
+ var options = normalizeParseOptions(opts);
7378
7275
 
7379
- var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/side-channel/node_modules/get-intrinsic/index.js");
7380
- var callBound = __webpack_require__(/*! call-bind/callBound */ "../node_modules/call-bind/callBound.js");
7381
- var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/side-channel/node_modules/object-inspect/index.js");
7276
+ if (str === '' || str === null || typeof str === 'undefined') {
7277
+ return options.plainObjects ? Object.create(null) : {};
7278
+ }
7382
7279
 
7383
- var $TypeError = GetIntrinsic('%TypeError%');
7384
- var $WeakMap = GetIntrinsic('%WeakMap%', true);
7385
- var $Map = GetIntrinsic('%Map%', true);
7280
+ var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
7281
+ var obj = options.plainObjects ? Object.create(null) : {};
7386
7282
 
7387
- var $weakMapGet = callBound('WeakMap.prototype.get', true);
7388
- var $weakMapSet = callBound('WeakMap.prototype.set', true);
7389
- var $weakMapHas = callBound('WeakMap.prototype.has', true);
7390
- var $mapGet = callBound('Map.prototype.get', true);
7391
- var $mapSet = callBound('Map.prototype.set', true);
7392
- var $mapHas = callBound('Map.prototype.has', true);
7283
+ // Iterate over the keys and setup the new object
7393
7284
 
7394
- /*
7395
- * This function traverses the list returning the node corresponding to the
7396
- * given key.
7397
- *
7398
- * That node is also moved to the head of the list, so that if it's accessed
7399
- * again we don't need to traverse the whole list. By doing so, all the recently
7400
- * used nodes can be accessed relatively quickly.
7401
- */
7402
- var listGetNode = function (list, key) { // eslint-disable-line consistent-return
7403
- for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
7404
- if (curr.key === key) {
7405
- prev.next = curr.next;
7406
- curr.next = list.next;
7407
- list.next = curr; // eslint-disable-line no-param-reassign
7408
- return curr;
7409
- }
7410
- }
7411
- };
7285
+ var keys = Object.keys(tempObj);
7286
+ for (var i = 0; i < keys.length; ++i) {
7287
+ var key = keys[i];
7288
+ var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
7289
+ obj = utils.merge(obj, newObj, options);
7290
+ }
7412
7291
 
7413
- var listGet = function (objects, key) {
7414
- var node = listGetNode(objects, key);
7415
- return node && node.value;
7416
- };
7417
- var listSet = function (objects, key, value) {
7418
- var node = listGetNode(objects, key);
7419
- if (node) {
7420
- node.value = value;
7421
- } else {
7422
- // Prepend the new node to the beginning of the list
7423
- objects.next = { // eslint-disable-line no-param-reassign
7424
- key: key,
7425
- next: objects.next,
7426
- value: value
7427
- };
7428
- }
7429
- };
7430
- var listHas = function (objects, key) {
7431
- return !!listGetNode(objects, key);
7432
- };
7292
+ if (options.allowSparse === true) {
7293
+ return obj;
7294
+ }
7433
7295
 
7434
- module.exports = function getSideChannel() {
7435
- var $wm;
7436
- var $m;
7437
- var $o;
7438
- var channel = {
7439
- assert: function (key) {
7440
- if (!channel.has(key)) {
7441
- throw new $TypeError('Side channel does not contain ' + inspect(key));
7442
- }
7443
- },
7444
- get: function (key) { // eslint-disable-line consistent-return
7445
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
7446
- if ($wm) {
7447
- return $weakMapGet($wm, key);
7448
- }
7449
- } else if ($Map) {
7450
- if ($m) {
7451
- return $mapGet($m, key);
7452
- }
7453
- } else {
7454
- if ($o) { // eslint-disable-line no-lonely-if
7455
- return listGet($o, key);
7456
- }
7457
- }
7458
- },
7459
- has: function (key) {
7460
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
7461
- if ($wm) {
7462
- return $weakMapHas($wm, key);
7463
- }
7464
- } else if ($Map) {
7465
- if ($m) {
7466
- return $mapHas($m, key);
7467
- }
7468
- } else {
7469
- if ($o) { // eslint-disable-line no-lonely-if
7470
- return listHas($o, key);
7471
- }
7472
- }
7473
- return false;
7474
- },
7475
- set: function (key, value) {
7476
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
7477
- if (!$wm) {
7478
- $wm = new $WeakMap();
7479
- }
7480
- $weakMapSet($wm, key, value);
7481
- } else if ($Map) {
7482
- if (!$m) {
7483
- $m = new $Map();
7484
- }
7485
- $mapSet($m, key, value);
7486
- } else {
7487
- if (!$o) {
7488
- /*
7489
- * Initialize the linked list as an empty node, so that we don't have
7490
- * to special-case handling of the first node: we can always refer to
7491
- * it as (previous node).next, instead of something like (list).head
7492
- */
7493
- $o = { key: {}, next: null };
7494
- }
7495
- listSet($o, key, value);
7496
- }
7497
- }
7498
- };
7499
- return channel;
7296
+ return utils.compact(obj);
7500
7297
  };
7501
7298
 
7502
7299
 
7503
7300
  /***/ }),
7504
7301
 
7505
- /***/ "../node_modules/side-channel/node_modules/get-intrinsic/index.js":
7506
- /*!************************************************************************!*\
7507
- !*** ../node_modules/side-channel/node_modules/get-intrinsic/index.js ***!
7508
- \************************************************************************/
7302
+ /***/ "../node_modules/qs/lib/stringify.js":
7303
+ /*!*******************************************!*\
7304
+ !*** ../node_modules/qs/lib/stringify.js ***!
7305
+ \*******************************************/
7509
7306
  /*! no static exports found */
7510
7307
  /***/ (function(module, exports, __webpack_require__) {
7511
7308
 
7512
7309
  "use strict";
7513
7310
 
7514
7311
 
7515
- var undefined;
7312
+ var getSideChannel = __webpack_require__(/*! side-channel */ "../node_modules/side-channel/index.js");
7313
+ var utils = __webpack_require__(/*! ./utils */ "../node_modules/qs/lib/utils.js");
7314
+ var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
7315
+ var has = Object.prototype.hasOwnProperty;
7516
7316
 
7517
- var $SyntaxError = SyntaxError;
7518
- var $Function = Function;
7519
- var $TypeError = TypeError;
7317
+ var arrayPrefixGenerators = {
7318
+ brackets: function brackets(prefix) {
7319
+ return prefix + '[]';
7320
+ },
7321
+ comma: 'comma',
7322
+ indices: function indices(prefix, key) {
7323
+ return prefix + '[' + key + ']';
7324
+ },
7325
+ repeat: function repeat(prefix) {
7326
+ return prefix;
7327
+ }
7328
+ };
7520
7329
 
7521
- // eslint-disable-next-line consistent-return
7522
- var getEvalledConstructor = function (expressionSyntax) {
7523
- try {
7524
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
7525
- } catch (e) {}
7330
+ var isArray = Array.isArray;
7331
+ var push = Array.prototype.push;
7332
+ var pushToArray = function (arr, valueOrArray) {
7333
+ push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
7526
7334
  };
7527
7335
 
7528
- var $gOPD = Object.getOwnPropertyDescriptor;
7529
- if ($gOPD) {
7530
- try {
7531
- $gOPD({}, '');
7532
- } catch (e) {
7533
- $gOPD = null; // this is IE 8, which has a broken gOPD
7534
- }
7535
- }
7336
+ var toISO = Date.prototype.toISOString;
7536
7337
 
7537
- var throwTypeError = function () {
7538
- throw new $TypeError();
7338
+ var defaultFormat = formats['default'];
7339
+ var defaults = {
7340
+ addQueryPrefix: false,
7341
+ allowDots: false,
7342
+ charset: 'utf-8',
7343
+ charsetSentinel: false,
7344
+ delimiter: '&',
7345
+ encode: true,
7346
+ encoder: utils.encode,
7347
+ encodeValuesOnly: false,
7348
+ format: defaultFormat,
7349
+ formatter: formats.formatters[defaultFormat],
7350
+ // deprecated
7351
+ indices: false,
7352
+ serializeDate: function serializeDate(date) {
7353
+ return toISO.call(date);
7354
+ },
7355
+ skipNulls: false,
7356
+ strictNullHandling: false
7539
7357
  };
7540
- var ThrowTypeError = $gOPD
7541
- ? (function () {
7542
- try {
7543
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
7544
- arguments.callee; // IE 8 does not throw here
7545
- return throwTypeError;
7546
- } catch (calleeThrows) {
7547
- try {
7548
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
7549
- return $gOPD(arguments, 'callee').get;
7550
- } catch (gOPDthrows) {
7551
- return throwTypeError;
7552
- }
7553
- }
7554
- }())
7555
- : throwTypeError;
7556
7358
 
7557
- var hasSymbols = __webpack_require__(/*! has-symbols */ "../node_modules/has-symbols/index.js")();
7359
+ var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
7360
+ return typeof v === 'string'
7361
+ || typeof v === 'number'
7362
+ || typeof v === 'boolean'
7363
+ || typeof v === 'symbol'
7364
+ || typeof v === 'bigint';
7365
+ };
7558
7366
 
7559
- var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
7367
+ var stringify = function stringify(
7368
+ object,
7369
+ prefix,
7370
+ generateArrayPrefix,
7371
+ strictNullHandling,
7372
+ skipNulls,
7373
+ encoder,
7374
+ filter,
7375
+ sort,
7376
+ allowDots,
7377
+ serializeDate,
7378
+ format,
7379
+ formatter,
7380
+ encodeValuesOnly,
7381
+ charset,
7382
+ sideChannel
7383
+ ) {
7384
+ var obj = object;
7560
7385
 
7561
- var needsEval = {};
7386
+ if (sideChannel.has(object)) {
7387
+ throw new RangeError('Cyclic object value');
7388
+ }
7562
7389
 
7563
- var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
7390
+ if (typeof filter === 'function') {
7391
+ obj = filter(prefix, obj);
7392
+ } else if (obj instanceof Date) {
7393
+ obj = serializeDate(obj);
7394
+ } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
7395
+ obj = utils.maybeMap(obj, function (value) {
7396
+ if (value instanceof Date) {
7397
+ return serializeDate(value);
7398
+ }
7399
+ return value;
7400
+ });
7401
+ }
7564
7402
 
7565
- var INTRINSICS = {
7566
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
7567
- '%Array%': Array,
7568
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
7569
- '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
7570
- '%AsyncFromSyncIteratorPrototype%': undefined,
7571
- '%AsyncFunction%': needsEval,
7572
- '%AsyncGenerator%': needsEval,
7573
- '%AsyncGeneratorFunction%': needsEval,
7574
- '%AsyncIteratorPrototype%': needsEval,
7575
- '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
7576
- '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
7577
- '%Boolean%': Boolean,
7578
- '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
7579
- '%Date%': Date,
7580
- '%decodeURI%': decodeURI,
7581
- '%decodeURIComponent%': decodeURIComponent,
7582
- '%encodeURI%': encodeURI,
7583
- '%encodeURIComponent%': encodeURIComponent,
7584
- '%Error%': Error,
7585
- '%eval%': eval, // eslint-disable-line no-eval
7586
- '%EvalError%': EvalError,
7587
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
7588
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
7589
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
7590
- '%Function%': $Function,
7591
- '%GeneratorFunction%': needsEval,
7592
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
7593
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
7594
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
7595
- '%isFinite%': isFinite,
7596
- '%isNaN%': isNaN,
7597
- '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
7598
- '%JSON%': typeof JSON === 'object' ? JSON : undefined,
7599
- '%Map%': typeof Map === 'undefined' ? undefined : Map,
7600
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
7601
- '%Math%': Math,
7602
- '%Number%': Number,
7603
- '%Object%': Object,
7604
- '%parseFloat%': parseFloat,
7605
- '%parseInt%': parseInt,
7606
- '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
7607
- '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
7608
- '%RangeError%': RangeError,
7609
- '%ReferenceError%': ReferenceError,
7610
- '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
7611
- '%RegExp%': RegExp,
7612
- '%Set%': typeof Set === 'undefined' ? undefined : Set,
7613
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
7614
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
7615
- '%String%': String,
7616
- '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
7617
- '%Symbol%': hasSymbols ? Symbol : undefined,
7618
- '%SyntaxError%': $SyntaxError,
7619
- '%ThrowTypeError%': ThrowTypeError,
7620
- '%TypedArray%': TypedArray,
7621
- '%TypeError%': $TypeError,
7622
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
7623
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
7624
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
7625
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
7626
- '%URIError%': URIError,
7627
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
7628
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
7629
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
7630
- };
7403
+ if (obj === null) {
7404
+ if (strictNullHandling) {
7405
+ return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
7406
+ }
7631
7407
 
7632
- var doEval = function doEval(name) {
7633
- var value;
7634
- if (name === '%AsyncFunction%') {
7635
- value = getEvalledConstructor('async function () {}');
7636
- } else if (name === '%GeneratorFunction%') {
7637
- value = getEvalledConstructor('function* () {}');
7638
- } else if (name === '%AsyncGeneratorFunction%') {
7639
- value = getEvalledConstructor('async function* () {}');
7640
- } else if (name === '%AsyncGenerator%') {
7641
- var fn = doEval('%AsyncGeneratorFunction%');
7642
- if (fn) {
7643
- value = fn.prototype;
7644
- }
7645
- } else if (name === '%AsyncIteratorPrototype%') {
7646
- var gen = doEval('%AsyncGenerator%');
7647
- if (gen) {
7648
- value = getProto(gen.prototype);
7649
- }
7650
- }
7408
+ obj = '';
7409
+ }
7651
7410
 
7652
- INTRINSICS[name] = value;
7411
+ if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
7412
+ if (encoder) {
7413
+ var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
7414
+ return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
7415
+ }
7416
+ return [formatter(prefix) + '=' + formatter(String(obj))];
7417
+ }
7418
+
7419
+ var values = [];
7420
+
7421
+ if (typeof obj === 'undefined') {
7422
+ return values;
7423
+ }
7424
+
7425
+ var objKeys;
7426
+ if (generateArrayPrefix === 'comma' && isArray(obj)) {
7427
+ // we need to join elements in
7428
+ objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
7429
+ } else if (isArray(filter)) {
7430
+ objKeys = filter;
7431
+ } else {
7432
+ var keys = Object.keys(obj);
7433
+ objKeys = sort ? keys.sort(sort) : keys;
7434
+ }
7435
+
7436
+ for (var i = 0; i < objKeys.length; ++i) {
7437
+ var key = objKeys[i];
7438
+ var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
7439
+
7440
+ if (skipNulls && value === null) {
7441
+ continue;
7442
+ }
7443
+
7444
+ var keyPrefix = isArray(obj)
7445
+ ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
7446
+ : prefix + (allowDots ? '.' + key : '[' + key + ']');
7447
+
7448
+ sideChannel.set(object, true);
7449
+ var valueSideChannel = getSideChannel();
7450
+ pushToArray(values, stringify(
7451
+ value,
7452
+ keyPrefix,
7453
+ generateArrayPrefix,
7454
+ strictNullHandling,
7455
+ skipNulls,
7456
+ encoder,
7457
+ filter,
7458
+ sort,
7459
+ allowDots,
7460
+ serializeDate,
7461
+ format,
7462
+ formatter,
7463
+ encodeValuesOnly,
7464
+ charset,
7465
+ valueSideChannel
7466
+ ));
7467
+ }
7653
7468
 
7654
- return value;
7469
+ return values;
7655
7470
  };
7656
7471
 
7657
- var LEGACY_ALIASES = {
7658
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
7659
- '%ArrayPrototype%': ['Array', 'prototype'],
7660
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
7661
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
7662
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
7663
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
7664
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
7665
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
7666
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
7667
- '%BooleanPrototype%': ['Boolean', 'prototype'],
7668
- '%DataViewPrototype%': ['DataView', 'prototype'],
7669
- '%DatePrototype%': ['Date', 'prototype'],
7670
- '%ErrorPrototype%': ['Error', 'prototype'],
7671
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
7672
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
7673
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
7674
- '%FunctionPrototype%': ['Function', 'prototype'],
7675
- '%Generator%': ['GeneratorFunction', 'prototype'],
7676
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
7677
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
7678
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
7679
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
7680
- '%JSONParse%': ['JSON', 'parse'],
7681
- '%JSONStringify%': ['JSON', 'stringify'],
7682
- '%MapPrototype%': ['Map', 'prototype'],
7683
- '%NumberPrototype%': ['Number', 'prototype'],
7684
- '%ObjectPrototype%': ['Object', 'prototype'],
7685
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
7686
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
7687
- '%PromisePrototype%': ['Promise', 'prototype'],
7688
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
7689
- '%Promise_all%': ['Promise', 'all'],
7690
- '%Promise_reject%': ['Promise', 'reject'],
7691
- '%Promise_resolve%': ['Promise', 'resolve'],
7692
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
7693
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
7694
- '%RegExpPrototype%': ['RegExp', 'prototype'],
7695
- '%SetPrototype%': ['Set', 'prototype'],
7696
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
7697
- '%StringPrototype%': ['String', 'prototype'],
7698
- '%SymbolPrototype%': ['Symbol', 'prototype'],
7699
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
7700
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
7701
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
7702
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
7703
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
7704
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
7705
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
7706
- '%URIErrorPrototype%': ['URIError', 'prototype'],
7707
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
7708
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
7709
- };
7472
+ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
7473
+ if (!opts) {
7474
+ return defaults;
7475
+ }
7710
7476
 
7711
- var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
7712
- var hasOwn = __webpack_require__(/*! has */ "../node_modules/has/src/index.js");
7713
- var $concat = bind.call(Function.call, Array.prototype.concat);
7714
- var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
7715
- var $replace = bind.call(Function.call, String.prototype.replace);
7716
- var $strSlice = bind.call(Function.call, String.prototype.slice);
7477
+ if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
7478
+ throw new TypeError('Encoder has to be a function.');
7479
+ }
7717
7480
 
7718
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
7719
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
7720
- var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
7721
- var stringToPath = function stringToPath(string) {
7722
- var first = $strSlice(string, 0, 1);
7723
- var last = $strSlice(string, -1);
7724
- if (first === '%' && last !== '%') {
7725
- throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
7726
- } else if (last === '%' && first !== '%') {
7727
- throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
7728
- }
7729
- var result = [];
7730
- $replace(string, rePropName, function (match, number, quote, subString) {
7731
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
7732
- });
7733
- return result;
7481
+ var charset = opts.charset || defaults.charset;
7482
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
7483
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
7484
+ }
7485
+
7486
+ var format = formats['default'];
7487
+ if (typeof opts.format !== 'undefined') {
7488
+ if (!has.call(formats.formatters, opts.format)) {
7489
+ throw new TypeError('Unknown format option provided.');
7490
+ }
7491
+ format = opts.format;
7492
+ }
7493
+ var formatter = formats.formatters[format];
7494
+
7495
+ var filter = defaults.filter;
7496
+ if (typeof opts.filter === 'function' || isArray(opts.filter)) {
7497
+ filter = opts.filter;
7498
+ }
7499
+
7500
+ return {
7501
+ addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
7502
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
7503
+ charset: charset,
7504
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
7505
+ delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
7506
+ encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
7507
+ encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
7508
+ encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
7509
+ filter: filter,
7510
+ format: format,
7511
+ formatter: formatter,
7512
+ serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
7513
+ skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
7514
+ sort: typeof opts.sort === 'function' ? opts.sort : null,
7515
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
7516
+ };
7734
7517
  };
7735
- /* end adaptation */
7736
7518
 
7737
- var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
7738
- var intrinsicName = name;
7739
- var alias;
7740
- if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
7741
- alias = LEGACY_ALIASES[intrinsicName];
7742
- intrinsicName = '%' + alias[0] + '%';
7743
- }
7519
+ module.exports = function (object, opts) {
7520
+ var obj = object;
7521
+ var options = normalizeStringifyOptions(opts);
7744
7522
 
7745
- if (hasOwn(INTRINSICS, intrinsicName)) {
7746
- var value = INTRINSICS[intrinsicName];
7747
- if (value === needsEval) {
7748
- value = doEval(intrinsicName);
7749
- }
7750
- if (typeof value === 'undefined' && !allowMissing) {
7751
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
7752
- }
7523
+ var objKeys;
7524
+ var filter;
7753
7525
 
7754
- return {
7755
- alias: alias,
7756
- name: intrinsicName,
7757
- value: value
7758
- };
7759
- }
7526
+ if (typeof options.filter === 'function') {
7527
+ filter = options.filter;
7528
+ obj = filter('', obj);
7529
+ } else if (isArray(options.filter)) {
7530
+ filter = options.filter;
7531
+ objKeys = filter;
7532
+ }
7760
7533
 
7761
- throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
7762
- };
7534
+ var keys = [];
7763
7535
 
7764
- module.exports = function GetIntrinsic(name, allowMissing) {
7765
- if (typeof name !== 'string' || name.length === 0) {
7766
- throw new $TypeError('intrinsic name must be a non-empty string');
7767
- }
7768
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
7769
- throw new $TypeError('"allowMissing" argument must be a boolean');
7770
- }
7536
+ if (typeof obj !== 'object' || obj === null) {
7537
+ return '';
7538
+ }
7771
7539
 
7772
- var parts = stringToPath(name);
7773
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
7540
+ var arrayFormat;
7541
+ if (opts && opts.arrayFormat in arrayPrefixGenerators) {
7542
+ arrayFormat = opts.arrayFormat;
7543
+ } else if (opts && 'indices' in opts) {
7544
+ arrayFormat = opts.indices ? 'indices' : 'repeat';
7545
+ } else {
7546
+ arrayFormat = 'indices';
7547
+ }
7774
7548
 
7775
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
7776
- var intrinsicRealName = intrinsic.name;
7777
- var value = intrinsic.value;
7778
- var skipFurtherCaching = false;
7549
+ var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
7779
7550
 
7780
- var alias = intrinsic.alias;
7781
- if (alias) {
7782
- intrinsicBaseName = alias[0];
7783
- $spliceApply(parts, $concat([0, 1], alias));
7784
- }
7551
+ if (!objKeys) {
7552
+ objKeys = Object.keys(obj);
7553
+ }
7785
7554
 
7786
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
7787
- var part = parts[i];
7788
- var first = $strSlice(part, 0, 1);
7789
- var last = $strSlice(part, -1);
7790
- if (
7791
- (
7792
- (first === '"' || first === "'" || first === '`')
7793
- || (last === '"' || last === "'" || last === '`')
7794
- )
7795
- && first !== last
7796
- ) {
7797
- throw new $SyntaxError('property names with quotes must have matching quotes');
7798
- }
7799
- if (part === 'constructor' || !isOwn) {
7800
- skipFurtherCaching = true;
7801
- }
7555
+ if (options.sort) {
7556
+ objKeys.sort(options.sort);
7557
+ }
7802
7558
 
7803
- intrinsicBaseName += '.' + part;
7804
- intrinsicRealName = '%' + intrinsicBaseName + '%';
7559
+ var sideChannel = getSideChannel();
7560
+ for (var i = 0; i < objKeys.length; ++i) {
7561
+ var key = objKeys[i];
7805
7562
 
7806
- if (hasOwn(INTRINSICS, intrinsicRealName)) {
7807
- value = INTRINSICS[intrinsicRealName];
7808
- } else if (value != null) {
7809
- if (!(part in value)) {
7810
- if (!allowMissing) {
7811
- throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
7812
- }
7813
- return void undefined;
7814
- }
7815
- if ($gOPD && (i + 1) >= parts.length) {
7816
- var desc = $gOPD(value, part);
7817
- isOwn = !!desc;
7563
+ if (options.skipNulls && obj[key] === null) {
7564
+ continue;
7565
+ }
7566
+ pushToArray(keys, stringify(
7567
+ obj[key],
7568
+ key,
7569
+ generateArrayPrefix,
7570
+ options.strictNullHandling,
7571
+ options.skipNulls,
7572
+ options.encode ? options.encoder : null,
7573
+ options.filter,
7574
+ options.sort,
7575
+ options.allowDots,
7576
+ options.serializeDate,
7577
+ options.format,
7578
+ options.formatter,
7579
+ options.encodeValuesOnly,
7580
+ options.charset,
7581
+ sideChannel
7582
+ ));
7583
+ }
7818
7584
 
7819
- // By convention, when a data property is converted to an accessor
7820
- // property to emulate a data property that does not suffer from
7821
- // the override mistake, that accessor's getter is marked with
7822
- // an `originalValue` property. Here, when we detect this, we
7823
- // uphold the illusion by pretending to see that original data
7824
- // property, i.e., returning the value rather than the getter
7825
- // itself.
7826
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
7827
- value = desc.get;
7828
- } else {
7829
- value = value[part];
7830
- }
7831
- } else {
7832
- isOwn = hasOwn(value, part);
7833
- value = value[part];
7834
- }
7585
+ var joined = keys.join(options.delimiter);
7586
+ var prefix = options.addQueryPrefix === true ? '?' : '';
7835
7587
 
7836
- if (isOwn && !skipFurtherCaching) {
7837
- INTRINSICS[intrinsicRealName] = value;
7838
- }
7839
- }
7840
- }
7841
- return value;
7588
+ if (options.charsetSentinel) {
7589
+ if (options.charset === 'iso-8859-1') {
7590
+ // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
7591
+ prefix += 'utf8=%26%2310003%3B&';
7592
+ } else {
7593
+ // encodeURIComponent('✓')
7594
+ prefix += 'utf8=%E2%9C%93&';
7595
+ }
7596
+ }
7597
+
7598
+ return joined.length > 0 ? prefix + joined : '';
7842
7599
  };
7843
7600
 
7844
7601
 
7845
7602
  /***/ }),
7846
7603
 
7847
- /***/ "../node_modules/side-channel/node_modules/object-inspect/index.js":
7848
- /*!*************************************************************************!*\
7849
- !*** ../node_modules/side-channel/node_modules/object-inspect/index.js ***!
7850
- \*************************************************************************/
7604
+ /***/ "../node_modules/qs/lib/utils.js":
7605
+ /*!***************************************!*\
7606
+ !*** ../node_modules/qs/lib/utils.js ***!
7607
+ \***************************************/
7851
7608
  /*! no static exports found */
7852
7609
  /***/ (function(module, exports, __webpack_require__) {
7853
7610
 
7854
- var hasMap = typeof Map === 'function' && Map.prototype;
7855
- var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
7856
- var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
7857
- var mapForEach = hasMap && Map.prototype.forEach;
7858
- var hasSet = typeof Set === 'function' && Set.prototype;
7859
- var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
7860
- var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
7861
- var setForEach = hasSet && Set.prototype.forEach;
7862
- var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
7863
- var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
7864
- var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
7865
- var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
7866
- var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
7867
- var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
7868
- var booleanValueOf = Boolean.prototype.valueOf;
7869
- var objectToString = Object.prototype.toString;
7870
- var functionToString = Function.prototype.toString;
7871
- var match = String.prototype.match;
7872
- var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
7873
- var gOPS = Object.getOwnPropertySymbols;
7874
- var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
7875
- var isEnumerable = Object.prototype.propertyIsEnumerable;
7876
-
7877
- var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
7878
- [].__proto__ === Array.prototype // eslint-disable-line no-proto
7879
- ? function (O) {
7880
- return O.__proto__; // eslint-disable-line no-proto
7881
- }
7882
- : null
7883
- );
7884
-
7885
- var inspectCustom = __webpack_require__(/*! ./util.inspect */ "../node_modules/side-channel/node_modules/object-inspect/util.inspect.js").custom;
7886
- var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
7887
- var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol' ? Symbol.toStringTag : null;
7888
-
7889
- module.exports = function inspect_(obj, options, depth, seen) {
7890
- var opts = options || {};
7611
+ "use strict";
7891
7612
 
7892
- if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
7893
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
7894
- }
7895
- if (
7896
- has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
7897
- ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
7898
- : opts.maxStringLength !== null
7899
- )
7900
- ) {
7901
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
7902
- }
7903
- var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
7904
- if (typeof customInspect !== 'boolean') {
7905
- throw new TypeError('option "customInspect", if provided, must be `true` or `false`');
7906
- }
7907
7613
 
7908
- if (
7909
- has(opts, 'indent')
7910
- && opts.indent !== null
7911
- && opts.indent !== '\t'
7912
- && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
7913
- ) {
7914
- throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
7915
- }
7614
+ var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
7916
7615
 
7917
- if (typeof obj === 'undefined') {
7918
- return 'undefined';
7919
- }
7920
- if (obj === null) {
7921
- return 'null';
7922
- }
7923
- if (typeof obj === 'boolean') {
7924
- return obj ? 'true' : 'false';
7925
- }
7616
+ var has = Object.prototype.hasOwnProperty;
7617
+ var isArray = Array.isArray;
7926
7618
 
7927
- if (typeof obj === 'string') {
7928
- return inspectString(obj, opts);
7929
- }
7930
- if (typeof obj === 'number') {
7931
- if (obj === 0) {
7932
- return Infinity / obj > 0 ? '0' : '-0';
7933
- }
7934
- return String(obj);
7935
- }
7936
- if (typeof obj === 'bigint') {
7937
- return String(obj) + 'n';
7619
+ var hexTable = (function () {
7620
+ var array = [];
7621
+ for (var i = 0; i < 256; ++i) {
7622
+ array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
7938
7623
  }
7939
7624
 
7940
- var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
7941
- if (typeof depth === 'undefined') { depth = 0; }
7942
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
7943
- return isArray(obj) ? '[Array]' : '[Object]';
7944
- }
7625
+ return array;
7626
+ }());
7945
7627
 
7946
- var indent = getIndent(opts, depth);
7628
+ var compactQueue = function compactQueue(queue) {
7629
+ while (queue.length > 1) {
7630
+ var item = queue.pop();
7631
+ var obj = item.obj[item.prop];
7947
7632
 
7948
- if (typeof seen === 'undefined') {
7949
- seen = [];
7950
- } else if (indexOf(seen, obj) >= 0) {
7951
- return '[Circular]';
7952
- }
7633
+ if (isArray(obj)) {
7634
+ var compacted = [];
7953
7635
 
7954
- function inspect(value, from, noIndent) {
7955
- if (from) {
7956
- seen = seen.slice();
7957
- seen.push(from);
7958
- }
7959
- if (noIndent) {
7960
- var newOpts = {
7961
- depth: opts.depth
7962
- };
7963
- if (has(opts, 'quoteStyle')) {
7964
- newOpts.quoteStyle = opts.quoteStyle;
7636
+ for (var j = 0; j < obj.length; ++j) {
7637
+ if (typeof obj[j] !== 'undefined') {
7638
+ compacted.push(obj[j]);
7639
+ }
7965
7640
  }
7966
- return inspect_(value, newOpts, depth + 1, seen);
7967
- }
7968
- return inspect_(value, opts, depth + 1, seen);
7969
- }
7970
7641
 
7971
- if (typeof obj === 'function') {
7972
- var name = nameOf(obj);
7973
- var keys = arrObjKeys(obj, inspect);
7974
- return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
7975
- }
7976
- if (isSymbol(obj)) {
7977
- var symString = symToString.call(obj);
7978
- return typeof obj === 'object' ? markBoxed(symString) : symString;
7979
- }
7980
- if (isElement(obj)) {
7981
- var s = '<' + String(obj.nodeName).toLowerCase();
7982
- var attrs = obj.attributes || [];
7983
- for (var i = 0; i < attrs.length; i++) {
7984
- s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
7985
- }
7986
- s += '>';
7987
- if (obj.childNodes && obj.childNodes.length) { s += '...'; }
7988
- s += '</' + String(obj.nodeName).toLowerCase() + '>';
7989
- return s;
7990
- }
7991
- if (isArray(obj)) {
7992
- if (obj.length === 0) { return '[]'; }
7993
- var xs = arrObjKeys(obj, inspect);
7994
- if (indent && !singleLineValues(xs)) {
7995
- return '[' + indentedJoin(xs, indent) + ']';
7996
- }
7997
- return '[ ' + xs.join(', ') + ' ]';
7998
- }
7999
- if (isError(obj)) {
8000
- var parts = arrObjKeys(obj, inspect);
8001
- if (parts.length === 0) { return '[' + String(obj) + ']'; }
8002
- return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
8003
- }
8004
- if (typeof obj === 'object' && customInspect) {
8005
- if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
8006
- return obj[inspectSymbol]();
8007
- } else if (typeof obj.inspect === 'function') {
8008
- return obj.inspect();
7642
+ item.obj[item.prop] = compacted;
8009
7643
  }
8010
7644
  }
8011
- if (isMap(obj)) {
8012
- var mapParts = [];
8013
- mapForEach.call(obj, function (value, key) {
8014
- mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
8015
- });
8016
- return collectionOf('Map', mapSize.call(obj), mapParts, indent);
8017
- }
8018
- if (isSet(obj)) {
8019
- var setParts = [];
8020
- setForEach.call(obj, function (value) {
8021
- setParts.push(inspect(value, obj));
8022
- });
8023
- return collectionOf('Set', setSize.call(obj), setParts, indent);
8024
- }
8025
- if (isWeakMap(obj)) {
8026
- return weakCollectionOf('WeakMap');
8027
- }
8028
- if (isWeakSet(obj)) {
8029
- return weakCollectionOf('WeakSet');
8030
- }
8031
- if (isWeakRef(obj)) {
8032
- return weakCollectionOf('WeakRef');
8033
- }
8034
- if (isNumber(obj)) {
8035
- return markBoxed(inspect(Number(obj)));
8036
- }
8037
- if (isBigInt(obj)) {
8038
- return markBoxed(inspect(bigIntValueOf.call(obj)));
8039
- }
8040
- if (isBoolean(obj)) {
8041
- return markBoxed(booleanValueOf.call(obj));
8042
- }
8043
- if (isString(obj)) {
8044
- return markBoxed(inspect(String(obj)));
8045
- }
8046
- if (!isDate(obj) && !isRegExp(obj)) {
8047
- var ys = arrObjKeys(obj, inspect);
8048
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
8049
- var protoTag = obj instanceof Object ? '' : 'null prototype';
8050
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
8051
- var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
8052
- var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
8053
- if (ys.length === 0) { return tag + '{}'; }
8054
- if (indent) {
8055
- return tag + '{' + indentedJoin(ys, indent) + '}';
7645
+ };
7646
+
7647
+ var arrayToObject = function arrayToObject(source, options) {
7648
+ var obj = options && options.plainObjects ? Object.create(null) : {};
7649
+ for (var i = 0; i < source.length; ++i) {
7650
+ if (typeof source[i] !== 'undefined') {
7651
+ obj[i] = source[i];
8056
7652
  }
8057
- return tag + '{ ' + ys.join(', ') + ' }';
8058
7653
  }
8059
- return String(obj);
7654
+
7655
+ return obj;
8060
7656
  };
8061
7657
 
8062
- function wrapQuotes(s, defaultStyle, opts) {
8063
- var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
8064
- return quoteChar + s + quoteChar;
8065
- }
8066
-
8067
- function quote(s) {
8068
- return String(s).replace(/"/g, '&quot;');
8069
- }
7658
+ var merge = function merge(target, source, options) {
7659
+ /* eslint no-param-reassign: 0 */
7660
+ if (!source) {
7661
+ return target;
7662
+ }
8070
7663
 
8071
- function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
8072
- function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
8073
- function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
8074
- function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
8075
- function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
8076
- function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
8077
- function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
7664
+ if (typeof source !== 'object') {
7665
+ if (isArray(target)) {
7666
+ target.push(source);
7667
+ } else if (target && typeof target === 'object') {
7668
+ if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
7669
+ target[source] = true;
7670
+ }
7671
+ } else {
7672
+ return [target, source];
7673
+ }
8078
7674
 
8079
- // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
8080
- function isSymbol(obj) {
8081
- if (typeof obj === 'symbol') {
8082
- return true;
7675
+ return target;
8083
7676
  }
8084
- if (!obj || typeof obj !== 'object' || !symToString) {
8085
- return false;
7677
+
7678
+ if (!target || typeof target !== 'object') {
7679
+ return [target].concat(source);
8086
7680
  }
8087
- try {
8088
- symToString.call(obj);
8089
- return true;
8090
- } catch (e) {}
8091
- return false;
8092
- }
8093
7681
 
8094
- function isBigInt(obj) {
8095
- if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
8096
- return false;
7682
+ var mergeTarget = target;
7683
+ if (isArray(target) && !isArray(source)) {
7684
+ mergeTarget = arrayToObject(target, options);
8097
7685
  }
8098
- try {
8099
- bigIntValueOf.call(obj);
8100
- return true;
8101
- } catch (e) {}
8102
- return false;
8103
- }
8104
7686
 
8105
- var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
8106
- function has(obj, key) {
8107
- return hasOwn.call(obj, key);
8108
- }
7687
+ if (isArray(target) && isArray(source)) {
7688
+ source.forEach(function (item, i) {
7689
+ if (has.call(target, i)) {
7690
+ var targetItem = target[i];
7691
+ if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
7692
+ target[i] = merge(targetItem, item, options);
7693
+ } else {
7694
+ target.push(item);
7695
+ }
7696
+ } else {
7697
+ target[i] = item;
7698
+ }
7699
+ });
7700
+ return target;
7701
+ }
8109
7702
 
8110
- function toStr(obj) {
8111
- return objectToString.call(obj);
8112
- }
7703
+ return Object.keys(source).reduce(function (acc, key) {
7704
+ var value = source[key];
8113
7705
 
8114
- function nameOf(f) {
8115
- if (f.name) { return f.name; }
8116
- var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/);
8117
- if (m) { return m[1]; }
8118
- return null;
8119
- }
7706
+ if (has.call(acc, key)) {
7707
+ acc[key] = merge(acc[key], value, options);
7708
+ } else {
7709
+ acc[key] = value;
7710
+ }
7711
+ return acc;
7712
+ }, mergeTarget);
7713
+ };
8120
7714
 
8121
- function indexOf(xs, x) {
8122
- if (xs.indexOf) { return xs.indexOf(x); }
8123
- for (var i = 0, l = xs.length; i < l; i++) {
8124
- if (xs[i] === x) { return i; }
8125
- }
8126
- return -1;
8127
- }
7715
+ var assign = function assignSingleSource(target, source) {
7716
+ return Object.keys(source).reduce(function (acc, key) {
7717
+ acc[key] = source[key];
7718
+ return acc;
7719
+ }, target);
7720
+ };
8128
7721
 
8129
- function isMap(x) {
8130
- if (!mapSize || !x || typeof x !== 'object') {
8131
- return false;
7722
+ var decode = function (str, decoder, charset) {
7723
+ var strWithoutPlus = str.replace(/\+/g, ' ');
7724
+ if (charset === 'iso-8859-1') {
7725
+ // unescape never throws, no try...catch needed:
7726
+ return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
8132
7727
  }
7728
+ // utf-8
8133
7729
  try {
8134
- mapSize.call(x);
8135
- try {
8136
- setSize.call(x);
8137
- } catch (s) {
8138
- return true;
8139
- }
8140
- return x instanceof Map; // core-js workaround, pre-v2.5.0
8141
- } catch (e) {}
8142
- return false;
8143
- }
7730
+ return decodeURIComponent(strWithoutPlus);
7731
+ } catch (e) {
7732
+ return strWithoutPlus;
7733
+ }
7734
+ };
8144
7735
 
8145
- function isWeakMap(x) {
8146
- if (!weakMapHas || !x || typeof x !== 'object') {
8147
- return false;
7736
+ var encode = function encode(str, defaultEncoder, charset, kind, format) {
7737
+ // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
7738
+ // It has been adapted here for stricter adherence to RFC 3986
7739
+ if (str.length === 0) {
7740
+ return str;
8148
7741
  }
8149
- try {
8150
- weakMapHas.call(x, weakMapHas);
8151
- try {
8152
- weakSetHas.call(x, weakSetHas);
8153
- } catch (s) {
8154
- return true;
8155
- }
8156
- return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
8157
- } catch (e) {}
8158
- return false;
8159
- }
8160
7742
 
8161
- function isWeakRef(x) {
8162
- if (!weakRefDeref || !x || typeof x !== 'object') {
8163
- return false;
7743
+ var string = str;
7744
+ if (typeof str === 'symbol') {
7745
+ string = Symbol.prototype.toString.call(str);
7746
+ } else if (typeof str !== 'string') {
7747
+ string = String(str);
8164
7748
  }
8165
- try {
8166
- weakRefDeref.call(x);
8167
- return true;
8168
- } catch (e) {}
8169
- return false;
8170
- }
8171
7749
 
8172
- function isSet(x) {
8173
- if (!setSize || !x || typeof x !== 'object') {
8174
- return false;
7750
+ if (charset === 'iso-8859-1') {
7751
+ return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
7752
+ return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
7753
+ });
8175
7754
  }
8176
- try {
8177
- setSize.call(x);
8178
- try {
8179
- mapSize.call(x);
8180
- } catch (m) {
8181
- return true;
7755
+
7756
+ var out = '';
7757
+ for (var i = 0; i < string.length; ++i) {
7758
+ var c = string.charCodeAt(i);
7759
+
7760
+ if (
7761
+ c === 0x2D // -
7762
+ || c === 0x2E // .
7763
+ || c === 0x5F // _
7764
+ || c === 0x7E // ~
7765
+ || (c >= 0x30 && c <= 0x39) // 0-9
7766
+ || (c >= 0x41 && c <= 0x5A) // a-z
7767
+ || (c >= 0x61 && c <= 0x7A) // A-Z
7768
+ || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
7769
+ ) {
7770
+ out += string.charAt(i);
7771
+ continue;
8182
7772
  }
8183
- return x instanceof Set; // core-js workaround, pre-v2.5.0
8184
- } catch (e) {}
8185
- return false;
8186
- }
8187
7773
 
8188
- function isWeakSet(x) {
8189
- if (!weakSetHas || !x || typeof x !== 'object') {
8190
- return false;
8191
- }
8192
- try {
8193
- weakSetHas.call(x, weakSetHas);
8194
- try {
8195
- weakMapHas.call(x, weakMapHas);
8196
- } catch (s) {
8197
- return true;
7774
+ if (c < 0x80) {
7775
+ out = out + hexTable[c];
7776
+ continue;
8198
7777
  }
8199
- return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
8200
- } catch (e) {}
8201
- return false;
8202
- }
8203
7778
 
8204
- function isElement(x) {
8205
- if (!x || typeof x !== 'object') { return false; }
8206
- if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
8207
- return true;
8208
- }
8209
- return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
8210
- }
7779
+ if (c < 0x800) {
7780
+ out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
7781
+ continue;
7782
+ }
8211
7783
 
8212
- function inspectString(str, opts) {
8213
- if (str.length > opts.maxStringLength) {
8214
- var remaining = str.length - opts.maxStringLength;
8215
- var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
8216
- return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer;
8217
- }
8218
- // eslint-disable-next-line no-control-regex
8219
- var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte);
8220
- return wrapQuotes(s, 'single', opts);
8221
- }
7784
+ if (c < 0xD800 || c >= 0xE000) {
7785
+ out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
7786
+ continue;
7787
+ }
8222
7788
 
8223
- function lowbyte(c) {
8224
- var n = c.charCodeAt(0);
8225
- var x = {
8226
- 8: 'b',
8227
- 9: 't',
8228
- 10: 'n',
8229
- 12: 'f',
8230
- 13: 'r'
8231
- }[n];
8232
- if (x) { return '\\' + x; }
8233
- return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
8234
- }
7789
+ i += 1;
7790
+ c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
7791
+ out += hexTable[0xF0 | (c >> 18)]
7792
+ + hexTable[0x80 | ((c >> 12) & 0x3F)]
7793
+ + hexTable[0x80 | ((c >> 6) & 0x3F)]
7794
+ + hexTable[0x80 | (c & 0x3F)];
7795
+ }
8235
7796
 
8236
- function markBoxed(str) {
8237
- return 'Object(' + str + ')';
8238
- }
7797
+ return out;
7798
+ };
8239
7799
 
8240
- function weakCollectionOf(type) {
8241
- return type + ' { ? }';
8242
- }
7800
+ var compact = function compact(value) {
7801
+ var queue = [{ obj: { o: value }, prop: 'o' }];
7802
+ var refs = [];
8243
7803
 
8244
- function collectionOf(type, size, entries, indent) {
8245
- var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');
8246
- return type + ' (' + size + ') {' + joinedEntries + '}';
8247
- }
7804
+ for (var i = 0; i < queue.length; ++i) {
7805
+ var item = queue[i];
7806
+ var obj = item.obj[item.prop];
8248
7807
 
8249
- function singleLineValues(xs) {
8250
- for (var i = 0; i < xs.length; i++) {
8251
- if (indexOf(xs[i], '\n') >= 0) {
8252
- return false;
7808
+ var keys = Object.keys(obj);
7809
+ for (var j = 0; j < keys.length; ++j) {
7810
+ var key = keys[j];
7811
+ var val = obj[key];
7812
+ if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
7813
+ queue.push({ obj: obj, prop: key });
7814
+ refs.push(val);
7815
+ }
8253
7816
  }
8254
7817
  }
8255
- return true;
8256
- }
8257
7818
 
8258
- function getIndent(opts, depth) {
8259
- var baseIndent;
8260
- if (opts.indent === '\t') {
8261
- baseIndent = '\t';
8262
- } else if (typeof opts.indent === 'number' && opts.indent > 0) {
8263
- baseIndent = Array(opts.indent + 1).join(' ');
8264
- } else {
8265
- return null;
8266
- }
8267
- return {
8268
- base: baseIndent,
8269
- prev: Array(depth + 1).join(baseIndent)
8270
- };
8271
- }
7819
+ compactQueue(queue);
8272
7820
 
8273
- function indentedJoin(xs, indent) {
8274
- if (xs.length === 0) { return ''; }
8275
- var lineJoiner = '\n' + indent.prev + indent.base;
8276
- return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
8277
- }
7821
+ return value;
7822
+ };
8278
7823
 
8279
- function arrObjKeys(obj, inspect) {
8280
- var isArr = isArray(obj);
8281
- var xs = [];
8282
- if (isArr) {
8283
- xs.length = obj.length;
8284
- for (var i = 0; i < obj.length; i++) {
8285
- xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
8286
- }
8287
- }
8288
- for (var key in obj) { // eslint-disable-line no-restricted-syntax
8289
- if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
8290
- if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
8291
- if ((/[^\w$]/).test(key)) {
8292
- xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
8293
- } else {
8294
- xs.push(key + ': ' + inspect(obj[key], obj));
8295
- }
7824
+ var isRegExp = function isRegExp(obj) {
7825
+ return Object.prototype.toString.call(obj) === '[object RegExp]';
7826
+ };
7827
+
7828
+ var isBuffer = function isBuffer(obj) {
7829
+ if (!obj || typeof obj !== 'object') {
7830
+ return false;
8296
7831
  }
8297
- if (typeof gOPS === 'function') {
8298
- var syms = gOPS(obj);
8299
- for (var j = 0; j < syms.length; j++) {
8300
- if (isEnumerable.call(obj, syms[j])) {
8301
- xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
8302
- }
7832
+
7833
+ return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
7834
+ };
7835
+
7836
+ var combine = function combine(a, b) {
7837
+ return [].concat(a, b);
7838
+ };
7839
+
7840
+ var maybeMap = function maybeMap(val, fn) {
7841
+ if (isArray(val)) {
7842
+ var mapped = [];
7843
+ for (var i = 0; i < val.length; i += 1) {
7844
+ mapped.push(fn(val[i]));
8303
7845
  }
7846
+ return mapped;
8304
7847
  }
8305
- return xs;
8306
- }
7848
+ return fn(val);
7849
+ };
7850
+
7851
+ module.exports = {
7852
+ arrayToObject: arrayToObject,
7853
+ assign: assign,
7854
+ combine: combine,
7855
+ compact: compact,
7856
+ decode: decode,
7857
+ encode: encode,
7858
+ isBuffer: isBuffer,
7859
+ isRegExp: isRegExp,
7860
+ maybeMap: maybeMap,
7861
+ merge: merge
7862
+ };
8307
7863
 
8308
7864
 
8309
7865
  /***/ }),
8310
7866
 
8311
- /***/ "../node_modules/side-channel/node_modules/object-inspect/util.inspect.js":
8312
- /*!********************************************************************************!*\
8313
- !*** ../node_modules/side-channel/node_modules/object-inspect/util.inspect.js ***!
8314
- \********************************************************************************/
7867
+ /***/ "../node_modules/side-channel/index.js":
7868
+ /*!*********************************************!*\
7869
+ !*** ../node_modules/side-channel/index.js ***!
7870
+ \*********************************************/
8315
7871
  /*! no static exports found */
8316
7872
  /***/ (function(module, exports, __webpack_require__) {
8317
7873
 
8318
- module.exports = __webpack_require__(/*! util */ "util").inspect;
7874
+ "use strict";
7875
+
7876
+
7877
+ var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
7878
+ var callBound = __webpack_require__(/*! call-bind/callBound */ "../node_modules/call-bind/callBound.js");
7879
+ var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/object-inspect/index.js");
7880
+
7881
+ var $TypeError = GetIntrinsic('%TypeError%');
7882
+ var $WeakMap = GetIntrinsic('%WeakMap%', true);
7883
+ var $Map = GetIntrinsic('%Map%', true);
7884
+
7885
+ var $weakMapGet = callBound('WeakMap.prototype.get', true);
7886
+ var $weakMapSet = callBound('WeakMap.prototype.set', true);
7887
+ var $weakMapHas = callBound('WeakMap.prototype.has', true);
7888
+ var $mapGet = callBound('Map.prototype.get', true);
7889
+ var $mapSet = callBound('Map.prototype.set', true);
7890
+ var $mapHas = callBound('Map.prototype.has', true);
7891
+
7892
+ /*
7893
+ * This function traverses the list returning the node corresponding to the
7894
+ * given key.
7895
+ *
7896
+ * That node is also moved to the head of the list, so that if it's accessed
7897
+ * again we don't need to traverse the whole list. By doing so, all the recently
7898
+ * used nodes can be accessed relatively quickly.
7899
+ */
7900
+ var listGetNode = function (list, key) { // eslint-disable-line consistent-return
7901
+ for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
7902
+ if (curr.key === key) {
7903
+ prev.next = curr.next;
7904
+ curr.next = list.next;
7905
+ list.next = curr; // eslint-disable-line no-param-reassign
7906
+ return curr;
7907
+ }
7908
+ }
7909
+ };
7910
+
7911
+ var listGet = function (objects, key) {
7912
+ var node = listGetNode(objects, key);
7913
+ return node && node.value;
7914
+ };
7915
+ var listSet = function (objects, key, value) {
7916
+ var node = listGetNode(objects, key);
7917
+ if (node) {
7918
+ node.value = value;
7919
+ } else {
7920
+ // Prepend the new node to the beginning of the list
7921
+ objects.next = { // eslint-disable-line no-param-reassign
7922
+ key: key,
7923
+ next: objects.next,
7924
+ value: value
7925
+ };
7926
+ }
7927
+ };
7928
+ var listHas = function (objects, key) {
7929
+ return !!listGetNode(objects, key);
7930
+ };
7931
+
7932
+ module.exports = function getSideChannel() {
7933
+ var $wm;
7934
+ var $m;
7935
+ var $o;
7936
+ var channel = {
7937
+ assert: function (key) {
7938
+ if (!channel.has(key)) {
7939
+ throw new $TypeError('Side channel does not contain ' + inspect(key));
7940
+ }
7941
+ },
7942
+ get: function (key) { // eslint-disable-line consistent-return
7943
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
7944
+ if ($wm) {
7945
+ return $weakMapGet($wm, key);
7946
+ }
7947
+ } else if ($Map) {
7948
+ if ($m) {
7949
+ return $mapGet($m, key);
7950
+ }
7951
+ } else {
7952
+ if ($o) { // eslint-disable-line no-lonely-if
7953
+ return listGet($o, key);
7954
+ }
7955
+ }
7956
+ },
7957
+ has: function (key) {
7958
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
7959
+ if ($wm) {
7960
+ return $weakMapHas($wm, key);
7961
+ }
7962
+ } else if ($Map) {
7963
+ if ($m) {
7964
+ return $mapHas($m, key);
7965
+ }
7966
+ } else {
7967
+ if ($o) { // eslint-disable-line no-lonely-if
7968
+ return listHas($o, key);
7969
+ }
7970
+ }
7971
+ return false;
7972
+ },
7973
+ set: function (key, value) {
7974
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
7975
+ if (!$wm) {
7976
+ $wm = new $WeakMap();
7977
+ }
7978
+ $weakMapSet($wm, key, value);
7979
+ } else if ($Map) {
7980
+ if (!$m) {
7981
+ $m = new $Map();
7982
+ }
7983
+ $mapSet($m, key, value);
7984
+ } else {
7985
+ if (!$o) {
7986
+ /*
7987
+ * Initialize the linked list as an empty node, so that we don't have
7988
+ * to special-case handling of the first node: we can always refer to
7989
+ * it as (previous node).next, instead of something like (list).head
7990
+ */
7991
+ $o = { key: {}, next: null };
7992
+ }
7993
+ listSet($o, key, value);
7994
+ }
7995
+ }
7996
+ };
7997
+ return channel;
7998
+ };
8319
7999
 
8320
8000
 
8321
8001
  /***/ }),
@@ -8335,9 +8015,9 @@ __webpack_require__.r(__webpack_exports__);
8335
8015
  /* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js");
8336
8016
  /* harmony import */ var _create_contentful_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./create-contentful-api */ "./create-contentful-api.js");
8337
8017
  /* harmony import */ var _create_global_options__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./create-global-options */ "./create-global-options.js");
8338
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
8018
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8339
8019
 
8340
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
8020
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8341
8021
 
8342
8022
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8343
8023
 
@@ -8403,7 +8083,7 @@ function createClient(params) {
8403
8083
 
8404
8084
  const config = _objectSpread(_objectSpread({}, defaultConfig), params);
8405
8085
 
8406
- const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.1.2"}`, config.application, config.integration);
8086
+ const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.1.6"}`, config.application, config.integration);
8407
8087
  config.headers = _objectSpread(_objectSpread({}, config.headers), {}, {
8408
8088
  'Content-Type': 'application/vnd.contentful.delivery.v1+json',
8409
8089
  'X-Contentful-User-Agent': userAgentHeader
@@ -8441,9 +8121,9 @@ __webpack_require__.r(__webpack_exports__);
8441
8121
  /* harmony import */ var _paged_sync__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./paged-sync */ "./paged-sync.js");
8442
8122
  /* harmony import */ var _utils_normalize_select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/normalize-select */ "./utils/normalize-select.js");
8443
8123
  /* harmony import */ var _utils_validate_timestamp__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/validate-timestamp */ "./utils/validate-timestamp.js");
8444
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
8124
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8445
8125
 
8446
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
8126
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8447
8127
 
8448
8128
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8449
8129
 
@@ -8694,7 +8374,7 @@ function createContentfulApi({
8694
8374
  * })
8695
8375
  *
8696
8376
  * const response = await client.getEntries()
8697
- * .console.log(response.items)
8377
+ * console.log(response.items)
8698
8378
  */
8699
8379
 
8700
8380
 
@@ -9577,9 +9257,9 @@ __webpack_require__.r(__webpack_exports__);
9577
9257
  /* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js");
9578
9258
  /* harmony import */ var contentful_resolve_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-resolve-response */ "../node_modules/contentful-resolve-response/dist/esm/index.js");
9579
9259
  /* harmony import */ var _mixins_stringify_safe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mixins/stringify-safe */ "./mixins/stringify-safe.js");
9580
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
9260
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9581
9261
 
9582
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
9262
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9583
9263
 
9584
9264
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9585
9265
 
@@ -9790,9 +9470,9 @@ function getToken(url) {
9790
9470
  "use strict";
9791
9471
  __webpack_require__.r(__webpack_exports__);
9792
9472
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeSelect; });
9793
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
9473
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9794
9474
 
9795
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
9475
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9796
9476
 
9797
9477
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9798
9478
 
@@ -9931,17 +9611,6 @@ module.exports = require("net");
9931
9611
 
9932
9612
  /***/ }),
9933
9613
 
9934
- /***/ "os":
9935
- /*!*********************!*\
9936
- !*** external "os" ***!
9937
- \*********************/
9938
- /*! no static exports found */
9939
- /***/ (function(module, exports) {
9940
-
9941
- module.exports = require("os");
9942
-
9943
- /***/ }),
9944
-
9945
9614
  /***/ "stream":
9946
9615
  /*!*************************!*\
9947
9616
  !*** external "stream" ***!