@wzyjs/utils 0.3.28 → 0.3.29

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/web.esm.js CHANGED
@@ -50,7 +50,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
50
50
  throw Error('Dynamic require of "' + x + '" is not supported');
51
51
  });
52
52
 
53
- // ../../node_modules/crypt/crypt.js
53
+ // ../../node_modules/.bun/crypt@0.0.2/node_modules/crypt/crypt.js
54
54
  var require_crypt = __commonJS((exports, module) => {
55
55
  (function() {
56
56
  var base64map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", crypt = {
@@ -120,7 +120,7 @@ var require_crypt = __commonJS((exports, module) => {
120
120
  })();
121
121
  });
122
122
 
123
- // ../../node_modules/charenc/charenc.js
123
+ // ../../node_modules/.bun/charenc@0.0.2/node_modules/charenc/charenc.js
124
124
  var require_charenc = __commonJS((exports, module) => {
125
125
  var charenc = {
126
126
  utf8: {
@@ -147,7 +147,7 @@ var require_charenc = __commonJS((exports, module) => {
147
147
  module.exports = charenc;
148
148
  });
149
149
 
150
- // ../../node_modules/is-buffer/index.js
150
+ // ../../node_modules/.bun/is-buffer@1.1.6/node_modules/is-buffer/index.js
151
151
  var require_is_buffer = __commonJS((exports, module) => {
152
152
  /*!
153
153
  * Determine if an object is a Buffer
@@ -166,7 +166,7 @@ var require_is_buffer = __commonJS((exports, module) => {
166
166
  }
167
167
  });
168
168
 
169
- // ../../node_modules/md5/md5.js
169
+ // ../../node_modules/.bun/md5@2.3.0/node_modules/md5/md5.js
170
170
  var require_md5 = __commonJS((exports, module) => {
171
171
  (function() {
172
172
  var crypt = require_crypt(), utf8 = require_charenc().utf8, isBuffer = require_is_buffer(), bin = require_charenc().bin, md5 = function(message, options) {
@@ -286,7 +286,7 @@ var require_md5 = __commonJS((exports, module) => {
286
286
  })();
287
287
  });
288
288
 
289
- // ../../node_modules/json5/dist/index.js
289
+ // ../../node_modules/.bun/json5@2.2.3/node_modules/json5/dist/index.js
290
290
  var require_dist = __commonJS((exports, module) => {
291
291
  (function(global2, factory2) {
292
292
  typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory2() : typeof define === "function" && define.amd ? define(factory2) : global2.JSON5 = factory2();
@@ -482,14 +482,14 @@ var require_dist = __commonJS((exports, module) => {
482
482
  var target = IS_GLOBAL ? _global2 : IS_STATIC ? _global2[name] || (_global2[name] = {}) : (_global2[name] || {})[PROTOTYPE];
483
483
  var exports2 = IS_GLOBAL ? _core : _core[name] || (_core[name] = {});
484
484
  var expProto = exports2[PROTOTYPE] || (exports2[PROTOTYPE] = {});
485
- var key2, own, out, exp;
485
+ var key2, own2, out, exp;
486
486
  if (IS_GLOBAL) {
487
487
  source2 = name;
488
488
  }
489
489
  for (key2 in source2) {
490
- own = !IS_FORCED && target && target[key2] !== undefined;
491
- out = (own ? target : source2)[key2];
492
- exp = IS_BIND && own ? _ctx(out, _global2) : IS_PROTO && typeof out == "function" ? _ctx(Function.call, out) : out;
490
+ own2 = !IS_FORCED && target && target[key2] !== undefined;
491
+ out = (own2 ? target : source2)[key2];
492
+ exp = IS_BIND && own2 ? _ctx(out, _global2) : IS_PROTO && typeof out == "function" ? _ctx(Function.call, out) : out;
493
493
  if (target) {
494
494
  _redefine(target, key2, out, type & $export.U);
495
495
  }
@@ -1672,7 +1672,7 @@ var require_dist = __commonJS((exports, module) => {
1672
1672
  });
1673
1673
  });
1674
1674
 
1675
- // ../../node_modules/consola/dist/consola.browser.js
1675
+ // ../../node_modules/.bun/consola@2.15.3/node_modules/consola/dist/consola.browser.js
1676
1676
  var require_consola_browser = __commonJS((exports, module) => {
1677
1677
  (function(t, e) {
1678
1678
  typeof exports == "object" && typeof module != "undefined" ? module.exports = e() : typeof define == "function" && define.amd ? define(e) : (t = t || self).consola = e();
@@ -1925,7 +1925,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1925
1925
  });
1926
1926
  });
1927
1927
 
1928
- // ../../node_modules/classnames/index.js
1928
+ // ../../node_modules/.bun/classnames@2.5.1/node_modules/classnames/index.js
1929
1929
  var require_classnames = __commonJS((exports, module) => {
1930
1930
  /*!
1931
1931
  Copyright (c) 2018 Jed Watson.
@@ -1987,7 +1987,7 @@ var require_classnames = __commonJS((exports, module) => {
1987
1987
  })();
1988
1988
  });
1989
1989
 
1990
- // ../../node_modules/localforage/dist/localforage.js
1990
+ // ../../node_modules/.bun/localforage@1.10.0/node_modules/localforage/dist/localforage.js
1991
1991
  var require_localforage = __commonJS((exports, module) => {
1992
1992
  /*!
1993
1993
  localForage -- Offline Storage, Improved
@@ -4120,7 +4120,7 @@ var require_localforage = __commonJS((exports, module) => {
4120
4120
  });
4121
4121
  });
4122
4122
 
4123
- // ../../node_modules/toggle-selection/index.js
4123
+ // ../../node_modules/.bun/toggle-selection@1.0.6/node_modules/toggle-selection/index.js
4124
4124
  var require_toggle_selection = __commonJS((exports, module) => {
4125
4125
  module.exports = function() {
4126
4126
  var selection = document.getSelection();
@@ -4154,7 +4154,7 @@ var require_toggle_selection = __commonJS((exports, module) => {
4154
4154
  };
4155
4155
  });
4156
4156
 
4157
- // ../../node_modules/copy-to-clipboard/index.js
4157
+ // ../../node_modules/.bun/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.js
4158
4158
  var require_copy_to_clipboard = __commonJS((exports, module) => {
4159
4159
  var deselectCurrent = require_toggle_selection();
4160
4160
  var clipboardToIE11Formatting = {
@@ -4248,13 +4248,13 @@ var require_copy_to_clipboard = __commonJS((exports, module) => {
4248
4248
  module.exports = copy;
4249
4249
  });
4250
4250
 
4251
- // ../../node_modules/lodash/lodash.js
4251
+ // ../../node_modules/.bun/lodash@4.18.1/node_modules/lodash/lodash.js
4252
4252
  var require_lodash = __commonJS((exports, module) => {
4253
4253
  (function() {
4254
4254
  var undefined2;
4255
- var VERSION2 = "4.17.21";
4255
+ var VERSION2 = "4.18.1";
4256
4256
  var LARGE_ARRAY_SIZE = 200;
4257
- var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
4257
+ var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`", INVALID_TEMPL_IMPORTS_ERROR_TEXT = "Invalid `imports` option passed into `_.template`";
4258
4258
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
4259
4259
  var MAX_MEMOIZE_SIZE = 500;
4260
4260
  var PLACEHOLDER = "__lodash_placeholder__";
@@ -6129,8 +6129,21 @@ var require_lodash = __commonJS((exports, module) => {
6129
6129
  }
6130
6130
  function baseUnset(object, path) {
6131
6131
  path = castPath(path, object);
6132
- object = parent(object, path);
6133
- return object == null || delete object[toKey(last(path))];
6132
+ var index = -1, length = path.length;
6133
+ if (!length) {
6134
+ return true;
6135
+ }
6136
+ while (++index < length) {
6137
+ var key = toKey(path[index]);
6138
+ if (key === "__proto__" && !hasOwnProperty2.call(object, "__proto__")) {
6139
+ return false;
6140
+ }
6141
+ if ((key === "constructor" || key === "prototype") && index < length - 1) {
6142
+ return false;
6143
+ }
6144
+ }
6145
+ var obj = parent(object, path);
6146
+ return obj == null || delete obj[toKey(last(path))];
6134
6147
  }
6135
6148
  function baseUpdate(object, path, updater, customizer) {
6136
6149
  return baseSet(object, path, updater(baseGet(object, path)), customizer);
@@ -7433,7 +7446,7 @@ var require_lodash = __commonJS((exports, module) => {
7433
7446
  var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
7434
7447
  while (++index < length) {
7435
7448
  var pair = pairs[index];
7436
- result2[pair[0]] = pair[1];
7449
+ baseAssignValue(result2, pair[0], pair[1]);
7437
7450
  }
7438
7451
  return result2;
7439
7452
  }
@@ -8434,8 +8447,8 @@ var require_lodash = __commonJS((exports, module) => {
8434
8447
  copyObject(source, keys(source), object, customizer);
8435
8448
  });
8436
8449
  var at = flatRest(baseAt);
8437
- function create(prototype3, properties) {
8438
- var result2 = baseCreate(prototype3);
8450
+ function create(prototype2, properties) {
8451
+ var result2 = baseCreate(prototype2);
8439
8452
  return properties == null ? result2 : baseAssign(result2, properties);
8440
8453
  }
8441
8454
  var defaults2 = baseRest(function(object, sources) {
@@ -8817,8 +8830,13 @@ var require_lodash = __commonJS((exports, module) => {
8817
8830
  options = undefined2;
8818
8831
  }
8819
8832
  string = toString3(string);
8820
- options = assignInWith({}, options, settings, customDefaultsAssignIn);
8821
- var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
8833
+ options = assignWith({}, options, settings, customDefaultsAssignIn);
8834
+ var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
8835
+ arrayEach(importsKeys, function(key) {
8836
+ if (reForbiddenIdentifierChars.test(key)) {
8837
+ throw new Error2(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
8838
+ }
8839
+ });
8822
8840
  var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
8823
8841
  var reDelimiters = RegExp2((options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$", "g");
8824
8842
  var sourceURL = "//# sourceURL=" + (hasOwnProperty2.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + `
@@ -9664,7 +9682,7 @@ __p += '`;
9664
9682
  }).call(exports);
9665
9683
  });
9666
9684
 
9667
- // ../../node_modules/dayjs/dayjs.min.js
9685
+ // ../../node_modules/.bun/dayjs@1.11.20/node_modules/dayjs/dayjs.min.js
9668
9686
  var require_dayjs_min = __commonJS((exports, module) => {
9669
9687
  (function(t, e) {
9670
9688
  typeof exports == "object" && typeof module != "undefined" ? module.exports = e() : typeof define == "function" && define.amd ? define(e) : (t = typeof globalThis != "undefined" ? globalThis : t || self).dayjs = e();
@@ -9955,7 +9973,7 @@ var require_dayjs_min = __commonJS((exports, module) => {
9955
9973
  });
9956
9974
  });
9957
9975
 
9958
- // ../../node_modules/dayjs/plugin/isBetween.js
9976
+ // ../../node_modules/.bun/dayjs@1.11.20/node_modules/dayjs/plugin/isBetween.js
9959
9977
  var require_isBetween = __commonJS((exports, module) => {
9960
9978
  (function(e, i) {
9961
9979
  typeof exports == "object" && typeof module != "undefined" ? module.exports = i() : typeof define == "function" && define.amd ? define(i) : (e = typeof globalThis != "undefined" ? globalThis : e || self).dayjs_plugin_isBetween = i();
@@ -9969,7 +9987,7 @@ var require_isBetween = __commonJS((exports, module) => {
9969
9987
  });
9970
9988
  });
9971
9989
 
9972
- // ../../node_modules/dayjs/plugin/weekday.js
9990
+ // ../../node_modules/.bun/dayjs@1.11.20/node_modules/dayjs/plugin/weekday.js
9973
9991
  var require_weekday = __commonJS((exports, module) => {
9974
9992
  (function(e, t) {
9975
9993
  typeof exports == "object" && typeof module != "undefined" ? module.exports = t() : typeof define == "function" && define.amd ? define(t) : (e = typeof globalThis != "undefined" ? globalThis : e || self).dayjs_plugin_weekday = t();
@@ -9983,7 +10001,7 @@ var require_weekday = __commonJS((exports, module) => {
9983
10001
  });
9984
10002
  });
9985
10003
 
9986
- // ../../node_modules/dayjs/plugin/localeData.js
10004
+ // ../../node_modules/.bun/dayjs@1.11.20/node_modules/dayjs/plugin/localeData.js
9987
10005
  var require_localeData = __commonJS((exports, module) => {
9988
10006
  (function(n, e) {
9989
10007
  typeof exports == "object" && typeof module != "undefined" ? module.exports = e() : typeof define == "function" && define.amd ? define(e) : (n = typeof globalThis != "undefined" ? globalThis : n || self).dayjs_plugin_localeData = e();
@@ -10061,7 +10079,7 @@ var require_localeData = __commonJS((exports, module) => {
10061
10079
  });
10062
10080
  });
10063
10081
 
10064
- // ../../node_modules/dayjs/plugin/isoWeek.js
10082
+ // ../../node_modules/.bun/dayjs@1.11.20/node_modules/dayjs/plugin/isoWeek.js
10065
10083
  var require_isoWeek = __commonJS((exports, module) => {
10066
10084
  (function(e, t) {
10067
10085
  typeof exports == "object" && typeof module != "undefined" ? module.exports = t() : typeof define == "function" && define.amd ? define(t) : (e = typeof globalThis != "undefined" ? globalThis : e || self).dayjs_plugin_isoWeek = t();
@@ -10090,7 +10108,7 @@ var require_isoWeek = __commonJS((exports, module) => {
10090
10108
  });
10091
10109
  });
10092
10110
 
10093
- // ../../node_modules/dayjs/plugin/updateLocale.js
10111
+ // ../../node_modules/.bun/dayjs@1.11.20/node_modules/dayjs/plugin/updateLocale.js
10094
10112
  var require_updateLocale = __commonJS((exports, module) => {
10095
10113
  (function(e, t) {
10096
10114
  typeof exports == "object" && typeof module != "undefined" ? module.exports = t() : typeof define == "function" && define.amd ? define(t) : (e = typeof globalThis != "undefined" ? globalThis : e || self).dayjs_plugin_updateLocale = t();
@@ -10117,7 +10135,7 @@ var require_updateLocale = __commonJS((exports, module) => {
10117
10135
  });
10118
10136
  });
10119
10137
 
10120
- // ../../node_modules/dayjs/plugin/timezone.js
10138
+ // ../../node_modules/.bun/dayjs@1.11.20/node_modules/dayjs/plugin/timezone.js
10121
10139
  var require_timezone = __commonJS((exports, module) => {
10122
10140
  (function(t, e) {
10123
10141
  typeof exports == "object" && typeof module != "undefined" ? module.exports = e() : typeof define == "function" && define.amd ? define(e) : (t = typeof globalThis != "undefined" ? globalThis : t || self).dayjs_plugin_timezone = e();
@@ -10183,7 +10201,7 @@ var require_timezone = __commonJS((exports, module) => {
10183
10201
  });
10184
10202
  });
10185
10203
 
10186
- // ../../node_modules/dayjs/plugin/isSameOrAfter.js
10204
+ // ../../node_modules/.bun/dayjs@1.11.20/node_modules/dayjs/plugin/isSameOrAfter.js
10187
10205
  var require_isSameOrAfter = __commonJS((exports, module) => {
10188
10206
  (function(e, t) {
10189
10207
  typeof exports == "object" && typeof module != "undefined" ? module.exports = t() : typeof define == "function" && define.amd ? define(t) : (e = typeof globalThis != "undefined" ? globalThis : e || self).dayjs_plugin_isSameOrAfter = t();
@@ -10196,7 +10214,7 @@ var require_isSameOrAfter = __commonJS((exports, module) => {
10196
10214
  });
10197
10215
  });
10198
10216
 
10199
- // ../../node_modules/dayjs/plugin/isSameOrBefore.js
10217
+ // ../../node_modules/.bun/dayjs@1.11.20/node_modules/dayjs/plugin/isSameOrBefore.js
10200
10218
  var require_isSameOrBefore = __commonJS((exports, module) => {
10201
10219
  (function(e, i) {
10202
10220
  typeof exports == "object" && typeof module != "undefined" ? module.exports = i() : typeof define == "function" && define.amd ? define(i) : (e = typeof globalThis != "undefined" ? globalThis : e || self).dayjs_plugin_isSameOrBefore = i();
@@ -10209,7 +10227,7 @@ var require_isSameOrBefore = __commonJS((exports, module) => {
10209
10227
  });
10210
10228
  });
10211
10229
 
10212
- // ../../node_modules/dayjs/plugin/utc.js
10230
+ // ../../node_modules/.bun/dayjs@1.11.20/node_modules/dayjs/plugin/utc.js
10213
10231
  var require_utc = __commonJS((exports, module) => {
10214
10232
  (function(t, i) {
10215
10233
  typeof exports == "object" && typeof module != "undefined" ? module.exports = i() : typeof define == "function" && define.amd ? define(i) : (t = typeof globalThis != "undefined" ? globalThis : t || self).dayjs_plugin_utc = i();
@@ -10290,7 +10308,7 @@ var require_utc = __commonJS((exports, module) => {
10290
10308
  });
10291
10309
  });
10292
10310
 
10293
- // ../../node_modules/dayjs/locale/zh-cn.js
10311
+ // ../../node_modules/.bun/dayjs@1.11.20/node_modules/dayjs/locale/zh-cn.js
10294
10312
  var require_zh_cn = __commonJS((exports, module) => {
10295
10313
  (function(e, _) {
10296
10314
  typeof exports == "object" && typeof module != "undefined" ? module.exports = _(require_dayjs_min()) : typeof define == "function" && define.amd ? define(["dayjs"], _) : (e = typeof globalThis != "undefined" ? globalThis : e || self).dayjs_locale_zh_cn = _(e.dayjs);
@@ -10308,7 +10326,7 @@ var require_zh_cn = __commonJS((exports, module) => {
10308
10326
  });
10309
10327
  });
10310
10328
 
10311
- // ../../node_modules/zod/v3/external.js
10329
+ // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/external.js
10312
10330
  var exports_external = {};
10313
10331
  __export(exports_external, {
10314
10332
  void: () => voidType,
@@ -10420,7 +10438,7 @@ __export(exports_external, {
10420
10438
  BRAND: () => BRAND
10421
10439
  });
10422
10440
 
10423
- // ../../node_modules/zod/v3/helpers/util.js
10441
+ // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/util.js
10424
10442
  var util;
10425
10443
  (function(util2) {
10426
10444
  util2.assertEqual = (_) => {};
@@ -10551,7 +10569,7 @@ var getParsedType = (data) => {
10551
10569
  }
10552
10570
  };
10553
10571
 
10554
- // ../../node_modules/zod/v3/ZodError.js
10572
+ // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/ZodError.js
10555
10573
  var ZodIssueCode = util.arrayToEnum([
10556
10574
  "invalid_type",
10557
10575
  "invalid_literal",
@@ -10670,7 +10688,7 @@ ZodError.create = (issues) => {
10670
10688
  return error;
10671
10689
  };
10672
10690
 
10673
- // ../../node_modules/zod/v3/locales/en.js
10691
+ // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/locales/en.js
10674
10692
  var errorMap = (issue, _ctx) => {
10675
10693
  let message;
10676
10694
  switch (issue.code) {
@@ -10773,7 +10791,7 @@ var errorMap = (issue, _ctx) => {
10773
10791
  };
10774
10792
  var en_default = errorMap;
10775
10793
 
10776
- // ../../node_modules/zod/v3/errors.js
10794
+ // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/errors.js
10777
10795
  var overrideErrorMap = en_default;
10778
10796
  function setErrorMap(map) {
10779
10797
  overrideErrorMap = map;
@@ -10781,7 +10799,7 @@ function setErrorMap(map) {
10781
10799
  function getErrorMap() {
10782
10800
  return overrideErrorMap;
10783
10801
  }
10784
- // ../../node_modules/zod/v3/helpers/parseUtil.js
10802
+ // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
10785
10803
  var makeIssue = (params) => {
10786
10804
  const { data, path, errorMaps, issueData } = params;
10787
10805
  const fullPath = [...path, ...issueData.path || []];
@@ -10887,14 +10905,14 @@ var isAborted = (x) => x.status === "aborted";
10887
10905
  var isDirty = (x) => x.status === "dirty";
10888
10906
  var isValid = (x) => x.status === "valid";
10889
10907
  var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
10890
- // ../../node_modules/zod/v3/helpers/errorUtil.js
10908
+ // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
10891
10909
  var errorUtil;
10892
10910
  (function(errorUtil2) {
10893
10911
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
10894
10912
  errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
10895
10913
  })(errorUtil || (errorUtil = {}));
10896
10914
 
10897
- // ../../node_modules/zod/v3/types.js
10915
+ // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/types.js
10898
10916
  class ParseInputLazyPath {
10899
10917
  constructor(parent, value, path, key) {
10900
10918
  this._cachedPath = [];
@@ -14284,14 +14302,14 @@ var NEVER = INVALID;
14284
14302
  // src/web.ts
14285
14303
  var import_md5 = __toESM(require_md5(), 1);
14286
14304
 
14287
- // ../../node_modules/axios/lib/helpers/bind.js
14305
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/bind.js
14288
14306
  function bind(fn, thisArg) {
14289
14307
  return function wrap() {
14290
14308
  return fn.apply(thisArg, arguments);
14291
14309
  };
14292
14310
  }
14293
14311
 
14294
- // ../../node_modules/axios/lib/utils.js
14312
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/utils.js
14295
14313
  var { toString } = Object.prototype;
14296
14314
  var { getPrototypeOf } = Object;
14297
14315
  var { iterator, toStringTag } = Symbol;
@@ -14343,16 +14361,49 @@ var isEmptyObject = (val) => {
14343
14361
  };
14344
14362
  var isDate = kindOfTest("Date");
14345
14363
  var isFile = kindOfTest("File");
14364
+ var isReactNativeBlob = (value) => {
14365
+ return !!(value && typeof value.uri !== "undefined");
14366
+ };
14367
+ var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
14346
14368
  var isBlob = kindOfTest("Blob");
14347
14369
  var isFileList = kindOfTest("FileList");
14348
14370
  var isStream = (val) => isObject(val) && isFunction(val.pipe);
14371
+ function getGlobal() {
14372
+ if (typeof globalThis !== "undefined")
14373
+ return globalThis;
14374
+ if (typeof self !== "undefined")
14375
+ return self;
14376
+ if (typeof window !== "undefined")
14377
+ return window;
14378
+ if (typeof global !== "undefined")
14379
+ return global;
14380
+ return {};
14381
+ }
14382
+ var G = getGlobal();
14383
+ var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : undefined;
14349
14384
  var isFormData = (thing) => {
14350
- let kind;
14351
- return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
14385
+ if (!thing)
14386
+ return false;
14387
+ if (FormDataCtor && thing instanceof FormDataCtor)
14388
+ return true;
14389
+ const proto = getPrototypeOf(thing);
14390
+ if (!proto || proto === Object.prototype)
14391
+ return false;
14392
+ if (!isFunction(thing.append))
14393
+ return false;
14394
+ const kind = kindOf(thing);
14395
+ return kind === "formdata" || kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]";
14352
14396
  };
14353
14397
  var isURLSearchParams = kindOfTest("URLSearchParams");
14354
- var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
14355
- var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
14398
+ var [isReadableStream, isRequest, isResponse, isHeaders] = [
14399
+ "ReadableStream",
14400
+ "Request",
14401
+ "Response",
14402
+ "Headers"
14403
+ ].map(kindOfTest);
14404
+ var trim = (str) => {
14405
+ return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
14406
+ };
14356
14407
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
14357
14408
  if (obj === null || typeof obj === "undefined") {
14358
14409
  return;
@@ -14401,13 +14452,17 @@ var _global = (() => {
14401
14452
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
14402
14453
  })();
14403
14454
  var isContextDefined = (context) => !isUndefined(context) && context !== _global;
14404
- function merge() {
14455
+ function merge(...objs) {
14405
14456
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
14406
14457
  const result = {};
14407
14458
  const assignValue = (val, key) => {
14459
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
14460
+ return;
14461
+ }
14408
14462
  const targetKey = caseless && findKey(result, key) || key;
14409
- if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
14410
- result[targetKey] = merge(result[targetKey], val);
14463
+ const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : undefined;
14464
+ if (isPlainObject(existing) && isPlainObject(val)) {
14465
+ result[targetKey] = merge(existing, val);
14411
14466
  } else if (isPlainObject(val)) {
14412
14467
  result[targetKey] = merge({}, val);
14413
14468
  } else if (isArray(val)) {
@@ -14416,17 +14471,29 @@ function merge() {
14416
14471
  result[targetKey] = val;
14417
14472
  }
14418
14473
  };
14419
- for (let i = 0, l = arguments.length;i < l; i++) {
14420
- arguments[i] && forEach(arguments[i], assignValue);
14474
+ for (let i = 0, l = objs.length;i < l; i++) {
14475
+ objs[i] && forEach(objs[i], assignValue);
14421
14476
  }
14422
14477
  return result;
14423
14478
  }
14424
14479
  var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
14425
14480
  forEach(b, (val, key) => {
14426
14481
  if (thisArg && isFunction(val)) {
14427
- a[key] = bind(val, thisArg);
14482
+ Object.defineProperty(a, key, {
14483
+ __proto__: null,
14484
+ value: bind(val, thisArg),
14485
+ writable: true,
14486
+ enumerable: true,
14487
+ configurable: true
14488
+ });
14428
14489
  } else {
14429
- a[key] = val;
14490
+ Object.defineProperty(a, key, {
14491
+ __proto__: null,
14492
+ value: val,
14493
+ writable: true,
14494
+ enumerable: true,
14495
+ configurable: true
14496
+ });
14430
14497
  }
14431
14498
  }, { allOwnKeys });
14432
14499
  return a;
@@ -14439,8 +14506,15 @@ var stripBOM = (content) => {
14439
14506
  };
14440
14507
  var inherits = (constructor, superConstructor, props, descriptors) => {
14441
14508
  constructor.prototype = Object.create(superConstructor.prototype, descriptors);
14442
- constructor.prototype.constructor = constructor;
14509
+ Object.defineProperty(constructor.prototype, "constructor", {
14510
+ __proto__: null,
14511
+ value: constructor,
14512
+ writable: true,
14513
+ enumerable: false,
14514
+ configurable: true
14515
+ });
14443
14516
  Object.defineProperty(constructor, "super", {
14517
+ __proto__: null,
14444
14518
  value: superConstructor.prototype
14445
14519
  });
14446
14520
  props && Object.assign(constructor.prototype, props);
@@ -14533,7 +14607,7 @@ var reduceDescriptors = (obj, reducer) => {
14533
14607
  };
14534
14608
  var freezeMethods = (obj) => {
14535
14609
  reduceDescriptors(obj, (descriptor, name) => {
14536
- if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
14610
+ if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
14537
14611
  return false;
14538
14612
  }
14539
14613
  const value = obj[name];
@@ -14632,6 +14706,8 @@ var utils_default = {
14632
14706
  isUndefined,
14633
14707
  isDate,
14634
14708
  isFile,
14709
+ isReactNativeBlob,
14710
+ isReactNative,
14635
14711
  isBlob,
14636
14712
  isRegExp,
14637
14713
  isFunction,
@@ -14673,787 +14749,880 @@ var utils_default = {
14673
14749
  isIterable
14674
14750
  };
14675
14751
 
14676
- // ../../node_modules/axios/lib/core/AxiosError.js
14677
- function AxiosError(message, code, config, request, response) {
14678
- Error.call(this);
14679
- if (Error.captureStackTrace) {
14680
- Error.captureStackTrace(this, this.constructor);
14681
- } else {
14682
- this.stack = new Error().stack;
14683
- }
14684
- this.message = message;
14685
- this.name = "AxiosError";
14686
- code && (this.code = code);
14687
- config && (this.config = config);
14688
- request && (this.request = request);
14689
- if (response) {
14690
- this.response = response;
14691
- this.status = response.status ? response.status : null;
14692
- }
14693
- }
14694
- utils_default.inherits(AxiosError, Error, {
14695
- toJSON: function toJSON() {
14696
- return {
14697
- message: this.message,
14698
- name: this.name,
14699
- description: this.description,
14700
- number: this.number,
14701
- fileName: this.fileName,
14702
- lineNumber: this.lineNumber,
14703
- columnNumber: this.columnNumber,
14704
- stack: this.stack,
14705
- config: utils_default.toJSONObject(this.config),
14706
- code: this.code,
14707
- status: this.status
14708
- };
14709
- }
14710
- });
14711
- var prototype = AxiosError.prototype;
14712
- var descriptors = {};
14713
- [
14714
- "ERR_BAD_OPTION_VALUE",
14715
- "ERR_BAD_OPTION",
14716
- "ECONNABORTED",
14717
- "ETIMEDOUT",
14718
- "ERR_NETWORK",
14719
- "ERR_FR_TOO_MANY_REDIRECTS",
14720
- "ERR_DEPRECATED",
14721
- "ERR_BAD_RESPONSE",
14722
- "ERR_BAD_REQUEST",
14723
- "ERR_CANCELED",
14724
- "ERR_NOT_SUPPORT",
14725
- "ERR_INVALID_URL"
14726
- ].forEach((code) => {
14727
- descriptors[code] = { value: code };
14728
- });
14729
- Object.defineProperties(AxiosError, descriptors);
14730
- Object.defineProperty(prototype, "isAxiosError", { value: true });
14731
- AxiosError.from = (error, code, config, request, response, customProps) => {
14732
- const axiosError = Object.create(prototype);
14733
- utils_default.toFlatObject(error, axiosError, function filter(obj) {
14734
- return obj !== Error.prototype;
14735
- }, (prop) => {
14736
- return prop !== "isAxiosError";
14752
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/parseHeaders.js
14753
+ var ignoreDuplicateOf = utils_default.toObjectSet([
14754
+ "age",
14755
+ "authorization",
14756
+ "content-length",
14757
+ "content-type",
14758
+ "etag",
14759
+ "expires",
14760
+ "from",
14761
+ "host",
14762
+ "if-modified-since",
14763
+ "if-unmodified-since",
14764
+ "last-modified",
14765
+ "location",
14766
+ "max-forwards",
14767
+ "proxy-authorization",
14768
+ "referer",
14769
+ "retry-after",
14770
+ "user-agent"
14771
+ ]);
14772
+ var parseHeaders_default = (rawHeaders) => {
14773
+ const parsed = {};
14774
+ let key;
14775
+ let val;
14776
+ let i;
14777
+ rawHeaders && rawHeaders.split(`
14778
+ `).forEach(function parser(line) {
14779
+ i = line.indexOf(":");
14780
+ key = line.substring(0, i).trim().toLowerCase();
14781
+ val = line.substring(i + 1).trim();
14782
+ if (!key || parsed[key] && ignoreDuplicateOf[key]) {
14783
+ return;
14784
+ }
14785
+ if (key === "set-cookie") {
14786
+ if (parsed[key]) {
14787
+ parsed[key].push(val);
14788
+ } else {
14789
+ parsed[key] = [val];
14790
+ }
14791
+ } else {
14792
+ parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
14793
+ }
14737
14794
  });
14738
- const msg = error && error.message ? error.message : "Error";
14739
- const errCode = code == null && error ? error.code : code;
14740
- AxiosError.call(axiosError, msg, errCode, config, request, response);
14741
- if (error && axiosError.cause == null) {
14742
- Object.defineProperty(axiosError, "cause", { value: error, configurable: true });
14743
- }
14744
- axiosError.name = error && error.name || "Error";
14745
- customProps && Object.assign(axiosError, customProps);
14746
- return axiosError;
14795
+ return parsed;
14747
14796
  };
14748
- var AxiosError_default = AxiosError;
14749
-
14750
- // ../../node_modules/axios/lib/helpers/null.js
14751
- var null_default = null;
14752
14797
 
14753
- // ../../node_modules/axios/lib/helpers/toFormData.js
14754
- function isVisitable(thing) {
14755
- return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
14756
- }
14757
- function removeBrackets(key) {
14758
- return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
14798
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/core/AxiosHeaders.js
14799
+ var $internals = Symbol("internals");
14800
+ var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
14801
+ function trimSPorHTAB(str) {
14802
+ let start = 0;
14803
+ let end = str.length;
14804
+ while (start < end) {
14805
+ const code = str.charCodeAt(start);
14806
+ if (code !== 9 && code !== 32) {
14807
+ break;
14808
+ }
14809
+ start += 1;
14810
+ }
14811
+ while (end > start) {
14812
+ const code = str.charCodeAt(end - 1);
14813
+ if (code !== 9 && code !== 32) {
14814
+ break;
14815
+ }
14816
+ end -= 1;
14817
+ }
14818
+ return start === 0 && end === str.length ? str : str.slice(start, end);
14759
14819
  }
14760
- function renderKey(path, key, dots) {
14761
- if (!path)
14762
- return key;
14763
- return path.concat(key).map(function each(token, i) {
14764
- token = removeBrackets(token);
14765
- return !dots && i ? "[" + token + "]" : token;
14766
- }).join(dots ? "." : "");
14820
+ function normalizeHeader(header) {
14821
+ return header && String(header).trim().toLowerCase();
14767
14822
  }
14768
- function isFlatArray(arr) {
14769
- return utils_default.isArray(arr) && !arr.some(isVisitable);
14823
+ function sanitizeHeaderValue(str) {
14824
+ return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
14770
14825
  }
14771
- var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
14772
- return /^is[A-Z]/.test(prop);
14773
- });
14774
- function toFormData(obj, formData, options) {
14775
- if (!utils_default.isObject(obj)) {
14776
- throw new TypeError("target must be an object");
14826
+ function normalizeValue(value) {
14827
+ if (value === false || value == null) {
14828
+ return value;
14777
14829
  }
14778
- formData = formData || new (null_default || FormData);
14779
- options = utils_default.toFlatObject(options, {
14780
- metaTokens: true,
14781
- dots: false,
14782
- indexes: false
14783
- }, false, function defined(option, source) {
14784
- return !utils_default.isUndefined(source[option]);
14785
- });
14786
- const metaTokens = options.metaTokens;
14787
- const visitor = options.visitor || defaultVisitor;
14788
- const dots = options.dots;
14789
- const indexes = options.indexes;
14790
- const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
14791
- const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
14792
- if (!utils_default.isFunction(visitor)) {
14793
- throw new TypeError("visitor must be a function");
14830
+ return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
14831
+ }
14832
+ function parseTokens(str) {
14833
+ const tokens = Object.create(null);
14834
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
14835
+ let match;
14836
+ while (match = tokensRE.exec(str)) {
14837
+ tokens[match[1]] = match[2];
14794
14838
  }
14795
- function convertValue(value) {
14796
- if (value === null)
14797
- return "";
14798
- if (utils_default.isDate(value)) {
14799
- return value.toISOString();
14800
- }
14801
- if (utils_default.isBoolean(value)) {
14802
- return value.toString();
14803
- }
14804
- if (!useBlob && utils_default.isBlob(value)) {
14805
- throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
14806
- }
14807
- if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
14808
- return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
14809
- }
14810
- return value;
14839
+ return tokens;
14840
+ }
14841
+ var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
14842
+ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
14843
+ if (utils_default.isFunction(filter)) {
14844
+ return filter.call(this, value, header);
14811
14845
  }
14812
- function defaultVisitor(value, key, path) {
14813
- let arr = value;
14814
- if (value && !path && typeof value === "object") {
14815
- if (utils_default.endsWith(key, "{}")) {
14816
- key = metaTokens ? key : key.slice(0, -2);
14817
- value = JSON.stringify(value);
14818
- } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
14819
- key = removeBrackets(key);
14820
- arr.forEach(function each(el, index) {
14821
- !(utils_default.isUndefined(el) || el === null) && formData.append(indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]", convertValue(el));
14822
- });
14823
- return false;
14824
- }
14825
- }
14826
- if (isVisitable(value)) {
14827
- return true;
14828
- }
14829
- formData.append(renderKey(path, key, dots), convertValue(value));
14830
- return false;
14846
+ if (isHeaderNameFilter) {
14847
+ value = header;
14831
14848
  }
14832
- const stack = [];
14833
- const exposedHelpers = Object.assign(predicates, {
14834
- defaultVisitor,
14835
- convertValue,
14836
- isVisitable
14837
- });
14838
- function build(value, path) {
14839
- if (utils_default.isUndefined(value))
14840
- return;
14841
- if (stack.indexOf(value) !== -1) {
14842
- throw Error("Circular reference detected in " + path.join("."));
14843
- }
14844
- stack.push(value);
14845
- utils_default.forEach(value, function each(el, key) {
14846
- const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers);
14847
- if (result === true) {
14848
- build(el, path ? path.concat(key) : [key]);
14849
- }
14850
- });
14851
- stack.pop();
14849
+ if (!utils_default.isString(value))
14850
+ return;
14851
+ if (utils_default.isString(filter)) {
14852
+ return value.indexOf(filter) !== -1;
14852
14853
  }
14853
- if (!utils_default.isObject(obj)) {
14854
- throw new TypeError("data must be an object");
14854
+ if (utils_default.isRegExp(filter)) {
14855
+ return filter.test(value);
14855
14856
  }
14856
- build(obj);
14857
- return formData;
14858
14857
  }
14859
- var toFormData_default = toFormData;
14860
-
14861
- // ../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js
14862
- function encode(str) {
14863
- const charMap = {
14864
- "!": "%21",
14865
- "'": "%27",
14866
- "(": "%28",
14867
- ")": "%29",
14868
- "~": "%7E",
14869
- "%20": "+",
14870
- "%00": "\x00"
14871
- };
14872
- return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
14873
- return charMap[match];
14858
+ function formatHeader(header) {
14859
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
14860
+ return char.toUpperCase() + str;
14874
14861
  });
14875
14862
  }
14876
- function AxiosURLSearchParams(params, options) {
14877
- this._pairs = [];
14878
- params && toFormData_default(params, this, options);
14863
+ function buildAccessors(obj, header) {
14864
+ const accessorName = utils_default.toCamelCase(" " + header);
14865
+ ["get", "set", "has"].forEach((methodName) => {
14866
+ Object.defineProperty(obj, methodName + accessorName, {
14867
+ __proto__: null,
14868
+ value: function(arg1, arg2, arg3) {
14869
+ return this[methodName].call(this, header, arg1, arg2, arg3);
14870
+ },
14871
+ configurable: true
14872
+ });
14873
+ });
14879
14874
  }
14880
- var prototype2 = AxiosURLSearchParams.prototype;
14881
- prototype2.append = function append(name, value) {
14882
- this._pairs.push([name, value]);
14883
- };
14884
- prototype2.toString = function toString2(encoder) {
14885
- const _encode = encoder ? function(value) {
14886
- return encoder.call(this, value, encode);
14887
- } : encode;
14888
- return this._pairs.map(function each(pair) {
14889
- return _encode(pair[0]) + "=" + _encode(pair[1]);
14890
- }, "").join("&");
14891
- };
14892
- var AxiosURLSearchParams_default = AxiosURLSearchParams;
14893
14875
 
14894
- // ../../node_modules/axios/lib/helpers/buildURL.js
14895
- function encode2(val) {
14896
- return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
14897
- }
14898
- function buildURL(url, params, options) {
14899
- if (!params) {
14900
- return url;
14901
- }
14902
- const _encode = options && options.encode || encode2;
14903
- if (utils_default.isFunction(options)) {
14904
- options = {
14905
- serialize: options
14906
- };
14907
- }
14908
- const serializeFn = options && options.serialize;
14909
- let serializedParams;
14910
- if (serializeFn) {
14911
- serializedParams = serializeFn(params, options);
14912
- } else {
14913
- serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, options).toString(_encode);
14876
+ class AxiosHeaders {
14877
+ constructor(headers) {
14878
+ headers && this.set(headers);
14914
14879
  }
14915
- if (serializedParams) {
14916
- const hashmarkIndex = url.indexOf("#");
14917
- if (hashmarkIndex !== -1) {
14918
- url = url.slice(0, hashmarkIndex);
14880
+ set(header, valueOrRewrite, rewrite) {
14881
+ const self2 = this;
14882
+ function setHeader(_value, _header, _rewrite) {
14883
+ const lHeader = normalizeHeader(_header);
14884
+ if (!lHeader) {
14885
+ throw new Error("header name must be a non-empty string");
14886
+ }
14887
+ const key = utils_default.findKey(self2, lHeader);
14888
+ if (!key || self2[key] === undefined || _rewrite === true || _rewrite === undefined && self2[key] !== false) {
14889
+ self2[key || _header] = normalizeValue(_value);
14890
+ }
14919
14891
  }
14920
- url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
14892
+ const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
14893
+ if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
14894
+ setHeaders(header, valueOrRewrite);
14895
+ } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
14896
+ setHeaders(parseHeaders_default(header), valueOrRewrite);
14897
+ } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
14898
+ let obj = {}, dest, key;
14899
+ for (const entry of header) {
14900
+ if (!utils_default.isArray(entry)) {
14901
+ throw TypeError("Object iterator must return a key-value pair");
14902
+ }
14903
+ obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
14904
+ }
14905
+ setHeaders(obj, valueOrRewrite);
14906
+ } else {
14907
+ header != null && setHeader(valueOrRewrite, header, rewrite);
14908
+ }
14909
+ return this;
14921
14910
  }
14922
- return url;
14923
- }
14924
-
14925
- // ../../node_modules/axios/lib/core/InterceptorManager.js
14926
- class InterceptorManager {
14927
- constructor() {
14928
- this.handlers = [];
14911
+ get(header, parser) {
14912
+ header = normalizeHeader(header);
14913
+ if (header) {
14914
+ const key = utils_default.findKey(this, header);
14915
+ if (key) {
14916
+ const value = this[key];
14917
+ if (!parser) {
14918
+ return value;
14919
+ }
14920
+ if (parser === true) {
14921
+ return parseTokens(value);
14922
+ }
14923
+ if (utils_default.isFunction(parser)) {
14924
+ return parser.call(this, value, key);
14925
+ }
14926
+ if (utils_default.isRegExp(parser)) {
14927
+ return parser.exec(value);
14928
+ }
14929
+ throw new TypeError("parser must be boolean|regexp|function");
14930
+ }
14931
+ }
14929
14932
  }
14930
- use(fulfilled, rejected, options) {
14931
- this.handlers.push({
14932
- fulfilled,
14933
- rejected,
14934
- synchronous: options ? options.synchronous : false,
14935
- runWhen: options ? options.runWhen : null
14936
- });
14937
- return this.handlers.length - 1;
14933
+ has(header, matcher) {
14934
+ header = normalizeHeader(header);
14935
+ if (header) {
14936
+ const key = utils_default.findKey(this, header);
14937
+ return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
14938
+ }
14939
+ return false;
14938
14940
  }
14939
- eject(id) {
14940
- if (this.handlers[id]) {
14941
- this.handlers[id] = null;
14941
+ delete(header, matcher) {
14942
+ const self2 = this;
14943
+ let deleted = false;
14944
+ function deleteHeader(_header) {
14945
+ _header = normalizeHeader(_header);
14946
+ if (_header) {
14947
+ const key = utils_default.findKey(self2, _header);
14948
+ if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
14949
+ delete self2[key];
14950
+ deleted = true;
14951
+ }
14952
+ }
14942
14953
  }
14954
+ if (utils_default.isArray(header)) {
14955
+ header.forEach(deleteHeader);
14956
+ } else {
14957
+ deleteHeader(header);
14958
+ }
14959
+ return deleted;
14943
14960
  }
14944
- clear() {
14945
- if (this.handlers) {
14946
- this.handlers = [];
14961
+ clear(matcher) {
14962
+ const keys = Object.keys(this);
14963
+ let i = keys.length;
14964
+ let deleted = false;
14965
+ while (i--) {
14966
+ const key = keys[i];
14967
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
14968
+ delete this[key];
14969
+ deleted = true;
14970
+ }
14947
14971
  }
14972
+ return deleted;
14948
14973
  }
14949
- forEach(fn) {
14950
- utils_default.forEach(this.handlers, function forEachHandler(h) {
14951
- if (h !== null) {
14952
- fn(h);
14974
+ normalize(format) {
14975
+ const self2 = this;
14976
+ const headers = {};
14977
+ utils_default.forEach(this, (value, header) => {
14978
+ const key = utils_default.findKey(headers, header);
14979
+ if (key) {
14980
+ self2[key] = normalizeValue(value);
14981
+ delete self2[header];
14982
+ return;
14983
+ }
14984
+ const normalized = format ? formatHeader(header) : String(header).trim();
14985
+ if (normalized !== header) {
14986
+ delete self2[header];
14953
14987
  }
14988
+ self2[normalized] = normalizeValue(value);
14989
+ headers[normalized] = true;
14954
14990
  });
14991
+ return this;
14955
14992
  }
14956
- }
14957
- var InterceptorManager_default = InterceptorManager;
14958
-
14959
- // ../../node_modules/axios/lib/defaults/transitional.js
14960
- var transitional_default = {
14961
- silentJSONParsing: true,
14962
- forcedJSONParsing: true,
14963
- clarifyTimeoutError: false
14964
- };
14965
-
14966
- // ../../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
14967
- var URLSearchParams_default = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams_default;
14968
-
14969
- // ../../node_modules/axios/lib/platform/browser/classes/FormData.js
14970
- var FormData_default = typeof FormData !== "undefined" ? FormData : null;
14971
-
14972
- // ../../node_modules/axios/lib/platform/browser/classes/Blob.js
14973
- var Blob_default = typeof Blob !== "undefined" ? Blob : null;
14974
-
14975
- // ../../node_modules/axios/lib/platform/browser/index.js
14976
- var browser_default = {
14977
- isBrowser: true,
14978
- classes: {
14979
- URLSearchParams: URLSearchParams_default,
14980
- FormData: FormData_default,
14981
- Blob: Blob_default
14982
- },
14983
- protocols: ["http", "https", "file", "blob", "url", "data"]
14984
- };
14985
-
14986
- // ../../node_modules/axios/lib/platform/common/utils.js
14987
- var exports_utils = {};
14988
- __export(exports_utils, {
14989
- origin: () => origin,
14990
- navigator: () => _navigator,
14991
- hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
14992
- hasStandardBrowserEnv: () => hasStandardBrowserEnv,
14993
- hasBrowserEnv: () => hasBrowserEnv
14994
- });
14995
- var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
14996
- var _navigator = typeof navigator === "object" && navigator || undefined;
14997
- var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
14998
- var hasStandardBrowserWebWorkerEnv = (() => {
14999
- return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
15000
- })();
15001
- var origin = hasBrowserEnv && window.location.href || "http://localhost";
15002
-
15003
- // ../../node_modules/axios/lib/platform/index.js
15004
- var platform_default = {
15005
- ...exports_utils,
15006
- ...browser_default
15007
- };
15008
-
15009
- // ../../node_modules/axios/lib/helpers/toURLEncodedForm.js
15010
- function toURLEncodedForm(data, options) {
15011
- return toFormData_default(data, new platform_default.classes.URLSearchParams, {
15012
- visitor: function(value, key, path, helpers) {
15013
- if (platform_default.isNode && utils_default.isBuffer(value)) {
15014
- this.append(key, value.toString("base64"));
15015
- return false;
14993
+ concat(...targets) {
14994
+ return this.constructor.concat(this, ...targets);
14995
+ }
14996
+ toJSON(asStrings) {
14997
+ const obj = Object.create(null);
14998
+ utils_default.forEach(this, (value, header) => {
14999
+ value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
15000
+ });
15001
+ return obj;
15002
+ }
15003
+ [Symbol.iterator]() {
15004
+ return Object.entries(this.toJSON())[Symbol.iterator]();
15005
+ }
15006
+ toString() {
15007
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join(`
15008
+ `);
15009
+ }
15010
+ getSetCookie() {
15011
+ return this.get("set-cookie") || [];
15012
+ }
15013
+ get [Symbol.toStringTag]() {
15014
+ return "AxiosHeaders";
15015
+ }
15016
+ static from(thing) {
15017
+ return thing instanceof this ? thing : new this(thing);
15018
+ }
15019
+ static concat(first, ...targets) {
15020
+ const computed = new this(first);
15021
+ targets.forEach((target) => computed.set(target));
15022
+ return computed;
15023
+ }
15024
+ static accessor(header) {
15025
+ const internals = this[$internals] = this[$internals] = {
15026
+ accessors: {}
15027
+ };
15028
+ const accessors = internals.accessors;
15029
+ const prototype = this.prototype;
15030
+ function defineAccessor(_header) {
15031
+ const lHeader = normalizeHeader(_header);
15032
+ if (!accessors[lHeader]) {
15033
+ buildAccessors(prototype, _header);
15034
+ accessors[lHeader] = true;
15016
15035
  }
15017
- return helpers.defaultVisitor.apply(this, arguments);
15018
- },
15019
- ...options
15020
- });
15036
+ }
15037
+ utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
15038
+ return this;
15039
+ }
15021
15040
  }
15041
+ AxiosHeaders.accessor([
15042
+ "Content-Type",
15043
+ "Content-Length",
15044
+ "Accept",
15045
+ "Accept-Encoding",
15046
+ "User-Agent",
15047
+ "Authorization"
15048
+ ]);
15049
+ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
15050
+ let mapped = key[0].toUpperCase() + key.slice(1);
15051
+ return {
15052
+ get: () => value,
15053
+ set(headerValue) {
15054
+ this[mapped] = headerValue;
15055
+ }
15056
+ };
15057
+ });
15058
+ utils_default.freezeMethods(AxiosHeaders);
15059
+ var AxiosHeaders_default = AxiosHeaders;
15022
15060
 
15023
- // ../../node_modules/axios/lib/helpers/formDataToJSON.js
15024
- function parsePropPath(name) {
15025
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
15026
- return match[0] === "[]" ? "" : match[1] || match[0];
15027
- });
15028
- }
15029
- function arrayToObject(arr) {
15030
- const obj = {};
15031
- const keys = Object.keys(arr);
15032
- let i;
15033
- const len = keys.length;
15034
- let key;
15035
- for (i = 0;i < len; i++) {
15036
- key = keys[i];
15037
- obj[key] = arr[key];
15061
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/core/AxiosError.js
15062
+ var REDACTED = "[REDACTED ****]";
15063
+ function hasOwnOrPrototypeToJSON(source) {
15064
+ if (utils_default.hasOwnProp(source, "toJSON")) {
15065
+ return true;
15038
15066
  }
15039
- return obj;
15040
- }
15041
- function formDataToJSON(formData) {
15042
- function buildPath(path, value, target, index) {
15043
- let name = path[index++];
15044
- if (name === "__proto__")
15067
+ let prototype = Object.getPrototypeOf(source);
15068
+ while (prototype && prototype !== Object.prototype) {
15069
+ if (utils_default.hasOwnProp(prototype, "toJSON")) {
15045
15070
  return true;
15046
- const isNumericKey = Number.isFinite(+name);
15047
- const isLast = index >= path.length;
15048
- name = !name && utils_default.isArray(target) ? target.length : name;
15049
- if (isLast) {
15050
- if (utils_default.hasOwnProp(target, name)) {
15051
- target[name] = [target[name], value];
15052
- } else {
15053
- target[name] = value;
15054
- }
15055
- return !isNumericKey;
15056
- }
15057
- if (!target[name] || !utils_default.isObject(target[name])) {
15058
- target[name] = [];
15059
- }
15060
- const result = buildPath(path, value, target[name], index);
15061
- if (result && utils_default.isArray(target[name])) {
15062
- target[name] = arrayToObject(target[name]);
15063
15071
  }
15064
- return !isNumericKey;
15072
+ prototype = Object.getPrototypeOf(prototype);
15065
15073
  }
15066
- if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
15067
- const obj = {};
15068
- utils_default.forEachEntry(formData, (name, value) => {
15069
- buildPath(parsePropPath(name), value, obj, 0);
15070
- });
15071
- return obj;
15072
- }
15073
- return null;
15074
+ return false;
15074
15075
  }
15075
- var formDataToJSON_default = formDataToJSON;
15076
-
15077
- // ../../node_modules/axios/lib/defaults/index.js
15078
- function stringifySafely(rawValue, parser, encoder) {
15079
- if (utils_default.isString(rawValue)) {
15080
- try {
15081
- (parser || JSON.parse)(rawValue);
15082
- return utils_default.trim(rawValue);
15083
- } catch (e) {
15084
- if (e.name !== "SyntaxError") {
15085
- throw e;
15076
+ function redactConfig(config, redactKeys) {
15077
+ const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
15078
+ const seen = [];
15079
+ const visit = (source) => {
15080
+ if (source === null || typeof source !== "object")
15081
+ return source;
15082
+ if (utils_default.isBuffer(source))
15083
+ return source;
15084
+ if (seen.indexOf(source) !== -1)
15085
+ return;
15086
+ if (source instanceof AxiosHeaders_default) {
15087
+ source = source.toJSON();
15088
+ }
15089
+ seen.push(source);
15090
+ let result;
15091
+ if (utils_default.isArray(source)) {
15092
+ result = [];
15093
+ source.forEach((v, i) => {
15094
+ const reducedValue = visit(v);
15095
+ if (!utils_default.isUndefined(reducedValue)) {
15096
+ result[i] = reducedValue;
15097
+ }
15098
+ });
15099
+ } else {
15100
+ if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
15101
+ seen.pop();
15102
+ return source;
15103
+ }
15104
+ result = Object.create(null);
15105
+ for (const [key, value] of Object.entries(source)) {
15106
+ const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
15107
+ if (!utils_default.isUndefined(reducedValue)) {
15108
+ result[key] = reducedValue;
15109
+ }
15086
15110
  }
15087
15111
  }
15112
+ seen.pop();
15113
+ return result;
15114
+ };
15115
+ return visit(config);
15116
+ }
15117
+
15118
+ class AxiosError extends Error {
15119
+ static from(error, code, config, request, response, customProps) {
15120
+ const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
15121
+ axiosError.cause = error;
15122
+ axiosError.name = error.name;
15123
+ if (error.status != null && axiosError.status == null) {
15124
+ axiosError.status = error.status;
15125
+ }
15126
+ customProps && Object.assign(axiosError, customProps);
15127
+ return axiosError;
15128
+ }
15129
+ constructor(message, code, config, request, response) {
15130
+ super(message);
15131
+ Object.defineProperty(this, "message", {
15132
+ __proto__: null,
15133
+ value: message,
15134
+ enumerable: true,
15135
+ writable: true,
15136
+ configurable: true
15137
+ });
15138
+ this.name = "AxiosError";
15139
+ this.isAxiosError = true;
15140
+ code && (this.code = code);
15141
+ config && (this.config = config);
15142
+ request && (this.request = request);
15143
+ if (response) {
15144
+ this.response = response;
15145
+ this.status = response.status;
15146
+ }
15147
+ }
15148
+ toJSON() {
15149
+ const config = this.config;
15150
+ const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : undefined;
15151
+ const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
15152
+ return {
15153
+ message: this.message,
15154
+ name: this.name,
15155
+ description: this.description,
15156
+ number: this.number,
15157
+ fileName: this.fileName,
15158
+ lineNumber: this.lineNumber,
15159
+ columnNumber: this.columnNumber,
15160
+ stack: this.stack,
15161
+ config: serializedConfig,
15162
+ code: this.code,
15163
+ status: this.status
15164
+ };
15088
15165
  }
15089
- return (encoder || JSON.stringify)(rawValue);
15090
15166
  }
15091
- var defaults = {
15092
- transitional: transitional_default,
15093
- adapter: ["xhr", "http", "fetch"],
15094
- transformRequest: [function transformRequest(data, headers) {
15095
- const contentType = headers.getContentType() || "";
15096
- const hasJSONContentType = contentType.indexOf("application/json") > -1;
15097
- const isObjectPayload = utils_default.isObject(data);
15098
- if (isObjectPayload && utils_default.isHTMLForm(data)) {
15099
- data = new FormData(data);
15100
- }
15101
- const isFormData2 = utils_default.isFormData(data);
15102
- if (isFormData2) {
15103
- return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
15104
- }
15105
- 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)) {
15106
- return data;
15107
- }
15108
- if (utils_default.isArrayBufferView(data)) {
15109
- return data.buffer;
15167
+ AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
15168
+ AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
15169
+ AxiosError.ECONNABORTED = "ECONNABORTED";
15170
+ AxiosError.ETIMEDOUT = "ETIMEDOUT";
15171
+ AxiosError.ECONNREFUSED = "ECONNREFUSED";
15172
+ AxiosError.ERR_NETWORK = "ERR_NETWORK";
15173
+ AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
15174
+ AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
15175
+ AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
15176
+ AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
15177
+ AxiosError.ERR_CANCELED = "ERR_CANCELED";
15178
+ AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
15179
+ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
15180
+ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
15181
+ var AxiosError_default = AxiosError;
15182
+
15183
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/null.js
15184
+ var null_default = null;
15185
+
15186
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/toFormData.js
15187
+ function isVisitable(thing) {
15188
+ return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
15189
+ }
15190
+ function removeBrackets(key) {
15191
+ return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
15192
+ }
15193
+ function renderKey(path, key, dots) {
15194
+ if (!path)
15195
+ return key;
15196
+ return path.concat(key).map(function each(token, i) {
15197
+ token = removeBrackets(token);
15198
+ return !dots && i ? "[" + token + "]" : token;
15199
+ }).join(dots ? "." : "");
15200
+ }
15201
+ function isFlatArray(arr) {
15202
+ return utils_default.isArray(arr) && !arr.some(isVisitable);
15203
+ }
15204
+ var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
15205
+ return /^is[A-Z]/.test(prop);
15206
+ });
15207
+ function toFormData(obj, formData, options) {
15208
+ if (!utils_default.isObject(obj)) {
15209
+ throw new TypeError("target must be an object");
15210
+ }
15211
+ formData = formData || new (null_default || FormData);
15212
+ options = utils_default.toFlatObject(options, {
15213
+ metaTokens: true,
15214
+ dots: false,
15215
+ indexes: false
15216
+ }, false, function defined(option, source) {
15217
+ return !utils_default.isUndefined(source[option]);
15218
+ });
15219
+ const metaTokens = options.metaTokens;
15220
+ const visitor = options.visitor || defaultVisitor;
15221
+ const dots = options.dots;
15222
+ const indexes = options.indexes;
15223
+ const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
15224
+ const maxDepth = options.maxDepth === undefined ? 100 : options.maxDepth;
15225
+ const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
15226
+ if (!utils_default.isFunction(visitor)) {
15227
+ throw new TypeError("visitor must be a function");
15228
+ }
15229
+ function convertValue(value) {
15230
+ if (value === null)
15231
+ return "";
15232
+ if (utils_default.isDate(value)) {
15233
+ return value.toISOString();
15110
15234
  }
15111
- if (utils_default.isURLSearchParams(data)) {
15112
- headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
15113
- return data.toString();
15235
+ if (utils_default.isBoolean(value)) {
15236
+ return value.toString();
15114
15237
  }
15115
- let isFileList2;
15116
- if (isObjectPayload) {
15117
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
15118
- return toURLEncodedForm(data, this.formSerializer).toString();
15119
- }
15120
- if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
15121
- const _FormData = this.env && this.env.FormData;
15122
- return toFormData_default(isFileList2 ? { "files[]": data } : data, _FormData && new _FormData, this.formSerializer);
15123
- }
15238
+ if (!useBlob && utils_default.isBlob(value)) {
15239
+ throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
15124
15240
  }
15125
- if (isObjectPayload || hasJSONContentType) {
15126
- headers.setContentType("application/json", false);
15127
- return stringifySafely(data);
15241
+ if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
15242
+ return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
15128
15243
  }
15129
- return data;
15130
- }],
15131
- transformResponse: [function transformResponse(data) {
15132
- const transitional = this.transitional || defaults.transitional;
15133
- const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
15134
- const JSONRequested = this.responseType === "json";
15135
- if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
15136
- return data;
15244
+ return value;
15245
+ }
15246
+ function defaultVisitor(value, key, path) {
15247
+ let arr = value;
15248
+ if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
15249
+ formData.append(renderKey(path, key, dots), convertValue(value));
15250
+ return false;
15137
15251
  }
15138
- if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
15139
- const silentJSONParsing = transitional && transitional.silentJSONParsing;
15140
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
15141
- try {
15142
- return JSON.parse(data, this.parseReviver);
15143
- } catch (e) {
15144
- if (strictJSONParsing) {
15145
- if (e.name === "SyntaxError") {
15146
- throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
15147
- }
15148
- throw e;
15149
- }
15252
+ if (value && !path && typeof value === "object") {
15253
+ if (utils_default.endsWith(key, "{}")) {
15254
+ key = metaTokens ? key : key.slice(0, -2);
15255
+ value = JSON.stringify(value);
15256
+ } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
15257
+ key = removeBrackets(key);
15258
+ arr.forEach(function each(el, index) {
15259
+ !(utils_default.isUndefined(el) || el === null) && formData.append(indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]", convertValue(el));
15260
+ });
15261
+ return false;
15150
15262
  }
15151
15263
  }
15152
- return data;
15153
- }],
15154
- timeout: 0,
15155
- xsrfCookieName: "XSRF-TOKEN",
15156
- xsrfHeaderName: "X-XSRF-TOKEN",
15157
- maxContentLength: -1,
15158
- maxBodyLength: -1,
15159
- env: {
15160
- FormData: platform_default.classes.FormData,
15161
- Blob: platform_default.classes.Blob
15162
- },
15163
- validateStatus: function validateStatus(status) {
15164
- return status >= 200 && status < 300;
15165
- },
15166
- headers: {
15167
- common: {
15168
- Accept: "application/json, text/plain, */*",
15169
- "Content-Type": undefined
15264
+ if (isVisitable(value)) {
15265
+ return true;
15170
15266
  }
15267
+ formData.append(renderKey(path, key, dots), convertValue(value));
15268
+ return false;
15171
15269
  }
15172
- };
15173
- utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
15174
- defaults.headers[method] = {};
15175
- });
15176
- var defaults_default = defaults;
15177
-
15178
- // ../../node_modules/axios/lib/helpers/parseHeaders.js
15179
- var ignoreDuplicateOf = utils_default.toObjectSet([
15180
- "age",
15181
- "authorization",
15182
- "content-length",
15183
- "content-type",
15184
- "etag",
15185
- "expires",
15186
- "from",
15187
- "host",
15188
- "if-modified-since",
15189
- "if-unmodified-since",
15190
- "last-modified",
15191
- "location",
15192
- "max-forwards",
15193
- "proxy-authorization",
15194
- "referer",
15195
- "retry-after",
15196
- "user-agent"
15197
- ]);
15198
- var parseHeaders_default = (rawHeaders) => {
15199
- const parsed = {};
15200
- let key;
15201
- let val;
15202
- let i;
15203
- rawHeaders && rawHeaders.split(`
15204
- `).forEach(function parser(line) {
15205
- i = line.indexOf(":");
15206
- key = line.substring(0, i).trim().toLowerCase();
15207
- val = line.substring(i + 1).trim();
15208
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
15270
+ const stack = [];
15271
+ const exposedHelpers = Object.assign(predicates, {
15272
+ defaultVisitor,
15273
+ convertValue,
15274
+ isVisitable
15275
+ });
15276
+ function build(value, path, depth = 0) {
15277
+ if (utils_default.isUndefined(value))
15209
15278
  return;
15279
+ if (depth > maxDepth) {
15280
+ throw new AxiosError_default("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED);
15210
15281
  }
15211
- if (key === "set-cookie") {
15212
- if (parsed[key]) {
15213
- parsed[key].push(val);
15214
- } else {
15215
- parsed[key] = [val];
15216
- }
15217
- } else {
15218
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
15282
+ if (stack.indexOf(value) !== -1) {
15283
+ throw Error("Circular reference detected in " + path.join("."));
15219
15284
  }
15285
+ stack.push(value);
15286
+ utils_default.forEach(value, function each(el, key) {
15287
+ const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers);
15288
+ if (result === true) {
15289
+ build(el, path ? path.concat(key) : [key], depth + 1);
15290
+ }
15291
+ });
15292
+ stack.pop();
15293
+ }
15294
+ if (!utils_default.isObject(obj)) {
15295
+ throw new TypeError("data must be an object");
15296
+ }
15297
+ build(obj);
15298
+ return formData;
15299
+ }
15300
+ var toFormData_default = toFormData;
15301
+
15302
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
15303
+ function encode(str) {
15304
+ const charMap = {
15305
+ "!": "%21",
15306
+ "'": "%27",
15307
+ "(": "%28",
15308
+ ")": "%29",
15309
+ "~": "%7E",
15310
+ "%20": "+"
15311
+ };
15312
+ return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
15313
+ return charMap[match];
15220
15314
  });
15221
- return parsed;
15315
+ }
15316
+ function AxiosURLSearchParams(params, options) {
15317
+ this._pairs = [];
15318
+ params && toFormData_default(params, this, options);
15319
+ }
15320
+ var prototype = AxiosURLSearchParams.prototype;
15321
+ prototype.append = function append(name, value) {
15322
+ this._pairs.push([name, value]);
15323
+ };
15324
+ prototype.toString = function toString2(encoder) {
15325
+ const _encode = encoder ? function(value) {
15326
+ return encoder.call(this, value, encode);
15327
+ } : encode;
15328
+ return this._pairs.map(function each(pair) {
15329
+ return _encode(pair[0]) + "=" + _encode(pair[1]);
15330
+ }, "").join("&");
15222
15331
  };
15332
+ var AxiosURLSearchParams_default = AxiosURLSearchParams;
15223
15333
 
15224
- // ../../node_modules/axios/lib/core/AxiosHeaders.js
15225
- var $internals = Symbol("internals");
15226
- function normalizeHeader(header) {
15227
- return header && String(header).trim().toLowerCase();
15334
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/buildURL.js
15335
+ function encode2(val) {
15336
+ return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
15228
15337
  }
15229
- function normalizeValue(value) {
15230
- if (value === false || value == null) {
15231
- return value;
15338
+ function buildURL(url, params, options) {
15339
+ if (!params) {
15340
+ return url;
15232
15341
  }
15233
- return utils_default.isArray(value) ? value.map(normalizeValue) : String(value);
15234
- }
15235
- function parseTokens(str) {
15236
- const tokens = Object.create(null);
15237
- const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
15238
- let match;
15239
- while (match = tokensRE.exec(str)) {
15240
- tokens[match[1]] = match[2];
15342
+ const _encode = options && options.encode || encode2;
15343
+ const _options = utils_default.isFunction(options) ? {
15344
+ serialize: options
15345
+ } : options;
15346
+ const serializeFn = _options && _options.serialize;
15347
+ let serializedParams;
15348
+ if (serializeFn) {
15349
+ serializedParams = serializeFn(params, _options);
15350
+ } else {
15351
+ serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, _options).toString(_encode);
15241
15352
  }
15242
- return tokens;
15353
+ if (serializedParams) {
15354
+ const hashmarkIndex = url.indexOf("#");
15355
+ if (hashmarkIndex !== -1) {
15356
+ url = url.slice(0, hashmarkIndex);
15357
+ }
15358
+ url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
15359
+ }
15360
+ return url;
15243
15361
  }
15244
- var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
15245
- function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
15246
- if (utils_default.isFunction(filter2)) {
15247
- return filter2.call(this, value, header);
15362
+
15363
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/core/InterceptorManager.js
15364
+ class InterceptorManager {
15365
+ constructor() {
15366
+ this.handlers = [];
15248
15367
  }
15249
- if (isHeaderNameFilter) {
15250
- value = header;
15368
+ use(fulfilled, rejected, options) {
15369
+ this.handlers.push({
15370
+ fulfilled,
15371
+ rejected,
15372
+ synchronous: options ? options.synchronous : false,
15373
+ runWhen: options ? options.runWhen : null
15374
+ });
15375
+ return this.handlers.length - 1;
15251
15376
  }
15252
- if (!utils_default.isString(value))
15253
- return;
15254
- if (utils_default.isString(filter2)) {
15255
- return value.indexOf(filter2) !== -1;
15377
+ eject(id) {
15378
+ if (this.handlers[id]) {
15379
+ this.handlers[id] = null;
15380
+ }
15381
+ }
15382
+ clear() {
15383
+ if (this.handlers) {
15384
+ this.handlers = [];
15385
+ }
15256
15386
  }
15257
- if (utils_default.isRegExp(filter2)) {
15258
- return filter2.test(value);
15387
+ forEach(fn) {
15388
+ utils_default.forEach(this.handlers, function forEachHandler(h) {
15389
+ if (h !== null) {
15390
+ fn(h);
15391
+ }
15392
+ });
15259
15393
  }
15260
15394
  }
15261
- function formatHeader(header) {
15262
- return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
15263
- return char.toUpperCase() + str;
15395
+ var InterceptorManager_default = InterceptorManager;
15396
+
15397
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/defaults/transitional.js
15398
+ var transitional_default = {
15399
+ silentJSONParsing: true,
15400
+ forcedJSONParsing: true,
15401
+ clarifyTimeoutError: false,
15402
+ legacyInterceptorReqResOrdering: true
15403
+ };
15404
+
15405
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
15406
+ var URLSearchParams_default = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams_default;
15407
+
15408
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/platform/browser/classes/FormData.js
15409
+ var FormData_default = typeof FormData !== "undefined" ? FormData : null;
15410
+
15411
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/platform/browser/classes/Blob.js
15412
+ var Blob_default = typeof Blob !== "undefined" ? Blob : null;
15413
+
15414
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/platform/browser/index.js
15415
+ var browser_default = {
15416
+ isBrowser: true,
15417
+ classes: {
15418
+ URLSearchParams: URLSearchParams_default,
15419
+ FormData: FormData_default,
15420
+ Blob: Blob_default
15421
+ },
15422
+ protocols: ["http", "https", "file", "blob", "url", "data"]
15423
+ };
15424
+
15425
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/platform/common/utils.js
15426
+ var exports_utils = {};
15427
+ __export(exports_utils, {
15428
+ origin: () => origin,
15429
+ navigator: () => _navigator,
15430
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
15431
+ hasStandardBrowserEnv: () => hasStandardBrowserEnv,
15432
+ hasBrowserEnv: () => hasBrowserEnv
15433
+ });
15434
+ var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
15435
+ var _navigator = typeof navigator === "object" && navigator || undefined;
15436
+ var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
15437
+ var hasStandardBrowserWebWorkerEnv = (() => {
15438
+ return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
15439
+ })();
15440
+ var origin = hasBrowserEnv && window.location.href || "http://localhost";
15441
+
15442
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/platform/index.js
15443
+ var platform_default = {
15444
+ ...exports_utils,
15445
+ ...browser_default
15446
+ };
15447
+
15448
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
15449
+ function toURLEncodedForm(data, options) {
15450
+ return toFormData_default(data, new platform_default.classes.URLSearchParams, {
15451
+ visitor: function(value, key, path, helpers) {
15452
+ if (platform_default.isNode && utils_default.isBuffer(value)) {
15453
+ this.append(key, value.toString("base64"));
15454
+ return false;
15455
+ }
15456
+ return helpers.defaultVisitor.apply(this, arguments);
15457
+ },
15458
+ ...options
15264
15459
  });
15265
15460
  }
15266
- function buildAccessors(obj, header) {
15267
- const accessorName = utils_default.toCamelCase(" " + header);
15268
- ["get", "set", "has"].forEach((methodName) => {
15269
- Object.defineProperty(obj, methodName + accessorName, {
15270
- value: function(arg1, arg2, arg3) {
15271
- return this[methodName].call(this, header, arg1, arg2, arg3);
15272
- },
15273
- configurable: true
15274
- });
15461
+
15462
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/formDataToJSON.js
15463
+ function parsePropPath(name) {
15464
+ return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
15465
+ return match[0] === "[]" ? "" : match[1] || match[0];
15275
15466
  });
15276
15467
  }
15277
-
15278
- class AxiosHeaders {
15279
- constructor(headers) {
15280
- headers && this.set(headers);
15281
- }
15282
- set(header, valueOrRewrite, rewrite) {
15283
- const self2 = this;
15284
- function setHeader(_value, _header, _rewrite) {
15285
- const lHeader = normalizeHeader(_header);
15286
- if (!lHeader) {
15287
- throw new Error("header name must be a non-empty string");
15288
- }
15289
- const key = utils_default.findKey(self2, lHeader);
15290
- if (!key || self2[key] === undefined || _rewrite === true || _rewrite === undefined && self2[key] !== false) {
15291
- self2[key || _header] = normalizeValue(_value);
15292
- }
15293
- }
15294
- const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
15295
- if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
15296
- setHeaders(header, valueOrRewrite);
15297
- } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
15298
- setHeaders(parseHeaders_default(header), valueOrRewrite);
15299
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
15300
- let obj = {}, dest, key;
15301
- for (const entry of header) {
15302
- if (!utils_default.isArray(entry)) {
15303
- throw TypeError("Object iterator must return a key-value pair");
15304
- }
15305
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
15306
- }
15307
- setHeaders(obj, valueOrRewrite);
15308
- } else {
15309
- header != null && setHeader(valueOrRewrite, header, rewrite);
15310
- }
15311
- return this;
15312
- }
15313
- get(header, parser) {
15314
- header = normalizeHeader(header);
15315
- if (header) {
15316
- const key = utils_default.findKey(this, header);
15317
- if (key) {
15318
- const value = this[key];
15319
- if (!parser) {
15320
- return value;
15321
- }
15322
- if (parser === true) {
15323
- return parseTokens(value);
15324
- }
15325
- if (utils_default.isFunction(parser)) {
15326
- return parser.call(this, value, key);
15327
- }
15328
- if (utils_default.isRegExp(parser)) {
15329
- return parser.exec(value);
15330
- }
15331
- throw new TypeError("parser must be boolean|regexp|function");
15332
- }
15333
- }
15334
- }
15335
- has(header, matcher) {
15336
- header = normalizeHeader(header);
15337
- if (header) {
15338
- const key = utils_default.findKey(this, header);
15339
- return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
15340
- }
15341
- return false;
15342
- }
15343
- delete(header, matcher) {
15344
- const self2 = this;
15345
- let deleted = false;
15346
- function deleteHeader(_header) {
15347
- _header = normalizeHeader(_header);
15348
- if (_header) {
15349
- const key = utils_default.findKey(self2, _header);
15350
- if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
15351
- delete self2[key];
15352
- deleted = true;
15353
- }
15468
+ function arrayToObject(arr) {
15469
+ const obj = {};
15470
+ const keys = Object.keys(arr);
15471
+ let i;
15472
+ const len = keys.length;
15473
+ let key;
15474
+ for (i = 0;i < len; i++) {
15475
+ key = keys[i];
15476
+ obj[key] = arr[key];
15477
+ }
15478
+ return obj;
15479
+ }
15480
+ function formDataToJSON(formData) {
15481
+ function buildPath(path, value, target, index) {
15482
+ let name = path[index++];
15483
+ if (name === "__proto__")
15484
+ return true;
15485
+ const isNumericKey = Number.isFinite(+name);
15486
+ const isLast = index >= path.length;
15487
+ name = !name && utils_default.isArray(target) ? target.length : name;
15488
+ if (isLast) {
15489
+ if (utils_default.hasOwnProp(target, name)) {
15490
+ target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
15491
+ } else {
15492
+ target[name] = value;
15354
15493
  }
15494
+ return !isNumericKey;
15355
15495
  }
15356
- if (utils_default.isArray(header)) {
15357
- header.forEach(deleteHeader);
15358
- } else {
15359
- deleteHeader(header);
15496
+ if (!target[name] || !utils_default.isObject(target[name])) {
15497
+ target[name] = [];
15360
15498
  }
15361
- return deleted;
15362
- }
15363
- clear(matcher) {
15364
- const keys = Object.keys(this);
15365
- let i = keys.length;
15366
- let deleted = false;
15367
- while (i--) {
15368
- const key = keys[i];
15369
- if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
15370
- delete this[key];
15371
- deleted = true;
15372
- }
15499
+ const result = buildPath(path, value, target[name], index);
15500
+ if (result && utils_default.isArray(target[name])) {
15501
+ target[name] = arrayToObject(target[name]);
15373
15502
  }
15374
- return deleted;
15375
- }
15376
- normalize(format) {
15377
- const self2 = this;
15378
- const headers = {};
15379
- utils_default.forEach(this, (value, header) => {
15380
- const key = utils_default.findKey(headers, header);
15381
- if (key) {
15382
- self2[key] = normalizeValue(value);
15383
- delete self2[header];
15384
- return;
15385
- }
15386
- const normalized = format ? formatHeader(header) : String(header).trim();
15387
- if (normalized !== header) {
15388
- delete self2[header];
15389
- }
15390
- self2[normalized] = normalizeValue(value);
15391
- headers[normalized] = true;
15392
- });
15393
- return this;
15394
- }
15395
- concat(...targets) {
15396
- return this.constructor.concat(this, ...targets);
15503
+ return !isNumericKey;
15397
15504
  }
15398
- toJSON(asStrings) {
15399
- const obj = Object.create(null);
15400
- utils_default.forEach(this, (value, header) => {
15401
- value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
15505
+ if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
15506
+ const obj = {};
15507
+ utils_default.forEachEntry(formData, (name, value) => {
15508
+ buildPath(parsePropPath(name), value, obj, 0);
15402
15509
  });
15403
15510
  return obj;
15404
15511
  }
15405
- [Symbol.iterator]() {
15406
- return Object.entries(this.toJSON())[Symbol.iterator]();
15407
- }
15408
- toString() {
15409
- return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join(`
15410
- `);
15411
- }
15412
- getSetCookie() {
15413
- return this.get("set-cookie") || [];
15414
- }
15415
- get [Symbol.toStringTag]() {
15416
- return "AxiosHeaders";
15417
- }
15418
- static from(thing) {
15419
- return thing instanceof this ? thing : new this(thing);
15420
- }
15421
- static concat(first, ...targets) {
15422
- const computed = new this(first);
15423
- targets.forEach((target) => computed.set(target));
15424
- return computed;
15425
- }
15426
- static accessor(header) {
15427
- const internals = this[$internals] = this[$internals] = {
15428
- accessors: {}
15429
- };
15430
- const accessors = internals.accessors;
15431
- const prototype3 = this.prototype;
15432
- function defineAccessor(_header) {
15433
- const lHeader = normalizeHeader(_header);
15434
- if (!accessors[lHeader]) {
15435
- buildAccessors(prototype3, _header);
15436
- accessors[lHeader] = true;
15512
+ return null;
15513
+ }
15514
+ var formDataToJSON_default = formDataToJSON;
15515
+
15516
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/defaults/index.js
15517
+ var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : undefined;
15518
+ function stringifySafely(rawValue, parser, encoder) {
15519
+ if (utils_default.isString(rawValue)) {
15520
+ try {
15521
+ (parser || JSON.parse)(rawValue);
15522
+ return utils_default.trim(rawValue);
15523
+ } catch (e) {
15524
+ if (e.name !== "SyntaxError") {
15525
+ throw e;
15437
15526
  }
15438
15527
  }
15439
- utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
15440
- return this;
15441
15528
  }
15529
+ return (encoder || JSON.stringify)(rawValue);
15442
15530
  }
15443
- AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
15444
- utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
15445
- let mapped = key[0].toUpperCase() + key.slice(1);
15446
- return {
15447
- get: () => value,
15448
- set(headerValue) {
15449
- this[mapped] = headerValue;
15531
+ var defaults = {
15532
+ transitional: transitional_default,
15533
+ adapter: ["xhr", "http", "fetch"],
15534
+ transformRequest: [
15535
+ function transformRequest(data, headers) {
15536
+ const contentType = headers.getContentType() || "";
15537
+ const hasJSONContentType = contentType.indexOf("application/json") > -1;
15538
+ const isObjectPayload = utils_default.isObject(data);
15539
+ if (isObjectPayload && utils_default.isHTMLForm(data)) {
15540
+ data = new FormData(data);
15541
+ }
15542
+ const isFormData2 = utils_default.isFormData(data);
15543
+ if (isFormData2) {
15544
+ return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
15545
+ }
15546
+ 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)) {
15547
+ return data;
15548
+ }
15549
+ if (utils_default.isArrayBufferView(data)) {
15550
+ return data.buffer;
15551
+ }
15552
+ if (utils_default.isURLSearchParams(data)) {
15553
+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
15554
+ return data.toString();
15555
+ }
15556
+ let isFileList2;
15557
+ if (isObjectPayload) {
15558
+ const formSerializer = own(this, "formSerializer");
15559
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
15560
+ return toURLEncodedForm(data, formSerializer).toString();
15561
+ }
15562
+ if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
15563
+ const env = own(this, "env");
15564
+ const _FormData = env && env.FormData;
15565
+ return toFormData_default(isFileList2 ? { "files[]": data } : data, _FormData && new _FormData, formSerializer);
15566
+ }
15567
+ }
15568
+ if (isObjectPayload || hasJSONContentType) {
15569
+ headers.setContentType("application/json", false);
15570
+ return stringifySafely(data);
15571
+ }
15572
+ return data;
15450
15573
  }
15451
- };
15574
+ ],
15575
+ transformResponse: [
15576
+ function transformResponse(data) {
15577
+ const transitional = own(this, "transitional") || defaults.transitional;
15578
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
15579
+ const responseType = own(this, "responseType");
15580
+ const JSONRequested = responseType === "json";
15581
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
15582
+ return data;
15583
+ }
15584
+ if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
15585
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
15586
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
15587
+ try {
15588
+ return JSON.parse(data, own(this, "parseReviver"));
15589
+ } catch (e) {
15590
+ if (strictJSONParsing) {
15591
+ if (e.name === "SyntaxError") {
15592
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
15593
+ }
15594
+ throw e;
15595
+ }
15596
+ }
15597
+ }
15598
+ return data;
15599
+ }
15600
+ ],
15601
+ timeout: 0,
15602
+ xsrfCookieName: "XSRF-TOKEN",
15603
+ xsrfHeaderName: "X-XSRF-TOKEN",
15604
+ maxContentLength: -1,
15605
+ maxBodyLength: -1,
15606
+ env: {
15607
+ FormData: platform_default.classes.FormData,
15608
+ Blob: platform_default.classes.Blob
15609
+ },
15610
+ validateStatus: function validateStatus(status) {
15611
+ return status >= 200 && status < 300;
15612
+ },
15613
+ headers: {
15614
+ common: {
15615
+ Accept: "application/json, text/plain, */*",
15616
+ "Content-Type": undefined
15617
+ }
15618
+ }
15619
+ };
15620
+ utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
15621
+ defaults.headers[method] = {};
15452
15622
  });
15453
- utils_default.freezeMethods(AxiosHeaders);
15454
- var AxiosHeaders_default = AxiosHeaders;
15623
+ var defaults_default = defaults;
15455
15624
 
15456
- // ../../node_modules/axios/lib/core/transformData.js
15625
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/core/transformData.js
15457
15626
  function transformData(fns, response) {
15458
15627
  const config = this || defaults_default;
15459
15628
  const context = response || config;
@@ -15466,38 +15635,38 @@ function transformData(fns, response) {
15466
15635
  return data;
15467
15636
  }
15468
15637
 
15469
- // ../../node_modules/axios/lib/cancel/isCancel.js
15638
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/cancel/isCancel.js
15470
15639
  function isCancel(value) {
15471
15640
  return !!(value && value.__CANCEL__);
15472
15641
  }
15473
15642
 
15474
- // ../../node_modules/axios/lib/cancel/CanceledError.js
15475
- function CanceledError(message, config, request) {
15476
- AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
15477
- this.name = "CanceledError";
15643
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/cancel/CanceledError.js
15644
+ class CanceledError extends AxiosError_default {
15645
+ constructor(message, config, request) {
15646
+ super(message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
15647
+ this.name = "CanceledError";
15648
+ this.__CANCEL__ = true;
15649
+ }
15478
15650
  }
15479
- utils_default.inherits(CanceledError, AxiosError_default, {
15480
- __CANCEL__: true
15481
- });
15482
15651
  var CanceledError_default = CanceledError;
15483
15652
 
15484
- // ../../node_modules/axios/lib/core/settle.js
15653
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/core/settle.js
15485
15654
  function settle(resolve, reject, response) {
15486
15655
  const validateStatus2 = response.config.validateStatus;
15487
15656
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
15488
15657
  resolve(response);
15489
15658
  } else {
15490
- reject(new AxiosError_default("Request failed with status code " + response.status, [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response));
15659
+ reject(new AxiosError_default("Request failed with status code " + response.status, response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE, response.config, response.request, response));
15491
15660
  }
15492
15661
  }
15493
15662
 
15494
- // ../../node_modules/axios/lib/helpers/parseProtocol.js
15663
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/parseProtocol.js
15495
15664
  function parseProtocol(url) {
15496
- const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
15665
+ const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
15497
15666
  return match && match[1] || "";
15498
15667
  }
15499
15668
 
15500
- // ../../node_modules/axios/lib/helpers/speedometer.js
15669
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/speedometer.js
15501
15670
  function speedometer(samplesCount, min) {
15502
15671
  samplesCount = samplesCount || 10;
15503
15672
  const bytes = new Array(samplesCount);
@@ -15533,7 +15702,7 @@ function speedometer(samplesCount, min) {
15533
15702
  }
15534
15703
  var speedometer_default = speedometer;
15535
15704
 
15536
- // ../../node_modules/axios/lib/helpers/throttle.js
15705
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/throttle.js
15537
15706
  function throttle(fn, freq) {
15538
15707
  let timestamp = 0;
15539
15708
  let threshold = 1000 / freq;
@@ -15568,24 +15737,24 @@ function throttle(fn, freq) {
15568
15737
  }
15569
15738
  var throttle_default = throttle;
15570
15739
 
15571
- // ../../node_modules/axios/lib/helpers/progressEventReducer.js
15740
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/progressEventReducer.js
15572
15741
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
15573
15742
  let bytesNotified = 0;
15574
15743
  const _speedometer = speedometer_default(50, 250);
15575
15744
  return throttle_default((e) => {
15576
- const loaded = e.loaded;
15745
+ const rawLoaded = e.loaded;
15577
15746
  const total = e.lengthComputable ? e.total : undefined;
15578
- const progressBytes = loaded - bytesNotified;
15747
+ const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
15748
+ const progressBytes = Math.max(0, loaded - bytesNotified);
15579
15749
  const rate = _speedometer(progressBytes);
15580
- const inRange = loaded <= total;
15581
- bytesNotified = loaded;
15750
+ bytesNotified = Math.max(bytesNotified, loaded);
15582
15751
  const data = {
15583
15752
  loaded,
15584
15753
  total,
15585
15754
  progress: total ? loaded / total : undefined,
15586
15755
  bytes: progressBytes,
15587
15756
  rate: rate ? rate : undefined,
15588
- estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
15757
+ estimated: rate && total ? (total - loaded) / rate : undefined,
15589
15758
  event: e,
15590
15759
  lengthComputable: total != null,
15591
15760
  [isDownloadStream ? "download" : "upload"]: true
@@ -15595,36 +15764,61 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
15595
15764
  };
15596
15765
  var progressEventDecorator = (total, throttled) => {
15597
15766
  const lengthComputable = total != null;
15598
- return [(loaded) => throttled[0]({
15599
- lengthComputable,
15600
- total,
15601
- loaded
15602
- }), throttled[1]];
15767
+ return [
15768
+ (loaded) => throttled[0]({
15769
+ lengthComputable,
15770
+ total,
15771
+ loaded
15772
+ }),
15773
+ throttled[1]
15774
+ ];
15603
15775
  };
15604
15776
  var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
15605
15777
 
15606
- // ../../node_modules/axios/lib/helpers/isURLSameOrigin.js
15778
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/isURLSameOrigin.js
15607
15779
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url) => {
15608
15780
  url = new URL(url, platform_default.origin);
15609
15781
  return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port);
15610
15782
  })(new URL(platform_default.origin), platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)) : () => true;
15611
15783
 
15612
- // ../../node_modules/axios/lib/helpers/cookies.js
15784
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/cookies.js
15613
15785
  var cookies_default = platform_default.hasStandardBrowserEnv ? {
15614
- write(name, value, expires, path, domain, secure) {
15615
- const cookie = [name + "=" + encodeURIComponent(value)];
15616
- utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
15617
- utils_default.isString(path) && cookie.push("path=" + path);
15618
- utils_default.isString(domain) && cookie.push("domain=" + domain);
15619
- secure === true && cookie.push("secure");
15786
+ write(name, value, expires, path, domain, secure, sameSite) {
15787
+ if (typeof document === "undefined")
15788
+ return;
15789
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
15790
+ if (utils_default.isNumber(expires)) {
15791
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
15792
+ }
15793
+ if (utils_default.isString(path)) {
15794
+ cookie.push(`path=${path}`);
15795
+ }
15796
+ if (utils_default.isString(domain)) {
15797
+ cookie.push(`domain=${domain}`);
15798
+ }
15799
+ if (secure === true) {
15800
+ cookie.push("secure");
15801
+ }
15802
+ if (utils_default.isString(sameSite)) {
15803
+ cookie.push(`SameSite=${sameSite}`);
15804
+ }
15620
15805
  document.cookie = cookie.join("; ");
15621
15806
  },
15622
15807
  read(name) {
15623
- const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
15624
- return match ? decodeURIComponent(match[3]) : null;
15808
+ if (typeof document === "undefined")
15809
+ return null;
15810
+ const cookies = document.cookie.split(";");
15811
+ for (let i = 0;i < cookies.length; i++) {
15812
+ const cookie = cookies[i].replace(/^\s+/, "");
15813
+ const eq = cookie.indexOf("=");
15814
+ if (eq !== -1 && cookie.slice(0, eq) === name) {
15815
+ return decodeURIComponent(cookie.slice(eq + 1));
15816
+ }
15817
+ }
15818
+ return null;
15625
15819
  },
15626
15820
  remove(name) {
15627
- this.write(name, "", Date.now() - 86400000);
15821
+ this.write(name, "", Date.now() - 86400000, "/");
15628
15822
  }
15629
15823
  } : {
15630
15824
  write() {},
@@ -15634,30 +15828,40 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? {
15634
15828
  remove() {}
15635
15829
  };
15636
15830
 
15637
- // ../../node_modules/axios/lib/helpers/isAbsoluteURL.js
15831
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
15638
15832
  function isAbsoluteURL(url) {
15833
+ if (typeof url !== "string") {
15834
+ return false;
15835
+ }
15639
15836
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
15640
15837
  }
15641
15838
 
15642
- // ../../node_modules/axios/lib/helpers/combineURLs.js
15839
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/combineURLs.js
15643
15840
  function combineURLs(baseURL, relativeURL) {
15644
15841
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
15645
15842
  }
15646
15843
 
15647
- // ../../node_modules/axios/lib/core/buildFullPath.js
15844
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/core/buildFullPath.js
15648
15845
  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
15649
15846
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
15650
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
15847
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
15651
15848
  return combineURLs(baseURL, requestedURL);
15652
15849
  }
15653
15850
  return requestedURL;
15654
15851
  }
15655
15852
 
15656
- // ../../node_modules/axios/lib/core/mergeConfig.js
15853
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/core/mergeConfig.js
15657
15854
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
15658
15855
  function mergeConfig(config1, config2) {
15659
15856
  config2 = config2 || {};
15660
- const config = {};
15857
+ const config = Object.create(null);
15858
+ Object.defineProperty(config, "hasOwnProperty", {
15859
+ __proto__: null,
15860
+ value: Object.prototype.hasOwnProperty,
15861
+ enumerable: false,
15862
+ writable: true,
15863
+ configurable: true
15864
+ });
15661
15865
  function getMergedValue(target, source, prop, caseless) {
15662
15866
  if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
15663
15867
  return utils_default.merge.call({ caseless }, target, source);
@@ -15688,9 +15892,9 @@ function mergeConfig(config1, config2) {
15688
15892
  }
15689
15893
  }
15690
15894
  function mergeDirectKeys(a, b, prop) {
15691
- if (prop in config2) {
15895
+ if (utils_default.hasOwnProp(config2, prop)) {
15692
15896
  return getMergedValue(a, b);
15693
- } else if (prop in config1) {
15897
+ } else if (utils_default.hasOwnProp(config1, prop)) {
15694
15898
  return getMergedValue(undefined, a);
15695
15899
  }
15696
15900
  }
@@ -15721,43 +15925,67 @@ function mergeConfig(config1, config2) {
15721
15925
  httpsAgent: defaultToConfig2,
15722
15926
  cancelToken: defaultToConfig2,
15723
15927
  socketPath: defaultToConfig2,
15928
+ allowedSocketPaths: defaultToConfig2,
15724
15929
  responseEncoding: defaultToConfig2,
15725
15930
  validateStatus: mergeDirectKeys,
15726
15931
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
15727
15932
  };
15728
15933
  utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
15729
- const merge2 = mergeMap[prop] || mergeDeepProperties;
15730
- const configValue = merge2(config1[prop], config2[prop], prop);
15934
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
15935
+ return;
15936
+ const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
15937
+ const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : undefined;
15938
+ const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : undefined;
15939
+ const configValue = merge2(a, b, prop);
15731
15940
  utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
15732
15941
  });
15733
15942
  return config;
15734
15943
  }
15735
15944
 
15736
- // ../../node_modules/axios/lib/helpers/resolveConfig.js
15945
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/resolveConfig.js
15946
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
15947
+ function setFormDataHeaders(headers, formHeaders, policy) {
15948
+ if (policy !== "content-only") {
15949
+ headers.set(formHeaders);
15950
+ return;
15951
+ }
15952
+ Object.entries(formHeaders).forEach(([key, val]) => {
15953
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
15954
+ headers.set(key, val);
15955
+ }
15956
+ });
15957
+ }
15958
+ var encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
15737
15959
  var resolveConfig_default = (config) => {
15738
15960
  const newConfig = mergeConfig({}, config);
15739
- let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
15961
+ const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : undefined;
15962
+ const data = own2("data");
15963
+ let withXSRFToken = own2("withXSRFToken");
15964
+ const xsrfHeaderName = own2("xsrfHeaderName");
15965
+ const xsrfCookieName = own2("xsrfCookieName");
15966
+ let headers = own2("headers");
15967
+ const auth = own2("auth");
15968
+ const baseURL = own2("baseURL");
15969
+ const allowAbsoluteUrls = own2("allowAbsoluteUrls");
15970
+ const url = own2("url");
15740
15971
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
15741
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
15972
+ newConfig.url = buildURL(buildFullPath(baseURL, url, allowAbsoluteUrls), config.params, config.paramsSerializer);
15742
15973
  if (auth) {
15743
- headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")));
15974
+ headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : "")));
15744
15975
  }
15745
15976
  if (utils_default.isFormData(data)) {
15746
15977
  if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
15747
15978
  headers.setContentType(undefined);
15748
15979
  } else if (utils_default.isFunction(data.getHeaders)) {
15749
- const formHeaders = data.getHeaders();
15750
- const allowedHeaders = ["content-type", "content-length"];
15751
- Object.entries(formHeaders).forEach(([key, val]) => {
15752
- if (allowedHeaders.includes(key.toLowerCase())) {
15753
- headers.set(key, val);
15754
- }
15755
- });
15980
+ setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
15756
15981
  }
15757
15982
  }
15758
15983
  if (platform_default.hasStandardBrowserEnv) {
15759
- withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
15760
- if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
15984
+ if (utils_default.isFunction(withXSRFToken)) {
15985
+ withXSRFToken = withXSRFToken(newConfig);
15986
+ }
15987
+ const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
15988
+ if (shouldSendXSRF) {
15761
15989
  const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
15762
15990
  if (xsrfValue) {
15763
15991
  headers.set(xsrfHeaderName, xsrfValue);
@@ -15767,7 +15995,7 @@ var resolveConfig_default = (config) => {
15767
15995
  return newConfig;
15768
15996
  };
15769
15997
 
15770
- // ../../node_modules/axios/lib/adapters/xhr.js
15998
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/adapters/xhr.js
15771
15999
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
15772
16000
  var xhr_default = isXHRAdapterSupported && function(config) {
15773
16001
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -15817,7 +16045,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15817
16045
  if (!request || request.readyState !== 4) {
15818
16046
  return;
15819
16047
  }
15820
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
16048
+ if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
15821
16049
  return;
15822
16050
  }
15823
16051
  setTimeout(onloadend);
@@ -15828,6 +16056,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15828
16056
  return;
15829
16057
  }
15830
16058
  reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
16059
+ done();
15831
16060
  request = null;
15832
16061
  };
15833
16062
  request.onerror = function handleError(event) {
@@ -15835,6 +16064,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15835
16064
  const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
15836
16065
  err.event = event || null;
15837
16066
  reject(err);
16067
+ done();
15838
16068
  request = null;
15839
16069
  };
15840
16070
  request.ontimeout = function handleTimeout() {
@@ -15844,6 +16074,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15844
16074
  timeoutErrorMessage = _config.timeoutErrorMessage;
15845
16075
  }
15846
16076
  reject(new AxiosError_default(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED, config, request));
16077
+ done();
15847
16078
  request = null;
15848
16079
  };
15849
16080
  requestData === undefined && requestHeaders.setContentType(null);
@@ -15874,6 +16105,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15874
16105
  }
15875
16106
  reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
15876
16107
  request.abort();
16108
+ done();
15877
16109
  request = null;
15878
16110
  };
15879
16111
  _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
@@ -15882,7 +16114,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15882
16114
  }
15883
16115
  }
15884
16116
  const protocol = parseProtocol(_config.url);
15885
- if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
16117
+ if (protocol && !platform_default.protocols.includes(protocol)) {
15886
16118
  reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
15887
16119
  return;
15888
16120
  }
@@ -15890,7 +16122,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15890
16122
  });
15891
16123
  };
15892
16124
 
15893
- // ../../node_modules/axios/lib/helpers/composeSignals.js
16125
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/composeSignals.js
15894
16126
  var composeSignals = (signals, timeout) => {
15895
16127
  const { length } = signals = signals ? signals.filter(Boolean) : [];
15896
16128
  if (timeout || length) {
@@ -15906,7 +16138,7 @@ var composeSignals = (signals, timeout) => {
15906
16138
  };
15907
16139
  let timer = timeout && setTimeout(() => {
15908
16140
  timer = null;
15909
- onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));
16141
+ onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
15910
16142
  }, timeout);
15911
16143
  const unsubscribe = () => {
15912
16144
  if (signals) {
@@ -15926,7 +16158,7 @@ var composeSignals = (signals, timeout) => {
15926
16158
  };
15927
16159
  var composeSignals_default = composeSignals;
15928
16160
 
15929
- // ../../node_modules/axios/lib/helpers/trackStream.js
16161
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/trackStream.js
15930
16162
  var streamChunk = function* (chunk, chunkSize) {
15931
16163
  let len = chunk.byteLength;
15932
16164
  if (!chunkSize || len < chunkSize) {
@@ -16003,17 +16235,86 @@ var trackStream = (stream, chunkSize, onProgress, onFinish) => {
16003
16235
  });
16004
16236
  };
16005
16237
 
16006
- // ../../node_modules/axios/lib/adapters/fetch.js
16238
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
16239
+ function estimateDataURLDecodedBytes(url) {
16240
+ if (!url || typeof url !== "string")
16241
+ return 0;
16242
+ if (!url.startsWith("data:"))
16243
+ return 0;
16244
+ const comma = url.indexOf(",");
16245
+ if (comma < 0)
16246
+ return 0;
16247
+ const meta = url.slice(5, comma);
16248
+ const body = url.slice(comma + 1);
16249
+ const isBase64 = /;base64/i.test(meta);
16250
+ if (isBase64) {
16251
+ let effectiveLen = body.length;
16252
+ const len = body.length;
16253
+ for (let i = 0;i < len; i++) {
16254
+ if (body.charCodeAt(i) === 37 && i + 2 < len) {
16255
+ const a = body.charCodeAt(i + 1);
16256
+ const b = body.charCodeAt(i + 2);
16257
+ 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);
16258
+ if (isHex) {
16259
+ effectiveLen -= 2;
16260
+ i += 2;
16261
+ }
16262
+ }
16263
+ }
16264
+ let pad = 0;
16265
+ let idx = len - 1;
16266
+ const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && body.charCodeAt(j - 1) === 51 && (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
16267
+ if (idx >= 0) {
16268
+ if (body.charCodeAt(idx) === 61) {
16269
+ pad++;
16270
+ idx--;
16271
+ } else if (tailIsPct3D(idx)) {
16272
+ pad++;
16273
+ idx -= 3;
16274
+ }
16275
+ }
16276
+ if (pad === 1 && idx >= 0) {
16277
+ if (body.charCodeAt(idx) === 61) {
16278
+ pad++;
16279
+ } else if (tailIsPct3D(idx)) {
16280
+ pad++;
16281
+ }
16282
+ }
16283
+ const groups = Math.floor(effectiveLen / 4);
16284
+ const bytes2 = groups * 3 - (pad || 0);
16285
+ return bytes2 > 0 ? bytes2 : 0;
16286
+ }
16287
+ if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
16288
+ return Buffer.byteLength(body, "utf8");
16289
+ }
16290
+ let bytes = 0;
16291
+ for (let i = 0, len = body.length;i < len; i++) {
16292
+ const c = body.charCodeAt(i);
16293
+ if (c < 128) {
16294
+ bytes += 1;
16295
+ } else if (c < 2048) {
16296
+ bytes += 2;
16297
+ } else if (c >= 55296 && c <= 56319 && i + 1 < len) {
16298
+ const next = body.charCodeAt(i + 1);
16299
+ if (next >= 56320 && next <= 57343) {
16300
+ bytes += 4;
16301
+ i++;
16302
+ } else {
16303
+ bytes += 3;
16304
+ }
16305
+ } else {
16306
+ bytes += 3;
16307
+ }
16308
+ }
16309
+ return bytes;
16310
+ }
16311
+
16312
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/env/data.js
16313
+ var VERSION = "1.16.0";
16314
+
16315
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/adapters/fetch.js
16007
16316
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
16008
16317
  var { isFunction: isFunction2 } = utils_default;
16009
- var globalFetchAPI = (({ Request, Response }) => ({
16010
- Request,
16011
- Response
16012
- }))(utils_default.global);
16013
- var {
16014
- ReadableStream: ReadableStream2,
16015
- TextEncoder
16016
- } = utils_default.global;
16017
16318
  var test = (fn, ...args) => {
16018
16319
  try {
16019
16320
  return !!fn(...args);
@@ -16022,9 +16323,14 @@ var test = (fn, ...args) => {
16022
16323
  }
16023
16324
  };
16024
16325
  var factory = (env) => {
16326
+ const globalObject = utils_default.global ?? globalThis;
16327
+ const { ReadableStream: ReadableStream2, TextEncoder } = globalObject;
16025
16328
  env = utils_default.merge.call({
16026
16329
  skipUndefined: true
16027
- }, globalFetchAPI, env);
16330
+ }, {
16331
+ Request: globalObject.Request,
16332
+ Response: globalObject.Response
16333
+ }, env);
16028
16334
  const { fetch: envFetch, Request, Response } = env;
16029
16335
  const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
16030
16336
  const isRequestSupported = isFunction2(Request);
@@ -16036,14 +16342,18 @@ var factory = (env) => {
16036
16342
  const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
16037
16343
  const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
16038
16344
  let duplexAccessed = false;
16039
- const hasContentType = new Request(platform_default.origin, {
16345
+ const request = new Request(platform_default.origin, {
16040
16346
  body: new ReadableStream2,
16041
16347
  method: "POST",
16042
16348
  get duplex() {
16043
16349
  duplexAccessed = true;
16044
16350
  return "half";
16045
16351
  }
16046
- }).headers.has("Content-Type");
16352
+ });
16353
+ const hasContentType = request.headers.has("Content-Type");
16354
+ if (request.body != null) {
16355
+ request.body.cancel();
16356
+ }
16047
16357
  return duplexAccessed && !hasContentType;
16048
16358
  });
16049
16359
  const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
@@ -16102,8 +16412,12 @@ var factory = (env) => {
16102
16412
  responseType,
16103
16413
  headers,
16104
16414
  withCredentials = "same-origin",
16105
- fetchOptions
16415
+ fetchOptions,
16416
+ maxContentLength,
16417
+ maxBodyLength
16106
16418
  } = resolveConfig_default(config);
16419
+ const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
16420
+ const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
16107
16421
  let _fetch = envFetch || fetch;
16108
16422
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
16109
16423
  let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
@@ -16113,6 +16427,18 @@ var factory = (env) => {
16113
16427
  });
16114
16428
  let requestContentLength;
16115
16429
  try {
16430
+ if (hasMaxContentLength && typeof url === "string" && url.startsWith("data:")) {
16431
+ const estimated = estimateDataURLDecodedBytes(url);
16432
+ if (estimated > maxContentLength) {
16433
+ throw new AxiosError_default("maxContentLength size of " + maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config, request);
16434
+ }
16435
+ }
16436
+ if (hasMaxBodyLength && method !== "get" && method !== "head") {
16437
+ const outboundLength = await resolveBodyLength(headers, data);
16438
+ if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
16439
+ throw new AxiosError_default("Request body larger than maxBodyLength limit", AxiosError_default.ERR_BAD_REQUEST, config, request);
16440
+ }
16441
+ }
16116
16442
  if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
16117
16443
  let _request = new Request(url, {
16118
16444
  method: "POST",
@@ -16132,6 +16458,13 @@ var factory = (env) => {
16132
16458
  withCredentials = withCredentials ? "include" : "omit";
16133
16459
  }
16134
16460
  const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
16461
+ if (utils_default.isFormData(data)) {
16462
+ const contentType = headers.getContentType();
16463
+ if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
16464
+ headers.delete("content-type");
16465
+ }
16466
+ }
16467
+ headers.set("User-Agent", "axios/" + VERSION, false);
16135
16468
  const resolvedOptions = {
16136
16469
  ...fetchOptions,
16137
16470
  signal: composedSignal,
@@ -16143,21 +16476,52 @@ var factory = (env) => {
16143
16476
  };
16144
16477
  request = isRequestSupported && new Request(url, resolvedOptions);
16145
16478
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
16479
+ if (hasMaxContentLength) {
16480
+ const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16481
+ if (declaredLength != null && declaredLength > maxContentLength) {
16482
+ throw new AxiosError_default("maxContentLength size of " + maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config, request);
16483
+ }
16484
+ }
16146
16485
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
16147
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
16486
+ if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
16148
16487
  const options = {};
16149
16488
  ["status", "statusText", "headers"].forEach((prop) => {
16150
16489
  options[prop] = response[prop];
16151
16490
  });
16152
16491
  const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16153
16492
  const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
16154
- response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
16493
+ let bytesRead = 0;
16494
+ const onChunkProgress = (loadedBytes) => {
16495
+ if (hasMaxContentLength) {
16496
+ bytesRead = loadedBytes;
16497
+ if (bytesRead > maxContentLength) {
16498
+ throw new AxiosError_default("maxContentLength size of " + maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config, request);
16499
+ }
16500
+ }
16501
+ onProgress && onProgress(loadedBytes);
16502
+ };
16503
+ response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
16155
16504
  flush && flush();
16156
16505
  unsubscribe && unsubscribe();
16157
16506
  }), options);
16158
16507
  }
16159
16508
  responseType = responseType || "text";
16160
16509
  let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
16510
+ if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
16511
+ let materializedSize;
16512
+ if (responseData != null) {
16513
+ if (typeof responseData.byteLength === "number") {
16514
+ materializedSize = responseData.byteLength;
16515
+ } else if (typeof responseData.size === "number") {
16516
+ materializedSize = responseData.size;
16517
+ } else if (typeof responseData === "string") {
16518
+ materializedSize = typeof TextEncoder === "function" ? new TextEncoder().encode(responseData).byteLength : responseData.length;
16519
+ }
16520
+ }
16521
+ if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
16522
+ throw new AxiosError_default("maxContentLength size of " + maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config, request);
16523
+ }
16524
+ }
16161
16525
  !isStreamResponse && unsubscribe && unsubscribe();
16162
16526
  return await new Promise((resolve, reject) => {
16163
16527
  settle(resolve, reject, {
@@ -16171,24 +16535,27 @@ var factory = (env) => {
16171
16535
  });
16172
16536
  } catch (err) {
16173
16537
  unsubscribe && unsubscribe();
16538
+ if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
16539
+ const canceledError = composedSignal.reason;
16540
+ canceledError.config = config;
16541
+ request && (canceledError.request = request);
16542
+ err !== canceledError && (canceledError.cause = err);
16543
+ throw canceledError;
16544
+ }
16174
16545
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
16175
- throw Object.assign(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request), {
16546
+ throw Object.assign(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request, err && err.response), {
16176
16547
  cause: err.cause || err
16177
16548
  });
16178
16549
  }
16179
- throw AxiosError_default.from(err, err && err.code, config, request);
16550
+ throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
16180
16551
  }
16181
16552
  };
16182
16553
  };
16183
16554
  var seedCache = new Map;
16184
16555
  var getFetch = (config) => {
16185
- let env = config ? config.env : {};
16556
+ let env = config && config.env || {};
16186
16557
  const { fetch: fetch2, Request, Response } = env;
16187
- const seeds = [
16188
- Request,
16189
- Response,
16190
- fetch2
16191
- ];
16558
+ const seeds = [Request, Response, fetch2];
16192
16559
  let len = seeds.length, i = len, seed, target, map = seedCache;
16193
16560
  while (i--) {
16194
16561
  seed = seeds[i];
@@ -16200,7 +16567,7 @@ var getFetch = (config) => {
16200
16567
  };
16201
16568
  var adapter = getFetch();
16202
16569
 
16203
- // ../../node_modules/axios/lib/adapters/adapters.js
16570
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/adapters/adapters.js
16204
16571
  var knownAdapters = {
16205
16572
  http: null_default,
16206
16573
  xhr: xhr_default,
@@ -16211,48 +16578,49 @@ var knownAdapters = {
16211
16578
  utils_default.forEach(knownAdapters, (fn, value) => {
16212
16579
  if (fn) {
16213
16580
  try {
16214
- Object.defineProperty(fn, "name", { value });
16581
+ Object.defineProperty(fn, "name", { __proto__: null, value });
16215
16582
  } catch (e) {}
16216
- Object.defineProperty(fn, "adapterName", { value });
16583
+ Object.defineProperty(fn, "adapterName", { __proto__: null, value });
16217
16584
  }
16218
16585
  });
16219
16586
  var renderReason = (reason) => `- ${reason}`;
16220
16587
  var isResolvedHandle = (adapter2) => utils_default.isFunction(adapter2) || adapter2 === null || adapter2 === false;
16221
- var adapters_default = {
16222
- getAdapter: (adapters, config) => {
16223
- adapters = utils_default.isArray(adapters) ? adapters : [adapters];
16224
- const { length } = adapters;
16225
- let nameOrAdapter;
16226
- let adapter2;
16227
- const rejectedReasons = {};
16228
- for (let i = 0;i < length; i++) {
16229
- nameOrAdapter = adapters[i];
16230
- let id;
16231
- adapter2 = nameOrAdapter;
16232
- if (!isResolvedHandle(nameOrAdapter)) {
16233
- adapter2 = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
16234
- if (adapter2 === undefined) {
16235
- throw new AxiosError_default(`Unknown adapter '${id}'`);
16236
- }
16237
- }
16238
- if (adapter2 && (utils_default.isFunction(adapter2) || (adapter2 = adapter2.get(config)))) {
16239
- break;
16240
- }
16241
- rejectedReasons[id || "#" + i] = adapter2;
16588
+ function getAdapter(adapters, config) {
16589
+ adapters = utils_default.isArray(adapters) ? adapters : [adapters];
16590
+ const { length } = adapters;
16591
+ let nameOrAdapter;
16592
+ let adapter2;
16593
+ const rejectedReasons = {};
16594
+ for (let i = 0;i < length; i++) {
16595
+ nameOrAdapter = adapters[i];
16596
+ let id;
16597
+ adapter2 = nameOrAdapter;
16598
+ if (!isResolvedHandle(nameOrAdapter)) {
16599
+ adapter2 = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
16600
+ if (adapter2 === undefined) {
16601
+ throw new AxiosError_default(`Unknown adapter '${id}'`);
16602
+ }
16603
+ }
16604
+ if (adapter2 && (utils_default.isFunction(adapter2) || (adapter2 = adapter2.get(config)))) {
16605
+ break;
16242
16606
  }
16243
- if (!adapter2) {
16244
- const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));
16245
- let s = length ? reasons.length > 1 ? `since :
16607
+ rejectedReasons[id || "#" + i] = adapter2;
16608
+ }
16609
+ if (!adapter2) {
16610
+ const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));
16611
+ let s = length ? reasons.length > 1 ? `since :
16246
16612
  ` + reasons.map(renderReason).join(`
16247
16613
  `) : " " + renderReason(reasons[0]) : "as no adapter specified";
16248
- throw new AxiosError_default(`There is no suitable adapter to dispatch the request ` + s, "ERR_NOT_SUPPORT");
16249
- }
16250
- return adapter2;
16251
- },
16614
+ throw new AxiosError_default(`There is no suitable adapter to dispatch the request ` + s, "ERR_NOT_SUPPORT");
16615
+ }
16616
+ return adapter2;
16617
+ }
16618
+ var adapters_default = {
16619
+ getAdapter,
16252
16620
  adapters: knownAdapters
16253
16621
  };
16254
16622
 
16255
- // ../../node_modules/axios/lib/core/dispatchRequest.js
16623
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/core/dispatchRequest.js
16256
16624
  function throwIfCancellationRequested(config) {
16257
16625
  if (config.cancelToken) {
16258
16626
  config.cancelToken.throwIfRequested();
@@ -16271,14 +16639,24 @@ function dispatchRequest(config) {
16271
16639
  const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
16272
16640
  return adapter2(config).then(function onAdapterResolution(response) {
16273
16641
  throwIfCancellationRequested(config);
16274
- response.data = transformData.call(config, config.transformResponse, response);
16642
+ config.response = response;
16643
+ try {
16644
+ response.data = transformData.call(config, config.transformResponse, response);
16645
+ } finally {
16646
+ delete config.response;
16647
+ }
16275
16648
  response.headers = AxiosHeaders_default.from(response.headers);
16276
16649
  return response;
16277
16650
  }, function onAdapterRejection(reason) {
16278
16651
  if (!isCancel(reason)) {
16279
16652
  throwIfCancellationRequested(config);
16280
16653
  if (reason && reason.response) {
16281
- reason.response.data = transformData.call(config, config.transformResponse, reason.response);
16654
+ config.response = reason.response;
16655
+ try {
16656
+ reason.response.data = transformData.call(config, config.transformResponse, reason.response);
16657
+ } finally {
16658
+ delete config.response;
16659
+ }
16282
16660
  reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
16283
16661
  }
16284
16662
  }
@@ -16286,10 +16664,7 @@ function dispatchRequest(config) {
16286
16664
  });
16287
16665
  }
16288
16666
 
16289
- // ../../node_modules/axios/lib/env/data.js
16290
- var VERSION = "1.12.2";
16291
-
16292
- // ../../node_modules/axios/lib/helpers/validator.js
16667
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/validator.js
16293
16668
  var validators = {};
16294
16669
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
16295
16670
  validators[type] = function validator(thing) {
@@ -16326,7 +16701,7 @@ function assertOptions(options, schema, allowUnknown) {
16326
16701
  let i = keys.length;
16327
16702
  while (i-- > 0) {
16328
16703
  const opt = keys[i];
16329
- const validator = schema[opt];
16704
+ const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : undefined;
16330
16705
  if (validator) {
16331
16706
  const value = options[opt];
16332
16707
  const result = value === undefined || validator(value, opt, options);
@@ -16345,7 +16720,7 @@ var validator_default = {
16345
16720
  validators
16346
16721
  };
16347
16722
 
16348
- // ../../node_modules/axios/lib/core/Axios.js
16723
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/core/Axios.js
16349
16724
  var validators2 = validator_default.validators;
16350
16725
 
16351
16726
  class Axios {
@@ -16363,13 +16738,27 @@ class Axios {
16363
16738
  if (err instanceof Error) {
16364
16739
  let dummy = {};
16365
16740
  Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error;
16366
- const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
16741
+ const stack = (() => {
16742
+ if (!dummy.stack) {
16743
+ return "";
16744
+ }
16745
+ const firstNewlineIndex = dummy.stack.indexOf(`
16746
+ `);
16747
+ return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
16748
+ })();
16367
16749
  try {
16368
16750
  if (!err.stack) {
16369
16751
  err.stack = stack;
16370
- } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
16371
- err.stack += `
16752
+ } else if (stack) {
16753
+ const firstNewlineIndex = stack.indexOf(`
16754
+ `);
16755
+ const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf(`
16756
+ `, firstNewlineIndex + 1);
16757
+ const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
16758
+ if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
16759
+ err.stack += `
16372
16760
  ` + stack;
16761
+ }
16373
16762
  }
16374
16763
  } catch (e) {}
16375
16764
  }
@@ -16389,7 +16778,8 @@ class Axios {
16389
16778
  validator_default.assertOptions(transitional2, {
16390
16779
  silentJSONParsing: validators2.transitional(validators2.boolean),
16391
16780
  forcedJSONParsing: validators2.transitional(validators2.boolean),
16392
- clarifyTimeoutError: validators2.transitional(validators2.boolean)
16781
+ clarifyTimeoutError: validators2.transitional(validators2.boolean),
16782
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
16393
16783
  }, false);
16394
16784
  }
16395
16785
  if (paramsSerializer != null) {
@@ -16415,7 +16805,7 @@ class Axios {
16415
16805
  }, true);
16416
16806
  config.method = (config.method || this.defaults.method || "get").toLowerCase();
16417
16807
  let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
16418
- headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
16808
+ headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
16419
16809
  delete headers[method];
16420
16810
  });
16421
16811
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
@@ -16426,7 +16816,13 @@ class Axios {
16426
16816
  return;
16427
16817
  }
16428
16818
  synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
16429
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
16819
+ const transitional3 = config.transitional || transitional_default;
16820
+ const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
16821
+ if (legacyInterceptorReqResOrdering) {
16822
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
16823
+ } else {
16824
+ requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
16825
+ }
16430
16826
  });
16431
16827
  const responseInterceptorChain = [];
16432
16828
  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
@@ -16485,7 +16881,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
16485
16881
  }));
16486
16882
  };
16487
16883
  });
16488
- utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
16884
+ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
16489
16885
  function generateHTTPMethod(isForm) {
16490
16886
  return function httpMethod(url, data, config) {
16491
16887
  return this.request(mergeConfig(config || {}, {
@@ -16499,11 +16895,13 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
16499
16895
  };
16500
16896
  }
16501
16897
  Axios.prototype[method] = generateHTTPMethod();
16502
- Axios.prototype[method + "Form"] = generateHTTPMethod(true);
16898
+ if (method !== "query") {
16899
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
16900
+ }
16503
16901
  });
16504
16902
  var Axios_default = Axios;
16505
16903
 
16506
- // ../../node_modules/axios/lib/cancel/CancelToken.js
16904
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/cancel/CancelToken.js
16507
16905
  class CancelToken {
16508
16906
  constructor(executor) {
16509
16907
  if (typeof executor !== "function") {
@@ -16589,19 +16987,19 @@ class CancelToken {
16589
16987
  }
16590
16988
  var CancelToken_default = CancelToken;
16591
16989
 
16592
- // ../../node_modules/axios/lib/helpers/spread.js
16990
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/spread.js
16593
16991
  function spread(callback) {
16594
16992
  return function wrap(arr) {
16595
16993
  return callback.apply(null, arr);
16596
16994
  };
16597
16995
  }
16598
16996
 
16599
- // ../../node_modules/axios/lib/helpers/isAxiosError.js
16997
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/isAxiosError.js
16600
16998
  function isAxiosError(payload) {
16601
16999
  return utils_default.isObject(payload) && payload.isAxiosError === true;
16602
17000
  }
16603
17001
 
16604
- // ../../node_modules/axios/lib/helpers/HttpStatusCode.js
17002
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/helpers/HttpStatusCode.js
16605
17003
  var HttpStatusCode = {
16606
17004
  Continue: 100,
16607
17005
  SwitchingProtocols: 101,
@@ -16665,14 +17063,20 @@ var HttpStatusCode = {
16665
17063
  InsufficientStorage: 507,
16666
17064
  LoopDetected: 508,
16667
17065
  NotExtended: 510,
16668
- NetworkAuthenticationRequired: 511
17066
+ NetworkAuthenticationRequired: 511,
17067
+ WebServerIsDown: 521,
17068
+ ConnectionTimedOut: 522,
17069
+ OriginIsUnreachable: 523,
17070
+ TimeoutOccurred: 524,
17071
+ SslHandshakeFailed: 525,
17072
+ InvalidSslCertificate: 526
16669
17073
  };
16670
17074
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
16671
17075
  HttpStatusCode[value] = key;
16672
17076
  });
16673
17077
  var HttpStatusCode_default = HttpStatusCode;
16674
17078
 
16675
- // ../../node_modules/axios/lib/axios.js
17079
+ // ../../node_modules/.bun/axios@1.16.0/node_modules/axios/lib/axios.js
16676
17080
  function createInstance(defaultConfig) {
16677
17081
  const context = new Axios_default(defaultConfig);
16678
17082
  const instance = bind(Axios_default.prototype.request, context);
@@ -16708,7 +17112,7 @@ var axios_default = axios;
16708
17112
  // src/web.ts
16709
17113
  var import_json53 = __toESM(require_dist(), 1);
16710
17114
 
16711
- // ../../node_modules/animejs/lib/anime.es.js
17115
+ // ../../node_modules/.bun/animejs@3.2.2/node_modules/animejs/lib/anime.es.js
16712
17116
  var defaultInstanceSettings = {
16713
17117
  update: null,
16714
17118
  begin: null,
@@ -19674,7 +20078,7 @@ var generateUniqueFileName = (name) => {
19674
20078
  throw new Error("Invalid filename format.");
19675
20079
  };
19676
20080
 
19677
- // ../../node_modules/decimal.js/decimal.mjs
20081
+ // ../../node_modules/.bun/decimal.js@10.6.0/node_modules/decimal.js/decimal.mjs
19678
20082
  /*!
19679
20083
  * decimal.js v10.6.0
19680
20084
  * An arbitrary-precision Decimal type for JavaScript.