@upstash/workflow 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/express.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  __require,
4
4
  __toESM,
5
5
  serveBase
6
- } from "./chunk-Z7WS5XIR.mjs";
6
+ } from "./chunk-QBJ3LQIO.mjs";
7
7
 
8
8
  // node_modules/depd/index.js
9
9
  var require_depd = __commonJS({
@@ -14459,46 +14459,6 @@ var require_text = __commonJS({
14459
14459
  }
14460
14460
  });
14461
14461
 
14462
- // node_modules/es-errors/index.js
14463
- var require_es_errors = __commonJS({
14464
- "node_modules/es-errors/index.js"(exports, module) {
14465
- "use strict";
14466
- module.exports = Error;
14467
- }
14468
- });
14469
-
14470
- // node_modules/es-errors/eval.js
14471
- var require_eval = __commonJS({
14472
- "node_modules/es-errors/eval.js"(exports, module) {
14473
- "use strict";
14474
- module.exports = EvalError;
14475
- }
14476
- });
14477
-
14478
- // node_modules/es-errors/range.js
14479
- var require_range = __commonJS({
14480
- "node_modules/es-errors/range.js"(exports, module) {
14481
- "use strict";
14482
- module.exports = RangeError;
14483
- }
14484
- });
14485
-
14486
- // node_modules/es-errors/ref.js
14487
- var require_ref = __commonJS({
14488
- "node_modules/es-errors/ref.js"(exports, module) {
14489
- "use strict";
14490
- module.exports = ReferenceError;
14491
- }
14492
- });
14493
-
14494
- // node_modules/es-errors/syntax.js
14495
- var require_syntax = __commonJS({
14496
- "node_modules/es-errors/syntax.js"(exports, module) {
14497
- "use strict";
14498
- module.exports = SyntaxError;
14499
- }
14500
- });
14501
-
14502
14462
  // node_modules/es-errors/type.js
14503
14463
  var require_type = __commonJS({
14504
14464
  "node_modules/es-errors/type.js"(exports, module) {
@@ -14507,1369 +14467,1536 @@ var require_type = __commonJS({
14507
14467
  }
14508
14468
  });
14509
14469
 
14510
- // node_modules/es-errors/uri.js
14511
- var require_uri = __commonJS({
14512
- "node_modules/es-errors/uri.js"(exports, module) {
14470
+ // node_modules/object-inspect/util.inspect.js
14471
+ var require_util_inspect = __commonJS({
14472
+ "node_modules/object-inspect/util.inspect.js"(exports, module) {
14513
14473
  "use strict";
14514
- module.exports = URIError;
14474
+ module.exports = __require("util").inspect;
14515
14475
  }
14516
14476
  });
14517
14477
 
14518
- // node_modules/has-symbols/shams.js
14519
- var require_shams = __commonJS({
14520
- "node_modules/has-symbols/shams.js"(exports, module) {
14478
+ // node_modules/object-inspect/index.js
14479
+ var require_object_inspect = __commonJS({
14480
+ "node_modules/object-inspect/index.js"(exports, module) {
14521
14481
  "use strict";
14522
- module.exports = function hasSymbols() {
14523
- if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
14524
- return false;
14482
+ var hasMap = typeof Map === "function" && Map.prototype;
14483
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
14484
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
14485
+ var mapForEach = hasMap && Map.prototype.forEach;
14486
+ var hasSet = typeof Set === "function" && Set.prototype;
14487
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null;
14488
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null;
14489
+ var setForEach = hasSet && Set.prototype.forEach;
14490
+ var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype;
14491
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
14492
+ var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype;
14493
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
14494
+ var hasWeakRef = typeof WeakRef === "function" && WeakRef.prototype;
14495
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
14496
+ var booleanValueOf = Boolean.prototype.valueOf;
14497
+ var objectToString = Object.prototype.toString;
14498
+ var functionToString = Function.prototype.toString;
14499
+ var $match = String.prototype.match;
14500
+ var $slice = String.prototype.slice;
14501
+ var $replace = String.prototype.replace;
14502
+ var $toUpperCase = String.prototype.toUpperCase;
14503
+ var $toLowerCase = String.prototype.toLowerCase;
14504
+ var $test = RegExp.prototype.test;
14505
+ var $concat = Array.prototype.concat;
14506
+ var $join = Array.prototype.join;
14507
+ var $arrSlice = Array.prototype.slice;
14508
+ var $floor = Math.floor;
14509
+ var bigIntValueOf = typeof BigInt === "function" ? BigInt.prototype.valueOf : null;
14510
+ var gOPS = Object.getOwnPropertySymbols;
14511
+ var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null;
14512
+ var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object";
14513
+ var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null;
14514
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
14515
+ var gPO = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O) {
14516
+ return O.__proto__;
14517
+ } : null);
14518
+ function addNumericSeparator(num, str) {
14519
+ if (num === Infinity || num === -Infinity || num !== num || num && num > -1e3 && num < 1e3 || $test.call(/e/, str)) {
14520
+ return str;
14525
14521
  }
14526
- if (typeof Symbol.iterator === "symbol") {
14527
- return true;
14522
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
14523
+ if (typeof num === "number") {
14524
+ var int = num < 0 ? -$floor(-num) : $floor(num);
14525
+ if (int !== num) {
14526
+ var intStr = String(int);
14527
+ var dec = $slice.call(str, intStr.length + 1);
14528
+ return $replace.call(intStr, sepRegex, "$&_") + "." + $replace.call($replace.call(dec, /([0-9]{3})/g, "$&_"), /_$/, "");
14529
+ }
14528
14530
  }
14529
- var obj = {};
14530
- var sym = Symbol("test");
14531
- var symObj = Object(sym);
14532
- if (typeof sym === "string") {
14533
- return false;
14531
+ return $replace.call(str, sepRegex, "$&_");
14532
+ }
14533
+ var utilInspect = require_util_inspect();
14534
+ var inspectCustom = utilInspect.custom;
14535
+ var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
14536
+ var quotes = {
14537
+ __proto__: null,
14538
+ "double": '"',
14539
+ single: "'"
14540
+ };
14541
+ var quoteREs = {
14542
+ __proto__: null,
14543
+ "double": /(["\\])/g,
14544
+ single: /(['\\])/g
14545
+ };
14546
+ module.exports = function inspect_(obj, options, depth, seen) {
14547
+ var opts = options || {};
14548
+ if (has(opts, "quoteStyle") && !has(quotes, opts.quoteStyle)) {
14549
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
14534
14550
  }
14535
- if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
14536
- return false;
14551
+ if (has(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
14552
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
14537
14553
  }
14538
- if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
14539
- return false;
14554
+ var customInspect = has(opts, "customInspect") ? opts.customInspect : true;
14555
+ if (typeof customInspect !== "boolean" && customInspect !== "symbol") {
14556
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
14540
14557
  }
14541
- var symVal = 42;
14542
- obj[sym] = symVal;
14543
- for (sym in obj) {
14544
- return false;
14558
+ if (has(opts, "indent") && opts.indent !== null && opts.indent !== " " && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
14559
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
14545
14560
  }
14546
- if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
14547
- return false;
14561
+ if (has(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") {
14562
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
14548
14563
  }
14549
- if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
14550
- return false;
14564
+ var numericSeparator = opts.numericSeparator;
14565
+ if (typeof obj === "undefined") {
14566
+ return "undefined";
14551
14567
  }
14552
- var syms = Object.getOwnPropertySymbols(obj);
14553
- if (syms.length !== 1 || syms[0] !== sym) {
14554
- return false;
14568
+ if (obj === null) {
14569
+ return "null";
14555
14570
  }
14556
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
14557
- return false;
14571
+ if (typeof obj === "boolean") {
14572
+ return obj ? "true" : "false";
14558
14573
  }
14559
- if (typeof Object.getOwnPropertyDescriptor === "function") {
14560
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
14561
- if (descriptor.value !== symVal || descriptor.enumerable !== true) {
14562
- return false;
14574
+ if (typeof obj === "string") {
14575
+ return inspectString(obj, opts);
14576
+ }
14577
+ if (typeof obj === "number") {
14578
+ if (obj === 0) {
14579
+ return Infinity / obj > 0 ? "0" : "-0";
14563
14580
  }
14581
+ var str = String(obj);
14582
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
14564
14583
  }
14565
- return true;
14566
- };
14567
- }
14568
- });
14569
-
14570
- // node_modules/has-symbols/index.js
14571
- var require_has_symbols = __commonJS({
14572
- "node_modules/has-symbols/index.js"(exports, module) {
14573
- "use strict";
14574
- var origSymbol = typeof Symbol !== "undefined" && Symbol;
14575
- var hasSymbolSham = require_shams();
14576
- module.exports = function hasNativeSymbols() {
14577
- if (typeof origSymbol !== "function") {
14578
- return false;
14584
+ if (typeof obj === "bigint") {
14585
+ var bigIntStr = String(obj) + "n";
14586
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
14579
14587
  }
14580
- if (typeof Symbol !== "function") {
14581
- return false;
14588
+ var maxDepth = typeof opts.depth === "undefined" ? 5 : opts.depth;
14589
+ if (typeof depth === "undefined") {
14590
+ depth = 0;
14582
14591
  }
14583
- if (typeof origSymbol("foo") !== "symbol") {
14584
- return false;
14592
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
14593
+ return isArray(obj) ? "[Array]" : "[Object]";
14585
14594
  }
14586
- if (typeof Symbol("bar") !== "symbol") {
14587
- return false;
14595
+ var indent = getIndent(opts, depth);
14596
+ if (typeof seen === "undefined") {
14597
+ seen = [];
14598
+ } else if (indexOf(seen, obj) >= 0) {
14599
+ return "[Circular]";
14588
14600
  }
14589
- return hasSymbolSham();
14590
- };
14591
- }
14592
- });
14593
-
14594
- // node_modules/has-proto/index.js
14595
- var require_has_proto = __commonJS({
14596
- "node_modules/has-proto/index.js"(exports, module) {
14597
- "use strict";
14598
- var test = {
14599
- __proto__: null,
14600
- foo: {}
14601
- };
14602
- var $Object = Object;
14603
- module.exports = function hasProto() {
14604
- return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
14605
- };
14606
- }
14607
- });
14608
-
14609
- // node_modules/function-bind/implementation.js
14610
- var require_implementation = __commonJS({
14611
- "node_modules/function-bind/implementation.js"(exports, module) {
14612
- "use strict";
14613
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
14614
- var toStr = Object.prototype.toString;
14615
- var max = Math.max;
14616
- var funcType = "[object Function]";
14617
- var concatty = function concatty2(a, b) {
14618
- var arr = [];
14619
- for (var i = 0; i < a.length; i += 1) {
14620
- arr[i] = a[i];
14601
+ function inspect(value, from, noIndent) {
14602
+ if (from) {
14603
+ seen = $arrSlice.call(seen);
14604
+ seen.push(from);
14605
+ }
14606
+ if (noIndent) {
14607
+ var newOpts = {
14608
+ depth: opts.depth
14609
+ };
14610
+ if (has(opts, "quoteStyle")) {
14611
+ newOpts.quoteStyle = opts.quoteStyle;
14612
+ }
14613
+ return inspect_(value, newOpts, depth + 1, seen);
14614
+ }
14615
+ return inspect_(value, opts, depth + 1, seen);
14621
14616
  }
14622
- for (var j = 0; j < b.length; j += 1) {
14623
- arr[j + a.length] = b[j];
14617
+ if (typeof obj === "function" && !isRegExp(obj)) {
14618
+ var name = nameOf(obj);
14619
+ var keys = arrObjKeys(obj, inspect);
14620
+ return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
14624
14621
  }
14625
- return arr;
14626
- };
14627
- var slicy = function slicy2(arrLike, offset) {
14628
- var arr = [];
14629
- for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
14630
- arr[j] = arrLike[i];
14622
+ if (isSymbol(obj)) {
14623
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj);
14624
+ return typeof obj === "object" && !hasShammedSymbols ? markBoxed(symString) : symString;
14631
14625
  }
14632
- return arr;
14633
- };
14634
- var joiny = function(arr, joiner) {
14635
- var str = "";
14636
- for (var i = 0; i < arr.length; i += 1) {
14637
- str += arr[i];
14638
- if (i + 1 < arr.length) {
14639
- str += joiner;
14626
+ if (isElement(obj)) {
14627
+ var s = "<" + $toLowerCase.call(String(obj.nodeName));
14628
+ var attrs = obj.attributes || [];
14629
+ for (var i = 0; i < attrs.length; i++) {
14630
+ s += " " + attrs[i].name + "=" + wrapQuotes(quote(attrs[i].value), "double", opts);
14631
+ }
14632
+ s += ">";
14633
+ if (obj.childNodes && obj.childNodes.length) {
14634
+ s += "...";
14640
14635
  }
14636
+ s += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
14637
+ return s;
14641
14638
  }
14642
- return str;
14643
- };
14644
- module.exports = function bind(that) {
14645
- var target = this;
14646
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
14647
- throw new TypeError(ERROR_MESSAGE + target);
14639
+ if (isArray(obj)) {
14640
+ if (obj.length === 0) {
14641
+ return "[]";
14642
+ }
14643
+ var xs = arrObjKeys(obj, inspect);
14644
+ if (indent && !singleLineValues(xs)) {
14645
+ return "[" + indentedJoin(xs, indent) + "]";
14646
+ }
14647
+ return "[ " + $join.call(xs, ", ") + " ]";
14648
14648
  }
14649
- var args = slicy(arguments, 1);
14650
- var bound;
14651
- var binder = function() {
14652
- if (this instanceof bound) {
14653
- var result = target.apply(
14654
- this,
14655
- concatty(args, arguments)
14656
- );
14657
- if (Object(result) === result) {
14658
- return result;
14659
- }
14660
- return this;
14649
+ if (isError(obj)) {
14650
+ var parts = arrObjKeys(obj, inspect);
14651
+ if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) {
14652
+ return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect(obj.cause), parts), ", ") + " }";
14661
14653
  }
14662
- return target.apply(
14663
- that,
14664
- concatty(args, arguments)
14665
- );
14666
- };
14667
- var boundLength = max(0, target.length - args.length);
14668
- var boundArgs = [];
14669
- for (var i = 0; i < boundLength; i++) {
14670
- boundArgs[i] = "$" + i;
14654
+ if (parts.length === 0) {
14655
+ return "[" + String(obj) + "]";
14656
+ }
14657
+ return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }";
14671
14658
  }
14672
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
14673
- if (target.prototype) {
14674
- var Empty = function Empty2() {
14675
- };
14676
- Empty.prototype = target.prototype;
14677
- bound.prototype = new Empty();
14678
- Empty.prototype = null;
14659
+ if (typeof obj === "object" && customInspect) {
14660
+ if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) {
14661
+ return utilInspect(obj, { depth: maxDepth - depth });
14662
+ } else if (customInspect !== "symbol" && typeof obj.inspect === "function") {
14663
+ return obj.inspect();
14664
+ }
14679
14665
  }
14680
- return bound;
14666
+ if (isMap(obj)) {
14667
+ var mapParts = [];
14668
+ if (mapForEach) {
14669
+ mapForEach.call(obj, function(value, key) {
14670
+ mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
14671
+ });
14672
+ }
14673
+ return collectionOf("Map", mapSize.call(obj), mapParts, indent);
14674
+ }
14675
+ if (isSet(obj)) {
14676
+ var setParts = [];
14677
+ if (setForEach) {
14678
+ setForEach.call(obj, function(value) {
14679
+ setParts.push(inspect(value, obj));
14680
+ });
14681
+ }
14682
+ return collectionOf("Set", setSize.call(obj), setParts, indent);
14683
+ }
14684
+ if (isWeakMap(obj)) {
14685
+ return weakCollectionOf("WeakMap");
14686
+ }
14687
+ if (isWeakSet(obj)) {
14688
+ return weakCollectionOf("WeakSet");
14689
+ }
14690
+ if (isWeakRef(obj)) {
14691
+ return weakCollectionOf("WeakRef");
14692
+ }
14693
+ if (isNumber(obj)) {
14694
+ return markBoxed(inspect(Number(obj)));
14695
+ }
14696
+ if (isBigInt(obj)) {
14697
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
14698
+ }
14699
+ if (isBoolean(obj)) {
14700
+ return markBoxed(booleanValueOf.call(obj));
14701
+ }
14702
+ if (isString(obj)) {
14703
+ return markBoxed(inspect(String(obj)));
14704
+ }
14705
+ if (typeof window !== "undefined" && obj === window) {
14706
+ return "{ [object Window] }";
14707
+ }
14708
+ if (typeof globalThis !== "undefined" && obj === globalThis || typeof global !== "undefined" && obj === global) {
14709
+ return "{ [object globalThis] }";
14710
+ }
14711
+ if (!isDate(obj) && !isRegExp(obj)) {
14712
+ var ys = arrObjKeys(obj, inspect);
14713
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
14714
+ var protoTag = obj instanceof Object ? "" : "null prototype";
14715
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
14716
+ var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
14717
+ var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
14718
+ if (ys.length === 0) {
14719
+ return tag + "{}";
14720
+ }
14721
+ if (indent) {
14722
+ return tag + "{" + indentedJoin(ys, indent) + "}";
14723
+ }
14724
+ return tag + "{ " + $join.call(ys, ", ") + " }";
14725
+ }
14726
+ return String(obj);
14681
14727
  };
14682
- }
14683
- });
14684
-
14685
- // node_modules/function-bind/index.js
14686
- var require_function_bind = __commonJS({
14687
- "node_modules/function-bind/index.js"(exports, module) {
14688
- "use strict";
14689
- var implementation = require_implementation();
14690
- module.exports = Function.prototype.bind || implementation;
14691
- }
14692
- });
14693
-
14694
- // node_modules/hasown/index.js
14695
- var require_hasown = __commonJS({
14696
- "node_modules/hasown/index.js"(exports, module) {
14697
- "use strict";
14698
- var call = Function.prototype.call;
14699
- var $hasOwn = Object.prototype.hasOwnProperty;
14700
- var bind = require_function_bind();
14701
- module.exports = bind.call(call, $hasOwn);
14702
- }
14703
- });
14704
-
14705
- // node_modules/get-intrinsic/index.js
14706
- var require_get_intrinsic = __commonJS({
14707
- "node_modules/get-intrinsic/index.js"(exports, module) {
14708
- "use strict";
14709
- var undefined2;
14710
- var $Error = require_es_errors();
14711
- var $EvalError = require_eval();
14712
- var $RangeError = require_range();
14713
- var $ReferenceError = require_ref();
14714
- var $SyntaxError = require_syntax();
14715
- var $TypeError = require_type();
14716
- var $URIError = require_uri();
14717
- var $Function = Function;
14718
- var getEvalledConstructor = function(expressionSyntax) {
14728
+ function wrapQuotes(s, defaultStyle, opts) {
14729
+ var style = opts.quoteStyle || defaultStyle;
14730
+ var quoteChar = quotes[style];
14731
+ return quoteChar + s + quoteChar;
14732
+ }
14733
+ function quote(s) {
14734
+ return $replace.call(String(s), /"/g, "&quot;");
14735
+ }
14736
+ function isArray(obj) {
14737
+ return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
14738
+ }
14739
+ function isDate(obj) {
14740
+ return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
14741
+ }
14742
+ function isRegExp(obj) {
14743
+ return toStr(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
14744
+ }
14745
+ function isError(obj) {
14746
+ return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
14747
+ }
14748
+ function isString(obj) {
14749
+ return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
14750
+ }
14751
+ function isNumber(obj) {
14752
+ return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
14753
+ }
14754
+ function isBoolean(obj) {
14755
+ return toStr(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
14756
+ }
14757
+ function isSymbol(obj) {
14758
+ if (hasShammedSymbols) {
14759
+ return obj && typeof obj === "object" && obj instanceof Symbol;
14760
+ }
14761
+ if (typeof obj === "symbol") {
14762
+ return true;
14763
+ }
14764
+ if (!obj || typeof obj !== "object" || !symToString) {
14765
+ return false;
14766
+ }
14719
14767
  try {
14720
- return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
14768
+ symToString.call(obj);
14769
+ return true;
14721
14770
  } catch (e) {
14722
14771
  }
14723
- };
14724
- var $gOPD = Object.getOwnPropertyDescriptor;
14725
- if ($gOPD) {
14772
+ return false;
14773
+ }
14774
+ function isBigInt(obj) {
14775
+ if (!obj || typeof obj !== "object" || !bigIntValueOf) {
14776
+ return false;
14777
+ }
14726
14778
  try {
14727
- $gOPD({}, "");
14779
+ bigIntValueOf.call(obj);
14780
+ return true;
14728
14781
  } catch (e) {
14729
- $gOPD = null;
14730
14782
  }
14783
+ return false;
14731
14784
  }
14732
- var throwTypeError = function() {
14733
- throw new $TypeError();
14785
+ var hasOwn = Object.prototype.hasOwnProperty || function(key) {
14786
+ return key in this;
14734
14787
  };
14735
- var ThrowTypeError = $gOPD ? function() {
14736
- try {
14737
- arguments.callee;
14738
- return throwTypeError;
14739
- } catch (calleeThrows) {
14740
- try {
14741
- return $gOPD(arguments, "callee").get;
14742
- } catch (gOPDthrows) {
14743
- return throwTypeError;
14744
- }
14745
- }
14746
- }() : throwTypeError;
14747
- var hasSymbols = require_has_symbols()();
14748
- var hasProto = require_has_proto()();
14749
- var getProto = Object.getPrototypeOf || (hasProto ? function(x) {
14750
- return x.__proto__;
14751
- } : null);
14752
- var needsEval = {};
14753
- var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
14754
- var INTRINSICS = {
14755
- __proto__: null,
14756
- "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
14757
- "%Array%": Array,
14758
- "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
14759
- "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
14760
- "%AsyncFromSyncIteratorPrototype%": undefined2,
14761
- "%AsyncFunction%": needsEval,
14762
- "%AsyncGenerator%": needsEval,
14763
- "%AsyncGeneratorFunction%": needsEval,
14764
- "%AsyncIteratorPrototype%": needsEval,
14765
- "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
14766
- "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
14767
- "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
14768
- "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
14769
- "%Boolean%": Boolean,
14770
- "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
14771
- "%Date%": Date,
14772
- "%decodeURI%": decodeURI,
14773
- "%decodeURIComponent%": decodeURIComponent,
14774
- "%encodeURI%": encodeURI,
14775
- "%encodeURIComponent%": encodeURIComponent,
14776
- "%Error%": $Error,
14777
- "%eval%": eval,
14778
- // eslint-disable-line no-eval
14779
- "%EvalError%": $EvalError,
14780
- "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
14781
- "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
14782
- "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
14783
- "%Function%": $Function,
14784
- "%GeneratorFunction%": needsEval,
14785
- "%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
14786
- "%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
14787
- "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
14788
- "%isFinite%": isFinite,
14789
- "%isNaN%": isNaN,
14790
- "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
14791
- "%JSON%": typeof JSON === "object" ? JSON : undefined2,
14792
- "%Map%": typeof Map === "undefined" ? undefined2 : Map,
14793
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
14794
- "%Math%": Math,
14795
- "%Number%": Number,
14796
- "%Object%": Object,
14797
- "%parseFloat%": parseFloat,
14798
- "%parseInt%": parseInt,
14799
- "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
14800
- "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
14801
- "%RangeError%": $RangeError,
14802
- "%ReferenceError%": $ReferenceError,
14803
- "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
14804
- "%RegExp%": RegExp,
14805
- "%Set%": typeof Set === "undefined" ? undefined2 : Set,
14806
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
14807
- "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
14808
- "%String%": String,
14809
- "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
14810
- "%Symbol%": hasSymbols ? Symbol : undefined2,
14811
- "%SyntaxError%": $SyntaxError,
14812
- "%ThrowTypeError%": ThrowTypeError,
14813
- "%TypedArray%": TypedArray,
14814
- "%TypeError%": $TypeError,
14815
- "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
14816
- "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
14817
- "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
14818
- "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
14819
- "%URIError%": $URIError,
14820
- "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
14821
- "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
14822
- "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
14823
- };
14824
- if (getProto) {
14825
- try {
14826
- null.error;
14827
- } catch (e) {
14828
- errorProto = getProto(getProto(e));
14829
- INTRINSICS["%Error.prototype%"] = errorProto;
14830
- }
14831
- }
14832
- var errorProto;
14833
- var doEval = function doEval2(name) {
14834
- var value;
14835
- if (name === "%AsyncFunction%") {
14836
- value = getEvalledConstructor("async function () {}");
14837
- } else if (name === "%GeneratorFunction%") {
14838
- value = getEvalledConstructor("function* () {}");
14839
- } else if (name === "%AsyncGeneratorFunction%") {
14840
- value = getEvalledConstructor("async function* () {}");
14841
- } else if (name === "%AsyncGenerator%") {
14842
- var fn = doEval2("%AsyncGeneratorFunction%");
14843
- if (fn) {
14844
- value = fn.prototype;
14845
- }
14846
- } else if (name === "%AsyncIteratorPrototype%") {
14847
- var gen = doEval2("%AsyncGenerator%");
14848
- if (gen && getProto) {
14849
- value = getProto(gen.prototype);
14850
- }
14851
- }
14852
- INTRINSICS[name] = value;
14853
- return value;
14854
- };
14855
- var LEGACY_ALIASES = {
14856
- __proto__: null,
14857
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
14858
- "%ArrayPrototype%": ["Array", "prototype"],
14859
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
14860
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
14861
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
14862
- "%ArrayProto_values%": ["Array", "prototype", "values"],
14863
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
14864
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
14865
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
14866
- "%BooleanPrototype%": ["Boolean", "prototype"],
14867
- "%DataViewPrototype%": ["DataView", "prototype"],
14868
- "%DatePrototype%": ["Date", "prototype"],
14869
- "%ErrorPrototype%": ["Error", "prototype"],
14870
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
14871
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
14872
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
14873
- "%FunctionPrototype%": ["Function", "prototype"],
14874
- "%Generator%": ["GeneratorFunction", "prototype"],
14875
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
14876
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
14877
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
14878
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
14879
- "%JSONParse%": ["JSON", "parse"],
14880
- "%JSONStringify%": ["JSON", "stringify"],
14881
- "%MapPrototype%": ["Map", "prototype"],
14882
- "%NumberPrototype%": ["Number", "prototype"],
14883
- "%ObjectPrototype%": ["Object", "prototype"],
14884
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
14885
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
14886
- "%PromisePrototype%": ["Promise", "prototype"],
14887
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
14888
- "%Promise_all%": ["Promise", "all"],
14889
- "%Promise_reject%": ["Promise", "reject"],
14890
- "%Promise_resolve%": ["Promise", "resolve"],
14891
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
14892
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
14893
- "%RegExpPrototype%": ["RegExp", "prototype"],
14894
- "%SetPrototype%": ["Set", "prototype"],
14895
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
14896
- "%StringPrototype%": ["String", "prototype"],
14897
- "%SymbolPrototype%": ["Symbol", "prototype"],
14898
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
14899
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
14900
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
14901
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
14902
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
14903
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
14904
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
14905
- "%URIErrorPrototype%": ["URIError", "prototype"],
14906
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
14907
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
14908
- };
14909
- var bind = require_function_bind();
14910
- var hasOwn = require_hasown();
14911
- var $concat = bind.call(Function.call, Array.prototype.concat);
14912
- var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
14913
- var $replace = bind.call(Function.call, String.prototype.replace);
14914
- var $strSlice = bind.call(Function.call, String.prototype.slice);
14915
- var $exec = bind.call(Function.call, RegExp.prototype.exec);
14916
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
14917
- var reEscapeChar = /\\(\\)?/g;
14918
- var stringToPath = function stringToPath2(string) {
14919
- var first = $strSlice(string, 0, 1);
14920
- var last = $strSlice(string, -1);
14921
- if (first === "%" && last !== "%") {
14922
- throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
14923
- } else if (last === "%" && first !== "%") {
14924
- throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
14925
- }
14926
- var result = [];
14927
- $replace(string, rePropName, function(match, number, quote, subString) {
14928
- result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
14929
- });
14930
- return result;
14931
- };
14932
- var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
14933
- var intrinsicName = name;
14934
- var alias;
14935
- if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
14936
- alias = LEGACY_ALIASES[intrinsicName];
14937
- intrinsicName = "%" + alias[0] + "%";
14938
- }
14939
- if (hasOwn(INTRINSICS, intrinsicName)) {
14940
- var value = INTRINSICS[intrinsicName];
14941
- if (value === needsEval) {
14942
- value = doEval(intrinsicName);
14943
- }
14944
- if (typeof value === "undefined" && !allowMissing) {
14945
- throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
14946
- }
14947
- return {
14948
- alias,
14949
- name: intrinsicName,
14950
- value
14951
- };
14952
- }
14953
- throw new $SyntaxError("intrinsic " + name + " does not exist!");
14954
- };
14955
- module.exports = function GetIntrinsic(name, allowMissing) {
14956
- if (typeof name !== "string" || name.length === 0) {
14957
- throw new $TypeError("intrinsic name must be a non-empty string");
14958
- }
14959
- if (arguments.length > 1 && typeof allowMissing !== "boolean") {
14960
- throw new $TypeError('"allowMissing" argument must be a boolean');
14961
- }
14962
- if ($exec(/^%?[^%]*%?$/, name) === null) {
14963
- throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
14964
- }
14965
- var parts = stringToPath(name);
14966
- var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
14967
- var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
14968
- var intrinsicRealName = intrinsic.name;
14969
- var value = intrinsic.value;
14970
- var skipFurtherCaching = false;
14971
- var alias = intrinsic.alias;
14972
- if (alias) {
14973
- intrinsicBaseName = alias[0];
14974
- $spliceApply(parts, $concat([0, 1], alias));
14975
- }
14976
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
14977
- var part = parts[i];
14978
- var first = $strSlice(part, 0, 1);
14979
- var last = $strSlice(part, -1);
14980
- if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
14981
- throw new $SyntaxError("property names with quotes must have matching quotes");
14982
- }
14983
- if (part === "constructor" || !isOwn) {
14984
- skipFurtherCaching = true;
14985
- }
14986
- intrinsicBaseName += "." + part;
14987
- intrinsicRealName = "%" + intrinsicBaseName + "%";
14988
- if (hasOwn(INTRINSICS, intrinsicRealName)) {
14989
- value = INTRINSICS[intrinsicRealName];
14990
- } else if (value != null) {
14991
- if (!(part in value)) {
14992
- if (!allowMissing) {
14993
- throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
14994
- }
14995
- return void 0;
14996
- }
14997
- if ($gOPD && i + 1 >= parts.length) {
14998
- var desc = $gOPD(value, part);
14999
- isOwn = !!desc;
15000
- if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
15001
- value = desc.get;
15002
- } else {
15003
- value = value[part];
15004
- }
15005
- } else {
15006
- isOwn = hasOwn(value, part);
15007
- value = value[part];
15008
- }
15009
- if (isOwn && !skipFurtherCaching) {
15010
- INTRINSICS[intrinsicRealName] = value;
15011
- }
15012
- }
15013
- }
15014
- return value;
15015
- };
15016
- }
15017
- });
15018
-
15019
- // node_modules/es-define-property/index.js
15020
- var require_es_define_property = __commonJS({
15021
- "node_modules/es-define-property/index.js"(exports, module) {
15022
- "use strict";
15023
- var GetIntrinsic = require_get_intrinsic();
15024
- var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false;
15025
- if ($defineProperty) {
15026
- try {
15027
- $defineProperty({}, "a", { value: 1 });
15028
- } catch (e) {
15029
- $defineProperty = false;
15030
- }
15031
- }
15032
- module.exports = $defineProperty;
15033
- }
15034
- });
15035
-
15036
- // node_modules/gopd/index.js
15037
- var require_gopd = __commonJS({
15038
- "node_modules/gopd/index.js"(exports, module) {
15039
- "use strict";
15040
- var GetIntrinsic = require_get_intrinsic();
15041
- var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
15042
- if ($gOPD) {
15043
- try {
15044
- $gOPD([], "length");
15045
- } catch (e) {
15046
- $gOPD = null;
15047
- }
15048
- }
15049
- module.exports = $gOPD;
15050
- }
15051
- });
15052
-
15053
- // node_modules/define-data-property/index.js
15054
- var require_define_data_property = __commonJS({
15055
- "node_modules/define-data-property/index.js"(exports, module) {
15056
- "use strict";
15057
- var $defineProperty = require_es_define_property();
15058
- var $SyntaxError = require_syntax();
15059
- var $TypeError = require_type();
15060
- var gopd = require_gopd();
15061
- module.exports = function defineDataProperty(obj, property, value) {
15062
- if (!obj || typeof obj !== "object" && typeof obj !== "function") {
15063
- throw new $TypeError("`obj` must be an object or a function`");
15064
- }
15065
- if (typeof property !== "string" && typeof property !== "symbol") {
15066
- throw new $TypeError("`property` must be a string or a symbol`");
15067
- }
15068
- if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
15069
- throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
15070
- }
15071
- if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
15072
- throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
15073
- }
15074
- if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
15075
- throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
15076
- }
15077
- if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
15078
- throw new $TypeError("`loose`, if provided, must be a boolean");
15079
- }
15080
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
15081
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
15082
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
15083
- var loose = arguments.length > 6 ? arguments[6] : false;
15084
- var desc = !!gopd && gopd(obj, property);
15085
- if ($defineProperty) {
15086
- $defineProperty(obj, property, {
15087
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
15088
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
15089
- value,
15090
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
15091
- });
15092
- } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
15093
- obj[property] = value;
15094
- } else {
15095
- throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
15096
- }
15097
- };
15098
- }
15099
- });
15100
-
15101
- // node_modules/has-property-descriptors/index.js
15102
- var require_has_property_descriptors = __commonJS({
15103
- "node_modules/has-property-descriptors/index.js"(exports, module) {
15104
- "use strict";
15105
- var $defineProperty = require_es_define_property();
15106
- var hasPropertyDescriptors = function hasPropertyDescriptors2() {
15107
- return !!$defineProperty;
15108
- };
15109
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
15110
- if (!$defineProperty) {
15111
- return null;
15112
- }
15113
- try {
15114
- return $defineProperty([], "length", { value: 1 }).length !== 1;
15115
- } catch (e) {
15116
- return true;
15117
- }
15118
- };
15119
- module.exports = hasPropertyDescriptors;
15120
- }
15121
- });
15122
-
15123
- // node_modules/set-function-length/index.js
15124
- var require_set_function_length = __commonJS({
15125
- "node_modules/set-function-length/index.js"(exports, module) {
15126
- "use strict";
15127
- var GetIntrinsic = require_get_intrinsic();
15128
- var define = require_define_data_property();
15129
- var hasDescriptors = require_has_property_descriptors()();
15130
- var gOPD = require_gopd();
15131
- var $TypeError = require_type();
15132
- var $floor = GetIntrinsic("%Math.floor%");
15133
- module.exports = function setFunctionLength(fn, length) {
15134
- if (typeof fn !== "function") {
15135
- throw new $TypeError("`fn` is not a function");
15136
- }
15137
- if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) {
15138
- throw new $TypeError("`length` must be a positive 32-bit integer");
15139
- }
15140
- var loose = arguments.length > 2 && !!arguments[2];
15141
- var functionLengthIsConfigurable = true;
15142
- var functionLengthIsWritable = true;
15143
- if ("length" in fn && gOPD) {
15144
- var desc = gOPD(fn, "length");
15145
- if (desc && !desc.configurable) {
15146
- functionLengthIsConfigurable = false;
15147
- }
15148
- if (desc && !desc.writable) {
15149
- functionLengthIsWritable = false;
15150
- }
15151
- }
15152
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
15153
- if (hasDescriptors) {
15154
- define(
15155
- /** @type {Parameters<define>[0]} */
15156
- fn,
15157
- "length",
15158
- length,
15159
- true,
15160
- true
15161
- );
15162
- } else {
15163
- define(
15164
- /** @type {Parameters<define>[0]} */
15165
- fn,
15166
- "length",
15167
- length
15168
- );
15169
- }
15170
- }
15171
- return fn;
15172
- };
15173
- }
15174
- });
15175
-
15176
- // node_modules/call-bind/index.js
15177
- var require_call_bind = __commonJS({
15178
- "node_modules/call-bind/index.js"(exports, module) {
15179
- "use strict";
15180
- var bind = require_function_bind();
15181
- var GetIntrinsic = require_get_intrinsic();
15182
- var setFunctionLength = require_set_function_length();
15183
- var $TypeError = require_type();
15184
- var $apply = GetIntrinsic("%Function.prototype.apply%");
15185
- var $call = GetIntrinsic("%Function.prototype.call%");
15186
- var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
15187
- var $defineProperty = require_es_define_property();
15188
- var $max = GetIntrinsic("%Math.max%");
15189
- module.exports = function callBind(originalFunction) {
15190
- if (typeof originalFunction !== "function") {
15191
- throw new $TypeError("a function is required");
15192
- }
15193
- var func = $reflectApply(bind, $call, arguments);
15194
- return setFunctionLength(
15195
- func,
15196
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
15197
- true
15198
- );
15199
- };
15200
- var applyBind = function applyBind2() {
15201
- return $reflectApply(bind, $apply, arguments);
15202
- };
15203
- if ($defineProperty) {
15204
- $defineProperty(module.exports, "apply", { value: applyBind });
15205
- } else {
15206
- module.exports.apply = applyBind;
15207
- }
15208
- }
15209
- });
15210
-
15211
- // node_modules/call-bind/callBound.js
15212
- var require_callBound = __commonJS({
15213
- "node_modules/call-bind/callBound.js"(exports, module) {
15214
- "use strict";
15215
- var GetIntrinsic = require_get_intrinsic();
15216
- var callBind = require_call_bind();
15217
- var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
15218
- module.exports = function callBoundIntrinsic(name, allowMissing) {
15219
- var intrinsic = GetIntrinsic(name, !!allowMissing);
15220
- if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
15221
- return callBind(intrinsic);
15222
- }
15223
- return intrinsic;
15224
- };
15225
- }
15226
- });
15227
-
15228
- // node_modules/object-inspect/util.inspect.js
15229
- var require_util_inspect = __commonJS({
15230
- "node_modules/object-inspect/util.inspect.js"(exports, module) {
15231
- "use strict";
15232
- module.exports = __require("util").inspect;
15233
- }
15234
- });
15235
-
15236
- // node_modules/object-inspect/index.js
15237
- var require_object_inspect = __commonJS({
15238
- "node_modules/object-inspect/index.js"(exports, module) {
15239
- "use strict";
15240
- var hasMap = typeof Map === "function" && Map.prototype;
15241
- var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
15242
- var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
15243
- var mapForEach = hasMap && Map.prototype.forEach;
15244
- var hasSet = typeof Set === "function" && Set.prototype;
15245
- var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null;
15246
- var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null;
15247
- var setForEach = hasSet && Set.prototype.forEach;
15248
- var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype;
15249
- var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
15250
- var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype;
15251
- var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
15252
- var hasWeakRef = typeof WeakRef === "function" && WeakRef.prototype;
15253
- var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
15254
- var booleanValueOf = Boolean.prototype.valueOf;
15255
- var objectToString = Object.prototype.toString;
15256
- var functionToString = Function.prototype.toString;
15257
- var $match = String.prototype.match;
15258
- var $slice = String.prototype.slice;
15259
- var $replace = String.prototype.replace;
15260
- var $toUpperCase = String.prototype.toUpperCase;
15261
- var $toLowerCase = String.prototype.toLowerCase;
15262
- var $test = RegExp.prototype.test;
15263
- var $concat = Array.prototype.concat;
15264
- var $join = Array.prototype.join;
15265
- var $arrSlice = Array.prototype.slice;
15266
- var $floor = Math.floor;
15267
- var bigIntValueOf = typeof BigInt === "function" ? BigInt.prototype.valueOf : null;
15268
- var gOPS = Object.getOwnPropertySymbols;
15269
- var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null;
15270
- var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object";
15271
- var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null;
15272
- var isEnumerable = Object.prototype.propertyIsEnumerable;
15273
- var gPO = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O) {
15274
- return O.__proto__;
15275
- } : null);
15276
- function addNumericSeparator(num, str) {
15277
- if (num === Infinity || num === -Infinity || num !== num || num && num > -1e3 && num < 1e3 || $test.call(/e/, str)) {
15278
- return str;
15279
- }
15280
- var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
15281
- if (typeof num === "number") {
15282
- var int = num < 0 ? -$floor(-num) : $floor(num);
15283
- if (int !== num) {
15284
- var intStr = String(int);
15285
- var dec = $slice.call(str, intStr.length + 1);
15286
- return $replace.call(intStr, sepRegex, "$&_") + "." + $replace.call($replace.call(dec, /([0-9]{3})/g, "$&_"), /_$/, "");
15287
- }
15288
- }
15289
- return $replace.call(str, sepRegex, "$&_");
14788
+ function has(obj, key) {
14789
+ return hasOwn.call(obj, key);
15290
14790
  }
15291
- var utilInspect = require_util_inspect();
15292
- var inspectCustom = utilInspect.custom;
15293
- var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
15294
- var quotes = {
15295
- __proto__: null,
15296
- "double": '"',
15297
- single: "'"
15298
- };
15299
- var quoteREs = {
15300
- __proto__: null,
15301
- "double": /(["\\])/g,
15302
- single: /(['\\])/g
15303
- };
15304
- module.exports = function inspect_(obj, options, depth, seen) {
15305
- var opts = options || {};
15306
- if (has(opts, "quoteStyle") && !has(quotes, opts.quoteStyle)) {
15307
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
15308
- }
15309
- if (has(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
15310
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
15311
- }
15312
- var customInspect = has(opts, "customInspect") ? opts.customInspect : true;
15313
- if (typeof customInspect !== "boolean" && customInspect !== "symbol") {
15314
- throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
14791
+ function toStr(obj) {
14792
+ return objectToString.call(obj);
14793
+ }
14794
+ function nameOf(f) {
14795
+ if (f.name) {
14796
+ return f.name;
15315
14797
  }
15316
- if (has(opts, "indent") && opts.indent !== null && opts.indent !== " " && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
15317
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
14798
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
14799
+ if (m) {
14800
+ return m[1];
15318
14801
  }
15319
- if (has(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") {
15320
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
14802
+ return null;
14803
+ }
14804
+ function indexOf(xs, x) {
14805
+ if (xs.indexOf) {
14806
+ return xs.indexOf(x);
15321
14807
  }
15322
- var numericSeparator = opts.numericSeparator;
15323
- if (typeof obj === "undefined") {
15324
- return "undefined";
14808
+ for (var i = 0, l = xs.length; i < l; i++) {
14809
+ if (xs[i] === x) {
14810
+ return i;
14811
+ }
15325
14812
  }
15326
- if (obj === null) {
15327
- return "null";
14813
+ return -1;
14814
+ }
14815
+ function isMap(x) {
14816
+ if (!mapSize || !x || typeof x !== "object") {
14817
+ return false;
15328
14818
  }
15329
- if (typeof obj === "boolean") {
15330
- return obj ? "true" : "false";
14819
+ try {
14820
+ mapSize.call(x);
14821
+ try {
14822
+ setSize.call(x);
14823
+ } catch (s) {
14824
+ return true;
14825
+ }
14826
+ return x instanceof Map;
14827
+ } catch (e) {
15331
14828
  }
15332
- if (typeof obj === "string") {
15333
- return inspectString(obj, opts);
14829
+ return false;
14830
+ }
14831
+ function isWeakMap(x) {
14832
+ if (!weakMapHas || !x || typeof x !== "object") {
14833
+ return false;
15334
14834
  }
15335
- if (typeof obj === "number") {
15336
- if (obj === 0) {
15337
- return Infinity / obj > 0 ? "0" : "-0";
14835
+ try {
14836
+ weakMapHas.call(x, weakMapHas);
14837
+ try {
14838
+ weakSetHas.call(x, weakSetHas);
14839
+ } catch (s) {
14840
+ return true;
15338
14841
  }
15339
- var str = String(obj);
15340
- return numericSeparator ? addNumericSeparator(obj, str) : str;
15341
- }
15342
- if (typeof obj === "bigint") {
15343
- var bigIntStr = String(obj) + "n";
15344
- return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
14842
+ return x instanceof WeakMap;
14843
+ } catch (e) {
15345
14844
  }
15346
- var maxDepth = typeof opts.depth === "undefined" ? 5 : opts.depth;
15347
- if (typeof depth === "undefined") {
15348
- depth = 0;
14845
+ return false;
14846
+ }
14847
+ function isWeakRef(x) {
14848
+ if (!weakRefDeref || !x || typeof x !== "object") {
14849
+ return false;
15349
14850
  }
15350
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
15351
- return isArray(obj) ? "[Array]" : "[Object]";
14851
+ try {
14852
+ weakRefDeref.call(x);
14853
+ return true;
14854
+ } catch (e) {
15352
14855
  }
15353
- var indent = getIndent(opts, depth);
15354
- if (typeof seen === "undefined") {
15355
- seen = [];
15356
- } else if (indexOf(seen, obj) >= 0) {
15357
- return "[Circular]";
14856
+ return false;
14857
+ }
14858
+ function isSet(x) {
14859
+ if (!setSize || !x || typeof x !== "object") {
14860
+ return false;
15358
14861
  }
15359
- function inspect(value, from, noIndent) {
15360
- if (from) {
15361
- seen = $arrSlice.call(seen);
15362
- seen.push(from);
14862
+ try {
14863
+ setSize.call(x);
14864
+ try {
14865
+ mapSize.call(x);
14866
+ } catch (m) {
14867
+ return true;
15363
14868
  }
15364
- if (noIndent) {
15365
- var newOpts = {
15366
- depth: opts.depth
15367
- };
15368
- if (has(opts, "quoteStyle")) {
15369
- newOpts.quoteStyle = opts.quoteStyle;
15370
- }
15371
- return inspect_(value, newOpts, depth + 1, seen);
14869
+ return x instanceof Set;
14870
+ } catch (e) {
14871
+ }
14872
+ return false;
14873
+ }
14874
+ function isWeakSet(x) {
14875
+ if (!weakSetHas || !x || typeof x !== "object") {
14876
+ return false;
14877
+ }
14878
+ try {
14879
+ weakSetHas.call(x, weakSetHas);
14880
+ try {
14881
+ weakMapHas.call(x, weakMapHas);
14882
+ } catch (s) {
14883
+ return true;
15372
14884
  }
15373
- return inspect_(value, opts, depth + 1, seen);
14885
+ return x instanceof WeakSet;
14886
+ } catch (e) {
15374
14887
  }
15375
- if (typeof obj === "function" && !isRegExp(obj)) {
15376
- var name = nameOf(obj);
15377
- var keys = arrObjKeys(obj, inspect);
15378
- return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
14888
+ return false;
14889
+ }
14890
+ function isElement(x) {
14891
+ if (!x || typeof x !== "object") {
14892
+ return false;
15379
14893
  }
15380
- if (isSymbol(obj)) {
15381
- var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj);
15382
- return typeof obj === "object" && !hasShammedSymbols ? markBoxed(symString) : symString;
14894
+ if (typeof HTMLElement !== "undefined" && x instanceof HTMLElement) {
14895
+ return true;
15383
14896
  }
15384
- if (isElement(obj)) {
15385
- var s = "<" + $toLowerCase.call(String(obj.nodeName));
15386
- var attrs = obj.attributes || [];
15387
- for (var i = 0; i < attrs.length; i++) {
15388
- s += " " + attrs[i].name + "=" + wrapQuotes(quote(attrs[i].value), "double", opts);
15389
- }
15390
- s += ">";
15391
- if (obj.childNodes && obj.childNodes.length) {
15392
- s += "...";
15393
- }
15394
- s += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
15395
- return s;
14897
+ return typeof x.nodeName === "string" && typeof x.getAttribute === "function";
14898
+ }
14899
+ function inspectString(str, opts) {
14900
+ if (str.length > opts.maxStringLength) {
14901
+ var remaining = str.length - opts.maxStringLength;
14902
+ var trailer = "... " + remaining + " more character" + (remaining > 1 ? "s" : "");
14903
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
15396
14904
  }
15397
- if (isArray(obj)) {
15398
- if (obj.length === 0) {
15399
- return "[]";
15400
- }
15401
- var xs = arrObjKeys(obj, inspect);
15402
- if (indent && !singleLineValues(xs)) {
15403
- return "[" + indentedJoin(xs, indent) + "]";
15404
- }
15405
- return "[ " + $join.call(xs, ", ") + " ]";
14905
+ var quoteRE = quoteREs[opts.quoteStyle || "single"];
14906
+ quoteRE.lastIndex = 0;
14907
+ var s = $replace.call($replace.call(str, quoteRE, "\\$1"), /[\x00-\x1f]/g, lowbyte);
14908
+ return wrapQuotes(s, "single", opts);
14909
+ }
14910
+ function lowbyte(c) {
14911
+ var n = c.charCodeAt(0);
14912
+ var x = {
14913
+ 8: "b",
14914
+ 9: "t",
14915
+ 10: "n",
14916
+ 12: "f",
14917
+ 13: "r"
14918
+ }[n];
14919
+ if (x) {
14920
+ return "\\" + x;
15406
14921
  }
15407
- if (isError(obj)) {
15408
- var parts = arrObjKeys(obj, inspect);
15409
- if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) {
15410
- return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect(obj.cause), parts), ", ") + " }";
15411
- }
15412
- if (parts.length === 0) {
15413
- return "[" + String(obj) + "]";
14922
+ return "\\x" + (n < 16 ? "0" : "") + $toUpperCase.call(n.toString(16));
14923
+ }
14924
+ function markBoxed(str) {
14925
+ return "Object(" + str + ")";
14926
+ }
14927
+ function weakCollectionOf(type) {
14928
+ return type + " { ? }";
14929
+ }
14930
+ function collectionOf(type, size, entries, indent) {
14931
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
14932
+ return type + " (" + size + ") {" + joinedEntries + "}";
14933
+ }
14934
+ function singleLineValues(xs) {
14935
+ for (var i = 0; i < xs.length; i++) {
14936
+ if (indexOf(xs[i], "\n") >= 0) {
14937
+ return false;
15414
14938
  }
15415
- return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }";
15416
14939
  }
15417
- if (typeof obj === "object" && customInspect) {
15418
- if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) {
15419
- return utilInspect(obj, { depth: maxDepth - depth });
15420
- } else if (customInspect !== "symbol" && typeof obj.inspect === "function") {
15421
- return obj.inspect();
15422
- }
14940
+ return true;
14941
+ }
14942
+ function getIndent(opts, depth) {
14943
+ var baseIndent;
14944
+ if (opts.indent === " ") {
14945
+ baseIndent = " ";
14946
+ } else if (typeof opts.indent === "number" && opts.indent > 0) {
14947
+ baseIndent = $join.call(Array(opts.indent + 1), " ");
14948
+ } else {
14949
+ return null;
15423
14950
  }
15424
- if (isMap(obj)) {
15425
- var mapParts = [];
15426
- if (mapForEach) {
15427
- mapForEach.call(obj, function(value, key) {
15428
- mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
15429
- });
15430
- }
15431
- return collectionOf("Map", mapSize.call(obj), mapParts, indent);
14951
+ return {
14952
+ base: baseIndent,
14953
+ prev: $join.call(Array(depth + 1), baseIndent)
14954
+ };
14955
+ }
14956
+ function indentedJoin(xs, indent) {
14957
+ if (xs.length === 0) {
14958
+ return "";
15432
14959
  }
15433
- if (isSet(obj)) {
15434
- var setParts = [];
15435
- if (setForEach) {
15436
- setForEach.call(obj, function(value) {
15437
- setParts.push(inspect(value, obj));
15438
- });
14960
+ var lineJoiner = "\n" + indent.prev + indent.base;
14961
+ return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent.prev;
14962
+ }
14963
+ function arrObjKeys(obj, inspect) {
14964
+ var isArr = isArray(obj);
14965
+ var xs = [];
14966
+ if (isArr) {
14967
+ xs.length = obj.length;
14968
+ for (var i = 0; i < obj.length; i++) {
14969
+ xs[i] = has(obj, i) ? inspect(obj[i], obj) : "";
15439
14970
  }
15440
- return collectionOf("Set", setSize.call(obj), setParts, indent);
15441
- }
15442
- if (isWeakMap(obj)) {
15443
- return weakCollectionOf("WeakMap");
15444
14971
  }
15445
- if (isWeakSet(obj)) {
15446
- return weakCollectionOf("WeakSet");
14972
+ var syms = typeof gOPS === "function" ? gOPS(obj) : [];
14973
+ var symMap;
14974
+ if (hasShammedSymbols) {
14975
+ symMap = {};
14976
+ for (var k = 0; k < syms.length; k++) {
14977
+ symMap["$" + syms[k]] = syms[k];
14978
+ }
15447
14979
  }
15448
- if (isWeakRef(obj)) {
15449
- return weakCollectionOf("WeakRef");
14980
+ for (var key in obj) {
14981
+ if (!has(obj, key)) {
14982
+ continue;
14983
+ }
14984
+ if (isArr && String(Number(key)) === key && key < obj.length) {
14985
+ continue;
14986
+ }
14987
+ if (hasShammedSymbols && symMap["$" + key] instanceof Symbol) {
14988
+ continue;
14989
+ } else if ($test.call(/[^\w$]/, key)) {
14990
+ xs.push(inspect(key, obj) + ": " + inspect(obj[key], obj));
14991
+ } else {
14992
+ xs.push(key + ": " + inspect(obj[key], obj));
14993
+ }
15450
14994
  }
15451
- if (isNumber(obj)) {
15452
- return markBoxed(inspect(Number(obj)));
14995
+ if (typeof gOPS === "function") {
14996
+ for (var j = 0; j < syms.length; j++) {
14997
+ if (isEnumerable.call(obj, syms[j])) {
14998
+ xs.push("[" + inspect(syms[j]) + "]: " + inspect(obj[syms[j]], obj));
14999
+ }
15000
+ }
15453
15001
  }
15454
- if (isBigInt(obj)) {
15455
- return markBoxed(inspect(bigIntValueOf.call(obj)));
15002
+ return xs;
15003
+ }
15004
+ }
15005
+ });
15006
+
15007
+ // node_modules/side-channel-list/index.js
15008
+ var require_side_channel_list = __commonJS({
15009
+ "node_modules/side-channel-list/index.js"(exports, module) {
15010
+ "use strict";
15011
+ var inspect = require_object_inspect();
15012
+ var $TypeError = require_type();
15013
+ var listGetNode = function(list, key, isDelete) {
15014
+ var prev = list;
15015
+ var curr;
15016
+ for (; (curr = prev.next) != null; prev = curr) {
15017
+ if (curr.key === key) {
15018
+ prev.next = curr.next;
15019
+ if (!isDelete) {
15020
+ curr.next = /** @type {NonNullable<typeof list.next>} */
15021
+ list.next;
15022
+ list.next = curr;
15023
+ }
15024
+ return curr;
15025
+ }
15456
15026
  }
15457
- if (isBoolean(obj)) {
15458
- return markBoxed(booleanValueOf.call(obj));
15027
+ };
15028
+ var listGet = function(objects, key) {
15029
+ if (!objects) {
15030
+ return void 0;
15459
15031
  }
15460
- if (isString(obj)) {
15461
- return markBoxed(inspect(String(obj)));
15032
+ var node = listGetNode(objects, key);
15033
+ return node && node.value;
15034
+ };
15035
+ var listSet = function(objects, key, value) {
15036
+ var node = listGetNode(objects, key);
15037
+ if (node) {
15038
+ node.value = value;
15039
+ } else {
15040
+ objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
15041
+ {
15042
+ // eslint-disable-line no-param-reassign, no-extra-parens
15043
+ key,
15044
+ next: objects.next,
15045
+ value
15046
+ };
15462
15047
  }
15463
- if (typeof window !== "undefined" && obj === window) {
15464
- return "{ [object Window] }";
15048
+ };
15049
+ var listHas = function(objects, key) {
15050
+ if (!objects) {
15051
+ return false;
15465
15052
  }
15466
- if (typeof globalThis !== "undefined" && obj === globalThis || typeof global !== "undefined" && obj === global) {
15467
- return "{ [object globalThis] }";
15053
+ return !!listGetNode(objects, key);
15054
+ };
15055
+ var listDelete = function(objects, key) {
15056
+ if (objects) {
15057
+ return listGetNode(objects, key, true);
15468
15058
  }
15469
- if (!isDate(obj) && !isRegExp(obj)) {
15470
- var ys = arrObjKeys(obj, inspect);
15471
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
15472
- var protoTag = obj instanceof Object ? "" : "null prototype";
15473
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
15474
- var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
15475
- var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
15476
- if (ys.length === 0) {
15477
- return tag + "{}";
15478
- }
15479
- if (indent) {
15480
- return tag + "{" + indentedJoin(ys, indent) + "}";
15059
+ };
15060
+ module.exports = function getSideChannelList() {
15061
+ var $o;
15062
+ var channel = {
15063
+ assert: function(key) {
15064
+ if (!channel.has(key)) {
15065
+ throw new $TypeError("Side channel does not contain " + inspect(key));
15066
+ }
15067
+ },
15068
+ "delete": function(key) {
15069
+ var root = $o && $o.next;
15070
+ var deletedNode = listDelete($o, key);
15071
+ if (deletedNode && root && root === deletedNode) {
15072
+ $o = void 0;
15073
+ }
15074
+ return !!deletedNode;
15075
+ },
15076
+ get: function(key) {
15077
+ return listGet($o, key);
15078
+ },
15079
+ has: function(key) {
15080
+ return listHas($o, key);
15081
+ },
15082
+ set: function(key, value) {
15083
+ if (!$o) {
15084
+ $o = {
15085
+ next: void 0
15086
+ };
15087
+ }
15088
+ listSet(
15089
+ /** @type {NonNullable<typeof $o>} */
15090
+ $o,
15091
+ key,
15092
+ value
15093
+ );
15481
15094
  }
15482
- return tag + "{ " + $join.call(ys, ", ") + " }";
15483
- }
15484
- return String(obj);
15095
+ };
15096
+ return channel;
15485
15097
  };
15486
- function wrapQuotes(s, defaultStyle, opts) {
15487
- var style = opts.quoteStyle || defaultStyle;
15488
- var quoteChar = quotes[style];
15489
- return quoteChar + s + quoteChar;
15490
- }
15491
- function quote(s) {
15492
- return $replace.call(String(s), /"/g, "&quot;");
15493
- }
15494
- function isArray(obj) {
15495
- return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
15496
- }
15497
- function isDate(obj) {
15498
- return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
15499
- }
15500
- function isRegExp(obj) {
15501
- return toStr(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
15502
- }
15503
- function isError(obj) {
15504
- return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
15505
- }
15506
- function isString(obj) {
15507
- return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
15508
- }
15509
- function isNumber(obj) {
15510
- return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
15098
+ }
15099
+ });
15100
+
15101
+ // node_modules/es-object-atoms/index.js
15102
+ var require_es_object_atoms = __commonJS({
15103
+ "node_modules/es-object-atoms/index.js"(exports, module) {
15104
+ "use strict";
15105
+ module.exports = Object;
15106
+ }
15107
+ });
15108
+
15109
+ // node_modules/es-errors/index.js
15110
+ var require_es_errors = __commonJS({
15111
+ "node_modules/es-errors/index.js"(exports, module) {
15112
+ "use strict";
15113
+ module.exports = Error;
15114
+ }
15115
+ });
15116
+
15117
+ // node_modules/es-errors/eval.js
15118
+ var require_eval = __commonJS({
15119
+ "node_modules/es-errors/eval.js"(exports, module) {
15120
+ "use strict";
15121
+ module.exports = EvalError;
15122
+ }
15123
+ });
15124
+
15125
+ // node_modules/es-errors/range.js
15126
+ var require_range = __commonJS({
15127
+ "node_modules/es-errors/range.js"(exports, module) {
15128
+ "use strict";
15129
+ module.exports = RangeError;
15130
+ }
15131
+ });
15132
+
15133
+ // node_modules/es-errors/ref.js
15134
+ var require_ref = __commonJS({
15135
+ "node_modules/es-errors/ref.js"(exports, module) {
15136
+ "use strict";
15137
+ module.exports = ReferenceError;
15138
+ }
15139
+ });
15140
+
15141
+ // node_modules/es-errors/syntax.js
15142
+ var require_syntax = __commonJS({
15143
+ "node_modules/es-errors/syntax.js"(exports, module) {
15144
+ "use strict";
15145
+ module.exports = SyntaxError;
15146
+ }
15147
+ });
15148
+
15149
+ // node_modules/es-errors/uri.js
15150
+ var require_uri = __commonJS({
15151
+ "node_modules/es-errors/uri.js"(exports, module) {
15152
+ "use strict";
15153
+ module.exports = URIError;
15154
+ }
15155
+ });
15156
+
15157
+ // node_modules/math-intrinsics/abs.js
15158
+ var require_abs = __commonJS({
15159
+ "node_modules/math-intrinsics/abs.js"(exports, module) {
15160
+ "use strict";
15161
+ module.exports = Math.abs;
15162
+ }
15163
+ });
15164
+
15165
+ // node_modules/math-intrinsics/floor.js
15166
+ var require_floor = __commonJS({
15167
+ "node_modules/math-intrinsics/floor.js"(exports, module) {
15168
+ "use strict";
15169
+ module.exports = Math.floor;
15170
+ }
15171
+ });
15172
+
15173
+ // node_modules/math-intrinsics/max.js
15174
+ var require_max = __commonJS({
15175
+ "node_modules/math-intrinsics/max.js"(exports, module) {
15176
+ "use strict";
15177
+ module.exports = Math.max;
15178
+ }
15179
+ });
15180
+
15181
+ // node_modules/math-intrinsics/min.js
15182
+ var require_min = __commonJS({
15183
+ "node_modules/math-intrinsics/min.js"(exports, module) {
15184
+ "use strict";
15185
+ module.exports = Math.min;
15186
+ }
15187
+ });
15188
+
15189
+ // node_modules/math-intrinsics/pow.js
15190
+ var require_pow = __commonJS({
15191
+ "node_modules/math-intrinsics/pow.js"(exports, module) {
15192
+ "use strict";
15193
+ module.exports = Math.pow;
15194
+ }
15195
+ });
15196
+
15197
+ // node_modules/gopd/gOPD.js
15198
+ var require_gOPD = __commonJS({
15199
+ "node_modules/gopd/gOPD.js"(exports, module) {
15200
+ "use strict";
15201
+ module.exports = Object.getOwnPropertyDescriptor;
15202
+ }
15203
+ });
15204
+
15205
+ // node_modules/gopd/index.js
15206
+ var require_gopd = __commonJS({
15207
+ "node_modules/gopd/index.js"(exports, module) {
15208
+ "use strict";
15209
+ var $gOPD = require_gOPD();
15210
+ if ($gOPD) {
15211
+ try {
15212
+ $gOPD([], "length");
15213
+ } catch (e) {
15214
+ $gOPD = null;
15215
+ }
15511
15216
  }
15512
- function isBoolean(obj) {
15513
- return toStr(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
15217
+ module.exports = $gOPD;
15218
+ }
15219
+ });
15220
+
15221
+ // node_modules/es-define-property/index.js
15222
+ var require_es_define_property = __commonJS({
15223
+ "node_modules/es-define-property/index.js"(exports, module) {
15224
+ "use strict";
15225
+ var $defineProperty = Object.defineProperty || false;
15226
+ if ($defineProperty) {
15227
+ try {
15228
+ $defineProperty({}, "a", { value: 1 });
15229
+ } catch (e) {
15230
+ $defineProperty = false;
15231
+ }
15514
15232
  }
15515
- function isSymbol(obj) {
15516
- if (hasShammedSymbols) {
15517
- return obj && typeof obj === "object" && obj instanceof Symbol;
15233
+ module.exports = $defineProperty;
15234
+ }
15235
+ });
15236
+
15237
+ // node_modules/has-symbols/shams.js
15238
+ var require_shams = __commonJS({
15239
+ "node_modules/has-symbols/shams.js"(exports, module) {
15240
+ "use strict";
15241
+ module.exports = function hasSymbols() {
15242
+ if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
15243
+ return false;
15518
15244
  }
15519
- if (typeof obj === "symbol") {
15245
+ if (typeof Symbol.iterator === "symbol") {
15520
15246
  return true;
15521
15247
  }
15522
- if (!obj || typeof obj !== "object" || !symToString) {
15248
+ var obj = {};
15249
+ var sym = Symbol("test");
15250
+ var symObj = Object(sym);
15251
+ if (typeof sym === "string") {
15523
15252
  return false;
15524
15253
  }
15525
- try {
15526
- symToString.call(obj);
15527
- return true;
15528
- } catch (e) {
15254
+ if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
15255
+ return false;
15529
15256
  }
15530
- return false;
15531
- }
15532
- function isBigInt(obj) {
15533
- if (!obj || typeof obj !== "object" || !bigIntValueOf) {
15257
+ if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
15534
15258
  return false;
15535
15259
  }
15536
- try {
15537
- bigIntValueOf.call(obj);
15538
- return true;
15539
- } catch (e) {
15260
+ var symVal = 42;
15261
+ obj[sym] = symVal;
15262
+ for (var _ in obj) {
15263
+ return false;
15540
15264
  }
15541
- return false;
15542
- }
15543
- var hasOwn = Object.prototype.hasOwnProperty || function(key) {
15544
- return key in this;
15545
- };
15546
- function has(obj, key) {
15547
- return hasOwn.call(obj, key);
15548
- }
15549
- function toStr(obj) {
15550
- return objectToString.call(obj);
15551
- }
15552
- function nameOf(f) {
15553
- if (f.name) {
15554
- return f.name;
15265
+ if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
15266
+ return false;
15555
15267
  }
15556
- var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
15557
- if (m) {
15558
- return m[1];
15268
+ if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
15269
+ return false;
15559
15270
  }
15560
- return null;
15561
- }
15562
- function indexOf(xs, x) {
15563
- if (xs.indexOf) {
15564
- return xs.indexOf(x);
15271
+ var syms = Object.getOwnPropertySymbols(obj);
15272
+ if (syms.length !== 1 || syms[0] !== sym) {
15273
+ return false;
15565
15274
  }
15566
- for (var i = 0, l = xs.length; i < l; i++) {
15567
- if (xs[i] === x) {
15568
- return i;
15275
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
15276
+ return false;
15277
+ }
15278
+ if (typeof Object.getOwnPropertyDescriptor === "function") {
15279
+ var descriptor = (
15280
+ /** @type {PropertyDescriptor} */
15281
+ Object.getOwnPropertyDescriptor(obj, sym)
15282
+ );
15283
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) {
15284
+ return false;
15569
15285
  }
15570
15286
  }
15571
- return -1;
15572
- }
15573
- function isMap(x) {
15574
- if (!mapSize || !x || typeof x !== "object") {
15287
+ return true;
15288
+ };
15289
+ }
15290
+ });
15291
+
15292
+ // node_modules/has-symbols/index.js
15293
+ var require_has_symbols = __commonJS({
15294
+ "node_modules/has-symbols/index.js"(exports, module) {
15295
+ "use strict";
15296
+ var origSymbol = typeof Symbol !== "undefined" && Symbol;
15297
+ var hasSymbolSham = require_shams();
15298
+ module.exports = function hasNativeSymbols() {
15299
+ if (typeof origSymbol !== "function") {
15575
15300
  return false;
15576
15301
  }
15577
- try {
15578
- mapSize.call(x);
15579
- try {
15580
- setSize.call(x);
15581
- } catch (s) {
15582
- return true;
15583
- }
15584
- return x instanceof Map;
15585
- } catch (e) {
15302
+ if (typeof Symbol !== "function") {
15303
+ return false;
15586
15304
  }
15587
- return false;
15588
- }
15589
- function isWeakMap(x) {
15590
- if (!weakMapHas || !x || typeof x !== "object") {
15305
+ if (typeof origSymbol("foo") !== "symbol") {
15591
15306
  return false;
15592
15307
  }
15593
- try {
15594
- weakMapHas.call(x, weakMapHas);
15595
- try {
15596
- weakSetHas.call(x, weakSetHas);
15597
- } catch (s) {
15598
- return true;
15308
+ if (typeof Symbol("bar") !== "symbol") {
15309
+ return false;
15310
+ }
15311
+ return hasSymbolSham();
15312
+ };
15313
+ }
15314
+ });
15315
+
15316
+ // node_modules/function-bind/implementation.js
15317
+ var require_implementation = __commonJS({
15318
+ "node_modules/function-bind/implementation.js"(exports, module) {
15319
+ "use strict";
15320
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
15321
+ var toStr = Object.prototype.toString;
15322
+ var max = Math.max;
15323
+ var funcType = "[object Function]";
15324
+ var concatty = function concatty2(a, b) {
15325
+ var arr = [];
15326
+ for (var i = 0; i < a.length; i += 1) {
15327
+ arr[i] = a[i];
15328
+ }
15329
+ for (var j = 0; j < b.length; j += 1) {
15330
+ arr[j + a.length] = b[j];
15331
+ }
15332
+ return arr;
15333
+ };
15334
+ var slicy = function slicy2(arrLike, offset) {
15335
+ var arr = [];
15336
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
15337
+ arr[j] = arrLike[i];
15338
+ }
15339
+ return arr;
15340
+ };
15341
+ var joiny = function(arr, joiner) {
15342
+ var str = "";
15343
+ for (var i = 0; i < arr.length; i += 1) {
15344
+ str += arr[i];
15345
+ if (i + 1 < arr.length) {
15346
+ str += joiner;
15599
15347
  }
15600
- return x instanceof WeakMap;
15601
- } catch (e) {
15602
15348
  }
15603
- return false;
15349
+ return str;
15350
+ };
15351
+ module.exports = function bind(that) {
15352
+ var target = this;
15353
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
15354
+ throw new TypeError(ERROR_MESSAGE + target);
15355
+ }
15356
+ var args = slicy(arguments, 1);
15357
+ var bound;
15358
+ var binder = function() {
15359
+ if (this instanceof bound) {
15360
+ var result = target.apply(
15361
+ this,
15362
+ concatty(args, arguments)
15363
+ );
15364
+ if (Object(result) === result) {
15365
+ return result;
15366
+ }
15367
+ return this;
15368
+ }
15369
+ return target.apply(
15370
+ that,
15371
+ concatty(args, arguments)
15372
+ );
15373
+ };
15374
+ var boundLength = max(0, target.length - args.length);
15375
+ var boundArgs = [];
15376
+ for (var i = 0; i < boundLength; i++) {
15377
+ boundArgs[i] = "$" + i;
15378
+ }
15379
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
15380
+ if (target.prototype) {
15381
+ var Empty = function Empty2() {
15382
+ };
15383
+ Empty.prototype = target.prototype;
15384
+ bound.prototype = new Empty();
15385
+ Empty.prototype = null;
15386
+ }
15387
+ return bound;
15388
+ };
15389
+ }
15390
+ });
15391
+
15392
+ // node_modules/function-bind/index.js
15393
+ var require_function_bind = __commonJS({
15394
+ "node_modules/function-bind/index.js"(exports, module) {
15395
+ "use strict";
15396
+ var implementation = require_implementation();
15397
+ module.exports = Function.prototype.bind || implementation;
15398
+ }
15399
+ });
15400
+
15401
+ // node_modules/call-bind-apply-helpers/functionCall.js
15402
+ var require_functionCall = __commonJS({
15403
+ "node_modules/call-bind-apply-helpers/functionCall.js"(exports, module) {
15404
+ "use strict";
15405
+ module.exports = Function.prototype.call;
15406
+ }
15407
+ });
15408
+
15409
+ // node_modules/call-bind-apply-helpers/functionApply.js
15410
+ var require_functionApply = __commonJS({
15411
+ "node_modules/call-bind-apply-helpers/functionApply.js"(exports, module) {
15412
+ "use strict";
15413
+ module.exports = Function.prototype.apply;
15414
+ }
15415
+ });
15416
+
15417
+ // node_modules/call-bind-apply-helpers/reflectApply.js
15418
+ var require_reflectApply = __commonJS({
15419
+ "node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module) {
15420
+ "use strict";
15421
+ module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
15422
+ }
15423
+ });
15424
+
15425
+ // node_modules/call-bind-apply-helpers/actualApply.js
15426
+ var require_actualApply = __commonJS({
15427
+ "node_modules/call-bind-apply-helpers/actualApply.js"(exports, module) {
15428
+ "use strict";
15429
+ var bind = require_function_bind();
15430
+ var $apply = require_functionApply();
15431
+ var $call = require_functionCall();
15432
+ var $reflectApply = require_reflectApply();
15433
+ module.exports = $reflectApply || bind.call($call, $apply);
15434
+ }
15435
+ });
15436
+
15437
+ // node_modules/call-bind-apply-helpers/index.js
15438
+ var require_call_bind_apply_helpers = __commonJS({
15439
+ "node_modules/call-bind-apply-helpers/index.js"(exports, module) {
15440
+ "use strict";
15441
+ var bind = require_function_bind();
15442
+ var $TypeError = require_type();
15443
+ var $call = require_functionCall();
15444
+ var $actualApply = require_actualApply();
15445
+ module.exports = function callBindBasic(args) {
15446
+ if (args.length < 1 || typeof args[0] !== "function") {
15447
+ throw new $TypeError("a function is required");
15448
+ }
15449
+ return $actualApply(bind, $call, args);
15450
+ };
15451
+ }
15452
+ });
15453
+
15454
+ // node_modules/dunder-proto/get.js
15455
+ var require_get = __commonJS({
15456
+ "node_modules/dunder-proto/get.js"(exports, module) {
15457
+ "use strict";
15458
+ var callBind = require_call_bind_apply_helpers();
15459
+ var gOPD = require_gopd();
15460
+ var hasProtoAccessor;
15461
+ try {
15462
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
15463
+ [].__proto__ === Array.prototype;
15464
+ } catch (e) {
15465
+ if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
15466
+ throw e;
15467
+ }
15604
15468
  }
15605
- function isWeakRef(x) {
15606
- if (!weakRefDeref || !x || typeof x !== "object") {
15607
- return false;
15469
+ var desc = !!hasProtoAccessor && gOPD && gOPD(
15470
+ Object.prototype,
15471
+ /** @type {keyof typeof Object.prototype} */
15472
+ "__proto__"
15473
+ );
15474
+ var $Object = Object;
15475
+ var $getPrototypeOf = $Object.getPrototypeOf;
15476
+ module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? (
15477
+ /** @type {import('./get')} */
15478
+ function getDunder(value) {
15479
+ return $getPrototypeOf(value == null ? value : $Object(value));
15608
15480
  }
15481
+ ) : false;
15482
+ }
15483
+ });
15484
+
15485
+ // node_modules/hasown/index.js
15486
+ var require_hasown = __commonJS({
15487
+ "node_modules/hasown/index.js"(exports, module) {
15488
+ "use strict";
15489
+ var call = Function.prototype.call;
15490
+ var $hasOwn = Object.prototype.hasOwnProperty;
15491
+ var bind = require_function_bind();
15492
+ module.exports = bind.call(call, $hasOwn);
15493
+ }
15494
+ });
15495
+
15496
+ // node_modules/get-intrinsic/index.js
15497
+ var require_get_intrinsic = __commonJS({
15498
+ "node_modules/get-intrinsic/index.js"(exports, module) {
15499
+ "use strict";
15500
+ var undefined2;
15501
+ var $Object = require_es_object_atoms();
15502
+ var $Error = require_es_errors();
15503
+ var $EvalError = require_eval();
15504
+ var $RangeError = require_range();
15505
+ var $ReferenceError = require_ref();
15506
+ var $SyntaxError = require_syntax();
15507
+ var $TypeError = require_type();
15508
+ var $URIError = require_uri();
15509
+ var abs = require_abs();
15510
+ var floor = require_floor();
15511
+ var max = require_max();
15512
+ var min = require_min();
15513
+ var pow = require_pow();
15514
+ var $Function = Function;
15515
+ var getEvalledConstructor = function(expressionSyntax) {
15609
15516
  try {
15610
- weakRefDeref.call(x);
15611
- return true;
15517
+ return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
15612
15518
  } catch (e) {
15613
15519
  }
15614
- return false;
15615
- }
15616
- function isSet(x) {
15617
- if (!setSize || !x || typeof x !== "object") {
15618
- return false;
15619
- }
15520
+ };
15521
+ var $gOPD = require_gopd();
15522
+ var $defineProperty = require_es_define_property();
15523
+ var throwTypeError = function() {
15524
+ throw new $TypeError();
15525
+ };
15526
+ var ThrowTypeError = $gOPD ? function() {
15620
15527
  try {
15621
- setSize.call(x);
15528
+ arguments.callee;
15529
+ return throwTypeError;
15530
+ } catch (calleeThrows) {
15622
15531
  try {
15623
- mapSize.call(x);
15624
- } catch (m) {
15625
- return true;
15532
+ return $gOPD(arguments, "callee").get;
15533
+ } catch (gOPDthrows) {
15534
+ return throwTypeError;
15626
15535
  }
15627
- return x instanceof Set;
15628
- } catch (e) {
15629
- }
15630
- return false;
15631
- }
15632
- function isWeakSet(x) {
15633
- if (!weakSetHas || !x || typeof x !== "object") {
15634
- return false;
15635
15536
  }
15537
+ }() : throwTypeError;
15538
+ var hasSymbols = require_has_symbols()();
15539
+ var getDunderProto = require_get();
15540
+ var getProto = typeof Reflect === "function" && Reflect.getPrototypeOf || $Object.getPrototypeOf || getDunderProto;
15541
+ var $apply = require_functionApply();
15542
+ var $call = require_functionCall();
15543
+ var needsEval = {};
15544
+ var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
15545
+ var INTRINSICS = {
15546
+ __proto__: null,
15547
+ "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
15548
+ "%Array%": Array,
15549
+ "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
15550
+ "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
15551
+ "%AsyncFromSyncIteratorPrototype%": undefined2,
15552
+ "%AsyncFunction%": needsEval,
15553
+ "%AsyncGenerator%": needsEval,
15554
+ "%AsyncGeneratorFunction%": needsEval,
15555
+ "%AsyncIteratorPrototype%": needsEval,
15556
+ "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
15557
+ "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
15558
+ "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
15559
+ "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
15560
+ "%Boolean%": Boolean,
15561
+ "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
15562
+ "%Date%": Date,
15563
+ "%decodeURI%": decodeURI,
15564
+ "%decodeURIComponent%": decodeURIComponent,
15565
+ "%encodeURI%": encodeURI,
15566
+ "%encodeURIComponent%": encodeURIComponent,
15567
+ "%Error%": $Error,
15568
+ "%eval%": eval,
15569
+ // eslint-disable-line no-eval
15570
+ "%EvalError%": $EvalError,
15571
+ "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
15572
+ "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
15573
+ "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
15574
+ "%Function%": $Function,
15575
+ "%GeneratorFunction%": needsEval,
15576
+ "%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
15577
+ "%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
15578
+ "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
15579
+ "%isFinite%": isFinite,
15580
+ "%isNaN%": isNaN,
15581
+ "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
15582
+ "%JSON%": typeof JSON === "object" ? JSON : undefined2,
15583
+ "%Map%": typeof Map === "undefined" ? undefined2 : Map,
15584
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
15585
+ "%Math%": Math,
15586
+ "%Number%": Number,
15587
+ "%Object%": $Object,
15588
+ "%Object.getOwnPropertyDescriptor%": $gOPD,
15589
+ "%parseFloat%": parseFloat,
15590
+ "%parseInt%": parseInt,
15591
+ "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
15592
+ "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
15593
+ "%RangeError%": $RangeError,
15594
+ "%ReferenceError%": $ReferenceError,
15595
+ "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
15596
+ "%RegExp%": RegExp,
15597
+ "%Set%": typeof Set === "undefined" ? undefined2 : Set,
15598
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
15599
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
15600
+ "%String%": String,
15601
+ "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
15602
+ "%Symbol%": hasSymbols ? Symbol : undefined2,
15603
+ "%SyntaxError%": $SyntaxError,
15604
+ "%ThrowTypeError%": ThrowTypeError,
15605
+ "%TypedArray%": TypedArray,
15606
+ "%TypeError%": $TypeError,
15607
+ "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
15608
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
15609
+ "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
15610
+ "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
15611
+ "%URIError%": $URIError,
15612
+ "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
15613
+ "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
15614
+ "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet,
15615
+ "%Function.prototype.call%": $call,
15616
+ "%Function.prototype.apply%": $apply,
15617
+ "%Object.defineProperty%": $defineProperty,
15618
+ "%Math.abs%": abs,
15619
+ "%Math.floor%": floor,
15620
+ "%Math.max%": max,
15621
+ "%Math.min%": min,
15622
+ "%Math.pow%": pow
15623
+ };
15624
+ if (getProto) {
15636
15625
  try {
15637
- weakSetHas.call(x, weakSetHas);
15638
- try {
15639
- weakMapHas.call(x, weakMapHas);
15640
- } catch (s) {
15641
- return true;
15642
- }
15643
- return x instanceof WeakSet;
15626
+ null.error;
15644
15627
  } catch (e) {
15628
+ errorProto = getProto(getProto(e));
15629
+ INTRINSICS["%Error.prototype%"] = errorProto;
15645
15630
  }
15646
- return false;
15647
15631
  }
15648
- function isElement(x) {
15649
- if (!x || typeof x !== "object") {
15650
- return false;
15651
- }
15652
- if (typeof HTMLElement !== "undefined" && x instanceof HTMLElement) {
15653
- return true;
15632
+ var errorProto;
15633
+ var doEval = function doEval2(name) {
15634
+ var value;
15635
+ if (name === "%AsyncFunction%") {
15636
+ value = getEvalledConstructor("async function () {}");
15637
+ } else if (name === "%GeneratorFunction%") {
15638
+ value = getEvalledConstructor("function* () {}");
15639
+ } else if (name === "%AsyncGeneratorFunction%") {
15640
+ value = getEvalledConstructor("async function* () {}");
15641
+ } else if (name === "%AsyncGenerator%") {
15642
+ var fn = doEval2("%AsyncGeneratorFunction%");
15643
+ if (fn) {
15644
+ value = fn.prototype;
15645
+ }
15646
+ } else if (name === "%AsyncIteratorPrototype%") {
15647
+ var gen = doEval2("%AsyncGenerator%");
15648
+ if (gen && getProto) {
15649
+ value = getProto(gen.prototype);
15650
+ }
15654
15651
  }
15655
- return typeof x.nodeName === "string" && typeof x.getAttribute === "function";
15656
- }
15657
- function inspectString(str, opts) {
15658
- if (str.length > opts.maxStringLength) {
15659
- var remaining = str.length - opts.maxStringLength;
15660
- var trailer = "... " + remaining + " more character" + (remaining > 1 ? "s" : "");
15661
- return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
15652
+ INTRINSICS[name] = value;
15653
+ return value;
15654
+ };
15655
+ var LEGACY_ALIASES = {
15656
+ __proto__: null,
15657
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
15658
+ "%ArrayPrototype%": ["Array", "prototype"],
15659
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
15660
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
15661
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
15662
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
15663
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
15664
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
15665
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
15666
+ "%BooleanPrototype%": ["Boolean", "prototype"],
15667
+ "%DataViewPrototype%": ["DataView", "prototype"],
15668
+ "%DatePrototype%": ["Date", "prototype"],
15669
+ "%ErrorPrototype%": ["Error", "prototype"],
15670
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
15671
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
15672
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
15673
+ "%FunctionPrototype%": ["Function", "prototype"],
15674
+ "%Generator%": ["GeneratorFunction", "prototype"],
15675
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
15676
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
15677
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
15678
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
15679
+ "%JSONParse%": ["JSON", "parse"],
15680
+ "%JSONStringify%": ["JSON", "stringify"],
15681
+ "%MapPrototype%": ["Map", "prototype"],
15682
+ "%NumberPrototype%": ["Number", "prototype"],
15683
+ "%ObjectPrototype%": ["Object", "prototype"],
15684
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
15685
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
15686
+ "%PromisePrototype%": ["Promise", "prototype"],
15687
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
15688
+ "%Promise_all%": ["Promise", "all"],
15689
+ "%Promise_reject%": ["Promise", "reject"],
15690
+ "%Promise_resolve%": ["Promise", "resolve"],
15691
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
15692
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
15693
+ "%RegExpPrototype%": ["RegExp", "prototype"],
15694
+ "%SetPrototype%": ["Set", "prototype"],
15695
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
15696
+ "%StringPrototype%": ["String", "prototype"],
15697
+ "%SymbolPrototype%": ["Symbol", "prototype"],
15698
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
15699
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
15700
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
15701
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
15702
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
15703
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
15704
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
15705
+ "%URIErrorPrototype%": ["URIError", "prototype"],
15706
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
15707
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
15708
+ };
15709
+ var bind = require_function_bind();
15710
+ var hasOwn = require_hasown();
15711
+ var $concat = bind.call($call, Array.prototype.concat);
15712
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
15713
+ var $replace = bind.call($call, String.prototype.replace);
15714
+ var $strSlice = bind.call($call, String.prototype.slice);
15715
+ var $exec = bind.call($call, RegExp.prototype.exec);
15716
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
15717
+ var reEscapeChar = /\\(\\)?/g;
15718
+ var stringToPath = function stringToPath2(string) {
15719
+ var first = $strSlice(string, 0, 1);
15720
+ var last = $strSlice(string, -1);
15721
+ if (first === "%" && last !== "%") {
15722
+ throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
15723
+ } else if (last === "%" && first !== "%") {
15724
+ throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
15662
15725
  }
15663
- var quoteRE = quoteREs[opts.quoteStyle || "single"];
15664
- quoteRE.lastIndex = 0;
15665
- var s = $replace.call($replace.call(str, quoteRE, "\\$1"), /[\x00-\x1f]/g, lowbyte);
15666
- return wrapQuotes(s, "single", opts);
15667
- }
15668
- function lowbyte(c) {
15669
- var n = c.charCodeAt(0);
15670
- var x = {
15671
- 8: "b",
15672
- 9: "t",
15673
- 10: "n",
15674
- 12: "f",
15675
- 13: "r"
15676
- }[n];
15677
- if (x) {
15678
- return "\\" + x;
15726
+ var result = [];
15727
+ $replace(string, rePropName, function(match, number, quote, subString) {
15728
+ result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
15729
+ });
15730
+ return result;
15731
+ };
15732
+ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
15733
+ var intrinsicName = name;
15734
+ var alias;
15735
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
15736
+ alias = LEGACY_ALIASES[intrinsicName];
15737
+ intrinsicName = "%" + alias[0] + "%";
15679
15738
  }
15680
- return "\\x" + (n < 16 ? "0" : "") + $toUpperCase.call(n.toString(16));
15681
- }
15682
- function markBoxed(str) {
15683
- return "Object(" + str + ")";
15684
- }
15685
- function weakCollectionOf(type) {
15686
- return type + " { ? }";
15687
- }
15688
- function collectionOf(type, size, entries, indent) {
15689
- var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
15690
- return type + " (" + size + ") {" + joinedEntries + "}";
15691
- }
15692
- function singleLineValues(xs) {
15693
- for (var i = 0; i < xs.length; i++) {
15694
- if (indexOf(xs[i], "\n") >= 0) {
15695
- return false;
15739
+ if (hasOwn(INTRINSICS, intrinsicName)) {
15740
+ var value = INTRINSICS[intrinsicName];
15741
+ if (value === needsEval) {
15742
+ value = doEval(intrinsicName);
15743
+ }
15744
+ if (typeof value === "undefined" && !allowMissing) {
15745
+ throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
15696
15746
  }
15747
+ return {
15748
+ alias,
15749
+ name: intrinsicName,
15750
+ value
15751
+ };
15697
15752
  }
15698
- return true;
15699
- }
15700
- function getIndent(opts, depth) {
15701
- var baseIndent;
15702
- if (opts.indent === " ") {
15703
- baseIndent = " ";
15704
- } else if (typeof opts.indent === "number" && opts.indent > 0) {
15705
- baseIndent = $join.call(Array(opts.indent + 1), " ");
15706
- } else {
15707
- return null;
15753
+ throw new $SyntaxError("intrinsic " + name + " does not exist!");
15754
+ };
15755
+ module.exports = function GetIntrinsic(name, allowMissing) {
15756
+ if (typeof name !== "string" || name.length === 0) {
15757
+ throw new $TypeError("intrinsic name must be a non-empty string");
15708
15758
  }
15709
- return {
15710
- base: baseIndent,
15711
- prev: $join.call(Array(depth + 1), baseIndent)
15712
- };
15713
- }
15714
- function indentedJoin(xs, indent) {
15715
- if (xs.length === 0) {
15716
- return "";
15759
+ if (arguments.length > 1 && typeof allowMissing !== "boolean") {
15760
+ throw new $TypeError('"allowMissing" argument must be a boolean');
15717
15761
  }
15718
- var lineJoiner = "\n" + indent.prev + indent.base;
15719
- return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent.prev;
15720
- }
15721
- function arrObjKeys(obj, inspect) {
15722
- var isArr = isArray(obj);
15723
- var xs = [];
15724
- if (isArr) {
15725
- xs.length = obj.length;
15726
- for (var i = 0; i < obj.length; i++) {
15727
- xs[i] = has(obj, i) ? inspect(obj[i], obj) : "";
15728
- }
15762
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
15763
+ throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
15729
15764
  }
15730
- var syms = typeof gOPS === "function" ? gOPS(obj) : [];
15731
- var symMap;
15732
- if (hasShammedSymbols) {
15733
- symMap = {};
15734
- for (var k = 0; k < syms.length; k++) {
15735
- symMap["$" + syms[k]] = syms[k];
15736
- }
15765
+ var parts = stringToPath(name);
15766
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
15767
+ var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
15768
+ var intrinsicRealName = intrinsic.name;
15769
+ var value = intrinsic.value;
15770
+ var skipFurtherCaching = false;
15771
+ var alias = intrinsic.alias;
15772
+ if (alias) {
15773
+ intrinsicBaseName = alias[0];
15774
+ $spliceApply(parts, $concat([0, 1], alias));
15737
15775
  }
15738
- for (var key in obj) {
15739
- if (!has(obj, key)) {
15740
- continue;
15741
- }
15742
- if (isArr && String(Number(key)) === key && key < obj.length) {
15743
- continue;
15776
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
15777
+ var part = parts[i];
15778
+ var first = $strSlice(part, 0, 1);
15779
+ var last = $strSlice(part, -1);
15780
+ if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
15781
+ throw new $SyntaxError("property names with quotes must have matching quotes");
15744
15782
  }
15745
- if (hasShammedSymbols && symMap["$" + key] instanceof Symbol) {
15746
- continue;
15747
- } else if ($test.call(/[^\w$]/, key)) {
15748
- xs.push(inspect(key, obj) + ": " + inspect(obj[key], obj));
15749
- } else {
15750
- xs.push(key + ": " + inspect(obj[key], obj));
15783
+ if (part === "constructor" || !isOwn) {
15784
+ skipFurtherCaching = true;
15751
15785
  }
15752
- }
15753
- if (typeof gOPS === "function") {
15754
- for (var j = 0; j < syms.length; j++) {
15755
- if (isEnumerable.call(obj, syms[j])) {
15756
- xs.push("[" + inspect(syms[j]) + "]: " + inspect(obj[syms[j]], obj));
15786
+ intrinsicBaseName += "." + part;
15787
+ intrinsicRealName = "%" + intrinsicBaseName + "%";
15788
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
15789
+ value = INTRINSICS[intrinsicRealName];
15790
+ } else if (value != null) {
15791
+ if (!(part in value)) {
15792
+ if (!allowMissing) {
15793
+ throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
15794
+ }
15795
+ return void 0;
15796
+ }
15797
+ if ($gOPD && i + 1 >= parts.length) {
15798
+ var desc = $gOPD(value, part);
15799
+ isOwn = !!desc;
15800
+ if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
15801
+ value = desc.get;
15802
+ } else {
15803
+ value = value[part];
15804
+ }
15805
+ } else {
15806
+ isOwn = hasOwn(value, part);
15807
+ value = value[part];
15808
+ }
15809
+ if (isOwn && !skipFurtherCaching) {
15810
+ INTRINSICS[intrinsicRealName] = value;
15757
15811
  }
15758
15812
  }
15759
15813
  }
15760
- return xs;
15761
- }
15814
+ return value;
15815
+ };
15762
15816
  }
15763
15817
  });
15764
15818
 
15765
- // node_modules/side-channel/index.js
15766
- var require_side_channel = __commonJS({
15767
- "node_modules/side-channel/index.js"(exports, module) {
15819
+ // node_modules/call-bound/index.js
15820
+ var require_call_bound = __commonJS({
15821
+ "node_modules/call-bound/index.js"(exports, module) {
15822
+ "use strict";
15823
+ var GetIntrinsic = require_get_intrinsic();
15824
+ var callBindBasic = require_call_bind_apply_helpers();
15825
+ var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
15826
+ module.exports = function callBoundIntrinsic(name, allowMissing) {
15827
+ var intrinsic = (
15828
+ /** @type {Parameters<typeof callBindBasic>[0][0]} */
15829
+ GetIntrinsic(name, !!allowMissing)
15830
+ );
15831
+ if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
15832
+ return callBindBasic([intrinsic]);
15833
+ }
15834
+ return intrinsic;
15835
+ };
15836
+ }
15837
+ });
15838
+
15839
+ // node_modules/side-channel-map/index.js
15840
+ var require_side_channel_map = __commonJS({
15841
+ "node_modules/side-channel-map/index.js"(exports, module) {
15768
15842
  "use strict";
15769
15843
  var GetIntrinsic = require_get_intrinsic();
15770
- var callBound = require_callBound();
15844
+ var callBound = require_call_bound();
15771
15845
  var inspect = require_object_inspect();
15772
15846
  var $TypeError = require_type();
15773
- var $WeakMap = GetIntrinsic("%WeakMap%", true);
15774
15847
  var $Map = GetIntrinsic("%Map%", true);
15775
- var $weakMapGet = callBound("WeakMap.prototype.get", true);
15776
- var $weakMapSet = callBound("WeakMap.prototype.set", true);
15777
- var $weakMapHas = callBound("WeakMap.prototype.has", true);
15778
15848
  var $mapGet = callBound("Map.prototype.get", true);
15779
15849
  var $mapSet = callBound("Map.prototype.set", true);
15780
15850
  var $mapHas = callBound("Map.prototype.has", true);
15781
- var listGetNode = function(list, key) {
15782
- var prev = list;
15783
- var curr;
15784
- for (; (curr = prev.next) !== null; prev = curr) {
15785
- if (curr.key === key) {
15786
- prev.next = curr.next;
15787
- curr.next = /** @type {NonNullable<typeof list.next>} */
15788
- list.next;
15789
- list.next = curr;
15790
- return curr;
15791
- }
15792
- }
15793
- };
15794
- var listGet = function(objects, key) {
15795
- var node = listGetNode(objects, key);
15796
- return node && node.value;
15797
- };
15798
- var listSet = function(objects, key, value) {
15799
- var node = listGetNode(objects, key);
15800
- if (node) {
15801
- node.value = value;
15802
- } else {
15803
- objects.next = /** @type {import('.').ListNode<typeof value>} */
15804
- {
15805
- // eslint-disable-line no-param-reassign, no-extra-parens
15806
- key,
15807
- next: objects.next,
15808
- value
15809
- };
15810
- }
15811
- };
15812
- var listHas = function(objects, key) {
15813
- return !!listGetNode(objects, key);
15814
- };
15815
- module.exports = function getSideChannel() {
15816
- var $wm;
15851
+ var $mapDelete = callBound("Map.prototype.delete", true);
15852
+ var $mapSize = callBound("Map.prototype.size", true);
15853
+ module.exports = !!$Map && /** @type {Exclude<import('.'), false>} */
15854
+ function getSideChannelMap() {
15817
15855
  var $m;
15818
- var $o;
15819
15856
  var channel = {
15820
15857
  assert: function(key) {
15821
15858
  if (!channel.has(key)) {
15822
15859
  throw new $TypeError("Side channel does not contain " + inspect(key));
15823
15860
  }
15824
15861
  },
15825
- get: function(key) {
15826
- if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
15827
- if ($wm) {
15828
- return $weakMapGet($wm, key);
15829
- }
15830
- } else if ($Map) {
15831
- if ($m) {
15832
- return $mapGet($m, key);
15833
- }
15834
- } else {
15835
- if ($o) {
15836
- return listGet($o, key);
15862
+ "delete": function(key) {
15863
+ if ($m) {
15864
+ var result = $mapDelete($m, key);
15865
+ if ($mapSize($m) === 0) {
15866
+ $m = void 0;
15837
15867
  }
15868
+ return result;
15869
+ }
15870
+ return false;
15871
+ },
15872
+ get: function(key) {
15873
+ if ($m) {
15874
+ return $mapGet($m, key);
15838
15875
  }
15839
15876
  },
15840
15877
  has: function(key) {
15841
- if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
15842
- if ($wm) {
15843
- return $weakMapHas($wm, key);
15844
- }
15845
- } else if ($Map) {
15846
- if ($m) {
15847
- return $mapHas($m, key);
15848
- }
15849
- } else {
15850
- if ($o) {
15851
- return listHas($o, key);
15852
- }
15878
+ if ($m) {
15879
+ return $mapHas($m, key);
15853
15880
  }
15854
15881
  return false;
15855
15882
  },
15856
15883
  set: function(key, value) {
15857
- if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
15858
- if (!$wm) {
15859
- $wm = new $WeakMap();
15884
+ if (!$m) {
15885
+ $m = new $Map();
15886
+ }
15887
+ $mapSet($m, key, value);
15888
+ }
15889
+ };
15890
+ return channel;
15891
+ };
15892
+ }
15893
+ });
15894
+
15895
+ // node_modules/side-channel-weakmap/index.js
15896
+ var require_side_channel_weakmap = __commonJS({
15897
+ "node_modules/side-channel-weakmap/index.js"(exports, module) {
15898
+ "use strict";
15899
+ var GetIntrinsic = require_get_intrinsic();
15900
+ var callBound = require_call_bound();
15901
+ var inspect = require_object_inspect();
15902
+ var getSideChannelMap = require_side_channel_map();
15903
+ var $TypeError = require_type();
15904
+ var $WeakMap = GetIntrinsic("%WeakMap%", true);
15905
+ var $weakMapGet = callBound("WeakMap.prototype.get", true);
15906
+ var $weakMapSet = callBound("WeakMap.prototype.set", true);
15907
+ var $weakMapHas = callBound("WeakMap.prototype.has", true);
15908
+ var $weakMapDelete = callBound("WeakMap.prototype.delete", true);
15909
+ module.exports = $WeakMap ? (
15910
+ /** @type {Exclude<import('.'), false>} */
15911
+ function getSideChannelWeakMap() {
15912
+ var $wm;
15913
+ var $m;
15914
+ var channel = {
15915
+ assert: function(key) {
15916
+ if (!channel.has(key)) {
15917
+ throw new $TypeError("Side channel does not contain " + inspect(key));
15860
15918
  }
15861
- $weakMapSet($wm, key, value);
15862
- } else if ($Map) {
15863
- if (!$m) {
15864
- $m = new $Map();
15919
+ },
15920
+ "delete": function(key) {
15921
+ if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
15922
+ if ($wm) {
15923
+ return $weakMapDelete($wm, key);
15924
+ }
15925
+ } else if (getSideChannelMap) {
15926
+ if ($m) {
15927
+ return $m["delete"](key);
15928
+ }
15865
15929
  }
15866
- $mapSet($m, key, value);
15867
- } else {
15868
- if (!$o) {
15869
- $o = { key: {}, next: null };
15930
+ return false;
15931
+ },
15932
+ get: function(key) {
15933
+ if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
15934
+ if ($wm) {
15935
+ return $weakMapGet($wm, key);
15936
+ }
15937
+ }
15938
+ return $m && $m.get(key);
15939
+ },
15940
+ has: function(key) {
15941
+ if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
15942
+ if ($wm) {
15943
+ return $weakMapHas($wm, key);
15944
+ }
15945
+ }
15946
+ return !!$m && $m.has(key);
15947
+ },
15948
+ set: function(key, value) {
15949
+ if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
15950
+ if (!$wm) {
15951
+ $wm = new $WeakMap();
15952
+ }
15953
+ $weakMapSet($wm, key, value);
15954
+ } else if (getSideChannelMap) {
15955
+ if (!$m) {
15956
+ $m = getSideChannelMap();
15957
+ }
15958
+ $m.set(key, value);
15870
15959
  }
15871
- listSet($o, key, value);
15872
15960
  }
15961
+ };
15962
+ return channel;
15963
+ }
15964
+ ) : getSideChannelMap;
15965
+ }
15966
+ });
15967
+
15968
+ // node_modules/side-channel/index.js
15969
+ var require_side_channel = __commonJS({
15970
+ "node_modules/side-channel/index.js"(exports, module) {
15971
+ "use strict";
15972
+ var $TypeError = require_type();
15973
+ var inspect = require_object_inspect();
15974
+ var getSideChannelList = require_side_channel_list();
15975
+ var getSideChannelMap = require_side_channel_map();
15976
+ var getSideChannelWeakMap = require_side_channel_weakmap();
15977
+ var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
15978
+ module.exports = function getSideChannel() {
15979
+ var $channelData;
15980
+ var channel = {
15981
+ assert: function(key) {
15982
+ if (!channel.has(key)) {
15983
+ throw new $TypeError("Side channel does not contain " + inspect(key));
15984
+ }
15985
+ },
15986
+ "delete": function(key) {
15987
+ return !!$channelData && $channelData["delete"](key);
15988
+ },
15989
+ get: function(key) {
15990
+ return $channelData && $channelData.get(key);
15991
+ },
15992
+ has: function(key) {
15993
+ return !!$channelData && $channelData.has(key);
15994
+ },
15995
+ set: function(key, value) {
15996
+ if (!$channelData) {
15997
+ $channelData = makeChannel();
15998
+ }
15999
+ $channelData.set(key, value);
15873
16000
  }
15874
16001
  };
15875
16002
  return channel;
@@ -18136,20 +18263,29 @@ var require_path_to_regexp = __commonJS({
18136
18263
  });
18137
18264
  return new RegExp(path.join("|"), flags);
18138
18265
  }
18266
+ if (typeof path !== "string") {
18267
+ throw new TypeError("path must be a string, array of strings, or regular expression");
18268
+ }
18139
18269
  path = path.replace(
18140
18270
  /\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,
18141
18271
  function(match, slash, format, key, capture, star, optional, offset) {
18142
- pos = offset + match.length;
18143
18272
  if (match[0] === "\\") {
18144
18273
  backtrack += match;
18274
+ pos += 2;
18145
18275
  return match;
18146
18276
  }
18147
18277
  if (match === ".") {
18148
18278
  backtrack += "\\.";
18149
18279
  extraOffset += 1;
18280
+ pos += 1;
18150
18281
  return "\\.";
18151
18282
  }
18152
- backtrack = slash || format ? "" : path.slice(pos, offset);
18283
+ if (slash || format) {
18284
+ backtrack = "";
18285
+ } else {
18286
+ backtrack += path.slice(pos, offset);
18287
+ }
18288
+ pos = offset + match.length;
18153
18289
  if (match === "*") {
18154
18290
  extraOffset += 3;
18155
18291
  return "(.*)";