aws-ec2-instance-running-scheduler 3.0.6 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11209,76 +11209,6 @@ var require_form_data = __commonJS({
|
|
|
11209
11209
|
}
|
|
11210
11210
|
});
|
|
11211
11211
|
|
|
11212
|
-
// node_modules/proxy-from-env/index.js
|
|
11213
|
-
var require_proxy_from_env = __commonJS({
|
|
11214
|
-
"node_modules/proxy-from-env/index.js"(exports2) {
|
|
11215
|
-
"use strict";
|
|
11216
|
-
var parseUrl = require("url").parse;
|
|
11217
|
-
var DEFAULT_PORTS = {
|
|
11218
|
-
ftp: 21,
|
|
11219
|
-
gopher: 70,
|
|
11220
|
-
http: 80,
|
|
11221
|
-
https: 443,
|
|
11222
|
-
ws: 80,
|
|
11223
|
-
wss: 443
|
|
11224
|
-
};
|
|
11225
|
-
var stringEndsWith = String.prototype.endsWith || function(s) {
|
|
11226
|
-
return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
|
|
11227
|
-
};
|
|
11228
|
-
function getProxyForUrl(url) {
|
|
11229
|
-
var parsedUrl = typeof url === "string" ? parseUrl(url) : url || {};
|
|
11230
|
-
var proto = parsedUrl.protocol;
|
|
11231
|
-
var hostname = parsedUrl.host;
|
|
11232
|
-
var port = parsedUrl.port;
|
|
11233
|
-
if (typeof hostname !== "string" || !hostname || typeof proto !== "string") {
|
|
11234
|
-
return "";
|
|
11235
|
-
}
|
|
11236
|
-
proto = proto.split(":", 1)[0];
|
|
11237
|
-
hostname = hostname.replace(/:\d*$/, "");
|
|
11238
|
-
port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
|
|
11239
|
-
if (!shouldProxy(hostname, port)) {
|
|
11240
|
-
return "";
|
|
11241
|
-
}
|
|
11242
|
-
var proxy = getEnv("npm_config_" + proto + "_proxy") || getEnv(proto + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy");
|
|
11243
|
-
if (proxy && proxy.indexOf("://") === -1) {
|
|
11244
|
-
proxy = proto + "://" + proxy;
|
|
11245
|
-
}
|
|
11246
|
-
return proxy;
|
|
11247
|
-
}
|
|
11248
|
-
function shouldProxy(hostname, port) {
|
|
11249
|
-
var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase();
|
|
11250
|
-
if (!NO_PROXY) {
|
|
11251
|
-
return true;
|
|
11252
|
-
}
|
|
11253
|
-
if (NO_PROXY === "*") {
|
|
11254
|
-
return false;
|
|
11255
|
-
}
|
|
11256
|
-
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
11257
|
-
if (!proxy) {
|
|
11258
|
-
return true;
|
|
11259
|
-
}
|
|
11260
|
-
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
11261
|
-
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
11262
|
-
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
11263
|
-
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
11264
|
-
return true;
|
|
11265
|
-
}
|
|
11266
|
-
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
11267
|
-
return hostname !== parsedProxyHostname;
|
|
11268
|
-
}
|
|
11269
|
-
if (parsedProxyHostname.charAt(0) === "*") {
|
|
11270
|
-
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
11271
|
-
}
|
|
11272
|
-
return !stringEndsWith.call(hostname, parsedProxyHostname);
|
|
11273
|
-
});
|
|
11274
|
-
}
|
|
11275
|
-
function getEnv(key) {
|
|
11276
|
-
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
11277
|
-
}
|
|
11278
|
-
exports2.getProxyForUrl = getProxyForUrl;
|
|
11279
|
-
}
|
|
11280
|
-
});
|
|
11281
|
-
|
|
11282
11212
|
// node_modules/ms/index.js
|
|
11283
11213
|
var require_ms = __commonJS({
|
|
11284
11214
|
"node_modules/ms/index.js"(exports2, module2) {
|
|
@@ -12572,7 +12502,6 @@ var require_axios = __commonJS({
|
|
|
12572
12502
|
var FormData$1 = require_form_data();
|
|
12573
12503
|
var crypto = require("crypto");
|
|
12574
12504
|
var url = require("url");
|
|
12575
|
-
var proxyFromEnv = require_proxy_from_env();
|
|
12576
12505
|
var http = require("http");
|
|
12577
12506
|
var https = require("https");
|
|
12578
12507
|
var http2 = require("http2");
|
|
@@ -12581,28 +12510,21 @@ var require_axios = __commonJS({
|
|
|
12581
12510
|
var zlib = require("zlib");
|
|
12582
12511
|
var stream = require("stream");
|
|
12583
12512
|
var events = require("events");
|
|
12584
|
-
function _interopDefaultLegacy(e) {
|
|
12585
|
-
return e && typeof e === "object" && "default" in e ? e : { "default": e };
|
|
12586
|
-
}
|
|
12587
|
-
var FormData__default = /* @__PURE__ */ _interopDefaultLegacy(FormData$1);
|
|
12588
|
-
var crypto__default = /* @__PURE__ */ _interopDefaultLegacy(crypto);
|
|
12589
|
-
var url__default = /* @__PURE__ */ _interopDefaultLegacy(url);
|
|
12590
|
-
var proxyFromEnv__default = /* @__PURE__ */ _interopDefaultLegacy(proxyFromEnv);
|
|
12591
|
-
var http__default = /* @__PURE__ */ _interopDefaultLegacy(http);
|
|
12592
|
-
var https__default = /* @__PURE__ */ _interopDefaultLegacy(https);
|
|
12593
|
-
var http2__default = /* @__PURE__ */ _interopDefaultLegacy(http2);
|
|
12594
|
-
var util__default = /* @__PURE__ */ _interopDefaultLegacy(util2);
|
|
12595
|
-
var followRedirects__default = /* @__PURE__ */ _interopDefaultLegacy(followRedirects);
|
|
12596
|
-
var zlib__default = /* @__PURE__ */ _interopDefaultLegacy(zlib);
|
|
12597
|
-
var stream__default = /* @__PURE__ */ _interopDefaultLegacy(stream);
|
|
12598
12513
|
function bind(fn, thisArg) {
|
|
12599
12514
|
return function wrap() {
|
|
12600
12515
|
return fn.apply(thisArg, arguments);
|
|
12601
12516
|
};
|
|
12602
12517
|
}
|
|
12603
|
-
var {
|
|
12604
|
-
|
|
12605
|
-
|
|
12518
|
+
var {
|
|
12519
|
+
toString
|
|
12520
|
+
} = Object.prototype;
|
|
12521
|
+
var {
|
|
12522
|
+
getPrototypeOf
|
|
12523
|
+
} = Object;
|
|
12524
|
+
var {
|
|
12525
|
+
iterator,
|
|
12526
|
+
toStringTag
|
|
12527
|
+
} = Symbol;
|
|
12606
12528
|
var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
|
|
12607
12529
|
const str = toString.call(thing);
|
|
12608
12530
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -12612,7 +12534,9 @@ var require_axios = __commonJS({
|
|
|
12612
12534
|
return (thing) => kindOf(thing) === type;
|
|
12613
12535
|
};
|
|
12614
12536
|
var typeOfTest = (type) => (thing) => typeof thing === type;
|
|
12615
|
-
var {
|
|
12537
|
+
var {
|
|
12538
|
+
isArray
|
|
12539
|
+
} = Array;
|
|
12616
12540
|
var isUndefined = typeOfTest("undefined");
|
|
12617
12541
|
function isBuffer(val) {
|
|
12618
12542
|
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
@@ -12673,16 +12597,13 @@ var require_axios = __commonJS({
|
|
|
12673
12597
|
kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
|
|
12674
12598
|
};
|
|
12675
12599
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
12676
|
-
var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
12677
|
-
"ReadableStream",
|
|
12678
|
-
"Request",
|
|
12679
|
-
"Response",
|
|
12680
|
-
"Headers"
|
|
12681
|
-
].map(kindOfTest);
|
|
12600
|
+
var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
12682
12601
|
var trim = (str) => {
|
|
12683
12602
|
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
12684
12603
|
};
|
|
12685
|
-
function forEach(obj, fn, {
|
|
12604
|
+
function forEach(obj, fn, {
|
|
12605
|
+
allOwnKeys = false
|
|
12606
|
+
} = {}) {
|
|
12686
12607
|
if (obj === null || typeof obj === "undefined") {
|
|
12687
12608
|
return;
|
|
12688
12609
|
}
|
|
@@ -12730,7 +12651,10 @@ var require_axios = __commonJS({
|
|
|
12730
12651
|
})();
|
|
12731
12652
|
var isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
12732
12653
|
function merge() {
|
|
12733
|
-
const {
|
|
12654
|
+
const {
|
|
12655
|
+
caseless,
|
|
12656
|
+
skipUndefined
|
|
12657
|
+
} = isContextDefined(this) && this || {};
|
|
12734
12658
|
const result = {};
|
|
12735
12659
|
const assignValue = (val, key) => {
|
|
12736
12660
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
@@ -12752,28 +12676,28 @@ var require_axios = __commonJS({
|
|
|
12752
12676
|
}
|
|
12753
12677
|
return result;
|
|
12754
12678
|
}
|
|
12755
|
-
var extend = (a, b, thisArg, {
|
|
12756
|
-
|
|
12757
|
-
|
|
12758
|
-
|
|
12759
|
-
|
|
12760
|
-
|
|
12761
|
-
|
|
12762
|
-
|
|
12763
|
-
|
|
12764
|
-
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
|
|
12770
|
-
|
|
12771
|
-
|
|
12772
|
-
|
|
12773
|
-
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
);
|
|
12679
|
+
var extend = (a, b, thisArg, {
|
|
12680
|
+
allOwnKeys
|
|
12681
|
+
} = {}) => {
|
|
12682
|
+
forEach(b, (val, key) => {
|
|
12683
|
+
if (thisArg && isFunction$1(val)) {
|
|
12684
|
+
Object.defineProperty(a, key, {
|
|
12685
|
+
value: bind(val, thisArg),
|
|
12686
|
+
writable: true,
|
|
12687
|
+
enumerable: true,
|
|
12688
|
+
configurable: true
|
|
12689
|
+
});
|
|
12690
|
+
} else {
|
|
12691
|
+
Object.defineProperty(a, key, {
|
|
12692
|
+
value: val,
|
|
12693
|
+
writable: true,
|
|
12694
|
+
enumerable: true,
|
|
12695
|
+
configurable: true
|
|
12696
|
+
});
|
|
12697
|
+
}
|
|
12698
|
+
}, {
|
|
12699
|
+
allOwnKeys
|
|
12700
|
+
});
|
|
12777
12701
|
return a;
|
|
12778
12702
|
};
|
|
12779
12703
|
var stripBOM = (content) => {
|
|
@@ -12864,7 +12788,9 @@ var require_axios = __commonJS({
|
|
|
12864
12788
|
return p1.toUpperCase() + p2;
|
|
12865
12789
|
});
|
|
12866
12790
|
};
|
|
12867
|
-
var hasOwnProperty = (({
|
|
12791
|
+
var hasOwnProperty = (({
|
|
12792
|
+
hasOwnProperty: hasOwnProperty2
|
|
12793
|
+
}) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
12868
12794
|
var isRegExp = kindOfTest("RegExp");
|
|
12869
12795
|
var reduceDescriptors = (obj, reducer) => {
|
|
12870
12796
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -12946,15 +12872,14 @@ var require_axios = __commonJS({
|
|
|
12946
12872
|
return setImmediate;
|
|
12947
12873
|
}
|
|
12948
12874
|
return postMessageSupported ? ((token, callbacks) => {
|
|
12949
|
-
_global.addEventListener(
|
|
12950
|
-
|
|
12951
|
-
|
|
12952
|
-
|
|
12953
|
-
|
|
12954
|
-
|
|
12955
|
-
}
|
|
12956
|
-
|
|
12957
|
-
);
|
|
12875
|
+
_global.addEventListener("message", ({
|
|
12876
|
+
source,
|
|
12877
|
+
data
|
|
12878
|
+
}) => {
|
|
12879
|
+
if (source === _global && data === token) {
|
|
12880
|
+
callbacks.length && callbacks.shift()();
|
|
12881
|
+
}
|
|
12882
|
+
}, false);
|
|
12958
12883
|
return (cb) => {
|
|
12959
12884
|
callbacks.push(cb);
|
|
12960
12885
|
_global.postMessage(token, "*");
|
|
@@ -13097,7 +13022,6 @@ var require_axios = __commonJS({
|
|
|
13097
13022
|
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
13098
13023
|
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
13099
13024
|
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
13100
|
-
var AxiosError$1 = AxiosError;
|
|
13101
13025
|
function isVisitable(thing) {
|
|
13102
13026
|
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
13103
13027
|
}
|
|
@@ -13121,19 +13045,14 @@ var require_axios = __commonJS({
|
|
|
13121
13045
|
if (!utils$1.isObject(obj)) {
|
|
13122
13046
|
throw new TypeError("target must be an object");
|
|
13123
13047
|
}
|
|
13124
|
-
formData = formData || new (
|
|
13125
|
-
options = utils$1.toFlatObject(
|
|
13126
|
-
|
|
13127
|
-
|
|
13128
|
-
|
|
13129
|
-
|
|
13130
|
-
|
|
13131
|
-
|
|
13132
|
-
false,
|
|
13133
|
-
function defined(option, source) {
|
|
13134
|
-
return !utils$1.isUndefined(source[option]);
|
|
13135
|
-
}
|
|
13136
|
-
);
|
|
13048
|
+
formData = formData || new (FormData$1 || FormData)();
|
|
13049
|
+
options = utils$1.toFlatObject(options, {
|
|
13050
|
+
metaTokens: true,
|
|
13051
|
+
dots: false,
|
|
13052
|
+
indexes: false
|
|
13053
|
+
}, false, function defined(option, source) {
|
|
13054
|
+
return !utils$1.isUndefined(source[option]);
|
|
13055
|
+
});
|
|
13137
13056
|
const metaTokens = options.metaTokens;
|
|
13138
13057
|
const visitor = options.visitor || defaultVisitor;
|
|
13139
13058
|
const dots = options.dots;
|
|
@@ -13152,7 +13071,7 @@ var require_axios = __commonJS({
|
|
|
13152
13071
|
return value.toString();
|
|
13153
13072
|
}
|
|
13154
13073
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
13155
|
-
throw new AxiosError
|
|
13074
|
+
throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
13156
13075
|
}
|
|
13157
13076
|
if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
|
|
13158
13077
|
return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
@@ -13332,14 +13251,13 @@ var require_axios = __commonJS({
|
|
|
13332
13251
|
});
|
|
13333
13252
|
}
|
|
13334
13253
|
};
|
|
13335
|
-
var InterceptorManager$1 = InterceptorManager;
|
|
13336
13254
|
var transitionalDefaults = {
|
|
13337
13255
|
silentJSONParsing: true,
|
|
13338
13256
|
forcedJSONParsing: true,
|
|
13339
13257
|
clarifyTimeoutError: false,
|
|
13340
13258
|
legacyInterceptorReqResOrdering: true
|
|
13341
13259
|
};
|
|
13342
|
-
var URLSearchParams =
|
|
13260
|
+
var URLSearchParams = url.URLSearchParams;
|
|
13343
13261
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
13344
13262
|
var DIGIT = "0123456789";
|
|
13345
13263
|
var ALPHABET = {
|
|
@@ -13349,9 +13267,11 @@ var require_axios = __commonJS({
|
|
|
13349
13267
|
};
|
|
13350
13268
|
var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
13351
13269
|
let str = "";
|
|
13352
|
-
const {
|
|
13270
|
+
const {
|
|
13271
|
+
length
|
|
13272
|
+
} = alphabet;
|
|
13353
13273
|
const randomValues = new Uint32Array(size);
|
|
13354
|
-
|
|
13274
|
+
crypto.randomFillSync(randomValues);
|
|
13355
13275
|
for (let i = 0; i < size; i++) {
|
|
13356
13276
|
str += alphabet[randomValues[i] % length];
|
|
13357
13277
|
}
|
|
@@ -13361,7 +13281,7 @@ var require_axios = __commonJS({
|
|
|
13361
13281
|
isNode: true,
|
|
13362
13282
|
classes: {
|
|
13363
13283
|
URLSearchParams,
|
|
13364
|
-
FormData:
|
|
13284
|
+
FormData: FormData$1,
|
|
13365
13285
|
Blob: typeof Blob !== "undefined" && Blob || null
|
|
13366
13286
|
},
|
|
13367
13287
|
ALPHABET,
|
|
@@ -13379,8 +13299,8 @@ var require_axios = __commonJS({
|
|
|
13379
13299
|
var utils = /* @__PURE__ */ Object.freeze({
|
|
13380
13300
|
__proto__: null,
|
|
13381
13301
|
hasBrowserEnv,
|
|
13382
|
-
hasStandardBrowserWebWorkerEnv,
|
|
13383
13302
|
hasStandardBrowserEnv,
|
|
13303
|
+
hasStandardBrowserWebWorkerEnv,
|
|
13384
13304
|
navigator: _navigator,
|
|
13385
13305
|
origin
|
|
13386
13306
|
});
|
|
@@ -13466,74 +13386,68 @@ var require_axios = __commonJS({
|
|
|
13466
13386
|
var defaults = {
|
|
13467
13387
|
transitional: transitionalDefaults,
|
|
13468
13388
|
adapter: ["xhr", "http", "fetch"],
|
|
13469
|
-
transformRequest: [
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13484
|
-
|
|
13485
|
-
|
|
13486
|
-
|
|
13487
|
-
|
|
13488
|
-
|
|
13489
|
-
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
if (
|
|
13493
|
-
|
|
13494
|
-
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
13495
|
-
}
|
|
13496
|
-
if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
13497
|
-
const _FormData = this.env && this.env.FormData;
|
|
13498
|
-
return toFormData(
|
|
13499
|
-
isFileList2 ? { "files[]": data } : data,
|
|
13500
|
-
_FormData && new _FormData(),
|
|
13501
|
-
this.formSerializer
|
|
13502
|
-
);
|
|
13503
|
-
}
|
|
13389
|
+
transformRequest: [function transformRequest(data, headers) {
|
|
13390
|
+
const contentType = headers.getContentType() || "";
|
|
13391
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
13392
|
+
const isObjectPayload = utils$1.isObject(data);
|
|
13393
|
+
if (isObjectPayload && utils$1.isHTMLForm(data)) {
|
|
13394
|
+
data = new FormData(data);
|
|
13395
|
+
}
|
|
13396
|
+
const isFormData2 = utils$1.isFormData(data);
|
|
13397
|
+
if (isFormData2) {
|
|
13398
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
13399
|
+
}
|
|
13400
|
+
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
|
|
13401
|
+
return data;
|
|
13402
|
+
}
|
|
13403
|
+
if (utils$1.isArrayBufferView(data)) {
|
|
13404
|
+
return data.buffer;
|
|
13405
|
+
}
|
|
13406
|
+
if (utils$1.isURLSearchParams(data)) {
|
|
13407
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
13408
|
+
return data.toString();
|
|
13409
|
+
}
|
|
13410
|
+
let isFileList2;
|
|
13411
|
+
if (isObjectPayload) {
|
|
13412
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
13413
|
+
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
13504
13414
|
}
|
|
13505
|
-
if (
|
|
13506
|
-
|
|
13507
|
-
return
|
|
13415
|
+
if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
13416
|
+
const _FormData = this.env && this.env.FormData;
|
|
13417
|
+
return toFormData(isFileList2 ? {
|
|
13418
|
+
"files[]": data
|
|
13419
|
+
} : data, _FormData && new _FormData(), this.formSerializer);
|
|
13508
13420
|
}
|
|
13421
|
+
}
|
|
13422
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
13423
|
+
headers.setContentType("application/json", false);
|
|
13424
|
+
return stringifySafely(data);
|
|
13425
|
+
}
|
|
13426
|
+
return data;
|
|
13427
|
+
}],
|
|
13428
|
+
transformResponse: [function transformResponse(data) {
|
|
13429
|
+
const transitional = this.transitional || defaults.transitional;
|
|
13430
|
+
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
13431
|
+
const JSONRequested = this.responseType === "json";
|
|
13432
|
+
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
13509
13433
|
return data;
|
|
13510
13434
|
}
|
|
13511
|
-
|
|
13512
|
-
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
|
|
13516
|
-
|
|
13517
|
-
|
|
13518
|
-
|
|
13519
|
-
|
|
13520
|
-
if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
13521
|
-
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
13522
|
-
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
13523
|
-
try {
|
|
13524
|
-
return JSON.parse(data, this.parseReviver);
|
|
13525
|
-
} catch (e) {
|
|
13526
|
-
if (strictJSONParsing) {
|
|
13527
|
-
if (e.name === "SyntaxError") {
|
|
13528
|
-
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
13529
|
-
}
|
|
13530
|
-
throw e;
|
|
13435
|
+
if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
13436
|
+
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
13437
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
13438
|
+
try {
|
|
13439
|
+
return JSON.parse(data, this.parseReviver);
|
|
13440
|
+
} catch (e) {
|
|
13441
|
+
if (strictJSONParsing) {
|
|
13442
|
+
if (e.name === "SyntaxError") {
|
|
13443
|
+
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
13531
13444
|
}
|
|
13445
|
+
throw e;
|
|
13532
13446
|
}
|
|
13533
13447
|
}
|
|
13534
|
-
return data;
|
|
13535
13448
|
}
|
|
13536
|
-
|
|
13449
|
+
return data;
|
|
13450
|
+
}],
|
|
13537
13451
|
/**
|
|
13538
13452
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
13539
13453
|
* timeout is not created.
|
|
@@ -13560,26 +13474,7 @@ var require_axios = __commonJS({
|
|
|
13560
13474
|
utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
13561
13475
|
defaults.headers[method] = {};
|
|
13562
13476
|
});
|
|
13563
|
-
var
|
|
13564
|
-
var ignoreDuplicateOf = utils$1.toObjectSet([
|
|
13565
|
-
"age",
|
|
13566
|
-
"authorization",
|
|
13567
|
-
"content-length",
|
|
13568
|
-
"content-type",
|
|
13569
|
-
"etag",
|
|
13570
|
-
"expires",
|
|
13571
|
-
"from",
|
|
13572
|
-
"host",
|
|
13573
|
-
"if-modified-since",
|
|
13574
|
-
"if-unmodified-since",
|
|
13575
|
-
"last-modified",
|
|
13576
|
-
"location",
|
|
13577
|
-
"max-forwards",
|
|
13578
|
-
"proxy-authorization",
|
|
13579
|
-
"referer",
|
|
13580
|
-
"retry-after",
|
|
13581
|
-
"user-agent"
|
|
13582
|
-
]);
|
|
13477
|
+
var ignoreDuplicateOf = utils$1.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]);
|
|
13583
13478
|
var parseHeaders = (rawHeaders) => {
|
|
13584
13479
|
const parsed = {};
|
|
13585
13480
|
let key;
|
|
@@ -13612,7 +13507,7 @@ var require_axios = __commonJS({
|
|
|
13612
13507
|
if (value === false || value == null) {
|
|
13613
13508
|
return value;
|
|
13614
13509
|
}
|
|
13615
|
-
return utils$1.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
13510
|
+
return utils$1.isArray(value) ? value.map(normalizeValue) : String(value).replace(/[\r\n]+$/, "");
|
|
13616
13511
|
}
|
|
13617
13512
|
function parseTokens(str) {
|
|
13618
13513
|
const tokens = /* @__PURE__ */ Object.create(null);
|
|
@@ -13819,15 +13714,10 @@ var require_axios = __commonJS({
|
|
|
13819
13714
|
return this;
|
|
13820
13715
|
}
|
|
13821
13716
|
};
|
|
13822
|
-
AxiosHeaders.accessor([
|
|
13823
|
-
|
|
13824
|
-
|
|
13825
|
-
|
|
13826
|
-
"Accept-Encoding",
|
|
13827
|
-
"User-Agent",
|
|
13828
|
-
"Authorization"
|
|
13829
|
-
]);
|
|
13830
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
13717
|
+
AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
13718
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({
|
|
13719
|
+
value
|
|
13720
|
+
}, key) => {
|
|
13831
13721
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
13832
13722
|
return {
|
|
13833
13723
|
get: () => value,
|
|
@@ -13837,11 +13727,10 @@ var require_axios = __commonJS({
|
|
|
13837
13727
|
};
|
|
13838
13728
|
});
|
|
13839
13729
|
utils$1.freezeMethods(AxiosHeaders);
|
|
13840
|
-
var AxiosHeaders$1 = AxiosHeaders;
|
|
13841
13730
|
function transformData(fns, response) {
|
|
13842
|
-
const config = this || defaults
|
|
13731
|
+
const config = this || defaults;
|
|
13843
13732
|
const context = response || config;
|
|
13844
|
-
const headers = AxiosHeaders
|
|
13733
|
+
const headers = AxiosHeaders.from(context.headers);
|
|
13845
13734
|
let data = context.data;
|
|
13846
13735
|
utils$1.forEach(fns, function transform(fn) {
|
|
13847
13736
|
data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
|
|
@@ -13852,7 +13741,7 @@ var require_axios = __commonJS({
|
|
|
13852
13741
|
function isCancel(value) {
|
|
13853
13742
|
return !!(value && value.__CANCEL__);
|
|
13854
13743
|
}
|
|
13855
|
-
var CanceledError = class extends AxiosError
|
|
13744
|
+
var CanceledError = class extends AxiosError {
|
|
13856
13745
|
/**
|
|
13857
13746
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
13858
13747
|
*
|
|
@@ -13863,26 +13752,17 @@ var require_axios = __commonJS({
|
|
|
13863
13752
|
* @returns {CanceledError} The created error.
|
|
13864
13753
|
*/
|
|
13865
13754
|
constructor(message, config, request) {
|
|
13866
|
-
super(message == null ? "canceled" : message, AxiosError
|
|
13755
|
+
super(message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config, request);
|
|
13867
13756
|
this.name = "CanceledError";
|
|
13868
13757
|
this.__CANCEL__ = true;
|
|
13869
13758
|
}
|
|
13870
13759
|
};
|
|
13871
|
-
var CanceledError$1 = CanceledError;
|
|
13872
13760
|
function settle(resolve, reject, response) {
|
|
13873
13761
|
const validateStatus = response.config.validateStatus;
|
|
13874
13762
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
13875
13763
|
resolve(response);
|
|
13876
13764
|
} else {
|
|
13877
|
-
reject(
|
|
13878
|
-
new AxiosError$1(
|
|
13879
|
-
"Request failed with status code " + response.status,
|
|
13880
|
-
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
13881
|
-
response.config,
|
|
13882
|
-
response.request,
|
|
13883
|
-
response
|
|
13884
|
-
)
|
|
13885
|
-
);
|
|
13765
|
+
reject(new AxiosError("Request failed with status code " + response.status, [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response));
|
|
13886
13766
|
}
|
|
13887
13767
|
}
|
|
13888
13768
|
function isAbsoluteURL(url2) {
|
|
@@ -13901,7 +13781,72 @@ var require_axios = __commonJS({
|
|
|
13901
13781
|
}
|
|
13902
13782
|
return requestedURL;
|
|
13903
13783
|
}
|
|
13904
|
-
var
|
|
13784
|
+
var DEFAULT_PORTS = {
|
|
13785
|
+
ftp: 21,
|
|
13786
|
+
gopher: 70,
|
|
13787
|
+
http: 80,
|
|
13788
|
+
https: 443,
|
|
13789
|
+
ws: 80,
|
|
13790
|
+
wss: 443
|
|
13791
|
+
};
|
|
13792
|
+
function parseUrl(urlString) {
|
|
13793
|
+
try {
|
|
13794
|
+
return new URL(urlString);
|
|
13795
|
+
} catch {
|
|
13796
|
+
return null;
|
|
13797
|
+
}
|
|
13798
|
+
}
|
|
13799
|
+
function getProxyForUrl(url2) {
|
|
13800
|
+
var parsedUrl = (typeof url2 === "string" ? parseUrl(url2) : url2) || {};
|
|
13801
|
+
var proto = parsedUrl.protocol;
|
|
13802
|
+
var hostname = parsedUrl.host;
|
|
13803
|
+
var port = parsedUrl.port;
|
|
13804
|
+
if (typeof hostname !== "string" || !hostname || typeof proto !== "string") {
|
|
13805
|
+
return "";
|
|
13806
|
+
}
|
|
13807
|
+
proto = proto.split(":", 1)[0];
|
|
13808
|
+
hostname = hostname.replace(/:\d*$/, "");
|
|
13809
|
+
port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
|
|
13810
|
+
if (!shouldProxy(hostname, port)) {
|
|
13811
|
+
return "";
|
|
13812
|
+
}
|
|
13813
|
+
var proxy = getEnv(proto + "_proxy") || getEnv("all_proxy");
|
|
13814
|
+
if (proxy && proxy.indexOf("://") === -1) {
|
|
13815
|
+
proxy = proto + "://" + proxy;
|
|
13816
|
+
}
|
|
13817
|
+
return proxy;
|
|
13818
|
+
}
|
|
13819
|
+
function shouldProxy(hostname, port) {
|
|
13820
|
+
var NO_PROXY = getEnv("no_proxy").toLowerCase();
|
|
13821
|
+
if (!NO_PROXY) {
|
|
13822
|
+
return true;
|
|
13823
|
+
}
|
|
13824
|
+
if (NO_PROXY === "*") {
|
|
13825
|
+
return false;
|
|
13826
|
+
}
|
|
13827
|
+
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
13828
|
+
if (!proxy) {
|
|
13829
|
+
return true;
|
|
13830
|
+
}
|
|
13831
|
+
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
13832
|
+
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
13833
|
+
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
13834
|
+
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
13835
|
+
return true;
|
|
13836
|
+
}
|
|
13837
|
+
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
13838
|
+
return hostname !== parsedProxyHostname;
|
|
13839
|
+
}
|
|
13840
|
+
if (parsedProxyHostname.charAt(0) === "*") {
|
|
13841
|
+
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
13842
|
+
}
|
|
13843
|
+
return !hostname.endsWith(parsedProxyHostname);
|
|
13844
|
+
});
|
|
13845
|
+
}
|
|
13846
|
+
function getEnv(key) {
|
|
13847
|
+
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
13848
|
+
}
|
|
13849
|
+
var VERSION = "1.14.0";
|
|
13905
13850
|
function parseProtocol(url2) {
|
|
13906
13851
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
13907
13852
|
return match && match[1] || "";
|
|
@@ -13917,7 +13862,7 @@ var require_axios = __commonJS({
|
|
|
13917
13862
|
uri = protocol.length ? uri.slice(protocol.length + 1) : uri;
|
|
13918
13863
|
const match = DATA_URL_PATTERN.exec(uri);
|
|
13919
13864
|
if (!match) {
|
|
13920
|
-
throw new AxiosError
|
|
13865
|
+
throw new AxiosError("Invalid URL", AxiosError.ERR_INVALID_URL);
|
|
13921
13866
|
}
|
|
13922
13867
|
const mime = match[1];
|
|
13923
13868
|
const isBase64 = match[2];
|
|
@@ -13925,32 +13870,29 @@ var require_axios = __commonJS({
|
|
|
13925
13870
|
const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");
|
|
13926
13871
|
if (asBlob) {
|
|
13927
13872
|
if (!_Blob) {
|
|
13928
|
-
throw new AxiosError
|
|
13873
|
+
throw new AxiosError("Blob is not supported", AxiosError.ERR_NOT_SUPPORT);
|
|
13929
13874
|
}
|
|
13930
|
-
return new _Blob([buffer], {
|
|
13875
|
+
return new _Blob([buffer], {
|
|
13876
|
+
type: mime
|
|
13877
|
+
});
|
|
13931
13878
|
}
|
|
13932
13879
|
return buffer;
|
|
13933
13880
|
}
|
|
13934
|
-
throw new AxiosError
|
|
13881
|
+
throw new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_NOT_SUPPORT);
|
|
13935
13882
|
}
|
|
13936
13883
|
var kInternals = /* @__PURE__ */ Symbol("internals");
|
|
13937
|
-
var AxiosTransformStream = class extends
|
|
13884
|
+
var AxiosTransformStream = class extends stream.Transform {
|
|
13938
13885
|
constructor(options) {
|
|
13939
|
-
options = utils$1.toFlatObject(
|
|
13940
|
-
|
|
13941
|
-
|
|
13942
|
-
|
|
13943
|
-
|
|
13944
|
-
|
|
13945
|
-
|
|
13946
|
-
|
|
13947
|
-
|
|
13948
|
-
|
|
13949
|
-
null,
|
|
13950
|
-
(prop, source) => {
|
|
13951
|
-
return !utils$1.isUndefined(source[prop]);
|
|
13952
|
-
}
|
|
13953
|
-
);
|
|
13886
|
+
options = utils$1.toFlatObject(options, {
|
|
13887
|
+
maxRate: 0,
|
|
13888
|
+
chunkSize: 64 * 1024,
|
|
13889
|
+
minChunkSize: 100,
|
|
13890
|
+
timeWindow: 500,
|
|
13891
|
+
ticksRate: 2,
|
|
13892
|
+
samplesCount: 15
|
|
13893
|
+
}, null, (prop, source) => {
|
|
13894
|
+
return !utils$1.isUndefined(source[prop]);
|
|
13895
|
+
});
|
|
13954
13896
|
super({
|
|
13955
13897
|
readableHighWaterMark: options.chunkSize
|
|
13956
13898
|
});
|
|
@@ -14033,12 +13975,9 @@ var require_axios = __commonJS({
|
|
|
14033
13975
|
chunkRemainder = _chunk.subarray(maxChunkSize);
|
|
14034
13976
|
_chunk = _chunk.subarray(0, maxChunkSize);
|
|
14035
13977
|
}
|
|
14036
|
-
pushChunk(
|
|
14037
|
-
|
|
14038
|
-
|
|
14039
|
-
process.nextTick(_callback, null, chunkRemainder);
|
|
14040
|
-
} : _callback
|
|
14041
|
-
);
|
|
13978
|
+
pushChunk(_chunk, chunkRemainder ? () => {
|
|
13979
|
+
process.nextTick(_callback, null, chunkRemainder);
|
|
13980
|
+
} : _callback);
|
|
14042
13981
|
};
|
|
14043
13982
|
transformChunk(chunk, function transformNextChunk(err, _chunk) {
|
|
14044
13983
|
if (err) {
|
|
@@ -14052,8 +13991,9 @@ var require_axios = __commonJS({
|
|
|
14052
13991
|
});
|
|
14053
13992
|
}
|
|
14054
13993
|
};
|
|
14055
|
-
var
|
|
14056
|
-
|
|
13994
|
+
var {
|
|
13995
|
+
asyncIterator
|
|
13996
|
+
} = Symbol;
|
|
14057
13997
|
var readBlob = async function* (blob) {
|
|
14058
13998
|
if (blob.stream) {
|
|
14059
13999
|
yield* blob.stream();
|
|
@@ -14065,15 +14005,16 @@ var require_axios = __commonJS({
|
|
|
14065
14005
|
yield blob;
|
|
14066
14006
|
}
|
|
14067
14007
|
};
|
|
14068
|
-
var readBlob$1 = readBlob;
|
|
14069
14008
|
var BOUNDARY_ALPHABET = platform.ALPHABET.ALPHA_DIGIT + "-_";
|
|
14070
|
-
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new
|
|
14009
|
+
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util2.TextEncoder();
|
|
14071
14010
|
var CRLF = "\r\n";
|
|
14072
14011
|
var CRLF_BYTES = textEncoder.encode(CRLF);
|
|
14073
14012
|
var CRLF_BYTES_COUNT = 2;
|
|
14074
14013
|
var FormDataPart = class {
|
|
14075
14014
|
constructor(name, value) {
|
|
14076
|
-
const {
|
|
14015
|
+
const {
|
|
14016
|
+
escapeName
|
|
14017
|
+
} = this.constructor;
|
|
14077
14018
|
const isStringValue = utils$1.isString(value);
|
|
14078
14019
|
let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${!isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : ""}${CRLF}`;
|
|
14079
14020
|
if (isStringValue) {
|
|
@@ -14089,23 +14030,22 @@ var require_axios = __commonJS({
|
|
|
14089
14030
|
}
|
|
14090
14031
|
async *encode() {
|
|
14091
14032
|
yield this.headers;
|
|
14092
|
-
const {
|
|
14033
|
+
const {
|
|
14034
|
+
value
|
|
14035
|
+
} = this;
|
|
14093
14036
|
if (utils$1.isTypedArray(value)) {
|
|
14094
14037
|
yield value;
|
|
14095
14038
|
} else {
|
|
14096
|
-
yield* readBlob
|
|
14039
|
+
yield* readBlob(value);
|
|
14097
14040
|
}
|
|
14098
14041
|
yield CRLF_BYTES;
|
|
14099
14042
|
}
|
|
14100
14043
|
static escapeName(name) {
|
|
14101
|
-
return String(name).replace(
|
|
14102
|
-
|
|
14103
|
-
|
|
14104
|
-
|
|
14105
|
-
|
|
14106
|
-
'"': "%22"
|
|
14107
|
-
})[match]
|
|
14108
|
-
);
|
|
14044
|
+
return String(name).replace(/[\r\n"]/g, (match) => ({
|
|
14045
|
+
"\r": "%0D",
|
|
14046
|
+
"\n": "%0A",
|
|
14047
|
+
'"': "%22"
|
|
14048
|
+
})[match]);
|
|
14109
14049
|
}
|
|
14110
14050
|
};
|
|
14111
14051
|
var formDataToStream = (form, headersHandler, options) => {
|
|
@@ -14137,18 +14077,15 @@ var require_axios = __commonJS({
|
|
|
14137
14077
|
computedHeaders["Content-Length"] = contentLength;
|
|
14138
14078
|
}
|
|
14139
14079
|
headersHandler && headersHandler(computedHeaders);
|
|
14140
|
-
return stream.Readable.from(
|
|
14141
|
-
(
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
})()
|
|
14148
|
-
);
|
|
14080
|
+
return stream.Readable.from((async function* () {
|
|
14081
|
+
for (const part of parts) {
|
|
14082
|
+
yield boundaryBytes;
|
|
14083
|
+
yield* part.encode();
|
|
14084
|
+
}
|
|
14085
|
+
yield footerBytes;
|
|
14086
|
+
})());
|
|
14149
14087
|
};
|
|
14150
|
-
var
|
|
14151
|
-
var ZlibHeaderTransformStream = class extends stream__default["default"].Transform {
|
|
14088
|
+
var ZlibHeaderTransformStream = class extends stream.Transform {
|
|
14152
14089
|
__transform(chunk, encoding, callback) {
|
|
14153
14090
|
this.push(chunk);
|
|
14154
14091
|
callback();
|
|
@@ -14166,7 +14103,6 @@ var require_axios = __commonJS({
|
|
|
14166
14103
|
this.__transform(chunk, encoding, callback);
|
|
14167
14104
|
}
|
|
14168
14105
|
};
|
|
14169
|
-
var ZlibHeaderTransformStream$1 = ZlibHeaderTransformStream;
|
|
14170
14106
|
var callbackify = (fn, reducer) => {
|
|
14171
14107
|
return utils$1.isAsyncFn(fn) ? function(...args) {
|
|
14172
14108
|
const cb = args.pop();
|
|
@@ -14179,7 +14115,6 @@ var require_axios = __commonJS({
|
|
|
14179
14115
|
}, cb);
|
|
14180
14116
|
} : fn;
|
|
14181
14117
|
};
|
|
14182
|
-
var callbackify$1 = callbackify;
|
|
14183
14118
|
function speedometer(samplesCount, min) {
|
|
14184
14119
|
samplesCount = samplesCount || 10;
|
|
14185
14120
|
const bytes = new Array(samplesCount);
|
|
@@ -14271,14 +14206,11 @@ var require_axios = __commonJS({
|
|
|
14271
14206
|
};
|
|
14272
14207
|
var progressEventDecorator = (total, throttled) => {
|
|
14273
14208
|
const lengthComputable = total != null;
|
|
14274
|
-
return [
|
|
14275
|
-
|
|
14276
|
-
|
|
14277
|
-
|
|
14278
|
-
|
|
14279
|
-
}),
|
|
14280
|
-
throttled[1]
|
|
14281
|
-
];
|
|
14209
|
+
return [(loaded) => throttled[0]({
|
|
14210
|
+
lengthComputable,
|
|
14211
|
+
total,
|
|
14212
|
+
loaded
|
|
14213
|
+
}), throttled[1]];
|
|
14282
14214
|
};
|
|
14283
14215
|
var asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
|
|
14284
14216
|
function estimateDataURLDecodedBytes(url2) {
|
|
@@ -14331,15 +14263,18 @@ var require_axios = __commonJS({
|
|
|
14331
14263
|
return Buffer.byteLength(body, "utf8");
|
|
14332
14264
|
}
|
|
14333
14265
|
var zlibOptions = {
|
|
14334
|
-
flush:
|
|
14335
|
-
finishFlush:
|
|
14266
|
+
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
14267
|
+
finishFlush: zlib.constants.Z_SYNC_FLUSH
|
|
14336
14268
|
};
|
|
14337
14269
|
var brotliOptions = {
|
|
14338
|
-
flush:
|
|
14339
|
-
finishFlush:
|
|
14340
|
-
};
|
|
14341
|
-
var isBrotliSupported = utils$1.isFunction(
|
|
14342
|
-
var {
|
|
14270
|
+
flush: zlib.constants.BROTLI_OPERATION_FLUSH,
|
|
14271
|
+
finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
|
|
14272
|
+
};
|
|
14273
|
+
var isBrotliSupported = utils$1.isFunction(zlib.createBrotliDecompress);
|
|
14274
|
+
var {
|
|
14275
|
+
http: httpFollow,
|
|
14276
|
+
https: httpsFollow
|
|
14277
|
+
} = followRedirects;
|
|
14343
14278
|
var isHttps = /https:?/;
|
|
14344
14279
|
var supportedProtocols = platform.protocols.map((protocol) => {
|
|
14345
14280
|
return protocol + ":";
|
|
@@ -14353,23 +14288,20 @@ var require_axios = __commonJS({
|
|
|
14353
14288
|
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
14354
14289
|
}
|
|
14355
14290
|
getSession(authority, options) {
|
|
14356
|
-
options = Object.assign(
|
|
14357
|
-
|
|
14358
|
-
|
|
14359
|
-
},
|
|
14360
|
-
options
|
|
14361
|
-
);
|
|
14291
|
+
options = Object.assign({
|
|
14292
|
+
sessionTimeout: 1e3
|
|
14293
|
+
}, options);
|
|
14362
14294
|
let authoritySessions = this.sessions[authority];
|
|
14363
14295
|
if (authoritySessions) {
|
|
14364
14296
|
let len = authoritySessions.length;
|
|
14365
14297
|
for (let i = 0; i < len; i++) {
|
|
14366
14298
|
const [sessionHandle, sessionOptions] = authoritySessions[i];
|
|
14367
|
-
if (!sessionHandle.destroyed && !sessionHandle.closed &&
|
|
14299
|
+
if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
|
|
14368
14300
|
return sessionHandle;
|
|
14369
14301
|
}
|
|
14370
14302
|
}
|
|
14371
14303
|
}
|
|
14372
|
-
const session =
|
|
14304
|
+
const session = http2.connect(authority, options);
|
|
14373
14305
|
let removed;
|
|
14374
14306
|
const removeSession = () => {
|
|
14375
14307
|
if (removed) {
|
|
@@ -14384,12 +14316,17 @@ var require_axios = __commonJS({
|
|
|
14384
14316
|
} else {
|
|
14385
14317
|
entries.splice(i, 1);
|
|
14386
14318
|
}
|
|
14319
|
+
if (!session.closed) {
|
|
14320
|
+
session.close();
|
|
14321
|
+
}
|
|
14387
14322
|
return;
|
|
14388
14323
|
}
|
|
14389
14324
|
}
|
|
14390
14325
|
};
|
|
14391
14326
|
const originalRequestFn = session.request;
|
|
14392
|
-
const {
|
|
14327
|
+
const {
|
|
14328
|
+
sessionTimeout
|
|
14329
|
+
} = options;
|
|
14393
14330
|
if (sessionTimeout != null) {
|
|
14394
14331
|
let timer;
|
|
14395
14332
|
let streamsCount = 0;
|
|
@@ -14429,7 +14366,7 @@ var require_axios = __commonJS({
|
|
|
14429
14366
|
function setProxy(options, configProxy, location) {
|
|
14430
14367
|
let proxy = configProxy;
|
|
14431
14368
|
if (!proxy && proxy !== false) {
|
|
14432
|
-
const proxyUrl =
|
|
14369
|
+
const proxyUrl = getProxyForUrl(location);
|
|
14433
14370
|
if (proxyUrl) {
|
|
14434
14371
|
proxy = new URL(proxyUrl);
|
|
14435
14372
|
}
|
|
@@ -14443,7 +14380,9 @@ var require_axios = __commonJS({
|
|
|
14443
14380
|
if (validProxyAuth) {
|
|
14444
14381
|
proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
|
|
14445
14382
|
} else if (typeof proxy.auth === "object") {
|
|
14446
|
-
throw new AxiosError
|
|
14383
|
+
throw new AxiosError("Invalid proxy authorization", AxiosError.ERR_BAD_OPTION, {
|
|
14384
|
+
proxy
|
|
14385
|
+
});
|
|
14447
14386
|
}
|
|
14448
14387
|
const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
|
|
14449
14388
|
options.headers["Proxy-Authorization"] = "Basic " + base64;
|
|
@@ -14483,7 +14422,10 @@ var require_axios = __commonJS({
|
|
|
14483
14422
|
asyncExecutor(_resolve, _reject, (onDoneHandler) => onDone = onDoneHandler).catch(_reject);
|
|
14484
14423
|
});
|
|
14485
14424
|
};
|
|
14486
|
-
var resolveFamily = ({
|
|
14425
|
+
var resolveFamily = ({
|
|
14426
|
+
address,
|
|
14427
|
+
family
|
|
14428
|
+
}) => {
|
|
14487
14429
|
if (!utils$1.isString(address)) {
|
|
14488
14430
|
throw TypeError("address must be a string");
|
|
14489
14431
|
}
|
|
@@ -14492,13 +14434,24 @@ var require_axios = __commonJS({
|
|
|
14492
14434
|
family: family || (address.indexOf(".") < 0 ? 6 : 4)
|
|
14493
14435
|
};
|
|
14494
14436
|
};
|
|
14495
|
-
var buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(address) ? address : {
|
|
14437
|
+
var buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(address) ? address : {
|
|
14438
|
+
address,
|
|
14439
|
+
family
|
|
14440
|
+
});
|
|
14496
14441
|
var http2Transport = {
|
|
14497
14442
|
request(options, cb) {
|
|
14498
14443
|
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
14499
|
-
const {
|
|
14444
|
+
const {
|
|
14445
|
+
http2Options,
|
|
14446
|
+
headers
|
|
14447
|
+
} = options;
|
|
14500
14448
|
const session = http2Sessions.getSession(authority, http2Options);
|
|
14501
|
-
const {
|
|
14449
|
+
const {
|
|
14450
|
+
HTTP2_HEADER_SCHEME,
|
|
14451
|
+
HTTP2_HEADER_METHOD,
|
|
14452
|
+
HTTP2_HEADER_PATH,
|
|
14453
|
+
HTTP2_HEADER_STATUS
|
|
14454
|
+
} = http2.constants;
|
|
14502
14455
|
const http2Headers = {
|
|
14503
14456
|
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
14504
14457
|
[HTTP2_HEADER_METHOD]: options.method,
|
|
@@ -14522,8 +14475,17 @@ var require_axios = __commonJS({
|
|
|
14522
14475
|
};
|
|
14523
14476
|
var httpAdapter = isHttpAdapterSupported && function httpAdapter2(config) {
|
|
14524
14477
|
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
14525
|
-
let {
|
|
14526
|
-
|
|
14478
|
+
let {
|
|
14479
|
+
data,
|
|
14480
|
+
lookup,
|
|
14481
|
+
family,
|
|
14482
|
+
httpVersion = 1,
|
|
14483
|
+
http2Options
|
|
14484
|
+
} = config;
|
|
14485
|
+
const {
|
|
14486
|
+
responseType,
|
|
14487
|
+
responseEncoding
|
|
14488
|
+
} = config;
|
|
14527
14489
|
const method = config.method.toUpperCase();
|
|
14528
14490
|
let isDone;
|
|
14529
14491
|
let rejected = false;
|
|
@@ -14537,7 +14499,7 @@ var require_axios = __commonJS({
|
|
|
14537
14499
|
}
|
|
14538
14500
|
const isHttp2 = httpVersion === 2;
|
|
14539
14501
|
if (lookup) {
|
|
14540
|
-
const _lookup = callbackify
|
|
14502
|
+
const _lookup = callbackify(lookup, (value) => utils$1.isArray(value) ? value : [value]);
|
|
14541
14503
|
lookup = (hostname, opt, cb) => {
|
|
14542
14504
|
_lookup(hostname, opt, (err, arg0, arg1) => {
|
|
14543
14505
|
if (err) {
|
|
@@ -14551,10 +14513,7 @@ var require_axios = __commonJS({
|
|
|
14551
14513
|
const abortEmitter = new events.EventEmitter();
|
|
14552
14514
|
function abort(reason) {
|
|
14553
14515
|
try {
|
|
14554
|
-
abortEmitter.emit(
|
|
14555
|
-
"abort",
|
|
14556
|
-
!reason || reason.type ? new CanceledError$1(null, config, req) : reason
|
|
14557
|
-
);
|
|
14516
|
+
abortEmitter.emit("abort", !reason || reason.type ? new CanceledError(null, config, req) : reason);
|
|
14558
14517
|
} catch (err) {
|
|
14559
14518
|
console.warn("emit error", err);
|
|
14560
14519
|
}
|
|
@@ -14582,9 +14541,11 @@ var require_axios = __commonJS({
|
|
|
14582
14541
|
onFinished();
|
|
14583
14542
|
return;
|
|
14584
14543
|
}
|
|
14585
|
-
const {
|
|
14586
|
-
|
|
14587
|
-
|
|
14544
|
+
const {
|
|
14545
|
+
data: data2
|
|
14546
|
+
} = response;
|
|
14547
|
+
if (data2 instanceof stream.Readable || data2 instanceof stream.Duplex) {
|
|
14548
|
+
const offListeners = stream.finished(data2, () => {
|
|
14588
14549
|
offListeners();
|
|
14589
14550
|
onFinished();
|
|
14590
14551
|
});
|
|
@@ -14600,13 +14561,7 @@ var require_axios = __commonJS({
|
|
|
14600
14561
|
const dataUrl = String(config.url || fullPath || "");
|
|
14601
14562
|
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
14602
14563
|
if (estimated > config.maxContentLength) {
|
|
14603
|
-
return reject(
|
|
14604
|
-
new AxiosError$1(
|
|
14605
|
-
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
14606
|
-
AxiosError$1.ERR_BAD_RESPONSE,
|
|
14607
|
-
config
|
|
14608
|
-
)
|
|
14609
|
-
);
|
|
14564
|
+
return reject(new AxiosError("maxContentLength size of " + config.maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config));
|
|
14610
14565
|
}
|
|
14611
14566
|
}
|
|
14612
14567
|
let convertedData;
|
|
@@ -14623,7 +14578,7 @@ var require_axios = __commonJS({
|
|
|
14623
14578
|
Blob: config.env && config.env.Blob
|
|
14624
14579
|
});
|
|
14625
14580
|
} catch (err) {
|
|
14626
|
-
throw AxiosError
|
|
14581
|
+
throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config);
|
|
14627
14582
|
}
|
|
14628
14583
|
if (responseType === "text") {
|
|
14629
14584
|
convertedData = convertedData.toString(responseEncoding);
|
|
@@ -14631,44 +14586,41 @@ var require_axios = __commonJS({
|
|
|
14631
14586
|
convertedData = utils$1.stripBOM(convertedData);
|
|
14632
14587
|
}
|
|
14633
14588
|
} else if (responseType === "stream") {
|
|
14634
|
-
convertedData =
|
|
14589
|
+
convertedData = stream.Readable.from(convertedData);
|
|
14635
14590
|
}
|
|
14636
14591
|
return settle(resolve, reject, {
|
|
14637
14592
|
data: convertedData,
|
|
14638
14593
|
status: 200,
|
|
14639
14594
|
statusText: "OK",
|
|
14640
|
-
headers: new AxiosHeaders
|
|
14595
|
+
headers: new AxiosHeaders(),
|
|
14641
14596
|
config
|
|
14642
14597
|
});
|
|
14643
14598
|
}
|
|
14644
14599
|
if (supportedProtocols.indexOf(protocol) === -1) {
|
|
14645
|
-
return reject(
|
|
14646
|
-
new AxiosError$1("Unsupported protocol " + protocol, AxiosError$1.ERR_BAD_REQUEST, config)
|
|
14647
|
-
);
|
|
14600
|
+
return reject(new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_BAD_REQUEST, config));
|
|
14648
14601
|
}
|
|
14649
|
-
const headers = AxiosHeaders
|
|
14602
|
+
const headers = AxiosHeaders.from(config.headers).normalize();
|
|
14650
14603
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
14651
|
-
const {
|
|
14604
|
+
const {
|
|
14605
|
+
onUploadProgress,
|
|
14606
|
+
onDownloadProgress
|
|
14607
|
+
} = config;
|
|
14652
14608
|
const maxRate = config.maxRate;
|
|
14653
14609
|
let maxUploadRate = void 0;
|
|
14654
14610
|
let maxDownloadRate = void 0;
|
|
14655
14611
|
if (utils$1.isSpecCompliantForm(data)) {
|
|
14656
14612
|
const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
|
|
14657
|
-
data = formDataToStream
|
|
14658
|
-
|
|
14659
|
-
|
|
14660
|
-
|
|
14661
|
-
|
|
14662
|
-
|
|
14663
|
-
tag: `axios-${VERSION}-boundary`,
|
|
14664
|
-
boundary: userBoundary && userBoundary[1] || void 0
|
|
14665
|
-
}
|
|
14666
|
-
);
|
|
14613
|
+
data = formDataToStream(data, (formHeaders) => {
|
|
14614
|
+
headers.set(formHeaders);
|
|
14615
|
+
}, {
|
|
14616
|
+
tag: `axios-${VERSION}-boundary`,
|
|
14617
|
+
boundary: userBoundary && userBoundary[1] || void 0
|
|
14618
|
+
});
|
|
14667
14619
|
} else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders)) {
|
|
14668
14620
|
headers.set(data.getHeaders());
|
|
14669
14621
|
if (!headers.hasContentLength()) {
|
|
14670
14622
|
try {
|
|
14671
|
-
const knownLength = await
|
|
14623
|
+
const knownLength = await util2.promisify(data.getLength).call(data);
|
|
14672
14624
|
Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
|
|
14673
14625
|
} catch (e) {
|
|
14674
14626
|
}
|
|
@@ -14676,7 +14628,7 @@ var require_axios = __commonJS({
|
|
|
14676
14628
|
} else if (utils$1.isBlob(data) || utils$1.isFile(data)) {
|
|
14677
14629
|
data.size && headers.setContentType(data.type || "application/octet-stream");
|
|
14678
14630
|
headers.setContentLength(data.size || 0);
|
|
14679
|
-
data =
|
|
14631
|
+
data = stream.Readable.from(readBlob(data));
|
|
14680
14632
|
} else if (data && !utils$1.isStream(data)) {
|
|
14681
14633
|
if (Buffer.isBuffer(data)) ;
|
|
14682
14634
|
else if (utils$1.isArrayBuffer(data)) {
|
|
@@ -14684,23 +14636,11 @@ var require_axios = __commonJS({
|
|
|
14684
14636
|
} else if (utils$1.isString(data)) {
|
|
14685
14637
|
data = Buffer.from(data, "utf-8");
|
|
14686
14638
|
} else {
|
|
14687
|
-
return reject(
|
|
14688
|
-
new AxiosError$1(
|
|
14689
|
-
"Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
|
|
14690
|
-
AxiosError$1.ERR_BAD_REQUEST,
|
|
14691
|
-
config
|
|
14692
|
-
)
|
|
14693
|
-
);
|
|
14639
|
+
return reject(new AxiosError("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream", AxiosError.ERR_BAD_REQUEST, config));
|
|
14694
14640
|
}
|
|
14695
14641
|
headers.setContentLength(data.length, false);
|
|
14696
14642
|
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
|
14697
|
-
return reject(
|
|
14698
|
-
new AxiosError$1(
|
|
14699
|
-
"Request body larger than maxBodyLength limit",
|
|
14700
|
-
AxiosError$1.ERR_BAD_REQUEST,
|
|
14701
|
-
config
|
|
14702
|
-
)
|
|
14703
|
-
);
|
|
14643
|
+
return reject(new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config));
|
|
14704
14644
|
}
|
|
14705
14645
|
}
|
|
14706
14646
|
const contentLength = utils$1.toFiniteNumber(headers.getContentLength());
|
|
@@ -14712,27 +14652,14 @@ var require_axios = __commonJS({
|
|
|
14712
14652
|
}
|
|
14713
14653
|
if (data && (onUploadProgress || maxUploadRate)) {
|
|
14714
14654
|
if (!utils$1.isStream(data)) {
|
|
14715
|
-
data =
|
|
14655
|
+
data = stream.Readable.from(data, {
|
|
14656
|
+
objectMode: false
|
|
14657
|
+
});
|
|
14716
14658
|
}
|
|
14717
|
-
data =
|
|
14718
|
-
|
|
14719
|
-
|
|
14720
|
-
|
|
14721
|
-
maxRate: utils$1.toFiniteNumber(maxUploadRate)
|
|
14722
|
-
})
|
|
14723
|
-
],
|
|
14724
|
-
utils$1.noop
|
|
14725
|
-
);
|
|
14726
|
-
onUploadProgress && data.on(
|
|
14727
|
-
"progress",
|
|
14728
|
-
flushOnFinish(
|
|
14729
|
-
data,
|
|
14730
|
-
progressEventDecorator(
|
|
14731
|
-
contentLength,
|
|
14732
|
-
progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
|
|
14733
|
-
)
|
|
14734
|
-
)
|
|
14735
|
-
);
|
|
14659
|
+
data = stream.pipeline([data, new AxiosTransformStream({
|
|
14660
|
+
maxRate: utils$1.toFiniteNumber(maxUploadRate)
|
|
14661
|
+
})], utils$1.noop);
|
|
14662
|
+
onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress), false, 3))));
|
|
14736
14663
|
}
|
|
14737
14664
|
let auth = void 0;
|
|
14738
14665
|
if (config.auth) {
|
|
@@ -14748,11 +14675,7 @@ var require_axios = __commonJS({
|
|
|
14748
14675
|
auth && headers.delete("authorization");
|
|
14749
14676
|
let path;
|
|
14750
14677
|
try {
|
|
14751
|
-
path = buildURL(
|
|
14752
|
-
parsed.pathname + parsed.search,
|
|
14753
|
-
config.params,
|
|
14754
|
-
config.paramsSerializer
|
|
14755
|
-
).replace(/^\?/, "");
|
|
14678
|
+
path = buildURL(parsed.pathname + parsed.search, config.params, config.paramsSerializer).replace(/^\?/, "");
|
|
14756
14679
|
} catch (err) {
|
|
14757
14680
|
const customErr = new Error(err.message);
|
|
14758
14681
|
customErr.config = config;
|
|
@@ -14760,16 +14683,15 @@ var require_axios = __commonJS({
|
|
|
14760
14683
|
customErr.exists = true;
|
|
14761
14684
|
return reject(customErr);
|
|
14762
14685
|
}
|
|
14763
|
-
headers.set(
|
|
14764
|
-
"Accept-Encoding",
|
|
14765
|
-
"gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
|
|
14766
|
-
false
|
|
14767
|
-
);
|
|
14686
|
+
headers.set("Accept-Encoding", "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""), false);
|
|
14768
14687
|
const options = {
|
|
14769
14688
|
path,
|
|
14770
14689
|
method,
|
|
14771
14690
|
headers: headers.toJSON(),
|
|
14772
|
-
agents: {
|
|
14691
|
+
agents: {
|
|
14692
|
+
http: config.httpAgent,
|
|
14693
|
+
https: config.httpsAgent
|
|
14694
|
+
},
|
|
14773
14695
|
auth,
|
|
14774
14696
|
protocol,
|
|
14775
14697
|
family,
|
|
@@ -14783,11 +14705,7 @@ var require_axios = __commonJS({
|
|
|
14783
14705
|
} else {
|
|
14784
14706
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
14785
14707
|
options.port = parsed.port;
|
|
14786
|
-
setProxy(
|
|
14787
|
-
options,
|
|
14788
|
-
config.proxy,
|
|
14789
|
-
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
|
|
14790
|
-
);
|
|
14708
|
+
setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
|
|
14791
14709
|
}
|
|
14792
14710
|
let transport;
|
|
14793
14711
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
@@ -14798,7 +14716,7 @@ var require_axios = __commonJS({
|
|
|
14798
14716
|
if (config.transport) {
|
|
14799
14717
|
transport = config.transport;
|
|
14800
14718
|
} else if (config.maxRedirects === 0) {
|
|
14801
|
-
transport = isHttpsRequest ?
|
|
14719
|
+
transport = isHttpsRequest ? https : http;
|
|
14802
14720
|
} else {
|
|
14803
14721
|
if (config.maxRedirects) {
|
|
14804
14722
|
options.maxRedirects = config.maxRedirects;
|
|
@@ -14822,19 +14740,10 @@ var require_axios = __commonJS({
|
|
|
14822
14740
|
const streams = [res];
|
|
14823
14741
|
const responseLength = utils$1.toFiniteNumber(res.headers["content-length"]);
|
|
14824
14742
|
if (onDownloadProgress || maxDownloadRate) {
|
|
14825
|
-
const transformStream = new AxiosTransformStream
|
|
14743
|
+
const transformStream = new AxiosTransformStream({
|
|
14826
14744
|
maxRate: utils$1.toFiniteNumber(maxDownloadRate)
|
|
14827
14745
|
});
|
|
14828
|
-
onDownloadProgress && transformStream.on(
|
|
14829
|
-
"progress",
|
|
14830
|
-
flushOnFinish(
|
|
14831
|
-
transformStream,
|
|
14832
|
-
progressEventDecorator(
|
|
14833
|
-
responseLength,
|
|
14834
|
-
progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
|
|
14835
|
-
)
|
|
14836
|
-
)
|
|
14837
|
-
);
|
|
14746
|
+
onDownloadProgress && transformStream.on("progress", flushOnFinish(transformStream, progressEventDecorator(responseLength, progressEventReducer(asyncDecorator(onDownloadProgress), true, 3))));
|
|
14838
14747
|
streams.push(transformStream);
|
|
14839
14748
|
}
|
|
14840
14749
|
let responseStream = res;
|
|
@@ -14849,26 +14758,26 @@ var require_axios = __commonJS({
|
|
|
14849
14758
|
case "x-gzip":
|
|
14850
14759
|
case "compress":
|
|
14851
14760
|
case "x-compress":
|
|
14852
|
-
streams.push(
|
|
14761
|
+
streams.push(zlib.createUnzip(zlibOptions));
|
|
14853
14762
|
delete res.headers["content-encoding"];
|
|
14854
14763
|
break;
|
|
14855
14764
|
case "deflate":
|
|
14856
|
-
streams.push(new ZlibHeaderTransformStream
|
|
14857
|
-
streams.push(
|
|
14765
|
+
streams.push(new ZlibHeaderTransformStream());
|
|
14766
|
+
streams.push(zlib.createUnzip(zlibOptions));
|
|
14858
14767
|
delete res.headers["content-encoding"];
|
|
14859
14768
|
break;
|
|
14860
14769
|
case "br":
|
|
14861
14770
|
if (isBrotliSupported) {
|
|
14862
|
-
streams.push(
|
|
14771
|
+
streams.push(zlib.createBrotliDecompress(brotliOptions));
|
|
14863
14772
|
delete res.headers["content-encoding"];
|
|
14864
14773
|
}
|
|
14865
14774
|
}
|
|
14866
14775
|
}
|
|
14867
|
-
responseStream = streams.length > 1 ?
|
|
14776
|
+
responseStream = streams.length > 1 ? stream.pipeline(streams, utils$1.noop) : streams[0];
|
|
14868
14777
|
const response = {
|
|
14869
14778
|
status: res.statusCode,
|
|
14870
14779
|
statusText: res.statusMessage,
|
|
14871
|
-
headers: new AxiosHeaders
|
|
14780
|
+
headers: new AxiosHeaders(res.headers),
|
|
14872
14781
|
config,
|
|
14873
14782
|
request: lastRequest
|
|
14874
14783
|
};
|
|
@@ -14884,32 +14793,20 @@ var require_axios = __commonJS({
|
|
|
14884
14793
|
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
14885
14794
|
rejected = true;
|
|
14886
14795
|
responseStream.destroy();
|
|
14887
|
-
abort(
|
|
14888
|
-
new AxiosError$1(
|
|
14889
|
-
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
14890
|
-
AxiosError$1.ERR_BAD_RESPONSE,
|
|
14891
|
-
config,
|
|
14892
|
-
lastRequest
|
|
14893
|
-
)
|
|
14894
|
-
);
|
|
14796
|
+
abort(new AxiosError("maxContentLength size of " + config.maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, lastRequest));
|
|
14895
14797
|
}
|
|
14896
14798
|
});
|
|
14897
14799
|
responseStream.on("aborted", function handlerStreamAborted() {
|
|
14898
14800
|
if (rejected) {
|
|
14899
14801
|
return;
|
|
14900
14802
|
}
|
|
14901
|
-
const err = new AxiosError
|
|
14902
|
-
"stream has been aborted",
|
|
14903
|
-
AxiosError$1.ERR_BAD_RESPONSE,
|
|
14904
|
-
config,
|
|
14905
|
-
lastRequest
|
|
14906
|
-
);
|
|
14803
|
+
const err = new AxiosError("stream has been aborted", AxiosError.ERR_BAD_RESPONSE, config, lastRequest);
|
|
14907
14804
|
responseStream.destroy(err);
|
|
14908
14805
|
reject(err);
|
|
14909
14806
|
});
|
|
14910
14807
|
responseStream.on("error", function handleStreamError(err) {
|
|
14911
14808
|
if (req.destroyed) return;
|
|
14912
|
-
reject(AxiosError
|
|
14809
|
+
reject(AxiosError.from(err, null, config, lastRequest));
|
|
14913
14810
|
});
|
|
14914
14811
|
responseStream.on("end", function handleStreamEnd() {
|
|
14915
14812
|
try {
|
|
@@ -14922,7 +14819,7 @@ var require_axios = __commonJS({
|
|
|
14922
14819
|
}
|
|
14923
14820
|
response.data = responseData;
|
|
14924
14821
|
} catch (err) {
|
|
14925
|
-
return reject(AxiosError
|
|
14822
|
+
return reject(AxiosError.from(err, null, config, response.request, response));
|
|
14926
14823
|
}
|
|
14927
14824
|
settle(resolve, reject, response);
|
|
14928
14825
|
});
|
|
@@ -14942,7 +14839,7 @@ var require_axios = __commonJS({
|
|
|
14942
14839
|
}
|
|
14943
14840
|
});
|
|
14944
14841
|
req.on("error", function handleRequestError(err) {
|
|
14945
|
-
reject(AxiosError
|
|
14842
|
+
reject(AxiosError.from(err, null, config, req));
|
|
14946
14843
|
});
|
|
14947
14844
|
req.on("socket", function handleRequestSocket(socket) {
|
|
14948
14845
|
socket.setKeepAlive(true, 1e3 * 60);
|
|
@@ -14950,14 +14847,7 @@ var require_axios = __commonJS({
|
|
|
14950
14847
|
if (config.timeout) {
|
|
14951
14848
|
const timeout = parseInt(config.timeout, 10);
|
|
14952
14849
|
if (Number.isNaN(timeout)) {
|
|
14953
|
-
abort(
|
|
14954
|
-
new AxiosError$1(
|
|
14955
|
-
"error trying to parse `config.timeout` to int",
|
|
14956
|
-
AxiosError$1.ERR_BAD_OPTION_VALUE,
|
|
14957
|
-
config,
|
|
14958
|
-
req
|
|
14959
|
-
)
|
|
14960
|
-
);
|
|
14850
|
+
abort(new AxiosError("error trying to parse `config.timeout` to int", AxiosError.ERR_BAD_OPTION_VALUE, config, req));
|
|
14961
14851
|
return;
|
|
14962
14852
|
}
|
|
14963
14853
|
req.setTimeout(timeout, function handleRequestTimeout() {
|
|
@@ -14967,14 +14857,7 @@ var require_axios = __commonJS({
|
|
|
14967
14857
|
if (config.timeoutErrorMessage) {
|
|
14968
14858
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
14969
14859
|
}
|
|
14970
|
-
abort(
|
|
14971
|
-
new AxiosError$1(
|
|
14972
|
-
timeoutErrorMessage,
|
|
14973
|
-
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
14974
|
-
config,
|
|
14975
|
-
req
|
|
14976
|
-
)
|
|
14977
|
-
);
|
|
14860
|
+
abort(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, req));
|
|
14978
14861
|
});
|
|
14979
14862
|
} else {
|
|
14980
14863
|
req.setTimeout(0);
|
|
@@ -14991,7 +14874,7 @@ var require_axios = __commonJS({
|
|
|
14991
14874
|
});
|
|
14992
14875
|
data.on("close", () => {
|
|
14993
14876
|
if (!ended && !errored) {
|
|
14994
|
-
abort(new CanceledError
|
|
14877
|
+
abort(new CanceledError("Request stream has been aborted", config, req));
|
|
14995
14878
|
}
|
|
14996
14879
|
});
|
|
14997
14880
|
data.pipe(req);
|
|
@@ -15004,10 +14887,7 @@ var require_axios = __commonJS({
|
|
|
15004
14887
|
var isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
|
|
15005
14888
|
url2 = new URL(url2, platform.origin);
|
|
15006
14889
|
return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
|
|
15007
|
-
})(
|
|
15008
|
-
new URL(platform.origin),
|
|
15009
|
-
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
15010
|
-
) : () => true;
|
|
14890
|
+
})(new URL(platform.origin), platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)) : () => true;
|
|
15011
14891
|
var cookies = platform.hasStandardBrowserEnv ? (
|
|
15012
14892
|
// Standard browser envs support document.cookie
|
|
15013
14893
|
{
|
|
@@ -15052,13 +14932,17 @@ var require_axios = __commonJS({
|
|
|
15052
14932
|
}
|
|
15053
14933
|
}
|
|
15054
14934
|
);
|
|
15055
|
-
var headersToObject = (thing) => thing instanceof AxiosHeaders
|
|
14935
|
+
var headersToObject = (thing) => thing instanceof AxiosHeaders ? {
|
|
14936
|
+
...thing
|
|
14937
|
+
} : thing;
|
|
15056
14938
|
function mergeConfig(config1, config2) {
|
|
15057
14939
|
config2 = config2 || {};
|
|
15058
14940
|
const config = {};
|
|
15059
14941
|
function getMergedValue(target, source, prop, caseless) {
|
|
15060
14942
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
15061
|
-
return utils$1.merge.call({
|
|
14943
|
+
return utils$1.merge.call({
|
|
14944
|
+
caseless
|
|
14945
|
+
}, target, source);
|
|
15062
14946
|
} else if (utils$1.isPlainObject(source)) {
|
|
15063
14947
|
return utils$1.merge({}, source);
|
|
15064
14948
|
} else if (utils$1.isArray(source)) {
|
|
@@ -15123,7 +15007,10 @@ var require_axios = __commonJS({
|
|
|
15123
15007
|
validateStatus: mergeDirectKeys,
|
|
15124
15008
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
15125
15009
|
};
|
|
15126
|
-
utils$1.forEach(Object.keys({
|
|
15010
|
+
utils$1.forEach(Object.keys({
|
|
15011
|
+
...config1,
|
|
15012
|
+
...config2
|
|
15013
|
+
}), function computeConfigValue(prop) {
|
|
15127
15014
|
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
15128
15015
|
const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
15129
15016
|
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
@@ -15133,20 +15020,18 @@ var require_axios = __commonJS({
|
|
|
15133
15020
|
}
|
|
15134
15021
|
var resolveConfig = (config) => {
|
|
15135
15022
|
const newConfig = mergeConfig({}, config);
|
|
15136
|
-
let {
|
|
15137
|
-
|
|
15138
|
-
|
|
15139
|
-
|
|
15140
|
-
|
|
15141
|
-
|
|
15142
|
-
|
|
15023
|
+
let {
|
|
15024
|
+
data,
|
|
15025
|
+
withXSRFToken,
|
|
15026
|
+
xsrfHeaderName,
|
|
15027
|
+
xsrfCookieName,
|
|
15028
|
+
headers,
|
|
15029
|
+
auth
|
|
15030
|
+
} = newConfig;
|
|
15031
|
+
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
15032
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
15143
15033
|
if (auth) {
|
|
15144
|
-
headers.set(
|
|
15145
|
-
"Authorization",
|
|
15146
|
-
"Basic " + btoa(
|
|
15147
|
-
(auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
|
|
15148
|
-
)
|
|
15149
|
-
);
|
|
15034
|
+
headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")));
|
|
15150
15035
|
}
|
|
15151
15036
|
if (utils$1.isFormData(data)) {
|
|
15152
15037
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
@@ -15177,8 +15062,12 @@ var require_axios = __commonJS({
|
|
|
15177
15062
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
15178
15063
|
const _config = resolveConfig(config);
|
|
15179
15064
|
let requestData = _config.data;
|
|
15180
|
-
const requestHeaders = AxiosHeaders
|
|
15181
|
-
let {
|
|
15065
|
+
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
15066
|
+
let {
|
|
15067
|
+
responseType,
|
|
15068
|
+
onUploadProgress,
|
|
15069
|
+
onDownloadProgress
|
|
15070
|
+
} = _config;
|
|
15182
15071
|
let onCanceled;
|
|
15183
15072
|
let uploadThrottled, downloadThrottled;
|
|
15184
15073
|
let flushUpload, flushDownload;
|
|
@@ -15195,9 +15084,7 @@ var require_axios = __commonJS({
|
|
|
15195
15084
|
if (!request) {
|
|
15196
15085
|
return;
|
|
15197
15086
|
}
|
|
15198
|
-
const responseHeaders = AxiosHeaders
|
|
15199
|
-
"getAllResponseHeaders" in request && request.getAllResponseHeaders()
|
|
15200
|
-
);
|
|
15087
|
+
const responseHeaders = AxiosHeaders.from("getAllResponseHeaders" in request && request.getAllResponseHeaders());
|
|
15201
15088
|
const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
|
|
15202
15089
|
const response = {
|
|
15203
15090
|
data: responseData,
|
|
@@ -15207,17 +15094,13 @@ var require_axios = __commonJS({
|
|
|
15207
15094
|
config,
|
|
15208
15095
|
request
|
|
15209
15096
|
};
|
|
15210
|
-
settle(
|
|
15211
|
-
|
|
15212
|
-
|
|
15213
|
-
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
done();
|
|
15218
|
-
},
|
|
15219
|
-
response
|
|
15220
|
-
);
|
|
15097
|
+
settle(function _resolve(value) {
|
|
15098
|
+
resolve(value);
|
|
15099
|
+
done();
|
|
15100
|
+
}, function _reject(err) {
|
|
15101
|
+
reject(err);
|
|
15102
|
+
done();
|
|
15103
|
+
}, response);
|
|
15221
15104
|
request = null;
|
|
15222
15105
|
}
|
|
15223
15106
|
if ("onloadend" in request) {
|
|
@@ -15237,12 +15120,12 @@ var require_axios = __commonJS({
|
|
|
15237
15120
|
if (!request) {
|
|
15238
15121
|
return;
|
|
15239
15122
|
}
|
|
15240
|
-
reject(new AxiosError
|
|
15123
|
+
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
15241
15124
|
request = null;
|
|
15242
15125
|
};
|
|
15243
15126
|
request.onerror = function handleError(event) {
|
|
15244
15127
|
const msg = event && event.message ? event.message : "Network Error";
|
|
15245
|
-
const err = new AxiosError
|
|
15128
|
+
const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
|
|
15246
15129
|
err.event = event || null;
|
|
15247
15130
|
reject(err);
|
|
15248
15131
|
request = null;
|
|
@@ -15253,14 +15136,7 @@ var require_axios = __commonJS({
|
|
|
15253
15136
|
if (_config.timeoutErrorMessage) {
|
|
15254
15137
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
15255
15138
|
}
|
|
15256
|
-
reject(
|
|
15257
|
-
new AxiosError$1(
|
|
15258
|
-
timeoutErrorMessage,
|
|
15259
|
-
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
15260
|
-
config,
|
|
15261
|
-
request
|
|
15262
|
-
)
|
|
15263
|
-
);
|
|
15139
|
+
reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request));
|
|
15264
15140
|
request = null;
|
|
15265
15141
|
};
|
|
15266
15142
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -15289,7 +15165,7 @@ var require_axios = __commonJS({
|
|
|
15289
15165
|
if (!request) {
|
|
15290
15166
|
return;
|
|
15291
15167
|
}
|
|
15292
|
-
reject(!cancel || cancel.type ? new CanceledError
|
|
15168
|
+
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
15293
15169
|
request.abort();
|
|
15294
15170
|
request = null;
|
|
15295
15171
|
};
|
|
@@ -15300,20 +15176,16 @@ var require_axios = __commonJS({
|
|
|
15300
15176
|
}
|
|
15301
15177
|
const protocol = parseProtocol(_config.url);
|
|
15302
15178
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
15303
|
-
reject(
|
|
15304
|
-
new AxiosError$1(
|
|
15305
|
-
"Unsupported protocol " + protocol + ":",
|
|
15306
|
-
AxiosError$1.ERR_BAD_REQUEST,
|
|
15307
|
-
config
|
|
15308
|
-
)
|
|
15309
|
-
);
|
|
15179
|
+
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
|
|
15310
15180
|
return;
|
|
15311
15181
|
}
|
|
15312
15182
|
request.send(requestData || null);
|
|
15313
15183
|
});
|
|
15314
15184
|
};
|
|
15315
15185
|
var composeSignals = (signals, timeout) => {
|
|
15316
|
-
const {
|
|
15186
|
+
const {
|
|
15187
|
+
length
|
|
15188
|
+
} = signals = signals ? signals.filter(Boolean) : [];
|
|
15317
15189
|
if (timeout || length) {
|
|
15318
15190
|
let controller = new AbortController();
|
|
15319
15191
|
let aborted;
|
|
@@ -15322,14 +15194,12 @@ var require_axios = __commonJS({
|
|
|
15322
15194
|
aborted = true;
|
|
15323
15195
|
unsubscribe();
|
|
15324
15196
|
const err = reason instanceof Error ? reason : this.reason;
|
|
15325
|
-
controller.abort(
|
|
15326
|
-
err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err)
|
|
15327
|
-
);
|
|
15197
|
+
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
15328
15198
|
}
|
|
15329
15199
|
};
|
|
15330
15200
|
let timer = timeout && setTimeout(() => {
|
|
15331
15201
|
timer = null;
|
|
15332
|
-
onabort(new AxiosError
|
|
15202
|
+
onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));
|
|
15333
15203
|
}, timeout);
|
|
15334
15204
|
const unsubscribe = () => {
|
|
15335
15205
|
if (signals) {
|
|
@@ -15342,15 +15212,16 @@ var require_axios = __commonJS({
|
|
|
15342
15212
|
}
|
|
15343
15213
|
};
|
|
15344
15214
|
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
15345
|
-
const {
|
|
15215
|
+
const {
|
|
15216
|
+
signal
|
|
15217
|
+
} = controller;
|
|
15346
15218
|
signal.unsubscribe = () => utils$1.asap(unsubscribe);
|
|
15347
15219
|
return signal;
|
|
15348
15220
|
}
|
|
15349
15221
|
};
|
|
15350
|
-
var composeSignals$1 = composeSignals;
|
|
15351
15222
|
var streamChunk = function* (chunk, chunkSize) {
|
|
15352
15223
|
let len = chunk.byteLength;
|
|
15353
|
-
if (
|
|
15224
|
+
if (len < chunkSize) {
|
|
15354
15225
|
yield chunk;
|
|
15355
15226
|
return;
|
|
15356
15227
|
}
|
|
@@ -15375,7 +15246,10 @@ var require_axios = __commonJS({
|
|
|
15375
15246
|
const reader = stream2.getReader();
|
|
15376
15247
|
try {
|
|
15377
15248
|
for (; ; ) {
|
|
15378
|
-
const {
|
|
15249
|
+
const {
|
|
15250
|
+
done,
|
|
15251
|
+
value
|
|
15252
|
+
} = await reader.read();
|
|
15379
15253
|
if (done) {
|
|
15380
15254
|
break;
|
|
15381
15255
|
}
|
|
@@ -15395,44 +15269,52 @@ var require_axios = __commonJS({
|
|
|
15395
15269
|
onFinish && onFinish(e);
|
|
15396
15270
|
}
|
|
15397
15271
|
};
|
|
15398
|
-
return new ReadableStream(
|
|
15399
|
-
{
|
|
15400
|
-
|
|
15401
|
-
|
|
15402
|
-
|
|
15403
|
-
|
|
15404
|
-
|
|
15405
|
-
|
|
15406
|
-
|
|
15407
|
-
|
|
15408
|
-
|
|
15409
|
-
if (onProgress) {
|
|
15410
|
-
let loadedBytes = bytes += len;
|
|
15411
|
-
onProgress(loadedBytes);
|
|
15412
|
-
}
|
|
15413
|
-
controller.enqueue(new Uint8Array(value));
|
|
15414
|
-
} catch (err) {
|
|
15415
|
-
_onFinish(err);
|
|
15416
|
-
throw err;
|
|
15272
|
+
return new ReadableStream({
|
|
15273
|
+
async pull(controller) {
|
|
15274
|
+
try {
|
|
15275
|
+
const {
|
|
15276
|
+
done: done2,
|
|
15277
|
+
value
|
|
15278
|
+
} = await iterator2.next();
|
|
15279
|
+
if (done2) {
|
|
15280
|
+
_onFinish();
|
|
15281
|
+
controller.close();
|
|
15282
|
+
return;
|
|
15417
15283
|
}
|
|
15418
|
-
|
|
15419
|
-
|
|
15420
|
-
|
|
15421
|
-
|
|
15284
|
+
let len = value.byteLength;
|
|
15285
|
+
if (onProgress) {
|
|
15286
|
+
let loadedBytes = bytes += len;
|
|
15287
|
+
onProgress(loadedBytes);
|
|
15288
|
+
}
|
|
15289
|
+
controller.enqueue(new Uint8Array(value));
|
|
15290
|
+
} catch (err) {
|
|
15291
|
+
_onFinish(err);
|
|
15292
|
+
throw err;
|
|
15422
15293
|
}
|
|
15423
15294
|
},
|
|
15424
|
-
{
|
|
15425
|
-
|
|
15295
|
+
cancel(reason) {
|
|
15296
|
+
_onFinish(reason);
|
|
15297
|
+
return iterator2.return();
|
|
15426
15298
|
}
|
|
15427
|
-
|
|
15299
|
+
}, {
|
|
15300
|
+
highWaterMark: 2
|
|
15301
|
+
});
|
|
15428
15302
|
};
|
|
15429
15303
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
15430
|
-
var {
|
|
15431
|
-
|
|
15304
|
+
var {
|
|
15305
|
+
isFunction
|
|
15306
|
+
} = utils$1;
|
|
15307
|
+
var globalFetchAPI = (({
|
|
15308
|
+
Request,
|
|
15309
|
+
Response
|
|
15310
|
+
}) => ({
|
|
15432
15311
|
Request,
|
|
15433
15312
|
Response
|
|
15434
15313
|
}))(utils$1.global);
|
|
15435
|
-
var {
|
|
15314
|
+
var {
|
|
15315
|
+
ReadableStream: ReadableStream$1,
|
|
15316
|
+
TextEncoder: TextEncoder$1
|
|
15317
|
+
} = utils$1.global;
|
|
15436
15318
|
var test = (fn, ...args) => {
|
|
15437
15319
|
try {
|
|
15438
15320
|
return !!fn(...args);
|
|
@@ -15441,14 +15323,14 @@ var require_axios = __commonJS({
|
|
|
15441
15323
|
}
|
|
15442
15324
|
};
|
|
15443
15325
|
var factory = (env) => {
|
|
15444
|
-
env = utils$1.merge.call(
|
|
15445
|
-
|
|
15446
|
-
|
|
15447
|
-
|
|
15448
|
-
|
|
15449
|
-
|
|
15450
|
-
|
|
15451
|
-
|
|
15326
|
+
env = utils$1.merge.call({
|
|
15327
|
+
skipUndefined: true
|
|
15328
|
+
}, globalFetchAPI, env);
|
|
15329
|
+
const {
|
|
15330
|
+
fetch: envFetch,
|
|
15331
|
+
Request,
|
|
15332
|
+
Response
|
|
15333
|
+
} = env;
|
|
15452
15334
|
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
15453
15335
|
const isRequestSupported = isFunction(Request);
|
|
15454
15336
|
const isResponseSupported = isFunction(Response);
|
|
@@ -15459,14 +15341,16 @@ var require_axios = __commonJS({
|
|
|
15459
15341
|
const encodeText = isFetchSupported && (typeof TextEncoder$1 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder$1()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
|
|
15460
15342
|
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
15461
15343
|
let duplexAccessed = false;
|
|
15344
|
+
const body = new ReadableStream$1();
|
|
15462
15345
|
const hasContentType = new Request(platform.origin, {
|
|
15463
|
-
body
|
|
15346
|
+
body,
|
|
15464
15347
|
method: "POST",
|
|
15465
15348
|
get duplex() {
|
|
15466
15349
|
duplexAccessed = true;
|
|
15467
15350
|
return "half";
|
|
15468
15351
|
}
|
|
15469
15352
|
}).headers.has("Content-Type");
|
|
15353
|
+
body.cancel();
|
|
15470
15354
|
return duplexAccessed && !hasContentType;
|
|
15471
15355
|
});
|
|
15472
15356
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
|
@@ -15480,11 +15364,7 @@ var require_axios = __commonJS({
|
|
|
15480
15364
|
if (method) {
|
|
15481
15365
|
return method.call(res);
|
|
15482
15366
|
}
|
|
15483
|
-
throw new AxiosError$
|
|
15484
|
-
`Response type '${type}' is not supported`,
|
|
15485
|
-
AxiosError$1.ERR_NOT_SUPPORT,
|
|
15486
|
-
config
|
|
15487
|
-
);
|
|
15367
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
15488
15368
|
});
|
|
15489
15369
|
});
|
|
15490
15370
|
})();
|
|
@@ -15533,10 +15413,7 @@ var require_axios = __commonJS({
|
|
|
15533
15413
|
} = resolveConfig(config);
|
|
15534
15414
|
let _fetch = envFetch || fetch;
|
|
15535
15415
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
15536
|
-
let composedSignal = composeSignals
|
|
15537
|
-
[signal, cancelToken && cancelToken.toAbortSignal()],
|
|
15538
|
-
timeout
|
|
15539
|
-
);
|
|
15416
|
+
let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
15540
15417
|
let request = null;
|
|
15541
15418
|
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
15542
15419
|
composedSignal.unsubscribe();
|
|
@@ -15554,10 +15431,7 @@ var require_axios = __commonJS({
|
|
|
15554
15431
|
headers.setContentType(contentTypeHeader);
|
|
15555
15432
|
}
|
|
15556
15433
|
if (_request.body) {
|
|
15557
|
-
const [onProgress, flush] = progressEventDecorator(
|
|
15558
|
-
requestContentLength,
|
|
15559
|
-
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
15560
|
-
);
|
|
15434
|
+
const [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)));
|
|
15561
15435
|
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
15562
15436
|
}
|
|
15563
15437
|
}
|
|
@@ -15583,28 +15457,19 @@ var require_axios = __commonJS({
|
|
|
15583
15457
|
options[prop] = response[prop];
|
|
15584
15458
|
});
|
|
15585
15459
|
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
15586
|
-
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
15587
|
-
|
|
15588
|
-
|
|
15589
|
-
|
|
15590
|
-
|
|
15591
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
15592
|
-
flush && flush();
|
|
15593
|
-
unsubscribe && unsubscribe();
|
|
15594
|
-
}),
|
|
15595
|
-
options
|
|
15596
|
-
);
|
|
15460
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
|
|
15461
|
+
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
15462
|
+
flush && flush();
|
|
15463
|
+
unsubscribe && unsubscribe();
|
|
15464
|
+
}), options);
|
|
15597
15465
|
}
|
|
15598
15466
|
responseType = responseType || "text";
|
|
15599
|
-
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](
|
|
15600
|
-
response,
|
|
15601
|
-
config
|
|
15602
|
-
);
|
|
15467
|
+
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config);
|
|
15603
15468
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
15604
15469
|
return await new Promise((resolve, reject) => {
|
|
15605
15470
|
settle(resolve, reject, {
|
|
15606
15471
|
data: responseData,
|
|
15607
|
-
headers: AxiosHeaders
|
|
15472
|
+
headers: AxiosHeaders.from(response.headers),
|
|
15608
15473
|
status: response.status,
|
|
15609
15474
|
statusText: response.statusText,
|
|
15610
15475
|
config,
|
|
@@ -15614,27 +15479,22 @@ var require_axios = __commonJS({
|
|
|
15614
15479
|
} catch (err) {
|
|
15615
15480
|
unsubscribe && unsubscribe();
|
|
15616
15481
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
15617
|
-
throw Object.assign(
|
|
15618
|
-
|
|
15619
|
-
|
|
15620
|
-
AxiosError$1.ERR_NETWORK,
|
|
15621
|
-
config,
|
|
15622
|
-
request,
|
|
15623
|
-
err && err.response
|
|
15624
|
-
),
|
|
15625
|
-
{
|
|
15626
|
-
cause: err.cause || err
|
|
15627
|
-
}
|
|
15628
|
-
);
|
|
15482
|
+
throw Object.assign(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request, err && err.response), {
|
|
15483
|
+
cause: err.cause || err
|
|
15484
|
+
});
|
|
15629
15485
|
}
|
|
15630
|
-
throw AxiosError
|
|
15486
|
+
throw AxiosError.from(err, err && err.code, config, request, err && err.response);
|
|
15631
15487
|
}
|
|
15632
15488
|
};
|
|
15633
15489
|
};
|
|
15634
15490
|
var seedCache = /* @__PURE__ */ new Map();
|
|
15635
15491
|
var getFetch = (config) => {
|
|
15636
15492
|
let env = config && config.env || {};
|
|
15637
|
-
const {
|
|
15493
|
+
const {
|
|
15494
|
+
fetch: fetch2,
|
|
15495
|
+
Request,
|
|
15496
|
+
Response
|
|
15497
|
+
} = env;
|
|
15638
15498
|
const seeds = [Request, Response, fetch2];
|
|
15639
15499
|
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
15640
15500
|
while (i--) {
|
|
@@ -15656,17 +15516,23 @@ var require_axios = __commonJS({
|
|
|
15656
15516
|
utils$1.forEach(knownAdapters, (fn, value) => {
|
|
15657
15517
|
if (fn) {
|
|
15658
15518
|
try {
|
|
15659
|
-
Object.defineProperty(fn, "name", {
|
|
15519
|
+
Object.defineProperty(fn, "name", {
|
|
15520
|
+
value
|
|
15521
|
+
});
|
|
15660
15522
|
} catch (e) {
|
|
15661
15523
|
}
|
|
15662
|
-
Object.defineProperty(fn, "adapterName", {
|
|
15524
|
+
Object.defineProperty(fn, "adapterName", {
|
|
15525
|
+
value
|
|
15526
|
+
});
|
|
15663
15527
|
}
|
|
15664
15528
|
});
|
|
15665
15529
|
var renderReason = (reason) => `- ${reason}`;
|
|
15666
15530
|
var isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
15667
15531
|
function getAdapter(adapters2, config) {
|
|
15668
15532
|
adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
|
|
15669
|
-
const {
|
|
15533
|
+
const {
|
|
15534
|
+
length
|
|
15535
|
+
} = adapters2;
|
|
15670
15536
|
let nameOrAdapter;
|
|
15671
15537
|
let adapter;
|
|
15672
15538
|
const rejectedReasons = {};
|
|
@@ -15677,7 +15543,7 @@ var require_axios = __commonJS({
|
|
|
15677
15543
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
15678
15544
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
15679
15545
|
if (adapter === void 0) {
|
|
15680
|
-
throw new AxiosError
|
|
15546
|
+
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
15681
15547
|
}
|
|
15682
15548
|
}
|
|
15683
15549
|
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
@@ -15686,14 +15552,9 @@ var require_axios = __commonJS({
|
|
|
15686
15552
|
rejectedReasons[id || "#" + i] = adapter;
|
|
15687
15553
|
}
|
|
15688
15554
|
if (!adapter) {
|
|
15689
|
-
const reasons = Object.entries(rejectedReasons).map(
|
|
15690
|
-
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
15691
|
-
);
|
|
15555
|
+
const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));
|
|
15692
15556
|
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
15693
|
-
throw new AxiosError
|
|
15694
|
-
`There is no suitable adapter to dispatch the request ` + s,
|
|
15695
|
-
"ERR_NOT_SUPPORT"
|
|
15696
|
-
);
|
|
15557
|
+
throw new AxiosError(`There is no suitable adapter to dispatch the request ` + s, "ERR_NOT_SUPPORT");
|
|
15697
15558
|
}
|
|
15698
15559
|
return adapter;
|
|
15699
15560
|
}
|
|
@@ -15714,39 +15575,32 @@ var require_axios = __commonJS({
|
|
|
15714
15575
|
config.cancelToken.throwIfRequested();
|
|
15715
15576
|
}
|
|
15716
15577
|
if (config.signal && config.signal.aborted) {
|
|
15717
|
-
throw new CanceledError
|
|
15578
|
+
throw new CanceledError(null, config);
|
|
15718
15579
|
}
|
|
15719
15580
|
}
|
|
15720
15581
|
function dispatchRequest(config) {
|
|
15721
15582
|
throwIfCancellationRequested(config);
|
|
15722
|
-
config.headers = AxiosHeaders
|
|
15583
|
+
config.headers = AxiosHeaders.from(config.headers);
|
|
15723
15584
|
config.data = transformData.call(config, config.transformRequest);
|
|
15724
15585
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
15725
15586
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
15726
15587
|
}
|
|
15727
|
-
const adapter = adapters.getAdapter(config.adapter || defaults
|
|
15728
|
-
return adapter(config).then(
|
|
15729
|
-
|
|
15588
|
+
const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);
|
|
15589
|
+
return adapter(config).then(function onAdapterResolution(response) {
|
|
15590
|
+
throwIfCancellationRequested(config);
|
|
15591
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
15592
|
+
response.headers = AxiosHeaders.from(response.headers);
|
|
15593
|
+
return response;
|
|
15594
|
+
}, function onAdapterRejection(reason) {
|
|
15595
|
+
if (!isCancel(reason)) {
|
|
15730
15596
|
throwIfCancellationRequested(config);
|
|
15731
|
-
|
|
15732
|
-
|
|
15733
|
-
|
|
15734
|
-
},
|
|
15735
|
-
function onAdapterRejection(reason) {
|
|
15736
|
-
if (!isCancel(reason)) {
|
|
15737
|
-
throwIfCancellationRequested(config);
|
|
15738
|
-
if (reason && reason.response) {
|
|
15739
|
-
reason.response.data = transformData.call(
|
|
15740
|
-
config,
|
|
15741
|
-
config.transformResponse,
|
|
15742
|
-
reason.response
|
|
15743
|
-
);
|
|
15744
|
-
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
15745
|
-
}
|
|
15597
|
+
if (reason && reason.response) {
|
|
15598
|
+
reason.response.data = transformData.call(config, config.transformResponse, reason.response);
|
|
15599
|
+
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
15746
15600
|
}
|
|
15747
|
-
return Promise.reject(reason);
|
|
15748
15601
|
}
|
|
15749
|
-
|
|
15602
|
+
return Promise.reject(reason);
|
|
15603
|
+
});
|
|
15750
15604
|
}
|
|
15751
15605
|
var validators$1 = {};
|
|
15752
15606
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
@@ -15761,19 +15615,11 @@ var require_axios = __commonJS({
|
|
|
15761
15615
|
}
|
|
15762
15616
|
return (value, opt, opts) => {
|
|
15763
15617
|
if (validator2 === false) {
|
|
15764
|
-
throw new AxiosError
|
|
15765
|
-
formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
|
|
15766
|
-
AxiosError$1.ERR_DEPRECATED
|
|
15767
|
-
);
|
|
15618
|
+
throw new AxiosError(formatMessage(opt, " has been removed" + (version ? " in " + version : "")), AxiosError.ERR_DEPRECATED);
|
|
15768
15619
|
}
|
|
15769
15620
|
if (version && !deprecatedWarnings[opt]) {
|
|
15770
15621
|
deprecatedWarnings[opt] = true;
|
|
15771
|
-
console.warn(
|
|
15772
|
-
formatMessage(
|
|
15773
|
-
opt,
|
|
15774
|
-
" has been deprecated since v" + version + " and will be removed in the near future"
|
|
15775
|
-
)
|
|
15776
|
-
);
|
|
15622
|
+
console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
|
|
15777
15623
|
}
|
|
15778
15624
|
return validator2 ? validator2(value, opt, opts) : true;
|
|
15779
15625
|
};
|
|
@@ -15786,7 +15632,7 @@ var require_axios = __commonJS({
|
|
|
15786
15632
|
};
|
|
15787
15633
|
function assertOptions(options, schema, allowUnknown) {
|
|
15788
15634
|
if (typeof options !== "object") {
|
|
15789
|
-
throw new AxiosError
|
|
15635
|
+
throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
15790
15636
|
}
|
|
15791
15637
|
const keys = Object.keys(options);
|
|
15792
15638
|
let i = keys.length;
|
|
@@ -15797,15 +15643,12 @@ var require_axios = __commonJS({
|
|
|
15797
15643
|
const value = options[opt];
|
|
15798
15644
|
const result = value === void 0 || validator2(value, opt, options);
|
|
15799
15645
|
if (result !== true) {
|
|
15800
|
-
throw new AxiosError
|
|
15801
|
-
"option " + opt + " must be " + result,
|
|
15802
|
-
AxiosError$1.ERR_BAD_OPTION_VALUE
|
|
15803
|
-
);
|
|
15646
|
+
throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
15804
15647
|
}
|
|
15805
15648
|
continue;
|
|
15806
15649
|
}
|
|
15807
15650
|
if (allowUnknown !== true) {
|
|
15808
|
-
throw new AxiosError
|
|
15651
|
+
throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
|
|
15809
15652
|
}
|
|
15810
15653
|
}
|
|
15811
15654
|
}
|
|
@@ -15818,8 +15661,8 @@ var require_axios = __commonJS({
|
|
|
15818
15661
|
constructor(instanceConfig) {
|
|
15819
15662
|
this.defaults = instanceConfig || {};
|
|
15820
15663
|
this.interceptors = {
|
|
15821
|
-
request: new InterceptorManager
|
|
15822
|
-
response: new InterceptorManager
|
|
15664
|
+
request: new InterceptorManager(),
|
|
15665
|
+
response: new InterceptorManager()
|
|
15823
15666
|
};
|
|
15824
15667
|
}
|
|
15825
15668
|
/**
|
|
@@ -15858,18 +15701,18 @@ var require_axios = __commonJS({
|
|
|
15858
15701
|
config = configOrUrl || {};
|
|
15859
15702
|
}
|
|
15860
15703
|
config = mergeConfig(this.defaults, config);
|
|
15861
|
-
const {
|
|
15704
|
+
const {
|
|
15705
|
+
transitional,
|
|
15706
|
+
paramsSerializer,
|
|
15707
|
+
headers
|
|
15708
|
+
} = config;
|
|
15862
15709
|
if (transitional !== void 0) {
|
|
15863
|
-
validator.assertOptions(
|
|
15864
|
-
transitional,
|
|
15865
|
-
|
|
15866
|
-
|
|
15867
|
-
|
|
15868
|
-
|
|
15869
|
-
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
15870
|
-
},
|
|
15871
|
-
false
|
|
15872
|
-
);
|
|
15710
|
+
validator.assertOptions(transitional, {
|
|
15711
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
15712
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
15713
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
15714
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
15715
|
+
}, false);
|
|
15873
15716
|
}
|
|
15874
15717
|
if (paramsSerializer != null) {
|
|
15875
15718
|
if (utils$1.isFunction(paramsSerializer)) {
|
|
@@ -15877,14 +15720,10 @@ var require_axios = __commonJS({
|
|
|
15877
15720
|
serialize: paramsSerializer
|
|
15878
15721
|
};
|
|
15879
15722
|
} else {
|
|
15880
|
-
validator.assertOptions(
|
|
15881
|
-
|
|
15882
|
-
|
|
15883
|
-
|
|
15884
|
-
serialize: validators.function
|
|
15885
|
-
},
|
|
15886
|
-
true
|
|
15887
|
-
);
|
|
15723
|
+
validator.assertOptions(paramsSerializer, {
|
|
15724
|
+
encode: validators.function,
|
|
15725
|
+
serialize: validators.function
|
|
15726
|
+
}, true);
|
|
15888
15727
|
}
|
|
15889
15728
|
}
|
|
15890
15729
|
if (config.allowAbsoluteUrls !== void 0) ;
|
|
@@ -15893,20 +15732,16 @@ var require_axios = __commonJS({
|
|
|
15893
15732
|
} else {
|
|
15894
15733
|
config.allowAbsoluteUrls = true;
|
|
15895
15734
|
}
|
|
15896
|
-
validator.assertOptions(
|
|
15897
|
-
|
|
15898
|
-
|
|
15899
|
-
|
|
15900
|
-
withXsrfToken: validators.spelling("withXSRFToken")
|
|
15901
|
-
},
|
|
15902
|
-
true
|
|
15903
|
-
);
|
|
15735
|
+
validator.assertOptions(config, {
|
|
15736
|
+
baseUrl: validators.spelling("baseURL"),
|
|
15737
|
+
withXsrfToken: validators.spelling("withXSRFToken")
|
|
15738
|
+
}, true);
|
|
15904
15739
|
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
15905
15740
|
let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
|
|
15906
15741
|
headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
|
|
15907
15742
|
delete headers[method];
|
|
15908
15743
|
});
|
|
15909
|
-
config.headers = AxiosHeaders
|
|
15744
|
+
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
15910
15745
|
const requestInterceptorChain = [];
|
|
15911
15746
|
let synchronousRequestInterceptors = true;
|
|
15912
15747
|
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
@@ -15972,34 +15807,29 @@ var require_axios = __commonJS({
|
|
|
15972
15807
|
};
|
|
15973
15808
|
utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
15974
15809
|
Axios.prototype[method] = function(url2, config) {
|
|
15975
|
-
return this.request(
|
|
15976
|
-
|
|
15977
|
-
|
|
15978
|
-
|
|
15979
|
-
|
|
15980
|
-
})
|
|
15981
|
-
);
|
|
15810
|
+
return this.request(mergeConfig(config || {}, {
|
|
15811
|
+
method,
|
|
15812
|
+
url: url2,
|
|
15813
|
+
data: (config || {}).data
|
|
15814
|
+
}));
|
|
15982
15815
|
};
|
|
15983
15816
|
});
|
|
15984
15817
|
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
15985
15818
|
function generateHTTPMethod(isForm) {
|
|
15986
15819
|
return function httpMethod(url2, data, config) {
|
|
15987
|
-
return this.request(
|
|
15988
|
-
|
|
15989
|
-
|
|
15990
|
-
|
|
15991
|
-
|
|
15992
|
-
|
|
15993
|
-
|
|
15994
|
-
|
|
15995
|
-
})
|
|
15996
|
-
);
|
|
15820
|
+
return this.request(mergeConfig(config || {}, {
|
|
15821
|
+
method,
|
|
15822
|
+
headers: isForm ? {
|
|
15823
|
+
"Content-Type": "multipart/form-data"
|
|
15824
|
+
} : {},
|
|
15825
|
+
url: url2,
|
|
15826
|
+
data
|
|
15827
|
+
}));
|
|
15997
15828
|
};
|
|
15998
15829
|
}
|
|
15999
15830
|
Axios.prototype[method] = generateHTTPMethod();
|
|
16000
15831
|
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
16001
15832
|
});
|
|
16002
|
-
var Axios$1 = Axios;
|
|
16003
15833
|
var CancelToken = class _CancelToken {
|
|
16004
15834
|
constructor(executor) {
|
|
16005
15835
|
if (typeof executor !== "function") {
|
|
@@ -16033,7 +15863,7 @@ var require_axios = __commonJS({
|
|
|
16033
15863
|
if (token.reason) {
|
|
16034
15864
|
return;
|
|
16035
15865
|
}
|
|
16036
|
-
token.reason = new CanceledError
|
|
15866
|
+
token.reason = new CanceledError(message, config, request);
|
|
16037
15867
|
resolvePromise(token.reason);
|
|
16038
15868
|
});
|
|
16039
15869
|
}
|
|
@@ -16095,7 +15925,6 @@ var require_axios = __commonJS({
|
|
|
16095
15925
|
};
|
|
16096
15926
|
}
|
|
16097
15927
|
};
|
|
16098
|
-
var CancelToken$1 = CancelToken;
|
|
16099
15928
|
function spread(callback) {
|
|
16100
15929
|
return function wrap(arr) {
|
|
16101
15930
|
return callback.apply(null, arr);
|
|
@@ -16178,25 +16007,28 @@ var require_axios = __commonJS({
|
|
|
16178
16007
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
16179
16008
|
HttpStatusCode[value] = key;
|
|
16180
16009
|
});
|
|
16181
|
-
var HttpStatusCode$1 = HttpStatusCode;
|
|
16182
16010
|
function createInstance(defaultConfig) {
|
|
16183
|
-
const context = new Axios
|
|
16184
|
-
const instance = bind(Axios
|
|
16185
|
-
utils$1.extend(instance, Axios
|
|
16186
|
-
|
|
16011
|
+
const context = new Axios(defaultConfig);
|
|
16012
|
+
const instance = bind(Axios.prototype.request, context);
|
|
16013
|
+
utils$1.extend(instance, Axios.prototype, context, {
|
|
16014
|
+
allOwnKeys: true
|
|
16015
|
+
});
|
|
16016
|
+
utils$1.extend(instance, context, null, {
|
|
16017
|
+
allOwnKeys: true
|
|
16018
|
+
});
|
|
16187
16019
|
instance.create = function create(instanceConfig) {
|
|
16188
16020
|
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
16189
16021
|
};
|
|
16190
16022
|
return instance;
|
|
16191
16023
|
}
|
|
16192
|
-
var axios = createInstance(defaults
|
|
16193
|
-
axios.Axios = Axios
|
|
16194
|
-
axios.CanceledError = CanceledError
|
|
16195
|
-
axios.CancelToken = CancelToken
|
|
16024
|
+
var axios = createInstance(defaults);
|
|
16025
|
+
axios.Axios = Axios;
|
|
16026
|
+
axios.CanceledError = CanceledError;
|
|
16027
|
+
axios.CancelToken = CancelToken;
|
|
16196
16028
|
axios.isCancel = isCancel;
|
|
16197
16029
|
axios.VERSION = VERSION;
|
|
16198
16030
|
axios.toFormData = toFormData;
|
|
16199
|
-
axios.AxiosError = AxiosError
|
|
16031
|
+
axios.AxiosError = AxiosError;
|
|
16200
16032
|
axios.Cancel = axios.CanceledError;
|
|
16201
16033
|
axios.all = function all(promises) {
|
|
16202
16034
|
return Promise.all(promises);
|
|
@@ -16204,10 +16036,10 @@ var require_axios = __commonJS({
|
|
|
16204
16036
|
axios.spread = spread;
|
|
16205
16037
|
axios.isAxiosError = isAxiosError;
|
|
16206
16038
|
axios.mergeConfig = mergeConfig;
|
|
16207
|
-
axios.AxiosHeaders = AxiosHeaders
|
|
16039
|
+
axios.AxiosHeaders = AxiosHeaders;
|
|
16208
16040
|
axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
16209
16041
|
axios.getAdapter = adapters.getAdapter;
|
|
16210
|
-
axios.HttpStatusCode = HttpStatusCode
|
|
16042
|
+
axios.HttpStatusCode = HttpStatusCode;
|
|
16211
16043
|
axios.default = axios;
|
|
16212
16044
|
module2.exports = axios;
|
|
16213
16045
|
}
|
|
@@ -22796,7 +22628,7 @@ mime-types/index.js:
|
|
|
22796
22628
|
*)
|
|
22797
22629
|
|
|
22798
22630
|
axios/dist/node/axios.cjs:
|
|
22799
|
-
(*! Axios v1.
|
|
22631
|
+
(*! Axios v1.14.0 Copyright (c) 2026 Matt Zabriskie and contributors *)
|
|
22800
22632
|
|
|
22801
22633
|
safe-buffer/index.js:
|
|
22802
22634
|
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|