@appliedblockchain/silentdatarollup-ethers-provider-fireblocks 1.0.5 → 1.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.
- package/dist/index.js +351 -199
- package/dist/index.mjs +351 -199
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11628,6 +11628,7 @@ var require_axios = __commonJS({
|
|
|
11628
11628
|
}
|
|
11629
11629
|
var { toString } = Object.prototype;
|
|
11630
11630
|
var { getPrototypeOf } = Object;
|
|
11631
|
+
var { iterator, toStringTag } = Symbol;
|
|
11631
11632
|
var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
|
|
11632
11633
|
const str = toString.call(thing);
|
|
11633
11634
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -11640,7 +11641,7 @@ var require_axios = __commonJS({
|
|
|
11640
11641
|
var { isArray } = Array;
|
|
11641
11642
|
var isUndefined = typeOfTest("undefined");
|
|
11642
11643
|
function isBuffer(val) {
|
|
11643
|
-
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
11644
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
11644
11645
|
}
|
|
11645
11646
|
var isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
11646
11647
|
function isArrayBufferView(val) {
|
|
@@ -11653,7 +11654,7 @@ var require_axios = __commonJS({
|
|
|
11653
11654
|
return result;
|
|
11654
11655
|
}
|
|
11655
11656
|
var isString = typeOfTest("string");
|
|
11656
|
-
var isFunction = typeOfTest("function");
|
|
11657
|
+
var isFunction$1 = typeOfTest("function");
|
|
11657
11658
|
var isNumber = typeOfTest("number");
|
|
11658
11659
|
var isObject = (thing) => thing !== null && typeof thing === "object";
|
|
11659
11660
|
var isBoolean = (thing) => thing === true || thing === false;
|
|
@@ -11662,17 +11663,27 @@ var require_axios = __commonJS({
|
|
|
11662
11663
|
return false;
|
|
11663
11664
|
}
|
|
11664
11665
|
const prototype2 = getPrototypeOf(val);
|
|
11665
|
-
return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(
|
|
11666
|
+
return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
|
|
11667
|
+
};
|
|
11668
|
+
var isEmptyObject = (val) => {
|
|
11669
|
+
if (!isObject(val) || isBuffer(val)) {
|
|
11670
|
+
return false;
|
|
11671
|
+
}
|
|
11672
|
+
try {
|
|
11673
|
+
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
11674
|
+
} catch (e) {
|
|
11675
|
+
return false;
|
|
11676
|
+
}
|
|
11666
11677
|
};
|
|
11667
11678
|
var isDate = kindOfTest("Date");
|
|
11668
11679
|
var isFile = kindOfTest("File");
|
|
11669
11680
|
var isBlob = kindOfTest("Blob");
|
|
11670
11681
|
var isFileList = kindOfTest("FileList");
|
|
11671
|
-
var isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
11682
|
+
var isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
11672
11683
|
var isFormData = (thing) => {
|
|
11673
11684
|
let kind;
|
|
11674
|
-
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
11675
|
-
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
11685
|
+
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
11686
|
+
kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
|
|
11676
11687
|
};
|
|
11677
11688
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
11678
11689
|
var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
@@ -11691,6 +11702,9 @@ var require_axios = __commonJS({
|
|
|
11691
11702
|
fn.call(null, obj[i], i, obj);
|
|
11692
11703
|
}
|
|
11693
11704
|
} else {
|
|
11705
|
+
if (isBuffer(obj)) {
|
|
11706
|
+
return;
|
|
11707
|
+
}
|
|
11694
11708
|
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
11695
11709
|
const len = keys.length;
|
|
11696
11710
|
let key;
|
|
@@ -11701,6 +11715,9 @@ var require_axios = __commonJS({
|
|
|
11701
11715
|
}
|
|
11702
11716
|
}
|
|
11703
11717
|
function findKey(obj, key) {
|
|
11718
|
+
if (isBuffer(obj)) {
|
|
11719
|
+
return null;
|
|
11720
|
+
}
|
|
11704
11721
|
key = key.toLowerCase();
|
|
11705
11722
|
const keys = Object.keys(obj);
|
|
11706
11723
|
let i = keys.length;
|
|
@@ -11719,7 +11736,7 @@ var require_axios = __commonJS({
|
|
|
11719
11736
|
})();
|
|
11720
11737
|
var isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
11721
11738
|
function merge() {
|
|
11722
|
-
const { caseless } = isContextDefined(this) && this || {};
|
|
11739
|
+
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
11723
11740
|
const result = {};
|
|
11724
11741
|
const assignValue = (val, key) => {
|
|
11725
11742
|
const targetKey = caseless && findKey(result, key) || key;
|
|
@@ -11729,7 +11746,7 @@ var require_axios = __commonJS({
|
|
|
11729
11746
|
result[targetKey] = merge({}, val);
|
|
11730
11747
|
} else if (isArray(val)) {
|
|
11731
11748
|
result[targetKey] = val.slice();
|
|
11732
|
-
} else {
|
|
11749
|
+
} else if (!skipUndefined || !isUndefined(val)) {
|
|
11733
11750
|
result[targetKey] = val;
|
|
11734
11751
|
}
|
|
11735
11752
|
};
|
|
@@ -11740,7 +11757,7 @@ var require_axios = __commonJS({
|
|
|
11740
11757
|
}
|
|
11741
11758
|
var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
11742
11759
|
forEach(b, (val, key) => {
|
|
11743
|
-
if (thisArg && isFunction(val)) {
|
|
11760
|
+
if (thisArg && isFunction$1(val)) {
|
|
11744
11761
|
a[key] = bind(val, thisArg);
|
|
11745
11762
|
} else {
|
|
11746
11763
|
a[key] = val;
|
|
@@ -11809,10 +11826,10 @@ var require_axios = __commonJS({
|
|
|
11809
11826
|
};
|
|
11810
11827
|
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
11811
11828
|
var forEachEntry = (obj, fn) => {
|
|
11812
|
-
const generator = obj && obj[
|
|
11813
|
-
const
|
|
11829
|
+
const generator = obj && obj[iterator];
|
|
11830
|
+
const _iterator = generator.call(obj);
|
|
11814
11831
|
let result;
|
|
11815
|
-
while ((result =
|
|
11832
|
+
while ((result = _iterator.next()) && !result.done) {
|
|
11816
11833
|
const pair = result.value;
|
|
11817
11834
|
fn.call(obj, pair[0], pair[1]);
|
|
11818
11835
|
}
|
|
@@ -11849,11 +11866,11 @@ var require_axios = __commonJS({
|
|
|
11849
11866
|
};
|
|
11850
11867
|
var freezeMethods = (obj) => {
|
|
11851
11868
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
11852
|
-
if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
|
|
11869
|
+
if (isFunction$1(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
|
|
11853
11870
|
return false;
|
|
11854
11871
|
}
|
|
11855
11872
|
const value = obj[name];
|
|
11856
|
-
if (!isFunction(value)) return;
|
|
11873
|
+
if (!isFunction$1(value)) return;
|
|
11857
11874
|
descriptor.enumerable = false;
|
|
11858
11875
|
if ("writable" in descriptor) {
|
|
11859
11876
|
descriptor.writable = false;
|
|
@@ -11882,7 +11899,7 @@ var require_axios = __commonJS({
|
|
|
11882
11899
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
11883
11900
|
};
|
|
11884
11901
|
function isSpecCompliantForm(thing) {
|
|
11885
|
-
return !!(thing && isFunction(thing.append) && thing[
|
|
11902
|
+
return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
11886
11903
|
}
|
|
11887
11904
|
var toJSONObject = (obj) => {
|
|
11888
11905
|
const stack = new Array(10);
|
|
@@ -11891,6 +11908,9 @@ var require_axios = __commonJS({
|
|
|
11891
11908
|
if (stack.indexOf(source) >= 0) {
|
|
11892
11909
|
return;
|
|
11893
11910
|
}
|
|
11911
|
+
if (isBuffer(source)) {
|
|
11912
|
+
return source;
|
|
11913
|
+
}
|
|
11894
11914
|
if (!("toJSON" in source)) {
|
|
11895
11915
|
stack[i] = source;
|
|
11896
11916
|
const target = isArray(source) ? [] : {};
|
|
@@ -11907,7 +11927,7 @@ var require_axios = __commonJS({
|
|
|
11907
11927
|
return visit(obj, 0);
|
|
11908
11928
|
};
|
|
11909
11929
|
var isAsyncFn = kindOfTest("AsyncFunction");
|
|
11910
|
-
var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
11930
|
+
var isThenable = (thing) => thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
11911
11931
|
var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
11912
11932
|
if (setImmediateSupported) {
|
|
11913
11933
|
return setImmediate;
|
|
@@ -11925,9 +11945,10 @@ var require_axios = __commonJS({
|
|
|
11925
11945
|
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
11926
11946
|
})(
|
|
11927
11947
|
typeof setImmediate === "function",
|
|
11928
|
-
isFunction(_global.postMessage)
|
|
11948
|
+
isFunction$1(_global.postMessage)
|
|
11929
11949
|
);
|
|
11930
11950
|
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
11951
|
+
var isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
11931
11952
|
var utils$1 = {
|
|
11932
11953
|
isArray,
|
|
11933
11954
|
isArrayBuffer,
|
|
@@ -11939,6 +11960,7 @@ var require_axios = __commonJS({
|
|
|
11939
11960
|
isBoolean,
|
|
11940
11961
|
isObject,
|
|
11941
11962
|
isPlainObject,
|
|
11963
|
+
isEmptyObject,
|
|
11942
11964
|
isReadableStream,
|
|
11943
11965
|
isRequest,
|
|
11944
11966
|
isResponse,
|
|
@@ -11948,7 +11970,7 @@ var require_axios = __commonJS({
|
|
|
11948
11970
|
isFile,
|
|
11949
11971
|
isBlob,
|
|
11950
11972
|
isRegExp,
|
|
11951
|
-
isFunction,
|
|
11973
|
+
isFunction: isFunction$1,
|
|
11952
11974
|
isStream,
|
|
11953
11975
|
isURLSearchParams,
|
|
11954
11976
|
isTypedArray,
|
|
@@ -11984,7 +12006,8 @@ var require_axios = __commonJS({
|
|
|
11984
12006
|
isAsyncFn,
|
|
11985
12007
|
isThenable,
|
|
11986
12008
|
setImmediate: _setImmediate,
|
|
11987
|
-
asap
|
|
12009
|
+
asap,
|
|
12010
|
+
isIterable
|
|
11988
12011
|
};
|
|
11989
12012
|
function AxiosError(message, code, config, request, response) {
|
|
11990
12013
|
Error.call(this);
|
|
@@ -12052,9 +12075,13 @@ var require_axios = __commonJS({
|
|
|
12052
12075
|
}, (prop) => {
|
|
12053
12076
|
return prop !== "isAxiosError";
|
|
12054
12077
|
});
|
|
12055
|
-
|
|
12056
|
-
|
|
12057
|
-
axiosError
|
|
12078
|
+
const msg = error && error.message ? error.message : "Error";
|
|
12079
|
+
const errCode = code == null && error ? error.code : code;
|
|
12080
|
+
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
12081
|
+
if (error && axiosError.cause == null) {
|
|
12082
|
+
Object.defineProperty(axiosError, "cause", { value: error, configurable: true });
|
|
12083
|
+
}
|
|
12084
|
+
axiosError.name = error && error.name || "Error";
|
|
12058
12085
|
customProps && Object.assign(axiosError, customProps);
|
|
12059
12086
|
return axiosError;
|
|
12060
12087
|
};
|
|
@@ -12103,6 +12130,9 @@ var require_axios = __commonJS({
|
|
|
12103
12130
|
if (utils$1.isDate(value)) {
|
|
12104
12131
|
return value.toISOString();
|
|
12105
12132
|
}
|
|
12133
|
+
if (utils$1.isBoolean(value)) {
|
|
12134
|
+
return value.toString();
|
|
12135
|
+
}
|
|
12106
12136
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
12107
12137
|
throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
12108
12138
|
}
|
|
@@ -12198,7 +12228,7 @@ var require_axios = __commonJS({
|
|
|
12198
12228
|
}, "").join("&");
|
|
12199
12229
|
};
|
|
12200
12230
|
function encode(val) {
|
|
12201
|
-
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+")
|
|
12231
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
12202
12232
|
}
|
|
12203
12233
|
function buildURL(url2, params, options) {
|
|
12204
12234
|
if (!params) {
|
|
@@ -12343,15 +12373,16 @@ var require_axios = __commonJS({
|
|
|
12343
12373
|
...platform$1
|
|
12344
12374
|
};
|
|
12345
12375
|
function toURLEncodedForm(data, options) {
|
|
12346
|
-
return toFormData(data, new platform.classes.URLSearchParams(),
|
|
12376
|
+
return toFormData(data, new platform.classes.URLSearchParams(), {
|
|
12347
12377
|
visitor: function(value, key, path, helpers) {
|
|
12348
12378
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
12349
12379
|
this.append(key, value.toString("base64"));
|
|
12350
12380
|
return false;
|
|
12351
12381
|
}
|
|
12352
12382
|
return helpers.defaultVisitor.apply(this, arguments);
|
|
12353
|
-
}
|
|
12354
|
-
|
|
12383
|
+
},
|
|
12384
|
+
...options
|
|
12385
|
+
});
|
|
12355
12386
|
}
|
|
12356
12387
|
function parsePropPath(name) {
|
|
12357
12388
|
return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
@@ -12471,7 +12502,7 @@ var require_axios = __commonJS({
|
|
|
12471
12502
|
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
12472
12503
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
12473
12504
|
try {
|
|
12474
|
-
return JSON.parse(data);
|
|
12505
|
+
return JSON.parse(data, this.parseReviver);
|
|
12475
12506
|
} catch (e) {
|
|
12476
12507
|
if (strictJSONParsing) {
|
|
12477
12508
|
if (e.name === "SyntaxError") {
|
|
@@ -12625,10 +12656,15 @@ var require_axios = __commonJS({
|
|
|
12625
12656
|
setHeaders(header, valueOrRewrite);
|
|
12626
12657
|
} else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
12627
12658
|
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
12628
|
-
} else if (utils$1.
|
|
12629
|
-
|
|
12630
|
-
|
|
12659
|
+
} else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
|
|
12660
|
+
let obj = {}, dest, key;
|
|
12661
|
+
for (const entry of header) {
|
|
12662
|
+
if (!utils$1.isArray(entry)) {
|
|
12663
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
12664
|
+
}
|
|
12665
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
12631
12666
|
}
|
|
12667
|
+
setHeaders(obj, valueOrRewrite);
|
|
12632
12668
|
} else {
|
|
12633
12669
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
12634
12670
|
}
|
|
@@ -12732,6 +12768,9 @@ var require_axios = __commonJS({
|
|
|
12732
12768
|
toString() {
|
|
12733
12769
|
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
12734
12770
|
}
|
|
12771
|
+
getSetCookie() {
|
|
12772
|
+
return this.get("set-cookie") || [];
|
|
12773
|
+
}
|
|
12735
12774
|
get [Symbol.toStringTag]() {
|
|
12736
12775
|
return "AxiosHeaders";
|
|
12737
12776
|
}
|
|
@@ -12815,12 +12854,12 @@ var require_axios = __commonJS({
|
|
|
12815
12854
|
}
|
|
12816
12855
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
12817
12856
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
12818
|
-
if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
|
|
12857
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
12819
12858
|
return combineURLs(baseURL, requestedURL);
|
|
12820
12859
|
}
|
|
12821
12860
|
return requestedURL;
|
|
12822
12861
|
}
|
|
12823
|
-
var VERSION = "1.
|
|
12862
|
+
var VERSION = "1.12.2";
|
|
12824
12863
|
function parseProtocol(url2) {
|
|
12825
12864
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
12826
12865
|
return match && match[1] || "";
|
|
@@ -13029,7 +13068,7 @@ var require_axios = __commonJS({
|
|
|
13029
13068
|
throw Error("boundary must be 10-70 characters long");
|
|
13030
13069
|
}
|
|
13031
13070
|
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
13032
|
-
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF
|
|
13071
|
+
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
|
|
13033
13072
|
let contentLength = footerBytes.byteLength;
|
|
13034
13073
|
const parts = Array.from(form.entries()).map(([name, value]) => {
|
|
13035
13074
|
const part = new FormDataPart(name, value);
|
|
@@ -13131,7 +13170,7 @@ var require_axios = __commonJS({
|
|
|
13131
13170
|
clearTimeout(timer);
|
|
13132
13171
|
timer = null;
|
|
13133
13172
|
}
|
|
13134
|
-
fn
|
|
13173
|
+
fn(...args);
|
|
13135
13174
|
};
|
|
13136
13175
|
const throttled = (...args) => {
|
|
13137
13176
|
const now = Date.now();
|
|
@@ -13184,6 +13223,55 @@ var require_axios = __commonJS({
|
|
|
13184
13223
|
}), throttled[1]];
|
|
13185
13224
|
};
|
|
13186
13225
|
var asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
|
|
13226
|
+
function estimateDataURLDecodedBytes(url2) {
|
|
13227
|
+
if (!url2 || typeof url2 !== "string") return 0;
|
|
13228
|
+
if (!url2.startsWith("data:")) return 0;
|
|
13229
|
+
const comma = url2.indexOf(",");
|
|
13230
|
+
if (comma < 0) return 0;
|
|
13231
|
+
const meta = url2.slice(5, comma);
|
|
13232
|
+
const body = url2.slice(comma + 1);
|
|
13233
|
+
const isBase64 = /;base64/i.test(meta);
|
|
13234
|
+
if (isBase64) {
|
|
13235
|
+
let effectiveLen = body.length;
|
|
13236
|
+
const len = body.length;
|
|
13237
|
+
for (let i = 0; i < len; i++) {
|
|
13238
|
+
if (body.charCodeAt(i) === 37 && i + 2 < len) {
|
|
13239
|
+
const a = body.charCodeAt(i + 1);
|
|
13240
|
+
const b = body.charCodeAt(i + 2);
|
|
13241
|
+
const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
|
|
13242
|
+
if (isHex) {
|
|
13243
|
+
effectiveLen -= 2;
|
|
13244
|
+
i += 2;
|
|
13245
|
+
}
|
|
13246
|
+
}
|
|
13247
|
+
}
|
|
13248
|
+
let pad = 0;
|
|
13249
|
+
let idx = len - 1;
|
|
13250
|
+
const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
|
|
13251
|
+
body.charCodeAt(j - 1) === 51 && // '3'
|
|
13252
|
+
(body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
|
|
13253
|
+
if (idx >= 0) {
|
|
13254
|
+
if (body.charCodeAt(idx) === 61) {
|
|
13255
|
+
pad++;
|
|
13256
|
+
idx--;
|
|
13257
|
+
} else if (tailIsPct3D(idx)) {
|
|
13258
|
+
pad++;
|
|
13259
|
+
idx -= 3;
|
|
13260
|
+
}
|
|
13261
|
+
}
|
|
13262
|
+
if (pad === 1 && idx >= 0) {
|
|
13263
|
+
if (body.charCodeAt(idx) === 61) {
|
|
13264
|
+
pad++;
|
|
13265
|
+
} else if (tailIsPct3D(idx)) {
|
|
13266
|
+
pad++;
|
|
13267
|
+
}
|
|
13268
|
+
}
|
|
13269
|
+
const groups = Math.floor(effectiveLen / 4);
|
|
13270
|
+
const bytes = groups * 3 - (pad || 0);
|
|
13271
|
+
return bytes > 0 ? bytes : 0;
|
|
13272
|
+
}
|
|
13273
|
+
return Buffer.byteLength(body, "utf8");
|
|
13274
|
+
}
|
|
13187
13275
|
var zlibOptions = {
|
|
13188
13276
|
flush: zlib__default["default"].constants.Z_SYNC_FLUSH,
|
|
13189
13277
|
finishFlush: zlib__default["default"].constants.Z_SYNC_FLUSH
|
|
@@ -13325,6 +13413,17 @@ var require_axios = __commonJS({
|
|
|
13325
13413
|
const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : void 0);
|
|
13326
13414
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
13327
13415
|
if (protocol === "data:") {
|
|
13416
|
+
if (config.maxContentLength > -1) {
|
|
13417
|
+
const dataUrl = String(config.url || fullPath || "");
|
|
13418
|
+
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
13419
|
+
if (estimated > config.maxContentLength) {
|
|
13420
|
+
return reject(new AxiosError(
|
|
13421
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
13422
|
+
AxiosError.ERR_BAD_RESPONSE,
|
|
13423
|
+
config
|
|
13424
|
+
));
|
|
13425
|
+
}
|
|
13426
|
+
}
|
|
13328
13427
|
let convertedData;
|
|
13329
13428
|
if (method !== "GET") {
|
|
13330
13429
|
return settle(resolve, reject, {
|
|
@@ -13792,7 +13891,7 @@ var require_axios = __commonJS({
|
|
|
13792
13891
|
validateStatus: mergeDirectKeys,
|
|
13793
13892
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
13794
13893
|
};
|
|
13795
|
-
utils$1.forEach(Object.keys(
|
|
13894
|
+
utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
13796
13895
|
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
13797
13896
|
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
13798
13897
|
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
@@ -13810,13 +13909,17 @@ var require_axios = __commonJS({
|
|
|
13810
13909
|
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
|
|
13811
13910
|
);
|
|
13812
13911
|
}
|
|
13813
|
-
let contentType;
|
|
13814
13912
|
if (utils$1.isFormData(data)) {
|
|
13815
13913
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
13816
13914
|
headers.setContentType(void 0);
|
|
13817
|
-
} else if ((
|
|
13818
|
-
const
|
|
13819
|
-
|
|
13915
|
+
} else if (utils$1.isFunction(data.getHeaders)) {
|
|
13916
|
+
const formHeaders = data.getHeaders();
|
|
13917
|
+
const allowedHeaders = ["content-type", "content-length"];
|
|
13918
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
13919
|
+
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
13920
|
+
headers.set(key, val);
|
|
13921
|
+
}
|
|
13922
|
+
});
|
|
13820
13923
|
}
|
|
13821
13924
|
}
|
|
13822
13925
|
if (platform.hasStandardBrowserEnv) {
|
|
@@ -13894,8 +13997,11 @@ var require_axios = __commonJS({
|
|
|
13894
13997
|
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
13895
13998
|
request = null;
|
|
13896
13999
|
};
|
|
13897
|
-
request.onerror = function handleError() {
|
|
13898
|
-
|
|
14000
|
+
request.onerror = function handleError(event) {
|
|
14001
|
+
const msg = event && event.message ? event.message : "Network Error";
|
|
14002
|
+
const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
|
|
14003
|
+
err.event = event || null;
|
|
14004
|
+
reject(err);
|
|
13899
14005
|
request = null;
|
|
13900
14006
|
};
|
|
13901
14007
|
request.ontimeout = function handleTimeout() {
|
|
@@ -14027,7 +14133,7 @@ var require_axios = __commonJS({
|
|
|
14027
14133
|
}
|
|
14028
14134
|
};
|
|
14029
14135
|
var trackStream = (stream2, chunkSize, onProgress, onFinish) => {
|
|
14030
|
-
const
|
|
14136
|
+
const iterator2 = readBytes(stream2, chunkSize);
|
|
14031
14137
|
let bytes = 0;
|
|
14032
14138
|
let done;
|
|
14033
14139
|
let _onFinish = (e) => {
|
|
@@ -14039,7 +14145,7 @@ var require_axios = __commonJS({
|
|
|
14039
14145
|
return new ReadableStream({
|
|
14040
14146
|
async pull(controller) {
|
|
14041
14147
|
try {
|
|
14042
|
-
const { done: done2, value } = await
|
|
14148
|
+
const { done: done2, value } = await iterator2.next();
|
|
14043
14149
|
if (done2) {
|
|
14044
14150
|
_onFinish();
|
|
14045
14151
|
controller.close();
|
|
@@ -14058,15 +14164,22 @@ var require_axios = __commonJS({
|
|
|
14058
14164
|
},
|
|
14059
14165
|
cancel(reason) {
|
|
14060
14166
|
_onFinish(reason);
|
|
14061
|
-
return
|
|
14167
|
+
return iterator2.return();
|
|
14062
14168
|
}
|
|
14063
14169
|
}, {
|
|
14064
14170
|
highWaterMark: 2
|
|
14065
14171
|
});
|
|
14066
14172
|
};
|
|
14067
|
-
var
|
|
14068
|
-
var
|
|
14069
|
-
var
|
|
14173
|
+
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
14174
|
+
var { isFunction } = utils$1;
|
|
14175
|
+
var globalFetchAPI = (({ Request, Response }) => ({
|
|
14176
|
+
Request,
|
|
14177
|
+
Response
|
|
14178
|
+
}))(utils$1.global);
|
|
14179
|
+
var {
|
|
14180
|
+
ReadableStream: ReadableStream$1,
|
|
14181
|
+
TextEncoder: TextEncoder$1
|
|
14182
|
+
} = utils$1.global;
|
|
14070
14183
|
var test = (fn, ...args) => {
|
|
14071
14184
|
try {
|
|
14072
14185
|
return !!fn(...args);
|
|
@@ -14074,162 +14187,202 @@ var require_axios = __commonJS({
|
|
|
14074
14187
|
return false;
|
|
14075
14188
|
}
|
|
14076
14189
|
};
|
|
14077
|
-
var
|
|
14078
|
-
|
|
14079
|
-
|
|
14080
|
-
|
|
14081
|
-
|
|
14082
|
-
|
|
14083
|
-
|
|
14084
|
-
|
|
14085
|
-
|
|
14086
|
-
|
|
14087
|
-
return duplexAccessed && !hasContentType;
|
|
14088
|
-
});
|
|
14089
|
-
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
14090
|
-
var supportsResponseStream = isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
|
14091
|
-
var resolvers = {
|
|
14092
|
-
stream: supportsResponseStream && ((res) => res.body)
|
|
14093
|
-
};
|
|
14094
|
-
isFetchSupported && ((res) => {
|
|
14095
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
14096
|
-
!resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
|
|
14097
|
-
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
14098
|
-
});
|
|
14099
|
-
});
|
|
14100
|
-
})(new Response());
|
|
14101
|
-
var getBodyLength = async (body) => {
|
|
14102
|
-
if (body == null) {
|
|
14103
|
-
return 0;
|
|
14104
|
-
}
|
|
14105
|
-
if (utils$1.isBlob(body)) {
|
|
14106
|
-
return body.size;
|
|
14190
|
+
var factory = (env) => {
|
|
14191
|
+
env = utils$1.merge.call({
|
|
14192
|
+
skipUndefined: true
|
|
14193
|
+
}, globalFetchAPI, env);
|
|
14194
|
+
const { fetch: envFetch, Request, Response } = env;
|
|
14195
|
+
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
14196
|
+
const isRequestSupported = isFunction(Request);
|
|
14197
|
+
const isResponseSupported = isFunction(Response);
|
|
14198
|
+
if (!isFetchSupported) {
|
|
14199
|
+
return false;
|
|
14107
14200
|
}
|
|
14108
|
-
|
|
14109
|
-
|
|
14201
|
+
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
|
|
14202
|
+
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()));
|
|
14203
|
+
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
14204
|
+
let duplexAccessed = false;
|
|
14205
|
+
const hasContentType = new Request(platform.origin, {
|
|
14206
|
+
body: new ReadableStream$1(),
|
|
14110
14207
|
method: "POST",
|
|
14111
|
-
|
|
14112
|
-
|
|
14113
|
-
|
|
14114
|
-
|
|
14115
|
-
|
|
14116
|
-
return
|
|
14117
|
-
}
|
|
14118
|
-
if (utils$1.isURLSearchParams(body)) {
|
|
14119
|
-
body = body + "";
|
|
14120
|
-
}
|
|
14121
|
-
if (utils$1.isString(body)) {
|
|
14122
|
-
return (await encodeText(body)).byteLength;
|
|
14123
|
-
}
|
|
14124
|
-
};
|
|
14125
|
-
var resolveBodyLength = async (headers, body) => {
|
|
14126
|
-
const length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
14127
|
-
return length == null ? getBodyLength(body) : length;
|
|
14128
|
-
};
|
|
14129
|
-
var fetchAdapter = isFetchSupported && (async (config) => {
|
|
14130
|
-
let {
|
|
14131
|
-
url: url2,
|
|
14132
|
-
method,
|
|
14133
|
-
data,
|
|
14134
|
-
signal,
|
|
14135
|
-
cancelToken,
|
|
14136
|
-
timeout,
|
|
14137
|
-
onDownloadProgress,
|
|
14138
|
-
onUploadProgress,
|
|
14139
|
-
responseType,
|
|
14140
|
-
headers,
|
|
14141
|
-
withCredentials = "same-origin",
|
|
14142
|
-
fetchOptions
|
|
14143
|
-
} = resolveConfig(config);
|
|
14144
|
-
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
14145
|
-
let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
14146
|
-
let request;
|
|
14147
|
-
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
14148
|
-
composedSignal.unsubscribe();
|
|
14208
|
+
get duplex() {
|
|
14209
|
+
duplexAccessed = true;
|
|
14210
|
+
return "half";
|
|
14211
|
+
}
|
|
14212
|
+
}).headers.has("Content-Type");
|
|
14213
|
+
return duplexAccessed && !hasContentType;
|
|
14149
14214
|
});
|
|
14150
|
-
|
|
14151
|
-
|
|
14152
|
-
|
|
14153
|
-
|
|
14154
|
-
|
|
14155
|
-
|
|
14156
|
-
|
|
14157
|
-
|
|
14158
|
-
|
|
14159
|
-
|
|
14160
|
-
|
|
14161
|
-
|
|
14162
|
-
if (_request.body) {
|
|
14163
|
-
const [onProgress, flush] = progressEventDecorator(
|
|
14164
|
-
requestContentLength,
|
|
14165
|
-
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
14166
|
-
);
|
|
14167
|
-
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
14168
|
-
}
|
|
14169
|
-
}
|
|
14170
|
-
if (!utils$1.isString(withCredentials)) {
|
|
14171
|
-
withCredentials = withCredentials ? "include" : "omit";
|
|
14172
|
-
}
|
|
14173
|
-
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
14174
|
-
request = new Request(url2, {
|
|
14175
|
-
...fetchOptions,
|
|
14176
|
-
signal: composedSignal,
|
|
14177
|
-
method: method.toUpperCase(),
|
|
14178
|
-
headers: headers.normalize().toJSON(),
|
|
14179
|
-
body: data,
|
|
14180
|
-
duplex: "half",
|
|
14181
|
-
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
14182
|
-
});
|
|
14183
|
-
let response = await fetch(request);
|
|
14184
|
-
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
14185
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
14186
|
-
const options = {};
|
|
14187
|
-
["status", "statusText", "headers"].forEach((prop) => {
|
|
14188
|
-
options[prop] = response[prop];
|
|
14215
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
|
14216
|
+
const resolvers = {
|
|
14217
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
14218
|
+
};
|
|
14219
|
+
isFetchSupported && (() => {
|
|
14220
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
14221
|
+
!resolvers[type] && (resolvers[type] = (res, config) => {
|
|
14222
|
+
let method = res && res[type];
|
|
14223
|
+
if (method) {
|
|
14224
|
+
return method.call(res);
|
|
14225
|
+
}
|
|
14226
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
14189
14227
|
});
|
|
14190
|
-
|
|
14191
|
-
|
|
14192
|
-
|
|
14193
|
-
|
|
14194
|
-
|
|
14195
|
-
response = new Response(
|
|
14196
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
14197
|
-
flush && flush();
|
|
14198
|
-
unsubscribe && unsubscribe();
|
|
14199
|
-
}),
|
|
14200
|
-
options
|
|
14201
|
-
);
|
|
14228
|
+
});
|
|
14229
|
+
})();
|
|
14230
|
+
const getBodyLength = async (body) => {
|
|
14231
|
+
if (body == null) {
|
|
14232
|
+
return 0;
|
|
14202
14233
|
}
|
|
14203
|
-
|
|
14204
|
-
|
|
14205
|
-
|
|
14206
|
-
|
|
14207
|
-
|
|
14208
|
-
|
|
14209
|
-
|
|
14210
|
-
status: response.status,
|
|
14211
|
-
statusText: response.statusText,
|
|
14212
|
-
config,
|
|
14213
|
-
request
|
|
14234
|
+
if (utils$1.isBlob(body)) {
|
|
14235
|
+
return body.size;
|
|
14236
|
+
}
|
|
14237
|
+
if (utils$1.isSpecCompliantForm(body)) {
|
|
14238
|
+
const _request = new Request(platform.origin, {
|
|
14239
|
+
method: "POST",
|
|
14240
|
+
body
|
|
14214
14241
|
});
|
|
14215
|
-
|
|
14216
|
-
|
|
14217
|
-
|
|
14218
|
-
|
|
14219
|
-
|
|
14220
|
-
|
|
14221
|
-
|
|
14222
|
-
|
|
14242
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
14243
|
+
}
|
|
14244
|
+
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
|
14245
|
+
return body.byteLength;
|
|
14246
|
+
}
|
|
14247
|
+
if (utils$1.isURLSearchParams(body)) {
|
|
14248
|
+
body = body + "";
|
|
14249
|
+
}
|
|
14250
|
+
if (utils$1.isString(body)) {
|
|
14251
|
+
return (await encodeText(body)).byteLength;
|
|
14252
|
+
}
|
|
14253
|
+
};
|
|
14254
|
+
const resolveBodyLength = async (headers, body) => {
|
|
14255
|
+
const length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
14256
|
+
return length == null ? getBodyLength(body) : length;
|
|
14257
|
+
};
|
|
14258
|
+
return async (config) => {
|
|
14259
|
+
let {
|
|
14260
|
+
url: url2,
|
|
14261
|
+
method,
|
|
14262
|
+
data,
|
|
14263
|
+
signal,
|
|
14264
|
+
cancelToken,
|
|
14265
|
+
timeout,
|
|
14266
|
+
onDownloadProgress,
|
|
14267
|
+
onUploadProgress,
|
|
14268
|
+
responseType,
|
|
14269
|
+
headers,
|
|
14270
|
+
withCredentials = "same-origin",
|
|
14271
|
+
fetchOptions
|
|
14272
|
+
} = resolveConfig(config);
|
|
14273
|
+
let _fetch = envFetch || fetch;
|
|
14274
|
+
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
14275
|
+
let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
14276
|
+
let request = null;
|
|
14277
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
14278
|
+
composedSignal.unsubscribe();
|
|
14279
|
+
});
|
|
14280
|
+
let requestContentLength;
|
|
14281
|
+
try {
|
|
14282
|
+
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
14283
|
+
let _request = new Request(url2, {
|
|
14284
|
+
method: "POST",
|
|
14285
|
+
body: data,
|
|
14286
|
+
duplex: "half"
|
|
14287
|
+
});
|
|
14288
|
+
let contentTypeHeader;
|
|
14289
|
+
if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
14290
|
+
headers.setContentType(contentTypeHeader);
|
|
14291
|
+
}
|
|
14292
|
+
if (_request.body) {
|
|
14293
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
14294
|
+
requestContentLength,
|
|
14295
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
14296
|
+
);
|
|
14297
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
14223
14298
|
}
|
|
14224
|
-
|
|
14299
|
+
}
|
|
14300
|
+
if (!utils$1.isString(withCredentials)) {
|
|
14301
|
+
withCredentials = withCredentials ? "include" : "omit";
|
|
14302
|
+
}
|
|
14303
|
+
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
14304
|
+
const resolvedOptions = {
|
|
14305
|
+
...fetchOptions,
|
|
14306
|
+
signal: composedSignal,
|
|
14307
|
+
method: method.toUpperCase(),
|
|
14308
|
+
headers: headers.normalize().toJSON(),
|
|
14309
|
+
body: data,
|
|
14310
|
+
duplex: "half",
|
|
14311
|
+
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
14312
|
+
};
|
|
14313
|
+
request = isRequestSupported && new Request(url2, resolvedOptions);
|
|
14314
|
+
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
|
|
14315
|
+
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
14316
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
14317
|
+
const options = {};
|
|
14318
|
+
["status", "statusText", "headers"].forEach((prop) => {
|
|
14319
|
+
options[prop] = response[prop];
|
|
14320
|
+
});
|
|
14321
|
+
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
14322
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
14323
|
+
responseContentLength,
|
|
14324
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
14325
|
+
) || [];
|
|
14326
|
+
response = new Response(
|
|
14327
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
14328
|
+
flush && flush();
|
|
14329
|
+
unsubscribe && unsubscribe();
|
|
14330
|
+
}),
|
|
14331
|
+
options
|
|
14332
|
+
);
|
|
14333
|
+
}
|
|
14334
|
+
responseType = responseType || "text";
|
|
14335
|
+
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config);
|
|
14336
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
14337
|
+
return await new Promise((resolve, reject) => {
|
|
14338
|
+
settle(resolve, reject, {
|
|
14339
|
+
data: responseData,
|
|
14340
|
+
headers: AxiosHeaders$1.from(response.headers),
|
|
14341
|
+
status: response.status,
|
|
14342
|
+
statusText: response.statusText,
|
|
14343
|
+
config,
|
|
14344
|
+
request
|
|
14345
|
+
});
|
|
14346
|
+
});
|
|
14347
|
+
} catch (err) {
|
|
14348
|
+
unsubscribe && unsubscribe();
|
|
14349
|
+
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
14350
|
+
throw Object.assign(
|
|
14351
|
+
new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request),
|
|
14352
|
+
{
|
|
14353
|
+
cause: err.cause || err
|
|
14354
|
+
}
|
|
14355
|
+
);
|
|
14356
|
+
}
|
|
14357
|
+
throw AxiosError.from(err, err && err.code, config, request);
|
|
14225
14358
|
}
|
|
14226
|
-
|
|
14359
|
+
};
|
|
14360
|
+
};
|
|
14361
|
+
var seedCache = /* @__PURE__ */ new Map();
|
|
14362
|
+
var getFetch = (config) => {
|
|
14363
|
+
let env = config ? config.env : {};
|
|
14364
|
+
const { fetch: fetch2, Request, Response } = env;
|
|
14365
|
+
const seeds = [
|
|
14366
|
+
Request,
|
|
14367
|
+
Response,
|
|
14368
|
+
fetch2
|
|
14369
|
+
];
|
|
14370
|
+
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
14371
|
+
while (i--) {
|
|
14372
|
+
seed = seeds[i];
|
|
14373
|
+
target = map.get(seed);
|
|
14374
|
+
target === void 0 && map.set(seed, target = i ? /* @__PURE__ */ new Map() : factory(env));
|
|
14375
|
+
map = target;
|
|
14227
14376
|
}
|
|
14228
|
-
|
|
14377
|
+
return target;
|
|
14378
|
+
};
|
|
14379
|
+
getFetch();
|
|
14229
14380
|
var knownAdapters = {
|
|
14230
14381
|
http: httpAdapter,
|
|
14231
14382
|
xhr: xhrAdapter,
|
|
14232
|
-
fetch:
|
|
14383
|
+
fetch: {
|
|
14384
|
+
get: getFetch
|
|
14385
|
+
}
|
|
14233
14386
|
};
|
|
14234
14387
|
utils$1.forEach(knownAdapters, (fn, value) => {
|
|
14235
14388
|
if (fn) {
|
|
@@ -14243,7 +14396,7 @@ var require_axios = __commonJS({
|
|
|
14243
14396
|
var renderReason = (reason) => `- ${reason}`;
|
|
14244
14397
|
var isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
14245
14398
|
var adapters = {
|
|
14246
|
-
getAdapter: (adapters2) => {
|
|
14399
|
+
getAdapter: (adapters2, config) => {
|
|
14247
14400
|
adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
|
|
14248
14401
|
const { length } = adapters2;
|
|
14249
14402
|
let nameOrAdapter;
|
|
@@ -14259,7 +14412,7 @@ var require_axios = __commonJS({
|
|
|
14259
14412
|
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
14260
14413
|
}
|
|
14261
14414
|
}
|
|
14262
|
-
if (adapter) {
|
|
14415
|
+
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
14263
14416
|
break;
|
|
14264
14417
|
}
|
|
14265
14418
|
rejectedReasons[id || "#" + i] = adapter;
|
|
@@ -14296,7 +14449,7 @@ var require_axios = __commonJS({
|
|
|
14296
14449
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
14297
14450
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
14298
14451
|
}
|
|
14299
|
-
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
|
|
14452
|
+
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
|
|
14300
14453
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
14301
14454
|
throwIfCancellationRequested(config);
|
|
14302
14455
|
response.data = transformData.call(
|
|
@@ -14386,7 +14539,7 @@ var require_axios = __commonJS({
|
|
|
14386
14539
|
var validators = validator.validators;
|
|
14387
14540
|
var Axios = class {
|
|
14388
14541
|
constructor(instanceConfig) {
|
|
14389
|
-
this.defaults = instanceConfig;
|
|
14542
|
+
this.defaults = instanceConfig || {};
|
|
14390
14543
|
this.interceptors = {
|
|
14391
14544
|
request: new InterceptorManager$1(),
|
|
14392
14545
|
response: new InterceptorManager$1()
|
|
@@ -14488,8 +14641,8 @@ var require_axios = __commonJS({
|
|
|
14488
14641
|
let len;
|
|
14489
14642
|
if (!synchronousRequestInterceptors) {
|
|
14490
14643
|
const chain = [dispatchRequest.bind(this), void 0];
|
|
14491
|
-
chain.unshift
|
|
14492
|
-
chain.push
|
|
14644
|
+
chain.unshift(...requestInterceptorChain);
|
|
14645
|
+
chain.push(...responseInterceptorChain);
|
|
14493
14646
|
len = chain.length;
|
|
14494
14647
|
promise = Promise.resolve(config);
|
|
14495
14648
|
while (i < len) {
|
|
@@ -14499,7 +14652,6 @@ var require_axios = __commonJS({
|
|
|
14499
14652
|
}
|
|
14500
14653
|
len = requestInterceptorChain.length;
|
|
14501
14654
|
let newConfig = config;
|
|
14502
|
-
i = 0;
|
|
14503
14655
|
while (i < len) {
|
|
14504
14656
|
const onFulfilled = requestInterceptorChain[i++];
|
|
14505
14657
|
const onRejected = requestInterceptorChain[i++];
|
|
@@ -45148,7 +45300,7 @@ mime-types/index.js:
|
|
|
45148
45300
|
*)
|
|
45149
45301
|
|
|
45150
45302
|
axios/dist/node/axios.cjs:
|
|
45151
|
-
(*! Axios v1.
|
|
45303
|
+
(*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors *)
|
|
45152
45304
|
|
|
45153
45305
|
safe-buffer/index.js:
|
|
45154
45306
|
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|