@magda/connector-sdk 4.2.4 → 5.0.0-alpha.1

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.
Files changed (2) hide show
  1. package/dist/index.js +1420 -320
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -21387,9 +21387,9 @@ var require_bytes = __commonJS({
21387
21387
  }
21388
21388
  });
21389
21389
 
21390
- // ../../node_modules/content-type/index.js
21390
+ // ../../node_modules/body-parser/node_modules/content-type/index.js
21391
21391
  var require_content_type = __commonJS({
21392
- "../../node_modules/content-type/index.js"(exports) {
21392
+ "../../node_modules/body-parser/node_modules/content-type/index.js"(exports) {
21393
21393
  "use strict";
21394
21394
  init_cjs_shim();
21395
21395
  var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g;
@@ -21432,7 +21432,7 @@ var require_content_type = __commonJS({
21432
21432
  throw new TypeError("argument string is required to be a string");
21433
21433
  }
21434
21434
  var index = header.indexOf(";");
21435
- var type = index !== -1 ? header.substr(0, index).trim() : header.trim();
21435
+ var type = index !== -1 ? header.slice(0, index).trim() : header.trim();
21436
21436
  if (!TYPE_REGEXP.test(type)) {
21437
21437
  throw new TypeError("invalid media type");
21438
21438
  }
@@ -21449,8 +21449,11 @@ var require_content_type = __commonJS({
21449
21449
  index += match[0].length;
21450
21450
  key = match[1].toLowerCase();
21451
21451
  value = match[2];
21452
- if (value[0] === '"') {
21453
- value = value.substr(1, value.length - 2).replace(QESC_REGEXP, "$1");
21452
+ if (value.charCodeAt(0) === 34) {
21453
+ value = value.slice(1, -1);
21454
+ if (value.indexOf("\\") !== -1) {
21455
+ value = value.replace(QESC_REGEXP, "$1");
21456
+ }
21454
21457
  }
21455
21458
  obj.parameters[key] = value;
21456
21459
  }
@@ -22476,6 +22479,11 @@ var require_raw_body = __commonJS({
22476
22479
  function getRawBody(stream, options, callback) {
22477
22480
  var done = callback;
22478
22481
  var opts = options || {};
22482
+ if (stream === void 0) {
22483
+ throw new TypeError("argument stream is required");
22484
+ } else if (typeof stream !== "object" || stream === null || typeof stream.on !== "function") {
22485
+ throw new TypeError("argument stream must be a stream");
22486
+ }
22479
22487
  if (options === true || typeof options === "string") {
22480
22488
  opts = {
22481
22489
  encoding: options
@@ -31460,6 +31468,8 @@ var require_json = __commonJS({
31460
31468
  var typeis = require_type_is();
31461
31469
  module.exports = json;
31462
31470
  var FIRST_CHAR_REGEXP = /^[\x20\x09\x0a\x0d]*([^\x20\x09\x0a\x0d])/;
31471
+ var JSON_SYNTAX_CHAR = "#";
31472
+ var JSON_SYNTAX_REGEXP = /#+/g;
31463
31473
  function json(options) {
31464
31474
  var opts = options || {};
31465
31475
  var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit;
@@ -31530,13 +31540,21 @@ var require_json = __commonJS({
31530
31540
  }
31531
31541
  function createStrictSyntaxError(str, char) {
31532
31542
  var index = str.indexOf(char);
31533
- var partial = index !== -1 ? str.substring(0, index) + "#" : "";
31543
+ var partial = "";
31544
+ if (index !== -1) {
31545
+ partial = str.substring(0, index) + JSON_SYNTAX_CHAR;
31546
+ for (var i = index + 1; i < str.length; i++) {
31547
+ partial += JSON_SYNTAX_CHAR;
31548
+ }
31549
+ }
31534
31550
  try {
31535
31551
  JSON.parse(partial);
31536
31552
  throw new SyntaxError("strict violation");
31537
31553
  } catch (e) {
31538
31554
  return normalizeJsonSyntaxError(e, {
31539
- message: e.message.replace("#", char),
31555
+ message: e.message.replace(JSON_SYNTAX_REGEXP, function(placeholder) {
31556
+ return str.substring(index, index + placeholder.length);
31557
+ }),
31540
31558
  stack: e.stack
31541
31559
  });
31542
31560
  }
@@ -31696,9 +31714,72 @@ var require_text = __commonJS({
31696
31714
  }
31697
31715
  });
31698
31716
 
31699
- // ../../node_modules/side-channel/node_modules/has-symbols/shams.js
31717
+ // ../../node_modules/es-errors/index.js
31718
+ var require_es_errors = __commonJS({
31719
+ "../../node_modules/es-errors/index.js"(exports, module) {
31720
+ "use strict";
31721
+ init_cjs_shim();
31722
+ module.exports = Error;
31723
+ }
31724
+ });
31725
+
31726
+ // ../../node_modules/es-errors/eval.js
31727
+ var require_eval = __commonJS({
31728
+ "../../node_modules/es-errors/eval.js"(exports, module) {
31729
+ "use strict";
31730
+ init_cjs_shim();
31731
+ module.exports = EvalError;
31732
+ }
31733
+ });
31734
+
31735
+ // ../../node_modules/es-errors/range.js
31736
+ var require_range2 = __commonJS({
31737
+ "../../node_modules/es-errors/range.js"(exports, module) {
31738
+ "use strict";
31739
+ init_cjs_shim();
31740
+ module.exports = RangeError;
31741
+ }
31742
+ });
31743
+
31744
+ // ../../node_modules/es-errors/ref.js
31745
+ var require_ref = __commonJS({
31746
+ "../../node_modules/es-errors/ref.js"(exports, module) {
31747
+ "use strict";
31748
+ init_cjs_shim();
31749
+ module.exports = ReferenceError;
31750
+ }
31751
+ });
31752
+
31753
+ // ../../node_modules/es-errors/syntax.js
31754
+ var require_syntax = __commonJS({
31755
+ "../../node_modules/es-errors/syntax.js"(exports, module) {
31756
+ "use strict";
31757
+ init_cjs_shim();
31758
+ module.exports = SyntaxError;
31759
+ }
31760
+ });
31761
+
31762
+ // ../../node_modules/es-errors/type.js
31763
+ var require_type = __commonJS({
31764
+ "../../node_modules/es-errors/type.js"(exports, module) {
31765
+ "use strict";
31766
+ init_cjs_shim();
31767
+ module.exports = TypeError;
31768
+ }
31769
+ });
31770
+
31771
+ // ../../node_modules/es-errors/uri.js
31772
+ var require_uri = __commonJS({
31773
+ "../../node_modules/es-errors/uri.js"(exports, module) {
31774
+ "use strict";
31775
+ init_cjs_shim();
31776
+ module.exports = URIError;
31777
+ }
31778
+ });
31779
+
31780
+ // ../../node_modules/has-symbols/shams.js
31700
31781
  var require_shams = __commonJS({
31701
- "../../node_modules/side-channel/node_modules/has-symbols/shams.js"(exports, module) {
31782
+ "../../node_modules/has-symbols/shams.js"(exports, module) {
31702
31783
  "use strict";
31703
31784
  init_cjs_shim();
31704
31785
  module.exports = function hasSymbols() {
@@ -31749,12 +31830,12 @@ var require_shams = __commonJS({
31749
31830
  }
31750
31831
  });
31751
31832
 
31752
- // ../../node_modules/side-channel/node_modules/has-symbols/index.js
31833
+ // ../../node_modules/has-symbols/index.js
31753
31834
  var require_has_symbols = __commonJS({
31754
- "../../node_modules/side-channel/node_modules/has-symbols/index.js"(exports, module) {
31835
+ "../../node_modules/has-symbols/index.js"(exports, module) {
31755
31836
  "use strict";
31756
31837
  init_cjs_shim();
31757
- var origSymbol = global.Symbol;
31838
+ var origSymbol = typeof Symbol !== "undefined" && Symbol;
31758
31839
  var hasSymbolSham = require_shams();
31759
31840
  module.exports = function hasNativeSymbols() {
31760
31841
  if (typeof origSymbol !== "function") {
@@ -31774,45 +31855,86 @@ var require_has_symbols = __commonJS({
31774
31855
  }
31775
31856
  });
31776
31857
 
31777
- // ../../node_modules/function-bind/implementation.js
31858
+ // ../../node_modules/has-proto/index.js
31859
+ var require_has_proto = __commonJS({
31860
+ "../../node_modules/has-proto/index.js"(exports, module) {
31861
+ "use strict";
31862
+ init_cjs_shim();
31863
+ var test = {
31864
+ foo: {}
31865
+ };
31866
+ var $Object = Object;
31867
+ module.exports = function hasProto() {
31868
+ return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
31869
+ };
31870
+ }
31871
+ });
31872
+
31873
+ // ../../node_modules/qs/node_modules/function-bind/implementation.js
31778
31874
  var require_implementation = __commonJS({
31779
- "../../node_modules/function-bind/implementation.js"(exports, module) {
31875
+ "../../node_modules/qs/node_modules/function-bind/implementation.js"(exports, module) {
31780
31876
  "use strict";
31781
31877
  init_cjs_shim();
31782
31878
  var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
31783
- var slice = Array.prototype.slice;
31784
31879
  var toStr = Object.prototype.toString;
31880
+ var max = Math.max;
31785
31881
  var funcType = "[object Function]";
31882
+ var concatty = function concatty2(a, b) {
31883
+ var arr = [];
31884
+ for (var i = 0; i < a.length; i += 1) {
31885
+ arr[i] = a[i];
31886
+ }
31887
+ for (var j = 0; j < b.length; j += 1) {
31888
+ arr[j + a.length] = b[j];
31889
+ }
31890
+ return arr;
31891
+ };
31892
+ var slicy = function slicy2(arrLike, offset) {
31893
+ var arr = [];
31894
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
31895
+ arr[j] = arrLike[i];
31896
+ }
31897
+ return arr;
31898
+ };
31899
+ var joiny = function(arr, joiner) {
31900
+ var str = "";
31901
+ for (var i = 0; i < arr.length; i += 1) {
31902
+ str += arr[i];
31903
+ if (i + 1 < arr.length) {
31904
+ str += joiner;
31905
+ }
31906
+ }
31907
+ return str;
31908
+ };
31786
31909
  module.exports = function bind(that) {
31787
31910
  var target = this;
31788
- if (typeof target !== "function" || toStr.call(target) !== funcType) {
31911
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
31789
31912
  throw new TypeError(ERROR_MESSAGE + target);
31790
31913
  }
31791
- var args = slice.call(arguments, 1);
31914
+ var args = slicy(arguments, 1);
31792
31915
  var bound;
31793
31916
  var binder = function() {
31794
31917
  if (this instanceof bound) {
31795
31918
  var result = target.apply(
31796
31919
  this,
31797
- args.concat(slice.call(arguments))
31920
+ concatty(args, arguments)
31798
31921
  );
31799
31922
  if (Object(result) === result) {
31800
31923
  return result;
31801
31924
  }
31802
31925
  return this;
31803
- } else {
31804
- return target.apply(
31805
- that,
31806
- args.concat(slice.call(arguments))
31807
- );
31808
31926
  }
31927
+ return target.apply(
31928
+ that,
31929
+ concatty(args, arguments)
31930
+ );
31809
31931
  };
31810
- var boundLength = Math.max(0, target.length - args.length);
31932
+ var boundLength = max(0, target.length - args.length);
31811
31933
  var boundArgs = [];
31812
31934
  for (var i = 0; i < boundLength; i++) {
31813
- boundArgs.push("$" + i);
31935
+ boundArgs[i] = "$" + i;
31814
31936
  }
31815
- bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
31937
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
31816
31938
  if (target.prototype) {
31817
31939
  var Empty = function Empty2() {
31818
31940
  };
@@ -31825,9 +31947,9 @@ var require_implementation = __commonJS({
31825
31947
  }
31826
31948
  });
31827
31949
 
31828
- // ../../node_modules/function-bind/index.js
31950
+ // ../../node_modules/qs/node_modules/function-bind/index.js
31829
31951
  var require_function_bind = __commonJS({
31830
- "../../node_modules/function-bind/index.js"(exports, module) {
31952
+ "../../node_modules/qs/node_modules/function-bind/index.js"(exports, module) {
31831
31953
  "use strict";
31832
31954
  init_cjs_shim();
31833
31955
  var implementation = require_implementation();
@@ -31835,25 +31957,119 @@ var require_function_bind = __commonJS({
31835
31957
  }
31836
31958
  });
31837
31959
 
31838
- // ../../node_modules/has/src/index.js
31839
- var require_src3 = __commonJS({
31840
- "../../node_modules/has/src/index.js"(exports, module) {
31960
+ // ../../node_modules/hasown/node_modules/function-bind/implementation.js
31961
+ var require_implementation2 = __commonJS({
31962
+ "../../node_modules/hasown/node_modules/function-bind/implementation.js"(exports, module) {
31841
31963
  "use strict";
31842
31964
  init_cjs_shim();
31843
- var bind = require_function_bind();
31844
- module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
31965
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
31966
+ var toStr = Object.prototype.toString;
31967
+ var max = Math.max;
31968
+ var funcType = "[object Function]";
31969
+ var concatty = function concatty2(a, b) {
31970
+ var arr = [];
31971
+ for (var i = 0; i < a.length; i += 1) {
31972
+ arr[i] = a[i];
31973
+ }
31974
+ for (var j = 0; j < b.length; j += 1) {
31975
+ arr[j + a.length] = b[j];
31976
+ }
31977
+ return arr;
31978
+ };
31979
+ var slicy = function slicy2(arrLike, offset) {
31980
+ var arr = [];
31981
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
31982
+ arr[j] = arrLike[i];
31983
+ }
31984
+ return arr;
31985
+ };
31986
+ var joiny = function(arr, joiner) {
31987
+ var str = "";
31988
+ for (var i = 0; i < arr.length; i += 1) {
31989
+ str += arr[i];
31990
+ if (i + 1 < arr.length) {
31991
+ str += joiner;
31992
+ }
31993
+ }
31994
+ return str;
31995
+ };
31996
+ module.exports = function bind(that) {
31997
+ var target = this;
31998
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
31999
+ throw new TypeError(ERROR_MESSAGE + target);
32000
+ }
32001
+ var args = slicy(arguments, 1);
32002
+ var bound;
32003
+ var binder = function() {
32004
+ if (this instanceof bound) {
32005
+ var result = target.apply(
32006
+ this,
32007
+ concatty(args, arguments)
32008
+ );
32009
+ if (Object(result) === result) {
32010
+ return result;
32011
+ }
32012
+ return this;
32013
+ }
32014
+ return target.apply(
32015
+ that,
32016
+ concatty(args, arguments)
32017
+ );
32018
+ };
32019
+ var boundLength = max(0, target.length - args.length);
32020
+ var boundArgs = [];
32021
+ for (var i = 0; i < boundLength; i++) {
32022
+ boundArgs[i] = "$" + i;
32023
+ }
32024
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
32025
+ if (target.prototype) {
32026
+ var Empty = function Empty2() {
32027
+ };
32028
+ Empty.prototype = target.prototype;
32029
+ bound.prototype = new Empty();
32030
+ Empty.prototype = null;
32031
+ }
32032
+ return bound;
32033
+ };
31845
32034
  }
31846
32035
  });
31847
32036
 
31848
- // ../../node_modules/side-channel/node_modules/get-intrinsic/index.js
32037
+ // ../../node_modules/hasown/node_modules/function-bind/index.js
32038
+ var require_function_bind2 = __commonJS({
32039
+ "../../node_modules/hasown/node_modules/function-bind/index.js"(exports, module) {
32040
+ "use strict";
32041
+ init_cjs_shim();
32042
+ var implementation = require_implementation2();
32043
+ module.exports = Function.prototype.bind || implementation;
32044
+ }
32045
+ });
32046
+
32047
+ // ../../node_modules/hasown/index.js
32048
+ var require_hasown = __commonJS({
32049
+ "../../node_modules/hasown/index.js"(exports, module) {
32050
+ "use strict";
32051
+ init_cjs_shim();
32052
+ var call = Function.prototype.call;
32053
+ var $hasOwn = Object.prototype.hasOwnProperty;
32054
+ var bind = require_function_bind2();
32055
+ module.exports = bind.call(call, $hasOwn);
32056
+ }
32057
+ });
32058
+
32059
+ // ../../node_modules/qs/node_modules/get-intrinsic/index.js
31849
32060
  var require_get_intrinsic = __commonJS({
31850
- "../../node_modules/side-channel/node_modules/get-intrinsic/index.js"(exports, module) {
32061
+ "../../node_modules/qs/node_modules/get-intrinsic/index.js"(exports, module) {
31851
32062
  "use strict";
31852
32063
  init_cjs_shim();
31853
32064
  var undefined2;
31854
- var $SyntaxError = SyntaxError;
32065
+ var $Error = require_es_errors();
32066
+ var $EvalError = require_eval();
32067
+ var $RangeError = require_range2();
32068
+ var $ReferenceError = require_ref();
32069
+ var $SyntaxError = require_syntax();
32070
+ var $TypeError = require_type();
32071
+ var $URIError = require_uri();
31855
32072
  var $Function = Function;
31856
- var $TypeError = TypeError;
31857
32073
  var getEvalledConstructor = function(expressionSyntax) {
31858
32074
  try {
31859
32075
  return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
@@ -31884,16 +32100,18 @@ var require_get_intrinsic = __commonJS({
31884
32100
  }
31885
32101
  }() : throwTypeError;
31886
32102
  var hasSymbols = require_has_symbols()();
31887
- var getProto = Object.getPrototypeOf || function(x) {
32103
+ var hasProto = require_has_proto()();
32104
+ var getProto = Object.getPrototypeOf || (hasProto ? function(x) {
31888
32105
  return x.__proto__;
31889
- };
32106
+ } : null);
31890
32107
  var needsEval = {};
31891
- var TypedArray = typeof Uint8Array === "undefined" ? undefined2 : getProto(Uint8Array);
32108
+ var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
31892
32109
  var INTRINSICS = {
32110
+ __proto__: null,
31893
32111
  "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
31894
32112
  "%Array%": Array,
31895
32113
  "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
31896
- "%ArrayIteratorPrototype%": hasSymbols ? getProto([][Symbol.iterator]()) : undefined2,
32114
+ "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
31897
32115
  "%AsyncFromSyncIteratorPrototype%": undefined2,
31898
32116
  "%AsyncFunction%": needsEval,
31899
32117
  "%AsyncGenerator%": needsEval,
@@ -31901,6 +32119,8 @@ var require_get_intrinsic = __commonJS({
31901
32119
  "%AsyncIteratorPrototype%": needsEval,
31902
32120
  "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
31903
32121
  "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
32122
+ "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
32123
+ "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
31904
32124
  "%Boolean%": Boolean,
31905
32125
  "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
31906
32126
  "%Date%": Date,
@@ -31908,10 +32128,10 @@ var require_get_intrinsic = __commonJS({
31908
32128
  "%decodeURIComponent%": decodeURIComponent,
31909
32129
  "%encodeURI%": encodeURI,
31910
32130
  "%encodeURIComponent%": encodeURIComponent,
31911
- "%Error%": Error,
32131
+ "%Error%": $Error,
31912
32132
  "%eval%": eval,
31913
32133
  // eslint-disable-line no-eval
31914
- "%EvalError%": EvalError,
32134
+ "%EvalError%": $EvalError,
31915
32135
  "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
31916
32136
  "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
31917
32137
  "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
@@ -31922,10 +32142,10 @@ var require_get_intrinsic = __commonJS({
31922
32142
  "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
31923
32143
  "%isFinite%": isFinite,
31924
32144
  "%isNaN%": isNaN,
31925
- "%IteratorPrototype%": hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined2,
32145
+ "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
31926
32146
  "%JSON%": typeof JSON === "object" ? JSON : undefined2,
31927
32147
  "%Map%": typeof Map === "undefined" ? undefined2 : Map,
31928
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
32148
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
31929
32149
  "%Math%": Math,
31930
32150
  "%Number%": Number,
31931
32151
  "%Object%": Object,
@@ -31933,15 +32153,15 @@ var require_get_intrinsic = __commonJS({
31933
32153
  "%parseInt%": parseInt,
31934
32154
  "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
31935
32155
  "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
31936
- "%RangeError%": RangeError,
31937
- "%ReferenceError%": ReferenceError,
32156
+ "%RangeError%": $RangeError,
32157
+ "%ReferenceError%": $ReferenceError,
31938
32158
  "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
31939
32159
  "%RegExp%": RegExp,
31940
32160
  "%Set%": typeof Set === "undefined" ? undefined2 : Set,
31941
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
32161
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
31942
32162
  "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
31943
32163
  "%String%": String,
31944
- "%StringIteratorPrototype%": hasSymbols ? getProto(""[Symbol.iterator]()) : undefined2,
32164
+ "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
31945
32165
  "%Symbol%": hasSymbols ? Symbol : undefined2,
31946
32166
  "%SyntaxError%": $SyntaxError,
31947
32167
  "%ThrowTypeError%": ThrowTypeError,
@@ -31951,11 +32171,20 @@ var require_get_intrinsic = __commonJS({
31951
32171
  "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
31952
32172
  "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
31953
32173
  "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
31954
- "%URIError%": URIError,
32174
+ "%URIError%": $URIError,
31955
32175
  "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
31956
32176
  "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
31957
32177
  "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
31958
32178
  };
32179
+ if (getProto) {
32180
+ try {
32181
+ null.error;
32182
+ } catch (e) {
32183
+ errorProto = getProto(getProto(e));
32184
+ INTRINSICS["%Error.prototype%"] = errorProto;
32185
+ }
32186
+ }
32187
+ var errorProto;
31959
32188
  var doEval = function doEval2(name) {
31960
32189
  var value;
31961
32190
  if (name === "%AsyncFunction%") {
@@ -31971,7 +32200,7 @@ var require_get_intrinsic = __commonJS({
31971
32200
  }
31972
32201
  } else if (name === "%AsyncIteratorPrototype%") {
31973
32202
  var gen = doEval2("%AsyncGenerator%");
31974
- if (gen) {
32203
+ if (gen && getProto) {
31975
32204
  value = getProto(gen.prototype);
31976
32205
  }
31977
32206
  }
@@ -31979,6 +32208,7 @@ var require_get_intrinsic = __commonJS({
31979
32208
  return value;
31980
32209
  };
31981
32210
  var LEGACY_ALIASES = {
32211
+ __proto__: null,
31982
32212
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
31983
32213
  "%ArrayPrototype%": ["Array", "prototype"],
31984
32214
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -32032,11 +32262,12 @@ var require_get_intrinsic = __commonJS({
32032
32262
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
32033
32263
  };
32034
32264
  var bind = require_function_bind();
32035
- var hasOwn = require_src3();
32265
+ var hasOwn = require_hasown();
32036
32266
  var $concat = bind.call(Function.call, Array.prototype.concat);
32037
32267
  var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
32038
32268
  var $replace = bind.call(Function.call, String.prototype.replace);
32039
32269
  var $strSlice = bind.call(Function.call, String.prototype.slice);
32270
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
32040
32271
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
32041
32272
  var reEscapeChar = /\\(\\)?/g;
32042
32273
  var stringToPath = function stringToPath2(string) {
@@ -32083,6 +32314,9 @@ var require_get_intrinsic = __commonJS({
32083
32314
  if (arguments.length > 1 && typeof allowMissing !== "boolean") {
32084
32315
  throw new $TypeError('"allowMissing" argument must be a boolean');
32085
32316
  }
32317
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
32318
+ throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
32319
+ }
32086
32320
  var parts = stringToPath(name);
32087
32321
  var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
32088
32322
  var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
@@ -32137,87 +32371,516 @@ var require_get_intrinsic = __commonJS({
32137
32371
  }
32138
32372
  });
32139
32373
 
32140
- // ../../node_modules/call-bind/node_modules/has-symbols/shams.js
32141
- var require_shams2 = __commonJS({
32142
- "../../node_modules/call-bind/node_modules/has-symbols/shams.js"(exports, module) {
32374
+ // ../../node_modules/es-define-property/node_modules/function-bind/implementation.js
32375
+ var require_implementation3 = __commonJS({
32376
+ "../../node_modules/es-define-property/node_modules/function-bind/implementation.js"(exports, module) {
32143
32377
  "use strict";
32144
32378
  init_cjs_shim();
32145
- module.exports = function hasSymbols() {
32146
- if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
32147
- return false;
32379
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
32380
+ var toStr = Object.prototype.toString;
32381
+ var max = Math.max;
32382
+ var funcType = "[object Function]";
32383
+ var concatty = function concatty2(a, b) {
32384
+ var arr = [];
32385
+ for (var i = 0; i < a.length; i += 1) {
32386
+ arr[i] = a[i];
32148
32387
  }
32149
- if (typeof Symbol.iterator === "symbol") {
32150
- return true;
32388
+ for (var j = 0; j < b.length; j += 1) {
32389
+ arr[j + a.length] = b[j];
32151
32390
  }
32152
- var obj = {};
32153
- var sym = Symbol("test");
32154
- var symObj = Object(sym);
32155
- if (typeof sym === "string") {
32156
- return false;
32391
+ return arr;
32392
+ };
32393
+ var slicy = function slicy2(arrLike, offset) {
32394
+ var arr = [];
32395
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
32396
+ arr[j] = arrLike[i];
32157
32397
  }
32158
- if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
32159
- return false;
32398
+ return arr;
32399
+ };
32400
+ var joiny = function(arr, joiner) {
32401
+ var str = "";
32402
+ for (var i = 0; i < arr.length; i += 1) {
32403
+ str += arr[i];
32404
+ if (i + 1 < arr.length) {
32405
+ str += joiner;
32406
+ }
32160
32407
  }
32161
- if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
32162
- return false;
32408
+ return str;
32409
+ };
32410
+ module.exports = function bind(that) {
32411
+ var target = this;
32412
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
32413
+ throw new TypeError(ERROR_MESSAGE + target);
32163
32414
  }
32164
- var symVal = 42;
32165
- obj[sym] = symVal;
32166
- for (sym in obj) {
32167
- return false;
32415
+ var args = slicy(arguments, 1);
32416
+ var bound;
32417
+ var binder = function() {
32418
+ if (this instanceof bound) {
32419
+ var result = target.apply(
32420
+ this,
32421
+ concatty(args, arguments)
32422
+ );
32423
+ if (Object(result) === result) {
32424
+ return result;
32425
+ }
32426
+ return this;
32427
+ }
32428
+ return target.apply(
32429
+ that,
32430
+ concatty(args, arguments)
32431
+ );
32432
+ };
32433
+ var boundLength = max(0, target.length - args.length);
32434
+ var boundArgs = [];
32435
+ for (var i = 0; i < boundLength; i++) {
32436
+ boundArgs[i] = "$" + i;
32168
32437
  }
32169
- if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
32170
- return false;
32438
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
32439
+ if (target.prototype) {
32440
+ var Empty = function Empty2() {
32441
+ };
32442
+ Empty.prototype = target.prototype;
32443
+ bound.prototype = new Empty();
32444
+ Empty.prototype = null;
32171
32445
  }
32172
- if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
32173
- return false;
32446
+ return bound;
32447
+ };
32448
+ }
32449
+ });
32450
+
32451
+ // ../../node_modules/es-define-property/node_modules/function-bind/index.js
32452
+ var require_function_bind3 = __commonJS({
32453
+ "../../node_modules/es-define-property/node_modules/function-bind/index.js"(exports, module) {
32454
+ "use strict";
32455
+ init_cjs_shim();
32456
+ var implementation = require_implementation3();
32457
+ module.exports = Function.prototype.bind || implementation;
32458
+ }
32459
+ });
32460
+
32461
+ // ../../node_modules/es-define-property/node_modules/get-intrinsic/index.js
32462
+ var require_get_intrinsic2 = __commonJS({
32463
+ "../../node_modules/es-define-property/node_modules/get-intrinsic/index.js"(exports, module) {
32464
+ "use strict";
32465
+ init_cjs_shim();
32466
+ var undefined2;
32467
+ var $Error = require_es_errors();
32468
+ var $EvalError = require_eval();
32469
+ var $RangeError = require_range2();
32470
+ var $ReferenceError = require_ref();
32471
+ var $SyntaxError = require_syntax();
32472
+ var $TypeError = require_type();
32473
+ var $URIError = require_uri();
32474
+ var $Function = Function;
32475
+ var getEvalledConstructor = function(expressionSyntax) {
32476
+ try {
32477
+ return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
32478
+ } catch (e) {
32174
32479
  }
32175
- var syms = Object.getOwnPropertySymbols(obj);
32176
- if (syms.length !== 1 || syms[0] !== sym) {
32177
- return false;
32480
+ };
32481
+ var $gOPD = Object.getOwnPropertyDescriptor;
32482
+ if ($gOPD) {
32483
+ try {
32484
+ $gOPD({}, "");
32485
+ } catch (e) {
32486
+ $gOPD = null;
32178
32487
  }
32179
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
32180
- return false;
32488
+ }
32489
+ var throwTypeError = function() {
32490
+ throw new $TypeError();
32491
+ };
32492
+ var ThrowTypeError = $gOPD ? function() {
32493
+ try {
32494
+ arguments.callee;
32495
+ return throwTypeError;
32496
+ } catch (calleeThrows) {
32497
+ try {
32498
+ return $gOPD(arguments, "callee").get;
32499
+ } catch (gOPDthrows) {
32500
+ return throwTypeError;
32501
+ }
32181
32502
  }
32182
- if (typeof Object.getOwnPropertyDescriptor === "function") {
32183
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
32184
- if (descriptor.value !== symVal || descriptor.enumerable !== true) {
32185
- return false;
32503
+ }() : throwTypeError;
32504
+ var hasSymbols = require_has_symbols()();
32505
+ var hasProto = require_has_proto()();
32506
+ var getProto = Object.getPrototypeOf || (hasProto ? function(x) {
32507
+ return x.__proto__;
32508
+ } : null);
32509
+ var needsEval = {};
32510
+ var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
32511
+ var INTRINSICS = {
32512
+ __proto__: null,
32513
+ "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
32514
+ "%Array%": Array,
32515
+ "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
32516
+ "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
32517
+ "%AsyncFromSyncIteratorPrototype%": undefined2,
32518
+ "%AsyncFunction%": needsEval,
32519
+ "%AsyncGenerator%": needsEval,
32520
+ "%AsyncGeneratorFunction%": needsEval,
32521
+ "%AsyncIteratorPrototype%": needsEval,
32522
+ "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
32523
+ "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
32524
+ "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
32525
+ "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
32526
+ "%Boolean%": Boolean,
32527
+ "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
32528
+ "%Date%": Date,
32529
+ "%decodeURI%": decodeURI,
32530
+ "%decodeURIComponent%": decodeURIComponent,
32531
+ "%encodeURI%": encodeURI,
32532
+ "%encodeURIComponent%": encodeURIComponent,
32533
+ "%Error%": $Error,
32534
+ "%eval%": eval,
32535
+ // eslint-disable-line no-eval
32536
+ "%EvalError%": $EvalError,
32537
+ "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
32538
+ "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
32539
+ "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
32540
+ "%Function%": $Function,
32541
+ "%GeneratorFunction%": needsEval,
32542
+ "%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
32543
+ "%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
32544
+ "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
32545
+ "%isFinite%": isFinite,
32546
+ "%isNaN%": isNaN,
32547
+ "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
32548
+ "%JSON%": typeof JSON === "object" ? JSON : undefined2,
32549
+ "%Map%": typeof Map === "undefined" ? undefined2 : Map,
32550
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
32551
+ "%Math%": Math,
32552
+ "%Number%": Number,
32553
+ "%Object%": Object,
32554
+ "%parseFloat%": parseFloat,
32555
+ "%parseInt%": parseInt,
32556
+ "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
32557
+ "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
32558
+ "%RangeError%": $RangeError,
32559
+ "%ReferenceError%": $ReferenceError,
32560
+ "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
32561
+ "%RegExp%": RegExp,
32562
+ "%Set%": typeof Set === "undefined" ? undefined2 : Set,
32563
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
32564
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
32565
+ "%String%": String,
32566
+ "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
32567
+ "%Symbol%": hasSymbols ? Symbol : undefined2,
32568
+ "%SyntaxError%": $SyntaxError,
32569
+ "%ThrowTypeError%": ThrowTypeError,
32570
+ "%TypedArray%": TypedArray,
32571
+ "%TypeError%": $TypeError,
32572
+ "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
32573
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
32574
+ "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
32575
+ "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
32576
+ "%URIError%": $URIError,
32577
+ "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
32578
+ "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
32579
+ "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
32580
+ };
32581
+ if (getProto) {
32582
+ try {
32583
+ null.error;
32584
+ } catch (e) {
32585
+ errorProto = getProto(getProto(e));
32586
+ INTRINSICS["%Error.prototype%"] = errorProto;
32587
+ }
32588
+ }
32589
+ var errorProto;
32590
+ var doEval = function doEval2(name) {
32591
+ var value;
32592
+ if (name === "%AsyncFunction%") {
32593
+ value = getEvalledConstructor("async function () {}");
32594
+ } else if (name === "%GeneratorFunction%") {
32595
+ value = getEvalledConstructor("function* () {}");
32596
+ } else if (name === "%AsyncGeneratorFunction%") {
32597
+ value = getEvalledConstructor("async function* () {}");
32598
+ } else if (name === "%AsyncGenerator%") {
32599
+ var fn = doEval2("%AsyncGeneratorFunction%");
32600
+ if (fn) {
32601
+ value = fn.prototype;
32602
+ }
32603
+ } else if (name === "%AsyncIteratorPrototype%") {
32604
+ var gen = doEval2("%AsyncGenerator%");
32605
+ if (gen && getProto) {
32606
+ value = getProto(gen.prototype);
32186
32607
  }
32187
32608
  }
32188
- return true;
32609
+ INTRINSICS[name] = value;
32610
+ return value;
32611
+ };
32612
+ var LEGACY_ALIASES = {
32613
+ __proto__: null,
32614
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
32615
+ "%ArrayPrototype%": ["Array", "prototype"],
32616
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
32617
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
32618
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
32619
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
32620
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
32621
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
32622
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
32623
+ "%BooleanPrototype%": ["Boolean", "prototype"],
32624
+ "%DataViewPrototype%": ["DataView", "prototype"],
32625
+ "%DatePrototype%": ["Date", "prototype"],
32626
+ "%ErrorPrototype%": ["Error", "prototype"],
32627
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
32628
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
32629
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
32630
+ "%FunctionPrototype%": ["Function", "prototype"],
32631
+ "%Generator%": ["GeneratorFunction", "prototype"],
32632
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
32633
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
32634
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
32635
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
32636
+ "%JSONParse%": ["JSON", "parse"],
32637
+ "%JSONStringify%": ["JSON", "stringify"],
32638
+ "%MapPrototype%": ["Map", "prototype"],
32639
+ "%NumberPrototype%": ["Number", "prototype"],
32640
+ "%ObjectPrototype%": ["Object", "prototype"],
32641
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
32642
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
32643
+ "%PromisePrototype%": ["Promise", "prototype"],
32644
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
32645
+ "%Promise_all%": ["Promise", "all"],
32646
+ "%Promise_reject%": ["Promise", "reject"],
32647
+ "%Promise_resolve%": ["Promise", "resolve"],
32648
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
32649
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
32650
+ "%RegExpPrototype%": ["RegExp", "prototype"],
32651
+ "%SetPrototype%": ["Set", "prototype"],
32652
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
32653
+ "%StringPrototype%": ["String", "prototype"],
32654
+ "%SymbolPrototype%": ["Symbol", "prototype"],
32655
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
32656
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
32657
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
32658
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
32659
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
32660
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
32661
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
32662
+ "%URIErrorPrototype%": ["URIError", "prototype"],
32663
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
32664
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
32665
+ };
32666
+ var bind = require_function_bind3();
32667
+ var hasOwn = require_hasown();
32668
+ var $concat = bind.call(Function.call, Array.prototype.concat);
32669
+ var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
32670
+ var $replace = bind.call(Function.call, String.prototype.replace);
32671
+ var $strSlice = bind.call(Function.call, String.prototype.slice);
32672
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
32673
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
32674
+ var reEscapeChar = /\\(\\)?/g;
32675
+ var stringToPath = function stringToPath2(string) {
32676
+ var first = $strSlice(string, 0, 1);
32677
+ var last = $strSlice(string, -1);
32678
+ if (first === "%" && last !== "%") {
32679
+ throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
32680
+ } else if (last === "%" && first !== "%") {
32681
+ throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
32682
+ }
32683
+ var result = [];
32684
+ $replace(string, rePropName, function(match, number, quote, subString) {
32685
+ result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
32686
+ });
32687
+ return result;
32688
+ };
32689
+ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
32690
+ var intrinsicName = name;
32691
+ var alias;
32692
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
32693
+ alias = LEGACY_ALIASES[intrinsicName];
32694
+ intrinsicName = "%" + alias[0] + "%";
32695
+ }
32696
+ if (hasOwn(INTRINSICS, intrinsicName)) {
32697
+ var value = INTRINSICS[intrinsicName];
32698
+ if (value === needsEval) {
32699
+ value = doEval(intrinsicName);
32700
+ }
32701
+ if (typeof value === "undefined" && !allowMissing) {
32702
+ throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
32703
+ }
32704
+ return {
32705
+ alias,
32706
+ name: intrinsicName,
32707
+ value
32708
+ };
32709
+ }
32710
+ throw new $SyntaxError("intrinsic " + name + " does not exist!");
32711
+ };
32712
+ module.exports = function GetIntrinsic(name, allowMissing) {
32713
+ if (typeof name !== "string" || name.length === 0) {
32714
+ throw new $TypeError("intrinsic name must be a non-empty string");
32715
+ }
32716
+ if (arguments.length > 1 && typeof allowMissing !== "boolean") {
32717
+ throw new $TypeError('"allowMissing" argument must be a boolean');
32718
+ }
32719
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
32720
+ throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
32721
+ }
32722
+ var parts = stringToPath(name);
32723
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
32724
+ var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
32725
+ var intrinsicRealName = intrinsic.name;
32726
+ var value = intrinsic.value;
32727
+ var skipFurtherCaching = false;
32728
+ var alias = intrinsic.alias;
32729
+ if (alias) {
32730
+ intrinsicBaseName = alias[0];
32731
+ $spliceApply(parts, $concat([0, 1], alias));
32732
+ }
32733
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
32734
+ var part = parts[i];
32735
+ var first = $strSlice(part, 0, 1);
32736
+ var last = $strSlice(part, -1);
32737
+ if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
32738
+ throw new $SyntaxError("property names with quotes must have matching quotes");
32739
+ }
32740
+ if (part === "constructor" || !isOwn) {
32741
+ skipFurtherCaching = true;
32742
+ }
32743
+ intrinsicBaseName += "." + part;
32744
+ intrinsicRealName = "%" + intrinsicBaseName + "%";
32745
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
32746
+ value = INTRINSICS[intrinsicRealName];
32747
+ } else if (value != null) {
32748
+ if (!(part in value)) {
32749
+ if (!allowMissing) {
32750
+ throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
32751
+ }
32752
+ return void 0;
32753
+ }
32754
+ if ($gOPD && i + 1 >= parts.length) {
32755
+ var desc = $gOPD(value, part);
32756
+ isOwn = !!desc;
32757
+ if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
32758
+ value = desc.get;
32759
+ } else {
32760
+ value = value[part];
32761
+ }
32762
+ } else {
32763
+ isOwn = hasOwn(value, part);
32764
+ value = value[part];
32765
+ }
32766
+ if (isOwn && !skipFurtherCaching) {
32767
+ INTRINSICS[intrinsicRealName] = value;
32768
+ }
32769
+ }
32770
+ }
32771
+ return value;
32189
32772
  };
32190
32773
  }
32191
32774
  });
32192
32775
 
32193
- // ../../node_modules/call-bind/node_modules/has-symbols/index.js
32194
- var require_has_symbols2 = __commonJS({
32195
- "../../node_modules/call-bind/node_modules/has-symbols/index.js"(exports, module) {
32776
+ // ../../node_modules/es-define-property/index.js
32777
+ var require_es_define_property = __commonJS({
32778
+ "../../node_modules/es-define-property/index.js"(exports, module) {
32196
32779
  "use strict";
32197
32780
  init_cjs_shim();
32198
- var origSymbol = global.Symbol;
32199
- var hasSymbolSham = require_shams2();
32200
- module.exports = function hasNativeSymbols() {
32201
- if (typeof origSymbol !== "function") {
32202
- return false;
32781
+ var GetIntrinsic = require_get_intrinsic2();
32782
+ var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false;
32783
+ if ($defineProperty) {
32784
+ try {
32785
+ $defineProperty({}, "a", { value: 1 });
32786
+ } catch (e) {
32787
+ $defineProperty = false;
32203
32788
  }
32204
- if (typeof Symbol !== "function") {
32205
- return false;
32789
+ }
32790
+ module.exports = $defineProperty;
32791
+ }
32792
+ });
32793
+
32794
+ // ../../node_modules/get-intrinsic/node_modules/function-bind/implementation.js
32795
+ var require_implementation4 = __commonJS({
32796
+ "../../node_modules/get-intrinsic/node_modules/function-bind/implementation.js"(exports, module) {
32797
+ "use strict";
32798
+ init_cjs_shim();
32799
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
32800
+ var toStr = Object.prototype.toString;
32801
+ var max = Math.max;
32802
+ var funcType = "[object Function]";
32803
+ var concatty = function concatty2(a, b) {
32804
+ var arr = [];
32805
+ for (var i = 0; i < a.length; i += 1) {
32806
+ arr[i] = a[i];
32206
32807
  }
32207
- if (typeof origSymbol("foo") !== "symbol") {
32208
- return false;
32808
+ for (var j = 0; j < b.length; j += 1) {
32809
+ arr[j + a.length] = b[j];
32209
32810
  }
32210
- if (typeof Symbol("bar") !== "symbol") {
32211
- return false;
32811
+ return arr;
32812
+ };
32813
+ var slicy = function slicy2(arrLike, offset) {
32814
+ var arr = [];
32815
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
32816
+ arr[j] = arrLike[i];
32212
32817
  }
32213
- return hasSymbolSham();
32818
+ return arr;
32819
+ };
32820
+ var joiny = function(arr, joiner) {
32821
+ var str = "";
32822
+ for (var i = 0; i < arr.length; i += 1) {
32823
+ str += arr[i];
32824
+ if (i + 1 < arr.length) {
32825
+ str += joiner;
32826
+ }
32827
+ }
32828
+ return str;
32829
+ };
32830
+ module.exports = function bind(that) {
32831
+ var target = this;
32832
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
32833
+ throw new TypeError(ERROR_MESSAGE + target);
32834
+ }
32835
+ var args = slicy(arguments, 1);
32836
+ var bound;
32837
+ var binder = function() {
32838
+ if (this instanceof bound) {
32839
+ var result = target.apply(
32840
+ this,
32841
+ concatty(args, arguments)
32842
+ );
32843
+ if (Object(result) === result) {
32844
+ return result;
32845
+ }
32846
+ return this;
32847
+ }
32848
+ return target.apply(
32849
+ that,
32850
+ concatty(args, arguments)
32851
+ );
32852
+ };
32853
+ var boundLength = max(0, target.length - args.length);
32854
+ var boundArgs = [];
32855
+ for (var i = 0; i < boundLength; i++) {
32856
+ boundArgs[i] = "$" + i;
32857
+ }
32858
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
32859
+ if (target.prototype) {
32860
+ var Empty = function Empty2() {
32861
+ };
32862
+ Empty.prototype = target.prototype;
32863
+ bound.prototype = new Empty();
32864
+ Empty.prototype = null;
32865
+ }
32866
+ return bound;
32214
32867
  };
32215
32868
  }
32216
32869
  });
32217
32870
 
32218
- // ../../node_modules/call-bind/node_modules/get-intrinsic/index.js
32219
- var require_get_intrinsic2 = __commonJS({
32220
- "../../node_modules/call-bind/node_modules/get-intrinsic/index.js"(exports, module) {
32871
+ // ../../node_modules/get-intrinsic/node_modules/function-bind/index.js
32872
+ var require_function_bind4 = __commonJS({
32873
+ "../../node_modules/get-intrinsic/node_modules/function-bind/index.js"(exports, module) {
32874
+ "use strict";
32875
+ init_cjs_shim();
32876
+ var implementation = require_implementation4();
32877
+ module.exports = Function.prototype.bind || implementation;
32878
+ }
32879
+ });
32880
+
32881
+ // ../../node_modules/get-intrinsic/index.js
32882
+ var require_get_intrinsic3 = __commonJS({
32883
+ "../../node_modules/get-intrinsic/index.js"(exports, module) {
32221
32884
  "use strict";
32222
32885
  init_cjs_shim();
32223
32886
  var undefined2;
@@ -32253,17 +32916,18 @@ var require_get_intrinsic2 = __commonJS({
32253
32916
  }
32254
32917
  }
32255
32918
  }() : throwTypeError;
32256
- var hasSymbols = require_has_symbols2()();
32257
- var getProto = Object.getPrototypeOf || function(x) {
32919
+ var hasSymbols = require_has_symbols()();
32920
+ var hasProto = require_has_proto()();
32921
+ var getProto = Object.getPrototypeOf || (hasProto ? function(x) {
32258
32922
  return x.__proto__;
32259
- };
32923
+ } : null);
32260
32924
  var needsEval = {};
32261
- var TypedArray = typeof Uint8Array === "undefined" ? undefined2 : getProto(Uint8Array);
32925
+ var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
32262
32926
  var INTRINSICS = {
32263
32927
  "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
32264
32928
  "%Array%": Array,
32265
32929
  "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
32266
- "%ArrayIteratorPrototype%": hasSymbols ? getProto([][Symbol.iterator]()) : undefined2,
32930
+ "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
32267
32931
  "%AsyncFromSyncIteratorPrototype%": undefined2,
32268
32932
  "%AsyncFunction%": needsEval,
32269
32933
  "%AsyncGenerator%": needsEval,
@@ -32271,6 +32935,8 @@ var require_get_intrinsic2 = __commonJS({
32271
32935
  "%AsyncIteratorPrototype%": needsEval,
32272
32936
  "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
32273
32937
  "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
32938
+ "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
32939
+ "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
32274
32940
  "%Boolean%": Boolean,
32275
32941
  "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
32276
32942
  "%Date%": Date,
@@ -32292,10 +32958,10 @@ var require_get_intrinsic2 = __commonJS({
32292
32958
  "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
32293
32959
  "%isFinite%": isFinite,
32294
32960
  "%isNaN%": isNaN,
32295
- "%IteratorPrototype%": hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined2,
32961
+ "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
32296
32962
  "%JSON%": typeof JSON === "object" ? JSON : undefined2,
32297
32963
  "%Map%": typeof Map === "undefined" ? undefined2 : Map,
32298
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
32964
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
32299
32965
  "%Math%": Math,
32300
32966
  "%Number%": Number,
32301
32967
  "%Object%": Object,
@@ -32308,10 +32974,10 @@ var require_get_intrinsic2 = __commonJS({
32308
32974
  "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
32309
32975
  "%RegExp%": RegExp,
32310
32976
  "%Set%": typeof Set === "undefined" ? undefined2 : Set,
32311
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
32977
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
32312
32978
  "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
32313
32979
  "%String%": String,
32314
- "%StringIteratorPrototype%": hasSymbols ? getProto(""[Symbol.iterator]()) : undefined2,
32980
+ "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
32315
32981
  "%Symbol%": hasSymbols ? Symbol : undefined2,
32316
32982
  "%SyntaxError%": $SyntaxError,
32317
32983
  "%ThrowTypeError%": ThrowTypeError,
@@ -32326,6 +32992,15 @@ var require_get_intrinsic2 = __commonJS({
32326
32992
  "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
32327
32993
  "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
32328
32994
  };
32995
+ if (getProto) {
32996
+ try {
32997
+ null.error;
32998
+ } catch (e) {
32999
+ errorProto = getProto(getProto(e));
33000
+ INTRINSICS["%Error.prototype%"] = errorProto;
33001
+ }
33002
+ }
33003
+ var errorProto;
32329
33004
  var doEval = function doEval2(name) {
32330
33005
  var value;
32331
33006
  if (name === "%AsyncFunction%") {
@@ -32341,7 +33016,7 @@ var require_get_intrinsic2 = __commonJS({
32341
33016
  }
32342
33017
  } else if (name === "%AsyncIteratorPrototype%") {
32343
33018
  var gen = doEval2("%AsyncGenerator%");
32344
- if (gen) {
33019
+ if (gen && getProto) {
32345
33020
  value = getProto(gen.prototype);
32346
33021
  }
32347
33022
  }
@@ -32401,12 +33076,13 @@ var require_get_intrinsic2 = __commonJS({
32401
33076
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
32402
33077
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
32403
33078
  };
32404
- var bind = require_function_bind();
32405
- var hasOwn = require_src3();
33079
+ var bind = require_function_bind4();
33080
+ var hasOwn = require_hasown();
32406
33081
  var $concat = bind.call(Function.call, Array.prototype.concat);
32407
33082
  var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
32408
33083
  var $replace = bind.call(Function.call, String.prototype.replace);
32409
33084
  var $strSlice = bind.call(Function.call, String.prototype.slice);
33085
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
32410
33086
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
32411
33087
  var reEscapeChar = /\\(\\)?/g;
32412
33088
  var stringToPath = function stringToPath2(string) {
@@ -32453,6 +33129,9 @@ var require_get_intrinsic2 = __commonJS({
32453
33129
  if (arguments.length > 1 && typeof allowMissing !== "boolean") {
32454
33130
  throw new $TypeError('"allowMissing" argument must be a boolean');
32455
33131
  }
33132
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
33133
+ throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
33134
+ }
32456
33135
  var parts = stringToPath(name);
32457
33136
  var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
32458
33137
  var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
@@ -32507,39 +33186,174 @@ var require_get_intrinsic2 = __commonJS({
32507
33186
  }
32508
33187
  });
32509
33188
 
32510
- // ../../node_modules/call-bind/index.js
32511
- var require_call_bind = __commonJS({
32512
- "../../node_modules/call-bind/index.js"(exports, module) {
33189
+ // ../../node_modules/gopd/index.js
33190
+ var require_gopd = __commonJS({
33191
+ "../../node_modules/gopd/index.js"(exports, module) {
32513
33192
  "use strict";
32514
33193
  init_cjs_shim();
32515
- var bind = require_function_bind();
32516
- var GetIntrinsic = require_get_intrinsic2();
32517
- var $apply = GetIntrinsic("%Function.prototype.apply%");
32518
- var $call = GetIntrinsic("%Function.prototype.call%");
32519
- var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
33194
+ var GetIntrinsic = require_get_intrinsic3();
32520
33195
  var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
32521
- var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
32522
- var $max = GetIntrinsic("%Math.max%");
32523
- if ($defineProperty) {
33196
+ if ($gOPD) {
32524
33197
  try {
32525
- $defineProperty({}, "a", { value: 1 });
33198
+ $gOPD([], "length");
32526
33199
  } catch (e) {
32527
- $defineProperty = null;
33200
+ $gOPD = null;
32528
33201
  }
32529
33202
  }
32530
- module.exports = function callBind(originalFunction) {
32531
- var func = $reflectApply(bind, $call, arguments);
32532
- if ($gOPD && $defineProperty) {
32533
- var desc = $gOPD(func, "length");
32534
- if (desc.configurable) {
32535
- $defineProperty(
32536
- func,
33203
+ module.exports = $gOPD;
33204
+ }
33205
+ });
33206
+
33207
+ // ../../node_modules/qs/node_modules/define-data-property/index.js
33208
+ var require_define_data_property = __commonJS({
33209
+ "../../node_modules/qs/node_modules/define-data-property/index.js"(exports, module) {
33210
+ "use strict";
33211
+ init_cjs_shim();
33212
+ var $defineProperty = require_es_define_property();
33213
+ var $SyntaxError = require_syntax();
33214
+ var $TypeError = require_type();
33215
+ var gopd = require_gopd();
33216
+ module.exports = function defineDataProperty(obj, property, value) {
33217
+ if (!obj || typeof obj !== "object" && typeof obj !== "function") {
33218
+ throw new $TypeError("`obj` must be an object or a function`");
33219
+ }
33220
+ if (typeof property !== "string" && typeof property !== "symbol") {
33221
+ throw new $TypeError("`property` must be a string or a symbol`");
33222
+ }
33223
+ if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
33224
+ throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
33225
+ }
33226
+ if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
33227
+ throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
33228
+ }
33229
+ if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
33230
+ throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
33231
+ }
33232
+ if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
33233
+ throw new $TypeError("`loose`, if provided, must be a boolean");
33234
+ }
33235
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
33236
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
33237
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
33238
+ var loose = arguments.length > 6 ? arguments[6] : false;
33239
+ var desc = !!gopd && gopd(obj, property);
33240
+ if ($defineProperty) {
33241
+ $defineProperty(obj, property, {
33242
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
33243
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
33244
+ value,
33245
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
33246
+ });
33247
+ } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
33248
+ obj[property] = value;
33249
+ } else {
33250
+ throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
33251
+ }
33252
+ };
33253
+ }
33254
+ });
33255
+
33256
+ // ../../node_modules/qs/node_modules/has-property-descriptors/index.js
33257
+ var require_has_property_descriptors = __commonJS({
33258
+ "../../node_modules/qs/node_modules/has-property-descriptors/index.js"(exports, module) {
33259
+ "use strict";
33260
+ init_cjs_shim();
33261
+ var $defineProperty = require_es_define_property();
33262
+ var hasPropertyDescriptors = function hasPropertyDescriptors2() {
33263
+ return !!$defineProperty;
33264
+ };
33265
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
33266
+ if (!$defineProperty) {
33267
+ return null;
33268
+ }
33269
+ try {
33270
+ return $defineProperty([], "length", { value: 1 }).length !== 1;
33271
+ } catch (e) {
33272
+ return true;
33273
+ }
33274
+ };
33275
+ module.exports = hasPropertyDescriptors;
33276
+ }
33277
+ });
33278
+
33279
+ // ../../node_modules/qs/node_modules/set-function-length/index.js
33280
+ var require_set_function_length = __commonJS({
33281
+ "../../node_modules/qs/node_modules/set-function-length/index.js"(exports, module) {
33282
+ "use strict";
33283
+ init_cjs_shim();
33284
+ var GetIntrinsic = require_get_intrinsic();
33285
+ var define2 = require_define_data_property();
33286
+ var hasDescriptors = require_has_property_descriptors()();
33287
+ var gOPD = require_gopd();
33288
+ var $TypeError = require_type();
33289
+ var $floor = GetIntrinsic("%Math.floor%");
33290
+ module.exports = function setFunctionLength(fn, length) {
33291
+ if (typeof fn !== "function") {
33292
+ throw new $TypeError("`fn` is not a function");
33293
+ }
33294
+ if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) {
33295
+ throw new $TypeError("`length` must be a positive 32-bit integer");
33296
+ }
33297
+ var loose = arguments.length > 2 && !!arguments[2];
33298
+ var functionLengthIsConfigurable = true;
33299
+ var functionLengthIsWritable = true;
33300
+ if ("length" in fn && gOPD) {
33301
+ var desc = gOPD(fn, "length");
33302
+ if (desc && !desc.configurable) {
33303
+ functionLengthIsConfigurable = false;
33304
+ }
33305
+ if (desc && !desc.writable) {
33306
+ functionLengthIsWritable = false;
33307
+ }
33308
+ }
33309
+ if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
33310
+ if (hasDescriptors) {
33311
+ define2(
33312
+ /** @type {Parameters<define>[0]} */
33313
+ fn,
33314
+ "length",
33315
+ length,
33316
+ true,
33317
+ true
33318
+ );
33319
+ } else {
33320
+ define2(
33321
+ /** @type {Parameters<define>[0]} */
33322
+ fn,
32537
33323
  "length",
32538
- { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
33324
+ length
32539
33325
  );
32540
33326
  }
32541
33327
  }
32542
- return func;
33328
+ return fn;
33329
+ };
33330
+ }
33331
+ });
33332
+
33333
+ // ../../node_modules/qs/node_modules/call-bind/index.js
33334
+ var require_call_bind = __commonJS({
33335
+ "../../node_modules/qs/node_modules/call-bind/index.js"(exports, module) {
33336
+ "use strict";
33337
+ init_cjs_shim();
33338
+ var bind = require_function_bind();
33339
+ var GetIntrinsic = require_get_intrinsic();
33340
+ var setFunctionLength = require_set_function_length();
33341
+ var $TypeError = require_type();
33342
+ var $apply = GetIntrinsic("%Function.prototype.apply%");
33343
+ var $call = GetIntrinsic("%Function.prototype.call%");
33344
+ var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
33345
+ var $defineProperty = require_es_define_property();
33346
+ var $max = GetIntrinsic("%Math.max%");
33347
+ module.exports = function callBind(originalFunction) {
33348
+ if (typeof originalFunction !== "function") {
33349
+ throw new $TypeError("a function is required");
33350
+ }
33351
+ var func = $reflectApply(bind, $call, arguments);
33352
+ return setFunctionLength(
33353
+ func,
33354
+ 1 + $max(0, originalFunction.length - (arguments.length - 1)),
33355
+ true
33356
+ );
32543
33357
  };
32544
33358
  var applyBind = function applyBind2() {
32545
33359
  return $reflectApply(bind, $apply, arguments);
@@ -32552,12 +33366,12 @@ var require_call_bind = __commonJS({
32552
33366
  }
32553
33367
  });
32554
33368
 
32555
- // ../../node_modules/call-bind/callBound.js
33369
+ // ../../node_modules/qs/node_modules/call-bind/callBound.js
32556
33370
  var require_callBound = __commonJS({
32557
- "../../node_modules/call-bind/callBound.js"(exports, module) {
33371
+ "../../node_modules/qs/node_modules/call-bind/callBound.js"(exports, module) {
32558
33372
  "use strict";
32559
33373
  init_cjs_shim();
32560
- var GetIntrinsic = require_get_intrinsic2();
33374
+ var GetIntrinsic = require_get_intrinsic();
32561
33375
  var callBind = require_call_bind();
32562
33376
  var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
32563
33377
  module.exports = function callBoundIntrinsic(name, allowMissing) {
@@ -32570,17 +33384,17 @@ var require_callBound = __commonJS({
32570
33384
  }
32571
33385
  });
32572
33386
 
32573
- // ../../node_modules/object-inspect/util.inspect.js
33387
+ // ../../node_modules/qs/node_modules/object-inspect/util.inspect.js
32574
33388
  var require_util_inspect = __commonJS({
32575
- "../../node_modules/object-inspect/util.inspect.js"(exports, module) {
33389
+ "../../node_modules/qs/node_modules/object-inspect/util.inspect.js"(exports, module) {
32576
33390
  init_cjs_shim();
32577
33391
  module.exports = __require("util").inspect;
32578
33392
  }
32579
33393
  });
32580
33394
 
32581
- // ../../node_modules/object-inspect/index.js
33395
+ // ../../node_modules/qs/node_modules/object-inspect/index.js
32582
33396
  var require_object_inspect = __commonJS({
32583
- "../../node_modules/object-inspect/index.js"(exports, module) {
33397
+ "../../node_modules/qs/node_modules/object-inspect/index.js"(exports, module) {
32584
33398
  init_cjs_shim();
32585
33399
  var hasMap = typeof Map === "function" && Map.prototype;
32586
33400
  var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
@@ -32633,8 +33447,9 @@ var require_object_inspect = __commonJS({
32633
33447
  }
32634
33448
  return $replace.call(str, sepRegex, "$&_");
32635
33449
  }
32636
- var inspectCustom = require_util_inspect().custom;
32637
- var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
33450
+ var utilInspect = require_util_inspect();
33451
+ var inspectCustom = utilInspect.custom;
33452
+ var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
32638
33453
  module.exports = function inspect_(obj, options, depth, seen) {
32639
33454
  var opts = options || {};
32640
33455
  if (has(opts, "quoteStyle") && (opts.quoteStyle !== "single" && opts.quoteStyle !== "double")) {
@@ -32706,7 +33521,7 @@ var require_object_inspect = __commonJS({
32706
33521
  }
32707
33522
  return inspect_(value, opts, depth + 1, seen);
32708
33523
  }
32709
- if (typeof obj === "function") {
33524
+ if (typeof obj === "function" && !isRegExp(obj)) {
32710
33525
  var name = nameOf(obj);
32711
33526
  var keys = arrObjKeys(obj, inspect);
32712
33527
  return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
@@ -32740,7 +33555,7 @@ var require_object_inspect = __commonJS({
32740
33555
  }
32741
33556
  if (isError(obj)) {
32742
33557
  var parts = arrObjKeys(obj, inspect);
32743
- if ("cause" in obj && !isEnumerable.call(obj, "cause")) {
33558
+ if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) {
32744
33559
  return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect(obj.cause), parts), ", ") + " }";
32745
33560
  }
32746
33561
  if (parts.length === 0) {
@@ -32749,24 +33564,28 @@ var require_object_inspect = __commonJS({
32749
33564
  return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }";
32750
33565
  }
32751
33566
  if (typeof obj === "object" && customInspect) {
32752
- if (inspectSymbol && typeof obj[inspectSymbol] === "function") {
32753
- return obj[inspectSymbol]();
33567
+ if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) {
33568
+ return utilInspect(obj, { depth: maxDepth - depth });
32754
33569
  } else if (customInspect !== "symbol" && typeof obj.inspect === "function") {
32755
33570
  return obj.inspect();
32756
33571
  }
32757
33572
  }
32758
33573
  if (isMap(obj)) {
32759
33574
  var mapParts = [];
32760
- mapForEach.call(obj, function(value, key) {
32761
- mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
32762
- });
33575
+ if (mapForEach) {
33576
+ mapForEach.call(obj, function(value, key) {
33577
+ mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
33578
+ });
33579
+ }
32763
33580
  return collectionOf("Map", mapSize.call(obj), mapParts, indent);
32764
33581
  }
32765
33582
  if (isSet(obj)) {
32766
33583
  var setParts = [];
32767
- setForEach.call(obj, function(value) {
32768
- setParts.push(inspect(value, obj));
32769
- });
33584
+ if (setForEach) {
33585
+ setForEach.call(obj, function(value) {
33586
+ setParts.push(inspect(value, obj));
33587
+ });
33588
+ }
32770
33589
  return collectionOf("Set", setSize.call(obj), setParts, indent);
32771
33590
  }
32772
33591
  if (isWeakMap(obj)) {
@@ -32790,6 +33609,12 @@ var require_object_inspect = __commonJS({
32790
33609
  if (isString(obj)) {
32791
33610
  return markBoxed(inspect(String(obj)));
32792
33611
  }
33612
+ if (typeof window !== "undefined" && obj === window) {
33613
+ return "{ [object Window] }";
33614
+ }
33615
+ if (obj === global) {
33616
+ return "{ [object globalThis] }";
33617
+ }
32793
33618
  if (!isDate(obj) && !isRegExp(obj)) {
32794
33619
  var ys = arrObjKeys(obj, inspect);
32795
33620
  var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
@@ -33083,15 +33908,15 @@ var require_object_inspect = __commonJS({
33083
33908
  }
33084
33909
  });
33085
33910
 
33086
- // ../../node_modules/side-channel/index.js
33911
+ // ../../node_modules/qs/node_modules/side-channel/index.js
33087
33912
  var require_side_channel = __commonJS({
33088
- "../../node_modules/side-channel/index.js"(exports, module) {
33913
+ "../../node_modules/qs/node_modules/side-channel/index.js"(exports, module) {
33089
33914
  "use strict";
33090
33915
  init_cjs_shim();
33091
33916
  var GetIntrinsic = require_get_intrinsic();
33092
33917
  var callBound = require_callBound();
33093
33918
  var inspect = require_object_inspect();
33094
- var $TypeError = GetIntrinsic("%TypeError%");
33919
+ var $TypeError = require_type();
33095
33920
  var $WeakMap = GetIntrinsic("%WeakMap%", true);
33096
33921
  var $Map = GetIntrinsic("%Map%", true);
33097
33922
  var $weakMapGet = callBound("WeakMap.prototype.get", true);
@@ -33101,10 +33926,13 @@ var require_side_channel = __commonJS({
33101
33926
  var $mapSet = callBound("Map.prototype.set", true);
33102
33927
  var $mapHas = callBound("Map.prototype.has", true);
33103
33928
  var listGetNode = function(list, key) {
33104
- for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
33929
+ var prev = list;
33930
+ var curr;
33931
+ for (; (curr = prev.next) !== null; prev = curr) {
33105
33932
  if (curr.key === key) {
33106
33933
  prev.next = curr.next;
33107
- curr.next = list.next;
33934
+ curr.next = /** @type {NonNullable<typeof list.next>} */
33935
+ list.next;
33108
33936
  list.next = curr;
33109
33937
  return curr;
33110
33938
  }
@@ -33119,8 +33947,9 @@ var require_side_channel = __commonJS({
33119
33947
  if (node) {
33120
33948
  node.value = value;
33121
33949
  } else {
33122
- objects.next = {
33123
- // eslint-disable-line no-param-reassign
33950
+ objects.next = /** @type {import('.').ListNode<typeof value>} */
33951
+ {
33952
+ // eslint-disable-line no-param-reassign, no-extra-parens
33124
33953
  key,
33125
33954
  next: objects.next,
33126
33955
  value
@@ -33326,6 +34155,7 @@ var require_utils2 = __commonJS({
33326
34155
  return strWithoutPlus;
33327
34156
  }
33328
34157
  };
34158
+ var limit = 1024;
33329
34159
  var encode = function encode2(str, defaultEncoder, charset, kind, format) {
33330
34160
  if (str.length === 0) {
33331
34161
  return str;
@@ -33342,27 +34172,32 @@ var require_utils2 = __commonJS({
33342
34172
  });
33343
34173
  }
33344
34174
  var out = "";
33345
- for (var i = 0; i < string.length; ++i) {
33346
- var c = string.charCodeAt(i);
33347
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
33348
- out += string.charAt(i);
33349
- continue;
33350
- }
33351
- if (c < 128) {
33352
- out = out + hexTable[c];
33353
- continue;
33354
- }
33355
- if (c < 2048) {
33356
- out = out + (hexTable[192 | c >> 6] + hexTable[128 | c & 63]);
33357
- continue;
33358
- }
33359
- if (c < 55296 || c >= 57344) {
33360
- out = out + (hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63]);
33361
- continue;
34175
+ for (var j = 0; j < string.length; j += limit) {
34176
+ var segment = string.length >= limit ? string.slice(j, j + limit) : string;
34177
+ var arr = [];
34178
+ for (var i = 0; i < segment.length; ++i) {
34179
+ var c = segment.charCodeAt(i);
34180
+ if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
34181
+ arr[arr.length] = segment.charAt(i);
34182
+ continue;
34183
+ }
34184
+ if (c < 128) {
34185
+ arr[arr.length] = hexTable[c];
34186
+ continue;
34187
+ }
34188
+ if (c < 2048) {
34189
+ arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
34190
+ continue;
34191
+ }
34192
+ if (c < 55296 || c >= 57344) {
34193
+ arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
34194
+ continue;
34195
+ }
34196
+ i += 1;
34197
+ c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
34198
+ arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
33362
34199
  }
33363
- i += 1;
33364
- c = 65536 + ((c & 1023) << 10 | string.charCodeAt(i) & 1023);
33365
- out += hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
34200
+ out += arr.join("");
33366
34201
  }
33367
34202
  return out;
33368
34203
  };
@@ -33444,7 +34279,6 @@ var require_stringify = __commonJS({
33444
34279
  }
33445
34280
  };
33446
34281
  var isArray = Array.isArray;
33447
- var split = String.prototype.split;
33448
34282
  var push = Array.prototype.push;
33449
34283
  var pushToArray = function(arr, valueOrArray) {
33450
34284
  push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
@@ -33454,10 +34288,13 @@ var require_stringify = __commonJS({
33454
34288
  var defaults = {
33455
34289
  addQueryPrefix: false,
33456
34290
  allowDots: false,
34291
+ allowEmptyArrays: false,
34292
+ arrayFormat: "indices",
33457
34293
  charset: "utf-8",
33458
34294
  charsetSentinel: false,
33459
34295
  delimiter: "&",
33460
34296
  encode: true,
34297
+ encodeDotInKeys: false,
33461
34298
  encoder: utils.encode,
33462
34299
  encodeValuesOnly: false,
33463
34300
  format: defaultFormat,
@@ -33474,7 +34311,7 @@ var require_stringify = __commonJS({
33474
34311
  return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
33475
34312
  };
33476
34313
  var sentinel = {};
33477
- var stringify = function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
34314
+ var stringify = function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
33478
34315
  var obj = object;
33479
34316
  var tmpSc = sideChannel;
33480
34317
  var step = 0;
@@ -33514,14 +34351,6 @@ var require_stringify = __commonJS({
33514
34351
  if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
33515
34352
  if (encoder) {
33516
34353
  var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format);
33517
- if (generateArrayPrefix === "comma" && encodeValuesOnly) {
33518
- var valuesArray = split.call(String(obj), ",");
33519
- var valuesJoined = "";
33520
- for (var i = 0; i < valuesArray.length; ++i) {
33521
- valuesJoined += (i === 0 ? "" : ",") + formatter(encoder(valuesArray[i], defaults.encoder, charset, "value", format));
33522
- }
33523
- return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? "[]" : "") + "=" + valuesJoined];
33524
- }
33525
34354
  return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))];
33526
34355
  }
33527
34356
  return [formatter(prefix) + "=" + formatter(String(obj))];
@@ -33532,6 +34361,9 @@ var require_stringify = __commonJS({
33532
34361
  }
33533
34362
  var objKeys;
33534
34363
  if (generateArrayPrefix === "comma" && isArray(obj)) {
34364
+ if (encodeValuesOnly && encoder) {
34365
+ obj = utils.maybeMap(obj, encoder);
34366
+ }
33535
34367
  objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
33536
34368
  } else if (isArray(filter)) {
33537
34369
  objKeys = filter;
@@ -33539,14 +34371,19 @@ var require_stringify = __commonJS({
33539
34371
  var keys = Object.keys(obj);
33540
34372
  objKeys = sort ? keys.sort(sort) : keys;
33541
34373
  }
33542
- var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + "[]" : prefix;
34374
+ var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, "%2E") : prefix;
34375
+ var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
34376
+ if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
34377
+ return adjustedPrefix + "[]";
34378
+ }
33543
34379
  for (var j = 0; j < objKeys.length; ++j) {
33544
34380
  var key = objKeys[j];
33545
34381
  var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
33546
34382
  if (skipNulls && value === null) {
33547
34383
  continue;
33548
34384
  }
33549
- var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key : "[" + key + "]");
34385
+ var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, "%2E") : key;
34386
+ var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
33550
34387
  sideChannel.set(object, step);
33551
34388
  var valueSideChannel = getSideChannel();
33552
34389
  valueSideChannel.set(sentinel, sideChannel);
@@ -33555,9 +34392,11 @@ var require_stringify = __commonJS({
33555
34392
  keyPrefix,
33556
34393
  generateArrayPrefix,
33557
34394
  commaRoundTrip,
34395
+ allowEmptyArrays,
33558
34396
  strictNullHandling,
33559
34397
  skipNulls,
33560
- encoder,
34398
+ encodeDotInKeys,
34399
+ generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder,
33561
34400
  filter,
33562
34401
  sort,
33563
34402
  allowDots,
@@ -33575,6 +34414,12 @@ var require_stringify = __commonJS({
33575
34414
  if (!opts) {
33576
34415
  return defaults;
33577
34416
  }
34417
+ if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
34418
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
34419
+ }
34420
+ if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
34421
+ throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
34422
+ }
33578
34423
  if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
33579
34424
  throw new TypeError("Encoder has to be a function.");
33580
34425
  }
@@ -33594,13 +34439,29 @@ var require_stringify = __commonJS({
33594
34439
  if (typeof opts.filter === "function" || isArray(opts.filter)) {
33595
34440
  filter = opts.filter;
33596
34441
  }
34442
+ var arrayFormat;
34443
+ if (opts.arrayFormat in arrayPrefixGenerators) {
34444
+ arrayFormat = opts.arrayFormat;
34445
+ } else if ("indices" in opts) {
34446
+ arrayFormat = opts.indices ? "indices" : "repeat";
34447
+ } else {
34448
+ arrayFormat = defaults.arrayFormat;
34449
+ }
34450
+ if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
34451
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
34452
+ }
34453
+ var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
33597
34454
  return {
33598
34455
  addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
33599
- allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots,
34456
+ allowDots,
34457
+ allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
34458
+ arrayFormat,
33600
34459
  charset,
33601
34460
  charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
34461
+ commaRoundTrip: opts.commaRoundTrip,
33602
34462
  delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
33603
34463
  encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
34464
+ encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
33604
34465
  encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
33605
34466
  encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
33606
34467
  filter,
@@ -33628,19 +34489,8 @@ var require_stringify = __commonJS({
33628
34489
  if (typeof obj !== "object" || obj === null) {
33629
34490
  return "";
33630
34491
  }
33631
- var arrayFormat;
33632
- if (opts && opts.arrayFormat in arrayPrefixGenerators) {
33633
- arrayFormat = opts.arrayFormat;
33634
- } else if (opts && "indices" in opts) {
33635
- arrayFormat = opts.indices ? "indices" : "repeat";
33636
- } else {
33637
- arrayFormat = "indices";
33638
- }
33639
- var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
33640
- if (opts && "commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
33641
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
33642
- }
33643
- var commaRoundTrip = generateArrayPrefix === "comma" && opts && opts.commaRoundTrip;
34492
+ var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
34493
+ var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
33644
34494
  if (!objKeys) {
33645
34495
  objKeys = Object.keys(obj);
33646
34496
  }
@@ -33658,8 +34508,10 @@ var require_stringify = __commonJS({
33658
34508
  key,
33659
34509
  generateArrayPrefix,
33660
34510
  commaRoundTrip,
34511
+ options.allowEmptyArrays,
33661
34512
  options.strictNullHandling,
33662
34513
  options.skipNulls,
34514
+ options.encodeDotInKeys,
33663
34515
  options.encode ? options.encoder : null,
33664
34516
  options.filter,
33665
34517
  options.sort,
@@ -33696,20 +34548,24 @@ var require_parse3 = __commonJS({
33696
34548
  var isArray = Array.isArray;
33697
34549
  var defaults = {
33698
34550
  allowDots: false,
34551
+ allowEmptyArrays: false,
33699
34552
  allowPrototypes: false,
33700
34553
  allowSparse: false,
33701
34554
  arrayLimit: 20,
33702
34555
  charset: "utf-8",
33703
34556
  charsetSentinel: false,
33704
34557
  comma: false,
34558
+ decodeDotInKeys: false,
33705
34559
  decoder: utils.decode,
33706
34560
  delimiter: "&",
33707
34561
  depth: 5,
34562
+ duplicates: "combine",
33708
34563
  ignoreQueryPrefix: false,
33709
34564
  interpretNumericEntities: false,
33710
34565
  parameterLimit: 1e3,
33711
34566
  parseArrays: true,
33712
34567
  plainObjects: false,
34568
+ strictDepth: false,
33713
34569
  strictNullHandling: false
33714
34570
  };
33715
34571
  var interpretNumericEntities = function(str) {
@@ -33726,8 +34582,9 @@ var require_parse3 = __commonJS({
33726
34582
  var isoSentinel = "utf8=%26%2310003%3B";
33727
34583
  var charsetSentinel = "utf8=%E2%9C%93";
33728
34584
  var parseValues = function parseQueryStringValues(str, options) {
33729
- var obj = {};
34585
+ var obj = { __proto__: null };
33730
34586
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
34587
+ cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
33731
34588
  var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
33732
34589
  var parts = cleanStr.split(options.delimiter, limit);
33733
34590
  var skipIndex = -1;
@@ -33772,9 +34629,10 @@ var require_parse3 = __commonJS({
33772
34629
  if (part.indexOf("[]=") > -1) {
33773
34630
  val = isArray(val) ? [val] : val;
33774
34631
  }
33775
- if (has.call(obj, key)) {
34632
+ var existing = has.call(obj, key);
34633
+ if (existing && options.duplicates === "combine") {
33776
34634
  obj[key] = utils.combine(obj[key], val);
33777
- } else {
34635
+ } else if (!existing || options.duplicates === "last") {
33778
34636
  obj[key] = val;
33779
34637
  }
33780
34638
  }
@@ -33786,18 +34644,19 @@ var require_parse3 = __commonJS({
33786
34644
  var obj;
33787
34645
  var root = chain[i];
33788
34646
  if (root === "[]" && options.parseArrays) {
33789
- obj = [].concat(leaf);
34647
+ obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : [].concat(leaf);
33790
34648
  } else {
33791
34649
  obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
33792
34650
  var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
33793
- var index = parseInt(cleanRoot, 10);
33794
- if (!options.parseArrays && cleanRoot === "") {
34651
+ var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
34652
+ var index = parseInt(decodedRoot, 10);
34653
+ if (!options.parseArrays && decodedRoot === "") {
33795
34654
  obj = { 0: leaf };
33796
- } else if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
34655
+ } else if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
33797
34656
  obj = [];
33798
34657
  obj[index] = leaf;
33799
- } else if (cleanRoot !== "__proto__") {
33800
- obj[cleanRoot] = leaf;
34658
+ } else if (decodedRoot !== "__proto__") {
34659
+ obj[decodedRoot] = leaf;
33801
34660
  }
33802
34661
  }
33803
34662
  leaf = obj;
@@ -33833,6 +34692,9 @@ var require_parse3 = __commonJS({
33833
34692
  keys.push(segment[1]);
33834
34693
  }
33835
34694
  if (segment) {
34695
+ if (options.strictDepth === true) {
34696
+ throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
34697
+ }
33836
34698
  keys.push("[" + key.slice(segment.index) + "]");
33837
34699
  }
33838
34700
  return parseObject(keys, val, options, valuesParsed);
@@ -33841,30 +34703,45 @@ var require_parse3 = __commonJS({
33841
34703
  if (!opts) {
33842
34704
  return defaults;
33843
34705
  }
33844
- if (opts.decoder !== null && opts.decoder !== void 0 && typeof opts.decoder !== "function") {
34706
+ if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
34707
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
34708
+ }
34709
+ if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
34710
+ throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
34711
+ }
34712
+ if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
33845
34713
  throw new TypeError("Decoder has to be a function.");
33846
34714
  }
33847
34715
  if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
33848
34716
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
33849
34717
  }
33850
34718
  var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
34719
+ var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
34720
+ if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
34721
+ throw new TypeError("The duplicates option must be either combine, first, or last");
34722
+ }
34723
+ var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
33851
34724
  return {
33852
- allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots,
34725
+ allowDots,
34726
+ allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
33853
34727
  allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
33854
34728
  allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
33855
34729
  arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
33856
34730
  charset,
33857
34731
  charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
33858
34732
  comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
34733
+ decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
33859
34734
  decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
33860
34735
  delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
33861
34736
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
33862
34737
  depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
34738
+ duplicates,
33863
34739
  ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
33864
34740
  interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
33865
34741
  parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
33866
34742
  parseArrays: opts.parseArrays !== false,
33867
34743
  plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
34744
+ strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
33868
34745
  strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
33869
34746
  };
33870
34747
  };
@@ -33929,6 +34806,7 @@ var require_urlencoded = __commonJS({
33929
34806
  var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit;
33930
34807
  var type = opts.type || "application/x-www-form-urlencoded";
33931
34808
  var verify = opts.verify || false;
34809
+ var depth = typeof opts.depth !== "number" ? Number(opts.depth || 32) : opts.depth;
33932
34810
  if (verify !== false && typeof verify !== "function") {
33933
34811
  throw new TypeError("option verify must be function");
33934
34812
  }
@@ -33969,16 +34847,21 @@ var require_urlencoded = __commonJS({
33969
34847
  encoding: charset,
33970
34848
  inflate,
33971
34849
  limit,
33972
- verify
34850
+ verify,
34851
+ depth
33973
34852
  });
33974
34853
  };
33975
34854
  }
33976
34855
  function extendedparser(options) {
33977
34856
  var parameterLimit = options.parameterLimit !== void 0 ? options.parameterLimit : 1e3;
34857
+ var depth = typeof options.depth !== "number" ? Number(options.depth || 32) : options.depth;
33978
34858
  var parse = parser("qs");
33979
34859
  if (isNaN(parameterLimit) || parameterLimit < 1) {
33980
34860
  throw new TypeError("option parameterLimit must be a positive number");
33981
34861
  }
34862
+ if (isNaN(depth) || depth < 0) {
34863
+ throw new TypeError("option depth must be a zero or a positive number");
34864
+ }
33982
34865
  if (isFinite(parameterLimit)) {
33983
34866
  parameterLimit = parameterLimit | 0;
33984
34867
  }
@@ -33992,12 +34875,23 @@ var require_urlencoded = __commonJS({
33992
34875
  }
33993
34876
  var arrayLimit = Math.max(100, paramCount);
33994
34877
  debug("parse extended urlencoding");
33995
- return parse(body, {
33996
- allowPrototypes: true,
33997
- arrayLimit,
33998
- depth: Infinity,
33999
- parameterLimit
34000
- });
34878
+ try {
34879
+ return parse(body, {
34880
+ allowPrototypes: true,
34881
+ arrayLimit,
34882
+ depth,
34883
+ strictDepth: true,
34884
+ parameterLimit
34885
+ });
34886
+ } catch (err) {
34887
+ if (err instanceof RangeError) {
34888
+ throw createError(400, "The input exceeded the depth", {
34889
+ type: "querystring.parse.rangeError"
34890
+ });
34891
+ } else {
34892
+ throw err;
34893
+ }
34894
+ }
34001
34895
  };
34002
34896
  }
34003
34897
  function getCharset(req) {
@@ -34600,7 +35494,7 @@ var require_node2 = __commonJS({
34600
35494
  });
34601
35495
 
34602
35496
  // ../../node_modules/finalhandler/node_modules/debug/src/index.js
34603
- var require_src4 = __commonJS({
35497
+ var require_src3 = __commonJS({
34604
35498
  "../../node_modules/finalhandler/node_modules/debug/src/index.js"(exports, module) {
34605
35499
  init_cjs_shim();
34606
35500
  if (typeof process !== "undefined" && process.type === "renderer") {
@@ -34617,7 +35511,7 @@ var require_encodeurl = __commonJS({
34617
35511
  "use strict";
34618
35512
  init_cjs_shim();
34619
35513
  module.exports = encodeUrl;
34620
- var ENCODE_CHARS_REGEXP = /(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g;
35514
+ var ENCODE_CHARS_REGEXP = /(?:[^\x21\x23-\x3B\x3D\x3F-\x5F\x61-\x7A\x7C\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g;
34621
35515
  var UNMATCHED_SURROGATE_PAIR_REGEXP = /(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g;
34622
35516
  var UNMATCHED_SURROGATE_PAIR_REPLACE = "$1\uFFFD$2";
34623
35517
  function encodeUrl(url2) {
@@ -34758,7 +35652,7 @@ var require_finalhandler = __commonJS({
34758
35652
  "../../node_modules/finalhandler/index.js"(exports, module) {
34759
35653
  "use strict";
34760
35654
  init_cjs_shim();
34761
- var debug = require_src4()("finalhandler");
35655
+ var debug = require_src3()("finalhandler");
34762
35656
  var encodeUrl = require_encodeurl();
34763
35657
  var escapeHtml = require_escape_html();
34764
35658
  var onFinished = require_on_finished();
@@ -34806,7 +35700,9 @@ var require_finalhandler = __commonJS({
34806
35700
  }
34807
35701
  if (headersSent(res)) {
34808
35702
  debug("cannot %d after headers sent", status);
34809
- req.socket.destroy();
35703
+ if (req.socket) {
35704
+ req.socket.destroy();
35705
+ }
34810
35706
  return;
34811
35707
  }
34812
35708
  send(req, res, status, headers, msg);
@@ -34864,7 +35760,9 @@ var require_finalhandler = __commonJS({
34864
35760
  function write() {
34865
35761
  var body = createHtmlDocument(message);
34866
35762
  res.statusCode = status;
34867
- res.statusMessage = statuses.message[status];
35763
+ if (req.httpVersionMajor < 2) {
35764
+ res.statusMessage = statuses.message[status];
35765
+ }
34868
35766
  res.removeHeader("Content-Encoding");
34869
35767
  res.removeHeader("Content-Language");
34870
35768
  res.removeHeader("Content-Range");
@@ -35328,7 +36226,7 @@ var require_node3 = __commonJS({
35328
36226
  });
35329
36227
 
35330
36228
  // ../../node_modules/express/node_modules/debug/src/index.js
35331
- var require_src5 = __commonJS({
36229
+ var require_src4 = __commonJS({
35332
36230
  "../../node_modules/express/node_modules/debug/src/index.js"(exports, module) {
35333
36231
  init_cjs_shim();
35334
36232
  if (typeof process !== "undefined" && process.type === "renderer") {
@@ -35380,23 +36278,28 @@ var require_array_flatten = __commonJS({
35380
36278
  var require_path_to_regexp = __commonJS({
35381
36279
  "../../node_modules/express/node_modules/path-to-regexp/index.js"(exports, module) {
35382
36280
  init_cjs_shim();
35383
- module.exports = pathtoRegexp;
35384
- var MATCHING_GROUP_REGEXP = /\((?!\?)/g;
35385
- function pathtoRegexp(path3, keys, options) {
36281
+ module.exports = pathToRegexp;
36282
+ var MATCHING_GROUP_REGEXP = /\\.|\((?:\?<(.*?)>)?(?!\?)/g;
36283
+ function pathToRegexp(path3, keys, options) {
35386
36284
  options = options || {};
35387
36285
  keys = keys || [];
35388
36286
  var strict = options.strict;
35389
36287
  var end = options.end !== false;
35390
36288
  var flags = options.sensitive ? "" : "i";
36289
+ var lookahead = options.lookahead !== false;
35391
36290
  var extraOffset = 0;
35392
36291
  var keysOffset = keys.length;
35393
36292
  var i = 0;
35394
36293
  var name = 0;
36294
+ var pos = 0;
36295
+ var backtrack = "";
35395
36296
  var m;
35396
36297
  if (path3 instanceof RegExp) {
35397
36298
  while (m = MATCHING_GROUP_REGEXP.exec(path3.source)) {
36299
+ if (m[0][0] === "\\")
36300
+ continue;
35398
36301
  keys.push({
35399
- name: name++,
36302
+ name: m[1] || name++,
35400
36303
  optional: false,
35401
36304
  offset: m.index
35402
36305
  });
@@ -35405,39 +36308,61 @@ var require_path_to_regexp = __commonJS({
35405
36308
  }
35406
36309
  if (Array.isArray(path3)) {
35407
36310
  path3 = path3.map(function(value) {
35408
- return pathtoRegexp(value, keys, options).source;
35409
- });
35410
- return new RegExp("(?:" + path3.join("|") + ")", flags);
35411
- }
35412
- path3 = ("^" + path3 + (strict ? "" : path3[path3.length - 1] === "/" ? "?" : "/?")).replace(/\/\(/g, "/(?:").replace(/([\/\.])/g, "\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g, function(match, slash, format, key, capture, star, optional, offset) {
35413
- slash = slash || "";
35414
- format = format || "";
35415
- capture = capture || "([^\\/" + format + "]+?)";
35416
- optional = optional || "";
35417
- keys.push({
35418
- name: key,
35419
- optional: !!optional,
35420
- offset: offset + extraOffset
36311
+ return pathToRegexp(value, keys, options).source;
35421
36312
  });
35422
- var result = "" + (optional ? "" : slash) + "(?:" + format + (optional ? slash : "") + capture + (star ? "((?:[\\/" + format + "].+?)?)" : "") + ")" + optional;
35423
- extraOffset += result.length - match.length;
35424
- return result;
35425
- }).replace(/\*/g, function(star, index2) {
35426
- var len = keys.length;
35427
- while (len-- > keysOffset && keys[len].offset > index2) {
35428
- keys[len].offset += 3;
36313
+ return new RegExp(path3.join("|"), flags);
36314
+ }
36315
+ if (typeof path3 !== "string") {
36316
+ throw new TypeError("path must be a string, array of strings, or regular expression");
36317
+ }
36318
+ path3 = path3.replace(
36319
+ /\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,
36320
+ function(match, slash, format, key, capture, star, optional, offset) {
36321
+ if (match[0] === "\\") {
36322
+ backtrack += match;
36323
+ pos += 2;
36324
+ return match;
36325
+ }
36326
+ if (match === ".") {
36327
+ backtrack += "\\.";
36328
+ extraOffset += 1;
36329
+ pos += 1;
36330
+ return "\\.";
36331
+ }
36332
+ if (slash || format) {
36333
+ backtrack = "";
36334
+ } else {
36335
+ backtrack += path3.slice(pos, offset);
36336
+ }
36337
+ pos = offset + match.length;
36338
+ if (match === "*") {
36339
+ extraOffset += 3;
36340
+ return "(.*)";
36341
+ }
36342
+ if (match === "/(") {
36343
+ backtrack += "/";
36344
+ extraOffset += 2;
36345
+ return "/(?:";
36346
+ }
36347
+ slash = slash || "";
36348
+ format = format ? "\\." : "";
36349
+ optional = optional || "";
36350
+ capture = capture ? capture.replace(/\\.|\*/, function(m2) {
36351
+ return m2 === "*" ? "(.*)" : m2;
36352
+ }) : backtrack ? "((?:(?!/|" + backtrack + ").)+?)" : "([^/" + format + "]+?)";
36353
+ keys.push({
36354
+ name: key,
36355
+ optional: !!optional,
36356
+ offset: offset + extraOffset
36357
+ });
36358
+ var result = "(?:" + format + slash + capture + (star ? "((?:[/" + format + "].+?)?)" : "") + ")" + optional;
36359
+ extraOffset += result.length - match.length;
36360
+ return result;
35429
36361
  }
35430
- return "(.*)";
35431
- });
36362
+ );
35432
36363
  while (m = MATCHING_GROUP_REGEXP.exec(path3)) {
35433
- var escapeCount = 0;
35434
- var index = m.index;
35435
- while (path3.charAt(--index) === "\\") {
35436
- escapeCount++;
35437
- }
35438
- if (escapeCount % 2 === 1) {
36364
+ if (m[0][0] === "\\")
35439
36365
  continue;
35440
- }
35441
36366
  if (keysOffset + i === keys.length || keys[keysOffset + i].offset > m.index) {
35442
36367
  keys.splice(keysOffset + i, 0, {
35443
36368
  name: name++,
@@ -35448,8 +36373,13 @@ var require_path_to_regexp = __commonJS({
35448
36373
  }
35449
36374
  i++;
35450
36375
  }
35451
- path3 += end ? "$" : path3[path3.length - 1] === "/" ? "" : "(?=\\/|$)";
35452
- return new RegExp(path3, flags);
36376
+ path3 += strict ? "" : path3[path3.length - 1] === "/" ? "?" : "/?";
36377
+ if (end) {
36378
+ path3 += "$";
36379
+ } else if (path3[path3.length - 1] !== "/") {
36380
+ path3 += lookahead ? "(?=/|$)" : "(?:/|$)";
36381
+ }
36382
+ return new RegExp("^" + path3, flags);
35453
36383
  }
35454
36384
  }
35455
36385
  });
@@ -35460,7 +36390,7 @@ var require_layer = __commonJS({
35460
36390
  "use strict";
35461
36391
  init_cjs_shim();
35462
36392
  var pathRegexp = require_path_to_regexp();
35463
- var debug = require_src5()("express:router:layer");
36393
+ var debug = require_src4()("express:router:layer");
35464
36394
  var hasOwnProperty = Object.prototype.hasOwnProperty;
35465
36395
  module.exports = Layer;
35466
36396
  function Layer(path3, options, fn) {
@@ -35600,7 +36530,7 @@ var require_route = __commonJS({
35600
36530
  "../../node_modules/express/lib/router/route.js"(exports, module) {
35601
36531
  "use strict";
35602
36532
  init_cjs_shim();
35603
- var debug = require_src5()("express:router:route");
36533
+ var debug = require_src4()("express:router:route");
35604
36534
  var flatten = require_array_flatten();
35605
36535
  var Layer = require_layer();
35606
36536
  var methods = require_methods();
@@ -35617,7 +36547,7 @@ var require_route = __commonJS({
35617
36547
  if (this.methods._all) {
35618
36548
  return true;
35619
36549
  }
35620
- var name = method.toLowerCase();
36550
+ var name = typeof method === "string" ? method.toLowerCase() : method;
35621
36551
  if (name === "head" && !this.methods["head"]) {
35622
36552
  name = "get";
35623
36553
  }
@@ -35640,7 +36570,7 @@ var require_route = __commonJS({
35640
36570
  if (stack.length === 0) {
35641
36571
  return done();
35642
36572
  }
35643
- var method = req.method.toLowerCase();
36573
+ var method = typeof req.method === "string" ? req.method.toLowerCase() : req.method;
35644
36574
  if (method === "head" && !this.methods["head"]) {
35645
36575
  method = "get";
35646
36576
  }
@@ -35732,7 +36662,7 @@ var require_router = __commonJS({
35732
36662
  var Layer = require_layer();
35733
36663
  var methods = require_methods();
35734
36664
  var mixin = require_utils_merge();
35735
- var debug = require_src5()("express:router");
36665
+ var debug = require_src4()("express:router");
35736
36666
  var deprecate = require_depd()("express");
35737
36667
  var flatten = require_array_flatten();
35738
36668
  var parseUrl = require_parseurl();
@@ -36166,7 +37096,7 @@ var require_view = __commonJS({
36166
37096
  "../../node_modules/express/lib/view.js"(exports, module) {
36167
37097
  "use strict";
36168
37098
  init_cjs_shim();
36169
- var debug = require_src5()("express:view");
37099
+ var debug = require_src4()("express:view");
36170
37100
  var path3 = __require("path");
36171
37101
  var fs2 = __require("fs");
36172
37102
  var dirname = path3.dirname;
@@ -36406,6 +37336,108 @@ var require_content_disposition = __commonJS({
36406
37336
  }
36407
37337
  });
36408
37338
 
37339
+ // ../../node_modules/content-type/index.js
37340
+ var require_content_type2 = __commonJS({
37341
+ "../../node_modules/content-type/index.js"(exports) {
37342
+ "use strict";
37343
+ init_cjs_shim();
37344
+ var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g;
37345
+ var TEXT_REGEXP = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/;
37346
+ var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
37347
+ var QESC_REGEXP = /\\([\u000b\u0020-\u00ff])/g;
37348
+ var QUOTE_REGEXP = /([\\"])/g;
37349
+ var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
37350
+ exports.format = format;
37351
+ exports.parse = parse;
37352
+ function format(obj) {
37353
+ if (!obj || typeof obj !== "object") {
37354
+ throw new TypeError("argument obj is required");
37355
+ }
37356
+ var parameters = obj.parameters;
37357
+ var type = obj.type;
37358
+ if (!type || !TYPE_REGEXP.test(type)) {
37359
+ throw new TypeError("invalid type");
37360
+ }
37361
+ var string = type;
37362
+ if (parameters && typeof parameters === "object") {
37363
+ var param;
37364
+ var params = Object.keys(parameters).sort();
37365
+ for (var i = 0; i < params.length; i++) {
37366
+ param = params[i];
37367
+ if (!TOKEN_REGEXP.test(param)) {
37368
+ throw new TypeError("invalid parameter name");
37369
+ }
37370
+ string += "; " + param + "=" + qstring(parameters[param]);
37371
+ }
37372
+ }
37373
+ return string;
37374
+ }
37375
+ function parse(string) {
37376
+ if (!string) {
37377
+ throw new TypeError("argument string is required");
37378
+ }
37379
+ var header = typeof string === "object" ? getcontenttype(string) : string;
37380
+ if (typeof header !== "string") {
37381
+ throw new TypeError("argument string is required to be a string");
37382
+ }
37383
+ var index = header.indexOf(";");
37384
+ var type = index !== -1 ? header.substr(0, index).trim() : header.trim();
37385
+ if (!TYPE_REGEXP.test(type)) {
37386
+ throw new TypeError("invalid media type");
37387
+ }
37388
+ var obj = new ContentType(type.toLowerCase());
37389
+ if (index !== -1) {
37390
+ var key;
37391
+ var match;
37392
+ var value;
37393
+ PARAM_REGEXP.lastIndex = index;
37394
+ while (match = PARAM_REGEXP.exec(header)) {
37395
+ if (match.index !== index) {
37396
+ throw new TypeError("invalid parameter format");
37397
+ }
37398
+ index += match[0].length;
37399
+ key = match[1].toLowerCase();
37400
+ value = match[2];
37401
+ if (value[0] === '"') {
37402
+ value = value.substr(1, value.length - 2).replace(QESC_REGEXP, "$1");
37403
+ }
37404
+ obj.parameters[key] = value;
37405
+ }
37406
+ if (index !== header.length) {
37407
+ throw new TypeError("invalid parameter format");
37408
+ }
37409
+ }
37410
+ return obj;
37411
+ }
37412
+ function getcontenttype(obj) {
37413
+ var header;
37414
+ if (typeof obj.getHeader === "function") {
37415
+ header = obj.getHeader("content-type");
37416
+ } else if (typeof obj.headers === "object") {
37417
+ header = obj.headers && obj.headers["content-type"];
37418
+ }
37419
+ if (typeof header !== "string") {
37420
+ throw new TypeError("content-type header is missing from object");
37421
+ }
37422
+ return header;
37423
+ }
37424
+ function qstring(val) {
37425
+ var str = String(val);
37426
+ if (TOKEN_REGEXP.test(str)) {
37427
+ return str;
37428
+ }
37429
+ if (str.length > 0 && !TEXT_REGEXP.test(str)) {
37430
+ throw new TypeError("invalid parameter value");
37431
+ }
37432
+ return '"' + str.replace(QUOTE_REGEXP, "\\$1") + '"';
37433
+ }
37434
+ function ContentType(type) {
37435
+ this.parameters = /* @__PURE__ */ Object.create(null);
37436
+ this.type = type;
37437
+ }
37438
+ }
37439
+ });
37440
+
36409
37441
  // ../../node_modules/send/node_modules/debug/node_modules/ms/index.js
36410
37442
  var require_ms5 = __commonJS({
36411
37443
  "../../node_modules/send/node_modules/debug/node_modules/ms/index.js"(exports, module) {
@@ -36834,7 +37866,7 @@ var require_node4 = __commonJS({
36834
37866
  });
36835
37867
 
36836
37868
  // ../../node_modules/send/node_modules/debug/src/index.js
36837
- var require_src6 = __commonJS({
37869
+ var require_src5 = __commonJS({
36838
37870
  "../../node_modules/send/node_modules/debug/src/index.js"(exports, module) {
36839
37871
  init_cjs_shim();
36840
37872
  if (typeof process !== "undefined" && process.type === "renderer") {
@@ -36845,6 +37877,21 @@ var require_src6 = __commonJS({
36845
37877
  }
36846
37878
  });
36847
37879
 
37880
+ // ../../node_modules/send/node_modules/encodeurl/index.js
37881
+ var require_encodeurl2 = __commonJS({
37882
+ "../../node_modules/send/node_modules/encodeurl/index.js"(exports, module) {
37883
+ "use strict";
37884
+ init_cjs_shim();
37885
+ module.exports = encodeUrl;
37886
+ var ENCODE_CHARS_REGEXP = /(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g;
37887
+ var UNMATCHED_SURROGATE_PAIR_REGEXP = /(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g;
37888
+ var UNMATCHED_SURROGATE_PAIR_REPLACE = "$1\uFFFD$2";
37889
+ function encodeUrl(url2) {
37890
+ return String(url2).replace(UNMATCHED_SURROGATE_PAIR_REGEXP, UNMATCHED_SURROGATE_PAIR_REPLACE).replace(ENCODE_CHARS_REGEXP, encodeURI);
37891
+ }
37892
+ }
37893
+ });
37894
+
36848
37895
  // ../../node_modules/etag/index.js
36849
37896
  var require_etag = __commonJS({
36850
37897
  "../../node_modules/etag/index.js"(exports, module) {
@@ -37229,10 +38276,10 @@ var require_send = __commonJS({
37229
38276
  "use strict";
37230
38277
  init_cjs_shim();
37231
38278
  var createError = require_http_errors();
37232
- var debug = require_src6()("send");
38279
+ var debug = require_src5()("send");
37233
38280
  var deprecate = require_depd()("send");
37234
38281
  var destroy = require_destroy();
37235
- var encodeUrl = require_encodeurl();
38282
+ var encodeUrl = require_encodeurl2();
37236
38283
  var escapeHtml = require_escape_html();
37237
38284
  var etag = require_etag();
37238
38285
  var fresh = require_fresh();
@@ -37433,7 +38480,7 @@ var require_send = __commonJS({
37433
38480
  return;
37434
38481
  }
37435
38482
  var loc = encodeUrl(collapseLeadingSlashes(this.path + "/"));
37436
- var doc = createHtmlDocument("Redirecting", 'Redirecting to <a href="' + escapeHtml(loc) + '">' + escapeHtml(loc) + "</a>");
38483
+ var doc = createHtmlDocument("Redirecting", "Redirecting to " + escapeHtml(loc));
37437
38484
  res.statusCode = 301;
37438
38485
  res.setHeader("Content-Type", "text/html; charset=UTF-8");
37439
38486
  res.setHeader("Content-Length", Buffer.byteLength(doc));
@@ -38619,7 +39666,7 @@ var require_utils3 = __commonJS({
38619
39666
  init_cjs_shim();
38620
39667
  var Buffer2 = require_safe_buffer().Buffer;
38621
39668
  var contentDisposition = require_content_disposition();
38622
- var contentType = require_content_type();
39669
+ var contentType = require_content_type2();
38623
39670
  var deprecate = require_depd()("express");
38624
39671
  var flatten = require_array_flatten();
38625
39672
  var mime = require_send().mime;
@@ -38655,9 +39702,9 @@ var require_utils3 = __commonJS({
38655
39702
  contentDisposition,
38656
39703
  "utils.contentDisposition: use content-disposition npm module instead"
38657
39704
  );
38658
- function acceptParams(str, index) {
39705
+ function acceptParams(str) {
38659
39706
  var parts = str.split(/ *; */);
38660
- var ret = { value: parts[0], quality: 1, params: {}, originalIndex: index };
39707
+ var ret = { value: parts[0], quality: 1, params: {} };
38661
39708
  for (var i = 1; i < parts.length; ++i) {
38662
39709
  var pms = parts[i].split(/ *= */);
38663
39710
  if ("q" === pms[0]) {
@@ -38764,7 +39811,7 @@ var require_application = __commonJS({
38764
39811
  var methods = require_methods();
38765
39812
  var middleware = require_init();
38766
39813
  var query = require_query();
38767
- var debug = require_src5()("express:application");
39814
+ var debug = require_src4()("express:application");
38768
39815
  var View = require_view();
38769
39816
  var http = __require("http");
38770
39817
  var compileETag = require_utils3().compileETag;
@@ -48454,68 +49501,96 @@ var require_cookie = __commonJS({
48454
49501
  exports.parse = parse;
48455
49502
  exports.serialize = serialize;
48456
49503
  var __toString = Object.prototype.toString;
48457
- var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
48458
- function parse(str, options) {
49504
+ var cookieNameRegExp = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
49505
+ var cookieValueRegExp = /^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/;
49506
+ var domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;
49507
+ var pathValueRegExp = /^[\u0020-\u003A\u003D-\u007E]*$/;
49508
+ function parse(str, opt) {
48459
49509
  if (typeof str !== "string") {
48460
49510
  throw new TypeError("argument str must be a string");
48461
49511
  }
48462
49512
  var obj = {};
48463
- var opt = options || {};
48464
- var dec = opt.decode || decode;
49513
+ var len = str.length;
49514
+ if (len < 2)
49515
+ return obj;
49516
+ var dec = opt && opt.decode || decode;
48465
49517
  var index = 0;
48466
- while (index < str.length) {
48467
- var eqIdx = str.indexOf("=", index);
48468
- if (eqIdx === -1) {
49518
+ var eqIdx = 0;
49519
+ var endIdx = 0;
49520
+ do {
49521
+ eqIdx = str.indexOf("=", index);
49522
+ if (eqIdx === -1)
48469
49523
  break;
48470
- }
48471
- var endIdx = str.indexOf(";", index);
49524
+ endIdx = str.indexOf(";", index);
48472
49525
  if (endIdx === -1) {
48473
- endIdx = str.length;
48474
- } else if (endIdx < eqIdx) {
49526
+ endIdx = len;
49527
+ } else if (eqIdx > endIdx) {
48475
49528
  index = str.lastIndexOf(";", eqIdx - 1) + 1;
48476
49529
  continue;
48477
49530
  }
48478
- var key = str.slice(index, eqIdx).trim();
48479
- if (void 0 === obj[key]) {
48480
- var val = str.slice(eqIdx + 1, endIdx).trim();
48481
- if (val.charCodeAt(0) === 34) {
48482
- val = val.slice(1, -1);
48483
- }
49531
+ var keyStartIdx = startIndex(str, index, eqIdx);
49532
+ var keyEndIdx = endIndex(str, eqIdx, keyStartIdx);
49533
+ var key = str.slice(keyStartIdx, keyEndIdx);
49534
+ if (!obj.hasOwnProperty(key)) {
49535
+ var valStartIdx = startIndex(str, eqIdx + 1, endIdx);
49536
+ var valEndIdx = endIndex(str, endIdx, valStartIdx);
49537
+ if (str.charCodeAt(valStartIdx) === 34 && str.charCodeAt(valEndIdx - 1) === 34) {
49538
+ valStartIdx++;
49539
+ valEndIdx--;
49540
+ }
49541
+ var val = str.slice(valStartIdx, valEndIdx);
48484
49542
  obj[key] = tryDecode(val, dec);
48485
49543
  }
48486
49544
  index = endIdx + 1;
48487
- }
49545
+ } while (index < len);
48488
49546
  return obj;
48489
49547
  }
48490
- function serialize(name, val, options) {
48491
- var opt = options || {};
48492
- var enc = opt.encode || encode;
49548
+ function startIndex(str, index, max) {
49549
+ do {
49550
+ var code = str.charCodeAt(index);
49551
+ if (code !== 32 && code !== 9)
49552
+ return index;
49553
+ } while (++index < max);
49554
+ return max;
49555
+ }
49556
+ function endIndex(str, index, min) {
49557
+ while (index > min) {
49558
+ var code = str.charCodeAt(--index);
49559
+ if (code !== 32 && code !== 9)
49560
+ return index + 1;
49561
+ }
49562
+ return min;
49563
+ }
49564
+ function serialize(name, val, opt) {
49565
+ var enc = opt && opt.encode || encodeURIComponent;
48493
49566
  if (typeof enc !== "function") {
48494
49567
  throw new TypeError("option encode is invalid");
48495
49568
  }
48496
- if (!fieldContentRegExp.test(name)) {
49569
+ if (!cookieNameRegExp.test(name)) {
48497
49570
  throw new TypeError("argument name is invalid");
48498
49571
  }
48499
49572
  var value = enc(val);
48500
- if (value && !fieldContentRegExp.test(value)) {
49573
+ if (!cookieValueRegExp.test(value)) {
48501
49574
  throw new TypeError("argument val is invalid");
48502
49575
  }
48503
49576
  var str = name + "=" + value;
49577
+ if (!opt)
49578
+ return str;
48504
49579
  if (null != opt.maxAge) {
48505
- var maxAge = opt.maxAge - 0;
48506
- if (isNaN(maxAge) || !isFinite(maxAge)) {
49580
+ var maxAge = Math.floor(opt.maxAge);
49581
+ if (!isFinite(maxAge)) {
48507
49582
  throw new TypeError("option maxAge is invalid");
48508
49583
  }
48509
- str += "; Max-Age=" + Math.floor(maxAge);
49584
+ str += "; Max-Age=" + maxAge;
48510
49585
  }
48511
49586
  if (opt.domain) {
48512
- if (!fieldContentRegExp.test(opt.domain)) {
49587
+ if (!domainValueRegExp.test(opt.domain)) {
48513
49588
  throw new TypeError("option domain is invalid");
48514
49589
  }
48515
49590
  str += "; Domain=" + opt.domain;
48516
49591
  }
48517
49592
  if (opt.path) {
48518
- if (!fieldContentRegExp.test(opt.path)) {
49593
+ if (!pathValueRegExp.test(opt.path)) {
48519
49594
  throw new TypeError("option path is invalid");
48520
49595
  }
48521
49596
  str += "; Path=" + opt.path;
@@ -48533,6 +49608,9 @@ var require_cookie = __commonJS({
48533
49608
  if (opt.secure) {
48534
49609
  str += "; Secure";
48535
49610
  }
49611
+ if (opt.partitioned) {
49612
+ str += "; Partitioned";
49613
+ }
48536
49614
  if (opt.priority) {
48537
49615
  var priority = typeof opt.priority === "string" ? opt.priority.toLowerCase() : opt.priority;
48538
49616
  switch (priority) {
@@ -48573,11 +49651,8 @@ var require_cookie = __commonJS({
48573
49651
  function decode(str) {
48574
49652
  return str.indexOf("%") !== -1 ? decodeURIComponent(str) : str;
48575
49653
  }
48576
- function encode(val) {
48577
- return encodeURIComponent(val);
48578
- }
48579
49654
  function isDate(val) {
48580
- return __toString.call(val) === "[object Date]" || val instanceof Date;
49655
+ return __toString.call(val) === "[object Date]";
48581
49656
  }
48582
49657
  function tryDecode(str, decode2) {
48583
49658
  try {
@@ -49021,6 +50096,14 @@ var require_response = __commonJS({
49021
50096
  return this.getHeader(field);
49022
50097
  };
49023
50098
  res.clearCookie = function clearCookie(name, options) {
50099
+ if (options) {
50100
+ if (options.maxAge) {
50101
+ deprecate('res.clearCookie: Passing "options.maxAge" is deprecated. In v5.0.0 of Express, this option will be ignored, as res.clearCookie will automatically set cookies to expire immediately. Please update your code to omit this option.');
50102
+ }
50103
+ if (options.expires) {
50104
+ deprecate('res.clearCookie: Passing "options.expires" is deprecated. In v5.0.0 of Express, this option will be ignored, as res.clearCookie will automatically set cookies to expire immediately. Please update your code to omit this option.');
50105
+ }
50106
+ }
49024
50107
  var opts = merge({ expires: /* @__PURE__ */ new Date(1), path: "/" }, options);
49025
50108
  return this.cookie(name, "", opts);
49026
50109
  };
@@ -49049,9 +50132,12 @@ var require_response = __commonJS({
49049
50132
  return this;
49050
50133
  };
49051
50134
  res.location = function location2(url2) {
49052
- var loc = url2;
50135
+ var loc;
49053
50136
  if (url2 === "back") {
50137
+ deprecate('res.location("back"): use res.location(req.get("Referrer") || "/") and refer to https://dub.sh/security-redirect for best practices');
49054
50138
  loc = this.req.get("Referrer") || "/";
50139
+ } else {
50140
+ loc = String(url2);
49055
50141
  }
49056
50142
  return this.set("Location", encodeUrl(loc));
49057
50143
  };
@@ -49075,7 +50161,7 @@ var require_response = __commonJS({
49075
50161
  },
49076
50162
  html: function() {
49077
50163
  var u = escapeHtml(address);
49078
- body = "<p>" + statuses.message[status] + '. Redirecting to <a href="' + u + '">' + u + "</a></p>";
50164
+ body = "<p>" + statuses.message[status] + ". Redirecting to " + u + "</p>";
49079
50165
  },
49080
50166
  default: function() {
49081
50167
  body = "";
@@ -49302,7 +50388,7 @@ var require_serve_static = __commonJS({
49302
50388
  originalUrl.path = null;
49303
50389
  originalUrl.pathname = collapseLeadingSlashes(originalUrl.pathname + "/");
49304
50390
  var loc = encodeUrl(url2.format(originalUrl));
49305
- var doc = createHtmlDocument("Redirecting", 'Redirecting to <a href="' + escapeHtml(loc) + '">' + escapeHtml(loc) + "</a>");
50391
+ var doc = createHtmlDocument("Redirecting", "Redirecting to " + escapeHtml(loc));
49306
50392
  res.statusCode = 301;
49307
50393
  res.setHeader("Content-Type", "text/html; charset=UTF-8");
49308
50394
  res.setHeader("Content-Length", Buffer.byteLength(doc));
@@ -58547,6 +59633,20 @@ content-disposition/index.js:
58547
59633
  * MIT Licensed
58548
59634
  *)
58549
59635
 
59636
+ content-type/index.js:
59637
+ (*!
59638
+ * content-type
59639
+ * Copyright(c) 2015 Douglas Christopher Wilson
59640
+ * MIT Licensed
59641
+ *)
59642
+
59643
+ encodeurl/index.js:
59644
+ (*!
59645
+ * encodeurl
59646
+ * Copyright(c) 2016 Douglas Christopher Wilson
59647
+ * MIT Licensed
59648
+ *)
59649
+
58550
59650
  etag/index.js:
58551
59651
  (*!
58552
59652
  * etag