alpic 0.0.0-dev.gfbdef08 → 0.0.0-dev.gfe99c34

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)
@@ -9996,7 +10000,7 @@ var require_form_data = __commonJS({
9996
10000
  var path = __require("path");
9997
10001
  var http3 = __require("http");
9998
10002
  var https2 = __require("https");
9999
- var parseUrl = __require("url").parse;
10003
+ var parseUrl2 = __require("url").parse;
10000
10004
  var fs2 = __require("fs");
10001
10005
  var Stream = __require("stream").Stream;
10002
10006
  var crypto2 = __require("crypto");
@@ -10249,7 +10253,7 @@ var require_form_data = __commonJS({
10249
10253
  var options;
10250
10254
  var defaults2 = { method: "post" };
10251
10255
  if (typeof params === "string") {
10252
- params = parseUrl(params);
10256
+ params = parseUrl2(params);
10253
10257
  options = populate({
10254
10258
  port: params.port,
10255
10259
  path: params.pathname,
@@ -10306,76 +10310,6 @@ var require_form_data = __commonJS({
10306
10310
  }
10307
10311
  });
10308
10312
 
10309
- // ../../node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js
10310
- var require_proxy_from_env = __commonJS({
10311
- "../../node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js"(exports) {
10312
- "use strict";
10313
- var parseUrl = __require("url").parse;
10314
- var DEFAULT_PORTS = {
10315
- ftp: 21,
10316
- gopher: 70,
10317
- http: 80,
10318
- https: 443,
10319
- ws: 80,
10320
- wss: 443
10321
- };
10322
- var stringEndsWith = String.prototype.endsWith || function(s) {
10323
- return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
10324
- };
10325
- function getProxyForUrl(url2) {
10326
- var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
10327
- var proto = parsedUrl.protocol;
10328
- var hostname = parsedUrl.host;
10329
- var port = parsedUrl.port;
10330
- if (typeof hostname !== "string" || !hostname || typeof proto !== "string") {
10331
- return "";
10332
- }
10333
- proto = proto.split(":", 1)[0];
10334
- hostname = hostname.replace(/:\d*$/, "");
10335
- port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
10336
- if (!shouldProxy(hostname, port)) {
10337
- return "";
10338
- }
10339
- var proxy = getEnv("npm_config_" + proto + "_proxy") || getEnv(proto + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy");
10340
- if (proxy && proxy.indexOf("://") === -1) {
10341
- proxy = proto + "://" + proxy;
10342
- }
10343
- return proxy;
10344
- }
10345
- function shouldProxy(hostname, port) {
10346
- var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase();
10347
- if (!NO_PROXY) {
10348
- return true;
10349
- }
10350
- if (NO_PROXY === "*") {
10351
- return false;
10352
- }
10353
- return NO_PROXY.split(/[,\s]/).every(function(proxy) {
10354
- if (!proxy) {
10355
- return true;
10356
- }
10357
- var parsedProxy = proxy.match(/^(.+):(\d+)$/);
10358
- var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
10359
- var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
10360
- if (parsedProxyPort && parsedProxyPort !== port) {
10361
- return true;
10362
- }
10363
- if (!/^[.*]/.test(parsedProxyHostname)) {
10364
- return hostname !== parsedProxyHostname;
10365
- }
10366
- if (parsedProxyHostname.charAt(0) === "*") {
10367
- parsedProxyHostname = parsedProxyHostname.slice(1);
10368
- }
10369
- return !stringEndsWith.call(hostname, parsedProxyHostname);
10370
- });
10371
- }
10372
- function getEnv(key) {
10373
- return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
10374
- }
10375
- exports.getProxyForUrl = getProxyForUrl;
10376
- }
10377
- });
10378
-
10379
10313
  // ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
10380
10314
  var require_ms = __commonJS({
10381
10315
  "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module) {
@@ -10492,9 +10426,9 @@ var require_ms = __commonJS({
10492
10426
  }
10493
10427
  });
10494
10428
 
10495
- // ../../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
10496
10430
  var require_common = __commonJS({
10497
- "../../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) {
10498
10432
  function setup(env) {
10499
10433
  createDebug.debug = createDebug;
10500
10434
  createDebug.default = createDebug;
@@ -10669,9 +10603,9 @@ var require_common = __commonJS({
10669
10603
  }
10670
10604
  });
10671
10605
 
10672
- // ../../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
10673
10607
  var require_browser = __commonJS({
10674
- "../../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) {
10675
10609
  exports.formatArgs = formatArgs;
10676
10610
  exports.save = save;
10677
10611
  exports.load = load;
@@ -10966,9 +10900,9 @@ var require_supports_color = __commonJS({
10966
10900
  }
10967
10901
  });
10968
10902
 
10969
- // ../../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
10970
10904
  var require_node = __commonJS({
10971
- "../../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) {
10972
10906
  var tty = __require("tty");
10973
10907
  var util3 = __require("util");
10974
10908
  exports.init = init;
@@ -11140,9 +11074,9 @@ var require_node = __commonJS({
11140
11074
  }
11141
11075
  });
11142
11076
 
11143
- // ../../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
11144
11078
  var require_src = __commonJS({
11145
- "../../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) {
11146
11080
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
11147
11081
  module.exports = require_browser();
11148
11082
  } else {
@@ -11151,9 +11085,459 @@ var require_src = __commonJS({
11151
11085
  }
11152
11086
  });
11153
11087
 
11154
- // ../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/debug.js
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
+
11538
+ // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js
11155
11539
  var require_debug = __commonJS({
11156
- "../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/debug.js"(exports, module) {
11540
+ "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js"(exports, module) {
11157
11541
  var debug3;
11158
11542
  module.exports = function() {
11159
11543
  if (!debug3) {
@@ -11171,9 +11555,9 @@ var require_debug = __commonJS({
11171
11555
  }
11172
11556
  });
11173
11557
 
11174
- // ../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/index.js
11558
+ // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js
11175
11559
  var require_follow_redirects = __commonJS({
11176
- "../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/index.js"(exports, module) {
11560
+ "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js"(exports, module) {
11177
11561
  var url2 = __require("url");
11178
11562
  var URL2 = url2.URL;
11179
11563
  var http3 = __require("http");
@@ -11195,6 +11579,11 @@ var require_follow_redirects = __commonJS({
11195
11579
  } catch (error) {
11196
11580
  useNativeURL = error.code === "ERR_INVALID_URL";
11197
11581
  }
11582
+ var sensitiveHeaders = [
11583
+ "Authorization",
11584
+ "Proxy-Authorization",
11585
+ "Cookie"
11586
+ ];
11198
11587
  var preservedUrlFields = [
11199
11588
  "auth",
11200
11589
  "host",
@@ -11259,6 +11648,7 @@ var require_follow_redirects = __commonJS({
11259
11648
  self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
11260
11649
  }
11261
11650
  };
11651
+ this._headerFilter = new RegExp("^(?:" + sensitiveHeaders.concat(options.sensitiveHeaders).map(escapeRegex).join("|") + ")$", "i");
11262
11652
  this._performRequest();
11263
11653
  }
11264
11654
  RedirectableRequest.prototype = Object.create(Writable.prototype);
@@ -11396,6 +11786,9 @@ var require_follow_redirects = __commonJS({
11396
11786
  if (!options.headers) {
11397
11787
  options.headers = {};
11398
11788
  }
11789
+ if (!isArray2(options.sensitiveHeaders)) {
11790
+ options.sensitiveHeaders = [];
11791
+ }
11399
11792
  if (options.host) {
11400
11793
  if (!options.hostname) {
11401
11794
  options.hostname = options.host;
@@ -11493,7 +11886,7 @@ var require_follow_redirects = __commonJS({
11493
11886
  removeMatchingHeaders(/^content-/i, this._options.headers);
11494
11887
  }
11495
11888
  var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
11496
- var currentUrlParts = parseUrl(this._currentUrl);
11889
+ var currentUrlParts = parseUrl2(this._currentUrl);
11497
11890
  var currentHost = currentHostHeader || currentUrlParts.host;
11498
11891
  var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
11499
11892
  var redirectUrl = resolveUrl(location, currentUrl);
@@ -11501,7 +11894,7 @@ var require_follow_redirects = __commonJS({
11501
11894
  this._isRedirect = true;
11502
11895
  spreadUrlObject(redirectUrl, this._options);
11503
11896
  if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
11504
- removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
11897
+ removeMatchingHeaders(this._headerFilter, this._options.headers);
11505
11898
  }
11506
11899
  if (isFunction3(beforeRedirect)) {
11507
11900
  var responseDetails = {
@@ -11532,7 +11925,7 @@ var require_follow_redirects = __commonJS({
11532
11925
  if (isURL(input)) {
11533
11926
  input = spreadUrlObject(input);
11534
11927
  } else if (isString2(input)) {
11535
- input = spreadUrlObject(parseUrl(input));
11928
+ input = spreadUrlObject(parseUrl2(input));
11536
11929
  } else {
11537
11930
  callback = options;
11538
11931
  options = validateUrl(input);
@@ -11568,7 +11961,7 @@ var require_follow_redirects = __commonJS({
11568
11961
  }
11569
11962
  function noop2() {
11570
11963
  }
11571
- function parseUrl(input) {
11964
+ function parseUrl2(input) {
11572
11965
  var parsed;
11573
11966
  if (useNativeURL) {
11574
11967
  parsed = new URL2(input);
@@ -11581,7 +11974,7 @@ var require_follow_redirects = __commonJS({
11581
11974
  return parsed;
11582
11975
  }
11583
11976
  function resolveUrl(relative, base) {
11584
- return useNativeURL ? new URL2(relative, base) : parseUrl(url2.resolve(base, relative));
11977
+ return useNativeURL ? new URL2(relative, base) : parseUrl2(url2.resolve(base, relative));
11585
11978
  }
11586
11979
  function validateUrl(input) {
11587
11980
  if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
@@ -11650,6 +12043,9 @@ var require_follow_redirects = __commonJS({
11650
12043
  var dot = subdomain.length - domain.length - 1;
11651
12044
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
11652
12045
  }
12046
+ function isArray2(value) {
12047
+ return value instanceof Array;
12048
+ }
11653
12049
  function isString2(value) {
11654
12050
  return typeof value === "string" || value instanceof String;
11655
12051
  }
@@ -11662,19 +12058,22 @@ var require_follow_redirects = __commonJS({
11662
12058
  function isURL(value) {
11663
12059
  return URL2 && value instanceof URL2;
11664
12060
  }
12061
+ function escapeRegex(regex) {
12062
+ return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
12063
+ }
11665
12064
  module.exports = wrap({ http: http3, https: https2 });
11666
12065
  module.exports.wrap = wrap;
11667
12066
  }
11668
12067
  });
11669
12068
 
11670
- // ../../node_modules/.pnpm/axios@1.13.5_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
11671
12070
  function bind(fn, thisArg) {
11672
12071
  return function wrap() {
11673
12072
  return fn.apply(thisArg, arguments);
11674
12073
  };
11675
12074
  }
11676
12075
 
11677
- // ../../node_modules/.pnpm/axios@1.13.5_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
11678
12077
  var { toString } = Object.prototype;
11679
12078
  var { getPrototypeOf } = Object;
11680
12079
  var { iterator, toStringTag } = Symbol;
@@ -11726,13 +12125,31 @@ var isEmptyObject = (val) => {
11726
12125
  };
11727
12126
  var isDate = kindOfTest("Date");
11728
12127
  var isFile = kindOfTest("File");
12128
+ var isReactNativeBlob = (value) => {
12129
+ return !!(value && typeof value.uri !== "undefined");
12130
+ };
12131
+ var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
11729
12132
  var isBlob = kindOfTest("Blob");
11730
12133
  var isFileList = kindOfTest("FileList");
11731
12134
  var isStream = (val) => isObject(val) && isFunction(val.pipe);
12135
+ function getGlobal() {
12136
+ if (typeof globalThis !== "undefined") return globalThis;
12137
+ if (typeof self !== "undefined") return self;
12138
+ if (typeof window !== "undefined") return window;
12139
+ if (typeof global !== "undefined") return global;
12140
+ return {};
12141
+ }
12142
+ var G = getGlobal();
12143
+ var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
11732
12144
  var isFormData = (thing) => {
11733
- let kind;
11734
- return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
11735
- kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
12145
+ if (!thing) return false;
12146
+ if (FormDataCtor && thing instanceof FormDataCtor) return true;
12147
+ const proto = getPrototypeOf(thing);
12148
+ if (!proto || proto === Object.prototype) return false;
12149
+ if (!isFunction(thing.append)) return false;
12150
+ const kind = kindOf(thing);
12151
+ return kind === "formdata" || // detect form-data instance
12152
+ kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]";
11736
12153
  };
11737
12154
  var isURLSearchParams = kindOfTest("URLSearchParams");
11738
12155
  var [isReadableStream, isRequest, isResponse, isHeaders] = [
@@ -11741,7 +12158,9 @@ var [isReadableStream, isRequest, isResponse, isHeaders] = [
11741
12158
  "Response",
11742
12159
  "Headers"
11743
12160
  ].map(kindOfTest);
11744
- var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
12161
+ var trim = (str) => {
12162
+ return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
12163
+ };
11745
12164
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
11746
12165
  if (obj === null || typeof obj === "undefined") {
11747
12166
  return;
@@ -11789,7 +12208,7 @@ var _global = (() => {
11789
12208
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
11790
12209
  })();
11791
12210
  var isContextDefined = (context) => !isUndefined(context) && context !== _global;
11792
- function merge() {
12211
+ function merge(...objs) {
11793
12212
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
11794
12213
  const result = {};
11795
12214
  const assignValue = (val, key) => {
@@ -11797,8 +12216,9 @@ function merge() {
11797
12216
  return;
11798
12217
  }
11799
12218
  const targetKey = caseless && findKey(result, key) || key;
11800
- if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
11801
- result[targetKey] = merge(result[targetKey], val);
12219
+ const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
12220
+ if (isPlainObject(existing) && isPlainObject(val)) {
12221
+ result[targetKey] = merge(existing, val);
11802
12222
  } else if (isPlainObject(val)) {
11803
12223
  result[targetKey] = merge({}, val);
11804
12224
  } else if (isArray(val)) {
@@ -11807,8 +12227,8 @@ function merge() {
11807
12227
  result[targetKey] = val;
11808
12228
  }
11809
12229
  };
11810
- for (let i = 0, l = arguments.length; i < l; i++) {
11811
- arguments[i] && forEach(arguments[i], assignValue);
12230
+ for (let i = 0, l = objs.length; i < l; i++) {
12231
+ objs[i] && forEach(objs[i], assignValue);
11812
12232
  }
11813
12233
  return result;
11814
12234
  }
@@ -11818,6 +12238,9 @@ var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
11818
12238
  (val, key) => {
11819
12239
  if (thisArg && isFunction(val)) {
11820
12240
  Object.defineProperty(a, key, {
12241
+ // Null-proto descriptor so a polluted Object.prototype.get cannot
12242
+ // hijack defineProperty's accessor-vs-data resolution.
12243
+ __proto__: null,
11821
12244
  value: bind(val, thisArg),
11822
12245
  writable: true,
11823
12246
  enumerable: true,
@@ -11825,6 +12248,7 @@ var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
11825
12248
  });
11826
12249
  } else {
11827
12250
  Object.defineProperty(a, key, {
12251
+ __proto__: null,
11828
12252
  value: val,
11829
12253
  writable: true,
11830
12254
  enumerable: true,
@@ -11843,17 +12267,16 @@ var stripBOM = (content) => {
11843
12267
  return content;
11844
12268
  };
11845
12269
  var inherits = (constructor, superConstructor, props, descriptors) => {
11846
- constructor.prototype = Object.create(
11847
- superConstructor.prototype,
11848
- descriptors
11849
- );
12270
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
11850
12271
  Object.defineProperty(constructor.prototype, "constructor", {
12272
+ __proto__: null,
11851
12273
  value: constructor,
11852
12274
  writable: true,
11853
12275
  enumerable: false,
11854
12276
  configurable: true
11855
12277
  });
11856
12278
  Object.defineProperty(constructor, "super", {
12279
+ __proto__: null,
11857
12280
  value: superConstructor.prototype
11858
12281
  });
11859
12282
  props && Object.assign(constructor.prototype, props);
@@ -11942,7 +12365,7 @@ var reduceDescriptors = (obj, reducer) => {
11942
12365
  };
11943
12366
  var freezeMethods = (obj) => {
11944
12367
  reduceDescriptors(obj, (descriptor, name) => {
11945
- if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
12368
+ if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
11946
12369
  return false;
11947
12370
  }
11948
12371
  const value = obj[name];
@@ -11978,29 +12401,29 @@ function isSpecCompliantForm(thing) {
11978
12401
  return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
11979
12402
  }
11980
12403
  var toJSONObject = (obj) => {
11981
- const stack = new Array(10);
11982
- const visit = (source, i) => {
12404
+ const visited = /* @__PURE__ */ new WeakSet();
12405
+ const visit = (source) => {
11983
12406
  if (isObject(source)) {
11984
- if (stack.indexOf(source) >= 0) {
12407
+ if (visited.has(source)) {
11985
12408
  return;
11986
12409
  }
11987
12410
  if (isBuffer(source)) {
11988
12411
  return source;
11989
12412
  }
11990
12413
  if (!("toJSON" in source)) {
11991
- stack[i] = source;
12414
+ visited.add(source);
11992
12415
  const target = isArray(source) ? [] : {};
11993
12416
  forEach(source, (value, key) => {
11994
- const reducedValue = visit(value, i + 1);
12417
+ const reducedValue = visit(value);
11995
12418
  !isUndefined(reducedValue) && (target[key] = reducedValue);
11996
12419
  });
11997
- stack[i] = void 0;
12420
+ visited.delete(source);
11998
12421
  return target;
11999
12422
  }
12000
12423
  }
12001
12424
  return source;
12002
12425
  };
12003
- return visit(obj, 0);
12426
+ return visit(obj);
12004
12427
  };
12005
12428
  var isAsyncFn = kindOfTest("AsyncFunction");
12006
12429
  var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
@@ -12045,6 +12468,8 @@ var utils_default = {
12045
12468
  isUndefined,
12046
12469
  isDate,
12047
12470
  isFile,
12471
+ isReactNativeBlob,
12472
+ isReactNative,
12048
12473
  isBlob,
12049
12474
  isRegExp,
12050
12475
  isFunction,
@@ -12087,62 +12512,452 @@ var utils_default = {
12087
12512
  isIterable
12088
12513
  };
12089
12514
 
12090
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/AxiosError.js
12091
- var AxiosError = class _AxiosError extends Error {
12092
- static from(error, code, config, request, response, customProps) {
12093
- const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
12094
- axiosError.cause = error;
12095
- axiosError.name = error.name;
12096
- customProps && Object.assign(axiosError, customProps);
12097
- return axiosError;
12515
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js
12516
+ var ignoreDuplicateOf = utils_default.toObjectSet([
12517
+ "age",
12518
+ "authorization",
12519
+ "content-length",
12520
+ "content-type",
12521
+ "etag",
12522
+ "expires",
12523
+ "from",
12524
+ "host",
12525
+ "if-modified-since",
12526
+ "if-unmodified-since",
12527
+ "last-modified",
12528
+ "location",
12529
+ "max-forwards",
12530
+ "proxy-authorization",
12531
+ "referer",
12532
+ "retry-after",
12533
+ "user-agent"
12534
+ ]);
12535
+ var parseHeaders_default = (rawHeaders) => {
12536
+ const parsed = {};
12537
+ let key;
12538
+ let val;
12539
+ let i;
12540
+ rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
12541
+ i = line.indexOf(":");
12542
+ key = line.substring(0, i).trim().toLowerCase();
12543
+ val = line.substring(i + 1).trim();
12544
+ if (!key || parsed[key] && ignoreDuplicateOf[key]) {
12545
+ return;
12546
+ }
12547
+ if (key === "set-cookie") {
12548
+ if (parsed[key]) {
12549
+ parsed[key].push(val);
12550
+ } else {
12551
+ parsed[key] = [val];
12552
+ }
12553
+ } else {
12554
+ parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
12555
+ }
12556
+ });
12557
+ return parsed;
12558
+ };
12559
+
12560
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12561
+ function trimSPorHTAB(str) {
12562
+ let start = 0;
12563
+ let end = str.length;
12564
+ while (start < end) {
12565
+ const code = str.charCodeAt(start);
12566
+ if (code !== 9 && code !== 32) {
12567
+ break;
12568
+ }
12569
+ start += 1;
12098
12570
  }
12099
- /**
12100
- * Create an Error with the specified message, config, error code, request and response.
12101
- *
12102
- * @param {string} message The error message.
12103
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
12104
- * @param {Object} [config] The config.
12105
- * @param {Object} [request] The request.
12106
- * @param {Object} [response] The response.
12107
- *
12108
- * @returns {Error} The created error.
12109
- */
12110
- constructor(message, code, config, request, response) {
12111
- super(message);
12112
- this.name = "AxiosError";
12113
- this.isAxiosError = true;
12114
- code && (this.code = code);
12115
- config && (this.config = config);
12116
- request && (this.request = request);
12117
- if (response) {
12118
- this.response = response;
12119
- this.status = response.status;
12571
+ while (end > start) {
12572
+ const code = str.charCodeAt(end - 1);
12573
+ if (code !== 9 && code !== 32) {
12574
+ break;
12120
12575
  }
12576
+ end -= 1;
12121
12577
  }
12122
- toJSON() {
12123
- return {
12124
- // Standard
12125
- message: this.message,
12126
- name: this.name,
12127
- // Microsoft
12128
- description: this.description,
12129
- number: this.number,
12130
- // Mozilla
12131
- fileName: this.fileName,
12132
- lineNumber: this.lineNumber,
12133
- columnNumber: this.columnNumber,
12134
- stack: this.stack,
12135
- // Axios
12136
- config: utils_default.toJSONObject(this.config),
12137
- code: this.code,
12138
- status: this.status
12139
- };
12578
+ return start === 0 && end === str.length ? str : str.slice(start, end);
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));
12140
12585
  }
12141
- };
12142
- AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
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");
12600
+ function normalizeHeader(header) {
12601
+ return header && String(header).trim().toLowerCase();
12602
+ }
12603
+ function normalizeValue(value) {
12604
+ if (value === false || value == null) {
12605
+ return value;
12606
+ }
12607
+ return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
12608
+ }
12609
+ function parseTokens(str) {
12610
+ const tokens = /* @__PURE__ */ Object.create(null);
12611
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
12612
+ let match;
12613
+ while (match = tokensRE.exec(str)) {
12614
+ tokens[match[1]] = match[2];
12615
+ }
12616
+ return tokens;
12617
+ }
12618
+ var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12619
+ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12620
+ if (utils_default.isFunction(filter2)) {
12621
+ return filter2.call(this, value, header);
12622
+ }
12623
+ if (isHeaderNameFilter) {
12624
+ value = header;
12625
+ }
12626
+ if (!utils_default.isString(value)) return;
12627
+ if (utils_default.isString(filter2)) {
12628
+ return value.indexOf(filter2) !== -1;
12629
+ }
12630
+ if (utils_default.isRegExp(filter2)) {
12631
+ return filter2.test(value);
12632
+ }
12633
+ }
12634
+ function formatHeader(header) {
12635
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
12636
+ return char.toUpperCase() + str;
12637
+ });
12638
+ }
12639
+ function buildAccessors(obj, header) {
12640
+ const accessorName = utils_default.toCamelCase(" " + header);
12641
+ ["get", "set", "has"].forEach((methodName) => {
12642
+ Object.defineProperty(obj, methodName + accessorName, {
12643
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
12644
+ // this data descriptor into an accessor descriptor on the way in.
12645
+ __proto__: null,
12646
+ value: function(arg1, arg2, arg3) {
12647
+ return this[methodName].call(this, header, arg1, arg2, arg3);
12648
+ },
12649
+ configurable: true
12650
+ });
12651
+ });
12652
+ }
12653
+ var AxiosHeaders = class {
12654
+ constructor(headers) {
12655
+ headers && this.set(headers);
12656
+ }
12657
+ set(header, valueOrRewrite, rewrite) {
12658
+ const self2 = this;
12659
+ function setHeader(_value, _header, _rewrite) {
12660
+ const lHeader = normalizeHeader(_header);
12661
+ if (!lHeader) {
12662
+ throw new Error("header name must be a non-empty string");
12663
+ }
12664
+ const key = utils_default.findKey(self2, lHeader);
12665
+ if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
12666
+ self2[key || _header] = normalizeValue(_value);
12667
+ }
12668
+ }
12669
+ const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
12670
+ if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
12671
+ setHeaders(header, valueOrRewrite);
12672
+ } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12673
+ setHeaders(parseHeaders_default(header), valueOrRewrite);
12674
+ } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
12675
+ let obj = {}, dest, key;
12676
+ for (const entry of header) {
12677
+ if (!utils_default.isArray(entry)) {
12678
+ throw TypeError("Object iterator must return a key-value pair");
12679
+ }
12680
+ obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
12681
+ }
12682
+ setHeaders(obj, valueOrRewrite);
12683
+ } else {
12684
+ header != null && setHeader(valueOrRewrite, header, rewrite);
12685
+ }
12686
+ return this;
12687
+ }
12688
+ get(header, parser) {
12689
+ header = normalizeHeader(header);
12690
+ if (header) {
12691
+ const key = utils_default.findKey(this, header);
12692
+ if (key) {
12693
+ const value = this[key];
12694
+ if (!parser) {
12695
+ return value;
12696
+ }
12697
+ if (parser === true) {
12698
+ return parseTokens(value);
12699
+ }
12700
+ if (utils_default.isFunction(parser)) {
12701
+ return parser.call(this, value, key);
12702
+ }
12703
+ if (utils_default.isRegExp(parser)) {
12704
+ return parser.exec(value);
12705
+ }
12706
+ throw new TypeError("parser must be boolean|regexp|function");
12707
+ }
12708
+ }
12709
+ }
12710
+ has(header, matcher) {
12711
+ header = normalizeHeader(header);
12712
+ if (header) {
12713
+ const key = utils_default.findKey(this, header);
12714
+ return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
12715
+ }
12716
+ return false;
12717
+ }
12718
+ delete(header, matcher) {
12719
+ const self2 = this;
12720
+ let deleted = false;
12721
+ function deleteHeader(_header) {
12722
+ _header = normalizeHeader(_header);
12723
+ if (_header) {
12724
+ const key = utils_default.findKey(self2, _header);
12725
+ if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
12726
+ delete self2[key];
12727
+ deleted = true;
12728
+ }
12729
+ }
12730
+ }
12731
+ if (utils_default.isArray(header)) {
12732
+ header.forEach(deleteHeader);
12733
+ } else {
12734
+ deleteHeader(header);
12735
+ }
12736
+ return deleted;
12737
+ }
12738
+ clear(matcher) {
12739
+ const keys = Object.keys(this);
12740
+ let i = keys.length;
12741
+ let deleted = false;
12742
+ while (i--) {
12743
+ const key = keys[i];
12744
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
12745
+ delete this[key];
12746
+ deleted = true;
12747
+ }
12748
+ }
12749
+ return deleted;
12750
+ }
12751
+ normalize(format) {
12752
+ const self2 = this;
12753
+ const headers = {};
12754
+ utils_default.forEach(this, (value, header) => {
12755
+ const key = utils_default.findKey(headers, header);
12756
+ if (key) {
12757
+ self2[key] = normalizeValue(value);
12758
+ delete self2[header];
12759
+ return;
12760
+ }
12761
+ const normalized = format ? formatHeader(header) : String(header).trim();
12762
+ if (normalized !== header) {
12763
+ delete self2[header];
12764
+ }
12765
+ self2[normalized] = normalizeValue(value);
12766
+ headers[normalized] = true;
12767
+ });
12768
+ return this;
12769
+ }
12770
+ concat(...targets) {
12771
+ return this.constructor.concat(this, ...targets);
12772
+ }
12773
+ toJSON(asStrings) {
12774
+ const obj = /* @__PURE__ */ Object.create(null);
12775
+ utils_default.forEach(this, (value, header) => {
12776
+ value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
12777
+ });
12778
+ return obj;
12779
+ }
12780
+ [Symbol.iterator]() {
12781
+ return Object.entries(this.toJSON())[Symbol.iterator]();
12782
+ }
12783
+ toString() {
12784
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
12785
+ }
12786
+ getSetCookie() {
12787
+ return this.get("set-cookie") || [];
12788
+ }
12789
+ get [Symbol.toStringTag]() {
12790
+ return "AxiosHeaders";
12791
+ }
12792
+ static from(thing) {
12793
+ return thing instanceof this ? thing : new this(thing);
12794
+ }
12795
+ static concat(first, ...targets) {
12796
+ const computed = new this(first);
12797
+ targets.forEach((target) => computed.set(target));
12798
+ return computed;
12799
+ }
12800
+ static accessor(header) {
12801
+ const internals = this[$internals] = this[$internals] = {
12802
+ accessors: {}
12803
+ };
12804
+ const accessors = internals.accessors;
12805
+ const prototype2 = this.prototype;
12806
+ function defineAccessor(_header) {
12807
+ const lHeader = normalizeHeader(_header);
12808
+ if (!accessors[lHeader]) {
12809
+ buildAccessors(prototype2, _header);
12810
+ accessors[lHeader] = true;
12811
+ }
12812
+ }
12813
+ utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
12814
+ return this;
12815
+ }
12816
+ };
12817
+ AxiosHeaders.accessor([
12818
+ "Content-Type",
12819
+ "Content-Length",
12820
+ "Accept",
12821
+ "Accept-Encoding",
12822
+ "User-Agent",
12823
+ "Authorization"
12824
+ ]);
12825
+ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12826
+ let mapped = key[0].toUpperCase() + key.slice(1);
12827
+ return {
12828
+ get: () => value,
12829
+ set(headerValue) {
12830
+ this[mapped] = headerValue;
12831
+ }
12832
+ };
12833
+ });
12834
+ utils_default.freezeMethods(AxiosHeaders);
12835
+ var AxiosHeaders_default = AxiosHeaders;
12836
+
12837
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/AxiosError.js
12838
+ var REDACTED = "[REDACTED ****]";
12839
+ function hasOwnOrPrototypeToJSON(source) {
12840
+ if (utils_default.hasOwnProp(source, "toJSON")) {
12841
+ return true;
12842
+ }
12843
+ let prototype2 = Object.getPrototypeOf(source);
12844
+ while (prototype2 && prototype2 !== Object.prototype) {
12845
+ if (utils_default.hasOwnProp(prototype2, "toJSON")) {
12846
+ return true;
12847
+ }
12848
+ prototype2 = Object.getPrototypeOf(prototype2);
12849
+ }
12850
+ return false;
12851
+ }
12852
+ function redactConfig(config, redactKeys) {
12853
+ const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
12854
+ const seen = [];
12855
+ const visit = (source) => {
12856
+ if (source === null || typeof source !== "object") return source;
12857
+ if (utils_default.isBuffer(source)) return source;
12858
+ if (seen.indexOf(source) !== -1) return void 0;
12859
+ if (source instanceof AxiosHeaders_default) {
12860
+ source = source.toJSON();
12861
+ }
12862
+ seen.push(source);
12863
+ let result;
12864
+ if (utils_default.isArray(source)) {
12865
+ result = [];
12866
+ source.forEach((v, i) => {
12867
+ const reducedValue = visit(v);
12868
+ if (!utils_default.isUndefined(reducedValue)) {
12869
+ result[i] = reducedValue;
12870
+ }
12871
+ });
12872
+ } else {
12873
+ if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
12874
+ seen.pop();
12875
+ return source;
12876
+ }
12877
+ result = /* @__PURE__ */ Object.create(null);
12878
+ for (const [key, value] of Object.entries(source)) {
12879
+ const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
12880
+ if (!utils_default.isUndefined(reducedValue)) {
12881
+ result[key] = reducedValue;
12882
+ }
12883
+ }
12884
+ }
12885
+ seen.pop();
12886
+ return result;
12887
+ };
12888
+ return visit(config);
12889
+ }
12890
+ var AxiosError = class _AxiosError extends Error {
12891
+ static from(error, code, config, request, response, customProps) {
12892
+ const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
12893
+ axiosError.cause = error;
12894
+ axiosError.name = error.name;
12895
+ if (error.status != null && axiosError.status == null) {
12896
+ axiosError.status = error.status;
12897
+ }
12898
+ customProps && Object.assign(axiosError, customProps);
12899
+ return axiosError;
12900
+ }
12901
+ /**
12902
+ * Create an Error with the specified message, config, error code, request and response.
12903
+ *
12904
+ * @param {string} message The error message.
12905
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
12906
+ * @param {Object} [config] The config.
12907
+ * @param {Object} [request] The request.
12908
+ * @param {Object} [response] The response.
12909
+ *
12910
+ * @returns {Error} The created error.
12911
+ */
12912
+ constructor(message, code, config, request, response) {
12913
+ super(message);
12914
+ Object.defineProperty(this, "message", {
12915
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
12916
+ // this data descriptor into an accessor descriptor on the way in.
12917
+ __proto__: null,
12918
+ value: message,
12919
+ enumerable: true,
12920
+ writable: true,
12921
+ configurable: true
12922
+ });
12923
+ this.name = "AxiosError";
12924
+ this.isAxiosError = true;
12925
+ code && (this.code = code);
12926
+ config && (this.config = config);
12927
+ request && (this.request = request);
12928
+ if (response) {
12929
+ this.response = response;
12930
+ this.status = response.status;
12931
+ }
12932
+ }
12933
+ toJSON() {
12934
+ const config = this.config;
12935
+ const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
12936
+ const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
12937
+ return {
12938
+ // Standard
12939
+ message: this.message,
12940
+ name: this.name,
12941
+ // Microsoft
12942
+ description: this.description,
12943
+ number: this.number,
12944
+ // Mozilla
12945
+ fileName: this.fileName,
12946
+ lineNumber: this.lineNumber,
12947
+ columnNumber: this.columnNumber,
12948
+ stack: this.stack,
12949
+ // Axios
12950
+ config: serializedConfig,
12951
+ code: this.code,
12952
+ status: this.status
12953
+ };
12954
+ }
12955
+ };
12956
+ AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
12143
12957
  AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
12144
12958
  AxiosError.ECONNABORTED = "ECONNABORTED";
12145
12959
  AxiosError.ETIMEDOUT = "ETIMEDOUT";
12960
+ AxiosError.ECONNREFUSED = "ECONNREFUSED";
12146
12961
  AxiosError.ERR_NETWORK = "ERR_NETWORK";
12147
12962
  AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
12148
12963
  AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
@@ -12151,13 +12966,14 @@ AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
12151
12966
  AxiosError.ERR_CANCELED = "ERR_CANCELED";
12152
12967
  AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
12153
12968
  AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
12969
+ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
12154
12970
  var AxiosError_default = AxiosError;
12155
12971
 
12156
- // ../../node_modules/.pnpm/axios@1.13.5_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
12157
12973
  var import_form_data = __toESM(require_form_data(), 1);
12158
12974
  var FormData_default = import_form_data.default;
12159
12975
 
12160
- // ../../node_modules/.pnpm/axios@1.13.5_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
12161
12977
  function isVisitable(thing) {
12162
12978
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
12163
12979
  }
@@ -12182,18 +12998,24 @@ function toFormData(obj, formData, options) {
12182
12998
  throw new TypeError("target must be an object");
12183
12999
  }
12184
13000
  formData = formData || new (FormData_default || FormData)();
12185
- options = utils_default.toFlatObject(options, {
12186
- metaTokens: true,
12187
- dots: false,
12188
- indexes: false
12189
- }, false, function defined(option, source) {
12190
- return !utils_default.isUndefined(source[option]);
12191
- });
13001
+ options = utils_default.toFlatObject(
13002
+ options,
13003
+ {
13004
+ metaTokens: true,
13005
+ dots: false,
13006
+ indexes: false
13007
+ },
13008
+ false,
13009
+ function defined(option, source) {
13010
+ return !utils_default.isUndefined(source[option]);
13011
+ }
13012
+ );
12192
13013
  const metaTokens = options.metaTokens;
12193
13014
  const visitor = options.visitor || defaultVisitor;
12194
13015
  const dots = options.dots;
12195
13016
  const indexes = options.indexes;
12196
13017
  const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
13018
+ const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
12197
13019
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
12198
13020
  if (!utils_default.isFunction(visitor)) {
12199
13021
  throw new TypeError("visitor must be a function");
@@ -12216,6 +13038,10 @@ function toFormData(obj, formData, options) {
12216
13038
  }
12217
13039
  function defaultVisitor(value, key, path) {
12218
13040
  let arr = value;
13041
+ if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
13042
+ formData.append(renderKey(path, key, dots), convertValue(value));
13043
+ return false;
13044
+ }
12219
13045
  if (value && !path && typeof value === "object") {
12220
13046
  if (utils_default.endsWith(key, "{}")) {
12221
13047
  key = metaTokens ? key : key.slice(0, -2);
@@ -12244,22 +13070,22 @@ function toFormData(obj, formData, options) {
12244
13070
  convertValue,
12245
13071
  isVisitable
12246
13072
  });
12247
- function build(value, path) {
13073
+ function build(value, path, depth = 0) {
12248
13074
  if (utils_default.isUndefined(value)) return;
13075
+ if (depth > maxDepth) {
13076
+ throw new AxiosError_default(
13077
+ "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
13078
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13079
+ );
13080
+ }
12249
13081
  if (stack.indexOf(value) !== -1) {
12250
13082
  throw Error("Circular reference detected in " + path.join("."));
12251
13083
  }
12252
13084
  stack.push(value);
12253
13085
  utils_default.forEach(value, function each(el, key) {
12254
- const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(
12255
- formData,
12256
- el,
12257
- utils_default.isString(key) ? key.trim() : key,
12258
- path,
12259
- exposedHelpers
12260
- );
13086
+ const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers);
12261
13087
  if (result === true) {
12262
- build(el, path ? path.concat(key) : [key]);
13088
+ build(el, path ? path.concat(key) : [key], depth + 1);
12263
13089
  }
12264
13090
  });
12265
13091
  stack.pop();
@@ -12272,7 +13098,7 @@ function toFormData(obj, formData, options) {
12272
13098
  }
12273
13099
  var toFormData_default = toFormData;
12274
13100
 
12275
- // ../../node_modules/.pnpm/axios@1.13.5_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
12276
13102
  function encode(str) {
12277
13103
  const charMap = {
12278
13104
  "!": "%21",
@@ -12280,10 +13106,9 @@ function encode(str) {
12280
13106
  "(": "%28",
12281
13107
  ")": "%29",
12282
13108
  "~": "%7E",
12283
- "%20": "+",
12284
- "%00": "\0"
13109
+ "%20": "+"
12285
13110
  };
12286
- return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
13111
+ return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
12287
13112
  return charMap[match];
12288
13113
  });
12289
13114
  }
@@ -12305,7 +13130,7 @@ prototype.toString = function toString2(encoder) {
12305
13130
  };
12306
13131
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
12307
13132
 
12308
- // ../../node_modules/.pnpm/axios@1.13.5_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
12309
13134
  function encode2(val) {
12310
13135
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
12311
13136
  }
@@ -12334,7 +13159,7 @@ function buildURL(url2, params, options) {
12334
13159
  return url2;
12335
13160
  }
12336
13161
 
12337
- // ../../node_modules/.pnpm/axios@1.13.5_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
12338
13163
  var InterceptorManager = class {
12339
13164
  constructor() {
12340
13165
  this.handlers = [];
@@ -12399,7 +13224,7 @@ var InterceptorManager = class {
12399
13224
  };
12400
13225
  var InterceptorManager_default = InterceptorManager;
12401
13226
 
12402
- // ../../node_modules/.pnpm/axios@1.13.5_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
12403
13228
  var transitional_default = {
12404
13229
  silentJSONParsing: true,
12405
13230
  forcedJSONParsing: true,
@@ -12407,14 +13232,14 @@ var transitional_default = {
12407
13232
  legacyInterceptorReqResOrdering: true
12408
13233
  };
12409
13234
 
12410
- // ../../node_modules/.pnpm/axios@1.13.5_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
12411
13236
  import crypto from "crypto";
12412
13237
 
12413
- // ../../node_modules/.pnpm/axios@1.13.5_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
12414
13239
  import url from "url";
12415
13240
  var URLSearchParams_default = url.URLSearchParams;
12416
13241
 
12417
- // ../../node_modules/.pnpm/axios@1.13.5_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
12418
13243
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
12419
13244
  var DIGIT = "0123456789";
12420
13245
  var ALPHABET = {
@@ -12444,7 +13269,7 @@ var node_default = {
12444
13269
  protocols: ["http", "https", "file", "data"]
12445
13270
  };
12446
13271
 
12447
- // ../../node_modules/.pnpm/axios@1.13.5_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
12448
13273
  var utils_exports = {};
12449
13274
  __export(utils_exports, {
12450
13275
  hasBrowserEnv: () => hasBrowserEnv,
@@ -12462,13 +13287,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
12462
13287
  })();
12463
13288
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
12464
13289
 
12465
- // ../../node_modules/.pnpm/axios@1.13.5_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
12466
13291
  var platform_default = {
12467
13292
  ...utils_exports,
12468
13293
  ...node_default
12469
13294
  };
12470
13295
 
12471
- // ../../node_modules/.pnpm/axios@1.13.5_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
12472
13297
  function toURLEncodedForm(data, options) {
12473
13298
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
12474
13299
  visitor: function(value, key, path, helpers) {
@@ -12482,7 +13307,7 @@ function toURLEncodedForm(data, options) {
12482
13307
  });
12483
13308
  }
12484
13309
 
12485
- // ../../node_modules/.pnpm/axios@1.13.5_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
12486
13311
  function parsePropPath(name) {
12487
13312
  return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
12488
13313
  return match[0] === "[]" ? "" : match[1] || match[0];
@@ -12495,430 +13320,164 @@ function arrayToObject(arr) {
12495
13320
  const len = keys.length;
12496
13321
  let key;
12497
13322
  for (i = 0; i < len; i++) {
12498
- key = keys[i];
12499
- obj[key] = arr[key];
12500
- }
12501
- return obj;
12502
- }
12503
- function formDataToJSON(formData) {
12504
- function buildPath(path, value, target, index) {
12505
- let name = path[index++];
12506
- if (name === "__proto__") return true;
12507
- const isNumericKey = Number.isFinite(+name);
12508
- const isLast = index >= path.length;
12509
- name = !name && utils_default.isArray(target) ? target.length : name;
12510
- if (isLast) {
12511
- if (utils_default.hasOwnProp(target, name)) {
12512
- target[name] = [target[name], value];
12513
- } else {
12514
- target[name] = value;
12515
- }
12516
- return !isNumericKey;
12517
- }
12518
- if (!target[name] || !utils_default.isObject(target[name])) {
12519
- target[name] = [];
12520
- }
12521
- const result = buildPath(path, value, target[name], index);
12522
- if (result && utils_default.isArray(target[name])) {
12523
- target[name] = arrayToObject(target[name]);
12524
- }
12525
- return !isNumericKey;
12526
- }
12527
- if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
12528
- const obj = {};
12529
- utils_default.forEachEntry(formData, (name, value) => {
12530
- buildPath(parsePropPath(name), value, obj, 0);
12531
- });
12532
- return obj;
12533
- }
12534
- return null;
12535
- }
12536
- var formDataToJSON_default = formDataToJSON;
12537
-
12538
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/defaults/index.js
12539
- function stringifySafely(rawValue, parser, encoder) {
12540
- if (utils_default.isString(rawValue)) {
12541
- try {
12542
- (parser || JSON.parse)(rawValue);
12543
- return utils_default.trim(rawValue);
12544
- } catch (e) {
12545
- if (e.name !== "SyntaxError") {
12546
- throw e;
12547
- }
12548
- }
12549
- }
12550
- return (encoder || JSON.stringify)(rawValue);
12551
- }
12552
- var defaults = {
12553
- transitional: transitional_default,
12554
- adapter: ["xhr", "http", "fetch"],
12555
- transformRequest: [function transformRequest(data, headers) {
12556
- const contentType = headers.getContentType() || "";
12557
- const hasJSONContentType = contentType.indexOf("application/json") > -1;
12558
- const isObjectPayload = utils_default.isObject(data);
12559
- if (isObjectPayload && utils_default.isHTMLForm(data)) {
12560
- data = new FormData(data);
12561
- }
12562
- const isFormData2 = utils_default.isFormData(data);
12563
- if (isFormData2) {
12564
- return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
12565
- }
12566
- if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
12567
- return data;
12568
- }
12569
- if (utils_default.isArrayBufferView(data)) {
12570
- return data.buffer;
12571
- }
12572
- if (utils_default.isURLSearchParams(data)) {
12573
- headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
12574
- return data.toString();
12575
- }
12576
- let isFileList2;
12577
- if (isObjectPayload) {
12578
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
12579
- return toURLEncodedForm(data, this.formSerializer).toString();
12580
- }
12581
- if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
12582
- const _FormData = this.env && this.env.FormData;
12583
- return toFormData_default(
12584
- isFileList2 ? { "files[]": data } : data,
12585
- _FormData && new _FormData(),
12586
- this.formSerializer
12587
- );
12588
- }
12589
- }
12590
- if (isObjectPayload || hasJSONContentType) {
12591
- headers.setContentType("application/json", false);
12592
- return stringifySafely(data);
12593
- }
12594
- return data;
12595
- }],
12596
- transformResponse: [function transformResponse(data) {
12597
- const transitional2 = this.transitional || defaults.transitional;
12598
- const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
12599
- const JSONRequested = this.responseType === "json";
12600
- if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
12601
- return data;
12602
- }
12603
- if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
12604
- const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
12605
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
12606
- try {
12607
- return JSON.parse(data, this.parseReviver);
12608
- } catch (e) {
12609
- if (strictJSONParsing) {
12610
- if (e.name === "SyntaxError") {
12611
- throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
12612
- }
12613
- throw e;
12614
- }
12615
- }
12616
- }
12617
- return data;
12618
- }],
12619
- /**
12620
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
12621
- * timeout is not created.
12622
- */
12623
- timeout: 0,
12624
- xsrfCookieName: "XSRF-TOKEN",
12625
- xsrfHeaderName: "X-XSRF-TOKEN",
12626
- maxContentLength: -1,
12627
- maxBodyLength: -1,
12628
- env: {
12629
- FormData: platform_default.classes.FormData,
12630
- Blob: platform_default.classes.Blob
12631
- },
12632
- validateStatus: function validateStatus(status) {
12633
- return status >= 200 && status < 300;
12634
- },
12635
- headers: {
12636
- common: {
12637
- "Accept": "application/json, text/plain, */*",
12638
- "Content-Type": void 0
12639
- }
12640
- }
12641
- };
12642
- utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
12643
- defaults.headers[method] = {};
12644
- });
12645
- var defaults_default = defaults;
12646
-
12647
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js
12648
- var ignoreDuplicateOf = utils_default.toObjectSet([
12649
- "age",
12650
- "authorization",
12651
- "content-length",
12652
- "content-type",
12653
- "etag",
12654
- "expires",
12655
- "from",
12656
- "host",
12657
- "if-modified-since",
12658
- "if-unmodified-since",
12659
- "last-modified",
12660
- "location",
12661
- "max-forwards",
12662
- "proxy-authorization",
12663
- "referer",
12664
- "retry-after",
12665
- "user-agent"
12666
- ]);
12667
- var parseHeaders_default = (rawHeaders) => {
12668
- const parsed = {};
12669
- let key;
12670
- let val;
12671
- let i;
12672
- rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
12673
- i = line.indexOf(":");
12674
- key = line.substring(0, i).trim().toLowerCase();
12675
- val = line.substring(i + 1).trim();
12676
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
12677
- return;
12678
- }
12679
- if (key === "set-cookie") {
12680
- if (parsed[key]) {
12681
- parsed[key].push(val);
12682
- } else {
12683
- parsed[key] = [val];
12684
- }
12685
- } else {
12686
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
12687
- }
12688
- });
12689
- return parsed;
12690
- };
12691
-
12692
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/AxiosHeaders.js
12693
- var $internals = /* @__PURE__ */ Symbol("internals");
12694
- function normalizeHeader(header) {
12695
- return header && String(header).trim().toLowerCase();
12696
- }
12697
- function normalizeValue(value) {
12698
- if (value === false || value == null) {
12699
- return value;
12700
- }
12701
- return utils_default.isArray(value) ? value.map(normalizeValue) : String(value);
12702
- }
12703
- function parseTokens(str) {
12704
- const tokens = /* @__PURE__ */ Object.create(null);
12705
- const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
12706
- let match;
12707
- while (match = tokensRE.exec(str)) {
12708
- tokens[match[1]] = match[2];
12709
- }
12710
- return tokens;
12711
- }
12712
- var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12713
- function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12714
- if (utils_default.isFunction(filter2)) {
12715
- return filter2.call(this, value, header);
12716
- }
12717
- if (isHeaderNameFilter) {
12718
- value = header;
12719
- }
12720
- if (!utils_default.isString(value)) return;
12721
- if (utils_default.isString(filter2)) {
12722
- return value.indexOf(filter2) !== -1;
12723
- }
12724
- if (utils_default.isRegExp(filter2)) {
12725
- return filter2.test(value);
12726
- }
12727
- }
12728
- function formatHeader(header) {
12729
- return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
12730
- return char.toUpperCase() + str;
12731
- });
12732
- }
12733
- function buildAccessors(obj, header) {
12734
- const accessorName = utils_default.toCamelCase(" " + header);
12735
- ["get", "set", "has"].forEach((methodName) => {
12736
- Object.defineProperty(obj, methodName + accessorName, {
12737
- value: function(arg1, arg2, arg3) {
12738
- return this[methodName].call(this, header, arg1, arg2, arg3);
12739
- },
12740
- configurable: true
12741
- });
12742
- });
12743
- }
12744
- var AxiosHeaders = class {
12745
- constructor(headers) {
12746
- headers && this.set(headers);
12747
- }
12748
- set(header, valueOrRewrite, rewrite) {
12749
- const self2 = this;
12750
- function setHeader(_value, _header, _rewrite) {
12751
- const lHeader = normalizeHeader(_header);
12752
- if (!lHeader) {
12753
- throw new Error("header name must be a non-empty string");
12754
- }
12755
- const key = utils_default.findKey(self2, lHeader);
12756
- if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
12757
- self2[key || _header] = normalizeValue(_value);
12758
- }
12759
- }
12760
- const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
12761
- if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
12762
- setHeaders(header, valueOrRewrite);
12763
- } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12764
- setHeaders(parseHeaders_default(header), valueOrRewrite);
12765
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
12766
- let obj = {}, dest, key;
12767
- for (const entry of header) {
12768
- if (!utils_default.isArray(entry)) {
12769
- throw TypeError("Object iterator must return a key-value pair");
12770
- }
12771
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
12772
- }
12773
- setHeaders(obj, valueOrRewrite);
12774
- } else {
12775
- header != null && setHeader(valueOrRewrite, header, rewrite);
12776
- }
12777
- return this;
12778
- }
12779
- get(header, parser) {
12780
- header = normalizeHeader(header);
12781
- if (header) {
12782
- const key = utils_default.findKey(this, header);
12783
- if (key) {
12784
- const value = this[key];
12785
- if (!parser) {
12786
- return value;
12787
- }
12788
- if (parser === true) {
12789
- return parseTokens(value);
12790
- }
12791
- if (utils_default.isFunction(parser)) {
12792
- return parser.call(this, value, key);
12793
- }
12794
- if (utils_default.isRegExp(parser)) {
12795
- return parser.exec(value);
12796
- }
12797
- throw new TypeError("parser must be boolean|regexp|function");
12798
- }
12799
- }
12800
- }
12801
- has(header, matcher) {
12802
- header = normalizeHeader(header);
12803
- if (header) {
12804
- const key = utils_default.findKey(this, header);
12805
- return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
12806
- }
12807
- return false;
13323
+ key = keys[i];
13324
+ obj[key] = arr[key];
12808
13325
  }
12809
- delete(header, matcher) {
12810
- const self2 = this;
12811
- let deleted = false;
12812
- function deleteHeader(_header) {
12813
- _header = normalizeHeader(_header);
12814
- if (_header) {
12815
- const key = utils_default.findKey(self2, _header);
12816
- if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
12817
- delete self2[key];
12818
- deleted = true;
12819
- }
13326
+ return obj;
13327
+ }
13328
+ function formDataToJSON(formData) {
13329
+ function buildPath(path, value, target, index) {
13330
+ let name = path[index++];
13331
+ if (name === "__proto__") return true;
13332
+ const isNumericKey = Number.isFinite(+name);
13333
+ const isLast = index >= path.length;
13334
+ name = !name && utils_default.isArray(target) ? target.length : name;
13335
+ if (isLast) {
13336
+ if (utils_default.hasOwnProp(target, name)) {
13337
+ target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
13338
+ } else {
13339
+ target[name] = value;
12820
13340
  }
13341
+ return !isNumericKey;
12821
13342
  }
12822
- if (utils_default.isArray(header)) {
12823
- header.forEach(deleteHeader);
12824
- } else {
12825
- deleteHeader(header);
13343
+ if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) {
13344
+ target[name] = [];
12826
13345
  }
12827
- return deleted;
12828
- }
12829
- clear(matcher) {
12830
- const keys = Object.keys(this);
12831
- let i = keys.length;
12832
- let deleted = false;
12833
- while (i--) {
12834
- const key = keys[i];
12835
- if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
12836
- delete this[key];
12837
- deleted = true;
12838
- }
13346
+ const result = buildPath(path, value, target[name], index);
13347
+ if (result && utils_default.isArray(target[name])) {
13348
+ target[name] = arrayToObject(target[name]);
12839
13349
  }
12840
- return deleted;
12841
- }
12842
- normalize(format) {
12843
- const self2 = this;
12844
- const headers = {};
12845
- utils_default.forEach(this, (value, header) => {
12846
- const key = utils_default.findKey(headers, header);
12847
- if (key) {
12848
- self2[key] = normalizeValue(value);
12849
- delete self2[header];
12850
- return;
12851
- }
12852
- const normalized = format ? formatHeader(header) : String(header).trim();
12853
- if (normalized !== header) {
12854
- delete self2[header];
12855
- }
12856
- self2[normalized] = normalizeValue(value);
12857
- headers[normalized] = true;
12858
- });
12859
- return this;
12860
- }
12861
- concat(...targets) {
12862
- return this.constructor.concat(this, ...targets);
13350
+ return !isNumericKey;
12863
13351
  }
12864
- toJSON(asStrings) {
12865
- const obj = /* @__PURE__ */ Object.create(null);
12866
- utils_default.forEach(this, (value, header) => {
12867
- value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
13352
+ if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
13353
+ const obj = {};
13354
+ utils_default.forEachEntry(formData, (name, value) => {
13355
+ buildPath(parsePropPath(name), value, obj, 0);
12868
13356
  });
12869
13357
  return obj;
12870
13358
  }
12871
- [Symbol.iterator]() {
12872
- return Object.entries(this.toJSON())[Symbol.iterator]();
12873
- }
12874
- toString() {
12875
- return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
12876
- }
12877
- getSetCookie() {
12878
- return this.get("set-cookie") || [];
12879
- }
12880
- get [Symbol.toStringTag]() {
12881
- return "AxiosHeaders";
12882
- }
12883
- static from(thing) {
12884
- return thing instanceof this ? thing : new this(thing);
12885
- }
12886
- static concat(first, ...targets) {
12887
- const computed = new this(first);
12888
- targets.forEach((target) => computed.set(target));
12889
- return computed;
13359
+ return null;
13360
+ }
13361
+ var formDataToJSON_default = formDataToJSON;
13362
+
13363
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/defaults/index.js
13364
+ var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
13365
+ function stringifySafely(rawValue, parser, encoder) {
13366
+ if (utils_default.isString(rawValue)) {
13367
+ try {
13368
+ (parser || JSON.parse)(rawValue);
13369
+ return utils_default.trim(rawValue);
13370
+ } catch (e) {
13371
+ if (e.name !== "SyntaxError") {
13372
+ throw e;
13373
+ }
13374
+ }
12890
13375
  }
12891
- static accessor(header) {
12892
- const internals = this[$internals] = this[$internals] = {
12893
- accessors: {}
12894
- };
12895
- const accessors = internals.accessors;
12896
- const prototype2 = this.prototype;
12897
- function defineAccessor(_header) {
12898
- const lHeader = normalizeHeader(_header);
12899
- if (!accessors[lHeader]) {
12900
- buildAccessors(prototype2, _header);
12901
- accessors[lHeader] = true;
13376
+ return (encoder || JSON.stringify)(rawValue);
13377
+ }
13378
+ var defaults = {
13379
+ transitional: transitional_default,
13380
+ adapter: ["xhr", "http", "fetch"],
13381
+ transformRequest: [
13382
+ function transformRequest(data, headers) {
13383
+ const contentType = headers.getContentType() || "";
13384
+ const hasJSONContentType = contentType.indexOf("application/json") > -1;
13385
+ const isObjectPayload = utils_default.isObject(data);
13386
+ if (isObjectPayload && utils_default.isHTMLForm(data)) {
13387
+ data = new FormData(data);
13388
+ }
13389
+ const isFormData2 = utils_default.isFormData(data);
13390
+ if (isFormData2) {
13391
+ return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
13392
+ }
13393
+ if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
13394
+ return data;
13395
+ }
13396
+ if (utils_default.isArrayBufferView(data)) {
13397
+ return data.buffer;
13398
+ }
13399
+ if (utils_default.isURLSearchParams(data)) {
13400
+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
13401
+ return data.toString();
13402
+ }
13403
+ let isFileList2;
13404
+ if (isObjectPayload) {
13405
+ const formSerializer = own(this, "formSerializer");
13406
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
13407
+ return toURLEncodedForm(data, formSerializer).toString();
13408
+ }
13409
+ if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
13410
+ const env = own(this, "env");
13411
+ const _FormData = env && env.FormData;
13412
+ return toFormData_default(
13413
+ isFileList2 ? { "files[]": data } : data,
13414
+ _FormData && new _FormData(),
13415
+ formSerializer
13416
+ );
13417
+ }
13418
+ }
13419
+ if (isObjectPayload || hasJSONContentType) {
13420
+ headers.setContentType("application/json", false);
13421
+ return stringifySafely(data);
12902
13422
  }
13423
+ return data;
13424
+ }
13425
+ ],
13426
+ transformResponse: [
13427
+ function transformResponse(data) {
13428
+ const transitional2 = own(this, "transitional") || defaults.transitional;
13429
+ const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
13430
+ const responseType = own(this, "responseType");
13431
+ const JSONRequested = responseType === "json";
13432
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
13433
+ return data;
13434
+ }
13435
+ if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
13436
+ const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
13437
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
13438
+ try {
13439
+ return JSON.parse(data, own(this, "parseReviver"));
13440
+ } catch (e) {
13441
+ if (strictJSONParsing) {
13442
+ if (e.name === "SyntaxError") {
13443
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
13444
+ }
13445
+ throw e;
13446
+ }
13447
+ }
13448
+ }
13449
+ return data;
13450
+ }
13451
+ ],
13452
+ /**
13453
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
13454
+ * timeout is not created.
13455
+ */
13456
+ timeout: 0,
13457
+ xsrfCookieName: "XSRF-TOKEN",
13458
+ xsrfHeaderName: "X-XSRF-TOKEN",
13459
+ maxContentLength: -1,
13460
+ maxBodyLength: -1,
13461
+ env: {
13462
+ FormData: platform_default.classes.FormData,
13463
+ Blob: platform_default.classes.Blob
13464
+ },
13465
+ validateStatus: function validateStatus(status) {
13466
+ return status >= 200 && status < 300;
13467
+ },
13468
+ headers: {
13469
+ common: {
13470
+ Accept: "application/json, text/plain, */*",
13471
+ "Content-Type": void 0
12903
13472
  }
12904
- utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
12905
- return this;
12906
13473
  }
12907
13474
  };
12908
- AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
12909
- utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12910
- let mapped = key[0].toUpperCase() + key.slice(1);
12911
- return {
12912
- get: () => value,
12913
- set(headerValue) {
12914
- this[mapped] = headerValue;
12915
- }
12916
- };
13475
+ utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
13476
+ defaults.headers[method] = {};
12917
13477
  });
12918
- utils_default.freezeMethods(AxiosHeaders);
12919
- var AxiosHeaders_default = AxiosHeaders;
13478
+ var defaults_default = defaults;
12920
13479
 
12921
- // ../../node_modules/.pnpm/axios@1.13.5_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
12922
13481
  function transformData(fns, response) {
12923
13482
  const config = this || defaults_default;
12924
13483
  const context = response || config;
@@ -12931,12 +13490,12 @@ function transformData(fns, response) {
12931
13490
  return data;
12932
13491
  }
12933
13492
 
12934
- // ../../node_modules/.pnpm/axios@1.13.5_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
12935
13494
  function isCancel(value) {
12936
13495
  return !!(value && value.__CANCEL__);
12937
13496
  }
12938
13497
 
12939
- // ../../node_modules/.pnpm/axios@1.13.5_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
12940
13499
  var CanceledError = class extends AxiosError_default {
12941
13500
  /**
12942
13501
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -12955,7 +13514,7 @@ var CanceledError = class extends AxiosError_default {
12955
13514
  };
12956
13515
  var CanceledError_default = CanceledError;
12957
13516
 
12958
- // ../../node_modules/.pnpm/axios@1.13.5_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
12959
13518
  function settle(resolve, reject, response) {
12960
13519
  const validateStatus2 = response.config.validateStatus;
12961
13520
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -12963,7 +13522,7 @@ function settle(resolve, reject, response) {
12963
13522
  } else {
12964
13523
  reject(new AxiosError_default(
12965
13524
  "Request failed with status code " + response.status,
12966
- [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
13525
+ response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE,
12967
13526
  response.config,
12968
13527
  response.request,
12969
13528
  response
@@ -12971,7 +13530,7 @@ function settle(resolve, reject, response) {
12971
13530
  }
12972
13531
  }
12973
13532
 
12974
- // ../../node_modules/.pnpm/axios@1.13.5_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
12975
13534
  function isAbsoluteURL(url2) {
12976
13535
  if (typeof url2 !== "string") {
12977
13536
  return false;
@@ -12979,40 +13538,108 @@ function isAbsoluteURL(url2) {
12979
13538
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
12980
13539
  }
12981
13540
 
12982
- // ../../node_modules/.pnpm/axios@1.13.5_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
12983
13542
  function combineURLs(baseURL, relativeURL) {
12984
13543
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
12985
13544
  }
12986
13545
 
12987
- // ../../node_modules/.pnpm/axios@1.13.5_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
12988
13547
  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
12989
13548
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
12990
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
13549
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
12991
13550
  return combineURLs(baseURL, requestedURL);
12992
13551
  }
12993
13552
  return requestedURL;
12994
13553
  }
12995
13554
 
12996
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/http.js
12997
- var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
13555
+ // ../../node_modules/.pnpm/proxy-from-env@2.1.0/node_modules/proxy-from-env/index.js
13556
+ var DEFAULT_PORTS = {
13557
+ ftp: 21,
13558
+ gopher: 70,
13559
+ http: 80,
13560
+ https: 443,
13561
+ ws: 80,
13562
+ wss: 443
13563
+ };
13564
+ function parseUrl(urlString) {
13565
+ try {
13566
+ return new URL(urlString);
13567
+ } catch {
13568
+ return null;
13569
+ }
13570
+ }
13571
+ function getProxyForUrl(url2) {
13572
+ var parsedUrl = (typeof url2 === "string" ? parseUrl(url2) : url2) || {};
13573
+ var proto = parsedUrl.protocol;
13574
+ var hostname = parsedUrl.host;
13575
+ var port = parsedUrl.port;
13576
+ if (typeof hostname !== "string" || !hostname || typeof proto !== "string") {
13577
+ return "";
13578
+ }
13579
+ proto = proto.split(":", 1)[0];
13580
+ hostname = hostname.replace(/:\d*$/, "");
13581
+ port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
13582
+ if (!shouldProxy(hostname, port)) {
13583
+ return "";
13584
+ }
13585
+ var proxy = getEnv(proto + "_proxy") || getEnv("all_proxy");
13586
+ if (proxy && proxy.indexOf("://") === -1) {
13587
+ proxy = proto + "://" + proxy;
13588
+ }
13589
+ return proxy;
13590
+ }
13591
+ function shouldProxy(hostname, port) {
13592
+ var NO_PROXY = getEnv("no_proxy").toLowerCase();
13593
+ if (!NO_PROXY) {
13594
+ return true;
13595
+ }
13596
+ if (NO_PROXY === "*") {
13597
+ return false;
13598
+ }
13599
+ return NO_PROXY.split(/[,\s]/).every(function(proxy) {
13600
+ if (!proxy) {
13601
+ return true;
13602
+ }
13603
+ var parsedProxy = proxy.match(/^(.+):(\d+)$/);
13604
+ var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
13605
+ var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
13606
+ if (parsedProxyPort && parsedProxyPort !== port) {
13607
+ return true;
13608
+ }
13609
+ if (!/^[.*]/.test(parsedProxyHostname)) {
13610
+ return hostname !== parsedProxyHostname;
13611
+ }
13612
+ if (parsedProxyHostname.charAt(0) === "*") {
13613
+ parsedProxyHostname = parsedProxyHostname.slice(1);
13614
+ }
13615
+ return !hostname.endsWith(parsedProxyHostname);
13616
+ });
13617
+ }
13618
+ function getEnv(key) {
13619
+ return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13620
+ }
13621
+
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);
12998
13624
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
12999
13625
  import http from "http";
13000
13626
  import https from "https";
13001
13627
  import http2 from "http2";
13002
13628
  import util2 from "util";
13629
+ import { resolve as resolvePath } from "path";
13003
13630
  import zlib from "zlib";
13004
13631
 
13005
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/env/data.js
13006
- var VERSION = "1.13.5";
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";
13007
13634
 
13008
- // ../../node_modules/.pnpm/axios@1.13.5_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
13009
13636
  function parseProtocol(url2) {
13010
- const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
13637
+ const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13011
13638
  return match && match[1] || "";
13012
13639
  }
13013
13640
 
13014
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/fromDataURI.js
13015
- 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]*)$/;
13016
13643
  function fromDataURI(uri, asBlob, options) {
13017
13644
  const _Blob = options && options.Blob || platform_default.classes.Blob;
13018
13645
  const protocol = parseProtocol(uri);
@@ -13025,10 +13652,17 @@ function fromDataURI(uri, asBlob, options) {
13025
13652
  if (!match) {
13026
13653
  throw new AxiosError_default("Invalid URL", AxiosError_default.ERR_INVALID_URL);
13027
13654
  }
13028
- const mime = match[1];
13029
- const isBase64 = match[2];
13030
- const body = match[3];
13031
- 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);
13032
13666
  if (asBlob) {
13033
13667
  if (!_Blob) {
13034
13668
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -13040,24 +13674,29 @@ function fromDataURI(uri, asBlob, options) {
13040
13674
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
13041
13675
  }
13042
13676
 
13043
- // ../../node_modules/.pnpm/axios@1.13.5_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
13044
13678
  import stream3 from "stream";
13045
13679
 
13046
- // ../../node_modules/.pnpm/axios@1.13.5_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
13047
13681
  import stream from "stream";
13048
13682
  var kInternals = /* @__PURE__ */ Symbol("internals");
13049
13683
  var AxiosTransformStream = class extends stream.Transform {
13050
13684
  constructor(options) {
13051
- options = utils_default.toFlatObject(options, {
13052
- maxRate: 0,
13053
- chunkSize: 64 * 1024,
13054
- minChunkSize: 100,
13055
- timeWindow: 500,
13056
- ticksRate: 2,
13057
- samplesCount: 15
13058
- }, null, (prop, source) => {
13059
- return !utils_default.isUndefined(source[prop]);
13060
- });
13685
+ options = utils_default.toFlatObject(
13686
+ options,
13687
+ {
13688
+ maxRate: 0,
13689
+ chunkSize: 64 * 1024,
13690
+ minChunkSize: 100,
13691
+ timeWindow: 500,
13692
+ ticksRate: 2,
13693
+ samplesCount: 15
13694
+ },
13695
+ null,
13696
+ (prop, source) => {
13697
+ return !utils_default.isUndefined(source[prop]);
13698
+ }
13699
+ );
13061
13700
  super({
13062
13701
  readableHighWaterMark: options.chunkSize
13063
13702
  });
@@ -13140,9 +13779,12 @@ var AxiosTransformStream = class extends stream.Transform {
13140
13779
  chunkRemainder = _chunk.subarray(maxChunkSize);
13141
13780
  _chunk = _chunk.subarray(0, maxChunkSize);
13142
13781
  }
13143
- pushChunk(_chunk, chunkRemainder ? () => {
13144
- process.nextTick(_callback, null, chunkRemainder);
13145
- } : _callback);
13782
+ pushChunk(
13783
+ _chunk,
13784
+ chunkRemainder ? () => {
13785
+ process.nextTick(_callback, null, chunkRemainder);
13786
+ } : _callback
13787
+ );
13146
13788
  };
13147
13789
  transformChunk(chunk, function transformNextChunk(err, _chunk) {
13148
13790
  if (err) {
@@ -13158,14 +13800,14 @@ var AxiosTransformStream = class extends stream.Transform {
13158
13800
  };
13159
13801
  var AxiosTransformStream_default = AxiosTransformStream;
13160
13802
 
13161
- // ../../node_modules/.pnpm/axios@1.13.5_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
13162
13804
  import { EventEmitter } from "events";
13163
13805
 
13164
- // ../../node_modules/.pnpm/axios@1.13.5_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
13165
13807
  import util from "util";
13166
13808
  import { Readable } from "stream";
13167
13809
 
13168
- // ../../node_modules/.pnpm/axios@1.13.5_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
13169
13811
  var { asyncIterator } = Symbol;
13170
13812
  var readBlob = async function* (blob) {
13171
13813
  if (blob.stream) {
@@ -13180,7 +13822,7 @@ var readBlob = async function* (blob) {
13180
13822
  };
13181
13823
  var readBlob_default = readBlob;
13182
13824
 
13183
- // ../../node_modules/.pnpm/axios@1.13.5_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
13184
13826
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13185
13827
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
13186
13828
  var CRLF = "\r\n";
@@ -13194,7 +13836,8 @@ var FormDataPart = class {
13194
13836
  if (isStringValue) {
13195
13837
  value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
13196
13838
  } else {
13197
- headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}`;
13839
+ const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
13840
+ headers += `Content-Type: ${safeType}${CRLF}`;
13198
13841
  }
13199
13842
  this.headers = textEncoder.encode(headers + CRLF);
13200
13843
  this.contentLength = isStringValue ? value.byteLength : value.size;
@@ -13213,11 +13856,14 @@ var FormDataPart = class {
13213
13856
  yield CRLF_BYTES;
13214
13857
  }
13215
13858
  static escapeName(name) {
13216
- return String(name).replace(/[\r\n"]/g, (match) => ({
13217
- "\r": "%0D",
13218
- "\n": "%0A",
13219
- '"': "%22"
13220
- })[match]);
13859
+ return String(name).replace(
13860
+ /[\r\n"]/g,
13861
+ (match) => ({
13862
+ "\r": "%0D",
13863
+ "\n": "%0A",
13864
+ '"': "%22"
13865
+ })[match]
13866
+ );
13221
13867
  }
13222
13868
  };
13223
13869
  var formDataToStream = (form, headersHandler, options) => {
@@ -13230,7 +13876,7 @@ var formDataToStream = (form, headersHandler, options) => {
13230
13876
  throw TypeError("FormData instance required");
13231
13877
  }
13232
13878
  if (boundary.length < 1 || boundary.length > 70) {
13233
- throw Error("boundary must be 10-70 characters long");
13879
+ throw Error("boundary must be 1-70 characters long");
13234
13880
  }
13235
13881
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
13236
13882
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -13249,17 +13895,19 @@ var formDataToStream = (form, headersHandler, options) => {
13249
13895
  computedHeaders["Content-Length"] = contentLength;
13250
13896
  }
13251
13897
  headersHandler && headersHandler(computedHeaders);
13252
- return Readable.from((async function* () {
13253
- for (const part of parts) {
13254
- yield boundaryBytes;
13255
- yield* part.encode();
13256
- }
13257
- yield footerBytes;
13258
- })());
13898
+ return Readable.from(
13899
+ (async function* () {
13900
+ for (const part of parts) {
13901
+ yield boundaryBytes;
13902
+ yield* part.encode();
13903
+ }
13904
+ yield footerBytes;
13905
+ })()
13906
+ );
13259
13907
  };
13260
13908
  var formDataToStream_default = formDataToStream;
13261
13909
 
13262
- // ../../node_modules/.pnpm/axios@1.13.5_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
13263
13911
  import stream2 from "stream";
13264
13912
  var ZlibHeaderTransformStream = class extends stream2.Transform {
13265
13913
  __transform(chunk, encoding, callback) {
@@ -13281,7 +13929,7 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
13281
13929
  };
13282
13930
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
13283
13931
 
13284
- // ../../node_modules/.pnpm/axios@1.13.5_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
13285
13933
  var callbackify = (fn, reducer) => {
13286
13934
  return utils_default.isAsyncFn(fn) ? function(...args) {
13287
13935
  const cb = args.pop();
@@ -13296,7 +13944,129 @@ var callbackify = (fn, reducer) => {
13296
13944
  };
13297
13945
  var callbackify_default = callbackify;
13298
13946
 
13299
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
13947
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/shouldBypassProxy.js
13948
+ var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
13949
+ var isIPv4Loopback = (host) => {
13950
+ const parts = host.split(".");
13951
+ if (parts.length !== 4) return false;
13952
+ if (parts[0] !== "127") return false;
13953
+ return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
13954
+ };
13955
+ var isIPv6Loopback = (host) => {
13956
+ if (host === "::1") return true;
13957
+ const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
13958
+ if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
13959
+ const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
13960
+ if (v4MappedHex) {
13961
+ const high = parseInt(v4MappedHex[1], 16);
13962
+ return high >= 32512 && high <= 32767;
13963
+ }
13964
+ const groups = host.split(":");
13965
+ if (groups.length === 8) {
13966
+ for (let i = 0; i < 7; i++) {
13967
+ if (!/^0+$/.test(groups[i])) return false;
13968
+ }
13969
+ return /^0*1$/.test(groups[7]);
13970
+ }
13971
+ return false;
13972
+ };
13973
+ var isLoopback = (host) => {
13974
+ if (!host) return false;
13975
+ if (LOOPBACK_HOSTNAMES.has(host)) return true;
13976
+ if (isIPv4Loopback(host)) return true;
13977
+ return isIPv6Loopback(host);
13978
+ };
13979
+ var DEFAULT_PORTS2 = {
13980
+ http: 80,
13981
+ https: 443,
13982
+ ws: 80,
13983
+ wss: 443,
13984
+ ftp: 21
13985
+ };
13986
+ var parseNoProxyEntry = (entry) => {
13987
+ let entryHost = entry;
13988
+ let entryPort = 0;
13989
+ if (entryHost.charAt(0) === "[") {
13990
+ const bracketIndex = entryHost.indexOf("]");
13991
+ if (bracketIndex !== -1) {
13992
+ const host = entryHost.slice(1, bracketIndex);
13993
+ const rest = entryHost.slice(bracketIndex + 1);
13994
+ if (rest.charAt(0) === ":" && /^\d+$/.test(rest.slice(1))) {
13995
+ entryPort = Number.parseInt(rest.slice(1), 10);
13996
+ }
13997
+ return [host, entryPort];
13998
+ }
13999
+ }
14000
+ const firstColon = entryHost.indexOf(":");
14001
+ const lastColon = entryHost.lastIndexOf(":");
14002
+ if (firstColon !== -1 && firstColon === lastColon && /^\d+$/.test(entryHost.slice(lastColon + 1))) {
14003
+ entryPort = Number.parseInt(entryHost.slice(lastColon + 1), 10);
14004
+ entryHost = entryHost.slice(0, lastColon);
14005
+ }
14006
+ return [entryHost, entryPort];
14007
+ };
14008
+ var IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
14009
+ var IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
14010
+ var unmapIPv4MappedIPv6 = (host) => {
14011
+ if (typeof host !== "string" || host.indexOf(":") === -1) return host;
14012
+ const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
14013
+ if (dotted) return dotted[1];
14014
+ const hex = host.match(IPV4_MAPPED_HEX_RE);
14015
+ if (hex) {
14016
+ const high = parseInt(hex[1], 16);
14017
+ const low = parseInt(hex[2], 16);
14018
+ return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
14019
+ }
14020
+ return host;
14021
+ };
14022
+ var normalizeNoProxyHost = (hostname) => {
14023
+ if (!hostname) {
14024
+ return hostname;
14025
+ }
14026
+ if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
14027
+ hostname = hostname.slice(1, -1);
14028
+ }
14029
+ return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
14030
+ };
14031
+ function shouldBypassProxy(location) {
14032
+ let parsed;
14033
+ try {
14034
+ parsed = new URL(location);
14035
+ } catch (_err) {
14036
+ return false;
14037
+ }
14038
+ const noProxy = (process.env.no_proxy || process.env.NO_PROXY || "").toLowerCase();
14039
+ if (!noProxy) {
14040
+ return false;
14041
+ }
14042
+ if (noProxy === "*") {
14043
+ return true;
14044
+ }
14045
+ const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
14046
+ const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
14047
+ return noProxy.split(/[\s,]+/).some((entry) => {
14048
+ if (!entry) {
14049
+ return false;
14050
+ }
14051
+ let [entryHost, entryPort] = parseNoProxyEntry(entry);
14052
+ entryHost = normalizeNoProxyHost(entryHost);
14053
+ if (!entryHost) {
14054
+ return false;
14055
+ }
14056
+ if (entryPort && entryPort !== port) {
14057
+ return false;
14058
+ }
14059
+ if (entryHost.charAt(0) === "*") {
14060
+ entryHost = entryHost.slice(1);
14061
+ }
14062
+ if (entryHost.charAt(0) === ".") {
14063
+ return hostname.endsWith(entryHost);
14064
+ }
14065
+ return hostname === entryHost || isLoopback(hostname) && isLoopback(entryHost);
14066
+ });
14067
+ }
14068
+
14069
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
13300
14070
  function speedometer(samplesCount, min) {
13301
14071
  samplesCount = samplesCount || 10;
13302
14072
  const bytes = new Array(samplesCount);
@@ -13332,7 +14102,7 @@ function speedometer(samplesCount, min) {
13332
14102
  }
13333
14103
  var speedometer_default = speedometer;
13334
14104
 
13335
- // ../../node_modules/.pnpm/axios@1.13.5_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
13336
14106
  function throttle(fn, freq) {
13337
14107
  let timestamp = 0;
13338
14108
  let threshold = 1e3 / freq;
@@ -13367,24 +14137,27 @@ function throttle(fn, freq) {
13367
14137
  }
13368
14138
  var throttle_default = throttle;
13369
14139
 
13370
- // ../../node_modules/.pnpm/axios@1.13.5_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
13371
14141
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
13372
14142
  let bytesNotified = 0;
13373
14143
  const _speedometer = speedometer_default(50, 250);
13374
14144
  return throttle_default((e) => {
13375
- const loaded = e.loaded;
14145
+ if (!e || typeof e.loaded !== "number") {
14146
+ return;
14147
+ }
14148
+ const rawLoaded = e.loaded;
13376
14149
  const total = e.lengthComputable ? e.total : void 0;
13377
- const progressBytes = loaded - bytesNotified;
14150
+ const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
14151
+ const progressBytes = Math.max(0, loaded - bytesNotified);
13378
14152
  const rate = _speedometer(progressBytes);
13379
- const inRange = loaded <= total;
13380
- bytesNotified = loaded;
14153
+ bytesNotified = Math.max(bytesNotified, loaded);
13381
14154
  const data = {
13382
14155
  loaded,
13383
14156
  total,
13384
14157
  progress: total ? loaded / total : void 0,
13385
14158
  bytes: progressBytes,
13386
14159
  rate: rate ? rate : void 0,
13387
- estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
14160
+ estimated: rate && total ? (total - loaded) / rate : void 0,
13388
14161
  event: e,
13389
14162
  lengthComputable: total != null,
13390
14163
  [isDownloadStream ? "download" : "upload"]: true
@@ -13394,15 +14167,18 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
13394
14167
  };
13395
14168
  var progressEventDecorator = (total, throttled) => {
13396
14169
  const lengthComputable = total != null;
13397
- return [(loaded) => throttled[0]({
13398
- lengthComputable,
13399
- total,
13400
- loaded
13401
- }), throttled[1]];
14170
+ return [
14171
+ (loaded) => throttled[0]({
14172
+ lengthComputable,
14173
+ total,
14174
+ loaded
14175
+ }),
14176
+ throttled[1]
14177
+ ];
13402
14178
  };
13403
14179
  var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
13404
14180
 
13405
- // ../../node_modules/.pnpm/axios@1.13.5_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
13406
14182
  function estimateDataURLDecodedBytes(url2) {
13407
14183
  if (!url2 || typeof url2 !== "string") return 0;
13408
14184
  if (!url2.startsWith("data:")) return 0;
@@ -13447,13 +14223,35 @@ function estimateDataURLDecodedBytes(url2) {
13447
14223
  }
13448
14224
  }
13449
14225
  const groups = Math.floor(effectiveLen / 4);
13450
- const bytes = groups * 3 - (pad || 0);
13451
- return bytes > 0 ? bytes : 0;
14226
+ const bytes2 = groups * 3 - (pad || 0);
14227
+ return bytes2 > 0 ? bytes2 : 0;
14228
+ }
14229
+ if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
14230
+ return Buffer.byteLength(body, "utf8");
14231
+ }
14232
+ let bytes = 0;
14233
+ for (let i = 0, len = body.length; i < len; i++) {
14234
+ const c = body.charCodeAt(i);
14235
+ if (c < 128) {
14236
+ bytes += 1;
14237
+ } else if (c < 2048) {
14238
+ bytes += 2;
14239
+ } else if (c >= 55296 && c <= 56319 && i + 1 < len) {
14240
+ const next = body.charCodeAt(i + 1);
14241
+ if (next >= 56320 && next <= 57343) {
14242
+ bytes += 4;
14243
+ i++;
14244
+ } else {
14245
+ bytes += 3;
14246
+ }
14247
+ } else {
14248
+ bytes += 3;
14249
+ }
13452
14250
  }
13453
- return Buffer.byteLength(body, "utf8");
14251
+ return bytes;
13454
14252
  }
13455
14253
 
13456
- // ../../node_modules/.pnpm/axios@1.13.5_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
13457
14255
  var zlibOptions = {
13458
14256
  flush: zlib.constants.Z_SYNC_FLUSH,
13459
14257
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -13465,9 +14263,47 @@ var brotliOptions = {
13465
14263
  var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
13466
14264
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
13467
14265
  var isHttps = /https:?/;
14266
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
14267
+ function setFormDataHeaders(headers, formHeaders, policy) {
14268
+ if (policy !== "content-only") {
14269
+ headers.set(formHeaders);
14270
+ return;
14271
+ }
14272
+ Object.entries(formHeaders).forEach(([key, val]) => {
14273
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
14274
+ headers.set(key, val);
14275
+ }
14276
+ });
14277
+ }
14278
+ var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
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
+ }
13468
14294
  var supportedProtocols = platform_default.protocols.map((protocol) => {
13469
14295
  return protocol + ":";
13470
14296
  });
14297
+ var decodeURIComponentSafe = (value) => {
14298
+ if (!utils_default.isString(value)) {
14299
+ return value;
14300
+ }
14301
+ try {
14302
+ return decodeURIComponent(value);
14303
+ } catch (error) {
14304
+ return value;
14305
+ }
14306
+ };
13471
14307
  var flushOnFinish = (stream4, [throttled, flush]) => {
13472
14308
  stream4.on("end", flush).on("error", flush);
13473
14309
  return throttled;
@@ -13477,9 +14313,12 @@ var Http2Sessions = class {
13477
14313
  this.sessions = /* @__PURE__ */ Object.create(null);
13478
14314
  }
13479
14315
  getSession(authority, options) {
13480
- options = Object.assign({
13481
- sessionTimeout: 1e3
13482
- }, options);
14316
+ options = Object.assign(
14317
+ {
14318
+ sessionTimeout: 1e3
14319
+ },
14320
+ options
14321
+ );
13483
14322
  let authoritySessions = this.sessions[authority];
13484
14323
  if (authoritySessions) {
13485
14324
  let len = authoritySessions.length;
@@ -13505,6 +14344,9 @@ var Http2Sessions = class {
13505
14344
  } else {
13506
14345
  entries.splice(i, 1);
13507
14346
  }
14347
+ if (!session.closed) {
14348
+ session.close();
14349
+ }
13508
14350
  return;
13509
14351
  }
13510
14352
  }
@@ -13533,57 +14375,114 @@ var Http2Sessions = class {
13533
14375
  };
13534
14376
  }
13535
14377
  session.once("close", removeSession);
13536
- let entry = [
13537
- session,
13538
- options
13539
- ];
14378
+ let entry = [session, options];
13540
14379
  authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
13541
14380
  return session;
13542
14381
  }
13543
14382
  };
13544
14383
  var http2Sessions = new Http2Sessions();
13545
- function dispatchBeforeRedirect(options, responseDetails) {
14384
+ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
13546
14385
  if (options.beforeRedirects.proxy) {
13547
14386
  options.beforeRedirects.proxy(options);
13548
14387
  }
13549
14388
  if (options.beforeRedirects.config) {
13550
- options.beforeRedirects.config(options, responseDetails);
14389
+ options.beforeRedirects.config(options, responseDetails, requestDetails);
13551
14390
  }
13552
14391
  }
13553
- function setProxy(options, configProxy, location) {
14392
+ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent) {
13554
14393
  let proxy = configProxy;
13555
14394
  if (!proxy && proxy !== false) {
13556
- const proxyUrl = import_proxy_from_env.default.getProxyForUrl(location);
14395
+ const proxyUrl = getProxyForUrl(location);
13557
14396
  if (proxyUrl) {
13558
- proxy = new URL(proxyUrl);
14397
+ if (!shouldBypassProxy(location)) {
14398
+ proxy = new URL(proxyUrl);
14399
+ }
14400
+ }
14401
+ }
14402
+ if (isRedirect && options.headers) {
14403
+ for (const name of Object.keys(options.headers)) {
14404
+ if (name.toLowerCase() === "proxy-authorization") {
14405
+ delete options.headers[name];
14406
+ }
13559
14407
  }
13560
14408
  }
14409
+ if (isRedirect && options.agent && options.agent[kAxiosInstalledTunnel]) {
14410
+ options.agent = void 0;
14411
+ }
13561
14412
  if (proxy) {
13562
- if (proxy.username) {
13563
- proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
14413
+ const isProxyURL = proxy instanceof URL;
14414
+ const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
14415
+ const proxyUsername = readProxyField("username");
14416
+ const proxyPassword = readProxyField("password");
14417
+ let proxyAuth = utils_default.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
14418
+ if (proxyUsername) {
14419
+ proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
13564
14420
  }
13565
- if (proxy.auth) {
13566
- const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
14421
+ if (proxyAuth) {
14422
+ const authIsObject = typeof proxyAuth === "object";
14423
+ const authUsername = authIsObject && utils_default.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
14424
+ const authPassword = authIsObject && utils_default.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
14425
+ const validProxyAuth = Boolean(authUsername || authPassword);
13567
14426
  if (validProxyAuth) {
13568
- proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
13569
- } else if (typeof proxy.auth === "object") {
14427
+ proxyAuth = (authUsername || "") + ":" + (authPassword || "");
14428
+ } else if (authIsObject) {
13570
14429
  throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
13571
14430
  }
13572
- const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
13573
- options.headers["Proxy-Authorization"] = "Basic " + base64;
13574
14431
  }
13575
- options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
13576
- const proxyHost = proxy.hostname || proxy.host;
13577
- options.hostname = proxyHost;
13578
- options.host = proxyHost;
13579
- options.port = proxy.port;
13580
- options.path = location;
13581
- if (proxy.protocol) {
13582
- options.protocol = proxy.protocol.includes(":") ? proxy.protocol : `${proxy.protocol}:`;
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}:`;
14481
+ }
13583
14482
  }
13584
14483
  }
13585
14484
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
13586
- setProxy(redirectOptions, configProxy, redirectOptions.href);
14485
+ setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
13587
14486
  };
13588
14487
  }
13589
14488
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
@@ -13622,12 +14521,7 @@ var http2Transport = {
13622
14521
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
13623
14522
  const { http2Options, headers } = options;
13624
14523
  const session = http2Sessions.getSession(authority, http2Options);
13625
- const {
13626
- HTTP2_HEADER_SCHEME,
13627
- HTTP2_HEADER_METHOD,
13628
- HTTP2_HEADER_PATH,
13629
- HTTP2_HEADER_STATUS
13630
- } = http2.constants;
14524
+ const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
13631
14525
  const http2Headers = {
13632
14526
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
13633
14527
  [HTTP2_HEADER_METHOD]: options.method,
@@ -13651,12 +14545,20 @@ var http2Transport = {
13651
14545
  };
13652
14546
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13653
14547
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
13654
- let { data, lookup, family, httpVersion = 1, http2Options } = config;
13655
- const { responseType, responseEncoding } = config;
14548
+ const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
14549
+ let data = own2("data");
14550
+ let lookup = own2("lookup");
14551
+ let family = own2("family");
14552
+ let httpVersion = own2("httpVersion");
14553
+ if (httpVersion === void 0) httpVersion = 1;
14554
+ let http2Options = own2("http2Options");
14555
+ const responseType = own2("responseType");
14556
+ const responseEncoding = own2("responseEncoding");
13656
14557
  const method = config.method.toUpperCase();
13657
14558
  let isDone;
13658
14559
  let rejected = false;
13659
14560
  let req;
14561
+ let connectPhaseTimer;
13660
14562
  httpVersion = +httpVersion;
13661
14563
  if (Number.isNaN(httpVersion)) {
13662
14564
  throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
@@ -13680,13 +14582,36 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13680
14582
  const abortEmitter = new EventEmitter();
13681
14583
  function abort(reason) {
13682
14584
  try {
13683
- abortEmitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config, req) : reason);
14585
+ abortEmitter.emit(
14586
+ "abort",
14587
+ !reason || reason.type ? new CanceledError_default(null, config, req) : reason
14588
+ );
13684
14589
  } catch (err) {
13685
14590
  console.warn("emit error", err);
13686
14591
  }
13687
14592
  }
14593
+ function clearConnectPhaseTimer() {
14594
+ if (connectPhaseTimer) {
14595
+ clearTimeout(connectPhaseTimer);
14596
+ connectPhaseTimer = null;
14597
+ }
14598
+ }
14599
+ function createTimeoutError() {
14600
+ let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
14601
+ const transitional2 = config.transitional || transitional_default;
14602
+ if (config.timeoutErrorMessage) {
14603
+ timeoutErrorMessage = config.timeoutErrorMessage;
14604
+ }
14605
+ return new AxiosError_default(
14606
+ timeoutErrorMessage,
14607
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
14608
+ config,
14609
+ req
14610
+ );
14611
+ }
13688
14612
  abortEmitter.once("abort", reject);
13689
14613
  const onFinished = () => {
14614
+ clearConnectPhaseTimer();
13690
14615
  if (config.cancelToken) {
13691
14616
  config.cancelToken.unsubscribe(abort);
13692
14617
  }
@@ -13703,6 +14628,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13703
14628
  }
13704
14629
  onDone((response, isRejected) => {
13705
14630
  isDone = true;
14631
+ clearConnectPhaseTimer();
13706
14632
  if (isRejected) {
13707
14633
  rejected = true;
13708
14634
  onFinished();
@@ -13726,11 +14652,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13726
14652
  const dataUrl = String(config.url || fullPath || "");
13727
14653
  const estimated = estimateDataURLDecodedBytes(dataUrl);
13728
14654
  if (estimated > config.maxContentLength) {
13729
- return reject(new AxiosError_default(
13730
- "maxContentLength size of " + config.maxContentLength + " exceeded",
13731
- AxiosError_default.ERR_BAD_RESPONSE,
13732
- config
13733
- ));
14655
+ return reject(
14656
+ new AxiosError_default(
14657
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
14658
+ AxiosError_default.ERR_BAD_RESPONSE,
14659
+ config
14660
+ )
14661
+ );
13734
14662
  }
13735
14663
  }
13736
14664
  let convertedData;
@@ -13766,11 +14694,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13766
14694
  });
13767
14695
  }
13768
14696
  if (supportedProtocols.indexOf(protocol) === -1) {
13769
- return reject(new AxiosError_default(
13770
- "Unsupported protocol " + protocol,
13771
- AxiosError_default.ERR_BAD_REQUEST,
13772
- config
13773
- ));
14697
+ return reject(
14698
+ new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_BAD_REQUEST, config)
14699
+ );
13774
14700
  }
13775
14701
  const headers = AxiosHeaders_default.from(config.headers).normalize();
13776
14702
  headers.set("User-Agent", "axios/" + VERSION, false);
@@ -13780,14 +14706,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13780
14706
  let maxDownloadRate = void 0;
13781
14707
  if (utils_default.isSpecCompliantForm(data)) {
13782
14708
  const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
13783
- data = formDataToStream_default(data, (formHeaders) => {
13784
- headers.set(formHeaders);
13785
- }, {
13786
- tag: `axios-${VERSION}-boundary`,
13787
- boundary: userBoundary && userBoundary[1] || void 0
13788
- });
13789
- } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
13790
- headers.set(data.getHeaders());
14709
+ data = formDataToStream_default(
14710
+ data,
14711
+ (formHeaders) => {
14712
+ headers.set(formHeaders);
14713
+ },
14714
+ {
14715
+ tag: `axios-${VERSION}-boundary`,
14716
+ boundary: userBoundary && userBoundary[1] || void 0
14717
+ }
14718
+ );
14719
+ } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
14720
+ setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
13791
14721
  if (!headers.hasContentLength()) {
13792
14722
  try {
13793
14723
  const knownLength = await util2.promisify(data.getLength).call(data);
@@ -13806,19 +14736,23 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13806
14736
  } else if (utils_default.isString(data)) {
13807
14737
  data = Buffer.from(data, "utf-8");
13808
14738
  } else {
13809
- return reject(new AxiosError_default(
13810
- "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
13811
- AxiosError_default.ERR_BAD_REQUEST,
13812
- config
13813
- ));
14739
+ return reject(
14740
+ new AxiosError_default(
14741
+ "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
14742
+ AxiosError_default.ERR_BAD_REQUEST,
14743
+ config
14744
+ )
14745
+ );
13814
14746
  }
13815
14747
  headers.setContentLength(data.length, false);
13816
14748
  if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
13817
- return reject(new AxiosError_default(
13818
- "Request body larger than maxBodyLength limit",
13819
- AxiosError_default.ERR_BAD_REQUEST,
13820
- config
13821
- ));
14749
+ return reject(
14750
+ new AxiosError_default(
14751
+ "Request body larger than maxBodyLength limit",
14752
+ AxiosError_default.ERR_BAD_REQUEST,
14753
+ config
14754
+ )
14755
+ );
13822
14756
  }
13823
14757
  }
13824
14758
  const contentLength = utils_default.toFiniteNumber(headers.getContentLength());
@@ -13832,26 +14766,36 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13832
14766
  if (!utils_default.isStream(data)) {
13833
14767
  data = stream3.Readable.from(data, { objectMode: false });
13834
14768
  }
13835
- data = stream3.pipeline([data, new AxiosTransformStream_default({
13836
- maxRate: utils_default.toFiniteNumber(maxUploadRate)
13837
- })], utils_default.noop);
13838
- onUploadProgress && data.on("progress", flushOnFinish(
13839
- data,
13840
- progressEventDecorator(
13841
- contentLength,
13842
- progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
14769
+ data = stream3.pipeline(
14770
+ [
14771
+ data,
14772
+ new AxiosTransformStream_default({
14773
+ maxRate: utils_default.toFiniteNumber(maxUploadRate)
14774
+ })
14775
+ ],
14776
+ utils_default.noop
14777
+ );
14778
+ onUploadProgress && data.on(
14779
+ "progress",
14780
+ flushOnFinish(
14781
+ data,
14782
+ progressEventDecorator(
14783
+ contentLength,
14784
+ progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
14785
+ )
13843
14786
  )
13844
- ));
14787
+ );
13845
14788
  }
13846
14789
  let auth = void 0;
13847
- if (config.auth) {
13848
- const username = config.auth.username || "";
13849
- const password = config.auth.password || "";
14790
+ const configAuth = own2("auth");
14791
+ if (configAuth) {
14792
+ const username = configAuth.username || "";
14793
+ const password = configAuth.password || "";
13850
14794
  auth = username + ":" + password;
13851
14795
  }
13852
14796
  if (!auth && parsed.username) {
13853
- const urlUsername = parsed.username;
13854
- const urlPassword = parsed.password;
14797
+ const urlUsername = decodeURIComponentSafe(parsed.username);
14798
+ const urlPassword = decodeURIComponentSafe(parsed.password);
13855
14799
  auth = urlUsername + ":" + urlPassword;
13856
14800
  }
13857
14801
  auth && headers.delete("authorization");
@@ -13874,42 +14818,75 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13874
14818
  "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
13875
14819
  false
13876
14820
  );
13877
- const options = {
14821
+ const options = Object.assign(/* @__PURE__ */ Object.create(null), {
13878
14822
  path,
13879
14823
  method,
13880
- headers: headers.toJSON(),
14824
+ headers: toByteStringHeaderObject(headers),
13881
14825
  agents: { http: config.httpAgent, https: config.httpsAgent },
13882
14826
  auth,
13883
14827
  protocol,
13884
14828
  family,
13885
14829
  beforeRedirect: dispatchBeforeRedirect,
13886
- beforeRedirects: {},
14830
+ beforeRedirects: /* @__PURE__ */ Object.create(null),
13887
14831
  http2Options
13888
- };
14832
+ });
13889
14833
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
13890
14834
  if (config.socketPath) {
14835
+ if (typeof config.socketPath !== "string") {
14836
+ return reject(
14837
+ new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
14838
+ );
14839
+ }
14840
+ if (config.allowedSocketPaths != null) {
14841
+ const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
14842
+ const resolvedSocket = resolvePath(config.socketPath);
14843
+ const isAllowed = allowed.some(
14844
+ (entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket
14845
+ );
14846
+ if (!isAllowed) {
14847
+ return reject(
14848
+ new AxiosError_default(
14849
+ `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
14850
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
14851
+ config
14852
+ )
14853
+ );
14854
+ }
14855
+ }
13891
14856
  options.socketPath = config.socketPath;
13892
14857
  } else {
13893
14858
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
13894
14859
  options.port = parsed.port;
13895
- setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
14860
+ setProxy(
14861
+ options,
14862
+ config.proxy,
14863
+ protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
14864
+ false,
14865
+ config.httpsAgent
14866
+ );
13896
14867
  }
13897
14868
  let transport;
14869
+ let isNativeTransport = false;
13898
14870
  const isHttpsRequest = isHttps.test(options.protocol);
13899
- options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
14871
+ if (options.agent == null) {
14872
+ options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
14873
+ }
13900
14874
  if (isHttp2) {
13901
14875
  transport = http2Transport;
13902
14876
  } else {
13903
- if (config.transport) {
13904
- transport = config.transport;
14877
+ const configTransport = own2("transport");
14878
+ if (configTransport) {
14879
+ transport = configTransport;
13905
14880
  } else if (config.maxRedirects === 0) {
13906
14881
  transport = isHttpsRequest ? https : http;
14882
+ isNativeTransport = true;
13907
14883
  } else {
13908
14884
  if (config.maxRedirects) {
13909
14885
  options.maxRedirects = config.maxRedirects;
13910
14886
  }
13911
- if (config.beforeRedirect) {
13912
- options.beforeRedirects.config = config.beforeRedirect;
14887
+ const configBeforeRedirect = own2("beforeRedirect");
14888
+ if (configBeforeRedirect) {
14889
+ options.beforeRedirects.config = configBeforeRedirect;
13913
14890
  }
13914
14891
  transport = isHttpsRequest ? httpsFollow : httpFollow;
13915
14892
  }
@@ -13919,10 +14896,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13919
14896
  } else {
13920
14897
  options.maxBodyLength = Infinity;
13921
14898
  }
13922
- if (config.insecureHTTPParser) {
13923
- options.insecureHTTPParser = config.insecureHTTPParser;
13924
- }
14899
+ options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
13925
14900
  req = transport.request(options, function handleResponse(res) {
14901
+ clearConnectPhaseTimer();
13926
14902
  if (req.destroyed) return;
13927
14903
  const streams = [res];
13928
14904
  const responseLength = utils_default.toFiniteNumber(res.headers["content-length"]);
@@ -13930,13 +14906,16 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13930
14906
  const transformStream = new AxiosTransformStream_default({
13931
14907
  maxRate: utils_default.toFiniteNumber(maxDownloadRate)
13932
14908
  });
13933
- onDownloadProgress && transformStream.on("progress", flushOnFinish(
13934
- transformStream,
13935
- progressEventDecorator(
13936
- responseLength,
13937
- progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
14909
+ onDownloadProgress && transformStream.on(
14910
+ "progress",
14911
+ flushOnFinish(
14912
+ transformStream,
14913
+ progressEventDecorator(
14914
+ responseLength,
14915
+ progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
14916
+ )
13938
14917
  )
13939
- ));
14918
+ );
13940
14919
  streams.push(transformStream);
13941
14920
  }
13942
14921
  let responseStream = res;
@@ -13975,6 +14954,28 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13975
14954
  request: lastRequest
13976
14955
  };
13977
14956
  if (responseType === "stream") {
14957
+ if (config.maxContentLength > -1) {
14958
+ const limit = config.maxContentLength;
14959
+ const source = responseStream;
14960
+ async function* enforceMaxContentLength() {
14961
+ let totalResponseBytes = 0;
14962
+ for await (const chunk of source) {
14963
+ totalResponseBytes += chunk.length;
14964
+ if (totalResponseBytes > limit) {
14965
+ throw new AxiosError_default(
14966
+ "maxContentLength size of " + limit + " exceeded",
14967
+ AxiosError_default.ERR_BAD_RESPONSE,
14968
+ config,
14969
+ lastRequest
14970
+ );
14971
+ }
14972
+ yield chunk;
14973
+ }
14974
+ }
14975
+ responseStream = stream3.Readable.from(enforceMaxContentLength(), {
14976
+ objectMode: false
14977
+ });
14978
+ }
13978
14979
  response.data = responseStream;
13979
14980
  settle(resolve, reject, response);
13980
14981
  } else {
@@ -13986,12 +14987,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13986
14987
  if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
13987
14988
  rejected = true;
13988
14989
  responseStream.destroy();
13989
- abort(new AxiosError_default(
13990
- "maxContentLength size of " + config.maxContentLength + " exceeded",
13991
- AxiosError_default.ERR_BAD_RESPONSE,
13992
- config,
13993
- lastRequest
13994
- ));
14990
+ abort(
14991
+ new AxiosError_default(
14992
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
14993
+ AxiosError_default.ERR_BAD_RESPONSE,
14994
+ config,
14995
+ lastRequest
14996
+ )
14997
+ );
13995
14998
  }
13996
14999
  });
13997
15000
  responseStream.on("aborted", function handlerStreamAborted() {
@@ -14002,14 +15005,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14002
15005
  "stream has been aborted",
14003
15006
  AxiosError_default.ERR_BAD_RESPONSE,
14004
15007
  config,
14005
- lastRequest
15008
+ lastRequest,
15009
+ response
14006
15010
  );
14007
15011
  responseStream.destroy(err);
14008
15012
  reject(err);
14009
15013
  });
14010
15014
  responseStream.on("error", function handleStreamError(err) {
14011
- if (req.destroyed) return;
14012
- reject(AxiosError_default.from(err, null, config, lastRequest));
15015
+ if (rejected) return;
15016
+ reject(AxiosError_default.from(err, null, config, lastRequest, response));
14013
15017
  });
14014
15018
  responseStream.on("end", function handleStreamEnd() {
14015
15019
  try {
@@ -14044,34 +15048,51 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14044
15048
  req.on("error", function handleRequestError(err) {
14045
15049
  reject(AxiosError_default.from(err, null, config, req));
14046
15050
  });
15051
+ const boundSockets = /* @__PURE__ */ new Set();
14047
15052
  req.on("socket", function handleRequestSocket(socket) {
14048
15053
  socket.setKeepAlive(true, 1e3 * 60);
15054
+ if (!socket[kAxiosSocketListener]) {
15055
+ socket.on("error", function handleSocketError(err) {
15056
+ const current = socket[kAxiosCurrentReq];
15057
+ if (current && !current.destroyed) {
15058
+ current.destroy(err);
15059
+ }
15060
+ });
15061
+ socket[kAxiosSocketListener] = true;
15062
+ }
15063
+ socket[kAxiosCurrentReq] = req;
15064
+ boundSockets.add(socket);
15065
+ });
15066
+ req.once("close", function clearCurrentReq() {
15067
+ clearConnectPhaseTimer();
15068
+ for (const socket of boundSockets) {
15069
+ if (socket[kAxiosCurrentReq] === req) {
15070
+ socket[kAxiosCurrentReq] = null;
15071
+ }
15072
+ }
15073
+ boundSockets.clear();
14049
15074
  });
14050
15075
  if (config.timeout) {
14051
15076
  const timeout = parseInt(config.timeout, 10);
14052
15077
  if (Number.isNaN(timeout)) {
14053
- abort(new AxiosError_default(
14054
- "error trying to parse `config.timeout` to int",
14055
- AxiosError_default.ERR_BAD_OPTION_VALUE,
14056
- config,
14057
- req
14058
- ));
15078
+ abort(
15079
+ new AxiosError_default(
15080
+ "error trying to parse `config.timeout` to int",
15081
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15082
+ config,
15083
+ req
15084
+ )
15085
+ );
14059
15086
  return;
14060
15087
  }
14061
- req.setTimeout(timeout, function handleRequestTimeout() {
15088
+ const handleTimeout = function handleTimeout2() {
14062
15089
  if (isDone) return;
14063
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
14064
- const transitional2 = config.transitional || transitional_default;
14065
- if (config.timeoutErrorMessage) {
14066
- timeoutErrorMessage = config.timeoutErrorMessage;
14067
- }
14068
- abort(new AxiosError_default(
14069
- timeoutErrorMessage,
14070
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
14071
- config,
14072
- req
14073
- ));
14074
- });
15090
+ abort(createTimeoutError());
15091
+ };
15092
+ if (isNativeTransport && timeout > 0) {
15093
+ connectPhaseTimer = setTimeout(handleTimeout, timeout);
15094
+ }
15095
+ req.setTimeout(timeout, handleTimeout);
14075
15096
  } else {
14076
15097
  req.setTimeout(0);
14077
15098
  }
@@ -14090,7 +15111,37 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14090
15111
  abort(new CanceledError_default("Request stream has been aborted", config, req));
14091
15112
  }
14092
15113
  });
14093
- data.pipe(req);
15114
+ let uploadStream = data;
15115
+ if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
15116
+ const limit = config.maxBodyLength;
15117
+ let bytesSent = 0;
15118
+ uploadStream = stream3.pipeline(
15119
+ [
15120
+ data,
15121
+ new stream3.Transform({
15122
+ transform(chunk, _enc, cb) {
15123
+ bytesSent += chunk.length;
15124
+ if (bytesSent > limit) {
15125
+ return cb(
15126
+ new AxiosError_default(
15127
+ "Request body larger than maxBodyLength limit",
15128
+ AxiosError_default.ERR_BAD_REQUEST,
15129
+ config,
15130
+ req
15131
+ )
15132
+ );
15133
+ }
15134
+ cb(null, chunk);
15135
+ }
15136
+ })
15137
+ ],
15138
+ utils_default.noop
15139
+ );
15140
+ uploadStream.on("error", (err) => {
15141
+ if (!req.destroyed) req.destroy(err);
15142
+ });
15143
+ }
15144
+ uploadStream.pipe(req);
14094
15145
  } else {
14095
15146
  data && req.write(data);
14096
15147
  req.end();
@@ -14098,7 +15149,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14098
15149
  });
14099
15150
  };
14100
15151
 
14101
- // ../../node_modules/.pnpm/axios@1.13.5_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
14102
15153
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
14103
15154
  url2 = new URL(url2, platform_default.origin);
14104
15155
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -14107,7 +15158,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
14107
15158
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
14108
15159
  ) : () => true;
14109
15160
 
14110
- // ../../node_modules/.pnpm/axios@1.13.5_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
14111
15162
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
14112
15163
  // Standard browser envs support document.cookie
14113
15164
  {
@@ -14133,8 +15184,15 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
14133
15184
  },
14134
15185
  read(name) {
14135
15186
  if (typeof document === "undefined") return null;
14136
- const match = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
14137
- return match ? decodeURIComponent(match[1]) : null;
15187
+ const cookies = document.cookie.split(";");
15188
+ for (let i = 0; i < cookies.length; i++) {
15189
+ const cookie = cookies[i].replace(/^\s+/, "");
15190
+ const eq = cookie.indexOf("=");
15191
+ if (eq !== -1 && cookie.slice(0, eq) === name) {
15192
+ return decodeURIComponent(cookie.slice(eq + 1));
15193
+ }
15194
+ }
15195
+ return null;
14138
15196
  },
14139
15197
  remove(name) {
14140
15198
  this.write(name, "", Date.now() - 864e5, "/");
@@ -14153,11 +15211,20 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
14153
15211
  }
14154
15212
  );
14155
15213
 
14156
- // ../../node_modules/.pnpm/axios@1.13.5_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
14157
15215
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
14158
15216
  function mergeConfig(config1, config2) {
14159
15217
  config2 = config2 || {};
14160
- const config = {};
15218
+ const config = /* @__PURE__ */ Object.create(null);
15219
+ Object.defineProperty(config, "hasOwnProperty", {
15220
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
15221
+ // this data descriptor into an accessor descriptor on the way in.
15222
+ __proto__: null,
15223
+ value: Object.prototype.hasOwnProperty,
15224
+ enumerable: false,
15225
+ writable: true,
15226
+ configurable: true
15227
+ });
14161
15228
  function getMergedValue(target, source, prop, caseless) {
14162
15229
  if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
14163
15230
  return utils_default.merge.call({ caseless }, target, source);
@@ -14188,9 +15255,9 @@ function mergeConfig(config1, config2) {
14188
15255
  }
14189
15256
  }
14190
15257
  function mergeDirectKeys(a, b, prop) {
14191
- if (prop in config2) {
15258
+ if (utils_default.hasOwnProp(config2, prop)) {
14192
15259
  return getMergedValue(a, b);
14193
- } else if (prop in config1) {
15260
+ } else if (utils_default.hasOwnProp(config1, prop)) {
14194
15261
  return getMergedValue(void 0, a);
14195
15262
  }
14196
15263
  }
@@ -14221,51 +15288,76 @@ function mergeConfig(config1, config2) {
14221
15288
  httpsAgent: defaultToConfig2,
14222
15289
  cancelToken: defaultToConfig2,
14223
15290
  socketPath: defaultToConfig2,
15291
+ allowedSocketPaths: defaultToConfig2,
14224
15292
  responseEncoding: defaultToConfig2,
14225
15293
  validateStatus: mergeDirectKeys,
14226
15294
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
14227
15295
  };
14228
- utils_default.forEach(
14229
- Object.keys({ ...config1, ...config2 }),
14230
- function computeConfigValue(prop) {
14231
- if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
14232
- return;
14233
- const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
14234
- const configValue = merge2(config1[prop], config2[prop], prop);
14235
- utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
14236
- }
14237
- );
15296
+ utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
15297
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
15298
+ const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
15299
+ const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
15300
+ const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
15301
+ const configValue = merge2(a, b, prop);
15302
+ utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
15303
+ });
14238
15304
  return config;
14239
15305
  }
14240
15306
 
14241
- // ../../node_modules/.pnpm/axios@1.13.5_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
15308
+ var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
15309
+ function setFormDataHeaders2(headers, formHeaders, policy) {
15310
+ if (policy !== "content-only") {
15311
+ headers.set(formHeaders);
15312
+ return;
15313
+ }
15314
+ Object.entries(formHeaders).forEach(([key, val]) => {
15315
+ if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
15316
+ headers.set(key, val);
15317
+ }
15318
+ });
15319
+ }
15320
+ var encodeUTF8 = (str) => encodeURIComponent(str).replace(
15321
+ /%([0-9A-F]{2})/gi,
15322
+ (_, hex) => String.fromCharCode(parseInt(hex, 16))
15323
+ );
14242
15324
  var resolveConfig_default = (config) => {
14243
15325
  const newConfig = mergeConfig({}, config);
14244
- let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
15326
+ const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
15327
+ const data = own2("data");
15328
+ let withXSRFToken = own2("withXSRFToken");
15329
+ const xsrfHeaderName = own2("xsrfHeaderName");
15330
+ const xsrfCookieName = own2("xsrfCookieName");
15331
+ let headers = own2("headers");
15332
+ const auth = own2("auth");
15333
+ const baseURL = own2("baseURL");
15334
+ const allowAbsoluteUrls = own2("allowAbsoluteUrls");
15335
+ const url2 = own2("url");
14245
15336
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
14246
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
15337
+ newConfig.url = buildURL(
15338
+ buildFullPath(baseURL, url2, allowAbsoluteUrls),
15339
+ config.params,
15340
+ config.paramsSerializer
15341
+ );
14247
15342
  if (auth) {
14248
15343
  headers.set(
14249
15344
  "Authorization",
14250
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
15345
+ "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
14251
15346
  );
14252
15347
  }
14253
15348
  if (utils_default.isFormData(data)) {
14254
15349
  if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
14255
15350
  headers.setContentType(void 0);
14256
15351
  } else if (utils_default.isFunction(data.getHeaders)) {
14257
- const formHeaders = data.getHeaders();
14258
- const allowedHeaders = ["content-type", "content-length"];
14259
- Object.entries(formHeaders).forEach(([key, val]) => {
14260
- if (allowedHeaders.includes(key.toLowerCase())) {
14261
- headers.set(key, val);
14262
- }
14263
- });
15352
+ setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
14264
15353
  }
14265
15354
  }
14266
15355
  if (platform_default.hasStandardBrowserEnv) {
14267
- withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
14268
- if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
15356
+ if (utils_default.isFunction(withXSRFToken)) {
15357
+ withXSRFToken = withXSRFToken(newConfig);
15358
+ }
15359
+ const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
15360
+ if (shouldSendXSRF) {
14269
15361
  const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
14270
15362
  if (xsrfValue) {
14271
15363
  headers.set(xsrfHeaderName, xsrfValue);
@@ -14275,7 +15367,7 @@ var resolveConfig_default = (config) => {
14275
15367
  return newConfig;
14276
15368
  };
14277
15369
 
14278
- // ../../node_modules/.pnpm/axios@1.13.5_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
14279
15371
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
14280
15372
  var xhr_default = isXHRAdapterSupported && function(config) {
14281
15373
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -14311,13 +15403,17 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14311
15403
  config,
14312
15404
  request
14313
15405
  };
14314
- settle(function _resolve(value) {
14315
- resolve(value);
14316
- done();
14317
- }, function _reject(err) {
14318
- reject(err);
14319
- done();
14320
- }, response);
15406
+ settle(
15407
+ function _resolve(value) {
15408
+ resolve(value);
15409
+ done();
15410
+ },
15411
+ function _reject(err) {
15412
+ reject(err);
15413
+ done();
15414
+ },
15415
+ response
15416
+ );
14321
15417
  request = null;
14322
15418
  }
14323
15419
  if ("onloadend" in request) {
@@ -14327,7 +15423,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14327
15423
  if (!request || request.readyState !== 4) {
14328
15424
  return;
14329
15425
  }
14330
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
15426
+ if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
14331
15427
  return;
14332
15428
  }
14333
15429
  setTimeout(onloadend);
@@ -14338,6 +15434,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14338
15434
  return;
14339
15435
  }
14340
15436
  reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
15437
+ done();
14341
15438
  request = null;
14342
15439
  };
14343
15440
  request.onerror = function handleError(event) {
@@ -14345,6 +15442,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14345
15442
  const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
14346
15443
  err.event = event || null;
14347
15444
  reject(err);
15445
+ done();
14348
15446
  request = null;
14349
15447
  };
14350
15448
  request.ontimeout = function handleTimeout() {
@@ -14353,17 +15451,20 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14353
15451
  if (_config.timeoutErrorMessage) {
14354
15452
  timeoutErrorMessage = _config.timeoutErrorMessage;
14355
15453
  }
14356
- reject(new AxiosError_default(
14357
- timeoutErrorMessage,
14358
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
14359
- config,
14360
- request
14361
- ));
15454
+ reject(
15455
+ new AxiosError_default(
15456
+ timeoutErrorMessage,
15457
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
15458
+ config,
15459
+ request
15460
+ )
15461
+ );
15462
+ done();
14362
15463
  request = null;
14363
15464
  };
14364
15465
  requestData === void 0 && requestHeaders.setContentType(null);
14365
15466
  if ("setRequestHeader" in request) {
14366
- utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
15467
+ utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
14367
15468
  request.setRequestHeader(key, val);
14368
15469
  });
14369
15470
  }
@@ -14389,6 +15490,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14389
15490
  }
14390
15491
  reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
14391
15492
  request.abort();
15493
+ done();
14392
15494
  request = null;
14393
15495
  };
14394
15496
  _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
@@ -14397,51 +15499,61 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14397
15499
  }
14398
15500
  }
14399
15501
  const protocol = parseProtocol(_config.url);
14400
- if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
14401
- reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
15502
+ if (protocol && !platform_default.protocols.includes(protocol)) {
15503
+ reject(
15504
+ new AxiosError_default(
15505
+ "Unsupported protocol " + protocol + ":",
15506
+ AxiosError_default.ERR_BAD_REQUEST,
15507
+ config
15508
+ )
15509
+ );
14402
15510
  return;
14403
15511
  }
14404
15512
  request.send(requestData || null);
14405
15513
  });
14406
15514
  };
14407
15515
 
14408
- // ../../node_modules/.pnpm/axios@1.13.5_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
14409
15517
  var composeSignals = (signals, timeout) => {
14410
- const { length } = signals = signals ? signals.filter(Boolean) : [];
14411
- if (timeout || length) {
14412
- let controller = new AbortController();
14413
- let aborted;
14414
- const onabort = function(reason) {
14415
- if (!aborted) {
14416
- aborted = true;
14417
- unsubscribe();
14418
- const err = reason instanceof Error ? reason : this.reason;
14419
- controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
14420
- }
14421
- };
14422
- let timer = timeout && setTimeout(() => {
14423
- timer = null;
14424
- onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
14425
- }, timeout);
14426
- const unsubscribe = () => {
14427
- if (signals) {
14428
- timer && clearTimeout(timer);
14429
- timer = null;
14430
- signals.forEach((signal2) => {
14431
- signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
14432
- });
14433
- signals = null;
14434
- }
14435
- };
14436
- signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
14437
- const { signal } = controller;
14438
- signal.unsubscribe = () => utils_default.asap(unsubscribe);
14439
- return signal;
15518
+ signals = signals ? signals.filter(Boolean) : [];
15519
+ if (!timeout && !signals.length) {
15520
+ return;
14440
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;
14441
15553
  };
14442
15554
  var composeSignals_default = composeSignals;
14443
15555
 
14444
- // ../../node_modules/.pnpm/axios@1.13.5_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
14445
15557
  var streamChunk = function* (chunk, chunkSize) {
14446
15558
  let len = chunk.byteLength;
14447
15559
  if (!chunkSize || len < chunkSize) {
@@ -14489,46 +15601,41 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
14489
15601
  onFinish && onFinish(e);
14490
15602
  }
14491
15603
  };
14492
- return new ReadableStream({
14493
- async pull(controller) {
14494
- try {
14495
- const { done: done2, value } = await iterator2.next();
14496
- if (done2) {
14497
- _onFinish();
14498
- controller.close();
14499
- return;
14500
- }
14501
- let len = value.byteLength;
14502
- if (onProgress) {
14503
- let loadedBytes = bytes += len;
14504
- onProgress(loadedBytes);
15604
+ return new ReadableStream(
15605
+ {
15606
+ async pull(controller) {
15607
+ try {
15608
+ const { done: done2, value } = await iterator2.next();
15609
+ if (done2) {
15610
+ _onFinish();
15611
+ controller.close();
15612
+ return;
15613
+ }
15614
+ let len = value.byteLength;
15615
+ if (onProgress) {
15616
+ let loadedBytes = bytes += len;
15617
+ onProgress(loadedBytes);
15618
+ }
15619
+ controller.enqueue(new Uint8Array(value));
15620
+ } catch (err) {
15621
+ _onFinish(err);
15622
+ throw err;
14505
15623
  }
14506
- controller.enqueue(new Uint8Array(value));
14507
- } catch (err) {
14508
- _onFinish(err);
14509
- throw err;
15624
+ },
15625
+ cancel(reason) {
15626
+ _onFinish(reason);
15627
+ return iterator2.return();
14510
15628
  }
14511
15629
  },
14512
- cancel(reason) {
14513
- _onFinish(reason);
14514
- return iterator2.return();
15630
+ {
15631
+ highWaterMark: 2
14515
15632
  }
14516
- }, {
14517
- highWaterMark: 2
14518
- });
15633
+ );
14519
15634
  };
14520
15635
 
14521
- // ../../node_modules/.pnpm/axios@1.13.5_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
14522
15637
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
14523
15638
  var { isFunction: isFunction2 } = utils_default;
14524
- var globalFetchAPI = (({ Request, Response }) => ({
14525
- Request,
14526
- Response
14527
- }))(utils_default.global);
14528
- var {
14529
- ReadableStream: ReadableStream2,
14530
- TextEncoder: TextEncoder2
14531
- } = utils_default.global;
14532
15639
  var test = (fn, ...args) => {
14533
15640
  try {
14534
15641
  return !!fn(...args);
@@ -14537,9 +15644,18 @@ var test = (fn, ...args) => {
14537
15644
  }
14538
15645
  };
14539
15646
  var factory = (env) => {
14540
- env = utils_default.merge.call({
14541
- skipUndefined: true
14542
- }, globalFetchAPI, env);
15647
+ const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
15648
+ const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
15649
+ env = utils_default.merge.call(
15650
+ {
15651
+ skipUndefined: true
15652
+ },
15653
+ {
15654
+ Request: globalObject.Request,
15655
+ Response: globalObject.Response
15656
+ },
15657
+ env
15658
+ );
14543
15659
  const { fetch: envFetch, Request, Response } = env;
14544
15660
  const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
14545
15661
  const isRequestSupported = isFunction2(Request);
@@ -14551,14 +15667,18 @@ var factory = (env) => {
14551
15667
  const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
14552
15668
  const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
14553
15669
  let duplexAccessed = false;
14554
- const hasContentType = new Request(platform_default.origin, {
15670
+ const request = new Request(platform_default.origin, {
14555
15671
  body: new ReadableStream2(),
14556
15672
  method: "POST",
14557
15673
  get duplex() {
14558
15674
  duplexAccessed = true;
14559
15675
  return "half";
14560
15676
  }
14561
- }).headers.has("Content-Type");
15677
+ });
15678
+ const hasContentType = request.headers.has("Content-Type");
15679
+ if (request.body != null) {
15680
+ request.body.cancel();
15681
+ }
14562
15682
  return duplexAccessed && !hasContentType;
14563
15683
  });
14564
15684
  const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
@@ -14572,7 +15692,11 @@ var factory = (env) => {
14572
15692
  if (method) {
14573
15693
  return method.call(res);
14574
15694
  }
14575
- throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
15695
+ throw new AxiosError_default(
15696
+ `Response type '${type}' is not supported`,
15697
+ AxiosError_default.ERR_NOT_SUPPORT,
15698
+ config
15699
+ );
14576
15700
  });
14577
15701
  });
14578
15702
  })();
@@ -14617,17 +15741,46 @@ var factory = (env) => {
14617
15741
  responseType,
14618
15742
  headers,
14619
15743
  withCredentials = "same-origin",
14620
- fetchOptions
15744
+ fetchOptions,
15745
+ maxContentLength,
15746
+ maxBodyLength
14621
15747
  } = resolveConfig_default(config);
15748
+ const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
15749
+ const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
14622
15750
  let _fetch = envFetch || fetch;
14623
15751
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
14624
- let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
15752
+ let composedSignal = composeSignals_default(
15753
+ [signal, cancelToken && cancelToken.toAbortSignal()],
15754
+ timeout
15755
+ );
14625
15756
  let request = null;
14626
15757
  const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
14627
15758
  composedSignal.unsubscribe();
14628
15759
  });
14629
15760
  let requestContentLength;
14630
15761
  try {
15762
+ if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
15763
+ const estimated = estimateDataURLDecodedBytes(url2);
15764
+ if (estimated > maxContentLength) {
15765
+ throw new AxiosError_default(
15766
+ "maxContentLength size of " + maxContentLength + " exceeded",
15767
+ AxiosError_default.ERR_BAD_RESPONSE,
15768
+ config,
15769
+ request
15770
+ );
15771
+ }
15772
+ }
15773
+ if (hasMaxBodyLength && method !== "get" && method !== "head") {
15774
+ const outboundLength = await resolveBodyLength(headers, data);
15775
+ if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
15776
+ throw new AxiosError_default(
15777
+ "Request body larger than maxBodyLength limit",
15778
+ AxiosError_default.ERR_BAD_REQUEST,
15779
+ config,
15780
+ request
15781
+ );
15782
+ }
15783
+ }
14631
15784
  if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
14632
15785
  let _request = new Request(url2, {
14633
15786
  method: "POST",
@@ -14650,19 +15803,37 @@ var factory = (env) => {
14650
15803
  withCredentials = withCredentials ? "include" : "omit";
14651
15804
  }
14652
15805
  const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
15806
+ if (utils_default.isFormData(data)) {
15807
+ const contentType = headers.getContentType();
15808
+ if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
15809
+ headers.delete("content-type");
15810
+ }
15811
+ }
15812
+ headers.set("User-Agent", "axios/" + VERSION, false);
14653
15813
  const resolvedOptions = {
14654
15814
  ...fetchOptions,
14655
15815
  signal: composedSignal,
14656
15816
  method: method.toUpperCase(),
14657
- headers: headers.normalize().toJSON(),
15817
+ headers: toByteStringHeaderObject(headers.normalize()),
14658
15818
  body: data,
14659
15819
  duplex: "half",
14660
15820
  credentials: isCredentialsSupported ? withCredentials : void 0
14661
15821
  };
14662
15822
  request = isRequestSupported && new Request(url2, resolvedOptions);
14663
15823
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
15824
+ if (hasMaxContentLength) {
15825
+ const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
15826
+ if (declaredLength != null && declaredLength > maxContentLength) {
15827
+ throw new AxiosError_default(
15828
+ "maxContentLength size of " + maxContentLength + " exceeded",
15829
+ AxiosError_default.ERR_BAD_RESPONSE,
15830
+ config,
15831
+ request
15832
+ );
15833
+ }
15834
+ }
14664
15835
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
14665
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
15836
+ if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
14666
15837
  const options = {};
14667
15838
  ["status", "statusText", "headers"].forEach((prop) => {
14668
15839
  options[prop] = response[prop];
@@ -14672,8 +15843,23 @@ var factory = (env) => {
14672
15843
  responseContentLength,
14673
15844
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
14674
15845
  ) || [];
15846
+ let bytesRead = 0;
15847
+ const onChunkProgress = (loadedBytes) => {
15848
+ if (hasMaxContentLength) {
15849
+ bytesRead = loadedBytes;
15850
+ if (bytesRead > maxContentLength) {
15851
+ throw new AxiosError_default(
15852
+ "maxContentLength size of " + maxContentLength + " exceeded",
15853
+ AxiosError_default.ERR_BAD_RESPONSE,
15854
+ config,
15855
+ request
15856
+ );
15857
+ }
15858
+ }
15859
+ onProgress && onProgress(loadedBytes);
15860
+ };
14675
15861
  response = new Response(
14676
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
15862
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
14677
15863
  flush && flush();
14678
15864
  unsubscribe && unsubscribe();
14679
15865
  }),
@@ -14681,7 +15867,30 @@ var factory = (env) => {
14681
15867
  );
14682
15868
  }
14683
15869
  responseType = responseType || "text";
14684
- let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
15870
+ let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
15871
+ response,
15872
+ config
15873
+ );
15874
+ if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
15875
+ let materializedSize;
15876
+ if (responseData != null) {
15877
+ if (typeof responseData.byteLength === "number") {
15878
+ materializedSize = responseData.byteLength;
15879
+ } else if (typeof responseData.size === "number") {
15880
+ materializedSize = responseData.size;
15881
+ } else if (typeof responseData === "string") {
15882
+ materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
15883
+ }
15884
+ }
15885
+ if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
15886
+ throw new AxiosError_default(
15887
+ "maxContentLength size of " + maxContentLength + " exceeded",
15888
+ AxiosError_default.ERR_BAD_RESPONSE,
15889
+ config,
15890
+ request
15891
+ );
15892
+ }
15893
+ }
14685
15894
  !isStreamResponse && unsubscribe && unsubscribe();
14686
15895
  return await new Promise((resolve, reject) => {
14687
15896
  settle(resolve, reject, {
@@ -14695,9 +15904,22 @@ var factory = (env) => {
14695
15904
  });
14696
15905
  } catch (err) {
14697
15906
  unsubscribe && unsubscribe();
15907
+ if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
15908
+ const canceledError = composedSignal.reason;
15909
+ canceledError.config = config;
15910
+ request && (canceledError.request = request);
15911
+ err !== canceledError && (canceledError.cause = err);
15912
+ throw canceledError;
15913
+ }
14698
15914
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
14699
15915
  throw Object.assign(
14700
- new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request, err && err.response),
15916
+ new AxiosError_default(
15917
+ "Network Error",
15918
+ AxiosError_default.ERR_NETWORK,
15919
+ config,
15920
+ request,
15921
+ err && err.response
15922
+ ),
14701
15923
  {
14702
15924
  cause: err.cause || err
14703
15925
  }
@@ -14711,11 +15933,7 @@ var seedCache = /* @__PURE__ */ new Map();
14711
15933
  var getFetch = (config) => {
14712
15934
  let env = config && config.env || {};
14713
15935
  const { fetch: fetch2, Request, Response } = env;
14714
- const seeds = [
14715
- Request,
14716
- Response,
14717
- fetch2
14718
- ];
15936
+ const seeds = [Request, Response, fetch2];
14719
15937
  let len = seeds.length, i = len, seed, target, map = seedCache;
14720
15938
  while (i--) {
14721
15939
  seed = seeds[i];
@@ -14727,7 +15945,7 @@ var getFetch = (config) => {
14727
15945
  };
14728
15946
  var adapter = getFetch();
14729
15947
 
14730
- // ../../node_modules/.pnpm/axios@1.13.5_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
14731
15949
  var knownAdapters = {
14732
15950
  http: http_default,
14733
15951
  xhr: xhr_default,
@@ -14738,10 +15956,10 @@ var knownAdapters = {
14738
15956
  utils_default.forEach(knownAdapters, (fn, value) => {
14739
15957
  if (fn) {
14740
15958
  try {
14741
- Object.defineProperty(fn, "name", { value });
15959
+ Object.defineProperty(fn, "name", { __proto__: null, value });
14742
15960
  } catch (e) {
14743
15961
  }
14744
- Object.defineProperty(fn, "adapterName", { value });
15962
+ Object.defineProperty(fn, "adapterName", { __proto__: null, value });
14745
15963
  }
14746
15964
  });
14747
15965
  var renderReason = (reason) => `- ${reason}`;
@@ -14792,7 +16010,7 @@ var adapters_default = {
14792
16010
  adapters: knownAdapters
14793
16011
  };
14794
16012
 
14795
- // ../../node_modules/.pnpm/axios@1.13.5_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
14796
16014
  function throwIfCancellationRequested(config) {
14797
16015
  if (config.cancelToken) {
14798
16016
  config.cancelToken.throwIfRequested();
@@ -14804,40 +16022,46 @@ function throwIfCancellationRequested(config) {
14804
16022
  function dispatchRequest(config) {
14805
16023
  throwIfCancellationRequested(config);
14806
16024
  config.headers = AxiosHeaders_default.from(config.headers);
14807
- config.data = transformData.call(
14808
- config,
14809
- config.transformRequest
14810
- );
16025
+ config.data = transformData.call(config, config.transformRequest);
14811
16026
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
14812
16027
  config.headers.setContentType("application/x-www-form-urlencoded", false);
14813
16028
  }
14814
16029
  const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
14815
- return adapter2(config).then(function onAdapterResolution(response) {
14816
- throwIfCancellationRequested(config);
14817
- response.data = transformData.call(
14818
- config,
14819
- config.transformResponse,
14820
- response
14821
- );
14822
- response.headers = AxiosHeaders_default.from(response.headers);
14823
- return response;
14824
- }, function onAdapterRejection(reason) {
14825
- if (!isCancel(reason)) {
16030
+ return adapter2(config).then(
16031
+ function onAdapterResolution(response) {
14826
16032
  throwIfCancellationRequested(config);
14827
- if (reason && reason.response) {
14828
- reason.response.data = transformData.call(
14829
- config,
14830
- config.transformResponse,
14831
- reason.response
14832
- );
14833
- reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
16033
+ config.response = response;
16034
+ try {
16035
+ response.data = transformData.call(config, config.transformResponse, response);
16036
+ } finally {
16037
+ delete config.response;
16038
+ }
16039
+ response.headers = AxiosHeaders_default.from(response.headers);
16040
+ return response;
16041
+ },
16042
+ function onAdapterRejection(reason) {
16043
+ if (!isCancel(reason)) {
16044
+ throwIfCancellationRequested(config);
16045
+ if (reason && reason.response) {
16046
+ config.response = reason.response;
16047
+ try {
16048
+ reason.response.data = transformData.call(
16049
+ config,
16050
+ config.transformResponse,
16051
+ reason.response
16052
+ );
16053
+ } finally {
16054
+ delete config.response;
16055
+ }
16056
+ reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
16057
+ }
14834
16058
  }
16059
+ return Promise.reject(reason);
14835
16060
  }
14836
- return Promise.reject(reason);
14837
- });
16061
+ );
14838
16062
  }
14839
16063
 
14840
- // ../../node_modules/.pnpm/axios@1.13.5_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
14841
16065
  var validators = {};
14842
16066
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
14843
16067
  validators[type] = function validator(thing) {
@@ -14882,12 +16106,15 @@ function assertOptions(options, schema, allowUnknown) {
14882
16106
  let i = keys.length;
14883
16107
  while (i-- > 0) {
14884
16108
  const opt = keys[i];
14885
- const validator = schema[opt];
16109
+ const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
14886
16110
  if (validator) {
14887
16111
  const value = options[opt];
14888
16112
  const result = value === void 0 || validator(value, opt, options);
14889
16113
  if (result !== true) {
14890
- throw new AxiosError_default("option " + opt + " must be " + result, AxiosError_default.ERR_BAD_OPTION_VALUE);
16114
+ throw new AxiosError_default(
16115
+ "option " + opt + " must be " + result,
16116
+ AxiosError_default.ERR_BAD_OPTION_VALUE
16117
+ );
14891
16118
  }
14892
16119
  continue;
14893
16120
  }
@@ -14901,7 +16128,7 @@ var validator_default = {
14901
16128
  validators
14902
16129
  };
14903
16130
 
14904
- // ../../node_modules/.pnpm/axios@1.13.5_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
14905
16132
  var validators2 = validator_default.validators;
14906
16133
  var Axios = class {
14907
16134
  constructor(instanceConfig) {
@@ -14926,12 +16153,23 @@ var Axios = class {
14926
16153
  if (err instanceof Error) {
14927
16154
  let dummy = {};
14928
16155
  Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
14929
- const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
16156
+ const stack = (() => {
16157
+ if (!dummy.stack) {
16158
+ return "";
16159
+ }
16160
+ const firstNewlineIndex = dummy.stack.indexOf("\n");
16161
+ return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
16162
+ })();
14930
16163
  try {
14931
16164
  if (!err.stack) {
14932
16165
  err.stack = stack;
14933
- } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
14934
- err.stack += "\n" + stack;
16166
+ } else if (stack) {
16167
+ const firstNewlineIndex = stack.indexOf("\n");
16168
+ const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
16169
+ const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
16170
+ if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
16171
+ err.stack += "\n" + stack;
16172
+ }
14935
16173
  }
14936
16174
  } catch (e) {
14937
16175
  }
@@ -14949,12 +16187,16 @@ var Axios = class {
14949
16187
  config = mergeConfig(this.defaults, config);
14950
16188
  const { transitional: transitional2, paramsSerializer, headers } = config;
14951
16189
  if (transitional2 !== void 0) {
14952
- validator_default.assertOptions(transitional2, {
14953
- silentJSONParsing: validators2.transitional(validators2.boolean),
14954
- forcedJSONParsing: validators2.transitional(validators2.boolean),
14955
- clarifyTimeoutError: validators2.transitional(validators2.boolean),
14956
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
14957
- }, false);
16190
+ validator_default.assertOptions(
16191
+ transitional2,
16192
+ {
16193
+ silentJSONParsing: validators2.transitional(validators2.boolean),
16194
+ forcedJSONParsing: validators2.transitional(validators2.boolean),
16195
+ clarifyTimeoutError: validators2.transitional(validators2.boolean),
16196
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
16197
+ },
16198
+ false
16199
+ );
14958
16200
  }
14959
16201
  if (paramsSerializer != null) {
14960
16202
  if (utils_default.isFunction(paramsSerializer)) {
@@ -14962,10 +16204,14 @@ var Axios = class {
14962
16204
  serialize: paramsSerializer
14963
16205
  };
14964
16206
  } else {
14965
- validator_default.assertOptions(paramsSerializer, {
14966
- encode: validators2.function,
14967
- serialize: validators2.function
14968
- }, true);
16207
+ validator_default.assertOptions(
16208
+ paramsSerializer,
16209
+ {
16210
+ encode: validators2.function,
16211
+ serialize: validators2.function
16212
+ },
16213
+ true
16214
+ );
14969
16215
  }
14970
16216
  }
14971
16217
  if (config.allowAbsoluteUrls !== void 0) {
@@ -14974,21 +16220,19 @@ var Axios = class {
14974
16220
  } else {
14975
16221
  config.allowAbsoluteUrls = true;
14976
16222
  }
14977
- validator_default.assertOptions(config, {
14978
- baseUrl: validators2.spelling("baseURL"),
14979
- withXsrfToken: validators2.spelling("withXSRFToken")
14980
- }, true);
14981
- config.method = (config.method || this.defaults.method || "get").toLowerCase();
14982
- let contextHeaders = headers && utils_default.merge(
14983
- headers.common,
14984
- headers[config.method]
14985
- );
14986
- headers && utils_default.forEach(
14987
- ["delete", "get", "head", "post", "put", "patch", "common"],
14988
- (method) => {
14989
- delete headers[method];
14990
- }
16223
+ validator_default.assertOptions(
16224
+ config,
16225
+ {
16226
+ baseUrl: validators2.spelling("baseURL"),
16227
+ withXsrfToken: validators2.spelling("withXSRFToken")
16228
+ },
16229
+ true
14991
16230
  );
16231
+ config.method = (config.method || this.defaults.method || "get").toLowerCase();
16232
+ let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
16233
+ headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
16234
+ delete headers[method];
16235
+ });
14992
16236
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
14993
16237
  const requestInterceptorChain = [];
14994
16238
  let synchronousRequestInterceptors = true;
@@ -15055,32 +16299,38 @@ var Axios = class {
15055
16299
  };
15056
16300
  utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
15057
16301
  Axios.prototype[method] = function(url2, config) {
15058
- return this.request(mergeConfig(config || {}, {
15059
- method,
15060
- url: url2,
15061
- data: (config || {}).data
15062
- }));
16302
+ return this.request(
16303
+ mergeConfig(config || {}, {
16304
+ method,
16305
+ url: url2,
16306
+ data: (config || {}).data
16307
+ })
16308
+ );
15063
16309
  };
15064
16310
  });
15065
- utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
16311
+ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
15066
16312
  function generateHTTPMethod(isForm) {
15067
16313
  return function httpMethod(url2, data, config) {
15068
- return this.request(mergeConfig(config || {}, {
15069
- method,
15070
- headers: isForm ? {
15071
- "Content-Type": "multipart/form-data"
15072
- } : {},
15073
- url: url2,
15074
- data
15075
- }));
16314
+ return this.request(
16315
+ mergeConfig(config || {}, {
16316
+ method,
16317
+ headers: isForm ? {
16318
+ "Content-Type": "multipart/form-data"
16319
+ } : {},
16320
+ url: url2,
16321
+ data
16322
+ })
16323
+ );
15076
16324
  };
15077
16325
  }
15078
16326
  Axios.prototype[method] = generateHTTPMethod();
15079
- Axios.prototype[method + "Form"] = generateHTTPMethod(true);
16327
+ if (method !== "query") {
16328
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
16329
+ }
15080
16330
  });
15081
16331
  var Axios_default = Axios;
15082
16332
 
15083
- // ../../node_modules/.pnpm/axios@1.13.5_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
15084
16334
  var CancelToken = class _CancelToken {
15085
16335
  constructor(executor) {
15086
16336
  if (typeof executor !== "function") {
@@ -15178,19 +16428,19 @@ var CancelToken = class _CancelToken {
15178
16428
  };
15179
16429
  var CancelToken_default = CancelToken;
15180
16430
 
15181
- // ../../node_modules/.pnpm/axios@1.13.5_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
15182
16432
  function spread(callback) {
15183
16433
  return function wrap(arr) {
15184
16434
  return callback.apply(null, arr);
15185
16435
  };
15186
16436
  }
15187
16437
 
15188
- // ../../node_modules/.pnpm/axios@1.13.5_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
15189
16439
  function isAxiosError(payload) {
15190
16440
  return utils_default.isObject(payload) && payload.isAxiosError === true;
15191
16441
  }
15192
16442
 
15193
- // ../../node_modules/.pnpm/axios@1.13.5_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
15194
16444
  var HttpStatusCode = {
15195
16445
  Continue: 100,
15196
16446
  SwitchingProtocols: 101,
@@ -15267,13 +16517,13 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
15267
16517
  });
15268
16518
  var HttpStatusCode_default = HttpStatusCode;
15269
16519
 
15270
- // ../../node_modules/.pnpm/axios@1.13.5_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
15271
16521
  function createInstance(defaultConfig) {
15272
16522
  const context = new Axios_default(defaultConfig);
15273
16523
  const instance = bind(Axios_default.prototype.request, context);
15274
16524
  utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });
15275
16525
  utils_default.extend(instance, context, null, { allOwnKeys: true });
15276
- instance.create = function create(instanceConfig) {
16526
+ instance.create = function create2(instanceConfig) {
15277
16527
  return createInstance(mergeConfig(defaultConfig, instanceConfig));
15278
16528
  };
15279
16529
  return instance;
@@ -15300,7 +16550,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
15300
16550
  axios.default = axios;
15301
16551
  var axios_default = axios;
15302
16552
 
15303
- // ../../node_modules/.pnpm/axios@1.13.5_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
15304
16554
  var {
15305
16555
  Axios: Axios2,
15306
16556
  AxiosError: AxiosError2,
@@ -15317,7 +16567,8 @@ var {
15317
16567
  HttpStatusCode: HttpStatusCode2,
15318
16568
  formToJSON,
15319
16569
  getAdapter: getAdapter2,
15320
- mergeConfig: mergeConfig2
16570
+ mergeConfig: mergeConfig2,
16571
+ create
15321
16572
  } = axios_default;
15322
16573
 
15323
16574
  // ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=283f0d16759aba9c68cd55bb0821c977833a401969b0ecf9492a6618e019f6c1/node_modules/pipenet/dist/Tunnel.js