autoql-fe-utils 1.11.16 → 1.11.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.global.js +1900 -1181
- package/dist/index.global.js.map +1 -1
- package/package.json +3 -3
package/dist/index.global.js
CHANGED
|
@@ -11969,7 +11969,7 @@
|
|
|
11969
11969
|
var path2 = __require("path");
|
|
11970
11970
|
var http3 = __require("http");
|
|
11971
11971
|
var https2 = __require("https");
|
|
11972
|
-
var
|
|
11972
|
+
var parseUrl2 = __require("url").parse;
|
|
11973
11973
|
var fs = __require("fs");
|
|
11974
11974
|
var Stream = __require("stream").Stream;
|
|
11975
11975
|
var crypto4 = __require("crypto");
|
|
@@ -12222,7 +12222,7 @@
|
|
|
12222
12222
|
var options;
|
|
12223
12223
|
var defaults2 = { method: "post" };
|
|
12224
12224
|
if (typeof params === "string") {
|
|
12225
|
-
params =
|
|
12225
|
+
params = parseUrl2(params);
|
|
12226
12226
|
options = populate({
|
|
12227
12227
|
port: params.port,
|
|
12228
12228
|
path: params.pathname,
|
|
@@ -12279,76 +12279,6 @@
|
|
|
12279
12279
|
}
|
|
12280
12280
|
});
|
|
12281
12281
|
|
|
12282
|
-
// node_modules/proxy-from-env/index.js
|
|
12283
|
-
var require_proxy_from_env = __commonJS({
|
|
12284
|
-
"node_modules/proxy-from-env/index.js"(exports) {
|
|
12285
|
-
"use strict";
|
|
12286
|
-
var parseUrl = __require("url").parse;
|
|
12287
|
-
var DEFAULT_PORTS = {
|
|
12288
|
-
ftp: 21,
|
|
12289
|
-
gopher: 70,
|
|
12290
|
-
http: 80,
|
|
12291
|
-
https: 443,
|
|
12292
|
-
ws: 80,
|
|
12293
|
-
wss: 443
|
|
12294
|
-
};
|
|
12295
|
-
var stringEndsWith = String.prototype.endsWith || function(s) {
|
|
12296
|
-
return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
|
|
12297
|
-
};
|
|
12298
|
-
function getProxyForUrl(url2) {
|
|
12299
|
-
var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
|
|
12300
|
-
var proto2 = parsedUrl.protocol;
|
|
12301
|
-
var hostname = parsedUrl.host;
|
|
12302
|
-
var port = parsedUrl.port;
|
|
12303
|
-
if (typeof hostname !== "string" || !hostname || typeof proto2 !== "string") {
|
|
12304
|
-
return "";
|
|
12305
|
-
}
|
|
12306
|
-
proto2 = proto2.split(":", 1)[0];
|
|
12307
|
-
hostname = hostname.replace(/:\d*$/, "");
|
|
12308
|
-
port = parseInt(port) || DEFAULT_PORTS[proto2] || 0;
|
|
12309
|
-
if (!shouldProxy(hostname, port)) {
|
|
12310
|
-
return "";
|
|
12311
|
-
}
|
|
12312
|
-
var proxy = getEnv("npm_config_" + proto2 + "_proxy") || getEnv(proto2 + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy");
|
|
12313
|
-
if (proxy && proxy.indexOf("://") === -1) {
|
|
12314
|
-
proxy = proto2 + "://" + proxy;
|
|
12315
|
-
}
|
|
12316
|
-
return proxy;
|
|
12317
|
-
}
|
|
12318
|
-
function shouldProxy(hostname, port) {
|
|
12319
|
-
var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase();
|
|
12320
|
-
if (!NO_PROXY) {
|
|
12321
|
-
return true;
|
|
12322
|
-
}
|
|
12323
|
-
if (NO_PROXY === "*") {
|
|
12324
|
-
return false;
|
|
12325
|
-
}
|
|
12326
|
-
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
12327
|
-
if (!proxy) {
|
|
12328
|
-
return true;
|
|
12329
|
-
}
|
|
12330
|
-
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
12331
|
-
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
12332
|
-
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
12333
|
-
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
12334
|
-
return true;
|
|
12335
|
-
}
|
|
12336
|
-
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
12337
|
-
return hostname !== parsedProxyHostname;
|
|
12338
|
-
}
|
|
12339
|
-
if (parsedProxyHostname.charAt(0) === "*") {
|
|
12340
|
-
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
12341
|
-
}
|
|
12342
|
-
return !stringEndsWith.call(hostname, parsedProxyHostname);
|
|
12343
|
-
});
|
|
12344
|
-
}
|
|
12345
|
-
function getEnv(key) {
|
|
12346
|
-
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
12347
|
-
}
|
|
12348
|
-
exports.getProxyForUrl = getProxyForUrl;
|
|
12349
|
-
}
|
|
12350
|
-
});
|
|
12351
|
-
|
|
12352
12282
|
// node_modules/ms/index.js
|
|
12353
12283
|
var require_ms = __commonJS({
|
|
12354
12284
|
"node_modules/ms/index.js"(exports, module) {
|
|
@@ -13156,6 +13086,11 @@
|
|
|
13156
13086
|
} catch (error) {
|
|
13157
13087
|
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
13158
13088
|
}
|
|
13089
|
+
var sensitiveHeaders = [
|
|
13090
|
+
"Authorization",
|
|
13091
|
+
"Proxy-Authorization",
|
|
13092
|
+
"Cookie"
|
|
13093
|
+
];
|
|
13159
13094
|
var preservedUrlFields = [
|
|
13160
13095
|
"auth",
|
|
13161
13096
|
"host",
|
|
@@ -13220,6 +13155,7 @@
|
|
|
13220
13155
|
self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
|
|
13221
13156
|
}
|
|
13222
13157
|
};
|
|
13158
|
+
this._headerFilter = new RegExp("^(?:" + sensitiveHeaders.concat(options.sensitiveHeaders).map(escapeRegex).join("|") + ")$", "i");
|
|
13223
13159
|
this._performRequest();
|
|
13224
13160
|
}
|
|
13225
13161
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
@@ -13357,6 +13293,9 @@
|
|
|
13357
13293
|
if (!options.headers) {
|
|
13358
13294
|
options.headers = {};
|
|
13359
13295
|
}
|
|
13296
|
+
if (!isArray2(options.sensitiveHeaders)) {
|
|
13297
|
+
options.sensitiveHeaders = [];
|
|
13298
|
+
}
|
|
13360
13299
|
if (options.host) {
|
|
13361
13300
|
if (!options.hostname) {
|
|
13362
13301
|
options.hostname = options.host;
|
|
@@ -13454,7 +13393,7 @@
|
|
|
13454
13393
|
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
13455
13394
|
}
|
|
13456
13395
|
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
13457
|
-
var currentUrlParts =
|
|
13396
|
+
var currentUrlParts = parseUrl2(this._currentUrl);
|
|
13458
13397
|
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
13459
13398
|
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
13460
13399
|
var redirectUrl = resolveUrl(location, currentUrl);
|
|
@@ -13462,7 +13401,7 @@
|
|
|
13462
13401
|
this._isRedirect = true;
|
|
13463
13402
|
spreadUrlObject(redirectUrl, this._options);
|
|
13464
13403
|
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
|
|
13465
|
-
removeMatchingHeaders(
|
|
13404
|
+
removeMatchingHeaders(this._headerFilter, this._options.headers);
|
|
13466
13405
|
}
|
|
13467
13406
|
if (isFunction3(beforeRedirect)) {
|
|
13468
13407
|
var responseDetails = {
|
|
@@ -13493,7 +13432,7 @@
|
|
|
13493
13432
|
if (isURL(input)) {
|
|
13494
13433
|
input = spreadUrlObject(input);
|
|
13495
13434
|
} else if (isString2(input)) {
|
|
13496
|
-
input = spreadUrlObject(
|
|
13435
|
+
input = spreadUrlObject(parseUrl2(input));
|
|
13497
13436
|
} else {
|
|
13498
13437
|
callback = options;
|
|
13499
13438
|
options = validateUrl(input);
|
|
@@ -13529,7 +13468,7 @@
|
|
|
13529
13468
|
}
|
|
13530
13469
|
function noop3() {
|
|
13531
13470
|
}
|
|
13532
|
-
function
|
|
13471
|
+
function parseUrl2(input) {
|
|
13533
13472
|
var parsed;
|
|
13534
13473
|
if (useNativeURL) {
|
|
13535
13474
|
parsed = new URL2(input);
|
|
@@ -13542,7 +13481,7 @@
|
|
|
13542
13481
|
return parsed;
|
|
13543
13482
|
}
|
|
13544
13483
|
function resolveUrl(relative, base) {
|
|
13545
|
-
return useNativeURL ? new URL2(relative, base) :
|
|
13484
|
+
return useNativeURL ? new URL2(relative, base) : parseUrl2(url2.resolve(base, relative));
|
|
13546
13485
|
}
|
|
13547
13486
|
function validateUrl(input) {
|
|
13548
13487
|
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
|
@@ -13611,6 +13550,9 @@
|
|
|
13611
13550
|
var dot = subdomain.length - domain.length - 1;
|
|
13612
13551
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
13613
13552
|
}
|
|
13553
|
+
function isArray2(value) {
|
|
13554
|
+
return value instanceof Array;
|
|
13555
|
+
}
|
|
13614
13556
|
function isString2(value) {
|
|
13615
13557
|
return typeof value === "string" || value instanceof String;
|
|
13616
13558
|
}
|
|
@@ -13623,6 +13565,9 @@
|
|
|
13623
13565
|
function isURL(value) {
|
|
13624
13566
|
return URL2 && value instanceof URL2;
|
|
13625
13567
|
}
|
|
13568
|
+
function escapeRegex(regex) {
|
|
13569
|
+
return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
|
|
13570
|
+
}
|
|
13626
13571
|
module.exports = wrap({ http: http3, https: https2 });
|
|
13627
13572
|
module.exports.wrap = wrap;
|
|
13628
13573
|
}
|
|
@@ -19927,9 +19872,9 @@
|
|
|
19927
19872
|
|
|
19928
19873
|
// node_modules/d3-selection/src/selection/append.js
|
|
19929
19874
|
function append_default(name) {
|
|
19930
|
-
var
|
|
19875
|
+
var create2 = typeof name === "function" ? name : creator_default(name);
|
|
19931
19876
|
return this.select(function() {
|
|
19932
|
-
return this.appendChild(
|
|
19877
|
+
return this.appendChild(create2.apply(this, arguments));
|
|
19933
19878
|
});
|
|
19934
19879
|
}
|
|
19935
19880
|
|
|
@@ -19938,9 +19883,9 @@
|
|
|
19938
19883
|
return null;
|
|
19939
19884
|
}
|
|
19940
19885
|
function insert_default(name, before) {
|
|
19941
|
-
var
|
|
19886
|
+
var create2 = typeof name === "function" ? name : creator_default(name), select = before == null ? constantNull : typeof before === "function" ? before : selector_default(before);
|
|
19942
19887
|
return this.select(function() {
|
|
19943
|
-
return this.insertBefore(
|
|
19888
|
+
return this.insertBefore(create2.apply(this, arguments), select.apply(this, arguments) || null);
|
|
19944
19889
|
});
|
|
19945
19890
|
}
|
|
19946
19891
|
|
|
@@ -26604,13 +26549,31 @@
|
|
|
26604
26549
|
};
|
|
26605
26550
|
var isDate = kindOfTest("Date");
|
|
26606
26551
|
var isFile = kindOfTest("File");
|
|
26552
|
+
var isReactNativeBlob = (value) => {
|
|
26553
|
+
return !!(value && typeof value.uri !== "undefined");
|
|
26554
|
+
};
|
|
26555
|
+
var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
26607
26556
|
var isBlob = kindOfTest("Blob");
|
|
26608
26557
|
var isFileList = kindOfTest("FileList");
|
|
26609
26558
|
var isStream = (val) => isObject2(val) && isFunction(val.pipe);
|
|
26559
|
+
function getGlobal() {
|
|
26560
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
26561
|
+
if (typeof self !== "undefined") return self;
|
|
26562
|
+
if (typeof window !== "undefined") return window;
|
|
26563
|
+
if (typeof global !== "undefined") return global;
|
|
26564
|
+
return {};
|
|
26565
|
+
}
|
|
26566
|
+
var G = getGlobal();
|
|
26567
|
+
var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
|
|
26610
26568
|
var isFormData = (thing) => {
|
|
26611
|
-
|
|
26612
|
-
|
|
26613
|
-
|
|
26569
|
+
if (!thing) return false;
|
|
26570
|
+
if (FormDataCtor && thing instanceof FormDataCtor) return true;
|
|
26571
|
+
const proto2 = getPrototypeOf(thing);
|
|
26572
|
+
if (!proto2 || proto2 === Object.prototype) return false;
|
|
26573
|
+
if (!isFunction(thing.append)) return false;
|
|
26574
|
+
const kind = kindOf(thing);
|
|
26575
|
+
return kind === "formdata" || // detect form-data instance
|
|
26576
|
+
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]";
|
|
26614
26577
|
};
|
|
26615
26578
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
26616
26579
|
var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
@@ -26619,7 +26582,9 @@
|
|
|
26619
26582
|
"Response",
|
|
26620
26583
|
"Headers"
|
|
26621
26584
|
].map(kindOfTest);
|
|
26622
|
-
var trim = (str) =>
|
|
26585
|
+
var trim = (str) => {
|
|
26586
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
26587
|
+
};
|
|
26623
26588
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
26624
26589
|
if (obj === null || typeof obj === "undefined") {
|
|
26625
26590
|
return;
|
|
@@ -26667,7 +26632,7 @@
|
|
|
26667
26632
|
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
26668
26633
|
})();
|
|
26669
26634
|
var isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
26670
|
-
function merge() {
|
|
26635
|
+
function merge(...objs) {
|
|
26671
26636
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
26672
26637
|
const result = {};
|
|
26673
26638
|
const assignValue = (val, key) => {
|
|
@@ -26675,8 +26640,9 @@
|
|
|
26675
26640
|
return;
|
|
26676
26641
|
}
|
|
26677
26642
|
const targetKey = caseless && findKey(result, key) || key;
|
|
26678
|
-
|
|
26679
|
-
|
|
26643
|
+
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
26644
|
+
if (isPlainObject(existing) && isPlainObject(val)) {
|
|
26645
|
+
result[targetKey] = merge(existing, val);
|
|
26680
26646
|
} else if (isPlainObject(val)) {
|
|
26681
26647
|
result[targetKey] = merge({}, val);
|
|
26682
26648
|
} else if (isArray(val)) {
|
|
@@ -26685,8 +26651,8 @@
|
|
|
26685
26651
|
result[targetKey] = val;
|
|
26686
26652
|
}
|
|
26687
26653
|
};
|
|
26688
|
-
for (let i = 0, l =
|
|
26689
|
-
|
|
26654
|
+
for (let i = 0, l = objs.length; i < l; i++) {
|
|
26655
|
+
objs[i] && forEach(objs[i], assignValue);
|
|
26690
26656
|
}
|
|
26691
26657
|
return result;
|
|
26692
26658
|
}
|
|
@@ -26696,6 +26662,9 @@
|
|
|
26696
26662
|
(val, key) => {
|
|
26697
26663
|
if (thisArg && isFunction(val)) {
|
|
26698
26664
|
Object.defineProperty(a, key, {
|
|
26665
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot
|
|
26666
|
+
// hijack defineProperty's accessor-vs-data resolution.
|
|
26667
|
+
__proto__: null,
|
|
26699
26668
|
value: bind(val, thisArg),
|
|
26700
26669
|
writable: true,
|
|
26701
26670
|
enumerable: true,
|
|
@@ -26703,6 +26672,7 @@
|
|
|
26703
26672
|
});
|
|
26704
26673
|
} else {
|
|
26705
26674
|
Object.defineProperty(a, key, {
|
|
26675
|
+
__proto__: null,
|
|
26706
26676
|
value: val,
|
|
26707
26677
|
writable: true,
|
|
26708
26678
|
enumerable: true,
|
|
@@ -26721,17 +26691,16 @@
|
|
|
26721
26691
|
return content;
|
|
26722
26692
|
};
|
|
26723
26693
|
var inherits = (constructor, superConstructor, props, descriptors) => {
|
|
26724
|
-
constructor.prototype = Object.create(
|
|
26725
|
-
superConstructor.prototype,
|
|
26726
|
-
descriptors
|
|
26727
|
-
);
|
|
26694
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
26728
26695
|
Object.defineProperty(constructor.prototype, "constructor", {
|
|
26696
|
+
__proto__: null,
|
|
26729
26697
|
value: constructor,
|
|
26730
26698
|
writable: true,
|
|
26731
26699
|
enumerable: false,
|
|
26732
26700
|
configurable: true
|
|
26733
26701
|
});
|
|
26734
26702
|
Object.defineProperty(constructor, "super", {
|
|
26703
|
+
__proto__: null,
|
|
26735
26704
|
value: superConstructor.prototype
|
|
26736
26705
|
});
|
|
26737
26706
|
props && Object.assign(constructor.prototype, props);
|
|
@@ -26820,7 +26789,7 @@
|
|
|
26820
26789
|
};
|
|
26821
26790
|
var freezeMethods = (obj) => {
|
|
26822
26791
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
26823
|
-
if (isFunction(obj) && ["arguments", "caller", "callee"].
|
|
26792
|
+
if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
|
|
26824
26793
|
return false;
|
|
26825
26794
|
}
|
|
26826
26795
|
const value = obj[name];
|
|
@@ -26923,6 +26892,8 @@
|
|
|
26923
26892
|
isUndefined,
|
|
26924
26893
|
isDate,
|
|
26925
26894
|
isFile,
|
|
26895
|
+
isReactNativeBlob,
|
|
26896
|
+
isReactNative,
|
|
26926
26897
|
isBlob,
|
|
26927
26898
|
isRegExp,
|
|
26928
26899
|
isFunction,
|
|
@@ -26965,836 +26936,955 @@
|
|
|
26965
26936
|
isIterable
|
|
26966
26937
|
};
|
|
26967
26938
|
|
|
26968
|
-
// node_modules/axios/lib/
|
|
26969
|
-
var
|
|
26970
|
-
|
|
26971
|
-
|
|
26972
|
-
|
|
26973
|
-
|
|
26974
|
-
|
|
26975
|
-
|
|
26976
|
-
|
|
26977
|
-
|
|
26978
|
-
|
|
26979
|
-
|
|
26980
|
-
|
|
26981
|
-
|
|
26982
|
-
|
|
26983
|
-
|
|
26984
|
-
|
|
26985
|
-
|
|
26986
|
-
|
|
26987
|
-
|
|
26988
|
-
|
|
26989
|
-
|
|
26990
|
-
|
|
26991
|
-
|
|
26992
|
-
|
|
26993
|
-
|
|
26994
|
-
|
|
26995
|
-
|
|
26996
|
-
|
|
26997
|
-
|
|
26939
|
+
// node_modules/axios/lib/helpers/parseHeaders.js
|
|
26940
|
+
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
26941
|
+
"age",
|
|
26942
|
+
"authorization",
|
|
26943
|
+
"content-length",
|
|
26944
|
+
"content-type",
|
|
26945
|
+
"etag",
|
|
26946
|
+
"expires",
|
|
26947
|
+
"from",
|
|
26948
|
+
"host",
|
|
26949
|
+
"if-modified-since",
|
|
26950
|
+
"if-unmodified-since",
|
|
26951
|
+
"last-modified",
|
|
26952
|
+
"location",
|
|
26953
|
+
"max-forwards",
|
|
26954
|
+
"proxy-authorization",
|
|
26955
|
+
"referer",
|
|
26956
|
+
"retry-after",
|
|
26957
|
+
"user-agent"
|
|
26958
|
+
]);
|
|
26959
|
+
var parseHeaders_default = (rawHeaders) => {
|
|
26960
|
+
const parsed = {};
|
|
26961
|
+
let key;
|
|
26962
|
+
let val;
|
|
26963
|
+
let i;
|
|
26964
|
+
rawHeaders && rawHeaders.split("\n").forEach(function parser(line2) {
|
|
26965
|
+
i = line2.indexOf(":");
|
|
26966
|
+
key = line2.substring(0, i).trim().toLowerCase();
|
|
26967
|
+
val = line2.substring(i + 1).trim();
|
|
26968
|
+
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
26969
|
+
return;
|
|
26998
26970
|
}
|
|
26999
|
-
|
|
27000
|
-
|
|
27001
|
-
|
|
27002
|
-
|
|
27003
|
-
|
|
27004
|
-
|
|
27005
|
-
|
|
27006
|
-
|
|
27007
|
-
|
|
27008
|
-
|
|
27009
|
-
|
|
27010
|
-
lineNumber: this.lineNumber,
|
|
27011
|
-
columnNumber: this.columnNumber,
|
|
27012
|
-
stack: this.stack,
|
|
27013
|
-
// Axios
|
|
27014
|
-
config: utils_default.toJSONObject(this.config),
|
|
27015
|
-
code: this.code,
|
|
27016
|
-
status: this.status
|
|
27017
|
-
};
|
|
27018
|
-
}
|
|
26971
|
+
if (key === "set-cookie") {
|
|
26972
|
+
if (parsed[key]) {
|
|
26973
|
+
parsed[key].push(val);
|
|
26974
|
+
} else {
|
|
26975
|
+
parsed[key] = [val];
|
|
26976
|
+
}
|
|
26977
|
+
} else {
|
|
26978
|
+
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
26979
|
+
}
|
|
26980
|
+
});
|
|
26981
|
+
return parsed;
|
|
27019
26982
|
};
|
|
27020
|
-
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
27021
|
-
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
27022
|
-
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
27023
|
-
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
27024
|
-
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
27025
|
-
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
27026
|
-
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
27027
|
-
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
27028
|
-
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
27029
|
-
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
27030
|
-
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
27031
|
-
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
27032
|
-
var AxiosError_default = AxiosError;
|
|
27033
|
-
|
|
27034
|
-
// node_modules/axios/lib/platform/node/classes/FormData.js
|
|
27035
|
-
var import_form_data = __toESM(require_form_data(), 1);
|
|
27036
|
-
var FormData_default = import_form_data.default;
|
|
27037
26983
|
|
|
27038
|
-
// node_modules/axios/lib/
|
|
27039
|
-
|
|
27040
|
-
|
|
26984
|
+
// node_modules/axios/lib/core/AxiosHeaders.js
|
|
26985
|
+
var $internals = Symbol("internals");
|
|
26986
|
+
var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
|
|
26987
|
+
function trimSPorHTAB(str) {
|
|
26988
|
+
let start = 0;
|
|
26989
|
+
let end = str.length;
|
|
26990
|
+
while (start < end) {
|
|
26991
|
+
const code = str.charCodeAt(start);
|
|
26992
|
+
if (code !== 9 && code !== 32) {
|
|
26993
|
+
break;
|
|
26994
|
+
}
|
|
26995
|
+
start += 1;
|
|
26996
|
+
}
|
|
26997
|
+
while (end > start) {
|
|
26998
|
+
const code = str.charCodeAt(end - 1);
|
|
26999
|
+
if (code !== 9 && code !== 32) {
|
|
27000
|
+
break;
|
|
27001
|
+
}
|
|
27002
|
+
end -= 1;
|
|
27003
|
+
}
|
|
27004
|
+
return start === 0 && end === str.length ? str : str.slice(start, end);
|
|
27041
27005
|
}
|
|
27042
|
-
function
|
|
27043
|
-
return
|
|
27006
|
+
function normalizeHeader(header) {
|
|
27007
|
+
return header && String(header).trim().toLowerCase();
|
|
27044
27008
|
}
|
|
27045
|
-
function
|
|
27046
|
-
|
|
27047
|
-
return path2.concat(key).map(function each(token, i) {
|
|
27048
|
-
token = removeBrackets(token);
|
|
27049
|
-
return !dots && i ? "[" + token + "]" : token;
|
|
27050
|
-
}).join(dots ? "." : "");
|
|
27009
|
+
function sanitizeHeaderValue(str) {
|
|
27010
|
+
return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
|
|
27051
27011
|
}
|
|
27052
|
-
function
|
|
27053
|
-
|
|
27012
|
+
function normalizeValue(value) {
|
|
27013
|
+
if (value === false || value == null) {
|
|
27014
|
+
return value;
|
|
27015
|
+
}
|
|
27016
|
+
return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
|
|
27054
27017
|
}
|
|
27055
|
-
|
|
27056
|
-
|
|
27057
|
-
|
|
27058
|
-
|
|
27059
|
-
|
|
27060
|
-
|
|
27018
|
+
function parseTokens(str) {
|
|
27019
|
+
const tokens = /* @__PURE__ */ Object.create(null);
|
|
27020
|
+
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
27021
|
+
let match;
|
|
27022
|
+
while (match = tokensRE.exec(str)) {
|
|
27023
|
+
tokens[match[1]] = match[2];
|
|
27061
27024
|
}
|
|
27062
|
-
|
|
27063
|
-
|
|
27064
|
-
|
|
27065
|
-
|
|
27066
|
-
|
|
27067
|
-
|
|
27068
|
-
return !utils_default.isUndefined(source[option]);
|
|
27069
|
-
});
|
|
27070
|
-
const metaTokens = options.metaTokens;
|
|
27071
|
-
const visitor = options.visitor || defaultVisitor;
|
|
27072
|
-
const dots = options.dots;
|
|
27073
|
-
const indexes = options.indexes;
|
|
27074
|
-
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
27075
|
-
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
27076
|
-
if (!utils_default.isFunction(visitor)) {
|
|
27077
|
-
throw new TypeError("visitor must be a function");
|
|
27025
|
+
return tokens;
|
|
27026
|
+
}
|
|
27027
|
+
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
27028
|
+
function matchHeaderValue(context, value, header, filter3, isHeaderNameFilter) {
|
|
27029
|
+
if (utils_default.isFunction(filter3)) {
|
|
27030
|
+
return filter3.call(this, value, header);
|
|
27078
27031
|
}
|
|
27079
|
-
|
|
27080
|
-
|
|
27081
|
-
if (utils_default.isDate(value)) {
|
|
27082
|
-
return value.toISOString();
|
|
27083
|
-
}
|
|
27084
|
-
if (utils_default.isBoolean(value)) {
|
|
27085
|
-
return value.toString();
|
|
27086
|
-
}
|
|
27087
|
-
if (!useBlob && utils_default.isBlob(value)) {
|
|
27088
|
-
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
|
|
27089
|
-
}
|
|
27090
|
-
if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
|
|
27091
|
-
return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
27092
|
-
}
|
|
27093
|
-
return value;
|
|
27032
|
+
if (isHeaderNameFilter) {
|
|
27033
|
+
value = header;
|
|
27094
27034
|
}
|
|
27095
|
-
|
|
27096
|
-
|
|
27097
|
-
|
|
27098
|
-
if (utils_default.endsWith(key, "{}")) {
|
|
27099
|
-
key = metaTokens ? key : key.slice(0, -2);
|
|
27100
|
-
value = JSON.stringify(value);
|
|
27101
|
-
} else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
|
|
27102
|
-
key = removeBrackets(key);
|
|
27103
|
-
arr.forEach(function each(el, index) {
|
|
27104
|
-
!(utils_default.isUndefined(el) || el === null) && formData.append(
|
|
27105
|
-
// eslint-disable-next-line no-nested-ternary
|
|
27106
|
-
indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
|
|
27107
|
-
convertValue(el)
|
|
27108
|
-
);
|
|
27109
|
-
});
|
|
27110
|
-
return false;
|
|
27111
|
-
}
|
|
27112
|
-
}
|
|
27113
|
-
if (isVisitable(value)) {
|
|
27114
|
-
return true;
|
|
27115
|
-
}
|
|
27116
|
-
formData.append(renderKey(path2, key, dots), convertValue(value));
|
|
27117
|
-
return false;
|
|
27035
|
+
if (!utils_default.isString(value)) return;
|
|
27036
|
+
if (utils_default.isString(filter3)) {
|
|
27037
|
+
return value.indexOf(filter3) !== -1;
|
|
27118
27038
|
}
|
|
27119
|
-
|
|
27120
|
-
|
|
27121
|
-
|
|
27122
|
-
|
|
27123
|
-
|
|
27039
|
+
if (utils_default.isRegExp(filter3)) {
|
|
27040
|
+
return filter3.test(value);
|
|
27041
|
+
}
|
|
27042
|
+
}
|
|
27043
|
+
function formatHeader(header) {
|
|
27044
|
+
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
27045
|
+
return char.toUpperCase() + str;
|
|
27124
27046
|
});
|
|
27125
|
-
function build(value, path2) {
|
|
27126
|
-
if (utils_default.isUndefined(value)) return;
|
|
27127
|
-
if (stack.indexOf(value) !== -1) {
|
|
27128
|
-
throw Error("Circular reference detected in " + path2.join("."));
|
|
27129
|
-
}
|
|
27130
|
-
stack.push(value);
|
|
27131
|
-
utils_default.forEach(value, function each(el, key) {
|
|
27132
|
-
const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(
|
|
27133
|
-
formData,
|
|
27134
|
-
el,
|
|
27135
|
-
utils_default.isString(key) ? key.trim() : key,
|
|
27136
|
-
path2,
|
|
27137
|
-
exposedHelpers
|
|
27138
|
-
);
|
|
27139
|
-
if (result === true) {
|
|
27140
|
-
build(el, path2 ? path2.concat(key) : [key]);
|
|
27141
|
-
}
|
|
27142
|
-
});
|
|
27143
|
-
stack.pop();
|
|
27144
|
-
}
|
|
27145
|
-
if (!utils_default.isObject(obj)) {
|
|
27146
|
-
throw new TypeError("data must be an object");
|
|
27147
|
-
}
|
|
27148
|
-
build(obj);
|
|
27149
|
-
return formData;
|
|
27150
27047
|
}
|
|
27151
|
-
|
|
27152
|
-
|
|
27153
|
-
|
|
27154
|
-
|
|
27155
|
-
|
|
27156
|
-
|
|
27157
|
-
|
|
27158
|
-
|
|
27159
|
-
|
|
27160
|
-
|
|
27161
|
-
|
|
27162
|
-
|
|
27163
|
-
};
|
|
27164
|
-
return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
|
|
27165
|
-
return charMap[match];
|
|
27048
|
+
function buildAccessors(obj, header) {
|
|
27049
|
+
const accessorName = utils_default.toCamelCase(" " + header);
|
|
27050
|
+
["get", "set", "has"].forEach((methodName) => {
|
|
27051
|
+
Object.defineProperty(obj, methodName + accessorName, {
|
|
27052
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
27053
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
27054
|
+
__proto__: null,
|
|
27055
|
+
value: function(arg1, arg2, arg3) {
|
|
27056
|
+
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
27057
|
+
},
|
|
27058
|
+
configurable: true
|
|
27059
|
+
});
|
|
27166
27060
|
});
|
|
27167
27061
|
}
|
|
27168
|
-
|
|
27169
|
-
|
|
27170
|
-
|
|
27171
|
-
}
|
|
27172
|
-
var prototype = AxiosURLSearchParams.prototype;
|
|
27173
|
-
prototype.append = function append2(name, value) {
|
|
27174
|
-
this._pairs.push([name, value]);
|
|
27175
|
-
};
|
|
27176
|
-
prototype.toString = function toString2(encoder) {
|
|
27177
|
-
const _encode = encoder ? function(value) {
|
|
27178
|
-
return encoder.call(this, value, encode);
|
|
27179
|
-
} : encode;
|
|
27180
|
-
return this._pairs.map(function each(pair) {
|
|
27181
|
-
return _encode(pair[0]) + "=" + _encode(pair[1]);
|
|
27182
|
-
}, "").join("&");
|
|
27183
|
-
};
|
|
27184
|
-
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
27185
|
-
|
|
27186
|
-
// node_modules/axios/lib/helpers/buildURL.js
|
|
27187
|
-
function encode2(val) {
|
|
27188
|
-
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
27189
|
-
}
|
|
27190
|
-
function buildURL(url2, params, options) {
|
|
27191
|
-
if (!params) {
|
|
27192
|
-
return url2;
|
|
27193
|
-
}
|
|
27194
|
-
const _encode = options && options.encode || encode2;
|
|
27195
|
-
const _options = utils_default.isFunction(options) ? {
|
|
27196
|
-
serialize: options
|
|
27197
|
-
} : options;
|
|
27198
|
-
const serializeFn = _options && _options.serialize;
|
|
27199
|
-
let serializedParams;
|
|
27200
|
-
if (serializeFn) {
|
|
27201
|
-
serializedParams = serializeFn(params, _options);
|
|
27202
|
-
} else {
|
|
27203
|
-
serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, _options).toString(_encode);
|
|
27062
|
+
var AxiosHeaders = class {
|
|
27063
|
+
constructor(headers) {
|
|
27064
|
+
headers && this.set(headers);
|
|
27204
27065
|
}
|
|
27205
|
-
|
|
27206
|
-
const
|
|
27207
|
-
|
|
27208
|
-
|
|
27066
|
+
set(header, valueOrRewrite, rewrite) {
|
|
27067
|
+
const self2 = this;
|
|
27068
|
+
function setHeader(_value, _header, _rewrite) {
|
|
27069
|
+
const lHeader = normalizeHeader(_header);
|
|
27070
|
+
if (!lHeader) {
|
|
27071
|
+
throw new Error("header name must be a non-empty string");
|
|
27072
|
+
}
|
|
27073
|
+
const key = utils_default.findKey(self2, lHeader);
|
|
27074
|
+
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
27075
|
+
self2[key || _header] = normalizeValue(_value);
|
|
27076
|
+
}
|
|
27209
27077
|
}
|
|
27210
|
-
|
|
27078
|
+
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
27079
|
+
if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
|
|
27080
|
+
setHeaders(header, valueOrRewrite);
|
|
27081
|
+
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
27082
|
+
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
27083
|
+
} else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
27084
|
+
let obj = {}, dest, key;
|
|
27085
|
+
for (const entry of header) {
|
|
27086
|
+
if (!utils_default.isArray(entry)) {
|
|
27087
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
27088
|
+
}
|
|
27089
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
27090
|
+
}
|
|
27091
|
+
setHeaders(obj, valueOrRewrite);
|
|
27092
|
+
} else {
|
|
27093
|
+
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
27094
|
+
}
|
|
27095
|
+
return this;
|
|
27211
27096
|
}
|
|
27212
|
-
|
|
27213
|
-
|
|
27214
|
-
|
|
27215
|
-
|
|
27216
|
-
|
|
27217
|
-
|
|
27218
|
-
|
|
27097
|
+
get(header, parser) {
|
|
27098
|
+
header = normalizeHeader(header);
|
|
27099
|
+
if (header) {
|
|
27100
|
+
const key = utils_default.findKey(this, header);
|
|
27101
|
+
if (key) {
|
|
27102
|
+
const value = this[key];
|
|
27103
|
+
if (!parser) {
|
|
27104
|
+
return value;
|
|
27105
|
+
}
|
|
27106
|
+
if (parser === true) {
|
|
27107
|
+
return parseTokens(value);
|
|
27108
|
+
}
|
|
27109
|
+
if (utils_default.isFunction(parser)) {
|
|
27110
|
+
return parser.call(this, value, key);
|
|
27111
|
+
}
|
|
27112
|
+
if (utils_default.isRegExp(parser)) {
|
|
27113
|
+
return parser.exec(value);
|
|
27114
|
+
}
|
|
27115
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
27116
|
+
}
|
|
27117
|
+
}
|
|
27219
27118
|
}
|
|
27220
|
-
|
|
27221
|
-
|
|
27222
|
-
|
|
27223
|
-
|
|
27224
|
-
|
|
27225
|
-
|
|
27226
|
-
|
|
27227
|
-
* @return {Number} An ID used to remove interceptor later
|
|
27228
|
-
*/
|
|
27229
|
-
use(fulfilled, rejected, options) {
|
|
27230
|
-
this.handlers.push({
|
|
27231
|
-
fulfilled,
|
|
27232
|
-
rejected,
|
|
27233
|
-
synchronous: options ? options.synchronous : false,
|
|
27234
|
-
runWhen: options ? options.runWhen : null
|
|
27235
|
-
});
|
|
27236
|
-
return this.handlers.length - 1;
|
|
27119
|
+
has(header, matcher) {
|
|
27120
|
+
header = normalizeHeader(header);
|
|
27121
|
+
if (header) {
|
|
27122
|
+
const key = utils_default.findKey(this, header);
|
|
27123
|
+
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
27124
|
+
}
|
|
27125
|
+
return false;
|
|
27237
27126
|
}
|
|
27238
|
-
|
|
27239
|
-
|
|
27240
|
-
|
|
27241
|
-
|
|
27242
|
-
|
|
27243
|
-
|
|
27244
|
-
|
|
27245
|
-
|
|
27246
|
-
|
|
27247
|
-
|
|
27127
|
+
delete(header, matcher) {
|
|
27128
|
+
const self2 = this;
|
|
27129
|
+
let deleted = false;
|
|
27130
|
+
function deleteHeader(_header) {
|
|
27131
|
+
_header = normalizeHeader(_header);
|
|
27132
|
+
if (_header) {
|
|
27133
|
+
const key = utils_default.findKey(self2, _header);
|
|
27134
|
+
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
27135
|
+
delete self2[key];
|
|
27136
|
+
deleted = true;
|
|
27137
|
+
}
|
|
27138
|
+
}
|
|
27248
27139
|
}
|
|
27140
|
+
if (utils_default.isArray(header)) {
|
|
27141
|
+
header.forEach(deleteHeader);
|
|
27142
|
+
} else {
|
|
27143
|
+
deleteHeader(header);
|
|
27144
|
+
}
|
|
27145
|
+
return deleted;
|
|
27249
27146
|
}
|
|
27250
|
-
|
|
27251
|
-
|
|
27252
|
-
|
|
27253
|
-
|
|
27254
|
-
|
|
27255
|
-
|
|
27256
|
-
|
|
27257
|
-
|
|
27147
|
+
clear(matcher) {
|
|
27148
|
+
const keys = Object.keys(this);
|
|
27149
|
+
let i = keys.length;
|
|
27150
|
+
let deleted = false;
|
|
27151
|
+
while (i--) {
|
|
27152
|
+
const key = keys[i];
|
|
27153
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
27154
|
+
delete this[key];
|
|
27155
|
+
deleted = true;
|
|
27156
|
+
}
|
|
27258
27157
|
}
|
|
27158
|
+
return deleted;
|
|
27259
27159
|
}
|
|
27260
|
-
|
|
27261
|
-
|
|
27262
|
-
|
|
27263
|
-
|
|
27264
|
-
|
|
27265
|
-
|
|
27266
|
-
|
|
27267
|
-
|
|
27268
|
-
|
|
27269
|
-
*/
|
|
27270
|
-
forEach(fn) {
|
|
27271
|
-
utils_default.forEach(this.handlers, function forEachHandler(h) {
|
|
27272
|
-
if (h !== null) {
|
|
27273
|
-
fn(h);
|
|
27160
|
+
normalize(format2) {
|
|
27161
|
+
const self2 = this;
|
|
27162
|
+
const headers = {};
|
|
27163
|
+
utils_default.forEach(this, (value, header) => {
|
|
27164
|
+
const key = utils_default.findKey(headers, header);
|
|
27165
|
+
if (key) {
|
|
27166
|
+
self2[key] = normalizeValue(value);
|
|
27167
|
+
delete self2[header];
|
|
27168
|
+
return;
|
|
27274
27169
|
}
|
|
27170
|
+
const normalized = format2 ? formatHeader(header) : String(header).trim();
|
|
27171
|
+
if (normalized !== header) {
|
|
27172
|
+
delete self2[header];
|
|
27173
|
+
}
|
|
27174
|
+
self2[normalized] = normalizeValue(value);
|
|
27175
|
+
headers[normalized] = true;
|
|
27275
27176
|
});
|
|
27177
|
+
return this;
|
|
27276
27178
|
}
|
|
27277
|
-
|
|
27278
|
-
|
|
27279
|
-
|
|
27280
|
-
// node_modules/axios/lib/defaults/transitional.js
|
|
27281
|
-
var transitional_default = {
|
|
27282
|
-
silentJSONParsing: true,
|
|
27283
|
-
forcedJSONParsing: true,
|
|
27284
|
-
clarifyTimeoutError: false,
|
|
27285
|
-
legacyInterceptorReqResOrdering: true
|
|
27286
|
-
};
|
|
27287
|
-
|
|
27288
|
-
// node_modules/axios/lib/platform/node/index.js
|
|
27289
|
-
var import_crypto3 = __toESM(__require("crypto"), 1);
|
|
27290
|
-
|
|
27291
|
-
// node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
27292
|
-
var import_url = __toESM(__require("url"), 1);
|
|
27293
|
-
var URLSearchParams_default = import_url.default.URLSearchParams;
|
|
27294
|
-
|
|
27295
|
-
// node_modules/axios/lib/platform/node/index.js
|
|
27296
|
-
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
27297
|
-
var DIGIT = "0123456789";
|
|
27298
|
-
var ALPHABET = {
|
|
27299
|
-
DIGIT,
|
|
27300
|
-
ALPHA,
|
|
27301
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
27302
|
-
};
|
|
27303
|
-
var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
27304
|
-
let str = "";
|
|
27305
|
-
const { length } = alphabet;
|
|
27306
|
-
const randomValues = new Uint32Array(size);
|
|
27307
|
-
import_crypto3.default.randomFillSync(randomValues);
|
|
27308
|
-
for (let i = 0; i < size; i++) {
|
|
27309
|
-
str += alphabet[randomValues[i] % length];
|
|
27310
|
-
}
|
|
27311
|
-
return str;
|
|
27312
|
-
};
|
|
27313
|
-
var node_default2 = {
|
|
27314
|
-
isNode: true,
|
|
27315
|
-
classes: {
|
|
27316
|
-
URLSearchParams: URLSearchParams_default,
|
|
27317
|
-
FormData: FormData_default,
|
|
27318
|
-
Blob: typeof Blob !== "undefined" && Blob || null
|
|
27319
|
-
},
|
|
27320
|
-
ALPHABET,
|
|
27321
|
-
generateString,
|
|
27322
|
-
protocols: ["http", "https", "file", "data"]
|
|
27323
|
-
};
|
|
27324
|
-
|
|
27325
|
-
// node_modules/axios/lib/platform/common/utils.js
|
|
27326
|
-
var utils_exports = {};
|
|
27327
|
-
__export(utils_exports, {
|
|
27328
|
-
hasBrowserEnv: () => hasBrowserEnv,
|
|
27329
|
-
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
27330
|
-
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
|
|
27331
|
-
navigator: () => _navigator,
|
|
27332
|
-
origin: () => origin
|
|
27333
|
-
});
|
|
27334
|
-
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
27335
|
-
var _navigator = typeof navigator === "object" && navigator || void 0;
|
|
27336
|
-
var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
|
|
27337
|
-
var hasStandardBrowserWebWorkerEnv = (() => {
|
|
27338
|
-
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
27339
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
27340
|
-
})();
|
|
27341
|
-
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
27342
|
-
|
|
27343
|
-
// node_modules/axios/lib/platform/index.js
|
|
27344
|
-
var platform_default = {
|
|
27345
|
-
...utils_exports,
|
|
27346
|
-
...node_default2
|
|
27347
|
-
};
|
|
27348
|
-
|
|
27349
|
-
// node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
27350
|
-
function toURLEncodedForm(data, options) {
|
|
27351
|
-
return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
|
|
27352
|
-
visitor: function(value, key, path2, helpers) {
|
|
27353
|
-
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
27354
|
-
this.append(key, value.toString("base64"));
|
|
27355
|
-
return false;
|
|
27356
|
-
}
|
|
27357
|
-
return helpers.defaultVisitor.apply(this, arguments);
|
|
27358
|
-
},
|
|
27359
|
-
...options
|
|
27360
|
-
});
|
|
27361
|
-
}
|
|
27362
|
-
|
|
27363
|
-
// node_modules/axios/lib/helpers/formDataToJSON.js
|
|
27364
|
-
function parsePropPath(name) {
|
|
27365
|
-
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
27366
|
-
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
27367
|
-
});
|
|
27368
|
-
}
|
|
27369
|
-
function arrayToObject(arr) {
|
|
27370
|
-
const obj = {};
|
|
27371
|
-
const keys = Object.keys(arr);
|
|
27372
|
-
let i;
|
|
27373
|
-
const len = keys.length;
|
|
27374
|
-
let key;
|
|
27375
|
-
for (i = 0; i < len; i++) {
|
|
27376
|
-
key = keys[i];
|
|
27377
|
-
obj[key] = arr[key];
|
|
27378
|
-
}
|
|
27379
|
-
return obj;
|
|
27380
|
-
}
|
|
27381
|
-
function formDataToJSON(formData) {
|
|
27382
|
-
function buildPath(path2, value, target, index) {
|
|
27383
|
-
let name = path2[index++];
|
|
27384
|
-
if (name === "__proto__") return true;
|
|
27385
|
-
const isNumericKey = Number.isFinite(+name);
|
|
27386
|
-
const isLast = index >= path2.length;
|
|
27387
|
-
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
27388
|
-
if (isLast) {
|
|
27389
|
-
if (utils_default.hasOwnProp(target, name)) {
|
|
27390
|
-
target[name] = [target[name], value];
|
|
27391
|
-
} else {
|
|
27392
|
-
target[name] = value;
|
|
27393
|
-
}
|
|
27394
|
-
return !isNumericKey;
|
|
27395
|
-
}
|
|
27396
|
-
if (!target[name] || !utils_default.isObject(target[name])) {
|
|
27397
|
-
target[name] = [];
|
|
27398
|
-
}
|
|
27399
|
-
const result = buildPath(path2, value, target[name], index);
|
|
27400
|
-
if (result && utils_default.isArray(target[name])) {
|
|
27401
|
-
target[name] = arrayToObject(target[name]);
|
|
27402
|
-
}
|
|
27403
|
-
return !isNumericKey;
|
|
27179
|
+
concat(...targets) {
|
|
27180
|
+
return this.constructor.concat(this, ...targets);
|
|
27404
27181
|
}
|
|
27405
|
-
|
|
27406
|
-
const obj =
|
|
27407
|
-
utils_default.
|
|
27408
|
-
|
|
27182
|
+
toJSON(asStrings) {
|
|
27183
|
+
const obj = /* @__PURE__ */ Object.create(null);
|
|
27184
|
+
utils_default.forEach(this, (value, header) => {
|
|
27185
|
+
value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
|
|
27409
27186
|
});
|
|
27410
27187
|
return obj;
|
|
27411
27188
|
}
|
|
27412
|
-
|
|
27413
|
-
|
|
27414
|
-
|
|
27415
|
-
|
|
27416
|
-
|
|
27417
|
-
|
|
27418
|
-
|
|
27419
|
-
|
|
27420
|
-
|
|
27421
|
-
|
|
27422
|
-
|
|
27423
|
-
|
|
27424
|
-
|
|
27189
|
+
[Symbol.iterator]() {
|
|
27190
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
27191
|
+
}
|
|
27192
|
+
toString() {
|
|
27193
|
+
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
27194
|
+
}
|
|
27195
|
+
getSetCookie() {
|
|
27196
|
+
return this.get("set-cookie") || [];
|
|
27197
|
+
}
|
|
27198
|
+
get [Symbol.toStringTag]() {
|
|
27199
|
+
return "AxiosHeaders";
|
|
27200
|
+
}
|
|
27201
|
+
static from(thing) {
|
|
27202
|
+
return thing instanceof this ? thing : new this(thing);
|
|
27203
|
+
}
|
|
27204
|
+
static concat(first, ...targets) {
|
|
27205
|
+
const computed = new this(first);
|
|
27206
|
+
targets.forEach((target) => computed.set(target));
|
|
27207
|
+
return computed;
|
|
27208
|
+
}
|
|
27209
|
+
static accessor(header) {
|
|
27210
|
+
const internals = this[$internals] = this[$internals] = {
|
|
27211
|
+
accessors: {}
|
|
27212
|
+
};
|
|
27213
|
+
const accessors = internals.accessors;
|
|
27214
|
+
const prototype2 = this.prototype;
|
|
27215
|
+
function defineAccessor(_header) {
|
|
27216
|
+
const lHeader = normalizeHeader(_header);
|
|
27217
|
+
if (!accessors[lHeader]) {
|
|
27218
|
+
buildAccessors(prototype2, _header);
|
|
27219
|
+
accessors[lHeader] = true;
|
|
27425
27220
|
}
|
|
27426
27221
|
}
|
|
27222
|
+
utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
27223
|
+
return this;
|
|
27427
27224
|
}
|
|
27428
|
-
|
|
27429
|
-
|
|
27430
|
-
|
|
27431
|
-
|
|
27432
|
-
|
|
27433
|
-
|
|
27434
|
-
|
|
27435
|
-
|
|
27436
|
-
|
|
27437
|
-
|
|
27438
|
-
|
|
27439
|
-
|
|
27440
|
-
|
|
27441
|
-
|
|
27442
|
-
|
|
27443
|
-
}
|
|
27444
|
-
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)) {
|
|
27445
|
-
return data;
|
|
27446
|
-
}
|
|
27447
|
-
if (utils_default.isArrayBufferView(data)) {
|
|
27448
|
-
return data.buffer;
|
|
27225
|
+
};
|
|
27226
|
+
AxiosHeaders.accessor([
|
|
27227
|
+
"Content-Type",
|
|
27228
|
+
"Content-Length",
|
|
27229
|
+
"Accept",
|
|
27230
|
+
"Accept-Encoding",
|
|
27231
|
+
"User-Agent",
|
|
27232
|
+
"Authorization"
|
|
27233
|
+
]);
|
|
27234
|
+
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
27235
|
+
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
27236
|
+
return {
|
|
27237
|
+
get: () => value,
|
|
27238
|
+
set(headerValue) {
|
|
27239
|
+
this[mapped] = headerValue;
|
|
27449
27240
|
}
|
|
27450
|
-
|
|
27451
|
-
|
|
27452
|
-
|
|
27241
|
+
};
|
|
27242
|
+
});
|
|
27243
|
+
utils_default.freezeMethods(AxiosHeaders);
|
|
27244
|
+
var AxiosHeaders_default = AxiosHeaders;
|
|
27245
|
+
|
|
27246
|
+
// node_modules/axios/lib/core/AxiosError.js
|
|
27247
|
+
var REDACTED = "[REDACTED ****]";
|
|
27248
|
+
function hasOwnOrPrototypeToJSON(source) {
|
|
27249
|
+
if (utils_default.hasOwnProp(source, "toJSON")) {
|
|
27250
|
+
return true;
|
|
27251
|
+
}
|
|
27252
|
+
let prototype2 = Object.getPrototypeOf(source);
|
|
27253
|
+
while (prototype2 && prototype2 !== Object.prototype) {
|
|
27254
|
+
if (utils_default.hasOwnProp(prototype2, "toJSON")) {
|
|
27255
|
+
return true;
|
|
27453
27256
|
}
|
|
27454
|
-
|
|
27455
|
-
|
|
27456
|
-
|
|
27457
|
-
|
|
27458
|
-
|
|
27459
|
-
|
|
27460
|
-
|
|
27461
|
-
|
|
27462
|
-
|
|
27463
|
-
|
|
27464
|
-
|
|
27465
|
-
|
|
27257
|
+
prototype2 = Object.getPrototypeOf(prototype2);
|
|
27258
|
+
}
|
|
27259
|
+
return false;
|
|
27260
|
+
}
|
|
27261
|
+
function redactConfig(config, redactKeys) {
|
|
27262
|
+
const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
|
|
27263
|
+
const seen = [];
|
|
27264
|
+
const visit = (source) => {
|
|
27265
|
+
if (source === null || typeof source !== "object") return source;
|
|
27266
|
+
if (utils_default.isBuffer(source)) return source;
|
|
27267
|
+
if (seen.indexOf(source) !== -1) return void 0;
|
|
27268
|
+
if (source instanceof AxiosHeaders_default) {
|
|
27269
|
+
source = source.toJSON();
|
|
27270
|
+
}
|
|
27271
|
+
seen.push(source);
|
|
27272
|
+
let result;
|
|
27273
|
+
if (utils_default.isArray(source)) {
|
|
27274
|
+
result = [];
|
|
27275
|
+
source.forEach((v, i) => {
|
|
27276
|
+
const reducedValue = visit(v);
|
|
27277
|
+
if (!utils_default.isUndefined(reducedValue)) {
|
|
27278
|
+
result[i] = reducedValue;
|
|
27279
|
+
}
|
|
27280
|
+
});
|
|
27281
|
+
} else {
|
|
27282
|
+
if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
|
|
27283
|
+
seen.pop();
|
|
27284
|
+
return source;
|
|
27466
27285
|
}
|
|
27467
|
-
|
|
27468
|
-
|
|
27469
|
-
|
|
27470
|
-
|
|
27471
|
-
|
|
27472
|
-
return data;
|
|
27473
|
-
}],
|
|
27474
|
-
transformResponse: [function transformResponse(data) {
|
|
27475
|
-
const transitional2 = this.transitional || defaults.transitional;
|
|
27476
|
-
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
27477
|
-
const JSONRequested = this.responseType === "json";
|
|
27478
|
-
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
27479
|
-
return data;
|
|
27480
|
-
}
|
|
27481
|
-
if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
27482
|
-
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
27483
|
-
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
27484
|
-
try {
|
|
27485
|
-
return JSON.parse(data, this.parseReviver);
|
|
27486
|
-
} catch (e) {
|
|
27487
|
-
if (strictJSONParsing) {
|
|
27488
|
-
if (e.name === "SyntaxError") {
|
|
27489
|
-
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
|
|
27490
|
-
}
|
|
27491
|
-
throw e;
|
|
27286
|
+
result = /* @__PURE__ */ Object.create(null);
|
|
27287
|
+
for (const [key, value] of Object.entries(source)) {
|
|
27288
|
+
const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
|
|
27289
|
+
if (!utils_default.isUndefined(reducedValue)) {
|
|
27290
|
+
result[key] = reducedValue;
|
|
27492
27291
|
}
|
|
27493
27292
|
}
|
|
27494
27293
|
}
|
|
27495
|
-
|
|
27496
|
-
|
|
27497
|
-
|
|
27498
|
-
|
|
27499
|
-
|
|
27500
|
-
|
|
27501
|
-
|
|
27502
|
-
|
|
27503
|
-
|
|
27504
|
-
|
|
27505
|
-
|
|
27506
|
-
|
|
27507
|
-
FormData: platform_default.classes.FormData,
|
|
27508
|
-
Blob: platform_default.classes.Blob
|
|
27509
|
-
},
|
|
27510
|
-
validateStatus: function validateStatus(status) {
|
|
27511
|
-
return status >= 200 && status < 300;
|
|
27512
|
-
},
|
|
27513
|
-
headers: {
|
|
27514
|
-
common: {
|
|
27515
|
-
"Accept": "application/json, text/plain, */*",
|
|
27516
|
-
"Content-Type": void 0
|
|
27294
|
+
seen.pop();
|
|
27295
|
+
return result;
|
|
27296
|
+
};
|
|
27297
|
+
return visit(config);
|
|
27298
|
+
}
|
|
27299
|
+
var AxiosError = class _AxiosError extends Error {
|
|
27300
|
+
static from(error, code, config, request, response, customProps) {
|
|
27301
|
+
const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
|
|
27302
|
+
axiosError.cause = error;
|
|
27303
|
+
axiosError.name = error.name;
|
|
27304
|
+
if (error.status != null && axiosError.status == null) {
|
|
27305
|
+
axiosError.status = error.status;
|
|
27517
27306
|
}
|
|
27307
|
+
customProps && Object.assign(axiosError, customProps);
|
|
27308
|
+
return axiosError;
|
|
27518
27309
|
}
|
|
27519
|
-
|
|
27520
|
-
|
|
27521
|
-
|
|
27522
|
-
|
|
27523
|
-
|
|
27524
|
-
|
|
27525
|
-
|
|
27526
|
-
|
|
27527
|
-
|
|
27528
|
-
|
|
27529
|
-
|
|
27530
|
-
|
|
27531
|
-
|
|
27532
|
-
|
|
27533
|
-
|
|
27534
|
-
|
|
27535
|
-
|
|
27536
|
-
|
|
27537
|
-
|
|
27538
|
-
|
|
27539
|
-
|
|
27540
|
-
|
|
27541
|
-
|
|
27542
|
-
|
|
27543
|
-
|
|
27544
|
-
|
|
27545
|
-
|
|
27546
|
-
|
|
27547
|
-
|
|
27548
|
-
|
|
27549
|
-
let i;
|
|
27550
|
-
rawHeaders && rawHeaders.split("\n").forEach(function parser(line2) {
|
|
27551
|
-
i = line2.indexOf(":");
|
|
27552
|
-
key = line2.substring(0, i).trim().toLowerCase();
|
|
27553
|
-
val = line2.substring(i + 1).trim();
|
|
27554
|
-
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
27555
|
-
return;
|
|
27556
|
-
}
|
|
27557
|
-
if (key === "set-cookie") {
|
|
27558
|
-
if (parsed[key]) {
|
|
27559
|
-
parsed[key].push(val);
|
|
27560
|
-
} else {
|
|
27561
|
-
parsed[key] = [val];
|
|
27562
|
-
}
|
|
27563
|
-
} else {
|
|
27564
|
-
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
27310
|
+
/**
|
|
27311
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
27312
|
+
*
|
|
27313
|
+
* @param {string} message The error message.
|
|
27314
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
27315
|
+
* @param {Object} [config] The config.
|
|
27316
|
+
* @param {Object} [request] The request.
|
|
27317
|
+
* @param {Object} [response] The response.
|
|
27318
|
+
*
|
|
27319
|
+
* @returns {Error} The created error.
|
|
27320
|
+
*/
|
|
27321
|
+
constructor(message, code, config, request, response) {
|
|
27322
|
+
super(message);
|
|
27323
|
+
Object.defineProperty(this, "message", {
|
|
27324
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
27325
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
27326
|
+
__proto__: null,
|
|
27327
|
+
value: message,
|
|
27328
|
+
enumerable: true,
|
|
27329
|
+
writable: true,
|
|
27330
|
+
configurable: true
|
|
27331
|
+
});
|
|
27332
|
+
this.name = "AxiosError";
|
|
27333
|
+
this.isAxiosError = true;
|
|
27334
|
+
code && (this.code = code);
|
|
27335
|
+
config && (this.config = config);
|
|
27336
|
+
request && (this.request = request);
|
|
27337
|
+
if (response) {
|
|
27338
|
+
this.response = response;
|
|
27339
|
+
this.status = response.status;
|
|
27565
27340
|
}
|
|
27566
|
-
}
|
|
27567
|
-
|
|
27341
|
+
}
|
|
27342
|
+
toJSON() {
|
|
27343
|
+
const config = this.config;
|
|
27344
|
+
const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
|
|
27345
|
+
const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
|
|
27346
|
+
return {
|
|
27347
|
+
// Standard
|
|
27348
|
+
message: this.message,
|
|
27349
|
+
name: this.name,
|
|
27350
|
+
// Microsoft
|
|
27351
|
+
description: this.description,
|
|
27352
|
+
number: this.number,
|
|
27353
|
+
// Mozilla
|
|
27354
|
+
fileName: this.fileName,
|
|
27355
|
+
lineNumber: this.lineNumber,
|
|
27356
|
+
columnNumber: this.columnNumber,
|
|
27357
|
+
stack: this.stack,
|
|
27358
|
+
// Axios
|
|
27359
|
+
config: serializedConfig,
|
|
27360
|
+
code: this.code,
|
|
27361
|
+
status: this.status
|
|
27362
|
+
};
|
|
27363
|
+
}
|
|
27568
27364
|
};
|
|
27365
|
+
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
27366
|
+
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
27367
|
+
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
27368
|
+
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
27369
|
+
AxiosError.ECONNREFUSED = "ECONNREFUSED";
|
|
27370
|
+
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
27371
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
27372
|
+
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
27373
|
+
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
27374
|
+
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
27375
|
+
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
27376
|
+
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
27377
|
+
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
27378
|
+
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
27379
|
+
var AxiosError_default = AxiosError;
|
|
27569
27380
|
|
|
27570
|
-
// node_modules/axios/lib/
|
|
27571
|
-
var
|
|
27572
|
-
|
|
27573
|
-
|
|
27381
|
+
// node_modules/axios/lib/platform/node/classes/FormData.js
|
|
27382
|
+
var import_form_data = __toESM(require_form_data(), 1);
|
|
27383
|
+
var FormData_default = import_form_data.default;
|
|
27384
|
+
|
|
27385
|
+
// node_modules/axios/lib/helpers/toFormData.js
|
|
27386
|
+
function isVisitable(thing) {
|
|
27387
|
+
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
27574
27388
|
}
|
|
27575
|
-
function
|
|
27576
|
-
|
|
27577
|
-
return value;
|
|
27578
|
-
}
|
|
27579
|
-
return utils_default.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
27389
|
+
function removeBrackets(key) {
|
|
27390
|
+
return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
27580
27391
|
}
|
|
27581
|
-
function
|
|
27582
|
-
|
|
27583
|
-
|
|
27584
|
-
|
|
27585
|
-
|
|
27586
|
-
|
|
27587
|
-
}
|
|
27588
|
-
return tokens;
|
|
27392
|
+
function renderKey(path2, key, dots) {
|
|
27393
|
+
if (!path2) return key;
|
|
27394
|
+
return path2.concat(key).map(function each(token, i) {
|
|
27395
|
+
token = removeBrackets(token);
|
|
27396
|
+
return !dots && i ? "[" + token + "]" : token;
|
|
27397
|
+
}).join(dots ? "." : "");
|
|
27589
27398
|
}
|
|
27590
|
-
|
|
27591
|
-
|
|
27592
|
-
|
|
27593
|
-
|
|
27399
|
+
function isFlatArray(arr) {
|
|
27400
|
+
return utils_default.isArray(arr) && !arr.some(isVisitable);
|
|
27401
|
+
}
|
|
27402
|
+
var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter2(prop) {
|
|
27403
|
+
return /^is[A-Z]/.test(prop);
|
|
27404
|
+
});
|
|
27405
|
+
function toFormData(obj, formData, options) {
|
|
27406
|
+
if (!utils_default.isObject(obj)) {
|
|
27407
|
+
throw new TypeError("target must be an object");
|
|
27594
27408
|
}
|
|
27595
|
-
|
|
27596
|
-
|
|
27409
|
+
formData = formData || new (FormData_default || FormData)();
|
|
27410
|
+
options = utils_default.toFlatObject(
|
|
27411
|
+
options,
|
|
27412
|
+
{
|
|
27413
|
+
metaTokens: true,
|
|
27414
|
+
dots: false,
|
|
27415
|
+
indexes: false
|
|
27416
|
+
},
|
|
27417
|
+
false,
|
|
27418
|
+
function defined(option, source) {
|
|
27419
|
+
return !utils_default.isUndefined(source[option]);
|
|
27420
|
+
}
|
|
27421
|
+
);
|
|
27422
|
+
const metaTokens = options.metaTokens;
|
|
27423
|
+
const visitor = options.visitor || defaultVisitor;
|
|
27424
|
+
const dots = options.dots;
|
|
27425
|
+
const indexes = options.indexes;
|
|
27426
|
+
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
27427
|
+
const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
|
|
27428
|
+
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
27429
|
+
if (!utils_default.isFunction(visitor)) {
|
|
27430
|
+
throw new TypeError("visitor must be a function");
|
|
27597
27431
|
}
|
|
27598
|
-
|
|
27599
|
-
|
|
27600
|
-
|
|
27432
|
+
function convertValue(value) {
|
|
27433
|
+
if (value === null) return "";
|
|
27434
|
+
if (utils_default.isDate(value)) {
|
|
27435
|
+
return value.toISOString();
|
|
27436
|
+
}
|
|
27437
|
+
if (utils_default.isBoolean(value)) {
|
|
27438
|
+
return value.toString();
|
|
27439
|
+
}
|
|
27440
|
+
if (!useBlob && utils_default.isBlob(value)) {
|
|
27441
|
+
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
|
|
27442
|
+
}
|
|
27443
|
+
if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
|
|
27444
|
+
return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
27445
|
+
}
|
|
27446
|
+
return value;
|
|
27601
27447
|
}
|
|
27602
|
-
|
|
27603
|
-
|
|
27448
|
+
function defaultVisitor(value, key, path2) {
|
|
27449
|
+
let arr = value;
|
|
27450
|
+
if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
|
|
27451
|
+
formData.append(renderKey(path2, key, dots), convertValue(value));
|
|
27452
|
+
return false;
|
|
27453
|
+
}
|
|
27454
|
+
if (value && !path2 && typeof value === "object") {
|
|
27455
|
+
if (utils_default.endsWith(key, "{}")) {
|
|
27456
|
+
key = metaTokens ? key : key.slice(0, -2);
|
|
27457
|
+
value = JSON.stringify(value);
|
|
27458
|
+
} else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
|
|
27459
|
+
key = removeBrackets(key);
|
|
27460
|
+
arr.forEach(function each(el, index) {
|
|
27461
|
+
!(utils_default.isUndefined(el) || el === null) && formData.append(
|
|
27462
|
+
// eslint-disable-next-line no-nested-ternary
|
|
27463
|
+
indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
|
|
27464
|
+
convertValue(el)
|
|
27465
|
+
);
|
|
27466
|
+
});
|
|
27467
|
+
return false;
|
|
27468
|
+
}
|
|
27469
|
+
}
|
|
27470
|
+
if (isVisitable(value)) {
|
|
27471
|
+
return true;
|
|
27472
|
+
}
|
|
27473
|
+
formData.append(renderKey(path2, key, dots), convertValue(value));
|
|
27474
|
+
return false;
|
|
27604
27475
|
}
|
|
27605
|
-
|
|
27606
|
-
|
|
27607
|
-
|
|
27608
|
-
|
|
27476
|
+
const stack = [];
|
|
27477
|
+
const exposedHelpers = Object.assign(predicates, {
|
|
27478
|
+
defaultVisitor,
|
|
27479
|
+
convertValue,
|
|
27480
|
+
isVisitable
|
|
27609
27481
|
});
|
|
27610
|
-
|
|
27611
|
-
|
|
27612
|
-
|
|
27613
|
-
|
|
27614
|
-
|
|
27615
|
-
|
|
27616
|
-
|
|
27617
|
-
|
|
27618
|
-
|
|
27482
|
+
function build(value, path2, depth = 0) {
|
|
27483
|
+
if (utils_default.isUndefined(value)) return;
|
|
27484
|
+
if (depth > maxDepth) {
|
|
27485
|
+
throw new AxiosError_default(
|
|
27486
|
+
"Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
|
|
27487
|
+
AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
27488
|
+
);
|
|
27489
|
+
}
|
|
27490
|
+
if (stack.indexOf(value) !== -1) {
|
|
27491
|
+
throw Error("Circular reference detected in " + path2.join("."));
|
|
27492
|
+
}
|
|
27493
|
+
stack.push(value);
|
|
27494
|
+
utils_default.forEach(value, function each(el, key) {
|
|
27495
|
+
const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path2, exposedHelpers);
|
|
27496
|
+
if (result === true) {
|
|
27497
|
+
build(el, path2 ? path2.concat(key) : [key], depth + 1);
|
|
27498
|
+
}
|
|
27619
27499
|
});
|
|
27500
|
+
stack.pop();
|
|
27501
|
+
}
|
|
27502
|
+
if (!utils_default.isObject(obj)) {
|
|
27503
|
+
throw new TypeError("data must be an object");
|
|
27504
|
+
}
|
|
27505
|
+
build(obj);
|
|
27506
|
+
return formData;
|
|
27507
|
+
}
|
|
27508
|
+
var toFormData_default = toFormData;
|
|
27509
|
+
|
|
27510
|
+
// node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
27511
|
+
function encode(str) {
|
|
27512
|
+
const charMap = {
|
|
27513
|
+
"!": "%21",
|
|
27514
|
+
"'": "%27",
|
|
27515
|
+
"(": "%28",
|
|
27516
|
+
")": "%29",
|
|
27517
|
+
"~": "%7E",
|
|
27518
|
+
"%20": "+"
|
|
27519
|
+
};
|
|
27520
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
|
|
27521
|
+
return charMap[match];
|
|
27620
27522
|
});
|
|
27621
27523
|
}
|
|
27622
|
-
|
|
27623
|
-
|
|
27624
|
-
|
|
27524
|
+
function AxiosURLSearchParams(params, options) {
|
|
27525
|
+
this._pairs = [];
|
|
27526
|
+
params && toFormData_default(params, this, options);
|
|
27527
|
+
}
|
|
27528
|
+
var prototype = AxiosURLSearchParams.prototype;
|
|
27529
|
+
prototype.append = function append2(name, value) {
|
|
27530
|
+
this._pairs.push([name, value]);
|
|
27531
|
+
};
|
|
27532
|
+
prototype.toString = function toString2(encoder) {
|
|
27533
|
+
const _encode = encoder ? function(value) {
|
|
27534
|
+
return encoder.call(this, value, encode);
|
|
27535
|
+
} : encode;
|
|
27536
|
+
return this._pairs.map(function each(pair) {
|
|
27537
|
+
return _encode(pair[0]) + "=" + _encode(pair[1]);
|
|
27538
|
+
}, "").join("&");
|
|
27539
|
+
};
|
|
27540
|
+
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
27541
|
+
|
|
27542
|
+
// node_modules/axios/lib/helpers/buildURL.js
|
|
27543
|
+
function encode2(val) {
|
|
27544
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
27545
|
+
}
|
|
27546
|
+
function buildURL(url2, params, options) {
|
|
27547
|
+
if (!params) {
|
|
27548
|
+
return url2;
|
|
27625
27549
|
}
|
|
27626
|
-
|
|
27627
|
-
|
|
27628
|
-
|
|
27629
|
-
|
|
27630
|
-
|
|
27631
|
-
|
|
27632
|
-
|
|
27633
|
-
|
|
27634
|
-
|
|
27635
|
-
|
|
27636
|
-
|
|
27637
|
-
|
|
27638
|
-
const
|
|
27639
|
-
if (
|
|
27640
|
-
|
|
27641
|
-
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
27642
|
-
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
27643
|
-
} else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
27644
|
-
let obj = {}, dest, key;
|
|
27645
|
-
for (const entry of header) {
|
|
27646
|
-
if (!utils_default.isArray(entry)) {
|
|
27647
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
27648
|
-
}
|
|
27649
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
27650
|
-
}
|
|
27651
|
-
setHeaders(obj, valueOrRewrite);
|
|
27652
|
-
} else {
|
|
27653
|
-
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
27550
|
+
const _encode = options && options.encode || encode2;
|
|
27551
|
+
const _options = utils_default.isFunction(options) ? {
|
|
27552
|
+
serialize: options
|
|
27553
|
+
} : options;
|
|
27554
|
+
const serializeFn = _options && _options.serialize;
|
|
27555
|
+
let serializedParams;
|
|
27556
|
+
if (serializeFn) {
|
|
27557
|
+
serializedParams = serializeFn(params, _options);
|
|
27558
|
+
} else {
|
|
27559
|
+
serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, _options).toString(_encode);
|
|
27560
|
+
}
|
|
27561
|
+
if (serializedParams) {
|
|
27562
|
+
const hashmarkIndex = url2.indexOf("#");
|
|
27563
|
+
if (hashmarkIndex !== -1) {
|
|
27564
|
+
url2 = url2.slice(0, hashmarkIndex);
|
|
27654
27565
|
}
|
|
27655
|
-
|
|
27566
|
+
url2 += (url2.indexOf("?") === -1 ? "?" : "&") + serializedParams;
|
|
27656
27567
|
}
|
|
27657
|
-
|
|
27658
|
-
|
|
27659
|
-
|
|
27660
|
-
|
|
27661
|
-
|
|
27662
|
-
|
|
27663
|
-
|
|
27664
|
-
|
|
27665
|
-
|
|
27666
|
-
|
|
27667
|
-
|
|
27668
|
-
|
|
27669
|
-
|
|
27670
|
-
|
|
27671
|
-
|
|
27672
|
-
|
|
27673
|
-
|
|
27674
|
-
|
|
27675
|
-
|
|
27676
|
-
|
|
27568
|
+
return url2;
|
|
27569
|
+
}
|
|
27570
|
+
|
|
27571
|
+
// node_modules/axios/lib/core/InterceptorManager.js
|
|
27572
|
+
var InterceptorManager = class {
|
|
27573
|
+
constructor() {
|
|
27574
|
+
this.handlers = [];
|
|
27575
|
+
}
|
|
27576
|
+
/**
|
|
27577
|
+
* Add a new interceptor to the stack
|
|
27578
|
+
*
|
|
27579
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
27580
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
27581
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
27582
|
+
*
|
|
27583
|
+
* @return {Number} An ID used to remove interceptor later
|
|
27584
|
+
*/
|
|
27585
|
+
use(fulfilled, rejected, options) {
|
|
27586
|
+
this.handlers.push({
|
|
27587
|
+
fulfilled,
|
|
27588
|
+
rejected,
|
|
27589
|
+
synchronous: options ? options.synchronous : false,
|
|
27590
|
+
runWhen: options ? options.runWhen : null
|
|
27591
|
+
});
|
|
27592
|
+
return this.handlers.length - 1;
|
|
27593
|
+
}
|
|
27594
|
+
/**
|
|
27595
|
+
* Remove an interceptor from the stack
|
|
27596
|
+
*
|
|
27597
|
+
* @param {Number} id The ID that was returned by `use`
|
|
27598
|
+
*
|
|
27599
|
+
* @returns {void}
|
|
27600
|
+
*/
|
|
27601
|
+
eject(id) {
|
|
27602
|
+
if (this.handlers[id]) {
|
|
27603
|
+
this.handlers[id] = null;
|
|
27677
27604
|
}
|
|
27678
27605
|
}
|
|
27679
|
-
|
|
27680
|
-
|
|
27681
|
-
|
|
27682
|
-
|
|
27683
|
-
|
|
27606
|
+
/**
|
|
27607
|
+
* Clear all interceptors from the stack
|
|
27608
|
+
*
|
|
27609
|
+
* @returns {void}
|
|
27610
|
+
*/
|
|
27611
|
+
clear() {
|
|
27612
|
+
if (this.handlers) {
|
|
27613
|
+
this.handlers = [];
|
|
27684
27614
|
}
|
|
27685
|
-
return false;
|
|
27686
27615
|
}
|
|
27687
|
-
|
|
27688
|
-
|
|
27689
|
-
|
|
27690
|
-
|
|
27691
|
-
|
|
27692
|
-
|
|
27693
|
-
|
|
27694
|
-
|
|
27695
|
-
|
|
27696
|
-
|
|
27697
|
-
|
|
27616
|
+
/**
|
|
27617
|
+
* Iterate over all the registered interceptors
|
|
27618
|
+
*
|
|
27619
|
+
* This method is particularly useful for skipping over any
|
|
27620
|
+
* interceptors that may have become `null` calling `eject`.
|
|
27621
|
+
*
|
|
27622
|
+
* @param {Function} fn The function to call for each interceptor
|
|
27623
|
+
*
|
|
27624
|
+
* @returns {void}
|
|
27625
|
+
*/
|
|
27626
|
+
forEach(fn) {
|
|
27627
|
+
utils_default.forEach(this.handlers, function forEachHandler(h) {
|
|
27628
|
+
if (h !== null) {
|
|
27629
|
+
fn(h);
|
|
27630
|
+
}
|
|
27631
|
+
});
|
|
27632
|
+
}
|
|
27633
|
+
};
|
|
27634
|
+
var InterceptorManager_default = InterceptorManager;
|
|
27635
|
+
|
|
27636
|
+
// node_modules/axios/lib/defaults/transitional.js
|
|
27637
|
+
var transitional_default = {
|
|
27638
|
+
silentJSONParsing: true,
|
|
27639
|
+
forcedJSONParsing: true,
|
|
27640
|
+
clarifyTimeoutError: false,
|
|
27641
|
+
legacyInterceptorReqResOrdering: true
|
|
27642
|
+
};
|
|
27643
|
+
|
|
27644
|
+
// node_modules/axios/lib/platform/node/index.js
|
|
27645
|
+
var import_crypto3 = __toESM(__require("crypto"), 1);
|
|
27646
|
+
|
|
27647
|
+
// node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
27648
|
+
var import_url = __toESM(__require("url"), 1);
|
|
27649
|
+
var URLSearchParams_default = import_url.default.URLSearchParams;
|
|
27650
|
+
|
|
27651
|
+
// node_modules/axios/lib/platform/node/index.js
|
|
27652
|
+
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
27653
|
+
var DIGIT = "0123456789";
|
|
27654
|
+
var ALPHABET = {
|
|
27655
|
+
DIGIT,
|
|
27656
|
+
ALPHA,
|
|
27657
|
+
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
27658
|
+
};
|
|
27659
|
+
var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
27660
|
+
let str = "";
|
|
27661
|
+
const { length } = alphabet;
|
|
27662
|
+
const randomValues = new Uint32Array(size);
|
|
27663
|
+
import_crypto3.default.randomFillSync(randomValues);
|
|
27664
|
+
for (let i = 0; i < size; i++) {
|
|
27665
|
+
str += alphabet[randomValues[i] % length];
|
|
27666
|
+
}
|
|
27667
|
+
return str;
|
|
27668
|
+
};
|
|
27669
|
+
var node_default2 = {
|
|
27670
|
+
isNode: true,
|
|
27671
|
+
classes: {
|
|
27672
|
+
URLSearchParams: URLSearchParams_default,
|
|
27673
|
+
FormData: FormData_default,
|
|
27674
|
+
Blob: typeof Blob !== "undefined" && Blob || null
|
|
27675
|
+
},
|
|
27676
|
+
ALPHABET,
|
|
27677
|
+
generateString,
|
|
27678
|
+
protocols: ["http", "https", "file", "data"]
|
|
27679
|
+
};
|
|
27680
|
+
|
|
27681
|
+
// node_modules/axios/lib/platform/common/utils.js
|
|
27682
|
+
var utils_exports = {};
|
|
27683
|
+
__export(utils_exports, {
|
|
27684
|
+
hasBrowserEnv: () => hasBrowserEnv,
|
|
27685
|
+
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
27686
|
+
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
|
|
27687
|
+
navigator: () => _navigator,
|
|
27688
|
+
origin: () => origin
|
|
27689
|
+
});
|
|
27690
|
+
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
27691
|
+
var _navigator = typeof navigator === "object" && navigator || void 0;
|
|
27692
|
+
var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
|
|
27693
|
+
var hasStandardBrowserWebWorkerEnv = (() => {
|
|
27694
|
+
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
27695
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
27696
|
+
})();
|
|
27697
|
+
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
27698
|
+
|
|
27699
|
+
// node_modules/axios/lib/platform/index.js
|
|
27700
|
+
var platform_default = {
|
|
27701
|
+
...utils_exports,
|
|
27702
|
+
...node_default2
|
|
27703
|
+
};
|
|
27704
|
+
|
|
27705
|
+
// node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
27706
|
+
function toURLEncodedForm(data, options) {
|
|
27707
|
+
return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
|
|
27708
|
+
visitor: function(value, key, path2, helpers) {
|
|
27709
|
+
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
27710
|
+
this.append(key, value.toString("base64"));
|
|
27711
|
+
return false;
|
|
27712
|
+
}
|
|
27713
|
+
return helpers.defaultVisitor.apply(this, arguments);
|
|
27714
|
+
},
|
|
27715
|
+
...options
|
|
27716
|
+
});
|
|
27717
|
+
}
|
|
27718
|
+
|
|
27719
|
+
// node_modules/axios/lib/helpers/formDataToJSON.js
|
|
27720
|
+
function parsePropPath(name) {
|
|
27721
|
+
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
27722
|
+
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
27723
|
+
});
|
|
27724
|
+
}
|
|
27725
|
+
function arrayToObject(arr) {
|
|
27726
|
+
const obj = {};
|
|
27727
|
+
const keys = Object.keys(arr);
|
|
27728
|
+
let i;
|
|
27729
|
+
const len = keys.length;
|
|
27730
|
+
let key;
|
|
27731
|
+
for (i = 0; i < len; i++) {
|
|
27732
|
+
key = keys[i];
|
|
27733
|
+
obj[key] = arr[key];
|
|
27734
|
+
}
|
|
27735
|
+
return obj;
|
|
27736
|
+
}
|
|
27737
|
+
function formDataToJSON(formData) {
|
|
27738
|
+
function buildPath(path2, value, target, index) {
|
|
27739
|
+
let name = path2[index++];
|
|
27740
|
+
if (name === "__proto__") return true;
|
|
27741
|
+
const isNumericKey = Number.isFinite(+name);
|
|
27742
|
+
const isLast = index >= path2.length;
|
|
27743
|
+
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
27744
|
+
if (isLast) {
|
|
27745
|
+
if (utils_default.hasOwnProp(target, name)) {
|
|
27746
|
+
target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
|
|
27747
|
+
} else {
|
|
27748
|
+
target[name] = value;
|
|
27698
27749
|
}
|
|
27750
|
+
return !isNumericKey;
|
|
27699
27751
|
}
|
|
27700
|
-
if (utils_default.
|
|
27701
|
-
|
|
27702
|
-
} else {
|
|
27703
|
-
deleteHeader(header);
|
|
27752
|
+
if (!target[name] || !utils_default.isObject(target[name])) {
|
|
27753
|
+
target[name] = [];
|
|
27704
27754
|
}
|
|
27705
|
-
|
|
27706
|
-
|
|
27707
|
-
|
|
27708
|
-
const keys = Object.keys(this);
|
|
27709
|
-
let i = keys.length;
|
|
27710
|
-
let deleted = false;
|
|
27711
|
-
while (i--) {
|
|
27712
|
-
const key = keys[i];
|
|
27713
|
-
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
27714
|
-
delete this[key];
|
|
27715
|
-
deleted = true;
|
|
27716
|
-
}
|
|
27755
|
+
const result = buildPath(path2, value, target[name], index);
|
|
27756
|
+
if (result && utils_default.isArray(target[name])) {
|
|
27757
|
+
target[name] = arrayToObject(target[name]);
|
|
27717
27758
|
}
|
|
27718
|
-
return
|
|
27719
|
-
}
|
|
27720
|
-
normalize(format2) {
|
|
27721
|
-
const self2 = this;
|
|
27722
|
-
const headers = {};
|
|
27723
|
-
utils_default.forEach(this, (value, header) => {
|
|
27724
|
-
const key = utils_default.findKey(headers, header);
|
|
27725
|
-
if (key) {
|
|
27726
|
-
self2[key] = normalizeValue(value);
|
|
27727
|
-
delete self2[header];
|
|
27728
|
-
return;
|
|
27729
|
-
}
|
|
27730
|
-
const normalized = format2 ? formatHeader(header) : String(header).trim();
|
|
27731
|
-
if (normalized !== header) {
|
|
27732
|
-
delete self2[header];
|
|
27733
|
-
}
|
|
27734
|
-
self2[normalized] = normalizeValue(value);
|
|
27735
|
-
headers[normalized] = true;
|
|
27736
|
-
});
|
|
27737
|
-
return this;
|
|
27738
|
-
}
|
|
27739
|
-
concat(...targets) {
|
|
27740
|
-
return this.constructor.concat(this, ...targets);
|
|
27759
|
+
return !isNumericKey;
|
|
27741
27760
|
}
|
|
27742
|
-
|
|
27743
|
-
const obj =
|
|
27744
|
-
utils_default.
|
|
27745
|
-
|
|
27761
|
+
if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
|
|
27762
|
+
const obj = {};
|
|
27763
|
+
utils_default.forEachEntry(formData, (name, value) => {
|
|
27764
|
+
buildPath(parsePropPath(name), value, obj, 0);
|
|
27746
27765
|
});
|
|
27747
27766
|
return obj;
|
|
27748
27767
|
}
|
|
27749
|
-
|
|
27750
|
-
|
|
27751
|
-
|
|
27752
|
-
|
|
27753
|
-
|
|
27754
|
-
|
|
27755
|
-
|
|
27756
|
-
|
|
27757
|
-
|
|
27758
|
-
|
|
27759
|
-
|
|
27760
|
-
|
|
27761
|
-
|
|
27762
|
-
|
|
27763
|
-
|
|
27764
|
-
|
|
27765
|
-
const computed = new this(first);
|
|
27766
|
-
targets.forEach((target) => computed.set(target));
|
|
27767
|
-
return computed;
|
|
27768
|
+
return null;
|
|
27769
|
+
}
|
|
27770
|
+
var formDataToJSON_default = formDataToJSON;
|
|
27771
|
+
|
|
27772
|
+
// node_modules/axios/lib/defaults/index.js
|
|
27773
|
+
var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
27774
|
+
function stringifySafely(rawValue, parser, encoder) {
|
|
27775
|
+
if (utils_default.isString(rawValue)) {
|
|
27776
|
+
try {
|
|
27777
|
+
(parser || JSON.parse)(rawValue);
|
|
27778
|
+
return utils_default.trim(rawValue);
|
|
27779
|
+
} catch (e) {
|
|
27780
|
+
if (e.name !== "SyntaxError") {
|
|
27781
|
+
throw e;
|
|
27782
|
+
}
|
|
27783
|
+
}
|
|
27768
27784
|
}
|
|
27769
|
-
|
|
27770
|
-
|
|
27771
|
-
|
|
27772
|
-
|
|
27773
|
-
|
|
27774
|
-
|
|
27775
|
-
function
|
|
27776
|
-
const
|
|
27777
|
-
|
|
27778
|
-
|
|
27779
|
-
|
|
27785
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
27786
|
+
}
|
|
27787
|
+
var defaults = {
|
|
27788
|
+
transitional: transitional_default,
|
|
27789
|
+
adapter: ["xhr", "http", "fetch"],
|
|
27790
|
+
transformRequest: [
|
|
27791
|
+
function transformRequest(data, headers) {
|
|
27792
|
+
const contentType = headers.getContentType() || "";
|
|
27793
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
27794
|
+
const isObjectPayload = utils_default.isObject(data);
|
|
27795
|
+
if (isObjectPayload && utils_default.isHTMLForm(data)) {
|
|
27796
|
+
data = new FormData(data);
|
|
27797
|
+
}
|
|
27798
|
+
const isFormData2 = utils_default.isFormData(data);
|
|
27799
|
+
if (isFormData2) {
|
|
27800
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
|
|
27801
|
+
}
|
|
27802
|
+
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)) {
|
|
27803
|
+
return data;
|
|
27804
|
+
}
|
|
27805
|
+
if (utils_default.isArrayBufferView(data)) {
|
|
27806
|
+
return data.buffer;
|
|
27807
|
+
}
|
|
27808
|
+
if (utils_default.isURLSearchParams(data)) {
|
|
27809
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
27810
|
+
return data.toString();
|
|
27811
|
+
}
|
|
27812
|
+
let isFileList2;
|
|
27813
|
+
if (isObjectPayload) {
|
|
27814
|
+
const formSerializer = own(this, "formSerializer");
|
|
27815
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
27816
|
+
return toURLEncodedForm(data, formSerializer).toString();
|
|
27817
|
+
}
|
|
27818
|
+
if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
27819
|
+
const env = own(this, "env");
|
|
27820
|
+
const _FormData = env && env.FormData;
|
|
27821
|
+
return toFormData_default(
|
|
27822
|
+
isFileList2 ? { "files[]": data } : data,
|
|
27823
|
+
_FormData && new _FormData(),
|
|
27824
|
+
formSerializer
|
|
27825
|
+
);
|
|
27826
|
+
}
|
|
27827
|
+
}
|
|
27828
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
27829
|
+
headers.setContentType("application/json", false);
|
|
27830
|
+
return stringifySafely(data);
|
|
27780
27831
|
}
|
|
27832
|
+
return data;
|
|
27833
|
+
}
|
|
27834
|
+
],
|
|
27835
|
+
transformResponse: [
|
|
27836
|
+
function transformResponse(data) {
|
|
27837
|
+
const transitional2 = own(this, "transitional") || defaults.transitional;
|
|
27838
|
+
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
27839
|
+
const responseType = own(this, "responseType");
|
|
27840
|
+
const JSONRequested = responseType === "json";
|
|
27841
|
+
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
27842
|
+
return data;
|
|
27843
|
+
}
|
|
27844
|
+
if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
|
|
27845
|
+
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
27846
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
27847
|
+
try {
|
|
27848
|
+
return JSON.parse(data, own(this, "parseReviver"));
|
|
27849
|
+
} catch (e) {
|
|
27850
|
+
if (strictJSONParsing) {
|
|
27851
|
+
if (e.name === "SyntaxError") {
|
|
27852
|
+
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
|
|
27853
|
+
}
|
|
27854
|
+
throw e;
|
|
27855
|
+
}
|
|
27856
|
+
}
|
|
27857
|
+
}
|
|
27858
|
+
return data;
|
|
27859
|
+
}
|
|
27860
|
+
],
|
|
27861
|
+
/**
|
|
27862
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
27863
|
+
* timeout is not created.
|
|
27864
|
+
*/
|
|
27865
|
+
timeout: 0,
|
|
27866
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
27867
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
27868
|
+
maxContentLength: -1,
|
|
27869
|
+
maxBodyLength: -1,
|
|
27870
|
+
env: {
|
|
27871
|
+
FormData: platform_default.classes.FormData,
|
|
27872
|
+
Blob: platform_default.classes.Blob
|
|
27873
|
+
},
|
|
27874
|
+
validateStatus: function validateStatus(status) {
|
|
27875
|
+
return status >= 200 && status < 300;
|
|
27876
|
+
},
|
|
27877
|
+
headers: {
|
|
27878
|
+
common: {
|
|
27879
|
+
Accept: "application/json, text/plain, */*",
|
|
27880
|
+
"Content-Type": void 0
|
|
27781
27881
|
}
|
|
27782
|
-
utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
27783
|
-
return this;
|
|
27784
27882
|
}
|
|
27785
27883
|
};
|
|
27786
|
-
|
|
27787
|
-
|
|
27788
|
-
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
27789
|
-
return {
|
|
27790
|
-
get: () => value,
|
|
27791
|
-
set(headerValue) {
|
|
27792
|
-
this[mapped] = headerValue;
|
|
27793
|
-
}
|
|
27794
|
-
};
|
|
27884
|
+
utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
|
|
27885
|
+
defaults.headers[method] = {};
|
|
27795
27886
|
});
|
|
27796
|
-
|
|
27797
|
-
var AxiosHeaders_default = AxiosHeaders;
|
|
27887
|
+
var defaults_default = defaults;
|
|
27798
27888
|
|
|
27799
27889
|
// node_modules/axios/lib/core/transformData.js
|
|
27800
27890
|
function transformData(fns, response) {
|
|
@@ -27841,7 +27931,7 @@
|
|
|
27841
27931
|
} else {
|
|
27842
27932
|
reject(new AxiosError_default(
|
|
27843
27933
|
"Request failed with status code " + response.status,
|
|
27844
|
-
|
|
27934
|
+
response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE,
|
|
27845
27935
|
response.config,
|
|
27846
27936
|
response.request,
|
|
27847
27937
|
response
|
|
@@ -27865,27 +27955,94 @@
|
|
|
27865
27955
|
// node_modules/axios/lib/core/buildFullPath.js
|
|
27866
27956
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
27867
27957
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
27868
|
-
if (baseURL && (isRelativeUrl || allowAbsoluteUrls
|
|
27958
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
|
|
27869
27959
|
return combineURLs(baseURL, requestedURL);
|
|
27870
27960
|
}
|
|
27871
27961
|
return requestedURL;
|
|
27872
27962
|
}
|
|
27873
27963
|
|
|
27964
|
+
// node_modules/proxy-from-env/index.js
|
|
27965
|
+
var DEFAULT_PORTS = {
|
|
27966
|
+
ftp: 21,
|
|
27967
|
+
gopher: 70,
|
|
27968
|
+
http: 80,
|
|
27969
|
+
https: 443,
|
|
27970
|
+
ws: 80,
|
|
27971
|
+
wss: 443
|
|
27972
|
+
};
|
|
27973
|
+
function parseUrl(urlString) {
|
|
27974
|
+
try {
|
|
27975
|
+
return new URL(urlString);
|
|
27976
|
+
} catch (e) {
|
|
27977
|
+
return null;
|
|
27978
|
+
}
|
|
27979
|
+
}
|
|
27980
|
+
function getProxyForUrl(url2) {
|
|
27981
|
+
var parsedUrl = (typeof url2 === "string" ? parseUrl(url2) : url2) || {};
|
|
27982
|
+
var proto2 = parsedUrl.protocol;
|
|
27983
|
+
var hostname = parsedUrl.host;
|
|
27984
|
+
var port = parsedUrl.port;
|
|
27985
|
+
if (typeof hostname !== "string" || !hostname || typeof proto2 !== "string") {
|
|
27986
|
+
return "";
|
|
27987
|
+
}
|
|
27988
|
+
proto2 = proto2.split(":", 1)[0];
|
|
27989
|
+
hostname = hostname.replace(/:\d*$/, "");
|
|
27990
|
+
port = parseInt(port) || DEFAULT_PORTS[proto2] || 0;
|
|
27991
|
+
if (!shouldProxy(hostname, port)) {
|
|
27992
|
+
return "";
|
|
27993
|
+
}
|
|
27994
|
+
var proxy = getEnv(proto2 + "_proxy") || getEnv("all_proxy");
|
|
27995
|
+
if (proxy && proxy.indexOf("://") === -1) {
|
|
27996
|
+
proxy = proto2 + "://" + proxy;
|
|
27997
|
+
}
|
|
27998
|
+
return proxy;
|
|
27999
|
+
}
|
|
28000
|
+
function shouldProxy(hostname, port) {
|
|
28001
|
+
var NO_PROXY = getEnv("no_proxy").toLowerCase();
|
|
28002
|
+
if (!NO_PROXY) {
|
|
28003
|
+
return true;
|
|
28004
|
+
}
|
|
28005
|
+
if (NO_PROXY === "*") {
|
|
28006
|
+
return false;
|
|
28007
|
+
}
|
|
28008
|
+
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
28009
|
+
if (!proxy) {
|
|
28010
|
+
return true;
|
|
28011
|
+
}
|
|
28012
|
+
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
28013
|
+
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
28014
|
+
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
28015
|
+
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
28016
|
+
return true;
|
|
28017
|
+
}
|
|
28018
|
+
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
28019
|
+
return hostname !== parsedProxyHostname;
|
|
28020
|
+
}
|
|
28021
|
+
if (parsedProxyHostname.charAt(0) === "*") {
|
|
28022
|
+
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
28023
|
+
}
|
|
28024
|
+
return !hostname.endsWith(parsedProxyHostname);
|
|
28025
|
+
});
|
|
28026
|
+
}
|
|
28027
|
+
function getEnv(key) {
|
|
28028
|
+
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
28029
|
+
}
|
|
28030
|
+
|
|
27874
28031
|
// node_modules/axios/lib/adapters/http.js
|
|
27875
|
-
var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
|
|
27876
28032
|
var import_http = __toESM(__require("http"), 1);
|
|
27877
28033
|
var import_https = __toESM(__require("https"), 1);
|
|
27878
28034
|
var import_http2 = __toESM(__require("http2"), 1);
|
|
27879
28035
|
var import_util2 = __toESM(__require("util"), 1);
|
|
28036
|
+
var import_path3 = __require("path");
|
|
27880
28037
|
var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
27881
28038
|
var import_zlib = __toESM(__require("zlib"), 1);
|
|
27882
28039
|
|
|
27883
28040
|
// node_modules/axios/lib/env/data.js
|
|
27884
|
-
var VERSION = "1.
|
|
28041
|
+
var VERSION = "1.16.0";
|
|
27885
28042
|
|
|
27886
28043
|
// node_modules/axios/lib/helpers/parseProtocol.js
|
|
27887
28044
|
function parseProtocol(url2) {
|
|
27888
|
-
const match = /^([-+\w]{1,25})(
|
|
28045
|
+
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
27889
28046
|
return match && match[1] || "";
|
|
27890
28047
|
}
|
|
27891
28048
|
|
|
@@ -27926,16 +28083,21 @@
|
|
|
27926
28083
|
var kInternals = Symbol("internals");
|
|
27927
28084
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
27928
28085
|
constructor(options) {
|
|
27929
|
-
options = utils_default.toFlatObject(
|
|
27930
|
-
|
|
27931
|
-
|
|
27932
|
-
|
|
27933
|
-
|
|
27934
|
-
|
|
27935
|
-
|
|
27936
|
-
|
|
27937
|
-
|
|
27938
|
-
|
|
28086
|
+
options = utils_default.toFlatObject(
|
|
28087
|
+
options,
|
|
28088
|
+
{
|
|
28089
|
+
maxRate: 0,
|
|
28090
|
+
chunkSize: 64 * 1024,
|
|
28091
|
+
minChunkSize: 100,
|
|
28092
|
+
timeWindow: 500,
|
|
28093
|
+
ticksRate: 2,
|
|
28094
|
+
samplesCount: 15
|
|
28095
|
+
},
|
|
28096
|
+
null,
|
|
28097
|
+
(prop, source) => {
|
|
28098
|
+
return !utils_default.isUndefined(source[prop]);
|
|
28099
|
+
}
|
|
28100
|
+
);
|
|
27939
28101
|
super({
|
|
27940
28102
|
readableHighWaterMark: options.chunkSize
|
|
27941
28103
|
});
|
|
@@ -28018,9 +28180,12 @@
|
|
|
28018
28180
|
chunkRemainder = _chunk.subarray(maxChunkSize);
|
|
28019
28181
|
_chunk = _chunk.subarray(0, maxChunkSize);
|
|
28020
28182
|
}
|
|
28021
|
-
pushChunk(
|
|
28022
|
-
|
|
28023
|
-
|
|
28183
|
+
pushChunk(
|
|
28184
|
+
_chunk,
|
|
28185
|
+
chunkRemainder ? () => {
|
|
28186
|
+
process.nextTick(_callback, null, chunkRemainder);
|
|
28187
|
+
} : _callback
|
|
28188
|
+
);
|
|
28024
28189
|
};
|
|
28025
28190
|
transformChunk(chunk, function transformNextChunk(err, _chunk) {
|
|
28026
28191
|
if (err) {
|
|
@@ -28072,7 +28237,8 @@
|
|
|
28072
28237
|
if (isStringValue) {
|
|
28073
28238
|
value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
|
|
28074
28239
|
} else {
|
|
28075
|
-
|
|
28240
|
+
const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
|
|
28241
|
+
headers += `Content-Type: ${safeType}${CRLF}`;
|
|
28076
28242
|
}
|
|
28077
28243
|
this.headers = textEncoder.encode(headers + CRLF);
|
|
28078
28244
|
this.contentLength = isStringValue ? value.byteLength : value.size;
|
|
@@ -28091,11 +28257,14 @@
|
|
|
28091
28257
|
yield CRLF_BYTES;
|
|
28092
28258
|
}
|
|
28093
28259
|
static escapeName(name) {
|
|
28094
|
-
return String(name).replace(
|
|
28095
|
-
|
|
28096
|
-
|
|
28097
|
-
|
|
28098
|
-
|
|
28260
|
+
return String(name).replace(
|
|
28261
|
+
/[\r\n"]/g,
|
|
28262
|
+
(match) => ({
|
|
28263
|
+
"\r": "%0D",
|
|
28264
|
+
"\n": "%0A",
|
|
28265
|
+
'"': "%22"
|
|
28266
|
+
})[match]
|
|
28267
|
+
);
|
|
28099
28268
|
}
|
|
28100
28269
|
};
|
|
28101
28270
|
var formDataToStream = (form, headersHandler, options) => {
|
|
@@ -28108,7 +28277,7 @@
|
|
|
28108
28277
|
throw TypeError("FormData instance required");
|
|
28109
28278
|
}
|
|
28110
28279
|
if (boundary.length < 1 || boundary.length > 70) {
|
|
28111
|
-
throw Error("boundary must be
|
|
28280
|
+
throw Error("boundary must be 1-70 characters long");
|
|
28112
28281
|
}
|
|
28113
28282
|
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
28114
28283
|
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
|
|
@@ -28127,13 +28296,15 @@
|
|
|
28127
28296
|
computedHeaders["Content-Length"] = contentLength;
|
|
28128
28297
|
}
|
|
28129
28298
|
headersHandler && headersHandler(computedHeaders);
|
|
28130
|
-
return import_stream2.Readable.from(
|
|
28131
|
-
|
|
28132
|
-
|
|
28133
|
-
|
|
28134
|
-
|
|
28135
|
-
|
|
28136
|
-
|
|
28299
|
+
return import_stream2.Readable.from(
|
|
28300
|
+
(async function* () {
|
|
28301
|
+
for (const part of parts) {
|
|
28302
|
+
yield boundaryBytes;
|
|
28303
|
+
yield* part.encode();
|
|
28304
|
+
}
|
|
28305
|
+
yield footerBytes;
|
|
28306
|
+
})()
|
|
28307
|
+
);
|
|
28137
28308
|
};
|
|
28138
28309
|
var formDataToStream_default = formDataToStream;
|
|
28139
28310
|
|
|
@@ -28174,6 +28345,128 @@
|
|
|
28174
28345
|
};
|
|
28175
28346
|
var callbackify_default = callbackify;
|
|
28176
28347
|
|
|
28348
|
+
// node_modules/axios/lib/helpers/shouldBypassProxy.js
|
|
28349
|
+
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
|
|
28350
|
+
var isIPv4Loopback = (host) => {
|
|
28351
|
+
const parts = host.split(".");
|
|
28352
|
+
if (parts.length !== 4) return false;
|
|
28353
|
+
if (parts[0] !== "127") return false;
|
|
28354
|
+
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
28355
|
+
};
|
|
28356
|
+
var isIPv6Loopback = (host) => {
|
|
28357
|
+
if (host === "::1") return true;
|
|
28358
|
+
const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
|
|
28359
|
+
if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
|
|
28360
|
+
const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
|
|
28361
|
+
if (v4MappedHex) {
|
|
28362
|
+
const high = parseInt(v4MappedHex[1], 16);
|
|
28363
|
+
return high >= 32512 && high <= 32767;
|
|
28364
|
+
}
|
|
28365
|
+
const groups = host.split(":");
|
|
28366
|
+
if (groups.length === 8) {
|
|
28367
|
+
for (let i = 0; i < 7; i++) {
|
|
28368
|
+
if (!/^0+$/.test(groups[i])) return false;
|
|
28369
|
+
}
|
|
28370
|
+
return /^0*1$/.test(groups[7]);
|
|
28371
|
+
}
|
|
28372
|
+
return false;
|
|
28373
|
+
};
|
|
28374
|
+
var isLoopback = (host) => {
|
|
28375
|
+
if (!host) return false;
|
|
28376
|
+
if (LOOPBACK_HOSTNAMES.has(host)) return true;
|
|
28377
|
+
if (isIPv4Loopback(host)) return true;
|
|
28378
|
+
return isIPv6Loopback(host);
|
|
28379
|
+
};
|
|
28380
|
+
var DEFAULT_PORTS2 = {
|
|
28381
|
+
http: 80,
|
|
28382
|
+
https: 443,
|
|
28383
|
+
ws: 80,
|
|
28384
|
+
wss: 443,
|
|
28385
|
+
ftp: 21
|
|
28386
|
+
};
|
|
28387
|
+
var parseNoProxyEntry = (entry) => {
|
|
28388
|
+
let entryHost = entry;
|
|
28389
|
+
let entryPort = 0;
|
|
28390
|
+
if (entryHost.charAt(0) === "[") {
|
|
28391
|
+
const bracketIndex = entryHost.indexOf("]");
|
|
28392
|
+
if (bracketIndex !== -1) {
|
|
28393
|
+
const host = entryHost.slice(1, bracketIndex);
|
|
28394
|
+
const rest = entryHost.slice(bracketIndex + 1);
|
|
28395
|
+
if (rest.charAt(0) === ":" && /^\d+$/.test(rest.slice(1))) {
|
|
28396
|
+
entryPort = Number.parseInt(rest.slice(1), 10);
|
|
28397
|
+
}
|
|
28398
|
+
return [host, entryPort];
|
|
28399
|
+
}
|
|
28400
|
+
}
|
|
28401
|
+
const firstColon = entryHost.indexOf(":");
|
|
28402
|
+
const lastColon = entryHost.lastIndexOf(":");
|
|
28403
|
+
if (firstColon !== -1 && firstColon === lastColon && /^\d+$/.test(entryHost.slice(lastColon + 1))) {
|
|
28404
|
+
entryPort = Number.parseInt(entryHost.slice(lastColon + 1), 10);
|
|
28405
|
+
entryHost = entryHost.slice(0, lastColon);
|
|
28406
|
+
}
|
|
28407
|
+
return [entryHost, entryPort];
|
|
28408
|
+
};
|
|
28409
|
+
var IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
|
|
28410
|
+
var IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
|
|
28411
|
+
var unmapIPv4MappedIPv6 = (host) => {
|
|
28412
|
+
if (typeof host !== "string" || host.indexOf(":") === -1) return host;
|
|
28413
|
+
const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
|
|
28414
|
+
if (dotted) return dotted[1];
|
|
28415
|
+
const hex2 = host.match(IPV4_MAPPED_HEX_RE);
|
|
28416
|
+
if (hex2) {
|
|
28417
|
+
const high = parseInt(hex2[1], 16);
|
|
28418
|
+
const low = parseInt(hex2[2], 16);
|
|
28419
|
+
return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
|
|
28420
|
+
}
|
|
28421
|
+
return host;
|
|
28422
|
+
};
|
|
28423
|
+
var normalizeNoProxyHost = (hostname) => {
|
|
28424
|
+
if (!hostname) {
|
|
28425
|
+
return hostname;
|
|
28426
|
+
}
|
|
28427
|
+
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
|
|
28428
|
+
hostname = hostname.slice(1, -1);
|
|
28429
|
+
}
|
|
28430
|
+
return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
|
|
28431
|
+
};
|
|
28432
|
+
function shouldBypassProxy(location) {
|
|
28433
|
+
let parsed;
|
|
28434
|
+
try {
|
|
28435
|
+
parsed = new URL(location);
|
|
28436
|
+
} catch (_err) {
|
|
28437
|
+
return false;
|
|
28438
|
+
}
|
|
28439
|
+
const noProxy = (process.env.no_proxy || process.env.NO_PROXY || "").toLowerCase();
|
|
28440
|
+
if (!noProxy) {
|
|
28441
|
+
return false;
|
|
28442
|
+
}
|
|
28443
|
+
if (noProxy === "*") {
|
|
28444
|
+
return true;
|
|
28445
|
+
}
|
|
28446
|
+
const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
|
|
28447
|
+
const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
|
|
28448
|
+
return noProxy.split(/[\s,]+/).some((entry) => {
|
|
28449
|
+
if (!entry) {
|
|
28450
|
+
return false;
|
|
28451
|
+
}
|
|
28452
|
+
let [entryHost, entryPort] = parseNoProxyEntry(entry);
|
|
28453
|
+
entryHost = normalizeNoProxyHost(entryHost);
|
|
28454
|
+
if (!entryHost) {
|
|
28455
|
+
return false;
|
|
28456
|
+
}
|
|
28457
|
+
if (entryPort && entryPort !== port) {
|
|
28458
|
+
return false;
|
|
28459
|
+
}
|
|
28460
|
+
if (entryHost.charAt(0) === "*") {
|
|
28461
|
+
entryHost = entryHost.slice(1);
|
|
28462
|
+
}
|
|
28463
|
+
if (entryHost.charAt(0) === ".") {
|
|
28464
|
+
return hostname.endsWith(entryHost);
|
|
28465
|
+
}
|
|
28466
|
+
return hostname === entryHost || isLoopback(hostname) && isLoopback(entryHost);
|
|
28467
|
+
});
|
|
28468
|
+
}
|
|
28469
|
+
|
|
28177
28470
|
// node_modules/axios/lib/helpers/speedometer.js
|
|
28178
28471
|
function speedometer(samplesCount, min2) {
|
|
28179
28472
|
samplesCount = samplesCount || 10;
|
|
@@ -28250,19 +28543,19 @@
|
|
|
28250
28543
|
let bytesNotified = 0;
|
|
28251
28544
|
const _speedometer = speedometer_default(50, 250);
|
|
28252
28545
|
return throttle_default((e) => {
|
|
28253
|
-
const
|
|
28546
|
+
const rawLoaded = e.loaded;
|
|
28254
28547
|
const total = e.lengthComputable ? e.total : void 0;
|
|
28255
|
-
const
|
|
28548
|
+
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
28549
|
+
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
28256
28550
|
const rate = _speedometer(progressBytes);
|
|
28257
|
-
|
|
28258
|
-
bytesNotified = loaded;
|
|
28551
|
+
bytesNotified = Math.max(bytesNotified, loaded);
|
|
28259
28552
|
const data = {
|
|
28260
28553
|
loaded,
|
|
28261
28554
|
total,
|
|
28262
28555
|
progress: total ? loaded / total : void 0,
|
|
28263
28556
|
bytes: progressBytes,
|
|
28264
28557
|
rate: rate ? rate : void 0,
|
|
28265
|
-
estimated: rate && total
|
|
28558
|
+
estimated: rate && total ? (total - loaded) / rate : void 0,
|
|
28266
28559
|
event: e,
|
|
28267
28560
|
lengthComputable: total != null,
|
|
28268
28561
|
[isDownloadStream ? "download" : "upload"]: true
|
|
@@ -28272,11 +28565,14 @@
|
|
|
28272
28565
|
};
|
|
28273
28566
|
var progressEventDecorator = (total, throttled) => {
|
|
28274
28567
|
const lengthComputable = total != null;
|
|
28275
|
-
return [
|
|
28276
|
-
|
|
28277
|
-
|
|
28278
|
-
|
|
28279
|
-
|
|
28568
|
+
return [
|
|
28569
|
+
(loaded) => throttled[0]({
|
|
28570
|
+
lengthComputable,
|
|
28571
|
+
total,
|
|
28572
|
+
loaded
|
|
28573
|
+
}),
|
|
28574
|
+
throttled[1]
|
|
28575
|
+
];
|
|
28280
28576
|
};
|
|
28281
28577
|
var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
28282
28578
|
|
|
@@ -28324,11 +28620,33 @@
|
|
|
28324
28620
|
pad2++;
|
|
28325
28621
|
}
|
|
28326
28622
|
}
|
|
28327
|
-
const groups = Math.floor(effectiveLen / 4);
|
|
28328
|
-
const
|
|
28329
|
-
return
|
|
28623
|
+
const groups = Math.floor(effectiveLen / 4);
|
|
28624
|
+
const bytes2 = groups * 3 - (pad2 || 0);
|
|
28625
|
+
return bytes2 > 0 ? bytes2 : 0;
|
|
28626
|
+
}
|
|
28627
|
+
if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
|
|
28628
|
+
return Buffer.byteLength(body, "utf8");
|
|
28629
|
+
}
|
|
28630
|
+
let bytes = 0;
|
|
28631
|
+
for (let i = 0, len = body.length; i < len; i++) {
|
|
28632
|
+
const c = body.charCodeAt(i);
|
|
28633
|
+
if (c < 128) {
|
|
28634
|
+
bytes += 1;
|
|
28635
|
+
} else if (c < 2048) {
|
|
28636
|
+
bytes += 2;
|
|
28637
|
+
} else if (c >= 55296 && c <= 56319 && i + 1 < len) {
|
|
28638
|
+
const next = body.charCodeAt(i + 1);
|
|
28639
|
+
if (next >= 56320 && next <= 57343) {
|
|
28640
|
+
bytes += 4;
|
|
28641
|
+
i++;
|
|
28642
|
+
} else {
|
|
28643
|
+
bytes += 3;
|
|
28644
|
+
}
|
|
28645
|
+
} else {
|
|
28646
|
+
bytes += 3;
|
|
28647
|
+
}
|
|
28330
28648
|
}
|
|
28331
|
-
return
|
|
28649
|
+
return bytes;
|
|
28332
28650
|
}
|
|
28333
28651
|
|
|
28334
28652
|
// node_modules/axios/lib/adapters/http.js
|
|
@@ -28343,9 +28661,33 @@
|
|
|
28343
28661
|
var isBrotliSupported = utils_default.isFunction(import_zlib.default.createBrotliDecompress);
|
|
28344
28662
|
var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
|
|
28345
28663
|
var isHttps = /https:?/;
|
|
28664
|
+
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
28665
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
28666
|
+
if (policy !== "content-only") {
|
|
28667
|
+
headers.set(formHeaders);
|
|
28668
|
+
return;
|
|
28669
|
+
}
|
|
28670
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
28671
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
28672
|
+
headers.set(key, val);
|
|
28673
|
+
}
|
|
28674
|
+
});
|
|
28675
|
+
}
|
|
28676
|
+
var kAxiosSocketListener = Symbol("axios.http.socketListener");
|
|
28677
|
+
var kAxiosCurrentReq = Symbol("axios.http.currentReq");
|
|
28346
28678
|
var supportedProtocols = platform_default.protocols.map((protocol) => {
|
|
28347
28679
|
return protocol + ":";
|
|
28348
28680
|
});
|
|
28681
|
+
var decodeURIComponentSafe = (value) => {
|
|
28682
|
+
if (!utils_default.isString(value)) {
|
|
28683
|
+
return value;
|
|
28684
|
+
}
|
|
28685
|
+
try {
|
|
28686
|
+
return decodeURIComponent(value);
|
|
28687
|
+
} catch (error) {
|
|
28688
|
+
return value;
|
|
28689
|
+
}
|
|
28690
|
+
};
|
|
28349
28691
|
var flushOnFinish = (stream4, [throttled, flush]) => {
|
|
28350
28692
|
stream4.on("end", flush).on("error", flush);
|
|
28351
28693
|
return throttled;
|
|
@@ -28355,9 +28697,12 @@
|
|
|
28355
28697
|
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
28356
28698
|
}
|
|
28357
28699
|
getSession(authority, options) {
|
|
28358
|
-
options = Object.assign(
|
|
28359
|
-
|
|
28360
|
-
|
|
28700
|
+
options = Object.assign(
|
|
28701
|
+
{
|
|
28702
|
+
sessionTimeout: 1e3
|
|
28703
|
+
},
|
|
28704
|
+
options
|
|
28705
|
+
);
|
|
28361
28706
|
let authoritySessions = this.sessions[authority];
|
|
28362
28707
|
if (authoritySessions) {
|
|
28363
28708
|
let len = authoritySessions.length;
|
|
@@ -28383,6 +28728,9 @@
|
|
|
28383
28728
|
} else {
|
|
28384
28729
|
entries.splice(i, 1);
|
|
28385
28730
|
}
|
|
28731
|
+
if (!session.closed) {
|
|
28732
|
+
session.close();
|
|
28733
|
+
}
|
|
28386
28734
|
return;
|
|
28387
28735
|
}
|
|
28388
28736
|
}
|
|
@@ -28411,57 +28759,81 @@
|
|
|
28411
28759
|
};
|
|
28412
28760
|
}
|
|
28413
28761
|
session.once("close", removeSession);
|
|
28414
|
-
let entry = [
|
|
28415
|
-
session,
|
|
28416
|
-
options
|
|
28417
|
-
];
|
|
28762
|
+
let entry = [session, options];
|
|
28418
28763
|
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
28419
28764
|
return session;
|
|
28420
28765
|
}
|
|
28421
28766
|
};
|
|
28422
28767
|
var http2Sessions = new Http2Sessions();
|
|
28423
|
-
function dispatchBeforeRedirect(options, responseDetails) {
|
|
28768
|
+
function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
28424
28769
|
if (options.beforeRedirects.proxy) {
|
|
28425
28770
|
options.beforeRedirects.proxy(options);
|
|
28426
28771
|
}
|
|
28427
28772
|
if (options.beforeRedirects.config) {
|
|
28428
|
-
options.beforeRedirects.config(options, responseDetails);
|
|
28773
|
+
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
28429
28774
|
}
|
|
28430
28775
|
}
|
|
28431
|
-
function setProxy(options, configProxy, location) {
|
|
28776
|
+
function setProxy(options, configProxy, location, isRedirect) {
|
|
28432
28777
|
let proxy = configProxy;
|
|
28433
28778
|
if (!proxy && proxy !== false) {
|
|
28434
|
-
const proxyUrl =
|
|
28779
|
+
const proxyUrl = getProxyForUrl(location);
|
|
28435
28780
|
if (proxyUrl) {
|
|
28436
|
-
|
|
28781
|
+
if (!shouldBypassProxy(location)) {
|
|
28782
|
+
proxy = new URL(proxyUrl);
|
|
28783
|
+
}
|
|
28437
28784
|
}
|
|
28438
28785
|
}
|
|
28439
|
-
if (
|
|
28440
|
-
|
|
28441
|
-
|
|
28786
|
+
if (isRedirect && options.headers) {
|
|
28787
|
+
for (const name of Object.keys(options.headers)) {
|
|
28788
|
+
if (name.toLowerCase() === "proxy-authorization") {
|
|
28789
|
+
delete options.headers[name];
|
|
28790
|
+
}
|
|
28442
28791
|
}
|
|
28443
|
-
|
|
28444
|
-
|
|
28792
|
+
}
|
|
28793
|
+
if (proxy) {
|
|
28794
|
+
const isProxyURL = proxy instanceof URL;
|
|
28795
|
+
const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
|
|
28796
|
+
const proxyUsername = readProxyField("username");
|
|
28797
|
+
const proxyPassword = readProxyField("password");
|
|
28798
|
+
let proxyAuth = utils_default.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
|
|
28799
|
+
if (proxyUsername) {
|
|
28800
|
+
proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
|
|
28801
|
+
}
|
|
28802
|
+
if (proxyAuth) {
|
|
28803
|
+
const authIsObject = typeof proxyAuth === "object";
|
|
28804
|
+
const authUsername = authIsObject && utils_default.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
|
|
28805
|
+
const authPassword = authIsObject && utils_default.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
|
|
28806
|
+
const validProxyAuth = Boolean(authUsername || authPassword);
|
|
28445
28807
|
if (validProxyAuth) {
|
|
28446
|
-
|
|
28447
|
-
} else if (
|
|
28808
|
+
proxyAuth = (authUsername || "") + ":" + (authPassword || "");
|
|
28809
|
+
} else if (authIsObject) {
|
|
28448
28810
|
throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
|
|
28449
28811
|
}
|
|
28450
|
-
const base64 = Buffer.from(
|
|
28812
|
+
const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
|
|
28451
28813
|
options.headers["Proxy-Authorization"] = "Basic " + base64;
|
|
28452
28814
|
}
|
|
28453
|
-
|
|
28454
|
-
const
|
|
28815
|
+
let hasUserHostHeader = false;
|
|
28816
|
+
for (const name of Object.keys(options.headers)) {
|
|
28817
|
+
if (name.toLowerCase() === "host") {
|
|
28818
|
+
hasUserHostHeader = true;
|
|
28819
|
+
break;
|
|
28820
|
+
}
|
|
28821
|
+
}
|
|
28822
|
+
if (!hasUserHostHeader) {
|
|
28823
|
+
options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
|
|
28824
|
+
}
|
|
28825
|
+
const proxyHost = readProxyField("hostname") || readProxyField("host");
|
|
28455
28826
|
options.hostname = proxyHost;
|
|
28456
28827
|
options.host = proxyHost;
|
|
28457
|
-
options.port =
|
|
28828
|
+
options.port = readProxyField("port");
|
|
28458
28829
|
options.path = location;
|
|
28459
|
-
|
|
28460
|
-
|
|
28830
|
+
const proxyProtocol = readProxyField("protocol");
|
|
28831
|
+
if (proxyProtocol) {
|
|
28832
|
+
options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
|
|
28461
28833
|
}
|
|
28462
28834
|
}
|
|
28463
28835
|
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
|
|
28464
|
-
setProxy(redirectOptions, configProxy, redirectOptions.href);
|
|
28836
|
+
setProxy(redirectOptions, configProxy, redirectOptions.href, true);
|
|
28465
28837
|
};
|
|
28466
28838
|
}
|
|
28467
28839
|
var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
|
|
@@ -28500,12 +28872,7 @@
|
|
|
28500
28872
|
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
28501
28873
|
const { http2Options, headers } = options;
|
|
28502
28874
|
const session = http2Sessions.getSession(authority, http2Options);
|
|
28503
|
-
const {
|
|
28504
|
-
HTTP2_HEADER_SCHEME,
|
|
28505
|
-
HTTP2_HEADER_METHOD,
|
|
28506
|
-
HTTP2_HEADER_PATH,
|
|
28507
|
-
HTTP2_HEADER_STATUS
|
|
28508
|
-
} = import_http2.default.constants;
|
|
28875
|
+
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = import_http2.default.constants;
|
|
28509
28876
|
const http2Headers = {
|
|
28510
28877
|
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
28511
28878
|
[HTTP2_HEADER_METHOD]: options.method,
|
|
@@ -28529,12 +28896,20 @@
|
|
|
28529
28896
|
};
|
|
28530
28897
|
var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
28531
28898
|
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
28532
|
-
|
|
28533
|
-
|
|
28899
|
+
const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
|
|
28900
|
+
let data = own2("data");
|
|
28901
|
+
let lookup = own2("lookup");
|
|
28902
|
+
let family = own2("family");
|
|
28903
|
+
let httpVersion = own2("httpVersion");
|
|
28904
|
+
if (httpVersion === void 0) httpVersion = 1;
|
|
28905
|
+
let http2Options = own2("http2Options");
|
|
28906
|
+
const responseType = own2("responseType");
|
|
28907
|
+
const responseEncoding = own2("responseEncoding");
|
|
28534
28908
|
const method = config.method.toUpperCase();
|
|
28535
28909
|
let isDone;
|
|
28536
28910
|
let rejected = false;
|
|
28537
28911
|
let req;
|
|
28912
|
+
let connectPhaseTimer;
|
|
28538
28913
|
httpVersion = +httpVersion;
|
|
28539
28914
|
if (Number.isNaN(httpVersion)) {
|
|
28540
28915
|
throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
|
|
@@ -28558,13 +28933,36 @@
|
|
|
28558
28933
|
const abortEmitter = new import_events.EventEmitter();
|
|
28559
28934
|
function abort(reason) {
|
|
28560
28935
|
try {
|
|
28561
|
-
abortEmitter.emit(
|
|
28936
|
+
abortEmitter.emit(
|
|
28937
|
+
"abort",
|
|
28938
|
+
!reason || reason.type ? new CanceledError_default(null, config, req) : reason
|
|
28939
|
+
);
|
|
28562
28940
|
} catch (err) {
|
|
28563
28941
|
console.warn("emit error", err);
|
|
28564
28942
|
}
|
|
28565
28943
|
}
|
|
28944
|
+
function clearConnectPhaseTimer() {
|
|
28945
|
+
if (connectPhaseTimer) {
|
|
28946
|
+
clearTimeout(connectPhaseTimer);
|
|
28947
|
+
connectPhaseTimer = null;
|
|
28948
|
+
}
|
|
28949
|
+
}
|
|
28950
|
+
function createTimeoutError() {
|
|
28951
|
+
let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
|
|
28952
|
+
const transitional2 = config.transitional || transitional_default;
|
|
28953
|
+
if (config.timeoutErrorMessage) {
|
|
28954
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
28955
|
+
}
|
|
28956
|
+
return new AxiosError_default(
|
|
28957
|
+
timeoutErrorMessage,
|
|
28958
|
+
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
28959
|
+
config,
|
|
28960
|
+
req
|
|
28961
|
+
);
|
|
28962
|
+
}
|
|
28566
28963
|
abortEmitter.once("abort", reject);
|
|
28567
28964
|
const onFinished = () => {
|
|
28965
|
+
clearConnectPhaseTimer();
|
|
28568
28966
|
if (config.cancelToken) {
|
|
28569
28967
|
config.cancelToken.unsubscribe(abort);
|
|
28570
28968
|
}
|
|
@@ -28581,6 +28979,7 @@
|
|
|
28581
28979
|
}
|
|
28582
28980
|
onDone((response, isRejected) => {
|
|
28583
28981
|
isDone = true;
|
|
28982
|
+
clearConnectPhaseTimer();
|
|
28584
28983
|
if (isRejected) {
|
|
28585
28984
|
rejected = true;
|
|
28586
28985
|
onFinished();
|
|
@@ -28604,11 +29003,13 @@
|
|
|
28604
29003
|
const dataUrl = String(config.url || fullPath || "");
|
|
28605
29004
|
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
28606
29005
|
if (estimated > config.maxContentLength) {
|
|
28607
|
-
return reject(
|
|
28608
|
-
|
|
28609
|
-
|
|
28610
|
-
|
|
28611
|
-
|
|
29006
|
+
return reject(
|
|
29007
|
+
new AxiosError_default(
|
|
29008
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
29009
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
29010
|
+
config
|
|
29011
|
+
)
|
|
29012
|
+
);
|
|
28612
29013
|
}
|
|
28613
29014
|
}
|
|
28614
29015
|
let convertedData;
|
|
@@ -28644,11 +29045,9 @@
|
|
|
28644
29045
|
});
|
|
28645
29046
|
}
|
|
28646
29047
|
if (supportedProtocols.indexOf(protocol) === -1) {
|
|
28647
|
-
return reject(
|
|
28648
|
-
"Unsupported protocol " + protocol,
|
|
28649
|
-
|
|
28650
|
-
config
|
|
28651
|
-
));
|
|
29048
|
+
return reject(
|
|
29049
|
+
new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_BAD_REQUEST, config)
|
|
29050
|
+
);
|
|
28652
29051
|
}
|
|
28653
29052
|
const headers = AxiosHeaders_default.from(config.headers).normalize();
|
|
28654
29053
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
@@ -28658,14 +29057,18 @@
|
|
|
28658
29057
|
let maxDownloadRate = void 0;
|
|
28659
29058
|
if (utils_default.isSpecCompliantForm(data)) {
|
|
28660
29059
|
const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
|
|
28661
|
-
data = formDataToStream_default(
|
|
28662
|
-
|
|
28663
|
-
|
|
28664
|
-
|
|
28665
|
-
|
|
28666
|
-
|
|
28667
|
-
|
|
28668
|
-
|
|
29060
|
+
data = formDataToStream_default(
|
|
29061
|
+
data,
|
|
29062
|
+
(formHeaders) => {
|
|
29063
|
+
headers.set(formHeaders);
|
|
29064
|
+
},
|
|
29065
|
+
{
|
|
29066
|
+
tag: `axios-${VERSION}-boundary`,
|
|
29067
|
+
boundary: userBoundary && userBoundary[1] || void 0
|
|
29068
|
+
}
|
|
29069
|
+
);
|
|
29070
|
+
} else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
|
|
29071
|
+
setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
28669
29072
|
if (!headers.hasContentLength()) {
|
|
28670
29073
|
try {
|
|
28671
29074
|
const knownLength = await import_util2.default.promisify(data.getLength).call(data);
|
|
@@ -28684,19 +29087,23 @@
|
|
|
28684
29087
|
} else if (utils_default.isString(data)) {
|
|
28685
29088
|
data = Buffer.from(data, "utf-8");
|
|
28686
29089
|
} else {
|
|
28687
|
-
return reject(
|
|
28688
|
-
|
|
28689
|
-
|
|
28690
|
-
|
|
28691
|
-
|
|
29090
|
+
return reject(
|
|
29091
|
+
new AxiosError_default(
|
|
29092
|
+
"Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
|
|
29093
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
29094
|
+
config
|
|
29095
|
+
)
|
|
29096
|
+
);
|
|
28692
29097
|
}
|
|
28693
29098
|
headers.setContentLength(data.length, false);
|
|
28694
29099
|
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
|
28695
|
-
return reject(
|
|
28696
|
-
|
|
28697
|
-
|
|
28698
|
-
|
|
28699
|
-
|
|
29100
|
+
return reject(
|
|
29101
|
+
new AxiosError_default(
|
|
29102
|
+
"Request body larger than maxBodyLength limit",
|
|
29103
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
29104
|
+
config
|
|
29105
|
+
)
|
|
29106
|
+
);
|
|
28700
29107
|
}
|
|
28701
29108
|
}
|
|
28702
29109
|
const contentLength = utils_default.toFiniteNumber(headers.getContentLength());
|
|
@@ -28710,26 +29117,36 @@
|
|
|
28710
29117
|
if (!utils_default.isStream(data)) {
|
|
28711
29118
|
data = import_stream4.default.Readable.from(data, { objectMode: false });
|
|
28712
29119
|
}
|
|
28713
|
-
data = import_stream4.default.pipeline(
|
|
28714
|
-
|
|
28715
|
-
|
|
28716
|
-
|
|
28717
|
-
|
|
28718
|
-
|
|
28719
|
-
|
|
28720
|
-
|
|
29120
|
+
data = import_stream4.default.pipeline(
|
|
29121
|
+
[
|
|
29122
|
+
data,
|
|
29123
|
+
new AxiosTransformStream_default({
|
|
29124
|
+
maxRate: utils_default.toFiniteNumber(maxUploadRate)
|
|
29125
|
+
})
|
|
29126
|
+
],
|
|
29127
|
+
utils_default.noop
|
|
29128
|
+
);
|
|
29129
|
+
onUploadProgress && data.on(
|
|
29130
|
+
"progress",
|
|
29131
|
+
flushOnFinish(
|
|
29132
|
+
data,
|
|
29133
|
+
progressEventDecorator(
|
|
29134
|
+
contentLength,
|
|
29135
|
+
progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
|
|
29136
|
+
)
|
|
28721
29137
|
)
|
|
28722
|
-
)
|
|
29138
|
+
);
|
|
28723
29139
|
}
|
|
28724
29140
|
let auth = void 0;
|
|
28725
|
-
|
|
28726
|
-
|
|
28727
|
-
const
|
|
29141
|
+
const configAuth = own2("auth");
|
|
29142
|
+
if (configAuth) {
|
|
29143
|
+
const username = configAuth.username || "";
|
|
29144
|
+
const password = configAuth.password || "";
|
|
28728
29145
|
auth = username + ":" + password;
|
|
28729
29146
|
}
|
|
28730
29147
|
if (!auth && parsed.username) {
|
|
28731
|
-
const urlUsername = parsed.username;
|
|
28732
|
-
const urlPassword = parsed.password;
|
|
29148
|
+
const urlUsername = decodeURIComponentSafe(parsed.username);
|
|
29149
|
+
const urlPassword = decodeURIComponentSafe(parsed.password);
|
|
28733
29150
|
auth = urlUsername + ":" + urlPassword;
|
|
28734
29151
|
}
|
|
28735
29152
|
auth && headers.delete("authorization");
|
|
@@ -28752,7 +29169,7 @@
|
|
|
28752
29169
|
"gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
|
|
28753
29170
|
false
|
|
28754
29171
|
);
|
|
28755
|
-
const options = {
|
|
29172
|
+
const options = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
28756
29173
|
path: path2,
|
|
28757
29174
|
method,
|
|
28758
29175
|
headers: headers.toJSON(),
|
|
@@ -28761,33 +29178,62 @@
|
|
|
28761
29178
|
protocol,
|
|
28762
29179
|
family,
|
|
28763
29180
|
beforeRedirect: dispatchBeforeRedirect,
|
|
28764
|
-
beforeRedirects:
|
|
29181
|
+
beforeRedirects: /* @__PURE__ */ Object.create(null),
|
|
28765
29182
|
http2Options
|
|
28766
|
-
};
|
|
29183
|
+
});
|
|
28767
29184
|
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
|
|
28768
29185
|
if (config.socketPath) {
|
|
29186
|
+
if (typeof config.socketPath !== "string") {
|
|
29187
|
+
return reject(
|
|
29188
|
+
new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
|
|
29189
|
+
);
|
|
29190
|
+
}
|
|
29191
|
+
if (config.allowedSocketPaths != null) {
|
|
29192
|
+
const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
|
|
29193
|
+
const resolvedSocket = (0, import_path3.resolve)(config.socketPath);
|
|
29194
|
+
const isAllowed = allowed.some(
|
|
29195
|
+
(entry) => typeof entry === "string" && (0, import_path3.resolve)(entry) === resolvedSocket
|
|
29196
|
+
);
|
|
29197
|
+
if (!isAllowed) {
|
|
29198
|
+
return reject(
|
|
29199
|
+
new AxiosError_default(
|
|
29200
|
+
`socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
|
|
29201
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
29202
|
+
config
|
|
29203
|
+
)
|
|
29204
|
+
);
|
|
29205
|
+
}
|
|
29206
|
+
}
|
|
28769
29207
|
options.socketPath = config.socketPath;
|
|
28770
29208
|
} else {
|
|
28771
29209
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
28772
29210
|
options.port = parsed.port;
|
|
28773
|
-
setProxy(
|
|
29211
|
+
setProxy(
|
|
29212
|
+
options,
|
|
29213
|
+
config.proxy,
|
|
29214
|
+
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
|
|
29215
|
+
);
|
|
28774
29216
|
}
|
|
28775
29217
|
let transport;
|
|
29218
|
+
let isNativeTransport = false;
|
|
28776
29219
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
28777
29220
|
options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
|
|
28778
29221
|
if (isHttp2) {
|
|
28779
29222
|
transport = http2Transport;
|
|
28780
29223
|
} else {
|
|
28781
|
-
|
|
28782
|
-
|
|
29224
|
+
const configTransport = own2("transport");
|
|
29225
|
+
if (configTransport) {
|
|
29226
|
+
transport = configTransport;
|
|
28783
29227
|
} else if (config.maxRedirects === 0) {
|
|
28784
29228
|
transport = isHttpsRequest ? import_https.default : import_http.default;
|
|
29229
|
+
isNativeTransport = true;
|
|
28785
29230
|
} else {
|
|
28786
29231
|
if (config.maxRedirects) {
|
|
28787
29232
|
options.maxRedirects = config.maxRedirects;
|
|
28788
29233
|
}
|
|
28789
|
-
|
|
28790
|
-
|
|
29234
|
+
const configBeforeRedirect = own2("beforeRedirect");
|
|
29235
|
+
if (configBeforeRedirect) {
|
|
29236
|
+
options.beforeRedirects.config = configBeforeRedirect;
|
|
28791
29237
|
}
|
|
28792
29238
|
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
28793
29239
|
}
|
|
@@ -28797,10 +29243,9 @@
|
|
|
28797
29243
|
} else {
|
|
28798
29244
|
options.maxBodyLength = Infinity;
|
|
28799
29245
|
}
|
|
28800
|
-
|
|
28801
|
-
options.insecureHTTPParser = config.insecureHTTPParser;
|
|
28802
|
-
}
|
|
29246
|
+
options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
|
|
28803
29247
|
req = transport.request(options, function handleResponse(res) {
|
|
29248
|
+
clearConnectPhaseTimer();
|
|
28804
29249
|
if (req.destroyed) return;
|
|
28805
29250
|
const streams = [res];
|
|
28806
29251
|
const responseLength = utils_default.toFiniteNumber(res.headers["content-length"]);
|
|
@@ -28808,13 +29253,16 @@
|
|
|
28808
29253
|
const transformStream = new AxiosTransformStream_default({
|
|
28809
29254
|
maxRate: utils_default.toFiniteNumber(maxDownloadRate)
|
|
28810
29255
|
});
|
|
28811
|
-
onDownloadProgress && transformStream.on(
|
|
28812
|
-
|
|
28813
|
-
|
|
28814
|
-
|
|
28815
|
-
|
|
29256
|
+
onDownloadProgress && transformStream.on(
|
|
29257
|
+
"progress",
|
|
29258
|
+
flushOnFinish(
|
|
29259
|
+
transformStream,
|
|
29260
|
+
progressEventDecorator(
|
|
29261
|
+
responseLength,
|
|
29262
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
|
|
29263
|
+
)
|
|
28816
29264
|
)
|
|
28817
|
-
)
|
|
29265
|
+
);
|
|
28818
29266
|
streams.push(transformStream);
|
|
28819
29267
|
}
|
|
28820
29268
|
let responseStream = res;
|
|
@@ -28853,6 +29301,28 @@
|
|
|
28853
29301
|
request: lastRequest
|
|
28854
29302
|
};
|
|
28855
29303
|
if (responseType === "stream") {
|
|
29304
|
+
if (config.maxContentLength > -1) {
|
|
29305
|
+
const limit = config.maxContentLength;
|
|
29306
|
+
const source = responseStream;
|
|
29307
|
+
async function* enforceMaxContentLength() {
|
|
29308
|
+
let totalResponseBytes = 0;
|
|
29309
|
+
for await (const chunk of source) {
|
|
29310
|
+
totalResponseBytes += chunk.length;
|
|
29311
|
+
if (totalResponseBytes > limit) {
|
|
29312
|
+
throw new AxiosError_default(
|
|
29313
|
+
"maxContentLength size of " + limit + " exceeded",
|
|
29314
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
29315
|
+
config,
|
|
29316
|
+
lastRequest
|
|
29317
|
+
);
|
|
29318
|
+
}
|
|
29319
|
+
yield chunk;
|
|
29320
|
+
}
|
|
29321
|
+
}
|
|
29322
|
+
responseStream = import_stream4.default.Readable.from(enforceMaxContentLength(), {
|
|
29323
|
+
objectMode: false
|
|
29324
|
+
});
|
|
29325
|
+
}
|
|
28856
29326
|
response.data = responseStream;
|
|
28857
29327
|
settle(resolve, reject, response);
|
|
28858
29328
|
} else {
|
|
@@ -28864,12 +29334,14 @@
|
|
|
28864
29334
|
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
28865
29335
|
rejected = true;
|
|
28866
29336
|
responseStream.destroy();
|
|
28867
|
-
abort(
|
|
28868
|
-
|
|
28869
|
-
|
|
28870
|
-
|
|
28871
|
-
|
|
28872
|
-
|
|
29337
|
+
abort(
|
|
29338
|
+
new AxiosError_default(
|
|
29339
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
29340
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
29341
|
+
config,
|
|
29342
|
+
lastRequest
|
|
29343
|
+
)
|
|
29344
|
+
);
|
|
28873
29345
|
}
|
|
28874
29346
|
});
|
|
28875
29347
|
responseStream.on("aborted", function handlerStreamAborted() {
|
|
@@ -28880,14 +29352,15 @@
|
|
|
28880
29352
|
"stream has been aborted",
|
|
28881
29353
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
28882
29354
|
config,
|
|
28883
|
-
lastRequest
|
|
29355
|
+
lastRequest,
|
|
29356
|
+
response
|
|
28884
29357
|
);
|
|
28885
29358
|
responseStream.destroy(err);
|
|
28886
29359
|
reject(err);
|
|
28887
29360
|
});
|
|
28888
29361
|
responseStream.on("error", function handleStreamError(err) {
|
|
28889
|
-
if (
|
|
28890
|
-
reject(AxiosError_default.from(err, null, config, lastRequest));
|
|
29362
|
+
if (rejected) return;
|
|
29363
|
+
reject(AxiosError_default.from(err, null, config, lastRequest, response));
|
|
28891
29364
|
});
|
|
28892
29365
|
responseStream.on("end", function handleStreamEnd() {
|
|
28893
29366
|
try {
|
|
@@ -28922,34 +29395,51 @@
|
|
|
28922
29395
|
req.on("error", function handleRequestError(err) {
|
|
28923
29396
|
reject(AxiosError_default.from(err, null, config, req));
|
|
28924
29397
|
});
|
|
29398
|
+
const boundSockets = /* @__PURE__ */ new Set();
|
|
28925
29399
|
req.on("socket", function handleRequestSocket(socket) {
|
|
28926
29400
|
socket.setKeepAlive(true, 1e3 * 60);
|
|
29401
|
+
if (!socket[kAxiosSocketListener]) {
|
|
29402
|
+
socket.on("error", function handleSocketError(err) {
|
|
29403
|
+
const current = socket[kAxiosCurrentReq];
|
|
29404
|
+
if (current && !current.destroyed) {
|
|
29405
|
+
current.destroy(err);
|
|
29406
|
+
}
|
|
29407
|
+
});
|
|
29408
|
+
socket[kAxiosSocketListener] = true;
|
|
29409
|
+
}
|
|
29410
|
+
socket[kAxiosCurrentReq] = req;
|
|
29411
|
+
boundSockets.add(socket);
|
|
29412
|
+
});
|
|
29413
|
+
req.once("close", function clearCurrentReq() {
|
|
29414
|
+
clearConnectPhaseTimer();
|
|
29415
|
+
for (const socket of boundSockets) {
|
|
29416
|
+
if (socket[kAxiosCurrentReq] === req) {
|
|
29417
|
+
socket[kAxiosCurrentReq] = null;
|
|
29418
|
+
}
|
|
29419
|
+
}
|
|
29420
|
+
boundSockets.clear();
|
|
28927
29421
|
});
|
|
28928
29422
|
if (config.timeout) {
|
|
28929
29423
|
const timeout = parseInt(config.timeout, 10);
|
|
28930
29424
|
if (Number.isNaN(timeout)) {
|
|
28931
|
-
abort(
|
|
28932
|
-
|
|
28933
|
-
|
|
28934
|
-
|
|
28935
|
-
|
|
28936
|
-
|
|
29425
|
+
abort(
|
|
29426
|
+
new AxiosError_default(
|
|
29427
|
+
"error trying to parse `config.timeout` to int",
|
|
29428
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
29429
|
+
config,
|
|
29430
|
+
req
|
|
29431
|
+
)
|
|
29432
|
+
);
|
|
28937
29433
|
return;
|
|
28938
29434
|
}
|
|
28939
|
-
|
|
29435
|
+
const handleTimeout = function handleTimeout2() {
|
|
28940
29436
|
if (isDone) return;
|
|
28941
|
-
|
|
28942
|
-
|
|
28943
|
-
|
|
28944
|
-
|
|
28945
|
-
|
|
28946
|
-
|
|
28947
|
-
timeoutErrorMessage,
|
|
28948
|
-
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
28949
|
-
config,
|
|
28950
|
-
req
|
|
28951
|
-
));
|
|
28952
|
-
});
|
|
29437
|
+
abort(createTimeoutError());
|
|
29438
|
+
};
|
|
29439
|
+
if (isNativeTransport && timeout > 0) {
|
|
29440
|
+
connectPhaseTimer = setTimeout(handleTimeout, timeout);
|
|
29441
|
+
}
|
|
29442
|
+
req.setTimeout(timeout, handleTimeout);
|
|
28953
29443
|
} else {
|
|
28954
29444
|
req.setTimeout(0);
|
|
28955
29445
|
}
|
|
@@ -28968,7 +29458,37 @@
|
|
|
28968
29458
|
abort(new CanceledError_default("Request stream has been aborted", config, req));
|
|
28969
29459
|
}
|
|
28970
29460
|
});
|
|
28971
|
-
data
|
|
29461
|
+
let uploadStream = data;
|
|
29462
|
+
if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
|
|
29463
|
+
const limit = config.maxBodyLength;
|
|
29464
|
+
let bytesSent = 0;
|
|
29465
|
+
uploadStream = import_stream4.default.pipeline(
|
|
29466
|
+
[
|
|
29467
|
+
data,
|
|
29468
|
+
new import_stream4.default.Transform({
|
|
29469
|
+
transform(chunk, _enc, cb) {
|
|
29470
|
+
bytesSent += chunk.length;
|
|
29471
|
+
if (bytesSent > limit) {
|
|
29472
|
+
return cb(
|
|
29473
|
+
new AxiosError_default(
|
|
29474
|
+
"Request body larger than maxBodyLength limit",
|
|
29475
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
29476
|
+
config,
|
|
29477
|
+
req
|
|
29478
|
+
)
|
|
29479
|
+
);
|
|
29480
|
+
}
|
|
29481
|
+
cb(null, chunk);
|
|
29482
|
+
}
|
|
29483
|
+
})
|
|
29484
|
+
],
|
|
29485
|
+
utils_default.noop
|
|
29486
|
+
);
|
|
29487
|
+
uploadStream.on("error", (err) => {
|
|
29488
|
+
if (!req.destroyed) req.destroy(err);
|
|
29489
|
+
});
|
|
29490
|
+
}
|
|
29491
|
+
uploadStream.pipe(req);
|
|
28972
29492
|
} else {
|
|
28973
29493
|
data && req.write(data);
|
|
28974
29494
|
req.end();
|
|
@@ -29011,8 +29531,15 @@
|
|
|
29011
29531
|
},
|
|
29012
29532
|
read(name) {
|
|
29013
29533
|
if (typeof document === "undefined") return null;
|
|
29014
|
-
const
|
|
29015
|
-
|
|
29534
|
+
const cookies = document.cookie.split(";");
|
|
29535
|
+
for (let i = 0; i < cookies.length; i++) {
|
|
29536
|
+
const cookie = cookies[i].replace(/^\s+/, "");
|
|
29537
|
+
const eq = cookie.indexOf("=");
|
|
29538
|
+
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
29539
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
29540
|
+
}
|
|
29541
|
+
}
|
|
29542
|
+
return null;
|
|
29016
29543
|
},
|
|
29017
29544
|
remove(name) {
|
|
29018
29545
|
this.write(name, "", Date.now() - 864e5, "/");
|
|
@@ -29035,7 +29562,16 @@
|
|
|
29035
29562
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
29036
29563
|
function mergeConfig(config1, config2) {
|
|
29037
29564
|
config2 = config2 || {};
|
|
29038
|
-
const config =
|
|
29565
|
+
const config = /* @__PURE__ */ Object.create(null);
|
|
29566
|
+
Object.defineProperty(config, "hasOwnProperty", {
|
|
29567
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
29568
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
29569
|
+
__proto__: null,
|
|
29570
|
+
value: Object.prototype.hasOwnProperty,
|
|
29571
|
+
enumerable: false,
|
|
29572
|
+
writable: true,
|
|
29573
|
+
configurable: true
|
|
29574
|
+
});
|
|
29039
29575
|
function getMergedValue(target, source, prop, caseless) {
|
|
29040
29576
|
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
|
|
29041
29577
|
return utils_default.merge.call({ caseless }, target, source);
|
|
@@ -29066,9 +29602,9 @@
|
|
|
29066
29602
|
}
|
|
29067
29603
|
}
|
|
29068
29604
|
function mergeDirectKeys(a, b, prop) {
|
|
29069
|
-
if (prop
|
|
29605
|
+
if (utils_default.hasOwnProp(config2, prop)) {
|
|
29070
29606
|
return getMergedValue(a, b);
|
|
29071
|
-
} else if (prop
|
|
29607
|
+
} else if (utils_default.hasOwnProp(config1, prop)) {
|
|
29072
29608
|
return getMergedValue(void 0, a);
|
|
29073
29609
|
}
|
|
29074
29610
|
}
|
|
@@ -29099,51 +29635,76 @@
|
|
|
29099
29635
|
httpsAgent: defaultToConfig2,
|
|
29100
29636
|
cancelToken: defaultToConfig2,
|
|
29101
29637
|
socketPath: defaultToConfig2,
|
|
29638
|
+
allowedSocketPaths: defaultToConfig2,
|
|
29102
29639
|
responseEncoding: defaultToConfig2,
|
|
29103
29640
|
validateStatus: mergeDirectKeys,
|
|
29104
29641
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
29105
29642
|
};
|
|
29106
|
-
utils_default.forEach(
|
|
29107
|
-
|
|
29108
|
-
|
|
29109
|
-
|
|
29110
|
-
|
|
29111
|
-
|
|
29112
|
-
|
|
29113
|
-
|
|
29114
|
-
}
|
|
29115
|
-
);
|
|
29643
|
+
utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
29644
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
29645
|
+
const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
29646
|
+
const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
|
|
29647
|
+
const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
|
|
29648
|
+
const configValue = merge2(a, b, prop);
|
|
29649
|
+
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
29650
|
+
});
|
|
29116
29651
|
return config;
|
|
29117
29652
|
}
|
|
29118
29653
|
|
|
29119
29654
|
// node_modules/axios/lib/helpers/resolveConfig.js
|
|
29655
|
+
var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
|
|
29656
|
+
function setFormDataHeaders2(headers, formHeaders, policy) {
|
|
29657
|
+
if (policy !== "content-only") {
|
|
29658
|
+
headers.set(formHeaders);
|
|
29659
|
+
return;
|
|
29660
|
+
}
|
|
29661
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
29662
|
+
if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
|
|
29663
|
+
headers.set(key, val);
|
|
29664
|
+
}
|
|
29665
|
+
});
|
|
29666
|
+
}
|
|
29667
|
+
var encodeUTF8 = (str) => encodeURIComponent(str).replace(
|
|
29668
|
+
/%([0-9A-F]{2})/gi,
|
|
29669
|
+
(_, hex2) => String.fromCharCode(parseInt(hex2, 16))
|
|
29670
|
+
);
|
|
29120
29671
|
var resolveConfig_default = (config) => {
|
|
29121
29672
|
const newConfig = mergeConfig({}, config);
|
|
29122
|
-
|
|
29673
|
+
const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
29674
|
+
const data = own2("data");
|
|
29675
|
+
let withXSRFToken = own2("withXSRFToken");
|
|
29676
|
+
const xsrfHeaderName = own2("xsrfHeaderName");
|
|
29677
|
+
const xsrfCookieName = own2("xsrfCookieName");
|
|
29678
|
+
let headers = own2("headers");
|
|
29679
|
+
const auth = own2("auth");
|
|
29680
|
+
const baseURL = own2("baseURL");
|
|
29681
|
+
const allowAbsoluteUrls = own2("allowAbsoluteUrls");
|
|
29682
|
+
const url2 = own2("url");
|
|
29123
29683
|
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
29124
|
-
newConfig.url = buildURL(
|
|
29684
|
+
newConfig.url = buildURL(
|
|
29685
|
+
buildFullPath(baseURL, url2, allowAbsoluteUrls),
|
|
29686
|
+
config.params,
|
|
29687
|
+
config.paramsSerializer
|
|
29688
|
+
);
|
|
29125
29689
|
if (auth) {
|
|
29126
29690
|
headers.set(
|
|
29127
29691
|
"Authorization",
|
|
29128
|
-
"Basic " + btoa((auth.username || "") + ":" + (auth.password ?
|
|
29692
|
+
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
|
|
29129
29693
|
);
|
|
29130
29694
|
}
|
|
29131
29695
|
if (utils_default.isFormData(data)) {
|
|
29132
29696
|
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
29133
29697
|
headers.setContentType(void 0);
|
|
29134
29698
|
} else if (utils_default.isFunction(data.getHeaders)) {
|
|
29135
|
-
|
|
29136
|
-
const allowedHeaders = ["content-type", "content-length"];
|
|
29137
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
29138
|
-
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
29139
|
-
headers.set(key, val);
|
|
29140
|
-
}
|
|
29141
|
-
});
|
|
29699
|
+
setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
29142
29700
|
}
|
|
29143
29701
|
}
|
|
29144
29702
|
if (platform_default.hasStandardBrowserEnv) {
|
|
29145
|
-
|
|
29146
|
-
|
|
29703
|
+
if (utils_default.isFunction(withXSRFToken)) {
|
|
29704
|
+
withXSRFToken = withXSRFToken(newConfig);
|
|
29705
|
+
}
|
|
29706
|
+
const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
|
|
29707
|
+
if (shouldSendXSRF) {
|
|
29147
29708
|
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
|
|
29148
29709
|
if (xsrfValue) {
|
|
29149
29710
|
headers.set(xsrfHeaderName, xsrfValue);
|
|
@@ -29189,13 +29750,17 @@
|
|
|
29189
29750
|
config,
|
|
29190
29751
|
request
|
|
29191
29752
|
};
|
|
29192
|
-
settle(
|
|
29193
|
-
|
|
29194
|
-
|
|
29195
|
-
|
|
29196
|
-
|
|
29197
|
-
|
|
29198
|
-
|
|
29753
|
+
settle(
|
|
29754
|
+
function _resolve(value) {
|
|
29755
|
+
resolve(value);
|
|
29756
|
+
done();
|
|
29757
|
+
},
|
|
29758
|
+
function _reject(err) {
|
|
29759
|
+
reject(err);
|
|
29760
|
+
done();
|
|
29761
|
+
},
|
|
29762
|
+
response
|
|
29763
|
+
);
|
|
29199
29764
|
request = null;
|
|
29200
29765
|
}
|
|
29201
29766
|
if ("onloadend" in request) {
|
|
@@ -29205,7 +29770,7 @@
|
|
|
29205
29770
|
if (!request || request.readyState !== 4) {
|
|
29206
29771
|
return;
|
|
29207
29772
|
}
|
|
29208
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.
|
|
29773
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
|
|
29209
29774
|
return;
|
|
29210
29775
|
}
|
|
29211
29776
|
setTimeout(onloadend);
|
|
@@ -29216,6 +29781,7 @@
|
|
|
29216
29781
|
return;
|
|
29217
29782
|
}
|
|
29218
29783
|
reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
|
|
29784
|
+
done();
|
|
29219
29785
|
request = null;
|
|
29220
29786
|
};
|
|
29221
29787
|
request.onerror = function handleError(event) {
|
|
@@ -29223,6 +29789,7 @@
|
|
|
29223
29789
|
const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
|
|
29224
29790
|
err.event = event || null;
|
|
29225
29791
|
reject(err);
|
|
29792
|
+
done();
|
|
29226
29793
|
request = null;
|
|
29227
29794
|
};
|
|
29228
29795
|
request.ontimeout = function handleTimeout() {
|
|
@@ -29231,12 +29798,15 @@
|
|
|
29231
29798
|
if (_config.timeoutErrorMessage) {
|
|
29232
29799
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
29233
29800
|
}
|
|
29234
|
-
reject(
|
|
29235
|
-
|
|
29236
|
-
|
|
29237
|
-
|
|
29238
|
-
|
|
29239
|
-
|
|
29801
|
+
reject(
|
|
29802
|
+
new AxiosError_default(
|
|
29803
|
+
timeoutErrorMessage,
|
|
29804
|
+
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
29805
|
+
config,
|
|
29806
|
+
request
|
|
29807
|
+
)
|
|
29808
|
+
);
|
|
29809
|
+
done();
|
|
29240
29810
|
request = null;
|
|
29241
29811
|
};
|
|
29242
29812
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -29267,6 +29837,7 @@
|
|
|
29267
29837
|
}
|
|
29268
29838
|
reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
|
|
29269
29839
|
request.abort();
|
|
29840
|
+
done();
|
|
29270
29841
|
request = null;
|
|
29271
29842
|
};
|
|
29272
29843
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
@@ -29275,8 +29846,14 @@
|
|
|
29275
29846
|
}
|
|
29276
29847
|
}
|
|
29277
29848
|
const protocol = parseProtocol(_config.url);
|
|
29278
|
-
if (protocol && platform_default.protocols.
|
|
29279
|
-
reject(
|
|
29849
|
+
if (protocol && !platform_default.protocols.includes(protocol)) {
|
|
29850
|
+
reject(
|
|
29851
|
+
new AxiosError_default(
|
|
29852
|
+
"Unsupported protocol " + protocol + ":",
|
|
29853
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
29854
|
+
config
|
|
29855
|
+
)
|
|
29856
|
+
);
|
|
29280
29857
|
return;
|
|
29281
29858
|
}
|
|
29282
29859
|
request.send(requestData || null);
|
|
@@ -29294,7 +29871,9 @@
|
|
|
29294
29871
|
aborted = true;
|
|
29295
29872
|
unsubscribe();
|
|
29296
29873
|
const err = reason instanceof Error ? reason : this.reason;
|
|
29297
|
-
controller.abort(
|
|
29874
|
+
controller.abort(
|
|
29875
|
+
err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
|
|
29876
|
+
);
|
|
29298
29877
|
}
|
|
29299
29878
|
};
|
|
29300
29879
|
let timer = timeout && setTimeout(() => {
|
|
@@ -29367,46 +29946,41 @@
|
|
|
29367
29946
|
onFinish && onFinish(e);
|
|
29368
29947
|
}
|
|
29369
29948
|
};
|
|
29370
|
-
return new ReadableStream(
|
|
29371
|
-
|
|
29372
|
-
|
|
29373
|
-
|
|
29374
|
-
|
|
29375
|
-
|
|
29376
|
-
|
|
29377
|
-
|
|
29378
|
-
|
|
29379
|
-
|
|
29380
|
-
|
|
29381
|
-
|
|
29382
|
-
|
|
29949
|
+
return new ReadableStream(
|
|
29950
|
+
{
|
|
29951
|
+
async pull(controller) {
|
|
29952
|
+
try {
|
|
29953
|
+
const { done: done2, value } = await iterator2.next();
|
|
29954
|
+
if (done2) {
|
|
29955
|
+
_onFinish();
|
|
29956
|
+
controller.close();
|
|
29957
|
+
return;
|
|
29958
|
+
}
|
|
29959
|
+
let len = value.byteLength;
|
|
29960
|
+
if (onProgress) {
|
|
29961
|
+
let loadedBytes = bytes += len;
|
|
29962
|
+
onProgress(loadedBytes);
|
|
29963
|
+
}
|
|
29964
|
+
controller.enqueue(new Uint8Array(value));
|
|
29965
|
+
} catch (err) {
|
|
29966
|
+
_onFinish(err);
|
|
29967
|
+
throw err;
|
|
29383
29968
|
}
|
|
29384
|
-
|
|
29385
|
-
|
|
29386
|
-
_onFinish(
|
|
29387
|
-
|
|
29969
|
+
},
|
|
29970
|
+
cancel(reason) {
|
|
29971
|
+
_onFinish(reason);
|
|
29972
|
+
return iterator2.return();
|
|
29388
29973
|
}
|
|
29389
29974
|
},
|
|
29390
|
-
|
|
29391
|
-
|
|
29392
|
-
return iterator2.return();
|
|
29975
|
+
{
|
|
29976
|
+
highWaterMark: 2
|
|
29393
29977
|
}
|
|
29394
|
-
|
|
29395
|
-
highWaterMark: 2
|
|
29396
|
-
});
|
|
29978
|
+
);
|
|
29397
29979
|
};
|
|
29398
29980
|
|
|
29399
29981
|
// node_modules/axios/lib/adapters/fetch.js
|
|
29400
29982
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
29401
29983
|
var { isFunction: isFunction2 } = utils_default;
|
|
29402
|
-
var globalFetchAPI = (({ Request, Response }) => ({
|
|
29403
|
-
Request,
|
|
29404
|
-
Response
|
|
29405
|
-
}))(utils_default.global);
|
|
29406
|
-
var {
|
|
29407
|
-
ReadableStream: ReadableStream2,
|
|
29408
|
-
TextEncoder: TextEncoder2
|
|
29409
|
-
} = utils_default.global;
|
|
29410
29984
|
var test = (fn, ...args) => {
|
|
29411
29985
|
try {
|
|
29412
29986
|
return !!fn(...args);
|
|
@@ -29415,9 +29989,19 @@
|
|
|
29415
29989
|
}
|
|
29416
29990
|
};
|
|
29417
29991
|
var factory = (env) => {
|
|
29418
|
-
|
|
29419
|
-
|
|
29420
|
-
|
|
29992
|
+
var _a;
|
|
29993
|
+
const globalObject = (_a = utils_default.global) != null ? _a : globalThis;
|
|
29994
|
+
const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
|
|
29995
|
+
env = utils_default.merge.call(
|
|
29996
|
+
{
|
|
29997
|
+
skipUndefined: true
|
|
29998
|
+
},
|
|
29999
|
+
{
|
|
30000
|
+
Request: globalObject.Request,
|
|
30001
|
+
Response: globalObject.Response
|
|
30002
|
+
},
|
|
30003
|
+
env
|
|
30004
|
+
);
|
|
29421
30005
|
const { fetch: envFetch, Request, Response } = env;
|
|
29422
30006
|
const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
|
|
29423
30007
|
const isRequestSupported = isFunction2(Request);
|
|
@@ -29429,14 +30013,18 @@
|
|
|
29429
30013
|
const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
|
|
29430
30014
|
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
29431
30015
|
let duplexAccessed = false;
|
|
29432
|
-
const
|
|
30016
|
+
const request = new Request(platform_default.origin, {
|
|
29433
30017
|
body: new ReadableStream2(),
|
|
29434
30018
|
method: "POST",
|
|
29435
30019
|
get duplex() {
|
|
29436
30020
|
duplexAccessed = true;
|
|
29437
30021
|
return "half";
|
|
29438
30022
|
}
|
|
29439
|
-
})
|
|
30023
|
+
});
|
|
30024
|
+
const hasContentType = request.headers.has("Content-Type");
|
|
30025
|
+
if (request.body != null) {
|
|
30026
|
+
request.body.cancel();
|
|
30027
|
+
}
|
|
29440
30028
|
return duplexAccessed && !hasContentType;
|
|
29441
30029
|
});
|
|
29442
30030
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
@@ -29450,7 +30038,11 @@
|
|
|
29450
30038
|
if (method) {
|
|
29451
30039
|
return method.call(res);
|
|
29452
30040
|
}
|
|
29453
|
-
throw new AxiosError_default(
|
|
30041
|
+
throw new AxiosError_default(
|
|
30042
|
+
`Response type '${type}' is not supported`,
|
|
30043
|
+
AxiosError_default.ERR_NOT_SUPPORT,
|
|
30044
|
+
config
|
|
30045
|
+
);
|
|
29454
30046
|
});
|
|
29455
30047
|
});
|
|
29456
30048
|
})();
|
|
@@ -29495,17 +30087,46 @@
|
|
|
29495
30087
|
responseType,
|
|
29496
30088
|
headers,
|
|
29497
30089
|
withCredentials = "same-origin",
|
|
29498
|
-
fetchOptions
|
|
30090
|
+
fetchOptions,
|
|
30091
|
+
maxContentLength,
|
|
30092
|
+
maxBodyLength
|
|
29499
30093
|
} = resolveConfig_default(config);
|
|
30094
|
+
const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
|
|
30095
|
+
const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
29500
30096
|
let _fetch = envFetch || fetch;
|
|
29501
30097
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
29502
|
-
let composedSignal = composeSignals_default(
|
|
30098
|
+
let composedSignal = composeSignals_default(
|
|
30099
|
+
[signal, cancelToken && cancelToken.toAbortSignal()],
|
|
30100
|
+
timeout
|
|
30101
|
+
);
|
|
29503
30102
|
let request = null;
|
|
29504
30103
|
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
29505
30104
|
composedSignal.unsubscribe();
|
|
29506
30105
|
});
|
|
29507
30106
|
let requestContentLength;
|
|
29508
30107
|
try {
|
|
30108
|
+
if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
|
|
30109
|
+
const estimated = estimateDataURLDecodedBytes(url2);
|
|
30110
|
+
if (estimated > maxContentLength) {
|
|
30111
|
+
throw new AxiosError_default(
|
|
30112
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
30113
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
30114
|
+
config,
|
|
30115
|
+
request
|
|
30116
|
+
);
|
|
30117
|
+
}
|
|
30118
|
+
}
|
|
30119
|
+
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
30120
|
+
const outboundLength = await resolveBodyLength(headers, data);
|
|
30121
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
|
|
30122
|
+
throw new AxiosError_default(
|
|
30123
|
+
"Request body larger than maxBodyLength limit",
|
|
30124
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
30125
|
+
config,
|
|
30126
|
+
request
|
|
30127
|
+
);
|
|
30128
|
+
}
|
|
30129
|
+
}
|
|
29509
30130
|
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
29510
30131
|
let _request = new Request(url2, {
|
|
29511
30132
|
method: "POST",
|
|
@@ -29528,6 +30149,13 @@
|
|
|
29528
30149
|
withCredentials = withCredentials ? "include" : "omit";
|
|
29529
30150
|
}
|
|
29530
30151
|
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
30152
|
+
if (utils_default.isFormData(data)) {
|
|
30153
|
+
const contentType = headers.getContentType();
|
|
30154
|
+
if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
|
|
30155
|
+
headers.delete("content-type");
|
|
30156
|
+
}
|
|
30157
|
+
}
|
|
30158
|
+
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
29531
30159
|
const resolvedOptions = {
|
|
29532
30160
|
...fetchOptions,
|
|
29533
30161
|
signal: composedSignal,
|
|
@@ -29539,8 +30167,19 @@
|
|
|
29539
30167
|
};
|
|
29540
30168
|
request = isRequestSupported && new Request(url2, resolvedOptions);
|
|
29541
30169
|
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
|
|
30170
|
+
if (hasMaxContentLength) {
|
|
30171
|
+
const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
30172
|
+
if (declaredLength != null && declaredLength > maxContentLength) {
|
|
30173
|
+
throw new AxiosError_default(
|
|
30174
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
30175
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
30176
|
+
config,
|
|
30177
|
+
request
|
|
30178
|
+
);
|
|
30179
|
+
}
|
|
30180
|
+
}
|
|
29542
30181
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
29543
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
30182
|
+
if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
|
|
29544
30183
|
const options = {};
|
|
29545
30184
|
["status", "statusText", "headers"].forEach((prop) => {
|
|
29546
30185
|
options[prop] = response[prop];
|
|
@@ -29550,8 +30189,23 @@
|
|
|
29550
30189
|
responseContentLength,
|
|
29551
30190
|
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
29552
30191
|
) || [];
|
|
30192
|
+
let bytesRead = 0;
|
|
30193
|
+
const onChunkProgress = (loadedBytes) => {
|
|
30194
|
+
if (hasMaxContentLength) {
|
|
30195
|
+
bytesRead = loadedBytes;
|
|
30196
|
+
if (bytesRead > maxContentLength) {
|
|
30197
|
+
throw new AxiosError_default(
|
|
30198
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
30199
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
30200
|
+
config,
|
|
30201
|
+
request
|
|
30202
|
+
);
|
|
30203
|
+
}
|
|
30204
|
+
}
|
|
30205
|
+
onProgress && onProgress(loadedBytes);
|
|
30206
|
+
};
|
|
29553
30207
|
response = new Response(
|
|
29554
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE,
|
|
30208
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
|
|
29555
30209
|
flush && flush();
|
|
29556
30210
|
unsubscribe && unsubscribe();
|
|
29557
30211
|
}),
|
|
@@ -29559,7 +30213,30 @@
|
|
|
29559
30213
|
);
|
|
29560
30214
|
}
|
|
29561
30215
|
responseType = responseType || "text";
|
|
29562
|
-
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
|
|
30216
|
+
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
|
|
30217
|
+
response,
|
|
30218
|
+
config
|
|
30219
|
+
);
|
|
30220
|
+
if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
|
|
30221
|
+
let materializedSize;
|
|
30222
|
+
if (responseData != null) {
|
|
30223
|
+
if (typeof responseData.byteLength === "number") {
|
|
30224
|
+
materializedSize = responseData.byteLength;
|
|
30225
|
+
} else if (typeof responseData.size === "number") {
|
|
30226
|
+
materializedSize = responseData.size;
|
|
30227
|
+
} else if (typeof responseData === "string") {
|
|
30228
|
+
materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
|
|
30229
|
+
}
|
|
30230
|
+
}
|
|
30231
|
+
if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
|
|
30232
|
+
throw new AxiosError_default(
|
|
30233
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
30234
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
30235
|
+
config,
|
|
30236
|
+
request
|
|
30237
|
+
);
|
|
30238
|
+
}
|
|
30239
|
+
}
|
|
29563
30240
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
29564
30241
|
return await new Promise((resolve, reject) => {
|
|
29565
30242
|
settle(resolve, reject, {
|
|
@@ -29573,9 +30250,22 @@
|
|
|
29573
30250
|
});
|
|
29574
30251
|
} catch (err) {
|
|
29575
30252
|
unsubscribe && unsubscribe();
|
|
30253
|
+
if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
|
|
30254
|
+
const canceledError = composedSignal.reason;
|
|
30255
|
+
canceledError.config = config;
|
|
30256
|
+
request && (canceledError.request = request);
|
|
30257
|
+
err !== canceledError && (canceledError.cause = err);
|
|
30258
|
+
throw canceledError;
|
|
30259
|
+
}
|
|
29576
30260
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
29577
30261
|
throw Object.assign(
|
|
29578
|
-
new AxiosError_default(
|
|
30262
|
+
new AxiosError_default(
|
|
30263
|
+
"Network Error",
|
|
30264
|
+
AxiosError_default.ERR_NETWORK,
|
|
30265
|
+
config,
|
|
30266
|
+
request,
|
|
30267
|
+
err && err.response
|
|
30268
|
+
),
|
|
29579
30269
|
{
|
|
29580
30270
|
cause: err.cause || err
|
|
29581
30271
|
}
|
|
@@ -29589,11 +30279,7 @@
|
|
|
29589
30279
|
var getFetch = (config) => {
|
|
29590
30280
|
let env = config && config.env || {};
|
|
29591
30281
|
const { fetch: fetch2, Request, Response } = env;
|
|
29592
|
-
const seeds = [
|
|
29593
|
-
Request,
|
|
29594
|
-
Response,
|
|
29595
|
-
fetch2
|
|
29596
|
-
];
|
|
30282
|
+
const seeds = [Request, Response, fetch2];
|
|
29597
30283
|
let len = seeds.length, i = len, seed, target, map4 = seedCache;
|
|
29598
30284
|
while (i--) {
|
|
29599
30285
|
seed = seeds[i];
|
|
@@ -29616,10 +30302,10 @@
|
|
|
29616
30302
|
utils_default.forEach(knownAdapters, (fn, value) => {
|
|
29617
30303
|
if (fn) {
|
|
29618
30304
|
try {
|
|
29619
|
-
Object.defineProperty(fn, "name", { value });
|
|
30305
|
+
Object.defineProperty(fn, "name", { __proto__: null, value });
|
|
29620
30306
|
} catch (e) {
|
|
29621
30307
|
}
|
|
29622
|
-
Object.defineProperty(fn, "adapterName", { value });
|
|
30308
|
+
Object.defineProperty(fn, "adapterName", { __proto__: null, value });
|
|
29623
30309
|
}
|
|
29624
30310
|
});
|
|
29625
30311
|
var renderReason = (reason) => `- ${reason}`;
|
|
@@ -29682,37 +30368,43 @@
|
|
|
29682
30368
|
function dispatchRequest(config) {
|
|
29683
30369
|
throwIfCancellationRequested(config);
|
|
29684
30370
|
config.headers = AxiosHeaders_default.from(config.headers);
|
|
29685
|
-
config.data = transformData.call(
|
|
29686
|
-
config,
|
|
29687
|
-
config.transformRequest
|
|
29688
|
-
);
|
|
30371
|
+
config.data = transformData.call(config, config.transformRequest);
|
|
29689
30372
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
29690
30373
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
29691
30374
|
}
|
|
29692
30375
|
const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
|
|
29693
|
-
return adapter2(config).then(
|
|
29694
|
-
|
|
29695
|
-
response.data = transformData.call(
|
|
29696
|
-
config,
|
|
29697
|
-
config.transformResponse,
|
|
29698
|
-
response
|
|
29699
|
-
);
|
|
29700
|
-
response.headers = AxiosHeaders_default.from(response.headers);
|
|
29701
|
-
return response;
|
|
29702
|
-
}, function onAdapterRejection(reason) {
|
|
29703
|
-
if (!isCancel(reason)) {
|
|
30376
|
+
return adapter2(config).then(
|
|
30377
|
+
function onAdapterResolution(response) {
|
|
29704
30378
|
throwIfCancellationRequested(config);
|
|
29705
|
-
|
|
29706
|
-
|
|
29707
|
-
|
|
29708
|
-
|
|
29709
|
-
|
|
29710
|
-
|
|
29711
|
-
|
|
30379
|
+
config.response = response;
|
|
30380
|
+
try {
|
|
30381
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
30382
|
+
} finally {
|
|
30383
|
+
delete config.response;
|
|
30384
|
+
}
|
|
30385
|
+
response.headers = AxiosHeaders_default.from(response.headers);
|
|
30386
|
+
return response;
|
|
30387
|
+
},
|
|
30388
|
+
function onAdapterRejection(reason) {
|
|
30389
|
+
if (!isCancel(reason)) {
|
|
30390
|
+
throwIfCancellationRequested(config);
|
|
30391
|
+
if (reason && reason.response) {
|
|
30392
|
+
config.response = reason.response;
|
|
30393
|
+
try {
|
|
30394
|
+
reason.response.data = transformData.call(
|
|
30395
|
+
config,
|
|
30396
|
+
config.transformResponse,
|
|
30397
|
+
reason.response
|
|
30398
|
+
);
|
|
30399
|
+
} finally {
|
|
30400
|
+
delete config.response;
|
|
30401
|
+
}
|
|
30402
|
+
reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
|
|
30403
|
+
}
|
|
29712
30404
|
}
|
|
30405
|
+
return Promise.reject(reason);
|
|
29713
30406
|
}
|
|
29714
|
-
|
|
29715
|
-
});
|
|
30407
|
+
);
|
|
29716
30408
|
}
|
|
29717
30409
|
|
|
29718
30410
|
// node_modules/axios/lib/helpers/validator.js
|
|
@@ -29760,12 +30452,15 @@
|
|
|
29760
30452
|
let i = keys.length;
|
|
29761
30453
|
while (i-- > 0) {
|
|
29762
30454
|
const opt = keys[i];
|
|
29763
|
-
const validator = schema[opt];
|
|
30455
|
+
const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
|
|
29764
30456
|
if (validator) {
|
|
29765
30457
|
const value = options[opt];
|
|
29766
30458
|
const result = value === void 0 || validator(value, opt, options);
|
|
29767
30459
|
if (result !== true) {
|
|
29768
|
-
throw new AxiosError_default(
|
|
30460
|
+
throw new AxiosError_default(
|
|
30461
|
+
"option " + opt + " must be " + result,
|
|
30462
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE
|
|
30463
|
+
);
|
|
29769
30464
|
}
|
|
29770
30465
|
continue;
|
|
29771
30466
|
}
|
|
@@ -29804,12 +30499,23 @@
|
|
|
29804
30499
|
if (err instanceof Error) {
|
|
29805
30500
|
let dummy = {};
|
|
29806
30501
|
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
29807
|
-
const stack =
|
|
30502
|
+
const stack = (() => {
|
|
30503
|
+
if (!dummy.stack) {
|
|
30504
|
+
return "";
|
|
30505
|
+
}
|
|
30506
|
+
const firstNewlineIndex = dummy.stack.indexOf("\n");
|
|
30507
|
+
return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
|
|
30508
|
+
})();
|
|
29808
30509
|
try {
|
|
29809
30510
|
if (!err.stack) {
|
|
29810
30511
|
err.stack = stack;
|
|
29811
|
-
} else if (stack
|
|
29812
|
-
|
|
30512
|
+
} else if (stack) {
|
|
30513
|
+
const firstNewlineIndex = stack.indexOf("\n");
|
|
30514
|
+
const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
|
|
30515
|
+
const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
|
|
30516
|
+
if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
|
|
30517
|
+
err.stack += "\n" + stack;
|
|
30518
|
+
}
|
|
29813
30519
|
}
|
|
29814
30520
|
} catch (e) {
|
|
29815
30521
|
}
|
|
@@ -29827,12 +30533,16 @@
|
|
|
29827
30533
|
config = mergeConfig(this.defaults, config);
|
|
29828
30534
|
const { transitional: transitional2, paramsSerializer, headers } = config;
|
|
29829
30535
|
if (transitional2 !== void 0) {
|
|
29830
|
-
validator_default.assertOptions(
|
|
29831
|
-
|
|
29832
|
-
|
|
29833
|
-
|
|
29834
|
-
|
|
29835
|
-
|
|
30536
|
+
validator_default.assertOptions(
|
|
30537
|
+
transitional2,
|
|
30538
|
+
{
|
|
30539
|
+
silentJSONParsing: validators2.transitional(validators2.boolean),
|
|
30540
|
+
forcedJSONParsing: validators2.transitional(validators2.boolean),
|
|
30541
|
+
clarifyTimeoutError: validators2.transitional(validators2.boolean),
|
|
30542
|
+
legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
|
|
30543
|
+
},
|
|
30544
|
+
false
|
|
30545
|
+
);
|
|
29836
30546
|
}
|
|
29837
30547
|
if (paramsSerializer != null) {
|
|
29838
30548
|
if (utils_default.isFunction(paramsSerializer)) {
|
|
@@ -29840,10 +30550,14 @@
|
|
|
29840
30550
|
serialize: paramsSerializer
|
|
29841
30551
|
};
|
|
29842
30552
|
} else {
|
|
29843
|
-
validator_default.assertOptions(
|
|
29844
|
-
|
|
29845
|
-
|
|
29846
|
-
|
|
30553
|
+
validator_default.assertOptions(
|
|
30554
|
+
paramsSerializer,
|
|
30555
|
+
{
|
|
30556
|
+
encode: validators2.function,
|
|
30557
|
+
serialize: validators2.function
|
|
30558
|
+
},
|
|
30559
|
+
true
|
|
30560
|
+
);
|
|
29847
30561
|
}
|
|
29848
30562
|
}
|
|
29849
30563
|
if (config.allowAbsoluteUrls !== void 0) {
|
|
@@ -29852,21 +30566,19 @@
|
|
|
29852
30566
|
} else {
|
|
29853
30567
|
config.allowAbsoluteUrls = true;
|
|
29854
30568
|
}
|
|
29855
|
-
validator_default.assertOptions(
|
|
29856
|
-
|
|
29857
|
-
|
|
29858
|
-
|
|
29859
|
-
|
|
29860
|
-
|
|
29861
|
-
|
|
29862
|
-
headers[config.method]
|
|
29863
|
-
);
|
|
29864
|
-
headers && utils_default.forEach(
|
|
29865
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
29866
|
-
(method) => {
|
|
29867
|
-
delete headers[method];
|
|
29868
|
-
}
|
|
30569
|
+
validator_default.assertOptions(
|
|
30570
|
+
config,
|
|
30571
|
+
{
|
|
30572
|
+
baseUrl: validators2.spelling("baseURL"),
|
|
30573
|
+
withXsrfToken: validators2.spelling("withXSRFToken")
|
|
30574
|
+
},
|
|
30575
|
+
true
|
|
29869
30576
|
);
|
|
30577
|
+
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
30578
|
+
let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
|
|
30579
|
+
headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
|
|
30580
|
+
delete headers[method];
|
|
30581
|
+
});
|
|
29870
30582
|
config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
|
|
29871
30583
|
const requestInterceptorChain = [];
|
|
29872
30584
|
let synchronousRequestInterceptors = true;
|
|
@@ -29933,28 +30645,34 @@
|
|
|
29933
30645
|
};
|
|
29934
30646
|
utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
29935
30647
|
Axios.prototype[method] = function(url2, config) {
|
|
29936
|
-
return this.request(
|
|
29937
|
-
|
|
29938
|
-
|
|
29939
|
-
|
|
29940
|
-
|
|
30648
|
+
return this.request(
|
|
30649
|
+
mergeConfig(config || {}, {
|
|
30650
|
+
method,
|
|
30651
|
+
url: url2,
|
|
30652
|
+
data: (config || {}).data
|
|
30653
|
+
})
|
|
30654
|
+
);
|
|
29941
30655
|
};
|
|
29942
30656
|
});
|
|
29943
|
-
utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
30657
|
+
utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
|
|
29944
30658
|
function generateHTTPMethod(isForm) {
|
|
29945
30659
|
return function httpMethod(url2, data, config) {
|
|
29946
|
-
return this.request(
|
|
29947
|
-
|
|
29948
|
-
|
|
29949
|
-
|
|
29950
|
-
|
|
29951
|
-
|
|
29952
|
-
|
|
29953
|
-
|
|
30660
|
+
return this.request(
|
|
30661
|
+
mergeConfig(config || {}, {
|
|
30662
|
+
method,
|
|
30663
|
+
headers: isForm ? {
|
|
30664
|
+
"Content-Type": "multipart/form-data"
|
|
30665
|
+
} : {},
|
|
30666
|
+
url: url2,
|
|
30667
|
+
data
|
|
30668
|
+
})
|
|
30669
|
+
);
|
|
29954
30670
|
};
|
|
29955
30671
|
}
|
|
29956
30672
|
Axios.prototype[method] = generateHTTPMethod();
|
|
29957
|
-
|
|
30673
|
+
if (method !== "query") {
|
|
30674
|
+
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
30675
|
+
}
|
|
29958
30676
|
});
|
|
29959
30677
|
var Axios_default = Axios;
|
|
29960
30678
|
|
|
@@ -30151,7 +30869,7 @@
|
|
|
30151
30869
|
const instance = bind(Axios_default.prototype.request, context);
|
|
30152
30870
|
utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });
|
|
30153
30871
|
utils_default.extend(instance, context, null, { allOwnKeys: true });
|
|
30154
|
-
instance.create = function
|
|
30872
|
+
instance.create = function create2(instanceConfig) {
|
|
30155
30873
|
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
30156
30874
|
};
|
|
30157
30875
|
return instance;
|
|
@@ -30195,7 +30913,8 @@
|
|
|
30195
30913
|
HttpStatusCode: HttpStatusCode2,
|
|
30196
30914
|
formToJSON,
|
|
30197
30915
|
getAdapter: getAdapter2,
|
|
30198
|
-
mergeConfig: mergeConfig2
|
|
30916
|
+
mergeConfig: mergeConfig2,
|
|
30917
|
+
create
|
|
30199
30918
|
} = axios_default;
|
|
30200
30919
|
|
|
30201
30920
|
// src/Api/transforms.ts
|