@gammarers/aws-daily-cost-usage-report-stack 2.0.21 → 2.0.23
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.
|
@@ -12613,7 +12613,7 @@ var require_axios = __commonJS({
|
|
|
12613
12613
|
var { isArray } = Array;
|
|
12614
12614
|
var isUndefined = typeOfTest("undefined");
|
|
12615
12615
|
function isBuffer(val) {
|
|
12616
|
-
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
12616
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
12617
12617
|
}
|
|
12618
12618
|
var isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
12619
12619
|
function isArrayBufferView(val) {
|
|
@@ -12626,7 +12626,7 @@ var require_axios = __commonJS({
|
|
|
12626
12626
|
return result;
|
|
12627
12627
|
}
|
|
12628
12628
|
var isString = typeOfTest("string");
|
|
12629
|
-
var isFunction = typeOfTest("function");
|
|
12629
|
+
var isFunction$1 = typeOfTest("function");
|
|
12630
12630
|
var isNumber = typeOfTest("number");
|
|
12631
12631
|
var isObject = (thing) => thing !== null && typeof thing === "object";
|
|
12632
12632
|
var isBoolean = (thing) => thing === true || thing === false;
|
|
@@ -12651,11 +12651,11 @@ var require_axios = __commonJS({
|
|
|
12651
12651
|
var isFile = kindOfTest("File");
|
|
12652
12652
|
var isBlob = kindOfTest("Blob");
|
|
12653
12653
|
var isFileList = kindOfTest("FileList");
|
|
12654
|
-
var isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
12654
|
+
var isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
12655
12655
|
var isFormData = (thing) => {
|
|
12656
12656
|
let kind;
|
|
12657
|
-
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
12658
|
-
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
12657
|
+
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
12658
|
+
kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
|
|
12659
12659
|
};
|
|
12660
12660
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
12661
12661
|
var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
@@ -12708,7 +12708,7 @@ var require_axios = __commonJS({
|
|
|
12708
12708
|
})();
|
|
12709
12709
|
var isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
12710
12710
|
function merge() {
|
|
12711
|
-
const { caseless } = isContextDefined(this) && this || {};
|
|
12711
|
+
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
12712
12712
|
const result = {};
|
|
12713
12713
|
const assignValue = (val, key) => {
|
|
12714
12714
|
const targetKey = caseless && findKey(result, key) || key;
|
|
@@ -12718,7 +12718,7 @@ var require_axios = __commonJS({
|
|
|
12718
12718
|
result[targetKey] = merge({}, val);
|
|
12719
12719
|
} else if (isArray(val)) {
|
|
12720
12720
|
result[targetKey] = val.slice();
|
|
12721
|
-
} else {
|
|
12721
|
+
} else if (!skipUndefined || !isUndefined(val)) {
|
|
12722
12722
|
result[targetKey] = val;
|
|
12723
12723
|
}
|
|
12724
12724
|
};
|
|
@@ -12729,7 +12729,7 @@ var require_axios = __commonJS({
|
|
|
12729
12729
|
}
|
|
12730
12730
|
var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
12731
12731
|
forEach(b, (val, key) => {
|
|
12732
|
-
if (thisArg && isFunction(val)) {
|
|
12732
|
+
if (thisArg && isFunction$1(val)) {
|
|
12733
12733
|
a[key] = bind(val, thisArg);
|
|
12734
12734
|
} else {
|
|
12735
12735
|
a[key] = val;
|
|
@@ -12838,11 +12838,11 @@ var require_axios = __commonJS({
|
|
|
12838
12838
|
};
|
|
12839
12839
|
var freezeMethods = (obj) => {
|
|
12840
12840
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
12841
|
-
if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
|
|
12841
|
+
if (isFunction$1(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
|
|
12842
12842
|
return false;
|
|
12843
12843
|
}
|
|
12844
12844
|
const value = obj[name];
|
|
12845
|
-
if (!isFunction(value)) return;
|
|
12845
|
+
if (!isFunction$1(value)) return;
|
|
12846
12846
|
descriptor.enumerable = false;
|
|
12847
12847
|
if ("writable" in descriptor) {
|
|
12848
12848
|
descriptor.writable = false;
|
|
@@ -12871,7 +12871,7 @@ var require_axios = __commonJS({
|
|
|
12871
12871
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
12872
12872
|
};
|
|
12873
12873
|
function isSpecCompliantForm(thing) {
|
|
12874
|
-
return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
12874
|
+
return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
12875
12875
|
}
|
|
12876
12876
|
var toJSONObject = (obj) => {
|
|
12877
12877
|
const stack = new Array(10);
|
|
@@ -12899,7 +12899,7 @@ var require_axios = __commonJS({
|
|
|
12899
12899
|
return visit(obj, 0);
|
|
12900
12900
|
};
|
|
12901
12901
|
var isAsyncFn = kindOfTest("AsyncFunction");
|
|
12902
|
-
var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
12902
|
+
var isThenable = (thing) => thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
12903
12903
|
var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
12904
12904
|
if (setImmediateSupported) {
|
|
12905
12905
|
return setImmediate;
|
|
@@ -12917,10 +12917,10 @@ var require_axios = __commonJS({
|
|
|
12917
12917
|
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
12918
12918
|
})(
|
|
12919
12919
|
typeof setImmediate === "function",
|
|
12920
|
-
isFunction(_global.postMessage)
|
|
12920
|
+
isFunction$1(_global.postMessage)
|
|
12921
12921
|
);
|
|
12922
12922
|
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
12923
|
-
var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
12923
|
+
var isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
12924
12924
|
var utils$1 = {
|
|
12925
12925
|
isArray,
|
|
12926
12926
|
isArrayBuffer,
|
|
@@ -12942,7 +12942,7 @@ var require_axios = __commonJS({
|
|
|
12942
12942
|
isFile,
|
|
12943
12943
|
isBlob,
|
|
12944
12944
|
isRegExp,
|
|
12945
|
-
isFunction,
|
|
12945
|
+
isFunction: isFunction$1,
|
|
12946
12946
|
isStream,
|
|
12947
12947
|
isURLSearchParams,
|
|
12948
12948
|
isTypedArray,
|
|
@@ -13047,9 +13047,13 @@ var require_axios = __commonJS({
|
|
|
13047
13047
|
}, (prop) => {
|
|
13048
13048
|
return prop !== "isAxiosError";
|
|
13049
13049
|
});
|
|
13050
|
-
|
|
13051
|
-
|
|
13052
|
-
axiosError
|
|
13050
|
+
const msg = error && error.message ? error.message : "Error";
|
|
13051
|
+
const errCode = code == null && error ? error.code : code;
|
|
13052
|
+
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
13053
|
+
if (error && axiosError.cause == null) {
|
|
13054
|
+
Object.defineProperty(axiosError, "cause", { value: error, configurable: true });
|
|
13055
|
+
}
|
|
13056
|
+
axiosError.name = error && error.name || "Error";
|
|
13053
13057
|
customProps && Object.assign(axiosError, customProps);
|
|
13054
13058
|
return axiosError;
|
|
13055
13059
|
};
|
|
@@ -13196,7 +13200,7 @@ var require_axios = __commonJS({
|
|
|
13196
13200
|
}, "").join("&");
|
|
13197
13201
|
};
|
|
13198
13202
|
function encode(val) {
|
|
13199
|
-
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+")
|
|
13203
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
13200
13204
|
}
|
|
13201
13205
|
function buildURL(url2, params, options) {
|
|
13202
13206
|
if (!params) {
|
|
@@ -13470,7 +13474,7 @@ var require_axios = __commonJS({
|
|
|
13470
13474
|
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
13471
13475
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
13472
13476
|
try {
|
|
13473
|
-
return JSON.parse(data);
|
|
13477
|
+
return JSON.parse(data, this.parseReviver);
|
|
13474
13478
|
} catch (e) {
|
|
13475
13479
|
if (strictJSONParsing) {
|
|
13476
13480
|
if (e.name === "SyntaxError") {
|
|
@@ -13827,7 +13831,7 @@ var require_axios = __commonJS({
|
|
|
13827
13831
|
}
|
|
13828
13832
|
return requestedURL;
|
|
13829
13833
|
}
|
|
13830
|
-
var VERSION = "1.
|
|
13834
|
+
var VERSION = "1.12.2";
|
|
13831
13835
|
function parseProtocol(url2) {
|
|
13832
13836
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
13833
13837
|
return match && match[1] || "";
|
|
@@ -14191,6 +14195,55 @@ var require_axios = __commonJS({
|
|
|
14191
14195
|
}), throttled[1]];
|
|
14192
14196
|
};
|
|
14193
14197
|
var asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
|
|
14198
|
+
function estimateDataURLDecodedBytes(url2) {
|
|
14199
|
+
if (!url2 || typeof url2 !== "string") return 0;
|
|
14200
|
+
if (!url2.startsWith("data:")) return 0;
|
|
14201
|
+
const comma = url2.indexOf(",");
|
|
14202
|
+
if (comma < 0) return 0;
|
|
14203
|
+
const meta = url2.slice(5, comma);
|
|
14204
|
+
const body = url2.slice(comma + 1);
|
|
14205
|
+
const isBase64 = /;base64/i.test(meta);
|
|
14206
|
+
if (isBase64) {
|
|
14207
|
+
let effectiveLen = body.length;
|
|
14208
|
+
const len = body.length;
|
|
14209
|
+
for (let i = 0; i < len; i++) {
|
|
14210
|
+
if (body.charCodeAt(i) === 37 && i + 2 < len) {
|
|
14211
|
+
const a = body.charCodeAt(i + 1);
|
|
14212
|
+
const b = body.charCodeAt(i + 2);
|
|
14213
|
+
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);
|
|
14214
|
+
if (isHex) {
|
|
14215
|
+
effectiveLen -= 2;
|
|
14216
|
+
i += 2;
|
|
14217
|
+
}
|
|
14218
|
+
}
|
|
14219
|
+
}
|
|
14220
|
+
let pad = 0;
|
|
14221
|
+
let idx = len - 1;
|
|
14222
|
+
const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
|
|
14223
|
+
body.charCodeAt(j - 1) === 51 && // '3'
|
|
14224
|
+
(body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
|
|
14225
|
+
if (idx >= 0) {
|
|
14226
|
+
if (body.charCodeAt(idx) === 61) {
|
|
14227
|
+
pad++;
|
|
14228
|
+
idx--;
|
|
14229
|
+
} else if (tailIsPct3D(idx)) {
|
|
14230
|
+
pad++;
|
|
14231
|
+
idx -= 3;
|
|
14232
|
+
}
|
|
14233
|
+
}
|
|
14234
|
+
if (pad === 1 && idx >= 0) {
|
|
14235
|
+
if (body.charCodeAt(idx) === 61) {
|
|
14236
|
+
pad++;
|
|
14237
|
+
} else if (tailIsPct3D(idx)) {
|
|
14238
|
+
pad++;
|
|
14239
|
+
}
|
|
14240
|
+
}
|
|
14241
|
+
const groups = Math.floor(effectiveLen / 4);
|
|
14242
|
+
const bytes = groups * 3 - (pad || 0);
|
|
14243
|
+
return bytes > 0 ? bytes : 0;
|
|
14244
|
+
}
|
|
14245
|
+
return Buffer.byteLength(body, "utf8");
|
|
14246
|
+
}
|
|
14194
14247
|
var zlibOptions = {
|
|
14195
14248
|
flush: zlib__default["default"].constants.Z_SYNC_FLUSH,
|
|
14196
14249
|
finishFlush: zlib__default["default"].constants.Z_SYNC_FLUSH
|
|
@@ -14332,6 +14385,17 @@ var require_axios = __commonJS({
|
|
|
14332
14385
|
const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : void 0);
|
|
14333
14386
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
14334
14387
|
if (protocol === "data:") {
|
|
14388
|
+
if (config.maxContentLength > -1) {
|
|
14389
|
+
const dataUrl = String(config.url || fullPath || "");
|
|
14390
|
+
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
14391
|
+
if (estimated > config.maxContentLength) {
|
|
14392
|
+
return reject(new AxiosError(
|
|
14393
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
14394
|
+
AxiosError.ERR_BAD_RESPONSE,
|
|
14395
|
+
config
|
|
14396
|
+
));
|
|
14397
|
+
}
|
|
14398
|
+
}
|
|
14335
14399
|
let convertedData;
|
|
14336
14400
|
if (method !== "GET") {
|
|
14337
14401
|
return settle(resolve, reject, {
|
|
@@ -14817,13 +14881,17 @@ var require_axios = __commonJS({
|
|
|
14817
14881
|
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
|
|
14818
14882
|
);
|
|
14819
14883
|
}
|
|
14820
|
-
let contentType;
|
|
14821
14884
|
if (utils$1.isFormData(data)) {
|
|
14822
14885
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
14823
14886
|
headers.setContentType(void 0);
|
|
14824
|
-
} else if ((
|
|
14825
|
-
const
|
|
14826
|
-
|
|
14887
|
+
} else if (utils$1.isFunction(data.getHeaders)) {
|
|
14888
|
+
const formHeaders = data.getHeaders();
|
|
14889
|
+
const allowedHeaders = ["content-type", "content-length"];
|
|
14890
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
14891
|
+
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
14892
|
+
headers.set(key, val);
|
|
14893
|
+
}
|
|
14894
|
+
});
|
|
14827
14895
|
}
|
|
14828
14896
|
}
|
|
14829
14897
|
if (platform.hasStandardBrowserEnv) {
|
|
@@ -14901,8 +14969,11 @@ var require_axios = __commonJS({
|
|
|
14901
14969
|
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
14902
14970
|
request = null;
|
|
14903
14971
|
};
|
|
14904
|
-
request.onerror = function handleError() {
|
|
14905
|
-
|
|
14972
|
+
request.onerror = function handleError(event) {
|
|
14973
|
+
const msg = event && event.message ? event.message : "Network Error";
|
|
14974
|
+
const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
|
|
14975
|
+
err.event = event || null;
|
|
14976
|
+
reject(err);
|
|
14906
14977
|
request = null;
|
|
14907
14978
|
};
|
|
14908
14979
|
request.ontimeout = function handleTimeout() {
|
|
@@ -15071,9 +15142,16 @@ var require_axios = __commonJS({
|
|
|
15071
15142
|
highWaterMark: 2
|
|
15072
15143
|
});
|
|
15073
15144
|
};
|
|
15074
|
-
var
|
|
15075
|
-
var
|
|
15076
|
-
var
|
|
15145
|
+
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
15146
|
+
var { isFunction } = utils$1;
|
|
15147
|
+
var globalFetchAPI = (({ Request, Response }) => ({
|
|
15148
|
+
Request,
|
|
15149
|
+
Response
|
|
15150
|
+
}))(utils$1.global);
|
|
15151
|
+
var {
|
|
15152
|
+
ReadableStream: ReadableStream$1,
|
|
15153
|
+
TextEncoder: TextEncoder$1
|
|
15154
|
+
} = utils$1.global;
|
|
15077
15155
|
var test = (fn, ...args) => {
|
|
15078
15156
|
try {
|
|
15079
15157
|
return !!fn(...args);
|
|
@@ -15081,162 +15159,202 @@ var require_axios = __commonJS({
|
|
|
15081
15159
|
return false;
|
|
15082
15160
|
}
|
|
15083
15161
|
};
|
|
15084
|
-
var
|
|
15085
|
-
|
|
15086
|
-
|
|
15087
|
-
|
|
15088
|
-
|
|
15089
|
-
|
|
15090
|
-
|
|
15091
|
-
|
|
15092
|
-
|
|
15093
|
-
|
|
15094
|
-
return duplexAccessed && !hasContentType;
|
|
15095
|
-
});
|
|
15096
|
-
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
15097
|
-
var supportsResponseStream = isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
|
15098
|
-
var resolvers = {
|
|
15099
|
-
stream: supportsResponseStream && ((res) => res.body)
|
|
15100
|
-
};
|
|
15101
|
-
isFetchSupported && ((res) => {
|
|
15102
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
15103
|
-
!resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
|
|
15104
|
-
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
15105
|
-
});
|
|
15106
|
-
});
|
|
15107
|
-
})(new Response());
|
|
15108
|
-
var getBodyLength = async (body) => {
|
|
15109
|
-
if (body == null) {
|
|
15110
|
-
return 0;
|
|
15111
|
-
}
|
|
15112
|
-
if (utils$1.isBlob(body)) {
|
|
15113
|
-
return body.size;
|
|
15162
|
+
var factory = (env) => {
|
|
15163
|
+
env = utils$1.merge.call({
|
|
15164
|
+
skipUndefined: true
|
|
15165
|
+
}, globalFetchAPI, env);
|
|
15166
|
+
const { fetch: envFetch, Request, Response } = env;
|
|
15167
|
+
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
15168
|
+
const isRequestSupported = isFunction(Request);
|
|
15169
|
+
const isResponseSupported = isFunction(Response);
|
|
15170
|
+
if (!isFetchSupported) {
|
|
15171
|
+
return false;
|
|
15114
15172
|
}
|
|
15115
|
-
|
|
15116
|
-
|
|
15173
|
+
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
|
|
15174
|
+
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()));
|
|
15175
|
+
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
15176
|
+
let duplexAccessed = false;
|
|
15177
|
+
const hasContentType = new Request(platform.origin, {
|
|
15178
|
+
body: new ReadableStream$1(),
|
|
15117
15179
|
method: "POST",
|
|
15118
|
-
|
|
15119
|
-
|
|
15120
|
-
|
|
15121
|
-
|
|
15122
|
-
|
|
15123
|
-
return
|
|
15124
|
-
}
|
|
15125
|
-
if (utils$1.isURLSearchParams(body)) {
|
|
15126
|
-
body = body + "";
|
|
15127
|
-
}
|
|
15128
|
-
if (utils$1.isString(body)) {
|
|
15129
|
-
return (await encodeText(body)).byteLength;
|
|
15130
|
-
}
|
|
15131
|
-
};
|
|
15132
|
-
var resolveBodyLength = async (headers, body) => {
|
|
15133
|
-
const length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
15134
|
-
return length == null ? getBodyLength(body) : length;
|
|
15135
|
-
};
|
|
15136
|
-
var fetchAdapter = isFetchSupported && (async (config) => {
|
|
15137
|
-
let {
|
|
15138
|
-
url: url2,
|
|
15139
|
-
method,
|
|
15140
|
-
data,
|
|
15141
|
-
signal,
|
|
15142
|
-
cancelToken,
|
|
15143
|
-
timeout,
|
|
15144
|
-
onDownloadProgress,
|
|
15145
|
-
onUploadProgress,
|
|
15146
|
-
responseType,
|
|
15147
|
-
headers,
|
|
15148
|
-
withCredentials = "same-origin",
|
|
15149
|
-
fetchOptions
|
|
15150
|
-
} = resolveConfig(config);
|
|
15151
|
-
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
15152
|
-
let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
15153
|
-
let request;
|
|
15154
|
-
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
15155
|
-
composedSignal.unsubscribe();
|
|
15180
|
+
get duplex() {
|
|
15181
|
+
duplexAccessed = true;
|
|
15182
|
+
return "half";
|
|
15183
|
+
}
|
|
15184
|
+
}).headers.has("Content-Type");
|
|
15185
|
+
return duplexAccessed && !hasContentType;
|
|
15156
15186
|
});
|
|
15157
|
-
|
|
15158
|
-
|
|
15159
|
-
|
|
15160
|
-
|
|
15161
|
-
|
|
15162
|
-
|
|
15163
|
-
|
|
15187
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
|
15188
|
+
const resolvers = {
|
|
15189
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
15190
|
+
};
|
|
15191
|
+
isFetchSupported && (() => {
|
|
15192
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
15193
|
+
!resolvers[type] && (resolvers[type] = (res, config) => {
|
|
15194
|
+
let method = res && res[type];
|
|
15195
|
+
if (method) {
|
|
15196
|
+
return method.call(res);
|
|
15197
|
+
}
|
|
15198
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
15164
15199
|
});
|
|
15165
|
-
let contentTypeHeader;
|
|
15166
|
-
if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
15167
|
-
headers.setContentType(contentTypeHeader);
|
|
15168
|
-
}
|
|
15169
|
-
if (_request.body) {
|
|
15170
|
-
const [onProgress, flush] = progressEventDecorator(
|
|
15171
|
-
requestContentLength,
|
|
15172
|
-
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
15173
|
-
);
|
|
15174
|
-
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
15175
|
-
}
|
|
15176
|
-
}
|
|
15177
|
-
if (!utils$1.isString(withCredentials)) {
|
|
15178
|
-
withCredentials = withCredentials ? "include" : "omit";
|
|
15179
|
-
}
|
|
15180
|
-
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
15181
|
-
request = new Request(url2, {
|
|
15182
|
-
...fetchOptions,
|
|
15183
|
-
signal: composedSignal,
|
|
15184
|
-
method: method.toUpperCase(),
|
|
15185
|
-
headers: headers.normalize().toJSON(),
|
|
15186
|
-
body: data,
|
|
15187
|
-
duplex: "half",
|
|
15188
|
-
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
15189
15200
|
});
|
|
15190
|
-
|
|
15191
|
-
|
|
15192
|
-
if (
|
|
15193
|
-
|
|
15194
|
-
["status", "statusText", "headers"].forEach((prop) => {
|
|
15195
|
-
options[prop] = response[prop];
|
|
15196
|
-
});
|
|
15197
|
-
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
15198
|
-
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
15199
|
-
responseContentLength,
|
|
15200
|
-
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
15201
|
-
) || [];
|
|
15202
|
-
response = new Response(
|
|
15203
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
15204
|
-
flush && flush();
|
|
15205
|
-
unsubscribe && unsubscribe();
|
|
15206
|
-
}),
|
|
15207
|
-
options
|
|
15208
|
-
);
|
|
15201
|
+
})();
|
|
15202
|
+
const getBodyLength = async (body) => {
|
|
15203
|
+
if (body == null) {
|
|
15204
|
+
return 0;
|
|
15209
15205
|
}
|
|
15210
|
-
|
|
15211
|
-
|
|
15212
|
-
|
|
15213
|
-
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
status: response.status,
|
|
15218
|
-
statusText: response.statusText,
|
|
15219
|
-
config,
|
|
15220
|
-
request
|
|
15206
|
+
if (utils$1.isBlob(body)) {
|
|
15207
|
+
return body.size;
|
|
15208
|
+
}
|
|
15209
|
+
if (utils$1.isSpecCompliantForm(body)) {
|
|
15210
|
+
const _request = new Request(platform.origin, {
|
|
15211
|
+
method: "POST",
|
|
15212
|
+
body
|
|
15221
15213
|
});
|
|
15214
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
15215
|
+
}
|
|
15216
|
+
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
|
15217
|
+
return body.byteLength;
|
|
15218
|
+
}
|
|
15219
|
+
if (utils$1.isURLSearchParams(body)) {
|
|
15220
|
+
body = body + "";
|
|
15221
|
+
}
|
|
15222
|
+
if (utils$1.isString(body)) {
|
|
15223
|
+
return (await encodeText(body)).byteLength;
|
|
15224
|
+
}
|
|
15225
|
+
};
|
|
15226
|
+
const resolveBodyLength = async (headers, body) => {
|
|
15227
|
+
const length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
15228
|
+
return length == null ? getBodyLength(body) : length;
|
|
15229
|
+
};
|
|
15230
|
+
return async (config) => {
|
|
15231
|
+
let {
|
|
15232
|
+
url: url2,
|
|
15233
|
+
method,
|
|
15234
|
+
data,
|
|
15235
|
+
signal,
|
|
15236
|
+
cancelToken,
|
|
15237
|
+
timeout,
|
|
15238
|
+
onDownloadProgress,
|
|
15239
|
+
onUploadProgress,
|
|
15240
|
+
responseType,
|
|
15241
|
+
headers,
|
|
15242
|
+
withCredentials = "same-origin",
|
|
15243
|
+
fetchOptions
|
|
15244
|
+
} = resolveConfig(config);
|
|
15245
|
+
let _fetch = envFetch || fetch;
|
|
15246
|
+
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
15247
|
+
let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
15248
|
+
let request = null;
|
|
15249
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
15250
|
+
composedSignal.unsubscribe();
|
|
15222
15251
|
});
|
|
15223
|
-
|
|
15224
|
-
|
|
15225
|
-
|
|
15226
|
-
|
|
15227
|
-
|
|
15228
|
-
|
|
15229
|
-
|
|
15252
|
+
let requestContentLength;
|
|
15253
|
+
try {
|
|
15254
|
+
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
15255
|
+
let _request = new Request(url2, {
|
|
15256
|
+
method: "POST",
|
|
15257
|
+
body: data,
|
|
15258
|
+
duplex: "half"
|
|
15259
|
+
});
|
|
15260
|
+
let contentTypeHeader;
|
|
15261
|
+
if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
15262
|
+
headers.setContentType(contentTypeHeader);
|
|
15230
15263
|
}
|
|
15231
|
-
|
|
15264
|
+
if (_request.body) {
|
|
15265
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
15266
|
+
requestContentLength,
|
|
15267
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
15268
|
+
);
|
|
15269
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
15270
|
+
}
|
|
15271
|
+
}
|
|
15272
|
+
if (!utils$1.isString(withCredentials)) {
|
|
15273
|
+
withCredentials = withCredentials ? "include" : "omit";
|
|
15274
|
+
}
|
|
15275
|
+
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
15276
|
+
const resolvedOptions = {
|
|
15277
|
+
...fetchOptions,
|
|
15278
|
+
signal: composedSignal,
|
|
15279
|
+
method: method.toUpperCase(),
|
|
15280
|
+
headers: headers.normalize().toJSON(),
|
|
15281
|
+
body: data,
|
|
15282
|
+
duplex: "half",
|
|
15283
|
+
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
15284
|
+
};
|
|
15285
|
+
request = isRequestSupported && new Request(url2, resolvedOptions);
|
|
15286
|
+
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
|
|
15287
|
+
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
15288
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
15289
|
+
const options = {};
|
|
15290
|
+
["status", "statusText", "headers"].forEach((prop) => {
|
|
15291
|
+
options[prop] = response[prop];
|
|
15292
|
+
});
|
|
15293
|
+
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
15294
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
15295
|
+
responseContentLength,
|
|
15296
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
15297
|
+
) || [];
|
|
15298
|
+
response = new Response(
|
|
15299
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
15300
|
+
flush && flush();
|
|
15301
|
+
unsubscribe && unsubscribe();
|
|
15302
|
+
}),
|
|
15303
|
+
options
|
|
15304
|
+
);
|
|
15305
|
+
}
|
|
15306
|
+
responseType = responseType || "text";
|
|
15307
|
+
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config);
|
|
15308
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
15309
|
+
return await new Promise((resolve, reject) => {
|
|
15310
|
+
settle(resolve, reject, {
|
|
15311
|
+
data: responseData,
|
|
15312
|
+
headers: AxiosHeaders$1.from(response.headers),
|
|
15313
|
+
status: response.status,
|
|
15314
|
+
statusText: response.statusText,
|
|
15315
|
+
config,
|
|
15316
|
+
request
|
|
15317
|
+
});
|
|
15318
|
+
});
|
|
15319
|
+
} catch (err) {
|
|
15320
|
+
unsubscribe && unsubscribe();
|
|
15321
|
+
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
15322
|
+
throw Object.assign(
|
|
15323
|
+
new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request),
|
|
15324
|
+
{
|
|
15325
|
+
cause: err.cause || err
|
|
15326
|
+
}
|
|
15327
|
+
);
|
|
15328
|
+
}
|
|
15329
|
+
throw AxiosError.from(err, err && err.code, config, request);
|
|
15232
15330
|
}
|
|
15233
|
-
|
|
15234
|
-
|
|
15235
|
-
|
|
15331
|
+
};
|
|
15332
|
+
};
|
|
15333
|
+
var seedCache = /* @__PURE__ */ new Map();
|
|
15334
|
+
var getFetch = (config) => {
|
|
15335
|
+
let env = config ? config.env : {};
|
|
15336
|
+
const { fetch: fetch2, Request, Response } = env;
|
|
15337
|
+
const seeds = [
|
|
15338
|
+
Request,
|
|
15339
|
+
Response,
|
|
15340
|
+
fetch2
|
|
15341
|
+
];
|
|
15342
|
+
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
15343
|
+
while (i--) {
|
|
15344
|
+
seed = seeds[i];
|
|
15345
|
+
target = map.get(seed);
|
|
15346
|
+
target === void 0 && map.set(seed, target = i ? /* @__PURE__ */ new Map() : factory(env));
|
|
15347
|
+
map = target;
|
|
15348
|
+
}
|
|
15349
|
+
return target;
|
|
15350
|
+
};
|
|
15351
|
+
getFetch();
|
|
15236
15352
|
var knownAdapters = {
|
|
15237
15353
|
http: httpAdapter,
|
|
15238
15354
|
xhr: xhrAdapter,
|
|
15239
|
-
fetch:
|
|
15355
|
+
fetch: {
|
|
15356
|
+
get: getFetch
|
|
15357
|
+
}
|
|
15240
15358
|
};
|
|
15241
15359
|
utils$1.forEach(knownAdapters, (fn, value) => {
|
|
15242
15360
|
if (fn) {
|
|
@@ -15250,7 +15368,7 @@ var require_axios = __commonJS({
|
|
|
15250
15368
|
var renderReason = (reason) => `- ${reason}`;
|
|
15251
15369
|
var isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
15252
15370
|
var adapters = {
|
|
15253
|
-
getAdapter: (adapters2) => {
|
|
15371
|
+
getAdapter: (adapters2, config) => {
|
|
15254
15372
|
adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
|
|
15255
15373
|
const { length } = adapters2;
|
|
15256
15374
|
let nameOrAdapter;
|
|
@@ -15266,7 +15384,7 @@ var require_axios = __commonJS({
|
|
|
15266
15384
|
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
15267
15385
|
}
|
|
15268
15386
|
}
|
|
15269
|
-
if (adapter) {
|
|
15387
|
+
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
15270
15388
|
break;
|
|
15271
15389
|
}
|
|
15272
15390
|
rejectedReasons[id || "#" + i] = adapter;
|
|
@@ -15303,7 +15421,7 @@ var require_axios = __commonJS({
|
|
|
15303
15421
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
15304
15422
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
15305
15423
|
}
|
|
15306
|
-
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
|
|
15424
|
+
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
|
|
15307
15425
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
15308
15426
|
throwIfCancellationRequested(config);
|
|
15309
15427
|
response.data = transformData.call(
|
|
@@ -15506,7 +15624,6 @@ var require_axios = __commonJS({
|
|
|
15506
15624
|
}
|
|
15507
15625
|
len = requestInterceptorChain.length;
|
|
15508
15626
|
let newConfig = config;
|
|
15509
|
-
i = 0;
|
|
15510
15627
|
while (i < len) {
|
|
15511
15628
|
const onFulfilled = requestInterceptorChain[i++];
|
|
15512
15629
|
const onRejected = requestInterceptorChain[i++];
|
|
@@ -18869,7 +18986,7 @@ mime-types/index.js:
|
|
|
18869
18986
|
*)
|
|
18870
18987
|
|
|
18871
18988
|
axios/dist/node/axios.cjs:
|
|
18872
|
-
(*! Axios v1.
|
|
18989
|
+
(*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors *)
|
|
18873
18990
|
|
|
18874
18991
|
safe-buffer/index.js:
|
|
18875
18992
|
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|