@alpic-ai/sdk 0.0.0-dev.g6ff91c7 → 0.0.0-dev.g710953e

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.
@@ -45,7 +45,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
45
45
  var require_delayed_stream = __commonJS({
46
46
  "../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js"(exports, module) {
47
47
  var Stream = __require("stream").Stream;
48
- var util3 = __require("util");
48
+ var util4 = __require("util");
49
49
  module.exports = DelayedStream;
50
50
  function DelayedStream() {
51
51
  this.source = null;
@@ -56,7 +56,7 @@ var require_delayed_stream = __commonJS({
56
56
  this._released = false;
57
57
  this._bufferedEvents = [];
58
58
  }
59
- util3.inherits(DelayedStream, Stream);
59
+ util4.inherits(DelayedStream, Stream);
60
60
  DelayedStream.create = function(source, options) {
61
61
  var delayedStream = new this();
62
62
  options = options || {};
@@ -135,7 +135,7 @@ var require_delayed_stream = __commonJS({
135
135
  // ../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js
136
136
  var require_combined_stream = __commonJS({
137
137
  "../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js"(exports, module) {
138
- var util3 = __require("util");
138
+ var util4 = __require("util");
139
139
  var Stream = __require("stream").Stream;
140
140
  var DelayedStream = require_delayed_stream();
141
141
  module.exports = CombinedStream;
@@ -151,7 +151,7 @@ var require_combined_stream = __commonJS({
151
151
  this._insideLoop = false;
152
152
  this._pendingNext = false;
153
153
  }
154
- util3.inherits(CombinedStream, Stream);
154
+ util4.inherits(CombinedStream, Stream);
155
155
  CombinedStream.create = function(options) {
156
156
  var combinedStream = new this();
157
157
  options = options || {};
@@ -9593,9 +9593,9 @@ var require_get_proto = __commonJS({
9593
9593
  }
9594
9594
  });
9595
9595
 
9596
- // ../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
9596
+ // ../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js
9597
9597
  var require_hasown = __commonJS({
9598
- "../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module) {
9598
+ "../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js"(exports, module) {
9599
9599
  "use strict";
9600
9600
  var call = Function.prototype.call;
9601
9601
  var $hasOwn = Object.prototype.hasOwnProperty;
@@ -9978,17 +9978,6 @@ var require_es_set_tostringtag = __commonJS({
9978
9978
  }
9979
9979
  });
9980
9980
 
9981
- // ../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js
9982
- var require_hasown2 = __commonJS({
9983
- "../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js"(exports, module) {
9984
- "use strict";
9985
- var call = Function.prototype.call;
9986
- var $hasOwn = Object.prototype.hasOwnProperty;
9987
- var bind2 = require_function_bind();
9988
- module.exports = bind2.call(call, $hasOwn);
9989
- }
9990
- });
9991
-
9992
9981
  // ../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/populate.js
9993
9982
  var require_populate = __commonJS({
9994
9983
  "../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/populate.js"(exports, module) {
@@ -10007,7 +9996,7 @@ var require_form_data = __commonJS({
10007
9996
  "../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/form_data.js"(exports, module) {
10008
9997
  "use strict";
10009
9998
  var CombinedStream = require_combined_stream();
10010
- var util3 = __require("util");
9999
+ var util4 = __require("util");
10011
10000
  var path = __require("path");
10012
10001
  var http3 = __require("http");
10013
10002
  var https2 = __require("https");
@@ -10018,7 +10007,7 @@ var require_form_data = __commonJS({
10018
10007
  var mime = require_mime_types();
10019
10008
  var asynckit = require_asynckit();
10020
10009
  var setToStringTag = require_es_set_tostringtag();
10021
- var hasOwn = require_hasown2();
10010
+ var hasOwn = require_hasown();
10022
10011
  var populate = require_populate();
10023
10012
  function escapeHeaderParam(str) {
10024
10013
  return String(str).replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/"/g, "%22");
@@ -10036,7 +10025,7 @@ var require_form_data = __commonJS({
10036
10025
  this[option] = options[option];
10037
10026
  }
10038
10027
  }
10039
- util3.inherits(FormData3, CombinedStream);
10028
+ util4.inherits(FormData3, CombinedStream);
10040
10029
  FormData3.LINE_BREAK = "\r\n";
10041
10030
  FormData3.DEFAULT_CONTENT_TYPE = "application/octet-stream";
10042
10031
  FormData3.prototype.append = function(field, value, options) {
@@ -10918,14 +10907,14 @@ var require_supports_color = __commonJS({
10918
10907
  var require_node = __commonJS({
10919
10908
  "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module) {
10920
10909
  var tty = __require("tty");
10921
- var util3 = __require("util");
10910
+ var util4 = __require("util");
10922
10911
  exports.init = init;
10923
10912
  exports.log = log3;
10924
10913
  exports.formatArgs = formatArgs;
10925
10914
  exports.save = save;
10926
10915
  exports.load = load;
10927
10916
  exports.useColors = useColors;
10928
- exports.destroy = util3.deprecate(
10917
+ exports.destroy = util4.deprecate(
10929
10918
  () => {
10930
10919
  },
10931
10920
  "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
@@ -11056,7 +11045,7 @@ var require_node = __commonJS({
11056
11045
  return (/* @__PURE__ */ new Date()).toISOString() + " ";
11057
11046
  }
11058
11047
  function log3(...args) {
11059
- return process.stderr.write(util3.formatWithOptions(exports.inspectOpts, ...args) + "\n");
11048
+ return process.stderr.write(util4.formatWithOptions(exports.inspectOpts, ...args) + "\n");
11060
11049
  }
11061
11050
  function save(namespaces) {
11062
11051
  if (namespaces) {
@@ -11079,11 +11068,11 @@ var require_node = __commonJS({
11079
11068
  var { formatters } = module.exports;
11080
11069
  formatters.o = function(v) {
11081
11070
  this.inspectOpts.colors = this.useColors;
11082
- return util3.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
11071
+ return util4.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
11083
11072
  };
11084
11073
  formatters.O = function(v) {
11085
11074
  this.inspectOpts.colors = this.useColors;
11086
- return util3.inspect(v, this.inspectOpts);
11075
+ return util4.inspect(v, this.inspectOpts);
11087
11076
  };
11088
11077
  }
11089
11078
  });
@@ -11549,9 +11538,9 @@ var require_dist = __commonJS({
11549
11538
  }
11550
11539
  });
11551
11540
 
11552
- // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js
11541
+ // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js
11553
11542
  var require_debug = __commonJS({
11554
- "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js"(exports, module) {
11543
+ "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js"(exports, module) {
11555
11544
  var debug3;
11556
11545
  module.exports = function() {
11557
11546
  if (!debug3) {
@@ -11569,9 +11558,9 @@ var require_debug = __commonJS({
11569
11558
  }
11570
11559
  });
11571
11560
 
11572
- // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js
11561
+ // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js
11573
11562
  var require_follow_redirects = __commonJS({
11574
- "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js"(exports, module) {
11563
+ "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js"(exports, module) {
11575
11564
  var url2 = __require("url");
11576
11565
  var URL2 = url2.URL;
11577
11566
  var http3 = __require("http");
@@ -12080,17 +12069,34 @@ var require_follow_redirects = __commonJS({
12080
12069
  }
12081
12070
  });
12082
12071
 
12083
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/bind.js
12072
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
12084
12073
  function bind(fn, thisArg) {
12085
12074
  return function wrap() {
12086
12075
  return fn.apply(thisArg, arguments);
12087
12076
  };
12088
12077
  }
12089
12078
 
12090
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/utils.js
12079
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
12091
12080
  var { toString } = Object.prototype;
12092
12081
  var { getPrototypeOf } = Object;
12093
12082
  var { iterator, toStringTag } = Symbol;
12083
+ var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
12084
+ var hasOwnInPrototypeChain = (thing, prop) => {
12085
+ let obj = thing;
12086
+ const seen = [];
12087
+ while (obj != null && obj !== Object.prototype) {
12088
+ if (seen.indexOf(obj) !== -1) {
12089
+ return false;
12090
+ }
12091
+ seen.push(obj);
12092
+ if (hasOwnProperty(obj, prop)) {
12093
+ return true;
12094
+ }
12095
+ obj = getPrototypeOf(obj);
12096
+ }
12097
+ return false;
12098
+ };
12099
+ var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
12094
12100
  var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
12095
12101
  const str = toString.call(thing);
12096
12102
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -12121,11 +12127,14 @@ var isNumber = typeOfTest("number");
12121
12127
  var isObject = (thing) => thing !== null && typeof thing === "object";
12122
12128
  var isBoolean = (thing) => thing === true || thing === false;
12123
12129
  var isPlainObject = (val) => {
12124
- if (kindOf(val) !== "object") {
12130
+ if (!isObject(val)) {
12125
12131
  return false;
12126
12132
  }
12127
12133
  const prototype2 = getPrototypeOf(val);
12128
- return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
12134
+ return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
12135
+ // Symbol.iterator as evidence the value is a tagged/iterable type rather
12136
+ // than a plain object, while ignoring keys injected onto Object.prototype.
12137
+ !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
12129
12138
  };
12130
12139
  var isEmptyObject = (val) => {
12131
12140
  if (!isObject(val) || isBuffer(val)) {
@@ -12145,6 +12154,7 @@ var isReactNativeBlob = (value) => {
12145
12154
  var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
12146
12155
  var isBlob = kindOfTest("Blob");
12147
12156
  var isFileList = kindOfTest("FileList");
12157
+ var isSet = kindOfTest("Set");
12148
12158
  var isStream = (val) => isObject(val) && isFunction(val.pipe);
12149
12159
  function getGlobal() {
12150
12160
  if (typeof globalThis !== "undefined") return globalThis;
@@ -12229,7 +12239,7 @@ function merge(...objs) {
12229
12239
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
12230
12240
  return;
12231
12241
  }
12232
- const targetKey = caseless && findKey(result, key) || key;
12242
+ const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
12233
12243
  const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
12234
12244
  if (isPlainObject(existing) && isPlainObject(val)) {
12235
12245
  result[targetKey] = merge(existing, val);
@@ -12242,7 +12252,21 @@ function merge(...objs) {
12242
12252
  }
12243
12253
  };
12244
12254
  for (let i = 0, l = objs.length; i < l; i++) {
12245
- objs[i] && forEach(objs[i], assignValue);
12255
+ const source = objs[i];
12256
+ if (!source || isBuffer(source)) {
12257
+ continue;
12258
+ }
12259
+ forEach(source, assignValue);
12260
+ if (typeof source !== "object" || isArray(source)) {
12261
+ continue;
12262
+ }
12263
+ const symbols = Object.getOwnPropertySymbols(source);
12264
+ for (let j = 0; j < symbols.length; j++) {
12265
+ const symbol = symbols[j];
12266
+ if (propertyIsEnumerable.call(source, symbol)) {
12267
+ assignValue(source[symbol], symbol);
12268
+ }
12269
+ }
12246
12270
  }
12247
12271
  return result;
12248
12272
  }
@@ -12364,7 +12388,7 @@ var toCamelCase = (str) => {
12364
12388
  return p1.toUpperCase() + p2;
12365
12389
  });
12366
12390
  };
12367
- var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
12391
+ var { propertyIsEnumerable } = Object.prototype;
12368
12392
  var isRegExp = kindOfTest("RegExp");
12369
12393
  var reduceDescriptors = (obj, reducer) => {
12370
12394
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -12426,11 +12450,20 @@ var toJSONObject = (obj) => {
12426
12450
  }
12427
12451
  if (!("toJSON" in source)) {
12428
12452
  visited.add(source);
12429
- const target = isArray(source) ? [] : {};
12430
- forEach(source, (value, key) => {
12431
- const reducedValue = visit(value);
12432
- !isUndefined(reducedValue) && (target[key] = reducedValue);
12433
- });
12453
+ let target;
12454
+ if (isSet(source)) {
12455
+ target = [];
12456
+ for (const value of source) {
12457
+ const reducedValue = visit(value);
12458
+ !isUndefined(reducedValue) && target.push(reducedValue);
12459
+ }
12460
+ } else {
12461
+ target = isArray(source) ? [] : {};
12462
+ forEach(source, (value, key) => {
12463
+ const reducedValue = visit(value);
12464
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
12465
+ });
12466
+ }
12434
12467
  visited.delete(source);
12435
12468
  return target;
12436
12469
  }
@@ -12463,6 +12496,7 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
12463
12496
  })(typeof setImmediate === "function", isFunction(_global.postMessage));
12464
12497
  var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
12465
12498
  var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
12499
+ var isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
12466
12500
  var utils_default = {
12467
12501
  isArray,
12468
12502
  isArrayBuffer,
@@ -12508,6 +12542,8 @@ var utils_default = {
12508
12542
  hasOwnProperty,
12509
12543
  hasOwnProp: hasOwnProperty,
12510
12544
  // an alias to avoid ESLint no-prototype-builtins detection
12545
+ hasOwnInPrototypeChain,
12546
+ getSafeProp,
12511
12547
  reduceDescriptors,
12512
12548
  freezeMethods,
12513
12549
  toObjectSet,
@@ -12523,10 +12559,11 @@ var utils_default = {
12523
12559
  isThenable,
12524
12560
  setImmediate: _setImmediate,
12525
12561
  asap,
12526
- isIterable
12562
+ isIterable,
12563
+ isSafeIterable
12527
12564
  };
12528
12565
 
12529
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js
12566
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
12530
12567
  var ignoreDuplicateOf = utils_default.toObjectSet([
12531
12568
  "age",
12532
12569
  "authorization",
@@ -12555,23 +12592,24 @@ var parseHeaders_default = (rawHeaders) => {
12555
12592
  i = line.indexOf(":");
12556
12593
  key = line.substring(0, i).trim().toLowerCase();
12557
12594
  val = line.substring(i + 1).trim();
12558
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
12595
+ const hasKey = utils_default.hasOwnProp(parsed, key);
12596
+ if (!key || hasKey && utils_default.hasOwnProp(ignoreDuplicateOf, key)) {
12559
12597
  return;
12560
12598
  }
12561
12599
  if (key === "set-cookie") {
12562
- if (parsed[key]) {
12600
+ if (hasKey) {
12563
12601
  parsed[key].push(val);
12564
12602
  } else {
12565
12603
  parsed[key] = [val];
12566
12604
  }
12567
12605
  } else {
12568
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
12606
+ parsed[key] = hasKey ? parsed[key] + ", " + val : val;
12569
12607
  }
12570
12608
  });
12571
12609
  return parsed;
12572
12610
  };
12573
12611
 
12574
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12612
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12575
12613
  function trimSPorHTAB(str) {
12576
12614
  let start = 0;
12577
12615
  let end = str.length;
@@ -12609,7 +12647,7 @@ function toByteStringHeaderObject(headers) {
12609
12647
  return byteStringHeaders;
12610
12648
  }
12611
12649
 
12612
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/AxiosHeaders.js
12650
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
12613
12651
  var $internals = /* @__PURE__ */ Symbol("internals");
12614
12652
  function normalizeHeader(header) {
12615
12653
  return header && String(header).trim().toLowerCase();
@@ -12629,6 +12667,90 @@ function parseTokens(str) {
12629
12667
  }
12630
12668
  return tokens;
12631
12669
  }
12670
+ var parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
12671
+ function trimOWS(value) {
12672
+ let start = 0;
12673
+ let end = value.length;
12674
+ while (start < end) {
12675
+ const code = value.charCodeAt(start);
12676
+ if (code !== 9 && code !== 32) {
12677
+ break;
12678
+ }
12679
+ start += 1;
12680
+ }
12681
+ while (end > start) {
12682
+ const code = value.charCodeAt(end - 1);
12683
+ if (code !== 9 && code !== 32) {
12684
+ break;
12685
+ }
12686
+ end -= 1;
12687
+ }
12688
+ return start === 0 && end === value.length ? value : value.slice(start, end);
12689
+ }
12690
+ function decodeQuotedString(value) {
12691
+ const last = value.length - 1;
12692
+ if (last < 1 || value.charCodeAt(0) !== 34 || value.charCodeAt(last) !== 34) {
12693
+ return value;
12694
+ }
12695
+ let decoded = "";
12696
+ for (let i = 1; i < last; i++) {
12697
+ const code = value.charCodeAt(i);
12698
+ if (code === 34) {
12699
+ return value;
12700
+ }
12701
+ if (code === 92) {
12702
+ i += 1;
12703
+ if (i >= last) {
12704
+ return value;
12705
+ }
12706
+ }
12707
+ decoded += value[i];
12708
+ }
12709
+ return decoded;
12710
+ }
12711
+ function parseParameters(value) {
12712
+ const parameters = /* @__PURE__ */ Object.create(null);
12713
+ const str = String(value);
12714
+ let start = 0;
12715
+ let quoted = false;
12716
+ let escaped = false;
12717
+ function parseParameter(end) {
12718
+ const part = trimOWS(str.slice(start, end));
12719
+ const equals = part.indexOf("=");
12720
+ if (equals < 1) {
12721
+ return;
12722
+ }
12723
+ const name = trimOWS(part.slice(0, equals));
12724
+ if (!parameterNameRE.test(name)) {
12725
+ return;
12726
+ }
12727
+ const normalizedName = name.toLowerCase();
12728
+ if (normalizedName === "__proto__" || normalizedName === "constructor" || normalizedName === "prototype") {
12729
+ return;
12730
+ }
12731
+ const parameterValue = trimOWS(part.slice(equals + 1));
12732
+ parameters[normalizedName] = decodeQuotedString(parameterValue);
12733
+ }
12734
+ for (let i = 0; i < str.length; i++) {
12735
+ const code = str.charCodeAt(i);
12736
+ if (quoted) {
12737
+ if (escaped) {
12738
+ escaped = false;
12739
+ } else if (code === 92) {
12740
+ escaped = true;
12741
+ } else if (code === 34) {
12742
+ quoted = false;
12743
+ }
12744
+ } else if (code === 34) {
12745
+ quoted = true;
12746
+ } else if (code === 44 || code === 59) {
12747
+ parseParameter(i);
12748
+ start = i + 1;
12749
+ }
12750
+ }
12751
+ parseParameter(str.length);
12752
+ return parameters;
12753
+ }
12632
12754
  var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12633
12755
  function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12634
12756
  if (utils_default.isFunction(filter2)) {
@@ -12673,7 +12795,7 @@ var AxiosHeaders = class {
12673
12795
  function setHeader(_value, _header, _rewrite) {
12674
12796
  const lHeader = normalizeHeader(_header);
12675
12797
  if (!lHeader) {
12676
- throw new Error("header name must be a non-empty string");
12798
+ return;
12677
12799
  }
12678
12800
  const key = utils_default.findKey(self2, lHeader);
12679
12801
  if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
@@ -12685,13 +12807,19 @@ var AxiosHeaders = class {
12685
12807
  setHeaders(header, valueOrRewrite);
12686
12808
  } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12687
12809
  setHeaders(parseHeaders_default(header), valueOrRewrite);
12688
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
12689
- let obj = {}, dest, key;
12810
+ } else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
12811
+ let obj = /* @__PURE__ */ Object.create(null), dest, key;
12690
12812
  for (const entry of header) {
12691
12813
  if (!utils_default.isArray(entry)) {
12692
- throw TypeError("Object iterator must return a key-value pair");
12814
+ throw new TypeError("Object iterator must return a key-value pair");
12815
+ }
12816
+ key = entry[0];
12817
+ if (utils_default.hasOwnProp(obj, key)) {
12818
+ dest = obj[key];
12819
+ obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
12820
+ } else {
12821
+ obj[key] = entry[1];
12693
12822
  }
12694
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
12695
12823
  }
12696
12824
  setHeaders(obj, valueOrRewrite);
12697
12825
  } else {
@@ -12798,7 +12926,8 @@ var AxiosHeaders = class {
12798
12926
  return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
12799
12927
  }
12800
12928
  getSetCookie() {
12801
- return this.get("set-cookie") || [];
12929
+ const value = this.get("set-cookie");
12930
+ return utils_default.isArray(value) ? value : value == null || value === false ? [] : [value];
12802
12931
  }
12803
12932
  get [Symbol.toStringTag]() {
12804
12933
  return "AxiosHeaders";
@@ -12806,6 +12935,9 @@ var AxiosHeaders = class {
12806
12935
  static from(thing) {
12807
12936
  return thing instanceof this ? thing : new this(thing);
12808
12937
  }
12938
+ static parseParameters(value) {
12939
+ return parseParameters(value);
12940
+ }
12809
12941
  static concat(first, ...targets) {
12810
12942
  const computed = new this(first);
12811
12943
  targets.forEach((target) => computed.set(target));
@@ -12848,7 +12980,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12848
12980
  utils_default.freezeMethods(AxiosHeaders);
12849
12981
  var AxiosHeaders_default = AxiosHeaders;
12850
12982
 
12851
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/AxiosError.js
12983
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
12852
12984
  var REDACTED = "[REDACTED ****]";
12853
12985
  function hasOwnOrPrototypeToJSON(source) {
12854
12986
  if (utils_default.hasOwnProp(source, "toJSON")) {
@@ -12901,10 +13033,37 @@ function redactConfig(config, redactKeys) {
12901
13033
  };
12902
13034
  return visit(config);
12903
13035
  }
13036
+ function stringifySafely(value) {
13037
+ try {
13038
+ return String(value);
13039
+ } catch (err) {
13040
+ return "";
13041
+ }
13042
+ }
13043
+ function aggregateErrorMessage(error) {
13044
+ const message = error.errors.map((entry) => {
13045
+ try {
13046
+ return entry && entry.message ? stringifySafely(entry.message) : stringifySafely(entry);
13047
+ } catch (err) {
13048
+ return "";
13049
+ }
13050
+ }).filter(Boolean).join("; ");
13051
+ return message || error.name || "AggregateError";
13052
+ }
12904
13053
  var AxiosError = class _AxiosError extends Error {
12905
13054
  static from(error, code, config, request, response, customProps) {
12906
- const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
12907
- axiosError.cause = error;
13055
+ let message = error.message;
13056
+ if (!message && utils_default.isArray(error.errors) && error.errors.length) {
13057
+ message = aggregateErrorMessage(error);
13058
+ }
13059
+ const axiosError = new _AxiosError(message, code || error.code, config, request, response);
13060
+ Object.defineProperty(axiosError, "cause", {
13061
+ __proto__: null,
13062
+ value: error,
13063
+ writable: true,
13064
+ enumerable: false,
13065
+ configurable: true
13066
+ });
12908
13067
  axiosError.name = error.name;
12909
13068
  if (error.status != null && axiosError.status == null) {
12910
13069
  axiosError.status = error.status;
@@ -12983,11 +13142,22 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
12983
13142
  AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
12984
13143
  var AxiosError_default = AxiosError;
12985
13144
 
12986
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/classes/FormData.js
13145
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
12987
13146
  var import_form_data = __toESM(require_form_data(), 1);
12988
13147
  var FormData_default = import_form_data.default;
12989
13148
 
12990
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/toFormData.js
13149
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/Buffer.js
13150
+ var Buffer_default = {
13151
+ isBufferAvailable() {
13152
+ return typeof Buffer !== "undefined";
13153
+ },
13154
+ from(value) {
13155
+ return Buffer.from(value);
13156
+ }
13157
+ };
13158
+
13159
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
13160
+ var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
12991
13161
  function isVisitable(thing) {
12992
13162
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
12993
13163
  }
@@ -13029,8 +13199,9 @@ function toFormData(obj, formData, options) {
13029
13199
  const dots = options.dots;
13030
13200
  const indexes = options.indexes;
13031
13201
  const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
13032
- const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
13202
+ const maxDepth = options.maxDepth === void 0 ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
13033
13203
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
13204
+ const stack = [];
13034
13205
  if (!utils_default.isFunction(visitor)) {
13035
13206
  throw new TypeError("visitor must be a function");
13036
13207
  }
@@ -13046,10 +13217,41 @@ function toFormData(obj, formData, options) {
13046
13217
  throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
13047
13218
  }
13048
13219
  if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
13049
- return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
13220
+ if (useBlob && typeof _Blob === "function") {
13221
+ return new _Blob([value]);
13222
+ }
13223
+ if (Buffer_default && Buffer_default.isBufferAvailable()) {
13224
+ return Buffer_default.from(value);
13225
+ }
13226
+ throw new AxiosError_default("Blob is not supported. Use a Buffer instead.", AxiosError_default.ERR_NOT_SUPPORT);
13050
13227
  }
13051
13228
  return value;
13052
13229
  }
13230
+ function throwIfMaxDepthExceeded(depth) {
13231
+ if (depth > maxDepth) {
13232
+ throw new AxiosError_default(
13233
+ "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
13234
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13235
+ );
13236
+ }
13237
+ }
13238
+ function stringifyWithDepthLimit(value, depth) {
13239
+ if (maxDepth === Infinity) {
13240
+ return JSON.stringify(value);
13241
+ }
13242
+ const ancestors = [];
13243
+ return JSON.stringify(value, function limitDepth(_key, currentValue) {
13244
+ if (!utils_default.isObject(currentValue)) {
13245
+ return currentValue;
13246
+ }
13247
+ while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
13248
+ ancestors.pop();
13249
+ }
13250
+ ancestors.push(currentValue);
13251
+ throwIfMaxDepthExceeded(depth + ancestors.length - 1);
13252
+ return currentValue;
13253
+ });
13254
+ }
13053
13255
  function defaultVisitor(value, key, path) {
13054
13256
  let arr = value;
13055
13257
  if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
@@ -13059,7 +13261,7 @@ function toFormData(obj, formData, options) {
13059
13261
  if (value && !path && typeof value === "object") {
13060
13262
  if (utils_default.endsWith(key, "{}")) {
13061
13263
  key = metaTokens ? key : key.slice(0, -2);
13062
- value = JSON.stringify(value);
13264
+ value = stringifyWithDepthLimit(value, 1);
13063
13265
  } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
13064
13266
  key = removeBrackets(key);
13065
13267
  arr.forEach(function each(el, index) {
@@ -13078,7 +13280,6 @@ function toFormData(obj, formData, options) {
13078
13280
  formData.append(renderKey(path, key, dots), convertValue(value));
13079
13281
  return false;
13080
13282
  }
13081
- const stack = [];
13082
13283
  const exposedHelpers = Object.assign(predicates, {
13083
13284
  defaultVisitor,
13084
13285
  convertValue,
@@ -13086,14 +13287,9 @@ function toFormData(obj, formData, options) {
13086
13287
  });
13087
13288
  function build(value, path, depth = 0) {
13088
13289
  if (utils_default.isUndefined(value)) return;
13089
- if (depth > maxDepth) {
13090
- throw new AxiosError_default(
13091
- "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
13092
- AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13093
- );
13094
- }
13290
+ throwIfMaxDepthExceeded(depth);
13095
13291
  if (stack.indexOf(value) !== -1) {
13096
- throw Error("Circular reference detected in " + path.join("."));
13292
+ throw new Error("Circular reference detected in " + path.join("."));
13097
13293
  }
13098
13294
  stack.push(value);
13099
13295
  utils_default.forEach(value, function each(el, key) {
@@ -13112,7 +13308,7 @@ function toFormData(obj, formData, options) {
13112
13308
  }
13113
13309
  var toFormData_default = toFormData;
13114
13310
 
13115
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13311
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13116
13312
  function encode(str) {
13117
13313
  const charMap = {
13118
13314
  "!": "%21",
@@ -13135,16 +13331,14 @@ prototype.append = function append(name, value) {
13135
13331
  this._pairs.push([name, value]);
13136
13332
  };
13137
13333
  prototype.toString = function toString2(encoder) {
13138
- const _encode = encoder ? function(value) {
13139
- return encoder.call(this, value, encode);
13140
- } : encode;
13334
+ const _encode = encoder ? (value) => encoder.call(this, value, encode) : encode;
13141
13335
  return this._pairs.map(function each(pair) {
13142
13336
  return _encode(pair[0]) + "=" + _encode(pair[1]);
13143
13337
  }, "").join("&");
13144
13338
  };
13145
13339
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
13146
13340
 
13147
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js
13341
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
13148
13342
  function encode2(val) {
13149
13343
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
13150
13344
  }
@@ -13152,11 +13346,12 @@ function buildURL(url2, params, options) {
13152
13346
  if (!params) {
13153
13347
  return url2;
13154
13348
  }
13155
- const _encode = options && options.encode || encode2;
13349
+ url2 = url2 || "";
13156
13350
  const _options = utils_default.isFunction(options) ? {
13157
13351
  serialize: options
13158
13352
  } : options;
13159
- const serializeFn = _options && _options.serialize;
13353
+ const _encode = utils_default.getSafeProp(_options, "encode") || encode2;
13354
+ const serializeFn = utils_default.getSafeProp(_options, "serialize");
13160
13355
  let serializedParams;
13161
13356
  if (serializeFn) {
13162
13357
  serializedParams = serializeFn(params, _options);
@@ -13173,7 +13368,7 @@ function buildURL(url2, params, options) {
13173
13368
  return url2;
13174
13369
  }
13175
13370
 
13176
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js
13371
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
13177
13372
  var InterceptorManager = class {
13178
13373
  constructor() {
13179
13374
  this.handlers = [];
@@ -13238,22 +13433,24 @@ var InterceptorManager = class {
13238
13433
  };
13239
13434
  var InterceptorManager_default = InterceptorManager;
13240
13435
 
13241
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/defaults/transitional.js
13436
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
13242
13437
  var transitional_default = {
13243
13438
  silentJSONParsing: true,
13244
13439
  forcedJSONParsing: true,
13245
13440
  clarifyTimeoutError: false,
13246
- legacyInterceptorReqResOrdering: true
13441
+ legacyInterceptorReqResOrdering: true,
13442
+ advertiseZstdAcceptEncoding: false,
13443
+ validateStatusUndefinedResolves: true
13247
13444
  };
13248
13445
 
13249
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
13446
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13250
13447
  import crypto from "crypto";
13251
13448
 
13252
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13449
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13253
13450
  import url from "url";
13254
13451
  var URLSearchParams_default = url.URLSearchParams;
13255
13452
 
13256
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
13453
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13257
13454
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
13258
13455
  var DIGIT = "0123456789";
13259
13456
  var ALPHABET = {
@@ -13283,7 +13480,7 @@ var node_default = {
13283
13480
  protocols: ["http", "https", "file", "data"]
13284
13481
  };
13285
13482
 
13286
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/common/utils.js
13483
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
13287
13484
  var utils_exports = {};
13288
13485
  __export(utils_exports, {
13289
13486
  hasBrowserEnv: () => hasBrowserEnv,
@@ -13301,13 +13498,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
13301
13498
  })();
13302
13499
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
13303
13500
 
13304
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/index.js
13501
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
13305
13502
  var platform_default = {
13306
13503
  ...utils_exports,
13307
13504
  ...node_default
13308
13505
  };
13309
13506
 
13310
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/toURLEncodedForm.js
13507
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
13311
13508
  function toURLEncodedForm(data, options) {
13312
13509
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
13313
13510
  visitor: function(value, key, path, helpers) {
@@ -13321,11 +13518,25 @@ function toURLEncodedForm(data, options) {
13321
13518
  });
13322
13519
  }
13323
13520
 
13324
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToJSON.js
13521
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
13522
+ var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
13523
+ function throwIfDepthExceeded(index) {
13524
+ if (index > MAX_DEPTH) {
13525
+ throw new AxiosError_default(
13526
+ "FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH,
13527
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13528
+ );
13529
+ }
13530
+ }
13325
13531
  function parsePropPath(name) {
13326
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
13327
- return match[0] === "[]" ? "" : match[1] || match[0];
13328
- });
13532
+ const path = [];
13533
+ const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
13534
+ let match;
13535
+ while ((match = pattern.exec(name)) !== null) {
13536
+ throwIfDepthExceeded(path.length);
13537
+ path.push(match[0] === "[]" ? "" : match[1] || match[0]);
13538
+ }
13539
+ return path;
13329
13540
  }
13330
13541
  function arrayToObject(arr) {
13331
13542
  const obj = {};
@@ -13341,6 +13552,7 @@ function arrayToObject(arr) {
13341
13552
  }
13342
13553
  function formDataToJSON(formData) {
13343
13554
  function buildPath(path, value, target, index) {
13555
+ throwIfDepthExceeded(index);
13344
13556
  let name = path[index++];
13345
13557
  if (name === "__proto__") return true;
13346
13558
  const isNumericKey = Number.isFinite(+name);
@@ -13374,9 +13586,9 @@ function formDataToJSON(formData) {
13374
13586
  }
13375
13587
  var formDataToJSON_default = formDataToJSON;
13376
13588
 
13377
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/defaults/index.js
13589
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
13378
13590
  var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
13379
- function stringifySafely(rawValue, parser, encoder) {
13591
+ function stringifySafely2(rawValue, parser, encoder) {
13380
13592
  if (utils_default.isString(rawValue)) {
13381
13593
  try {
13382
13594
  (parser || JSON.parse)(rawValue);
@@ -13432,7 +13644,7 @@ var defaults = {
13432
13644
  }
13433
13645
  if (isObjectPayload || hasJSONContentType) {
13434
13646
  headers.setContentType("application/json", false);
13435
- return stringifySafely(data);
13647
+ return stringifySafely2(data);
13436
13648
  }
13437
13649
  return data;
13438
13650
  }
@@ -13491,7 +13703,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"]
13491
13703
  });
13492
13704
  var defaults_default = defaults;
13493
13705
 
13494
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/transformData.js
13706
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
13495
13707
  function transformData(fns, response) {
13496
13708
  const config = this || defaults_default;
13497
13709
  const context = response || config;
@@ -13504,12 +13716,12 @@ function transformData(fns, response) {
13504
13716
  return data;
13505
13717
  }
13506
13718
 
13507
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js
13719
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
13508
13720
  function isCancel(value) {
13509
13721
  return !!(value && value.__CANCEL__);
13510
13722
  }
13511
13723
 
13512
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/CanceledError.js
13724
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
13513
13725
  var CanceledError = class extends AxiosError_default {
13514
13726
  /**
13515
13727
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -13528,7 +13740,7 @@ var CanceledError = class extends AxiosError_default {
13528
13740
  };
13529
13741
  var CanceledError_default = CanceledError;
13530
13742
 
13531
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/settle.js
13743
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
13532
13744
  function settle(resolve, reject, response) {
13533
13745
  const validateStatus2 = response.config.validateStatus;
13534
13746
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -13544,7 +13756,7 @@ function settle(resolve, reject, response) {
13544
13756
  }
13545
13757
  }
13546
13758
 
13547
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js
13759
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
13548
13760
  function isAbsoluteURL(url2) {
13549
13761
  if (typeof url2 !== "string") {
13550
13762
  return false;
@@ -13552,15 +13764,69 @@ function isAbsoluteURL(url2) {
13552
13764
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
13553
13765
  }
13554
13766
 
13555
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js
13767
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
13556
13768
  function combineURLs(baseURL, relativeURL) {
13557
- return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
13769
+ if (!relativeURL) {
13770
+ return baseURL;
13771
+ }
13772
+ let end = baseURL.length;
13773
+ while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
13774
+ end--;
13775
+ }
13776
+ return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
13558
13777
  }
13559
13778
 
13560
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js
13561
- function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
13779
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
13780
+ var malformedHttpProtocol = /^https?:(?!\/\/)/i;
13781
+ var httpProtocolControlCharacters = /[\t\n\r]/g;
13782
+ function stripLeadingC0ControlOrSpace(url2) {
13783
+ let i = 0;
13784
+ while (i < url2.length && url2.charCodeAt(i) <= 32) {
13785
+ i++;
13786
+ }
13787
+ return url2.slice(i);
13788
+ }
13789
+ function normalizeURLForProtocolCheck(url2) {
13790
+ return stripLeadingC0ControlOrSpace(url2).replace(httpProtocolControlCharacters, "");
13791
+ }
13792
+ function redactFragment(fragment) {
13793
+ if (!fragment) {
13794
+ return fragment;
13795
+ }
13796
+ return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
13797
+ return `${separator}${parameterName}${REDACTED}`;
13798
+ });
13799
+ }
13800
+ function redactSensitiveURLParts(url2) {
13801
+ const redactedURL = url2.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
13802
+ const fragmentIndex = redactedURL.indexOf("#");
13803
+ const urlWithoutFragment = fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
13804
+ const redactedURLWithoutFragment = urlWithoutFragment.replace(
13805
+ /([?&][^=&#]*=)[^&#]*/g,
13806
+ `$1${REDACTED}`
13807
+ );
13808
+ if (fragmentIndex === -1) {
13809
+ return redactedURLWithoutFragment;
13810
+ }
13811
+ return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
13812
+ }
13813
+ function assertValidHttpProtocolURL(url2, config) {
13814
+ if (typeof url2 === "string") {
13815
+ const normalizedURL = normalizeURLForProtocolCheck(url2);
13816
+ if (malformedHttpProtocol.test(normalizedURL)) {
13817
+ throw new AxiosError_default(
13818
+ `Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`,
13819
+ AxiosError_default.ERR_INVALID_URL,
13820
+ config
13821
+ );
13822
+ }
13823
+ }
13824
+ }
13825
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
13826
+ assertValidHttpProtocolURL(requestedURL, config);
13562
13827
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
13563
13828
  if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
13829
+ assertValidHttpProtocolURL(baseURL, config);
13564
13830
  return combineURLs(baseURL, requestedURL);
13565
13831
  }
13566
13832
  return requestedURL;
@@ -13633,26 +13899,26 @@ function getEnv(key) {
13633
13899
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13634
13900
  }
13635
13901
 
13636
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13902
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13637
13903
  var import_https_proxy_agent = __toESM(require_dist(), 1);
13638
13904
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
13639
13905
  import http from "http";
13640
13906
  import https from "https";
13641
- import http2 from "http2";
13642
- import util2 from "util";
13907
+ import http22 from "http2";
13908
+ import util3 from "util";
13643
13909
  import { resolve as resolvePath } from "path";
13644
13910
  import zlib from "zlib";
13645
13911
 
13646
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/env/data.js
13647
- var VERSION = "1.16.1";
13912
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
13913
+ var VERSION = "1.19.0";
13648
13914
 
13649
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/parseProtocol.js
13915
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
13650
13916
  function parseProtocol(url2) {
13651
13917
  const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13652
13918
  return match && match[1] || "";
13653
13919
  }
13654
13920
 
13655
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/fromDataURI.js
13921
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
13656
13922
  var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
13657
13923
  function fromDataURI(uri, asBlob, options) {
13658
13924
  const _Blob = options && options.Blob || platform_default.classes.Blob;
@@ -13670,13 +13936,13 @@ function fromDataURI(uri, asBlob, options) {
13670
13936
  const params = match[2];
13671
13937
  const encoding = match[3] ? "base64" : "utf8";
13672
13938
  const body = match[4];
13673
- let mime;
13939
+ let mime = "";
13674
13940
  if (type) {
13675
13941
  mime = params ? type + params : type;
13676
13942
  } else if (params) {
13677
13943
  mime = "text/plain" + params;
13678
13944
  }
13679
- const buffer = Buffer.from(decodeURIComponent(body), encoding);
13945
+ const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
13680
13946
  if (asBlob) {
13681
13947
  if (!_Blob) {
13682
13948
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -13688,10 +13954,24 @@ function fromDataURI(uri, asBlob, options) {
13688
13954
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
13689
13955
  }
13690
13956
 
13691
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13957
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13692
13958
  import stream3 from "stream";
13693
13959
 
13694
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/AxiosTransformStream.js
13960
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js
13961
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
13962
+ function setFormDataHeaders(headers, formHeaders, policy) {
13963
+ if (policy !== "content-only") {
13964
+ headers.set(formHeaders);
13965
+ return;
13966
+ }
13967
+ Object.entries(formHeaders || {}).forEach(([key, val]) => {
13968
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
13969
+ headers.set(key, val);
13970
+ }
13971
+ });
13972
+ }
13973
+
13974
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
13695
13975
  import stream from "stream";
13696
13976
  var kInternals = /* @__PURE__ */ Symbol("internals");
13697
13977
  var AxiosTransformStream = class extends stream.Transform {
@@ -13814,14 +14094,14 @@ var AxiosTransformStream = class extends stream.Transform {
13814
14094
  };
13815
14095
  var AxiosTransformStream_default = AxiosTransformStream;
13816
14096
 
13817
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
14097
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13818
14098
  import { EventEmitter } from "events";
13819
14099
 
13820
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
14100
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
13821
14101
  import util from "util";
13822
14102
  import { Readable } from "stream";
13823
14103
 
13824
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/readBlob.js
14104
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
13825
14105
  var { asyncIterator } = Symbol;
13826
14106
  var readBlob = async function* (blob) {
13827
14107
  if (blob.stream) {
@@ -13836,7 +14116,7 @@ var readBlob = async function* (blob) {
13836
14116
  };
13837
14117
  var readBlob_default = readBlob;
13838
14118
 
13839
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
14119
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
13840
14120
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13841
14121
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
13842
14122
  var CRLF = "\r\n";
@@ -13887,10 +14167,10 @@ var formDataToStream = (form, headersHandler, options) => {
13887
14167
  boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
13888
14168
  } = options || {};
13889
14169
  if (!utils_default.isFormData(form)) {
13890
- throw TypeError("FormData instance required");
14170
+ throw new TypeError("FormData instance required");
13891
14171
  }
13892
14172
  if (boundary.length < 1 || boundary.length > 70) {
13893
- throw Error("boundary must be 1-70 characters long");
14173
+ throw new Error("boundary must be 1-70 characters long");
13894
14174
  }
13895
14175
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
13896
14176
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -13921,7 +14201,7 @@ var formDataToStream = (form, headersHandler, options) => {
13921
14201
  };
13922
14202
  var formDataToStream_default = formDataToStream;
13923
14203
 
13924
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
14204
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
13925
14205
  import stream2 from "stream";
13926
14206
  var ZlibHeaderTransformStream = class extends stream2.Transform {
13927
14207
  __transform(chunk, encoding, callback) {
@@ -13943,7 +14223,88 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
13943
14223
  };
13944
14224
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
13945
14225
 
13946
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/callbackify.js
14226
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
14227
+ import http2 from "http2";
14228
+ import util2 from "util";
14229
+ var Http2Sessions = class {
14230
+ constructor() {
14231
+ this.sessions = /* @__PURE__ */ Object.create(null);
14232
+ }
14233
+ getSession(authority, options) {
14234
+ options = Object.assign(
14235
+ {
14236
+ sessionTimeout: 1e3
14237
+ },
14238
+ options
14239
+ );
14240
+ let authoritySessions = this.sessions[authority];
14241
+ if (authoritySessions) {
14242
+ let len = authoritySessions.length;
14243
+ for (let i = 0; i < len; i++) {
14244
+ const [sessionHandle, sessionOptions] = authoritySessions[i];
14245
+ if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
14246
+ return sessionHandle;
14247
+ }
14248
+ }
14249
+ }
14250
+ const session = http2.connect(authority, options);
14251
+ let removed;
14252
+ let timer;
14253
+ const removeSession = () => {
14254
+ if (removed) {
14255
+ return;
14256
+ }
14257
+ removed = true;
14258
+ if (timer) {
14259
+ clearTimeout(timer);
14260
+ timer = null;
14261
+ }
14262
+ let entries = authoritySessions, len = entries.length, i = len;
14263
+ while (i--) {
14264
+ if (entries[i][0] === session) {
14265
+ if (len === 1) {
14266
+ delete this.sessions[authority];
14267
+ } else {
14268
+ entries.splice(i, 1);
14269
+ }
14270
+ if (!session.closed) {
14271
+ session.close();
14272
+ }
14273
+ return;
14274
+ }
14275
+ }
14276
+ };
14277
+ const originalRequestFn = session.request;
14278
+ const { sessionTimeout } = options;
14279
+ if (sessionTimeout != null) {
14280
+ let streamsCount = 0;
14281
+ session.request = function() {
14282
+ const stream4 = originalRequestFn.apply(this, arguments);
14283
+ streamsCount++;
14284
+ if (timer) {
14285
+ clearTimeout(timer);
14286
+ timer = null;
14287
+ }
14288
+ stream4.once("close", () => {
14289
+ if (!--streamsCount) {
14290
+ timer = setTimeout(() => {
14291
+ timer = null;
14292
+ removeSession();
14293
+ }, sessionTimeout);
14294
+ }
14295
+ });
14296
+ return stream4;
14297
+ };
14298
+ }
14299
+ session.once("close", removeSession);
14300
+ let entry = [session, options];
14301
+ authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
14302
+ return session;
14303
+ }
14304
+ };
14305
+ var Http2Sessions_default = Http2Sessions;
14306
+
14307
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
13947
14308
  var callbackify = (fn, reducer) => {
13948
14309
  return utils_default.isAsyncFn(fn) ? function(...args) {
13949
14310
  const cb = args.pop();
@@ -13958,14 +14319,84 @@ var callbackify = (fn, reducer) => {
13958
14319
  };
13959
14320
  var callbackify_default = callbackify;
13960
14321
 
13961
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/shouldBypassProxy.js
13962
- var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
14322
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
14323
+ var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
13963
14324
  var isIPv4Loopback = (host) => {
13964
14325
  const parts = host.split(".");
13965
14326
  if (parts.length !== 4) return false;
13966
14327
  if (parts[0] !== "127") return false;
13967
14328
  return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
13968
14329
  };
14330
+ var parseIPv4Octet = (text) => {
14331
+ if (/^0[xX][0-9a-fA-F]+$/.test(text)) {
14332
+ const n = parseInt(text.slice(2), 16);
14333
+ return Number.isFinite(n) ? n : null;
14334
+ }
14335
+ if (text.length > 1 && /^0[0-7]+$/.test(text)) {
14336
+ const n = parseInt(text, 8);
14337
+ return Number.isFinite(n) ? n : null;
14338
+ }
14339
+ if (text.length > 1 && /^0[0-9]+$/.test(text)) {
14340
+ return null;
14341
+ }
14342
+ if (/^[0-9]+$/.test(text)) {
14343
+ const n = parseInt(text, 10);
14344
+ return Number.isFinite(n) ? n : null;
14345
+ }
14346
+ return null;
14347
+ };
14348
+ var normalizeIPAddress = (host) => {
14349
+ if (typeof host !== "string" || !host || host.indexOf(":") !== -1) {
14350
+ return host;
14351
+ }
14352
+ let h = host;
14353
+ if (h.charAt(0) === "[" && h.charAt(h.length - 1) === "]") {
14354
+ h = h.slice(1, -1);
14355
+ }
14356
+ h = h.replace(/\.+$/, "");
14357
+ if (!/^[0-9.xXa-fA-F]+$/.test(h)) return host;
14358
+ const parts = h.split(".");
14359
+ if (parts.some((p) => p === "")) return host;
14360
+ if (parts.length === 4) {
14361
+ const octets = parts.map(parseIPv4Octet);
14362
+ if (octets.some((n) => n === null || n < 0 || n > 255)) return host;
14363
+ return octets.join(".");
14364
+ }
14365
+ if (parts.length > 4) {
14366
+ return host;
14367
+ }
14368
+ if (parts.length === 1) return host;
14369
+ const literalOctets = parts.slice(0, -1);
14370
+ const tail = parts[parts.length - 1];
14371
+ const tailSlots = 4 - literalOctets.length;
14372
+ const tailValue = parseIPv4Octet(tail);
14373
+ if (tailValue === null) return host;
14374
+ const maxTail = (1 << 8 * tailSlots) - 1;
14375
+ if (tailValue < 0 || tailValue > maxTail) return host;
14376
+ const tailOctets = new Array(tailSlots).fill(0);
14377
+ for (let i = tailSlots - 1, v = tailValue; i >= 0; i--, v >>= 8) {
14378
+ tailOctets[i] = v & 255;
14379
+ }
14380
+ const literal = literalOctets.map(parseIPv4Octet);
14381
+ if (literal.some((n) => n === null || n < 0 || n > 255)) return host;
14382
+ return [...literal, ...tailOctets].join(".");
14383
+ };
14384
+ var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
14385
+ var isIPv6Unspecified = (host) => {
14386
+ if (host === "::") return true;
14387
+ const compressionIndex = host.indexOf("::");
14388
+ if (compressionIndex !== -1) {
14389
+ if (compressionIndex !== host.lastIndexOf("::")) return false;
14390
+ const left = host.slice(0, compressionIndex);
14391
+ const right = host.slice(compressionIndex + 2);
14392
+ const leftGroups = left ? left.split(":") : [];
14393
+ const rightGroups = right ? right.split(":") : [];
14394
+ const explicitGroups = leftGroups.length + rightGroups.length;
14395
+ return explicitGroups < 8 && leftGroups.every(isIPv6ZeroGroup) && rightGroups.every(isIPv6ZeroGroup);
14396
+ }
14397
+ const groups = host.split(":");
14398
+ return groups.length === 8 && groups.every(isIPv6ZeroGroup);
14399
+ };
13969
14400
  var isIPv6Loopback = (host) => {
13970
14401
  if (host === "::1") return true;
13971
14402
  const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
@@ -13988,6 +14419,7 @@ var isLoopback = (host) => {
13988
14419
  if (!host) return false;
13989
14420
  if (LOOPBACK_HOSTNAMES.has(host)) return true;
13990
14421
  if (isIPv4Loopback(host)) return true;
14422
+ if (isIPv6Unspecified(host)) return true;
13991
14423
  return isIPv6Loopback(host);
13992
14424
  };
13993
14425
  var DEFAULT_PORTS2 = {
@@ -14040,7 +14472,12 @@ var normalizeNoProxyHost = (hostname) => {
14040
14472
  if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
14041
14473
  hostname = hostname.slice(1, -1);
14042
14474
  }
14043
- return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
14475
+ const trimmed = hostname.replace(/\.+$/, "");
14476
+ const ipv4 = normalizeIPAddress(trimmed);
14477
+ if (ipv4 !== trimmed) {
14478
+ return ipv4;
14479
+ }
14480
+ return unmapIPv4MappedIPv6(trimmed);
14044
14481
  };
14045
14482
  function shouldBypassProxy(location) {
14046
14483
  let parsed;
@@ -14062,6 +14499,9 @@ function shouldBypassProxy(location) {
14062
14499
  if (!entry) {
14063
14500
  return false;
14064
14501
  }
14502
+ if (entry === "*") {
14503
+ return true;
14504
+ }
14065
14505
  let [entryHost, entryPort] = parseNoProxyEntry(entry);
14066
14506
  entryHost = normalizeNoProxyHost(entryHost);
14067
14507
  if (!entryHost) {
@@ -14080,7 +14520,7 @@ function shouldBypassProxy(location) {
14080
14520
  });
14081
14521
  }
14082
14522
 
14083
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
14523
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
14084
14524
  function speedometer(samplesCount, min) {
14085
14525
  samplesCount = samplesCount || 10;
14086
14526
  const bytes = new Array(samplesCount);
@@ -14116,7 +14556,7 @@ function speedometer(samplesCount, min) {
14116
14556
  }
14117
14557
  var speedometer_default = speedometer;
14118
14558
 
14119
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/throttle.js
14559
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
14120
14560
  function throttle(fn, freq) {
14121
14561
  let timestamp = 0;
14122
14562
  let threshold = 1e3 / freq;
@@ -14151,7 +14591,7 @@ function throttle(fn, freq) {
14151
14591
  }
14152
14592
  var throttle_default = throttle;
14153
14593
 
14154
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/progressEventReducer.js
14594
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
14155
14595
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
14156
14596
  let bytesNotified = 0;
14157
14597
  const _speedometer = speedometer_default(50, 250);
@@ -14161,7 +14601,7 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
14161
14601
  }
14162
14602
  const rawLoaded = e.loaded;
14163
14603
  const total = e.lengthComputable ? e.total : void 0;
14164
- const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
14604
+ const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
14165
14605
  const progressBytes = Math.max(0, loaded - bytesNotified);
14166
14606
  const rate = _speedometer(progressBytes);
14167
14607
  bytesNotified = Math.max(bytesNotified, loaded);
@@ -14190,63 +14630,83 @@ var progressEventDecorator = (total, throttled) => {
14190
14630
  throttled[1]
14191
14631
  ];
14192
14632
  };
14193
- var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
14633
+ var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
14194
14634
 
14195
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14196
- function estimateDataURLDecodedBytes(url2) {
14197
- if (!url2 || typeof url2 !== "string") return 0;
14198
- if (!url2.startsWith("data:")) return 0;
14199
- const comma = url2.indexOf(",");
14200
- if (comma < 0) return 0;
14201
- const meta = url2.slice(5, comma);
14202
- const body = url2.slice(comma + 1);
14203
- const isBase64 = /;base64/i.test(meta);
14204
- if (isBase64) {
14205
- let effectiveLen = body.length;
14206
- const len = body.length;
14207
- for (let i = 0; i < len; i++) {
14208
- if (body.charCodeAt(i) === 37 && i + 2 < len) {
14209
- const a = body.charCodeAt(i + 1);
14210
- const b = body.charCodeAt(i + 2);
14211
- const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
14212
- if (isHex) {
14213
- effectiveLen -= 2;
14214
- i += 2;
14215
- }
14216
- }
14217
- }
14218
- let pad = 0;
14219
- let idx = len - 1;
14220
- const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
14221
- body.charCodeAt(j - 1) === 51 && // '3'
14222
- (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
14223
- if (idx >= 0) {
14224
- if (body.charCodeAt(idx) === 61) {
14225
- pad++;
14226
- idx--;
14227
- } else if (tailIsPct3D(idx)) {
14228
- pad++;
14229
- idx -= 3;
14230
- }
14635
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14636
+ var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
14637
+ var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
14638
+ var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
14639
+ var isBase64Char = (charCode) => charCode >= 65 && charCode <= 90 || // A-Z
14640
+ charCode >= 97 && charCode <= 122 || // a-z
14641
+ charCode >= 48 && charCode <= 57 || // 0-9
14642
+ charCode === 43 || // +
14643
+ charCode === 47 || // /
14644
+ charCode === 45 || // - (base64url)
14645
+ charCode === 95;
14646
+ var isBase64Whitespace = (charCode) => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
14647
+ var base64Bytes = (significant) => {
14648
+ const groups = Math.floor(significant / 4);
14649
+ const remainder = significant % 4;
14650
+ return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
14651
+ };
14652
+ var estimateBase64BufferAllocation = (body) => {
14653
+ const len = body.length;
14654
+ let padding = 0;
14655
+ if (len > 0 && body.charCodeAt(len - 1) === 61) {
14656
+ padding++;
14657
+ if (len > 1 && body.charCodeAt(len - 2) === 61) {
14658
+ padding++;
14231
14659
  }
14232
- if (pad === 1 && idx >= 0) {
14233
- if (body.charCodeAt(idx) === 61) {
14234
- pad++;
14235
- } else if (tailIsPct3D(idx)) {
14236
- pad++;
14237
- }
14660
+ }
14661
+ return Math.floor((len - padding) * 3 / 4);
14662
+ };
14663
+ var estimatePercentDecodedBase64Bytes = (body) => {
14664
+ const len = body.length;
14665
+ let significant = 0;
14666
+ let padding = 0;
14667
+ let invalid = false;
14668
+ for (let i = 0; i < len; i++) {
14669
+ let code = body.charCodeAt(i);
14670
+ if (code === 37 && isPercentEncodedByte(body, i, len)) {
14671
+ code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
14672
+ i += 2;
14673
+ }
14674
+ if (isBase64Whitespace(code)) {
14675
+ continue;
14676
+ }
14677
+ if (code === 61) {
14678
+ padding++;
14679
+ continue;
14680
+ }
14681
+ if (!isBase64Char(code) || padding > 0) {
14682
+ invalid = true;
14683
+ continue;
14238
14684
  }
14239
- const groups = Math.floor(effectiveLen / 4);
14240
- const bytes2 = groups * 3 - (pad || 0);
14241
- return bytes2 > 0 ? bytes2 : 0;
14685
+ significant++;
14242
14686
  }
14243
- if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
14244
- return Buffer.byteLength(body, "utf8");
14687
+ if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) {
14688
+ return estimateBase64BufferAllocation(body);
14689
+ }
14690
+ return base64Bytes(significant);
14691
+ };
14692
+ var estimateDataURLBytes = (url2, estimateBase64) => {
14693
+ if (!url2 || typeof url2 !== "string") return 0;
14694
+ if (!url2.startsWith("data:")) return 0;
14695
+ const comma = url2.indexOf(",");
14696
+ if (comma < 0) return 0;
14697
+ const meta = url2.slice(5, comma);
14698
+ const body = url2.slice(comma + 1);
14699
+ const isBase64 = /;base64/i.test(meta);
14700
+ if (isBase64) {
14701
+ return estimateBase64(body);
14245
14702
  }
14246
14703
  let bytes = 0;
14247
14704
  for (let i = 0, len = body.length; i < len; i++) {
14248
14705
  const c = body.charCodeAt(i);
14249
- if (c < 128) {
14706
+ if (c === 37 && isPercentEncodedByte(body, i, len)) {
14707
+ bytes += 1;
14708
+ i += 2;
14709
+ } else if (c < 128) {
14250
14710
  bytes += 1;
14251
14711
  } else if (c < 2048) {
14252
14712
  bytes += 2;
@@ -14263,9 +14723,19 @@ function estimateDataURLDecodedBytes(url2) {
14263
14723
  }
14264
14724
  }
14265
14725
  return bytes;
14726
+ };
14727
+ function estimateDataURLDecodedBytes(url2) {
14728
+ const fragmentIndex = typeof url2 === "string" ? url2.indexOf("#") : -1;
14729
+ return estimateDataURLBytes(
14730
+ fragmentIndex === -1 ? url2 : url2.slice(0, fragmentIndex),
14731
+ estimatePercentDecodedBase64Bytes
14732
+ );
14733
+ }
14734
+ function estimateDataURLBufferAllocation(url2) {
14735
+ return estimateDataURLBytes(url2, estimateBase64BufferAllocation);
14266
14736
  }
14267
14737
 
14268
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
14738
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14269
14739
  var zlibOptions = {
14270
14740
  flush: zlib.constants.Z_SYNC_FLUSH,
14271
14741
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -14274,26 +14744,51 @@ var brotliOptions = {
14274
14744
  flush: zlib.constants.BROTLI_OPERATION_FLUSH,
14275
14745
  finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
14276
14746
  };
14747
+ var zstdOptions = {
14748
+ flush: zlib.constants.ZSTD_e_flush,
14749
+ finishFlush: zlib.constants.ZSTD_e_flush
14750
+ };
14277
14751
  var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
14752
+ var isZstdSupported = utils_default.isFunction(zlib.createZstdDecompress);
14753
+ var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
14754
+ var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
14755
+ var scheduleProgress = typeof process !== "undefined" && process.nextTick ? process.nextTick.bind(process) : utils_default.asap;
14278
14756
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
14279
14757
  var isHttps = /https:?/;
14280
- var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
14281
- function setFormDataHeaders(headers, formHeaders, policy) {
14282
- if (policy !== "content-only") {
14283
- headers.set(formHeaders);
14284
- return;
14285
- }
14286
- Object.entries(formHeaders).forEach(([key, val]) => {
14287
- if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
14288
- headers.set(key, val);
14289
- }
14290
- });
14291
- }
14292
14758
  var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
14293
14759
  var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
14294
14760
  var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
14295
14761
  var tunnelingAgentCache = /* @__PURE__ */ new Map();
14296
14762
  var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
14763
+ var NODE_NATIVE_ENV_PROXY_SUPPORT = {
14764
+ 22: 21,
14765
+ 24: 5
14766
+ };
14767
+ function isNodeNativeEnvProxySupported(nodeVersion = process.versions && process.versions.node) {
14768
+ if (!nodeVersion) {
14769
+ return false;
14770
+ }
14771
+ const [major, minor] = nodeVersion.split(".").map((part) => Number(part));
14772
+ if (!Number.isInteger(major) || !Number.isInteger(minor)) {
14773
+ return false;
14774
+ }
14775
+ if (major > 24) {
14776
+ return true;
14777
+ }
14778
+ return NODE_NATIVE_ENV_PROXY_SUPPORT[major] != null && minor >= NODE_NATIVE_ENV_PROXY_SUPPORT[major];
14779
+ }
14780
+ function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.versions.node) {
14781
+ if (!isNodeNativeEnvProxySupported(nodeVersion)) {
14782
+ return false;
14783
+ }
14784
+ const agentOptions = agent && agent.options;
14785
+ return Boolean(
14786
+ agentOptions && utils_default.hasOwnProp(agentOptions, "proxyEnv") && agentOptions.proxyEnv != null
14787
+ );
14788
+ }
14789
+ function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
14790
+ return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
14791
+ }
14297
14792
  function getTunnelingAgent(agentOptions, userHttpsAgent) {
14298
14793
  const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
14299
14794
  const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
@@ -14301,6 +14796,13 @@ function getTunnelingAgent(agentOptions, userHttpsAgent) {
14301
14796
  if (agent) return agent;
14302
14797
  const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
14303
14798
  agent = new import_https_proxy_agent.default(merged);
14799
+ if (userHttpsAgent && userHttpsAgent.options) {
14800
+ const originTLSOptions = { ...userHttpsAgent.options };
14801
+ const callback = agent.callback;
14802
+ agent.callback = function axiosTunnelingAgentCallback(req, opts) {
14803
+ return callback.call(this, req, { ...originTLSOptions, ...opts });
14804
+ };
14805
+ }
14304
14806
  agent[kAxiosInstalledTunnel] = true;
14305
14807
  cache.set(key, agent);
14306
14808
  return agent;
@@ -14322,90 +14824,45 @@ var flushOnFinish = (stream4, [throttled, flush]) => {
14322
14824
  stream4.on("end", flush).on("error", flush);
14323
14825
  return throttled;
14324
14826
  };
14325
- var Http2Sessions = class {
14326
- constructor() {
14327
- this.sessions = /* @__PURE__ */ Object.create(null);
14328
- }
14329
- getSession(authority, options) {
14330
- options = Object.assign(
14331
- {
14332
- sessionTimeout: 1e3
14333
- },
14334
- options
14335
- );
14336
- let authoritySessions = this.sessions[authority];
14337
- if (authoritySessions) {
14338
- let len = authoritySessions.length;
14339
- for (let i = 0; i < len; i++) {
14340
- const [sessionHandle, sessionOptions] = authoritySessions[i];
14341
- if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
14342
- return sessionHandle;
14343
- }
14344
- }
14345
- }
14346
- const session = http2.connect(authority, options);
14347
- let removed;
14348
- const removeSession = () => {
14349
- if (removed) {
14350
- return;
14351
- }
14352
- removed = true;
14353
- let entries = authoritySessions, len = entries.length, i = len;
14354
- while (i--) {
14355
- if (entries[i][0] === session) {
14356
- if (len === 1) {
14357
- delete this.sessions[authority];
14358
- } else {
14359
- entries.splice(i, 1);
14360
- }
14361
- if (!session.closed) {
14362
- session.close();
14363
- }
14364
- return;
14365
- }
14366
- }
14367
- };
14368
- const originalRequestFn = session.request;
14369
- const { sessionTimeout } = options;
14370
- if (sessionTimeout != null) {
14371
- let timer;
14372
- let streamsCount = 0;
14373
- session.request = function() {
14374
- const stream4 = originalRequestFn.apply(this, arguments);
14375
- streamsCount++;
14376
- if (timer) {
14377
- clearTimeout(timer);
14378
- timer = null;
14379
- }
14380
- stream4.once("close", () => {
14381
- if (!--streamsCount) {
14382
- timer = setTimeout(() => {
14383
- timer = null;
14384
- removeSession();
14385
- }, sessionTimeout);
14386
- }
14387
- });
14388
- return stream4;
14389
- };
14390
- }
14391
- session.once("close", removeSession);
14392
- let entry = [session, options];
14393
- authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
14394
- return session;
14395
- }
14396
- };
14397
- var http2Sessions = new Http2Sessions();
14827
+ var http2Sessions = new Http2Sessions_default();
14398
14828
  function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
14399
14829
  if (options.beforeRedirects.proxy) {
14400
14830
  options.beforeRedirects.proxy(options);
14401
14831
  }
14832
+ if (options.beforeRedirects.auth) {
14833
+ options.beforeRedirects.auth(options);
14834
+ }
14835
+ if (options.beforeRedirects.sensitiveHeaders) {
14836
+ options.beforeRedirects.sensitiveHeaders(options, requestDetails);
14837
+ }
14402
14838
  if (options.beforeRedirects.config) {
14403
14839
  options.beforeRedirects.config(options, responseDetails, requestDetails);
14404
14840
  }
14405
14841
  }
14406
- function setProxy(options, configProxy, location, isRedirect, configHttpsAgent) {
14842
+ function stripMatchingHeaders(headers, sensitiveSet) {
14843
+ if (!headers) {
14844
+ return;
14845
+ }
14846
+ Object.keys(headers).forEach((header) => {
14847
+ if (sensitiveSet.has(header.toLowerCase())) {
14848
+ delete headers[header];
14849
+ }
14850
+ });
14851
+ }
14852
+ function isSameOriginRedirect(redirectOptions, requestDetails) {
14853
+ if (!requestDetails) {
14854
+ return false;
14855
+ }
14856
+ try {
14857
+ return new URL(requestDetails.url).origin === new URL(redirectOptions.href).origin;
14858
+ } catch (e) {
14859
+ return false;
14860
+ }
14861
+ }
14862
+ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent) {
14407
14863
  let proxy = configProxy;
14408
- if (!proxy && proxy !== false) {
14864
+ const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
14865
+ if (!proxy && proxy !== false && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
14409
14866
  const proxyUrl = getProxyForUrl(location);
14410
14867
  if (proxyUrl) {
14411
14868
  if (!shouldBypassProxy(location)) {
@@ -14496,7 +14953,14 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent)
14496
14953
  }
14497
14954
  }
14498
14955
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
14499
- setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
14956
+ setProxy(
14957
+ redirectOptions,
14958
+ configProxy,
14959
+ redirectOptions.href,
14960
+ true,
14961
+ configHttpsAgent,
14962
+ configHttpAgent
14963
+ );
14500
14964
  };
14501
14965
  }
14502
14966
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
@@ -14535,7 +14999,7 @@ var http2Transport = {
14535
14999
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
14536
15000
  const { http2Options, headers } = options;
14537
15001
  const session = http2Sessions.getSession(authority, http2Options);
14538
- const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
15002
+ const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http22.constants;
14539
15003
  const http2Headers = {
14540
15004
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
14541
15005
  [HTTP2_HEADER_METHOD]: options.method,
@@ -14559,16 +15023,25 @@ var http2Transport = {
14559
15023
  };
14560
15024
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14561
15025
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
14562
- const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
15026
+ const own2 = (key) => utils_default.getSafeProp(config, key);
15027
+ const transitional2 = own2("transitional") || transitional_default;
14563
15028
  let data = own2("data");
14564
15029
  let lookup = own2("lookup");
14565
15030
  let family = own2("family");
14566
15031
  let httpVersion = own2("httpVersion");
14567
15032
  if (httpVersion === void 0) httpVersion = 1;
14568
15033
  let http2Options = own2("http2Options");
15034
+ const httpAgent = own2("httpAgent");
15035
+ const httpsAgent = own2("httpsAgent");
15036
+ const configProxy = own2("proxy");
14569
15037
  const responseType = own2("responseType");
14570
15038
  const responseEncoding = own2("responseEncoding");
14571
- const method = config.method.toUpperCase();
15039
+ const socketPath = own2("socketPath");
15040
+ const method = own2("method").toUpperCase();
15041
+ const maxRedirects = own2("maxRedirects");
15042
+ const maxBodyLength = own2("maxBodyLength");
15043
+ const maxContentLength = own2("maxContentLength");
15044
+ const decompress = own2("decompress");
14572
15045
  let isDone;
14573
15046
  let rejected = false;
14574
15047
  let req;
@@ -14601,7 +15074,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14601
15074
  !reason || reason.type ? new CanceledError_default(null, config, req) : reason
14602
15075
  );
14603
15076
  } catch (err) {
14604
- console.warn("emit error", err);
14605
15077
  }
14606
15078
  }
14607
15079
  function clearConnectPhaseTimer() {
@@ -14611,10 +15083,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14611
15083
  }
14612
15084
  }
14613
15085
  function createTimeoutError() {
14614
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
14615
- const transitional2 = config.transitional || transitional_default;
14616
- if (config.timeoutErrorMessage) {
14617
- timeoutErrorMessage = config.timeoutErrorMessage;
15086
+ const configTimeout = own2("timeout");
15087
+ let timeoutErrorMessage = configTimeout ? "timeout of " + configTimeout + "ms exceeded" : "timeout exceeded";
15088
+ const configTimeoutErrorMessage = own2("timeoutErrorMessage");
15089
+ if (configTimeoutErrorMessage) {
15090
+ timeoutErrorMessage = configTimeoutErrorMessage;
14618
15091
  }
14619
15092
  return new AxiosError_default(
14620
15093
  timeoutErrorMessage,
@@ -14658,17 +15131,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14658
15131
  onFinished();
14659
15132
  }
14660
15133
  });
14661
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
14662
- const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
15134
+ const fullPath = buildFullPath(own2("baseURL"), own2("url"), own2("allowAbsoluteUrls"), config);
15135
+ const urlBase = socketPath ? "http://localhost" : platform_default.hasBrowserEnv ? platform_default.origin : void 0;
15136
+ const parsed = new URL(fullPath, urlBase);
14663
15137
  const protocol = parsed.protocol || supportedProtocols[0];
14664
15138
  if (protocol === "data:") {
14665
- if (config.maxContentLength > -1) {
14666
- const dataUrl = String(config.url || fullPath || "");
14667
- const estimated = estimateDataURLDecodedBytes(dataUrl);
14668
- if (estimated > config.maxContentLength) {
15139
+ if (maxContentLength > -1) {
15140
+ const dataUrl = String(own2("url") || fullPath || "");
15141
+ const estimated = estimateDataURLBufferAllocation(dataUrl);
15142
+ if (estimated > maxContentLength) {
14669
15143
  return reject(
14670
15144
  new AxiosError_default(
14671
- "maxContentLength size of " + config.maxContentLength + " exceeded",
15145
+ "maxContentLength size of " + maxContentLength + " exceeded",
14672
15146
  AxiosError_default.ERR_BAD_RESPONSE,
14673
15147
  config
14674
15148
  )
@@ -14685,7 +15159,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14685
15159
  });
14686
15160
  }
14687
15161
  try {
14688
- convertedData = fromDataURI(config.url, responseType === "blob", {
15162
+ convertedData = fromDataURI(own2("url"), responseType === "blob", {
14689
15163
  Blob: config.env && config.env.Blob
14690
15164
  });
14691
15165
  } catch (err) {
@@ -14734,7 +15208,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14734
15208
  setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
14735
15209
  if (!headers.hasContentLength()) {
14736
15210
  try {
14737
- const knownLength = await util2.promisify(data.getLength).call(data);
15211
+ const knownLength = await util3.promisify(data.getLength).call(data);
14738
15212
  Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
14739
15213
  } catch (e) {
14740
15214
  }
@@ -14759,7 +15233,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14759
15233
  );
14760
15234
  }
14761
15235
  headers.setContentLength(data.length, false);
14762
- if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
15236
+ if (maxBodyLength > -1 && data.length > maxBodyLength) {
14763
15237
  return reject(
14764
15238
  new AxiosError_default(
14765
15239
  "Request body larger than maxBodyLength limit",
@@ -14795,7 +15269,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14795
15269
  data,
14796
15270
  progressEventDecorator(
14797
15271
  contentLength,
14798
- progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
15272
+ progressEventReducer(asyncDecorator(onUploadProgress, scheduleProgress), false, 3)
14799
15273
  )
14800
15274
  )
14801
15275
  );
@@ -14803,11 +15277,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14803
15277
  let auth = void 0;
14804
15278
  const configAuth = own2("auth");
14805
15279
  if (configAuth) {
14806
- const username = configAuth.username || "";
14807
- const password = configAuth.password || "";
15280
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
15281
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
14808
15282
  auth = username + ":" + password;
14809
15283
  }
14810
- if (!auth && parsed.username) {
15284
+ if (!auth && (parsed.username || parsed.password)) {
14811
15285
  const urlUsername = decodeURIComponentSafe(parsed.username);
14812
15286
  const urlPassword = decodeURIComponentSafe(parsed.password);
14813
15287
  auth = urlUsername + ":" + urlPassword;
@@ -14817,26 +15291,27 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14817
15291
  try {
14818
15292
  path = buildURL(
14819
15293
  parsed.pathname + parsed.search,
14820
- config.params,
14821
- config.paramsSerializer
15294
+ own2("params"),
15295
+ own2("paramsSerializer")
14822
15296
  ).replace(/^\?/, "");
14823
15297
  } catch (err) {
14824
- const customErr = new Error(err.message);
14825
- customErr.config = config;
14826
- customErr.url = config.url;
14827
- customErr.exists = true;
14828
- return reject(customErr);
15298
+ return reject(
15299
+ AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config, null, null, {
15300
+ url: own2("url"),
15301
+ exists: true
15302
+ })
15303
+ );
14829
15304
  }
14830
15305
  headers.set(
14831
15306
  "Accept-Encoding",
14832
- "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
15307
+ utils_default.hasOwnProp(transitional2, "advertiseZstdAcceptEncoding") && transitional2.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING,
14833
15308
  false
14834
15309
  );
14835
15310
  const options = Object.assign(/* @__PURE__ */ Object.create(null), {
14836
15311
  path,
14837
15312
  method,
14838
15313
  headers: toByteStringHeaderObject(headers),
14839
- agents: { http: config.httpAgent, https: config.httpsAgent },
15314
+ agents: { http: httpAgent, https: httpsAgent },
14840
15315
  auth,
14841
15316
  protocol,
14842
15317
  family,
@@ -14845,45 +15320,48 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14845
15320
  http2Options
14846
15321
  });
14847
15322
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
14848
- if (config.socketPath) {
14849
- if (typeof config.socketPath !== "string") {
15323
+ if (socketPath) {
15324
+ if (typeof socketPath !== "string") {
14850
15325
  return reject(
14851
15326
  new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
14852
15327
  );
14853
15328
  }
14854
- if (config.allowedSocketPaths != null) {
14855
- const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
14856
- const resolvedSocket = resolvePath(config.socketPath);
15329
+ const allowedSocketPaths = own2("allowedSocketPaths");
15330
+ if (allowedSocketPaths != null) {
15331
+ const allowed = Array.isArray(allowedSocketPaths) ? allowedSocketPaths : [allowedSocketPaths];
15332
+ const resolvedSocket = resolvePath(socketPath);
14857
15333
  const isAllowed = allowed.some(
14858
15334
  (entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket
14859
15335
  );
14860
15336
  if (!isAllowed) {
14861
15337
  return reject(
14862
15338
  new AxiosError_default(
14863
- `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
15339
+ `socketPath "${socketPath}" is not permitted by allowedSocketPaths`,
14864
15340
  AxiosError_default.ERR_BAD_OPTION_VALUE,
14865
15341
  config
14866
15342
  )
14867
15343
  );
14868
15344
  }
14869
15345
  }
14870
- options.socketPath = config.socketPath;
15346
+ options.socketPath = socketPath;
14871
15347
  } else {
14872
15348
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
14873
15349
  options.port = parsed.port;
14874
15350
  setProxy(
14875
15351
  options,
14876
- config.proxy,
15352
+ configProxy,
14877
15353
  protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
14878
15354
  false,
14879
- config.httpsAgent
15355
+ httpsAgent,
15356
+ httpAgent
14880
15357
  );
14881
15358
  }
14882
15359
  let transport;
14883
15360
  let isNativeTransport = false;
15361
+ let transportEnforcesMaxBodyLength = false;
14884
15362
  const isHttpsRequest = isHttps.test(options.protocol);
14885
15363
  if (options.agent == null) {
14886
- options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
15364
+ options.agent = isHttpsRequest ? httpsAgent : httpAgent;
14887
15365
  }
14888
15366
  if (isHttp2) {
14889
15367
  transport = http2Transport;
@@ -14891,22 +15369,69 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14891
15369
  const configTransport = own2("transport");
14892
15370
  if (configTransport) {
14893
15371
  transport = configTransport;
14894
- } else if (config.maxRedirects === 0) {
15372
+ } else if (maxRedirects === 0) {
14895
15373
  transport = isHttpsRequest ? https : http;
14896
15374
  isNativeTransport = true;
14897
15375
  } else {
14898
- if (config.maxRedirects) {
14899
- options.maxRedirects = config.maxRedirects;
15376
+ transportEnforcesMaxBodyLength = true;
15377
+ options.sensitiveHeaders = [];
15378
+ if (maxRedirects) {
15379
+ options.maxRedirects = maxRedirects;
14900
15380
  }
14901
15381
  const configBeforeRedirect = own2("beforeRedirect");
14902
15382
  if (configBeforeRedirect) {
14903
15383
  options.beforeRedirects.config = configBeforeRedirect;
14904
15384
  }
15385
+ if (auth) {
15386
+ const requestOrigin = parsed.origin;
15387
+ const authToRestore = auth;
15388
+ options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) {
15389
+ try {
15390
+ if (new URL(redirectOptions.href).origin === requestOrigin) {
15391
+ redirectOptions.auth = authToRestore;
15392
+ }
15393
+ } catch (e) {
15394
+ }
15395
+ };
15396
+ }
15397
+ const sensitiveHeaders = own2("sensitiveHeaders");
15398
+ if (sensitiveHeaders != null) {
15399
+ if (!utils_default.isArray(sensitiveHeaders)) {
15400
+ return reject(
15401
+ new AxiosError_default(
15402
+ "sensitiveHeaders must be an array of strings",
15403
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15404
+ config
15405
+ )
15406
+ );
15407
+ }
15408
+ const sensitiveSet = /* @__PURE__ */ new Set();
15409
+ for (const header of sensitiveHeaders) {
15410
+ if (!utils_default.isString(header)) {
15411
+ return reject(
15412
+ new AxiosError_default(
15413
+ "sensitiveHeaders must be an array of strings",
15414
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15415
+ config
15416
+ )
15417
+ );
15418
+ }
15419
+ sensitiveSet.add(header.toLowerCase());
15420
+ }
15421
+ if (sensitiveSet.size) {
15422
+ options.sensitiveHeaders = Array.from(sensitiveSet);
15423
+ options.beforeRedirects.sensitiveHeaders = function beforeRedirectSensitiveHeaders(redirectOptions, requestDetails) {
15424
+ if (!isSameOriginRedirect(redirectOptions, requestDetails)) {
15425
+ stripMatchingHeaders(redirectOptions.headers, sensitiveSet);
15426
+ }
15427
+ };
15428
+ }
15429
+ }
14905
15430
  transport = isHttpsRequest ? httpsFollow : httpFollow;
14906
15431
  }
14907
15432
  }
14908
- if (config.maxBodyLength > -1) {
14909
- options.maxBodyLength = config.maxBodyLength;
15433
+ if (maxBodyLength > -1) {
15434
+ options.maxBodyLength = maxBodyLength;
14910
15435
  } else {
14911
15436
  options.maxBodyLength = Infinity;
14912
15437
  }
@@ -14926,7 +15451,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14926
15451
  transformStream,
14927
15452
  progressEventDecorator(
14928
15453
  responseLength,
14929
- progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
15454
+ progressEventReducer(asyncDecorator(onDownloadProgress, scheduleProgress), true, 3)
14930
15455
  )
14931
15456
  )
14932
15457
  );
@@ -14934,7 +15459,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14934
15459
  }
14935
15460
  let responseStream = res;
14936
15461
  const lastRequest = res.req || req;
14937
- if (config.decompress !== false && res.headers["content-encoding"]) {
15462
+ if (decompress !== false && res.headers["content-encoding"]) {
14938
15463
  if (method === "HEAD" || res.statusCode === 204) {
14939
15464
  delete res.headers["content-encoding"];
14940
15465
  }
@@ -14957,6 +15482,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14957
15482
  streams.push(zlib.createBrotliDecompress(brotliOptions));
14958
15483
  delete res.headers["content-encoding"];
14959
15484
  }
15485
+ break;
15486
+ case "zstd":
15487
+ if (isZstdSupported) {
15488
+ streams.push(zlib.createZstdDecompress(zstdOptions));
15489
+ delete res.headers["content-encoding"];
15490
+ }
15491
+ break;
14960
15492
  }
14961
15493
  }
14962
15494
  responseStream = streams.length > 1 ? stream3.pipeline(streams, utils_default.noop) : streams[0];
@@ -14968,8 +15500,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14968
15500
  request: lastRequest
14969
15501
  };
14970
15502
  if (responseType === "stream") {
14971
- if (config.maxContentLength > -1) {
14972
- const limit = config.maxContentLength;
15503
+ if (maxContentLength > -1) {
15504
+ const limit = maxContentLength;
14973
15505
  const source = responseStream;
14974
15506
  async function* enforceMaxContentLength() {
14975
15507
  let totalResponseBytes = 0;
@@ -14998,12 +15530,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14998
15530
  responseStream.on("data", function handleStreamData(chunk) {
14999
15531
  responseBuffer.push(chunk);
15000
15532
  totalResponseBytes += chunk.length;
15001
- if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
15533
+ if (maxContentLength > -1 && totalResponseBytes > maxContentLength) {
15002
15534
  rejected = true;
15003
15535
  responseStream.destroy();
15004
15536
  abort(
15005
15537
  new AxiosError_default(
15006
- "maxContentLength size of " + config.maxContentLength + " exceeded",
15538
+ "maxContentLength size of " + maxContentLength + " exceeded",
15007
15539
  AxiosError_default.ERR_BAD_RESPONSE,
15008
15540
  config,
15009
15541
  lastRequest
@@ -15064,7 +15596,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15064
15596
  });
15065
15597
  const boundSockets = /* @__PURE__ */ new Set();
15066
15598
  req.on("socket", function handleRequestSocket(socket) {
15067
- socket.setKeepAlive(true, 1e3 * 60);
15599
+ if (typeof socket.setKeepAlive === "function") {
15600
+ socket.setKeepAlive(true, 1e3 * 60);
15601
+ }
15068
15602
  if (!socket[kAxiosSocketListener]) {
15069
15603
  socket.on("error", function handleSocketError(err) {
15070
15604
  const current = socket[kAxiosCurrentReq];
@@ -15086,8 +15620,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15086
15620
  }
15087
15621
  boundSockets.clear();
15088
15622
  });
15089
- if (config.timeout) {
15090
- const timeout = parseInt(config.timeout, 10);
15623
+ if (own2("timeout")) {
15624
+ const timeout = parseInt(own2("timeout"), 10);
15091
15625
  if (Number.isNaN(timeout)) {
15092
15626
  abort(
15093
15627
  new AxiosError_default(
@@ -15126,8 +15660,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15126
15660
  }
15127
15661
  });
15128
15662
  let uploadStream = data;
15129
- if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
15130
- const limit = config.maxBodyLength;
15663
+ if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
15664
+ const limit = maxBodyLength;
15131
15665
  let bytesSent = 0;
15132
15666
  uploadStream = stream3.pipeline(
15133
15667
  [
@@ -15163,7 +15697,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15163
15697
  });
15164
15698
  };
15165
15699
 
15166
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js
15700
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
15167
15701
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
15168
15702
  url2 = new URL(url2, platform_default.origin);
15169
15703
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -15172,7 +15706,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
15172
15706
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
15173
15707
  ) : () => true;
15174
15708
 
15175
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js
15709
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
15176
15710
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
15177
15711
  // Standard browser envs support document.cookie
15178
15712
  {
@@ -15203,7 +15737,11 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15203
15737
  const cookie = cookies[i].replace(/^\s+/, "");
15204
15738
  const eq = cookie.indexOf("=");
15205
15739
  if (eq !== -1 && cookie.slice(0, eq) === name) {
15206
- return decodeURIComponent(cookie.slice(eq + 1));
15740
+ try {
15741
+ return decodeURIComponent(cookie.slice(eq + 1));
15742
+ } catch (e) {
15743
+ return cookie.slice(eq + 1);
15744
+ }
15207
15745
  }
15208
15746
  }
15209
15747
  return null;
@@ -15225,9 +15763,20 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15225
15763
  }
15226
15764
  );
15227
15765
 
15228
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js
15766
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
15229
15767
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
15768
+ var ownEnumerableKeys = (thing) => {
15769
+ if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
15770
+ return Object.keys(thing).concat(
15771
+ Object.getOwnPropertySymbols(thing).filter(
15772
+ (symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable
15773
+ )
15774
+ );
15775
+ }
15776
+ return Object.keys(thing);
15777
+ };
15230
15778
  function mergeConfig(config1, config2) {
15779
+ config1 = config1 || {};
15231
15780
  config2 = config2 || {};
15232
15781
  const config = /* @__PURE__ */ Object.create(null);
15233
15782
  Object.defineProperty(config, "hasOwnProperty", {
@@ -15268,6 +15817,23 @@ function mergeConfig(config1, config2) {
15268
15817
  return getMergedValue(void 0, a);
15269
15818
  }
15270
15819
  }
15820
+ function getMergedTransitionalOption(prop) {
15821
+ const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
15822
+ if (!utils_default.isUndefined(transitional2)) {
15823
+ if (utils_default.isPlainObject(transitional2)) {
15824
+ if (utils_default.hasOwnProp(transitional2, prop)) {
15825
+ return transitional2[prop];
15826
+ }
15827
+ } else {
15828
+ return void 0;
15829
+ }
15830
+ }
15831
+ const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
15832
+ if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
15833
+ return transitional1[prop];
15834
+ }
15835
+ return void 0;
15836
+ }
15271
15837
  function mergeDirectKeys(a, b, prop) {
15272
15838
  if (utils_default.hasOwnProp(config2, prop)) {
15273
15839
  return getMergedValue(a, b);
@@ -15307,7 +15873,7 @@ function mergeConfig(config1, config2) {
15307
15873
  validateStatus: mergeDirectKeys,
15308
15874
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
15309
15875
  };
15310
- utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
15876
+ utils_default.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
15311
15877
  if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
15312
15878
  const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
15313
15879
  const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
@@ -15315,27 +15881,22 @@ function mergeConfig(config1, config2) {
15315
15881
  const configValue = merge2(a, b, prop);
15316
15882
  utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
15317
15883
  });
15884
+ if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
15885
+ if (utils_default.hasOwnProp(config1, "validateStatus")) {
15886
+ config.validateStatus = getMergedValue(void 0, config1.validateStatus);
15887
+ } else {
15888
+ delete config.validateStatus;
15889
+ }
15890
+ }
15318
15891
  return config;
15319
15892
  }
15320
15893
 
15321
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/resolveConfig.js
15322
- var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
15323
- function setFormDataHeaders2(headers, formHeaders, policy) {
15324
- if (policy !== "content-only") {
15325
- headers.set(formHeaders);
15326
- return;
15327
- }
15328
- Object.entries(formHeaders).forEach(([key, val]) => {
15329
- if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
15330
- headers.set(key, val);
15331
- }
15332
- });
15333
- }
15894
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
15334
15895
  var encodeUTF8 = (str) => encodeURIComponent(str).replace(
15335
15896
  /%([0-9A-F]{2})/gi,
15336
15897
  (_, hex) => String.fromCharCode(parseInt(hex, 16))
15337
15898
  );
15338
- var resolveConfig_default = (config) => {
15899
+ function resolveConfig(config) {
15339
15900
  const newConfig = mergeConfig({}, config);
15340
15901
  const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
15341
15902
  const data = own2("data");
@@ -15349,21 +15910,27 @@ var resolveConfig_default = (config) => {
15349
15910
  const url2 = own2("url");
15350
15911
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
15351
15912
  newConfig.url = buildURL(
15352
- buildFullPath(baseURL, url2, allowAbsoluteUrls),
15353
- config.params,
15354
- config.paramsSerializer
15913
+ buildFullPath(baseURL, url2, allowAbsoluteUrls, newConfig),
15914
+ own2("params"),
15915
+ own2("paramsSerializer")
15355
15916
  );
15356
15917
  if (auth) {
15357
- headers.set(
15358
- "Authorization",
15359
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
15360
- );
15918
+ const username = utils_default.getSafeProp(auth, "username") || "";
15919
+ const password = utils_default.getSafeProp(auth, "password") || "";
15920
+ try {
15921
+ headers.set(
15922
+ "Authorization",
15923
+ "Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
15924
+ );
15925
+ } catch (e) {
15926
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
15927
+ }
15361
15928
  }
15362
15929
  if (utils_default.isFormData(data)) {
15363
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
15930
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
15364
15931
  headers.setContentType(void 0);
15365
15932
  } else if (utils_default.isFunction(data.getHeaders)) {
15366
- setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
15933
+ setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
15367
15934
  }
15368
15935
  }
15369
15936
  if (platform_default.hasStandardBrowserEnv) {
@@ -15379,9 +15946,10 @@ var resolveConfig_default = (config) => {
15379
15946
  }
15380
15947
  }
15381
15948
  return newConfig;
15382
- };
15949
+ }
15950
+ var resolveConfig_default = resolveConfig;
15383
15951
 
15384
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js
15952
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
15385
15953
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
15386
15954
  var xhr_default = isXHRAdapterSupported && function(config) {
15387
15955
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -15521,13 +16089,14 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15521
16089
  config
15522
16090
  )
15523
16091
  );
16092
+ done();
15524
16093
  return;
15525
16094
  }
15526
16095
  request.send(requestData || null);
15527
16096
  });
15528
16097
  };
15529
16098
 
15530
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/composeSignals.js
16099
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
15531
16100
  var composeSignals = (signals, timeout) => {
15532
16101
  signals = signals ? signals.filter(Boolean) : [];
15533
16102
  if (!timeout && !signals.length) {
@@ -15560,14 +16129,23 @@ var composeSignals = (signals, timeout) => {
15560
16129
  });
15561
16130
  signals = null;
15562
16131
  };
15563
- signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
16132
+ signals.forEach((signal2) => {
16133
+ if (aborted) {
16134
+ return;
16135
+ }
16136
+ if (signal2.aborted) {
16137
+ onabort.call(signal2);
16138
+ return;
16139
+ }
16140
+ signal2.addEventListener("abort", onabort, { once: true });
16141
+ });
15564
16142
  const { signal } = controller;
15565
16143
  signal.unsubscribe = () => utils_default.asap(unsubscribe);
15566
16144
  return signal;
15567
16145
  };
15568
16146
  var composeSignals_default = composeSignals;
15569
16147
 
15570
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/trackStream.js
16148
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
15571
16149
  var streamChunk = function* (chunk, chunkSize) {
15572
16150
  let len = chunk.byteLength;
15573
16151
  if (!chunkSize || len < chunkSize) {
@@ -15647,9 +16225,23 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
15647
16225
  );
15648
16226
  };
15649
16227
 
15650
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/fetch.js
16228
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
15651
16229
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
15652
16230
  var { isFunction: isFunction2 } = utils_default;
16231
+ var encodeUTF82 = (str) => encodeURIComponent(str).replace(
16232
+ /%([0-9A-F]{2})/gi,
16233
+ (_, hex) => String.fromCharCode(parseInt(hex, 16))
16234
+ );
16235
+ var decodeURIComponentSafe2 = (value) => {
16236
+ if (!utils_default.isString(value)) {
16237
+ return value;
16238
+ }
16239
+ try {
16240
+ return decodeURIComponent(value);
16241
+ } catch (error) {
16242
+ return value;
16243
+ }
16244
+ };
15653
16245
  var test = (fn, ...args) => {
15654
16246
  try {
15655
16247
  return !!fn(...args);
@@ -15657,6 +16249,14 @@ var test = (fn, ...args) => {
15657
16249
  return false;
15658
16250
  }
15659
16251
  };
16252
+ var maybeWithAuthCredentials = (url2) => {
16253
+ const protocolIndex = url2.indexOf("://");
16254
+ let urlToCheck = url2;
16255
+ if (protocolIndex !== -1) {
16256
+ urlToCheck = urlToCheck.slice(protocolIndex + 3);
16257
+ }
16258
+ return urlToCheck.includes("@") || urlToCheck.includes(":");
16259
+ };
15660
16260
  var factory = (env) => {
15661
16261
  const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
15662
16262
  const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
@@ -15761,6 +16361,7 @@ var factory = (env) => {
15761
16361
  } = resolveConfig_default(config);
15762
16362
  const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
15763
16363
  const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
16364
+ const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
15764
16365
  let _fetch = envFetch || fetch;
15765
16366
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
15766
16367
  let composedSignal = composeSignals_default(
@@ -15772,7 +16373,47 @@ var factory = (env) => {
15772
16373
  composedSignal.unsubscribe();
15773
16374
  });
15774
16375
  let requestContentLength;
16376
+ let pendingBodyError = null;
16377
+ const maxBodyLengthError = () => new AxiosError_default(
16378
+ "Request body larger than maxBodyLength limit",
16379
+ AxiosError_default.ERR_BAD_REQUEST,
16380
+ config,
16381
+ request
16382
+ );
15775
16383
  try {
16384
+ let auth = void 0;
16385
+ const configAuth = own2("auth");
16386
+ if (configAuth) {
16387
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
16388
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
16389
+ auth = {
16390
+ username,
16391
+ password
16392
+ };
16393
+ }
16394
+ if (maybeWithAuthCredentials(url2)) {
16395
+ const parsedURL = new URL(url2, platform_default.origin);
16396
+ if (!auth && (parsedURL.username || parsedURL.password)) {
16397
+ const urlUsername = decodeURIComponentSafe2(parsedURL.username);
16398
+ const urlPassword = decodeURIComponentSafe2(parsedURL.password);
16399
+ auth = {
16400
+ username: urlUsername,
16401
+ password: urlPassword
16402
+ };
16403
+ }
16404
+ if (parsedURL.username || parsedURL.password) {
16405
+ parsedURL.username = "";
16406
+ parsedURL.password = "";
16407
+ url2 = parsedURL.href;
16408
+ }
16409
+ }
16410
+ if (auth) {
16411
+ headers.delete("authorization");
16412
+ headers.set(
16413
+ "Authorization",
16414
+ "Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
16415
+ );
16416
+ }
15776
16417
  if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
15777
16418
  const estimated = estimateDataURLDecodedBytes(url2);
15778
16419
  if (estimated > maxContentLength) {
@@ -15785,33 +16426,55 @@ var factory = (env) => {
15785
16426
  }
15786
16427
  }
15787
16428
  if (hasMaxBodyLength && method !== "get" && method !== "head") {
15788
- const outboundLength = await resolveBodyLength(headers, data);
15789
- if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
15790
- throw new AxiosError_default(
15791
- "Request body larger than maxBodyLength limit",
15792
- AxiosError_default.ERR_BAD_REQUEST,
15793
- config,
15794
- request
15795
- );
16429
+ const outboundLength = await getBodyLength(data);
16430
+ if (typeof outboundLength === "number" && isFinite(outboundLength)) {
16431
+ requestContentLength = outboundLength;
16432
+ if (outboundLength > maxBodyLength) {
16433
+ throw maxBodyLengthError();
16434
+ }
15796
16435
  }
15797
16436
  }
15798
- if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
15799
- let _request = new Request(url2, {
15800
- method: "POST",
15801
- body: data,
15802
- duplex: "half"
15803
- });
15804
- let contentTypeHeader;
15805
- if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
15806
- headers.setContentType(contentTypeHeader);
15807
- }
15808
- if (_request.body) {
15809
- const [onProgress, flush] = progressEventDecorator(
15810
- requestContentLength,
15811
- progressEventReducer(asyncDecorator(onUploadProgress))
15812
- );
15813
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
16437
+ const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
16438
+ const trackRequestStream = (stream4, onProgress, flush) => trackStream(
16439
+ stream4,
16440
+ DEFAULT_CHUNK_SIZE,
16441
+ (loadedBytes) => {
16442
+ if (hasMaxBodyLength && loadedBytes > maxBodyLength) {
16443
+ throw pendingBodyError = maxBodyLengthError();
16444
+ }
16445
+ onProgress && onProgress(loadedBytes);
16446
+ },
16447
+ flush
16448
+ );
16449
+ if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
16450
+ requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
16451
+ if (requestContentLength !== 0 || mustEnforceStreamBody) {
16452
+ let _request = new Request(url2, {
16453
+ method: "POST",
16454
+ body: data,
16455
+ duplex: "half"
16456
+ });
16457
+ let contentTypeHeader;
16458
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
16459
+ headers.setContentType(contentTypeHeader);
16460
+ }
16461
+ if (_request.body) {
16462
+ const [onProgress, flush] = onUploadProgress && progressEventDecorator(
16463
+ requestContentLength,
16464
+ progressEventReducer(asyncDecorator(onUploadProgress))
16465
+ ) || [];
16466
+ data = trackRequestStream(_request.body, onProgress, flush);
16467
+ }
15814
16468
  }
16469
+ } else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
16470
+ data = trackRequestStream(data);
16471
+ } else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
16472
+ throw new AxiosError_default(
16473
+ "Stream request bodies are not supported by the current fetch implementation",
16474
+ AxiosError_default.ERR_NOT_SUPPORT,
16475
+ config,
16476
+ request
16477
+ );
15815
16478
  }
15816
16479
  if (!utils_default.isString(withCredentials)) {
15817
16480
  withCredentials = withCredentials ? "include" : "omit";
@@ -15835,8 +16498,9 @@ var factory = (env) => {
15835
16498
  };
15836
16499
  request = isRequestSupported && new Request(url2, resolvedOptions);
15837
16500
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
16501
+ const responseHeaders = AxiosHeaders_default.from(response.headers);
15838
16502
  if (hasMaxContentLength) {
15839
- const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16503
+ const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
15840
16504
  if (declaredLength != null && declaredLength > maxContentLength) {
15841
16505
  throw new AxiosError_default(
15842
16506
  "maxContentLength size of " + maxContentLength + " exceeded",
@@ -15852,7 +16516,7 @@ var factory = (env) => {
15852
16516
  ["status", "statusText", "headers"].forEach((prop) => {
15853
16517
  options[prop] = response[prop];
15854
16518
  });
15855
- const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16519
+ const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
15856
16520
  const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
15857
16521
  responseContentLength,
15858
16522
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
@@ -15922,22 +16586,41 @@ var factory = (env) => {
15922
16586
  const canceledError = composedSignal.reason;
15923
16587
  canceledError.config = config;
15924
16588
  request && (canceledError.request = request);
15925
- err !== canceledError && (canceledError.cause = err);
16589
+ if (err !== canceledError) {
16590
+ Object.defineProperty(canceledError, "cause", {
16591
+ __proto__: null,
16592
+ value: err,
16593
+ writable: true,
16594
+ enumerable: false,
16595
+ configurable: true
16596
+ });
16597
+ }
15926
16598
  throw canceledError;
15927
16599
  }
16600
+ if (pendingBodyError) {
16601
+ request && !pendingBodyError.request && (pendingBodyError.request = request);
16602
+ throw pendingBodyError;
16603
+ }
16604
+ if (err instanceof AxiosError_default) {
16605
+ request && !err.request && (err.request = request);
16606
+ throw err;
16607
+ }
15928
16608
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
15929
- throw Object.assign(
15930
- new AxiosError_default(
15931
- "Network Error",
15932
- AxiosError_default.ERR_NETWORK,
15933
- config,
15934
- request,
15935
- err && err.response
15936
- ),
15937
- {
15938
- cause: err.cause || err
15939
- }
16609
+ const networkError = new AxiosError_default(
16610
+ "Network Error",
16611
+ AxiosError_default.ERR_NETWORK,
16612
+ config,
16613
+ request,
16614
+ err && err.response
15940
16615
  );
16616
+ Object.defineProperty(networkError, "cause", {
16617
+ __proto__: null,
16618
+ value: err.cause || err,
16619
+ writable: true,
16620
+ enumerable: false,
16621
+ configurable: true
16622
+ });
16623
+ throw networkError;
15941
16624
  }
15942
16625
  throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
15943
16626
  }
@@ -15959,7 +16642,7 @@ var getFetch = (config) => {
15959
16642
  };
15960
16643
  var adapter = getFetch();
15961
16644
 
15962
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/adapters.js
16645
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
15963
16646
  var knownAdapters = {
15964
16647
  http: http_default,
15965
16648
  xhr: xhr_default,
@@ -16006,7 +16689,7 @@ function getAdapter(adapters, config) {
16006
16689
  let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
16007
16690
  throw new AxiosError_default(
16008
16691
  `There is no suitable adapter to dispatch the request ` + s,
16009
- "ERR_NOT_SUPPORT"
16692
+ AxiosError_default.ERR_NOT_SUPPORT
16010
16693
  );
16011
16694
  }
16012
16695
  return adapter2;
@@ -16024,7 +16707,7 @@ var adapters_default = {
16024
16707
  adapters: knownAdapters
16025
16708
  };
16026
16709
 
16027
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js
16710
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
16028
16711
  function throwIfCancellationRequested(config) {
16029
16712
  if (config.cancelToken) {
16030
16713
  config.cancelToken.throwIfRequested();
@@ -16075,7 +16758,7 @@ function dispatchRequest(config) {
16075
16758
  );
16076
16759
  }
16077
16760
 
16078
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/validator.js
16761
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
16079
16762
  var validators = {};
16080
16763
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
16081
16764
  validators[type] = function validator(thing) {
@@ -16113,7 +16796,7 @@ validators.spelling = function spelling(correctSpelling) {
16113
16796
  };
16114
16797
  };
16115
16798
  function assertOptions(options, schema, allowUnknown) {
16116
- if (typeof options !== "object") {
16799
+ if (typeof options !== "object" || options === null) {
16117
16800
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
16118
16801
  }
16119
16802
  const keys = Object.keys(options);
@@ -16142,7 +16825,7 @@ var validator_default = {
16142
16825
  validators
16143
16826
  };
16144
16827
 
16145
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/Axios.js
16828
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
16146
16829
  var validators2 = validator_default.validators;
16147
16830
  var Axios = class {
16148
16831
  constructor(instanceConfig) {
@@ -16207,7 +16890,9 @@ var Axios = class {
16207
16890
  silentJSONParsing: validators2.transitional(validators2.boolean),
16208
16891
  forcedJSONParsing: validators2.transitional(validators2.boolean),
16209
16892
  clarifyTimeoutError: validators2.transitional(validators2.boolean),
16210
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
16893
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
16894
+ advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
16895
+ validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
16211
16896
  },
16212
16897
  false
16213
16898
  );
@@ -16287,16 +16972,31 @@ var Axios = class {
16287
16972
  const onFulfilled = requestInterceptorChain[i++];
16288
16973
  const onRejected = requestInterceptorChain[i++];
16289
16974
  try {
16290
- newConfig = onFulfilled(newConfig);
16975
+ newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
16291
16976
  } catch (error) {
16292
- onRejected.call(this, error);
16977
+ if (!onRejected) {
16978
+ promise = Promise.reject(error);
16979
+ break;
16980
+ }
16981
+ try {
16982
+ const rejectedResult = onRejected.call(this, error);
16983
+ if (utils_default.isThenable(rejectedResult)) {
16984
+ promise = Promise.resolve(rejectedResult).then(
16985
+ () => dispatchRequest.call(this, newConfig)
16986
+ );
16987
+ }
16988
+ } catch (rejectedError) {
16989
+ promise = Promise.reject(rejectedError);
16990
+ }
16293
16991
  break;
16294
16992
  }
16295
16993
  }
16296
- try {
16297
- promise = dispatchRequest.call(this, newConfig);
16298
- } catch (error) {
16299
- return Promise.reject(error);
16994
+ if (!promise) {
16995
+ try {
16996
+ promise = dispatchRequest.call(this, newConfig);
16997
+ } catch (error) {
16998
+ promise = Promise.reject(error);
16999
+ }
16300
17000
  }
16301
17001
  i = 0;
16302
17002
  len = responseInterceptorChain.length;
@@ -16307,7 +17007,7 @@ var Axios = class {
16307
17007
  }
16308
17008
  getUri(config) {
16309
17009
  config = mergeConfig(this.defaults, config);
16310
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
17010
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
16311
17011
  return buildURL(fullPath, config.params, config.paramsSerializer);
16312
17012
  }
16313
17013
  };
@@ -16317,7 +17017,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
16317
17017
  mergeConfig(config || {}, {
16318
17018
  method,
16319
17019
  url: url2,
16320
- data: (config || {}).data
17020
+ data: config && utils_default.hasOwnProp(config, "data") ? config.data : void 0
16321
17021
  })
16322
17022
  );
16323
17023
  };
@@ -16344,7 +17044,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
16344
17044
  });
16345
17045
  var Axios_default = Axios;
16346
17046
 
16347
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js
17047
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
16348
17048
  var CancelToken = class _CancelToken {
16349
17049
  constructor(executor) {
16350
17050
  if (typeof executor !== "function") {
@@ -16442,19 +17142,19 @@ var CancelToken = class _CancelToken {
16442
17142
  };
16443
17143
  var CancelToken_default = CancelToken;
16444
17144
 
16445
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/spread.js
17145
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
16446
17146
  function spread(callback) {
16447
17147
  return function wrap(arr) {
16448
17148
  return callback.apply(null, arr);
16449
17149
  };
16450
17150
  }
16451
17151
 
16452
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js
17152
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
16453
17153
  function isAxiosError(payload) {
16454
17154
  return utils_default.isObject(payload) && payload.isAxiosError === true;
16455
17155
  }
16456
17156
 
16457
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/HttpStatusCode.js
17157
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
16458
17158
  var HttpStatusCode = {
16459
17159
  Continue: 100,
16460
17160
  SwitchingProtocols: 101,
@@ -16519,6 +17219,7 @@ var HttpStatusCode = {
16519
17219
  LoopDetected: 508,
16520
17220
  NotExtended: 510,
16521
17221
  NetworkAuthenticationRequired: 511,
17222
+ WebServerReturnsAnUnknownError: 520,
16522
17223
  WebServerIsDown: 521,
16523
17224
  ConnectionTimedOut: 522,
16524
17225
  OriginIsUnreachable: 523,
@@ -16531,7 +17232,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
16531
17232
  });
16532
17233
  var HttpStatusCode_default = HttpStatusCode;
16533
17234
 
16534
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/axios.js
17235
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
16535
17236
  function createInstance(defaultConfig) {
16536
17237
  const context = new Axios_default(defaultConfig);
16537
17238
  const instance = bind(Axios_default.prototype.request, context);
@@ -16564,7 +17265,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
16564
17265
  axios.default = axios;
16565
17266
  var axios_default = axios;
16566
17267
 
16567
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/index.js
17268
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
16568
17269
  var {
16569
17270
  Axios: Axios2,
16570
17271
  AxiosError: AxiosError2,
@@ -16585,18 +17286,18 @@ var {
16585
17286
  create
16586
17287
  } = axios_default;
16587
17288
 
16588
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/Tunnel.js
17289
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
16589
17290
  var import_debug2 = __toESM(require_src(), 1);
16590
17291
  import { EventEmitter as EventEmitter3 } from "events";
16591
17292
 
16592
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/TunnelCluster.js
17293
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
16593
17294
  var import_debug = __toESM(require_src(), 1);
16594
17295
  import { EventEmitter as EventEmitter2 } from "events";
16595
17296
  import fs from "fs";
16596
17297
  import net from "net";
16597
17298
  import tls from "tls";
16598
17299
 
16599
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/HeaderHostTransformer.js
17300
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/HeaderHostTransformer.js
16600
17301
  import { Transform } from "stream";
16601
17302
  var HeaderHostTransformer = class extends Transform {
16602
17303
  host;
@@ -16614,7 +17315,7 @@ var HeaderHostTransformer = class extends Transform {
16614
17315
  }
16615
17316
  };
16616
17317
 
16617
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/TunnelCluster.js
17318
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
16618
17319
  var log = (0, import_debug.default)("pipenet:client");
16619
17320
  var TunnelCluster = class extends EventEmitter2 {
16620
17321
  opts;
@@ -16714,7 +17415,7 @@ var TunnelCluster = class extends EventEmitter2 {
16714
17415
  }
16715
17416
  };
16716
17417
 
16717
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/Tunnel.js
17418
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
16718
17419
  var log2 = (0, import_debug2.default)("pipenet:client");
16719
17420
  var Tunnel = class extends EventEmitter3 {
16720
17421
  cachedUrl;
@@ -16862,7 +17563,7 @@ var Tunnel = class extends EventEmitter3 {
16862
17563
  }
16863
17564
  };
16864
17565
 
16865
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/pipenet.js
17566
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/pipenet.js
16866
17567
  function pipenet(arg1, arg2, arg3) {
16867
17568
  const options = typeof arg1 === "object" ? arg1 : { ...arg2, port: arg1 };
16868
17569
  const callback = typeof arg1 === "object" ? arg2 : arg3;