@fre4x/arxiv 1.1.3 → 1.1.7

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.
Files changed (2) hide show
  1. package/dist/index.js +472 -487
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13,7 +13,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
13
13
  throw Error('Dynamic require of "' + x + '" is not supported');
14
14
  });
15
15
  var __commonJS = (cb, mod) => function __require2() {
16
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
+ try {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ } catch (e) {
19
+ throw mod = 0, e;
20
+ }
17
21
  };
18
22
  var __export = (target, all3) => {
19
23
  for (var name in all3)
@@ -3112,6 +3116,9 @@ var require_utils = __commonJS({
3112
3116
  "use strict";
3113
3117
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3114
3118
  var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
3119
+ var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
3120
+ var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
3121
+ var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
3115
3122
  function stringArrayToHexStripped(input) {
3116
3123
  let acc = "";
3117
3124
  let code = 0;
@@ -3304,27 +3311,77 @@ var require_utils = __commonJS({
3304
3311
  }
3305
3312
  return output.join("");
3306
3313
  }
3307
- function normalizeComponentEncoding(component, esc2) {
3308
- const func = esc2 !== true ? escape : unescape;
3309
- if (component.scheme !== void 0) {
3310
- component.scheme = func(component.scheme);
3311
- }
3312
- if (component.userinfo !== void 0) {
3313
- component.userinfo = func(component.userinfo);
3314
- }
3315
- if (component.host !== void 0) {
3316
- component.host = func(component.host);
3314
+ var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
3315
+ var HOST_DELIM_RE = /[@/?#:]/g;
3316
+ var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
3317
+ function reescapeHostDelimiters(host, isIP) {
3318
+ const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
3319
+ re.lastIndex = 0;
3320
+ return host.replace(re, (ch) => HOST_DELIMS[ch]);
3321
+ }
3322
+ function normalizePercentEncoding(input, decodeUnreserved = false) {
3323
+ if (input.indexOf("%") === -1) {
3324
+ return input;
3317
3325
  }
3318
- if (component.path !== void 0) {
3319
- component.path = func(component.path);
3326
+ let output = "";
3327
+ for (let i = 0; i < input.length; i++) {
3328
+ if (input[i] === "%" && i + 2 < input.length) {
3329
+ const hex3 = input.slice(i + 1, i + 3);
3330
+ if (isHexPair(hex3)) {
3331
+ const normalizedHex = hex3.toUpperCase();
3332
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
3333
+ if (decodeUnreserved && isUnreserved(decoded)) {
3334
+ output += decoded;
3335
+ } else {
3336
+ output += "%" + normalizedHex;
3337
+ }
3338
+ i += 2;
3339
+ continue;
3340
+ }
3341
+ }
3342
+ output += input[i];
3320
3343
  }
3321
- if (component.query !== void 0) {
3322
- component.query = func(component.query);
3344
+ return output;
3345
+ }
3346
+ function normalizePathEncoding(input) {
3347
+ let output = "";
3348
+ for (let i = 0; i < input.length; i++) {
3349
+ if (input[i] === "%" && i + 2 < input.length) {
3350
+ const hex3 = input.slice(i + 1, i + 3);
3351
+ if (isHexPair(hex3)) {
3352
+ const normalizedHex = hex3.toUpperCase();
3353
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
3354
+ if (decoded !== "." && isUnreserved(decoded)) {
3355
+ output += decoded;
3356
+ } else {
3357
+ output += "%" + normalizedHex;
3358
+ }
3359
+ i += 2;
3360
+ continue;
3361
+ }
3362
+ }
3363
+ if (isPathCharacter(input[i])) {
3364
+ output += input[i];
3365
+ } else {
3366
+ output += escape(input[i]);
3367
+ }
3323
3368
  }
3324
- if (component.fragment !== void 0) {
3325
- component.fragment = func(component.fragment);
3369
+ return output;
3370
+ }
3371
+ function escapePreservingEscapes(input) {
3372
+ let output = "";
3373
+ for (let i = 0; i < input.length; i++) {
3374
+ if (input[i] === "%" && i + 2 < input.length) {
3375
+ const hex3 = input.slice(i + 1, i + 3);
3376
+ if (isHexPair(hex3)) {
3377
+ output += "%" + hex3.toUpperCase();
3378
+ i += 2;
3379
+ continue;
3380
+ }
3381
+ }
3382
+ output += escape(input[i]);
3326
3383
  }
3327
- return component;
3384
+ return output;
3328
3385
  }
3329
3386
  function recomposeAuthority(component) {
3330
3387
  const uriTokens = [];
@@ -3339,7 +3396,7 @@ var require_utils = __commonJS({
3339
3396
  if (ipV6res.isIPV6 === true) {
3340
3397
  host = `[${ipV6res.escapedHost}]`;
3341
3398
  } else {
3342
- host = component.host;
3399
+ host = reescapeHostDelimiters(host, false);
3343
3400
  }
3344
3401
  }
3345
3402
  uriTokens.push(host);
@@ -3353,7 +3410,10 @@ var require_utils = __commonJS({
3353
3410
  module.exports = {
3354
3411
  nonSimpleDomain,
3355
3412
  recomposeAuthority,
3356
- normalizeComponentEncoding,
3413
+ reescapeHostDelimiters,
3414
+ normalizePercentEncoding,
3415
+ normalizePathEncoding,
3416
+ escapePreservingEscapes,
3357
3417
  removeDotSegments,
3358
3418
  isIPv4,
3359
3419
  isUUID,
@@ -3577,12 +3637,12 @@ var require_schemes = __commonJS({
3577
3637
  var require_fast_uri = __commonJS({
3578
3638
  "../node_modules/fast-uri/index.js"(exports2, module) {
3579
3639
  "use strict";
3580
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
3640
+ var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3581
3641
  var { SCHEMES, getSchemeHandler } = require_schemes();
3582
3642
  function normalize(uri, options) {
3583
3643
  if (typeof uri === "string") {
3584
3644
  uri = /** @type {T} */
3585
- serialize(parse3(uri, options), options);
3645
+ normalizeString(uri, options);
3586
3646
  } else if (typeof uri === "object") {
3587
3647
  uri = /** @type {T} */
3588
3648
  parse3(serialize(uri, options), options);
@@ -3649,19 +3709,9 @@ var require_fast_uri = __commonJS({
3649
3709
  return target;
3650
3710
  }
3651
3711
  function equal(uriA, uriB, options) {
3652
- if (typeof uriA === "string") {
3653
- uriA = unescape(uriA);
3654
- uriA = serialize(normalizeComponentEncoding(parse3(uriA, options), true), { ...options, skipEscape: true });
3655
- } else if (typeof uriA === "object") {
3656
- uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
3657
- }
3658
- if (typeof uriB === "string") {
3659
- uriB = unescape(uriB);
3660
- uriB = serialize(normalizeComponentEncoding(parse3(uriB, options), true), { ...options, skipEscape: true });
3661
- } else if (typeof uriB === "object") {
3662
- uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
3663
- }
3664
- return uriA.toLowerCase() === uriB.toLowerCase();
3712
+ const normalizedA = normalizeComparableURI(uriA, options);
3713
+ const normalizedB = normalizeComparableURI(uriB, options);
3714
+ return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA.toLowerCase() === normalizedB.toLowerCase();
3665
3715
  }
3666
3716
  function serialize(cmpts, opts) {
3667
3717
  const component = {
@@ -3686,12 +3736,12 @@ var require_fast_uri = __commonJS({
3686
3736
  if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
3687
3737
  if (component.path !== void 0) {
3688
3738
  if (!options.skipEscape) {
3689
- component.path = escape(component.path);
3739
+ component.path = escapePreservingEscapes(component.path);
3690
3740
  if (component.scheme !== void 0) {
3691
3741
  component.path = component.path.split("%3A").join(":");
3692
3742
  }
3693
3743
  } else {
3694
- component.path = unescape(component.path);
3744
+ component.path = normalizePercentEncoding(component.path);
3695
3745
  }
3696
3746
  }
3697
3747
  if (options.reference !== "suffix" && component.scheme) {
@@ -3726,7 +3776,16 @@ var require_fast_uri = __commonJS({
3726
3776
  return uriTokens.join("");
3727
3777
  }
3728
3778
  var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
3729
- function parse3(uri, opts) {
3779
+ function getParseError(parsed, matches) {
3780
+ if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
3781
+ return 'URI path must start with "/" when authority is present.';
3782
+ }
3783
+ if (typeof parsed.port === "number" && (parsed.port < 0 || parsed.port > 65535)) {
3784
+ return "URI port is malformed.";
3785
+ }
3786
+ return void 0;
3787
+ }
3788
+ function parseWithStatus(uri, opts) {
3730
3789
  const options = Object.assign({}, opts);
3731
3790
  const parsed = {
3732
3791
  scheme: void 0,
@@ -3737,6 +3796,7 @@ var require_fast_uri = __commonJS({
3737
3796
  query: void 0,
3738
3797
  fragment: void 0
3739
3798
  };
3799
+ let malformedAuthorityOrPort = false;
3740
3800
  let isIP = false;
3741
3801
  if (options.reference === "suffix") {
3742
3802
  if (options.scheme) {
@@ -3757,6 +3817,11 @@ var require_fast_uri = __commonJS({
3757
3817
  if (isNaN(parsed.port)) {
3758
3818
  parsed.port = matches[5];
3759
3819
  }
3820
+ const parseError = getParseError(parsed, matches);
3821
+ if (parseError !== void 0) {
3822
+ parsed.error = parsed.error || parseError;
3823
+ malformedAuthorityOrPort = true;
3824
+ }
3760
3825
  if (parsed.host) {
3761
3826
  const ipv4result = isIPv4(parsed.host);
3762
3827
  if (ipv4result === false) {
@@ -3795,14 +3860,18 @@ var require_fast_uri = __commonJS({
3795
3860
  parsed.scheme = unescape(parsed.scheme);
3796
3861
  }
3797
3862
  if (parsed.host !== void 0) {
3798
- parsed.host = unescape(parsed.host);
3863
+ parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP);
3799
3864
  }
3800
3865
  }
3801
3866
  if (parsed.path) {
3802
- parsed.path = escape(unescape(parsed.path));
3867
+ parsed.path = normalizePathEncoding(parsed.path);
3803
3868
  }
3804
3869
  if (parsed.fragment) {
3805
- parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
3870
+ try {
3871
+ parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
3872
+ } catch {
3873
+ parsed.error = parsed.error || "URI malformed";
3874
+ }
3806
3875
  }
3807
3876
  }
3808
3877
  if (schemeHandler && schemeHandler.parse) {
@@ -3811,7 +3880,29 @@ var require_fast_uri = __commonJS({
3811
3880
  } else {
3812
3881
  parsed.error = parsed.error || "URI can not be parsed.";
3813
3882
  }
3814
- return parsed;
3883
+ return { parsed, malformedAuthorityOrPort };
3884
+ }
3885
+ function parse3(uri, opts) {
3886
+ return parseWithStatus(uri, opts).parsed;
3887
+ }
3888
+ function normalizeString(uri, opts) {
3889
+ return normalizeStringWithStatus(uri, opts).normalized;
3890
+ }
3891
+ function normalizeStringWithStatus(uri, opts) {
3892
+ const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
3893
+ return {
3894
+ normalized: malformedAuthorityOrPort ? uri : serialize(parsed, opts),
3895
+ malformedAuthorityOrPort
3896
+ };
3897
+ }
3898
+ function normalizeComparableURI(uri, opts) {
3899
+ if (typeof uri === "string") {
3900
+ const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
3901
+ return malformedAuthorityOrPort ? void 0 : normalized;
3902
+ }
3903
+ if (typeof uri === "object") {
3904
+ return serialize(uri, opts);
3905
+ }
3815
3906
  }
3816
3907
  var fastUri = {
3817
3908
  SCHEMES,
@@ -16773,6 +16864,9 @@ var require_form_data = __commonJS({
16773
16864
  var setToStringTag = require_es_set_tostringtag();
16774
16865
  var hasOwn = require_hasown();
16775
16866
  var populate = require_populate();
16867
+ function escapeHeaderParam(str) {
16868
+ return String(str).replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/"/g, "%22");
16869
+ }
16776
16870
  function FormData3(options) {
16777
16871
  if (!(this instanceof FormData3)) {
16778
16872
  return new FormData3(options);
@@ -16862,7 +16956,7 @@ var require_form_data = __commonJS({
16862
16956
  var contents = "";
16863
16957
  var headers = {
16864
16958
  // add custom disposition as third element or keep it two elements if not
16865
- "Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
16959
+ "Content-Disposition": ["form-data", 'name="' + escapeHeaderParam(field) + '"'].concat(contentDisposition || []),
16866
16960
  // if no content type. allow it to be empty array
16867
16961
  "Content-Type": [].concat(contentType || [])
16868
16962
  };
@@ -16896,7 +16990,7 @@ var require_form_data = __commonJS({
16896
16990
  filename = path.basename(value.client._httpMessage.path || "");
16897
16991
  }
16898
16992
  if (filename) {
16899
- return 'filename="' + filename + '"';
16993
+ return 'filename="' + escapeHeaderParam(filename) + '"';
16900
16994
  }
16901
16995
  };
16902
16996
  FormData3.prototype._getContentType = function(value, options) {
@@ -17963,6 +18057,11 @@ var require_follow_redirects = __commonJS({
17963
18057
  } catch (error48) {
17964
18058
  useNativeURL = error48.code === "ERR_INVALID_URL";
17965
18059
  }
18060
+ var sensitiveHeaders = [
18061
+ "Authorization",
18062
+ "Proxy-Authorization",
18063
+ "Cookie"
18064
+ ];
17966
18065
  var preservedUrlFields = [
17967
18066
  "auth",
17968
18067
  "host",
@@ -18027,6 +18126,7 @@ var require_follow_redirects = __commonJS({
18027
18126
  self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
18028
18127
  }
18029
18128
  };
18129
+ this._headerFilter = new RegExp("^(?:" + sensitiveHeaders.concat(options.sensitiveHeaders).map(escapeRegex2).join("|") + ")$", "i");
18030
18130
  this._performRequest();
18031
18131
  }
18032
18132
  RedirectableRequest.prototype = Object.create(Writable.prototype);
@@ -18164,6 +18264,9 @@ var require_follow_redirects = __commonJS({
18164
18264
  if (!options.headers) {
18165
18265
  options.headers = {};
18166
18266
  }
18267
+ if (!isArray2(options.sensitiveHeaders)) {
18268
+ options.sensitiveHeaders = [];
18269
+ }
18167
18270
  if (options.host) {
18168
18271
  if (!options.hostname) {
18169
18272
  options.hostname = options.host;
@@ -18269,7 +18372,7 @@ var require_follow_redirects = __commonJS({
18269
18372
  this._isRedirect = true;
18270
18373
  spreadUrlObject(redirectUrl, this._options);
18271
18374
  if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
18272
- removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
18375
+ removeMatchingHeaders(this._headerFilter, this._options.headers);
18273
18376
  }
18274
18377
  if (isFunction3(beforeRedirect)) {
18275
18378
  var responseDetails = {
@@ -18418,6 +18521,9 @@ var require_follow_redirects = __commonJS({
18418
18521
  var dot = subdomain.length - domain2.length - 1;
18419
18522
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain2);
18420
18523
  }
18524
+ function isArray2(value) {
18525
+ return value instanceof Array;
18526
+ }
18421
18527
  function isString2(value) {
18422
18528
  return typeof value === "string" || value instanceof String;
18423
18529
  }
@@ -18430,6 +18536,9 @@ var require_follow_redirects = __commonJS({
18430
18536
  function isURL(value) {
18431
18537
  return URL2 && value instanceof URL2;
18432
18538
  }
18539
+ function escapeRegex2(regex) {
18540
+ return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
18541
+ }
18433
18542
  module.exports = wrap({ http: http3, https: https3 });
18434
18543
  module.exports.wrap = wrap;
18435
18544
  }
@@ -42081,25 +42190,12 @@ var isEmptyObject = (val) => {
42081
42190
  };
42082
42191
  var isDate = kindOfTest("Date");
42083
42192
  var isFile = kindOfTest("File");
42084
- var isReactNativeBlob = (value) => {
42085
- return !!(value && typeof value.uri !== "undefined");
42086
- };
42087
- var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
42088
42193
  var isBlob = kindOfTest("Blob");
42089
42194
  var isFileList = kindOfTest("FileList");
42090
42195
  var isStream = (val) => isObject2(val) && isFunction(val.pipe);
42091
- function getGlobal() {
42092
- if (typeof globalThis !== "undefined") return globalThis;
42093
- if (typeof self !== "undefined") return self;
42094
- if (typeof window !== "undefined") return window;
42095
- if (typeof global !== "undefined") return global;
42096
- return {};
42097
- }
42098
- var G = getGlobal();
42099
- var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
42100
42196
  var isFormData = (thing) => {
42101
42197
  let kind;
42102
- return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
42198
+ return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
42103
42199
  kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
42104
42200
  };
42105
42201
  var isURLSearchParams = kindOfTest("URLSearchParams");
@@ -42109,9 +42205,7 @@ var [isReadableStream, isRequest, isResponse, isHeaders] = [
42109
42205
  "Response",
42110
42206
  "Headers"
42111
42207
  ].map(kindOfTest);
42112
- var trim = (str) => {
42113
- return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
42114
- };
42208
+ var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
42115
42209
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
42116
42210
  if (obj === null || typeof obj === "undefined") {
42117
42211
  return;
@@ -42213,7 +42307,10 @@ var stripBOM = (content) => {
42213
42307
  return content;
42214
42308
  };
42215
42309
  var inherits = (constructor, superConstructor, props, descriptors) => {
42216
- constructor.prototype = Object.create(superConstructor.prototype, descriptors);
42310
+ constructor.prototype = Object.create(
42311
+ superConstructor.prototype,
42312
+ descriptors
42313
+ );
42217
42314
  Object.defineProperty(constructor.prototype, "constructor", {
42218
42315
  value: constructor,
42219
42316
  writable: true,
@@ -42412,8 +42509,6 @@ var utils_default = {
42412
42509
  isUndefined,
42413
42510
  isDate,
42414
42511
  isFile,
42415
- isReactNativeBlob,
42416
- isReactNative,
42417
42512
  isBlob,
42418
42513
  isRegExp,
42419
42514
  isFunction,
@@ -42462,9 +42557,6 @@ var AxiosError = class _AxiosError extends Error {
42462
42557
  const axiosError = new _AxiosError(error48.message, code || error48.code, config2, request, response);
42463
42558
  axiosError.cause = error48;
42464
42559
  axiosError.name = error48.name;
42465
- if (error48.status != null && axiosError.status == null) {
42466
- axiosError.status = error48.status;
42467
- }
42468
42560
  customProps && Object.assign(axiosError, customProps);
42469
42561
  return axiosError;
42470
42562
  }
@@ -42481,12 +42573,6 @@ var AxiosError = class _AxiosError extends Error {
42481
42573
  */
42482
42574
  constructor(message, code, config2, request, response) {
42483
42575
  super(message);
42484
- Object.defineProperty(this, "message", {
42485
- value: message,
42486
- enumerable: true,
42487
- writable: true,
42488
- configurable: true
42489
- });
42490
42576
  this.name = "AxiosError";
42491
42577
  this.isAxiosError = true;
42492
42578
  code && (this.code = code);
@@ -42560,18 +42646,13 @@ function toFormData(obj, formData, options) {
42560
42646
  throw new TypeError("target must be an object");
42561
42647
  }
42562
42648
  formData = formData || new (FormData_default || FormData)();
42563
- options = utils_default.toFlatObject(
42564
- options,
42565
- {
42566
- metaTokens: true,
42567
- dots: false,
42568
- indexes: false
42569
- },
42570
- false,
42571
- function defined(option, source) {
42572
- return !utils_default.isUndefined(source[option]);
42573
- }
42574
- );
42649
+ options = utils_default.toFlatObject(options, {
42650
+ metaTokens: true,
42651
+ dots: false,
42652
+ indexes: false
42653
+ }, false, function defined(option, source) {
42654
+ return !utils_default.isUndefined(source[option]);
42655
+ });
42575
42656
  const metaTokens = options.metaTokens;
42576
42657
  const visitor = options.visitor || defaultVisitor;
42577
42658
  const dots = options.dots;
@@ -42599,10 +42680,6 @@ function toFormData(obj, formData, options) {
42599
42680
  }
42600
42681
  function defaultVisitor(value, key, path) {
42601
42682
  let arr = value;
42602
- if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
42603
- formData.append(renderKey(path, key, dots), convertValue(value));
42604
- return false;
42605
- }
42606
42683
  if (value && !path && typeof value === "object") {
42607
42684
  if (utils_default.endsWith(key, "{}")) {
42608
42685
  key = metaTokens ? key : key.slice(0, -2);
@@ -42638,7 +42715,13 @@ function toFormData(obj, formData, options) {
42638
42715
  }
42639
42716
  stack.push(value);
42640
42717
  utils_default.forEach(value, function each(el, key) {
42641
- const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers);
42718
+ const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(
42719
+ formData,
42720
+ el,
42721
+ utils_default.isString(key) ? key.trim() : key,
42722
+ path,
42723
+ exposedHelpers
42724
+ );
42642
42725
  if (result === true) {
42643
42726
  build(el, path ? path.concat(key) : [key]);
42644
42727
  }
@@ -42933,74 +43016,70 @@ function stringifySafely(rawValue, parser2, encoder) {
42933
43016
  var defaults = {
42934
43017
  transitional: transitional_default,
42935
43018
  adapter: ["xhr", "http", "fetch"],
42936
- transformRequest: [
42937
- function transformRequest(data, headers) {
42938
- const contentType = headers.getContentType() || "";
42939
- const hasJSONContentType = contentType.indexOf("application/json") > -1;
42940
- const isObjectPayload = utils_default.isObject(data);
42941
- if (isObjectPayload && utils_default.isHTMLForm(data)) {
42942
- data = new FormData(data);
42943
- }
42944
- const isFormData2 = utils_default.isFormData(data);
42945
- if (isFormData2) {
42946
- return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
42947
- }
42948
- 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)) {
42949
- return data;
42950
- }
42951
- if (utils_default.isArrayBufferView(data)) {
42952
- return data.buffer;
42953
- }
42954
- if (utils_default.isURLSearchParams(data)) {
42955
- headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
42956
- return data.toString();
42957
- }
42958
- let isFileList2;
42959
- if (isObjectPayload) {
42960
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
42961
- return toURLEncodedForm(data, this.formSerializer).toString();
42962
- }
42963
- if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
42964
- const _FormData = this.env && this.env.FormData;
42965
- return toFormData_default(
42966
- isFileList2 ? { "files[]": data } : data,
42967
- _FormData && new _FormData(),
42968
- this.formSerializer
42969
- );
42970
- }
43019
+ transformRequest: [function transformRequest(data, headers) {
43020
+ const contentType = headers.getContentType() || "";
43021
+ const hasJSONContentType = contentType.indexOf("application/json") > -1;
43022
+ const isObjectPayload = utils_default.isObject(data);
43023
+ if (isObjectPayload && utils_default.isHTMLForm(data)) {
43024
+ data = new FormData(data);
43025
+ }
43026
+ const isFormData2 = utils_default.isFormData(data);
43027
+ if (isFormData2) {
43028
+ return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
43029
+ }
43030
+ 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)) {
43031
+ return data;
43032
+ }
43033
+ if (utils_default.isArrayBufferView(data)) {
43034
+ return data.buffer;
43035
+ }
43036
+ if (utils_default.isURLSearchParams(data)) {
43037
+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
43038
+ return data.toString();
43039
+ }
43040
+ let isFileList2;
43041
+ if (isObjectPayload) {
43042
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
43043
+ return toURLEncodedForm(data, this.formSerializer).toString();
42971
43044
  }
42972
- if (isObjectPayload || hasJSONContentType) {
42973
- headers.setContentType("application/json", false);
42974
- return stringifySafely(data);
43045
+ if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
43046
+ const _FormData = this.env && this.env.FormData;
43047
+ return toFormData_default(
43048
+ isFileList2 ? { "files[]": data } : data,
43049
+ _FormData && new _FormData(),
43050
+ this.formSerializer
43051
+ );
42975
43052
  }
43053
+ }
43054
+ if (isObjectPayload || hasJSONContentType) {
43055
+ headers.setContentType("application/json", false);
43056
+ return stringifySafely(data);
43057
+ }
43058
+ return data;
43059
+ }],
43060
+ transformResponse: [function transformResponse(data) {
43061
+ const transitional2 = this.transitional || defaults.transitional;
43062
+ const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
43063
+ const JSONRequested = this.responseType === "json";
43064
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
42976
43065
  return data;
42977
43066
  }
42978
- ],
42979
- transformResponse: [
42980
- function transformResponse(data) {
42981
- const transitional2 = this.transitional || defaults.transitional;
42982
- const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
42983
- const JSONRequested = this.responseType === "json";
42984
- if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
42985
- return data;
42986
- }
42987
- if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
42988
- const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
42989
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
42990
- try {
42991
- return JSON.parse(data, this.parseReviver);
42992
- } catch (e) {
42993
- if (strictJSONParsing) {
42994
- if (e.name === "SyntaxError") {
42995
- throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
42996
- }
42997
- throw e;
43067
+ if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
43068
+ const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
43069
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
43070
+ try {
43071
+ return JSON.parse(data, this.parseReviver);
43072
+ } catch (e) {
43073
+ if (strictJSONParsing) {
43074
+ if (e.name === "SyntaxError") {
43075
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
42998
43076
  }
43077
+ throw e;
42999
43078
  }
43000
43079
  }
43001
- return data;
43002
43080
  }
43003
- ],
43081
+ return data;
43082
+ }],
43004
43083
  /**
43005
43084
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
43006
43085
  * timeout is not created.
@@ -43019,7 +43098,7 @@ var defaults = {
43019
43098
  },
43020
43099
  headers: {
43021
43100
  common: {
43022
- Accept: "application/json, text/plain, */*",
43101
+ "Accept": "application/json, text/plain, */*",
43023
43102
  "Content-Type": void 0
43024
43103
  }
43025
43104
  }
@@ -43290,14 +43369,7 @@ var AxiosHeaders = class {
43290
43369
  return this;
43291
43370
  }
43292
43371
  };
43293
- AxiosHeaders.accessor([
43294
- "Content-Type",
43295
- "Content-Length",
43296
- "Accept",
43297
- "Accept-Encoding",
43298
- "User-Agent",
43299
- "Authorization"
43300
- ]);
43372
+ AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
43301
43373
  utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
43302
43374
  let mapped = key[0].toUpperCase() + key.slice(1);
43303
43375
  return {
@@ -43353,15 +43425,13 @@ function settle(resolve, reject, response) {
43353
43425
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
43354
43426
  resolve(response);
43355
43427
  } else {
43356
- reject(
43357
- new AxiosError_default(
43358
- "Request failed with status code " + response.status,
43359
- [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
43360
- response.config,
43361
- response.request,
43362
- response
43363
- )
43364
- );
43428
+ reject(new AxiosError_default(
43429
+ "Request failed with status code " + response.status,
43430
+ [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
43431
+ response.config,
43432
+ response.request,
43433
+ response
43434
+ ));
43365
43435
  }
43366
43436
  }
43367
43437
 
@@ -43397,7 +43467,7 @@ import util3 from "util";
43397
43467
  import zlib from "zlib";
43398
43468
 
43399
43469
  // ../node_modules/axios/lib/env/data.js
43400
- var VERSION = "1.13.6";
43470
+ var VERSION = "1.13.5";
43401
43471
 
43402
43472
  // ../node_modules/axios/lib/helpers/parseProtocol.js
43403
43473
  function parseProtocol(url3) {
@@ -43442,21 +43512,16 @@ import stream from "stream";
43442
43512
  var kInternals = /* @__PURE__ */ Symbol("internals");
43443
43513
  var AxiosTransformStream = class extends stream.Transform {
43444
43514
  constructor(options) {
43445
- options = utils_default.toFlatObject(
43446
- options,
43447
- {
43448
- maxRate: 0,
43449
- chunkSize: 64 * 1024,
43450
- minChunkSize: 100,
43451
- timeWindow: 500,
43452
- ticksRate: 2,
43453
- samplesCount: 15
43454
- },
43455
- null,
43456
- (prop, source) => {
43457
- return !utils_default.isUndefined(source[prop]);
43458
- }
43459
- );
43515
+ options = utils_default.toFlatObject(options, {
43516
+ maxRate: 0,
43517
+ chunkSize: 64 * 1024,
43518
+ minChunkSize: 100,
43519
+ timeWindow: 500,
43520
+ ticksRate: 2,
43521
+ samplesCount: 15
43522
+ }, null, (prop, source) => {
43523
+ return !utils_default.isUndefined(source[prop]);
43524
+ });
43460
43525
  super({
43461
43526
  readableHighWaterMark: options.chunkSize
43462
43527
  });
@@ -43539,12 +43604,9 @@ var AxiosTransformStream = class extends stream.Transform {
43539
43604
  chunkRemainder = _chunk.subarray(maxChunkSize);
43540
43605
  _chunk = _chunk.subarray(0, maxChunkSize);
43541
43606
  }
43542
- pushChunk(
43543
- _chunk,
43544
- chunkRemainder ? () => {
43545
- process.nextTick(_callback, null, chunkRemainder);
43546
- } : _callback
43547
- );
43607
+ pushChunk(_chunk, chunkRemainder ? () => {
43608
+ process.nextTick(_callback, null, chunkRemainder);
43609
+ } : _callback);
43548
43610
  };
43549
43611
  transformChunk(chunk, function transformNextChunk(err, _chunk) {
43550
43612
  if (err) {
@@ -43615,14 +43677,11 @@ var FormDataPart = class {
43615
43677
  yield CRLF_BYTES;
43616
43678
  }
43617
43679
  static escapeName(name) {
43618
- return String(name).replace(
43619
- /[\r\n"]/g,
43620
- (match) => ({
43621
- "\r": "%0D",
43622
- "\n": "%0A",
43623
- '"': "%22"
43624
- })[match]
43625
- );
43680
+ return String(name).replace(/[\r\n"]/g, (match) => ({
43681
+ "\r": "%0D",
43682
+ "\n": "%0A",
43683
+ '"': "%22"
43684
+ })[match]);
43626
43685
  }
43627
43686
  };
43628
43687
  var formDataToStream = (form, headersHandler, options) => {
@@ -43654,15 +43713,13 @@ var formDataToStream = (form, headersHandler, options) => {
43654
43713
  computedHeaders["Content-Length"] = contentLength;
43655
43714
  }
43656
43715
  headersHandler && headersHandler(computedHeaders);
43657
- return Readable.from(
43658
- (async function* () {
43659
- for (const part of parts) {
43660
- yield boundaryBytes;
43661
- yield* part.encode();
43662
- }
43663
- yield footerBytes;
43664
- })()
43665
- );
43716
+ return Readable.from((async function* () {
43717
+ for (const part of parts) {
43718
+ yield boundaryBytes;
43719
+ yield* part.encode();
43720
+ }
43721
+ yield footerBytes;
43722
+ })());
43666
43723
  };
43667
43724
  var formDataToStream_default = formDataToStream;
43668
43725
 
@@ -43801,14 +43858,11 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
43801
43858
  };
43802
43859
  var progressEventDecorator = (total, throttled) => {
43803
43860
  const lengthComputable = total != null;
43804
- return [
43805
- (loaded) => throttled[0]({
43806
- lengthComputable,
43807
- total,
43808
- loaded
43809
- }),
43810
- throttled[1]
43811
- ];
43861
+ return [(loaded) => throttled[0]({
43862
+ lengthComputable,
43863
+ total,
43864
+ loaded
43865
+ }), throttled[1]];
43812
43866
  };
43813
43867
  var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
43814
43868
 
@@ -43887,12 +43941,9 @@ var Http2Sessions = class {
43887
43941
  this.sessions = /* @__PURE__ */ Object.create(null);
43888
43942
  }
43889
43943
  getSession(authority, options) {
43890
- options = Object.assign(
43891
- {
43892
- sessionTimeout: 1e3
43893
- },
43894
- options
43895
- );
43944
+ options = Object.assign({
43945
+ sessionTimeout: 1e3
43946
+ }, options);
43896
43947
  let authoritySessions = this.sessions[authority];
43897
43948
  if (authoritySessions) {
43898
43949
  let len = authoritySessions.length;
@@ -43946,7 +43997,10 @@ var Http2Sessions = class {
43946
43997
  };
43947
43998
  }
43948
43999
  session.once("close", removeSession);
43949
- let entry = [session, options];
44000
+ let entry = [
44001
+ session,
44002
+ options
44003
+ ];
43950
44004
  authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
43951
44005
  return session;
43952
44006
  }
@@ -44032,7 +44086,12 @@ var http2Transport = {
44032
44086
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
44033
44087
  const { http2Options, headers } = options;
44034
44088
  const session = http2Sessions.getSession(authority, http2Options);
44035
- const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
44089
+ const {
44090
+ HTTP2_HEADER_SCHEME,
44091
+ HTTP2_HEADER_METHOD,
44092
+ HTTP2_HEADER_PATH,
44093
+ HTTP2_HEADER_STATUS
44094
+ } = http2.constants;
44036
44095
  const http2Headers = {
44037
44096
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
44038
44097
  [HTTP2_HEADER_METHOD]: options.method,
@@ -44085,10 +44144,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
44085
44144
  const abortEmitter = new EventEmitter();
44086
44145
  function abort(reason) {
44087
44146
  try {
44088
- abortEmitter.emit(
44089
- "abort",
44090
- !reason || reason.type ? new CanceledError_default(null, config2, req) : reason
44091
- );
44147
+ abortEmitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config2, req) : reason);
44092
44148
  } catch (err) {
44093
44149
  console.warn("emit error", err);
44094
44150
  }
@@ -44134,13 +44190,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
44134
44190
  const dataUrl = String(config2.url || fullPath || "");
44135
44191
  const estimated = estimateDataURLDecodedBytes(dataUrl);
44136
44192
  if (estimated > config2.maxContentLength) {
44137
- return reject(
44138
- new AxiosError_default(
44139
- "maxContentLength size of " + config2.maxContentLength + " exceeded",
44140
- AxiosError_default.ERR_BAD_RESPONSE,
44141
- config2
44142
- )
44143
- );
44193
+ return reject(new AxiosError_default(
44194
+ "maxContentLength size of " + config2.maxContentLength + " exceeded",
44195
+ AxiosError_default.ERR_BAD_RESPONSE,
44196
+ config2
44197
+ ));
44144
44198
  }
44145
44199
  }
44146
44200
  let convertedData;
@@ -44176,9 +44230,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
44176
44230
  });
44177
44231
  }
44178
44232
  if (supportedProtocols.indexOf(protocol) === -1) {
44179
- return reject(
44180
- new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_BAD_REQUEST, config2)
44181
- );
44233
+ return reject(new AxiosError_default(
44234
+ "Unsupported protocol " + protocol,
44235
+ AxiosError_default.ERR_BAD_REQUEST,
44236
+ config2
44237
+ ));
44182
44238
  }
44183
44239
  const headers = AxiosHeaders_default.from(config2.headers).normalize();
44184
44240
  headers.set("User-Agent", "axios/" + VERSION, false);
@@ -44188,16 +44244,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
44188
44244
  let maxDownloadRate = void 0;
44189
44245
  if (utils_default.isSpecCompliantForm(data)) {
44190
44246
  const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
44191
- data = formDataToStream_default(
44192
- data,
44193
- (formHeaders) => {
44194
- headers.set(formHeaders);
44195
- },
44196
- {
44197
- tag: `axios-${VERSION}-boundary`,
44198
- boundary: userBoundary && userBoundary[1] || void 0
44199
- }
44200
- );
44247
+ data = formDataToStream_default(data, (formHeaders) => {
44248
+ headers.set(formHeaders);
44249
+ }, {
44250
+ tag: `axios-${VERSION}-boundary`,
44251
+ boundary: userBoundary && userBoundary[1] || void 0
44252
+ });
44201
44253
  } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
44202
44254
  headers.set(data.getHeaders());
44203
44255
  if (!headers.hasContentLength()) {
@@ -44218,23 +44270,19 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
44218
44270
  } else if (utils_default.isString(data)) {
44219
44271
  data = Buffer.from(data, "utf-8");
44220
44272
  } else {
44221
- return reject(
44222
- new AxiosError_default(
44223
- "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
44224
- AxiosError_default.ERR_BAD_REQUEST,
44225
- config2
44226
- )
44227
- );
44273
+ return reject(new AxiosError_default(
44274
+ "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
44275
+ AxiosError_default.ERR_BAD_REQUEST,
44276
+ config2
44277
+ ));
44228
44278
  }
44229
44279
  headers.setContentLength(data.length, false);
44230
44280
  if (config2.maxBodyLength > -1 && data.length > config2.maxBodyLength) {
44231
- return reject(
44232
- new AxiosError_default(
44233
- "Request body larger than maxBodyLength limit",
44234
- AxiosError_default.ERR_BAD_REQUEST,
44235
- config2
44236
- )
44237
- );
44281
+ return reject(new AxiosError_default(
44282
+ "Request body larger than maxBodyLength limit",
44283
+ AxiosError_default.ERR_BAD_REQUEST,
44284
+ config2
44285
+ ));
44238
44286
  }
44239
44287
  }
44240
44288
  const contentLength = utils_default.toFiniteNumber(headers.getContentLength());
@@ -44248,25 +44296,16 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
44248
44296
  if (!utils_default.isStream(data)) {
44249
44297
  data = stream3.Readable.from(data, { objectMode: false });
44250
44298
  }
44251
- data = stream3.pipeline(
44252
- [
44253
- data,
44254
- new AxiosTransformStream_default({
44255
- maxRate: utils_default.toFiniteNumber(maxUploadRate)
44256
- })
44257
- ],
44258
- utils_default.noop
44259
- );
44260
- onUploadProgress && data.on(
44261
- "progress",
44262
- flushOnFinish(
44263
- data,
44264
- progressEventDecorator(
44265
- contentLength,
44266
- progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
44267
- )
44299
+ data = stream3.pipeline([data, new AxiosTransformStream_default({
44300
+ maxRate: utils_default.toFiniteNumber(maxUploadRate)
44301
+ })], utils_default.noop);
44302
+ onUploadProgress && data.on("progress", flushOnFinish(
44303
+ data,
44304
+ progressEventDecorator(
44305
+ contentLength,
44306
+ progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
44268
44307
  )
44269
- );
44308
+ ));
44270
44309
  }
44271
44310
  let auth = void 0;
44272
44311
  if (config2.auth) {
@@ -44317,11 +44356,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
44317
44356
  } else {
44318
44357
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
44319
44358
  options.port = parsed.port;
44320
- setProxy(
44321
- options,
44322
- config2.proxy,
44323
- protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
44324
- );
44359
+ setProxy(options, config2.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
44325
44360
  }
44326
44361
  let transport;
44327
44362
  const isHttpsRequest = isHttps.test(options.protocol);
@@ -44359,16 +44394,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
44359
44394
  const transformStream = new AxiosTransformStream_default({
44360
44395
  maxRate: utils_default.toFiniteNumber(maxDownloadRate)
44361
44396
  });
44362
- onDownloadProgress && transformStream.on(
44363
- "progress",
44364
- flushOnFinish(
44365
- transformStream,
44366
- progressEventDecorator(
44367
- responseLength,
44368
- progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
44369
- )
44397
+ onDownloadProgress && transformStream.on("progress", flushOnFinish(
44398
+ transformStream,
44399
+ progressEventDecorator(
44400
+ responseLength,
44401
+ progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
44370
44402
  )
44371
- );
44403
+ ));
44372
44404
  streams.push(transformStream);
44373
44405
  }
44374
44406
  let responseStream = res;
@@ -44418,14 +44450,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
44418
44450
  if (config2.maxContentLength > -1 && totalResponseBytes > config2.maxContentLength) {
44419
44451
  rejected = true;
44420
44452
  responseStream.destroy();
44421
- abort(
44422
- new AxiosError_default(
44423
- "maxContentLength size of " + config2.maxContentLength + " exceeded",
44424
- AxiosError_default.ERR_BAD_RESPONSE,
44425
- config2,
44426
- lastRequest
44427
- )
44428
- );
44453
+ abort(new AxiosError_default(
44454
+ "maxContentLength size of " + config2.maxContentLength + " exceeded",
44455
+ AxiosError_default.ERR_BAD_RESPONSE,
44456
+ config2,
44457
+ lastRequest
44458
+ ));
44429
44459
  }
44430
44460
  });
44431
44461
  responseStream.on("aborted", function handlerStreamAborted() {
@@ -44484,14 +44514,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
44484
44514
  if (config2.timeout) {
44485
44515
  const timeout = parseInt(config2.timeout, 10);
44486
44516
  if (Number.isNaN(timeout)) {
44487
- abort(
44488
- new AxiosError_default(
44489
- "error trying to parse `config.timeout` to int",
44490
- AxiosError_default.ERR_BAD_OPTION_VALUE,
44491
- config2,
44492
- req
44493
- )
44494
- );
44517
+ abort(new AxiosError_default(
44518
+ "error trying to parse `config.timeout` to int",
44519
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
44520
+ config2,
44521
+ req
44522
+ ));
44495
44523
  return;
44496
44524
  }
44497
44525
  req.setTimeout(timeout, function handleRequestTimeout() {
@@ -44501,14 +44529,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
44501
44529
  if (config2.timeoutErrorMessage) {
44502
44530
  timeoutErrorMessage = config2.timeoutErrorMessage;
44503
44531
  }
44504
- abort(
44505
- new AxiosError_default(
44506
- timeoutErrorMessage,
44507
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
44508
- config2,
44509
- req
44510
- )
44511
- );
44532
+ abort(new AxiosError_default(
44533
+ timeoutErrorMessage,
44534
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
44535
+ config2,
44536
+ req
44537
+ ));
44512
44538
  });
44513
44539
  } else {
44514
44540
  req.setTimeout(0);
@@ -44663,12 +44689,16 @@ function mergeConfig(config1, config2) {
44663
44689
  validateStatus: mergeDirectKeys,
44664
44690
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
44665
44691
  };
44666
- utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
44667
- if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
44668
- const merge3 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
44669
- const configValue = merge3(config1[prop], config2[prop], prop);
44670
- utils_default.isUndefined(configValue) && merge3 !== mergeDirectKeys || (config3[prop] = configValue);
44671
- });
44692
+ utils_default.forEach(
44693
+ Object.keys({ ...config1, ...config2 }),
44694
+ function computeConfigValue(prop) {
44695
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
44696
+ return;
44697
+ const merge3 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
44698
+ const configValue = merge3(config1[prop], config2[prop], prop);
44699
+ utils_default.isUndefined(configValue) && merge3 !== mergeDirectKeys || (config3[prop] = configValue);
44700
+ }
44701
+ );
44672
44702
  return config3;
44673
44703
  }
44674
44704
 
@@ -44677,17 +44707,11 @@ var resolveConfig_default = (config2) => {
44677
44707
  const newConfig = mergeConfig({}, config2);
44678
44708
  let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
44679
44709
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
44680
- newConfig.url = buildURL(
44681
- buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
44682
- config2.params,
44683
- config2.paramsSerializer
44684
- );
44710
+ newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config2.params, config2.paramsSerializer);
44685
44711
  if (auth) {
44686
44712
  headers.set(
44687
44713
  "Authorization",
44688
- "Basic " + btoa(
44689
- (auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
44690
- )
44714
+ "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
44691
44715
  );
44692
44716
  }
44693
44717
  if (utils_default.isFormData(data)) {
@@ -44751,17 +44775,13 @@ var xhr_default = isXHRAdapterSupported && function(config2) {
44751
44775
  config: config2,
44752
44776
  request
44753
44777
  };
44754
- settle(
44755
- function _resolve(value) {
44756
- resolve(value);
44757
- done();
44758
- },
44759
- function _reject(err) {
44760
- reject(err);
44761
- done();
44762
- },
44763
- response
44764
- );
44778
+ settle(function _resolve(value) {
44779
+ resolve(value);
44780
+ done();
44781
+ }, function _reject(err) {
44782
+ reject(err);
44783
+ done();
44784
+ }, response);
44765
44785
  request = null;
44766
44786
  }
44767
44787
  if ("onloadend" in request) {
@@ -44797,14 +44817,12 @@ var xhr_default = isXHRAdapterSupported && function(config2) {
44797
44817
  if (_config.timeoutErrorMessage) {
44798
44818
  timeoutErrorMessage = _config.timeoutErrorMessage;
44799
44819
  }
44800
- reject(
44801
- new AxiosError_default(
44802
- timeoutErrorMessage,
44803
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
44804
- config2,
44805
- request
44806
- )
44807
- );
44820
+ reject(new AxiosError_default(
44821
+ timeoutErrorMessage,
44822
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
44823
+ config2,
44824
+ request
44825
+ ));
44808
44826
  request = null;
44809
44827
  };
44810
44828
  requestData === void 0 && requestHeaders.setContentType(null);
@@ -44844,13 +44862,7 @@ var xhr_default = isXHRAdapterSupported && function(config2) {
44844
44862
  }
44845
44863
  const protocol = parseProtocol(_config.url);
44846
44864
  if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
44847
- reject(
44848
- new AxiosError_default(
44849
- "Unsupported protocol " + protocol + ":",
44850
- AxiosError_default.ERR_BAD_REQUEST,
44851
- config2
44852
- )
44853
- );
44865
+ reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config2));
44854
44866
  return;
44855
44867
  }
44856
44868
  request.send(requestData || null);
@@ -44868,9 +44880,7 @@ var composeSignals = (signals, timeout) => {
44868
44880
  aborted2 = true;
44869
44881
  unsubscribe();
44870
44882
  const err = reason instanceof Error ? reason : this.reason;
44871
- controller.abort(
44872
- err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
44873
- );
44883
+ controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
44874
44884
  }
44875
44885
  };
44876
44886
  let timer = timeout && setTimeout(() => {
@@ -44943,36 +44953,33 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
44943
44953
  onFinish && onFinish(e);
44944
44954
  }
44945
44955
  };
44946
- return new ReadableStream(
44947
- {
44948
- async pull(controller) {
44949
- try {
44950
- const { done: done2, value } = await iterator2.next();
44951
- if (done2) {
44952
- _onFinish();
44953
- controller.close();
44954
- return;
44955
- }
44956
- let len = value.byteLength;
44957
- if (onProgress) {
44958
- let loadedBytes = bytes += len;
44959
- onProgress(loadedBytes);
44960
- }
44961
- controller.enqueue(new Uint8Array(value));
44962
- } catch (err) {
44963
- _onFinish(err);
44964
- throw err;
44956
+ return new ReadableStream({
44957
+ async pull(controller) {
44958
+ try {
44959
+ const { done: done2, value } = await iterator2.next();
44960
+ if (done2) {
44961
+ _onFinish();
44962
+ controller.close();
44963
+ return;
44965
44964
  }
44966
- },
44967
- cancel(reason) {
44968
- _onFinish(reason);
44969
- return iterator2.return();
44965
+ let len = value.byteLength;
44966
+ if (onProgress) {
44967
+ let loadedBytes = bytes += len;
44968
+ onProgress(loadedBytes);
44969
+ }
44970
+ controller.enqueue(new Uint8Array(value));
44971
+ } catch (err) {
44972
+ _onFinish(err);
44973
+ throw err;
44970
44974
  }
44971
44975
  },
44972
- {
44973
- highWaterMark: 2
44976
+ cancel(reason) {
44977
+ _onFinish(reason);
44978
+ return iterator2.return();
44974
44979
  }
44975
- );
44980
+ }, {
44981
+ highWaterMark: 2
44982
+ });
44976
44983
  };
44977
44984
 
44978
44985
  // ../node_modules/axios/lib/adapters/fetch.js
@@ -44982,7 +44989,10 @@ var globalFetchAPI = (({ Request, Response }) => ({
44982
44989
  Request,
44983
44990
  Response
44984
44991
  }))(utils_default.global);
44985
- var { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = utils_default.global;
44992
+ var {
44993
+ ReadableStream: ReadableStream2,
44994
+ TextEncoder: TextEncoder2
44995
+ } = utils_default.global;
44986
44996
  var test = (fn, ...args) => {
44987
44997
  try {
44988
44998
  return !!fn(...args);
@@ -44991,13 +45001,9 @@ var test = (fn, ...args) => {
44991
45001
  }
44992
45002
  };
44993
45003
  var factory = (env) => {
44994
- env = utils_default.merge.call(
44995
- {
44996
- skipUndefined: true
44997
- },
44998
- globalFetchAPI,
44999
- env
45000
- );
45004
+ env = utils_default.merge.call({
45005
+ skipUndefined: true
45006
+ }, globalFetchAPI, env);
45001
45007
  const { fetch: envFetch, Request, Response } = env;
45002
45008
  const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
45003
45009
  const isRequestSupported = isFunction2(Request);
@@ -45030,11 +45036,7 @@ var factory = (env) => {
45030
45036
  if (method) {
45031
45037
  return method.call(res);
45032
45038
  }
45033
- throw new AxiosError_default(
45034
- `Response type '${type}' is not supported`,
45035
- AxiosError_default.ERR_NOT_SUPPORT,
45036
- config2
45037
- );
45039
+ throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config2);
45038
45040
  });
45039
45041
  });
45040
45042
  })();
@@ -45083,10 +45085,7 @@ var factory = (env) => {
45083
45085
  } = resolveConfig_default(config2);
45084
45086
  let _fetch = envFetch || fetch;
45085
45087
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
45086
- let composedSignal = composeSignals_default(
45087
- [signal, cancelToken && cancelToken.toAbortSignal()],
45088
- timeout
45089
- );
45088
+ let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
45090
45089
  let request = null;
45091
45090
  const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
45092
45091
  composedSignal.unsubscribe();
@@ -45146,10 +45145,7 @@ var factory = (env) => {
45146
45145
  );
45147
45146
  }
45148
45147
  responseType = responseType || "text";
45149
- let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
45150
- response,
45151
- config2
45152
- );
45148
+ let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config2);
45153
45149
  !isStreamResponse && unsubscribe && unsubscribe();
45154
45150
  return await new Promise((resolve, reject) => {
45155
45151
  settle(resolve, reject, {
@@ -45165,13 +45161,7 @@ var factory = (env) => {
45165
45161
  unsubscribe && unsubscribe();
45166
45162
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
45167
45163
  throw Object.assign(
45168
- new AxiosError_default(
45169
- "Network Error",
45170
- AxiosError_default.ERR_NETWORK,
45171
- config2,
45172
- request,
45173
- err && err.response
45174
- ),
45164
+ new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config2, request, err && err.response),
45175
45165
  {
45176
45166
  cause: err.cause || err
45177
45167
  }
@@ -45185,7 +45175,11 @@ var seedCache = /* @__PURE__ */ new Map();
45185
45175
  var getFetch = (config2) => {
45186
45176
  let env = config2 && config2.env || {};
45187
45177
  const { fetch: fetch2, Request, Response } = env;
45188
- const seeds = [Request, Response, fetch2];
45178
+ const seeds = [
45179
+ Request,
45180
+ Response,
45181
+ fetch2
45182
+ ];
45189
45183
  let len = seeds.length, i = len, seed, target, map2 = seedCache;
45190
45184
  while (i--) {
45191
45185
  seed = seeds[i];
@@ -45274,33 +45268,37 @@ function throwIfCancellationRequested(config2) {
45274
45268
  function dispatchRequest(config2) {
45275
45269
  throwIfCancellationRequested(config2);
45276
45270
  config2.headers = AxiosHeaders_default.from(config2.headers);
45277
- config2.data = transformData.call(config2, config2.transformRequest);
45271
+ config2.data = transformData.call(
45272
+ config2,
45273
+ config2.transformRequest
45274
+ );
45278
45275
  if (["post", "put", "patch"].indexOf(config2.method) !== -1) {
45279
45276
  config2.headers.setContentType("application/x-www-form-urlencoded", false);
45280
45277
  }
45281
45278
  const adapter2 = adapters_default.getAdapter(config2.adapter || defaults_default.adapter, config2);
45282
- return adapter2(config2).then(
45283
- function onAdapterResolution(response) {
45279
+ return adapter2(config2).then(function onAdapterResolution(response) {
45280
+ throwIfCancellationRequested(config2);
45281
+ response.data = transformData.call(
45282
+ config2,
45283
+ config2.transformResponse,
45284
+ response
45285
+ );
45286
+ response.headers = AxiosHeaders_default.from(response.headers);
45287
+ return response;
45288
+ }, function onAdapterRejection(reason) {
45289
+ if (!isCancel(reason)) {
45284
45290
  throwIfCancellationRequested(config2);
45285
- response.data = transformData.call(config2, config2.transformResponse, response);
45286
- response.headers = AxiosHeaders_default.from(response.headers);
45287
- return response;
45288
- },
45289
- function onAdapterRejection(reason) {
45290
- if (!isCancel(reason)) {
45291
- throwIfCancellationRequested(config2);
45292
- if (reason && reason.response) {
45293
- reason.response.data = transformData.call(
45294
- config2,
45295
- config2.transformResponse,
45296
- reason.response
45297
- );
45298
- reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
45299
- }
45291
+ if (reason && reason.response) {
45292
+ reason.response.data = transformData.call(
45293
+ config2,
45294
+ config2.transformResponse,
45295
+ reason.response
45296
+ );
45297
+ reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
45300
45298
  }
45301
- return Promise.reject(reason);
45302
45299
  }
45303
- );
45300
+ return Promise.reject(reason);
45301
+ });
45304
45302
  }
45305
45303
 
45306
45304
  // ../node_modules/axios/lib/helpers/validator.js
@@ -45353,10 +45351,7 @@ function assertOptions(options, schema, allowUnknown) {
45353
45351
  const value = options[opt];
45354
45352
  const result = value === void 0 || validator(value, opt, options);
45355
45353
  if (result !== true) {
45356
- throw new AxiosError_default(
45357
- "option " + opt + " must be " + result,
45358
- AxiosError_default.ERR_BAD_OPTION_VALUE
45359
- );
45354
+ throw new AxiosError_default("option " + opt + " must be " + result, AxiosError_default.ERR_BAD_OPTION_VALUE);
45360
45355
  }
45361
45356
  continue;
45362
45357
  }
@@ -45418,16 +45413,12 @@ var Axios = class {
45418
45413
  config2 = mergeConfig(this.defaults, config2);
45419
45414
  const { transitional: transitional2, paramsSerializer, headers } = config2;
45420
45415
  if (transitional2 !== void 0) {
45421
- validator_default.assertOptions(
45422
- transitional2,
45423
- {
45424
- silentJSONParsing: validators2.transitional(validators2.boolean),
45425
- forcedJSONParsing: validators2.transitional(validators2.boolean),
45426
- clarifyTimeoutError: validators2.transitional(validators2.boolean),
45427
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
45428
- },
45429
- false
45430
- );
45416
+ validator_default.assertOptions(transitional2, {
45417
+ silentJSONParsing: validators2.transitional(validators2.boolean),
45418
+ forcedJSONParsing: validators2.transitional(validators2.boolean),
45419
+ clarifyTimeoutError: validators2.transitional(validators2.boolean),
45420
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
45421
+ }, false);
45431
45422
  }
45432
45423
  if (paramsSerializer != null) {
45433
45424
  if (utils_default.isFunction(paramsSerializer)) {
@@ -45435,14 +45426,10 @@ var Axios = class {
45435
45426
  serialize: paramsSerializer
45436
45427
  };
45437
45428
  } else {
45438
- validator_default.assertOptions(
45439
- paramsSerializer,
45440
- {
45441
- encode: validators2.function,
45442
- serialize: validators2.function
45443
- },
45444
- true
45445
- );
45429
+ validator_default.assertOptions(paramsSerializer, {
45430
+ encode: validators2.function,
45431
+ serialize: validators2.function
45432
+ }, true);
45446
45433
  }
45447
45434
  }
45448
45435
  if (config2.allowAbsoluteUrls !== void 0) {
@@ -45451,19 +45438,21 @@ var Axios = class {
45451
45438
  } else {
45452
45439
  config2.allowAbsoluteUrls = true;
45453
45440
  }
45454
- validator_default.assertOptions(
45455
- config2,
45456
- {
45457
- baseUrl: validators2.spelling("baseURL"),
45458
- withXsrfToken: validators2.spelling("withXSRFToken")
45459
- },
45460
- true
45461
- );
45441
+ validator_default.assertOptions(config2, {
45442
+ baseUrl: validators2.spelling("baseURL"),
45443
+ withXsrfToken: validators2.spelling("withXSRFToken")
45444
+ }, true);
45462
45445
  config2.method = (config2.method || this.defaults.method || "get").toLowerCase();
45463
- let contextHeaders = headers && utils_default.merge(headers.common, headers[config2.method]);
45464
- headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
45465
- delete headers[method];
45466
- });
45446
+ let contextHeaders = headers && utils_default.merge(
45447
+ headers.common,
45448
+ headers[config2.method]
45449
+ );
45450
+ headers && utils_default.forEach(
45451
+ ["delete", "get", "head", "post", "put", "patch", "common"],
45452
+ (method) => {
45453
+ delete headers[method];
45454
+ }
45455
+ );
45467
45456
  config2.headers = AxiosHeaders_default.concat(contextHeaders, headers);
45468
45457
  const requestInterceptorChain = [];
45469
45458
  let synchronousRequestInterceptors = true;
@@ -45530,28 +45519,24 @@ var Axios = class {
45530
45519
  };
45531
45520
  utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
45532
45521
  Axios.prototype[method] = function(url3, config2) {
45533
- return this.request(
45534
- mergeConfig(config2 || {}, {
45535
- method,
45536
- url: url3,
45537
- data: (config2 || {}).data
45538
- })
45539
- );
45522
+ return this.request(mergeConfig(config2 || {}, {
45523
+ method,
45524
+ url: url3,
45525
+ data: (config2 || {}).data
45526
+ }));
45540
45527
  };
45541
45528
  });
45542
45529
  utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
45543
45530
  function generateHTTPMethod(isForm) {
45544
45531
  return function httpMethod(url3, data, config2) {
45545
- return this.request(
45546
- mergeConfig(config2 || {}, {
45547
- method,
45548
- headers: isForm ? {
45549
- "Content-Type": "multipart/form-data"
45550
- } : {},
45551
- url: url3,
45552
- data
45553
- })
45554
- );
45532
+ return this.request(mergeConfig(config2 || {}, {
45533
+ method,
45534
+ headers: isForm ? {
45535
+ "Content-Type": "multipart/form-data"
45536
+ } : {},
45537
+ url: url3,
45538
+ data
45539
+ }));
45555
45540
  };
45556
45541
  }
45557
45542
  Axios.prototype[method] = generateHTTPMethod();