alpic 0.0.0-staging.ge5d5ea3 → 0.0.0-staging.ge618bb9

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.
@@ -14,7 +14,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
14
14
  throw Error('Dynamic require of "' + x + '" is not supported');
15
15
  });
16
16
  var __commonJS = (cb, mod) => function __require2() {
17
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
+ try {
18
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
+ } catch (e) {
20
+ throw mod = 0, e;
21
+ }
18
22
  };
19
23
  var __export = (target, all3) => {
20
24
  for (var name in all3)
@@ -10422,9 +10426,9 @@ var require_ms = __commonJS({
10422
10426
  }
10423
10427
  });
10424
10428
 
10425
- // ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js
10429
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js
10426
10430
  var require_common = __commonJS({
10427
- "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js"(exports, module) {
10431
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js"(exports, module) {
10428
10432
  function setup(env) {
10429
10433
  createDebug.debug = createDebug;
10430
10434
  createDebug.default = createDebug;
@@ -10599,9 +10603,9 @@ var require_common = __commonJS({
10599
10603
  }
10600
10604
  });
10601
10605
 
10602
- // ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js
10606
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js
10603
10607
  var require_browser = __commonJS({
10604
- "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js"(exports, module) {
10608
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js"(exports, module) {
10605
10609
  exports.formatArgs = formatArgs;
10606
10610
  exports.save = save;
10607
10611
  exports.load = load;
@@ -10896,9 +10900,9 @@ var require_supports_color = __commonJS({
10896
10900
  }
10897
10901
  });
10898
10902
 
10899
- // ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js
10903
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js
10900
10904
  var require_node = __commonJS({
10901
- "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module) {
10905
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js"(exports, module) {
10902
10906
  var tty = __require("tty");
10903
10907
  var util3 = __require("util");
10904
10908
  exports.init = init;
@@ -11070,9 +11074,9 @@ var require_node = __commonJS({
11070
11074
  }
11071
11075
  });
11072
11076
 
11073
- // ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js
11077
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js
11074
11078
  var require_src = __commonJS({
11075
- "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js"(exports, module) {
11079
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js"(exports, module) {
11076
11080
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
11077
11081
  module.exports = require_browser();
11078
11082
  } else {
@@ -11081,6 +11085,456 @@ var require_src = __commonJS({
11081
11085
  }
11082
11086
  });
11083
11087
 
11088
+ // ../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js
11089
+ var require_promisify = __commonJS({
11090
+ "../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js"(exports) {
11091
+ "use strict";
11092
+ Object.defineProperty(exports, "__esModule", { value: true });
11093
+ function promisify(fn) {
11094
+ return function(req, opts) {
11095
+ return new Promise((resolve, reject) => {
11096
+ fn.call(this, req, opts, (err, rtn) => {
11097
+ if (err) {
11098
+ reject(err);
11099
+ } else {
11100
+ resolve(rtn);
11101
+ }
11102
+ });
11103
+ });
11104
+ };
11105
+ }
11106
+ exports.default = promisify;
11107
+ }
11108
+ });
11109
+
11110
+ // ../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js
11111
+ var require_src2 = __commonJS({
11112
+ "../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js"(exports, module) {
11113
+ "use strict";
11114
+ var __importDefault = exports && exports.__importDefault || function(mod) {
11115
+ return mod && mod.__esModule ? mod : { "default": mod };
11116
+ };
11117
+ var events_1 = __require("events");
11118
+ var debug_1 = __importDefault(require_src());
11119
+ var promisify_1 = __importDefault(require_promisify());
11120
+ var debug3 = debug_1.default("agent-base");
11121
+ function isAgent(v) {
11122
+ return Boolean(v) && typeof v.addRequest === "function";
11123
+ }
11124
+ function isSecureEndpoint() {
11125
+ const { stack } = new Error();
11126
+ if (typeof stack !== "string")
11127
+ return false;
11128
+ return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
11129
+ }
11130
+ function createAgent(callback, opts) {
11131
+ return new createAgent.Agent(callback, opts);
11132
+ }
11133
+ (function(createAgent2) {
11134
+ class Agent extends events_1.EventEmitter {
11135
+ constructor(callback, _opts) {
11136
+ super();
11137
+ let opts = _opts;
11138
+ if (typeof callback === "function") {
11139
+ this.callback = callback;
11140
+ } else if (callback) {
11141
+ opts = callback;
11142
+ }
11143
+ this.timeout = null;
11144
+ if (opts && typeof opts.timeout === "number") {
11145
+ this.timeout = opts.timeout;
11146
+ }
11147
+ this.maxFreeSockets = 1;
11148
+ this.maxSockets = 1;
11149
+ this.maxTotalSockets = Infinity;
11150
+ this.sockets = {};
11151
+ this.freeSockets = {};
11152
+ this.requests = {};
11153
+ this.options = {};
11154
+ }
11155
+ get defaultPort() {
11156
+ if (typeof this.explicitDefaultPort === "number") {
11157
+ return this.explicitDefaultPort;
11158
+ }
11159
+ return isSecureEndpoint() ? 443 : 80;
11160
+ }
11161
+ set defaultPort(v) {
11162
+ this.explicitDefaultPort = v;
11163
+ }
11164
+ get protocol() {
11165
+ if (typeof this.explicitProtocol === "string") {
11166
+ return this.explicitProtocol;
11167
+ }
11168
+ return isSecureEndpoint() ? "https:" : "http:";
11169
+ }
11170
+ set protocol(v) {
11171
+ this.explicitProtocol = v;
11172
+ }
11173
+ callback(req, opts, fn) {
11174
+ throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`');
11175
+ }
11176
+ /**
11177
+ * Called by node-core's "_http_client.js" module when creating
11178
+ * a new HTTP request with this Agent instance.
11179
+ *
11180
+ * @api public
11181
+ */
11182
+ addRequest(req, _opts) {
11183
+ const opts = Object.assign({}, _opts);
11184
+ if (typeof opts.secureEndpoint !== "boolean") {
11185
+ opts.secureEndpoint = isSecureEndpoint();
11186
+ }
11187
+ if (opts.host == null) {
11188
+ opts.host = "localhost";
11189
+ }
11190
+ if (opts.port == null) {
11191
+ opts.port = opts.secureEndpoint ? 443 : 80;
11192
+ }
11193
+ if (opts.protocol == null) {
11194
+ opts.protocol = opts.secureEndpoint ? "https:" : "http:";
11195
+ }
11196
+ if (opts.host && opts.path) {
11197
+ delete opts.path;
11198
+ }
11199
+ delete opts.agent;
11200
+ delete opts.hostname;
11201
+ delete opts._defaultAgent;
11202
+ delete opts.defaultPort;
11203
+ delete opts.createConnection;
11204
+ req._last = true;
11205
+ req.shouldKeepAlive = false;
11206
+ let timedOut = false;
11207
+ let timeoutId = null;
11208
+ const timeoutMs = opts.timeout || this.timeout;
11209
+ const onerror = (err) => {
11210
+ if (req._hadError)
11211
+ return;
11212
+ req.emit("error", err);
11213
+ req._hadError = true;
11214
+ };
11215
+ const ontimeout = () => {
11216
+ timeoutId = null;
11217
+ timedOut = true;
11218
+ const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`);
11219
+ err.code = "ETIMEOUT";
11220
+ onerror(err);
11221
+ };
11222
+ const callbackError = (err) => {
11223
+ if (timedOut)
11224
+ return;
11225
+ if (timeoutId !== null) {
11226
+ clearTimeout(timeoutId);
11227
+ timeoutId = null;
11228
+ }
11229
+ onerror(err);
11230
+ };
11231
+ const onsocket = (socket) => {
11232
+ if (timedOut)
11233
+ return;
11234
+ if (timeoutId != null) {
11235
+ clearTimeout(timeoutId);
11236
+ timeoutId = null;
11237
+ }
11238
+ if (isAgent(socket)) {
11239
+ debug3("Callback returned another Agent instance %o", socket.constructor.name);
11240
+ socket.addRequest(req, opts);
11241
+ return;
11242
+ }
11243
+ if (socket) {
11244
+ socket.once("free", () => {
11245
+ this.freeSocket(socket, opts);
11246
+ });
11247
+ req.onSocket(socket);
11248
+ return;
11249
+ }
11250
+ const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``);
11251
+ onerror(err);
11252
+ };
11253
+ if (typeof this.callback !== "function") {
11254
+ onerror(new Error("`callback` is not defined"));
11255
+ return;
11256
+ }
11257
+ if (!this.promisifiedCallback) {
11258
+ if (this.callback.length >= 3) {
11259
+ debug3("Converting legacy callback function to promise");
11260
+ this.promisifiedCallback = promisify_1.default(this.callback);
11261
+ } else {
11262
+ this.promisifiedCallback = this.callback;
11263
+ }
11264
+ }
11265
+ if (typeof timeoutMs === "number" && timeoutMs > 0) {
11266
+ timeoutId = setTimeout(ontimeout, timeoutMs);
11267
+ }
11268
+ if ("port" in opts && typeof opts.port !== "number") {
11269
+ opts.port = Number(opts.port);
11270
+ }
11271
+ try {
11272
+ debug3("Resolving socket for %o request: %o", opts.protocol, `${req.method} ${req.path}`);
11273
+ Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError);
11274
+ } catch (err) {
11275
+ Promise.reject(err).catch(callbackError);
11276
+ }
11277
+ }
11278
+ freeSocket(socket, opts) {
11279
+ debug3("Freeing socket %o %o", socket.constructor.name, opts);
11280
+ socket.destroy();
11281
+ }
11282
+ destroy() {
11283
+ debug3("Destroying agent %o", this.constructor.name);
11284
+ }
11285
+ }
11286
+ createAgent2.Agent = Agent;
11287
+ createAgent2.prototype = createAgent2.Agent.prototype;
11288
+ })(createAgent || (createAgent = {}));
11289
+ module.exports = createAgent;
11290
+ }
11291
+ });
11292
+
11293
+ // ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
11294
+ var require_parse_proxy_response = __commonJS({
11295
+ "../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
11296
+ "use strict";
11297
+ var __importDefault = exports && exports.__importDefault || function(mod) {
11298
+ return mod && mod.__esModule ? mod : { "default": mod };
11299
+ };
11300
+ Object.defineProperty(exports, "__esModule", { value: true });
11301
+ var debug_1 = __importDefault(require_src());
11302
+ var debug3 = debug_1.default("https-proxy-agent:parse-proxy-response");
11303
+ function parseProxyResponse(socket) {
11304
+ return new Promise((resolve, reject) => {
11305
+ let buffersLength = 0;
11306
+ const buffers = [];
11307
+ function read() {
11308
+ const b = socket.read();
11309
+ if (b)
11310
+ ondata(b);
11311
+ else
11312
+ socket.once("readable", read);
11313
+ }
11314
+ function cleanup() {
11315
+ socket.removeListener("end", onend);
11316
+ socket.removeListener("error", onerror);
11317
+ socket.removeListener("close", onclose);
11318
+ socket.removeListener("readable", read);
11319
+ }
11320
+ function onclose(err) {
11321
+ debug3("onclose had error %o", err);
11322
+ }
11323
+ function onend() {
11324
+ debug3("onend");
11325
+ }
11326
+ function onerror(err) {
11327
+ cleanup();
11328
+ debug3("onerror %o", err);
11329
+ reject(err);
11330
+ }
11331
+ function ondata(b) {
11332
+ buffers.push(b);
11333
+ buffersLength += b.length;
11334
+ const buffered = Buffer.concat(buffers, buffersLength);
11335
+ const endOfHeaders = buffered.indexOf("\r\n\r\n");
11336
+ if (endOfHeaders === -1) {
11337
+ debug3("have not received end of HTTP headers yet...");
11338
+ read();
11339
+ return;
11340
+ }
11341
+ const firstLine = buffered.toString("ascii", 0, buffered.indexOf("\r\n"));
11342
+ const statusCode = +firstLine.split(" ")[1];
11343
+ debug3("got proxy server response: %o", firstLine);
11344
+ resolve({
11345
+ statusCode,
11346
+ buffered
11347
+ });
11348
+ }
11349
+ socket.on("error", onerror);
11350
+ socket.on("close", onclose);
11351
+ socket.on("end", onend);
11352
+ read();
11353
+ });
11354
+ }
11355
+ exports.default = parseProxyResponse;
11356
+ }
11357
+ });
11358
+
11359
+ // ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js
11360
+ var require_agent = __commonJS({
11361
+ "../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
11362
+ "use strict";
11363
+ var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
11364
+ function adopt(value) {
11365
+ return value instanceof P ? value : new P(function(resolve) {
11366
+ resolve(value);
11367
+ });
11368
+ }
11369
+ return new (P || (P = Promise))(function(resolve, reject) {
11370
+ function fulfilled(value) {
11371
+ try {
11372
+ step(generator.next(value));
11373
+ } catch (e) {
11374
+ reject(e);
11375
+ }
11376
+ }
11377
+ function rejected(value) {
11378
+ try {
11379
+ step(generator["throw"](value));
11380
+ } catch (e) {
11381
+ reject(e);
11382
+ }
11383
+ }
11384
+ function step(result) {
11385
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
11386
+ }
11387
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11388
+ });
11389
+ };
11390
+ var __importDefault = exports && exports.__importDefault || function(mod) {
11391
+ return mod && mod.__esModule ? mod : { "default": mod };
11392
+ };
11393
+ Object.defineProperty(exports, "__esModule", { value: true });
11394
+ var net_1 = __importDefault(__require("net"));
11395
+ var tls_1 = __importDefault(__require("tls"));
11396
+ var url_1 = __importDefault(__require("url"));
11397
+ var assert_1 = __importDefault(__require("assert"));
11398
+ var debug_1 = __importDefault(require_src());
11399
+ var agent_base_1 = require_src2();
11400
+ var parse_proxy_response_1 = __importDefault(require_parse_proxy_response());
11401
+ var debug3 = debug_1.default("https-proxy-agent:agent");
11402
+ var HttpsProxyAgent2 = class extends agent_base_1.Agent {
11403
+ constructor(_opts) {
11404
+ let opts;
11405
+ if (typeof _opts === "string") {
11406
+ opts = url_1.default.parse(_opts);
11407
+ } else {
11408
+ opts = _opts;
11409
+ }
11410
+ if (!opts) {
11411
+ throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");
11412
+ }
11413
+ debug3("creating new HttpsProxyAgent instance: %o", opts);
11414
+ super(opts);
11415
+ const proxy = Object.assign({}, opts);
11416
+ this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol);
11417
+ proxy.host = proxy.hostname || proxy.host;
11418
+ if (typeof proxy.port === "string") {
11419
+ proxy.port = parseInt(proxy.port, 10);
11420
+ }
11421
+ if (!proxy.port && proxy.host) {
11422
+ proxy.port = this.secureProxy ? 443 : 80;
11423
+ }
11424
+ if (this.secureProxy && !("ALPNProtocols" in proxy)) {
11425
+ proxy.ALPNProtocols = ["http 1.1"];
11426
+ }
11427
+ if (proxy.host && proxy.path) {
11428
+ delete proxy.path;
11429
+ delete proxy.pathname;
11430
+ }
11431
+ this.proxy = proxy;
11432
+ }
11433
+ /**
11434
+ * Called when the node-core HTTP client library is creating a
11435
+ * new HTTP request.
11436
+ *
11437
+ * @api protected
11438
+ */
11439
+ callback(req, opts) {
11440
+ return __awaiter(this, void 0, void 0, function* () {
11441
+ const { proxy, secureProxy } = this;
11442
+ let socket;
11443
+ if (secureProxy) {
11444
+ debug3("Creating `tls.Socket`: %o", proxy);
11445
+ socket = tls_1.default.connect(proxy);
11446
+ } else {
11447
+ debug3("Creating `net.Socket`: %o", proxy);
11448
+ socket = net_1.default.connect(proxy);
11449
+ }
11450
+ const headers = Object.assign({}, proxy.headers);
11451
+ const hostname = `${opts.host}:${opts.port}`;
11452
+ let payload = `CONNECT ${hostname} HTTP/1.1\r
11453
+ `;
11454
+ if (proxy.auth) {
11455
+ headers["Proxy-Authorization"] = `Basic ${Buffer.from(proxy.auth).toString("base64")}`;
11456
+ }
11457
+ let { host, port, secureEndpoint } = opts;
11458
+ if (!isDefaultPort(port, secureEndpoint)) {
11459
+ host += `:${port}`;
11460
+ }
11461
+ headers.Host = host;
11462
+ headers.Connection = "close";
11463
+ for (const name of Object.keys(headers)) {
11464
+ payload += `${name}: ${headers[name]}\r
11465
+ `;
11466
+ }
11467
+ const proxyResponsePromise = parse_proxy_response_1.default(socket);
11468
+ socket.write(`${payload}\r
11469
+ `);
11470
+ const { statusCode, buffered } = yield proxyResponsePromise;
11471
+ if (statusCode === 200) {
11472
+ req.once("socket", resume);
11473
+ if (opts.secureEndpoint) {
11474
+ debug3("Upgrading socket connection to TLS");
11475
+ const servername = opts.servername || opts.host;
11476
+ return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, "host", "hostname", "path", "port")), {
11477
+ socket,
11478
+ servername
11479
+ }));
11480
+ }
11481
+ return socket;
11482
+ }
11483
+ socket.destroy();
11484
+ const fakeSocket = new net_1.default.Socket({ writable: false });
11485
+ fakeSocket.readable = true;
11486
+ req.once("socket", (s) => {
11487
+ debug3("replaying proxy buffer for failed request");
11488
+ assert_1.default(s.listenerCount("data") > 0);
11489
+ s.push(buffered);
11490
+ s.push(null);
11491
+ });
11492
+ return fakeSocket;
11493
+ });
11494
+ }
11495
+ };
11496
+ exports.default = HttpsProxyAgent2;
11497
+ function resume(socket) {
11498
+ socket.resume();
11499
+ }
11500
+ function isDefaultPort(port, secure) {
11501
+ return Boolean(!secure && port === 80 || secure && port === 443);
11502
+ }
11503
+ function isHTTPS(protocol) {
11504
+ return typeof protocol === "string" ? /^https:?$/i.test(protocol) : false;
11505
+ }
11506
+ function omit(obj, ...keys) {
11507
+ const ret = {};
11508
+ let key;
11509
+ for (key in obj) {
11510
+ if (!keys.includes(key)) {
11511
+ ret[key] = obj[key];
11512
+ }
11513
+ }
11514
+ return ret;
11515
+ }
11516
+ }
11517
+ });
11518
+
11519
+ // ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js
11520
+ var require_dist = __commonJS({
11521
+ "../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js"(exports, module) {
11522
+ "use strict";
11523
+ var __importDefault = exports && exports.__importDefault || function(mod) {
11524
+ return mod && mod.__esModule ? mod : { "default": mod };
11525
+ };
11526
+ var agent_1 = __importDefault(require_agent());
11527
+ function createHttpsProxyAgent(opts) {
11528
+ return new agent_1.default(opts);
11529
+ }
11530
+ (function(createHttpsProxyAgent2) {
11531
+ createHttpsProxyAgent2.HttpsProxyAgent = agent_1.default;
11532
+ createHttpsProxyAgent2.prototype = agent_1.default.prototype;
11533
+ })(createHttpsProxyAgent || (createHttpsProxyAgent = {}));
11534
+ module.exports = createHttpsProxyAgent;
11535
+ }
11536
+ });
11537
+
11084
11538
  // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js
11085
11539
  var require_debug = __commonJS({
11086
11540
  "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js"(exports, module) {
@@ -11612,14 +12066,14 @@ var require_follow_redirects = __commonJS({
11612
12066
  }
11613
12067
  });
11614
12068
 
11615
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/bind.js
12069
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/bind.js
11616
12070
  function bind(fn, thisArg) {
11617
12071
  return function wrap() {
11618
12072
  return fn.apply(thisArg, arguments);
11619
12073
  };
11620
12074
  }
11621
12075
 
11622
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/utils.js
12076
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/utils.js
11623
12077
  var { toString } = Object.prototype;
11624
12078
  var { getPrototypeOf } = Object;
11625
12079
  var { iterator, toStringTag } = Symbol;
@@ -11947,29 +12401,29 @@ function isSpecCompliantForm(thing) {
11947
12401
  return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
11948
12402
  }
11949
12403
  var toJSONObject = (obj) => {
11950
- const stack = new Array(10);
11951
- const visit = (source, i) => {
12404
+ const visited = /* @__PURE__ */ new WeakSet();
12405
+ const visit = (source) => {
11952
12406
  if (isObject(source)) {
11953
- if (stack.indexOf(source) >= 0) {
12407
+ if (visited.has(source)) {
11954
12408
  return;
11955
12409
  }
11956
12410
  if (isBuffer(source)) {
11957
12411
  return source;
11958
12412
  }
11959
12413
  if (!("toJSON" in source)) {
11960
- stack[i] = source;
12414
+ visited.add(source);
11961
12415
  const target = isArray(source) ? [] : {};
11962
12416
  forEach(source, (value, key) => {
11963
- const reducedValue = visit(value, i + 1);
12417
+ const reducedValue = visit(value);
11964
12418
  !isUndefined(reducedValue) && (target[key] = reducedValue);
11965
12419
  });
11966
- stack[i] = void 0;
12420
+ visited.delete(source);
11967
12421
  return target;
11968
12422
  }
11969
12423
  }
11970
12424
  return source;
11971
12425
  };
11972
- return visit(obj, 0);
12426
+ return visit(obj);
11973
12427
  };
11974
12428
  var isAsyncFn = kindOfTest("AsyncFunction");
11975
12429
  var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
@@ -12058,7 +12512,7 @@ var utils_default = {
12058
12512
  isIterable
12059
12513
  };
12060
12514
 
12061
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js
12515
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js
12062
12516
  var ignoreDuplicateOf = utils_default.toObjectSet([
12063
12517
  "age",
12064
12518
  "authorization",
@@ -12103,9 +12557,7 @@ var parseHeaders_default = (rawHeaders) => {
12103
12557
  return parsed;
12104
12558
  };
12105
12559
 
12106
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/AxiosHeaders.js
12107
- var $internals = /* @__PURE__ */ Symbol("internals");
12108
- var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
12560
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12109
12561
  function trimSPorHTAB(str) {
12110
12562
  let start = 0;
12111
12563
  let end = str.length;
@@ -12125,12 +12577,29 @@ function trimSPorHTAB(str) {
12125
12577
  }
12126
12578
  return start === 0 && end === str.length ? str : str.slice(start, end);
12127
12579
  }
12580
+ var INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g");
12581
+ var INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
12582
+ function sanitizeValue(value, invalidChars) {
12583
+ if (utils_default.isArray(value)) {
12584
+ return value.map((item) => sanitizeValue(item, invalidChars));
12585
+ }
12586
+ return trimSPorHTAB(String(value).replace(invalidChars, ""));
12587
+ }
12588
+ var sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
12589
+ var sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
12590
+ function toByteStringHeaderObject(headers) {
12591
+ const byteStringHeaders = /* @__PURE__ */ Object.create(null);
12592
+ utils_default.forEach(headers.toJSON(), (value, header) => {
12593
+ byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
12594
+ });
12595
+ return byteStringHeaders;
12596
+ }
12597
+
12598
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/AxiosHeaders.js
12599
+ var $internals = /* @__PURE__ */ Symbol("internals");
12128
12600
  function normalizeHeader(header) {
12129
12601
  return header && String(header).trim().toLowerCase();
12130
12602
  }
12131
- function sanitizeHeaderValue(str) {
12132
- return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
12133
- }
12134
12603
  function normalizeValue(value) {
12135
12604
  if (value === false || value == null) {
12136
12605
  return value;
@@ -12365,7 +12834,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12365
12834
  utils_default.freezeMethods(AxiosHeaders);
12366
12835
  var AxiosHeaders_default = AxiosHeaders;
12367
12836
 
12368
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/AxiosError.js
12837
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/AxiosError.js
12369
12838
  var REDACTED = "[REDACTED ****]";
12370
12839
  function hasOwnOrPrototypeToJSON(source) {
12371
12840
  if (utils_default.hasOwnProp(source, "toJSON")) {
@@ -12500,11 +12969,11 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
12500
12969
  AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
12501
12970
  var AxiosError_default = AxiosError;
12502
12971
 
12503
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/classes/FormData.js
12972
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/classes/FormData.js
12504
12973
  var import_form_data = __toESM(require_form_data(), 1);
12505
12974
  var FormData_default = import_form_data.default;
12506
12975
 
12507
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/toFormData.js
12976
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/toFormData.js
12508
12977
  function isVisitable(thing) {
12509
12978
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
12510
12979
  }
@@ -12629,7 +13098,7 @@ function toFormData(obj, formData, options) {
12629
13098
  }
12630
13099
  var toFormData_default = toFormData;
12631
13100
 
12632
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13101
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
12633
13102
  function encode(str) {
12634
13103
  const charMap = {
12635
13104
  "!": "%21",
@@ -12661,7 +13130,7 @@ prototype.toString = function toString2(encoder) {
12661
13130
  };
12662
13131
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
12663
13132
 
12664
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js
13133
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js
12665
13134
  function encode2(val) {
12666
13135
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
12667
13136
  }
@@ -12690,7 +13159,7 @@ function buildURL(url2, params, options) {
12690
13159
  return url2;
12691
13160
  }
12692
13161
 
12693
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js
13162
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js
12694
13163
  var InterceptorManager = class {
12695
13164
  constructor() {
12696
13165
  this.handlers = [];
@@ -12755,7 +13224,7 @@ var InterceptorManager = class {
12755
13224
  };
12756
13225
  var InterceptorManager_default = InterceptorManager;
12757
13226
 
12758
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/defaults/transitional.js
13227
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/defaults/transitional.js
12759
13228
  var transitional_default = {
12760
13229
  silentJSONParsing: true,
12761
13230
  forcedJSONParsing: true,
@@ -12763,14 +13232,14 @@ var transitional_default = {
12763
13232
  legacyInterceptorReqResOrdering: true
12764
13233
  };
12765
13234
 
12766
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
13235
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
12767
13236
  import crypto from "crypto";
12768
13237
 
12769
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13238
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
12770
13239
  import url from "url";
12771
13240
  var URLSearchParams_default = url.URLSearchParams;
12772
13241
 
12773
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
13242
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
12774
13243
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
12775
13244
  var DIGIT = "0123456789";
12776
13245
  var ALPHABET = {
@@ -12800,7 +13269,7 @@ var node_default = {
12800
13269
  protocols: ["http", "https", "file", "data"]
12801
13270
  };
12802
13271
 
12803
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/common/utils.js
13272
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/common/utils.js
12804
13273
  var utils_exports = {};
12805
13274
  __export(utils_exports, {
12806
13275
  hasBrowserEnv: () => hasBrowserEnv,
@@ -12818,13 +13287,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
12818
13287
  })();
12819
13288
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
12820
13289
 
12821
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/index.js
13290
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/index.js
12822
13291
  var platform_default = {
12823
13292
  ...utils_exports,
12824
13293
  ...node_default
12825
13294
  };
12826
13295
 
12827
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/toURLEncodedForm.js
13296
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/toURLEncodedForm.js
12828
13297
  function toURLEncodedForm(data, options) {
12829
13298
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
12830
13299
  visitor: function(value, key, path, helpers) {
@@ -12838,7 +13307,7 @@ function toURLEncodedForm(data, options) {
12838
13307
  });
12839
13308
  }
12840
13309
 
12841
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/formDataToJSON.js
13310
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToJSON.js
12842
13311
  function parsePropPath(name) {
12843
13312
  return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
12844
13313
  return match[0] === "[]" ? "" : match[1] || match[0];
@@ -12871,7 +13340,7 @@ function formDataToJSON(formData) {
12871
13340
  }
12872
13341
  return !isNumericKey;
12873
13342
  }
12874
- if (!target[name] || !utils_default.isObject(target[name])) {
13343
+ if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) {
12875
13344
  target[name] = [];
12876
13345
  }
12877
13346
  const result = buildPath(path, value, target[name], index);
@@ -12891,7 +13360,7 @@ function formDataToJSON(formData) {
12891
13360
  }
12892
13361
  var formDataToJSON_default = formDataToJSON;
12893
13362
 
12894
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/defaults/index.js
13363
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/defaults/index.js
12895
13364
  var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
12896
13365
  function stringifySafely(rawValue, parser, encoder) {
12897
13366
  if (utils_default.isString(rawValue)) {
@@ -13008,7 +13477,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"]
13008
13477
  });
13009
13478
  var defaults_default = defaults;
13010
13479
 
13011
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/transformData.js
13480
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/transformData.js
13012
13481
  function transformData(fns, response) {
13013
13482
  const config = this || defaults_default;
13014
13483
  const context = response || config;
@@ -13021,12 +13490,12 @@ function transformData(fns, response) {
13021
13490
  return data;
13022
13491
  }
13023
13492
 
13024
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js
13493
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js
13025
13494
  function isCancel(value) {
13026
13495
  return !!(value && value.__CANCEL__);
13027
13496
  }
13028
13497
 
13029
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/cancel/CanceledError.js
13498
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/CanceledError.js
13030
13499
  var CanceledError = class extends AxiosError_default {
13031
13500
  /**
13032
13501
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -13045,7 +13514,7 @@ var CanceledError = class extends AxiosError_default {
13045
13514
  };
13046
13515
  var CanceledError_default = CanceledError;
13047
13516
 
13048
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/settle.js
13517
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/settle.js
13049
13518
  function settle(resolve, reject, response) {
13050
13519
  const validateStatus2 = response.config.validateStatus;
13051
13520
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -13061,7 +13530,7 @@ function settle(resolve, reject, response) {
13061
13530
  }
13062
13531
  }
13063
13532
 
13064
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js
13533
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js
13065
13534
  function isAbsoluteURL(url2) {
13066
13535
  if (typeof url2 !== "string") {
13067
13536
  return false;
@@ -13069,12 +13538,12 @@ function isAbsoluteURL(url2) {
13069
13538
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
13070
13539
  }
13071
13540
 
13072
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js
13541
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js
13073
13542
  function combineURLs(baseURL, relativeURL) {
13074
13543
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
13075
13544
  }
13076
13545
 
13077
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js
13546
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js
13078
13547
  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
13079
13548
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
13080
13549
  if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
@@ -13150,7 +13619,8 @@ function getEnv(key) {
13150
13619
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13151
13620
  }
13152
13621
 
13153
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13622
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13623
+ var import_https_proxy_agent = __toESM(require_dist(), 1);
13154
13624
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
13155
13625
  import http from "http";
13156
13626
  import https from "https";
@@ -13159,17 +13629,17 @@ import util2 from "util";
13159
13629
  import { resolve as resolvePath } from "path";
13160
13630
  import zlib from "zlib";
13161
13631
 
13162
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/env/data.js
13163
- var VERSION = "1.16.0";
13632
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/env/data.js
13633
+ var VERSION = "1.16.1";
13164
13634
 
13165
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/parseProtocol.js
13635
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/parseProtocol.js
13166
13636
  function parseProtocol(url2) {
13167
13637
  const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13168
13638
  return match && match[1] || "";
13169
13639
  }
13170
13640
 
13171
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/fromDataURI.js
13172
- var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
13641
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/fromDataURI.js
13642
+ var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
13173
13643
  function fromDataURI(uri, asBlob, options) {
13174
13644
  const _Blob = options && options.Blob || platform_default.classes.Blob;
13175
13645
  const protocol = parseProtocol(uri);
@@ -13182,10 +13652,17 @@ function fromDataURI(uri, asBlob, options) {
13182
13652
  if (!match) {
13183
13653
  throw new AxiosError_default("Invalid URL", AxiosError_default.ERR_INVALID_URL);
13184
13654
  }
13185
- const mime = match[1];
13186
- const isBase64 = match[2];
13187
- const body = match[3];
13188
- const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");
13655
+ const type = match[1];
13656
+ const params = match[2];
13657
+ const encoding = match[3] ? "base64" : "utf8";
13658
+ const body = match[4];
13659
+ let mime;
13660
+ if (type) {
13661
+ mime = params ? type + params : type;
13662
+ } else if (params) {
13663
+ mime = "text/plain" + params;
13664
+ }
13665
+ const buffer = Buffer.from(decodeURIComponent(body), encoding);
13189
13666
  if (asBlob) {
13190
13667
  if (!_Blob) {
13191
13668
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -13197,10 +13674,10 @@ function fromDataURI(uri, asBlob, options) {
13197
13674
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
13198
13675
  }
13199
13676
 
13200
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13677
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13201
13678
  import stream3 from "stream";
13202
13679
 
13203
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/AxiosTransformStream.js
13680
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/AxiosTransformStream.js
13204
13681
  import stream from "stream";
13205
13682
  var kInternals = /* @__PURE__ */ Symbol("internals");
13206
13683
  var AxiosTransformStream = class extends stream.Transform {
@@ -13323,14 +13800,14 @@ var AxiosTransformStream = class extends stream.Transform {
13323
13800
  };
13324
13801
  var AxiosTransformStream_default = AxiosTransformStream;
13325
13802
 
13326
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13803
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13327
13804
  import { EventEmitter } from "events";
13328
13805
 
13329
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13806
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13330
13807
  import util from "util";
13331
13808
  import { Readable } from "stream";
13332
13809
 
13333
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/readBlob.js
13810
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/readBlob.js
13334
13811
  var { asyncIterator } = Symbol;
13335
13812
  var readBlob = async function* (blob) {
13336
13813
  if (blob.stream) {
@@ -13345,7 +13822,7 @@ var readBlob = async function* (blob) {
13345
13822
  };
13346
13823
  var readBlob_default = readBlob;
13347
13824
 
13348
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13825
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13349
13826
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13350
13827
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
13351
13828
  var CRLF = "\r\n";
@@ -13430,7 +13907,7 @@ var formDataToStream = (form, headersHandler, options) => {
13430
13907
  };
13431
13908
  var formDataToStream_default = formDataToStream;
13432
13909
 
13433
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
13910
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
13434
13911
  import stream2 from "stream";
13435
13912
  var ZlibHeaderTransformStream = class extends stream2.Transform {
13436
13913
  __transform(chunk, encoding, callback) {
@@ -13452,7 +13929,7 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
13452
13929
  };
13453
13930
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
13454
13931
 
13455
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/callbackify.js
13932
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/callbackify.js
13456
13933
  var callbackify = (fn, reducer) => {
13457
13934
  return utils_default.isAsyncFn(fn) ? function(...args) {
13458
13935
  const cb = args.pop();
@@ -13467,7 +13944,7 @@ var callbackify = (fn, reducer) => {
13467
13944
  };
13468
13945
  var callbackify_default = callbackify;
13469
13946
 
13470
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/shouldBypassProxy.js
13947
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/shouldBypassProxy.js
13471
13948
  var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
13472
13949
  var isIPv4Loopback = (host) => {
13473
13950
  const parts = host.split(".");
@@ -13589,7 +14066,7 @@ function shouldBypassProxy(location) {
13589
14066
  });
13590
14067
  }
13591
14068
 
13592
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
14069
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
13593
14070
  function speedometer(samplesCount, min) {
13594
14071
  samplesCount = samplesCount || 10;
13595
14072
  const bytes = new Array(samplesCount);
@@ -13625,7 +14102,7 @@ function speedometer(samplesCount, min) {
13625
14102
  }
13626
14103
  var speedometer_default = speedometer;
13627
14104
 
13628
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/throttle.js
14105
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/throttle.js
13629
14106
  function throttle(fn, freq) {
13630
14107
  let timestamp = 0;
13631
14108
  let threshold = 1e3 / freq;
@@ -13660,11 +14137,14 @@ function throttle(fn, freq) {
13660
14137
  }
13661
14138
  var throttle_default = throttle;
13662
14139
 
13663
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/progressEventReducer.js
14140
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/progressEventReducer.js
13664
14141
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
13665
14142
  let bytesNotified = 0;
13666
14143
  const _speedometer = speedometer_default(50, 250);
13667
14144
  return throttle_default((e) => {
14145
+ if (!e || typeof e.loaded !== "number") {
14146
+ return;
14147
+ }
13668
14148
  const rawLoaded = e.loaded;
13669
14149
  const total = e.lengthComputable ? e.total : void 0;
13670
14150
  const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
@@ -13698,7 +14178,7 @@ var progressEventDecorator = (total, throttled) => {
13698
14178
  };
13699
14179
  var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
13700
14180
 
13701
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14181
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
13702
14182
  function estimateDataURLDecodedBytes(url2) {
13703
14183
  if (!url2 || typeof url2 !== "string") return 0;
13704
14184
  if (!url2.startsWith("data:")) return 0;
@@ -13771,7 +14251,7 @@ function estimateDataURLDecodedBytes(url2) {
13771
14251
  return bytes;
13772
14252
  }
13773
14253
 
13774
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
14254
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13775
14255
  var zlibOptions = {
13776
14256
  flush: zlib.constants.Z_SYNC_FLUSH,
13777
14257
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -13797,6 +14277,20 @@ function setFormDataHeaders(headers, formHeaders, policy) {
13797
14277
  }
13798
14278
  var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
13799
14279
  var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
14280
+ var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
14281
+ var tunnelingAgentCache = /* @__PURE__ */ new Map();
14282
+ var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
14283
+ function getTunnelingAgent(agentOptions, userHttpsAgent) {
14284
+ const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
14285
+ const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
14286
+ let agent = cache.get(key);
14287
+ if (agent) return agent;
14288
+ const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
14289
+ agent = new import_https_proxy_agent.default(merged);
14290
+ agent[kAxiosInstalledTunnel] = true;
14291
+ cache.set(key, agent);
14292
+ return agent;
14293
+ }
13800
14294
  var supportedProtocols = platform_default.protocols.map((protocol) => {
13801
14295
  return protocol + ":";
13802
14296
  });
@@ -13895,7 +14389,7 @@ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
13895
14389
  options.beforeRedirects.config(options, responseDetails, requestDetails);
13896
14390
  }
13897
14391
  }
13898
- function setProxy(options, configProxy, location, isRedirect) {
14392
+ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent) {
13899
14393
  let proxy = configProxy;
13900
14394
  if (!proxy && proxy !== false) {
13901
14395
  const proxyUrl = getProxyForUrl(location);
@@ -13912,6 +14406,9 @@ function setProxy(options, configProxy, location, isRedirect) {
13912
14406
  }
13913
14407
  }
13914
14408
  }
14409
+ if (isRedirect && options.agent && options.agent[kAxiosInstalledTunnel]) {
14410
+ options.agent = void 0;
14411
+ }
13915
14412
  if (proxy) {
13916
14413
  const isProxyURL = proxy instanceof URL;
13917
14414
  const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
@@ -13931,31 +14428,61 @@ function setProxy(options, configProxy, location, isRedirect) {
13931
14428
  } else if (authIsObject) {
13932
14429
  throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
13933
14430
  }
13934
- const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
13935
- options.headers["Proxy-Authorization"] = "Basic " + base64;
13936
14431
  }
13937
- let hasUserHostHeader = false;
13938
- for (const name of Object.keys(options.headers)) {
13939
- if (name.toLowerCase() === "host") {
13940
- hasUserHostHeader = true;
13941
- break;
14432
+ const targetIsHttps = isHttps.test(options.protocol);
14433
+ if (targetIsHttps) {
14434
+ if (!(configHttpsAgent instanceof import_https_proxy_agent.default)) {
14435
+ const proxyHost = readProxyField("hostname") || readProxyField("host");
14436
+ const proxyPort = readProxyField("port");
14437
+ const rawProxyProtocol = readProxyField("protocol");
14438
+ const normalizedProtocol = rawProxyProtocol ? rawProxyProtocol.includes(":") ? rawProxyProtocol : `${rawProxyProtocol}:` : "http:";
14439
+ const proxyHostForURL = proxyHost && proxyHost.includes(":") && !proxyHost.startsWith("[") ? `[${proxyHost}]` : proxyHost;
14440
+ const proxyURL = new URL(
14441
+ `${normalizedProtocol}//${proxyHostForURL}${proxyPort ? ":" + proxyPort : ""}`
14442
+ );
14443
+ const agentOptions = {
14444
+ protocol: proxyURL.protocol,
14445
+ hostname: proxyURL.hostname.replace(/^\[|\]$/g, ""),
14446
+ port: proxyURL.port,
14447
+ auth: proxyAuth && typeof proxyAuth === "string" ? proxyAuth : void 0
14448
+ };
14449
+ if (proxyURL.protocol === "https:") {
14450
+ agentOptions.ALPNProtocols = ["http/1.1"];
14451
+ }
14452
+ const tunnelingAgent = getTunnelingAgent(agentOptions, configHttpsAgent);
14453
+ options.agent = tunnelingAgent;
14454
+ if (options.agents) {
14455
+ options.agents.https = tunnelingAgent;
14456
+ }
14457
+ }
14458
+ } else {
14459
+ if (proxyAuth) {
14460
+ const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
14461
+ options.headers["Proxy-Authorization"] = "Basic " + base64;
14462
+ }
14463
+ let hasUserHostHeader = false;
14464
+ for (const name of Object.keys(options.headers)) {
14465
+ if (name.toLowerCase() === "host") {
14466
+ hasUserHostHeader = true;
14467
+ break;
14468
+ }
14469
+ }
14470
+ if (!hasUserHostHeader) {
14471
+ options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
14472
+ }
14473
+ const proxyHost = readProxyField("hostname") || readProxyField("host");
14474
+ options.hostname = proxyHost;
14475
+ options.host = proxyHost;
14476
+ options.port = readProxyField("port");
14477
+ options.path = location;
14478
+ const proxyProtocol = readProxyField("protocol");
14479
+ if (proxyProtocol) {
14480
+ options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
13942
14481
  }
13943
- }
13944
- if (!hasUserHostHeader) {
13945
- options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
13946
- }
13947
- const proxyHost = readProxyField("hostname") || readProxyField("host");
13948
- options.hostname = proxyHost;
13949
- options.host = proxyHost;
13950
- options.port = readProxyField("port");
13951
- options.path = location;
13952
- const proxyProtocol = readProxyField("protocol");
13953
- if (proxyProtocol) {
13954
- options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
13955
14482
  }
13956
14483
  }
13957
14484
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
13958
- setProxy(redirectOptions, configProxy, redirectOptions.href, true);
14485
+ setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
13959
14486
  };
13960
14487
  }
13961
14488
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
@@ -14294,7 +14821,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14294
14821
  const options = Object.assign(/* @__PURE__ */ Object.create(null), {
14295
14822
  path,
14296
14823
  method,
14297
- headers: headers.toJSON(),
14824
+ headers: toByteStringHeaderObject(headers),
14298
14825
  agents: { http: config.httpAgent, https: config.httpsAgent },
14299
14826
  auth,
14300
14827
  protocol,
@@ -14333,13 +14860,17 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14333
14860
  setProxy(
14334
14861
  options,
14335
14862
  config.proxy,
14336
- protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
14863
+ protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
14864
+ false,
14865
+ config.httpsAgent
14337
14866
  );
14338
14867
  }
14339
14868
  let transport;
14340
14869
  let isNativeTransport = false;
14341
14870
  const isHttpsRequest = isHttps.test(options.protocol);
14342
- options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
14871
+ if (options.agent == null) {
14872
+ options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
14873
+ }
14343
14874
  if (isHttp2) {
14344
14875
  transport = http2Transport;
14345
14876
  } else {
@@ -14618,7 +15149,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14618
15149
  });
14619
15150
  };
14620
15151
 
14621
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js
15152
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js
14622
15153
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
14623
15154
  url2 = new URL(url2, platform_default.origin);
14624
15155
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -14627,7 +15158,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
14627
15158
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
14628
15159
  ) : () => true;
14629
15160
 
14630
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js
15161
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js
14631
15162
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
14632
15163
  // Standard browser envs support document.cookie
14633
15164
  {
@@ -14680,7 +15211,7 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
14680
15211
  }
14681
15212
  );
14682
15213
 
14683
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js
15214
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js
14684
15215
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
14685
15216
  function mergeConfig(config1, config2) {
14686
15217
  config2 = config2 || {};
@@ -14773,7 +15304,7 @@ function mergeConfig(config1, config2) {
14773
15304
  return config;
14774
15305
  }
14775
15306
 
14776
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/resolveConfig.js
15307
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/resolveConfig.js
14777
15308
  var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
14778
15309
  function setFormDataHeaders2(headers, formHeaders, policy) {
14779
15310
  if (policy !== "content-only") {
@@ -14836,7 +15367,7 @@ var resolveConfig_default = (config) => {
14836
15367
  return newConfig;
14837
15368
  };
14838
15369
 
14839
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js
15370
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js
14840
15371
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
14841
15372
  var xhr_default = isXHRAdapterSupported && function(config) {
14842
15373
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -14933,7 +15464,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14933
15464
  };
14934
15465
  requestData === void 0 && requestHeaders.setContentType(null);
14935
15466
  if ("setRequestHeader" in request) {
14936
- utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
15467
+ utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
14937
15468
  request.setRequestHeader(key, val);
14938
15469
  });
14939
15470
  }
@@ -14982,45 +15513,47 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14982
15513
  });
14983
15514
  };
14984
15515
 
14985
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/composeSignals.js
15516
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/composeSignals.js
14986
15517
  var composeSignals = (signals, timeout) => {
14987
- const { length } = signals = signals ? signals.filter(Boolean) : [];
14988
- if (timeout || length) {
14989
- let controller = new AbortController();
14990
- let aborted;
14991
- const onabort = function(reason) {
14992
- if (!aborted) {
14993
- aborted = true;
14994
- unsubscribe();
14995
- const err = reason instanceof Error ? reason : this.reason;
14996
- controller.abort(
14997
- err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
14998
- );
14999
- }
15000
- };
15001
- let timer = timeout && setTimeout(() => {
15002
- timer = null;
15003
- onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
15004
- }, timeout);
15005
- const unsubscribe = () => {
15006
- if (signals) {
15007
- timer && clearTimeout(timer);
15008
- timer = null;
15009
- signals.forEach((signal2) => {
15010
- signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
15011
- });
15012
- signals = null;
15013
- }
15014
- };
15015
- signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
15016
- const { signal } = controller;
15017
- signal.unsubscribe = () => utils_default.asap(unsubscribe);
15018
- return signal;
15518
+ signals = signals ? signals.filter(Boolean) : [];
15519
+ if (!timeout && !signals.length) {
15520
+ return;
15019
15521
  }
15522
+ const controller = new AbortController();
15523
+ let aborted = false;
15524
+ const onabort = function(reason) {
15525
+ if (!aborted) {
15526
+ aborted = true;
15527
+ unsubscribe();
15528
+ const err = reason instanceof Error ? reason : this.reason;
15529
+ controller.abort(
15530
+ err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
15531
+ );
15532
+ }
15533
+ };
15534
+ let timer = timeout && setTimeout(() => {
15535
+ timer = null;
15536
+ onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
15537
+ }, timeout);
15538
+ const unsubscribe = () => {
15539
+ if (!signals) {
15540
+ return;
15541
+ }
15542
+ timer && clearTimeout(timer);
15543
+ timer = null;
15544
+ signals.forEach((signal2) => {
15545
+ signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
15546
+ });
15547
+ signals = null;
15548
+ };
15549
+ signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
15550
+ const { signal } = controller;
15551
+ signal.unsubscribe = () => utils_default.asap(unsubscribe);
15552
+ return signal;
15020
15553
  };
15021
15554
  var composeSignals_default = composeSignals;
15022
15555
 
15023
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/trackStream.js
15556
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/trackStream.js
15024
15557
  var streamChunk = function* (chunk, chunkSize) {
15025
15558
  let len = chunk.byteLength;
15026
15559
  if (!chunkSize || len < chunkSize) {
@@ -15100,7 +15633,7 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
15100
15633
  );
15101
15634
  };
15102
15635
 
15103
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/fetch.js
15636
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/fetch.js
15104
15637
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
15105
15638
  var { isFunction: isFunction2 } = utils_default;
15106
15639
  var test = (fn, ...args) => {
@@ -15111,7 +15644,7 @@ var test = (fn, ...args) => {
15111
15644
  }
15112
15645
  };
15113
15646
  var factory = (env) => {
15114
- const globalObject = utils_default.global ?? globalThis;
15647
+ const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
15115
15648
  const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
15116
15649
  env = utils_default.merge.call(
15117
15650
  {
@@ -15281,7 +15814,7 @@ var factory = (env) => {
15281
15814
  ...fetchOptions,
15282
15815
  signal: composedSignal,
15283
15816
  method: method.toUpperCase(),
15284
- headers: headers.normalize().toJSON(),
15817
+ headers: toByteStringHeaderObject(headers.normalize()),
15285
15818
  body: data,
15286
15819
  duplex: "half",
15287
15820
  credentials: isCredentialsSupported ? withCredentials : void 0
@@ -15412,7 +15945,7 @@ var getFetch = (config) => {
15412
15945
  };
15413
15946
  var adapter = getFetch();
15414
15947
 
15415
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/adapters.js
15948
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/adapters.js
15416
15949
  var knownAdapters = {
15417
15950
  http: http_default,
15418
15951
  xhr: xhr_default,
@@ -15477,7 +16010,7 @@ var adapters_default = {
15477
16010
  adapters: knownAdapters
15478
16011
  };
15479
16012
 
15480
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js
16013
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js
15481
16014
  function throwIfCancellationRequested(config) {
15482
16015
  if (config.cancelToken) {
15483
16016
  config.cancelToken.throwIfRequested();
@@ -15528,7 +16061,7 @@ function dispatchRequest(config) {
15528
16061
  );
15529
16062
  }
15530
16063
 
15531
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/validator.js
16064
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/validator.js
15532
16065
  var validators = {};
15533
16066
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
15534
16067
  validators[type] = function validator(thing) {
@@ -15595,7 +16128,7 @@ var validator_default = {
15595
16128
  validators
15596
16129
  };
15597
16130
 
15598
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/Axios.js
16131
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/Axios.js
15599
16132
  var validators2 = validator_default.validators;
15600
16133
  var Axios = class {
15601
16134
  constructor(instanceConfig) {
@@ -15797,7 +16330,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
15797
16330
  });
15798
16331
  var Axios_default = Axios;
15799
16332
 
15800
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js
16333
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js
15801
16334
  var CancelToken = class _CancelToken {
15802
16335
  constructor(executor) {
15803
16336
  if (typeof executor !== "function") {
@@ -15895,19 +16428,19 @@ var CancelToken = class _CancelToken {
15895
16428
  };
15896
16429
  var CancelToken_default = CancelToken;
15897
16430
 
15898
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/spread.js
16431
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/spread.js
15899
16432
  function spread(callback) {
15900
16433
  return function wrap(arr) {
15901
16434
  return callback.apply(null, arr);
15902
16435
  };
15903
16436
  }
15904
16437
 
15905
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js
16438
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js
15906
16439
  function isAxiosError(payload) {
15907
16440
  return utils_default.isObject(payload) && payload.isAxiosError === true;
15908
16441
  }
15909
16442
 
15910
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/HttpStatusCode.js
16443
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/HttpStatusCode.js
15911
16444
  var HttpStatusCode = {
15912
16445
  Continue: 100,
15913
16446
  SwitchingProtocols: 101,
@@ -15984,7 +16517,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
15984
16517
  });
15985
16518
  var HttpStatusCode_default = HttpStatusCode;
15986
16519
 
15987
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/axios.js
16520
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/axios.js
15988
16521
  function createInstance(defaultConfig) {
15989
16522
  const context = new Axios_default(defaultConfig);
15990
16523
  const instance = bind(Axios_default.prototype.request, context);
@@ -16017,7 +16550,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
16017
16550
  axios.default = axios;
16018
16551
  var axios_default = axios;
16019
16552
 
16020
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/index.js
16553
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/index.js
16021
16554
  var {
16022
16555
  Axios: Axios2,
16023
16556
  AxiosError: AxiosError2,