piral-cli 1.10.2 → 1.10.3-beta.04d3bdb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/common/constants.d.ts +1 -1
- package/lib/common/constants.js +1 -0
- package/lib/common/constants.js.map +1 -1
- package/lib/external/index.js +785 -503
- package/package.json +2 -2
- package/src/common/constants.ts +1 -0
package/lib/external/index.js
CHANGED
|
@@ -19416,7 +19416,7 @@ var require_form_data = __commonJS({
|
|
|
19416
19416
|
var path3 = require("path");
|
|
19417
19417
|
var http3 = require("http");
|
|
19418
19418
|
var https2 = require("https");
|
|
19419
|
-
var
|
|
19419
|
+
var parseUrl2 = require("url").parse;
|
|
19420
19420
|
var fs3 = require("fs");
|
|
19421
19421
|
var Stream2 = require("stream").Stream;
|
|
19422
19422
|
var crypto2 = require("crypto");
|
|
@@ -19669,7 +19669,7 @@ var require_form_data = __commonJS({
|
|
|
19669
19669
|
var options;
|
|
19670
19670
|
var defaults3 = { method: "post" };
|
|
19671
19671
|
if (typeof params === "string") {
|
|
19672
|
-
params =
|
|
19672
|
+
params = parseUrl2(params);
|
|
19673
19673
|
options = populate({
|
|
19674
19674
|
port: params.port,
|
|
19675
19675
|
path: params.pathname,
|
|
@@ -19721,81 +19721,11 @@ var require_form_data = __commonJS({
|
|
|
19721
19721
|
FormData4.prototype.toString = function() {
|
|
19722
19722
|
return "[object FormData]";
|
|
19723
19723
|
};
|
|
19724
|
-
setToStringTag(FormData4, "FormData");
|
|
19724
|
+
setToStringTag(FormData4.prototype, "FormData");
|
|
19725
19725
|
module2.exports = FormData4;
|
|
19726
19726
|
}
|
|
19727
19727
|
});
|
|
19728
19728
|
|
|
19729
|
-
// ../../../node_modules/proxy-from-env/index.js
|
|
19730
|
-
var require_proxy_from_env = __commonJS({
|
|
19731
|
-
"../../../node_modules/proxy-from-env/index.js"(exports2) {
|
|
19732
|
-
"use strict";
|
|
19733
|
-
var parseUrl = require("url").parse;
|
|
19734
|
-
var DEFAULT_PORTS = {
|
|
19735
|
-
ftp: 21,
|
|
19736
|
-
gopher: 70,
|
|
19737
|
-
http: 80,
|
|
19738
|
-
https: 443,
|
|
19739
|
-
ws: 80,
|
|
19740
|
-
wss: 443
|
|
19741
|
-
};
|
|
19742
|
-
var stringEndsWith = String.prototype.endsWith || function(s3) {
|
|
19743
|
-
return s3.length <= this.length && this.indexOf(s3, this.length - s3.length) !== -1;
|
|
19744
|
-
};
|
|
19745
|
-
function getProxyForUrl(url2) {
|
|
19746
|
-
var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
|
|
19747
|
-
var proto4 = parsedUrl.protocol;
|
|
19748
|
-
var hostname = parsedUrl.host;
|
|
19749
|
-
var port = parsedUrl.port;
|
|
19750
|
-
if (typeof hostname !== "string" || !hostname || typeof proto4 !== "string") {
|
|
19751
|
-
return "";
|
|
19752
|
-
}
|
|
19753
|
-
proto4 = proto4.split(":", 1)[0];
|
|
19754
|
-
hostname = hostname.replace(/:\d*$/, "");
|
|
19755
|
-
port = parseInt(port) || DEFAULT_PORTS[proto4] || 0;
|
|
19756
|
-
if (!shouldProxy(hostname, port)) {
|
|
19757
|
-
return "";
|
|
19758
|
-
}
|
|
19759
|
-
var proxy = getEnv("npm_config_" + proto4 + "_proxy") || getEnv(proto4 + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy");
|
|
19760
|
-
if (proxy && proxy.indexOf("://") === -1) {
|
|
19761
|
-
proxy = proto4 + "://" + proxy;
|
|
19762
|
-
}
|
|
19763
|
-
return proxy;
|
|
19764
|
-
}
|
|
19765
|
-
function shouldProxy(hostname, port) {
|
|
19766
|
-
var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase();
|
|
19767
|
-
if (!NO_PROXY) {
|
|
19768
|
-
return true;
|
|
19769
|
-
}
|
|
19770
|
-
if (NO_PROXY === "*") {
|
|
19771
|
-
return false;
|
|
19772
|
-
}
|
|
19773
|
-
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
19774
|
-
if (!proxy) {
|
|
19775
|
-
return true;
|
|
19776
|
-
}
|
|
19777
|
-
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
19778
|
-
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
19779
|
-
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
19780
|
-
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
19781
|
-
return true;
|
|
19782
|
-
}
|
|
19783
|
-
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
19784
|
-
return hostname !== parsedProxyHostname;
|
|
19785
|
-
}
|
|
19786
|
-
if (parsedProxyHostname.charAt(0) === "*") {
|
|
19787
|
-
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
19788
|
-
}
|
|
19789
|
-
return !stringEndsWith.call(hostname, parsedProxyHostname);
|
|
19790
|
-
});
|
|
19791
|
-
}
|
|
19792
|
-
function getEnv(key) {
|
|
19793
|
-
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
19794
|
-
}
|
|
19795
|
-
exports2.getProxyForUrl = getProxyForUrl;
|
|
19796
|
-
}
|
|
19797
|
-
});
|
|
19798
|
-
|
|
19799
19729
|
// ../../../node_modules/debug/node_modules/ms/index.js
|
|
19800
19730
|
var require_ms = __commonJS({
|
|
19801
19731
|
"../../../node_modules/debug/node_modules/ms/index.js"(exports2, module2) {
|
|
@@ -20562,7 +20492,7 @@ var require_follow_redirects = __commonJS({
|
|
|
20562
20492
|
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
20563
20493
|
}
|
|
20564
20494
|
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
20565
|
-
var currentUrlParts =
|
|
20495
|
+
var currentUrlParts = parseUrl2(this._currentUrl);
|
|
20566
20496
|
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
20567
20497
|
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
20568
20498
|
var redirectUrl = resolveUrl(location, currentUrl);
|
|
@@ -20601,7 +20531,7 @@ var require_follow_redirects = __commonJS({
|
|
|
20601
20531
|
if (isURL(input)) {
|
|
20602
20532
|
input = spreadUrlObject(input);
|
|
20603
20533
|
} else if (isString2(input)) {
|
|
20604
|
-
input = spreadUrlObject(
|
|
20534
|
+
input = spreadUrlObject(parseUrl2(input));
|
|
20605
20535
|
} else {
|
|
20606
20536
|
callback = options;
|
|
20607
20537
|
options = validateUrl(input);
|
|
@@ -20637,7 +20567,7 @@ var require_follow_redirects = __commonJS({
|
|
|
20637
20567
|
}
|
|
20638
20568
|
function noop2() {
|
|
20639
20569
|
}
|
|
20640
|
-
function
|
|
20570
|
+
function parseUrl2(input) {
|
|
20641
20571
|
var parsed;
|
|
20642
20572
|
if (useNativeURL) {
|
|
20643
20573
|
parsed = new URL2(input);
|
|
@@ -20650,7 +20580,7 @@ var require_follow_redirects = __commonJS({
|
|
|
20650
20580
|
return parsed;
|
|
20651
20581
|
}
|
|
20652
20582
|
function resolveUrl(relative, base) {
|
|
20653
|
-
return useNativeURL ? new URL2(relative, base) :
|
|
20583
|
+
return useNativeURL ? new URL2(relative, base) : parseUrl2(url2.resolve(base, relative));
|
|
20654
20584
|
}
|
|
20655
20585
|
function validateUrl(input) {
|
|
20656
20586
|
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
|
@@ -48613,8 +48543,8 @@ var require_lib5 = __commonJS({
|
|
|
48613
48543
|
};
|
|
48614
48544
|
}
|
|
48615
48545
|
var mergeExports = (obj, exports3) => {
|
|
48616
|
-
const
|
|
48617
|
-
Object.defineProperties(obj,
|
|
48546
|
+
const descriptors = Object.getOwnPropertyDescriptors(exports3);
|
|
48547
|
+
Object.defineProperties(obj, descriptors);
|
|
48618
48548
|
return (
|
|
48619
48549
|
/** @type {A & B} */
|
|
48620
48550
|
Object.freeze(obj)
|
|
@@ -51793,7 +51723,7 @@ var qt = class extends st {
|
|
|
51793
51723
|
if (h.includes("..") || Oe && /^[a-z]:\.\.$/i.test(h[0] ?? "")) {
|
|
51794
51724
|
if (e === "path" || r === "Link") return this.warn("TAR_ENTRY_ERROR", `${e} contains '..'`, { entry: t, [e]: i }), false;
|
|
51795
51725
|
{
|
|
51796
|
-
let a = import_node_path5.default.posix.dirname(t.path), l = import_node_path5.default.posix.normalize(import_node_path5.default.posix.join(a,
|
|
51726
|
+
let a = import_node_path5.default.posix.dirname(t.path), l = import_node_path5.default.posix.normalize(import_node_path5.default.posix.join(a, h.join("/")));
|
|
51797
51727
|
if (l.startsWith("../") || l === "..") return this.warn("TAR_ENTRY_ERROR", `${e} escapes extraction directory`, { entry: t, [e]: i }), false;
|
|
51798
51728
|
}
|
|
51799
51729
|
}
|
|
@@ -53495,8 +53425,8 @@ var isPlainObject = (val) => {
|
|
|
53495
53425
|
if (kindOf(val) !== "object") {
|
|
53496
53426
|
return false;
|
|
53497
53427
|
}
|
|
53498
|
-
const
|
|
53499
|
-
return (
|
|
53428
|
+
const prototype2 = getPrototypeOf(val);
|
|
53429
|
+
return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
|
|
53500
53430
|
};
|
|
53501
53431
|
var isEmptyObject = (val) => {
|
|
53502
53432
|
if (!isObject(val) || isBuffer(val)) {
|
|
@@ -53510,17 +53440,37 @@ var isEmptyObject = (val) => {
|
|
|
53510
53440
|
};
|
|
53511
53441
|
var isDate = kindOfTest("Date");
|
|
53512
53442
|
var isFile = kindOfTest("File");
|
|
53443
|
+
var isReactNativeBlob = (value) => {
|
|
53444
|
+
return !!(value && typeof value.uri !== "undefined");
|
|
53445
|
+
};
|
|
53446
|
+
var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
53513
53447
|
var isBlob = kindOfTest("Blob");
|
|
53514
53448
|
var isFileList = kindOfTest("FileList");
|
|
53515
53449
|
var isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
53450
|
+
function getGlobal() {
|
|
53451
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
53452
|
+
if (typeof self !== "undefined") return self;
|
|
53453
|
+
if (typeof window !== "undefined") return window;
|
|
53454
|
+
if (typeof global !== "undefined") return global;
|
|
53455
|
+
return {};
|
|
53456
|
+
}
|
|
53457
|
+
var G2 = getGlobal();
|
|
53458
|
+
var FormDataCtor = typeof G2.FormData !== "undefined" ? G2.FormData : void 0;
|
|
53516
53459
|
var isFormData = (thing) => {
|
|
53517
53460
|
let kind;
|
|
53518
|
-
return thing && (
|
|
53461
|
+
return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
53519
53462
|
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
53520
53463
|
};
|
|
53521
53464
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
53522
|
-
var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
53523
|
-
|
|
53465
|
+
var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
53466
|
+
"ReadableStream",
|
|
53467
|
+
"Request",
|
|
53468
|
+
"Response",
|
|
53469
|
+
"Headers"
|
|
53470
|
+
].map(kindOfTest);
|
|
53471
|
+
var trim = (str) => {
|
|
53472
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
53473
|
+
};
|
|
53524
53474
|
function forEach(obj, fn2, { allOwnKeys = false } = {}) {
|
|
53525
53475
|
if (obj === null || typeof obj === "undefined") {
|
|
53526
53476
|
return;
|
|
@@ -53572,6 +53522,9 @@ function merge() {
|
|
|
53572
53522
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
53573
53523
|
const result = {};
|
|
53574
53524
|
const assignValue = (val, key) => {
|
|
53525
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
53526
|
+
return;
|
|
53527
|
+
}
|
|
53575
53528
|
const targetKey = caseless && findKey(result, key) || key;
|
|
53576
53529
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
53577
53530
|
result[targetKey] = merge(result[targetKey], val);
|
|
@@ -53589,13 +53542,27 @@ function merge() {
|
|
|
53589
53542
|
return result;
|
|
53590
53543
|
}
|
|
53591
53544
|
var extend = (a, b2, thisArg, { allOwnKeys } = {}) => {
|
|
53592
|
-
forEach(
|
|
53593
|
-
|
|
53594
|
-
|
|
53595
|
-
|
|
53596
|
-
|
|
53597
|
-
|
|
53598
|
-
|
|
53545
|
+
forEach(
|
|
53546
|
+
b2,
|
|
53547
|
+
(val, key) => {
|
|
53548
|
+
if (thisArg && isFunction(val)) {
|
|
53549
|
+
Object.defineProperty(a, key, {
|
|
53550
|
+
value: bind(val, thisArg),
|
|
53551
|
+
writable: true,
|
|
53552
|
+
enumerable: true,
|
|
53553
|
+
configurable: true
|
|
53554
|
+
});
|
|
53555
|
+
} else {
|
|
53556
|
+
Object.defineProperty(a, key, {
|
|
53557
|
+
value: val,
|
|
53558
|
+
writable: true,
|
|
53559
|
+
enumerable: true,
|
|
53560
|
+
configurable: true
|
|
53561
|
+
});
|
|
53562
|
+
}
|
|
53563
|
+
},
|
|
53564
|
+
{ allOwnKeys }
|
|
53565
|
+
);
|
|
53599
53566
|
return a;
|
|
53600
53567
|
};
|
|
53601
53568
|
var stripBOM = (content) => {
|
|
@@ -53604,9 +53571,14 @@ var stripBOM = (content) => {
|
|
|
53604
53571
|
}
|
|
53605
53572
|
return content;
|
|
53606
53573
|
};
|
|
53607
|
-
var inherits = (constructor, superConstructor, props,
|
|
53608
|
-
constructor.prototype = Object.create(superConstructor.prototype,
|
|
53609
|
-
constructor.prototype
|
|
53574
|
+
var inherits = (constructor, superConstructor, props, descriptors) => {
|
|
53575
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
53576
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
53577
|
+
value: constructor,
|
|
53578
|
+
writable: true,
|
|
53579
|
+
enumerable: false,
|
|
53580
|
+
configurable: true
|
|
53581
|
+
});
|
|
53610
53582
|
Object.defineProperty(constructor, "super", {
|
|
53611
53583
|
value: superConstructor.prototype
|
|
53612
53584
|
});
|
|
@@ -53677,19 +53649,16 @@ var matchAll = (regExp, str) => {
|
|
|
53677
53649
|
};
|
|
53678
53650
|
var isHTMLForm = kindOfTest("HTMLFormElement");
|
|
53679
53651
|
var toCamelCase = (str) => {
|
|
53680
|
-
return str.toLowerCase().replace(
|
|
53681
|
-
|
|
53682
|
-
|
|
53683
|
-
return p1.toUpperCase() + p2;
|
|
53684
|
-
}
|
|
53685
|
-
);
|
|
53652
|
+
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m2, p1, p2) {
|
|
53653
|
+
return p1.toUpperCase() + p2;
|
|
53654
|
+
});
|
|
53686
53655
|
};
|
|
53687
53656
|
var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
53688
53657
|
var isRegExp = kindOfTest("RegExp");
|
|
53689
53658
|
var reduceDescriptors = (obj, reducer) => {
|
|
53690
|
-
const
|
|
53659
|
+
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
53691
53660
|
const reducedDescriptors = {};
|
|
53692
|
-
forEach(
|
|
53661
|
+
forEach(descriptors, (descriptor, name) => {
|
|
53693
53662
|
let ret;
|
|
53694
53663
|
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
53695
53664
|
reducedDescriptors[name] = ret || descriptor;
|
|
@@ -53766,20 +53735,21 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
53766
53735
|
return setImmediate;
|
|
53767
53736
|
}
|
|
53768
53737
|
return postMessageSupported ? ((token, callbacks) => {
|
|
53769
|
-
_global.addEventListener(
|
|
53770
|
-
|
|
53771
|
-
|
|
53772
|
-
|
|
53773
|
-
|
|
53738
|
+
_global.addEventListener(
|
|
53739
|
+
"message",
|
|
53740
|
+
({ source, data }) => {
|
|
53741
|
+
if (source === _global && data === token) {
|
|
53742
|
+
callbacks.length && callbacks.shift()();
|
|
53743
|
+
}
|
|
53744
|
+
},
|
|
53745
|
+
false
|
|
53746
|
+
);
|
|
53774
53747
|
return (cb) => {
|
|
53775
53748
|
callbacks.push(cb);
|
|
53776
53749
|
_global.postMessage(token, "*");
|
|
53777
53750
|
};
|
|
53778
53751
|
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
53779
|
-
})(
|
|
53780
|
-
typeof setImmediate === "function",
|
|
53781
|
-
isFunction(_global.postMessage)
|
|
53782
|
-
);
|
|
53752
|
+
})(typeof setImmediate === "function", isFunction(_global.postMessage));
|
|
53783
53753
|
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
53784
53754
|
var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
53785
53755
|
var utils_default = {
|
|
@@ -53801,6 +53771,8 @@ var utils_default = {
|
|
|
53801
53771
|
isUndefined,
|
|
53802
53772
|
isDate,
|
|
53803
53773
|
isFile,
|
|
53774
|
+
isReactNativeBlob,
|
|
53775
|
+
isReactNative,
|
|
53804
53776
|
isBlob,
|
|
53805
53777
|
isRegExp,
|
|
53806
53778
|
isFunction,
|
|
@@ -53844,25 +53816,47 @@ var utils_default = {
|
|
|
53844
53816
|
};
|
|
53845
53817
|
|
|
53846
53818
|
// ../../../node_modules/axios/lib/core/AxiosError.js
|
|
53847
|
-
|
|
53848
|
-
|
|
53849
|
-
|
|
53850
|
-
|
|
53851
|
-
|
|
53852
|
-
|
|
53819
|
+
var AxiosError = class _AxiosError extends Error {
|
|
53820
|
+
static from(error, code, config, request, response, customProps) {
|
|
53821
|
+
const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
|
|
53822
|
+
axiosError.cause = error;
|
|
53823
|
+
axiosError.name = error.name;
|
|
53824
|
+
if (error.status != null && axiosError.status == null) {
|
|
53825
|
+
axiosError.status = error.status;
|
|
53826
|
+
}
|
|
53827
|
+
customProps && Object.assign(axiosError, customProps);
|
|
53828
|
+
return axiosError;
|
|
53853
53829
|
}
|
|
53854
|
-
|
|
53855
|
-
|
|
53856
|
-
|
|
53857
|
-
|
|
53858
|
-
|
|
53859
|
-
|
|
53860
|
-
|
|
53861
|
-
|
|
53830
|
+
/**
|
|
53831
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
53832
|
+
*
|
|
53833
|
+
* @param {string} message The error message.
|
|
53834
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
53835
|
+
* @param {Object} [config] The config.
|
|
53836
|
+
* @param {Object} [request] The request.
|
|
53837
|
+
* @param {Object} [response] The response.
|
|
53838
|
+
*
|
|
53839
|
+
* @returns {Error} The created error.
|
|
53840
|
+
*/
|
|
53841
|
+
constructor(message, code, config, request, response) {
|
|
53842
|
+
super(message);
|
|
53843
|
+
Object.defineProperty(this, "message", {
|
|
53844
|
+
value: message,
|
|
53845
|
+
enumerable: true,
|
|
53846
|
+
writable: true,
|
|
53847
|
+
configurable: true
|
|
53848
|
+
});
|
|
53849
|
+
this.name = "AxiosError";
|
|
53850
|
+
this.isAxiosError = true;
|
|
53851
|
+
code && (this.code = code);
|
|
53852
|
+
config && (this.config = config);
|
|
53853
|
+
request && (this.request = request);
|
|
53854
|
+
if (response) {
|
|
53855
|
+
this.response = response;
|
|
53856
|
+
this.status = response.status;
|
|
53857
|
+
}
|
|
53862
53858
|
}
|
|
53863
|
-
|
|
53864
|
-
utils_default.inherits(AxiosError, Error, {
|
|
53865
|
-
toJSON: function toJSON() {
|
|
53859
|
+
toJSON() {
|
|
53866
53860
|
return {
|
|
53867
53861
|
// Standard
|
|
53868
53862
|
message: this.message,
|
|
@@ -53881,45 +53875,19 @@ utils_default.inherits(AxiosError, Error, {
|
|
|
53881
53875
|
status: this.status
|
|
53882
53876
|
};
|
|
53883
53877
|
}
|
|
53884
|
-
});
|
|
53885
|
-
var prototype = AxiosError.prototype;
|
|
53886
|
-
var descriptors = {};
|
|
53887
|
-
[
|
|
53888
|
-
"ERR_BAD_OPTION_VALUE",
|
|
53889
|
-
"ERR_BAD_OPTION",
|
|
53890
|
-
"ECONNABORTED",
|
|
53891
|
-
"ETIMEDOUT",
|
|
53892
|
-
"ERR_NETWORK",
|
|
53893
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
53894
|
-
"ERR_DEPRECATED",
|
|
53895
|
-
"ERR_BAD_RESPONSE",
|
|
53896
|
-
"ERR_BAD_REQUEST",
|
|
53897
|
-
"ERR_CANCELED",
|
|
53898
|
-
"ERR_NOT_SUPPORT",
|
|
53899
|
-
"ERR_INVALID_URL"
|
|
53900
|
-
// eslint-disable-next-line func-names
|
|
53901
|
-
].forEach((code) => {
|
|
53902
|
-
descriptors[code] = { value: code };
|
|
53903
|
-
});
|
|
53904
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
53905
|
-
Object.defineProperty(prototype, "isAxiosError", { value: true });
|
|
53906
|
-
AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
53907
|
-
const axiosError = Object.create(prototype);
|
|
53908
|
-
utils_default.toFlatObject(error, axiosError, function filter4(obj) {
|
|
53909
|
-
return obj !== Error.prototype;
|
|
53910
|
-
}, (prop) => {
|
|
53911
|
-
return prop !== "isAxiosError";
|
|
53912
|
-
});
|
|
53913
|
-
const msg = error && error.message ? error.message : "Error";
|
|
53914
|
-
const errCode = code == null && error ? error.code : code;
|
|
53915
|
-
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
53916
|
-
if (error && axiosError.cause == null) {
|
|
53917
|
-
Object.defineProperty(axiosError, "cause", { value: error, configurable: true });
|
|
53918
|
-
}
|
|
53919
|
-
axiosError.name = error && error.name || "Error";
|
|
53920
|
-
customProps && Object.assign(axiosError, customProps);
|
|
53921
|
-
return axiosError;
|
|
53922
53878
|
};
|
|
53879
|
+
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
53880
|
+
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
53881
|
+
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
53882
|
+
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
53883
|
+
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
53884
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
53885
|
+
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
53886
|
+
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
53887
|
+
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
53888
|
+
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
53889
|
+
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
53890
|
+
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
53923
53891
|
var AxiosError_default = AxiosError;
|
|
53924
53892
|
|
|
53925
53893
|
// ../../../node_modules/axios/lib/platform/node/classes/FormData.js
|
|
@@ -53951,13 +53919,18 @@ function toFormData(obj, formData, options) {
|
|
|
53951
53919
|
throw new TypeError("target must be an object");
|
|
53952
53920
|
}
|
|
53953
53921
|
formData = formData || new (FormData_default || FormData)();
|
|
53954
|
-
options = utils_default.toFlatObject(
|
|
53955
|
-
|
|
53956
|
-
|
|
53957
|
-
|
|
53958
|
-
|
|
53959
|
-
|
|
53960
|
-
|
|
53922
|
+
options = utils_default.toFlatObject(
|
|
53923
|
+
options,
|
|
53924
|
+
{
|
|
53925
|
+
metaTokens: true,
|
|
53926
|
+
dots: false,
|
|
53927
|
+
indexes: false
|
|
53928
|
+
},
|
|
53929
|
+
false,
|
|
53930
|
+
function defined(option, source) {
|
|
53931
|
+
return !utils_default.isUndefined(source[option]);
|
|
53932
|
+
}
|
|
53933
|
+
);
|
|
53961
53934
|
const metaTokens = options.metaTokens;
|
|
53962
53935
|
const visitor = options.visitor || defaultVisitor;
|
|
53963
53936
|
const dots = options.dots;
|
|
@@ -53985,6 +53958,10 @@ function toFormData(obj, formData, options) {
|
|
|
53985
53958
|
}
|
|
53986
53959
|
function defaultVisitor(value, key, path3) {
|
|
53987
53960
|
let arr = value;
|
|
53961
|
+
if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
|
|
53962
|
+
formData.append(renderKey(path3, key, dots), convertValue(value));
|
|
53963
|
+
return false;
|
|
53964
|
+
}
|
|
53988
53965
|
if (value && !path3 && typeof value === "object") {
|
|
53989
53966
|
if (utils_default.endsWith(key, "{}")) {
|
|
53990
53967
|
key = metaTokens ? key : key.slice(0, -2);
|
|
@@ -54020,13 +53997,7 @@ function toFormData(obj, formData, options) {
|
|
|
54020
53997
|
}
|
|
54021
53998
|
stack.push(value);
|
|
54022
53999
|
utils_default.forEach(value, function each(el, key) {
|
|
54023
|
-
const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(
|
|
54024
|
-
formData,
|
|
54025
|
-
el,
|
|
54026
|
-
utils_default.isString(key) ? key.trim() : key,
|
|
54027
|
-
path3,
|
|
54028
|
-
exposedHelpers
|
|
54029
|
-
);
|
|
54000
|
+
const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path3, exposedHelpers);
|
|
54030
54001
|
if (result === true) {
|
|
54031
54002
|
build(el, path3 ? path3.concat(key) : [key]);
|
|
54032
54003
|
}
|
|
@@ -54060,11 +54031,11 @@ function AxiosURLSearchParams(params, options) {
|
|
|
54060
54031
|
this._pairs = [];
|
|
54061
54032
|
params && toFormData_default(params, this, options);
|
|
54062
54033
|
}
|
|
54063
|
-
var
|
|
54064
|
-
|
|
54034
|
+
var prototype = AxiosURLSearchParams.prototype;
|
|
54035
|
+
prototype.append = function append(name, value) {
|
|
54065
54036
|
this._pairs.push([name, value]);
|
|
54066
54037
|
};
|
|
54067
|
-
|
|
54038
|
+
prototype.toString = function toString2(encoder) {
|
|
54068
54039
|
const _encode = encoder ? function(value) {
|
|
54069
54040
|
return encoder.call(this, value, encode);
|
|
54070
54041
|
} : encode;
|
|
@@ -54083,17 +54054,15 @@ function buildURL(url2, params, options) {
|
|
|
54083
54054
|
return url2;
|
|
54084
54055
|
}
|
|
54085
54056
|
const _encode = options && options.encode || encode2;
|
|
54086
|
-
|
|
54087
|
-
options
|
|
54088
|
-
|
|
54089
|
-
|
|
54090
|
-
}
|
|
54091
|
-
const serializeFn = options && options.serialize;
|
|
54057
|
+
const _options = utils_default.isFunction(options) ? {
|
|
54058
|
+
serialize: options
|
|
54059
|
+
} : options;
|
|
54060
|
+
const serializeFn = _options && _options.serialize;
|
|
54092
54061
|
let serializedParams;
|
|
54093
54062
|
if (serializeFn) {
|
|
54094
|
-
serializedParams = serializeFn(params,
|
|
54063
|
+
serializedParams = serializeFn(params, _options);
|
|
54095
54064
|
} else {
|
|
54096
|
-
serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params,
|
|
54065
|
+
serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, _options).toString(_encode);
|
|
54097
54066
|
}
|
|
54098
54067
|
if (serializedParams) {
|
|
54099
54068
|
const hashmarkIndex = url2.indexOf("#");
|
|
@@ -54115,6 +54084,7 @@ var InterceptorManager = class {
|
|
|
54115
54084
|
*
|
|
54116
54085
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
54117
54086
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
54087
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
54118
54088
|
*
|
|
54119
54089
|
* @return {Number} An ID used to remove interceptor later
|
|
54120
54090
|
*/
|
|
@@ -54173,7 +54143,8 @@ var InterceptorManager_default = InterceptorManager;
|
|
|
54173
54143
|
var transitional_default = {
|
|
54174
54144
|
silentJSONParsing: true,
|
|
54175
54145
|
forcedJSONParsing: true,
|
|
54176
|
-
clarifyTimeoutError: false
|
|
54146
|
+
clarifyTimeoutError: false,
|
|
54147
|
+
legacyInterceptorReqResOrdering: true
|
|
54177
54148
|
};
|
|
54178
54149
|
|
|
54179
54150
|
// ../../../node_modules/axios/lib/platform/node/index.js
|
|
@@ -54321,70 +54292,74 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
54321
54292
|
var defaults = {
|
|
54322
54293
|
transitional: transitional_default,
|
|
54323
54294
|
adapter: ["xhr", "http", "fetch"],
|
|
54324
|
-
transformRequest: [
|
|
54325
|
-
|
|
54326
|
-
|
|
54327
|
-
|
|
54328
|
-
|
|
54329
|
-
|
|
54330
|
-
|
|
54331
|
-
|
|
54332
|
-
|
|
54333
|
-
|
|
54334
|
-
|
|
54335
|
-
|
|
54336
|
-
|
|
54337
|
-
|
|
54338
|
-
|
|
54339
|
-
|
|
54340
|
-
|
|
54341
|
-
|
|
54342
|
-
|
|
54343
|
-
|
|
54344
|
-
|
|
54345
|
-
|
|
54346
|
-
|
|
54347
|
-
if (
|
|
54348
|
-
|
|
54295
|
+
transformRequest: [
|
|
54296
|
+
function transformRequest(data, headers) {
|
|
54297
|
+
const contentType = headers.getContentType() || "";
|
|
54298
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
54299
|
+
const isObjectPayload = utils_default.isObject(data);
|
|
54300
|
+
if (isObjectPayload && utils_default.isHTMLForm(data)) {
|
|
54301
|
+
data = new FormData(data);
|
|
54302
|
+
}
|
|
54303
|
+
const isFormData2 = utils_default.isFormData(data);
|
|
54304
|
+
if (isFormData2) {
|
|
54305
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
|
|
54306
|
+
}
|
|
54307
|
+
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
|
|
54308
|
+
return data;
|
|
54309
|
+
}
|
|
54310
|
+
if (utils_default.isArrayBufferView(data)) {
|
|
54311
|
+
return data.buffer;
|
|
54312
|
+
}
|
|
54313
|
+
if (utils_default.isURLSearchParams(data)) {
|
|
54314
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
54315
|
+
return data.toString();
|
|
54316
|
+
}
|
|
54317
|
+
let isFileList2;
|
|
54318
|
+
if (isObjectPayload) {
|
|
54319
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
54320
|
+
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
54321
|
+
}
|
|
54322
|
+
if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
54323
|
+
const _FormData = this.env && this.env.FormData;
|
|
54324
|
+
return toFormData_default(
|
|
54325
|
+
isFileList2 ? { "files[]": data } : data,
|
|
54326
|
+
_FormData && new _FormData(),
|
|
54327
|
+
this.formSerializer
|
|
54328
|
+
);
|
|
54329
|
+
}
|
|
54349
54330
|
}
|
|
54350
|
-
if (
|
|
54351
|
-
|
|
54352
|
-
return
|
|
54353
|
-
isFileList2 ? { "files[]": data } : data,
|
|
54354
|
-
_FormData && new _FormData(),
|
|
54355
|
-
this.formSerializer
|
|
54356
|
-
);
|
|
54331
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
54332
|
+
headers.setContentType("application/json", false);
|
|
54333
|
+
return stringifySafely(data);
|
|
54357
54334
|
}
|
|
54358
|
-
}
|
|
54359
|
-
if (isObjectPayload || hasJSONContentType) {
|
|
54360
|
-
headers.setContentType("application/json", false);
|
|
54361
|
-
return stringifySafely(data);
|
|
54362
|
-
}
|
|
54363
|
-
return data;
|
|
54364
|
-
}],
|
|
54365
|
-
transformResponse: [function transformResponse(data) {
|
|
54366
|
-
const transitional2 = this.transitional || defaults.transitional;
|
|
54367
|
-
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
54368
|
-
const JSONRequested = this.responseType === "json";
|
|
54369
|
-
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
54370
54335
|
return data;
|
|
54371
54336
|
}
|
|
54372
|
-
|
|
54373
|
-
|
|
54374
|
-
|
|
54375
|
-
|
|
54376
|
-
|
|
54377
|
-
|
|
54378
|
-
|
|
54379
|
-
|
|
54380
|
-
|
|
54337
|
+
],
|
|
54338
|
+
transformResponse: [
|
|
54339
|
+
function transformResponse(data) {
|
|
54340
|
+
const transitional2 = this.transitional || defaults.transitional;
|
|
54341
|
+
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
54342
|
+
const JSONRequested = this.responseType === "json";
|
|
54343
|
+
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
54344
|
+
return data;
|
|
54345
|
+
}
|
|
54346
|
+
if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
54347
|
+
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
54348
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
54349
|
+
try {
|
|
54350
|
+
return JSON.parse(data, this.parseReviver);
|
|
54351
|
+
} catch (e) {
|
|
54352
|
+
if (strictJSONParsing) {
|
|
54353
|
+
if (e.name === "SyntaxError") {
|
|
54354
|
+
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
|
|
54355
|
+
}
|
|
54356
|
+
throw e;
|
|
54381
54357
|
}
|
|
54382
|
-
throw e;
|
|
54383
54358
|
}
|
|
54384
54359
|
}
|
|
54360
|
+
return data;
|
|
54385
54361
|
}
|
|
54386
|
-
|
|
54387
|
-
}],
|
|
54362
|
+
],
|
|
54388
54363
|
/**
|
|
54389
54364
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
54390
54365
|
* timeout is not created.
|
|
@@ -54403,7 +54378,7 @@ var defaults = {
|
|
|
54403
54378
|
},
|
|
54404
54379
|
headers: {
|
|
54405
54380
|
common: {
|
|
54406
|
-
|
|
54381
|
+
Accept: "application/json, text/plain, */*",
|
|
54407
54382
|
"Content-Type": void 0
|
|
54408
54383
|
}
|
|
54409
54384
|
}
|
|
@@ -54460,14 +54435,38 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
54460
54435
|
|
|
54461
54436
|
// ../../../node_modules/axios/lib/core/AxiosHeaders.js
|
|
54462
54437
|
var $internals = /* @__PURE__ */ Symbol("internals");
|
|
54438
|
+
var isValidHeaderValue = (value) => !/[\r\n]/.test(value);
|
|
54439
|
+
function assertValidHeaderValue(value, header) {
|
|
54440
|
+
if (value === false || value == null) {
|
|
54441
|
+
return;
|
|
54442
|
+
}
|
|
54443
|
+
if (utils_default.isArray(value)) {
|
|
54444
|
+
value.forEach((v2) => assertValidHeaderValue(v2, header));
|
|
54445
|
+
return;
|
|
54446
|
+
}
|
|
54447
|
+
if (!isValidHeaderValue(String(value))) {
|
|
54448
|
+
throw new Error(`Invalid character in header content ["${header}"]`);
|
|
54449
|
+
}
|
|
54450
|
+
}
|
|
54463
54451
|
function normalizeHeader(header) {
|
|
54464
54452
|
return header && String(header).trim().toLowerCase();
|
|
54465
54453
|
}
|
|
54454
|
+
function stripTrailingCRLF(str) {
|
|
54455
|
+
let end = str.length;
|
|
54456
|
+
while (end > 0) {
|
|
54457
|
+
const charCode = str.charCodeAt(end - 1);
|
|
54458
|
+
if (charCode !== 10 && charCode !== 13) {
|
|
54459
|
+
break;
|
|
54460
|
+
}
|
|
54461
|
+
end -= 1;
|
|
54462
|
+
}
|
|
54463
|
+
return end === str.length ? str : str.slice(0, end);
|
|
54464
|
+
}
|
|
54466
54465
|
function normalizeValue(value) {
|
|
54467
54466
|
if (value === false || value == null) {
|
|
54468
54467
|
return value;
|
|
54469
54468
|
}
|
|
54470
|
-
return utils_default.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
54469
|
+
return utils_default.isArray(value) ? value.map(normalizeValue) : stripTrailingCRLF(String(value));
|
|
54471
54470
|
}
|
|
54472
54471
|
function parseTokens(str) {
|
|
54473
54472
|
const tokens = /* @__PURE__ */ Object.create(null);
|
|
@@ -54523,6 +54522,7 @@ var AxiosHeaders = class {
|
|
|
54523
54522
|
}
|
|
54524
54523
|
const key = utils_default.findKey(self2, lHeader);
|
|
54525
54524
|
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
54525
|
+
assertValidHeaderValue(_value, _header);
|
|
54526
54526
|
self2[key || _header] = normalizeValue(_value);
|
|
54527
54527
|
}
|
|
54528
54528
|
}
|
|
@@ -54662,11 +54662,11 @@ var AxiosHeaders = class {
|
|
|
54662
54662
|
accessors: {}
|
|
54663
54663
|
};
|
|
54664
54664
|
const accessors = internals.accessors;
|
|
54665
|
-
const
|
|
54665
|
+
const prototype2 = this.prototype;
|
|
54666
54666
|
function defineAccessor(_header) {
|
|
54667
54667
|
const lHeader = normalizeHeader(_header);
|
|
54668
54668
|
if (!accessors[lHeader]) {
|
|
54669
|
-
buildAccessors(
|
|
54669
|
+
buildAccessors(prototype2, _header);
|
|
54670
54670
|
accessors[lHeader] = true;
|
|
54671
54671
|
}
|
|
54672
54672
|
}
|
|
@@ -54674,7 +54674,14 @@ var AxiosHeaders = class {
|
|
|
54674
54674
|
return this;
|
|
54675
54675
|
}
|
|
54676
54676
|
};
|
|
54677
|
-
AxiosHeaders.accessor([
|
|
54677
|
+
AxiosHeaders.accessor([
|
|
54678
|
+
"Content-Type",
|
|
54679
|
+
"Content-Length",
|
|
54680
|
+
"Accept",
|
|
54681
|
+
"Accept-Encoding",
|
|
54682
|
+
"User-Agent",
|
|
54683
|
+
"Authorization"
|
|
54684
|
+
]);
|
|
54678
54685
|
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
54679
54686
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
54680
54687
|
return {
|
|
@@ -54706,13 +54713,22 @@ function isCancel(value) {
|
|
|
54706
54713
|
}
|
|
54707
54714
|
|
|
54708
54715
|
// ../../../node_modules/axios/lib/cancel/CanceledError.js
|
|
54709
|
-
|
|
54710
|
-
|
|
54711
|
-
|
|
54712
|
-
|
|
54713
|
-
|
|
54714
|
-
|
|
54715
|
-
}
|
|
54716
|
+
var CanceledError = class extends AxiosError_default {
|
|
54717
|
+
/**
|
|
54718
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
54719
|
+
*
|
|
54720
|
+
* @param {string=} message The message.
|
|
54721
|
+
* @param {Object=} config The config.
|
|
54722
|
+
* @param {Object=} request The request.
|
|
54723
|
+
*
|
|
54724
|
+
* @returns {CanceledError} The created error.
|
|
54725
|
+
*/
|
|
54726
|
+
constructor(message, config, request) {
|
|
54727
|
+
super(message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
|
|
54728
|
+
this.name = "CanceledError";
|
|
54729
|
+
this.__CANCEL__ = true;
|
|
54730
|
+
}
|
|
54731
|
+
};
|
|
54716
54732
|
var CanceledError_default = CanceledError;
|
|
54717
54733
|
|
|
54718
54734
|
// ../../../node_modules/axios/lib/core/settle.js
|
|
@@ -54721,18 +54737,23 @@ function settle(resolve6, reject, response) {
|
|
|
54721
54737
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
54722
54738
|
resolve6(response);
|
|
54723
54739
|
} else {
|
|
54724
|
-
reject(
|
|
54725
|
-
|
|
54726
|
-
|
|
54727
|
-
|
|
54728
|
-
|
|
54729
|
-
|
|
54730
|
-
|
|
54740
|
+
reject(
|
|
54741
|
+
new AxiosError_default(
|
|
54742
|
+
"Request failed with status code " + response.status,
|
|
54743
|
+
[AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
54744
|
+
response.config,
|
|
54745
|
+
response.request,
|
|
54746
|
+
response
|
|
54747
|
+
)
|
|
54748
|
+
);
|
|
54731
54749
|
}
|
|
54732
54750
|
}
|
|
54733
54751
|
|
|
54734
54752
|
// ../../../node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
54735
54753
|
function isAbsoluteURL(url2) {
|
|
54754
|
+
if (typeof url2 !== "string") {
|
|
54755
|
+
return false;
|
|
54756
|
+
}
|
|
54736
54757
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
54737
54758
|
}
|
|
54738
54759
|
|
|
@@ -54750,8 +54771,74 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
54750
54771
|
return requestedURL;
|
|
54751
54772
|
}
|
|
54752
54773
|
|
|
54774
|
+
// ../../../node_modules/proxy-from-env/index.js
|
|
54775
|
+
var DEFAULT_PORTS = {
|
|
54776
|
+
ftp: 21,
|
|
54777
|
+
gopher: 70,
|
|
54778
|
+
http: 80,
|
|
54779
|
+
https: 443,
|
|
54780
|
+
ws: 80,
|
|
54781
|
+
wss: 443
|
|
54782
|
+
};
|
|
54783
|
+
function parseUrl(urlString) {
|
|
54784
|
+
try {
|
|
54785
|
+
return new URL(urlString);
|
|
54786
|
+
} catch {
|
|
54787
|
+
return null;
|
|
54788
|
+
}
|
|
54789
|
+
}
|
|
54790
|
+
function getProxyForUrl(url2) {
|
|
54791
|
+
var parsedUrl = (typeof url2 === "string" ? parseUrl(url2) : url2) || {};
|
|
54792
|
+
var proto4 = parsedUrl.protocol;
|
|
54793
|
+
var hostname = parsedUrl.host;
|
|
54794
|
+
var port = parsedUrl.port;
|
|
54795
|
+
if (typeof hostname !== "string" || !hostname || typeof proto4 !== "string") {
|
|
54796
|
+
return "";
|
|
54797
|
+
}
|
|
54798
|
+
proto4 = proto4.split(":", 1)[0];
|
|
54799
|
+
hostname = hostname.replace(/:\d*$/, "");
|
|
54800
|
+
port = parseInt(port) || DEFAULT_PORTS[proto4] || 0;
|
|
54801
|
+
if (!shouldProxy(hostname, port)) {
|
|
54802
|
+
return "";
|
|
54803
|
+
}
|
|
54804
|
+
var proxy = getEnv(proto4 + "_proxy") || getEnv("all_proxy");
|
|
54805
|
+
if (proxy && proxy.indexOf("://") === -1) {
|
|
54806
|
+
proxy = proto4 + "://" + proxy;
|
|
54807
|
+
}
|
|
54808
|
+
return proxy;
|
|
54809
|
+
}
|
|
54810
|
+
function shouldProxy(hostname, port) {
|
|
54811
|
+
var NO_PROXY = getEnv("no_proxy").toLowerCase();
|
|
54812
|
+
if (!NO_PROXY) {
|
|
54813
|
+
return true;
|
|
54814
|
+
}
|
|
54815
|
+
if (NO_PROXY === "*") {
|
|
54816
|
+
return false;
|
|
54817
|
+
}
|
|
54818
|
+
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
54819
|
+
if (!proxy) {
|
|
54820
|
+
return true;
|
|
54821
|
+
}
|
|
54822
|
+
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
54823
|
+
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
54824
|
+
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
54825
|
+
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
54826
|
+
return true;
|
|
54827
|
+
}
|
|
54828
|
+
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
54829
|
+
return hostname !== parsedProxyHostname;
|
|
54830
|
+
}
|
|
54831
|
+
if (parsedProxyHostname.charAt(0) === "*") {
|
|
54832
|
+
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
54833
|
+
}
|
|
54834
|
+
return !hostname.endsWith(parsedProxyHostname);
|
|
54835
|
+
});
|
|
54836
|
+
}
|
|
54837
|
+
function getEnv(key) {
|
|
54838
|
+
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
54839
|
+
}
|
|
54840
|
+
|
|
54753
54841
|
// ../../../node_modules/axios/lib/adapters/http.js
|
|
54754
|
-
var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
|
|
54755
54842
|
var import_http = __toESM(require("http"), 1);
|
|
54756
54843
|
var import_https = __toESM(require("https"), 1);
|
|
54757
54844
|
var import_http2 = __toESM(require("http2"), 1);
|
|
@@ -54760,7 +54847,7 @@ var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
|
54760
54847
|
var import_zlib2 = __toESM(require("zlib"), 1);
|
|
54761
54848
|
|
|
54762
54849
|
// ../../../node_modules/axios/lib/env/data.js
|
|
54763
|
-
var VERSION = "1.
|
|
54850
|
+
var VERSION = "1.15.0";
|
|
54764
54851
|
|
|
54765
54852
|
// ../../../node_modules/axios/lib/helpers/parseProtocol.js
|
|
54766
54853
|
function parseProtocol(url2) {
|
|
@@ -54805,16 +54892,21 @@ var import_stream = __toESM(require("stream"), 1);
|
|
|
54805
54892
|
var kInternals = /* @__PURE__ */ Symbol("internals");
|
|
54806
54893
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
54807
54894
|
constructor(options) {
|
|
54808
|
-
options = utils_default.toFlatObject(
|
|
54809
|
-
|
|
54810
|
-
|
|
54811
|
-
|
|
54812
|
-
|
|
54813
|
-
|
|
54814
|
-
|
|
54815
|
-
|
|
54816
|
-
|
|
54817
|
-
|
|
54895
|
+
options = utils_default.toFlatObject(
|
|
54896
|
+
options,
|
|
54897
|
+
{
|
|
54898
|
+
maxRate: 0,
|
|
54899
|
+
chunkSize: 64 * 1024,
|
|
54900
|
+
minChunkSize: 100,
|
|
54901
|
+
timeWindow: 500,
|
|
54902
|
+
ticksRate: 2,
|
|
54903
|
+
samplesCount: 15
|
|
54904
|
+
},
|
|
54905
|
+
null,
|
|
54906
|
+
(prop, source) => {
|
|
54907
|
+
return !utils_default.isUndefined(source[prop]);
|
|
54908
|
+
}
|
|
54909
|
+
);
|
|
54818
54910
|
super({
|
|
54819
54911
|
readableHighWaterMark: options.chunkSize
|
|
54820
54912
|
});
|
|
@@ -54897,9 +54989,12 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
54897
54989
|
chunkRemainder = _chunk.subarray(maxChunkSize);
|
|
54898
54990
|
_chunk = _chunk.subarray(0, maxChunkSize);
|
|
54899
54991
|
}
|
|
54900
|
-
pushChunk(
|
|
54901
|
-
|
|
54902
|
-
|
|
54992
|
+
pushChunk(
|
|
54993
|
+
_chunk,
|
|
54994
|
+
chunkRemainder ? () => {
|
|
54995
|
+
process.nextTick(_callback, null, chunkRemainder);
|
|
54996
|
+
} : _callback
|
|
54997
|
+
);
|
|
54903
54998
|
};
|
|
54904
54999
|
transformChunk(chunk, function transformNextChunk(err, _chunk) {
|
|
54905
55000
|
if (err) {
|
|
@@ -54970,11 +55065,14 @@ var FormDataPart = class {
|
|
|
54970
55065
|
yield CRLF_BYTES;
|
|
54971
55066
|
}
|
|
54972
55067
|
static escapeName(name) {
|
|
54973
|
-
return String(name).replace(
|
|
54974
|
-
|
|
54975
|
-
|
|
54976
|
-
|
|
54977
|
-
|
|
55068
|
+
return String(name).replace(
|
|
55069
|
+
/[\r\n"]/g,
|
|
55070
|
+
(match2) => ({
|
|
55071
|
+
"\r": "%0D",
|
|
55072
|
+
"\n": "%0A",
|
|
55073
|
+
'"': "%22"
|
|
55074
|
+
})[match2]
|
|
55075
|
+
);
|
|
54978
55076
|
}
|
|
54979
55077
|
};
|
|
54980
55078
|
var formDataToStream = (form, headersHandler, options) => {
|
|
@@ -55006,13 +55104,15 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
55006
55104
|
computedHeaders["Content-Length"] = contentLength;
|
|
55007
55105
|
}
|
|
55008
55106
|
headersHandler && headersHandler(computedHeaders);
|
|
55009
|
-
return import_stream2.Readable.from(
|
|
55010
|
-
|
|
55011
|
-
|
|
55012
|
-
|
|
55013
|
-
|
|
55014
|
-
|
|
55015
|
-
|
|
55107
|
+
return import_stream2.Readable.from(
|
|
55108
|
+
(async function* () {
|
|
55109
|
+
for (const part of parts) {
|
|
55110
|
+
yield boundaryBytes;
|
|
55111
|
+
yield* part.encode();
|
|
55112
|
+
}
|
|
55113
|
+
yield footerBytes;
|
|
55114
|
+
})()
|
|
55115
|
+
);
|
|
55016
55116
|
};
|
|
55017
55117
|
var formDataToStream_default = formDataToStream;
|
|
55018
55118
|
|
|
@@ -55053,6 +55153,83 @@ var callbackify = (fn2, reducer) => {
|
|
|
55053
55153
|
};
|
|
55054
55154
|
var callbackify_default = callbackify;
|
|
55055
55155
|
|
|
55156
|
+
// ../../../node_modules/axios/lib/helpers/shouldBypassProxy.js
|
|
55157
|
+
var DEFAULT_PORTS2 = {
|
|
55158
|
+
http: 80,
|
|
55159
|
+
https: 443,
|
|
55160
|
+
ws: 80,
|
|
55161
|
+
wss: 443,
|
|
55162
|
+
ftp: 21
|
|
55163
|
+
};
|
|
55164
|
+
var parseNoProxyEntry = (entry) => {
|
|
55165
|
+
let entryHost = entry;
|
|
55166
|
+
let entryPort = 0;
|
|
55167
|
+
if (entryHost.charAt(0) === "[") {
|
|
55168
|
+
const bracketIndex = entryHost.indexOf("]");
|
|
55169
|
+
if (bracketIndex !== -1) {
|
|
55170
|
+
const host = entryHost.slice(1, bracketIndex);
|
|
55171
|
+
const rest = entryHost.slice(bracketIndex + 1);
|
|
55172
|
+
if (rest.charAt(0) === ":" && /^\d+$/.test(rest.slice(1))) {
|
|
55173
|
+
entryPort = Number.parseInt(rest.slice(1), 10);
|
|
55174
|
+
}
|
|
55175
|
+
return [host, entryPort];
|
|
55176
|
+
}
|
|
55177
|
+
}
|
|
55178
|
+
const firstColon = entryHost.indexOf(":");
|
|
55179
|
+
const lastColon = entryHost.lastIndexOf(":");
|
|
55180
|
+
if (firstColon !== -1 && firstColon === lastColon && /^\d+$/.test(entryHost.slice(lastColon + 1))) {
|
|
55181
|
+
entryPort = Number.parseInt(entryHost.slice(lastColon + 1), 10);
|
|
55182
|
+
entryHost = entryHost.slice(0, lastColon);
|
|
55183
|
+
}
|
|
55184
|
+
return [entryHost, entryPort];
|
|
55185
|
+
};
|
|
55186
|
+
var normalizeNoProxyHost = (hostname) => {
|
|
55187
|
+
if (!hostname) {
|
|
55188
|
+
return hostname;
|
|
55189
|
+
}
|
|
55190
|
+
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
|
|
55191
|
+
hostname = hostname.slice(1, -1);
|
|
55192
|
+
}
|
|
55193
|
+
return hostname.replace(/\.+$/, "");
|
|
55194
|
+
};
|
|
55195
|
+
function shouldBypassProxy(location) {
|
|
55196
|
+
let parsed;
|
|
55197
|
+
try {
|
|
55198
|
+
parsed = new URL(location);
|
|
55199
|
+
} catch (_err) {
|
|
55200
|
+
return false;
|
|
55201
|
+
}
|
|
55202
|
+
const noProxy = (process.env.no_proxy || process.env.NO_PROXY || "").toLowerCase();
|
|
55203
|
+
if (!noProxy) {
|
|
55204
|
+
return false;
|
|
55205
|
+
}
|
|
55206
|
+
if (noProxy === "*") {
|
|
55207
|
+
return true;
|
|
55208
|
+
}
|
|
55209
|
+
const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
|
|
55210
|
+
const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
|
|
55211
|
+
return noProxy.split(/[\s,]+/).some((entry) => {
|
|
55212
|
+
if (!entry) {
|
|
55213
|
+
return false;
|
|
55214
|
+
}
|
|
55215
|
+
let [entryHost, entryPort] = parseNoProxyEntry(entry);
|
|
55216
|
+
entryHost = normalizeNoProxyHost(entryHost);
|
|
55217
|
+
if (!entryHost) {
|
|
55218
|
+
return false;
|
|
55219
|
+
}
|
|
55220
|
+
if (entryPort && entryPort !== port) {
|
|
55221
|
+
return false;
|
|
55222
|
+
}
|
|
55223
|
+
if (entryHost.charAt(0) === "*") {
|
|
55224
|
+
entryHost = entryHost.slice(1);
|
|
55225
|
+
}
|
|
55226
|
+
if (entryHost.charAt(0) === ".") {
|
|
55227
|
+
return hostname.endsWith(entryHost);
|
|
55228
|
+
}
|
|
55229
|
+
return hostname === entryHost;
|
|
55230
|
+
});
|
|
55231
|
+
}
|
|
55232
|
+
|
|
55056
55233
|
// ../../../node_modules/axios/lib/helpers/speedometer.js
|
|
55057
55234
|
function speedometer(samplesCount, min) {
|
|
55058
55235
|
samplesCount = samplesCount || 10;
|
|
@@ -55151,11 +55328,14 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
55151
55328
|
};
|
|
55152
55329
|
var progressEventDecorator = (total, throttled) => {
|
|
55153
55330
|
const lengthComputable = total != null;
|
|
55154
|
-
return [
|
|
55155
|
-
|
|
55156
|
-
|
|
55157
|
-
|
|
55158
|
-
|
|
55331
|
+
return [
|
|
55332
|
+
(loaded) => throttled[0]({
|
|
55333
|
+
lengthComputable,
|
|
55334
|
+
total,
|
|
55335
|
+
loaded
|
|
55336
|
+
}),
|
|
55337
|
+
throttled[1]
|
|
55338
|
+
];
|
|
55159
55339
|
};
|
|
55160
55340
|
var asyncDecorator = (fn2) => (...args) => utils_default.asap(() => fn2(...args));
|
|
55161
55341
|
|
|
@@ -55234,9 +55414,12 @@ var Http2Sessions = class {
|
|
|
55234
55414
|
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
55235
55415
|
}
|
|
55236
55416
|
getSession(authority, options) {
|
|
55237
|
-
options = Object.assign(
|
|
55238
|
-
|
|
55239
|
-
|
|
55417
|
+
options = Object.assign(
|
|
55418
|
+
{
|
|
55419
|
+
sessionTimeout: 1e3
|
|
55420
|
+
},
|
|
55421
|
+
options
|
|
55422
|
+
);
|
|
55240
55423
|
let authoritySessions = this.sessions[authority];
|
|
55241
55424
|
if (authoritySessions) {
|
|
55242
55425
|
let len = authoritySessions.length;
|
|
@@ -55262,6 +55445,9 @@ var Http2Sessions = class {
|
|
|
55262
55445
|
} else {
|
|
55263
55446
|
entries.splice(i, 1);
|
|
55264
55447
|
}
|
|
55448
|
+
if (!session.closed) {
|
|
55449
|
+
session.close();
|
|
55450
|
+
}
|
|
55265
55451
|
return;
|
|
55266
55452
|
}
|
|
55267
55453
|
}
|
|
@@ -55290,10 +55476,7 @@ var Http2Sessions = class {
|
|
|
55290
55476
|
};
|
|
55291
55477
|
}
|
|
55292
55478
|
session.once("close", removeSession);
|
|
55293
|
-
let entry = [
|
|
55294
|
-
session,
|
|
55295
|
-
options
|
|
55296
|
-
];
|
|
55479
|
+
let entry = [session, options];
|
|
55297
55480
|
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
55298
55481
|
return session;
|
|
55299
55482
|
}
|
|
@@ -55310,9 +55493,11 @@ function dispatchBeforeRedirect(options, responseDetails) {
|
|
|
55310
55493
|
function setProxy(options, configProxy, location) {
|
|
55311
55494
|
let proxy = configProxy;
|
|
55312
55495
|
if (!proxy && proxy !== false) {
|
|
55313
|
-
const proxyUrl =
|
|
55496
|
+
const proxyUrl = getProxyForUrl(location);
|
|
55314
55497
|
if (proxyUrl) {
|
|
55315
|
-
|
|
55498
|
+
if (!shouldBypassProxy(location)) {
|
|
55499
|
+
proxy = new URL(proxyUrl);
|
|
55500
|
+
}
|
|
55316
55501
|
}
|
|
55317
55502
|
}
|
|
55318
55503
|
if (proxy) {
|
|
@@ -55320,8 +55505,11 @@ function setProxy(options, configProxy, location) {
|
|
|
55320
55505
|
proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
|
|
55321
55506
|
}
|
|
55322
55507
|
if (proxy.auth) {
|
|
55323
|
-
|
|
55508
|
+
const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
|
|
55509
|
+
if (validProxyAuth) {
|
|
55324
55510
|
proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
|
|
55511
|
+
} else if (typeof proxy.auth === "object") {
|
|
55512
|
+
throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
|
|
55325
55513
|
}
|
|
55326
55514
|
const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
|
|
55327
55515
|
options.headers["Proxy-Authorization"] = "Basic " + base64;
|
|
@@ -55373,15 +55561,10 @@ var resolveFamily = ({ address, family }) => {
|
|
|
55373
55561
|
var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
|
|
55374
55562
|
var http2Transport = {
|
|
55375
55563
|
request(options, cb) {
|
|
55376
|
-
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || 80);
|
|
55564
|
+
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
55377
55565
|
const { http2Options, headers } = options;
|
|
55378
55566
|
const session = http2Sessions.getSession(authority, http2Options);
|
|
55379
|
-
const {
|
|
55380
|
-
HTTP2_HEADER_SCHEME,
|
|
55381
|
-
HTTP2_HEADER_METHOD,
|
|
55382
|
-
HTTP2_HEADER_PATH,
|
|
55383
|
-
HTTP2_HEADER_STATUS
|
|
55384
|
-
} = import_http2.default.constants;
|
|
55567
|
+
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = import_http2.default.constants;
|
|
55385
55568
|
const http2Headers = {
|
|
55386
55569
|
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
55387
55570
|
[HTTP2_HEADER_METHOD]: options.method,
|
|
@@ -55434,7 +55617,10 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55434
55617
|
const abortEmitter = new import_events3.EventEmitter();
|
|
55435
55618
|
function abort(reason) {
|
|
55436
55619
|
try {
|
|
55437
|
-
abortEmitter.emit(
|
|
55620
|
+
abortEmitter.emit(
|
|
55621
|
+
"abort",
|
|
55622
|
+
!reason || reason.type ? new CanceledError_default(null, config, req) : reason
|
|
55623
|
+
);
|
|
55438
55624
|
} catch (err) {
|
|
55439
55625
|
console.warn("emit error", err);
|
|
55440
55626
|
}
|
|
@@ -55480,11 +55666,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55480
55666
|
const dataUrl = String(config.url || fullPath || "");
|
|
55481
55667
|
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
55482
55668
|
if (estimated > config.maxContentLength) {
|
|
55483
|
-
return reject(
|
|
55484
|
-
|
|
55485
|
-
|
|
55486
|
-
|
|
55487
|
-
|
|
55669
|
+
return reject(
|
|
55670
|
+
new AxiosError_default(
|
|
55671
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
55672
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
55673
|
+
config
|
|
55674
|
+
)
|
|
55675
|
+
);
|
|
55488
55676
|
}
|
|
55489
55677
|
}
|
|
55490
55678
|
let convertedData;
|
|
@@ -55520,11 +55708,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55520
55708
|
});
|
|
55521
55709
|
}
|
|
55522
55710
|
if (supportedProtocols.indexOf(protocol) === -1) {
|
|
55523
|
-
return reject(
|
|
55524
|
-
"Unsupported protocol " + protocol,
|
|
55525
|
-
|
|
55526
|
-
config
|
|
55527
|
-
));
|
|
55711
|
+
return reject(
|
|
55712
|
+
new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_BAD_REQUEST, config)
|
|
55713
|
+
);
|
|
55528
55714
|
}
|
|
55529
55715
|
const headers = AxiosHeaders_default.from(config.headers).normalize();
|
|
55530
55716
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
@@ -55534,12 +55720,16 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55534
55720
|
let maxDownloadRate = void 0;
|
|
55535
55721
|
if (utils_default.isSpecCompliantForm(data)) {
|
|
55536
55722
|
const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
|
|
55537
|
-
data = formDataToStream_default(
|
|
55538
|
-
|
|
55539
|
-
|
|
55540
|
-
|
|
55541
|
-
|
|
55542
|
-
|
|
55723
|
+
data = formDataToStream_default(
|
|
55724
|
+
data,
|
|
55725
|
+
(formHeaders) => {
|
|
55726
|
+
headers.set(formHeaders);
|
|
55727
|
+
},
|
|
55728
|
+
{
|
|
55729
|
+
tag: `axios-${VERSION}-boundary`,
|
|
55730
|
+
boundary: userBoundary && userBoundary[1] || void 0
|
|
55731
|
+
}
|
|
55732
|
+
);
|
|
55543
55733
|
} else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
|
|
55544
55734
|
headers.set(data.getHeaders());
|
|
55545
55735
|
if (!headers.hasContentLength()) {
|
|
@@ -55560,19 +55750,23 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55560
55750
|
} else if (utils_default.isString(data)) {
|
|
55561
55751
|
data = Buffer.from(data, "utf-8");
|
|
55562
55752
|
} else {
|
|
55563
|
-
return reject(
|
|
55564
|
-
|
|
55565
|
-
|
|
55566
|
-
|
|
55567
|
-
|
|
55753
|
+
return reject(
|
|
55754
|
+
new AxiosError_default(
|
|
55755
|
+
"Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
|
|
55756
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
55757
|
+
config
|
|
55758
|
+
)
|
|
55759
|
+
);
|
|
55568
55760
|
}
|
|
55569
55761
|
headers.setContentLength(data.length, false);
|
|
55570
55762
|
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
|
55571
|
-
return reject(
|
|
55572
|
-
|
|
55573
|
-
|
|
55574
|
-
|
|
55575
|
-
|
|
55763
|
+
return reject(
|
|
55764
|
+
new AxiosError_default(
|
|
55765
|
+
"Request body larger than maxBodyLength limit",
|
|
55766
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
55767
|
+
config
|
|
55768
|
+
)
|
|
55769
|
+
);
|
|
55576
55770
|
}
|
|
55577
55771
|
}
|
|
55578
55772
|
const contentLength = utils_default.toFiniteNumber(headers.getContentLength());
|
|
@@ -55586,16 +55780,25 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55586
55780
|
if (!utils_default.isStream(data)) {
|
|
55587
55781
|
data = import_stream4.default.Readable.from(data, { objectMode: false });
|
|
55588
55782
|
}
|
|
55589
|
-
data = import_stream4.default.pipeline(
|
|
55590
|
-
|
|
55591
|
-
|
|
55592
|
-
|
|
55593
|
-
|
|
55594
|
-
|
|
55595
|
-
|
|
55596
|
-
|
|
55783
|
+
data = import_stream4.default.pipeline(
|
|
55784
|
+
[
|
|
55785
|
+
data,
|
|
55786
|
+
new AxiosTransformStream_default({
|
|
55787
|
+
maxRate: utils_default.toFiniteNumber(maxUploadRate)
|
|
55788
|
+
})
|
|
55789
|
+
],
|
|
55790
|
+
utils_default.noop
|
|
55791
|
+
);
|
|
55792
|
+
onUploadProgress && data.on(
|
|
55793
|
+
"progress",
|
|
55794
|
+
flushOnFinish(
|
|
55795
|
+
data,
|
|
55796
|
+
progressEventDecorator(
|
|
55797
|
+
contentLength,
|
|
55798
|
+
progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
|
|
55799
|
+
)
|
|
55597
55800
|
)
|
|
55598
|
-
)
|
|
55801
|
+
);
|
|
55599
55802
|
}
|
|
55600
55803
|
let auth = void 0;
|
|
55601
55804
|
if (config.auth) {
|
|
@@ -55646,7 +55849,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55646
55849
|
} else {
|
|
55647
55850
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
55648
55851
|
options.port = parsed.port;
|
|
55649
|
-
setProxy(
|
|
55852
|
+
setProxy(
|
|
55853
|
+
options,
|
|
55854
|
+
config.proxy,
|
|
55855
|
+
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
|
|
55856
|
+
);
|
|
55650
55857
|
}
|
|
55651
55858
|
let transport;
|
|
55652
55859
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
@@ -55684,13 +55891,16 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55684
55891
|
const transformStream = new AxiosTransformStream_default({
|
|
55685
55892
|
maxRate: utils_default.toFiniteNumber(maxDownloadRate)
|
|
55686
55893
|
});
|
|
55687
|
-
onDownloadProgress && transformStream.on(
|
|
55688
|
-
|
|
55689
|
-
|
|
55690
|
-
|
|
55691
|
-
|
|
55894
|
+
onDownloadProgress && transformStream.on(
|
|
55895
|
+
"progress",
|
|
55896
|
+
flushOnFinish(
|
|
55897
|
+
transformStream,
|
|
55898
|
+
progressEventDecorator(
|
|
55899
|
+
responseLength,
|
|
55900
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
|
|
55901
|
+
)
|
|
55692
55902
|
)
|
|
55693
|
-
)
|
|
55903
|
+
);
|
|
55694
55904
|
streams.push(transformStream);
|
|
55695
55905
|
}
|
|
55696
55906
|
let responseStream = res;
|
|
@@ -55740,12 +55950,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55740
55950
|
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
55741
55951
|
rejected = true;
|
|
55742
55952
|
responseStream.destroy();
|
|
55743
|
-
abort(
|
|
55744
|
-
|
|
55745
|
-
|
|
55746
|
-
|
|
55747
|
-
|
|
55748
|
-
|
|
55953
|
+
abort(
|
|
55954
|
+
new AxiosError_default(
|
|
55955
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
55956
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
55957
|
+
config,
|
|
55958
|
+
lastRequest
|
|
55959
|
+
)
|
|
55960
|
+
);
|
|
55749
55961
|
}
|
|
55750
55962
|
});
|
|
55751
55963
|
responseStream.on("aborted", function handlerStreamAborted() {
|
|
@@ -55804,12 +56016,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55804
56016
|
if (config.timeout) {
|
|
55805
56017
|
const timeout2 = parseInt(config.timeout, 10);
|
|
55806
56018
|
if (Number.isNaN(timeout2)) {
|
|
55807
|
-
abort(
|
|
55808
|
-
|
|
55809
|
-
|
|
55810
|
-
|
|
55811
|
-
|
|
55812
|
-
|
|
56019
|
+
abort(
|
|
56020
|
+
new AxiosError_default(
|
|
56021
|
+
"error trying to parse `config.timeout` to int",
|
|
56022
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
56023
|
+
config,
|
|
56024
|
+
req
|
|
56025
|
+
)
|
|
56026
|
+
);
|
|
55813
56027
|
return;
|
|
55814
56028
|
}
|
|
55815
56029
|
req.setTimeout(timeout2, function handleRequestTimeout() {
|
|
@@ -55819,12 +56033,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55819
56033
|
if (config.timeoutErrorMessage) {
|
|
55820
56034
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
55821
56035
|
}
|
|
55822
|
-
abort(
|
|
55823
|
-
|
|
55824
|
-
|
|
55825
|
-
|
|
55826
|
-
|
|
55827
|
-
|
|
56036
|
+
abort(
|
|
56037
|
+
new AxiosError_default(
|
|
56038
|
+
timeoutErrorMessage,
|
|
56039
|
+
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
56040
|
+
config,
|
|
56041
|
+
req
|
|
56042
|
+
)
|
|
56043
|
+
);
|
|
55828
56044
|
});
|
|
55829
56045
|
} else {
|
|
55830
56046
|
req.setTimeout(0);
|
|
@@ -55980,7 +56196,8 @@ function mergeConfig(config1, config2) {
|
|
|
55980
56196
|
headers: (a, b2, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b2), prop, true)
|
|
55981
56197
|
};
|
|
55982
56198
|
utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
55983
|
-
|
|
56199
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
56200
|
+
const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
55984
56201
|
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
55985
56202
|
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
55986
56203
|
});
|
|
@@ -55992,11 +56209,17 @@ var resolveConfig_default = (config) => {
|
|
|
55992
56209
|
const newConfig = mergeConfig({}, config);
|
|
55993
56210
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
55994
56211
|
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
55995
|
-
newConfig.url = buildURL(
|
|
56212
|
+
newConfig.url = buildURL(
|
|
56213
|
+
buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
|
|
56214
|
+
config.params,
|
|
56215
|
+
config.paramsSerializer
|
|
56216
|
+
);
|
|
55996
56217
|
if (auth) {
|
|
55997
56218
|
headers.set(
|
|
55998
56219
|
"Authorization",
|
|
55999
|
-
"Basic " + btoa(
|
|
56220
|
+
"Basic " + btoa(
|
|
56221
|
+
(auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
|
|
56222
|
+
)
|
|
56000
56223
|
);
|
|
56001
56224
|
}
|
|
56002
56225
|
if (utils_default.isFormData(data)) {
|
|
@@ -56060,13 +56283,17 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
56060
56283
|
config,
|
|
56061
56284
|
request
|
|
56062
56285
|
};
|
|
56063
|
-
settle(
|
|
56064
|
-
|
|
56065
|
-
|
|
56066
|
-
|
|
56067
|
-
|
|
56068
|
-
|
|
56069
|
-
|
|
56286
|
+
settle(
|
|
56287
|
+
function _resolve(value) {
|
|
56288
|
+
resolve6(value);
|
|
56289
|
+
done();
|
|
56290
|
+
},
|
|
56291
|
+
function _reject(err) {
|
|
56292
|
+
reject(err);
|
|
56293
|
+
done();
|
|
56294
|
+
},
|
|
56295
|
+
response
|
|
56296
|
+
);
|
|
56070
56297
|
request = null;
|
|
56071
56298
|
}
|
|
56072
56299
|
if ("onloadend" in request) {
|
|
@@ -56102,12 +56329,14 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
56102
56329
|
if (_config.timeoutErrorMessage) {
|
|
56103
56330
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
56104
56331
|
}
|
|
56105
|
-
reject(
|
|
56106
|
-
|
|
56107
|
-
|
|
56108
|
-
|
|
56109
|
-
|
|
56110
|
-
|
|
56332
|
+
reject(
|
|
56333
|
+
new AxiosError_default(
|
|
56334
|
+
timeoutErrorMessage,
|
|
56335
|
+
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
56336
|
+
config,
|
|
56337
|
+
request
|
|
56338
|
+
)
|
|
56339
|
+
);
|
|
56111
56340
|
request = null;
|
|
56112
56341
|
};
|
|
56113
56342
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -56147,7 +56376,13 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
56147
56376
|
}
|
|
56148
56377
|
const protocol = parseProtocol(_config.url);
|
|
56149
56378
|
if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
|
|
56150
|
-
reject(
|
|
56379
|
+
reject(
|
|
56380
|
+
new AxiosError_default(
|
|
56381
|
+
"Unsupported protocol " + protocol + ":",
|
|
56382
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
56383
|
+
config
|
|
56384
|
+
)
|
|
56385
|
+
);
|
|
56151
56386
|
return;
|
|
56152
56387
|
}
|
|
56153
56388
|
request.send(requestData || null);
|
|
@@ -56165,12 +56400,14 @@ var composeSignals = (signals3, timeout2) => {
|
|
|
56165
56400
|
aborted = true;
|
|
56166
56401
|
unsubscribe();
|
|
56167
56402
|
const err = reason instanceof Error ? reason : this.reason;
|
|
56168
|
-
controller.abort(
|
|
56403
|
+
controller.abort(
|
|
56404
|
+
err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
|
|
56405
|
+
);
|
|
56169
56406
|
}
|
|
56170
56407
|
};
|
|
56171
56408
|
let timer = timeout2 && setTimeout(() => {
|
|
56172
56409
|
timer = null;
|
|
56173
|
-
onabort(new AxiosError_default(`timeout ${timeout2}
|
|
56410
|
+
onabort(new AxiosError_default(`timeout of ${timeout2}ms exceeded`, AxiosError_default.ETIMEDOUT));
|
|
56174
56411
|
}, timeout2);
|
|
56175
56412
|
const unsubscribe = () => {
|
|
56176
56413
|
if (signals3) {
|
|
@@ -56238,33 +56475,36 @@ var trackStream = (stream5, chunkSize, onProgress, onFinish) => {
|
|
|
56238
56475
|
onFinish && onFinish(e);
|
|
56239
56476
|
}
|
|
56240
56477
|
};
|
|
56241
|
-
return new ReadableStream(
|
|
56242
|
-
|
|
56243
|
-
|
|
56244
|
-
|
|
56245
|
-
|
|
56246
|
-
|
|
56247
|
-
|
|
56248
|
-
|
|
56249
|
-
|
|
56250
|
-
|
|
56251
|
-
|
|
56252
|
-
|
|
56253
|
-
|
|
56478
|
+
return new ReadableStream(
|
|
56479
|
+
{
|
|
56480
|
+
async pull(controller) {
|
|
56481
|
+
try {
|
|
56482
|
+
const { done: done2, value } = await iterator2.next();
|
|
56483
|
+
if (done2) {
|
|
56484
|
+
_onFinish();
|
|
56485
|
+
controller.close();
|
|
56486
|
+
return;
|
|
56487
|
+
}
|
|
56488
|
+
let len = value.byteLength;
|
|
56489
|
+
if (onProgress) {
|
|
56490
|
+
let loadedBytes = bytes += len;
|
|
56491
|
+
onProgress(loadedBytes);
|
|
56492
|
+
}
|
|
56493
|
+
controller.enqueue(new Uint8Array(value));
|
|
56494
|
+
} catch (err) {
|
|
56495
|
+
_onFinish(err);
|
|
56496
|
+
throw err;
|
|
56254
56497
|
}
|
|
56255
|
-
|
|
56256
|
-
|
|
56257
|
-
_onFinish(
|
|
56258
|
-
|
|
56498
|
+
},
|
|
56499
|
+
cancel(reason) {
|
|
56500
|
+
_onFinish(reason);
|
|
56501
|
+
return iterator2.return();
|
|
56259
56502
|
}
|
|
56260
56503
|
},
|
|
56261
|
-
|
|
56262
|
-
|
|
56263
|
-
return iterator2.return();
|
|
56504
|
+
{
|
|
56505
|
+
highWaterMark: 2
|
|
56264
56506
|
}
|
|
56265
|
-
|
|
56266
|
-
highWaterMark: 2
|
|
56267
|
-
});
|
|
56507
|
+
);
|
|
56268
56508
|
};
|
|
56269
56509
|
|
|
56270
56510
|
// ../../../node_modules/axios/lib/adapters/fetch.js
|
|
@@ -56274,10 +56514,7 @@ var globalFetchAPI = (({ Request, Response }) => ({
|
|
|
56274
56514
|
Request,
|
|
56275
56515
|
Response
|
|
56276
56516
|
}))(utils_default.global);
|
|
56277
|
-
var {
|
|
56278
|
-
ReadableStream: ReadableStream2,
|
|
56279
|
-
TextEncoder: TextEncoder2
|
|
56280
|
-
} = utils_default.global;
|
|
56517
|
+
var { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = utils_default.global;
|
|
56281
56518
|
var test = (fn2, ...args) => {
|
|
56282
56519
|
try {
|
|
56283
56520
|
return !!fn2(...args);
|
|
@@ -56286,9 +56523,13 @@ var test = (fn2, ...args) => {
|
|
|
56286
56523
|
}
|
|
56287
56524
|
};
|
|
56288
56525
|
var factory = (env4) => {
|
|
56289
|
-
env4 = utils_default.merge.call(
|
|
56290
|
-
|
|
56291
|
-
|
|
56526
|
+
env4 = utils_default.merge.call(
|
|
56527
|
+
{
|
|
56528
|
+
skipUndefined: true
|
|
56529
|
+
},
|
|
56530
|
+
globalFetchAPI,
|
|
56531
|
+
env4
|
|
56532
|
+
);
|
|
56292
56533
|
const { fetch: envFetch, Request, Response } = env4;
|
|
56293
56534
|
const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
|
|
56294
56535
|
const isRequestSupported = isFunction2(Request);
|
|
@@ -56300,14 +56541,16 @@ var factory = (env4) => {
|
|
|
56300
56541
|
const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
|
|
56301
56542
|
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
56302
56543
|
let duplexAccessed = false;
|
|
56544
|
+
const body = new ReadableStream2();
|
|
56303
56545
|
const hasContentType = new Request(platform_default.origin, {
|
|
56304
|
-
body
|
|
56546
|
+
body,
|
|
56305
56547
|
method: "POST",
|
|
56306
56548
|
get duplex() {
|
|
56307
56549
|
duplexAccessed = true;
|
|
56308
56550
|
return "half";
|
|
56309
56551
|
}
|
|
56310
56552
|
}).headers.has("Content-Type");
|
|
56553
|
+
body.cancel();
|
|
56311
56554
|
return duplexAccessed && !hasContentType;
|
|
56312
56555
|
});
|
|
56313
56556
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
@@ -56321,7 +56564,11 @@ var factory = (env4) => {
|
|
|
56321
56564
|
if (method) {
|
|
56322
56565
|
return method.call(res);
|
|
56323
56566
|
}
|
|
56324
|
-
throw new AxiosError_default(
|
|
56567
|
+
throw new AxiosError_default(
|
|
56568
|
+
`Response type '${type}' is not supported`,
|
|
56569
|
+
AxiosError_default.ERR_NOT_SUPPORT,
|
|
56570
|
+
config
|
|
56571
|
+
);
|
|
56325
56572
|
});
|
|
56326
56573
|
});
|
|
56327
56574
|
})();
|
|
@@ -56370,7 +56617,10 @@ var factory = (env4) => {
|
|
|
56370
56617
|
} = resolveConfig_default(config);
|
|
56371
56618
|
let _fetch = envFetch || fetch;
|
|
56372
56619
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
56373
|
-
let composedSignal = composeSignals_default(
|
|
56620
|
+
let composedSignal = composeSignals_default(
|
|
56621
|
+
[signal, cancelToken && cancelToken.toAbortSignal()],
|
|
56622
|
+
timeout2
|
|
56623
|
+
);
|
|
56374
56624
|
let request = null;
|
|
56375
56625
|
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
56376
56626
|
composedSignal.unsubscribe();
|
|
@@ -56430,7 +56680,10 @@ var factory = (env4) => {
|
|
|
56430
56680
|
);
|
|
56431
56681
|
}
|
|
56432
56682
|
responseType = responseType || "text";
|
|
56433
|
-
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
|
|
56683
|
+
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
|
|
56684
|
+
response,
|
|
56685
|
+
config
|
|
56686
|
+
);
|
|
56434
56687
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
56435
56688
|
return await new Promise((resolve6, reject) => {
|
|
56436
56689
|
settle(resolve6, reject, {
|
|
@@ -56446,13 +56699,19 @@ var factory = (env4) => {
|
|
|
56446
56699
|
unsubscribe && unsubscribe();
|
|
56447
56700
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
56448
56701
|
throw Object.assign(
|
|
56449
|
-
new AxiosError_default(
|
|
56702
|
+
new AxiosError_default(
|
|
56703
|
+
"Network Error",
|
|
56704
|
+
AxiosError_default.ERR_NETWORK,
|
|
56705
|
+
config,
|
|
56706
|
+
request,
|
|
56707
|
+
err && err.response
|
|
56708
|
+
),
|
|
56450
56709
|
{
|
|
56451
56710
|
cause: err.cause || err
|
|
56452
56711
|
}
|
|
56453
56712
|
);
|
|
56454
56713
|
}
|
|
56455
|
-
throw AxiosError_default.from(err, err && err.code, config, request);
|
|
56714
|
+
throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
|
|
56456
56715
|
}
|
|
56457
56716
|
};
|
|
56458
56717
|
};
|
|
@@ -56460,11 +56719,7 @@ var seedCache = /* @__PURE__ */ new Map();
|
|
|
56460
56719
|
var getFetch = (config) => {
|
|
56461
56720
|
let env4 = config && config.env || {};
|
|
56462
56721
|
const { fetch: fetch2, Request, Response } = env4;
|
|
56463
|
-
const seeds = [
|
|
56464
|
-
Request,
|
|
56465
|
-
Response,
|
|
56466
|
-
fetch2
|
|
56467
|
-
];
|
|
56722
|
+
const seeds = [Request, Response, fetch2];
|
|
56468
56723
|
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
56469
56724
|
while (i--) {
|
|
56470
56725
|
seed = seeds[i];
|
|
@@ -56553,37 +56808,33 @@ function throwIfCancellationRequested(config) {
|
|
|
56553
56808
|
function dispatchRequest(config) {
|
|
56554
56809
|
throwIfCancellationRequested(config);
|
|
56555
56810
|
config.headers = AxiosHeaders_default.from(config.headers);
|
|
56556
|
-
config.data = transformData.call(
|
|
56557
|
-
config,
|
|
56558
|
-
config.transformRequest
|
|
56559
|
-
);
|
|
56811
|
+
config.data = transformData.call(config, config.transformRequest);
|
|
56560
56812
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
56561
56813
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
56562
56814
|
}
|
|
56563
56815
|
const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
|
|
56564
|
-
return adapter2(config).then(
|
|
56565
|
-
|
|
56566
|
-
response.data = transformData.call(
|
|
56567
|
-
config,
|
|
56568
|
-
config.transformResponse,
|
|
56569
|
-
response
|
|
56570
|
-
);
|
|
56571
|
-
response.headers = AxiosHeaders_default.from(response.headers);
|
|
56572
|
-
return response;
|
|
56573
|
-
}, function onAdapterRejection(reason) {
|
|
56574
|
-
if (!isCancel(reason)) {
|
|
56816
|
+
return adapter2(config).then(
|
|
56817
|
+
function onAdapterResolution(response) {
|
|
56575
56818
|
throwIfCancellationRequested(config);
|
|
56576
|
-
|
|
56577
|
-
|
|
56578
|
-
|
|
56579
|
-
|
|
56580
|
-
|
|
56581
|
-
|
|
56582
|
-
|
|
56819
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
56820
|
+
response.headers = AxiosHeaders_default.from(response.headers);
|
|
56821
|
+
return response;
|
|
56822
|
+
},
|
|
56823
|
+
function onAdapterRejection(reason) {
|
|
56824
|
+
if (!isCancel(reason)) {
|
|
56825
|
+
throwIfCancellationRequested(config);
|
|
56826
|
+
if (reason && reason.response) {
|
|
56827
|
+
reason.response.data = transformData.call(
|
|
56828
|
+
config,
|
|
56829
|
+
config.transformResponse,
|
|
56830
|
+
reason.response
|
|
56831
|
+
);
|
|
56832
|
+
reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
|
|
56833
|
+
}
|
|
56583
56834
|
}
|
|
56835
|
+
return Promise.reject(reason);
|
|
56584
56836
|
}
|
|
56585
|
-
|
|
56586
|
-
});
|
|
56837
|
+
);
|
|
56587
56838
|
}
|
|
56588
56839
|
|
|
56589
56840
|
// ../../../node_modules/axios/lib/helpers/validator.js
|
|
@@ -56636,7 +56887,10 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
56636
56887
|
const value = options[opt];
|
|
56637
56888
|
const result = value === void 0 || validator(value, opt, options);
|
|
56638
56889
|
if (result !== true) {
|
|
56639
|
-
throw new AxiosError_default(
|
|
56890
|
+
throw new AxiosError_default(
|
|
56891
|
+
"option " + opt + " must be " + result,
|
|
56892
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE
|
|
56893
|
+
);
|
|
56640
56894
|
}
|
|
56641
56895
|
continue;
|
|
56642
56896
|
}
|
|
@@ -56675,12 +56929,23 @@ var Axios = class {
|
|
|
56675
56929
|
if (err instanceof Error) {
|
|
56676
56930
|
let dummy = {};
|
|
56677
56931
|
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
56678
|
-
const stack =
|
|
56932
|
+
const stack = (() => {
|
|
56933
|
+
if (!dummy.stack) {
|
|
56934
|
+
return "";
|
|
56935
|
+
}
|
|
56936
|
+
const firstNewlineIndex = dummy.stack.indexOf("\n");
|
|
56937
|
+
return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
|
|
56938
|
+
})();
|
|
56679
56939
|
try {
|
|
56680
56940
|
if (!err.stack) {
|
|
56681
56941
|
err.stack = stack;
|
|
56682
|
-
} else if (stack
|
|
56683
|
-
|
|
56942
|
+
} else if (stack) {
|
|
56943
|
+
const firstNewlineIndex = stack.indexOf("\n");
|
|
56944
|
+
const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
|
|
56945
|
+
const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
|
|
56946
|
+
if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
|
|
56947
|
+
err.stack += "\n" + stack;
|
|
56948
|
+
}
|
|
56684
56949
|
}
|
|
56685
56950
|
} catch (e) {
|
|
56686
56951
|
}
|
|
@@ -56698,11 +56963,16 @@ var Axios = class {
|
|
|
56698
56963
|
config = mergeConfig(this.defaults, config);
|
|
56699
56964
|
const { transitional: transitional2, paramsSerializer, headers } = config;
|
|
56700
56965
|
if (transitional2 !== void 0) {
|
|
56701
|
-
validator_default.assertOptions(
|
|
56702
|
-
|
|
56703
|
-
|
|
56704
|
-
|
|
56705
|
-
|
|
56966
|
+
validator_default.assertOptions(
|
|
56967
|
+
transitional2,
|
|
56968
|
+
{
|
|
56969
|
+
silentJSONParsing: validators2.transitional(validators2.boolean),
|
|
56970
|
+
forcedJSONParsing: validators2.transitional(validators2.boolean),
|
|
56971
|
+
clarifyTimeoutError: validators2.transitional(validators2.boolean),
|
|
56972
|
+
legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
|
|
56973
|
+
},
|
|
56974
|
+
false
|
|
56975
|
+
);
|
|
56706
56976
|
}
|
|
56707
56977
|
if (paramsSerializer != null) {
|
|
56708
56978
|
if (utils_default.isFunction(paramsSerializer)) {
|
|
@@ -56710,10 +56980,14 @@ var Axios = class {
|
|
|
56710
56980
|
serialize: paramsSerializer
|
|
56711
56981
|
};
|
|
56712
56982
|
} else {
|
|
56713
|
-
validator_default.assertOptions(
|
|
56714
|
-
|
|
56715
|
-
|
|
56716
|
-
|
|
56983
|
+
validator_default.assertOptions(
|
|
56984
|
+
paramsSerializer,
|
|
56985
|
+
{
|
|
56986
|
+
encode: validators2.function,
|
|
56987
|
+
serialize: validators2.function
|
|
56988
|
+
},
|
|
56989
|
+
true
|
|
56990
|
+
);
|
|
56717
56991
|
}
|
|
56718
56992
|
}
|
|
56719
56993
|
if (config.allowAbsoluteUrls !== void 0) {
|
|
@@ -56722,21 +56996,19 @@ var Axios = class {
|
|
|
56722
56996
|
} else {
|
|
56723
56997
|
config.allowAbsoluteUrls = true;
|
|
56724
56998
|
}
|
|
56725
|
-
validator_default.assertOptions(
|
|
56726
|
-
|
|
56727
|
-
|
|
56728
|
-
|
|
56729
|
-
|
|
56730
|
-
|
|
56731
|
-
|
|
56732
|
-
headers[config.method]
|
|
56733
|
-
);
|
|
56734
|
-
headers && utils_default.forEach(
|
|
56735
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
56736
|
-
(method) => {
|
|
56737
|
-
delete headers[method];
|
|
56738
|
-
}
|
|
56999
|
+
validator_default.assertOptions(
|
|
57000
|
+
config,
|
|
57001
|
+
{
|
|
57002
|
+
baseUrl: validators2.spelling("baseURL"),
|
|
57003
|
+
withXsrfToken: validators2.spelling("withXSRFToken")
|
|
57004
|
+
},
|
|
57005
|
+
true
|
|
56739
57006
|
);
|
|
57007
|
+
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
57008
|
+
let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
|
|
57009
|
+
headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
|
|
57010
|
+
delete headers[method];
|
|
57011
|
+
});
|
|
56740
57012
|
config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
|
|
56741
57013
|
const requestInterceptorChain = [];
|
|
56742
57014
|
let synchronousRequestInterceptors = true;
|
|
@@ -56745,7 +57017,13 @@ var Axios = class {
|
|
|
56745
57017
|
return;
|
|
56746
57018
|
}
|
|
56747
57019
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
56748
|
-
|
|
57020
|
+
const transitional3 = config.transitional || transitional_default;
|
|
57021
|
+
const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
|
|
57022
|
+
if (legacyInterceptorReqResOrdering) {
|
|
57023
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
57024
|
+
} else {
|
|
57025
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
57026
|
+
}
|
|
56749
57027
|
});
|
|
56750
57028
|
const responseInterceptorChain = [];
|
|
56751
57029
|
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
@@ -56797,24 +57075,28 @@ var Axios = class {
|
|
|
56797
57075
|
};
|
|
56798
57076
|
utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
56799
57077
|
Axios.prototype[method] = function(url2, config) {
|
|
56800
|
-
return this.request(
|
|
56801
|
-
|
|
56802
|
-
|
|
56803
|
-
|
|
56804
|
-
|
|
57078
|
+
return this.request(
|
|
57079
|
+
mergeConfig(config || {}, {
|
|
57080
|
+
method,
|
|
57081
|
+
url: url2,
|
|
57082
|
+
data: (config || {}).data
|
|
57083
|
+
})
|
|
57084
|
+
);
|
|
56805
57085
|
};
|
|
56806
57086
|
});
|
|
56807
57087
|
utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
56808
57088
|
function generateHTTPMethod(isForm) {
|
|
56809
57089
|
return function httpMethod(url2, data, config) {
|
|
56810
|
-
return this.request(
|
|
56811
|
-
|
|
56812
|
-
|
|
56813
|
-
|
|
56814
|
-
|
|
56815
|
-
|
|
56816
|
-
|
|
56817
|
-
|
|
57090
|
+
return this.request(
|
|
57091
|
+
mergeConfig(config || {}, {
|
|
57092
|
+
method,
|
|
57093
|
+
headers: isForm ? {
|
|
57094
|
+
"Content-Type": "multipart/form-data"
|
|
57095
|
+
} : {},
|
|
57096
|
+
url: url2,
|
|
57097
|
+
data
|
|
57098
|
+
})
|
|
57099
|
+
);
|
|
56818
57100
|
};
|
|
56819
57101
|
}
|
|
56820
57102
|
Axios.prototype[method] = generateHTTPMethod();
|