pinme 2.0.1 → 2.0.2-beta.0

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.
package/dist/index.js CHANGED
@@ -8,6 +8,10 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
8
  var __commonJS = (cb, mod) => function __require() {
9
9
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
10
  };
11
+ var __export = (target, all3) => {
12
+ for (var name in all3)
13
+ __defProp(target, name, { get: all3[name], enumerable: true });
14
+ };
11
15
  var __copyProps = (to, from, except, desc) => {
12
16
  if (from && typeof from === "object" || typeof from === "function") {
13
17
  for (let key of __getOwnPropNames(from))
@@ -25,12 +29,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
25
29
  mod
26
30
  ));
27
31
 
28
- // node_modules/.pnpm/dotenv@16.5.0/node_modules/dotenv/package.json
32
+ // node_modules/dotenv/package.json
29
33
  var require_package = __commonJS({
30
- "node_modules/.pnpm/dotenv@16.5.0/node_modules/dotenv/package.json"(exports2, module2) {
34
+ "node_modules/dotenv/package.json"(exports2, module2) {
31
35
  module2.exports = {
32
36
  name: "dotenv",
33
- version: "16.5.0",
37
+ version: "16.6.1",
34
38
  description: "Loads environment variables from .env file",
35
39
  main: "lib/main.js",
36
40
  types: "lib/main.d.ts",
@@ -53,7 +57,7 @@ var require_package = __commonJS({
53
57
  lint: "standard",
54
58
  pretest: "npm run lint && npm run dts-check",
55
59
  test: "tap run --allow-empty-coverage --disable-coverage --timeout=60000",
56
- "test:coverage": "tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",
60
+ "test:coverage": "tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",
57
61
  prerelease: "npm test",
58
62
  release: "standard-version"
59
63
  },
@@ -93,13 +97,13 @@ var require_package = __commonJS({
93
97
  }
94
98
  });
95
99
 
96
- // node_modules/.pnpm/dotenv@16.5.0/node_modules/dotenv/lib/main.js
100
+ // node_modules/dotenv/lib/main.js
97
101
  var require_main = __commonJS({
98
- "node_modules/.pnpm/dotenv@16.5.0/node_modules/dotenv/lib/main.js"(exports2, module2) {
102
+ "node_modules/dotenv/lib/main.js"(exports2, module2) {
99
103
  var fs17 = require("fs");
100
104
  var path18 = require("path");
101
105
  var os6 = require("os");
102
- var crypto3 = require("crypto");
106
+ var crypto4 = require("crypto");
103
107
  var packageJson = require_package();
104
108
  var version2 = packageJson.version;
105
109
  var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
@@ -123,8 +127,10 @@ var require_main = __commonJS({
123
127
  return obj;
124
128
  }
125
129
  function _parseVault(options) {
130
+ options = options || {};
126
131
  const vaultPath = _vaultPath(options);
127
- const result = DotenvModule.configDotenv({ path: vaultPath });
132
+ options.path = vaultPath;
133
+ const result = DotenvModule.configDotenv(options);
128
134
  if (!result.parsed) {
129
135
  const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
130
136
  err.code = "MISSING_DATA";
@@ -153,6 +159,9 @@ var require_main = __commonJS({
153
159
  function _debug(message) {
154
160
  console.log(`[dotenv@${version2}][DEBUG] ${message}`);
155
161
  }
162
+ function _log(message) {
163
+ console.log(`[dotenv@${version2}] ${message}`);
164
+ }
156
165
  function _dotenvKey(options) {
157
166
  if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
158
167
  return options.DOTENV_KEY;
@@ -220,8 +229,9 @@ var require_main = __commonJS({
220
229
  }
221
230
  function _configVault(options) {
222
231
  const debug = Boolean(options && options.debug);
223
- if (debug) {
224
- _debug("Loading env from encrypted .env.vault");
232
+ const quiet = options && "quiet" in options ? options.quiet : true;
233
+ if (debug || !quiet) {
234
+ _log("Loading env from encrypted .env.vault");
225
235
  }
226
236
  const parsed = DotenvModule._parseVault(options);
227
237
  let processEnv = process.env;
@@ -235,6 +245,7 @@ var require_main = __commonJS({
235
245
  const dotenvPath = path18.resolve(process.cwd(), ".env");
236
246
  let encoding = "utf8";
237
247
  const debug = Boolean(options && options.debug);
248
+ const quiet = options && "quiet" in options ? options.quiet : true;
238
249
  if (options && options.encoding) {
239
250
  encoding = options.encoding;
240
251
  } else {
@@ -271,6 +282,22 @@ var require_main = __commonJS({
271
282
  processEnv = options.processEnv;
272
283
  }
273
284
  DotenvModule.populate(processEnv, parsedAll, options);
285
+ if (debug || !quiet) {
286
+ const keysCount = Object.keys(parsedAll).length;
287
+ const shortPaths = [];
288
+ for (const filePath of optionPaths) {
289
+ try {
290
+ const relative = path18.relative(process.cwd(), filePath);
291
+ shortPaths.push(relative);
292
+ } catch (e) {
293
+ if (debug) {
294
+ _debug(`Failed to load ${filePath} ${e.message}`);
295
+ }
296
+ lastError = e;
297
+ }
298
+ }
299
+ _log(`injecting env (${keysCount}) from ${shortPaths.join(",")}`);
300
+ }
274
301
  if (lastError) {
275
302
  return { parsed: parsedAll, error: lastError };
276
303
  } else {
@@ -295,7 +322,7 @@ var require_main = __commonJS({
295
322
  const authTag = ciphertext.subarray(-16);
296
323
  ciphertext = ciphertext.subarray(12, -16);
297
324
  try {
298
- const aesgcm = crypto3.createDecipheriv("aes-256-gcm", key, nonce);
325
+ const aesgcm = crypto4.createDecipheriv("aes-256-gcm", key, nonce);
299
326
  aesgcm.setAuthTag(authTag);
300
327
  return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
301
328
  } catch (error) {
@@ -360,9 +387,9 @@ var require_main = __commonJS({
360
387
  }
361
388
  });
362
389
 
363
- // node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js
390
+ // node_modules/proxy-from-env/index.js
364
391
  var require_proxy_from_env = __commonJS({
365
- "node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js"(exports2) {
392
+ "node_modules/proxy-from-env/index.js"(exports2) {
366
393
  "use strict";
367
394
  var parseUrl = require("url").parse;
368
395
  var DEFAULT_PORTS = {
@@ -376,7 +403,7 @@ var require_proxy_from_env = __commonJS({
376
403
  var stringEndsWith = String.prototype.endsWith || function(s) {
377
404
  return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
378
405
  };
379
- function getProxyForUrl2(url2) {
406
+ function getProxyForUrl(url2) {
380
407
  var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
381
408
  var proto = parsedUrl.protocol;
382
409
  var hostname = parsedUrl.host;
@@ -426,13 +453,13 @@ var require_proxy_from_env = __commonJS({
426
453
  function getEnv(key) {
427
454
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
428
455
  }
429
- exports2.getProxyForUrl = getProxyForUrl2;
456
+ exports2.getProxyForUrl = getProxyForUrl;
430
457
  }
431
458
  });
432
459
 
433
- // node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js
460
+ // node_modules/ms/index.js
434
461
  var require_ms = __commonJS({
435
- "node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js"(exports2, module2) {
462
+ "node_modules/ms/index.js"(exports2, module2) {
436
463
  var s = 1e3;
437
464
  var m = s * 60;
438
465
  var h = m * 60;
@@ -546,10 +573,9 @@ var require_ms = __commonJS({
546
573
  }
547
574
  });
548
575
 
549
- // node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/common.js
576
+ // node_modules/debug/src/common.js
550
577
  var require_common = __commonJS({
551
- "node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/common.js"(exports2, module2) {
552
- "use strict";
578
+ "node_modules/debug/src/common.js"(exports2, module2) {
553
579
  function setup(env) {
554
580
  createDebug.debug = createDebug;
555
581
  createDebug.default = createDebug;
@@ -558,16 +584,16 @@ var require_common = __commonJS({
558
584
  createDebug.enable = enable;
559
585
  createDebug.enabled = enabled;
560
586
  createDebug.humanize = require_ms();
561
- Object.keys(env).forEach(function(key) {
587
+ createDebug.destroy = destroy;
588
+ Object.keys(env).forEach((key) => {
562
589
  createDebug[key] = env[key];
563
590
  });
564
- createDebug.instances = [];
565
591
  createDebug.names = [];
566
592
  createDebug.skips = [];
567
593
  createDebug.formatters = {};
568
594
  function selectColor(namespace) {
569
- var hash = 0;
570
- for (var i = 0; i < namespace.length; i++) {
595
+ let hash = 0;
596
+ for (let i = 0; i < namespace.length; i++) {
571
597
  hash = (hash << 5) - hash + namespace.charCodeAt(i);
572
598
  hash |= 0;
573
599
  }
@@ -575,17 +601,17 @@ var require_common = __commonJS({
575
601
  }
576
602
  createDebug.selectColor = selectColor;
577
603
  function createDebug(namespace) {
578
- var prevTime;
579
- function debug() {
604
+ let prevTime;
605
+ let enableOverride = null;
606
+ let namespacesCache;
607
+ let enabledCache;
608
+ function debug(...args) {
580
609
  if (!debug.enabled) {
581
610
  return;
582
611
  }
583
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
584
- args[_key] = arguments[_key];
585
- }
586
- var self2 = debug;
587
- var curr = Number(/* @__PURE__ */ new Date());
588
- var ms = curr - (prevTime || curr);
612
+ const self2 = debug;
613
+ const curr = Number(/* @__PURE__ */ new Date());
614
+ const ms = curr - (prevTime || curr);
589
615
  self2.diff = ms;
590
616
  self2.prev = prevTime;
591
617
  self2.curr = curr;
@@ -594,15 +620,15 @@ var require_common = __commonJS({
594
620
  if (typeof args[0] !== "string") {
595
621
  args.unshift("%O");
596
622
  }
597
- var index = 0;
598
- args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
623
+ let index = 0;
624
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
599
625
  if (match === "%%") {
600
- return match;
626
+ return "%";
601
627
  }
602
628
  index++;
603
- var formatter = createDebug.formatters[format];
629
+ const formatter = createDebug.formatters[format];
604
630
  if (typeof formatter === "function") {
605
- var val = args[index];
631
+ const val = args[index];
606
632
  match = formatter.call(self2, val);
607
633
  args.splice(index, 1);
608
634
  index--;
@@ -610,71 +636,99 @@ var require_common = __commonJS({
610
636
  return match;
611
637
  });
612
638
  createDebug.formatArgs.call(self2, args);
613
- var logFn = self2.log || createDebug.log;
639
+ const logFn = self2.log || createDebug.log;
614
640
  logFn.apply(self2, args);
615
641
  }
616
642
  debug.namespace = namespace;
617
- debug.enabled = createDebug.enabled(namespace);
618
643
  debug.useColors = createDebug.useColors();
619
- debug.color = selectColor(namespace);
620
- debug.destroy = destroy;
644
+ debug.color = createDebug.selectColor(namespace);
621
645
  debug.extend = extend2;
646
+ debug.destroy = createDebug.destroy;
647
+ Object.defineProperty(debug, "enabled", {
648
+ enumerable: true,
649
+ configurable: false,
650
+ get: () => {
651
+ if (enableOverride !== null) {
652
+ return enableOverride;
653
+ }
654
+ if (namespacesCache !== createDebug.namespaces) {
655
+ namespacesCache = createDebug.namespaces;
656
+ enabledCache = createDebug.enabled(namespace);
657
+ }
658
+ return enabledCache;
659
+ },
660
+ set: (v) => {
661
+ enableOverride = v;
662
+ }
663
+ });
622
664
  if (typeof createDebug.init === "function") {
623
665
  createDebug.init(debug);
624
666
  }
625
- createDebug.instances.push(debug);
626
667
  return debug;
627
668
  }
628
- function destroy() {
629
- var index = createDebug.instances.indexOf(this);
630
- if (index !== -1) {
631
- createDebug.instances.splice(index, 1);
632
- return true;
633
- }
634
- return false;
635
- }
636
669
  function extend2(namespace, delimiter) {
637
- return createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
670
+ const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
671
+ newDebug.log = this.log;
672
+ return newDebug;
638
673
  }
639
674
  function enable(namespaces) {
640
675
  createDebug.save(namespaces);
676
+ createDebug.namespaces = namespaces;
641
677
  createDebug.names = [];
642
678
  createDebug.skips = [];
643
- var i;
644
- var split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
645
- var len = split.length;
646
- for (i = 0; i < len; i++) {
647
- if (!split[i]) {
648
- continue;
679
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
680
+ for (const ns of split) {
681
+ if (ns[0] === "-") {
682
+ createDebug.skips.push(ns.slice(1));
683
+ } else {
684
+ createDebug.names.push(ns);
649
685
  }
650
- namespaces = split[i].replace(/\*/g, ".*?");
651
- if (namespaces[0] === "-") {
652
- createDebug.skips.push(new RegExp("^" + namespaces.substr(1) + "$"));
686
+ }
687
+ }
688
+ function matchesTemplate(search, template) {
689
+ let searchIndex = 0;
690
+ let templateIndex = 0;
691
+ let starIndex = -1;
692
+ let matchIndex = 0;
693
+ while (searchIndex < search.length) {
694
+ if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
695
+ if (template[templateIndex] === "*") {
696
+ starIndex = templateIndex;
697
+ matchIndex = searchIndex;
698
+ templateIndex++;
699
+ } else {
700
+ searchIndex++;
701
+ templateIndex++;
702
+ }
703
+ } else if (starIndex !== -1) {
704
+ templateIndex = starIndex + 1;
705
+ matchIndex++;
706
+ searchIndex = matchIndex;
653
707
  } else {
654
- createDebug.names.push(new RegExp("^" + namespaces + "$"));
708
+ return false;
655
709
  }
656
710
  }
657
- for (i = 0; i < createDebug.instances.length; i++) {
658
- var instance = createDebug.instances[i];
659
- instance.enabled = createDebug.enabled(instance.namespace);
711
+ while (templateIndex < template.length && template[templateIndex] === "*") {
712
+ templateIndex++;
660
713
  }
714
+ return templateIndex === template.length;
661
715
  }
662
716
  function disable() {
717
+ const namespaces = [
718
+ ...createDebug.names,
719
+ ...createDebug.skips.map((namespace) => "-" + namespace)
720
+ ].join(",");
663
721
  createDebug.enable("");
722
+ return namespaces;
664
723
  }
665
724
  function enabled(name) {
666
- if (name[name.length - 1] === "*") {
667
- return true;
668
- }
669
- var i;
670
- var len;
671
- for (i = 0, len = createDebug.skips.length; i < len; i++) {
672
- if (createDebug.skips[i].test(name)) {
725
+ for (const skip of createDebug.skips) {
726
+ if (matchesTemplate(name, skip)) {
673
727
  return false;
674
728
  }
675
729
  }
676
- for (i = 0, len = createDebug.names.length; i < len; i++) {
677
- if (createDebug.names[i].test(name)) {
730
+ for (const ns of createDebug.names) {
731
+ if (matchesTemplate(name, ns)) {
678
732
  return true;
679
733
  }
680
734
  }
@@ -686,6 +740,9 @@ var require_common = __commonJS({
686
740
  }
687
741
  return val;
688
742
  }
743
+ function destroy() {
744
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
745
+ }
689
746
  createDebug.enable(createDebug.load());
690
747
  return createDebug;
691
748
  }
@@ -693,29 +750,101 @@ var require_common = __commonJS({
693
750
  }
694
751
  });
695
752
 
696
- // node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/browser.js
753
+ // node_modules/debug/src/browser.js
697
754
  var require_browser = __commonJS({
698
- "node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/browser.js"(exports2, module2) {
699
- "use strict";
700
- function _typeof(obj) {
701
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
702
- _typeof = function _typeof2(obj2) {
703
- return typeof obj2;
704
- };
705
- } else {
706
- _typeof = function _typeof2(obj2) {
707
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
708
- };
709
- }
710
- return _typeof(obj);
711
- }
712
- exports2.log = log;
755
+ "node_modules/debug/src/browser.js"(exports2, module2) {
713
756
  exports2.formatArgs = formatArgs;
714
757
  exports2.save = save;
715
758
  exports2.load = load;
716
759
  exports2.useColors = useColors;
717
760
  exports2.storage = localstorage();
718
- exports2.colors = ["#0000CC", "#0000FF", "#0033CC", "#0033FF", "#0066CC", "#0066FF", "#0099CC", "#0099FF", "#00CC00", "#00CC33", "#00CC66", "#00CC99", "#00CCCC", "#00CCFF", "#3300CC", "#3300FF", "#3333CC", "#3333FF", "#3366CC", "#3366FF", "#3399CC", "#3399FF", "#33CC00", "#33CC33", "#33CC66", "#33CC99", "#33CCCC", "#33CCFF", "#6600CC", "#6600FF", "#6633CC", "#6633FF", "#66CC00", "#66CC33", "#9900CC", "#9900FF", "#9933CC", "#9933FF", "#99CC00", "#99CC33", "#CC0000", "#CC0033", "#CC0066", "#CC0099", "#CC00CC", "#CC00FF", "#CC3300", "#CC3333", "#CC3366", "#CC3399", "#CC33CC", "#CC33FF", "#CC6600", "#CC6633", "#CC9900", "#CC9933", "#CCCC00", "#CCCC33", "#FF0000", "#FF0033", "#FF0066", "#FF0099", "#FF00CC", "#FF00FF", "#FF3300", "#FF3333", "#FF3366", "#FF3399", "#FF33CC", "#FF33FF", "#FF6600", "#FF6633", "#FF9900", "#FF9933", "#FFCC00", "#FFCC33"];
761
+ exports2.destroy = /* @__PURE__ */ (() => {
762
+ let warned = false;
763
+ return () => {
764
+ if (!warned) {
765
+ warned = true;
766
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
767
+ }
768
+ };
769
+ })();
770
+ exports2.colors = [
771
+ "#0000CC",
772
+ "#0000FF",
773
+ "#0033CC",
774
+ "#0033FF",
775
+ "#0066CC",
776
+ "#0066FF",
777
+ "#0099CC",
778
+ "#0099FF",
779
+ "#00CC00",
780
+ "#00CC33",
781
+ "#00CC66",
782
+ "#00CC99",
783
+ "#00CCCC",
784
+ "#00CCFF",
785
+ "#3300CC",
786
+ "#3300FF",
787
+ "#3333CC",
788
+ "#3333FF",
789
+ "#3366CC",
790
+ "#3366FF",
791
+ "#3399CC",
792
+ "#3399FF",
793
+ "#33CC00",
794
+ "#33CC33",
795
+ "#33CC66",
796
+ "#33CC99",
797
+ "#33CCCC",
798
+ "#33CCFF",
799
+ "#6600CC",
800
+ "#6600FF",
801
+ "#6633CC",
802
+ "#6633FF",
803
+ "#66CC00",
804
+ "#66CC33",
805
+ "#9900CC",
806
+ "#9900FF",
807
+ "#9933CC",
808
+ "#9933FF",
809
+ "#99CC00",
810
+ "#99CC33",
811
+ "#CC0000",
812
+ "#CC0033",
813
+ "#CC0066",
814
+ "#CC0099",
815
+ "#CC00CC",
816
+ "#CC00FF",
817
+ "#CC3300",
818
+ "#CC3333",
819
+ "#CC3366",
820
+ "#CC3399",
821
+ "#CC33CC",
822
+ "#CC33FF",
823
+ "#CC6600",
824
+ "#CC6633",
825
+ "#CC9900",
826
+ "#CC9933",
827
+ "#CCCC00",
828
+ "#CCCC33",
829
+ "#FF0000",
830
+ "#FF0033",
831
+ "#FF0066",
832
+ "#FF0099",
833
+ "#FF00CC",
834
+ "#FF00FF",
835
+ "#FF3300",
836
+ "#FF3333",
837
+ "#FF3366",
838
+ "#FF3399",
839
+ "#FF33CC",
840
+ "#FF33FF",
841
+ "#FF6600",
842
+ "#FF6633",
843
+ "#FF9900",
844
+ "#FF9933",
845
+ "#FFCC00",
846
+ "#FFCC33"
847
+ ];
719
848
  function useColors() {
720
849
  if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
721
850
  return true;
@@ -723,10 +852,11 @@ var require_browser = __commonJS({
723
852
  if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
724
853
  return false;
725
854
  }
855
+ let m;
726
856
  return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
727
857
  typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
728
858
  // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
729
- typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
859
+ typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
730
860
  typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
731
861
  }
732
862
  function formatArgs(args) {
@@ -734,11 +864,11 @@ var require_browser = __commonJS({
734
864
  if (!this.useColors) {
735
865
  return;
736
866
  }
737
- var c = "color: " + this.color;
867
+ const c = "color: " + this.color;
738
868
  args.splice(1, 0, c, "color: inherit");
739
- var index = 0;
740
- var lastC = 0;
741
- args[0].replace(/%[a-zA-Z%]/g, function(match) {
869
+ let index = 0;
870
+ let lastC = 0;
871
+ args[0].replace(/%[a-zA-Z%]/g, (match) => {
742
872
  if (match === "%%") {
743
873
  return;
744
874
  }
@@ -749,10 +879,8 @@ var require_browser = __commonJS({
749
879
  });
750
880
  args.splice(lastC, 0, c);
751
881
  }
752
- function log() {
753
- var _console;
754
- return (typeof console === "undefined" ? "undefined" : _typeof(console)) === "object" && console.log && (_console = console).log.apply(_console, arguments);
755
- }
882
+ exports2.log = console.debug || console.log || (() => {
883
+ });
756
884
  function save(namespaces) {
757
885
  try {
758
886
  if (namespaces) {
@@ -764,9 +892,9 @@ var require_browser = __commonJS({
764
892
  }
765
893
  }
766
894
  function load() {
767
- var r;
895
+ let r;
768
896
  try {
769
- r = exports2.storage.getItem("debug");
897
+ r = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
770
898
  } catch (error) {
771
899
  }
772
900
  if (!r && typeof process !== "undefined" && "env" in process) {
@@ -781,7 +909,7 @@ var require_browser = __commonJS({
781
909
  }
782
910
  }
783
911
  module2.exports = require_common()(exports2);
784
- var formatters = module2.exports.formatters;
912
+ var { formatters } = module2.exports;
785
913
  formatters.j = function(v) {
786
914
  try {
787
915
  return JSON.stringify(v);
@@ -792,9 +920,9 @@ var require_browser = __commonJS({
792
920
  }
793
921
  });
794
922
 
795
- // node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js
923
+ // node_modules/has-flag/index.js
796
924
  var require_has_flag = __commonJS({
797
- "node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports2, module2) {
925
+ "node_modules/has-flag/index.js"(exports2, module2) {
798
926
  "use strict";
799
927
  module2.exports = (flag, argv) => {
800
928
  argv = argv || process.argv;
@@ -806,9 +934,9 @@ var require_has_flag = __commonJS({
806
934
  }
807
935
  });
808
936
 
809
- // node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
937
+ // node_modules/supports-color/index.js
810
938
  var require_supports_color = __commonJS({
811
- "node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports2, module2) {
939
+ "node_modules/supports-color/index.js"(exports2, module2) {
812
940
  "use strict";
813
941
  var os6 = require("os");
814
942
  var hasFlag = require_has_flag();
@@ -901,34 +1029,114 @@ var require_supports_color = __commonJS({
901
1029
  }
902
1030
  });
903
1031
 
904
- // node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/node.js
1032
+ // node_modules/debug/src/node.js
905
1033
  var require_node = __commonJS({
906
- "node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/node.js"(exports2, module2) {
907
- "use strict";
1034
+ "node_modules/debug/src/node.js"(exports2, module2) {
908
1035
  var tty = require("tty");
909
- var util2 = require("util");
1036
+ var util3 = require("util");
910
1037
  exports2.init = init;
911
1038
  exports2.log = log;
912
1039
  exports2.formatArgs = formatArgs;
913
1040
  exports2.save = save;
914
1041
  exports2.load = load;
915
1042
  exports2.useColors = useColors;
1043
+ exports2.destroy = util3.deprecate(
1044
+ () => {
1045
+ },
1046
+ "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
1047
+ );
916
1048
  exports2.colors = [6, 2, 3, 4, 5, 1];
917
1049
  try {
918
- supportsColor = require_supports_color();
1050
+ const supportsColor = require_supports_color();
919
1051
  if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
920
- exports2.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221];
1052
+ exports2.colors = [
1053
+ 20,
1054
+ 21,
1055
+ 26,
1056
+ 27,
1057
+ 32,
1058
+ 33,
1059
+ 38,
1060
+ 39,
1061
+ 40,
1062
+ 41,
1063
+ 42,
1064
+ 43,
1065
+ 44,
1066
+ 45,
1067
+ 56,
1068
+ 57,
1069
+ 62,
1070
+ 63,
1071
+ 68,
1072
+ 69,
1073
+ 74,
1074
+ 75,
1075
+ 76,
1076
+ 77,
1077
+ 78,
1078
+ 79,
1079
+ 80,
1080
+ 81,
1081
+ 92,
1082
+ 93,
1083
+ 98,
1084
+ 99,
1085
+ 112,
1086
+ 113,
1087
+ 128,
1088
+ 129,
1089
+ 134,
1090
+ 135,
1091
+ 148,
1092
+ 149,
1093
+ 160,
1094
+ 161,
1095
+ 162,
1096
+ 163,
1097
+ 164,
1098
+ 165,
1099
+ 166,
1100
+ 167,
1101
+ 168,
1102
+ 169,
1103
+ 170,
1104
+ 171,
1105
+ 172,
1106
+ 173,
1107
+ 178,
1108
+ 179,
1109
+ 184,
1110
+ 185,
1111
+ 196,
1112
+ 197,
1113
+ 198,
1114
+ 199,
1115
+ 200,
1116
+ 201,
1117
+ 202,
1118
+ 203,
1119
+ 204,
1120
+ 205,
1121
+ 206,
1122
+ 207,
1123
+ 208,
1124
+ 209,
1125
+ 214,
1126
+ 215,
1127
+ 220,
1128
+ 221
1129
+ ];
921
1130
  }
922
1131
  } catch (error) {
923
1132
  }
924
- var supportsColor;
925
- exports2.inspectOpts = Object.keys(process.env).filter(function(key) {
1133
+ exports2.inspectOpts = Object.keys(process.env).filter((key) => {
926
1134
  return /^debug_/i.test(key);
927
- }).reduce(function(obj, key) {
928
- var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function(_, k) {
1135
+ }).reduce((obj, key) => {
1136
+ const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
929
1137
  return k.toUpperCase();
930
1138
  });
931
- var val = process.env[key];
1139
+ let val = process.env[key];
932
1140
  if (/^(yes|on|true|enabled)$/i.test(val)) {
933
1141
  val = true;
934
1142
  } else if (/^(no|off|false|disabled)$/i.test(val)) {
@@ -945,11 +1153,11 @@ var require_node = __commonJS({
945
1153
  return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
946
1154
  }
947
1155
  function formatArgs(args) {
948
- var name = this.namespace, useColors2 = this.useColors;
1156
+ const { namespace: name, useColors: useColors2 } = this;
949
1157
  if (useColors2) {
950
- var c = this.color;
951
- var colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
952
- var prefix = " ".concat(colorCode, ";1m").concat(name, " \x1B[0m");
1158
+ const c = this.color;
1159
+ const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
1160
+ const prefix = ` ${colorCode};1m${name} \x1B[0m`;
953
1161
  args[0] = prefix + args[0].split("\n").join("\n" + prefix);
954
1162
  args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
955
1163
  } else {
@@ -962,8 +1170,8 @@ var require_node = __commonJS({
962
1170
  }
963
1171
  return (/* @__PURE__ */ new Date()).toISOString() + " ";
964
1172
  }
965
- function log() {
966
- return process.stderr.write(util2.format.apply(util2, arguments) + "\n");
1173
+ function log(...args) {
1174
+ return process.stderr.write(util3.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
967
1175
  }
968
1176
  function save(namespaces) {
969
1177
  if (namespaces) {
@@ -977,30 +1185,27 @@ var require_node = __commonJS({
977
1185
  }
978
1186
  function init(debug) {
979
1187
  debug.inspectOpts = {};
980
- var keys = Object.keys(exports2.inspectOpts);
981
- for (var i = 0; i < keys.length; i++) {
1188
+ const keys = Object.keys(exports2.inspectOpts);
1189
+ for (let i = 0; i < keys.length; i++) {
982
1190
  debug.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
983
1191
  }
984
1192
  }
985
1193
  module2.exports = require_common()(exports2);
986
- var formatters = module2.exports.formatters;
1194
+ var { formatters } = module2.exports;
987
1195
  formatters.o = function(v) {
988
1196
  this.inspectOpts.colors = this.useColors;
989
- return util2.inspect(v, this.inspectOpts).split("\n").map(function(str) {
990
- return str.trim();
991
- }).join(" ");
1197
+ return util3.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
992
1198
  };
993
1199
  formatters.O = function(v) {
994
1200
  this.inspectOpts.colors = this.useColors;
995
- return util2.inspect(v, this.inspectOpts);
1201
+ return util3.inspect(v, this.inspectOpts);
996
1202
  };
997
1203
  }
998
1204
  });
999
1205
 
1000
- // node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/index.js
1206
+ // node_modules/debug/src/index.js
1001
1207
  var require_src = __commonJS({
1002
- "node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/index.js"(exports2, module2) {
1003
- "use strict";
1208
+ "node_modules/debug/src/index.js"(exports2, module2) {
1004
1209
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
1005
1210
  module2.exports = require_browser();
1006
1211
  } else {
@@ -1009,9 +1214,9 @@ var require_src = __commonJS({
1009
1214
  }
1010
1215
  });
1011
1216
 
1012
- // node_modules/.pnpm/follow-redirects@1.15.2/node_modules/follow-redirects/debug.js
1217
+ // node_modules/follow-redirects/debug.js
1013
1218
  var require_debug = __commonJS({
1014
- "node_modules/.pnpm/follow-redirects@1.15.2/node_modules/follow-redirects/debug.js"(exports2, module2) {
1219
+ "node_modules/follow-redirects/debug.js"(exports2, module2) {
1015
1220
  var debug;
1016
1221
  module2.exports = function() {
1017
1222
  if (!debug) {
@@ -1029,16 +1234,43 @@ var require_debug = __commonJS({
1029
1234
  }
1030
1235
  });
1031
1236
 
1032
- // node_modules/.pnpm/follow-redirects@1.15.2/node_modules/follow-redirects/index.js
1237
+ // node_modules/follow-redirects/index.js
1033
1238
  var require_follow_redirects = __commonJS({
1034
- "node_modules/.pnpm/follow-redirects@1.15.2/node_modules/follow-redirects/index.js"(exports2, module2) {
1239
+ "node_modules/follow-redirects/index.js"(exports2, module2) {
1035
1240
  var url2 = require("url");
1036
1241
  var URL5 = url2.URL;
1037
- var http3 = require("http");
1242
+ var http4 = require("http");
1038
1243
  var https2 = require("https");
1039
1244
  var Writable = require("stream").Writable;
1040
1245
  var assert = require("assert");
1041
1246
  var debug = require_debug();
1247
+ (function detectUnsupportedEnvironment() {
1248
+ var looksLikeNode = typeof process !== "undefined";
1249
+ var looksLikeBrowser = typeof window !== "undefined" && typeof document !== "undefined";
1250
+ var looksLikeV8 = isFunction3(Error.captureStackTrace);
1251
+ if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {
1252
+ console.warn("The follow-redirects package should be excluded from browser builds.");
1253
+ }
1254
+ })();
1255
+ var useNativeURL = false;
1256
+ try {
1257
+ assert(new URL5(""));
1258
+ } catch (error) {
1259
+ useNativeURL = error.code === "ERR_INVALID_URL";
1260
+ }
1261
+ var preservedUrlFields = [
1262
+ "auth",
1263
+ "host",
1264
+ "hostname",
1265
+ "href",
1266
+ "path",
1267
+ "pathname",
1268
+ "port",
1269
+ "protocol",
1270
+ "query",
1271
+ "search",
1272
+ "hash"
1273
+ ];
1042
1274
  var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
1043
1275
  var eventHandlers = /* @__PURE__ */ Object.create(null);
1044
1276
  events.forEach(function(event) {
@@ -1057,7 +1289,8 @@ var require_follow_redirects = __commonJS({
1057
1289
  );
1058
1290
  var TooManyRedirectsError = createErrorType(
1059
1291
  "ERR_FR_TOO_MANY_REDIRECTS",
1060
- "Maximum number of redirects exceeded"
1292
+ "Maximum number of redirects exceeded",
1293
+ RedirectionError
1061
1294
  );
1062
1295
  var MaxBodyLengthExceededError = createErrorType(
1063
1296
  "ERR_FR_MAX_BODY_LENGTH_EXCEEDED",
@@ -1067,6 +1300,7 @@ var require_follow_redirects = __commonJS({
1067
1300
  "ERR_STREAM_WRITE_AFTER_END",
1068
1301
  "write after end"
1069
1302
  );
1303
+ var destroy = Writable.prototype.destroy || noop2;
1070
1304
  function RedirectableRequest(options, responseCallback) {
1071
1305
  Writable.call(this);
1072
1306
  this._sanitizeOptions(options);
@@ -1082,15 +1316,25 @@ var require_follow_redirects = __commonJS({
1082
1316
  }
1083
1317
  var self2 = this;
1084
1318
  this._onNativeResponse = function(response) {
1085
- self2._processResponse(response);
1319
+ try {
1320
+ self2._processResponse(response);
1321
+ } catch (cause) {
1322
+ self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
1323
+ }
1086
1324
  };
1087
1325
  this._performRequest();
1088
1326
  }
1089
1327
  RedirectableRequest.prototype = Object.create(Writable.prototype);
1090
1328
  RedirectableRequest.prototype.abort = function() {
1091
- abortRequest(this._currentRequest);
1329
+ destroyRequest(this._currentRequest);
1330
+ this._currentRequest.abort();
1092
1331
  this.emit("abort");
1093
1332
  };
1333
+ RedirectableRequest.prototype.destroy = function(error) {
1334
+ destroyRequest(this._currentRequest, error);
1335
+ destroy.call(this, error);
1336
+ return this;
1337
+ };
1094
1338
  RedirectableRequest.prototype.write = function(data, encoding, callback) {
1095
1339
  if (this._ending) {
1096
1340
  throw new WriteAfterEndError();
@@ -1098,7 +1342,7 @@ var require_follow_redirects = __commonJS({
1098
1342
  if (!isString2(data) && !isBuffer2(data)) {
1099
1343
  throw new TypeError("data should be a string, Buffer or Uint8Array");
1100
1344
  }
1101
- if (isFunction2(encoding)) {
1345
+ if (isFunction3(encoding)) {
1102
1346
  callback = encoding;
1103
1347
  encoding = null;
1104
1348
  }
@@ -1118,10 +1362,10 @@ var require_follow_redirects = __commonJS({
1118
1362
  }
1119
1363
  };
1120
1364
  RedirectableRequest.prototype.end = function(data, encoding, callback) {
1121
- if (isFunction2(data)) {
1365
+ if (isFunction3(data)) {
1122
1366
  callback = data;
1123
1367
  data = encoding = null;
1124
- } else if (isFunction2(encoding)) {
1368
+ } else if (isFunction3(encoding)) {
1125
1369
  callback = encoding;
1126
1370
  encoding = null;
1127
1371
  }
@@ -1171,6 +1415,7 @@ var require_follow_redirects = __commonJS({
1171
1415
  self2.removeListener("abort", clearTimer);
1172
1416
  self2.removeListener("error", clearTimer);
1173
1417
  self2.removeListener("response", clearTimer);
1418
+ self2.removeListener("close", clearTimer);
1174
1419
  if (callback) {
1175
1420
  self2.removeListener("timeout", callback);
1176
1421
  }
@@ -1190,6 +1435,7 @@ var require_follow_redirects = __commonJS({
1190
1435
  this.on("abort", clearTimer);
1191
1436
  this.on("error", clearTimer);
1192
1437
  this.on("response", clearTimer);
1438
+ this.on("close", clearTimer);
1193
1439
  return this;
1194
1440
  };
1195
1441
  [
@@ -1233,8 +1479,7 @@ var require_follow_redirects = __commonJS({
1233
1479
  var protocol = this._options.protocol;
1234
1480
  var nativeProtocol = this._options.nativeProtocols[protocol];
1235
1481
  if (!nativeProtocol) {
1236
- this.emit("error", new TypeError("Unsupported protocol " + protocol));
1237
- return;
1482
+ throw new TypeError("Unsupported protocol " + protocol);
1238
1483
  }
1239
1484
  if (this._options.agents) {
1240
1485
  var scheme = protocol.slice(0, -1);
@@ -1287,11 +1532,10 @@ var require_follow_redirects = __commonJS({
1287
1532
  this._requestBodyBuffers = [];
1288
1533
  return;
1289
1534
  }
1290
- abortRequest(this._currentRequest);
1535
+ destroyRequest(this._currentRequest);
1291
1536
  response.destroy();
1292
1537
  if (++this._redirectCount > this._options.maxRedirects) {
1293
- this.emit("error", new TooManyRedirectsError());
1294
- return;
1538
+ throw new TooManyRedirectsError();
1295
1539
  }
1296
1540
  var requestHeaders;
1297
1541
  var beforeRedirect = this._options.beforeRedirect;
@@ -1312,24 +1556,17 @@ var require_follow_redirects = __commonJS({
1312
1556
  removeMatchingHeaders(/^content-/i, this._options.headers);
1313
1557
  }
1314
1558
  var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
1315
- var currentUrlParts = url2.parse(this._currentUrl);
1559
+ var currentUrlParts = parseUrl(this._currentUrl);
1316
1560
  var currentHost = currentHostHeader || currentUrlParts.host;
1317
1561
  var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
1318
- var redirectUrl;
1319
- try {
1320
- redirectUrl = url2.resolve(currentUrl, location);
1321
- } catch (cause) {
1322
- this.emit("error", new RedirectionError({ cause }));
1323
- return;
1324
- }
1325
- debug("redirecting to", redirectUrl);
1562
+ var redirectUrl = resolveUrl(location, currentUrl);
1563
+ debug("redirecting to", redirectUrl.href);
1326
1564
  this._isRedirect = true;
1327
- var redirectUrlParts = url2.parse(redirectUrl);
1328
- Object.assign(this._options, redirectUrlParts);
1329
- if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
1330
- removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
1565
+ spreadUrlObject(redirectUrl, this._options);
1566
+ if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
1567
+ removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
1331
1568
  }
1332
- if (isFunction2(beforeRedirect)) {
1569
+ if (isFunction3(beforeRedirect)) {
1333
1570
  var responseDetails = {
1334
1571
  headers: response.headers,
1335
1572
  statusCode
@@ -1339,19 +1576,10 @@ var require_follow_redirects = __commonJS({
1339
1576
  method,
1340
1577
  headers: requestHeaders
1341
1578
  };
1342
- try {
1343
- beforeRedirect(this._options, responseDetails, requestDetails);
1344
- } catch (err) {
1345
- this.emit("error", err);
1346
- return;
1347
- }
1579
+ beforeRedirect(this._options, responseDetails, requestDetails);
1348
1580
  this._sanitizeOptions(this._options);
1349
1581
  }
1350
- try {
1351
- this._performRequest();
1352
- } catch (cause) {
1353
- this.emit("error", new RedirectionError({ cause }));
1354
- }
1582
+ this._performRequest();
1355
1583
  };
1356
1584
  function wrap(protocols) {
1357
1585
  var exports3 = {
@@ -1364,25 +1592,16 @@ var require_follow_redirects = __commonJS({
1364
1592
  var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
1365
1593
  var wrappedProtocol = exports3[scheme] = Object.create(nativeProtocol);
1366
1594
  function request(input, options, callback) {
1367
- if (isString2(input)) {
1368
- var parsed;
1369
- try {
1370
- parsed = urlToOptions(new URL5(input));
1371
- } catch (err) {
1372
- parsed = url2.parse(input);
1373
- }
1374
- if (!isString2(parsed.protocol)) {
1375
- throw new InvalidUrlError({ input });
1376
- }
1377
- input = parsed;
1378
- } else if (URL5 && input instanceof URL5) {
1379
- input = urlToOptions(input);
1595
+ if (isURL(input)) {
1596
+ input = spreadUrlObject(input);
1597
+ } else if (isString2(input)) {
1598
+ input = spreadUrlObject(parseUrl(input));
1380
1599
  } else {
1381
1600
  callback = options;
1382
- options = input;
1601
+ options = validateUrl(input);
1383
1602
  input = { protocol };
1384
1603
  }
1385
- if (isFunction2(options)) {
1604
+ if (isFunction3(options)) {
1386
1605
  callback = options;
1387
1606
  options = null;
1388
1607
  }
@@ -1412,23 +1631,43 @@ var require_follow_redirects = __commonJS({
1412
1631
  }
1413
1632
  function noop2() {
1414
1633
  }
1415
- function urlToOptions(urlObject) {
1416
- var options = {
1417
- protocol: urlObject.protocol,
1418
- hostname: urlObject.hostname.startsWith("[") ? (
1419
- /* istanbul ignore next */
1420
- urlObject.hostname.slice(1, -1)
1421
- ) : urlObject.hostname,
1422
- hash: urlObject.hash,
1423
- search: urlObject.search,
1424
- pathname: urlObject.pathname,
1425
- path: urlObject.pathname + urlObject.search,
1426
- href: urlObject.href
1427
- };
1428
- if (urlObject.port !== "") {
1429
- options.port = Number(urlObject.port);
1634
+ function parseUrl(input) {
1635
+ var parsed;
1636
+ if (useNativeURL) {
1637
+ parsed = new URL5(input);
1638
+ } else {
1639
+ parsed = validateUrl(url2.parse(input));
1640
+ if (!isString2(parsed.protocol)) {
1641
+ throw new InvalidUrlError({ input });
1642
+ }
1643
+ }
1644
+ return parsed;
1645
+ }
1646
+ function resolveUrl(relative, base) {
1647
+ return useNativeURL ? new URL5(relative, base) : parseUrl(url2.resolve(base, relative));
1648
+ }
1649
+ function validateUrl(input) {
1650
+ if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
1651
+ throw new InvalidUrlError({ input: input.href || input });
1652
+ }
1653
+ if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) {
1654
+ throw new InvalidUrlError({ input: input.href || input });
1655
+ }
1656
+ return input;
1657
+ }
1658
+ function spreadUrlObject(urlObject, target) {
1659
+ var spread3 = target || {};
1660
+ for (var key of preservedUrlFields) {
1661
+ spread3[key] = urlObject[key];
1662
+ }
1663
+ if (spread3.hostname.startsWith("[")) {
1664
+ spread3.hostname = spread3.hostname.slice(1, -1);
1430
1665
  }
1431
- return options;
1666
+ if (spread3.port !== "") {
1667
+ spread3.port = Number(spread3.port);
1668
+ }
1669
+ spread3.path = spread3.search ? spread3.pathname + spread3.search : spread3.pathname;
1670
+ return spread3;
1432
1671
  }
1433
1672
  function removeMatchingHeaders(regex, headers) {
1434
1673
  var lastValue;
@@ -1442,22 +1681,32 @@ var require_follow_redirects = __commonJS({
1442
1681
  }
1443
1682
  function createErrorType(code, message, baseClass) {
1444
1683
  function CustomError(properties) {
1445
- Error.captureStackTrace(this, this.constructor);
1684
+ if (isFunction3(Error.captureStackTrace)) {
1685
+ Error.captureStackTrace(this, this.constructor);
1686
+ }
1446
1687
  Object.assign(this, properties || {});
1447
1688
  this.code = code;
1448
1689
  this.message = this.cause ? message + ": " + this.cause.message : message;
1449
1690
  }
1450
1691
  CustomError.prototype = new (baseClass || Error)();
1451
- CustomError.prototype.constructor = CustomError;
1452
- CustomError.prototype.name = "Error [" + code + "]";
1692
+ Object.defineProperties(CustomError.prototype, {
1693
+ constructor: {
1694
+ value: CustomError,
1695
+ enumerable: false
1696
+ },
1697
+ name: {
1698
+ value: "Error [" + code + "]",
1699
+ enumerable: false
1700
+ }
1701
+ });
1453
1702
  return CustomError;
1454
1703
  }
1455
- function abortRequest(request) {
1704
+ function destroyRequest(request, error) {
1456
1705
  for (var event of events) {
1457
1706
  request.removeListener(event, eventHandlers[event]);
1458
1707
  }
1459
1708
  request.on("error", noop2);
1460
- request.abort();
1709
+ request.destroy(error);
1461
1710
  }
1462
1711
  function isSubdomain(subdomain, domain) {
1463
1712
  assert(isString2(subdomain) && isString2(domain));
@@ -1467,13 +1716,16 @@ var require_follow_redirects = __commonJS({
1467
1716
  function isString2(value) {
1468
1717
  return typeof value === "string" || value instanceof String;
1469
1718
  }
1470
- function isFunction2(value) {
1719
+ function isFunction3(value) {
1471
1720
  return typeof value === "function";
1472
1721
  }
1473
1722
  function isBuffer2(value) {
1474
1723
  return typeof value === "object" && "length" in value;
1475
1724
  }
1476
- module2.exports = wrap({ http: http3, https: https2 });
1725
+ function isURL(value) {
1726
+ return URL5 && value instanceof URL5;
1727
+ }
1728
+ module2.exports = wrap({ http: http4, https: https2 });
1477
1729
  module2.exports.wrap = wrap;
1478
1730
  }
1479
1731
  });
@@ -1523,7 +1775,7 @@ var import_chalk24 = __toESM(require("chalk"));
1523
1775
  var import_figlet5 = __toESM(require("figlet"));
1524
1776
 
1525
1777
  // package.json
1526
- var version = "2.0.1";
1778
+ var version = "2.0.2-beta.0";
1527
1779
 
1528
1780
  // bin/upload.ts
1529
1781
  var import_path7 = __toESM(require("path"));
@@ -1531,16 +1783,17 @@ var import_chalk5 = __toESM(require("chalk"));
1531
1783
  var import_inquirer = __toESM(require("inquirer"));
1532
1784
  var import_figlet = __toESM(require("figlet"));
1533
1785
 
1534
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/bind.js
1786
+ // node_modules/axios/lib/helpers/bind.js
1535
1787
  function bind(fn, thisArg) {
1536
1788
  return function wrap() {
1537
1789
  return fn.apply(thisArg, arguments);
1538
1790
  };
1539
1791
  }
1540
1792
 
1541
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/utils.js
1793
+ // node_modules/axios/lib/utils.js
1542
1794
  var { toString } = Object.prototype;
1543
1795
  var { getPrototypeOf } = Object;
1796
+ var { iterator, toStringTag } = Symbol;
1544
1797
  var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
1545
1798
  const str = toString.call(thing);
1546
1799
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -1574,20 +1827,52 @@ var isPlainObject = (val) => {
1574
1827
  if (kindOf(val) !== "object") {
1575
1828
  return false;
1576
1829
  }
1577
- const prototype3 = getPrototypeOf(val);
1578
- return (prototype3 === null || prototype3 === Object.prototype || Object.getPrototypeOf(prototype3) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
1830
+ const prototype2 = getPrototypeOf(val);
1831
+ return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
1832
+ };
1833
+ var isEmptyObject = (val) => {
1834
+ if (!isObject(val) || isBuffer(val)) {
1835
+ return false;
1836
+ }
1837
+ try {
1838
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
1839
+ } catch (e) {
1840
+ return false;
1841
+ }
1579
1842
  };
1580
1843
  var isDate = kindOfTest("Date");
1581
1844
  var isFile = kindOfTest("File");
1845
+ var isReactNativeBlob = (value) => {
1846
+ return !!(value && typeof value.uri !== "undefined");
1847
+ };
1848
+ var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
1582
1849
  var isBlob = kindOfTest("Blob");
1583
1850
  var isFileList = kindOfTest("FileList");
1584
1851
  var isStream = (val) => isObject(val) && isFunction(val.pipe);
1852
+ function getGlobal() {
1853
+ if (typeof globalThis !== "undefined") return globalThis;
1854
+ if (typeof self !== "undefined") return self;
1855
+ if (typeof window !== "undefined") return window;
1856
+ if (typeof global !== "undefined") return global;
1857
+ return {};
1858
+ }
1859
+ var G = getGlobal();
1860
+ var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
1585
1861
  var isFormData = (thing) => {
1586
- const pattern = "[object FormData]";
1587
- return thing && (typeof FormData === "function" && thing instanceof FormData || toString.call(thing) === pattern || isFunction(thing.toString) && thing.toString() === pattern);
1862
+ let kind;
1863
+ return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
1864
+ kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
1588
1865
  };
1589
1866
  var isURLSearchParams = kindOfTest("URLSearchParams");
1590
- var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1867
+ var [isReadableStream, isRequest, isResponse, isHeaders] = [
1868
+ "ReadableStream",
1869
+ "Request",
1870
+ "Response",
1871
+ "Headers"
1872
+ ].map(kindOfTest);
1873
+ var trim = (str) => {
1874
+ return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1875
+ };
1591
1876
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
1592
1877
  if (obj === null || typeof obj === "undefined") {
1593
1878
  return;
@@ -1602,6 +1887,9 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
1602
1887
  fn.call(null, obj[i], i, obj);
1603
1888
  }
1604
1889
  } else {
1890
+ if (isBuffer(obj)) {
1891
+ return;
1892
+ }
1605
1893
  const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
1606
1894
  const len = keys.length;
1607
1895
  let key;
@@ -1612,6 +1900,9 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
1612
1900
  }
1613
1901
  }
1614
1902
  function findKey(obj, key) {
1903
+ if (isBuffer(obj)) {
1904
+ return null;
1905
+ }
1615
1906
  key = key.toLowerCase();
1616
1907
  const keys = Object.keys(obj);
1617
1908
  let i = keys.length;
@@ -1630,9 +1921,12 @@ var _global = (() => {
1630
1921
  })();
1631
1922
  var isContextDefined = (context) => !isUndefined(context) && context !== _global;
1632
1923
  function merge() {
1633
- const { caseless } = isContextDefined(this) && this || {};
1924
+ const { caseless, skipUndefined } = isContextDefined(this) && this || {};
1634
1925
  const result = {};
1635
1926
  const assignValue = (val, key) => {
1927
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
1928
+ return;
1929
+ }
1636
1930
  const targetKey = caseless && findKey(result, key) || key;
1637
1931
  if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
1638
1932
  result[targetKey] = merge(result[targetKey], val);
@@ -1640,7 +1934,7 @@ function merge() {
1640
1934
  result[targetKey] = merge({}, val);
1641
1935
  } else if (isArray(val)) {
1642
1936
  result[targetKey] = val.slice();
1643
- } else {
1937
+ } else if (!skipUndefined || !isUndefined(val)) {
1644
1938
  result[targetKey] = val;
1645
1939
  }
1646
1940
  };
@@ -1650,13 +1944,27 @@ function merge() {
1650
1944
  return result;
1651
1945
  }
1652
1946
  var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
1653
- forEach(b, (val, key) => {
1654
- if (thisArg && isFunction(val)) {
1655
- a[key] = bind(val, thisArg);
1656
- } else {
1657
- a[key] = val;
1658
- }
1659
- }, { allOwnKeys });
1947
+ forEach(
1948
+ b,
1949
+ (val, key) => {
1950
+ if (thisArg && isFunction(val)) {
1951
+ Object.defineProperty(a, key, {
1952
+ value: bind(val, thisArg),
1953
+ writable: true,
1954
+ enumerable: true,
1955
+ configurable: true
1956
+ });
1957
+ } else {
1958
+ Object.defineProperty(a, key, {
1959
+ value: val,
1960
+ writable: true,
1961
+ enumerable: true,
1962
+ configurable: true
1963
+ });
1964
+ }
1965
+ },
1966
+ { allOwnKeys }
1967
+ );
1660
1968
  return a;
1661
1969
  };
1662
1970
  var stripBOM = (content) => {
@@ -1665,9 +1973,14 @@ var stripBOM = (content) => {
1665
1973
  }
1666
1974
  return content;
1667
1975
  };
1668
- var inherits = (constructor, superConstructor, props, descriptors2) => {
1669
- constructor.prototype = Object.create(superConstructor.prototype, descriptors2);
1670
- constructor.prototype.constructor = constructor;
1976
+ var inherits = (constructor, superConstructor, props, descriptors) => {
1977
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
1978
+ Object.defineProperty(constructor.prototype, "constructor", {
1979
+ value: constructor,
1980
+ writable: true,
1981
+ enumerable: false,
1982
+ configurable: true
1983
+ });
1671
1984
  Object.defineProperty(constructor, "super", {
1672
1985
  value: superConstructor.prototype
1673
1986
  });
@@ -1720,10 +2033,10 @@ var isTypedArray = /* @__PURE__ */ ((TypedArray) => {
1720
2033
  };
1721
2034
  })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
1722
2035
  var forEachEntry = (obj, fn) => {
1723
- const generator = obj && obj[Symbol.iterator];
1724
- const iterator = generator.call(obj);
2036
+ const generator = obj && obj[iterator];
2037
+ const _iterator = generator.call(obj);
1725
2038
  let result;
1726
- while ((result = iterator.next()) && !result.done) {
2039
+ while ((result = _iterator.next()) && !result.done) {
1727
2040
  const pair = result.value;
1728
2041
  fn.call(obj, pair[0], pair[1]);
1729
2042
  }
@@ -1738,21 +2051,19 @@ var matchAll = (regExp, str) => {
1738
2051
  };
1739
2052
  var isHTMLForm = kindOfTest("HTMLFormElement");
1740
2053
  var toCamelCase = (str) => {
1741
- return str.toLowerCase().replace(
1742
- /[-_\s]([a-z\d])(\w*)/g,
1743
- function replacer(m, p1, p2) {
1744
- return p1.toUpperCase() + p2;
1745
- }
1746
- );
2054
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
2055
+ return p1.toUpperCase() + p2;
2056
+ });
1747
2057
  };
1748
2058
  var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
1749
2059
  var isRegExp = kindOfTest("RegExp");
1750
2060
  var reduceDescriptors = (obj, reducer) => {
1751
- const descriptors2 = Object.getOwnPropertyDescriptors(obj);
2061
+ const descriptors = Object.getOwnPropertyDescriptors(obj);
1752
2062
  const reducedDescriptors = {};
1753
- forEach(descriptors2, (descriptor, name) => {
1754
- if (reducer(descriptor, name, obj) !== false) {
1755
- reducedDescriptors[name] = descriptor;
2063
+ forEach(descriptors, (descriptor, name) => {
2064
+ let ret;
2065
+ if ((ret = reducer(descriptor, name, obj)) !== false) {
2066
+ reducedDescriptors[name] = ret || descriptor;
1756
2067
  }
1757
2068
  });
1758
2069
  Object.defineProperties(obj, reducedDescriptors);
@@ -1789,26 +2100,10 @@ var toObjectSet = (arrayOrString, delimiter) => {
1789
2100
  var noop = () => {
1790
2101
  };
1791
2102
  var toFiniteNumber = (value, defaultValue) => {
1792
- value = +value;
1793
- return Number.isFinite(value) ? value : defaultValue;
1794
- };
1795
- var ALPHA = "abcdefghijklmnopqrstuvwxyz";
1796
- var DIGIT = "0123456789";
1797
- var ALPHABET = {
1798
- DIGIT,
1799
- ALPHA,
1800
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
1801
- };
1802
- var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
1803
- let str = "";
1804
- const { length } = alphabet;
1805
- while (size--) {
1806
- str += alphabet[Math.random() * length | 0];
1807
- }
1808
- return str;
2103
+ return value != null && Number.isFinite(value = +value) ? value : defaultValue;
1809
2104
  };
1810
2105
  function isSpecCompliantForm(thing) {
1811
- return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
2106
+ return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
1812
2107
  }
1813
2108
  var toJSONObject = (obj) => {
1814
2109
  const stack = new Array(10);
@@ -1817,6 +2112,9 @@ var toJSONObject = (obj) => {
1817
2112
  if (stack.indexOf(source) >= 0) {
1818
2113
  return;
1819
2114
  }
2115
+ if (isBuffer(source)) {
2116
+ return source;
2117
+ }
1820
2118
  if (!("toJSON" in source)) {
1821
2119
  stack[i] = source;
1822
2120
  const target = isArray(source) ? [] : {};
@@ -1832,6 +2130,30 @@ var toJSONObject = (obj) => {
1832
2130
  };
1833
2131
  return visit(obj, 0);
1834
2132
  };
2133
+ var isAsyncFn = kindOfTest("AsyncFunction");
2134
+ var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
2135
+ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
2136
+ if (setImmediateSupported) {
2137
+ return setImmediate;
2138
+ }
2139
+ return postMessageSupported ? ((token, callbacks) => {
2140
+ _global.addEventListener(
2141
+ "message",
2142
+ ({ source, data }) => {
2143
+ if (source === _global && data === token) {
2144
+ callbacks.length && callbacks.shift()();
2145
+ }
2146
+ },
2147
+ false
2148
+ );
2149
+ return (cb) => {
2150
+ callbacks.push(cb);
2151
+ _global.postMessage(token, "*");
2152
+ };
2153
+ })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
2154
+ })(typeof setImmediate === "function", isFunction(_global.postMessage));
2155
+ var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
2156
+ var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
1835
2157
  var utils_default = {
1836
2158
  isArray,
1837
2159
  isArrayBuffer,
@@ -1843,9 +2165,16 @@ var utils_default = {
1843
2165
  isBoolean,
1844
2166
  isObject,
1845
2167
  isPlainObject,
2168
+ isEmptyObject,
2169
+ isReadableStream,
2170
+ isRequest,
2171
+ isResponse,
2172
+ isHeaders,
1846
2173
  isUndefined,
1847
2174
  isDate,
1848
2175
  isFile,
2176
+ isReactNativeBlob,
2177
+ isReactNative,
1849
2178
  isBlob,
1850
2179
  isRegExp,
1851
2180
  isFunction,
@@ -1879,29 +2208,57 @@ var utils_default = {
1879
2208
  findKey,
1880
2209
  global: _global,
1881
2210
  isContextDefined,
1882
- ALPHABET,
1883
- generateString,
1884
2211
  isSpecCompliantForm,
1885
- toJSONObject
2212
+ toJSONObject,
2213
+ isAsyncFn,
2214
+ isThenable,
2215
+ setImmediate: _setImmediate,
2216
+ asap,
2217
+ isIterable
1886
2218
  };
1887
2219
 
1888
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/AxiosError.js
1889
- function AxiosError(message, code, config, request, response) {
1890
- Error.call(this);
1891
- if (Error.captureStackTrace) {
1892
- Error.captureStackTrace(this, this.constructor);
1893
- } else {
1894
- this.stack = new Error().stack;
2220
+ // node_modules/axios/lib/core/AxiosError.js
2221
+ var AxiosError = class _AxiosError extends Error {
2222
+ static from(error, code, config, request, response, customProps) {
2223
+ const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
2224
+ axiosError.cause = error;
2225
+ axiosError.name = error.name;
2226
+ if (error.status != null && axiosError.status == null) {
2227
+ axiosError.status = error.status;
2228
+ }
2229
+ customProps && Object.assign(axiosError, customProps);
2230
+ return axiosError;
1895
2231
  }
1896
- this.message = message;
1897
- this.name = "AxiosError";
1898
- code && (this.code = code);
1899
- config && (this.config = config);
1900
- request && (this.request = request);
1901
- response && (this.response = response);
1902
- }
1903
- utils_default.inherits(AxiosError, Error, {
1904
- toJSON: function toJSON() {
2232
+ /**
2233
+ * Create an Error with the specified message, config, error code, request and response.
2234
+ *
2235
+ * @param {string} message The error message.
2236
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
2237
+ * @param {Object} [config] The config.
2238
+ * @param {Object} [request] The request.
2239
+ * @param {Object} [response] The response.
2240
+ *
2241
+ * @returns {Error} The created error.
2242
+ */
2243
+ constructor(message, code, config, request, response) {
2244
+ super(message);
2245
+ Object.defineProperty(this, "message", {
2246
+ value: message,
2247
+ enumerable: true,
2248
+ writable: true,
2249
+ configurable: true
2250
+ });
2251
+ this.name = "AxiosError";
2252
+ this.isAxiosError = true;
2253
+ code && (this.code = code);
2254
+ config && (this.config = config);
2255
+ request && (this.request = request);
2256
+ if (response) {
2257
+ this.response = response;
2258
+ this.status = response.status;
2259
+ }
2260
+ }
2261
+ toJSON() {
1905
2262
  return {
1906
2263
  // Standard
1907
2264
  message: this.message,
@@ -1917,51 +2274,29 @@ utils_default.inherits(AxiosError, Error, {
1917
2274
  // Axios
1918
2275
  config: utils_default.toJSONObject(this.config),
1919
2276
  code: this.code,
1920
- status: this.response && this.response.status ? this.response.status : null
2277
+ status: this.status
1921
2278
  };
1922
2279
  }
1923
- });
1924
- var prototype = AxiosError.prototype;
1925
- var descriptors = {};
1926
- [
1927
- "ERR_BAD_OPTION_VALUE",
1928
- "ERR_BAD_OPTION",
1929
- "ECONNABORTED",
1930
- "ETIMEDOUT",
1931
- "ERR_NETWORK",
1932
- "ERR_FR_TOO_MANY_REDIRECTS",
1933
- "ERR_DEPRECATED",
1934
- "ERR_BAD_RESPONSE",
1935
- "ERR_BAD_REQUEST",
1936
- "ERR_CANCELED",
1937
- "ERR_NOT_SUPPORT",
1938
- "ERR_INVALID_URL"
1939
- // eslint-disable-next-line func-names
1940
- ].forEach((code) => {
1941
- descriptors[code] = { value: code };
1942
- });
1943
- Object.defineProperties(AxiosError, descriptors);
1944
- Object.defineProperty(prototype, "isAxiosError", { value: true });
1945
- AxiosError.from = (error, code, config, request, response, customProps) => {
1946
- const axiosError = Object.create(prototype);
1947
- utils_default.toFlatObject(error, axiosError, function filter2(obj) {
1948
- return obj !== Error.prototype;
1949
- }, (prop) => {
1950
- return prop !== "isAxiosError";
1951
- });
1952
- AxiosError.call(axiosError, error.message, code, config, request, response);
1953
- axiosError.cause = error;
1954
- axiosError.name = error.name;
1955
- customProps && Object.assign(axiosError, customProps);
1956
- return axiosError;
1957
2280
  };
2281
+ AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
2282
+ AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
2283
+ AxiosError.ECONNABORTED = "ECONNABORTED";
2284
+ AxiosError.ETIMEDOUT = "ETIMEDOUT";
2285
+ AxiosError.ERR_NETWORK = "ERR_NETWORK";
2286
+ AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
2287
+ AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
2288
+ AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
2289
+ AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
2290
+ AxiosError.ERR_CANCELED = "ERR_CANCELED";
2291
+ AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
2292
+ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
1958
2293
  var AxiosError_default = AxiosError;
1959
2294
 
1960
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/platform/node/classes/FormData.js
2295
+ // node_modules/axios/lib/platform/node/classes/FormData.js
1961
2296
  var import_form_data = __toESM(require("form-data"), 1);
1962
2297
  var FormData_default = import_form_data.default;
1963
2298
 
1964
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/toFormData.js
2299
+ // node_modules/axios/lib/helpers/toFormData.js
1965
2300
  function isVisitable(thing) {
1966
2301
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
1967
2302
  }
@@ -1986,13 +2321,18 @@ function toFormData(obj, formData, options) {
1986
2321
  throw new TypeError("target must be an object");
1987
2322
  }
1988
2323
  formData = formData || new (FormData_default || FormData)();
1989
- options = utils_default.toFlatObject(options, {
1990
- metaTokens: true,
1991
- dots: false,
1992
- indexes: false
1993
- }, false, function defined(option, source) {
1994
- return !utils_default.isUndefined(source[option]);
1995
- });
2324
+ options = utils_default.toFlatObject(
2325
+ options,
2326
+ {
2327
+ metaTokens: true,
2328
+ dots: false,
2329
+ indexes: false
2330
+ },
2331
+ false,
2332
+ function defined(option, source) {
2333
+ return !utils_default.isUndefined(source[option]);
2334
+ }
2335
+ );
1996
2336
  const metaTokens = options.metaTokens;
1997
2337
  const visitor = options.visitor || defaultVisitor;
1998
2338
  const dots = options.dots;
@@ -2007,6 +2347,9 @@ function toFormData(obj, formData, options) {
2007
2347
  if (utils_default.isDate(value)) {
2008
2348
  return value.toISOString();
2009
2349
  }
2350
+ if (utils_default.isBoolean(value)) {
2351
+ return value.toString();
2352
+ }
2010
2353
  if (!useBlob && utils_default.isBlob(value)) {
2011
2354
  throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
2012
2355
  }
@@ -2017,6 +2360,10 @@ function toFormData(obj, formData, options) {
2017
2360
  }
2018
2361
  function defaultVisitor(value, key, path18) {
2019
2362
  let arr = value;
2363
+ if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
2364
+ formData.append(renderKey(path18, key, dots), convertValue(value));
2365
+ return false;
2366
+ }
2020
2367
  if (value && !path18 && typeof value === "object") {
2021
2368
  if (utils_default.endsWith(key, "{}")) {
2022
2369
  key = metaTokens ? key : key.slice(0, -2);
@@ -2052,13 +2399,7 @@ function toFormData(obj, formData, options) {
2052
2399
  }
2053
2400
  stack.push(value);
2054
2401
  utils_default.forEach(value, function each(el, key) {
2055
- const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(
2056
- formData,
2057
- el,
2058
- utils_default.isString(key) ? key.trim() : key,
2059
- path18,
2060
- exposedHelpers
2061
- );
2402
+ const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path18, exposedHelpers);
2062
2403
  if (result === true) {
2063
2404
  build(el, path18 ? path18.concat(key) : [key]);
2064
2405
  }
@@ -2073,7 +2414,7 @@ function toFormData(obj, formData, options) {
2073
2414
  }
2074
2415
  var toFormData_default = toFormData;
2075
2416
 
2076
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
2417
+ // node_modules/axios/lib/helpers/AxiosURLSearchParams.js
2077
2418
  function encode(str) {
2078
2419
  const charMap = {
2079
2420
  "!": "%21",
@@ -2092,11 +2433,11 @@ function AxiosURLSearchParams(params, options) {
2092
2433
  this._pairs = [];
2093
2434
  params && toFormData_default(params, this, options);
2094
2435
  }
2095
- var prototype2 = AxiosURLSearchParams.prototype;
2096
- prototype2.append = function append(name, value) {
2436
+ var prototype = AxiosURLSearchParams.prototype;
2437
+ prototype.append = function append(name, value) {
2097
2438
  this._pairs.push([name, value]);
2098
2439
  };
2099
- prototype2.toString = function toString2(encoder) {
2440
+ prototype.toString = function toString2(encoder) {
2100
2441
  const _encode = encoder ? function(value) {
2101
2442
  return encoder.call(this, value, encode);
2102
2443
  } : encode;
@@ -2106,21 +2447,24 @@ prototype2.toString = function toString2(encoder) {
2106
2447
  };
2107
2448
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
2108
2449
 
2109
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/buildURL.js
2450
+ // node_modules/axios/lib/helpers/buildURL.js
2110
2451
  function encode2(val) {
2111
- return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
2452
+ return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
2112
2453
  }
2113
2454
  function buildURL(url2, params, options) {
2114
2455
  if (!params) {
2115
2456
  return url2;
2116
2457
  }
2117
2458
  const _encode = options && options.encode || encode2;
2118
- const serializeFn = options && options.serialize;
2459
+ const _options = utils_default.isFunction(options) ? {
2460
+ serialize: options
2461
+ } : options;
2462
+ const serializeFn = _options && _options.serialize;
2119
2463
  let serializedParams;
2120
2464
  if (serializeFn) {
2121
- serializedParams = serializeFn(params, options);
2465
+ serializedParams = serializeFn(params, _options);
2122
2466
  } else {
2123
- serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, options).toString(_encode);
2467
+ serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, _options).toString(_encode);
2124
2468
  }
2125
2469
  if (serializedParams) {
2126
2470
  const hashmarkIndex = url2.indexOf("#");
@@ -2132,7 +2476,7 @@ function buildURL(url2, params, options) {
2132
2476
  return url2;
2133
2477
  }
2134
2478
 
2135
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/InterceptorManager.js
2479
+ // node_modules/axios/lib/core/InterceptorManager.js
2136
2480
  var InterceptorManager = class {
2137
2481
  constructor() {
2138
2482
  this.handlers = [];
@@ -2142,6 +2486,7 @@ var InterceptorManager = class {
2142
2486
  *
2143
2487
  * @param {Function} fulfilled The function to handle `then` for a `Promise`
2144
2488
  * @param {Function} rejected The function to handle `reject` for a `Promise`
2489
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
2145
2490
  *
2146
2491
  * @return {Number} An ID used to remove interceptor later
2147
2492
  */
@@ -2159,7 +2504,7 @@ var InterceptorManager = class {
2159
2504
  *
2160
2505
  * @param {Number} id The ID that was returned by `use`
2161
2506
  *
2162
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
2507
+ * @returns {void}
2163
2508
  */
2164
2509
  eject(id) {
2165
2510
  if (this.handlers[id]) {
@@ -2196,18 +2541,39 @@ var InterceptorManager = class {
2196
2541
  };
2197
2542
  var InterceptorManager_default = InterceptorManager;
2198
2543
 
2199
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/defaults/transitional.js
2544
+ // node_modules/axios/lib/defaults/transitional.js
2200
2545
  var transitional_default = {
2201
2546
  silentJSONParsing: true,
2202
2547
  forcedJSONParsing: true,
2203
- clarifyTimeoutError: false
2548
+ clarifyTimeoutError: false,
2549
+ legacyInterceptorReqResOrdering: true
2204
2550
  };
2205
2551
 
2206
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
2552
+ // node_modules/axios/lib/platform/node/index.js
2553
+ var import_crypto = __toESM(require("crypto"), 1);
2554
+
2555
+ // node_modules/axios/lib/platform/node/classes/URLSearchParams.js
2207
2556
  var import_url = __toESM(require("url"), 1);
2208
2557
  var URLSearchParams_default = import_url.default.URLSearchParams;
2209
2558
 
2210
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/platform/node/index.js
2559
+ // node_modules/axios/lib/platform/node/index.js
2560
+ var ALPHA = "abcdefghijklmnopqrstuvwxyz";
2561
+ var DIGIT = "0123456789";
2562
+ var ALPHABET = {
2563
+ DIGIT,
2564
+ ALPHA,
2565
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
2566
+ };
2567
+ var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
2568
+ let str = "";
2569
+ const { length } = alphabet;
2570
+ const randomValues = new Uint32Array(size);
2571
+ import_crypto.default.randomFillSync(randomValues);
2572
+ for (let i = 0; i < size; i++) {
2573
+ str += alphabet[randomValues[i] % length];
2574
+ }
2575
+ return str;
2576
+ };
2211
2577
  var node_default = {
2212
2578
  isNode: true,
2213
2579
  classes: {
@@ -2215,23 +2581,50 @@ var node_default = {
2215
2581
  FormData: FormData_default,
2216
2582
  Blob: typeof Blob !== "undefined" && Blob || null
2217
2583
  },
2584
+ ALPHABET,
2585
+ generateString,
2218
2586
  protocols: ["http", "https", "file", "data"]
2219
2587
  };
2220
2588
 
2221
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/toURLEncodedForm.js
2589
+ // node_modules/axios/lib/platform/common/utils.js
2590
+ var utils_exports = {};
2591
+ __export(utils_exports, {
2592
+ hasBrowserEnv: () => hasBrowserEnv,
2593
+ hasStandardBrowserEnv: () => hasStandardBrowserEnv,
2594
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
2595
+ navigator: () => _navigator,
2596
+ origin: () => origin
2597
+ });
2598
+ var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
2599
+ var _navigator = typeof navigator === "object" && navigator || void 0;
2600
+ var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
2601
+ var hasStandardBrowserWebWorkerEnv = (() => {
2602
+ return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
2603
+ self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
2604
+ })();
2605
+ var origin = hasBrowserEnv && window.location.href || "http://localhost";
2606
+
2607
+ // node_modules/axios/lib/platform/index.js
2608
+ var platform_default = {
2609
+ ...utils_exports,
2610
+ ...node_default
2611
+ };
2612
+
2613
+ // node_modules/axios/lib/helpers/toURLEncodedForm.js
2222
2614
  function toURLEncodedForm(data, options) {
2223
- return toFormData_default(data, new node_default.classes.URLSearchParams(), Object.assign({
2615
+ return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
2224
2616
  visitor: function(value, key, path18, helpers) {
2225
- if (node_default.isNode && utils_default.isBuffer(value)) {
2617
+ if (platform_default.isNode && utils_default.isBuffer(value)) {
2226
2618
  this.append(key, value.toString("base64"));
2227
2619
  return false;
2228
2620
  }
2229
2621
  return helpers.defaultVisitor.apply(this, arguments);
2230
- }
2231
- }, options));
2622
+ },
2623
+ ...options
2624
+ });
2232
2625
  }
2233
2626
 
2234
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/formDataToJSON.js
2627
+ // node_modules/axios/lib/helpers/formDataToJSON.js
2235
2628
  function parsePropPath(name) {
2236
2629
  return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
2237
2630
  return match[0] === "[]" ? "" : match[1] || match[0];
@@ -2252,6 +2645,7 @@ function arrayToObject(arr) {
2252
2645
  function formDataToJSON(formData) {
2253
2646
  function buildPath(path18, value, target, index) {
2254
2647
  let name = path18[index++];
2648
+ if (name === "__proto__") return true;
2255
2649
  const isNumericKey = Number.isFinite(+name);
2256
2650
  const isLast = index >= path18.length;
2257
2651
  name = !name && utils_default.isArray(target) ? target.length : name;
@@ -2283,10 +2677,7 @@ function formDataToJSON(formData) {
2283
2677
  }
2284
2678
  var formDataToJSON_default = formDataToJSON;
2285
2679
 
2286
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/defaults/index.js
2287
- var DEFAULT_CONTENT_TYPE = {
2288
- "Content-Type": void 0
2289
- };
2680
+ // node_modules/axios/lib/defaults/index.js
2290
2681
  function stringifySafely(rawValue, parser, encoder) {
2291
2682
  if (utils_default.isString(rawValue)) {
2292
2683
  try {
@@ -2302,71 +2693,75 @@ function stringifySafely(rawValue, parser, encoder) {
2302
2693
  }
2303
2694
  var defaults = {
2304
2695
  transitional: transitional_default,
2305
- adapter: ["xhr", "http"],
2306
- transformRequest: [function transformRequest(data, headers) {
2307
- const contentType = headers.getContentType() || "";
2308
- const hasJSONContentType = contentType.indexOf("application/json") > -1;
2309
- const isObjectPayload = utils_default.isObject(data);
2310
- if (isObjectPayload && utils_default.isHTMLForm(data)) {
2311
- data = new FormData(data);
2312
- }
2313
- const isFormData2 = utils_default.isFormData(data);
2314
- if (isFormData2) {
2315
- if (!hasJSONContentType) {
2696
+ adapter: ["xhr", "http", "fetch"],
2697
+ transformRequest: [
2698
+ function transformRequest(data, headers) {
2699
+ const contentType = headers.getContentType() || "";
2700
+ const hasJSONContentType = contentType.indexOf("application/json") > -1;
2701
+ const isObjectPayload = utils_default.isObject(data);
2702
+ if (isObjectPayload && utils_default.isHTMLForm(data)) {
2703
+ data = new FormData(data);
2704
+ }
2705
+ const isFormData2 = utils_default.isFormData(data);
2706
+ if (isFormData2) {
2707
+ return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
2708
+ }
2709
+ 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)) {
2316
2710
  return data;
2317
2711
  }
2318
- return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
2319
- }
2320
- if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
2321
- return data;
2322
- }
2323
- if (utils_default.isArrayBufferView(data)) {
2324
- return data.buffer;
2325
- }
2326
- if (utils_default.isURLSearchParams(data)) {
2327
- headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
2328
- return data.toString();
2329
- }
2330
- let isFileList2;
2331
- if (isObjectPayload) {
2332
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
2333
- return toURLEncodedForm(data, this.formSerializer).toString();
2712
+ if (utils_default.isArrayBufferView(data)) {
2713
+ return data.buffer;
2334
2714
  }
2335
- if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
2336
- const _FormData = this.env && this.env.FormData;
2337
- return toFormData_default(
2338
- isFileList2 ? { "files[]": data } : data,
2339
- _FormData && new _FormData(),
2340
- this.formSerializer
2341
- );
2715
+ if (utils_default.isURLSearchParams(data)) {
2716
+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
2717
+ return data.toString();
2342
2718
  }
2719
+ let isFileList2;
2720
+ if (isObjectPayload) {
2721
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
2722
+ return toURLEncodedForm(data, this.formSerializer).toString();
2723
+ }
2724
+ if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
2725
+ const _FormData = this.env && this.env.FormData;
2726
+ return toFormData_default(
2727
+ isFileList2 ? { "files[]": data } : data,
2728
+ _FormData && new _FormData(),
2729
+ this.formSerializer
2730
+ );
2731
+ }
2732
+ }
2733
+ if (isObjectPayload || hasJSONContentType) {
2734
+ headers.setContentType("application/json", false);
2735
+ return stringifySafely(data);
2736
+ }
2737
+ return data;
2343
2738
  }
2344
- if (isObjectPayload || hasJSONContentType) {
2345
- headers.setContentType("application/json", false);
2346
- return stringifySafely(data);
2347
- }
2348
- return data;
2349
- }],
2350
- transformResponse: [function transformResponse(data) {
2351
- const transitional2 = this.transitional || defaults.transitional;
2352
- const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
2353
- const JSONRequested = this.responseType === "json";
2354
- if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
2355
- const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
2356
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
2357
- try {
2358
- return JSON.parse(data);
2359
- } catch (e) {
2360
- if (strictJSONParsing) {
2361
- if (e.name === "SyntaxError") {
2362
- throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
2739
+ ],
2740
+ transformResponse: [
2741
+ function transformResponse(data) {
2742
+ const transitional2 = this.transitional || defaults.transitional;
2743
+ const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
2744
+ const JSONRequested = this.responseType === "json";
2745
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
2746
+ return data;
2747
+ }
2748
+ if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
2749
+ const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
2750
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
2751
+ try {
2752
+ return JSON.parse(data, this.parseReviver);
2753
+ } catch (e) {
2754
+ if (strictJSONParsing) {
2755
+ if (e.name === "SyntaxError") {
2756
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
2757
+ }
2758
+ throw e;
2363
2759
  }
2364
- throw e;
2365
2760
  }
2366
2761
  }
2762
+ return data;
2367
2763
  }
2368
- return data;
2369
- }],
2764
+ ],
2370
2765
  /**
2371
2766
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
2372
2767
  * timeout is not created.
@@ -2377,27 +2772,25 @@ var defaults = {
2377
2772
  maxContentLength: -1,
2378
2773
  maxBodyLength: -1,
2379
2774
  env: {
2380
- FormData: node_default.classes.FormData,
2381
- Blob: node_default.classes.Blob
2775
+ FormData: platform_default.classes.FormData,
2776
+ Blob: platform_default.classes.Blob
2382
2777
  },
2383
2778
  validateStatus: function validateStatus(status) {
2384
2779
  return status >= 200 && status < 300;
2385
2780
  },
2386
2781
  headers: {
2387
2782
  common: {
2388
- "Accept": "application/json, text/plain, */*"
2783
+ Accept: "application/json, text/plain, */*",
2784
+ "Content-Type": void 0
2389
2785
  }
2390
2786
  }
2391
2787
  };
2392
- utils_default.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
2788
+ utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
2393
2789
  defaults.headers[method] = {};
2394
2790
  });
2395
- utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
2396
- defaults.headers[method] = utils_default.merge(DEFAULT_CONTENT_TYPE);
2397
- });
2398
2791
  var defaults_default = defaults;
2399
2792
 
2400
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/parseHeaders.js
2793
+ // node_modules/axios/lib/helpers/parseHeaders.js
2401
2794
  var ignoreDuplicateOf = utils_default.toObjectSet([
2402
2795
  "age",
2403
2796
  "authorization",
@@ -2442,7 +2835,7 @@ var parseHeaders_default = (rawHeaders) => {
2442
2835
  return parsed;
2443
2836
  };
2444
2837
 
2445
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/AxiosHeaders.js
2838
+ // node_modules/axios/lib/core/AxiosHeaders.js
2446
2839
  var $internals = Symbol("internals");
2447
2840
  function normalizeHeader(header) {
2448
2841
  return header && String(header).trim().toLowerCase();
@@ -2462,13 +2855,14 @@ function parseTokens(str) {
2462
2855
  }
2463
2856
  return tokens;
2464
2857
  }
2465
- function isValidHeaderName(str) {
2466
- return /^[-_a-zA-Z]+$/.test(str.trim());
2467
- }
2468
- function matchHeaderValue(context, value, header, filter2) {
2858
+ var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
2859
+ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
2469
2860
  if (utils_default.isFunction(filter2)) {
2470
2861
  return filter2.call(this, value, header);
2471
2862
  }
2863
+ if (isHeaderNameFilter) {
2864
+ value = header;
2865
+ }
2472
2866
  if (!utils_default.isString(value)) return;
2473
2867
  if (utils_default.isString(filter2)) {
2474
2868
  return value.indexOf(filter2) !== -1;
@@ -2514,6 +2908,15 @@ var AxiosHeaders = class {
2514
2908
  setHeaders(header, valueOrRewrite);
2515
2909
  } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
2516
2910
  setHeaders(parseHeaders_default(header), valueOrRewrite);
2911
+ } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
2912
+ let obj = {}, dest, key;
2913
+ for (const entry of header) {
2914
+ if (!utils_default.isArray(entry)) {
2915
+ throw TypeError("Object iterator must return a key-value pair");
2916
+ }
2917
+ obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
2918
+ }
2919
+ setHeaders(obj, valueOrRewrite);
2517
2920
  } else {
2518
2921
  header != null && setHeader(valueOrRewrite, header, rewrite);
2519
2922
  }
@@ -2575,7 +2978,7 @@ var AxiosHeaders = class {
2575
2978
  let deleted = false;
2576
2979
  while (i--) {
2577
2980
  const key = keys[i];
2578
- if (!matcher || matchHeaderValue(this, this[key], key, matcher)) {
2981
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
2579
2982
  delete this[key];
2580
2983
  deleted = true;
2581
2984
  }
@@ -2617,6 +3020,9 @@ var AxiosHeaders = class {
2617
3020
  toString() {
2618
3021
  return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
2619
3022
  }
3023
+ getSetCookie() {
3024
+ return this.get("set-cookie") || [];
3025
+ }
2620
3026
  get [Symbol.toStringTag]() {
2621
3027
  return "AxiosHeaders";
2622
3028
  }
@@ -2633,11 +3039,11 @@ var AxiosHeaders = class {
2633
3039
  accessors: {}
2634
3040
  };
2635
3041
  const accessors = internals.accessors;
2636
- const prototype3 = this.prototype;
3042
+ const prototype2 = this.prototype;
2637
3043
  function defineAccessor(_header) {
2638
3044
  const lHeader = normalizeHeader(_header);
2639
3045
  if (!accessors[lHeader]) {
2640
- buildAccessors(prototype3, _header);
3046
+ buildAccessors(prototype2, _header);
2641
3047
  accessors[lHeader] = true;
2642
3048
  }
2643
3049
  }
@@ -2645,12 +3051,27 @@ var AxiosHeaders = class {
2645
3051
  return this;
2646
3052
  }
2647
3053
  };
2648
- AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
2649
- utils_default.freezeMethods(AxiosHeaders.prototype);
3054
+ AxiosHeaders.accessor([
3055
+ "Content-Type",
3056
+ "Content-Length",
3057
+ "Accept",
3058
+ "Accept-Encoding",
3059
+ "User-Agent",
3060
+ "Authorization"
3061
+ ]);
3062
+ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
3063
+ let mapped = key[0].toUpperCase() + key.slice(1);
3064
+ return {
3065
+ get: () => value,
3066
+ set(headerValue) {
3067
+ this[mapped] = headerValue;
3068
+ }
3069
+ };
3070
+ });
2650
3071
  utils_default.freezeMethods(AxiosHeaders);
2651
3072
  var AxiosHeaders_default = AxiosHeaders;
2652
3073
 
2653
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/transformData.js
3074
+ // node_modules/axios/lib/core/transformData.js
2654
3075
  function transformData(fns, response) {
2655
3076
  const config = this || defaults_default;
2656
3077
  const context = response || config;
@@ -2663,76 +3084,92 @@ function transformData(fns, response) {
2663
3084
  return data;
2664
3085
  }
2665
3086
 
2666
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/cancel/isCancel.js
3087
+ // node_modules/axios/lib/cancel/isCancel.js
2667
3088
  function isCancel(value) {
2668
3089
  return !!(value && value.__CANCEL__);
2669
3090
  }
2670
3091
 
2671
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/cancel/CanceledError.js
2672
- function CanceledError(message, config, request) {
2673
- AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
2674
- this.name = "CanceledError";
2675
- }
2676
- utils_default.inherits(CanceledError, AxiosError_default, {
2677
- __CANCEL__: true
2678
- });
3092
+ // node_modules/axios/lib/cancel/CanceledError.js
3093
+ var CanceledError = class extends AxiosError_default {
3094
+ /**
3095
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
3096
+ *
3097
+ * @param {string=} message The message.
3098
+ * @param {Object=} config The config.
3099
+ * @param {Object=} request The request.
3100
+ *
3101
+ * @returns {CanceledError} The created error.
3102
+ */
3103
+ constructor(message, config, request) {
3104
+ super(message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
3105
+ this.name = "CanceledError";
3106
+ this.__CANCEL__ = true;
3107
+ }
3108
+ };
2679
3109
  var CanceledError_default = CanceledError;
2680
3110
 
2681
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/settle.js
3111
+ // node_modules/axios/lib/core/settle.js
2682
3112
  function settle(resolve, reject, response) {
2683
3113
  const validateStatus2 = response.config.validateStatus;
2684
3114
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
2685
3115
  resolve(response);
2686
3116
  } else {
2687
- reject(new AxiosError_default(
2688
- "Request failed with status code " + response.status,
2689
- [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
2690
- response.config,
2691
- response.request,
2692
- response
2693
- ));
3117
+ reject(
3118
+ new AxiosError_default(
3119
+ "Request failed with status code " + response.status,
3120
+ [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
3121
+ response.config,
3122
+ response.request,
3123
+ response
3124
+ )
3125
+ );
2694
3126
  }
2695
3127
  }
2696
3128
 
2697
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/isAbsoluteURL.js
3129
+ // node_modules/axios/lib/helpers/isAbsoluteURL.js
2698
3130
  function isAbsoluteURL(url2) {
3131
+ if (typeof url2 !== "string") {
3132
+ return false;
3133
+ }
2699
3134
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
2700
3135
  }
2701
3136
 
2702
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/combineURLs.js
3137
+ // node_modules/axios/lib/helpers/combineURLs.js
2703
3138
  function combineURLs(baseURL, relativeURL) {
2704
- return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
3139
+ return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
2705
3140
  }
2706
3141
 
2707
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/buildFullPath.js
2708
- function buildFullPath(baseURL, requestedURL) {
2709
- if (baseURL && !isAbsoluteURL(requestedURL)) {
3142
+ // node_modules/axios/lib/core/buildFullPath.js
3143
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
3144
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
3145
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
2710
3146
  return combineURLs(baseURL, requestedURL);
2711
3147
  }
2712
3148
  return requestedURL;
2713
3149
  }
2714
3150
 
2715
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/adapters/http.js
3151
+ // node_modules/axios/lib/adapters/http.js
2716
3152
  var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
2717
3153
  var import_http = __toESM(require("http"), 1);
2718
3154
  var import_https = __toESM(require("https"), 1);
3155
+ var import_http2 = __toESM(require("http2"), 1);
2719
3156
  var import_util2 = __toESM(require("util"), 1);
2720
3157
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
2721
3158
  var import_zlib = __toESM(require("zlib"), 1);
2722
3159
 
2723
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/env/data.js
2724
- var VERSION = "1.3.2";
3160
+ // node_modules/axios/lib/env/data.js
3161
+ var VERSION = "1.13.6";
2725
3162
 
2726
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/parseProtocol.js
3163
+ // node_modules/axios/lib/helpers/parseProtocol.js
2727
3164
  function parseProtocol(url2) {
2728
3165
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
2729
3166
  return match && match[1] || "";
2730
3167
  }
2731
3168
 
2732
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/fromDataURI.js
3169
+ // node_modules/axios/lib/helpers/fromDataURI.js
2733
3170
  var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
2734
3171
  function fromDataURI(uri, asBlob, options) {
2735
- const _Blob = options && options.Blob || node_default.classes.Blob;
3172
+ const _Blob = options && options.Blob || platform_default.classes.Blob;
2736
3173
  const protocol = parseProtocol(uri);
2737
3174
  if (asBlob === void 0 && _Blob) {
2738
3175
  asBlob = true;
@@ -2758,96 +3195,34 @@ function fromDataURI(uri, asBlob, options) {
2758
3195
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
2759
3196
  }
2760
3197
 
2761
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/adapters/http.js
3198
+ // node_modules/axios/lib/adapters/http.js
2762
3199
  var import_stream4 = __toESM(require("stream"), 1);
2763
3200
 
2764
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/AxiosTransformStream.js
3201
+ // node_modules/axios/lib/helpers/AxiosTransformStream.js
2765
3202
  var import_stream = __toESM(require("stream"), 1);
2766
-
2767
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/throttle.js
2768
- function throttle(fn, freq) {
2769
- let timestamp = 0;
2770
- const threshold = 1e3 / freq;
2771
- let timer = null;
2772
- return function throttled(force, args) {
2773
- const now = Date.now();
2774
- if (force || now - timestamp > threshold) {
2775
- if (timer) {
2776
- clearTimeout(timer);
2777
- timer = null;
3203
+ var kInternals = Symbol("internals");
3204
+ var AxiosTransformStream = class extends import_stream.default.Transform {
3205
+ constructor(options) {
3206
+ options = utils_default.toFlatObject(
3207
+ options,
3208
+ {
3209
+ maxRate: 0,
3210
+ chunkSize: 64 * 1024,
3211
+ minChunkSize: 100,
3212
+ timeWindow: 500,
3213
+ ticksRate: 2,
3214
+ samplesCount: 15
3215
+ },
3216
+ null,
3217
+ (prop, source) => {
3218
+ return !utils_default.isUndefined(source[prop]);
2778
3219
  }
2779
- timestamp = now;
2780
- return fn.apply(null, args);
2781
- }
2782
- if (!timer) {
2783
- timer = setTimeout(() => {
2784
- timer = null;
2785
- timestamp = Date.now();
2786
- return fn.apply(null, args);
2787
- }, threshold - (now - timestamp));
2788
- }
2789
- };
2790
- }
2791
- var throttle_default = throttle;
2792
-
2793
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/speedometer.js
2794
- function speedometer(samplesCount, min) {
2795
- samplesCount = samplesCount || 10;
2796
- const bytes = new Array(samplesCount);
2797
- const timestamps = new Array(samplesCount);
2798
- let head = 0;
2799
- let tail = 0;
2800
- let firstSampleTS;
2801
- min = min !== void 0 ? min : 1e3;
2802
- return function push(chunkLength) {
2803
- const now = Date.now();
2804
- const startedAt = timestamps[tail];
2805
- if (!firstSampleTS) {
2806
- firstSampleTS = now;
2807
- }
2808
- bytes[head] = chunkLength;
2809
- timestamps[head] = now;
2810
- let i = tail;
2811
- let bytesCount = 0;
2812
- while (i !== head) {
2813
- bytesCount += bytes[i++];
2814
- i = i % samplesCount;
2815
- }
2816
- head = (head + 1) % samplesCount;
2817
- if (head === tail) {
2818
- tail = (tail + 1) % samplesCount;
2819
- }
2820
- if (now - firstSampleTS < min) {
2821
- return;
2822
- }
2823
- const passed = startedAt && now - startedAt;
2824
- return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
2825
- };
2826
- }
2827
- var speedometer_default = speedometer;
2828
-
2829
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/AxiosTransformStream.js
2830
- var kInternals = Symbol("internals");
2831
- var AxiosTransformStream = class extends import_stream.default.Transform {
2832
- constructor(options) {
2833
- options = utils_default.toFlatObject(options, {
2834
- maxRate: 0,
2835
- chunkSize: 64 * 1024,
2836
- minChunkSize: 100,
2837
- timeWindow: 500,
2838
- ticksRate: 2,
2839
- samplesCount: 15
2840
- }, null, (prop, source) => {
2841
- return !utils_default.isUndefined(source[prop]);
2842
- });
3220
+ );
2843
3221
  super({
2844
3222
  readableHighWaterMark: options.chunkSize
2845
3223
  });
2846
- const self2 = this;
2847
3224
  const internals = this[kInternals] = {
2848
- length: options.length,
2849
3225
  timeWindow: options.timeWindow,
2850
- ticksRate: options.ticksRate,
2851
3226
  chunkSize: options.chunkSize,
2852
3227
  maxRate: options.maxRate,
2853
3228
  minChunkSize: options.minChunkSize,
@@ -2858,7 +3233,6 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
2858
3233
  bytes: 0,
2859
3234
  onReadCallback: null
2860
3235
  };
2861
- const _speedometer = speedometer_default(internals.ticksRate * options.samplesCount, internals.timeWindow);
2862
3236
  this.on("newListener", (event) => {
2863
3237
  if (event === "progress") {
2864
3238
  if (!internals.isCaptured) {
@@ -2866,30 +3240,6 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
2866
3240
  }
2867
3241
  }
2868
3242
  });
2869
- let bytesNotified = 0;
2870
- internals.updateProgress = throttle_default(function throttledHandler() {
2871
- const totalBytes = internals.length;
2872
- const bytesTransferred = internals.bytesSeen;
2873
- const progressBytes = bytesTransferred - bytesNotified;
2874
- if (!progressBytes || self2.destroyed) return;
2875
- const rate = _speedometer(progressBytes);
2876
- bytesNotified = bytesTransferred;
2877
- process.nextTick(() => {
2878
- self2.emit("progress", {
2879
- "loaded": bytesTransferred,
2880
- "total": totalBytes,
2881
- "progress": totalBytes ? bytesTransferred / totalBytes : void 0,
2882
- "bytes": progressBytes,
2883
- "rate": rate ? rate : void 0,
2884
- "estimated": rate && totalBytes && bytesTransferred <= totalBytes ? (totalBytes - bytesTransferred) / rate : void 0
2885
- });
2886
- });
2887
- }, internals.ticksRate);
2888
- const onFinish = () => {
2889
- internals.updateProgress(true);
2890
- };
2891
- this.once("end", onFinish);
2892
- this.once("error", onFinish);
2893
3243
  }
2894
3244
  _read(size) {
2895
3245
  const internals = this[kInternals];
@@ -2899,7 +3249,6 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
2899
3249
  return super._read(size);
2900
3250
  }
2901
3251
  _transform(chunk, encoding, callback) {
2902
- const self2 = this;
2903
3252
  const internals = this[kInternals];
2904
3253
  const maxRate = internals.maxRate;
2905
3254
  const readableHighWaterMark = this.readableHighWaterMark;
@@ -2907,14 +3256,12 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
2907
3256
  const divider = 1e3 / timeWindow;
2908
3257
  const bytesThreshold = maxRate / divider;
2909
3258
  const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
2910
- function pushChunk(_chunk, _callback) {
3259
+ const pushChunk = (_chunk, _callback) => {
2911
3260
  const bytes = Buffer.byteLength(_chunk);
2912
3261
  internals.bytesSeen += bytes;
2913
3262
  internals.bytes += bytes;
2914
- if (internals.isCaptured) {
2915
- internals.updateProgress();
2916
- }
2917
- if (self2.push(_chunk)) {
3263
+ internals.isCaptured && this.emit("progress", internals.bytesSeen);
3264
+ if (this.push(_chunk)) {
2918
3265
  process.nextTick(_callback);
2919
3266
  } else {
2920
3267
  internals.onReadCallback = () => {
@@ -2922,7 +3269,7 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
2922
3269
  process.nextTick(_callback);
2923
3270
  };
2924
3271
  }
2925
- }
3272
+ };
2926
3273
  const transformChunk = (_chunk, _callback) => {
2927
3274
  const chunkSize = Buffer.byteLength(_chunk);
2928
3275
  let chunkRemainder = null;
@@ -2953,9 +3300,12 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
2953
3300
  chunkRemainder = _chunk.subarray(maxChunkSize);
2954
3301
  _chunk = _chunk.subarray(0, maxChunkSize);
2955
3302
  }
2956
- pushChunk(_chunk, chunkRemainder ? () => {
2957
- process.nextTick(_callback, null, chunkRemainder);
2958
- } : _callback);
3303
+ pushChunk(
3304
+ _chunk,
3305
+ chunkRemainder ? () => {
3306
+ process.nextTick(_callback, null, chunkRemainder);
3307
+ } : _callback
3308
+ );
2959
3309
  };
2960
3310
  transformChunk(chunk, function transformNextChunk(err, _chunk) {
2961
3311
  if (err) {
@@ -2968,21 +3318,17 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
2968
3318
  }
2969
3319
  });
2970
3320
  }
2971
- setLength(length) {
2972
- this[kInternals].length = +length;
2973
- return this;
2974
- }
2975
3321
  };
2976
3322
  var AxiosTransformStream_default = AxiosTransformStream;
2977
3323
 
2978
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/adapters/http.js
2979
- var import_events = __toESM(require("events"), 1);
3324
+ // node_modules/axios/lib/adapters/http.js
3325
+ var import_events = require("events");
2980
3326
 
2981
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/formDataToStream.js
2982
- var import_util = require("util");
3327
+ // node_modules/axios/lib/helpers/formDataToStream.js
3328
+ var import_util = __toESM(require("util"), 1);
2983
3329
  var import_stream2 = require("stream");
2984
3330
 
2985
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/readBlob.js
3331
+ // node_modules/axios/lib/helpers/readBlob.js
2986
3332
  var { asyncIterator } = Symbol;
2987
3333
  var readBlob = async function* (blob) {
2988
3334
  if (blob.stream) {
@@ -2997,9 +3343,9 @@ var readBlob = async function* (blob) {
2997
3343
  };
2998
3344
  var readBlob_default = readBlob;
2999
3345
 
3000
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/formDataToStream.js
3001
- var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
3002
- var textEncoder = new import_util.TextEncoder();
3346
+ // node_modules/axios/lib/helpers/formDataToStream.js
3347
+ var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
3348
+ var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new import_util.default.TextEncoder();
3003
3349
  var CRLF = "\r\n";
3004
3350
  var CRLF_BYTES = textEncoder.encode(CRLF);
3005
3351
  var CRLF_BYTES_COUNT = 2;
@@ -3030,18 +3376,21 @@ var FormDataPart = class {
3030
3376
  yield CRLF_BYTES;
3031
3377
  }
3032
3378
  static escapeName(name) {
3033
- return String(name).replace(/[\r\n"]/g, (match) => ({
3034
- "\r": "%0D",
3035
- "\n": "%0A",
3036
- '"': "%22"
3037
- })[match]);
3379
+ return String(name).replace(
3380
+ /[\r\n"]/g,
3381
+ (match) => ({
3382
+ "\r": "%0D",
3383
+ "\n": "%0A",
3384
+ '"': "%22"
3385
+ })[match]
3386
+ );
3038
3387
  }
3039
3388
  };
3040
3389
  var formDataToStream = (form, headersHandler, options) => {
3041
3390
  const {
3042
3391
  tag = "form-data-boundary",
3043
3392
  size = 25,
3044
- boundary = tag + "-" + utils_default.generateString(size, BOUNDARY_ALPHABET)
3393
+ boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
3045
3394
  } = options || {};
3046
3395
  if (!utils_default.isFormData(form)) {
3047
3396
  throw TypeError("FormData instance required");
@@ -3050,7 +3399,7 @@ var formDataToStream = (form, headersHandler, options) => {
3050
3399
  throw Error("boundary must be 10-70 characters long");
3051
3400
  }
3052
3401
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
3053
- const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF + CRLF);
3402
+ const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
3054
3403
  let contentLength = footerBytes.byteLength;
3055
3404
  const parts = Array.from(form.entries()).map(([name, value]) => {
3056
3405
  const part = new FormDataPart(name, value);
@@ -3066,17 +3415,19 @@ var formDataToStream = (form, headersHandler, options) => {
3066
3415
  computedHeaders["Content-Length"] = contentLength;
3067
3416
  }
3068
3417
  headersHandler && headersHandler(computedHeaders);
3069
- return import_stream2.Readable.from(async function* () {
3070
- for (const part of parts) {
3071
- yield boundaryBytes;
3072
- yield* part.encode();
3073
- }
3074
- yield footerBytes;
3075
- }());
3418
+ return import_stream2.Readable.from(
3419
+ (async function* () {
3420
+ for (const part of parts) {
3421
+ yield boundaryBytes;
3422
+ yield* part.encode();
3423
+ }
3424
+ yield footerBytes;
3425
+ })()
3426
+ );
3076
3427
  };
3077
3428
  var formDataToStream_default = formDataToStream;
3078
3429
 
3079
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
3430
+ // node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
3080
3431
  var import_stream3 = __toESM(require("stream"), 1);
3081
3432
  var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
3082
3433
  __transform(chunk, encoding, callback) {
@@ -3098,7 +3449,182 @@ var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
3098
3449
  };
3099
3450
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
3100
3451
 
3101
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/adapters/http.js
3452
+ // node_modules/axios/lib/helpers/callbackify.js
3453
+ var callbackify = (fn, reducer) => {
3454
+ return utils_default.isAsyncFn(fn) ? function(...args) {
3455
+ const cb = args.pop();
3456
+ fn.apply(this, args).then((value) => {
3457
+ try {
3458
+ reducer ? cb(null, ...reducer(value)) : cb(null, value);
3459
+ } catch (err) {
3460
+ cb(err);
3461
+ }
3462
+ }, cb);
3463
+ } : fn;
3464
+ };
3465
+ var callbackify_default = callbackify;
3466
+
3467
+ // node_modules/axios/lib/helpers/speedometer.js
3468
+ function speedometer(samplesCount, min) {
3469
+ samplesCount = samplesCount || 10;
3470
+ const bytes = new Array(samplesCount);
3471
+ const timestamps = new Array(samplesCount);
3472
+ let head = 0;
3473
+ let tail = 0;
3474
+ let firstSampleTS;
3475
+ min = min !== void 0 ? min : 1e3;
3476
+ return function push(chunkLength) {
3477
+ const now = Date.now();
3478
+ const startedAt = timestamps[tail];
3479
+ if (!firstSampleTS) {
3480
+ firstSampleTS = now;
3481
+ }
3482
+ bytes[head] = chunkLength;
3483
+ timestamps[head] = now;
3484
+ let i = tail;
3485
+ let bytesCount = 0;
3486
+ while (i !== head) {
3487
+ bytesCount += bytes[i++];
3488
+ i = i % samplesCount;
3489
+ }
3490
+ head = (head + 1) % samplesCount;
3491
+ if (head === tail) {
3492
+ tail = (tail + 1) % samplesCount;
3493
+ }
3494
+ if (now - firstSampleTS < min) {
3495
+ return;
3496
+ }
3497
+ const passed = startedAt && now - startedAt;
3498
+ return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
3499
+ };
3500
+ }
3501
+ var speedometer_default = speedometer;
3502
+
3503
+ // node_modules/axios/lib/helpers/throttle.js
3504
+ function throttle(fn, freq) {
3505
+ let timestamp = 0;
3506
+ let threshold = 1e3 / freq;
3507
+ let lastArgs;
3508
+ let timer;
3509
+ const invoke = (args, now = Date.now()) => {
3510
+ timestamp = now;
3511
+ lastArgs = null;
3512
+ if (timer) {
3513
+ clearTimeout(timer);
3514
+ timer = null;
3515
+ }
3516
+ fn(...args);
3517
+ };
3518
+ const throttled = (...args) => {
3519
+ const now = Date.now();
3520
+ const passed = now - timestamp;
3521
+ if (passed >= threshold) {
3522
+ invoke(args, now);
3523
+ } else {
3524
+ lastArgs = args;
3525
+ if (!timer) {
3526
+ timer = setTimeout(() => {
3527
+ timer = null;
3528
+ invoke(lastArgs);
3529
+ }, threshold - passed);
3530
+ }
3531
+ }
3532
+ };
3533
+ const flush = () => lastArgs && invoke(lastArgs);
3534
+ return [throttled, flush];
3535
+ }
3536
+ var throttle_default = throttle;
3537
+
3538
+ // node_modules/axios/lib/helpers/progressEventReducer.js
3539
+ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
3540
+ let bytesNotified = 0;
3541
+ const _speedometer = speedometer_default(50, 250);
3542
+ return throttle_default((e) => {
3543
+ const loaded = e.loaded;
3544
+ const total = e.lengthComputable ? e.total : void 0;
3545
+ const progressBytes = loaded - bytesNotified;
3546
+ const rate = _speedometer(progressBytes);
3547
+ const inRange = loaded <= total;
3548
+ bytesNotified = loaded;
3549
+ const data = {
3550
+ loaded,
3551
+ total,
3552
+ progress: total ? loaded / total : void 0,
3553
+ bytes: progressBytes,
3554
+ rate: rate ? rate : void 0,
3555
+ estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
3556
+ event: e,
3557
+ lengthComputable: total != null,
3558
+ [isDownloadStream ? "download" : "upload"]: true
3559
+ };
3560
+ listener(data);
3561
+ }, freq);
3562
+ };
3563
+ var progressEventDecorator = (total, throttled) => {
3564
+ const lengthComputable = total != null;
3565
+ return [
3566
+ (loaded) => throttled[0]({
3567
+ lengthComputable,
3568
+ total,
3569
+ loaded
3570
+ }),
3571
+ throttled[1]
3572
+ ];
3573
+ };
3574
+ var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
3575
+
3576
+ // node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
3577
+ function estimateDataURLDecodedBytes(url2) {
3578
+ if (!url2 || typeof url2 !== "string") return 0;
3579
+ if (!url2.startsWith("data:")) return 0;
3580
+ const comma = url2.indexOf(",");
3581
+ if (comma < 0) return 0;
3582
+ const meta = url2.slice(5, comma);
3583
+ const body = url2.slice(comma + 1);
3584
+ const isBase64 = /;base64/i.test(meta);
3585
+ if (isBase64) {
3586
+ let effectiveLen = body.length;
3587
+ const len = body.length;
3588
+ for (let i = 0; i < len; i++) {
3589
+ if (body.charCodeAt(i) === 37 && i + 2 < len) {
3590
+ const a = body.charCodeAt(i + 1);
3591
+ const b = body.charCodeAt(i + 2);
3592
+ const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
3593
+ if (isHex) {
3594
+ effectiveLen -= 2;
3595
+ i += 2;
3596
+ }
3597
+ }
3598
+ }
3599
+ let pad = 0;
3600
+ let idx = len - 1;
3601
+ const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
3602
+ body.charCodeAt(j - 1) === 51 && // '3'
3603
+ (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
3604
+ if (idx >= 0) {
3605
+ if (body.charCodeAt(idx) === 61) {
3606
+ pad++;
3607
+ idx--;
3608
+ } else if (tailIsPct3D(idx)) {
3609
+ pad++;
3610
+ idx -= 3;
3611
+ }
3612
+ }
3613
+ if (pad === 1 && idx >= 0) {
3614
+ if (body.charCodeAt(idx) === 61) {
3615
+ pad++;
3616
+ } else if (tailIsPct3D(idx)) {
3617
+ pad++;
3618
+ }
3619
+ }
3620
+ const groups = Math.floor(effectiveLen / 4);
3621
+ const bytes = groups * 3 - (pad || 0);
3622
+ return bytes > 0 ? bytes : 0;
3623
+ }
3624
+ return Buffer.byteLength(body, "utf8");
3625
+ }
3626
+
3627
+ // node_modules/axios/lib/adapters/http.js
3102
3628
  var zlibOptions = {
3103
3629
  flush: import_zlib.default.constants.Z_SYNC_FLUSH,
3104
3630
  finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
@@ -3110,21 +3636,95 @@ var brotliOptions = {
3110
3636
  var isBrotliSupported = utils_default.isFunction(import_zlib.default.createBrotliDecompress);
3111
3637
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
3112
3638
  var isHttps = /https:?/;
3113
- var supportedProtocols = node_default.protocols.map((protocol) => {
3639
+ var supportedProtocols = platform_default.protocols.map((protocol) => {
3114
3640
  return protocol + ":";
3115
3641
  });
3116
- function dispatchBeforeRedirect(options) {
3642
+ var flushOnFinish = (stream4, [throttled, flush]) => {
3643
+ stream4.on("end", flush).on("error", flush);
3644
+ return throttled;
3645
+ };
3646
+ var Http2Sessions = class {
3647
+ constructor() {
3648
+ this.sessions = /* @__PURE__ */ Object.create(null);
3649
+ }
3650
+ getSession(authority, options) {
3651
+ options = Object.assign(
3652
+ {
3653
+ sessionTimeout: 1e3
3654
+ },
3655
+ options
3656
+ );
3657
+ let authoritySessions = this.sessions[authority];
3658
+ if (authoritySessions) {
3659
+ let len = authoritySessions.length;
3660
+ for (let i = 0; i < len; i++) {
3661
+ const [sessionHandle, sessionOptions] = authoritySessions[i];
3662
+ if (!sessionHandle.destroyed && !sessionHandle.closed && import_util2.default.isDeepStrictEqual(sessionOptions, options)) {
3663
+ return sessionHandle;
3664
+ }
3665
+ }
3666
+ }
3667
+ const session = import_http2.default.connect(authority, options);
3668
+ let removed;
3669
+ const removeSession = () => {
3670
+ if (removed) {
3671
+ return;
3672
+ }
3673
+ removed = true;
3674
+ let entries = authoritySessions, len = entries.length, i = len;
3675
+ while (i--) {
3676
+ if (entries[i][0] === session) {
3677
+ if (len === 1) {
3678
+ delete this.sessions[authority];
3679
+ } else {
3680
+ entries.splice(i, 1);
3681
+ }
3682
+ return;
3683
+ }
3684
+ }
3685
+ };
3686
+ const originalRequestFn = session.request;
3687
+ const { sessionTimeout } = options;
3688
+ if (sessionTimeout != null) {
3689
+ let timer;
3690
+ let streamsCount = 0;
3691
+ session.request = function() {
3692
+ const stream4 = originalRequestFn.apply(this, arguments);
3693
+ streamsCount++;
3694
+ if (timer) {
3695
+ clearTimeout(timer);
3696
+ timer = null;
3697
+ }
3698
+ stream4.once("close", () => {
3699
+ if (!--streamsCount) {
3700
+ timer = setTimeout(() => {
3701
+ timer = null;
3702
+ removeSession();
3703
+ }, sessionTimeout);
3704
+ }
3705
+ });
3706
+ return stream4;
3707
+ };
3708
+ }
3709
+ session.once("close", removeSession);
3710
+ let entry = [session, options];
3711
+ authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
3712
+ return session;
3713
+ }
3714
+ };
3715
+ var http2Sessions = new Http2Sessions();
3716
+ function dispatchBeforeRedirect(options, responseDetails) {
3117
3717
  if (options.beforeRedirects.proxy) {
3118
3718
  options.beforeRedirects.proxy(options);
3119
3719
  }
3120
3720
  if (options.beforeRedirects.config) {
3121
- options.beforeRedirects.config(options);
3721
+ options.beforeRedirects.config(options, responseDetails);
3122
3722
  }
3123
3723
  }
3124
3724
  function setProxy(options, configProxy, location) {
3125
3725
  let proxy = configProxy;
3126
3726
  if (!proxy && proxy !== false) {
3127
- const proxyUrl = (0, import_proxy_from_env.getProxyForUrl)(location);
3727
+ const proxyUrl = import_proxy_from_env.default.getProxyForUrl(location);
3128
3728
  if (proxyUrl) {
3129
3729
  proxy = new URL(proxyUrl);
3130
3730
  }
@@ -3134,8 +3734,11 @@ function setProxy(options, configProxy, location) {
3134
3734
  proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
3135
3735
  }
3136
3736
  if (proxy.auth) {
3137
- if (proxy.auth.username || proxy.auth.password) {
3737
+ const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
3738
+ if (validProxyAuth) {
3138
3739
  proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
3740
+ } else if (typeof proxy.auth === "object") {
3741
+ throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
3139
3742
  }
3140
3743
  const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
3141
3744
  options.headers["Proxy-Authorization"] = "Basic " + base64;
@@ -3155,57 +3758,152 @@ function setProxy(options, configProxy, location) {
3155
3758
  };
3156
3759
  }
3157
3760
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
3761
+ var wrapAsync = (asyncExecutor) => {
3762
+ return new Promise((resolve, reject) => {
3763
+ let onDone;
3764
+ let isDone;
3765
+ const done = (value, isRejected) => {
3766
+ if (isDone) return;
3767
+ isDone = true;
3768
+ onDone && onDone(value, isRejected);
3769
+ };
3770
+ const _resolve = (value) => {
3771
+ done(value);
3772
+ resolve(value);
3773
+ };
3774
+ const _reject = (reason) => {
3775
+ done(reason, true);
3776
+ reject(reason);
3777
+ };
3778
+ asyncExecutor(_resolve, _reject, (onDoneHandler) => onDone = onDoneHandler).catch(_reject);
3779
+ });
3780
+ };
3781
+ var resolveFamily = ({ address, family }) => {
3782
+ if (!utils_default.isString(address)) {
3783
+ throw TypeError("address must be a string");
3784
+ }
3785
+ return {
3786
+ address,
3787
+ family: family || (address.indexOf(".") < 0 ? 6 : 4)
3788
+ };
3789
+ };
3790
+ var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
3791
+ var http2Transport = {
3792
+ request(options, cb) {
3793
+ const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
3794
+ const { http2Options, headers } = options;
3795
+ const session = http2Sessions.getSession(authority, http2Options);
3796
+ const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = import_http2.default.constants;
3797
+ const http2Headers = {
3798
+ [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
3799
+ [HTTP2_HEADER_METHOD]: options.method,
3800
+ [HTTP2_HEADER_PATH]: options.path
3801
+ };
3802
+ utils_default.forEach(headers, (header, name) => {
3803
+ name.charAt(0) !== ":" && (http2Headers[name] = header);
3804
+ });
3805
+ const req = session.request(http2Headers);
3806
+ req.once("response", (responseHeaders) => {
3807
+ const response = req;
3808
+ responseHeaders = Object.assign({}, responseHeaders);
3809
+ const status = responseHeaders[HTTP2_HEADER_STATUS];
3810
+ delete responseHeaders[HTTP2_HEADER_STATUS];
3811
+ response.headers = responseHeaders;
3812
+ response.statusCode = +status;
3813
+ cb(response);
3814
+ });
3815
+ return req;
3816
+ }
3817
+ };
3158
3818
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
3159
- return new Promise(async function dispatchHttpRequest(resolvePromise, rejectPromise) {
3160
- let data = config.data;
3161
- const responseType = config.responseType;
3162
- const responseEncoding = config.responseEncoding;
3819
+ return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
3820
+ let { data, lookup, family, httpVersion = 1, http2Options } = config;
3821
+ const { responseType, responseEncoding } = config;
3163
3822
  const method = config.method.toUpperCase();
3164
- let isFinished;
3165
3823
  let isDone;
3166
3824
  let rejected = false;
3167
3825
  let req;
3168
- const emitter = new import_events.default();
3169
- function onFinished() {
3170
- if (isFinished) return;
3171
- isFinished = true;
3826
+ httpVersion = +httpVersion;
3827
+ if (Number.isNaN(httpVersion)) {
3828
+ throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
3829
+ }
3830
+ if (httpVersion !== 1 && httpVersion !== 2) {
3831
+ throw TypeError(`Unsupported protocol version '${httpVersion}'`);
3832
+ }
3833
+ const isHttp2 = httpVersion === 2;
3834
+ if (lookup) {
3835
+ const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
3836
+ lookup = (hostname, opt, cb) => {
3837
+ _lookup(hostname, opt, (err, arg0, arg1) => {
3838
+ if (err) {
3839
+ return cb(err);
3840
+ }
3841
+ const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
3842
+ opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
3843
+ });
3844
+ };
3845
+ }
3846
+ const abortEmitter = new import_events.EventEmitter();
3847
+ function abort(reason) {
3848
+ try {
3849
+ abortEmitter.emit(
3850
+ "abort",
3851
+ !reason || reason.type ? new CanceledError_default(null, config, req) : reason
3852
+ );
3853
+ } catch (err) {
3854
+ console.warn("emit error", err);
3855
+ }
3856
+ }
3857
+ abortEmitter.once("abort", reject);
3858
+ const onFinished = () => {
3172
3859
  if (config.cancelToken) {
3173
3860
  config.cancelToken.unsubscribe(abort);
3174
3861
  }
3175
3862
  if (config.signal) {
3176
3863
  config.signal.removeEventListener("abort", abort);
3177
3864
  }
3178
- emitter.removeAllListeners();
3179
- }
3180
- function done(value, isRejected) {
3181
- if (isDone) return;
3182
- isDone = true;
3183
- if (isRejected) {
3184
- rejected = true;
3185
- onFinished();
3186
- }
3187
- isRejected ? rejectPromise(value) : resolvePromise(value);
3188
- }
3189
- const resolve = function resolve2(value) {
3190
- done(value);
3865
+ abortEmitter.removeAllListeners();
3191
3866
  };
3192
- const reject = function reject2(value) {
3193
- done(value, true);
3194
- };
3195
- function abort(reason) {
3196
- emitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config, req) : reason);
3197
- }
3198
- emitter.once("abort", reject);
3199
3867
  if (config.cancelToken || config.signal) {
3200
3868
  config.cancelToken && config.cancelToken.subscribe(abort);
3201
3869
  if (config.signal) {
3202
3870
  config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);
3203
3871
  }
3204
3872
  }
3205
- const fullPath = buildFullPath(config.baseURL, config.url);
3206
- const parsed = new URL(fullPath, "http://localhost");
3873
+ onDone((response, isRejected) => {
3874
+ isDone = true;
3875
+ if (isRejected) {
3876
+ rejected = true;
3877
+ onFinished();
3878
+ return;
3879
+ }
3880
+ const { data: data2 } = response;
3881
+ if (data2 instanceof import_stream4.default.Readable || data2 instanceof import_stream4.default.Duplex) {
3882
+ const offListeners = import_stream4.default.finished(data2, () => {
3883
+ offListeners();
3884
+ onFinished();
3885
+ });
3886
+ } else {
3887
+ onFinished();
3888
+ }
3889
+ });
3890
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
3891
+ const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
3207
3892
  const protocol = parsed.protocol || supportedProtocols[0];
3208
3893
  if (protocol === "data:") {
3894
+ if (config.maxContentLength > -1) {
3895
+ const dataUrl = String(config.url || fullPath || "");
3896
+ const estimated = estimateDataURLDecodedBytes(dataUrl);
3897
+ if (estimated > config.maxContentLength) {
3898
+ return reject(
3899
+ new AxiosError_default(
3900
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
3901
+ AxiosError_default.ERR_BAD_RESPONSE,
3902
+ config
3903
+ )
3904
+ );
3905
+ }
3906
+ }
3209
3907
  let convertedData;
3210
3908
  if (method !== "GET") {
3211
3909
  return settle(resolve, reject, {
@@ -3239,37 +3937,38 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
3239
3937
  });
3240
3938
  }
3241
3939
  if (supportedProtocols.indexOf(protocol) === -1) {
3242
- return reject(new AxiosError_default(
3243
- "Unsupported protocol " + protocol,
3244
- AxiosError_default.ERR_BAD_REQUEST,
3245
- config
3246
- ));
3940
+ return reject(
3941
+ new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_BAD_REQUEST, config)
3942
+ );
3247
3943
  }
3248
3944
  const headers = AxiosHeaders_default.from(config.headers).normalize();
3249
3945
  headers.set("User-Agent", "axios/" + VERSION, false);
3250
- const onDownloadProgress = config.onDownloadProgress;
3251
- const onUploadProgress = config.onUploadProgress;
3946
+ const { onUploadProgress, onDownloadProgress } = config;
3252
3947
  const maxRate = config.maxRate;
3253
3948
  let maxUploadRate = void 0;
3254
3949
  let maxDownloadRate = void 0;
3255
3950
  if (utils_default.isSpecCompliantForm(data)) {
3256
3951
  const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
3257
- data = formDataToStream_default(data, (formHeaders) => {
3258
- headers.set(formHeaders);
3259
- }, {
3260
- tag: `axios-${VERSION}-boundary`,
3261
- boundary: userBoundary && userBoundary[1] || void 0
3262
- });
3952
+ data = formDataToStream_default(
3953
+ data,
3954
+ (formHeaders) => {
3955
+ headers.set(formHeaders);
3956
+ },
3957
+ {
3958
+ tag: `axios-${VERSION}-boundary`,
3959
+ boundary: userBoundary && userBoundary[1] || void 0
3960
+ }
3961
+ );
3263
3962
  } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
3264
3963
  headers.set(data.getHeaders());
3265
3964
  if (!headers.hasContentLength()) {
3266
3965
  try {
3267
3966
  const knownLength = await import_util2.default.promisify(data.getLength).call(data);
3268
- headers.setContentLength(knownLength);
3967
+ Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
3269
3968
  } catch (e) {
3270
3969
  }
3271
3970
  }
3272
- } else if (utils_default.isBlob(data)) {
3971
+ } else if (utils_default.isBlob(data) || utils_default.isFile(data)) {
3273
3972
  data.size && headers.setContentType(data.type || "application/octet-stream");
3274
3973
  headers.setContentLength(data.size || 0);
3275
3974
  data = import_stream4.default.Readable.from(readBlob_default(data));
@@ -3280,19 +3979,23 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
3280
3979
  } else if (utils_default.isString(data)) {
3281
3980
  data = Buffer.from(data, "utf-8");
3282
3981
  } else {
3283
- return reject(new AxiosError_default(
3284
- "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
3285
- AxiosError_default.ERR_BAD_REQUEST,
3286
- config
3287
- ));
3982
+ return reject(
3983
+ new AxiosError_default(
3984
+ "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
3985
+ AxiosError_default.ERR_BAD_REQUEST,
3986
+ config
3987
+ )
3988
+ );
3288
3989
  }
3289
3990
  headers.setContentLength(data.length, false);
3290
3991
  if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
3291
- return reject(new AxiosError_default(
3292
- "Request body larger than maxBodyLength limit",
3293
- AxiosError_default.ERR_BAD_REQUEST,
3294
- config
3295
- ));
3992
+ return reject(
3993
+ new AxiosError_default(
3994
+ "Request body larger than maxBodyLength limit",
3995
+ AxiosError_default.ERR_BAD_REQUEST,
3996
+ config
3997
+ )
3998
+ );
3296
3999
  }
3297
4000
  }
3298
4001
  const contentLength = utils_default.toFiniteNumber(headers.getContentLength());
@@ -3306,15 +4009,25 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
3306
4009
  if (!utils_default.isStream(data)) {
3307
4010
  data = import_stream4.default.Readable.from(data, { objectMode: false });
3308
4011
  }
3309
- data = import_stream4.default.pipeline([data, new AxiosTransformStream_default({
3310
- length: contentLength,
3311
- maxRate: utils_default.toFiniteNumber(maxUploadRate)
3312
- })], utils_default.noop);
3313
- onUploadProgress && data.on("progress", (progress) => {
3314
- onUploadProgress(Object.assign(progress, {
3315
- upload: true
3316
- }));
3317
- });
4012
+ data = import_stream4.default.pipeline(
4013
+ [
4014
+ data,
4015
+ new AxiosTransformStream_default({
4016
+ maxRate: utils_default.toFiniteNumber(maxUploadRate)
4017
+ })
4018
+ ],
4019
+ utils_default.noop
4020
+ );
4021
+ onUploadProgress && data.on(
4022
+ "progress",
4023
+ flushOnFinish(
4024
+ data,
4025
+ progressEventDecorator(
4026
+ contentLength,
4027
+ progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
4028
+ )
4029
+ )
4030
+ );
3318
4031
  }
3319
4032
  let auth = void 0;
3320
4033
  if (config.auth) {
@@ -3354,31 +4067,42 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
3354
4067
  agents: { http: config.httpAgent, https: config.httpsAgent },
3355
4068
  auth,
3356
4069
  protocol,
4070
+ family,
3357
4071
  beforeRedirect: dispatchBeforeRedirect,
3358
- beforeRedirects: {}
4072
+ beforeRedirects: {},
4073
+ http2Options
3359
4074
  };
4075
+ !utils_default.isUndefined(lookup) && (options.lookup = lookup);
3360
4076
  if (config.socketPath) {
3361
4077
  options.socketPath = config.socketPath;
3362
4078
  } else {
3363
- options.hostname = parsed.hostname;
4079
+ options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
3364
4080
  options.port = parsed.port;
3365
- setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
4081
+ setProxy(
4082
+ options,
4083
+ config.proxy,
4084
+ protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
4085
+ );
3366
4086
  }
3367
4087
  let transport;
3368
4088
  const isHttpsRequest = isHttps.test(options.protocol);
3369
4089
  options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
3370
- if (config.transport) {
3371
- transport = config.transport;
3372
- } else if (config.maxRedirects === 0) {
3373
- transport = isHttpsRequest ? import_https.default : import_http.default;
4090
+ if (isHttp2) {
4091
+ transport = http2Transport;
3374
4092
  } else {
3375
- if (config.maxRedirects) {
3376
- options.maxRedirects = config.maxRedirects;
3377
- }
3378
- if (config.beforeRedirect) {
3379
- options.beforeRedirects.config = config.beforeRedirect;
4093
+ if (config.transport) {
4094
+ transport = config.transport;
4095
+ } else if (config.maxRedirects === 0) {
4096
+ transport = isHttpsRequest ? import_https.default : import_http.default;
4097
+ } else {
4098
+ if (config.maxRedirects) {
4099
+ options.maxRedirects = config.maxRedirects;
4100
+ }
4101
+ if (config.beforeRedirect) {
4102
+ options.beforeRedirects.config = config.beforeRedirect;
4103
+ }
4104
+ transport = isHttpsRequest ? httpsFollow : httpFollow;
3380
4105
  }
3381
- transport = isHttpsRequest ? httpsFollow : httpFollow;
3382
4106
  }
3383
4107
  if (config.maxBodyLength > -1) {
3384
4108
  options.maxBodyLength = config.maxBodyLength;
@@ -3391,17 +4115,21 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
3391
4115
  req = transport.request(options, function handleResponse(res) {
3392
4116
  if (req.destroyed) return;
3393
4117
  const streams = [res];
3394
- const responseLength = +res.headers["content-length"];
3395
- if (onDownloadProgress) {
4118
+ const responseLength = utils_default.toFiniteNumber(res.headers["content-length"]);
4119
+ if (onDownloadProgress || maxDownloadRate) {
3396
4120
  const transformStream = new AxiosTransformStream_default({
3397
- length: utils_default.toFiniteNumber(responseLength),
3398
4121
  maxRate: utils_default.toFiniteNumber(maxDownloadRate)
3399
4122
  });
3400
- onDownloadProgress && transformStream.on("progress", (progress) => {
3401
- onDownloadProgress(Object.assign(progress, {
3402
- download: true
3403
- }));
3404
- });
4123
+ onDownloadProgress && transformStream.on(
4124
+ "progress",
4125
+ flushOnFinish(
4126
+ transformStream,
4127
+ progressEventDecorator(
4128
+ responseLength,
4129
+ progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
4130
+ )
4131
+ )
4132
+ );
3405
4133
  streams.push(transformStream);
3406
4134
  }
3407
4135
  let responseStream = res;
@@ -3410,7 +4138,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
3410
4138
  if (method === "HEAD" || res.statusCode === 204) {
3411
4139
  delete res.headers["content-encoding"];
3412
4140
  }
3413
- switch (res.headers["content-encoding"]) {
4141
+ switch ((res.headers["content-encoding"] || "").toLowerCase()) {
3414
4142
  /*eslint default-case:0*/
3415
4143
  case "gzip":
3416
4144
  case "x-gzip":
@@ -3432,10 +4160,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
3432
4160
  }
3433
4161
  }
3434
4162
  responseStream = streams.length > 1 ? import_stream4.default.pipeline(streams, utils_default.noop) : streams[0];
3435
- const offListeners = import_stream4.default.finished(responseStream, () => {
3436
- offListeners();
3437
- onFinished();
3438
- });
3439
4163
  const response = {
3440
4164
  status: res.statusCode,
3441
4165
  statusText: res.statusMessage,
@@ -3455,12 +4179,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
3455
4179
  if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
3456
4180
  rejected = true;
3457
4181
  responseStream.destroy();
3458
- reject(new AxiosError_default(
3459
- "maxContentLength size of " + config.maxContentLength + " exceeded",
3460
- AxiosError_default.ERR_BAD_RESPONSE,
3461
- config,
3462
- lastRequest
3463
- ));
4182
+ abort(
4183
+ new AxiosError_default(
4184
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
4185
+ AxiosError_default.ERR_BAD_RESPONSE,
4186
+ config,
4187
+ lastRequest
4188
+ )
4189
+ );
3464
4190
  }
3465
4191
  });
3466
4192
  responseStream.on("aborted", function handlerStreamAborted() {
@@ -3468,7 +4194,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
3468
4194
  return;
3469
4195
  }
3470
4196
  const err = new AxiosError_default(
3471
- "maxContentLength size of " + config.maxContentLength + " exceeded",
4197
+ "stream has been aborted",
3472
4198
  AxiosError_default.ERR_BAD_RESPONSE,
3473
4199
  config,
3474
4200
  lastRequest
@@ -3491,21 +4217,24 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
3491
4217
  }
3492
4218
  response.data = responseData;
3493
4219
  } catch (err) {
3494
- reject(AxiosError_default.from(err, null, config, response.request, response));
4220
+ return reject(AxiosError_default.from(err, null, config, response.request, response));
3495
4221
  }
3496
4222
  settle(resolve, reject, response);
3497
4223
  });
3498
4224
  }
3499
- emitter.once("abort", (err) => {
4225
+ abortEmitter.once("abort", (err) => {
3500
4226
  if (!responseStream.destroyed) {
3501
4227
  responseStream.emit("error", err);
3502
4228
  responseStream.destroy();
3503
4229
  }
3504
4230
  });
3505
4231
  });
3506
- emitter.once("abort", (err) => {
3507
- reject(err);
3508
- req.destroy(err);
4232
+ abortEmitter.once("abort", (err) => {
4233
+ if (req.close) {
4234
+ req.close();
4235
+ } else {
4236
+ req.destroy(err);
4237
+ }
3509
4238
  });
3510
4239
  req.on("error", function handleRequestError(err) {
3511
4240
  reject(AxiosError_default.from(err, null, config, req));
@@ -3515,13 +4244,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
3515
4244
  });
3516
4245
  if (config.timeout) {
3517
4246
  const timeout = parseInt(config.timeout, 10);
3518
- if (isNaN(timeout)) {
3519
- reject(new AxiosError_default(
3520
- "error trying to parse `config.timeout` to int",
3521
- AxiosError_default.ERR_BAD_OPTION_VALUE,
3522
- config,
3523
- req
3524
- ));
4247
+ if (Number.isNaN(timeout)) {
4248
+ abort(
4249
+ new AxiosError_default(
4250
+ "error trying to parse `config.timeout` to int",
4251
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
4252
+ config,
4253
+ req
4254
+ )
4255
+ );
3525
4256
  return;
3526
4257
  }
3527
4258
  req.setTimeout(timeout, function handleRequestTimeout() {
@@ -3531,14 +4262,17 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
3531
4262
  if (config.timeoutErrorMessage) {
3532
4263
  timeoutErrorMessage = config.timeoutErrorMessage;
3533
4264
  }
3534
- reject(new AxiosError_default(
3535
- timeoutErrorMessage,
3536
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
3537
- config,
3538
- req
3539
- ));
3540
- abort();
4265
+ abort(
4266
+ new AxiosError_default(
4267
+ timeoutErrorMessage,
4268
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
4269
+ config,
4270
+ req
4271
+ )
4272
+ );
3541
4273
  });
4274
+ } else {
4275
+ req.setTimeout(0);
3542
4276
  }
3543
4277
  if (utils_default.isStream(data)) {
3544
4278
  let ended = false;
@@ -3557,149 +4291,211 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
3557
4291
  });
3558
4292
  data.pipe(req);
3559
4293
  } else {
3560
- req.end(data);
4294
+ data && req.write(data);
4295
+ req.end();
3561
4296
  }
3562
4297
  });
3563
4298
  };
3564
4299
 
3565
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/cookies.js
3566
- var cookies_default = node_default.isStandardBrowserEnv ? (
4300
+ // node_modules/axios/lib/helpers/isURLSameOrigin.js
4301
+ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
4302
+ url2 = new URL(url2, platform_default.origin);
4303
+ return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
4304
+ })(
4305
+ new URL(platform_default.origin),
4306
+ platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
4307
+ ) : () => true;
4308
+
4309
+ // node_modules/axios/lib/helpers/cookies.js
4310
+ var cookies_default = platform_default.hasStandardBrowserEnv ? (
3567
4311
  // Standard browser envs support document.cookie
3568
- /* @__PURE__ */ function standardBrowserEnv() {
3569
- return {
3570
- write: function write(name, value, expires, path18, domain, secure) {
3571
- const cookie = [];
3572
- cookie.push(name + "=" + encodeURIComponent(value));
3573
- if (utils_default.isNumber(expires)) {
3574
- cookie.push("expires=" + new Date(expires).toGMTString());
3575
- }
3576
- if (utils_default.isString(path18)) {
3577
- cookie.push("path=" + path18);
3578
- }
3579
- if (utils_default.isString(domain)) {
3580
- cookie.push("domain=" + domain);
3581
- }
3582
- if (secure === true) {
3583
- cookie.push("secure");
3584
- }
3585
- document.cookie = cookie.join("; ");
3586
- },
3587
- read: function read(name) {
3588
- const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
3589
- return match ? decodeURIComponent(match[3]) : null;
3590
- },
3591
- remove: function remove(name) {
3592
- this.write(name, "", Date.now() - 864e5);
4312
+ {
4313
+ write(name, value, expires, path18, domain, secure, sameSite) {
4314
+ if (typeof document === "undefined") return;
4315
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
4316
+ if (utils_default.isNumber(expires)) {
4317
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
3593
4318
  }
3594
- };
3595
- }()
3596
- ) : (
3597
- // Non standard browser env (web workers, react-native) lack needed support.
3598
- /* @__PURE__ */ function nonStandardBrowserEnv() {
3599
- return {
3600
- write: function write() {
3601
- },
3602
- read: function read() {
3603
- return null;
3604
- },
3605
- remove: function remove() {
4319
+ if (utils_default.isString(path18)) {
4320
+ cookie.push(`path=${path18}`);
3606
4321
  }
3607
- };
3608
- }()
3609
- );
3610
-
3611
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/isURLSameOrigin.js
3612
- var isURLSameOrigin_default = node_default.isStandardBrowserEnv ? (
3613
- // Standard browser envs have full support of the APIs needed to test
3614
- // whether the request URL is of the same origin as current location.
3615
- function standardBrowserEnv2() {
3616
- const msie = /(msie|trident)/i.test(navigator.userAgent);
3617
- const urlParsingNode = document.createElement("a");
3618
- let originURL;
3619
- function resolveURL(url2) {
3620
- let href = url2;
3621
- if (msie) {
3622
- urlParsingNode.setAttribute("href", href);
3623
- href = urlParsingNode.href;
3624
- }
3625
- urlParsingNode.setAttribute("href", href);
3626
- return {
3627
- href: urlParsingNode.href,
3628
- protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
3629
- host: urlParsingNode.host,
3630
- search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
3631
- hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
3632
- hostname: urlParsingNode.hostname,
3633
- port: urlParsingNode.port,
3634
- pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
3635
- };
4322
+ if (utils_default.isString(domain)) {
4323
+ cookie.push(`domain=${domain}`);
4324
+ }
4325
+ if (secure === true) {
4326
+ cookie.push("secure");
4327
+ }
4328
+ if (utils_default.isString(sameSite)) {
4329
+ cookie.push(`SameSite=${sameSite}`);
4330
+ }
4331
+ document.cookie = cookie.join("; ");
4332
+ },
4333
+ read(name) {
4334
+ if (typeof document === "undefined") return null;
4335
+ const match = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
4336
+ return match ? decodeURIComponent(match[1]) : null;
4337
+ },
4338
+ remove(name) {
4339
+ this.write(name, "", Date.now() - 864e5, "/");
3636
4340
  }
3637
- originURL = resolveURL(window.location.href);
3638
- return function isURLSameOrigin(requestURL) {
3639
- const parsed = utils_default.isString(requestURL) ? resolveURL(requestURL) : requestURL;
3640
- return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
3641
- };
3642
- }()
4341
+ }
3643
4342
  ) : (
3644
- // Non standard browser envs (web workers, react-native) lack needed support.
3645
- /* @__PURE__ */ function nonStandardBrowserEnv2() {
3646
- return function isURLSameOrigin() {
3647
- return true;
3648
- };
3649
- }()
4343
+ // Non-standard browser env (web workers, react-native) lack needed support.
4344
+ {
4345
+ write() {
4346
+ },
4347
+ read() {
4348
+ return null;
4349
+ },
4350
+ remove() {
4351
+ }
4352
+ }
3650
4353
  );
3651
4354
 
3652
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/adapters/xhr.js
3653
- function progressEventReducer(listener, isDownloadStream) {
3654
- let bytesNotified = 0;
3655
- const _speedometer = speedometer_default(50, 250);
3656
- return (e) => {
3657
- const loaded = e.loaded;
3658
- const total = e.lengthComputable ? e.total : void 0;
3659
- const progressBytes = loaded - bytesNotified;
3660
- const rate = _speedometer(progressBytes);
3661
- const inRange = loaded <= total;
3662
- bytesNotified = loaded;
3663
- const data = {
3664
- loaded,
3665
- total,
3666
- progress: total ? loaded / total : void 0,
3667
- bytes: progressBytes,
3668
- rate: rate ? rate : void 0,
3669
- estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
3670
- event: e
3671
- };
3672
- data[isDownloadStream ? "download" : "upload"] = true;
3673
- listener(data);
4355
+ // node_modules/axios/lib/core/mergeConfig.js
4356
+ var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
4357
+ function mergeConfig(config1, config2) {
4358
+ config2 = config2 || {};
4359
+ const config = {};
4360
+ function getMergedValue(target, source, prop, caseless) {
4361
+ if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
4362
+ return utils_default.merge.call({ caseless }, target, source);
4363
+ } else if (utils_default.isPlainObject(source)) {
4364
+ return utils_default.merge({}, source);
4365
+ } else if (utils_default.isArray(source)) {
4366
+ return source.slice();
4367
+ }
4368
+ return source;
4369
+ }
4370
+ function mergeDeepProperties(a, b, prop, caseless) {
4371
+ if (!utils_default.isUndefined(b)) {
4372
+ return getMergedValue(a, b, prop, caseless);
4373
+ } else if (!utils_default.isUndefined(a)) {
4374
+ return getMergedValue(void 0, a, prop, caseless);
4375
+ }
4376
+ }
4377
+ function valueFromConfig2(a, b) {
4378
+ if (!utils_default.isUndefined(b)) {
4379
+ return getMergedValue(void 0, b);
4380
+ }
4381
+ }
4382
+ function defaultToConfig2(a, b) {
4383
+ if (!utils_default.isUndefined(b)) {
4384
+ return getMergedValue(void 0, b);
4385
+ } else if (!utils_default.isUndefined(a)) {
4386
+ return getMergedValue(void 0, a);
4387
+ }
4388
+ }
4389
+ function mergeDirectKeys(a, b, prop) {
4390
+ if (prop in config2) {
4391
+ return getMergedValue(a, b);
4392
+ } else if (prop in config1) {
4393
+ return getMergedValue(void 0, a);
4394
+ }
4395
+ }
4396
+ const mergeMap = {
4397
+ url: valueFromConfig2,
4398
+ method: valueFromConfig2,
4399
+ data: valueFromConfig2,
4400
+ baseURL: defaultToConfig2,
4401
+ transformRequest: defaultToConfig2,
4402
+ transformResponse: defaultToConfig2,
4403
+ paramsSerializer: defaultToConfig2,
4404
+ timeout: defaultToConfig2,
4405
+ timeoutMessage: defaultToConfig2,
4406
+ withCredentials: defaultToConfig2,
4407
+ withXSRFToken: defaultToConfig2,
4408
+ adapter: defaultToConfig2,
4409
+ responseType: defaultToConfig2,
4410
+ xsrfCookieName: defaultToConfig2,
4411
+ xsrfHeaderName: defaultToConfig2,
4412
+ onUploadProgress: defaultToConfig2,
4413
+ onDownloadProgress: defaultToConfig2,
4414
+ decompress: defaultToConfig2,
4415
+ maxContentLength: defaultToConfig2,
4416
+ maxBodyLength: defaultToConfig2,
4417
+ beforeRedirect: defaultToConfig2,
4418
+ transport: defaultToConfig2,
4419
+ httpAgent: defaultToConfig2,
4420
+ httpsAgent: defaultToConfig2,
4421
+ cancelToken: defaultToConfig2,
4422
+ socketPath: defaultToConfig2,
4423
+ responseEncoding: defaultToConfig2,
4424
+ validateStatus: mergeDirectKeys,
4425
+ headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
3674
4426
  };
4427
+ utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
4428
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
4429
+ const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
4430
+ const configValue = merge2(config1[prop], config2[prop], prop);
4431
+ utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
4432
+ });
4433
+ return config;
3675
4434
  }
4435
+
4436
+ // node_modules/axios/lib/helpers/resolveConfig.js
4437
+ var resolveConfig_default = (config) => {
4438
+ const newConfig = mergeConfig({}, config);
4439
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
4440
+ newConfig.headers = headers = AxiosHeaders_default.from(headers);
4441
+ newConfig.url = buildURL(
4442
+ buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
4443
+ config.params,
4444
+ config.paramsSerializer
4445
+ );
4446
+ if (auth) {
4447
+ headers.set(
4448
+ "Authorization",
4449
+ "Basic " + btoa(
4450
+ (auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
4451
+ )
4452
+ );
4453
+ }
4454
+ if (utils_default.isFormData(data)) {
4455
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
4456
+ headers.setContentType(void 0);
4457
+ } else if (utils_default.isFunction(data.getHeaders)) {
4458
+ const formHeaders = data.getHeaders();
4459
+ const allowedHeaders = ["content-type", "content-length"];
4460
+ Object.entries(formHeaders).forEach(([key, val]) => {
4461
+ if (allowedHeaders.includes(key.toLowerCase())) {
4462
+ headers.set(key, val);
4463
+ }
4464
+ });
4465
+ }
4466
+ }
4467
+ if (platform_default.hasStandardBrowserEnv) {
4468
+ withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
4469
+ if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
4470
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
4471
+ if (xsrfValue) {
4472
+ headers.set(xsrfHeaderName, xsrfValue);
4473
+ }
4474
+ }
4475
+ }
4476
+ return newConfig;
4477
+ };
4478
+
4479
+ // node_modules/axios/lib/adapters/xhr.js
3676
4480
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
3677
4481
  var xhr_default = isXHRAdapterSupported && function(config) {
3678
4482
  return new Promise(function dispatchXhrRequest(resolve, reject) {
3679
- let requestData = config.data;
3680
- const requestHeaders = AxiosHeaders_default.from(config.headers).normalize();
3681
- const responseType = config.responseType;
4483
+ const _config = resolveConfig_default(config);
4484
+ let requestData = _config.data;
4485
+ const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
4486
+ let { responseType, onUploadProgress, onDownloadProgress } = _config;
3682
4487
  let onCanceled;
4488
+ let uploadThrottled, downloadThrottled;
4489
+ let flushUpload, flushDownload;
3683
4490
  function done() {
3684
- if (config.cancelToken) {
3685
- config.cancelToken.unsubscribe(onCanceled);
3686
- }
3687
- if (config.signal) {
3688
- config.signal.removeEventListener("abort", onCanceled);
3689
- }
3690
- }
3691
- if (utils_default.isFormData(requestData) && (node_default.isStandardBrowserEnv || node_default.isStandardBrowserWebWorkerEnv)) {
3692
- requestHeaders.setContentType(false);
4491
+ flushUpload && flushUpload();
4492
+ flushDownload && flushDownload();
4493
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
4494
+ _config.signal && _config.signal.removeEventListener("abort", onCanceled);
3693
4495
  }
3694
4496
  let request = new XMLHttpRequest();
3695
- if (config.auth) {
3696
- const username = config.auth.username || "";
3697
- const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
3698
- requestHeaders.set("Authorization", "Basic " + btoa(username + ":" + password));
3699
- }
3700
- const fullPath = buildFullPath(config.baseURL, config.url);
3701
- request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
3702
- request.timeout = config.timeout;
4497
+ request.open(_config.method.toUpperCase(), _config.url, true);
4498
+ request.timeout = _config.timeout;
3703
4499
  function onloadend() {
3704
4500
  if (!request) {
3705
4501
  return;
@@ -3716,13 +4512,17 @@ var xhr_default = isXHRAdapterSupported && function(config) {
3716
4512
  config,
3717
4513
  request
3718
4514
  };
3719
- settle(function _resolve(value) {
3720
- resolve(value);
3721
- done();
3722
- }, function _reject(err) {
3723
- reject(err);
3724
- done();
3725
- }, response);
4515
+ settle(
4516
+ function _resolve(value) {
4517
+ resolve(value);
4518
+ done();
4519
+ },
4520
+ function _reject(err) {
4521
+ reject(err);
4522
+ done();
4523
+ },
4524
+ response
4525
+ );
3726
4526
  request = null;
3727
4527
  }
3728
4528
  if ("onloadend" in request) {
@@ -3745,49 +4545,51 @@ var xhr_default = isXHRAdapterSupported && function(config) {
3745
4545
  reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
3746
4546
  request = null;
3747
4547
  };
3748
- request.onerror = function handleError() {
3749
- reject(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request));
4548
+ request.onerror = function handleError(event) {
4549
+ const msg = event && event.message ? event.message : "Network Error";
4550
+ const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
4551
+ err.event = event || null;
4552
+ reject(err);
3750
4553
  request = null;
3751
4554
  };
3752
4555
  request.ontimeout = function handleTimeout() {
3753
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
3754
- const transitional2 = config.transitional || transitional_default;
3755
- if (config.timeoutErrorMessage) {
3756
- timeoutErrorMessage = config.timeoutErrorMessage;
3757
- }
3758
- reject(new AxiosError_default(
3759
- timeoutErrorMessage,
3760
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
3761
- config,
3762
- request
3763
- ));
4556
+ let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
4557
+ const transitional2 = _config.transitional || transitional_default;
4558
+ if (_config.timeoutErrorMessage) {
4559
+ timeoutErrorMessage = _config.timeoutErrorMessage;
4560
+ }
4561
+ reject(
4562
+ new AxiosError_default(
4563
+ timeoutErrorMessage,
4564
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
4565
+ config,
4566
+ request
4567
+ )
4568
+ );
3764
4569
  request = null;
3765
4570
  };
3766
- if (node_default.isStandardBrowserEnv) {
3767
- const xsrfValue = (config.withCredentials || isURLSameOrigin_default(fullPath)) && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
3768
- if (xsrfValue) {
3769
- requestHeaders.set(config.xsrfHeaderName, xsrfValue);
3770
- }
3771
- }
3772
4571
  requestData === void 0 && requestHeaders.setContentType(null);
3773
4572
  if ("setRequestHeader" in request) {
3774
4573
  utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
3775
4574
  request.setRequestHeader(key, val);
3776
4575
  });
3777
4576
  }
3778
- if (!utils_default.isUndefined(config.withCredentials)) {
3779
- request.withCredentials = !!config.withCredentials;
4577
+ if (!utils_default.isUndefined(_config.withCredentials)) {
4578
+ request.withCredentials = !!_config.withCredentials;
3780
4579
  }
3781
4580
  if (responseType && responseType !== "json") {
3782
- request.responseType = config.responseType;
4581
+ request.responseType = _config.responseType;
3783
4582
  }
3784
- if (typeof config.onDownloadProgress === "function") {
3785
- request.addEventListener("progress", progressEventReducer(config.onDownloadProgress, true));
4583
+ if (onDownloadProgress) {
4584
+ [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
4585
+ request.addEventListener("progress", downloadThrottled);
3786
4586
  }
3787
- if (typeof config.onUploadProgress === "function" && request.upload) {
3788
- request.upload.addEventListener("progress", progressEventReducer(config.onUploadProgress));
4587
+ if (onUploadProgress && request.upload) {
4588
+ [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
4589
+ request.upload.addEventListener("progress", uploadThrottled);
4590
+ request.upload.addEventListener("loadend", flushUpload);
3789
4591
  }
3790
- if (config.cancelToken || config.signal) {
4592
+ if (_config.cancelToken || _config.signal) {
3791
4593
  onCanceled = (cancel) => {
3792
4594
  if (!request) {
3793
4595
  return;
@@ -3796,24 +4598,373 @@ var xhr_default = isXHRAdapterSupported && function(config) {
3796
4598
  request.abort();
3797
4599
  request = null;
3798
4600
  };
3799
- config.cancelToken && config.cancelToken.subscribe(onCanceled);
3800
- if (config.signal) {
3801
- config.signal.aborted ? onCanceled() : config.signal.addEventListener("abort", onCanceled);
4601
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
4602
+ if (_config.signal) {
4603
+ _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
3802
4604
  }
3803
4605
  }
3804
- const protocol = parseProtocol(fullPath);
3805
- if (protocol && node_default.protocols.indexOf(protocol) === -1) {
3806
- reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
4606
+ const protocol = parseProtocol(_config.url);
4607
+ if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
4608
+ reject(
4609
+ new AxiosError_default(
4610
+ "Unsupported protocol " + protocol + ":",
4611
+ AxiosError_default.ERR_BAD_REQUEST,
4612
+ config
4613
+ )
4614
+ );
3807
4615
  return;
3808
4616
  }
3809
4617
  request.send(requestData || null);
3810
4618
  });
3811
4619
  };
3812
4620
 
3813
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/adapters/adapters.js
4621
+ // node_modules/axios/lib/helpers/composeSignals.js
4622
+ var composeSignals = (signals, timeout) => {
4623
+ const { length } = signals = signals ? signals.filter(Boolean) : [];
4624
+ if (timeout || length) {
4625
+ let controller = new AbortController();
4626
+ let aborted;
4627
+ const onabort = function(reason) {
4628
+ if (!aborted) {
4629
+ aborted = true;
4630
+ unsubscribe();
4631
+ const err = reason instanceof Error ? reason : this.reason;
4632
+ controller.abort(
4633
+ err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
4634
+ );
4635
+ }
4636
+ };
4637
+ let timer = timeout && setTimeout(() => {
4638
+ timer = null;
4639
+ onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
4640
+ }, timeout);
4641
+ const unsubscribe = () => {
4642
+ if (signals) {
4643
+ timer && clearTimeout(timer);
4644
+ timer = null;
4645
+ signals.forEach((signal2) => {
4646
+ signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
4647
+ });
4648
+ signals = null;
4649
+ }
4650
+ };
4651
+ signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
4652
+ const { signal } = controller;
4653
+ signal.unsubscribe = () => utils_default.asap(unsubscribe);
4654
+ return signal;
4655
+ }
4656
+ };
4657
+ var composeSignals_default = composeSignals;
4658
+
4659
+ // node_modules/axios/lib/helpers/trackStream.js
4660
+ var streamChunk = function* (chunk, chunkSize) {
4661
+ let len = chunk.byteLength;
4662
+ if (!chunkSize || len < chunkSize) {
4663
+ yield chunk;
4664
+ return;
4665
+ }
4666
+ let pos = 0;
4667
+ let end;
4668
+ while (pos < len) {
4669
+ end = pos + chunkSize;
4670
+ yield chunk.slice(pos, end);
4671
+ pos = end;
4672
+ }
4673
+ };
4674
+ var readBytes = async function* (iterable, chunkSize) {
4675
+ for await (const chunk of readStream(iterable)) {
4676
+ yield* streamChunk(chunk, chunkSize);
4677
+ }
4678
+ };
4679
+ var readStream = async function* (stream4) {
4680
+ if (stream4[Symbol.asyncIterator]) {
4681
+ yield* stream4;
4682
+ return;
4683
+ }
4684
+ const reader = stream4.getReader();
4685
+ try {
4686
+ for (; ; ) {
4687
+ const { done, value } = await reader.read();
4688
+ if (done) {
4689
+ break;
4690
+ }
4691
+ yield value;
4692
+ }
4693
+ } finally {
4694
+ await reader.cancel();
4695
+ }
4696
+ };
4697
+ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
4698
+ const iterator2 = readBytes(stream4, chunkSize);
4699
+ let bytes = 0;
4700
+ let done;
4701
+ let _onFinish = (e) => {
4702
+ if (!done) {
4703
+ done = true;
4704
+ onFinish && onFinish(e);
4705
+ }
4706
+ };
4707
+ return new ReadableStream(
4708
+ {
4709
+ async pull(controller) {
4710
+ try {
4711
+ const { done: done2, value } = await iterator2.next();
4712
+ if (done2) {
4713
+ _onFinish();
4714
+ controller.close();
4715
+ return;
4716
+ }
4717
+ let len = value.byteLength;
4718
+ if (onProgress) {
4719
+ let loadedBytes = bytes += len;
4720
+ onProgress(loadedBytes);
4721
+ }
4722
+ controller.enqueue(new Uint8Array(value));
4723
+ } catch (err) {
4724
+ _onFinish(err);
4725
+ throw err;
4726
+ }
4727
+ },
4728
+ cancel(reason) {
4729
+ _onFinish(reason);
4730
+ return iterator2.return();
4731
+ }
4732
+ },
4733
+ {
4734
+ highWaterMark: 2
4735
+ }
4736
+ );
4737
+ };
4738
+
4739
+ // node_modules/axios/lib/adapters/fetch.js
4740
+ var DEFAULT_CHUNK_SIZE = 64 * 1024;
4741
+ var { isFunction: isFunction2 } = utils_default;
4742
+ var globalFetchAPI = (({ Request, Response }) => ({
4743
+ Request,
4744
+ Response
4745
+ }))(utils_default.global);
4746
+ var { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = utils_default.global;
4747
+ var test = (fn, ...args) => {
4748
+ try {
4749
+ return !!fn(...args);
4750
+ } catch (e) {
4751
+ return false;
4752
+ }
4753
+ };
4754
+ var factory = (env) => {
4755
+ env = utils_default.merge.call(
4756
+ {
4757
+ skipUndefined: true
4758
+ },
4759
+ globalFetchAPI,
4760
+ env
4761
+ );
4762
+ const { fetch: envFetch, Request, Response } = env;
4763
+ const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
4764
+ const isRequestSupported = isFunction2(Request);
4765
+ const isResponseSupported = isFunction2(Response);
4766
+ if (!isFetchSupported) {
4767
+ return false;
4768
+ }
4769
+ const isReadableStreamSupported = isFetchSupported && isFunction2(ReadableStream2);
4770
+ const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
4771
+ const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
4772
+ let duplexAccessed = false;
4773
+ const hasContentType = new Request(platform_default.origin, {
4774
+ body: new ReadableStream2(),
4775
+ method: "POST",
4776
+ get duplex() {
4777
+ duplexAccessed = true;
4778
+ return "half";
4779
+ }
4780
+ }).headers.has("Content-Type");
4781
+ return duplexAccessed && !hasContentType;
4782
+ });
4783
+ const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
4784
+ const resolvers = {
4785
+ stream: supportsResponseStream && ((res) => res.body)
4786
+ };
4787
+ isFetchSupported && (() => {
4788
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
4789
+ !resolvers[type] && (resolvers[type] = (res, config) => {
4790
+ let method = res && res[type];
4791
+ if (method) {
4792
+ return method.call(res);
4793
+ }
4794
+ throw new AxiosError_default(
4795
+ `Response type '${type}' is not supported`,
4796
+ AxiosError_default.ERR_NOT_SUPPORT,
4797
+ config
4798
+ );
4799
+ });
4800
+ });
4801
+ })();
4802
+ const getBodyLength = async (body) => {
4803
+ if (body == null) {
4804
+ return 0;
4805
+ }
4806
+ if (utils_default.isBlob(body)) {
4807
+ return body.size;
4808
+ }
4809
+ if (utils_default.isSpecCompliantForm(body)) {
4810
+ const _request = new Request(platform_default.origin, {
4811
+ method: "POST",
4812
+ body
4813
+ });
4814
+ return (await _request.arrayBuffer()).byteLength;
4815
+ }
4816
+ if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
4817
+ return body.byteLength;
4818
+ }
4819
+ if (utils_default.isURLSearchParams(body)) {
4820
+ body = body + "";
4821
+ }
4822
+ if (utils_default.isString(body)) {
4823
+ return (await encodeText(body)).byteLength;
4824
+ }
4825
+ };
4826
+ const resolveBodyLength = async (headers, body) => {
4827
+ const length = utils_default.toFiniteNumber(headers.getContentLength());
4828
+ return length == null ? getBodyLength(body) : length;
4829
+ };
4830
+ return async (config) => {
4831
+ let {
4832
+ url: url2,
4833
+ method,
4834
+ data,
4835
+ signal,
4836
+ cancelToken,
4837
+ timeout,
4838
+ onDownloadProgress,
4839
+ onUploadProgress,
4840
+ responseType,
4841
+ headers,
4842
+ withCredentials = "same-origin",
4843
+ fetchOptions
4844
+ } = resolveConfig_default(config);
4845
+ let _fetch = envFetch || fetch;
4846
+ responseType = responseType ? (responseType + "").toLowerCase() : "text";
4847
+ let composedSignal = composeSignals_default(
4848
+ [signal, cancelToken && cancelToken.toAbortSignal()],
4849
+ timeout
4850
+ );
4851
+ let request = null;
4852
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
4853
+ composedSignal.unsubscribe();
4854
+ });
4855
+ let requestContentLength;
4856
+ try {
4857
+ if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
4858
+ let _request = new Request(url2, {
4859
+ method: "POST",
4860
+ body: data,
4861
+ duplex: "half"
4862
+ });
4863
+ let contentTypeHeader;
4864
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
4865
+ headers.setContentType(contentTypeHeader);
4866
+ }
4867
+ if (_request.body) {
4868
+ const [onProgress, flush] = progressEventDecorator(
4869
+ requestContentLength,
4870
+ progressEventReducer(asyncDecorator(onUploadProgress))
4871
+ );
4872
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
4873
+ }
4874
+ }
4875
+ if (!utils_default.isString(withCredentials)) {
4876
+ withCredentials = withCredentials ? "include" : "omit";
4877
+ }
4878
+ const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
4879
+ const resolvedOptions = {
4880
+ ...fetchOptions,
4881
+ signal: composedSignal,
4882
+ method: method.toUpperCase(),
4883
+ headers: headers.normalize().toJSON(),
4884
+ body: data,
4885
+ duplex: "half",
4886
+ credentials: isCredentialsSupported ? withCredentials : void 0
4887
+ };
4888
+ request = isRequestSupported && new Request(url2, resolvedOptions);
4889
+ let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
4890
+ const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
4891
+ if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
4892
+ const options = {};
4893
+ ["status", "statusText", "headers"].forEach((prop) => {
4894
+ options[prop] = response[prop];
4895
+ });
4896
+ const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
4897
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
4898
+ responseContentLength,
4899
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
4900
+ ) || [];
4901
+ response = new Response(
4902
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
4903
+ flush && flush();
4904
+ unsubscribe && unsubscribe();
4905
+ }),
4906
+ options
4907
+ );
4908
+ }
4909
+ responseType = responseType || "text";
4910
+ let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
4911
+ response,
4912
+ config
4913
+ );
4914
+ !isStreamResponse && unsubscribe && unsubscribe();
4915
+ return await new Promise((resolve, reject) => {
4916
+ settle(resolve, reject, {
4917
+ data: responseData,
4918
+ headers: AxiosHeaders_default.from(response.headers),
4919
+ status: response.status,
4920
+ statusText: response.statusText,
4921
+ config,
4922
+ request
4923
+ });
4924
+ });
4925
+ } catch (err) {
4926
+ unsubscribe && unsubscribe();
4927
+ if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
4928
+ throw Object.assign(
4929
+ new AxiosError_default(
4930
+ "Network Error",
4931
+ AxiosError_default.ERR_NETWORK,
4932
+ config,
4933
+ request,
4934
+ err && err.response
4935
+ ),
4936
+ {
4937
+ cause: err.cause || err
4938
+ }
4939
+ );
4940
+ }
4941
+ throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
4942
+ }
4943
+ };
4944
+ };
4945
+ var seedCache = /* @__PURE__ */ new Map();
4946
+ var getFetch = (config) => {
4947
+ let env = config && config.env || {};
4948
+ const { fetch: fetch2, Request, Response } = env;
4949
+ const seeds = [Request, Response, fetch2];
4950
+ let len = seeds.length, i = len, seed, target, map = seedCache;
4951
+ while (i--) {
4952
+ seed = seeds[i];
4953
+ target = map.get(seed);
4954
+ target === void 0 && map.set(seed, target = i ? /* @__PURE__ */ new Map() : factory(env));
4955
+ map = target;
4956
+ }
4957
+ return target;
4958
+ };
4959
+ var adapter = getFetch();
4960
+
4961
+ // node_modules/axios/lib/adapters/adapters.js
3814
4962
  var knownAdapters = {
3815
4963
  http: http_default,
3816
- xhr: xhr_default
4964
+ xhr: xhr_default,
4965
+ fetch: {
4966
+ get: getFetch
4967
+ }
3817
4968
  };
3818
4969
  utils_default.forEach(knownAdapters, (fn, value) => {
3819
4970
  if (fn) {
@@ -3824,38 +4975,55 @@ utils_default.forEach(knownAdapters, (fn, value) => {
3824
4975
  Object.defineProperty(fn, "adapterName", { value });
3825
4976
  }
3826
4977
  });
4978
+ var renderReason = (reason) => `- ${reason}`;
4979
+ var isResolvedHandle = (adapter2) => utils_default.isFunction(adapter2) || adapter2 === null || adapter2 === false;
4980
+ function getAdapter(adapters, config) {
4981
+ adapters = utils_default.isArray(adapters) ? adapters : [adapters];
4982
+ const { length } = adapters;
4983
+ let nameOrAdapter;
4984
+ let adapter2;
4985
+ const rejectedReasons = {};
4986
+ for (let i = 0; i < length; i++) {
4987
+ nameOrAdapter = adapters[i];
4988
+ let id;
4989
+ adapter2 = nameOrAdapter;
4990
+ if (!isResolvedHandle(nameOrAdapter)) {
4991
+ adapter2 = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
4992
+ if (adapter2 === void 0) {
4993
+ throw new AxiosError_default(`Unknown adapter '${id}'`);
4994
+ }
4995
+ }
4996
+ if (adapter2 && (utils_default.isFunction(adapter2) || (adapter2 = adapter2.get(config)))) {
4997
+ break;
4998
+ }
4999
+ rejectedReasons[id || "#" + i] = adapter2;
5000
+ }
5001
+ if (!adapter2) {
5002
+ const reasons = Object.entries(rejectedReasons).map(
5003
+ ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
5004
+ );
5005
+ let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
5006
+ throw new AxiosError_default(
5007
+ `There is no suitable adapter to dispatch the request ` + s,
5008
+ "ERR_NOT_SUPPORT"
5009
+ );
5010
+ }
5011
+ return adapter2;
5012
+ }
3827
5013
  var adapters_default = {
3828
- getAdapter: (adapters) => {
3829
- adapters = utils_default.isArray(adapters) ? adapters : [adapters];
3830
- const { length } = adapters;
3831
- let nameOrAdapter;
3832
- let adapter;
3833
- for (let i = 0; i < length; i++) {
3834
- nameOrAdapter = adapters[i];
3835
- if (adapter = utils_default.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter) {
3836
- break;
3837
- }
3838
- }
3839
- if (!adapter) {
3840
- if (adapter === false) {
3841
- throw new AxiosError_default(
3842
- `Adapter ${nameOrAdapter} is not supported by the environment`,
3843
- "ERR_NOT_SUPPORT"
3844
- );
3845
- }
3846
- throw new Error(
3847
- utils_default.hasOwnProp(knownAdapters, nameOrAdapter) ? `Adapter '${nameOrAdapter}' is not available in the build` : `Unknown adapter '${nameOrAdapter}'`
3848
- );
3849
- }
3850
- if (!utils_default.isFunction(adapter)) {
3851
- throw new TypeError("adapter is not a function");
3852
- }
3853
- return adapter;
3854
- },
5014
+ /**
5015
+ * Resolve an adapter from a list of adapter names or functions.
5016
+ * @type {Function}
5017
+ */
5018
+ getAdapter,
5019
+ /**
5020
+ * Exposes all known adapters
5021
+ * @type {Object<string, Function|Object>}
5022
+ */
3855
5023
  adapters: knownAdapters
3856
5024
  };
3857
5025
 
3858
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/dispatchRequest.js
5026
+ // node_modules/axios/lib/core/dispatchRequest.js
3859
5027
  function throwIfCancellationRequested(config) {
3860
5028
  if (config.cancelToken) {
3861
5029
  config.cancelToken.throwIfRequested();
@@ -3867,119 +5035,36 @@ function throwIfCancellationRequested(config) {
3867
5035
  function dispatchRequest(config) {
3868
5036
  throwIfCancellationRequested(config);
3869
5037
  config.headers = AxiosHeaders_default.from(config.headers);
3870
- config.data = transformData.call(
3871
- config,
3872
- config.transformRequest
3873
- );
5038
+ config.data = transformData.call(config, config.transformRequest);
3874
5039
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
3875
5040
  config.headers.setContentType("application/x-www-form-urlencoded", false);
3876
5041
  }
3877
- const adapter = adapters_default.getAdapter(config.adapter || defaults_default.adapter);
3878
- return adapter(config).then(function onAdapterResolution(response) {
3879
- throwIfCancellationRequested(config);
3880
- response.data = transformData.call(
3881
- config,
3882
- config.transformResponse,
3883
- response
3884
- );
3885
- response.headers = AxiosHeaders_default.from(response.headers);
3886
- return response;
3887
- }, function onAdapterRejection(reason) {
3888
- if (!isCancel(reason)) {
5042
+ const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
5043
+ return adapter2(config).then(
5044
+ function onAdapterResolution(response) {
3889
5045
  throwIfCancellationRequested(config);
3890
- if (reason && reason.response) {
3891
- reason.response.data = transformData.call(
3892
- config,
3893
- config.transformResponse,
3894
- reason.response
3895
- );
3896
- reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
5046
+ response.data = transformData.call(config, config.transformResponse, response);
5047
+ response.headers = AxiosHeaders_default.from(response.headers);
5048
+ return response;
5049
+ },
5050
+ function onAdapterRejection(reason) {
5051
+ if (!isCancel(reason)) {
5052
+ throwIfCancellationRequested(config);
5053
+ if (reason && reason.response) {
5054
+ reason.response.data = transformData.call(
5055
+ config,
5056
+ config.transformResponse,
5057
+ reason.response
5058
+ );
5059
+ reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
5060
+ }
3897
5061
  }
5062
+ return Promise.reject(reason);
3898
5063
  }
3899
- return Promise.reject(reason);
3900
- });
3901
- }
3902
-
3903
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/mergeConfig.js
3904
- var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? thing.toJSON() : thing;
3905
- function mergeConfig(config1, config2) {
3906
- config2 = config2 || {};
3907
- const config = {};
3908
- function getMergedValue(target, source, caseless) {
3909
- if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
3910
- return utils_default.merge.call({ caseless }, target, source);
3911
- } else if (utils_default.isPlainObject(source)) {
3912
- return utils_default.merge({}, source);
3913
- } else if (utils_default.isArray(source)) {
3914
- return source.slice();
3915
- }
3916
- return source;
3917
- }
3918
- function mergeDeepProperties(a, b, caseless) {
3919
- if (!utils_default.isUndefined(b)) {
3920
- return getMergedValue(a, b, caseless);
3921
- } else if (!utils_default.isUndefined(a)) {
3922
- return getMergedValue(void 0, a, caseless);
3923
- }
3924
- }
3925
- function valueFromConfig2(a, b) {
3926
- if (!utils_default.isUndefined(b)) {
3927
- return getMergedValue(void 0, b);
3928
- }
3929
- }
3930
- function defaultToConfig2(a, b) {
3931
- if (!utils_default.isUndefined(b)) {
3932
- return getMergedValue(void 0, b);
3933
- } else if (!utils_default.isUndefined(a)) {
3934
- return getMergedValue(void 0, a);
3935
- }
3936
- }
3937
- function mergeDirectKeys(a, b, prop) {
3938
- if (prop in config2) {
3939
- return getMergedValue(a, b);
3940
- } else if (prop in config1) {
3941
- return getMergedValue(void 0, a);
3942
- }
3943
- }
3944
- const mergeMap = {
3945
- url: valueFromConfig2,
3946
- method: valueFromConfig2,
3947
- data: valueFromConfig2,
3948
- baseURL: defaultToConfig2,
3949
- transformRequest: defaultToConfig2,
3950
- transformResponse: defaultToConfig2,
3951
- paramsSerializer: defaultToConfig2,
3952
- timeout: defaultToConfig2,
3953
- timeoutMessage: defaultToConfig2,
3954
- withCredentials: defaultToConfig2,
3955
- adapter: defaultToConfig2,
3956
- responseType: defaultToConfig2,
3957
- xsrfCookieName: defaultToConfig2,
3958
- xsrfHeaderName: defaultToConfig2,
3959
- onUploadProgress: defaultToConfig2,
3960
- onDownloadProgress: defaultToConfig2,
3961
- decompress: defaultToConfig2,
3962
- maxContentLength: defaultToConfig2,
3963
- maxBodyLength: defaultToConfig2,
3964
- beforeRedirect: defaultToConfig2,
3965
- transport: defaultToConfig2,
3966
- httpAgent: defaultToConfig2,
3967
- httpsAgent: defaultToConfig2,
3968
- cancelToken: defaultToConfig2,
3969
- socketPath: defaultToConfig2,
3970
- responseEncoding: defaultToConfig2,
3971
- validateStatus: mergeDirectKeys,
3972
- headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
3973
- };
3974
- utils_default.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
3975
- const merge2 = mergeMap[prop] || mergeDeepProperties;
3976
- const configValue = merge2(config1[prop], config2[prop], prop);
3977
- utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
3978
- });
3979
- return config;
5064
+ );
3980
5065
  }
3981
5066
 
3982
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/validator.js
5067
+ // node_modules/axios/lib/helpers/validator.js
3983
5068
  var validators = {};
3984
5069
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
3985
5070
  validators[type] = function validator(thing) {
@@ -4010,6 +5095,12 @@ validators.transitional = function transitional(validator, version2, message) {
4010
5095
  return validator ? validator(value, opt, opts) : true;
4011
5096
  };
4012
5097
  };
5098
+ validators.spelling = function spelling(correctSpelling) {
5099
+ return (value, opt) => {
5100
+ console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
5101
+ return true;
5102
+ };
5103
+ };
4013
5104
  function assertOptions(options, schema, allowUnknown) {
4014
5105
  if (typeof options !== "object") {
4015
5106
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
@@ -4023,7 +5114,10 @@ function assertOptions(options, schema, allowUnknown) {
4023
5114
  const value = options[opt];
4024
5115
  const result = value === void 0 || validator(value, opt, options);
4025
5116
  if (result !== true) {
4026
- throw new AxiosError_default("option " + opt + " must be " + result, AxiosError_default.ERR_BAD_OPTION_VALUE);
5117
+ throw new AxiosError_default(
5118
+ "option " + opt + " must be " + result,
5119
+ AxiosError_default.ERR_BAD_OPTION_VALUE
5120
+ );
4027
5121
  }
4028
5122
  continue;
4029
5123
  }
@@ -4037,11 +5131,11 @@ var validator_default = {
4037
5131
  validators
4038
5132
  };
4039
5133
 
4040
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/Axios.js
5134
+ // node_modules/axios/lib/core/Axios.js
4041
5135
  var validators2 = validator_default.validators;
4042
5136
  var Axios = class {
4043
5137
  constructor(instanceConfig) {
4044
- this.defaults = instanceConfig;
5138
+ this.defaults = instanceConfig || {};
4045
5139
  this.interceptors = {
4046
5140
  request: new InterceptorManager_default(),
4047
5141
  response: new InterceptorManager_default()
@@ -4055,7 +5149,27 @@ var Axios = class {
4055
5149
  *
4056
5150
  * @returns {Promise} The Promise to be fulfilled
4057
5151
  */
4058
- request(configOrUrl, config) {
5152
+ async request(configOrUrl, config) {
5153
+ try {
5154
+ return await this._request(configOrUrl, config);
5155
+ } catch (err) {
5156
+ if (err instanceof Error) {
5157
+ let dummy = {};
5158
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
5159
+ const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
5160
+ try {
5161
+ if (!err.stack) {
5162
+ err.stack = stack;
5163
+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
5164
+ err.stack += "\n" + stack;
5165
+ }
5166
+ } catch (e) {
5167
+ }
5168
+ }
5169
+ throw err;
5170
+ }
5171
+ }
5172
+ _request(configOrUrl, config) {
4059
5173
  if (typeof configOrUrl === "string") {
4060
5174
  config = config || {};
4061
5175
  config.url = configOrUrl;
@@ -4065,30 +5179,52 @@ var Axios = class {
4065
5179
  config = mergeConfig(this.defaults, config);
4066
5180
  const { transitional: transitional2, paramsSerializer, headers } = config;
4067
5181
  if (transitional2 !== void 0) {
4068
- validator_default.assertOptions(transitional2, {
4069
- silentJSONParsing: validators2.transitional(validators2.boolean),
4070
- forcedJSONParsing: validators2.transitional(validators2.boolean),
4071
- clarifyTimeoutError: validators2.transitional(validators2.boolean)
4072
- }, false);
4073
- }
4074
- if (paramsSerializer !== void 0) {
4075
- validator_default.assertOptions(paramsSerializer, {
4076
- encode: validators2.function,
4077
- serialize: validators2.function
4078
- }, true);
5182
+ validator_default.assertOptions(
5183
+ transitional2,
5184
+ {
5185
+ silentJSONParsing: validators2.transitional(validators2.boolean),
5186
+ forcedJSONParsing: validators2.transitional(validators2.boolean),
5187
+ clarifyTimeoutError: validators2.transitional(validators2.boolean),
5188
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
5189
+ },
5190
+ false
5191
+ );
4079
5192
  }
4080
- config.method = (config.method || this.defaults.method || "get").toLowerCase();
4081
- let contextHeaders;
4082
- contextHeaders = headers && utils_default.merge(
4083
- headers.common,
4084
- headers[config.method]
4085
- );
4086
- contextHeaders && utils_default.forEach(
4087
- ["delete", "get", "head", "post", "put", "patch", "common"],
4088
- (method) => {
4089
- delete headers[method];
5193
+ if (paramsSerializer != null) {
5194
+ if (utils_default.isFunction(paramsSerializer)) {
5195
+ config.paramsSerializer = {
5196
+ serialize: paramsSerializer
5197
+ };
5198
+ } else {
5199
+ validator_default.assertOptions(
5200
+ paramsSerializer,
5201
+ {
5202
+ encode: validators2.function,
5203
+ serialize: validators2.function
5204
+ },
5205
+ true
5206
+ );
4090
5207
  }
5208
+ }
5209
+ if (config.allowAbsoluteUrls !== void 0) {
5210
+ } else if (this.defaults.allowAbsoluteUrls !== void 0) {
5211
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
5212
+ } else {
5213
+ config.allowAbsoluteUrls = true;
5214
+ }
5215
+ validator_default.assertOptions(
5216
+ config,
5217
+ {
5218
+ baseUrl: validators2.spelling("baseURL"),
5219
+ withXsrfToken: validators2.spelling("withXSRFToken")
5220
+ },
5221
+ true
4091
5222
  );
5223
+ config.method = (config.method || this.defaults.method || "get").toLowerCase();
5224
+ let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
5225
+ headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
5226
+ delete headers[method];
5227
+ });
4092
5228
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
4093
5229
  const requestInterceptorChain = [];
4094
5230
  let synchronousRequestInterceptors = true;
@@ -4097,7 +5233,13 @@ var Axios = class {
4097
5233
  return;
4098
5234
  }
4099
5235
  synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
4100
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
5236
+ const transitional3 = config.transitional || transitional_default;
5237
+ const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
5238
+ if (legacyInterceptorReqResOrdering) {
5239
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
5240
+ } else {
5241
+ requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
5242
+ }
4101
5243
  });
4102
5244
  const responseInterceptorChain = [];
4103
5245
  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
@@ -4108,8 +5250,8 @@ var Axios = class {
4108
5250
  let len;
4109
5251
  if (!synchronousRequestInterceptors) {
4110
5252
  const chain = [dispatchRequest.bind(this), void 0];
4111
- chain.unshift.apply(chain, requestInterceptorChain);
4112
- chain.push.apply(chain, responseInterceptorChain);
5253
+ chain.unshift(...requestInterceptorChain);
5254
+ chain.push(...responseInterceptorChain);
4113
5255
  len = chain.length;
4114
5256
  promise = Promise.resolve(config);
4115
5257
  while (i < len) {
@@ -4119,7 +5261,6 @@ var Axios = class {
4119
5261
  }
4120
5262
  len = requestInterceptorChain.length;
4121
5263
  let newConfig = config;
4122
- i = 0;
4123
5264
  while (i < len) {
4124
5265
  const onFulfilled = requestInterceptorChain[i++];
4125
5266
  const onRejected = requestInterceptorChain[i++];
@@ -4144,30 +5285,34 @@ var Axios = class {
4144
5285
  }
4145
5286
  getUri(config) {
4146
5287
  config = mergeConfig(this.defaults, config);
4147
- const fullPath = buildFullPath(config.baseURL, config.url);
5288
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
4148
5289
  return buildURL(fullPath, config.params, config.paramsSerializer);
4149
5290
  }
4150
5291
  };
4151
- utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData2(method) {
5292
+ utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
4152
5293
  Axios.prototype[method] = function(url2, config) {
4153
- return this.request(mergeConfig(config || {}, {
4154
- method,
4155
- url: url2,
4156
- data: (config || {}).data
4157
- }));
5294
+ return this.request(
5295
+ mergeConfig(config || {}, {
5296
+ method,
5297
+ url: url2,
5298
+ data: (config || {}).data
5299
+ })
5300
+ );
4158
5301
  };
4159
5302
  });
4160
- utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
5303
+ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
4161
5304
  function generateHTTPMethod(isForm) {
4162
5305
  return function httpMethod(url2, data, config) {
4163
- return this.request(mergeConfig(config || {}, {
4164
- method,
4165
- headers: isForm ? {
4166
- "Content-Type": "multipart/form-data"
4167
- } : {},
4168
- url: url2,
4169
- data
4170
- }));
5306
+ return this.request(
5307
+ mergeConfig(config || {}, {
5308
+ method,
5309
+ headers: isForm ? {
5310
+ "Content-Type": "multipart/form-data"
5311
+ } : {},
5312
+ url: url2,
5313
+ data
5314
+ })
5315
+ );
4171
5316
  };
4172
5317
  }
4173
5318
  Axios.prototype[method] = generateHTTPMethod();
@@ -4175,7 +5320,7 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData2(
4175
5320
  });
4176
5321
  var Axios_default = Axios;
4177
5322
 
4178
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/cancel/CancelToken.js
5323
+ // node_modules/axios/lib/cancel/CancelToken.js
4179
5324
  var CancelToken = class _CancelToken {
4180
5325
  constructor(executor) {
4181
5326
  if (typeof executor !== "function") {
@@ -4247,6 +5392,15 @@ var CancelToken = class _CancelToken {
4247
5392
  this._listeners.splice(index, 1);
4248
5393
  }
4249
5394
  }
5395
+ toAbortSignal() {
5396
+ const controller = new AbortController();
5397
+ const abort = (err) => {
5398
+ controller.abort(err);
5399
+ };
5400
+ this.subscribe(abort);
5401
+ controller.signal.unsubscribe = () => this.unsubscribe(abort);
5402
+ return controller.signal;
5403
+ }
4250
5404
  /**
4251
5405
  * Returns an object that contains a new `CancelToken` and a function that, when called,
4252
5406
  * cancels the `CancelToken`.
@@ -4264,19 +5418,19 @@ var CancelToken = class _CancelToken {
4264
5418
  };
4265
5419
  var CancelToken_default = CancelToken;
4266
5420
 
4267
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/spread.js
5421
+ // node_modules/axios/lib/helpers/spread.js
4268
5422
  function spread(callback) {
4269
5423
  return function wrap(arr) {
4270
5424
  return callback.apply(null, arr);
4271
5425
  };
4272
5426
  }
4273
5427
 
4274
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/isAxiosError.js
5428
+ // node_modules/axios/lib/helpers/isAxiosError.js
4275
5429
  function isAxiosError(payload) {
4276
5430
  return utils_default.isObject(payload) && payload.isAxiosError === true;
4277
5431
  }
4278
5432
 
4279
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/HttpStatusCode.js
5433
+ // node_modules/axios/lib/helpers/HttpStatusCode.js
4280
5434
  var HttpStatusCode = {
4281
5435
  Continue: 100,
4282
5436
  SwitchingProtocols: 101,
@@ -4340,14 +5494,20 @@ var HttpStatusCode = {
4340
5494
  InsufficientStorage: 507,
4341
5495
  LoopDetected: 508,
4342
5496
  NotExtended: 510,
4343
- NetworkAuthenticationRequired: 511
5497
+ NetworkAuthenticationRequired: 511,
5498
+ WebServerIsDown: 521,
5499
+ ConnectionTimedOut: 522,
5500
+ OriginIsUnreachable: 523,
5501
+ TimeoutOccurred: 524,
5502
+ SslHandshakeFailed: 525,
5503
+ InvalidSslCertificate: 526
4344
5504
  };
4345
5505
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
4346
5506
  HttpStatusCode[value] = key;
4347
5507
  });
4348
5508
  var HttpStatusCode_default = HttpStatusCode;
4349
5509
 
4350
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/axios.js
5510
+ // node_modules/axios/lib/axios.js
4351
5511
  function createInstance(defaultConfig) {
4352
5512
  const context = new Axios_default(defaultConfig);
4353
5513
  const instance = bind(Axios_default.prototype.request, context);
@@ -4375,11 +5535,12 @@ axios.isAxiosError = isAxiosError;
4375
5535
  axios.mergeConfig = mergeConfig;
4376
5536
  axios.AxiosHeaders = AxiosHeaders_default;
4377
5537
  axios.formToJSON = (thing) => formDataToJSON_default(utils_default.isHTMLForm(thing) ? new FormData(thing) : thing);
5538
+ axios.getAdapter = adapters_default.getAdapter;
4378
5539
  axios.HttpStatusCode = HttpStatusCode_default;
4379
5540
  axios.default = axios;
4380
5541
  var axios_default = axios;
4381
5542
 
4382
- // node_modules/.pnpm/axios@1.3.2/node_modules/axios/index.js
5543
+ // node_modules/axios/index.js
4383
5544
  var {
4384
5545
  Axios: Axios2,
4385
5546
  AxiosError: AxiosError2,
@@ -4395,6 +5556,7 @@ var {
4395
5556
  AxiosHeaders: AxiosHeaders2,
4396
5557
  HttpStatusCode: HttpStatusCode2,
4397
5558
  formToJSON,
5559
+ getAdapter: getAdapter2,
4398
5560
  mergeConfig: mergeConfig2
4399
5561
  } = axios_default;
4400
5562
 
@@ -4403,7 +5565,7 @@ var import_fs_extra5 = __toESM(require("fs-extra"));
4403
5565
  var import_path6 = __toESM(require("path"));
4404
5566
  var import_form_data2 = __toESM(require("form-data"));
4405
5567
  var import_ora = __toESM(require("ora"));
4406
- var crypto2 = __toESM(require("crypto"));
5568
+ var crypto3 = __toESM(require("crypto"));
4407
5569
 
4408
5570
  // bin/utils/uploadLimits.ts
4409
5571
  var import_fs = __toESM(require("fs"));
@@ -4585,8 +5747,8 @@ function getUid() {
4585
5747
  }
4586
5748
 
4587
5749
  // bin/utils/webLogin.ts
4588
- var import_crypto = __toESM(require("crypto"));
4589
- var import_http3 = __toESM(require("http"));
5750
+ var import_crypto2 = __toESM(require("crypto"));
5751
+ var import_http4 = __toESM(require("http"));
4590
5752
  var import_url2 = require("url");
4591
5753
  var import_chalk3 = __toESM(require("chalk"));
4592
5754
  var import_child_process = require("child_process");
@@ -4612,7 +5774,7 @@ function openBrowser(url2) {
4612
5774
  var CONFIG_DIR2 = import_path5.default.join(import_os4.default.homedir(), ".pinme");
4613
5775
  var AUTH_FILE2 = import_path5.default.join(CONFIG_DIR2, "auth.json");
4614
5776
  var DEFAULT_OPTIONS = {
4615
- apiBaseUrl: "https://pinme.dev/api/v4",
5777
+ apiBaseUrl: "https://pinme.benny1996.win/api/v4",
4616
5778
  webBaseUrl: process.env.PINME_WEB_URL || "http://localhost:5173",
4617
5779
  callbackPort: 34567,
4618
5780
  callbackPath: "/cli/callback"
@@ -4658,11 +5820,11 @@ Login failed: ${error.message}`));
4658
5820
  }
4659
5821
  }
4660
5822
  generateLoginToken() {
4661
- return import_crypto.default.randomBytes(32).toString("hex");
5823
+ return import_crypto2.default.randomBytes(32).toString("hex");
4662
5824
  }
4663
5825
  async startCallbackServer() {
4664
5826
  return new Promise((resolve, reject) => {
4665
- this.server = import_http3.default.createServer(async (req, res) => {
5827
+ this.server = import_http4.default.createServer(async (req, res) => {
4666
5828
  try {
4667
5829
  const url2 = new import_url2.URL(req.url || "", `http://localhost:${this.config.callbackPort}`);
4668
5830
  if (url2.pathname === this.config.callbackPath) {
@@ -5081,7 +6243,7 @@ function getAuthHeaders() {
5081
6243
  }
5082
6244
 
5083
6245
  // bin/utils/uploadToIpfsSplit.ts
5084
- var IPFS_API_URL = "https://pinme.dev/api/v3";
6246
+ var IPFS_API_URL = "https://pinme.benny1996.win/api/v3";
5085
6247
  var MAX_RETRIES = parseInt(process.env.MAX_RETRIES || "2");
5086
6248
  var RETRY_DELAY = parseInt(process.env.RETRY_DELAY_MS || "1000");
5087
6249
  var TIMEOUT = parseInt(process.env.TIMEOUT_MS || "600000");
@@ -5191,7 +6353,7 @@ var StepProgressBar = class {
5191
6353
  };
5192
6354
  async function calculateMD5(filePath) {
5193
6355
  return new Promise((resolve, reject) => {
5194
- const hash = crypto2.createHash("md5");
6356
+ const hash = crypto3.createHash("md5");
5195
6357
  const stream4 = import_fs_extra5.default.createReadStream(filePath);
5196
6358
  stream4.on("data", hash.update.bind(hash));
5197
6359
  stream4.on("end", () => resolve(hash.digest("hex")));
@@ -5623,7 +6785,7 @@ var import_crypto_js = __toESM(require("crypto-js"));
5623
6785
 
5624
6786
  // bin/utils/pinmeApi.ts
5625
6787
  var import_chalk4 = __toESM(require("chalk"));
5626
- var DEFAULT_BASE = "https://pinme.dev/api/v4";
6788
+ var DEFAULT_BASE = "https://pinme.benny1996.win/api/v4";
5627
6789
  var TOKEN_EXPIRED_CODES = [
5628
6790
  401,
5629
6791
  403,
@@ -5804,7 +6966,7 @@ async function isVip(tokenAddress, authToken) {
5804
6966
  throw e;
5805
6967
  }
5806
6968
  }
5807
- var CAR_API_BASE = process.env.CAR_API_BASE || "https://pinme.dev/api/v3";
6969
+ var CAR_API_BASE = process.env.CAR_API_BASE || "https://pinme.benny1996.win/api/v3";
5808
6970
  function createCarClient() {
5809
6971
  let headers = {};
5810
6972
  try {
@@ -6597,7 +7759,7 @@ var import_figlet4 = __toESM(require("figlet"));
6597
7759
 
6598
7760
  // bin/utils/removeFromIpfs.ts
6599
7761
  var import_chalk8 = __toESM(require("chalk"));
6600
- var ipfsApiUrl = "https://pinme.dev/api/v3";
7762
+ var ipfsApiUrl = "https://pinme.benny1996.win/api/v3";
6601
7763
  async function removeFromIpfs(value, type = "hash") {
6602
7764
  try {
6603
7765
  const uid = getUid();
@@ -7336,7 +8498,7 @@ Error: ${cliError.message}`));
7336
8498
 
7337
8499
  // bin/create.ts
7338
8500
  var PROJECT_DIR = process.cwd();
7339
- var API_BASE = "https://pinme.dev/api/v4";
8501
+ var API_BASE = "https://pinme.benny1996.win/api/v4";
7340
8502
  var TEMPLATE_REPO = "glitternetwork/pinme-worker-template";
7341
8503
  var TEMPLATE_ZIP_URL = `https://github.com/${TEMPLATE_REPO}/archive/refs/heads/main.zip`;
7342
8504
  async function createCmd(options) {
@@ -7743,7 +8905,7 @@ var import_fs_extra8 = __toESM(require("fs-extra"));
7743
8905
  var import_path13 = __toESM(require("path"));
7744
8906
  var import_child_process4 = require("child_process");
7745
8907
  var PROJECT_DIR2 = process.cwd();
7746
- var API_BASE2 = "https://pinme.dev/api/v4";
8908
+ var API_BASE2 = "https://pinme.benny1996.win/api/v4";
7747
8909
  function loadConfig() {
7748
8910
  const configPath = import_path13.default.join(PROJECT_DIR2, "pinme.toml");
7749
8911
  if (!import_fs_extra8.default.existsSync(configPath)) {
@@ -8027,7 +9189,7 @@ var import_chalk20 = __toESM(require("chalk"));
8027
9189
  var import_fs_extra9 = __toESM(require("fs-extra"));
8028
9190
  var import_path14 = __toESM(require("path"));
8029
9191
  var PROJECT_DIR3 = process.cwd();
8030
- var API_BASE3 = "https://pinme.dev/api/v4";
9192
+ var API_BASE3 = "https://pinme.benny1996.win/api/v4";
8031
9193
  function loadConfig2() {
8032
9194
  const configPath = import_path14.default.join(PROJECT_DIR3, "pinme.toml");
8033
9195
  if (!import_fs_extra9.default.existsSync(configPath)) {
@@ -8158,7 +9320,7 @@ var import_fs_extra10 = __toESM(require("fs-extra"));
8158
9320
  var import_path15 = __toESM(require("path"));
8159
9321
  var import_child_process5 = require("child_process");
8160
9322
  var PROJECT_DIR4 = process.cwd();
8161
- var API_BASE4 = "https://pinme.dev/api/v4";
9323
+ var API_BASE4 = "https://pinme.benny1996.win/api/v4";
8162
9324
  function loadConfig3() {
8163
9325
  const configPath = import_path15.default.join(PROJECT_DIR4, "pinme.toml");
8164
9326
  if (!import_fs_extra10.default.existsSync(configPath)) {
@@ -8424,7 +9586,7 @@ var import_chalk23 = __toESM(require("chalk"));
8424
9586
  var import_inquirer9 = __toESM(require("inquirer"));
8425
9587
  var import_fs_extra12 = __toESM(require("fs-extra"));
8426
9588
  var import_path17 = __toESM(require("path"));
8427
- var API_BASE5 = "https://pinme.dev/api/v4";
9589
+ var API_BASE5 = "https://pinme.benny1996.win/api/v4";
8428
9590
  function getProjectName() {
8429
9591
  const configPath = import_path17.default.join(process.cwd(), "pinme.toml");
8430
9592
  if (!import_fs_extra12.default.existsSync(configPath)) {