@forsakringskassan/docs-generator 2.19.1 → 2.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,15 +23,15 @@ var node_child_process = require('node:child_process');
23
23
  var promises = require('node:stream/promises');
24
24
  var promises$1 = require('fs/promises');
25
25
  var require$$0$5 = require('os');
26
- var require$$1$4 = require('http');
26
+ var require$$1$5 = require('http');
27
27
  var require$$2$2 = require('https');
28
28
  var require$$2 = require('url');
29
29
  var require$$0$6 = require('buffer');
30
30
  var require$$1$2 = require('crypto');
31
31
  var require$$1$3 = require('net');
32
32
  var require$$2$1 = require('tls');
33
- var require$$0$7 = require('tty');
34
- var require$$0$8 = require('querystring');
33
+ var require$$1$4 = require('tty');
34
+ var require$$0$7 = require('querystring');
35
35
 
36
36
  function _interopNamespaceDefault(e) {
37
37
  var n = Object.create(null);
@@ -7237,7 +7237,7 @@ const errors = {
7237
7237
 
7238
7238
  /** Convenience shortcuts */
7239
7239
  const baseMinusTMin = base$1 - tMin;
7240
- const floor = Math.floor;
7240
+ const floor$1 = Math.floor;
7241
7241
  const stringFromCharCode = String.fromCharCode;
7242
7242
 
7243
7243
  /*--------------------------------------------------------------------------*/
@@ -7388,12 +7388,12 @@ const digitToBasic = function(digit, flag) {
7388
7388
  */
7389
7389
  const adapt = function(delta, numPoints, firstTime) {
7390
7390
  let k = 0;
7391
- delta = firstTime ? floor(delta / damp) : delta >> 1;
7392
- delta += floor(delta / numPoints);
7391
+ delta = firstTime ? floor$1(delta / damp) : delta >> 1;
7392
+ delta += floor$1(delta / numPoints);
7393
7393
  for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base$1) {
7394
- delta = floor(delta / baseMinusTMin);
7394
+ delta = floor$1(delta / baseMinusTMin);
7395
7395
  }
7396
- return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
7396
+ return floor$1(k + (baseMinusTMin + 1) * delta / (delta + skew));
7397
7397
  };
7398
7398
 
7399
7399
  /**
@@ -7450,7 +7450,7 @@ const decode = function(input) {
7450
7450
  if (digit >= base$1) {
7451
7451
  error('invalid-input');
7452
7452
  }
7453
- if (digit > floor((maxInt - i) / w)) {
7453
+ if (digit > floor$1((maxInt - i) / w)) {
7454
7454
  error('overflow');
7455
7455
  }
7456
7456
 
@@ -7462,7 +7462,7 @@ const decode = function(input) {
7462
7462
  }
7463
7463
 
7464
7464
  const baseMinusT = base$1 - t;
7465
- if (w > floor(maxInt / baseMinusT)) {
7465
+ if (w > floor$1(maxInt / baseMinusT)) {
7466
7466
  error('overflow');
7467
7467
  }
7468
7468
 
@@ -7475,11 +7475,11 @@ const decode = function(input) {
7475
7475
 
7476
7476
  // `i` was supposed to wrap around from `out` to `0`,
7477
7477
  // incrementing `n` each time, so we'll fix that now:
7478
- if (floor(i / out) > maxInt - n) {
7478
+ if (floor$1(i / out) > maxInt - n) {
7479
7479
  error('overflow');
7480
7480
  }
7481
7481
 
7482
- n += floor(i / out);
7482
+ n += floor$1(i / out);
7483
7483
  i %= out;
7484
7484
 
7485
7485
  // Insert `n` at position `i` of the output.
@@ -7544,7 +7544,7 @@ const encode = function(input) {
7544
7544
  // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
7545
7545
  // but guard against overflow.
7546
7546
  const handledCPCountPlusOne = handledCPCount + 1;
7547
- if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
7547
+ if (m - n > floor$1((maxInt - delta) / handledCPCountPlusOne)) {
7548
7548
  error('overflow');
7549
7549
  }
7550
7550
 
@@ -7568,7 +7568,7 @@ const encode = function(input) {
7568
7568
  output.push(
7569
7569
  stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
7570
7570
  );
7571
- q = floor(qMinusT / baseMinusT);
7571
+ q = floor$1(qMinusT / baseMinusT);
7572
7572
  }
7573
7573
 
7574
7574
  output.push(stringFromCharCode(digitToBasic(q, 0)));
@@ -11271,7 +11271,7 @@ class LRUCache {
11271
11271
  }
11272
11272
  /**
11273
11273
  * Return an array of [key, {@link LRUCache.Entry}] tuples which can be
11274
- * passed to {@link LRLUCache#load}.
11274
+ * passed to {@link LRUCache#load}.
11275
11275
  *
11276
11276
  * The `start` fields are calculated relative to a portable `Date.now()`
11277
11277
  * timestamp, even if `performance.now()` is available.
@@ -16395,13 +16395,13 @@ var jsYaml$1 = {};
16395
16395
 
16396
16396
  var loader = {};
16397
16397
 
16398
- var common$1 = {};
16398
+ var common$2 = {};
16399
16399
 
16400
- var hasRequiredCommon$1;
16400
+ var hasRequiredCommon$2;
16401
16401
 
16402
- function requireCommon$1 () {
16403
- if (hasRequiredCommon$1) return common$1;
16404
- hasRequiredCommon$1 = 1;
16402
+ function requireCommon$2 () {
16403
+ if (hasRequiredCommon$2) return common$2;
16404
+ hasRequiredCommon$2 = 1;
16405
16405
 
16406
16406
 
16407
16407
  function isNothing(subject) {
@@ -16454,13 +16454,13 @@ function requireCommon$1 () {
16454
16454
  }
16455
16455
 
16456
16456
 
16457
- common$1.isNothing = isNothing;
16458
- common$1.isObject = isObject;
16459
- common$1.toArray = toArray;
16460
- common$1.repeat = repeat;
16461
- common$1.isNegativeZero = isNegativeZero;
16462
- common$1.extend = extend;
16463
- return common$1;
16457
+ common$2.isNothing = isNothing;
16458
+ common$2.isObject = isObject;
16459
+ common$2.toArray = toArray;
16460
+ common$2.repeat = repeat;
16461
+ common$2.isNegativeZero = isNegativeZero;
16462
+ common$2.extend = extend;
16463
+ return common$2;
16464
16464
  }
16465
16465
 
16466
16466
  var exception;
@@ -16520,7 +16520,7 @@ function requireMark () {
16520
16520
  hasRequiredMark = 1;
16521
16521
 
16522
16522
 
16523
- var common = requireCommon$1();
16523
+ var common = requireCommon$2();
16524
16524
 
16525
16525
 
16526
16526
  function Mark(name, buffer, position, line, column) {
@@ -16674,7 +16674,7 @@ function requireSchema () {
16674
16674
 
16675
16675
  /*eslint-disable max-len*/
16676
16676
 
16677
- var common = requireCommon$1();
16677
+ var common = requireCommon$2();
16678
16678
  var YAMLException = requireException();
16679
16679
  var Type = requireType$1();
16680
16680
 
@@ -16942,7 +16942,7 @@ function requireInt () {
16942
16942
  if (hasRequiredInt) return int;
16943
16943
  hasRequiredInt = 1;
16944
16944
 
16945
- var common = requireCommon$1();
16945
+ var common = requireCommon$2();
16946
16946
  var Type = requireType$1();
16947
16947
 
16948
16948
  function isHexCode(c) {
@@ -17123,7 +17123,7 @@ function requireFloat () {
17123
17123
  if (hasRequiredFloat) return float;
17124
17124
  hasRequiredFloat = 1;
17125
17125
 
17126
- var common = requireCommon$1();
17126
+ var common = requireCommon$2();
17127
17127
  var Type = requireType$1();
17128
17128
 
17129
17129
  var YAML_FLOAT_PATTERN = new RegExp(
@@ -17962,7 +17962,7 @@ function requireLoader () {
17962
17962
 
17963
17963
  /*eslint-disable max-len,no-use-before-define*/
17964
17964
 
17965
- var common = requireCommon$1();
17965
+ var common = requireCommon$2();
17966
17966
  var YAMLException = requireException();
17967
17967
  var Mark = requireMark();
17968
17968
  var DEFAULT_SAFE_SCHEMA = requireDefault_safe();
@@ -19615,7 +19615,7 @@ function requireDumper () {
19615
19615
 
19616
19616
  /*eslint-disable no-use-before-define*/
19617
19617
 
19618
- var common = requireCommon$1();
19618
+ var common = requireCommon$2();
19619
19619
  var YAMLException = requireException();
19620
19620
  var DEFAULT_FULL_SCHEMA = requireDefault_full();
19621
19621
  var DEFAULT_SAFE_SCHEMA = requireDefault_safe();
@@ -42764,12 +42764,12 @@ function requireWasm () {
42764
42764
  return wasm_1;
42765
42765
  }
42766
42766
 
42767
- var common;
42768
- var hasRequiredCommon;
42767
+ var common$1;
42768
+ var hasRequiredCommon$1;
42769
42769
 
42770
- function requireCommon () {
42771
- if (hasRequiredCommon) return common;
42772
- hasRequiredCommon = 1;
42770
+ function requireCommon$1 () {
42771
+ if (hasRequiredCommon$1) return common$1;
42772
+ hasRequiredCommon$1 = 1;
42773
42773
  var hljs = requireCore();
42774
42774
 
42775
42775
  hljs.registerLanguage('xml', requireXml());
@@ -42811,11 +42811,11 @@ function requireCommon () {
42811
42811
 
42812
42812
  hljs.HighlightJS = hljs;
42813
42813
  hljs.default = hljs;
42814
- common = hljs;
42815
- return common;
42814
+ common$1 = hljs;
42815
+ return common$1;
42816
42816
  }
42817
42817
 
42818
- var commonExports = requireCommon();
42818
+ var commonExports = requireCommon$1();
42819
42819
  var HighlightJS = /*@__PURE__*/getDefaultExportFromCjs(commonExports);
42820
42820
 
42821
42821
  // https://nodejs.org/api/packages.html#packages_writing_dual_packages_while_avoiding_or_minimizing_hazards
@@ -45031,18 +45031,20 @@ var hasRequiredHttpParser;
45031
45031
  function requireHttpParser () {
45032
45032
  if (hasRequiredHttpParser) return httpParser;
45033
45033
  hasRequiredHttpParser = 1;
45034
- var assert = require$$5;
45035
-
45036
45034
  httpParser.HTTPParser = HTTPParser;
45037
45035
  function HTTPParser(type) {
45038
- assert.ok(type === HTTPParser.REQUEST || type === HTTPParser.RESPONSE || type === undefined);
45036
+ if (type !== undefined && type !== HTTPParser.REQUEST && type !== HTTPParser.RESPONSE) {
45037
+ throw new Error('type must be REQUEST or RESPONSE');
45038
+ }
45039
45039
  if (type === undefined) ; else {
45040
45040
  this.initialize(type);
45041
45041
  }
45042
45042
  this.maxHeaderSize=HTTPParser.maxHeaderSize;
45043
45043
  }
45044
45044
  HTTPParser.prototype.initialize = function (type, async_resource) {
45045
- assert.ok(type === HTTPParser.REQUEST || type === HTTPParser.RESPONSE);
45045
+ if (type !== HTTPParser.REQUEST && type !== HTTPParser.RESPONSE) {
45046
+ throw new Error('type must be REQUEST or RESPONSE');
45047
+ }
45046
45048
  this.type = type;
45047
45049
  this.state = type + '_LINE';
45048
45050
  this.info = {
@@ -45127,6 +45129,7 @@ function requireHttpParser () {
45127
45129
  HTTPParser.prototype.close =
45128
45130
  HTTPParser.prototype.pause =
45129
45131
  HTTPParser.prototype.resume =
45132
+ HTTPParser.prototype.remove =
45130
45133
  HTTPParser.prototype.free = function () {};
45131
45134
  HTTPParser.prototype._compatMode0_11 = false;
45132
45135
  HTTPParser.prototype.getAsyncId = function() { return 0; };
@@ -45421,7 +45424,8 @@ function requireHttpParser () {
45421
45424
 
45422
45425
  HTTPParser.prototype.BODY_CHUNK = function () {
45423
45426
  var length = Math.min(this.end - this.offset, this.body_bytes);
45424
- this.userCall()(this[kOnBody](this.chunk, this.offset, length));
45427
+ // 0, length are for backwards compatibility. See: https://github.com/creationix/http-parser-js/pull/98
45428
+ this.userCall()(this[kOnBody](this.chunk.slice(this.offset, this.offset + length), 0, length));
45425
45429
  this.offset += length;
45426
45430
  this.body_bytes -= length;
45427
45431
  if (!this.body_bytes) {
@@ -45434,7 +45438,9 @@ function requireHttpParser () {
45434
45438
  if (line === undefined) {
45435
45439
  return;
45436
45440
  }
45437
- assert.equal(line, '');
45441
+ if (line !== '') {
45442
+ throw new Error('Expected empty line');
45443
+ }
45438
45444
  this.state = 'BODY_CHUNKHEAD';
45439
45445
  };
45440
45446
 
@@ -45454,14 +45460,15 @@ function requireHttpParser () {
45454
45460
  };
45455
45461
 
45456
45462
  HTTPParser.prototype.BODY_RAW = function () {
45457
- var length = this.end - this.offset;
45458
- this.userCall()(this[kOnBody](this.chunk, this.offset, length));
45463
+ // 0, length are for backwards compatibility. See: https://github.com/creationix/http-parser-js/pull/98
45464
+ this.userCall()(this[kOnBody](this.chunk.slice(this.offset, this.end), 0, this.end - this.offset));
45459
45465
  this.offset = this.end;
45460
45466
  };
45461
45467
 
45462
45468
  HTTPParser.prototype.BODY_SIZED = function () {
45463
45469
  var length = Math.min(this.end - this.offset, this.body_bytes);
45464
- this.userCall()(this[kOnBody](this.chunk, this.offset, length));
45470
+ // 0, length are for backwards compatibility. See: https://github.com/creationix/http-parser-js/pull/98
45471
+ this.userCall()(this[kOnBody](this.chunk.slice(this.offset, this.offset + length), 0, length));
45465
45472
  this.offset += length;
45466
45473
  this.body_bytes -= length;
45467
45474
  if (!this.body_bytes) {
@@ -48143,8 +48150,6 @@ var src = {exports: {}};
48143
48150
 
48144
48151
  var browser = {exports: {}};
48145
48152
 
48146
- var debug = {exports: {}};
48147
-
48148
48153
  /**
48149
48154
  * Helpers.
48150
48155
  */
@@ -48159,6 +48164,7 @@ function requireMs () {
48159
48164
  var m = s * 60;
48160
48165
  var h = m * 60;
48161
48166
  var d = h * 24;
48167
+ var w = d * 7;
48162
48168
  var y = d * 365.25;
48163
48169
 
48164
48170
  /**
@@ -48175,12 +48181,12 @@ function requireMs () {
48175
48181
  * @api public
48176
48182
  */
48177
48183
 
48178
- ms = function(val, options) {
48184
+ ms = function (val, options) {
48179
48185
  options = options || {};
48180
48186
  var type = typeof val;
48181
48187
  if (type === 'string' && val.length > 0) {
48182
48188
  return parse(val);
48183
- } else if (type === 'number' && isNaN(val) === false) {
48189
+ } else if (type === 'number' && isFinite(val)) {
48184
48190
  return options.long ? fmtLong(val) : fmtShort(val);
48185
48191
  }
48186
48192
  throw new Error(
@@ -48202,7 +48208,7 @@ function requireMs () {
48202
48208
  if (str.length > 100) {
48203
48209
  return;
48204
48210
  }
48205
- var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(
48211
+ var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
48206
48212
  str
48207
48213
  );
48208
48214
  if (!match) {
@@ -48217,6 +48223,10 @@ function requireMs () {
48217
48223
  case 'yr':
48218
48224
  case 'y':
48219
48225
  return n * y;
48226
+ case 'weeks':
48227
+ case 'week':
48228
+ case 'w':
48229
+ return n * w;
48220
48230
  case 'days':
48221
48231
  case 'day':
48222
48232
  case 'd':
@@ -48259,16 +48269,17 @@ function requireMs () {
48259
48269
  */
48260
48270
 
48261
48271
  function fmtShort(ms) {
48262
- if (ms >= d) {
48272
+ var msAbs = Math.abs(ms);
48273
+ if (msAbs >= d) {
48263
48274
  return Math.round(ms / d) + 'd';
48264
48275
  }
48265
- if (ms >= h) {
48276
+ if (msAbs >= h) {
48266
48277
  return Math.round(ms / h) + 'h';
48267
48278
  }
48268
- if (ms >= m) {
48279
+ if (msAbs >= m) {
48269
48280
  return Math.round(ms / m) + 'm';
48270
48281
  }
48271
- if (ms >= s) {
48282
+ if (msAbs >= s) {
48272
48283
  return Math.round(ms / s) + 's';
48273
48284
  }
48274
48285
  return ms + 'ms';
@@ -48283,268 +48294,288 @@ function requireMs () {
48283
48294
  */
48284
48295
 
48285
48296
  function fmtLong(ms) {
48286
- return plural(ms, d, 'day') ||
48287
- plural(ms, h, 'hour') ||
48288
- plural(ms, m, 'minute') ||
48289
- plural(ms, s, 'second') ||
48290
- ms + ' ms';
48297
+ var msAbs = Math.abs(ms);
48298
+ if (msAbs >= d) {
48299
+ return plural(ms, msAbs, d, 'day');
48300
+ }
48301
+ if (msAbs >= h) {
48302
+ return plural(ms, msAbs, h, 'hour');
48303
+ }
48304
+ if (msAbs >= m) {
48305
+ return plural(ms, msAbs, m, 'minute');
48306
+ }
48307
+ if (msAbs >= s) {
48308
+ return plural(ms, msAbs, s, 'second');
48309
+ }
48310
+ return ms + ' ms';
48291
48311
  }
48292
48312
 
48293
48313
  /**
48294
48314
  * Pluralization helper.
48295
48315
  */
48296
48316
 
48297
- function plural(ms, n, name) {
48298
- if (ms < n) {
48299
- return;
48300
- }
48301
- if (ms < n * 1.5) {
48302
- return Math.floor(ms / n) + ' ' + name;
48303
- }
48304
- return Math.ceil(ms / n) + ' ' + name + 's';
48317
+ function plural(ms, msAbs, n, name) {
48318
+ var isPlural = msAbs >= n * 1.5;
48319
+ return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
48305
48320
  }
48306
48321
  return ms;
48307
48322
  }
48308
48323
 
48309
- var hasRequiredDebug;
48324
+ var common;
48325
+ var hasRequiredCommon;
48310
48326
 
48311
- function requireDebug () {
48312
- if (hasRequiredDebug) return debug.exports;
48313
- hasRequiredDebug = 1;
48314
- (function (module, exports) {
48315
- /**
48316
- * This is the common logic for both the Node.js and web browser
48317
- * implementations of `debug()`.
48318
- *
48319
- * Expose `debug()` as the module.
48320
- */
48327
+ function requireCommon () {
48328
+ if (hasRequiredCommon) return common;
48329
+ hasRequiredCommon = 1;
48321
48330
 
48322
- exports = module.exports = createDebug.debug = createDebug['default'] = createDebug;
48323
- exports.coerce = coerce;
48324
- exports.disable = disable;
48325
- exports.enable = enable;
48326
- exports.enabled = enabled;
48327
- exports.humanize = requireMs();
48331
+ /**
48332
+ * This is the common logic for both the Node.js and web browser
48333
+ * implementations of `debug()`.
48334
+ */
48335
+ function setup(env) {
48336
+ createDebug.debug = createDebug;
48337
+ createDebug.default = createDebug;
48338
+ createDebug.coerce = coerce;
48339
+ createDebug.disable = disable;
48340
+ createDebug.enable = enable;
48341
+ createDebug.enabled = enabled;
48342
+ createDebug.humanize = requireMs();
48343
+ Object.keys(env).forEach(function (key) {
48344
+ createDebug[key] = env[key];
48345
+ });
48346
+ /**
48347
+ * Active `debug` instances.
48348
+ */
48328
48349
 
48329
- /**
48330
- * Active `debug` instances.
48331
- */
48332
- exports.instances = [];
48350
+ createDebug.instances = [];
48351
+ /**
48352
+ * The currently active debug mode names, and names to skip.
48353
+ */
48333
48354
 
48334
- /**
48335
- * The currently active debug mode names, and names to skip.
48336
- */
48355
+ createDebug.names = [];
48356
+ createDebug.skips = [];
48357
+ /**
48358
+ * Map of special "%n" handling functions, for the debug "format" argument.
48359
+ *
48360
+ * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
48361
+ */
48337
48362
 
48338
- exports.names = [];
48339
- exports.skips = [];
48363
+ createDebug.formatters = {};
48364
+ /**
48365
+ * Selects a color for a debug namespace
48366
+ * @param {String} namespace The namespace string for the for the debug instance to be colored
48367
+ * @return {Number|String} An ANSI color code for the given namespace
48368
+ * @api private
48369
+ */
48340
48370
 
48341
- /**
48342
- * Map of special "%n" handling functions, for the debug "format" argument.
48343
- *
48344
- * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
48345
- */
48371
+ function selectColor(namespace) {
48372
+ var hash = 0;
48346
48373
 
48347
- exports.formatters = {};
48374
+ for (var i = 0; i < namespace.length; i++) {
48375
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
48376
+ hash |= 0; // Convert to 32bit integer
48377
+ }
48348
48378
 
48349
- /**
48350
- * Select a color.
48351
- * @param {String} namespace
48352
- * @return {Number}
48353
- * @api private
48354
- */
48379
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
48380
+ }
48355
48381
 
48356
- function selectColor(namespace) {
48357
- var hash = 0, i;
48382
+ createDebug.selectColor = selectColor;
48383
+ /**
48384
+ * Create a debugger with the given `namespace`.
48385
+ *
48386
+ * @param {String} namespace
48387
+ * @return {Function}
48388
+ * @api public
48389
+ */
48358
48390
 
48359
- for (i in namespace) {
48360
- hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
48361
- hash |= 0; // Convert to 32bit integer
48362
- }
48391
+ function createDebug(namespace) {
48392
+ var prevTime;
48363
48393
 
48364
- return exports.colors[Math.abs(hash) % exports.colors.length];
48365
- }
48394
+ function debug() {
48395
+ // Disabled?
48396
+ if (!debug.enabled) {
48397
+ return;
48398
+ }
48366
48399
 
48367
- /**
48368
- * Create a debugger with the given `namespace`.
48369
- *
48370
- * @param {String} namespace
48371
- * @return {Function}
48372
- * @api public
48373
- */
48400
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
48401
+ args[_key] = arguments[_key];
48402
+ }
48374
48403
 
48375
- function createDebug(namespace) {
48404
+ var self = debug; // Set `diff` timestamp
48376
48405
 
48377
- var prevTime;
48406
+ var curr = Number(new Date());
48407
+ var ms = curr - (prevTime || curr);
48408
+ self.diff = ms;
48409
+ self.prev = prevTime;
48410
+ self.curr = curr;
48411
+ prevTime = curr;
48412
+ args[0] = createDebug.coerce(args[0]);
48378
48413
 
48379
- function debug() {
48380
- // disabled?
48381
- if (!debug.enabled) return;
48414
+ if (typeof args[0] !== 'string') {
48415
+ // Anything else let's inspect with %O
48416
+ args.unshift('%O');
48417
+ } // Apply any `formatters` transformations
48382
48418
 
48383
- var self = debug;
48384
48419
 
48385
- // set `diff` timestamp
48386
- var curr = +new Date();
48387
- var ms = curr - (prevTime || curr);
48388
- self.diff = ms;
48389
- self.prev = prevTime;
48390
- self.curr = curr;
48391
- prevTime = curr;
48420
+ var index = 0;
48421
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) {
48422
+ // If we encounter an escaped % then don't increase the array index
48423
+ if (match === '%%') {
48424
+ return match;
48425
+ }
48392
48426
 
48393
- // turn the `arguments` into a proper Array
48394
- var args = new Array(arguments.length);
48395
- for (var i = 0; i < args.length; i++) {
48396
- args[i] = arguments[i];
48397
- }
48427
+ index++;
48428
+ var formatter = createDebug.formatters[format];
48398
48429
 
48399
- args[0] = exports.coerce(args[0]);
48430
+ if (typeof formatter === 'function') {
48431
+ var val = args[index];
48432
+ match = formatter.call(self, val); // Now we need to remove `args[index]` since it's inlined in the `format`
48400
48433
 
48401
- if ('string' !== typeof args[0]) {
48402
- // anything else let's inspect with %O
48403
- args.unshift('%O');
48404
- }
48434
+ args.splice(index, 1);
48435
+ index--;
48436
+ }
48405
48437
 
48406
- // apply any `formatters` transformations
48407
- var index = 0;
48408
- args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
48409
- // if we encounter an escaped % then don't increase the array index
48410
- if (match === '%%') return match;
48411
- index++;
48412
- var formatter = exports.formatters[format];
48413
- if ('function' === typeof formatter) {
48414
- var val = args[index];
48415
- match = formatter.call(self, val);
48416
-
48417
- // now we need to remove `args[index]` since it's inlined in the `format`
48418
- args.splice(index, 1);
48419
- index--;
48420
- }
48421
- return match;
48422
- });
48438
+ return match;
48439
+ }); // Apply env-specific formatting (colors, etc.)
48423
48440
 
48424
- // apply env-specific formatting (colors, etc.)
48425
- exports.formatArgs.call(self, args);
48441
+ createDebug.formatArgs.call(self, args);
48442
+ var logFn = self.log || createDebug.log;
48443
+ logFn.apply(self, args);
48444
+ }
48426
48445
 
48427
- var logFn = debug.log || exports.log || console.log.bind(console);
48428
- logFn.apply(self, args);
48429
- }
48446
+ debug.namespace = namespace;
48447
+ debug.enabled = createDebug.enabled(namespace);
48448
+ debug.useColors = createDebug.useColors();
48449
+ debug.color = selectColor(namespace);
48450
+ debug.destroy = destroy;
48451
+ debug.extend = extend; // Debug.formatArgs = formatArgs;
48452
+ // debug.rawLog = rawLog;
48453
+ // env-specific initialization logic for debug instances
48430
48454
 
48431
- debug.namespace = namespace;
48432
- debug.enabled = exports.enabled(namespace);
48433
- debug.useColors = exports.useColors();
48434
- debug.color = selectColor(namespace);
48435
- debug.destroy = destroy;
48455
+ if (typeof createDebug.init === 'function') {
48456
+ createDebug.init(debug);
48457
+ }
48436
48458
 
48437
- // env-specific initialization logic for debug instances
48438
- if ('function' === typeof exports.init) {
48439
- exports.init(debug);
48440
- }
48459
+ createDebug.instances.push(debug);
48460
+ return debug;
48461
+ }
48441
48462
 
48442
- exports.instances.push(debug);
48463
+ function destroy() {
48464
+ var index = createDebug.instances.indexOf(this);
48443
48465
 
48444
- return debug;
48445
- }
48466
+ if (index !== -1) {
48467
+ createDebug.instances.splice(index, 1);
48468
+ return true;
48469
+ }
48446
48470
 
48447
- function destroy () {
48448
- var index = exports.instances.indexOf(this);
48449
- if (index !== -1) {
48450
- exports.instances.splice(index, 1);
48451
- return true;
48452
- } else {
48453
- return false;
48454
- }
48455
- }
48471
+ return false;
48472
+ }
48456
48473
 
48457
- /**
48458
- * Enables a debug mode by namespaces. This can include modes
48459
- * separated by a colon and wildcards.
48460
- *
48461
- * @param {String} namespaces
48462
- * @api public
48463
- */
48474
+ function extend(namespace, delimiter) {
48475
+ return createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
48476
+ }
48477
+ /**
48478
+ * Enables a debug mode by namespaces. This can include modes
48479
+ * separated by a colon and wildcards.
48480
+ *
48481
+ * @param {String} namespaces
48482
+ * @api public
48483
+ */
48464
48484
 
48465
- function enable(namespaces) {
48466
- exports.save(namespaces);
48467
48485
 
48468
- exports.names = [];
48469
- exports.skips = [];
48486
+ function enable(namespaces) {
48487
+ createDebug.save(namespaces);
48488
+ createDebug.names = [];
48489
+ createDebug.skips = [];
48490
+ var i;
48491
+ var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
48492
+ var len = split.length;
48470
48493
 
48471
- var i;
48472
- var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
48473
- var len = split.length;
48494
+ for (i = 0; i < len; i++) {
48495
+ if (!split[i]) {
48496
+ // ignore empty strings
48497
+ continue;
48498
+ }
48474
48499
 
48475
- for (i = 0; i < len; i++) {
48476
- if (!split[i]) continue; // ignore empty strings
48477
- namespaces = split[i].replace(/\*/g, '.*?');
48478
- if (namespaces[0] === '-') {
48479
- exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
48480
- } else {
48481
- exports.names.push(new RegExp('^' + namespaces + '$'));
48482
- }
48483
- }
48500
+ namespaces = split[i].replace(/\*/g, '.*?');
48484
48501
 
48485
- for (i = 0; i < exports.instances.length; i++) {
48486
- var instance = exports.instances[i];
48487
- instance.enabled = exports.enabled(instance.namespace);
48488
- }
48489
- }
48502
+ if (namespaces[0] === '-') {
48503
+ createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
48504
+ } else {
48505
+ createDebug.names.push(new RegExp('^' + namespaces + '$'));
48506
+ }
48507
+ }
48490
48508
 
48491
- /**
48492
- * Disable debug output.
48493
- *
48494
- * @api public
48495
- */
48509
+ for (i = 0; i < createDebug.instances.length; i++) {
48510
+ var instance = createDebug.instances[i];
48511
+ instance.enabled = createDebug.enabled(instance.namespace);
48512
+ }
48513
+ }
48514
+ /**
48515
+ * Disable debug output.
48516
+ *
48517
+ * @api public
48518
+ */
48496
48519
 
48497
- function disable() {
48498
- exports.enable('');
48499
- }
48500
48520
 
48501
- /**
48502
- * Returns true if the given mode name is enabled, false otherwise.
48503
- *
48504
- * @param {String} name
48505
- * @return {Boolean}
48506
- * @api public
48507
- */
48521
+ function disable() {
48522
+ createDebug.enable('');
48523
+ }
48524
+ /**
48525
+ * Returns true if the given mode name is enabled, false otherwise.
48526
+ *
48527
+ * @param {String} name
48528
+ * @return {Boolean}
48529
+ * @api public
48530
+ */
48508
48531
 
48509
- function enabled(name) {
48510
- if (name[name.length - 1] === '*') {
48511
- return true;
48512
- }
48513
- var i, len;
48514
- for (i = 0, len = exports.skips.length; i < len; i++) {
48515
- if (exports.skips[i].test(name)) {
48516
- return false;
48517
- }
48518
- }
48519
- for (i = 0, len = exports.names.length; i < len; i++) {
48520
- if (exports.names[i].test(name)) {
48521
- return true;
48522
- }
48523
- }
48524
- return false;
48525
- }
48526
48532
 
48527
- /**
48528
- * Coerce `val`.
48529
- *
48530
- * @param {Mixed} val
48531
- * @return {Mixed}
48532
- * @api private
48533
- */
48533
+ function enabled(name) {
48534
+ if (name[name.length - 1] === '*') {
48535
+ return true;
48536
+ }
48534
48537
 
48535
- function coerce(val) {
48536
- if (val instanceof Error) return val.stack || val.message;
48537
- return val;
48538
- }
48539
- } (debug, debug.exports));
48540
- return debug.exports;
48541
- }
48538
+ var i;
48539
+ var len;
48542
48540
 
48543
- /**
48544
- * This is the web browser implementation of `debug()`.
48545
- *
48546
- * Expose `debug()` as the module.
48547
- */
48541
+ for (i = 0, len = createDebug.skips.length; i < len; i++) {
48542
+ if (createDebug.skips[i].test(name)) {
48543
+ return false;
48544
+ }
48545
+ }
48546
+
48547
+ for (i = 0, len = createDebug.names.length; i < len; i++) {
48548
+ if (createDebug.names[i].test(name)) {
48549
+ return true;
48550
+ }
48551
+ }
48552
+
48553
+ return false;
48554
+ }
48555
+ /**
48556
+ * Coerce `val`.
48557
+ *
48558
+ * @param {Mixed} val
48559
+ * @return {Mixed}
48560
+ * @api private
48561
+ */
48562
+
48563
+
48564
+ function coerce(val) {
48565
+ if (val instanceof Error) {
48566
+ return val.stack || val.message;
48567
+ }
48568
+
48569
+ return val;
48570
+ }
48571
+
48572
+ createDebug.enable(createDebug.load());
48573
+ return createDebug;
48574
+ }
48575
+
48576
+ common = setup;
48577
+ return common;
48578
+ }
48548
48579
 
48549
48580
  var hasRequiredBrowser;
48550
48581
 
@@ -48552,35 +48583,25 @@ function requireBrowser () {
48552
48583
  if (hasRequiredBrowser) return browser.exports;
48553
48584
  hasRequiredBrowser = 1;
48554
48585
  (function (module, exports) {
48555
- exports = module.exports = requireDebug();
48586
+
48587
+ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
48588
+
48589
+ /* eslint-env browser */
48590
+
48591
+ /**
48592
+ * This is the web browser implementation of `debug()`.
48593
+ */
48556
48594
  exports.log = log;
48557
48595
  exports.formatArgs = formatArgs;
48558
48596
  exports.save = save;
48559
48597
  exports.load = load;
48560
48598
  exports.useColors = useColors;
48561
- exports.storage = 'undefined' != typeof chrome
48562
- && 'undefined' != typeof chrome.storage
48563
- ? chrome.storage.local
48564
- : localstorage();
48565
-
48599
+ exports.storage = localstorage();
48566
48600
  /**
48567
48601
  * Colors.
48568
48602
  */
48569
48603
 
48570
- exports.colors = [
48571
- '#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC',
48572
- '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF',
48573
- '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC',
48574
- '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF',
48575
- '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC',
48576
- '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033',
48577
- '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366',
48578
- '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933',
48579
- '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC',
48580
- '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF',
48581
- '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'
48582
- ];
48583
-
48604
+ exports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'];
48584
48605
  /**
48585
48606
  * Currently only WebKit-based Web Inspectors, Firefox >= v31,
48586
48607
  * and the Firebug extension (any Firefox version) are known
@@ -48588,84 +48609,65 @@ function requireBrowser () {
48588
48609
  *
48589
48610
  * TODO: add a `localStorage` variable to explicitly enable/disable colors
48590
48611
  */
48612
+ // eslint-disable-next-line complexity
48591
48613
 
48592
48614
  function useColors() {
48593
48615
  // NB: In an Electron preload script, document will be defined but not fully
48594
48616
  // initialized. Since we know we're in Chrome, we'll just detect this case
48595
48617
  // explicitly
48596
- if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {
48618
+ if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
48597
48619
  return true;
48598
- }
48620
+ } // Internet Explorer and Edge do not support colors.
48621
+
48599
48622
 
48600
- // Internet Explorer and Edge do not support colors.
48601
48623
  if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
48602
48624
  return false;
48603
- }
48604
-
48605
- // is webkit? http://stackoverflow.com/a/16459606/376773
48625
+ } // Is webkit? http://stackoverflow.com/a/16459606/376773
48606
48626
  // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
48607
- return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
48608
- // is firebug? http://stackoverflow.com/a/398120/376773
48609
- (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
48610
- // is firefox >= v31?
48611
- // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
48612
- (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
48613
- // double check webkit in userAgent just in case we are in a worker
48614
- (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
48615
- }
48616
-
48617
- /**
48618
- * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
48619
- */
48620
-
48621
- exports.formatters.j = function(v) {
48622
- try {
48623
- return JSON.stringify(v);
48624
- } catch (err) {
48625
- return '[UnexpectedJSONParseError]: ' + err.message;
48626
- }
48627
- };
48628
48627
 
48629
48628
 
48629
+ return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
48630
+ typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
48631
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
48632
+ typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
48633
+ typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
48634
+ }
48630
48635
  /**
48631
48636
  * Colorize log arguments if enabled.
48632
48637
  *
48633
48638
  * @api public
48634
48639
  */
48635
48640
 
48636
- function formatArgs(args) {
48637
- var useColors = this.useColors;
48638
48641
 
48639
- args[0] = (useColors ? '%c' : '')
48640
- + this.namespace
48641
- + (useColors ? ' %c' : ' ')
48642
- + args[0]
48643
- + (useColors ? '%c ' : ' ')
48644
- + '+' + exports.humanize(this.diff);
48642
+ function formatArgs(args) {
48643
+ args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff);
48645
48644
 
48646
- if (!useColors) return;
48645
+ if (!this.useColors) {
48646
+ return;
48647
+ }
48647
48648
 
48648
48649
  var c = 'color: ' + this.color;
48649
- args.splice(1, 0, c, 'color: inherit');
48650
-
48651
- // the final "%c" is somewhat tricky, because there could be other
48650
+ args.splice(1, 0, c, 'color: inherit'); // The final "%c" is somewhat tricky, because there could be other
48652
48651
  // arguments passed either before or after the %c, so we need to
48653
48652
  // figure out the correct index to insert the CSS into
48653
+
48654
48654
  var index = 0;
48655
48655
  var lastC = 0;
48656
- args[0].replace(/%[a-zA-Z%]/g, function(match) {
48657
- if ('%%' === match) return;
48656
+ args[0].replace(/%[a-zA-Z%]/g, function (match) {
48657
+ if (match === '%%') {
48658
+ return;
48659
+ }
48660
+
48658
48661
  index++;
48659
- if ('%c' === match) {
48660
- // we only are interested in the *last* %c
48662
+
48663
+ if (match === '%c') {
48664
+ // We only are interested in the *last* %c
48661
48665
  // (the user may have provided their own)
48662
48666
  lastC = index;
48663
48667
  }
48664
48668
  });
48665
-
48666
48669
  args.splice(lastC, 0, c);
48667
48670
  }
48668
-
48669
48671
  /**
48670
48672
  * Invokes `console.log()` when available.
48671
48673
  * No-op when `console.log` is not a "function".
@@ -48673,14 +48675,14 @@ function requireBrowser () {
48673
48675
  * @api public
48674
48676
  */
48675
48677
 
48678
+
48676
48679
  function log() {
48677
- // this hackery is required for IE8/9, where
48680
+ var _console;
48681
+
48682
+ // This hackery is required for IE8/9, where
48678
48683
  // the `console.log` function doesn't have 'apply'
48679
- return 'object' === typeof console
48680
- && console.log
48681
- && Function.prototype.apply.call(console.log, console, arguments);
48684
+ return (typeof console === "undefined" ? "undefined" : _typeof(console)) === 'object' && console.log && (_console = console).log.apply(_console, arguments);
48682
48685
  }
48683
-
48684
48686
  /**
48685
48687
  * Save `namespaces`.
48686
48688
  *
@@ -48688,16 +48690,18 @@ function requireBrowser () {
48688
48690
  * @api private
48689
48691
  */
48690
48692
 
48693
+
48691
48694
  function save(namespaces) {
48692
48695
  try {
48693
- if (null == namespaces) {
48694
- exports.storage.removeItem('debug');
48696
+ if (namespaces) {
48697
+ exports.storage.setItem('debug', namespaces);
48695
48698
  } else {
48696
- exports.storage.debug = namespaces;
48699
+ exports.storage.removeItem('debug');
48697
48700
  }
48698
- } catch(e) {}
48701
+ } catch (error) {// Swallow
48702
+ // XXX (@Qix-) should we be logging these?
48703
+ }
48699
48704
  }
48700
-
48701
48705
  /**
48702
48706
  * Load `namespaces`.
48703
48707
  *
@@ -48705,26 +48709,23 @@ function requireBrowser () {
48705
48709
  * @api private
48706
48710
  */
48707
48711
 
48712
+
48708
48713
  function load() {
48709
48714
  var r;
48710
- try {
48711
- r = exports.storage.debug;
48712
- } catch(e) {}
48713
48715
 
48716
+ try {
48717
+ r = exports.storage.getItem('debug');
48718
+ } catch (error) {} // Swallow
48719
+ // XXX (@Qix-) should we be logging these?
48714
48720
  // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
48721
+
48722
+
48715
48723
  if (!r && typeof process !== 'undefined' && 'env' in process) {
48716
48724
  r = process.env.DEBUG;
48717
48725
  }
48718
48726
 
48719
48727
  return r;
48720
48728
  }
48721
-
48722
- /**
48723
- * Enable namespaces listed in `localStorage.debug` initially.
48724
- */
48725
-
48726
- exports.enable(load());
48727
-
48728
48729
  /**
48729
48730
  * Localstorage attempts to return the localstorage.
48730
48731
  *
@@ -48736,11 +48737,30 @@ function requireBrowser () {
48736
48737
  * @api private
48737
48738
  */
48738
48739
 
48740
+
48739
48741
  function localstorage() {
48740
48742
  try {
48741
- return window.localStorage;
48742
- } catch (e) {}
48743
- }
48743
+ // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
48744
+ // The Browser also has localStorage in the global context.
48745
+ return localStorage;
48746
+ } catch (error) {// Swallow
48747
+ // XXX (@Qix-) should we be logging these?
48748
+ }
48749
+ }
48750
+
48751
+ module.exports = requireCommon()(exports);
48752
+ var formatters = module.exports.formatters;
48753
+ /**
48754
+ * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
48755
+ */
48756
+
48757
+ formatters.j = function (v) {
48758
+ try {
48759
+ return JSON.stringify(v);
48760
+ } catch (error) {
48761
+ return '[UnexpectedJSONParseError]: ' + error.message;
48762
+ }
48763
+ };
48744
48764
  } (browser, browser.exports));
48745
48765
  return browser.exports;
48746
48766
  }
@@ -48753,12 +48773,12 @@ var hasRequiredHasFlag;
48753
48773
  function requireHasFlag () {
48754
48774
  if (hasRequiredHasFlag) return hasFlag;
48755
48775
  hasRequiredHasFlag = 1;
48756
- hasFlag = (flag, argv) => {
48757
- argv = argv || process.argv;
48776
+
48777
+ hasFlag = (flag, argv = process.argv) => {
48758
48778
  const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
48759
- const pos = argv.indexOf(prefix + flag);
48760
- const terminatorPos = argv.indexOf('--');
48761
- return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
48779
+ const position = argv.indexOf(prefix + flag);
48780
+ const terminatorPosition = argv.indexOf('--');
48781
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
48762
48782
  };
48763
48783
  return hasFlag;
48764
48784
  }
@@ -48770,23 +48790,32 @@ function requireSupportsColor () {
48770
48790
  if (hasRequiredSupportsColor) return supportsColor_1;
48771
48791
  hasRequiredSupportsColor = 1;
48772
48792
  const os = require$$0$5;
48793
+ const tty = require$$1$4;
48773
48794
  const hasFlag = requireHasFlag();
48774
48795
 
48775
- const env = process.env;
48796
+ const {env} = process;
48776
48797
 
48777
48798
  let forceColor;
48778
48799
  if (hasFlag('no-color') ||
48779
48800
  hasFlag('no-colors') ||
48780
- hasFlag('color=false')) {
48781
- forceColor = false;
48801
+ hasFlag('color=false') ||
48802
+ hasFlag('color=never')) {
48803
+ forceColor = 0;
48782
48804
  } else if (hasFlag('color') ||
48783
48805
  hasFlag('colors') ||
48784
48806
  hasFlag('color=true') ||
48785
48807
  hasFlag('color=always')) {
48786
- forceColor = true;
48808
+ forceColor = 1;
48787
48809
  }
48810
+
48788
48811
  if ('FORCE_COLOR' in env) {
48789
- forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
48812
+ if (env.FORCE_COLOR === 'true') {
48813
+ forceColor = 1;
48814
+ } else if (env.FORCE_COLOR === 'false') {
48815
+ forceColor = 0;
48816
+ } else {
48817
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
48818
+ }
48790
48819
  }
48791
48820
 
48792
48821
  function translateLevel(level) {
@@ -48802,8 +48831,8 @@ function requireSupportsColor () {
48802
48831
  };
48803
48832
  }
48804
48833
 
48805
- function supportsColor(stream) {
48806
- if (forceColor === false) {
48834
+ function supportsColor(haveStream, streamIsTTY) {
48835
+ if (forceColor === 0) {
48807
48836
  return 0;
48808
48837
  }
48809
48838
 
@@ -48817,22 +48846,21 @@ function requireSupportsColor () {
48817
48846
  return 2;
48818
48847
  }
48819
48848
 
48820
- if (stream && !stream.isTTY && forceColor !== true) {
48849
+ if (haveStream && !streamIsTTY && forceColor === undefined) {
48821
48850
  return 0;
48822
48851
  }
48823
48852
 
48824
- const min = forceColor ? 1 : 0;
48853
+ const min = forceColor || 0;
48854
+
48855
+ if (env.TERM === 'dumb') {
48856
+ return min;
48857
+ }
48825
48858
 
48826
48859
  if (process.platform === 'win32') {
48827
- // Node.js 7.5.0 is the first version of Node.js to include a patch to
48828
- // libuv that enables 256 color output on Windows. Anything earlier and it
48829
- // won't work. However, here we target Node.js 8 at minimum as it is an LTS
48830
- // release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows
48831
- // release that supports 256 colors. Windows 10 build 14931 is the first release
48832
- // that supports 16m/TrueColor.
48860
+ // Windows 10 build 10586 is the first Windows release that supports 256 colors.
48861
+ // Windows 10 build 14931 is the first release that supports 16m/TrueColor.
48833
48862
  const osRelease = os.release().split('.');
48834
48863
  if (
48835
- Number(process.versions.node.split('.')[0]) >= 8 &&
48836
48864
  Number(osRelease[0]) >= 10 &&
48837
48865
  Number(osRelease[2]) >= 10586
48838
48866
  ) {
@@ -48843,7 +48871,7 @@ function requireSupportsColor () {
48843
48871
  }
48844
48872
 
48845
48873
  if ('CI' in env) {
48846
- if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
48874
+ if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
48847
48875
  return 1;
48848
48876
  }
48849
48877
 
@@ -48882,73 +48910,61 @@ function requireSupportsColor () {
48882
48910
  return 1;
48883
48911
  }
48884
48912
 
48885
- if (env.TERM === 'dumb') {
48886
- return min;
48887
- }
48888
-
48889
48913
  return min;
48890
48914
  }
48891
48915
 
48892
48916
  function getSupportLevel(stream) {
48893
- const level = supportsColor(stream);
48917
+ const level = supportsColor(stream, stream && stream.isTTY);
48894
48918
  return translateLevel(level);
48895
48919
  }
48896
48920
 
48897
48921
  supportsColor_1 = {
48898
48922
  supportsColor: getSupportLevel,
48899
- stdout: getSupportLevel(process.stdout),
48900
- stderr: getSupportLevel(process.stderr)
48923
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
48924
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
48901
48925
  };
48902
48926
  return supportsColor_1;
48903
48927
  }
48904
48928
 
48905
- /**
48906
- * Module dependencies.
48907
- */
48908
-
48909
48929
  var hasRequiredNode;
48910
48930
 
48911
48931
  function requireNode () {
48912
48932
  if (hasRequiredNode) return node.exports;
48913
48933
  hasRequiredNode = 1;
48914
48934
  (function (module, exports) {
48915
- var tty = require$$0$7;
48916
- var util = require$$1$1;
48917
48935
 
48936
+ /**
48937
+ * Module dependencies.
48938
+ */
48939
+ var tty = require$$1$4;
48940
+
48941
+ var util = require$$1$1;
48918
48942
  /**
48919
48943
  * This is the Node.js implementation of `debug()`.
48920
- *
48921
- * Expose `debug()` as the module.
48922
48944
  */
48923
48945
 
48924
- exports = module.exports = requireDebug();
48946
+
48925
48947
  exports.init = init;
48926
48948
  exports.log = log;
48927
48949
  exports.formatArgs = formatArgs;
48928
48950
  exports.save = save;
48929
48951
  exports.load = load;
48930
48952
  exports.useColors = useColors;
48931
-
48932
48953
  /**
48933
48954
  * Colors.
48934
48955
  */
48935
48956
 
48936
- exports.colors = [ 6, 2, 3, 4, 5, 1 ];
48957
+ exports.colors = [6, 2, 3, 4, 5, 1];
48937
48958
 
48938
48959
  try {
48960
+ // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
48961
+ // eslint-disable-next-line import/no-extraneous-dependencies
48939
48962
  var supportsColor = requireSupportsColor();
48940
- if (supportsColor && supportsColor.level >= 2) {
48941
- exports.colors = [
48942
- 20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68,
48943
- 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134,
48944
- 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
48945
- 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204,
48946
- 205, 206, 207, 208, 209, 214, 215, 220, 221
48947
- ];
48963
+
48964
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
48965
+ exports.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221];
48948
48966
  }
48949
- } catch (err) {
48950
- // swallow - we only care if `supports-color` is available; it doesn't have to be.
48951
- }
48967
+ } catch (error) {} // Swallow - we only care if `supports-color` is available; it doesn't have to be.
48952
48968
 
48953
48969
  /**
48954
48970
  * Build up the default `inspectOpts` object from the environment variables.
@@ -48956,74 +48972,54 @@ function requireNode () {
48956
48972
  * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
48957
48973
  */
48958
48974
 
48975
+
48959
48976
  exports.inspectOpts = Object.keys(process.env).filter(function (key) {
48960
48977
  return /^debug_/i.test(key);
48961
48978
  }).reduce(function (obj, key) {
48962
- // camel-case
48963
- var prop = key
48964
- .substring(6)
48965
- .toLowerCase()
48966
- .replace(/_([a-z])/g, function (_, k) { return k.toUpperCase() });
48979
+ // Camel-case
48980
+ var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function (_, k) {
48981
+ return k.toUpperCase();
48982
+ }); // Coerce string value into JS value
48967
48983
 
48968
- // coerce string value into JS value
48969
48984
  var val = process.env[key];
48970
- if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
48971
- else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
48972
- else if (val === 'null') val = null;
48973
- else val = Number(val);
48985
+
48986
+ if (/^(yes|on|true|enabled)$/i.test(val)) {
48987
+ val = true;
48988
+ } else if (/^(no|off|false|disabled)$/i.test(val)) {
48989
+ val = false;
48990
+ } else if (val === 'null') {
48991
+ val = null;
48992
+ } else {
48993
+ val = Number(val);
48994
+ }
48974
48995
 
48975
48996
  obj[prop] = val;
48976
48997
  return obj;
48977
48998
  }, {});
48978
-
48979
48999
  /**
48980
49000
  * Is stdout a TTY? Colored output is enabled when `true`.
48981
49001
  */
48982
49002
 
48983
49003
  function useColors() {
48984
- return 'colors' in exports.inspectOpts
48985
- ? Boolean(exports.inspectOpts.colors)
48986
- : tty.isatty(process.stderr.fd);
49004
+ return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
48987
49005
  }
48988
-
48989
- /**
48990
- * Map %o to `util.inspect()`, all on a single line.
48991
- */
48992
-
48993
- exports.formatters.o = function(v) {
48994
- this.inspectOpts.colors = this.useColors;
48995
- return util.inspect(v, this.inspectOpts)
48996
- .split('\n').map(function(str) {
48997
- return str.trim()
48998
- }).join(' ');
48999
- };
49000
-
49001
- /**
49002
- * Map %o to `util.inspect()`, allowing multiple lines if needed.
49003
- */
49004
-
49005
- exports.formatters.O = function(v) {
49006
- this.inspectOpts.colors = this.useColors;
49007
- return util.inspect(v, this.inspectOpts);
49008
- };
49009
-
49010
49006
  /**
49011
49007
  * Adds ANSI color escape codes if enabled.
49012
49008
  *
49013
49009
  * @api public
49014
49010
  */
49015
49011
 
49012
+
49016
49013
  function formatArgs(args) {
49017
- var name = this.namespace;
49018
- var useColors = this.useColors;
49014
+ var name = this.namespace,
49015
+ useColors = this.useColors;
49019
49016
 
49020
49017
  if (useColors) {
49021
49018
  var c = this.color;
49022
- var colorCode = '\u001b[3' + (c < 8 ? c : '8;5;' + c);
49023
- var prefix = ' ' + colorCode + ';1m' + name + ' ' + '\u001b[0m';
49024
-
49019
+ var colorCode = "\x1B[3" + (c < 8 ? c : '8;5;' + c);
49020
+ var prefix = " ".concat(colorCode, ";1m").concat(name, " \x1B[0m");
49025
49021
  args[0] = prefix + args[0].split('\n').join('\n' + prefix);
49026
- args.push(colorCode + 'm+' + exports.humanize(this.diff) + '\u001b[0m');
49022
+ args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + "\x1B[0m");
49027
49023
  } else {
49028
49024
  args[0] = getDate() + name + ' ' + args[0];
49029
49025
  }
@@ -49032,19 +49028,18 @@ function requireNode () {
49032
49028
  function getDate() {
49033
49029
  if (exports.inspectOpts.hideDate) {
49034
49030
  return '';
49035
- } else {
49036
- return new Date().toISOString() + ' ';
49037
49031
  }
49038
- }
49039
49032
 
49033
+ return new Date().toISOString() + ' ';
49034
+ }
49040
49035
  /**
49041
49036
  * Invokes `util.format()` with the specified arguments and writes to stderr.
49042
49037
  */
49043
49038
 
49039
+
49044
49040
  function log() {
49045
49041
  return process.stderr.write(util.format.apply(util, arguments) + '\n');
49046
49042
  }
49047
-
49048
49043
  /**
49049
49044
  * Save `namespaces`.
49050
49045
  *
@@ -49052,16 +49047,16 @@ function requireNode () {
49052
49047
  * @api private
49053
49048
  */
49054
49049
 
49050
+
49055
49051
  function save(namespaces) {
49056
- if (null == namespaces) {
49052
+ if (namespaces) {
49053
+ process.env.DEBUG = namespaces;
49054
+ } else {
49057
49055
  // If you set a process.env field to null or undefined, it gets cast to the
49058
49056
  // string 'null' or 'undefined'. Just delete instead.
49059
49057
  delete process.env.DEBUG;
49060
- } else {
49061
- process.env.DEBUG = namespaces;
49062
49058
  }
49063
49059
  }
49064
-
49065
49060
  /**
49066
49061
  * Load `namespaces`.
49067
49062
  *
@@ -49069,10 +49064,10 @@ function requireNode () {
49069
49064
  * @api private
49070
49065
  */
49071
49066
 
49067
+
49072
49068
  function load() {
49073
49069
  return process.env.DEBUG;
49074
49070
  }
49075
-
49076
49071
  /**
49077
49072
  * Init logic for `debug` instances.
49078
49073
  *
@@ -49080,35 +49075,53 @@ function requireNode () {
49080
49075
  * differently for a particular `debug` instance.
49081
49076
  */
49082
49077
 
49083
- function init (debug) {
49084
- debug.inspectOpts = {};
49085
49078
 
49079
+ function init(debug) {
49080
+ debug.inspectOpts = {};
49086
49081
  var keys = Object.keys(exports.inspectOpts);
49082
+
49087
49083
  for (var i = 0; i < keys.length; i++) {
49088
49084
  debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
49089
49085
  }
49090
49086
  }
49091
49087
 
49088
+ module.exports = requireCommon()(exports);
49089
+ var formatters = module.exports.formatters;
49090
+ /**
49091
+ * Map %o to `util.inspect()`, all on a single line.
49092
+ */
49093
+
49094
+ formatters.o = function (v) {
49095
+ this.inspectOpts.colors = this.useColors;
49096
+ return util.inspect(v, this.inspectOpts)
49097
+ .split('\n')
49098
+ .map(function (str) { return str.trim(); })
49099
+ .join(' ');
49100
+ };
49092
49101
  /**
49093
- * Enable namespaces listed in `process.env.DEBUG` initially.
49102
+ * Map %O to `util.inspect()`, allowing multiple lines if needed.
49094
49103
  */
49095
49104
 
49096
- exports.enable(load());
49105
+
49106
+ formatters.O = function (v) {
49107
+ this.inspectOpts.colors = this.useColors;
49108
+ return util.inspect(v, this.inspectOpts);
49109
+ };
49097
49110
  } (node, node.exports));
49098
49111
  return node.exports;
49099
49112
  }
49100
49113
 
49101
- /**
49102
- * Detect Electron renderer process, which is node, but we should
49103
- * treat as a browser.
49104
- */
49105
-
49106
49114
  var hasRequiredSrc$1;
49107
49115
 
49108
49116
  function requireSrc$1 () {
49109
49117
  if (hasRequiredSrc$1) return src.exports;
49110
49118
  hasRequiredSrc$1 = 1;
49111
- if (typeof process === 'undefined' || process.type === 'renderer') {
49119
+
49120
+ /**
49121
+ * Detect Electron renderer / nwjs process, which is node, but we should
49122
+ * treat as a browser.
49123
+ */
49124
+ if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
49112
49125
  src.exports = requireBrowser();
49113
49126
  } else {
49114
49127
  src.exports = requireNode();
@@ -50143,7 +50156,7 @@ var hasRequiredForm;
50143
50156
  function requireForm () {
50144
50157
  if (hasRequiredForm) return form;
50145
50158
  hasRequiredForm = 1;
50146
- var querystringParse = require$$0$8.parse;
50159
+ var querystringParse = require$$0$7.parse;
50147
50160
 
50148
50161
  var body = requireBody();
50149
50162
  var parseArguments = requireParseArguments();
@@ -50226,6 +50239,714 @@ function requireAny () {
50226
50239
  return any;
50227
50240
  }
50228
50241
 
50242
+ var type;
50243
+ var hasRequiredType;
50244
+
50245
+ function requireType () {
50246
+ if (hasRequiredType) return type;
50247
+ hasRequiredType = 1;
50248
+
50249
+ /** @type {import('./type')} */
50250
+ type = TypeError;
50251
+ return type;
50252
+ }
50253
+
50254
+ var util_inspect;
50255
+ var hasRequiredUtil_inspect;
50256
+
50257
+ function requireUtil_inspect () {
50258
+ if (hasRequiredUtil_inspect) return util_inspect;
50259
+ hasRequiredUtil_inspect = 1;
50260
+ util_inspect = require$$1$1.inspect;
50261
+ return util_inspect;
50262
+ }
50263
+
50264
+ var objectInspect;
50265
+ var hasRequiredObjectInspect;
50266
+
50267
+ function requireObjectInspect () {
50268
+ if (hasRequiredObjectInspect) return objectInspect;
50269
+ hasRequiredObjectInspect = 1;
50270
+ var hasMap = typeof Map === 'function' && Map.prototype;
50271
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
50272
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
50273
+ var mapForEach = hasMap && Map.prototype.forEach;
50274
+ var hasSet = typeof Set === 'function' && Set.prototype;
50275
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
50276
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
50277
+ var setForEach = hasSet && Set.prototype.forEach;
50278
+ var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
50279
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
50280
+ var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
50281
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
50282
+ var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
50283
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
50284
+ var booleanValueOf = Boolean.prototype.valueOf;
50285
+ var objectToString = Object.prototype.toString;
50286
+ var functionToString = Function.prototype.toString;
50287
+ var $match = String.prototype.match;
50288
+ var $slice = String.prototype.slice;
50289
+ var $replace = String.prototype.replace;
50290
+ var $toUpperCase = String.prototype.toUpperCase;
50291
+ var $toLowerCase = String.prototype.toLowerCase;
50292
+ var $test = RegExp.prototype.test;
50293
+ var $concat = Array.prototype.concat;
50294
+ var $join = Array.prototype.join;
50295
+ var $arrSlice = Array.prototype.slice;
50296
+ var $floor = Math.floor;
50297
+ var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
50298
+ var gOPS = Object.getOwnPropertySymbols;
50299
+ var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
50300
+ var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
50301
+ // ie, `has-tostringtag/shams
50302
+ var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
50303
+ ? Symbol.toStringTag
50304
+ : null;
50305
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
50306
+
50307
+ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
50308
+ [].__proto__ === Array.prototype // eslint-disable-line no-proto
50309
+ ? function (O) {
50310
+ return O.__proto__; // eslint-disable-line no-proto
50311
+ }
50312
+ : null
50313
+ );
50314
+
50315
+ function addNumericSeparator(num, str) {
50316
+ if (
50317
+ num === Infinity
50318
+ || num === -Infinity
50319
+ || num !== num
50320
+ || (num && num > -1e3 && num < 1000)
50321
+ || $test.call(/e/, str)
50322
+ ) {
50323
+ return str;
50324
+ }
50325
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
50326
+ if (typeof num === 'number') {
50327
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
50328
+ if (int !== num) {
50329
+ var intStr = String(int);
50330
+ var dec = $slice.call(str, intStr.length + 1);
50331
+ return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
50332
+ }
50333
+ }
50334
+ return $replace.call(str, sepRegex, '$&_');
50335
+ }
50336
+
50337
+ var utilInspect = requireUtil_inspect();
50338
+ var inspectCustom = utilInspect.custom;
50339
+ var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
50340
+
50341
+ var quotes = {
50342
+ __proto__: null,
50343
+ 'double': '"',
50344
+ single: "'"
50345
+ };
50346
+ var quoteREs = {
50347
+ __proto__: null,
50348
+ 'double': /(["\\])/g,
50349
+ single: /(['\\])/g
50350
+ };
50351
+
50352
+ objectInspect = function inspect_(obj, options, depth, seen) {
50353
+ var opts = options || {};
50354
+
50355
+ if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) {
50356
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
50357
+ }
50358
+ if (
50359
+ has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
50360
+ ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
50361
+ : opts.maxStringLength !== null
50362
+ )
50363
+ ) {
50364
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
50365
+ }
50366
+ var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
50367
+ if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
50368
+ throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
50369
+ }
50370
+
50371
+ if (
50372
+ has(opts, 'indent')
50373
+ && opts.indent !== null
50374
+ && opts.indent !== '\t'
50375
+ && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
50376
+ ) {
50377
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
50378
+ }
50379
+ if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
50380
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
50381
+ }
50382
+ var numericSeparator = opts.numericSeparator;
50383
+
50384
+ if (typeof obj === 'undefined') {
50385
+ return 'undefined';
50386
+ }
50387
+ if (obj === null) {
50388
+ return 'null';
50389
+ }
50390
+ if (typeof obj === 'boolean') {
50391
+ return obj ? 'true' : 'false';
50392
+ }
50393
+
50394
+ if (typeof obj === 'string') {
50395
+ return inspectString(obj, opts);
50396
+ }
50397
+ if (typeof obj === 'number') {
50398
+ if (obj === 0) {
50399
+ return Infinity / obj > 0 ? '0' : '-0';
50400
+ }
50401
+ var str = String(obj);
50402
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
50403
+ }
50404
+ if (typeof obj === 'bigint') {
50405
+ var bigIntStr = String(obj) + 'n';
50406
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
50407
+ }
50408
+
50409
+ var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
50410
+ if (typeof depth === 'undefined') { depth = 0; }
50411
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
50412
+ return isArray(obj) ? '[Array]' : '[Object]';
50413
+ }
50414
+
50415
+ var indent = getIndent(opts, depth);
50416
+
50417
+ if (typeof seen === 'undefined') {
50418
+ seen = [];
50419
+ } else if (indexOf(seen, obj) >= 0) {
50420
+ return '[Circular]';
50421
+ }
50422
+
50423
+ function inspect(value, from, noIndent) {
50424
+ if (from) {
50425
+ seen = $arrSlice.call(seen);
50426
+ seen.push(from);
50427
+ }
50428
+ if (noIndent) {
50429
+ var newOpts = {
50430
+ depth: opts.depth
50431
+ };
50432
+ if (has(opts, 'quoteStyle')) {
50433
+ newOpts.quoteStyle = opts.quoteStyle;
50434
+ }
50435
+ return inspect_(value, newOpts, depth + 1, seen);
50436
+ }
50437
+ return inspect_(value, opts, depth + 1, seen);
50438
+ }
50439
+
50440
+ if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
50441
+ var name = nameOf(obj);
50442
+ var keys = arrObjKeys(obj, inspect);
50443
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
50444
+ }
50445
+ if (isSymbol(obj)) {
50446
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
50447
+ return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
50448
+ }
50449
+ if (isElement(obj)) {
50450
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
50451
+ var attrs = obj.attributes || [];
50452
+ for (var i = 0; i < attrs.length; i++) {
50453
+ s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
50454
+ }
50455
+ s += '>';
50456
+ if (obj.childNodes && obj.childNodes.length) { s += '...'; }
50457
+ s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
50458
+ return s;
50459
+ }
50460
+ if (isArray(obj)) {
50461
+ if (obj.length === 0) { return '[]'; }
50462
+ var xs = arrObjKeys(obj, inspect);
50463
+ if (indent && !singleLineValues(xs)) {
50464
+ return '[' + indentedJoin(xs, indent) + ']';
50465
+ }
50466
+ return '[ ' + $join.call(xs, ', ') + ' ]';
50467
+ }
50468
+ if (isError(obj)) {
50469
+ var parts = arrObjKeys(obj, inspect);
50470
+ if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
50471
+ return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
50472
+ }
50473
+ if (parts.length === 0) { return '[' + String(obj) + ']'; }
50474
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
50475
+ }
50476
+ if (typeof obj === 'object' && customInspect) {
50477
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
50478
+ return utilInspect(obj, { depth: maxDepth - depth });
50479
+ } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
50480
+ return obj.inspect();
50481
+ }
50482
+ }
50483
+ if (isMap(obj)) {
50484
+ var mapParts = [];
50485
+ if (mapForEach) {
50486
+ mapForEach.call(obj, function (value, key) {
50487
+ mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
50488
+ });
50489
+ }
50490
+ return collectionOf('Map', mapSize.call(obj), mapParts, indent);
50491
+ }
50492
+ if (isSet(obj)) {
50493
+ var setParts = [];
50494
+ if (setForEach) {
50495
+ setForEach.call(obj, function (value) {
50496
+ setParts.push(inspect(value, obj));
50497
+ });
50498
+ }
50499
+ return collectionOf('Set', setSize.call(obj), setParts, indent);
50500
+ }
50501
+ if (isWeakMap(obj)) {
50502
+ return weakCollectionOf('WeakMap');
50503
+ }
50504
+ if (isWeakSet(obj)) {
50505
+ return weakCollectionOf('WeakSet');
50506
+ }
50507
+ if (isWeakRef(obj)) {
50508
+ return weakCollectionOf('WeakRef');
50509
+ }
50510
+ if (isNumber(obj)) {
50511
+ return markBoxed(inspect(Number(obj)));
50512
+ }
50513
+ if (isBigInt(obj)) {
50514
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
50515
+ }
50516
+ if (isBoolean(obj)) {
50517
+ return markBoxed(booleanValueOf.call(obj));
50518
+ }
50519
+ if (isString(obj)) {
50520
+ return markBoxed(inspect(String(obj)));
50521
+ }
50522
+ // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
50523
+ /* eslint-env browser */
50524
+ if (typeof window !== 'undefined' && obj === window) {
50525
+ return '{ [object Window] }';
50526
+ }
50527
+ if (
50528
+ (typeof globalThis !== 'undefined' && obj === globalThis)
50529
+ || (typeof commonjsGlobal !== 'undefined' && obj === commonjsGlobal)
50530
+ ) {
50531
+ return '{ [object globalThis] }';
50532
+ }
50533
+ if (!isDate(obj) && !isRegExp(obj)) {
50534
+ var ys = arrObjKeys(obj, inspect);
50535
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
50536
+ var protoTag = obj instanceof Object ? '' : 'null prototype';
50537
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
50538
+ var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
50539
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
50540
+ if (ys.length === 0) { return tag + '{}'; }
50541
+ if (indent) {
50542
+ return tag + '{' + indentedJoin(ys, indent) + '}';
50543
+ }
50544
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
50545
+ }
50546
+ return String(obj);
50547
+ };
50548
+
50549
+ function wrapQuotes(s, defaultStyle, opts) {
50550
+ var style = opts.quoteStyle || defaultStyle;
50551
+ var quoteChar = quotes[style];
50552
+ return quoteChar + s + quoteChar;
50553
+ }
50554
+
50555
+ function quote(s) {
50556
+ return $replace.call(String(s), /"/g, '&quot;');
50557
+ }
50558
+
50559
+ function canTrustToString(obj) {
50560
+ return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));
50561
+ }
50562
+ function isArray(obj) { return toStr(obj) === '[object Array]' && canTrustToString(obj); }
50563
+ function isDate(obj) { return toStr(obj) === '[object Date]' && canTrustToString(obj); }
50564
+ function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && canTrustToString(obj); }
50565
+ function isError(obj) { return toStr(obj) === '[object Error]' && canTrustToString(obj); }
50566
+ function isString(obj) { return toStr(obj) === '[object String]' && canTrustToString(obj); }
50567
+ function isNumber(obj) { return toStr(obj) === '[object Number]' && canTrustToString(obj); }
50568
+ function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && canTrustToString(obj); }
50569
+
50570
+ // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
50571
+ function isSymbol(obj) {
50572
+ if (hasShammedSymbols) {
50573
+ return obj && typeof obj === 'object' && obj instanceof Symbol;
50574
+ }
50575
+ if (typeof obj === 'symbol') {
50576
+ return true;
50577
+ }
50578
+ if (!obj || typeof obj !== 'object' || !symToString) {
50579
+ return false;
50580
+ }
50581
+ try {
50582
+ symToString.call(obj);
50583
+ return true;
50584
+ } catch (e) {}
50585
+ return false;
50586
+ }
50587
+
50588
+ function isBigInt(obj) {
50589
+ if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
50590
+ return false;
50591
+ }
50592
+ try {
50593
+ bigIntValueOf.call(obj);
50594
+ return true;
50595
+ } catch (e) {}
50596
+ return false;
50597
+ }
50598
+
50599
+ var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
50600
+ function has(obj, key) {
50601
+ return hasOwn.call(obj, key);
50602
+ }
50603
+
50604
+ function toStr(obj) {
50605
+ return objectToString.call(obj);
50606
+ }
50607
+
50608
+ function nameOf(f) {
50609
+ if (f.name) { return f.name; }
50610
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
50611
+ if (m) { return m[1]; }
50612
+ return null;
50613
+ }
50614
+
50615
+ function indexOf(xs, x) {
50616
+ if (xs.indexOf) { return xs.indexOf(x); }
50617
+ for (var i = 0, l = xs.length; i < l; i++) {
50618
+ if (xs[i] === x) { return i; }
50619
+ }
50620
+ return -1;
50621
+ }
50622
+
50623
+ function isMap(x) {
50624
+ if (!mapSize || !x || typeof x !== 'object') {
50625
+ return false;
50626
+ }
50627
+ try {
50628
+ mapSize.call(x);
50629
+ try {
50630
+ setSize.call(x);
50631
+ } catch (s) {
50632
+ return true;
50633
+ }
50634
+ return x instanceof Map; // core-js workaround, pre-v2.5.0
50635
+ } catch (e) {}
50636
+ return false;
50637
+ }
50638
+
50639
+ function isWeakMap(x) {
50640
+ if (!weakMapHas || !x || typeof x !== 'object') {
50641
+ return false;
50642
+ }
50643
+ try {
50644
+ weakMapHas.call(x, weakMapHas);
50645
+ try {
50646
+ weakSetHas.call(x, weakSetHas);
50647
+ } catch (s) {
50648
+ return true;
50649
+ }
50650
+ return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
50651
+ } catch (e) {}
50652
+ return false;
50653
+ }
50654
+
50655
+ function isWeakRef(x) {
50656
+ if (!weakRefDeref || !x || typeof x !== 'object') {
50657
+ return false;
50658
+ }
50659
+ try {
50660
+ weakRefDeref.call(x);
50661
+ return true;
50662
+ } catch (e) {}
50663
+ return false;
50664
+ }
50665
+
50666
+ function isSet(x) {
50667
+ if (!setSize || !x || typeof x !== 'object') {
50668
+ return false;
50669
+ }
50670
+ try {
50671
+ setSize.call(x);
50672
+ try {
50673
+ mapSize.call(x);
50674
+ } catch (m) {
50675
+ return true;
50676
+ }
50677
+ return x instanceof Set; // core-js workaround, pre-v2.5.0
50678
+ } catch (e) {}
50679
+ return false;
50680
+ }
50681
+
50682
+ function isWeakSet(x) {
50683
+ if (!weakSetHas || !x || typeof x !== 'object') {
50684
+ return false;
50685
+ }
50686
+ try {
50687
+ weakSetHas.call(x, weakSetHas);
50688
+ try {
50689
+ weakMapHas.call(x, weakMapHas);
50690
+ } catch (s) {
50691
+ return true;
50692
+ }
50693
+ return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
50694
+ } catch (e) {}
50695
+ return false;
50696
+ }
50697
+
50698
+ function isElement(x) {
50699
+ if (!x || typeof x !== 'object') { return false; }
50700
+ if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
50701
+ return true;
50702
+ }
50703
+ return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
50704
+ }
50705
+
50706
+ function inspectString(str, opts) {
50707
+ if (str.length > opts.maxStringLength) {
50708
+ var remaining = str.length - opts.maxStringLength;
50709
+ var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
50710
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
50711
+ }
50712
+ var quoteRE = quoteREs[opts.quoteStyle || 'single'];
50713
+ quoteRE.lastIndex = 0;
50714
+ // eslint-disable-next-line no-control-regex
50715
+ var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte);
50716
+ return wrapQuotes(s, 'single', opts);
50717
+ }
50718
+
50719
+ function lowbyte(c) {
50720
+ var n = c.charCodeAt(0);
50721
+ var x = {
50722
+ 8: 'b',
50723
+ 9: 't',
50724
+ 10: 'n',
50725
+ 12: 'f',
50726
+ 13: 'r'
50727
+ }[n];
50728
+ if (x) { return '\\' + x; }
50729
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
50730
+ }
50731
+
50732
+ function markBoxed(str) {
50733
+ return 'Object(' + str + ')';
50734
+ }
50735
+
50736
+ function weakCollectionOf(type) {
50737
+ return type + ' { ? }';
50738
+ }
50739
+
50740
+ function collectionOf(type, size, entries, indent) {
50741
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
50742
+ return type + ' (' + size + ') {' + joinedEntries + '}';
50743
+ }
50744
+
50745
+ function singleLineValues(xs) {
50746
+ for (var i = 0; i < xs.length; i++) {
50747
+ if (indexOf(xs[i], '\n') >= 0) {
50748
+ return false;
50749
+ }
50750
+ }
50751
+ return true;
50752
+ }
50753
+
50754
+ function getIndent(opts, depth) {
50755
+ var baseIndent;
50756
+ if (opts.indent === '\t') {
50757
+ baseIndent = '\t';
50758
+ } else if (typeof opts.indent === 'number' && opts.indent > 0) {
50759
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
50760
+ } else {
50761
+ return null;
50762
+ }
50763
+ return {
50764
+ base: baseIndent,
50765
+ prev: $join.call(Array(depth + 1), baseIndent)
50766
+ };
50767
+ }
50768
+
50769
+ function indentedJoin(xs, indent) {
50770
+ if (xs.length === 0) { return ''; }
50771
+ var lineJoiner = '\n' + indent.prev + indent.base;
50772
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
50773
+ }
50774
+
50775
+ function arrObjKeys(obj, inspect) {
50776
+ var isArr = isArray(obj);
50777
+ var xs = [];
50778
+ if (isArr) {
50779
+ xs.length = obj.length;
50780
+ for (var i = 0; i < obj.length; i++) {
50781
+ xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
50782
+ }
50783
+ }
50784
+ var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
50785
+ var symMap;
50786
+ if (hasShammedSymbols) {
50787
+ symMap = {};
50788
+ for (var k = 0; k < syms.length; k++) {
50789
+ symMap['$' + syms[k]] = syms[k];
50790
+ }
50791
+ }
50792
+
50793
+ for (var key in obj) { // eslint-disable-line no-restricted-syntax
50794
+ if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
50795
+ if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
50796
+ if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
50797
+ // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
50798
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
50799
+ } else if ($test.call(/[^\w$]/, key)) {
50800
+ xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
50801
+ } else {
50802
+ xs.push(key + ': ' + inspect(obj[key], obj));
50803
+ }
50804
+ }
50805
+ if (typeof gOPS === 'function') {
50806
+ for (var j = 0; j < syms.length; j++) {
50807
+ if (isEnumerable.call(obj, syms[j])) {
50808
+ xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
50809
+ }
50810
+ }
50811
+ }
50812
+ return xs;
50813
+ }
50814
+ return objectInspect;
50815
+ }
50816
+
50817
+ var sideChannelList;
50818
+ var hasRequiredSideChannelList;
50819
+
50820
+ function requireSideChannelList () {
50821
+ if (hasRequiredSideChannelList) return sideChannelList;
50822
+ hasRequiredSideChannelList = 1;
50823
+
50824
+ var inspect = /*@__PURE__*/ requireObjectInspect();
50825
+
50826
+ var $TypeError = /*@__PURE__*/ requireType();
50827
+
50828
+ /*
50829
+ * This function traverses the list returning the node corresponding to the given key.
50830
+ *
50831
+ * That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.
50832
+ * By doing so, all the recently used nodes can be accessed relatively quickly.
50833
+ */
50834
+ /** @type {import('./list.d.ts').listGetNode} */
50835
+ // eslint-disable-next-line consistent-return
50836
+ var listGetNode = function (list, key, isDelete) {
50837
+ /** @type {typeof list | NonNullable<(typeof list)['next']>} */
50838
+ var prev = list;
50839
+ /** @type {(typeof list)['next']} */
50840
+ var curr;
50841
+ // eslint-disable-next-line eqeqeq
50842
+ for (; (curr = prev.next) != null; prev = curr) {
50843
+ if (curr.key === key) {
50844
+ prev.next = curr.next;
50845
+ if (!isDelete) {
50846
+ // eslint-disable-next-line no-extra-parens
50847
+ curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
50848
+ list.next = curr; // eslint-disable-line no-param-reassign
50849
+ }
50850
+ return curr;
50851
+ }
50852
+ }
50853
+ };
50854
+
50855
+ /** @type {import('./list.d.ts').listGet} */
50856
+ var listGet = function (objects, key) {
50857
+ if (!objects) {
50858
+ return void 0;
50859
+ }
50860
+ var node = listGetNode(objects, key);
50861
+ return node && node.value;
50862
+ };
50863
+ /** @type {import('./list.d.ts').listSet} */
50864
+ var listSet = function (objects, key, value) {
50865
+ var node = listGetNode(objects, key);
50866
+ if (node) {
50867
+ node.value = value;
50868
+ } else {
50869
+ // Prepend the new node to the beginning of the list
50870
+ objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
50871
+ key: key,
50872
+ next: objects.next,
50873
+ value: value
50874
+ });
50875
+ }
50876
+ };
50877
+ /** @type {import('./list.d.ts').listHas} */
50878
+ var listHas = function (objects, key) {
50879
+ if (!objects) {
50880
+ return false;
50881
+ }
50882
+ return !!listGetNode(objects, key);
50883
+ };
50884
+ /** @type {import('./list.d.ts').listDelete} */
50885
+ // eslint-disable-next-line consistent-return
50886
+ var listDelete = function (objects, key) {
50887
+ if (objects) {
50888
+ return listGetNode(objects, key, true);
50889
+ }
50890
+ };
50891
+
50892
+ /** @type {import('.')} */
50893
+ sideChannelList = function getSideChannelList() {
50894
+ /** @typedef {ReturnType<typeof getSideChannelList>} Channel */
50895
+ /** @typedef {Parameters<Channel['get']>[0]} K */
50896
+ /** @typedef {Parameters<Channel['set']>[1]} V */
50897
+
50898
+ /** @type {import('./list.d.ts').RootNode<V, K> | undefined} */ var $o;
50899
+
50900
+ /** @type {Channel} */
50901
+ var channel = {
50902
+ assert: function (key) {
50903
+ if (!channel.has(key)) {
50904
+ throw new $TypeError('Side channel does not contain ' + inspect(key));
50905
+ }
50906
+ },
50907
+ 'delete': function (key) {
50908
+ var root = $o && $o.next;
50909
+ var deletedNode = listDelete($o, key);
50910
+ if (deletedNode && root && root === deletedNode) {
50911
+ $o = void 0;
50912
+ }
50913
+ return !!deletedNode;
50914
+ },
50915
+ get: function (key) {
50916
+ return listGet($o, key);
50917
+ },
50918
+ has: function (key) {
50919
+ return listHas($o, key);
50920
+ },
50921
+ set: function (key, value) {
50922
+ if (!$o) {
50923
+ // Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
50924
+ $o = {
50925
+ next: void 0
50926
+ };
50927
+ }
50928
+ // eslint-disable-next-line no-extra-parens
50929
+ listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
50930
+ }
50931
+ };
50932
+ // @ts-expect-error TODO: figure out why this is erroring
50933
+ return channel;
50934
+ };
50935
+ return sideChannelList;
50936
+ }
50937
+
50938
+ var esObjectAtoms;
50939
+ var hasRequiredEsObjectAtoms;
50940
+
50941
+ function requireEsObjectAtoms () {
50942
+ if (hasRequiredEsObjectAtoms) return esObjectAtoms;
50943
+ hasRequiredEsObjectAtoms = 1;
50944
+
50945
+ /** @type {import('.')} */
50946
+ esObjectAtoms = Object;
50947
+ return esObjectAtoms;
50948
+ }
50949
+
50229
50950
  var esErrors;
50230
50951
  var hasRequiredEsErrors;
50231
50952
 
@@ -50286,18 +51007,6 @@ function requireSyntax () {
50286
51007
  return syntax;
50287
51008
  }
50288
51009
 
50289
- var type;
50290
- var hasRequiredType;
50291
-
50292
- function requireType () {
50293
- if (hasRequiredType) return type;
50294
- hasRequiredType = 1;
50295
-
50296
- /** @type {import('./type')} */
50297
- type = TypeError;
50298
- return type;
50299
- }
50300
-
50301
51010
  var uri;
50302
51011
  var hasRequiredUri;
50303
51012
 
@@ -50310,6 +51019,168 @@ function requireUri () {
50310
51019
  return uri;
50311
51020
  }
50312
51021
 
51022
+ var abs;
51023
+ var hasRequiredAbs;
51024
+
51025
+ function requireAbs () {
51026
+ if (hasRequiredAbs) return abs;
51027
+ hasRequiredAbs = 1;
51028
+
51029
+ /** @type {import('./abs')} */
51030
+ abs = Math.abs;
51031
+ return abs;
51032
+ }
51033
+
51034
+ var floor;
51035
+ var hasRequiredFloor;
51036
+
51037
+ function requireFloor () {
51038
+ if (hasRequiredFloor) return floor;
51039
+ hasRequiredFloor = 1;
51040
+
51041
+ /** @type {import('./floor')} */
51042
+ floor = Math.floor;
51043
+ return floor;
51044
+ }
51045
+
51046
+ var max;
51047
+ var hasRequiredMax;
51048
+
51049
+ function requireMax () {
51050
+ if (hasRequiredMax) return max;
51051
+ hasRequiredMax = 1;
51052
+
51053
+ /** @type {import('./max')} */
51054
+ max = Math.max;
51055
+ return max;
51056
+ }
51057
+
51058
+ var min;
51059
+ var hasRequiredMin;
51060
+
51061
+ function requireMin () {
51062
+ if (hasRequiredMin) return min;
51063
+ hasRequiredMin = 1;
51064
+
51065
+ /** @type {import('./min')} */
51066
+ min = Math.min;
51067
+ return min;
51068
+ }
51069
+
51070
+ var pow;
51071
+ var hasRequiredPow;
51072
+
51073
+ function requirePow () {
51074
+ if (hasRequiredPow) return pow;
51075
+ hasRequiredPow = 1;
51076
+
51077
+ /** @type {import('./pow')} */
51078
+ pow = Math.pow;
51079
+ return pow;
51080
+ }
51081
+
51082
+ var round;
51083
+ var hasRequiredRound;
51084
+
51085
+ function requireRound () {
51086
+ if (hasRequiredRound) return round;
51087
+ hasRequiredRound = 1;
51088
+
51089
+ /** @type {import('./round')} */
51090
+ round = Math.round;
51091
+ return round;
51092
+ }
51093
+
51094
+ var _isNaN;
51095
+ var hasRequired_isNaN;
51096
+
51097
+ function require_isNaN () {
51098
+ if (hasRequired_isNaN) return _isNaN;
51099
+ hasRequired_isNaN = 1;
51100
+
51101
+ /** @type {import('./isNaN')} */
51102
+ _isNaN = Number.isNaN || function isNaN(a) {
51103
+ return a !== a;
51104
+ };
51105
+ return _isNaN;
51106
+ }
51107
+
51108
+ var sign;
51109
+ var hasRequiredSign;
51110
+
51111
+ function requireSign () {
51112
+ if (hasRequiredSign) return sign;
51113
+ hasRequiredSign = 1;
51114
+
51115
+ var $isNaN = require_isNaN();
51116
+
51117
+ /** @type {import('./sign')} */
51118
+ sign = function sign(number) {
51119
+ if ($isNaN(number) || number === 0) {
51120
+ return number;
51121
+ }
51122
+ return number < 0 ? -1 : 1;
51123
+ };
51124
+ return sign;
51125
+ }
51126
+
51127
+ var gOPD;
51128
+ var hasRequiredGOPD;
51129
+
51130
+ function requireGOPD () {
51131
+ if (hasRequiredGOPD) return gOPD;
51132
+ hasRequiredGOPD = 1;
51133
+
51134
+ /** @type {import('./gOPD')} */
51135
+ gOPD = Object.getOwnPropertyDescriptor;
51136
+ return gOPD;
51137
+ }
51138
+
51139
+ var gopd;
51140
+ var hasRequiredGopd;
51141
+
51142
+ function requireGopd () {
51143
+ if (hasRequiredGopd) return gopd;
51144
+ hasRequiredGopd = 1;
51145
+
51146
+ /** @type {import('.')} */
51147
+ var $gOPD = requireGOPD();
51148
+
51149
+ if ($gOPD) {
51150
+ try {
51151
+ $gOPD([], 'length');
51152
+ } catch (e) {
51153
+ // IE 8 has a broken gOPD
51154
+ $gOPD = null;
51155
+ }
51156
+ }
51157
+
51158
+ gopd = $gOPD;
51159
+ return gopd;
51160
+ }
51161
+
51162
+ var esDefineProperty;
51163
+ var hasRequiredEsDefineProperty;
51164
+
51165
+ function requireEsDefineProperty () {
51166
+ if (hasRequiredEsDefineProperty) return esDefineProperty;
51167
+ hasRequiredEsDefineProperty = 1;
51168
+
51169
+ /** @type {import('.')} */
51170
+ var $defineProperty = Object.defineProperty || false;
51171
+ if ($defineProperty) {
51172
+ try {
51173
+ $defineProperty({}, 'a', { value: 1 });
51174
+ } catch (e) {
51175
+ // IE 8 has a broken defineProperty
51176
+ $defineProperty = false;
51177
+ }
51178
+ }
51179
+
51180
+ esDefineProperty = $defineProperty;
51181
+ return esDefineProperty;
51182
+ }
51183
+
50313
51184
  var shams;
50314
51185
  var hasRequiredShams;
50315
51186
 
@@ -50317,11 +51188,13 @@ function requireShams () {
50317
51188
  if (hasRequiredShams) return shams;
50318
51189
  hasRequiredShams = 1;
50319
51190
 
51191
+ /** @type {import('./shams')} */
50320
51192
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
50321
51193
  shams = function hasSymbols() {
50322
51194
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
50323
51195
  if (typeof Symbol.iterator === 'symbol') { return true; }
50324
51196
 
51197
+ /** @type {{ [k in symbol]?: unknown }} */
50325
51198
  var obj = {};
50326
51199
  var sym = Symbol('test');
50327
51200
  var symObj = Object(sym);
@@ -50340,7 +51213,7 @@ function requireShams () {
50340
51213
 
50341
51214
  var symVal = 42;
50342
51215
  obj[sym] = symVal;
50343
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
51216
+ for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
50344
51217
  if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
50345
51218
 
50346
51219
  if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
@@ -50351,7 +51224,8 @@ function requireShams () {
50351
51224
  if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
50352
51225
 
50353
51226
  if (typeof Object.getOwnPropertyDescriptor === 'function') {
50354
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
51227
+ // eslint-disable-next-line no-extra-parens
51228
+ var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
50355
51229
  if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
50356
51230
  }
50357
51231
 
@@ -50370,6 +51244,7 @@ function requireHasSymbols () {
50370
51244
  var origSymbol = typeof Symbol !== 'undefined' && Symbol;
50371
51245
  var hasSymbolSham = requireShams();
50372
51246
 
51247
+ /** @type {import('.')} */
50373
51248
  hasSymbols = function hasNativeSymbols() {
50374
51249
  if (typeof origSymbol !== 'function') { return false; }
50375
51250
  if (typeof Symbol !== 'function') { return false; }
@@ -50381,27 +51256,30 @@ function requireHasSymbols () {
50381
51256
  return hasSymbols;
50382
51257
  }
50383
51258
 
50384
- var hasProto;
50385
- var hasRequiredHasProto;
51259
+ var Reflect_getPrototypeOf;
51260
+ var hasRequiredReflect_getPrototypeOf;
50386
51261
 
50387
- function requireHasProto () {
50388
- if (hasRequiredHasProto) return hasProto;
50389
- hasRequiredHasProto = 1;
51262
+ function requireReflect_getPrototypeOf () {
51263
+ if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
51264
+ hasRequiredReflect_getPrototypeOf = 1;
50390
51265
 
50391
- var test = {
50392
- __proto__: null,
50393
- foo: {}
50394
- };
51266
+ /** @type {import('./Reflect.getPrototypeOf')} */
51267
+ Reflect_getPrototypeOf = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
51268
+ return Reflect_getPrototypeOf;
51269
+ }
50395
51270
 
50396
- var $Object = Object;
51271
+ var Object_getPrototypeOf;
51272
+ var hasRequiredObject_getPrototypeOf;
50397
51273
 
50398
- /** @type {import('.')} */
50399
- hasProto = function hasProto() {
50400
- // @ts-expect-error: TS errors on an inherited property for some reason
50401
- return { __proto__: test }.foo === test.foo
50402
- && !(test instanceof $Object);
50403
- };
50404
- return hasProto;
51274
+ function requireObject_getPrototypeOf () {
51275
+ if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
51276
+ hasRequiredObject_getPrototypeOf = 1;
51277
+
51278
+ var $Object = /*@__PURE__*/ requireEsObjectAtoms();
51279
+
51280
+ /** @type {import('./Object.getPrototypeOf')} */
51281
+ Object_getPrototypeOf = $Object.getPrototypeOf || null;
51282
+ return Object_getPrototypeOf;
50405
51283
  }
50406
51284
 
50407
51285
  var implementation;
@@ -50509,1328 +51387,797 @@ function requireFunctionBind () {
50509
51387
  return functionBind;
50510
51388
  }
50511
51389
 
50512
- var hasown;
50513
- var hasRequiredHasown;
50514
-
50515
- function requireHasown () {
50516
- if (hasRequiredHasown) return hasown;
50517
- hasRequiredHasown = 1;
50518
-
50519
- var call = Function.prototype.call;
50520
- var $hasOwn = Object.prototype.hasOwnProperty;
50521
- var bind = requireFunctionBind();
50522
-
50523
- /** @type {import('.')} */
50524
- hasown = bind.call(call, $hasOwn);
50525
- return hasown;
50526
- }
50527
-
50528
- var getIntrinsic;
50529
- var hasRequiredGetIntrinsic;
50530
-
50531
- function requireGetIntrinsic () {
50532
- if (hasRequiredGetIntrinsic) return getIntrinsic;
50533
- hasRequiredGetIntrinsic = 1;
50534
-
50535
- var undefined$1;
50536
-
50537
- var $Error = /*@__PURE__*/ requireEsErrors();
50538
- var $EvalError = /*@__PURE__*/ require_eval();
50539
- var $RangeError = /*@__PURE__*/ requireRange();
50540
- var $ReferenceError = /*@__PURE__*/ requireRef();
50541
- var $SyntaxError = /*@__PURE__*/ requireSyntax();
50542
- var $TypeError = /*@__PURE__*/ requireType();
50543
- var $URIError = /*@__PURE__*/ requireUri();
50544
-
50545
- var $Function = Function;
50546
-
50547
- // eslint-disable-next-line consistent-return
50548
- var getEvalledConstructor = function (expressionSyntax) {
50549
- try {
50550
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
50551
- } catch (e) {}
50552
- };
50553
-
50554
- var $gOPD = Object.getOwnPropertyDescriptor;
50555
- if ($gOPD) {
50556
- try {
50557
- $gOPD({}, '');
50558
- } catch (e) {
50559
- $gOPD = null; // this is IE 8, which has a broken gOPD
50560
- }
50561
- }
50562
-
50563
- var throwTypeError = function () {
50564
- throw new $TypeError();
50565
- };
50566
- var ThrowTypeError = $gOPD
50567
- ? (function () {
50568
- try {
50569
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
50570
- arguments.callee; // IE 8 does not throw here
50571
- return throwTypeError;
50572
- } catch (calleeThrows) {
50573
- try {
50574
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
50575
- return $gOPD(arguments, 'callee').get;
50576
- } catch (gOPDthrows) {
50577
- return throwTypeError;
50578
- }
50579
- }
50580
- }())
50581
- : throwTypeError;
50582
-
50583
- var hasSymbols = requireHasSymbols()();
50584
- var hasProto = /*@__PURE__*/ requireHasProto()();
50585
-
50586
- var getProto = Object.getPrototypeOf || (
50587
- hasProto
50588
- ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
50589
- : null
50590
- );
50591
-
50592
- var needsEval = {};
50593
-
50594
- var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
50595
-
50596
- var INTRINSICS = {
50597
- __proto__: null,
50598
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
50599
- '%Array%': Array,
50600
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
50601
- '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
50602
- '%AsyncFromSyncIteratorPrototype%': undefined$1,
50603
- '%AsyncFunction%': needsEval,
50604
- '%AsyncGenerator%': needsEval,
50605
- '%AsyncGeneratorFunction%': needsEval,
50606
- '%AsyncIteratorPrototype%': needsEval,
50607
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
50608
- '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
50609
- '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
50610
- '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
50611
- '%Boolean%': Boolean,
50612
- '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
50613
- '%Date%': Date,
50614
- '%decodeURI%': decodeURI,
50615
- '%decodeURIComponent%': decodeURIComponent,
50616
- '%encodeURI%': encodeURI,
50617
- '%encodeURIComponent%': encodeURIComponent,
50618
- '%Error%': $Error,
50619
- '%eval%': eval, // eslint-disable-line no-eval
50620
- '%EvalError%': $EvalError,
50621
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
50622
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
50623
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
50624
- '%Function%': $Function,
50625
- '%GeneratorFunction%': needsEval,
50626
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
50627
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
50628
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
50629
- '%isFinite%': isFinite,
50630
- '%isNaN%': isNaN,
50631
- '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
50632
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
50633
- '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
50634
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
50635
- '%Math%': Math,
50636
- '%Number%': Number,
50637
- '%Object%': Object,
50638
- '%parseFloat%': parseFloat,
50639
- '%parseInt%': parseInt,
50640
- '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
50641
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
50642
- '%RangeError%': $RangeError,
50643
- '%ReferenceError%': $ReferenceError,
50644
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
50645
- '%RegExp%': RegExp,
50646
- '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
50647
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
50648
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
50649
- '%String%': String,
50650
- '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
50651
- '%Symbol%': hasSymbols ? Symbol : undefined$1,
50652
- '%SyntaxError%': $SyntaxError,
50653
- '%ThrowTypeError%': ThrowTypeError,
50654
- '%TypedArray%': TypedArray,
50655
- '%TypeError%': $TypeError,
50656
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
50657
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
50658
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
50659
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
50660
- '%URIError%': $URIError,
50661
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
50662
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
50663
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
50664
- };
50665
-
50666
- if (getProto) {
50667
- try {
50668
- null.error; // eslint-disable-line no-unused-expressions
50669
- } catch (e) {
50670
- // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
50671
- var errorProto = getProto(getProto(e));
50672
- INTRINSICS['%Error.prototype%'] = errorProto;
50673
- }
50674
- }
50675
-
50676
- var doEval = function doEval(name) {
50677
- var value;
50678
- if (name === '%AsyncFunction%') {
50679
- value = getEvalledConstructor('async function () {}');
50680
- } else if (name === '%GeneratorFunction%') {
50681
- value = getEvalledConstructor('function* () {}');
50682
- } else if (name === '%AsyncGeneratorFunction%') {
50683
- value = getEvalledConstructor('async function* () {}');
50684
- } else if (name === '%AsyncGenerator%') {
50685
- var fn = doEval('%AsyncGeneratorFunction%');
50686
- if (fn) {
50687
- value = fn.prototype;
50688
- }
50689
- } else if (name === '%AsyncIteratorPrototype%') {
50690
- var gen = doEval('%AsyncGenerator%');
50691
- if (gen && getProto) {
50692
- value = getProto(gen.prototype);
50693
- }
50694
- }
50695
-
50696
- INTRINSICS[name] = value;
50697
-
50698
- return value;
50699
- };
50700
-
50701
- var LEGACY_ALIASES = {
50702
- __proto__: null,
50703
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
50704
- '%ArrayPrototype%': ['Array', 'prototype'],
50705
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
50706
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
50707
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
50708
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
50709
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
50710
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
50711
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
50712
- '%BooleanPrototype%': ['Boolean', 'prototype'],
50713
- '%DataViewPrototype%': ['DataView', 'prototype'],
50714
- '%DatePrototype%': ['Date', 'prototype'],
50715
- '%ErrorPrototype%': ['Error', 'prototype'],
50716
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
50717
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
50718
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
50719
- '%FunctionPrototype%': ['Function', 'prototype'],
50720
- '%Generator%': ['GeneratorFunction', 'prototype'],
50721
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
50722
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
50723
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
50724
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
50725
- '%JSONParse%': ['JSON', 'parse'],
50726
- '%JSONStringify%': ['JSON', 'stringify'],
50727
- '%MapPrototype%': ['Map', 'prototype'],
50728
- '%NumberPrototype%': ['Number', 'prototype'],
50729
- '%ObjectPrototype%': ['Object', 'prototype'],
50730
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
50731
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
50732
- '%PromisePrototype%': ['Promise', 'prototype'],
50733
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
50734
- '%Promise_all%': ['Promise', 'all'],
50735
- '%Promise_reject%': ['Promise', 'reject'],
50736
- '%Promise_resolve%': ['Promise', 'resolve'],
50737
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
50738
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
50739
- '%RegExpPrototype%': ['RegExp', 'prototype'],
50740
- '%SetPrototype%': ['Set', 'prototype'],
50741
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
50742
- '%StringPrototype%': ['String', 'prototype'],
50743
- '%SymbolPrototype%': ['Symbol', 'prototype'],
50744
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
50745
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
50746
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
50747
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
50748
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
50749
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
50750
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
50751
- '%URIErrorPrototype%': ['URIError', 'prototype'],
50752
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
50753
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
50754
- };
50755
-
50756
- var bind = requireFunctionBind();
50757
- var hasOwn = /*@__PURE__*/ requireHasown();
50758
- var $concat = bind.call(Function.call, Array.prototype.concat);
50759
- var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
50760
- var $replace = bind.call(Function.call, String.prototype.replace);
50761
- var $strSlice = bind.call(Function.call, String.prototype.slice);
50762
- var $exec = bind.call(Function.call, RegExp.prototype.exec);
50763
-
50764
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
50765
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
50766
- var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
50767
- var stringToPath = function stringToPath(string) {
50768
- var first = $strSlice(string, 0, 1);
50769
- var last = $strSlice(string, -1);
50770
- if (first === '%' && last !== '%') {
50771
- throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
50772
- } else if (last === '%' && first !== '%') {
50773
- throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
50774
- }
50775
- var result = [];
50776
- $replace(string, rePropName, function (match, number, quote, subString) {
50777
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
50778
- });
50779
- return result;
50780
- };
50781
- /* end adaptation */
50782
-
50783
- var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
50784
- var intrinsicName = name;
50785
- var alias;
50786
- if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
50787
- alias = LEGACY_ALIASES[intrinsicName];
50788
- intrinsicName = '%' + alias[0] + '%';
50789
- }
50790
-
50791
- if (hasOwn(INTRINSICS, intrinsicName)) {
50792
- var value = INTRINSICS[intrinsicName];
50793
- if (value === needsEval) {
50794
- value = doEval(intrinsicName);
50795
- }
50796
- if (typeof value === 'undefined' && !allowMissing) {
50797
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
50798
- }
50799
-
50800
- return {
50801
- alias: alias,
50802
- name: intrinsicName,
50803
- value: value
50804
- };
50805
- }
50806
-
50807
- throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
50808
- };
50809
-
50810
- getIntrinsic = function GetIntrinsic(name, allowMissing) {
50811
- if (typeof name !== 'string' || name.length === 0) {
50812
- throw new $TypeError('intrinsic name must be a non-empty string');
50813
- }
50814
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
50815
- throw new $TypeError('"allowMissing" argument must be a boolean');
50816
- }
50817
-
50818
- if ($exec(/^%?[^%]*%?$/, name) === null) {
50819
- throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
50820
- }
50821
- var parts = stringToPath(name);
50822
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
50823
-
50824
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
50825
- var intrinsicRealName = intrinsic.name;
50826
- var value = intrinsic.value;
50827
- var skipFurtherCaching = false;
50828
-
50829
- var alias = intrinsic.alias;
50830
- if (alias) {
50831
- intrinsicBaseName = alias[0];
50832
- $spliceApply(parts, $concat([0, 1], alias));
50833
- }
50834
-
50835
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
50836
- var part = parts[i];
50837
- var first = $strSlice(part, 0, 1);
50838
- var last = $strSlice(part, -1);
50839
- if (
50840
- (
50841
- (first === '"' || first === "'" || first === '`')
50842
- || (last === '"' || last === "'" || last === '`')
50843
- )
50844
- && first !== last
50845
- ) {
50846
- throw new $SyntaxError('property names with quotes must have matching quotes');
50847
- }
50848
- if (part === 'constructor' || !isOwn) {
50849
- skipFurtherCaching = true;
50850
- }
50851
-
50852
- intrinsicBaseName += '.' + part;
50853
- intrinsicRealName = '%' + intrinsicBaseName + '%';
50854
-
50855
- if (hasOwn(INTRINSICS, intrinsicRealName)) {
50856
- value = INTRINSICS[intrinsicRealName];
50857
- } else if (value != null) {
50858
- if (!(part in value)) {
50859
- if (!allowMissing) {
50860
- throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
50861
- }
50862
- return void 0;
50863
- }
50864
- if ($gOPD && (i + 1) >= parts.length) {
50865
- var desc = $gOPD(value, part);
50866
- isOwn = !!desc;
50867
-
50868
- // By convention, when a data property is converted to an accessor
50869
- // property to emulate a data property that does not suffer from
50870
- // the override mistake, that accessor's getter is marked with
50871
- // an `originalValue` property. Here, when we detect this, we
50872
- // uphold the illusion by pretending to see that original data
50873
- // property, i.e., returning the value rather than the getter
50874
- // itself.
50875
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
50876
- value = desc.get;
50877
- } else {
50878
- value = value[part];
50879
- }
50880
- } else {
50881
- isOwn = hasOwn(value, part);
50882
- value = value[part];
50883
- }
50884
-
50885
- if (isOwn && !skipFurtherCaching) {
50886
- INTRINSICS[intrinsicRealName] = value;
50887
- }
50888
- }
50889
- }
50890
- return value;
50891
- };
50892
- return getIntrinsic;
50893
- }
50894
-
50895
- var callBind = {exports: {}};
50896
-
50897
- var esDefineProperty;
50898
- var hasRequiredEsDefineProperty;
50899
-
50900
- function requireEsDefineProperty () {
50901
- if (hasRequiredEsDefineProperty) return esDefineProperty;
50902
- hasRequiredEsDefineProperty = 1;
50903
-
50904
- var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic();
51390
+ var functionCall;
51391
+ var hasRequiredFunctionCall;
50905
51392
 
50906
- /** @type {import('.')} */
50907
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;
50908
- if ($defineProperty) {
50909
- try {
50910
- $defineProperty({}, 'a', { value: 1 });
50911
- } catch (e) {
50912
- // IE 8 has a broken defineProperty
50913
- $defineProperty = false;
50914
- }
50915
- }
51393
+ function requireFunctionCall () {
51394
+ if (hasRequiredFunctionCall) return functionCall;
51395
+ hasRequiredFunctionCall = 1;
50916
51396
 
50917
- esDefineProperty = $defineProperty;
50918
- return esDefineProperty;
51397
+ /** @type {import('./functionCall')} */
51398
+ functionCall = Function.prototype.call;
51399
+ return functionCall;
50919
51400
  }
50920
51401
 
50921
- var gopd;
50922
- var hasRequiredGopd;
50923
-
50924
- function requireGopd () {
50925
- if (hasRequiredGopd) return gopd;
50926
- hasRequiredGopd = 1;
50927
-
50928
- var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic();
50929
-
50930
- var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
51402
+ var functionApply;
51403
+ var hasRequiredFunctionApply;
50931
51404
 
50932
- if ($gOPD) {
50933
- try {
50934
- $gOPD([], 'length');
50935
- } catch (e) {
50936
- // IE 8 has a broken gOPD
50937
- $gOPD = null;
50938
- }
50939
- }
51405
+ function requireFunctionApply () {
51406
+ if (hasRequiredFunctionApply) return functionApply;
51407
+ hasRequiredFunctionApply = 1;
50940
51408
 
50941
- gopd = $gOPD;
50942
- return gopd;
51409
+ /** @type {import('./functionApply')} */
51410
+ functionApply = Function.prototype.apply;
51411
+ return functionApply;
50943
51412
  }
50944
51413
 
50945
- var defineDataProperty;
50946
- var hasRequiredDefineDataProperty;
51414
+ var reflectApply;
51415
+ var hasRequiredReflectApply;
50947
51416
 
50948
- function requireDefineDataProperty () {
50949
- if (hasRequiredDefineDataProperty) return defineDataProperty;
50950
- hasRequiredDefineDataProperty = 1;
50951
-
50952
- var $defineProperty = /*@__PURE__*/ requireEsDefineProperty();
51417
+ function requireReflectApply () {
51418
+ if (hasRequiredReflectApply) return reflectApply;
51419
+ hasRequiredReflectApply = 1;
50953
51420
 
50954
- var $SyntaxError = /*@__PURE__*/ requireSyntax();
50955
- var $TypeError = /*@__PURE__*/ requireType();
51421
+ /** @type {import('./reflectApply')} */
51422
+ reflectApply = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
51423
+ return reflectApply;
51424
+ }
50956
51425
 
50957
- var gopd = /*@__PURE__*/ requireGopd();
51426
+ var actualApply;
51427
+ var hasRequiredActualApply;
50958
51428
 
50959
- /** @type {import('.')} */
50960
- defineDataProperty = function defineDataProperty(
50961
- obj,
50962
- property,
50963
- value
50964
- ) {
50965
- if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
50966
- throw new $TypeError('`obj` must be an object or a function`');
50967
- }
50968
- if (typeof property !== 'string' && typeof property !== 'symbol') {
50969
- throw new $TypeError('`property` must be a string or a symbol`');
50970
- }
50971
- if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
50972
- throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
50973
- }
50974
- if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
50975
- throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
50976
- }
50977
- if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
50978
- throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
50979
- }
50980
- if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
50981
- throw new $TypeError('`loose`, if provided, must be a boolean');
50982
- }
51429
+ function requireActualApply () {
51430
+ if (hasRequiredActualApply) return actualApply;
51431
+ hasRequiredActualApply = 1;
50983
51432
 
50984
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
50985
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
50986
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
50987
- var loose = arguments.length > 6 ? arguments[6] : false;
51433
+ var bind = requireFunctionBind();
50988
51434
 
50989
- /* @type {false | TypedPropertyDescriptor<unknown>} */
50990
- var desc = !!gopd && gopd(obj, property);
51435
+ var $apply = requireFunctionApply();
51436
+ var $call = requireFunctionCall();
51437
+ var $reflectApply = requireReflectApply();
50991
51438
 
50992
- if ($defineProperty) {
50993
- $defineProperty(obj, property, {
50994
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
50995
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
50996
- value: value,
50997
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
50998
- });
50999
- } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
51000
- // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
51001
- obj[property] = value; // eslint-disable-line no-param-reassign
51002
- } else {
51003
- throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
51004
- }
51005
- };
51006
- return defineDataProperty;
51439
+ /** @type {import('./actualApply')} */
51440
+ actualApply = $reflectApply || bind.call($call, $apply);
51441
+ return actualApply;
51007
51442
  }
51008
51443
 
51009
- var hasPropertyDescriptors_1;
51010
- var hasRequiredHasPropertyDescriptors;
51444
+ var callBindApplyHelpers;
51445
+ var hasRequiredCallBindApplyHelpers;
51011
51446
 
51012
- function requireHasPropertyDescriptors () {
51013
- if (hasRequiredHasPropertyDescriptors) return hasPropertyDescriptors_1;
51014
- hasRequiredHasPropertyDescriptors = 1;
51447
+ function requireCallBindApplyHelpers () {
51448
+ if (hasRequiredCallBindApplyHelpers) return callBindApplyHelpers;
51449
+ hasRequiredCallBindApplyHelpers = 1;
51015
51450
 
51016
- var $defineProperty = /*@__PURE__*/ requireEsDefineProperty();
51451
+ var bind = requireFunctionBind();
51452
+ var $TypeError = /*@__PURE__*/ requireType();
51017
51453
 
51018
- var hasPropertyDescriptors = function hasPropertyDescriptors() {
51019
- return !!$defineProperty;
51020
- };
51454
+ var $call = requireFunctionCall();
51455
+ var $actualApply = requireActualApply();
51021
51456
 
51022
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
51023
- // node v0.6 has a bug where array lengths can be Set but not Defined
51024
- if (!$defineProperty) {
51025
- return null;
51026
- }
51027
- try {
51028
- return $defineProperty([], 'length', { value: 1 }).length !== 1;
51029
- } catch (e) {
51030
- // In Firefox 4-22, defining length on an array throws an exception.
51031
- return true;
51457
+ /** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
51458
+ callBindApplyHelpers = function callBindBasic(args) {
51459
+ if (args.length < 1 || typeof args[0] !== 'function') {
51460
+ throw new $TypeError('a function is required');
51032
51461
  }
51462
+ return $actualApply(bind, $call, args);
51033
51463
  };
51034
-
51035
- hasPropertyDescriptors_1 = hasPropertyDescriptors;
51036
- return hasPropertyDescriptors_1;
51464
+ return callBindApplyHelpers;
51037
51465
  }
51038
51466
 
51039
- var setFunctionLength;
51040
- var hasRequiredSetFunctionLength;
51467
+ var get;
51468
+ var hasRequiredGet;
51041
51469
 
51042
- function requireSetFunctionLength () {
51043
- if (hasRequiredSetFunctionLength) return setFunctionLength;
51044
- hasRequiredSetFunctionLength = 1;
51470
+ function requireGet () {
51471
+ if (hasRequiredGet) return get;
51472
+ hasRequiredGet = 1;
51045
51473
 
51046
- var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic();
51047
- var define = /*@__PURE__*/ requireDefineDataProperty();
51048
- var hasDescriptors = /*@__PURE__*/ requireHasPropertyDescriptors()();
51474
+ var callBind = requireCallBindApplyHelpers();
51049
51475
  var gOPD = /*@__PURE__*/ requireGopd();
51050
51476
 
51051
- var $TypeError = /*@__PURE__*/ requireType();
51052
- var $floor = GetIntrinsic('%Math.floor%');
51053
-
51054
- /** @type {import('.')} */
51055
- setFunctionLength = function setFunctionLength(fn, length) {
51056
- if (typeof fn !== 'function') {
51057
- throw new $TypeError('`fn` is not a function');
51058
- }
51059
- if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
51060
- throw new $TypeError('`length` must be a positive 32-bit integer');
51477
+ var hasProtoAccessor;
51478
+ try {
51479
+ // eslint-disable-next-line no-extra-parens, no-proto
51480
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
51481
+ } catch (e) {
51482
+ if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
51483
+ throw e;
51061
51484
  }
51485
+ }
51062
51486
 
51063
- var loose = arguments.length > 2 && !!arguments[2];
51064
-
51065
- var functionLengthIsConfigurable = true;
51066
- var functionLengthIsWritable = true;
51067
- if ('length' in fn && gOPD) {
51068
- var desc = gOPD(fn, 'length');
51069
- if (desc && !desc.configurable) {
51070
- functionLengthIsConfigurable = false;
51071
- }
51072
- if (desc && !desc.writable) {
51073
- functionLengthIsWritable = false;
51074
- }
51075
- }
51487
+ // eslint-disable-next-line no-extra-parens
51488
+ var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
51076
51489
 
51077
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
51078
- if (hasDescriptors) {
51079
- define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
51080
- } else {
51081
- define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
51490
+ var $Object = Object;
51491
+ var $getPrototypeOf = $Object.getPrototypeOf;
51492
+
51493
+ /** @type {import('./get')} */
51494
+ get = desc && typeof desc.get === 'function'
51495
+ ? callBind([desc.get])
51496
+ : typeof $getPrototypeOf === 'function'
51497
+ ? /** @type {import('./get')} */ function getDunder(value) {
51498
+ // eslint-disable-next-line eqeqeq
51499
+ return $getPrototypeOf(value == null ? value : $Object(value));
51082
51500
  }
51083
- }
51084
- return fn;
51085
- };
51086
- return setFunctionLength;
51501
+ : false;
51502
+ return get;
51087
51503
  }
51088
51504
 
51089
- var hasRequiredCallBind;
51505
+ var getProto;
51506
+ var hasRequiredGetProto;
51090
51507
 
51091
- function requireCallBind () {
51092
- if (hasRequiredCallBind) return callBind.exports;
51093
- hasRequiredCallBind = 1;
51094
- (function (module) {
51508
+ function requireGetProto () {
51509
+ if (hasRequiredGetProto) return getProto;
51510
+ hasRequiredGetProto = 1;
51095
51511
 
51096
- var bind = requireFunctionBind();
51097
- var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic();
51098
- var setFunctionLength = /*@__PURE__*/ requireSetFunctionLength();
51512
+ var reflectGetProto = requireReflect_getPrototypeOf();
51513
+ var originalGetProto = requireObject_getPrototypeOf();
51099
51514
 
51100
- var $TypeError = /*@__PURE__*/ requireType();
51101
- var $apply = GetIntrinsic('%Function.prototype.apply%');
51102
- var $call = GetIntrinsic('%Function.prototype.call%');
51103
- var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
51515
+ var getDunderProto = /*@__PURE__*/ requireGet();
51104
51516
 
51105
- var $defineProperty = /*@__PURE__*/ requireEsDefineProperty();
51106
- var $max = GetIntrinsic('%Math.max%');
51107
-
51108
- module.exports = function callBind(originalFunction) {
51109
- if (typeof originalFunction !== 'function') {
51110
- throw new $TypeError('a function is required');
51517
+ /** @type {import('.')} */
51518
+ getProto = reflectGetProto
51519
+ ? function getProto(O) {
51520
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
51521
+ return reflectGetProto(O);
51522
+ }
51523
+ : originalGetProto
51524
+ ? function getProto(O) {
51525
+ if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
51526
+ throw new TypeError('getProto: not an object');
51527
+ }
51528
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
51529
+ return originalGetProto(O);
51111
51530
  }
51112
- var func = $reflectApply(bind, $call, arguments);
51113
- return setFunctionLength(
51114
- func,
51115
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
51116
- true
51117
- );
51118
- };
51531
+ : getDunderProto
51532
+ ? function getProto(O) {
51533
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
51534
+ return getDunderProto(O);
51535
+ }
51536
+ : null;
51537
+ return getProto;
51538
+ }
51119
51539
 
51120
- var applyBind = function applyBind() {
51121
- return $reflectApply(bind, $apply, arguments);
51122
- };
51540
+ var hasown;
51541
+ var hasRequiredHasown;
51123
51542
 
51124
- if ($defineProperty) {
51125
- $defineProperty(module.exports, 'apply', { value: applyBind });
51126
- } else {
51127
- module.exports.apply = applyBind;
51128
- }
51129
- } (callBind));
51130
- return callBind.exports;
51131
- }
51543
+ function requireHasown () {
51544
+ if (hasRequiredHasown) return hasown;
51545
+ hasRequiredHasown = 1;
51132
51546
 
51133
- var callBound;
51134
- var hasRequiredCallBound;
51547
+ var call = Function.prototype.call;
51548
+ var $hasOwn = Object.prototype.hasOwnProperty;
51549
+ var bind = requireFunctionBind();
51135
51550
 
51136
- function requireCallBound () {
51137
- if (hasRequiredCallBound) return callBound;
51138
- hasRequiredCallBound = 1;
51551
+ /** @type {import('.')} */
51552
+ hasown = bind.call(call, $hasOwn);
51553
+ return hasown;
51554
+ }
51139
51555
 
51140
- var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic();
51556
+ var getIntrinsic;
51557
+ var hasRequiredGetIntrinsic;
51141
51558
 
51142
- var callBind = requireCallBind();
51559
+ function requireGetIntrinsic () {
51560
+ if (hasRequiredGetIntrinsic) return getIntrinsic;
51561
+ hasRequiredGetIntrinsic = 1;
51143
51562
 
51144
- var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
51563
+ var undefined$1;
51145
51564
 
51146
- callBound = function callBoundIntrinsic(name, allowMissing) {
51147
- var intrinsic = GetIntrinsic(name, !!allowMissing);
51148
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
51149
- return callBind(intrinsic);
51150
- }
51151
- return intrinsic;
51152
- };
51153
- return callBound;
51154
- }
51565
+ var $Object = /*@__PURE__*/ requireEsObjectAtoms();
51155
51566
 
51156
- var util_inspect;
51157
- var hasRequiredUtil_inspect;
51567
+ var $Error = /*@__PURE__*/ requireEsErrors();
51568
+ var $EvalError = /*@__PURE__*/ require_eval();
51569
+ var $RangeError = /*@__PURE__*/ requireRange();
51570
+ var $ReferenceError = /*@__PURE__*/ requireRef();
51571
+ var $SyntaxError = /*@__PURE__*/ requireSyntax();
51572
+ var $TypeError = /*@__PURE__*/ requireType();
51573
+ var $URIError = /*@__PURE__*/ requireUri();
51158
51574
 
51159
- function requireUtil_inspect () {
51160
- if (hasRequiredUtil_inspect) return util_inspect;
51161
- hasRequiredUtil_inspect = 1;
51162
- util_inspect = require$$1$1.inspect;
51163
- return util_inspect;
51164
- }
51575
+ var abs = /*@__PURE__*/ requireAbs();
51576
+ var floor = /*@__PURE__*/ requireFloor();
51577
+ var max = /*@__PURE__*/ requireMax();
51578
+ var min = /*@__PURE__*/ requireMin();
51579
+ var pow = /*@__PURE__*/ requirePow();
51580
+ var round = /*@__PURE__*/ requireRound();
51581
+ var sign = /*@__PURE__*/ requireSign();
51165
51582
 
51166
- var objectInspect;
51167
- var hasRequiredObjectInspect;
51583
+ var $Function = Function;
51168
51584
 
51169
- function requireObjectInspect () {
51170
- if (hasRequiredObjectInspect) return objectInspect;
51171
- hasRequiredObjectInspect = 1;
51172
- var hasMap = typeof Map === 'function' && Map.prototype;
51173
- var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
51174
- var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
51175
- var mapForEach = hasMap && Map.prototype.forEach;
51176
- var hasSet = typeof Set === 'function' && Set.prototype;
51177
- var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
51178
- var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
51179
- var setForEach = hasSet && Set.prototype.forEach;
51180
- var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
51181
- var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
51182
- var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
51183
- var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
51184
- var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
51185
- var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
51186
- var booleanValueOf = Boolean.prototype.valueOf;
51187
- var objectToString = Object.prototype.toString;
51188
- var functionToString = Function.prototype.toString;
51189
- var $match = String.prototype.match;
51190
- var $slice = String.prototype.slice;
51191
- var $replace = String.prototype.replace;
51192
- var $toUpperCase = String.prototype.toUpperCase;
51193
- var $toLowerCase = String.prototype.toLowerCase;
51194
- var $test = RegExp.prototype.test;
51195
- var $concat = Array.prototype.concat;
51196
- var $join = Array.prototype.join;
51197
- var $arrSlice = Array.prototype.slice;
51198
- var $floor = Math.floor;
51199
- var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
51200
- var gOPS = Object.getOwnPropertySymbols;
51201
- var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
51202
- var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
51203
- // ie, `has-tostringtag/shams
51204
- var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
51205
- ? Symbol.toStringTag
51206
- : null;
51207
- var isEnumerable = Object.prototype.propertyIsEnumerable;
51585
+ // eslint-disable-next-line consistent-return
51586
+ var getEvalledConstructor = function (expressionSyntax) {
51587
+ try {
51588
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
51589
+ } catch (e) {}
51590
+ };
51208
51591
 
51209
- var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
51210
- [].__proto__ === Array.prototype // eslint-disable-line no-proto
51211
- ? function (O) {
51212
- return O.__proto__; // eslint-disable-line no-proto
51213
- }
51214
- : null
51215
- );
51592
+ var $gOPD = /*@__PURE__*/ requireGopd();
51593
+ var $defineProperty = /*@__PURE__*/ requireEsDefineProperty();
51216
51594
 
51217
- function addNumericSeparator(num, str) {
51218
- if (
51219
- num === Infinity
51220
- || num === -Infinity
51221
- || num !== num
51222
- || (num && num > -1e3 && num < 1000)
51223
- || $test.call(/e/, str)
51224
- ) {
51225
- return str;
51226
- }
51227
- var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
51228
- if (typeof num === 'number') {
51229
- var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
51230
- if (int !== num) {
51231
- var intStr = String(int);
51232
- var dec = $slice.call(str, intStr.length + 1);
51233
- return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
51234
- }
51235
- }
51236
- return $replace.call(str, sepRegex, '$&_');
51237
- }
51595
+ var throwTypeError = function () {
51596
+ throw new $TypeError();
51597
+ };
51598
+ var ThrowTypeError = $gOPD
51599
+ ? (function () {
51600
+ try {
51601
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
51602
+ arguments.callee; // IE 8 does not throw here
51603
+ return throwTypeError;
51604
+ } catch (calleeThrows) {
51605
+ try {
51606
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
51607
+ return $gOPD(arguments, 'callee').get;
51608
+ } catch (gOPDthrows) {
51609
+ return throwTypeError;
51610
+ }
51611
+ }
51612
+ }())
51613
+ : throwTypeError;
51238
51614
 
51239
- var utilInspect = requireUtil_inspect();
51240
- var inspectCustom = utilInspect.custom;
51241
- var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
51615
+ var hasSymbols = requireHasSymbols()();
51242
51616
 
51243
- objectInspect = function inspect_(obj, options, depth, seen) {
51244
- var opts = options || {};
51617
+ var getProto = requireGetProto();
51618
+ var $ObjectGPO = requireObject_getPrototypeOf();
51619
+ var $ReflectGPO = requireReflect_getPrototypeOf();
51245
51620
 
51246
- if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
51247
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
51248
- }
51249
- if (
51250
- has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
51251
- ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
51252
- : opts.maxStringLength !== null
51253
- )
51254
- ) {
51255
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
51256
- }
51257
- var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
51258
- if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
51259
- throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
51260
- }
51621
+ var $apply = requireFunctionApply();
51622
+ var $call = requireFunctionCall();
51261
51623
 
51262
- if (
51263
- has(opts, 'indent')
51264
- && opts.indent !== null
51265
- && opts.indent !== '\t'
51266
- && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
51267
- ) {
51268
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
51269
- }
51270
- if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
51271
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
51272
- }
51273
- var numericSeparator = opts.numericSeparator;
51624
+ var needsEval = {};
51274
51625
 
51275
- if (typeof obj === 'undefined') {
51276
- return 'undefined';
51277
- }
51278
- if (obj === null) {
51279
- return 'null';
51280
- }
51281
- if (typeof obj === 'boolean') {
51282
- return obj ? 'true' : 'false';
51283
- }
51626
+ var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
51284
51627
 
51285
- if (typeof obj === 'string') {
51286
- return inspectString(obj, opts);
51287
- }
51288
- if (typeof obj === 'number') {
51289
- if (obj === 0) {
51290
- return Infinity / obj > 0 ? '0' : '-0';
51291
- }
51292
- var str = String(obj);
51293
- return numericSeparator ? addNumericSeparator(obj, str) : str;
51294
- }
51295
- if (typeof obj === 'bigint') {
51296
- var bigIntStr = String(obj) + 'n';
51297
- return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
51298
- }
51628
+ var INTRINSICS = {
51629
+ __proto__: null,
51630
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
51631
+ '%Array%': Array,
51632
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
51633
+ '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
51634
+ '%AsyncFromSyncIteratorPrototype%': undefined$1,
51635
+ '%AsyncFunction%': needsEval,
51636
+ '%AsyncGenerator%': needsEval,
51637
+ '%AsyncGeneratorFunction%': needsEval,
51638
+ '%AsyncIteratorPrototype%': needsEval,
51639
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
51640
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
51641
+ '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
51642
+ '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
51643
+ '%Boolean%': Boolean,
51644
+ '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
51645
+ '%Date%': Date,
51646
+ '%decodeURI%': decodeURI,
51647
+ '%decodeURIComponent%': decodeURIComponent,
51648
+ '%encodeURI%': encodeURI,
51649
+ '%encodeURIComponent%': encodeURIComponent,
51650
+ '%Error%': $Error,
51651
+ '%eval%': eval, // eslint-disable-line no-eval
51652
+ '%EvalError%': $EvalError,
51653
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
51654
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
51655
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
51656
+ '%Function%': $Function,
51657
+ '%GeneratorFunction%': needsEval,
51658
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
51659
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
51660
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
51661
+ '%isFinite%': isFinite,
51662
+ '%isNaN%': isNaN,
51663
+ '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
51664
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
51665
+ '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
51666
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
51667
+ '%Math%': Math,
51668
+ '%Number%': Number,
51669
+ '%Object%': $Object,
51670
+ '%Object.getOwnPropertyDescriptor%': $gOPD,
51671
+ '%parseFloat%': parseFloat,
51672
+ '%parseInt%': parseInt,
51673
+ '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
51674
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
51675
+ '%RangeError%': $RangeError,
51676
+ '%ReferenceError%': $ReferenceError,
51677
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
51678
+ '%RegExp%': RegExp,
51679
+ '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
51680
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
51681
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
51682
+ '%String%': String,
51683
+ '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
51684
+ '%Symbol%': hasSymbols ? Symbol : undefined$1,
51685
+ '%SyntaxError%': $SyntaxError,
51686
+ '%ThrowTypeError%': ThrowTypeError,
51687
+ '%TypedArray%': TypedArray,
51688
+ '%TypeError%': $TypeError,
51689
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
51690
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
51691
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
51692
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
51693
+ '%URIError%': $URIError,
51694
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
51695
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
51696
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
51697
+
51698
+ '%Function.prototype.call%': $call,
51699
+ '%Function.prototype.apply%': $apply,
51700
+ '%Object.defineProperty%': $defineProperty,
51701
+ '%Object.getPrototypeOf%': $ObjectGPO,
51702
+ '%Math.abs%': abs,
51703
+ '%Math.floor%': floor,
51704
+ '%Math.max%': max,
51705
+ '%Math.min%': min,
51706
+ '%Math.pow%': pow,
51707
+ '%Math.round%': round,
51708
+ '%Math.sign%': sign,
51709
+ '%Reflect.getPrototypeOf%': $ReflectGPO
51710
+ };
51299
51711
 
51300
- var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
51301
- if (typeof depth === 'undefined') { depth = 0; }
51302
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
51303
- return isArray(obj) ? '[Array]' : '[Object]';
51304
- }
51712
+ if (getProto) {
51713
+ try {
51714
+ null.error; // eslint-disable-line no-unused-expressions
51715
+ } catch (e) {
51716
+ // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
51717
+ var errorProto = getProto(getProto(e));
51718
+ INTRINSICS['%Error.prototype%'] = errorProto;
51719
+ }
51720
+ }
51305
51721
 
51306
- var indent = getIndent(opts, depth);
51722
+ var doEval = function doEval(name) {
51723
+ var value;
51724
+ if (name === '%AsyncFunction%') {
51725
+ value = getEvalledConstructor('async function () {}');
51726
+ } else if (name === '%GeneratorFunction%') {
51727
+ value = getEvalledConstructor('function* () {}');
51728
+ } else if (name === '%AsyncGeneratorFunction%') {
51729
+ value = getEvalledConstructor('async function* () {}');
51730
+ } else if (name === '%AsyncGenerator%') {
51731
+ var fn = doEval('%AsyncGeneratorFunction%');
51732
+ if (fn) {
51733
+ value = fn.prototype;
51734
+ }
51735
+ } else if (name === '%AsyncIteratorPrototype%') {
51736
+ var gen = doEval('%AsyncGenerator%');
51737
+ if (gen && getProto) {
51738
+ value = getProto(gen.prototype);
51739
+ }
51740
+ }
51307
51741
 
51308
- if (typeof seen === 'undefined') {
51309
- seen = [];
51310
- } else if (indexOf(seen, obj) >= 0) {
51311
- return '[Circular]';
51312
- }
51742
+ INTRINSICS[name] = value;
51313
51743
 
51314
- function inspect(value, from, noIndent) {
51315
- if (from) {
51316
- seen = $arrSlice.call(seen);
51317
- seen.push(from);
51318
- }
51319
- if (noIndent) {
51320
- var newOpts = {
51321
- depth: opts.depth
51322
- };
51323
- if (has(opts, 'quoteStyle')) {
51324
- newOpts.quoteStyle = opts.quoteStyle;
51325
- }
51326
- return inspect_(value, newOpts, depth + 1, seen);
51327
- }
51328
- return inspect_(value, opts, depth + 1, seen);
51329
- }
51744
+ return value;
51745
+ };
51330
51746
 
51331
- if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
51332
- var name = nameOf(obj);
51333
- var keys = arrObjKeys(obj, inspect);
51334
- return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
51335
- }
51336
- if (isSymbol(obj)) {
51337
- var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
51338
- return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
51339
- }
51340
- if (isElement(obj)) {
51341
- var s = '<' + $toLowerCase.call(String(obj.nodeName));
51342
- var attrs = obj.attributes || [];
51343
- for (var i = 0; i < attrs.length; i++) {
51344
- s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
51345
- }
51346
- s += '>';
51347
- if (obj.childNodes && obj.childNodes.length) { s += '...'; }
51348
- s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
51349
- return s;
51350
- }
51351
- if (isArray(obj)) {
51352
- if (obj.length === 0) { return '[]'; }
51353
- var xs = arrObjKeys(obj, inspect);
51354
- if (indent && !singleLineValues(xs)) {
51355
- return '[' + indentedJoin(xs, indent) + ']';
51356
- }
51357
- return '[ ' + $join.call(xs, ', ') + ' ]';
51358
- }
51359
- if (isError(obj)) {
51360
- var parts = arrObjKeys(obj, inspect);
51361
- if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
51362
- return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
51363
- }
51364
- if (parts.length === 0) { return '[' + String(obj) + ']'; }
51365
- return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
51366
- }
51367
- if (typeof obj === 'object' && customInspect) {
51368
- if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
51369
- return utilInspect(obj, { depth: maxDepth - depth });
51370
- } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
51371
- return obj.inspect();
51372
- }
51373
- }
51374
- if (isMap(obj)) {
51375
- var mapParts = [];
51376
- if (mapForEach) {
51377
- mapForEach.call(obj, function (value, key) {
51378
- mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
51379
- });
51380
- }
51381
- return collectionOf('Map', mapSize.call(obj), mapParts, indent);
51382
- }
51383
- if (isSet(obj)) {
51384
- var setParts = [];
51385
- if (setForEach) {
51386
- setForEach.call(obj, function (value) {
51387
- setParts.push(inspect(value, obj));
51388
- });
51389
- }
51390
- return collectionOf('Set', setSize.call(obj), setParts, indent);
51391
- }
51392
- if (isWeakMap(obj)) {
51393
- return weakCollectionOf('WeakMap');
51394
- }
51395
- if (isWeakSet(obj)) {
51396
- return weakCollectionOf('WeakSet');
51397
- }
51398
- if (isWeakRef(obj)) {
51399
- return weakCollectionOf('WeakRef');
51400
- }
51401
- if (isNumber(obj)) {
51402
- return markBoxed(inspect(Number(obj)));
51403
- }
51404
- if (isBigInt(obj)) {
51405
- return markBoxed(inspect(bigIntValueOf.call(obj)));
51406
- }
51407
- if (isBoolean(obj)) {
51408
- return markBoxed(booleanValueOf.call(obj));
51409
- }
51410
- if (isString(obj)) {
51411
- return markBoxed(inspect(String(obj)));
51412
- }
51413
- // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
51414
- /* eslint-env browser */
51415
- if (typeof window !== 'undefined' && obj === window) {
51416
- return '{ [object Window] }';
51417
- }
51418
- if (
51419
- (typeof globalThis !== 'undefined' && obj === globalThis)
51420
- || (typeof commonjsGlobal !== 'undefined' && obj === commonjsGlobal)
51421
- ) {
51422
- return '{ [object globalThis] }';
51423
- }
51424
- if (!isDate(obj) && !isRegExp(obj)) {
51425
- var ys = arrObjKeys(obj, inspect);
51426
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
51427
- var protoTag = obj instanceof Object ? '' : 'null prototype';
51428
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
51429
- var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
51430
- var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
51431
- if (ys.length === 0) { return tag + '{}'; }
51432
- if (indent) {
51433
- return tag + '{' + indentedJoin(ys, indent) + '}';
51434
- }
51435
- return tag + '{ ' + $join.call(ys, ', ') + ' }';
51436
- }
51437
- return String(obj);
51747
+ var LEGACY_ALIASES = {
51748
+ __proto__: null,
51749
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
51750
+ '%ArrayPrototype%': ['Array', 'prototype'],
51751
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
51752
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
51753
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
51754
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
51755
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
51756
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
51757
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
51758
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
51759
+ '%DataViewPrototype%': ['DataView', 'prototype'],
51760
+ '%DatePrototype%': ['Date', 'prototype'],
51761
+ '%ErrorPrototype%': ['Error', 'prototype'],
51762
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
51763
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
51764
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
51765
+ '%FunctionPrototype%': ['Function', 'prototype'],
51766
+ '%Generator%': ['GeneratorFunction', 'prototype'],
51767
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
51768
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
51769
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
51770
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
51771
+ '%JSONParse%': ['JSON', 'parse'],
51772
+ '%JSONStringify%': ['JSON', 'stringify'],
51773
+ '%MapPrototype%': ['Map', 'prototype'],
51774
+ '%NumberPrototype%': ['Number', 'prototype'],
51775
+ '%ObjectPrototype%': ['Object', 'prototype'],
51776
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
51777
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
51778
+ '%PromisePrototype%': ['Promise', 'prototype'],
51779
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
51780
+ '%Promise_all%': ['Promise', 'all'],
51781
+ '%Promise_reject%': ['Promise', 'reject'],
51782
+ '%Promise_resolve%': ['Promise', 'resolve'],
51783
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
51784
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
51785
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
51786
+ '%SetPrototype%': ['Set', 'prototype'],
51787
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
51788
+ '%StringPrototype%': ['String', 'prototype'],
51789
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
51790
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
51791
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
51792
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
51793
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
51794
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
51795
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
51796
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
51797
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
51798
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
51799
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
51438
51800
  };
51439
51801
 
51440
- function wrapQuotes(s, defaultStyle, opts) {
51441
- var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
51442
- return quoteChar + s + quoteChar;
51443
- }
51802
+ var bind = requireFunctionBind();
51803
+ var hasOwn = /*@__PURE__*/ requireHasown();
51804
+ var $concat = bind.call($call, Array.prototype.concat);
51805
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
51806
+ var $replace = bind.call($call, String.prototype.replace);
51807
+ var $strSlice = bind.call($call, String.prototype.slice);
51808
+ var $exec = bind.call($call, RegExp.prototype.exec);
51444
51809
 
51445
- function quote(s) {
51446
- return $replace.call(String(s), /"/g, '&quot;');
51447
- }
51810
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
51811
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
51812
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
51813
+ var stringToPath = function stringToPath(string) {
51814
+ var first = $strSlice(string, 0, 1);
51815
+ var last = $strSlice(string, -1);
51816
+ if (first === '%' && last !== '%') {
51817
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
51818
+ } else if (last === '%' && first !== '%') {
51819
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
51820
+ }
51821
+ var result = [];
51822
+ $replace(string, rePropName, function (match, number, quote, subString) {
51823
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
51824
+ });
51825
+ return result;
51826
+ };
51827
+ /* end adaptation */
51448
51828
 
51449
- function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
51450
- function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
51451
- function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
51452
- function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
51453
- function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
51454
- function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
51455
- function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
51829
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
51830
+ var intrinsicName = name;
51831
+ var alias;
51832
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
51833
+ alias = LEGACY_ALIASES[intrinsicName];
51834
+ intrinsicName = '%' + alias[0] + '%';
51835
+ }
51456
51836
 
51457
- // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
51458
- function isSymbol(obj) {
51459
- if (hasShammedSymbols) {
51460
- return obj && typeof obj === 'object' && obj instanceof Symbol;
51461
- }
51462
- if (typeof obj === 'symbol') {
51463
- return true;
51464
- }
51465
- if (!obj || typeof obj !== 'object' || !symToString) {
51466
- return false;
51467
- }
51468
- try {
51469
- symToString.call(obj);
51470
- return true;
51471
- } catch (e) {}
51472
- return false;
51473
- }
51837
+ if (hasOwn(INTRINSICS, intrinsicName)) {
51838
+ var value = INTRINSICS[intrinsicName];
51839
+ if (value === needsEval) {
51840
+ value = doEval(intrinsicName);
51841
+ }
51842
+ if (typeof value === 'undefined' && !allowMissing) {
51843
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
51844
+ }
51474
51845
 
51475
- function isBigInt(obj) {
51476
- if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
51477
- return false;
51478
- }
51479
- try {
51480
- bigIntValueOf.call(obj);
51481
- return true;
51482
- } catch (e) {}
51483
- return false;
51484
- }
51846
+ return {
51847
+ alias: alias,
51848
+ name: intrinsicName,
51849
+ value: value
51850
+ };
51851
+ }
51485
51852
 
51486
- var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
51487
- function has(obj, key) {
51488
- return hasOwn.call(obj, key);
51489
- }
51853
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
51854
+ };
51490
51855
 
51491
- function toStr(obj) {
51492
- return objectToString.call(obj);
51493
- }
51856
+ getIntrinsic = function GetIntrinsic(name, allowMissing) {
51857
+ if (typeof name !== 'string' || name.length === 0) {
51858
+ throw new $TypeError('intrinsic name must be a non-empty string');
51859
+ }
51860
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
51861
+ throw new $TypeError('"allowMissing" argument must be a boolean');
51862
+ }
51494
51863
 
51495
- function nameOf(f) {
51496
- if (f.name) { return f.name; }
51497
- var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
51498
- if (m) { return m[1]; }
51499
- return null;
51500
- }
51864
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
51865
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
51866
+ }
51867
+ var parts = stringToPath(name);
51868
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
51501
51869
 
51502
- function indexOf(xs, x) {
51503
- if (xs.indexOf) { return xs.indexOf(x); }
51504
- for (var i = 0, l = xs.length; i < l; i++) {
51505
- if (xs[i] === x) { return i; }
51506
- }
51507
- return -1;
51508
- }
51870
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
51871
+ var intrinsicRealName = intrinsic.name;
51872
+ var value = intrinsic.value;
51873
+ var skipFurtherCaching = false;
51509
51874
 
51510
- function isMap(x) {
51511
- if (!mapSize || !x || typeof x !== 'object') {
51512
- return false;
51513
- }
51514
- try {
51515
- mapSize.call(x);
51516
- try {
51517
- setSize.call(x);
51518
- } catch (s) {
51519
- return true;
51520
- }
51521
- return x instanceof Map; // core-js workaround, pre-v2.5.0
51522
- } catch (e) {}
51523
- return false;
51524
- }
51875
+ var alias = intrinsic.alias;
51876
+ if (alias) {
51877
+ intrinsicBaseName = alias[0];
51878
+ $spliceApply(parts, $concat([0, 1], alias));
51879
+ }
51525
51880
 
51526
- function isWeakMap(x) {
51527
- if (!weakMapHas || !x || typeof x !== 'object') {
51528
- return false;
51529
- }
51530
- try {
51531
- weakMapHas.call(x, weakMapHas);
51532
- try {
51533
- weakSetHas.call(x, weakSetHas);
51534
- } catch (s) {
51535
- return true;
51536
- }
51537
- return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
51538
- } catch (e) {}
51539
- return false;
51540
- }
51881
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
51882
+ var part = parts[i];
51883
+ var first = $strSlice(part, 0, 1);
51884
+ var last = $strSlice(part, -1);
51885
+ if (
51886
+ (
51887
+ (first === '"' || first === "'" || first === '`')
51888
+ || (last === '"' || last === "'" || last === '`')
51889
+ )
51890
+ && first !== last
51891
+ ) {
51892
+ throw new $SyntaxError('property names with quotes must have matching quotes');
51893
+ }
51894
+ if (part === 'constructor' || !isOwn) {
51895
+ skipFurtherCaching = true;
51896
+ }
51541
51897
 
51542
- function isWeakRef(x) {
51543
- if (!weakRefDeref || !x || typeof x !== 'object') {
51544
- return false;
51545
- }
51546
- try {
51547
- weakRefDeref.call(x);
51548
- return true;
51549
- } catch (e) {}
51550
- return false;
51551
- }
51898
+ intrinsicBaseName += '.' + part;
51899
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
51552
51900
 
51553
- function isSet(x) {
51554
- if (!setSize || !x || typeof x !== 'object') {
51555
- return false;
51556
- }
51557
- try {
51558
- setSize.call(x);
51559
- try {
51560
- mapSize.call(x);
51561
- } catch (m) {
51562
- return true;
51563
- }
51564
- return x instanceof Set; // core-js workaround, pre-v2.5.0
51565
- } catch (e) {}
51566
- return false;
51567
- }
51901
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
51902
+ value = INTRINSICS[intrinsicRealName];
51903
+ } else if (value != null) {
51904
+ if (!(part in value)) {
51905
+ if (!allowMissing) {
51906
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
51907
+ }
51908
+ return void 0;
51909
+ }
51910
+ if ($gOPD && (i + 1) >= parts.length) {
51911
+ var desc = $gOPD(value, part);
51912
+ isOwn = !!desc;
51568
51913
 
51569
- function isWeakSet(x) {
51570
- if (!weakSetHas || !x || typeof x !== 'object') {
51571
- return false;
51572
- }
51573
- try {
51574
- weakSetHas.call(x, weakSetHas);
51575
- try {
51576
- weakMapHas.call(x, weakMapHas);
51577
- } catch (s) {
51578
- return true;
51579
- }
51580
- return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
51581
- } catch (e) {}
51582
- return false;
51583
- }
51914
+ // By convention, when a data property is converted to an accessor
51915
+ // property to emulate a data property that does not suffer from
51916
+ // the override mistake, that accessor's getter is marked with
51917
+ // an `originalValue` property. Here, when we detect this, we
51918
+ // uphold the illusion by pretending to see that original data
51919
+ // property, i.e., returning the value rather than the getter
51920
+ // itself.
51921
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
51922
+ value = desc.get;
51923
+ } else {
51924
+ value = value[part];
51925
+ }
51926
+ } else {
51927
+ isOwn = hasOwn(value, part);
51928
+ value = value[part];
51929
+ }
51584
51930
 
51585
- function isElement(x) {
51586
- if (!x || typeof x !== 'object') { return false; }
51587
- if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
51588
- return true;
51589
- }
51590
- return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
51591
- }
51931
+ if (isOwn && !skipFurtherCaching) {
51932
+ INTRINSICS[intrinsicRealName] = value;
51933
+ }
51934
+ }
51935
+ }
51936
+ return value;
51937
+ };
51938
+ return getIntrinsic;
51939
+ }
51592
51940
 
51593
- function inspectString(str, opts) {
51594
- if (str.length > opts.maxStringLength) {
51595
- var remaining = str.length - opts.maxStringLength;
51596
- var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
51597
- return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
51598
- }
51599
- // eslint-disable-next-line no-control-regex
51600
- var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
51601
- return wrapQuotes(s, 'single', opts);
51602
- }
51941
+ var callBound;
51942
+ var hasRequiredCallBound;
51603
51943
 
51604
- function lowbyte(c) {
51605
- var n = c.charCodeAt(0);
51606
- var x = {
51607
- 8: 'b',
51608
- 9: 't',
51609
- 10: 'n',
51610
- 12: 'f',
51611
- 13: 'r'
51612
- }[n];
51613
- if (x) { return '\\' + x; }
51614
- return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
51615
- }
51944
+ function requireCallBound () {
51945
+ if (hasRequiredCallBound) return callBound;
51946
+ hasRequiredCallBound = 1;
51616
51947
 
51617
- function markBoxed(str) {
51618
- return 'Object(' + str + ')';
51619
- }
51948
+ var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic();
51620
51949
 
51621
- function weakCollectionOf(type) {
51622
- return type + ' { ? }';
51623
- }
51950
+ var callBindBasic = requireCallBindApplyHelpers();
51624
51951
 
51625
- function collectionOf(type, size, entries, indent) {
51626
- var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
51627
- return type + ' (' + size + ') {' + joinedEntries + '}';
51628
- }
51952
+ /** @type {(thisArg: string, searchString: string, position?: number) => number} */
51953
+ var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
51629
51954
 
51630
- function singleLineValues(xs) {
51631
- for (var i = 0; i < xs.length; i++) {
51632
- if (indexOf(xs[i], '\n') >= 0) {
51633
- return false;
51634
- }
51635
- }
51636
- return true;
51637
- }
51955
+ /** @type {import('.')} */
51956
+ callBound = function callBoundIntrinsic(name, allowMissing) {
51957
+ // eslint-disable-next-line no-extra-parens
51958
+ var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic(name, !!allowMissing));
51959
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
51960
+ return callBindBasic([intrinsic]);
51961
+ }
51962
+ return intrinsic;
51963
+ };
51964
+ return callBound;
51965
+ }
51638
51966
 
51639
- function getIndent(opts, depth) {
51640
- var baseIndent;
51641
- if (opts.indent === '\t') {
51642
- baseIndent = '\t';
51643
- } else if (typeof opts.indent === 'number' && opts.indent > 0) {
51644
- baseIndent = $join.call(Array(opts.indent + 1), ' ');
51645
- } else {
51646
- return null;
51647
- }
51648
- return {
51649
- base: baseIndent,
51650
- prev: $join.call(Array(depth + 1), baseIndent)
51651
- };
51652
- }
51967
+ var sideChannelMap;
51968
+ var hasRequiredSideChannelMap;
51653
51969
 
51654
- function indentedJoin(xs, indent) {
51655
- if (xs.length === 0) { return ''; }
51656
- var lineJoiner = '\n' + indent.prev + indent.base;
51657
- return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
51658
- }
51970
+ function requireSideChannelMap () {
51971
+ if (hasRequiredSideChannelMap) return sideChannelMap;
51972
+ hasRequiredSideChannelMap = 1;
51659
51973
 
51660
- function arrObjKeys(obj, inspect) {
51661
- var isArr = isArray(obj);
51662
- var xs = [];
51663
- if (isArr) {
51664
- xs.length = obj.length;
51665
- for (var i = 0; i < obj.length; i++) {
51666
- xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
51667
- }
51668
- }
51669
- var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
51670
- var symMap;
51671
- if (hasShammedSymbols) {
51672
- symMap = {};
51673
- for (var k = 0; k < syms.length; k++) {
51674
- symMap['$' + syms[k]] = syms[k];
51675
- }
51676
- }
51974
+ var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic();
51975
+ var callBound = /*@__PURE__*/ requireCallBound();
51976
+ var inspect = /*@__PURE__*/ requireObjectInspect();
51677
51977
 
51678
- for (var key in obj) { // eslint-disable-line no-restricted-syntax
51679
- if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
51680
- if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
51681
- if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
51682
- // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
51683
- continue; // eslint-disable-line no-restricted-syntax, no-continue
51684
- } else if ($test.call(/[^\w$]/, key)) {
51685
- xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
51686
- } else {
51687
- xs.push(key + ': ' + inspect(obj[key], obj));
51688
- }
51689
- }
51690
- if (typeof gOPS === 'function') {
51691
- for (var j = 0; j < syms.length; j++) {
51692
- if (isEnumerable.call(obj, syms[j])) {
51693
- xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
51694
- }
51695
- }
51696
- }
51697
- return xs;
51698
- }
51699
- return objectInspect;
51978
+ var $TypeError = /*@__PURE__*/ requireType();
51979
+ var $Map = GetIntrinsic('%Map%', true);
51980
+
51981
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
51982
+ var $mapGet = callBound('Map.prototype.get', true);
51983
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
51984
+ var $mapSet = callBound('Map.prototype.set', true);
51985
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
51986
+ var $mapHas = callBound('Map.prototype.has', true);
51987
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
51988
+ var $mapDelete = callBound('Map.prototype.delete', true);
51989
+ /** @type {<K, V>(thisArg: Map<K, V>) => number} */
51990
+ var $mapSize = callBound('Map.prototype.size', true);
51991
+
51992
+ /** @type {import('.')} */
51993
+ sideChannelMap = !!$Map && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
51994
+ /** @typedef {ReturnType<typeof getSideChannelMap>} Channel */
51995
+ /** @typedef {Parameters<Channel['get']>[0]} K */
51996
+ /** @typedef {Parameters<Channel['set']>[1]} V */
51997
+
51998
+ /** @type {Map<K, V> | undefined} */ var $m;
51999
+
52000
+ /** @type {Channel} */
52001
+ var channel = {
52002
+ assert: function (key) {
52003
+ if (!channel.has(key)) {
52004
+ throw new $TypeError('Side channel does not contain ' + inspect(key));
52005
+ }
52006
+ },
52007
+ 'delete': function (key) {
52008
+ if ($m) {
52009
+ var result = $mapDelete($m, key);
52010
+ if ($mapSize($m) === 0) {
52011
+ $m = void 0;
52012
+ }
52013
+ return result;
52014
+ }
52015
+ return false;
52016
+ },
52017
+ get: function (key) { // eslint-disable-line consistent-return
52018
+ if ($m) {
52019
+ return $mapGet($m, key);
52020
+ }
52021
+ },
52022
+ has: function (key) {
52023
+ if ($m) {
52024
+ return $mapHas($m, key);
52025
+ }
52026
+ return false;
52027
+ },
52028
+ set: function (key, value) {
52029
+ if (!$m) {
52030
+ // @ts-expect-error TS can't handle narrowing a variable inside a closure
52031
+ $m = new $Map();
52032
+ }
52033
+ $mapSet($m, key, value);
52034
+ }
52035
+ };
52036
+
52037
+ // @ts-expect-error TODO: figure out why TS is erroring here
52038
+ return channel;
52039
+ };
52040
+ return sideChannelMap;
51700
52041
  }
51701
52042
 
51702
- var sideChannel;
51703
- var hasRequiredSideChannel;
52043
+ var sideChannelWeakmap;
52044
+ var hasRequiredSideChannelWeakmap;
51704
52045
 
51705
- function requireSideChannel () {
51706
- if (hasRequiredSideChannel) return sideChannel;
51707
- hasRequiredSideChannel = 1;
52046
+ function requireSideChannelWeakmap () {
52047
+ if (hasRequiredSideChannelWeakmap) return sideChannelWeakmap;
52048
+ hasRequiredSideChannelWeakmap = 1;
51708
52049
 
51709
52050
  var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic();
51710
- var callBound = requireCallBound();
52051
+ var callBound = /*@__PURE__*/ requireCallBound();
51711
52052
  var inspect = /*@__PURE__*/ requireObjectInspect();
52053
+ var getSideChannelMap = requireSideChannelMap();
51712
52054
 
51713
52055
  var $TypeError = /*@__PURE__*/ requireType();
51714
52056
  var $WeakMap = GetIntrinsic('%WeakMap%', true);
51715
- var $Map = GetIntrinsic('%Map%', true);
51716
52057
 
52058
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
51717
52059
  var $weakMapGet = callBound('WeakMap.prototype.get', true);
52060
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */
51718
52061
  var $weakMapSet = callBound('WeakMap.prototype.set', true);
52062
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
51719
52063
  var $weakMapHas = callBound('WeakMap.prototype.has', true);
51720
- var $mapGet = callBound('Map.prototype.get', true);
51721
- var $mapSet = callBound('Map.prototype.set', true);
51722
- var $mapHas = callBound('Map.prototype.has', true);
52064
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
52065
+ var $weakMapDelete = callBound('WeakMap.prototype.delete', true);
51723
52066
 
51724
- /*
51725
- * This function traverses the list returning the node corresponding to the given key.
51726
- *
51727
- * That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list. By doing so, all the recently used nodes can be accessed relatively quickly.
51728
- */
51729
- /** @type {import('.').listGetNode} */
51730
- var listGetNode = function (list, key) { // eslint-disable-line consistent-return
51731
- /** @type {typeof list | NonNullable<(typeof list)['next']>} */
51732
- var prev = list;
51733
- /** @type {(typeof list)['next']} */
51734
- var curr;
51735
- for (; (curr = prev.next) !== null; prev = curr) {
51736
- if (curr.key === key) {
51737
- prev.next = curr.next;
51738
- // eslint-disable-next-line no-extra-parens
51739
- curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
51740
- list.next = curr; // eslint-disable-line no-param-reassign
51741
- return curr;
51742
- }
51743
- }
51744
- };
52067
+ /** @type {import('.')} */
52068
+ sideChannelWeakmap = $WeakMap
52069
+ ? /** @type {Exclude<import('.'), false>} */ function getSideChannelWeakMap() {
52070
+ /** @typedef {ReturnType<typeof getSideChannelWeakMap>} Channel */
52071
+ /** @typedef {Parameters<Channel['get']>[0]} K */
52072
+ /** @typedef {Parameters<Channel['set']>[1]} V */
52073
+
52074
+ /** @type {WeakMap<K & object, V> | undefined} */ var $wm;
52075
+ /** @type {Channel | undefined} */ var $m;
52076
+
52077
+ /** @type {Channel} */
52078
+ var channel = {
52079
+ assert: function (key) {
52080
+ if (!channel.has(key)) {
52081
+ throw new $TypeError('Side channel does not contain ' + inspect(key));
52082
+ }
52083
+ },
52084
+ 'delete': function (key) {
52085
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
52086
+ if ($wm) {
52087
+ return $weakMapDelete($wm, key);
52088
+ }
52089
+ } else if (getSideChannelMap) {
52090
+ if ($m) {
52091
+ return $m['delete'](key);
52092
+ }
52093
+ }
52094
+ return false;
52095
+ },
52096
+ get: function (key) {
52097
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
52098
+ if ($wm) {
52099
+ return $weakMapGet($wm, key);
52100
+ }
52101
+ }
52102
+ return $m && $m.get(key);
52103
+ },
52104
+ has: function (key) {
52105
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
52106
+ if ($wm) {
52107
+ return $weakMapHas($wm, key);
52108
+ }
52109
+ }
52110
+ return !!$m && $m.has(key);
52111
+ },
52112
+ set: function (key, value) {
52113
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
52114
+ if (!$wm) {
52115
+ $wm = new $WeakMap();
52116
+ }
52117
+ $weakMapSet($wm, key, value);
52118
+ } else if (getSideChannelMap) {
52119
+ if (!$m) {
52120
+ $m = getSideChannelMap();
52121
+ }
52122
+ // eslint-disable-next-line no-extra-parens
52123
+ /** @type {NonNullable<typeof $m>} */ ($m).set(key, value);
52124
+ }
52125
+ }
52126
+ };
51745
52127
 
51746
- /** @type {import('.').listGet} */
51747
- var listGet = function (objects, key) {
51748
- var node = listGetNode(objects, key);
51749
- return node && node.value;
51750
- };
51751
- /** @type {import('.').listSet} */
51752
- var listSet = function (objects, key, value) {
51753
- var node = listGetNode(objects, key);
51754
- if (node) {
51755
- node.value = value;
51756
- } else {
51757
- // Prepend the new node to the beginning of the list
51758
- objects.next = /** @type {import('.').ListNode<typeof value>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
51759
- key: key,
51760
- next: objects.next,
51761
- value: value
51762
- });
52128
+ // @ts-expect-error TODO: figure out why this is erroring
52129
+ return channel;
51763
52130
  }
51764
- };
51765
- /** @type {import('.').listHas} */
51766
- var listHas = function (objects, key) {
51767
- return !!listGetNode(objects, key);
51768
- };
52131
+ : getSideChannelMap;
52132
+ return sideChannelWeakmap;
52133
+ }
52134
+
52135
+ var sideChannel;
52136
+ var hasRequiredSideChannel;
52137
+
52138
+ function requireSideChannel () {
52139
+ if (hasRequiredSideChannel) return sideChannel;
52140
+ hasRequiredSideChannel = 1;
52141
+
52142
+ var $TypeError = /*@__PURE__*/ requireType();
52143
+ var inspect = /*@__PURE__*/ requireObjectInspect();
52144
+ var getSideChannelList = requireSideChannelList();
52145
+ var getSideChannelMap = requireSideChannelMap();
52146
+ var getSideChannelWeakMap = requireSideChannelWeakmap();
52147
+
52148
+ var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
51769
52149
 
51770
52150
  /** @type {import('.')} */
51771
52151
  sideChannel = function getSideChannel() {
51772
- /** @type {WeakMap<object, unknown>} */ var $wm;
51773
- /** @type {Map<object, unknown>} */ var $m;
51774
- /** @type {import('.').RootNode<unknown>} */ var $o;
52152
+ /** @typedef {ReturnType<typeof getSideChannel>} Channel */
52153
+
52154
+ /** @type {Channel | undefined} */ var $channelData;
51775
52155
 
51776
- /** @type {import('.').Channel} */
52156
+ /** @type {Channel} */
51777
52157
  var channel = {
51778
52158
  assert: function (key) {
51779
52159
  if (!channel.has(key)) {
51780
52160
  throw new $TypeError('Side channel does not contain ' + inspect(key));
51781
52161
  }
51782
52162
  },
51783
- get: function (key) { // eslint-disable-line consistent-return
51784
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
51785
- if ($wm) {
51786
- return $weakMapGet($wm, key);
51787
- }
51788
- } else if ($Map) {
51789
- if ($m) {
51790
- return $mapGet($m, key);
51791
- }
51792
- } else {
51793
- if ($o) { // eslint-disable-line no-lonely-if
51794
- return listGet($o, key);
51795
- }
51796
- }
52163
+ 'delete': function (key) {
52164
+ return !!$channelData && $channelData['delete'](key);
52165
+ },
52166
+ get: function (key) {
52167
+ return $channelData && $channelData.get(key);
51797
52168
  },
51798
52169
  has: function (key) {
51799
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
51800
- if ($wm) {
51801
- return $weakMapHas($wm, key);
51802
- }
51803
- } else if ($Map) {
51804
- if ($m) {
51805
- return $mapHas($m, key);
51806
- }
51807
- } else {
51808
- if ($o) { // eslint-disable-line no-lonely-if
51809
- return listHas($o, key);
51810
- }
51811
- }
51812
- return false;
52170
+ return !!$channelData && $channelData.has(key);
51813
52171
  },
51814
52172
  set: function (key, value) {
51815
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
51816
- if (!$wm) {
51817
- $wm = new $WeakMap();
51818
- }
51819
- $weakMapSet($wm, key, value);
51820
- } else if ($Map) {
51821
- if (!$m) {
51822
- $m = new $Map();
51823
- }
51824
- $mapSet($m, key, value);
51825
- } else {
51826
- if (!$o) {
51827
- // Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
51828
- $o = { key: {}, next: null };
51829
- }
51830
- listSet($o, key, value);
52173
+ if (!$channelData) {
52174
+ $channelData = makeChannel();
51831
52175
  }
52176
+
52177
+ $channelData.set(key, value);
51832
52178
  }
51833
52179
  };
52180
+ // @ts-expect-error TODO: figure out why this is erroring
51834
52181
  return channel;
51835
52182
  };
51836
52183
  return sideChannel;
@@ -52839,7 +53186,7 @@ function requireServer () {
52839
53186
 
52840
53187
  var _fs2 = _interopRequireDefault(_fs);
52841
53188
 
52842
- var _http = require$$1$4;
53189
+ var _http = require$$1$5;
52843
53190
 
52844
53191
  var _http2 = _interopRequireDefault(_http);
52845
53192
 
@@ -53316,4 +53663,4 @@ exports.minimatch = minimatch;
53316
53663
  exports.spawn = spawn;
53317
53664
  exports.tinylr = tinylr;
53318
53665
  exports.watch = watch$1;
53319
- //# sourceMappingURL=vendor-BO0JjPoU.js.map
53666
+ //# sourceMappingURL=vendor-CLvDQIrx.js.map