@alpic-ai/sdk 0.0.0-dev.gf910851 → 0.0.0-dev.gf921e14

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.2_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.2_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.2_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.2_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");
@@ -11799,8 +11788,14 @@ var require_follow_redirects = __commonJS({
11799
11788
  RedirectableRequest.prototype._sanitizeOptions = function(options) {
11800
11789
  if (!options.headers) {
11801
11790
  options.headers = {};
11791
+ } else if (Array.isArray(options.headers)) {
11792
+ var headerList = options.headers;
11793
+ options.headers = {};
11794
+ for (var i = 0; i < headerList.length; i += 2) {
11795
+ options.headers[headerList[i]] = headerList[i + 1];
11796
+ }
11802
11797
  }
11803
- if (!isArray2(options.sensitiveHeaders)) {
11798
+ if (!Array.isArray(options.sensitiveHeaders)) {
11804
11799
  options.sensitiveHeaders = [];
11805
11800
  }
11806
11801
  if (options.host) {
@@ -12057,9 +12052,6 @@ var require_follow_redirects = __commonJS({
12057
12052
  var dot = subdomain.length - domain.length - 1;
12058
12053
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
12059
12054
  }
12060
- function isArray2(value) {
12061
- return value instanceof Array;
12062
- }
12063
12055
  function isString2(value) {
12064
12056
  return typeof value === "string" || value instanceof String;
12065
12057
  }
@@ -12073,24 +12065,101 @@ var require_follow_redirects = __commonJS({
12073
12065
  return URL2 && value instanceof URL2;
12074
12066
  }
12075
12067
  function escapeRegex(regex) {
12076
- return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
12068
+ return regex.replace(/[[\]\\/()*+?.^$|]/g, "\\$&");
12077
12069
  }
12078
12070
  module.exports = wrap({ http: http3, https: https2 });
12079
12071
  module.exports.wrap = wrap;
12080
12072
  }
12081
12073
  });
12082
12074
 
12083
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/bind.js
12075
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
12084
12076
  function bind(fn, thisArg) {
12085
12077
  return function wrap() {
12086
12078
  return fn.apply(thisArg, arguments);
12087
12079
  };
12088
12080
  }
12089
12081
 
12090
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/utils.js
12082
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
12091
12083
  var { toString } = Object.prototype;
12092
12084
  var { getPrototypeOf } = Object;
12093
12085
  var { iterator, toStringTag } = Symbol;
12086
+ var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
12087
+ var isUnsafeObjectKey = (prop) => typeof prop === "string" && (prop === "__proto__" || prop === "constructor" || prop === "prototype");
12088
+ var isPrototypeBoundary = (obj, prototype2, source) => obj === Object.prototype || !source && prototype2 === null;
12089
+ var isSafeAndFullyMutable = (obj) => {
12090
+ if (!Object.isExtensible(obj)) {
12091
+ return false;
12092
+ }
12093
+ const props = Object.getOwnPropertyNames(obj);
12094
+ if (Object.getOwnPropertySymbols) {
12095
+ props.push(...Object.getOwnPropertySymbols(obj));
12096
+ }
12097
+ return props.every((prop) => {
12098
+ if (isUnsafeObjectKey(prop)) {
12099
+ return false;
12100
+ }
12101
+ const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
12102
+ return !!descriptor && descriptor.configurable && descriptor.writable === true;
12103
+ });
12104
+ };
12105
+ var hasOwnInPrototypeChain = (thing, prop) => {
12106
+ let obj = thing;
12107
+ const seen = [];
12108
+ while (obj != null) {
12109
+ if (seen.indexOf(obj) !== -1) {
12110
+ return false;
12111
+ }
12112
+ seen.push(obj);
12113
+ const prototype2 = getPrototypeOf(obj);
12114
+ if (isPrototypeBoundary(obj, prototype2, obj === thing)) {
12115
+ return false;
12116
+ }
12117
+ if (hasOwnProperty(obj, prop)) {
12118
+ return true;
12119
+ }
12120
+ obj = prototype2;
12121
+ }
12122
+ return false;
12123
+ };
12124
+ var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
12125
+ var toSafeFlatObject = (thing) => {
12126
+ if (thing == null || typeof thing !== "object" && typeof thing !== "function") {
12127
+ return thing;
12128
+ }
12129
+ const sourcePrototype = getPrototypeOf(thing);
12130
+ if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
12131
+ return thing;
12132
+ }
12133
+ const result = /* @__PURE__ */ Object.create(null);
12134
+ const merged = /* @__PURE__ */ Object.create(null);
12135
+ const seen = [];
12136
+ let current = thing;
12137
+ while (current != null) {
12138
+ if (seen.indexOf(current) !== -1) {
12139
+ break;
12140
+ }
12141
+ seen.push(current);
12142
+ const prototype2 = current === thing ? sourcePrototype : getPrototypeOf(current);
12143
+ if (isPrototypeBoundary(current, prototype2, current === thing)) {
12144
+ break;
12145
+ }
12146
+ const props = Object.getOwnPropertyNames(current);
12147
+ if (Object.getOwnPropertySymbols) {
12148
+ props.push(...Object.getOwnPropertySymbols(current));
12149
+ }
12150
+ for (const prop of props) {
12151
+ if (isUnsafeObjectKey(prop)) {
12152
+ continue;
12153
+ }
12154
+ if (!hasOwnProperty(merged, prop)) {
12155
+ result[prop] = thing[prop];
12156
+ merged[prop] = true;
12157
+ }
12158
+ }
12159
+ current = prototype2;
12160
+ }
12161
+ return result;
12162
+ };
12094
12163
  var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
12095
12164
  const str = toString.call(thing);
12096
12165
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -12121,11 +12190,14 @@ var isNumber = typeOfTest("number");
12121
12190
  var isObject = (thing) => thing !== null && typeof thing === "object";
12122
12191
  var isBoolean = (thing) => thing === true || thing === false;
12123
12192
  var isPlainObject = (val) => {
12124
- if (kindOf(val) !== "object") {
12193
+ if (!isObject(val)) {
12125
12194
  return false;
12126
12195
  }
12127
12196
  const prototype2 = getPrototypeOf(val);
12128
- return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
12197
+ return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
12198
+ // evidence the value is tagged/iterable, while ignoring members reachable
12199
+ // only through shared or terminal prototype boundaries.
12200
+ !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
12129
12201
  };
12130
12202
  var isEmptyObject = (val) => {
12131
12203
  if (!isObject(val) || isBuffer(val)) {
@@ -12145,6 +12217,7 @@ var isReactNativeBlob = (value) => {
12145
12217
  var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
12146
12218
  var isBlob = kindOfTest("Blob");
12147
12219
  var isFileList = kindOfTest("FileList");
12220
+ var isSet = kindOfTest("Set");
12148
12221
  var isStream = (val) => isObject(val) && isFunction(val.pipe);
12149
12222
  function getGlobal() {
12150
12223
  if (typeof globalThis !== "undefined") return globalThis;
@@ -12229,7 +12302,7 @@ function merge(...objs) {
12229
12302
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
12230
12303
  return;
12231
12304
  }
12232
- const targetKey = caseless && findKey(result, key) || key;
12305
+ const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
12233
12306
  const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
12234
12307
  if (isPlainObject(existing) && isPlainObject(val)) {
12235
12308
  result[targetKey] = merge(existing, val);
@@ -12242,7 +12315,21 @@ function merge(...objs) {
12242
12315
  }
12243
12316
  };
12244
12317
  for (let i = 0, l = objs.length; i < l; i++) {
12245
- objs[i] && forEach(objs[i], assignValue);
12318
+ const source = objs[i];
12319
+ if (!source || isBuffer(source)) {
12320
+ continue;
12321
+ }
12322
+ forEach(source, assignValue);
12323
+ if (typeof source !== "object" || isArray(source)) {
12324
+ continue;
12325
+ }
12326
+ const symbols = Object.getOwnPropertySymbols(source);
12327
+ for (let j = 0; j < symbols.length; j++) {
12328
+ const symbol = symbols[j];
12329
+ if (propertyIsEnumerable.call(source, symbol)) {
12330
+ assignValue(source[symbol], symbol);
12331
+ }
12332
+ }
12246
12333
  }
12247
12334
  return result;
12248
12335
  }
@@ -12364,7 +12451,7 @@ var toCamelCase = (str) => {
12364
12451
  return p1.toUpperCase() + p2;
12365
12452
  });
12366
12453
  };
12367
- var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
12454
+ var { propertyIsEnumerable } = Object.prototype;
12368
12455
  var isRegExp = kindOfTest("RegExp");
12369
12456
  var reduceDescriptors = (obj, reducer) => {
12370
12457
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -12426,11 +12513,20 @@ var toJSONObject = (obj) => {
12426
12513
  }
12427
12514
  if (!("toJSON" in source)) {
12428
12515
  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
- });
12516
+ let target;
12517
+ if (isSet(source)) {
12518
+ target = [];
12519
+ for (const value of source) {
12520
+ const reducedValue = visit(value);
12521
+ !isUndefined(reducedValue) && target.push(reducedValue);
12522
+ }
12523
+ } else {
12524
+ target = isArray(source) ? [] : {};
12525
+ forEach(source, (value, key) => {
12526
+ const reducedValue = visit(value);
12527
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
12528
+ });
12529
+ }
12434
12530
  visited.delete(source);
12435
12531
  return target;
12436
12532
  }
@@ -12463,6 +12559,7 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
12463
12559
  })(typeof setImmediate === "function", isFunction(_global.postMessage));
12464
12560
  var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
12465
12561
  var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
12562
+ var isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
12466
12563
  var utils_default = {
12467
12564
  isArray,
12468
12565
  isArrayBuffer,
@@ -12508,6 +12605,9 @@ var utils_default = {
12508
12605
  hasOwnProperty,
12509
12606
  hasOwnProp: hasOwnProperty,
12510
12607
  // an alias to avoid ESLint no-prototype-builtins detection
12608
+ hasOwnInPrototypeChain,
12609
+ getSafeProp,
12610
+ toSafeFlatObject,
12511
12611
  reduceDescriptors,
12512
12612
  freezeMethods,
12513
12613
  toObjectSet,
@@ -12523,10 +12623,11 @@ var utils_default = {
12523
12623
  isThenable,
12524
12624
  setImmediate: _setImmediate,
12525
12625
  asap,
12526
- isIterable
12626
+ isIterable,
12627
+ isSafeIterable
12527
12628
  };
12528
12629
 
12529
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js
12630
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
12530
12631
  var ignoreDuplicateOf = utils_default.toObjectSet([
12531
12632
  "age",
12532
12633
  "authorization",
@@ -12555,23 +12656,24 @@ var parseHeaders_default = (rawHeaders) => {
12555
12656
  i = line.indexOf(":");
12556
12657
  key = line.substring(0, i).trim().toLowerCase();
12557
12658
  val = line.substring(i + 1).trim();
12558
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
12659
+ const hasKey = utils_default.hasOwnProp(parsed, key);
12660
+ if (!key || hasKey && utils_default.hasOwnProp(ignoreDuplicateOf, key)) {
12559
12661
  return;
12560
12662
  }
12561
12663
  if (key === "set-cookie") {
12562
- if (parsed[key]) {
12664
+ if (hasKey) {
12563
12665
  parsed[key].push(val);
12564
12666
  } else {
12565
12667
  parsed[key] = [val];
12566
12668
  }
12567
12669
  } else {
12568
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
12670
+ parsed[key] = hasKey ? parsed[key] + ", " + val : val;
12569
12671
  }
12570
12672
  });
12571
12673
  return parsed;
12572
12674
  };
12573
12675
 
12574
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12676
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12575
12677
  function trimSPorHTAB(str) {
12576
12678
  let start = 0;
12577
12679
  let end = str.length;
@@ -12609,7 +12711,7 @@ function toByteStringHeaderObject(headers) {
12609
12711
  return byteStringHeaders;
12610
12712
  }
12611
12713
 
12612
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/AxiosHeaders.js
12714
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
12613
12715
  var $internals = /* @__PURE__ */ Symbol("internals");
12614
12716
  function normalizeHeader(header) {
12615
12717
  return header && String(header).trim().toLowerCase();
@@ -12629,6 +12731,90 @@ function parseTokens(str) {
12629
12731
  }
12630
12732
  return tokens;
12631
12733
  }
12734
+ var parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
12735
+ function trimOWS(value) {
12736
+ let start = 0;
12737
+ let end = value.length;
12738
+ while (start < end) {
12739
+ const code = value.charCodeAt(start);
12740
+ if (code !== 9 && code !== 32) {
12741
+ break;
12742
+ }
12743
+ start += 1;
12744
+ }
12745
+ while (end > start) {
12746
+ const code = value.charCodeAt(end - 1);
12747
+ if (code !== 9 && code !== 32) {
12748
+ break;
12749
+ }
12750
+ end -= 1;
12751
+ }
12752
+ return start === 0 && end === value.length ? value : value.slice(start, end);
12753
+ }
12754
+ function decodeQuotedString(value) {
12755
+ const last = value.length - 1;
12756
+ if (last < 1 || value.charCodeAt(0) !== 34 || value.charCodeAt(last) !== 34) {
12757
+ return value;
12758
+ }
12759
+ let decoded = "";
12760
+ for (let i = 1; i < last; i++) {
12761
+ const code = value.charCodeAt(i);
12762
+ if (code === 34) {
12763
+ return value;
12764
+ }
12765
+ if (code === 92) {
12766
+ i += 1;
12767
+ if (i >= last) {
12768
+ return value;
12769
+ }
12770
+ }
12771
+ decoded += value[i];
12772
+ }
12773
+ return decoded;
12774
+ }
12775
+ function parseParameters(value) {
12776
+ const parameters = /* @__PURE__ */ Object.create(null);
12777
+ const str = String(value);
12778
+ let start = 0;
12779
+ let quoted = false;
12780
+ let escaped = false;
12781
+ function parseParameter(end) {
12782
+ const part = trimOWS(str.slice(start, end));
12783
+ const equals = part.indexOf("=");
12784
+ if (equals < 1) {
12785
+ return;
12786
+ }
12787
+ const name = trimOWS(part.slice(0, equals));
12788
+ if (!parameterNameRE.test(name)) {
12789
+ return;
12790
+ }
12791
+ const normalizedName = name.toLowerCase();
12792
+ if (normalizedName === "__proto__" || normalizedName === "constructor" || normalizedName === "prototype") {
12793
+ return;
12794
+ }
12795
+ const parameterValue = trimOWS(part.slice(equals + 1));
12796
+ parameters[normalizedName] = decodeQuotedString(parameterValue);
12797
+ }
12798
+ for (let i = 0; i < str.length; i++) {
12799
+ const code = str.charCodeAt(i);
12800
+ if (quoted) {
12801
+ if (escaped) {
12802
+ escaped = false;
12803
+ } else if (code === 92) {
12804
+ escaped = true;
12805
+ } else if (code === 34) {
12806
+ quoted = false;
12807
+ }
12808
+ } else if (code === 34) {
12809
+ quoted = true;
12810
+ } else if (code === 44 || code === 59) {
12811
+ parseParameter(i);
12812
+ start = i + 1;
12813
+ }
12814
+ }
12815
+ parseParameter(str.length);
12816
+ return parameters;
12817
+ }
12632
12818
  var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12633
12819
  function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12634
12820
  if (utils_default.isFunction(filter2)) {
@@ -12673,7 +12859,7 @@ var AxiosHeaders = class {
12673
12859
  function setHeader(_value, _header, _rewrite) {
12674
12860
  const lHeader = normalizeHeader(_header);
12675
12861
  if (!lHeader) {
12676
- throw new Error("header name must be a non-empty string");
12862
+ return;
12677
12863
  }
12678
12864
  const key = utils_default.findKey(self2, lHeader);
12679
12865
  if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
@@ -12685,13 +12871,19 @@ var AxiosHeaders = class {
12685
12871
  setHeaders(header, valueOrRewrite);
12686
12872
  } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12687
12873
  setHeaders(parseHeaders_default(header), valueOrRewrite);
12688
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
12689
- let obj = {}, dest, key;
12874
+ } else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
12875
+ let obj = /* @__PURE__ */ Object.create(null), dest, key;
12690
12876
  for (const entry of header) {
12691
12877
  if (!utils_default.isArray(entry)) {
12692
- throw TypeError("Object iterator must return a key-value pair");
12878
+ throw new TypeError("Object iterator must return a key-value pair");
12879
+ }
12880
+ key = entry[0];
12881
+ if (utils_default.hasOwnProp(obj, key)) {
12882
+ dest = obj[key];
12883
+ obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
12884
+ } else {
12885
+ obj[key] = entry[1];
12693
12886
  }
12694
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
12695
12887
  }
12696
12888
  setHeaders(obj, valueOrRewrite);
12697
12889
  } else {
@@ -12798,7 +12990,8 @@ var AxiosHeaders = class {
12798
12990
  return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
12799
12991
  }
12800
12992
  getSetCookie() {
12801
- return this.get("set-cookie") || [];
12993
+ const value = this.get("set-cookie");
12994
+ return utils_default.isArray(value) ? value : value == null || value === false ? [] : [value];
12802
12995
  }
12803
12996
  get [Symbol.toStringTag]() {
12804
12997
  return "AxiosHeaders";
@@ -12806,6 +12999,9 @@ var AxiosHeaders = class {
12806
12999
  static from(thing) {
12807
13000
  return thing instanceof this ? thing : new this(thing);
12808
13001
  }
13002
+ static parseParameters(value) {
13003
+ return parseParameters(value);
13004
+ }
12809
13005
  static concat(first, ...targets) {
12810
13006
  const computed = new this(first);
12811
13007
  targets.forEach((target) => computed.set(target));
@@ -12848,7 +13044,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12848
13044
  utils_default.freezeMethods(AxiosHeaders);
12849
13045
  var AxiosHeaders_default = AxiosHeaders;
12850
13046
 
12851
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/AxiosError.js
13047
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
12852
13048
  var REDACTED = "[REDACTED ****]";
12853
13049
  function hasOwnOrPrototypeToJSON(source) {
12854
13050
  if (utils_default.hasOwnProp(source, "toJSON")) {
@@ -12901,10 +13097,37 @@ function redactConfig(config, redactKeys) {
12901
13097
  };
12902
13098
  return visit(config);
12903
13099
  }
13100
+ function stringifySafely(value) {
13101
+ try {
13102
+ return String(value);
13103
+ } catch (err) {
13104
+ return "";
13105
+ }
13106
+ }
13107
+ function aggregateErrorMessage(error) {
13108
+ const message = error.errors.map((entry) => {
13109
+ try {
13110
+ return entry && entry.message ? stringifySafely(entry.message) : stringifySafely(entry);
13111
+ } catch (err) {
13112
+ return "";
13113
+ }
13114
+ }).filter(Boolean).join("; ");
13115
+ return message || error.name || "AggregateError";
13116
+ }
12904
13117
  var AxiosError = class _AxiosError extends Error {
12905
13118
  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;
13119
+ let message = error.message;
13120
+ if (!message && utils_default.isArray(error.errors) && error.errors.length) {
13121
+ message = aggregateErrorMessage(error);
13122
+ }
13123
+ const axiosError = new _AxiosError(message, code || error.code, config, request, response);
13124
+ Object.defineProperty(axiosError, "cause", {
13125
+ __proto__: null,
13126
+ value: error,
13127
+ writable: true,
13128
+ enumerable: false,
13129
+ configurable: true
13130
+ });
12908
13131
  axiosError.name = error.name;
12909
13132
  if (error.status != null && axiosError.status == null) {
12910
13133
  axiosError.status = error.status;
@@ -12983,11 +13206,22 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
12983
13206
  AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
12984
13207
  var AxiosError_default = AxiosError;
12985
13208
 
12986
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/classes/FormData.js
13209
+ // ../../node_modules/.pnpm/axios@1.20.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
13210
  var import_form_data = __toESM(require_form_data(), 1);
12988
13211
  var FormData_default = import_form_data.default;
12989
13212
 
12990
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/toFormData.js
13213
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/Buffer.js
13214
+ var Buffer_default = {
13215
+ isBufferAvailable() {
13216
+ return typeof Buffer !== "undefined";
13217
+ },
13218
+ from(value) {
13219
+ return Buffer.from(value);
13220
+ }
13221
+ };
13222
+
13223
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
13224
+ var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
12991
13225
  function isVisitable(thing) {
12992
13226
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
12993
13227
  }
@@ -13012,25 +13246,18 @@ function toFormData(obj, formData, options) {
13012
13246
  throw new TypeError("target must be an object");
13013
13247
  }
13014
13248
  formData = formData || new (FormData_default || FormData)();
13015
- options = utils_default.toFlatObject(
13016
- options,
13017
- {
13018
- metaTokens: true,
13019
- dots: false,
13020
- indexes: false
13021
- },
13022
- false,
13023
- function defined(option, source) {
13024
- return !utils_default.isUndefined(source[option]);
13025
- }
13026
- );
13027
- const metaTokens = options.metaTokens;
13028
- const visitor = options.visitor || defaultVisitor;
13029
- const dots = options.dots;
13030
- const indexes = options.indexes;
13031
- const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
13032
- const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
13249
+ const option = (name, fallback) => {
13250
+ const value = utils_default.getSafeProp(options, name);
13251
+ return utils_default.isUndefined(value) ? fallback : value;
13252
+ };
13253
+ const metaTokens = option("metaTokens", true);
13254
+ const visitor = option("visitor") || defaultVisitor;
13255
+ const dots = option("dots", false);
13256
+ const indexes = option("indexes", false);
13257
+ const _Blob = option("Blob") || typeof Blob !== "undefined" && Blob;
13258
+ const maxDepth = option("maxDepth", DEFAULT_FORM_DATA_MAX_DEPTH);
13033
13259
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
13260
+ const stack = [];
13034
13261
  if (!utils_default.isFunction(visitor)) {
13035
13262
  throw new TypeError("visitor must be a function");
13036
13263
  }
@@ -13046,10 +13273,44 @@ function toFormData(obj, formData, options) {
13046
13273
  throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
13047
13274
  }
13048
13275
  if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
13049
- return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
13276
+ if (useBlob && typeof _Blob === "function") {
13277
+ return new _Blob([value]);
13278
+ }
13279
+ if (Buffer_default && Buffer_default.isBufferAvailable()) {
13280
+ return Buffer_default.from(value);
13281
+ }
13282
+ throw new AxiosError_default(
13283
+ "Blob is not supported. Use a Buffer instead.",
13284
+ AxiosError_default.ERR_NOT_SUPPORT
13285
+ );
13050
13286
  }
13051
13287
  return value;
13052
13288
  }
13289
+ function throwIfMaxDepthExceeded(depth) {
13290
+ if (depth > maxDepth) {
13291
+ throw new AxiosError_default(
13292
+ "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
13293
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13294
+ );
13295
+ }
13296
+ }
13297
+ function stringifyWithDepthLimit(value, depth) {
13298
+ if (maxDepth === Infinity) {
13299
+ return JSON.stringify(value);
13300
+ }
13301
+ const ancestors = [];
13302
+ return JSON.stringify(value, function limitDepth(_key, currentValue) {
13303
+ if (!utils_default.isObject(currentValue)) {
13304
+ return currentValue;
13305
+ }
13306
+ while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
13307
+ ancestors.pop();
13308
+ }
13309
+ ancestors.push(currentValue);
13310
+ throwIfMaxDepthExceeded(depth + ancestors.length - 1);
13311
+ return currentValue;
13312
+ });
13313
+ }
13053
13314
  function defaultVisitor(value, key, path) {
13054
13315
  let arr = value;
13055
13316
  if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
@@ -13059,7 +13320,7 @@ function toFormData(obj, formData, options) {
13059
13320
  if (value && !path && typeof value === "object") {
13060
13321
  if (utils_default.endsWith(key, "{}")) {
13061
13322
  key = metaTokens ? key : key.slice(0, -2);
13062
- value = JSON.stringify(value);
13323
+ value = stringifyWithDepthLimit(value, 1);
13063
13324
  } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
13064
13325
  key = removeBrackets(key);
13065
13326
  arr.forEach(function each(el, index) {
@@ -13078,7 +13339,6 @@ function toFormData(obj, formData, options) {
13078
13339
  formData.append(renderKey(path, key, dots), convertValue(value));
13079
13340
  return false;
13080
13341
  }
13081
- const stack = [];
13082
13342
  const exposedHelpers = Object.assign(predicates, {
13083
13343
  defaultVisitor,
13084
13344
  convertValue,
@@ -13086,14 +13346,9 @@ function toFormData(obj, formData, options) {
13086
13346
  });
13087
13347
  function build(value, path, depth = 0) {
13088
13348
  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
- }
13349
+ throwIfMaxDepthExceeded(depth);
13095
13350
  if (stack.indexOf(value) !== -1) {
13096
- throw Error("Circular reference detected in " + path.join("."));
13351
+ throw new Error("Circular reference detected in " + path.join("."));
13097
13352
  }
13098
13353
  stack.push(value);
13099
13354
  utils_default.forEach(value, function each(el, key) {
@@ -13112,7 +13367,7 @@ function toFormData(obj, formData, options) {
13112
13367
  }
13113
13368
  var toFormData_default = toFormData;
13114
13369
 
13115
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13370
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13116
13371
  function encode(str) {
13117
13372
  const charMap = {
13118
13373
  "!": "%21",
@@ -13135,16 +13390,14 @@ prototype.append = function append(name, value) {
13135
13390
  this._pairs.push([name, value]);
13136
13391
  };
13137
13392
  prototype.toString = function toString2(encoder) {
13138
- const _encode = encoder ? function(value) {
13139
- return encoder.call(this, value, encode);
13140
- } : encode;
13393
+ const _encode = encoder ? (value) => encoder.call(this, value, encode) : encode;
13141
13394
  return this._pairs.map(function each(pair) {
13142
13395
  return _encode(pair[0]) + "=" + _encode(pair[1]);
13143
13396
  }, "").join("&");
13144
13397
  };
13145
13398
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
13146
13399
 
13147
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js
13400
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
13148
13401
  function encode2(val) {
13149
13402
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
13150
13403
  }
@@ -13152,11 +13405,12 @@ function buildURL(url2, params, options) {
13152
13405
  if (!params) {
13153
13406
  return url2;
13154
13407
  }
13155
- const _encode = options && options.encode || encode2;
13408
+ url2 = url2 || "";
13156
13409
  const _options = utils_default.isFunction(options) ? {
13157
13410
  serialize: options
13158
13411
  } : options;
13159
- const serializeFn = _options && _options.serialize;
13412
+ const _encode = utils_default.getSafeProp(_options, "encode") || encode2;
13413
+ const serializeFn = utils_default.getSafeProp(_options, "serialize");
13160
13414
  let serializedParams;
13161
13415
  if (serializeFn) {
13162
13416
  serializedParams = serializeFn(params, _options);
@@ -13173,10 +13427,48 @@ function buildURL(url2, params, options) {
13173
13427
  return url2;
13174
13428
  }
13175
13429
 
13176
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js
13430
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
13431
+ var $internals2 = /* @__PURE__ */ Symbol("internals");
13432
+ function countHandlers(handlers) {
13433
+ return handlers ? handlers.length : 0;
13434
+ }
13435
+ function trimHandlers(handlers) {
13436
+ if (!handlers) {
13437
+ return;
13438
+ }
13439
+ while (handlers.length && handlers[handlers.length - 1] === null) {
13440
+ handlers.pop();
13441
+ }
13442
+ }
13443
+ function syncHandlerEntries(manager, internals) {
13444
+ const handlers = manager.handlers;
13445
+ const length = countHandlers(handlers);
13446
+ if (handlers !== internals.handlersRef) {
13447
+ internals.handlersRef = handlers;
13448
+ internals.handlerEntries.clear();
13449
+ } else if (length !== internals.handlersLength) {
13450
+ if (!length) {
13451
+ internals.handlerEntries.clear();
13452
+ } else {
13453
+ internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
13454
+ if (handlers[entry.index] !== entry.handler) {
13455
+ internals.handlerEntries.delete(id);
13456
+ }
13457
+ });
13458
+ }
13459
+ }
13460
+ internals.handlersLength = length;
13461
+ }
13177
13462
  var InterceptorManager = class {
13178
13463
  constructor() {
13179
13464
  this.handlers = [];
13465
+ this[$internals2] = {
13466
+ handlersRef: this.handlers,
13467
+ handlersLength: this.handlers.length,
13468
+ handlerEntries: /* @__PURE__ */ new Map(),
13469
+ iterationDepth: 0,
13470
+ nextId: 0
13471
+ };
13180
13472
  }
13181
13473
  /**
13182
13474
  * Add a new interceptor to the stack
@@ -13188,13 +13480,25 @@ var InterceptorManager = class {
13188
13480
  * @return {Number} An ID used to remove interceptor later
13189
13481
  */
13190
13482
  use(fulfilled, rejected, options) {
13191
- this.handlers.push({
13483
+ const handler = {
13192
13484
  fulfilled,
13193
13485
  rejected,
13194
13486
  synchronous: options ? options.synchronous : false,
13195
13487
  runWhen: options ? options.runWhen : null
13488
+ };
13489
+ const internals = this[$internals2];
13490
+ if (this.handlers == null) {
13491
+ this.handlers = [];
13492
+ }
13493
+ syncHandlerEntries(this, internals);
13494
+ const id = internals.nextId++;
13495
+ this.handlers.push(handler);
13496
+ internals.handlerEntries.set(id, {
13497
+ handler,
13498
+ index: this.handlers.length - 1
13196
13499
  });
13197
- return this.handlers.length - 1;
13500
+ internals.handlersLength = this.handlers.length;
13501
+ return id;
13198
13502
  }
13199
13503
  /**
13200
13504
  * Remove an interceptor from the stack
@@ -13204,8 +13508,19 @@ var InterceptorManager = class {
13204
13508
  * @returns {void}
13205
13509
  */
13206
13510
  eject(id) {
13207
- if (this.handlers[id]) {
13208
- this.handlers[id] = null;
13511
+ const internals = this[$internals2];
13512
+ syncHandlerEntries(this, internals);
13513
+ const entry = internals.handlerEntries.get(id);
13514
+ if (entry) {
13515
+ internals.handlerEntries.delete(id);
13516
+ if (this.handlers[entry.index] !== entry.handler) {
13517
+ return;
13518
+ }
13519
+ this.handlers[entry.index] = null;
13520
+ if (!internals.iterationDepth) {
13521
+ trimHandlers(this.handlers);
13522
+ internals.handlersLength = this.handlers.length;
13523
+ }
13209
13524
  }
13210
13525
  }
13211
13526
  /**
@@ -13216,6 +13531,7 @@ var InterceptorManager = class {
13216
13531
  clear() {
13217
13532
  if (this.handlers) {
13218
13533
  this.handlers = [];
13534
+ syncHandlerEntries(this, this[$internals2]);
13219
13535
  }
13220
13536
  }
13221
13537
  /**
@@ -13229,31 +13545,44 @@ var InterceptorManager = class {
13229
13545
  * @returns {void}
13230
13546
  */
13231
13547
  forEach(fn) {
13232
- utils_default.forEach(this.handlers, function forEachHandler(h) {
13233
- if (h !== null) {
13234
- fn(h);
13548
+ const internals = this[$internals2];
13549
+ syncHandlerEntries(this, internals);
13550
+ internals.iterationDepth++;
13551
+ try {
13552
+ utils_default.forEach(this.handlers, function forEachHandler(h) {
13553
+ if (h !== null) {
13554
+ fn(h);
13555
+ }
13556
+ });
13557
+ } finally {
13558
+ if (!--internals.iterationDepth) {
13559
+ syncHandlerEntries(this, internals);
13560
+ trimHandlers(this.handlers);
13561
+ internals.handlersLength = countHandlers(this.handlers);
13235
13562
  }
13236
- });
13563
+ }
13237
13564
  }
13238
13565
  };
13239
13566
  var InterceptorManager_default = InterceptorManager;
13240
13567
 
13241
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/defaults/transitional.js
13568
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
13242
13569
  var transitional_default = {
13243
13570
  silentJSONParsing: true,
13244
13571
  forcedJSONParsing: true,
13245
13572
  clarifyTimeoutError: false,
13246
- legacyInterceptorReqResOrdering: true
13573
+ legacyInterceptorReqResOrdering: true,
13574
+ advertiseZstdAcceptEncoding: false,
13575
+ validateStatusUndefinedResolves: true
13247
13576
  };
13248
13577
 
13249
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
13578
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13250
13579
  import crypto from "crypto";
13251
13580
 
13252
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13581
+ // ../../node_modules/.pnpm/axios@1.20.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
13582
  import url from "url";
13254
13583
  var URLSearchParams_default = url.URLSearchParams;
13255
13584
 
13256
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
13585
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13257
13586
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
13258
13587
  var DIGIT = "0123456789";
13259
13588
  var ALPHABET = {
@@ -13283,7 +13612,7 @@ var node_default = {
13283
13612
  protocols: ["http", "https", "file", "data"]
13284
13613
  };
13285
13614
 
13286
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/common/utils.js
13615
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
13287
13616
  var utils_exports = {};
13288
13617
  __export(utils_exports, {
13289
13618
  hasBrowserEnv: () => hasBrowserEnv,
@@ -13301,13 +13630,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
13301
13630
  })();
13302
13631
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
13303
13632
 
13304
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/index.js
13633
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
13305
13634
  var platform_default = {
13306
13635
  ...utils_exports,
13307
13636
  ...node_default
13308
13637
  };
13309
13638
 
13310
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/toURLEncodedForm.js
13639
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
13311
13640
  function toURLEncodedForm(data, options) {
13312
13641
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
13313
13642
  visitor: function(value, key, path, helpers) {
@@ -13321,11 +13650,25 @@ function toURLEncodedForm(data, options) {
13321
13650
  });
13322
13651
  }
13323
13652
 
13324
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToJSON.js
13653
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
13654
+ var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
13655
+ function throwIfDepthExceeded(index) {
13656
+ if (index > MAX_DEPTH) {
13657
+ throw new AxiosError_default(
13658
+ "FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH,
13659
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13660
+ );
13661
+ }
13662
+ }
13325
13663
  function parsePropPath(name) {
13326
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
13327
- return match[0] === "[]" ? "" : match[1] || match[0];
13328
- });
13664
+ const path = [];
13665
+ const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
13666
+ let match;
13667
+ while ((match = pattern.exec(name)) !== null) {
13668
+ throwIfDepthExceeded(path.length);
13669
+ path.push(match[0] === "[]" ? "" : match[1] || match[0]);
13670
+ }
13671
+ return path;
13329
13672
  }
13330
13673
  function arrayToObject(arr) {
13331
13674
  const obj = {};
@@ -13341,6 +13684,7 @@ function arrayToObject(arr) {
13341
13684
  }
13342
13685
  function formDataToJSON(formData) {
13343
13686
  function buildPath(path, value, target, index) {
13687
+ throwIfDepthExceeded(index);
13344
13688
  let name = path[index++];
13345
13689
  if (name === "__proto__") return true;
13346
13690
  const isNumericKey = Number.isFinite(+name);
@@ -13374,9 +13718,25 @@ function formDataToJSON(formData) {
13374
13718
  }
13375
13719
  var formDataToJSON_default = formDataToJSON;
13376
13720
 
13377
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/defaults/index.js
13721
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/methodList.js
13722
+ var methodList = Object.freeze([
13723
+ "get",
13724
+ "delete",
13725
+ "head",
13726
+ "options",
13727
+ "post",
13728
+ "put",
13729
+ "patch",
13730
+ "purge",
13731
+ "link",
13732
+ "unlink",
13733
+ "query"
13734
+ ]);
13735
+ var methodList_default = methodList;
13736
+
13737
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
13378
13738
  var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
13379
- function stringifySafely(rawValue, parser, encoder) {
13739
+ function stringifySafely2(rawValue, parser, encoder) {
13380
13740
  if (utils_default.isString(rawValue)) {
13381
13741
  try {
13382
13742
  (parser || JSON.parse)(rawValue);
@@ -13432,7 +13792,7 @@ var defaults = {
13432
13792
  }
13433
13793
  if (isObjectPayload || hasJSONContentType) {
13434
13794
  headers.setContentType("application/json", false);
13435
- return stringifySafely(data);
13795
+ return stringifySafely2(data);
13436
13796
  }
13437
13797
  return data;
13438
13798
  }
@@ -13486,12 +13846,12 @@ var defaults = {
13486
13846
  }
13487
13847
  }
13488
13848
  };
13489
- utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
13849
+ utils_default.forEach(methodList_default, (method) => {
13490
13850
  defaults.headers[method] = {};
13491
13851
  });
13492
13852
  var defaults_default = defaults;
13493
13853
 
13494
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/transformData.js
13854
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
13495
13855
  function transformData(fns, response) {
13496
13856
  const config = this || defaults_default;
13497
13857
  const context = response || config;
@@ -13504,12 +13864,12 @@ function transformData(fns, response) {
13504
13864
  return data;
13505
13865
  }
13506
13866
 
13507
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js
13867
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
13508
13868
  function isCancel(value) {
13509
13869
  return !!(value && value.__CANCEL__);
13510
13870
  }
13511
13871
 
13512
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/CanceledError.js
13872
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
13513
13873
  var CanceledError = class extends AxiosError_default {
13514
13874
  /**
13515
13875
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -13528,7 +13888,7 @@ var CanceledError = class extends AxiosError_default {
13528
13888
  };
13529
13889
  var CanceledError_default = CanceledError;
13530
13890
 
13531
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/settle.js
13891
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
13532
13892
  function settle(resolve, reject, response) {
13533
13893
  const validateStatus2 = response.config.validateStatus;
13534
13894
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -13544,7 +13904,7 @@ function settle(resolve, reject, response) {
13544
13904
  }
13545
13905
  }
13546
13906
 
13547
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js
13907
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
13548
13908
  function isAbsoluteURL(url2) {
13549
13909
  if (typeof url2 !== "string") {
13550
13910
  return false;
@@ -13552,15 +13912,71 @@ function isAbsoluteURL(url2) {
13552
13912
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
13553
13913
  }
13554
13914
 
13555
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js
13915
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
13556
13916
  function combineURLs(baseURL, relativeURL) {
13557
- return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
13917
+ if (!relativeURL) {
13918
+ return baseURL;
13919
+ }
13920
+ let end = baseURL.length;
13921
+ while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
13922
+ end--;
13923
+ }
13924
+ return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
13925
+ }
13926
+
13927
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
13928
+ var urlParserControlCharacters = /[\t\n\r]/g;
13929
+ function normalizeURLForProtocolCheck(url2) {
13930
+ if (typeof url2 !== "string") {
13931
+ return url2;
13932
+ }
13933
+ let start = 0;
13934
+ while (start < url2.length && url2.charCodeAt(start) <= 32) {
13935
+ start++;
13936
+ }
13937
+ return url2.slice(start).replace(urlParserControlCharacters, "");
13558
13938
  }
13559
13939
 
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) {
13940
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
13941
+ var malformedHttpProtocol = /^https?:(?!\/\/)/i;
13942
+ function redactFragment(fragment) {
13943
+ if (!fragment) {
13944
+ return fragment;
13945
+ }
13946
+ return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
13947
+ return `${separator}${parameterName}${REDACTED}`;
13948
+ });
13949
+ }
13950
+ function redactSensitiveURLParts(url2) {
13951
+ const redactedURL = url2.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
13952
+ const fragmentIndex = redactedURL.indexOf("#");
13953
+ const urlWithoutFragment = fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
13954
+ const redactedURLWithoutFragment = urlWithoutFragment.replace(
13955
+ /([?&][^=&#]*=)[^&#]*/g,
13956
+ `$1${REDACTED}`
13957
+ );
13958
+ if (fragmentIndex === -1) {
13959
+ return redactedURLWithoutFragment;
13960
+ }
13961
+ return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
13962
+ }
13963
+ function assertValidHttpProtocolURL(url2, config) {
13964
+ if (typeof url2 === "string") {
13965
+ const normalizedURL = normalizeURLForProtocolCheck(url2);
13966
+ if (malformedHttpProtocol.test(normalizedURL)) {
13967
+ throw new AxiosError_default(
13968
+ `Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`,
13969
+ AxiosError_default.ERR_INVALID_URL,
13970
+ config
13971
+ );
13972
+ }
13973
+ }
13974
+ }
13975
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
13976
+ assertValidHttpProtocolURL(requestedURL, config);
13562
13977
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
13563
13978
  if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
13979
+ assertValidHttpProtocolURL(baseURL, config);
13564
13980
  return combineURLs(baseURL, requestedURL);
13565
13981
  }
13566
13982
  return requestedURL;
@@ -13633,27 +14049,27 @@ function getEnv(key) {
13633
14049
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13634
14050
  }
13635
14051
 
13636
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
14052
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13637
14053
  var import_https_proxy_agent = __toESM(require_dist(), 1);
13638
14054
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
13639
14055
  import http from "http";
13640
14056
  import https from "https";
13641
- import http2 from "http2";
13642
- import util2 from "util";
14057
+ import http22 from "http2";
14058
+ import util3 from "util";
13643
14059
  import { resolve as resolvePath } from "path";
13644
14060
  import zlib from "zlib";
13645
14061
 
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";
14062
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
14063
+ var VERSION = "1.20.0";
13648
14064
 
13649
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/parseProtocol.js
14065
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
13650
14066
  function parseProtocol(url2) {
13651
14067
  const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13652
14068
  return match && match[1] || "";
13653
14069
  }
13654
14070
 
13655
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/fromDataURI.js
13656
- var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
14071
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
14072
+ var DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
13657
14073
  function fromDataURI(uri, asBlob, options) {
13658
14074
  const _Blob = options && options.Blob || platform_default.classes.Blob;
13659
14075
  const protocol = parseProtocol(uri);
@@ -13670,13 +14086,13 @@ function fromDataURI(uri, asBlob, options) {
13670
14086
  const params = match[2];
13671
14087
  const encoding = match[3] ? "base64" : "utf8";
13672
14088
  const body = match[4];
13673
- let mime;
14089
+ let mime = "";
13674
14090
  if (type) {
13675
14091
  mime = params ? type + params : type;
13676
14092
  } else if (params) {
13677
14093
  mime = "text/plain" + params;
13678
14094
  }
13679
- const buffer = Buffer.from(decodeURIComponent(body), encoding);
14095
+ const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
13680
14096
  if (asBlob) {
13681
14097
  if (!_Blob) {
13682
14098
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -13688,10 +14104,24 @@ function fromDataURI(uri, asBlob, options) {
13688
14104
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
13689
14105
  }
13690
14106
 
13691
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
14107
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13692
14108
  import stream3 from "stream";
13693
14109
 
13694
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/AxiosTransformStream.js
14110
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js
14111
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
14112
+ function setFormDataHeaders(headers, formHeaders, policy) {
14113
+ if (policy !== "content-only") {
14114
+ headers.set(formHeaders);
14115
+ return;
14116
+ }
14117
+ Object.entries(formHeaders || {}).forEach(([key, val]) => {
14118
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
14119
+ headers.set(key, val);
14120
+ }
14121
+ });
14122
+ }
14123
+
14124
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
13695
14125
  import stream from "stream";
13696
14126
  var kInternals = /* @__PURE__ */ Symbol("internals");
13697
14127
  var AxiosTransformStream = class extends stream.Transform {
@@ -13814,14 +14244,14 @@ var AxiosTransformStream = class extends stream.Transform {
13814
14244
  };
13815
14245
  var AxiosTransformStream_default = AxiosTransformStream;
13816
14246
 
13817
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
14247
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13818
14248
  import { EventEmitter } from "events";
13819
14249
 
13820
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
14250
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
13821
14251
  import util from "util";
13822
14252
  import { Readable } from "stream";
13823
14253
 
13824
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/readBlob.js
14254
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
13825
14255
  var { asyncIterator } = Symbol;
13826
14256
  var readBlob = async function* (blob) {
13827
14257
  if (blob.stream) {
@@ -13836,7 +14266,7 @@ var readBlob = async function* (blob) {
13836
14266
  };
13837
14267
  var readBlob_default = readBlob;
13838
14268
 
13839
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
14269
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
13840
14270
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13841
14271
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
13842
14272
  var CRLF = "\r\n";
@@ -13887,10 +14317,10 @@ var formDataToStream = (form, headersHandler, options) => {
13887
14317
  boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
13888
14318
  } = options || {};
13889
14319
  if (!utils_default.isFormData(form)) {
13890
- throw TypeError("FormData instance required");
14320
+ throw new TypeError("FormData instance required");
13891
14321
  }
13892
14322
  if (boundary.length < 1 || boundary.length > 70) {
13893
- throw Error("boundary must be 1-70 characters long");
14323
+ throw new Error("boundary must be 1-70 characters long");
13894
14324
  }
13895
14325
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
13896
14326
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -13921,7 +14351,7 @@ var formDataToStream = (form, headersHandler, options) => {
13921
14351
  };
13922
14352
  var formDataToStream_default = formDataToStream;
13923
14353
 
13924
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
14354
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
13925
14355
  import stream2 from "stream";
13926
14356
  var ZlibHeaderTransformStream = class extends stream2.Transform {
13927
14357
  __transform(chunk, encoding, callback) {
@@ -13943,51 +14373,212 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
13943
14373
  };
13944
14374
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
13945
14375
 
13946
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/callbackify.js
13947
- var callbackify = (fn, reducer) => {
13948
- return utils_default.isAsyncFn(fn) ? function(...args) {
13949
- const cb = args.pop();
13950
- fn.apply(this, args).then((value) => {
13951
- try {
13952
- reducer ? cb(null, ...reducer(value)) : cb(null, value);
13953
- } catch (err) {
13954
- cb(err);
13955
- }
13956
- }, cb);
13957
- } : fn;
13958
- };
13959
- var callbackify_default = callbackify;
13960
-
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"]);
13963
- var isIPv4Loopback = (host) => {
13964
- const parts = host.split(".");
13965
- if (parts.length !== 4) return false;
13966
- if (parts[0] !== "127") return false;
13967
- return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
13968
- };
13969
- var isIPv6Loopback = (host) => {
13970
- if (host === "::1") return true;
13971
- const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
13972
- if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
13973
- const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
13974
- if (v4MappedHex) {
13975
- const high = parseInt(v4MappedHex[1], 16);
13976
- return high >= 32512 && high <= 32767;
13977
- }
13978
- const groups = host.split(":");
13979
- if (groups.length === 8) {
13980
- for (let i = 0; i < 7; i++) {
13981
- if (!/^0+$/.test(groups[i])) return false;
13982
- }
13983
- return /^0*1$/.test(groups[7]);
14376
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
14377
+ import http2 from "http2";
14378
+ import util2 from "util";
14379
+ var Http2Sessions = class {
14380
+ constructor() {
14381
+ this.sessions = /* @__PURE__ */ Object.create(null);
13984
14382
  }
13985
- return false;
13986
- };
13987
- var isLoopback = (host) => {
13988
- if (!host) return false;
13989
- if (LOOPBACK_HOSTNAMES.has(host)) return true;
14383
+ getSession(authority, options) {
14384
+ options = Object.assign(
14385
+ /* @__PURE__ */ Object.create(null),
14386
+ {
14387
+ sessionTimeout: 1e3
14388
+ },
14389
+ options
14390
+ );
14391
+ let authoritySessions = this.sessions[authority];
14392
+ if (authoritySessions) {
14393
+ let len = authoritySessions.length;
14394
+ for (let i = 0; i < len; i++) {
14395
+ const [sessionHandle, sessionOptions] = authoritySessions[i];
14396
+ if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
14397
+ return sessionHandle;
14398
+ }
14399
+ }
14400
+ }
14401
+ const session = http2.connect(authority, options);
14402
+ let removed;
14403
+ let timer;
14404
+ const removeSession = () => {
14405
+ if (removed) {
14406
+ return;
14407
+ }
14408
+ removed = true;
14409
+ if (timer) {
14410
+ clearTimeout(timer);
14411
+ timer = null;
14412
+ }
14413
+ let entries = authoritySessions, len = entries.length, i = len;
14414
+ while (i--) {
14415
+ if (entries[i][0] === session) {
14416
+ if (len === 1) {
14417
+ delete this.sessions[authority];
14418
+ } else {
14419
+ entries.splice(i, 1);
14420
+ }
14421
+ if (!session.closed) {
14422
+ session.close();
14423
+ }
14424
+ return;
14425
+ }
14426
+ }
14427
+ };
14428
+ const originalRequestFn = session.request;
14429
+ const { sessionTimeout } = options;
14430
+ if (sessionTimeout != null) {
14431
+ let streamsCount = 0;
14432
+ session.request = function() {
14433
+ const stream4 = originalRequestFn.apply(this, arguments);
14434
+ streamsCount++;
14435
+ if (timer) {
14436
+ clearTimeout(timer);
14437
+ timer = null;
14438
+ }
14439
+ stream4.once("close", () => {
14440
+ if (!--streamsCount) {
14441
+ timer = setTimeout(() => {
14442
+ timer = null;
14443
+ removeSession();
14444
+ }, sessionTimeout);
14445
+ }
14446
+ });
14447
+ return stream4;
14448
+ };
14449
+ }
14450
+ session.once("close", removeSession);
14451
+ session.once("error", removeSession);
14452
+ let entry = [session, options];
14453
+ authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
14454
+ return session;
14455
+ }
14456
+ };
14457
+ var Http2Sessions_default = Http2Sessions;
14458
+
14459
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
14460
+ var callbackify = (fn, reducer) => {
14461
+ return utils_default.isAsyncFn(fn) ? function(...args) {
14462
+ const cb = args.pop();
14463
+ fn.apply(this, args).then((value) => {
14464
+ try {
14465
+ reducer ? cb(null, ...reducer(value)) : cb(null, value);
14466
+ } catch (err) {
14467
+ cb(err);
14468
+ }
14469
+ }, cb);
14470
+ } : fn;
14471
+ };
14472
+ var callbackify_default = callbackify;
14473
+
14474
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
14475
+ var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
14476
+ var trimTrailingDots = (value) => {
14477
+ let end = value.length;
14478
+ while (end && value.charCodeAt(end - 1) === 46) {
14479
+ end--;
14480
+ }
14481
+ return end === value.length ? value : value.slice(0, end);
14482
+ };
14483
+ var isIPv4Loopback = (host) => {
14484
+ const parts = host.split(".");
14485
+ if (parts.length !== 4) return false;
14486
+ if (parts[0] !== "127") return false;
14487
+ return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
14488
+ };
14489
+ var parseIPv4Octet = (text) => {
14490
+ if (/^0[xX][0-9a-fA-F]+$/.test(text)) {
14491
+ const n = parseInt(text.slice(2), 16);
14492
+ return Number.isFinite(n) ? n : null;
14493
+ }
14494
+ if (text.length > 1 && /^0[0-7]+$/.test(text)) {
14495
+ const n = parseInt(text, 8);
14496
+ return Number.isFinite(n) ? n : null;
14497
+ }
14498
+ if (text.length > 1 && /^0[0-9]+$/.test(text)) {
14499
+ return null;
14500
+ }
14501
+ if (/^[0-9]+$/.test(text)) {
14502
+ const n = parseInt(text, 10);
14503
+ return Number.isFinite(n) ? n : null;
14504
+ }
14505
+ return null;
14506
+ };
14507
+ var normalizeIPAddress = (host) => {
14508
+ if (typeof host !== "string" || !host || host.indexOf(":") !== -1) {
14509
+ return host;
14510
+ }
14511
+ let h = host;
14512
+ if (h.charAt(0) === "[" && h.charAt(h.length - 1) === "]") {
14513
+ h = h.slice(1, -1);
14514
+ }
14515
+ h = trimTrailingDots(h);
14516
+ if (!/^[0-9.xXa-fA-F]+$/.test(h)) return host;
14517
+ const parts = h.split(".");
14518
+ if (parts.some((p) => p === "")) return host;
14519
+ if (parts.length === 4) {
14520
+ const octets = parts.map(parseIPv4Octet);
14521
+ if (octets.some((n) => n === null || n < 0 || n > 255)) return host;
14522
+ return octets.join(".");
14523
+ }
14524
+ if (parts.length > 4) {
14525
+ return host;
14526
+ }
14527
+ if (parts.length === 1) return host;
14528
+ const literalOctets = parts.slice(0, -1);
14529
+ const tail = parts[parts.length - 1];
14530
+ const tailSlots = 4 - literalOctets.length;
14531
+ const tailValue = parseIPv4Octet(tail);
14532
+ if (tailValue === null) return host;
14533
+ const maxTail = (1 << 8 * tailSlots) - 1;
14534
+ if (tailValue < 0 || tailValue > maxTail) return host;
14535
+ const tailOctets = new Array(tailSlots).fill(0);
14536
+ for (let i = tailSlots - 1, v = tailValue; i >= 0; i--, v >>= 8) {
14537
+ tailOctets[i] = v & 255;
14538
+ }
14539
+ const literal = literalOctets.map(parseIPv4Octet);
14540
+ if (literal.some((n) => n === null || n < 0 || n > 255)) return host;
14541
+ return [...literal, ...tailOctets].join(".");
14542
+ };
14543
+ var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
14544
+ var isIPv6Unspecified = (host) => {
14545
+ if (host === "::") return true;
14546
+ const compressionIndex = host.indexOf("::");
14547
+ if (compressionIndex !== -1) {
14548
+ if (compressionIndex !== host.lastIndexOf("::")) return false;
14549
+ const left = host.slice(0, compressionIndex);
14550
+ const right = host.slice(compressionIndex + 2);
14551
+ const leftGroups = left ? left.split(":") : [];
14552
+ const rightGroups = right ? right.split(":") : [];
14553
+ const explicitGroups = leftGroups.length + rightGroups.length;
14554
+ return explicitGroups < 8 && leftGroups.every(isIPv6ZeroGroup) && rightGroups.every(isIPv6ZeroGroup);
14555
+ }
14556
+ const groups = host.split(":");
14557
+ return groups.length === 8 && groups.every(isIPv6ZeroGroup);
14558
+ };
14559
+ var isIPv6Loopback = (host) => {
14560
+ if (host === "::1") return true;
14561
+ const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
14562
+ if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
14563
+ const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
14564
+ if (v4MappedHex) {
14565
+ const high = parseInt(v4MappedHex[1], 16);
14566
+ return high >= 32512 && high <= 32767;
14567
+ }
14568
+ const groups = host.split(":");
14569
+ if (groups.length === 8) {
14570
+ for (let i = 0; i < 7; i++) {
14571
+ if (!/^0+$/.test(groups[i])) return false;
14572
+ }
14573
+ return /^0*1$/.test(groups[7]);
14574
+ }
14575
+ return false;
14576
+ };
14577
+ var isLoopback = (host) => {
14578
+ if (!host) return false;
14579
+ if (LOOPBACK_HOSTNAMES.has(host)) return true;
13990
14580
  if (isIPv4Loopback(host)) return true;
14581
+ if (isIPv6Unspecified(host)) return true;
13991
14582
  return isIPv6Loopback(host);
13992
14583
  };
13993
14584
  var DEFAULT_PORTS2 = {
@@ -14033,6 +14624,40 @@ var unmapIPv4MappedIPv6 = (host) => {
14033
14624
  }
14034
14625
  return host;
14035
14626
  };
14627
+ var IPV4_OCTET_RE = /^(?:0|[1-9]\d{0,2})$/;
14628
+ var ipv4ToBytes = (host) => {
14629
+ const parts = host.split(".");
14630
+ return parts.length === 4 && parts.every((part) => IPV4_OCTET_RE.test(part) && Number(part) <= 255) ? parts.map(Number) : null;
14631
+ };
14632
+ var IPV6_GROUP_RE = /^[0-9a-f]{1,4}$/i;
14633
+ var ipv6ToBytes = (host) => {
14634
+ const halves = host.split("::");
14635
+ if (halves.length > 2) {
14636
+ return null;
14637
+ }
14638
+ const groups = halves[0] ? halves[0].split(":") : [];
14639
+ if (halves.length === 2) {
14640
+ const rear = halves[1] ? halves[1].split(":") : [];
14641
+ const missing = 8 - groups.length - rear.length;
14642
+ if (missing < 1) {
14643
+ return null;
14644
+ }
14645
+ groups.push(...new Array(missing).fill("0"), ...rear);
14646
+ }
14647
+ if (groups.length !== 8 || groups.some((group) => !IPV6_GROUP_RE.test(group))) {
14648
+ return null;
14649
+ }
14650
+ return groups.flatMap((group) => {
14651
+ const value = Number.parseInt(group, 16);
14652
+ return [value >> 8 & 255, value & 255];
14653
+ });
14654
+ };
14655
+ var ipToBytes = (host) => {
14656
+ if (typeof host !== "string" || !host) {
14657
+ return null;
14658
+ }
14659
+ return host.indexOf(":") !== -1 ? ipv6ToBytes(host) : ipv4ToBytes(host);
14660
+ };
14036
14661
  var normalizeNoProxyHost = (hostname) => {
14037
14662
  if (!hostname) {
14038
14663
  return hostname;
@@ -14040,7 +14665,89 @@ var normalizeNoProxyHost = (hostname) => {
14040
14665
  if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
14041
14666
  hostname = hostname.slice(1, -1);
14042
14667
  }
14043
- return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
14668
+ const trimmed = trimTrailingDots(hostname);
14669
+ const ipv4 = normalizeIPAddress(trimmed);
14670
+ if (ipv4 !== trimmed) {
14671
+ return ipv4;
14672
+ }
14673
+ return unmapIPv4MappedIPv6(trimmed);
14674
+ };
14675
+ var normalizeCidrBase = (input) => {
14676
+ let base = input;
14677
+ const startsBracket = base.charAt(0) === "[";
14678
+ const endsBracket = base.charAt(base.length - 1) === "]";
14679
+ const hasBracket = base.includes("[") || base.includes("]");
14680
+ if (startsBracket || endsBracket) {
14681
+ if (!startsBracket || !endsBracket) {
14682
+ return null;
14683
+ }
14684
+ base = base.slice(1, -1);
14685
+ if (base.indexOf(":") === -1 || base.includes("[") || base.includes("]")) {
14686
+ return null;
14687
+ }
14688
+ } else if (hasBracket) {
14689
+ return null;
14690
+ }
14691
+ if (!base || base.charAt(base.length - 1) === ".") {
14692
+ return null;
14693
+ }
14694
+ const wasIPv6 = base.indexOf(":") !== -1;
14695
+ if (wasIPv6) {
14696
+ try {
14697
+ base = new URL(`http://[${base}]/`).hostname.slice(1, -1);
14698
+ } catch (_err) {
14699
+ return null;
14700
+ }
14701
+ } else {
14702
+ base = normalizeIPAddress(base);
14703
+ if (!ipv4ToBytes(base)) {
14704
+ return null;
14705
+ }
14706
+ }
14707
+ return { normalized: unmapIPv4MappedIPv6(base), wasIPv6 };
14708
+ };
14709
+ var CIDR_ENTRY_RE = /^(.+)\/(0|[1-9]\d{0,2})$/;
14710
+ var parseCidrEntry = (entry) => {
14711
+ if (entry.indexOf("/") === -1) {
14712
+ return void 0;
14713
+ }
14714
+ const match = CIDR_ENTRY_RE.exec(entry);
14715
+ if (!match) {
14716
+ return null;
14717
+ }
14718
+ let prefix = Number(match[2]);
14719
+ const parsedBase = normalizeCidrBase(match[1]);
14720
+ if (!parsedBase) {
14721
+ return null;
14722
+ }
14723
+ const { normalized, wasIPv6 } = parsedBase;
14724
+ if (wasIPv6 && normalized.indexOf(":") === -1) {
14725
+ if (prefix < 96) {
14726
+ return null;
14727
+ }
14728
+ prefix -= 96;
14729
+ }
14730
+ const bytes = ipToBytes(normalized);
14731
+ if (!bytes || prefix > bytes.length * 8) {
14732
+ return null;
14733
+ }
14734
+ return { bytes, prefix };
14735
+ };
14736
+ var isInSubnet = (addressBytes, networkBytes, prefix) => {
14737
+ const fullBytes = prefix >> 3;
14738
+ for (let i = 0; i < fullBytes; i++) {
14739
+ if (addressBytes[i] !== networkBytes[i]) {
14740
+ return false;
14741
+ }
14742
+ }
14743
+ const remainingBits = prefix & 7;
14744
+ if (remainingBits) {
14745
+ const mask = 255 << 8 - remainingBits & 255;
14746
+ if ((addressBytes[fullBytes] & mask) !== (networkBytes[fullBytes] & mask)) {
14747
+ return false;
14748
+ }
14749
+ }
14750
+ return true;
14044
14751
  };
14045
14752
  function shouldBypassProxy(location) {
14046
14753
  let parsed;
@@ -14058,10 +14765,18 @@ function shouldBypassProxy(location) {
14058
14765
  }
14059
14766
  const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
14060
14767
  const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
14768
+ const hostnameBytes = ipToBytes(hostname);
14061
14769
  return noProxy.split(/[\s,]+/).some((entry) => {
14062
14770
  if (!entry) {
14063
14771
  return false;
14064
14772
  }
14773
+ if (entry === "*") {
14774
+ return true;
14775
+ }
14776
+ const cidr = parseCidrEntry(entry);
14777
+ if (cidr !== void 0) {
14778
+ return cidr !== null && !!hostnameBytes && hostnameBytes.length === cidr.bytes.length && isInSubnet(hostnameBytes, cidr.bytes, cidr.prefix);
14779
+ }
14065
14780
  let [entryHost, entryPort] = parseNoProxyEntry(entry);
14066
14781
  entryHost = normalizeNoProxyHost(entryHost);
14067
14782
  if (!entryHost) {
@@ -14080,7 +14795,7 @@ function shouldBypassProxy(location) {
14080
14795
  });
14081
14796
  }
14082
14797
 
14083
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
14798
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
14084
14799
  function speedometer(samplesCount, min) {
14085
14800
  samplesCount = samplesCount || 10;
14086
14801
  const bytes = new Array(samplesCount);
@@ -14116,7 +14831,7 @@ function speedometer(samplesCount, min) {
14116
14831
  }
14117
14832
  var speedometer_default = speedometer;
14118
14833
 
14119
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/throttle.js
14834
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
14120
14835
  function throttle(fn, freq) {
14121
14836
  let timestamp = 0;
14122
14837
  let threshold = 1e3 / freq;
@@ -14147,21 +14862,22 @@ function throttle(fn, freq) {
14147
14862
  }
14148
14863
  };
14149
14864
  const flush = () => lastArgs && invoke(lastArgs);
14150
- return [throttled, flush];
14865
+ const flushWith = (...args) => invoke(args);
14866
+ return [throttled, flush, flushWith];
14151
14867
  }
14152
14868
  var throttle_default = throttle;
14153
14869
 
14154
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/progressEventReducer.js
14870
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
14155
14871
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
14156
14872
  let bytesNotified = 0;
14157
14873
  const _speedometer = speedometer_default(50, 250);
14158
14874
  return throttle_default((e) => {
14159
- if (!e || typeof e.loaded !== "number") {
14875
+ if (!e || !utils_default.isNumber(e.loaded)) {
14160
14876
  return;
14161
14877
  }
14162
14878
  const rawLoaded = e.loaded;
14163
14879
  const total = e.lengthComputable ? e.total : void 0;
14164
- const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
14880
+ const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
14165
14881
  const progressBytes = Math.max(0, loaded - bytesNotified);
14166
14882
  const rate = _speedometer(progressBytes);
14167
14883
  bytesNotified = Math.max(bytesNotified, loaded);
@@ -14190,10 +14906,66 @@ var progressEventDecorator = (total, throttled) => {
14190
14906
  throttled[1]
14191
14907
  ];
14192
14908
  };
14193
- var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
14909
+ var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
14194
14910
 
14195
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14196
- function estimateDataURLDecodedBytes(url2) {
14911
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14912
+ var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
14913
+ var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
14914
+ var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
14915
+ var isBase64Char = (charCode) => charCode >= 65 && charCode <= 90 || // A-Z
14916
+ charCode >= 97 && charCode <= 122 || // a-z
14917
+ charCode >= 48 && charCode <= 57 || // 0-9
14918
+ charCode === 43 || // +
14919
+ charCode === 47 || // /
14920
+ charCode === 45 || // - (base64url)
14921
+ charCode === 95;
14922
+ var isBase64Whitespace = (charCode) => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
14923
+ var base64Bytes = (significant) => {
14924
+ const groups = Math.floor(significant / 4);
14925
+ const remainder = significant % 4;
14926
+ return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
14927
+ };
14928
+ var estimateBase64BufferAllocation = (body) => {
14929
+ const len = body.length;
14930
+ let padding = 0;
14931
+ if (len > 0 && body.charCodeAt(len - 1) === 61) {
14932
+ padding++;
14933
+ if (len > 1 && body.charCodeAt(len - 2) === 61) {
14934
+ padding++;
14935
+ }
14936
+ }
14937
+ return Math.floor((len - padding) * 3 / 4);
14938
+ };
14939
+ var estimatePercentDecodedBase64Bytes = (body) => {
14940
+ const len = body.length;
14941
+ let significant = 0;
14942
+ let padding = 0;
14943
+ let invalid = false;
14944
+ for (let i = 0; i < len; i++) {
14945
+ let code = body.charCodeAt(i);
14946
+ if (code === 37 && isPercentEncodedByte(body, i, len)) {
14947
+ code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
14948
+ i += 2;
14949
+ }
14950
+ if (isBase64Whitespace(code)) {
14951
+ continue;
14952
+ }
14953
+ if (code === 61) {
14954
+ padding++;
14955
+ continue;
14956
+ }
14957
+ if (!isBase64Char(code) || padding > 0) {
14958
+ invalid = true;
14959
+ continue;
14960
+ }
14961
+ significant++;
14962
+ }
14963
+ if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) {
14964
+ return estimateBase64BufferAllocation(body);
14965
+ }
14966
+ return base64Bytes(significant);
14967
+ };
14968
+ var estimateDataURLBytes = (url2, estimateBase64) => {
14197
14969
  if (!url2 || typeof url2 !== "string") return 0;
14198
14970
  if (!url2.startsWith("data:")) return 0;
14199
14971
  const comma = url2.indexOf(",");
@@ -14202,51 +14974,15 @@ function estimateDataURLDecodedBytes(url2) {
14202
14974
  const body = url2.slice(comma + 1);
14203
14975
  const isBase64 = /;base64/i.test(meta);
14204
14976
  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
- }
14231
- }
14232
- if (pad === 1 && idx >= 0) {
14233
- if (body.charCodeAt(idx) === 61) {
14234
- pad++;
14235
- } else if (tailIsPct3D(idx)) {
14236
- pad++;
14237
- }
14238
- }
14239
- const groups = Math.floor(effectiveLen / 4);
14240
- const bytes2 = groups * 3 - (pad || 0);
14241
- return bytes2 > 0 ? bytes2 : 0;
14242
- }
14243
- if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
14244
- return Buffer.byteLength(body, "utf8");
14977
+ return estimateBase64(body);
14245
14978
  }
14246
14979
  let bytes = 0;
14247
14980
  for (let i = 0, len = body.length; i < len; i++) {
14248
14981
  const c = body.charCodeAt(i);
14249
- if (c < 128) {
14982
+ if (c === 37 && isPercentEncodedByte(body, i, len)) {
14983
+ bytes += 1;
14984
+ i += 2;
14985
+ } else if (c < 128) {
14250
14986
  bytes += 1;
14251
14987
  } else if (c < 2048) {
14252
14988
  bytes += 2;
@@ -14263,9 +14999,19 @@ function estimateDataURLDecodedBytes(url2) {
14263
14999
  }
14264
15000
  }
14265
15001
  return bytes;
15002
+ };
15003
+ function estimateDataURLDecodedBytes(url2) {
15004
+ const fragmentIndex = typeof url2 === "string" ? url2.indexOf("#") : -1;
15005
+ return estimateDataURLBytes(
15006
+ fragmentIndex === -1 ? url2 : url2.slice(0, fragmentIndex),
15007
+ estimatePercentDecodedBase64Bytes
15008
+ );
15009
+ }
15010
+ function estimateDataURLBufferAllocation(url2) {
15011
+ return estimateDataURLBytes(url2, estimateBase64BufferAllocation);
14266
15012
  }
14267
15013
 
14268
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
15014
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14269
15015
  var zlibOptions = {
14270
15016
  flush: zlib.constants.Z_SYNC_FLUSH,
14271
15017
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -14274,138 +15020,131 @@ var brotliOptions = {
14274
15020
  flush: zlib.constants.BROTLI_OPERATION_FLUSH,
14275
15021
  finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
14276
15022
  };
15023
+ var zstdOptions = {
15024
+ flush: zlib.constants.ZSTD_e_flush,
15025
+ finishFlush: zlib.constants.ZSTD_e_flush
15026
+ };
14277
15027
  var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
15028
+ var isZstdSupported = utils_default.isFunction(zlib.createZstdDecompress);
15029
+ var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
15030
+ var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
15031
+ var scheduleProgress = typeof process !== "undefined" && process.nextTick ? process.nextTick.bind(process) : utils_default.asap;
14278
15032
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
14279
15033
  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
15034
  var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
14293
15035
  var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
15036
+ function handleSocketError(err) {
15037
+ const current = this[kAxiosCurrentReq];
15038
+ if (current && !current.destroyed) {
15039
+ current.destroy(err);
15040
+ }
15041
+ }
14294
15042
  var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
14295
15043
  var tunnelingAgentCache = /* @__PURE__ */ new Map();
14296
15044
  var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
14297
- function getTunnelingAgent(agentOptions, userHttpsAgent) {
14298
- const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
14299
- const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
14300
- let agent = cache.get(key);
14301
- if (agent) return agent;
14302
- const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
14303
- agent = new import_https_proxy_agent.default(merged);
14304
- agent[kAxiosInstalledTunnel] = true;
14305
- cache.set(key, agent);
14306
- return agent;
14307
- }
14308
- var supportedProtocols = platform_default.protocols.map((protocol) => {
14309
- return protocol + ":";
14310
- });
14311
- var decodeURIComponentSafe = (value) => {
14312
- if (!utils_default.isString(value)) {
14313
- return value;
14314
- }
14315
- try {
14316
- return decodeURIComponent(value);
14317
- } catch (error) {
14318
- return value;
14319
- }
15045
+ var NODE_NATIVE_ENV_PROXY_SUPPORT = {
15046
+ 22: 21,
15047
+ 24: 5
14320
15048
  };
14321
- var flushOnFinish = (stream4, [throttled, flush]) => {
14322
- stream4.on("end", flush).on("error", flush);
14323
- return throttled;
14324
- };
14325
- var Http2Sessions = class {
14326
- constructor() {
14327
- this.sessions = /* @__PURE__ */ Object.create(null);
15049
+ function isNodeNativeEnvProxySupported(nodeVersion = process.versions && process.versions.node) {
15050
+ if (!nodeVersion) {
15051
+ return false;
14328
15052
  }
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;
15053
+ const [major, minor] = nodeVersion.split(".").map((part) => Number(part));
15054
+ if (!Number.isInteger(major) || !Number.isInteger(minor)) {
15055
+ return false;
14395
15056
  }
15057
+ if (major > 24) {
15058
+ return true;
15059
+ }
15060
+ return NODE_NATIVE_ENV_PROXY_SUPPORT[major] != null && minor >= NODE_NATIVE_ENV_PROXY_SUPPORT[major];
15061
+ }
15062
+ function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.versions.node) {
15063
+ if (!isNodeNativeEnvProxySupported(nodeVersion)) {
15064
+ return false;
15065
+ }
15066
+ const agentOptions = agent && agent.options;
15067
+ return Boolean(
15068
+ agentOptions && utils_default.hasOwnProp(agentOptions, "proxyEnv") && agentOptions.proxyEnv != null
15069
+ );
15070
+ }
15071
+ function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
15072
+ return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
15073
+ }
15074
+ function getTunnelingAgent(agentOptions, userHttpsAgent) {
15075
+ const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
15076
+ const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
15077
+ let agent = cache.get(key);
15078
+ if (agent) return agent;
15079
+ const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
15080
+ agent = new import_https_proxy_agent.default(merged);
15081
+ if (userHttpsAgent && userHttpsAgent.options) {
15082
+ const originTLSOptions = { ...userHttpsAgent.options };
15083
+ const callback = agent.callback;
15084
+ agent.callback = function axiosTunnelingAgentCallback(req, opts) {
15085
+ return callback.call(this, req, { ...originTLSOptions, ...opts });
15086
+ };
15087
+ }
15088
+ agent[kAxiosInstalledTunnel] = true;
15089
+ cache.set(key, agent);
15090
+ return agent;
15091
+ }
15092
+ var supportedProtocols = platform_default.protocols.map((protocol) => {
15093
+ return protocol + ":";
15094
+ });
15095
+ var decodeURIComponentSafe = (value) => {
15096
+ if (!utils_default.isString(value)) {
15097
+ return value;
15098
+ }
15099
+ try {
15100
+ return decodeURIComponent(value);
15101
+ } catch (error) {
15102
+ return value;
15103
+ }
15104
+ };
15105
+ var flushOnFinish = (stream4, [throttled, flush]) => {
15106
+ stream4.on("end", flush).on("error", flush);
15107
+ return throttled;
14396
15108
  };
14397
- var http2Sessions = new Http2Sessions();
15109
+ var http2Sessions = new Http2Sessions_default();
14398
15110
  function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
14399
15111
  if (options.beforeRedirects.proxy) {
14400
15112
  options.beforeRedirects.proxy(options);
14401
15113
  }
15114
+ if (options.beforeRedirects.auth) {
15115
+ options.beforeRedirects.auth(options);
15116
+ }
15117
+ if (options.beforeRedirects.sensitiveHeaders) {
15118
+ options.beforeRedirects.sensitiveHeaders(options, requestDetails);
15119
+ }
14402
15120
  if (options.beforeRedirects.config) {
14403
15121
  options.beforeRedirects.config(options, responseDetails, requestDetails);
14404
15122
  }
14405
15123
  }
14406
- function setProxy(options, configProxy, location, isRedirect, configHttpsAgent) {
15124
+ function stripMatchingHeaders(headers, sensitiveSet) {
15125
+ if (!headers) {
15126
+ return;
15127
+ }
15128
+ Object.keys(headers).forEach((header) => {
15129
+ if (sensitiveSet.has(header.toLowerCase())) {
15130
+ delete headers[header];
15131
+ }
15132
+ });
15133
+ }
15134
+ function isSameOriginRedirect(redirectOptions, requestDetails) {
15135
+ if (!requestDetails) {
15136
+ return false;
15137
+ }
15138
+ try {
15139
+ return new URL(requestDetails.url).origin === new URL(redirectOptions.href).origin;
15140
+ } catch (e) {
15141
+ return false;
15142
+ }
15143
+ }
15144
+ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent, allowEnvProxy = true) {
14407
15145
  let proxy = configProxy;
14408
- if (!proxy && proxy !== false) {
15146
+ const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
15147
+ if (!proxy && proxy !== false && allowEnvProxy && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
14409
15148
  const proxyUrl = getProxyForUrl(location);
14410
15149
  if (proxyUrl) {
14411
15150
  if (!shouldBypassProxy(location)) {
@@ -14496,8 +15235,19 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent)
14496
15235
  }
14497
15236
  }
14498
15237
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
14499
- setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
15238
+ setProxy(
15239
+ redirectOptions,
15240
+ configProxy,
15241
+ redirectOptions.href,
15242
+ true,
15243
+ configHttpsAgent,
15244
+ configHttpAgent,
15245
+ allowEnvProxy
15246
+ );
14500
15247
  };
15248
+ return Boolean(
15249
+ proxy || configProxy !== false && allowEnvProxy && isNodeEnvProxyEnabled(proxyEnvAgent)
15250
+ );
14501
15251
  }
14502
15252
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
14503
15253
  var wrapAsync = (asyncExecutor) => {
@@ -14522,7 +15272,7 @@ var wrapAsync = (asyncExecutor) => {
14522
15272
  };
14523
15273
  var resolveFamily = ({ address, family }) => {
14524
15274
  if (!utils_default.isString(address)) {
14525
- throw TypeError("address must be a string");
15275
+ throw new AxiosError_default("address must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE);
14526
15276
  }
14527
15277
  return {
14528
15278
  address,
@@ -14530,12 +15280,36 @@ var resolveFamily = ({ address, family }) => {
14530
15280
  };
14531
15281
  };
14532
15282
  var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
15283
+ var normalizedLookupCache = /* @__PURE__ */ new WeakMap();
15284
+ var normalizeLookup = (lookup) => {
15285
+ let normalized = normalizedLookupCache.get(lookup);
15286
+ if (normalized) {
15287
+ return normalized;
15288
+ }
15289
+ const callbackLookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
15290
+ normalized = (hostname, opt, cb) => {
15291
+ callbackLookup(hostname, opt, (err, arg0, arg1) => {
15292
+ if (err) {
15293
+ return cb(err);
15294
+ }
15295
+ let addresses;
15296
+ try {
15297
+ addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
15298
+ } catch (error) {
15299
+ return cb(error);
15300
+ }
15301
+ opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
15302
+ });
15303
+ };
15304
+ normalizedLookupCache.set(lookup, normalized);
15305
+ return normalized;
15306
+ };
14533
15307
  var http2Transport = {
14534
15308
  request(options, cb) {
14535
15309
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
14536
15310
  const { http2Options, headers } = options;
14537
15311
  const session = http2Sessions.getSession(authority, http2Options);
14538
- const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
15312
+ const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http22.constants;
14539
15313
  const http2Headers = {
14540
15314
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
14541
15315
  [HTTP2_HEADER_METHOD]: options.method,
@@ -14559,39 +15333,56 @@ var http2Transport = {
14559
15333
  };
14560
15334
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14561
15335
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
14562
- const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
15336
+ const own2 = (key) => utils_default.getSafeProp(config, key);
15337
+ const transitional2 = own2("transitional") || transitional_default;
14563
15338
  let data = own2("data");
14564
15339
  let lookup = own2("lookup");
14565
15340
  let family = own2("family");
14566
15341
  let httpVersion = own2("httpVersion");
14567
15342
  if (httpVersion === void 0) httpVersion = 1;
15343
+ const rawHttpVersion = httpVersion;
14568
15344
  let http2Options = own2("http2Options");
15345
+ const httpAgent = own2("httpAgent");
15346
+ const httpsAgent = own2("httpsAgent");
15347
+ const configProxy = own2("proxy");
14569
15348
  const responseType = own2("responseType");
14570
15349
  const responseEncoding = own2("responseEncoding");
14571
- const method = config.method.toUpperCase();
15350
+ const socketPath = own2("socketPath");
15351
+ const method = own2("method").toUpperCase();
15352
+ const maxRedirects = own2("maxRedirects");
15353
+ const maxBodyLength = own2("maxBodyLength");
15354
+ const maxContentLength = own2("maxContentLength");
15355
+ const decompress = own2("decompress");
14572
15356
  let isDone;
14573
15357
  let rejected = false;
14574
15358
  let req;
14575
15359
  let connectPhaseTimer;
14576
- httpVersion = +httpVersion;
15360
+ try {
15361
+ httpVersion = +httpVersion;
15362
+ } catch (err) {
15363
+ throw new AxiosError_default(
15364
+ "Invalid protocol version: value is not a number",
15365
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15366
+ config
15367
+ );
15368
+ }
14577
15369
  if (Number.isNaN(httpVersion)) {
14578
- throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
15370
+ throw new AxiosError_default(
15371
+ `Invalid protocol version: '${rawHttpVersion}' is not a number`,
15372
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15373
+ config
15374
+ );
14579
15375
  }
14580
15376
  if (httpVersion !== 1 && httpVersion !== 2) {
14581
- throw TypeError(`Unsupported protocol version '${httpVersion}'`);
15377
+ throw new AxiosError_default(
15378
+ `Unsupported protocol version '${httpVersion}'`,
15379
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15380
+ config
15381
+ );
14582
15382
  }
14583
15383
  const isHttp2 = httpVersion === 2;
14584
15384
  if (lookup) {
14585
- const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
14586
- lookup = (hostname, opt, cb) => {
14587
- _lookup(hostname, opt, (err, arg0, arg1) => {
14588
- if (err) {
14589
- return cb(err);
14590
- }
14591
- const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
14592
- opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
14593
- });
14594
- };
15385
+ lookup = normalizeLookup(lookup);
14595
15386
  }
14596
15387
  const abortEmitter = new EventEmitter();
14597
15388
  function abort(reason) {
@@ -14601,7 +15392,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14601
15392
  !reason || reason.type ? new CanceledError_default(null, config, req) : reason
14602
15393
  );
14603
15394
  } catch (err) {
14604
- console.warn("emit error", err);
14605
15395
  }
14606
15396
  }
14607
15397
  function clearConnectPhaseTimer() {
@@ -14611,10 +15401,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14611
15401
  }
14612
15402
  }
14613
15403
  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;
15404
+ const configTimeout = own2("timeout");
15405
+ let timeoutErrorMessage = configTimeout ? "timeout of " + configTimeout + "ms exceeded" : "timeout exceeded";
15406
+ const configTimeoutErrorMessage = own2("timeoutErrorMessage");
15407
+ if (configTimeoutErrorMessage) {
15408
+ timeoutErrorMessage = configTimeoutErrorMessage;
14618
15409
  }
14619
15410
  return new AxiosError_default(
14620
15411
  timeoutErrorMessage,
@@ -14658,17 +15449,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14658
15449
  onFinished();
14659
15450
  }
14660
15451
  });
14661
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
14662
- const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
15452
+ const fullPath = buildFullPath(own2("baseURL"), own2("url"), own2("allowAbsoluteUrls"), config);
15453
+ const urlBase = socketPath ? "http://localhost" : platform_default.hasBrowserEnv ? platform_default.origin : void 0;
15454
+ const parsed = new URL(fullPath, urlBase);
14663
15455
  const protocol = parsed.protocol || supportedProtocols[0];
14664
15456
  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) {
15457
+ if (maxContentLength > -1) {
15458
+ const dataUrl = String(own2("url") || fullPath || "");
15459
+ const estimated = estimateDataURLBufferAllocation(dataUrl);
15460
+ if (estimated > maxContentLength) {
14669
15461
  return reject(
14670
15462
  new AxiosError_default(
14671
- "maxContentLength size of " + config.maxContentLength + " exceeded",
15463
+ "maxContentLength size of " + maxContentLength + " exceeded",
14672
15464
  AxiosError_default.ERR_BAD_RESPONSE,
14673
15465
  config
14674
15466
  )
@@ -14685,7 +15477,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14685
15477
  });
14686
15478
  }
14687
15479
  try {
14688
- convertedData = fromDataURI(config.url, responseType === "blob", {
15480
+ convertedData = fromDataURI(own2("url"), responseType === "blob", {
14689
15481
  Blob: config.env && config.env.Blob
14690
15482
  });
14691
15483
  } catch (err) {
@@ -14734,7 +15526,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14734
15526
  setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
14735
15527
  if (!headers.hasContentLength()) {
14736
15528
  try {
14737
- const knownLength = await util2.promisify(data.getLength).call(data);
15529
+ const knownLength = await util3.promisify(data.getLength).call(data);
14738
15530
  Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
14739
15531
  } catch (e) {
14740
15532
  }
@@ -14759,7 +15551,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14759
15551
  );
14760
15552
  }
14761
15553
  headers.setContentLength(data.length, false);
14762
- if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
15554
+ if (maxBodyLength > -1 && data.length > maxBodyLength) {
14763
15555
  return reject(
14764
15556
  new AxiosError_default(
14765
15557
  "Request body larger than maxBodyLength limit",
@@ -14795,7 +15587,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14795
15587
  data,
14796
15588
  progressEventDecorator(
14797
15589
  contentLength,
14798
- progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
15590
+ progressEventReducer(asyncDecorator(onUploadProgress, scheduleProgress), false, 3)
14799
15591
  )
14800
15592
  )
14801
15593
  );
@@ -14803,11 +15595,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14803
15595
  let auth = void 0;
14804
15596
  const configAuth = own2("auth");
14805
15597
  if (configAuth) {
14806
- const username = configAuth.username || "";
14807
- const password = configAuth.password || "";
15598
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
15599
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
14808
15600
  auth = username + ":" + password;
14809
15601
  }
14810
- if (!auth && parsed.username) {
15602
+ if (!auth && (parsed.username || parsed.password)) {
14811
15603
  const urlUsername = decodeURIComponentSafe(parsed.username);
14812
15604
  const urlPassword = decodeURIComponentSafe(parsed.password);
14813
15605
  auth = urlUsername + ":" + urlPassword;
@@ -14817,96 +15609,165 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14817
15609
  try {
14818
15610
  path = buildURL(
14819
15611
  parsed.pathname + parsed.search,
14820
- config.params,
14821
- config.paramsSerializer
15612
+ own2("params"),
15613
+ own2("paramsSerializer")
14822
15614
  ).replace(/^\?/, "");
14823
15615
  } 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);
15616
+ return reject(
15617
+ AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config, null, null, {
15618
+ url: own2("url"),
15619
+ exists: true
15620
+ })
15621
+ );
14829
15622
  }
14830
15623
  headers.set(
14831
15624
  "Accept-Encoding",
14832
- "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
15625
+ utils_default.hasOwnProp(transitional2, "advertiseZstdAcceptEncoding") && transitional2.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING,
14833
15626
  false
14834
15627
  );
15628
+ if (isHttp2 && lookup) {
15629
+ http2Options = Object.assign(/* @__PURE__ */ Object.create(null), http2Options, { lookup });
15630
+ }
14835
15631
  const options = Object.assign(/* @__PURE__ */ Object.create(null), {
14836
15632
  path,
14837
15633
  method,
14838
15634
  headers: toByteStringHeaderObject(headers),
14839
- agents: { http: config.httpAgent, https: config.httpsAgent },
15635
+ agents: { http: httpAgent, https: httpsAgent },
14840
15636
  auth,
14841
15637
  protocol,
14842
15638
  family,
14843
15639
  beforeRedirect: dispatchBeforeRedirect,
14844
15640
  beforeRedirects: /* @__PURE__ */ Object.create(null),
14845
- http2Options
15641
+ http2Options,
15642
+ createConnection: void 0
14846
15643
  });
14847
15644
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
14848
- if (config.socketPath) {
14849
- if (typeof config.socketPath !== "string") {
15645
+ let proxyApplied = false;
15646
+ if (socketPath) {
15647
+ if (typeof socketPath !== "string") {
14850
15648
  return reject(
14851
15649
  new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
14852
15650
  );
14853
15651
  }
14854
- if (config.allowedSocketPaths != null) {
14855
- const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
14856
- const resolvedSocket = resolvePath(config.socketPath);
15652
+ const allowedSocketPaths = own2("allowedSocketPaths");
15653
+ if (allowedSocketPaths != null) {
15654
+ const allowed = Array.isArray(allowedSocketPaths) ? allowedSocketPaths : [allowedSocketPaths];
15655
+ const resolvedSocket = resolvePath(socketPath);
14857
15656
  const isAllowed = allowed.some(
14858
15657
  (entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket
14859
15658
  );
14860
15659
  if (!isAllowed) {
14861
15660
  return reject(
14862
15661
  new AxiosError_default(
14863
- `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
15662
+ `socketPath "${socketPath}" is not permitted by allowedSocketPaths`,
14864
15663
  AxiosError_default.ERR_BAD_OPTION_VALUE,
14865
15664
  config
14866
15665
  )
14867
15666
  );
14868
15667
  }
14869
15668
  }
14870
- options.socketPath = config.socketPath;
15669
+ options.socketPath = socketPath;
14871
15670
  } else {
14872
15671
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
14873
15672
  options.port = parsed.port;
14874
- setProxy(
15673
+ proxyApplied = setProxy(
14875
15674
  options,
14876
- config.proxy,
15675
+ configProxy,
14877
15676
  protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
14878
15677
  false,
14879
- config.httpsAgent
15678
+ httpsAgent,
15679
+ httpAgent,
15680
+ // The HTTP/2 transport connects independently of HTTP/1 agents, so it
15681
+ // cannot apply either axios-resolved or agent-local environment proxies.
15682
+ // Explicit proxy config is still processed and rejected below.
15683
+ !isHttp2
14880
15684
  );
14881
15685
  }
14882
15686
  let transport;
14883
15687
  let isNativeTransport = false;
15688
+ let transportEnforcesMaxBodyLength = false;
14884
15689
  const isHttpsRequest = isHttps.test(options.protocol);
14885
15690
  if (options.agent == null) {
14886
- options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
15691
+ options.agent = isHttpsRequest ? httpsAgent : httpAgent;
14887
15692
  }
14888
15693
  if (isHttp2) {
15694
+ if (proxyApplied) {
15695
+ return reject(
15696
+ new AxiosError_default(
15697
+ "HTTP/2 requests with a proxy are not supported",
15698
+ AxiosError_default.ERR_NOT_SUPPORT,
15699
+ config
15700
+ )
15701
+ );
15702
+ }
14889
15703
  transport = http2Transport;
14890
15704
  } else {
14891
15705
  const configTransport = own2("transport");
14892
15706
  if (configTransport) {
14893
15707
  transport = configTransport;
14894
- } else if (config.maxRedirects === 0) {
15708
+ } else if (maxRedirects === 0) {
14895
15709
  transport = isHttpsRequest ? https : http;
14896
15710
  isNativeTransport = true;
14897
15711
  } else {
14898
- if (config.maxRedirects) {
14899
- options.maxRedirects = config.maxRedirects;
15712
+ transportEnforcesMaxBodyLength = true;
15713
+ options.sensitiveHeaders = [];
15714
+ if (maxRedirects) {
15715
+ options.maxRedirects = maxRedirects;
14900
15716
  }
14901
15717
  const configBeforeRedirect = own2("beforeRedirect");
14902
15718
  if (configBeforeRedirect) {
14903
15719
  options.beforeRedirects.config = configBeforeRedirect;
14904
15720
  }
15721
+ if (auth) {
15722
+ const requestOrigin = parsed.origin;
15723
+ const authToRestore = auth;
15724
+ options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) {
15725
+ try {
15726
+ if (new URL(redirectOptions.href).origin === requestOrigin) {
15727
+ redirectOptions.auth = authToRestore;
15728
+ }
15729
+ } catch (e) {
15730
+ }
15731
+ };
15732
+ }
15733
+ const sensitiveHeaders = own2("sensitiveHeaders");
15734
+ if (sensitiveHeaders != null) {
15735
+ if (!utils_default.isArray(sensitiveHeaders)) {
15736
+ return reject(
15737
+ new AxiosError_default(
15738
+ "sensitiveHeaders must be an array of strings",
15739
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15740
+ config
15741
+ )
15742
+ );
15743
+ }
15744
+ const sensitiveSet = /* @__PURE__ */ new Set();
15745
+ for (const header of sensitiveHeaders) {
15746
+ if (!utils_default.isString(header)) {
15747
+ return reject(
15748
+ new AxiosError_default(
15749
+ "sensitiveHeaders must be an array of strings",
15750
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15751
+ config
15752
+ )
15753
+ );
15754
+ }
15755
+ sensitiveSet.add(header.toLowerCase());
15756
+ }
15757
+ if (sensitiveSet.size) {
15758
+ options.sensitiveHeaders = Array.from(sensitiveSet);
15759
+ options.beforeRedirects.sensitiveHeaders = function beforeRedirectSensitiveHeaders(redirectOptions, requestDetails) {
15760
+ if (!isSameOriginRedirect(redirectOptions, requestDetails)) {
15761
+ stripMatchingHeaders(redirectOptions.headers, sensitiveSet);
15762
+ }
15763
+ };
15764
+ }
15765
+ }
14905
15766
  transport = isHttpsRequest ? httpsFollow : httpFollow;
14906
15767
  }
14907
15768
  }
14908
- if (config.maxBodyLength > -1) {
14909
- options.maxBodyLength = config.maxBodyLength;
15769
+ if (maxBodyLength > -1) {
15770
+ options.maxBodyLength = maxBodyLength;
14910
15771
  } else {
14911
15772
  options.maxBodyLength = Infinity;
14912
15773
  }
@@ -14926,7 +15787,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14926
15787
  transformStream,
14927
15788
  progressEventDecorator(
14928
15789
  responseLength,
14929
- progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
15790
+ progressEventReducer(
15791
+ asyncDecorator(onDownloadProgress, scheduleProgress),
15792
+ true,
15793
+ 3
15794
+ )
14930
15795
  )
14931
15796
  )
14932
15797
  );
@@ -14934,7 +15799,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14934
15799
  }
14935
15800
  let responseStream = res;
14936
15801
  const lastRequest = res.req || req;
14937
- if (config.decompress !== false && res.headers["content-encoding"]) {
15802
+ if (decompress !== false && res.headers["content-encoding"]) {
14938
15803
  if (method === "HEAD" || res.statusCode === 204) {
14939
15804
  delete res.headers["content-encoding"];
14940
15805
  }
@@ -14957,6 +15822,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14957
15822
  streams.push(zlib.createBrotliDecompress(brotliOptions));
14958
15823
  delete res.headers["content-encoding"];
14959
15824
  }
15825
+ break;
15826
+ case "zstd":
15827
+ if (isZstdSupported) {
15828
+ streams.push(zlib.createZstdDecompress(zstdOptions));
15829
+ delete res.headers["content-encoding"];
15830
+ }
15831
+ break;
14960
15832
  }
14961
15833
  }
14962
15834
  responseStream = streams.length > 1 ? stream3.pipeline(streams, utils_default.noop) : streams[0];
@@ -14968,8 +15840,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14968
15840
  request: lastRequest
14969
15841
  };
14970
15842
  if (responseType === "stream") {
14971
- if (config.maxContentLength > -1) {
14972
- const limit = config.maxContentLength;
15843
+ if (maxContentLength > -1) {
15844
+ const limit = maxContentLength;
14973
15845
  const source = responseStream;
14974
15846
  async function* enforceMaxContentLength() {
14975
15847
  let totalResponseBytes = 0;
@@ -14998,12 +15870,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14998
15870
  responseStream.on("data", function handleStreamData(chunk) {
14999
15871
  responseBuffer.push(chunk);
15000
15872
  totalResponseBytes += chunk.length;
15001
- if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
15873
+ if (maxContentLength > -1 && totalResponseBytes > maxContentLength) {
15002
15874
  rejected = true;
15003
15875
  responseStream.destroy();
15004
15876
  abort(
15005
15877
  new AxiosError_default(
15006
- "maxContentLength size of " + config.maxContentLength + " exceeded",
15878
+ "maxContentLength size of " + maxContentLength + " exceeded",
15007
15879
  AxiosError_default.ERR_BAD_RESPONSE,
15008
15880
  config,
15009
15881
  lastRequest
@@ -15064,14 +15936,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15064
15936
  });
15065
15937
  const boundSockets = /* @__PURE__ */ new Set();
15066
15938
  req.on("socket", function handleRequestSocket(socket) {
15067
- socket.setKeepAlive(true, 1e3 * 60);
15939
+ if (typeof socket.setKeepAlive === "function") {
15940
+ socket.setKeepAlive(true, 1e3 * 60);
15941
+ }
15068
15942
  if (!socket[kAxiosSocketListener]) {
15069
- socket.on("error", function handleSocketError(err) {
15070
- const current = socket[kAxiosCurrentReq];
15071
- if (current && !current.destroyed) {
15072
- current.destroy(err);
15073
- }
15074
- });
15943
+ socket.on("error", handleSocketError);
15075
15944
  socket[kAxiosSocketListener] = true;
15076
15945
  }
15077
15946
  socket[kAxiosCurrentReq] = req;
@@ -15086,8 +15955,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15086
15955
  }
15087
15956
  boundSockets.clear();
15088
15957
  });
15089
- if (config.timeout) {
15090
- const timeout = parseInt(config.timeout, 10);
15958
+ if (own2("timeout")) {
15959
+ const timeout = parseInt(own2("timeout"), 10);
15091
15960
  if (Number.isNaN(timeout)) {
15092
15961
  abort(
15093
15962
  new AxiosError_default(
@@ -15126,8 +15995,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15126
15995
  }
15127
15996
  });
15128
15997
  let uploadStream = data;
15129
- if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
15130
- const limit = config.maxBodyLength;
15998
+ if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
15999
+ const limit = maxBodyLength;
15131
16000
  let bytesSent = 0;
15132
16001
  uploadStream = stream3.pipeline(
15133
16002
  [
@@ -15163,7 +16032,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15163
16032
  });
15164
16033
  };
15165
16034
 
15166
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js
16035
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
15167
16036
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
15168
16037
  url2 = new URL(url2, platform_default.origin);
15169
16038
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -15172,7 +16041,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
15172
16041
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
15173
16042
  ) : () => true;
15174
16043
 
15175
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js
16044
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
15176
16045
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
15177
16046
  // Standard browser envs support document.cookie
15178
16047
  {
@@ -15203,7 +16072,11 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15203
16072
  const cookie = cookies[i].replace(/^\s+/, "");
15204
16073
  const eq = cookie.indexOf("=");
15205
16074
  if (eq !== -1 && cookie.slice(0, eq) === name) {
15206
- return decodeURIComponent(cookie.slice(eq + 1));
16075
+ try {
16076
+ return decodeURIComponent(cookie.slice(eq + 1));
16077
+ } catch (e) {
16078
+ return cookie.slice(eq + 1);
16079
+ }
15207
16080
  }
15208
16081
  }
15209
16082
  return null;
@@ -15225,9 +16098,20 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15225
16098
  }
15226
16099
  );
15227
16100
 
15228
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js
16101
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
15229
16102
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
16103
+ var ownEnumerableKeys = (thing) => {
16104
+ if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
16105
+ return Object.keys(thing).concat(
16106
+ Object.getOwnPropertySymbols(thing).filter(
16107
+ (symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable
16108
+ )
16109
+ );
16110
+ }
16111
+ return Object.keys(thing);
16112
+ };
15230
16113
  function mergeConfig(config1, config2) {
16114
+ config1 = config1 || {};
15231
16115
  config2 = config2 || {};
15232
16116
  const config = /* @__PURE__ */ Object.create(null);
15233
16117
  Object.defineProperty(config, "hasOwnProperty", {
@@ -15268,6 +16152,23 @@ function mergeConfig(config1, config2) {
15268
16152
  return getMergedValue(void 0, a);
15269
16153
  }
15270
16154
  }
16155
+ function getMergedTransitionalOption(prop) {
16156
+ const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
16157
+ if (!utils_default.isUndefined(transitional2)) {
16158
+ if (utils_default.isPlainObject(transitional2)) {
16159
+ if (utils_default.hasOwnProp(transitional2, prop)) {
16160
+ return transitional2[prop];
16161
+ }
16162
+ } else {
16163
+ return void 0;
16164
+ }
16165
+ }
16166
+ const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
16167
+ if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
16168
+ return transitional1[prop];
16169
+ }
16170
+ return void 0;
16171
+ }
15271
16172
  function mergeDirectKeys(a, b, prop) {
15272
16173
  if (utils_default.hasOwnProp(config2, prop)) {
15273
16174
  return getMergedValue(a, b);
@@ -15284,7 +16185,7 @@ function mergeConfig(config1, config2) {
15284
16185
  transformResponse: defaultToConfig2,
15285
16186
  paramsSerializer: defaultToConfig2,
15286
16187
  timeout: defaultToConfig2,
15287
- timeoutMessage: defaultToConfig2,
16188
+ timeoutErrorMessage: defaultToConfig2,
15288
16189
  withCredentials: defaultToConfig2,
15289
16190
  withXSRFToken: defaultToConfig2,
15290
16191
  adapter: defaultToConfig2,
@@ -15307,7 +16208,7 @@ function mergeConfig(config1, config2) {
15307
16208
  validateStatus: mergeDirectKeys,
15308
16209
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
15309
16210
  };
15310
- utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
16211
+ utils_default.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
15311
16212
  if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
15312
16213
  const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
15313
16214
  const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
@@ -15315,27 +16216,22 @@ function mergeConfig(config1, config2) {
15315
16216
  const configValue = merge2(a, b, prop);
15316
16217
  utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
15317
16218
  });
16219
+ if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
16220
+ if (utils_default.hasOwnProp(config1, "validateStatus")) {
16221
+ config.validateStatus = getMergedValue(void 0, config1.validateStatus);
16222
+ } else {
16223
+ delete config.validateStatus;
16224
+ }
16225
+ }
15318
16226
  return config;
15319
16227
  }
15320
16228
 
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
- }
16229
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
15334
16230
  var encodeUTF8 = (str) => encodeURIComponent(str).replace(
15335
16231
  /%([0-9A-F]{2})/gi,
15336
16232
  (_, hex) => String.fromCharCode(parseInt(hex, 16))
15337
16233
  );
15338
- var resolveConfig_default = (config) => {
16234
+ function resolveConfig(config) {
15339
16235
  const newConfig = mergeConfig({}, config);
15340
16236
  const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
15341
16237
  const data = own2("data");
@@ -15349,21 +16245,28 @@ var resolveConfig_default = (config) => {
15349
16245
  const url2 = own2("url");
15350
16246
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
15351
16247
  newConfig.url = buildURL(
15352
- buildFullPath(baseURL, url2, allowAbsoluteUrls),
15353
- config.params,
15354
- config.paramsSerializer
16248
+ buildFullPath(baseURL, url2, allowAbsoluteUrls, newConfig),
16249
+ own2("params"),
16250
+ own2("paramsSerializer")
15355
16251
  );
15356
16252
  if (auth) {
15357
- headers.set(
15358
- "Authorization",
15359
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
15360
- );
16253
+ const username = utils_default.getSafeProp(auth, "username") || "";
16254
+ const password = utils_default.getSafeProp(auth, "password") || "";
16255
+ try {
16256
+ headers.set(
16257
+ "Authorization",
16258
+ "Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
16259
+ );
16260
+ } catch (e) {
16261
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
16262
+ }
15361
16263
  }
15362
16264
  if (utils_default.isFormData(data)) {
15363
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
16265
+ const getHeaders = utils_default.getSafeProp(data, "getHeaders");
16266
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
15364
16267
  headers.setContentType(void 0);
15365
- } else if (utils_default.isFunction(data.getHeaders)) {
15366
- setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
16268
+ } else if (utils_default.isFunction(getHeaders)) {
16269
+ setFormDataHeaders(headers, getHeaders.call(data), own2("formDataHeaderPolicy"));
15367
16270
  }
15368
16271
  }
15369
16272
  if (platform_default.hasStandardBrowserEnv) {
@@ -15379,9 +16282,10 @@ var resolveConfig_default = (config) => {
15379
16282
  }
15380
16283
  }
15381
16284
  return newConfig;
15382
- };
16285
+ }
16286
+ var resolveConfig_default = resolveConfig;
15383
16287
 
15384
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js
16288
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
15385
16289
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
15386
16290
  var xhr_default = isXHRAdapterSupported && function(config) {
15387
16291
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -15391,7 +16295,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15391
16295
  let { responseType, onUploadProgress, onDownloadProgress } = _config;
15392
16296
  let onCanceled;
15393
16297
  let uploadThrottled, downloadThrottled;
15394
- let flushUpload, flushDownload;
16298
+ let flushUpload, flushDownload, flushDownloadWithEvent;
15395
16299
  function done() {
15396
16300
  flushUpload && flushUpload();
15397
16301
  flushDownload && flushDownload();
@@ -15401,7 +16305,27 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15401
16305
  let request = new XMLHttpRequest();
15402
16306
  request.open(_config.method.toUpperCase(), _config.url, true);
15403
16307
  request.timeout = _config.timeout;
15404
- function onloadend() {
16308
+ function onloadend(event) {
16309
+ if (!request) {
16310
+ return;
16311
+ }
16312
+ if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform_default.origin)) !== "file" && !(request.responseURL && request.responseURL.startsWith("file:"))) {
16313
+ reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
16314
+ done();
16315
+ request = null;
16316
+ return;
16317
+ }
16318
+ try {
16319
+ if (event) {
16320
+ flushDownloadWithEvent && flushDownloadWithEvent(event);
16321
+ } else {
16322
+ flushDownload && flushDownload();
16323
+ }
16324
+ } catch (err) {
16325
+ setTimeout(() => {
16326
+ throw err;
16327
+ });
16328
+ }
15405
16329
  if (!request) {
15406
16330
  return;
15407
16331
  }
@@ -15489,7 +16413,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15489
16413
  request.responseType = _config.responseType;
15490
16414
  }
15491
16415
  if (onDownloadProgress) {
15492
- [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
16416
+ [downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(
16417
+ onDownloadProgress,
16418
+ true
16419
+ );
15493
16420
  request.addEventListener("progress", downloadThrottled);
15494
16421
  }
15495
16422
  if (onUploadProgress && request.upload) {
@@ -15521,13 +16448,14 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15521
16448
  config
15522
16449
  )
15523
16450
  );
16451
+ done();
15524
16452
  return;
15525
16453
  }
15526
16454
  request.send(requestData || null);
15527
16455
  });
15528
16456
  };
15529
16457
 
15530
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/composeSignals.js
16458
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
15531
16459
  var composeSignals = (signals, timeout) => {
15532
16460
  signals = signals ? signals.filter(Boolean) : [];
15533
16461
  if (!timeout && !signals.length) {
@@ -15560,14 +16488,23 @@ var composeSignals = (signals, timeout) => {
15560
16488
  });
15561
16489
  signals = null;
15562
16490
  };
15563
- signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
16491
+ signals.forEach((signal2) => {
16492
+ if (aborted) {
16493
+ return;
16494
+ }
16495
+ if (signal2.aborted) {
16496
+ onabort.call(signal2);
16497
+ return;
16498
+ }
16499
+ signal2.addEventListener("abort", onabort, { once: true });
16500
+ });
15564
16501
  const { signal } = controller;
15565
16502
  signal.unsubscribe = () => utils_default.asap(unsubscribe);
15566
16503
  return signal;
15567
16504
  };
15568
16505
  var composeSignals_default = composeSignals;
15569
16506
 
15570
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/trackStream.js
16507
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
15571
16508
  var streamChunk = function* (chunk, chunkSize) {
15572
16509
  let len = chunk.byteLength;
15573
16510
  if (!chunkSize || len < chunkSize) {
@@ -15647,9 +16584,34 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
15647
16584
  );
15648
16585
  };
15649
16586
 
15650
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/fetch.js
16587
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
15651
16588
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
16589
+ var DEFAULT_REQUEST_OPTIONS = {
16590
+ cache: "default",
16591
+ redirect: "follow",
16592
+ referrer: "about:client",
16593
+ referrerPolicy: "",
16594
+ mode: "cors",
16595
+ integrity: "",
16596
+ keepalive: false,
16597
+ priority: "auto",
16598
+ window: null
16599
+ };
15652
16600
  var { isFunction: isFunction2 } = utils_default;
16601
+ var encodeUTF82 = (str) => encodeURIComponent(str).replace(
16602
+ /%([0-9A-F]{2})/gi,
16603
+ (_, hex) => String.fromCharCode(parseInt(hex, 16))
16604
+ );
16605
+ var decodeURIComponentSafe2 = (value) => {
16606
+ if (!utils_default.isString(value)) {
16607
+ return value;
16608
+ }
16609
+ try {
16610
+ return decodeURIComponent(value);
16611
+ } catch (error) {
16612
+ return value;
16613
+ }
16614
+ };
15653
16615
  var test = (fn, ...args) => {
15654
16616
  try {
15655
16617
  return !!fn(...args);
@@ -15657,6 +16619,14 @@ var test = (fn, ...args) => {
15657
16619
  return false;
15658
16620
  }
15659
16621
  };
16622
+ var maybeWithAuthCredentials = (url2) => {
16623
+ const protocolIndex = url2.indexOf("://");
16624
+ let urlToCheck = url2;
16625
+ if (protocolIndex !== -1) {
16626
+ urlToCheck = urlToCheck.slice(protocolIndex + 3);
16627
+ }
16628
+ return urlToCheck.includes("@") || urlToCheck.includes(":");
16629
+ };
15660
16630
  var factory = (env) => {
15661
16631
  const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
15662
16632
  const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
@@ -15757,10 +16727,12 @@ var factory = (env) => {
15757
16727
  withCredentials = "same-origin",
15758
16728
  fetchOptions,
15759
16729
  maxContentLength,
15760
- maxBodyLength
16730
+ maxBodyLength,
16731
+ maxRedirects
15761
16732
  } = resolveConfig_default(config);
15762
16733
  const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
15763
16734
  const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
16735
+ const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
15764
16736
  let _fetch = envFetch || fetch;
15765
16737
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
15766
16738
  let composedSignal = composeSignals_default(
@@ -15772,7 +16744,47 @@ var factory = (env) => {
15772
16744
  composedSignal.unsubscribe();
15773
16745
  });
15774
16746
  let requestContentLength;
16747
+ let pendingBodyError = null;
16748
+ const maxBodyLengthError = () => new AxiosError_default(
16749
+ "Request body larger than maxBodyLength limit",
16750
+ AxiosError_default.ERR_BAD_REQUEST,
16751
+ config,
16752
+ request
16753
+ );
15775
16754
  try {
16755
+ let auth = void 0;
16756
+ const configAuth = own2("auth");
16757
+ if (configAuth) {
16758
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
16759
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
16760
+ auth = {
16761
+ username,
16762
+ password
16763
+ };
16764
+ }
16765
+ if (maybeWithAuthCredentials(url2)) {
16766
+ const parsedURL = new URL(url2, platform_default.origin);
16767
+ if (!auth && (parsedURL.username || parsedURL.password)) {
16768
+ const urlUsername = decodeURIComponentSafe2(parsedURL.username);
16769
+ const urlPassword = decodeURIComponentSafe2(parsedURL.password);
16770
+ auth = {
16771
+ username: urlUsername,
16772
+ password: urlPassword
16773
+ };
16774
+ }
16775
+ if (parsedURL.username || parsedURL.password) {
16776
+ parsedURL.username = "";
16777
+ parsedURL.password = "";
16778
+ url2 = parsedURL.href;
16779
+ }
16780
+ }
16781
+ if (auth) {
16782
+ headers.delete("authorization");
16783
+ headers.set(
16784
+ "Authorization",
16785
+ "Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
16786
+ );
16787
+ }
15776
16788
  if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
15777
16789
  const estimated = estimateDataURLDecodedBytes(url2);
15778
16790
  if (estimated > maxContentLength) {
@@ -15785,33 +16797,55 @@ var factory = (env) => {
15785
16797
  }
15786
16798
  }
15787
16799
  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
- );
16800
+ const outboundLength = await getBodyLength(data);
16801
+ if (typeof outboundLength === "number" && isFinite(outboundLength)) {
16802
+ requestContentLength = outboundLength;
16803
+ if (outboundLength > maxBodyLength) {
16804
+ throw maxBodyLengthError();
16805
+ }
15796
16806
  }
15797
16807
  }
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);
16808
+ const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
16809
+ const trackRequestStream = (stream4, onProgress, flush) => trackStream(
16810
+ stream4,
16811
+ DEFAULT_CHUNK_SIZE,
16812
+ (loadedBytes) => {
16813
+ if (hasMaxBodyLength && loadedBytes > maxBodyLength) {
16814
+ throw pendingBodyError = maxBodyLengthError();
16815
+ }
16816
+ onProgress && onProgress(loadedBytes);
16817
+ },
16818
+ flush
16819
+ );
16820
+ if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
16821
+ requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
16822
+ if (requestContentLength !== 0 || mustEnforceStreamBody) {
16823
+ let _request = new Request(url2, {
16824
+ method: "POST",
16825
+ body: data,
16826
+ duplex: "half"
16827
+ });
16828
+ let contentTypeHeader;
16829
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
16830
+ headers.setContentType(contentTypeHeader);
16831
+ }
16832
+ if (_request.body) {
16833
+ const [onProgress, flush] = onUploadProgress && progressEventDecorator(
16834
+ requestContentLength,
16835
+ progressEventReducer(asyncDecorator(onUploadProgress))
16836
+ ) || [];
16837
+ data = trackRequestStream(_request.body, onProgress, flush);
16838
+ }
15814
16839
  }
16840
+ } else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
16841
+ data = trackRequestStream(data);
16842
+ } else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
16843
+ throw new AxiosError_default(
16844
+ "Stream request bodies are not supported by the current fetch implementation",
16845
+ AxiosError_default.ERR_NOT_SUPPORT,
16846
+ config,
16847
+ request
16848
+ );
15815
16849
  }
15816
16850
  if (!utils_default.isString(withCredentials)) {
15817
16851
  withCredentials = withCredentials ? "include" : "omit";
@@ -15824,19 +16858,47 @@ var factory = (env) => {
15824
16858
  }
15825
16859
  }
15826
16860
  headers.set("User-Agent", "axios/" + VERSION, false);
15827
- const resolvedOptions = {
15828
- ...fetchOptions,
16861
+ const safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(/* @__PURE__ */ Object.create(null), fetchOptions);
16862
+ if (safeFetchOptions) {
16863
+ delete safeFetchOptions.body;
16864
+ delete safeFetchOptions.headers;
16865
+ delete safeFetchOptions.method;
16866
+ delete safeFetchOptions.signal;
16867
+ delete safeFetchOptions.duplex;
16868
+ delete safeFetchOptions.credentials;
16869
+ }
16870
+ const resolvedOptions = Object.assign(/* @__PURE__ */ Object.create(null), safeFetchOptions, {
15829
16871
  signal: composedSignal,
15830
16872
  method: method.toUpperCase(),
15831
16873
  headers: toByteStringHeaderObject(headers.normalize()),
15832
16874
  body: data,
15833
16875
  duplex: "half",
15834
16876
  credentials: isCredentialsSupported ? withCredentials : void 0
15835
- };
16877
+ });
16878
+ if (isRequestSupported) {
16879
+ utils_default.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
16880
+ if (resolvedOptions[key] === void 0) {
16881
+ resolvedOptions[key] = value;
16882
+ }
16883
+ });
16884
+ if (resolvedOptions.signal === void 0) {
16885
+ resolvedOptions.signal = null;
16886
+ }
16887
+ if (resolvedOptions.body === void 0) {
16888
+ resolvedOptions.body = null;
16889
+ }
16890
+ }
16891
+ if (maxRedirects === 0) {
16892
+ resolvedOptions.redirect = "manual";
16893
+ if (safeFetchOptions) {
16894
+ safeFetchOptions.redirect = "manual";
16895
+ }
16896
+ }
15836
16897
  request = isRequestSupported && new Request(url2, resolvedOptions);
15837
- let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
16898
+ let response = await (isRequestSupported ? _fetch(request, safeFetchOptions) : _fetch(url2, resolvedOptions));
16899
+ const responseHeaders = AxiosHeaders_default.from(response.headers);
15838
16900
  if (hasMaxContentLength) {
15839
- const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16901
+ const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
15840
16902
  if (declaredLength != null && declaredLength > maxContentLength) {
15841
16903
  throw new AxiosError_default(
15842
16904
  "maxContentLength size of " + maxContentLength + " exceeded",
@@ -15852,7 +16914,7 @@ var factory = (env) => {
15852
16914
  ["status", "statusText", "headers"].forEach((prop) => {
15853
16915
  options[prop] = response[prop];
15854
16916
  });
15855
- const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16917
+ const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
15856
16918
  const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
15857
16919
  responseContentLength,
15858
16920
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
@@ -15922,22 +16984,41 @@ var factory = (env) => {
15922
16984
  const canceledError = composedSignal.reason;
15923
16985
  canceledError.config = config;
15924
16986
  request && (canceledError.request = request);
15925
- err !== canceledError && (canceledError.cause = err);
16987
+ if (err !== canceledError) {
16988
+ Object.defineProperty(canceledError, "cause", {
16989
+ __proto__: null,
16990
+ value: err,
16991
+ writable: true,
16992
+ enumerable: false,
16993
+ configurable: true
16994
+ });
16995
+ }
15926
16996
  throw canceledError;
15927
16997
  }
16998
+ if (pendingBodyError) {
16999
+ request && !pendingBodyError.request && (pendingBodyError.request = request);
17000
+ throw pendingBodyError;
17001
+ }
17002
+ if (err instanceof AxiosError_default) {
17003
+ request && !err.request && (err.request = request);
17004
+ throw err;
17005
+ }
15928
17006
  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
- }
17007
+ const networkError = new AxiosError_default(
17008
+ "Network Error",
17009
+ AxiosError_default.ERR_NETWORK,
17010
+ config,
17011
+ request,
17012
+ err && err.response
15940
17013
  );
17014
+ Object.defineProperty(networkError, "cause", {
17015
+ __proto__: null,
17016
+ value: err.cause || err,
17017
+ writable: true,
17018
+ enumerable: false,
17019
+ configurable: true
17020
+ });
17021
+ throw networkError;
15941
17022
  }
15942
17023
  throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
15943
17024
  }
@@ -15959,7 +17040,7 @@ var getFetch = (config) => {
15959
17040
  };
15960
17041
  var adapter = getFetch();
15961
17042
 
15962
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/adapters.js
17043
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
15963
17044
  var knownAdapters = {
15964
17045
  http: http_default,
15965
17046
  xhr: xhr_default,
@@ -16006,7 +17087,7 @@ function getAdapter(adapters, config) {
16006
17087
  let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
16007
17088
  throw new AxiosError_default(
16008
17089
  `There is no suitable adapter to dispatch the request ` + s,
16009
- "ERR_NOT_SUPPORT"
17090
+ AxiosError_default.ERR_NOT_SUPPORT
16010
17091
  );
16011
17092
  }
16012
17093
  return adapter2;
@@ -16024,7 +17105,7 @@ var adapters_default = {
16024
17105
  adapters: knownAdapters
16025
17106
  };
16026
17107
 
16027
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js
17108
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
16028
17109
  function throwIfCancellationRequested(config) {
16029
17110
  if (config.cancelToken) {
16030
17111
  config.cancelToken.throwIfRequested();
@@ -16033,9 +17114,10 @@ function throwIfCancellationRequested(config) {
16033
17114
  throw new CanceledError_default(null, config);
16034
17115
  }
16035
17116
  }
16036
- function dispatchRequest(config) {
17117
+ function dispatchRequest(_config) {
17118
+ const config = utils_default.toSafeFlatObject(_config);
16037
17119
  throwIfCancellationRequested(config);
16038
- config.headers = AxiosHeaders_default.from(config.headers);
17120
+ config.headers = AxiosHeaders_default.from(utils_default.getSafeProp(config, "headers"));
16039
17121
  config.data = transformData.call(config, config.transformRequest);
16040
17122
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
16041
17123
  config.headers.setContentType("application/x-www-form-urlencoded", false);
@@ -16075,7 +17157,7 @@ function dispatchRequest(config) {
16075
17157
  );
16076
17158
  }
16077
17159
 
16078
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/validator.js
17160
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
16079
17161
  var validators = {};
16080
17162
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
16081
17163
  validators[type] = function validator(thing) {
@@ -16113,7 +17195,7 @@ validators.spelling = function spelling(correctSpelling) {
16113
17195
  };
16114
17196
  };
16115
17197
  function assertOptions(options, schema, allowUnknown) {
16116
- if (typeof options !== "object") {
17198
+ if (typeof options !== "object" || options === null) {
16117
17199
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
16118
17200
  }
16119
17201
  const keys = Object.keys(options);
@@ -16142,7 +17224,7 @@ var validator_default = {
16142
17224
  validators
16143
17225
  };
16144
17226
 
16145
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/Axios.js
17227
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
16146
17228
  var validators2 = validator_default.validators;
16147
17229
  var Axios = class {
16148
17230
  constructor(instanceConfig) {
@@ -16165,16 +17247,15 @@ var Axios = class {
16165
17247
  return await this._request(configOrUrl, config);
16166
17248
  } catch (err) {
16167
17249
  if (err instanceof Error) {
16168
- let dummy = {};
16169
- Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
16170
- const stack = (() => {
16171
- if (!dummy.stack) {
16172
- return "";
16173
- }
16174
- const firstNewlineIndex = dummy.stack.indexOf("\n");
16175
- return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
16176
- })();
16177
17250
  try {
17251
+ let dummy = {};
17252
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
17253
+ const dummyStack = dummy.stack;
17254
+ let stack = "";
17255
+ if (typeof dummyStack === "string") {
17256
+ const firstNewlineIndex = dummyStack.indexOf("\n");
17257
+ stack = firstNewlineIndex === -1 ? "" : dummyStack.slice(firstNewlineIndex + 1);
17258
+ }
16178
17259
  if (!err.stack) {
16179
17260
  err.stack = stack;
16180
17261
  } else if (stack) {
@@ -16207,7 +17288,9 @@ var Axios = class {
16207
17288
  silentJSONParsing: validators2.transitional(validators2.boolean),
16208
17289
  forcedJSONParsing: validators2.transitional(validators2.boolean),
16209
17290
  clarifyTimeoutError: validators2.transitional(validators2.boolean),
16210
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
17291
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
17292
+ advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
17293
+ validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
16211
17294
  },
16212
17295
  false
16213
17296
  );
@@ -16242,9 +17325,9 @@ var Axios = class {
16242
17325
  },
16243
17326
  true
16244
17327
  );
16245
- config.method = (config.method || this.defaults.method || "get").toLowerCase();
17328
+ config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
16246
17329
  let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
16247
- headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
17330
+ headers && utils_default.forEach(methodList_default.concat("common"), (method) => {
16248
17331
  delete headers[method];
16249
17332
  });
16250
17333
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
@@ -16287,16 +17370,31 @@ var Axios = class {
16287
17370
  const onFulfilled = requestInterceptorChain[i++];
16288
17371
  const onRejected = requestInterceptorChain[i++];
16289
17372
  try {
16290
- newConfig = onFulfilled(newConfig);
17373
+ newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
16291
17374
  } catch (error) {
16292
- onRejected.call(this, error);
17375
+ if (!onRejected) {
17376
+ promise = Promise.reject(error);
17377
+ break;
17378
+ }
17379
+ try {
17380
+ const rejectedResult = onRejected.call(this, error);
17381
+ if (utils_default.isThenable(rejectedResult)) {
17382
+ promise = Promise.resolve(rejectedResult).then(
17383
+ () => dispatchRequest.call(this, newConfig)
17384
+ );
17385
+ }
17386
+ } catch (rejectedError) {
17387
+ promise = Promise.reject(rejectedError);
17388
+ }
16293
17389
  break;
16294
17390
  }
16295
17391
  }
16296
- try {
16297
- promise = dispatchRequest.call(this, newConfig);
16298
- } catch (error) {
16299
- return Promise.reject(error);
17392
+ if (!promise) {
17393
+ try {
17394
+ promise = dispatchRequest.call(this, newConfig);
17395
+ } catch (error) {
17396
+ promise = Promise.reject(error);
17397
+ }
16300
17398
  }
16301
17399
  i = 0;
16302
17400
  len = responseInterceptorChain.length;
@@ -16307,7 +17405,7 @@ var Axios = class {
16307
17405
  }
16308
17406
  getUri(config) {
16309
17407
  config = mergeConfig(this.defaults, config);
16310
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
17408
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
16311
17409
  return buildURL(fullPath, config.params, config.paramsSerializer);
16312
17410
  }
16313
17411
  };
@@ -16317,7 +17415,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
16317
17415
  mergeConfig(config || {}, {
16318
17416
  method,
16319
17417
  url: url2,
16320
- data: (config || {}).data
17418
+ data: config && utils_default.hasOwnProp(config, "data") ? config.data : void 0
16321
17419
  })
16322
17420
  );
16323
17421
  };
@@ -16344,7 +17442,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
16344
17442
  });
16345
17443
  var Axios_default = Axios;
16346
17444
 
16347
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js
17445
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
16348
17446
  var CancelToken = class _CancelToken {
16349
17447
  constructor(executor) {
16350
17448
  if (typeof executor !== "function") {
@@ -16442,19 +17540,19 @@ var CancelToken = class _CancelToken {
16442
17540
  };
16443
17541
  var CancelToken_default = CancelToken;
16444
17542
 
16445
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/spread.js
17543
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
16446
17544
  function spread(callback) {
16447
17545
  return function wrap(arr) {
16448
17546
  return callback.apply(null, arr);
16449
17547
  };
16450
17548
  }
16451
17549
 
16452
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js
17550
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
16453
17551
  function isAxiosError(payload) {
16454
17552
  return utils_default.isObject(payload) && payload.isAxiosError === true;
16455
17553
  }
16456
17554
 
16457
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/HttpStatusCode.js
17555
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
16458
17556
  var HttpStatusCode = {
16459
17557
  Continue: 100,
16460
17558
  SwitchingProtocols: 101,
@@ -16492,14 +17590,22 @@ var HttpStatusCode = {
16492
17590
  Gone: 410,
16493
17591
  LengthRequired: 411,
16494
17592
  PreconditionFailed: 412,
17593
+ /**
17594
+ * @deprecated Use `ContentTooLarge` instead.
17595
+ */
16495
17596
  PayloadTooLarge: 413,
17597
+ ContentTooLarge: 413,
16496
17598
  UriTooLong: 414,
16497
17599
  UnsupportedMediaType: 415,
16498
17600
  RangeNotSatisfiable: 416,
16499
17601
  ExpectationFailed: 417,
16500
17602
  ImATeapot: 418,
16501
17603
  MisdirectedRequest: 421,
17604
+ /**
17605
+ * @deprecated Use `UnprocessableContent` instead.
17606
+ */
16502
17607
  UnprocessableEntity: 422,
17608
+ UnprocessableContent: 422,
16503
17609
  Locked: 423,
16504
17610
  FailedDependency: 424,
16505
17611
  TooEarly: 425,
@@ -16519,6 +17625,7 @@ var HttpStatusCode = {
16519
17625
  LoopDetected: 508,
16520
17626
  NotExtended: 510,
16521
17627
  NetworkAuthenticationRequired: 511,
17628
+ WebServerReturnsAnUnknownError: 520,
16522
17629
  WebServerIsDown: 521,
16523
17630
  ConnectionTimedOut: 522,
16524
17631
  OriginIsUnreachable: 523,
@@ -16527,11 +17634,13 @@ var HttpStatusCode = {
16527
17634
  InvalidSslCertificate: 526
16528
17635
  };
16529
17636
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
16530
- HttpStatusCode[value] = key;
17637
+ if (HttpStatusCode[value] === void 0) {
17638
+ HttpStatusCode[value] = key;
17639
+ }
16531
17640
  });
16532
17641
  var HttpStatusCode_default = HttpStatusCode;
16533
17642
 
16534
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/axios.js
17643
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
16535
17644
  function createInstance(defaultConfig) {
16536
17645
  const context = new Axios_default(defaultConfig);
16537
17646
  const instance = bind(Axios_default.prototype.request, context);
@@ -16564,7 +17673,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
16564
17673
  axios.default = axios;
16565
17674
  var axios_default = axios;
16566
17675
 
16567
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/index.js
17676
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
16568
17677
  var {
16569
17678
  Axios: Axios2,
16570
17679
  AxiosError: AxiosError2,
@@ -16585,18 +17694,18 @@ var {
16585
17694
  create
16586
17695
  } = axios_default;
16587
17696
 
16588
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/Tunnel.js
17697
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
16589
17698
  var import_debug2 = __toESM(require_src(), 1);
16590
17699
  import { EventEmitter as EventEmitter3 } from "events";
16591
17700
 
16592
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/TunnelCluster.js
17701
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
16593
17702
  var import_debug = __toESM(require_src(), 1);
16594
17703
  import { EventEmitter as EventEmitter2 } from "events";
16595
17704
  import fs from "fs";
16596
17705
  import net from "net";
16597
17706
  import tls from "tls";
16598
17707
 
16599
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/HeaderHostTransformer.js
17708
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/HeaderHostTransformer.js
16600
17709
  import { Transform } from "stream";
16601
17710
  var HeaderHostTransformer = class extends Transform {
16602
17711
  host;
@@ -16614,7 +17723,7 @@ var HeaderHostTransformer = class extends Transform {
16614
17723
  }
16615
17724
  };
16616
17725
 
16617
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/TunnelCluster.js
17726
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
16618
17727
  var log = (0, import_debug.default)("pipenet:client");
16619
17728
  var TunnelCluster = class extends EventEmitter2 {
16620
17729
  opts;
@@ -16714,7 +17823,7 @@ var TunnelCluster = class extends EventEmitter2 {
16714
17823
  }
16715
17824
  };
16716
17825
 
16717
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/Tunnel.js
17826
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
16718
17827
  var log2 = (0, import_debug2.default)("pipenet:client");
16719
17828
  var Tunnel = class extends EventEmitter3 {
16720
17829
  cachedUrl;
@@ -16862,7 +17971,7 @@ var Tunnel = class extends EventEmitter3 {
16862
17971
  }
16863
17972
  };
16864
17973
 
16865
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/pipenet.js
17974
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/pipenet.js
16866
17975
  function pipenet(arg1, arg2, arg3) {
16867
17976
  const options = typeof arg1 === "object" ? arg1 : { ...arg2, port: arg1 };
16868
17977
  const callback = typeof arg1 === "object" ? arg2 : arg3;