@alpic-ai/sdk 0.0.0-dev.gf39a826 → 0.0.0-dev.gf3ec10e
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/vendor/pipenet.js +849 -275
- package/dist/vendor/pipenet.js.map +4 -4
- package/package.json +9 -9
package/dist/vendor/pipenet.js
CHANGED
|
@@ -9132,9 +9132,9 @@ var require_asynckit = __commonJS({
|
|
|
9132
9132
|
}
|
|
9133
9133
|
});
|
|
9134
9134
|
|
|
9135
|
-
// ../../node_modules/.pnpm/es-object-atoms@1.1.
|
|
9135
|
+
// ../../node_modules/.pnpm/es-object-atoms@1.1.2/node_modules/es-object-atoms/index.js
|
|
9136
9136
|
var require_es_object_atoms = __commonJS({
|
|
9137
|
-
"../../node_modules/.pnpm/es-object-atoms@1.1.
|
|
9137
|
+
"../../node_modules/.pnpm/es-object-atoms@1.1.2/node_modules/es-object-atoms/index.js"(exports, module) {
|
|
9138
9138
|
"use strict";
|
|
9139
9139
|
module.exports = Object;
|
|
9140
9140
|
}
|
|
@@ -11538,9 +11538,9 @@ var require_dist = __commonJS({
|
|
|
11538
11538
|
}
|
|
11539
11539
|
});
|
|
11540
11540
|
|
|
11541
|
-
// ../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11541
|
+
// ../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js
|
|
11542
11542
|
var require_debug = __commonJS({
|
|
11543
|
-
"../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11543
|
+
"../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js"(exports, module) {
|
|
11544
11544
|
var debug3;
|
|
11545
11545
|
module.exports = function() {
|
|
11546
11546
|
if (!debug3) {
|
|
@@ -11558,9 +11558,9 @@ var require_debug = __commonJS({
|
|
|
11558
11558
|
}
|
|
11559
11559
|
});
|
|
11560
11560
|
|
|
11561
|
-
// ../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11561
|
+
// ../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js
|
|
11562
11562
|
var require_follow_redirects = __commonJS({
|
|
11563
|
-
"../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11563
|
+
"../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js"(exports, module) {
|
|
11564
11564
|
var url2 = __require("url");
|
|
11565
11565
|
var URL2 = url2.URL;
|
|
11566
11566
|
var http3 = __require("http");
|
|
@@ -11788,8 +11788,14 @@ var require_follow_redirects = __commonJS({
|
|
|
11788
11788
|
RedirectableRequest.prototype._sanitizeOptions = function(options) {
|
|
11789
11789
|
if (!options.headers) {
|
|
11790
11790
|
options.headers = {};
|
|
11791
|
+
} else if (Array.isArray(options.headers)) {
|
|
11792
|
+
var headerList = options.headers;
|
|
11793
|
+
options.headers = {};
|
|
11794
|
+
for (var i = 0; i < headerList.length; i += 2) {
|
|
11795
|
+
options.headers[headerList[i]] = headerList[i + 1];
|
|
11796
|
+
}
|
|
11791
11797
|
}
|
|
11792
|
-
if (!
|
|
11798
|
+
if (!Array.isArray(options.sensitiveHeaders)) {
|
|
11793
11799
|
options.sensitiveHeaders = [];
|
|
11794
11800
|
}
|
|
11795
11801
|
if (options.host) {
|
|
@@ -12046,9 +12052,6 @@ var require_follow_redirects = __commonJS({
|
|
|
12046
12052
|
var dot = subdomain.length - domain.length - 1;
|
|
12047
12053
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
12048
12054
|
}
|
|
12049
|
-
function isArray2(value) {
|
|
12050
|
-
return value instanceof Array;
|
|
12051
|
-
}
|
|
12052
12055
|
function isString2(value) {
|
|
12053
12056
|
return typeof value === "string" || value instanceof String;
|
|
12054
12057
|
}
|
|
@@ -12062,21 +12065,21 @@ var require_follow_redirects = __commonJS({
|
|
|
12062
12065
|
return URL2 && value instanceof URL2;
|
|
12063
12066
|
}
|
|
12064
12067
|
function escapeRegex(regex) {
|
|
12065
|
-
return regex.replace(/[\]\\/()
|
|
12068
|
+
return regex.replace(/[[\]\\/()*+?.^$|]/g, "\\$&");
|
|
12066
12069
|
}
|
|
12067
12070
|
module.exports = wrap({ http: http3, https: https2 });
|
|
12068
12071
|
module.exports.wrap = wrap;
|
|
12069
12072
|
}
|
|
12070
12073
|
});
|
|
12071
12074
|
|
|
12072
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12075
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
|
|
12073
12076
|
function bind(fn, thisArg) {
|
|
12074
12077
|
return function wrap() {
|
|
12075
12078
|
return fn.apply(thisArg, arguments);
|
|
12076
12079
|
};
|
|
12077
12080
|
}
|
|
12078
12081
|
|
|
12079
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12082
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
|
|
12080
12083
|
var { toString } = Object.prototype;
|
|
12081
12084
|
var { getPrototypeOf } = Object;
|
|
12082
12085
|
var { iterator, toStringTag } = Symbol;
|
|
@@ -12191,10 +12194,16 @@ var isPlainObject = (val) => {
|
|
|
12191
12194
|
return false;
|
|
12192
12195
|
}
|
|
12193
12196
|
const prototype2 = getPrototypeOf(val);
|
|
12194
|
-
return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat
|
|
12195
|
-
//
|
|
12196
|
-
//
|
|
12197
|
-
|
|
12197
|
+
return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat own Symbol.toStringTag or Symbol.iterator members as evidence the
|
|
12198
|
+
// value is tagged/iterable, ignoring members reachable only through shared
|
|
12199
|
+
// or terminal prototype boundaries. This is exactly what
|
|
12200
|
+
// hasOwnInPrototypeChain(val, prop) computes here: every prototype admitted
|
|
12201
|
+
// above (null, Object.prototype, or a terminal null-prototype template) is
|
|
12202
|
+
// a boundary, so the walk never inspects anything but `val`'s own members,
|
|
12203
|
+
// and stops before even those when `val` is itself the boundary
|
|
12204
|
+
// Object.prototype. Checking that inline avoids allocating the walker's
|
|
12205
|
+
// `seen` list twice per call on the mergeConfig / merge hot path.
|
|
12206
|
+
(isPrototypeBoundary(val, prototype2, true) || !hasOwnProperty(val, toStringTag) && !hasOwnProperty(val, iterator));
|
|
12198
12207
|
};
|
|
12199
12208
|
var isEmptyObject = (val) => {
|
|
12200
12209
|
if (!isObject(val) || isBuffer(val)) {
|
|
@@ -12295,11 +12304,21 @@ var isContextDefined = (context) => !isUndefined(context) && context !== _global
|
|
|
12295
12304
|
function merge(...objs) {
|
|
12296
12305
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
12297
12306
|
const result = {};
|
|
12307
|
+
const lowerCaseKeys = caseless ? /* @__PURE__ */ Object.create(null) : null;
|
|
12298
12308
|
const assignValue = (val, key) => {
|
|
12299
12309
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
12300
12310
|
return;
|
|
12301
12311
|
}
|
|
12302
|
-
|
|
12312
|
+
let targetKey = key;
|
|
12313
|
+
if (lowerCaseKeys && typeof key === "string") {
|
|
12314
|
+
const lowerKey = key.toLowerCase();
|
|
12315
|
+
const knownKey = lowerCaseKeys[lowerKey];
|
|
12316
|
+
if (knownKey !== void 0 && hasOwnProperty(result, knownKey)) {
|
|
12317
|
+
targetKey = knownKey;
|
|
12318
|
+
} else {
|
|
12319
|
+
lowerCaseKeys[lowerKey] = key;
|
|
12320
|
+
}
|
|
12321
|
+
}
|
|
12303
12322
|
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
12304
12323
|
if (isPlainObject(existing) && isPlainObject(val)) {
|
|
12305
12324
|
result[targetKey] = merge(existing, val);
|
|
@@ -12317,7 +12336,7 @@ function merge(...objs) {
|
|
|
12317
12336
|
continue;
|
|
12318
12337
|
}
|
|
12319
12338
|
forEach(source, assignValue);
|
|
12320
|
-
if (typeof source !== "object" || isArray(source)) {
|
|
12339
|
+
if (typeof source !== "object" || isArray(source) || !Object.getOwnPropertySymbols) {
|
|
12321
12340
|
continue;
|
|
12322
12341
|
}
|
|
12323
12342
|
const symbols = Object.getOwnPropertySymbols(source);
|
|
@@ -12413,7 +12432,24 @@ var toArray = (thing) => {
|
|
|
12413
12432
|
if (!thing) return null;
|
|
12414
12433
|
if (isArray(thing)) return thing;
|
|
12415
12434
|
let i = thing.length;
|
|
12416
|
-
if (!
|
|
12435
|
+
if (!Number.isSafeInteger(i) || i < 0 || i > 4294967295) return null;
|
|
12436
|
+
const indexes = /* @__PURE__ */ new Set();
|
|
12437
|
+
const seen = /* @__PURE__ */ new Set();
|
|
12438
|
+
let source = thing;
|
|
12439
|
+
while (source != null && indexes.size < i) {
|
|
12440
|
+
if (seen.has(source)) return null;
|
|
12441
|
+
seen.add(source);
|
|
12442
|
+
const prototype2 = getPrototypeOf(source);
|
|
12443
|
+
if (isPrototypeBoundary(source, prototype2, source === thing)) break;
|
|
12444
|
+
Object.getOwnPropertyNames(source).forEach((key) => {
|
|
12445
|
+
const index = +key;
|
|
12446
|
+
if (Number.isInteger(index) && index >= 0 && index < i && String(index) === key && hasOwnProperty(source, key)) {
|
|
12447
|
+
indexes.add(index);
|
|
12448
|
+
}
|
|
12449
|
+
});
|
|
12450
|
+
source = prototype2;
|
|
12451
|
+
}
|
|
12452
|
+
if (indexes.size !== i) return null;
|
|
12417
12453
|
const arr = new Array(i);
|
|
12418
12454
|
while (i-- > 0) {
|
|
12419
12455
|
arr[i] = thing[i];
|
|
@@ -12624,7 +12660,7 @@ var utils_default = {
|
|
|
12624
12660
|
isSafeIterable
|
|
12625
12661
|
};
|
|
12626
12662
|
|
|
12627
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12663
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
|
|
12628
12664
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
12629
12665
|
"age",
|
|
12630
12666
|
"authorization",
|
|
@@ -12645,7 +12681,7 @@ var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
|
12645
12681
|
"user-agent"
|
|
12646
12682
|
]);
|
|
12647
12683
|
var parseHeaders_default = (rawHeaders) => {
|
|
12648
|
-
const parsed =
|
|
12684
|
+
const parsed = /* @__PURE__ */ Object.create(null);
|
|
12649
12685
|
let key;
|
|
12650
12686
|
let val;
|
|
12651
12687
|
let i;
|
|
@@ -12670,7 +12706,7 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
12670
12706
|
return parsed;
|
|
12671
12707
|
};
|
|
12672
12708
|
|
|
12673
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12709
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
|
|
12674
12710
|
function trimSPorHTAB(str) {
|
|
12675
12711
|
let start = 0;
|
|
12676
12712
|
let end = str.length;
|
|
@@ -12708,7 +12744,7 @@ function toByteStringHeaderObject(headers) {
|
|
|
12708
12744
|
return byteStringHeaders;
|
|
12709
12745
|
}
|
|
12710
12746
|
|
|
12711
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12747
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
|
|
12712
12748
|
var $internals = /* @__PURE__ */ Symbol("internals");
|
|
12713
12749
|
function normalizeHeader(header) {
|
|
12714
12750
|
return header && String(header).trim().toLowerCase();
|
|
@@ -12813,9 +12849,11 @@ function parseParameters(value) {
|
|
|
12813
12849
|
return parameters;
|
|
12814
12850
|
}
|
|
12815
12851
|
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
12852
|
+
var PROTO_HEADER_SLOT = "__Proto__";
|
|
12853
|
+
var headerSlot = (name) => name === "__proto__" ? PROTO_HEADER_SLOT : name;
|
|
12816
12854
|
function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
12817
12855
|
if (utils_default.isFunction(filter2)) {
|
|
12818
|
-
return filter2.call(
|
|
12856
|
+
return filter2.call(context, value, header);
|
|
12819
12857
|
}
|
|
12820
12858
|
if (isHeaderNameFilter) {
|
|
12821
12859
|
value = header;
|
|
@@ -12860,7 +12898,7 @@ var AxiosHeaders = class {
|
|
|
12860
12898
|
}
|
|
12861
12899
|
const key = utils_default.findKey(self2, lHeader);
|
|
12862
12900
|
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
12863
|
-
self2[key || _header] = normalizeValue(_value);
|
|
12901
|
+
self2[headerSlot(key || _header)] = normalizeValue(_value);
|
|
12864
12902
|
}
|
|
12865
12903
|
}
|
|
12866
12904
|
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
@@ -12953,7 +12991,7 @@ var AxiosHeaders = class {
|
|
|
12953
12991
|
}
|
|
12954
12992
|
normalize(format) {
|
|
12955
12993
|
const self2 = this;
|
|
12956
|
-
const headers =
|
|
12994
|
+
const headers = /* @__PURE__ */ Object.create(null);
|
|
12957
12995
|
utils_default.forEach(this, (value, header) => {
|
|
12958
12996
|
const key = utils_default.findKey(headers, header);
|
|
12959
12997
|
if (key) {
|
|
@@ -12961,7 +12999,7 @@ var AxiosHeaders = class {
|
|
|
12961
12999
|
delete self2[header];
|
|
12962
13000
|
return;
|
|
12963
13001
|
}
|
|
12964
|
-
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
13002
|
+
const normalized = headerSlot(format ? formatHeader(header) : String(header).trim());
|
|
12965
13003
|
if (normalized !== header) {
|
|
12966
13004
|
delete self2[header];
|
|
12967
13005
|
}
|
|
@@ -13041,7 +13079,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
13041
13079
|
utils_default.freezeMethods(AxiosHeaders);
|
|
13042
13080
|
var AxiosHeaders_default = AxiosHeaders;
|
|
13043
13081
|
|
|
13044
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13082
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
|
|
13045
13083
|
var REDACTED = "[REDACTED ****]";
|
|
13046
13084
|
function hasOwnOrPrototypeToJSON(source) {
|
|
13047
13085
|
if (utils_default.hasOwnProp(source, "toJSON")) {
|
|
@@ -13111,6 +13149,28 @@ function aggregateErrorMessage(error) {
|
|
|
13111
13149
|
}).filter(Boolean).join("; ");
|
|
13112
13150
|
return message || error.name || "AggregateError";
|
|
13113
13151
|
}
|
|
13152
|
+
var CAUSED_BY_SEPARATOR = "\nCaused by: ";
|
|
13153
|
+
var $causeStack = /* @__PURE__ */ Symbol("causeStack");
|
|
13154
|
+
function getCauseStackIndex(error, stack) {
|
|
13155
|
+
const causeStack = utils_default.hasOwnProp(error, $causeStack) && error[$causeStack];
|
|
13156
|
+
return causeStack && stack.endsWith(causeStack) ? stack.length - causeStack.length : -1;
|
|
13157
|
+
}
|
|
13158
|
+
function appendCauseStack(target, source) {
|
|
13159
|
+
try {
|
|
13160
|
+
const sourceStack = source && source.stack;
|
|
13161
|
+
if (typeof sourceStack !== "string" || !sourceStack) {
|
|
13162
|
+
return;
|
|
13163
|
+
}
|
|
13164
|
+
const targetStack = target.stack;
|
|
13165
|
+
if (typeof targetStack !== "string" || !targetStack) {
|
|
13166
|
+
return;
|
|
13167
|
+
}
|
|
13168
|
+
const causeStack = CAUSED_BY_SEPARATOR + sourceStack;
|
|
13169
|
+
target.stack = targetStack + causeStack;
|
|
13170
|
+
Object.defineProperty(target, $causeStack, { __proto__: null, value: causeStack });
|
|
13171
|
+
} catch (e) {
|
|
13172
|
+
}
|
|
13173
|
+
}
|
|
13114
13174
|
var AxiosError = class _AxiosError extends Error {
|
|
13115
13175
|
static from(error, code, config, request, response, customProps) {
|
|
13116
13176
|
let message = error.message;
|
|
@@ -13126,6 +13186,7 @@ var AxiosError = class _AxiosError extends Error {
|
|
|
13126
13186
|
configurable: true
|
|
13127
13187
|
});
|
|
13128
13188
|
axiosError.name = error.name;
|
|
13189
|
+
appendCauseStack(axiosError, error);
|
|
13129
13190
|
if (error.status != null && axiosError.status == null) {
|
|
13130
13191
|
axiosError.status = error.status;
|
|
13131
13192
|
}
|
|
@@ -13203,11 +13264,11 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
|
13203
13264
|
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
13204
13265
|
var AxiosError_default = AxiosError;
|
|
13205
13266
|
|
|
13206
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13267
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
13207
13268
|
var import_form_data = __toESM(require_form_data(), 1);
|
|
13208
13269
|
var FormData_default = import_form_data.default;
|
|
13209
13270
|
|
|
13210
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13271
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/Buffer.js
|
|
13211
13272
|
var Buffer_default = {
|
|
13212
13273
|
isBufferAvailable() {
|
|
13213
13274
|
return typeof Buffer !== "undefined";
|
|
@@ -13217,7 +13278,7 @@ var Buffer_default = {
|
|
|
13217
13278
|
}
|
|
13218
13279
|
};
|
|
13219
13280
|
|
|
13220
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13281
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
|
|
13221
13282
|
var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
|
|
13222
13283
|
function isVisitable(thing) {
|
|
13223
13284
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
@@ -13364,7 +13425,7 @@ function toFormData(obj, formData, options) {
|
|
|
13364
13425
|
}
|
|
13365
13426
|
var toFormData_default = toFormData;
|
|
13366
13427
|
|
|
13367
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13428
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
13368
13429
|
function encode(str) {
|
|
13369
13430
|
const charMap = {
|
|
13370
13431
|
"!": "%21",
|
|
@@ -13394,7 +13455,7 @@ prototype.toString = function toString2(encoder) {
|
|
|
13394
13455
|
};
|
|
13395
13456
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
13396
13457
|
|
|
13397
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13458
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
|
|
13398
13459
|
function encode2(val) {
|
|
13399
13460
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
13400
13461
|
}
|
|
@@ -13424,7 +13485,7 @@ function buildURL(url2, params, options) {
|
|
|
13424
13485
|
return url2;
|
|
13425
13486
|
}
|
|
13426
13487
|
|
|
13427
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13488
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
|
|
13428
13489
|
var $internals2 = /* @__PURE__ */ Symbol("internals");
|
|
13429
13490
|
function countHandlers(handlers) {
|
|
13430
13491
|
return handlers ? handlers.length : 0;
|
|
@@ -13437,6 +13498,12 @@ function trimHandlers(handlers) {
|
|
|
13437
13498
|
handlers.pop();
|
|
13438
13499
|
}
|
|
13439
13500
|
}
|
|
13501
|
+
function normalizeHandlerId(id) {
|
|
13502
|
+
if (typeof id === "string" && id !== "" && String(Number(id)) === id) {
|
|
13503
|
+
return Number(id);
|
|
13504
|
+
}
|
|
13505
|
+
return id;
|
|
13506
|
+
}
|
|
13440
13507
|
function syncHandlerEntries(manager, internals) {
|
|
13441
13508
|
const handlers = manager.handlers;
|
|
13442
13509
|
const length = countHandlers(handlers);
|
|
@@ -13507,9 +13574,10 @@ var InterceptorManager = class {
|
|
|
13507
13574
|
eject(id) {
|
|
13508
13575
|
const internals = this[$internals2];
|
|
13509
13576
|
syncHandlerEntries(this, internals);
|
|
13510
|
-
const
|
|
13577
|
+
const handlerId = normalizeHandlerId(id);
|
|
13578
|
+
const entry = internals.handlerEntries.get(handlerId);
|
|
13511
13579
|
if (entry) {
|
|
13512
|
-
internals.handlerEntries.delete(
|
|
13580
|
+
internals.handlerEntries.delete(handlerId);
|
|
13513
13581
|
if (this.handlers[entry.index] !== entry.handler) {
|
|
13514
13582
|
return;
|
|
13515
13583
|
}
|
|
@@ -13562,24 +13630,25 @@ var InterceptorManager = class {
|
|
|
13562
13630
|
};
|
|
13563
13631
|
var InterceptorManager_default = InterceptorManager;
|
|
13564
13632
|
|
|
13565
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13633
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
|
|
13566
13634
|
var transitional_default = {
|
|
13567
13635
|
silentJSONParsing: true,
|
|
13568
13636
|
forcedJSONParsing: true,
|
|
13569
13637
|
clarifyTimeoutError: false,
|
|
13570
13638
|
legacyInterceptorReqResOrdering: true,
|
|
13571
13639
|
advertiseZstdAcceptEncoding: false,
|
|
13572
|
-
validateStatusUndefinedResolves: true
|
|
13640
|
+
validateStatusUndefinedResolves: true,
|
|
13641
|
+
encodeBasicAuthUsername: false
|
|
13573
13642
|
};
|
|
13574
13643
|
|
|
13575
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13644
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
|
|
13576
13645
|
import crypto from "crypto";
|
|
13577
13646
|
|
|
13578
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13647
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
13579
13648
|
import url from "url";
|
|
13580
13649
|
var URLSearchParams_default = url.URLSearchParams;
|
|
13581
13650
|
|
|
13582
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13651
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
|
|
13583
13652
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
13584
13653
|
var DIGIT = "0123456789";
|
|
13585
13654
|
var ALPHABET = {
|
|
@@ -13609,7 +13678,7 @@ var node_default = {
|
|
|
13609
13678
|
protocols: ["http", "https", "file", "data"]
|
|
13610
13679
|
};
|
|
13611
13680
|
|
|
13612
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13681
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
|
|
13613
13682
|
var utils_exports = {};
|
|
13614
13683
|
__export(utils_exports, {
|
|
13615
13684
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
@@ -13627,13 +13696,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
|
|
|
13627
13696
|
})();
|
|
13628
13697
|
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
13629
13698
|
|
|
13630
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13699
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
|
|
13631
13700
|
var platform_default = {
|
|
13632
13701
|
...utils_exports,
|
|
13633
13702
|
...node_default
|
|
13634
13703
|
};
|
|
13635
13704
|
|
|
13636
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13705
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
13637
13706
|
function toURLEncodedForm(data, options) {
|
|
13638
13707
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
|
|
13639
13708
|
visitor: function(value, key, path, helpers) {
|
|
@@ -13647,7 +13716,7 @@ function toURLEncodedForm(data, options) {
|
|
|
13647
13716
|
});
|
|
13648
13717
|
}
|
|
13649
13718
|
|
|
13650
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13719
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
13651
13720
|
var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
|
|
13652
13721
|
function throwIfDepthExceeded(index) {
|
|
13653
13722
|
if (index > MAX_DEPTH) {
|
|
@@ -13679,6 +13748,24 @@ function arrayToObject(arr) {
|
|
|
13679
13748
|
}
|
|
13680
13749
|
return obj;
|
|
13681
13750
|
}
|
|
13751
|
+
function normalizeArray(value) {
|
|
13752
|
+
if (!utils_default.isArray(value)) return value;
|
|
13753
|
+
const keys = Object.keys(value);
|
|
13754
|
+
return keys.length !== value.length || keys.some((key, index) => key !== String(index)) ? arrayToObject(value) : value;
|
|
13755
|
+
}
|
|
13756
|
+
function normalizeArrays(obj) {
|
|
13757
|
+
const pending = [obj];
|
|
13758
|
+
while (pending.length) {
|
|
13759
|
+
const target = pending.pop();
|
|
13760
|
+
Object.keys(target).forEach((key) => {
|
|
13761
|
+
const value = target[key] = normalizeArray(target[key]);
|
|
13762
|
+
if (utils_default.isArray(value) || utils_default.isPlainObject(value)) {
|
|
13763
|
+
pending.push(value);
|
|
13764
|
+
}
|
|
13765
|
+
});
|
|
13766
|
+
}
|
|
13767
|
+
return obj;
|
|
13768
|
+
}
|
|
13682
13769
|
function formDataToJSON(formData) {
|
|
13683
13770
|
function buildPath(path, value, target, index) {
|
|
13684
13771
|
throwIfDepthExceeded(index);
|
|
@@ -13689,6 +13776,7 @@ function formDataToJSON(formData) {
|
|
|
13689
13776
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
13690
13777
|
if (isLast) {
|
|
13691
13778
|
if (utils_default.hasOwnProp(target, name)) {
|
|
13779
|
+
target[name] = normalizeArray(target[name]);
|
|
13692
13780
|
target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
|
|
13693
13781
|
} else {
|
|
13694
13782
|
target[name] = value;
|
|
@@ -13709,13 +13797,13 @@ function formDataToJSON(formData) {
|
|
|
13709
13797
|
utils_default.forEachEntry(formData, (name, value) => {
|
|
13710
13798
|
buildPath(parsePropPath(name), value, obj, 0);
|
|
13711
13799
|
});
|
|
13712
|
-
return obj;
|
|
13800
|
+
return normalizeArrays(obj);
|
|
13713
13801
|
}
|
|
13714
13802
|
return null;
|
|
13715
13803
|
}
|
|
13716
13804
|
var formDataToJSON_default = formDataToJSON;
|
|
13717
13805
|
|
|
13718
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13806
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/methodList.js
|
|
13719
13807
|
var methodList = Object.freeze([
|
|
13720
13808
|
"get",
|
|
13721
13809
|
"delete",
|
|
@@ -13731,7 +13819,7 @@ var methodList = Object.freeze([
|
|
|
13731
13819
|
]);
|
|
13732
13820
|
var methodList_default = methodList;
|
|
13733
13821
|
|
|
13734
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13822
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
|
|
13735
13823
|
var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
13736
13824
|
function stringifySafely2(rawValue, parser, encoder) {
|
|
13737
13825
|
if (utils_default.isString(rawValue)) {
|
|
@@ -13848,7 +13936,7 @@ utils_default.forEach(methodList_default, (method) => {
|
|
|
13848
13936
|
});
|
|
13849
13937
|
var defaults_default = defaults;
|
|
13850
13938
|
|
|
13851
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13939
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
|
|
13852
13940
|
function transformData(fns, response) {
|
|
13853
13941
|
const config = this || defaults_default;
|
|
13854
13942
|
const context = response || config;
|
|
@@ -13861,12 +13949,12 @@ function transformData(fns, response) {
|
|
|
13861
13949
|
return data;
|
|
13862
13950
|
}
|
|
13863
13951
|
|
|
13864
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13952
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
|
|
13865
13953
|
function isCancel(value) {
|
|
13866
13954
|
return !!(value && value.__CANCEL__);
|
|
13867
13955
|
}
|
|
13868
13956
|
|
|
13869
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13957
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
|
|
13870
13958
|
var CanceledError = class extends AxiosError_default {
|
|
13871
13959
|
/**
|
|
13872
13960
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
@@ -13885,7 +13973,7 @@ var CanceledError = class extends AxiosError_default {
|
|
|
13885
13973
|
};
|
|
13886
13974
|
var CanceledError_default = CanceledError;
|
|
13887
13975
|
|
|
13888
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13976
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
|
|
13889
13977
|
function settle(resolve, reject, response) {
|
|
13890
13978
|
const validateStatus2 = response.config.validateStatus;
|
|
13891
13979
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -13901,7 +13989,7 @@ function settle(resolve, reject, response) {
|
|
|
13901
13989
|
}
|
|
13902
13990
|
}
|
|
13903
13991
|
|
|
13904
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13992
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
13905
13993
|
function isAbsoluteURL(url2) {
|
|
13906
13994
|
if (typeof url2 !== "string") {
|
|
13907
13995
|
return false;
|
|
@@ -13909,7 +13997,7 @@ function isAbsoluteURL(url2) {
|
|
|
13909
13997
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
13910
13998
|
}
|
|
13911
13999
|
|
|
13912
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14000
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
|
|
13913
14001
|
function combineURLs(baseURL, relativeURL) {
|
|
13914
14002
|
if (!relativeURL) {
|
|
13915
14003
|
return baseURL;
|
|
@@ -13921,7 +14009,7 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
13921
14009
|
return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
|
|
13922
14010
|
}
|
|
13923
14011
|
|
|
13924
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14012
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
|
|
13925
14013
|
var urlParserControlCharacters = /[\t\n\r]/g;
|
|
13926
14014
|
function normalizeURLForProtocolCheck(url2) {
|
|
13927
14015
|
if (typeof url2 !== "string") {
|
|
@@ -13934,7 +14022,7 @@ function normalizeURLForProtocolCheck(url2) {
|
|
|
13934
14022
|
return url2.slice(start).replace(urlParserControlCharacters, "");
|
|
13935
14023
|
}
|
|
13936
14024
|
|
|
13937
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14025
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
|
|
13938
14026
|
var malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
13939
14027
|
function redactFragment(fragment) {
|
|
13940
14028
|
if (!fragment) {
|
|
@@ -14046,7 +14134,7 @@ function getEnv(key) {
|
|
|
14046
14134
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
14047
14135
|
}
|
|
14048
14136
|
|
|
14049
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14137
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
14050
14138
|
var import_https_proxy_agent = __toESM(require_dist(), 1);
|
|
14051
14139
|
var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
14052
14140
|
import http from "http";
|
|
@@ -14056,17 +14144,17 @@ import util3 from "util";
|
|
|
14056
14144
|
import { resolve as resolvePath } from "path";
|
|
14057
14145
|
import zlib from "zlib";
|
|
14058
14146
|
|
|
14059
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14060
|
-
var VERSION = "1.
|
|
14147
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
|
|
14148
|
+
var VERSION = "1.21.0";
|
|
14061
14149
|
|
|
14062
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14150
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
|
|
14063
14151
|
function parseProtocol(url2) {
|
|
14064
14152
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
14065
|
-
return match && match[1] || "";
|
|
14153
|
+
return match && match[1].toLowerCase() || "";
|
|
14066
14154
|
}
|
|
14067
14155
|
|
|
14068
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14069
|
-
var DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)
|
|
14156
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
|
|
14157
|
+
var DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/i;
|
|
14070
14158
|
function fromDataURI(uri, asBlob, options) {
|
|
14071
14159
|
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
14072
14160
|
const protocol = parseProtocol(uri);
|
|
@@ -14089,7 +14177,10 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
14089
14177
|
} else if (params) {
|
|
14090
14178
|
mime = "text/plain" + params;
|
|
14091
14179
|
}
|
|
14092
|
-
const buffer = encoding === "base64" ? Buffer.from(
|
|
14180
|
+
const buffer = encoding === "base64" ? Buffer.from(
|
|
14181
|
+
body.replace(/%([\da-f]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16))),
|
|
14182
|
+
"base64"
|
|
14183
|
+
) : Buffer.from(decodeURIComponent(body), encoding);
|
|
14093
14184
|
if (asBlob) {
|
|
14094
14185
|
if (!_Blob) {
|
|
14095
14186
|
throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
|
|
@@ -14101,10 +14192,10 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
14101
14192
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
14102
14193
|
}
|
|
14103
14194
|
|
|
14104
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14195
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
14105
14196
|
import stream3 from "stream";
|
|
14106
14197
|
|
|
14107
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14198
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js
|
|
14108
14199
|
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
14109
14200
|
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
14110
14201
|
if (policy !== "content-only") {
|
|
@@ -14118,7 +14209,7 @@ function setFormDataHeaders(headers, formHeaders, policy) {
|
|
|
14118
14209
|
});
|
|
14119
14210
|
}
|
|
14120
14211
|
|
|
14121
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14212
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
14122
14213
|
import stream from "stream";
|
|
14123
14214
|
var kInternals = /* @__PURE__ */ Symbol("internals");
|
|
14124
14215
|
var AxiosTransformStream = class extends stream.Transform {
|
|
@@ -14175,7 +14266,10 @@ var AxiosTransformStream = class extends stream.Transform {
|
|
|
14175
14266
|
const timeWindow = internals.timeWindow;
|
|
14176
14267
|
const divider = 1e3 / timeWindow;
|
|
14177
14268
|
const bytesThreshold = maxRate / divider;
|
|
14178
|
-
|
|
14269
|
+
let minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
|
|
14270
|
+
if (maxRate) {
|
|
14271
|
+
minChunkSize = Math.min(bytesThreshold, minChunkSize);
|
|
14272
|
+
}
|
|
14179
14273
|
const pushChunk = (_chunk, _callback) => {
|
|
14180
14274
|
const bytes = Buffer.byteLength(_chunk);
|
|
14181
14275
|
internals.bytesSeen += bytes;
|
|
@@ -14191,6 +14285,9 @@ var AxiosTransformStream = class extends stream.Transform {
|
|
|
14191
14285
|
}
|
|
14192
14286
|
};
|
|
14193
14287
|
const transformChunk = (_chunk, _callback) => {
|
|
14288
|
+
if (this.destroyed) {
|
|
14289
|
+
return _callback();
|
|
14290
|
+
}
|
|
14194
14291
|
const chunkSize = Buffer.byteLength(_chunk);
|
|
14195
14292
|
let chunkRemainder = null;
|
|
14196
14293
|
let maxChunkSize = readableHighWaterMark;
|
|
@@ -14213,7 +14310,7 @@ var AxiosTransformStream = class extends stream.Transform {
|
|
|
14213
14310
|
}, timeWindow - passed);
|
|
14214
14311
|
}
|
|
14215
14312
|
if (bytesLeft < maxChunkSize) {
|
|
14216
|
-
maxChunkSize = bytesLeft;
|
|
14313
|
+
maxChunkSize = Math.max(1, Math.floor(bytesLeft));
|
|
14217
14314
|
}
|
|
14218
14315
|
}
|
|
14219
14316
|
if (maxChunkSize && chunkSize > maxChunkSize && chunkSize - maxChunkSize > minChunkSize) {
|
|
@@ -14241,14 +14338,14 @@ var AxiosTransformStream = class extends stream.Transform {
|
|
|
14241
14338
|
};
|
|
14242
14339
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
14243
14340
|
|
|
14244
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14341
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
14245
14342
|
import { EventEmitter } from "events";
|
|
14246
14343
|
|
|
14247
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14344
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
|
|
14248
14345
|
import util from "util";
|
|
14249
14346
|
import { Readable } from "stream";
|
|
14250
14347
|
|
|
14251
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14348
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
|
|
14252
14349
|
var { asyncIterator } = Symbol;
|
|
14253
14350
|
var readBlob = async function* (blob) {
|
|
14254
14351
|
if (blob.stream) {
|
|
@@ -14263,7 +14360,7 @@ var readBlob = async function* (blob) {
|
|
|
14263
14360
|
};
|
|
14264
14361
|
var readBlob_default = readBlob;
|
|
14265
14362
|
|
|
14266
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14363
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
|
|
14267
14364
|
var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
14268
14365
|
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
|
|
14269
14366
|
var CRLF = "\r\n";
|
|
@@ -14271,9 +14368,9 @@ var CRLF_BYTES = textEncoder.encode(CRLF);
|
|
|
14271
14368
|
var CRLF_BYTES_COUNT = 2;
|
|
14272
14369
|
var FormDataPart = class {
|
|
14273
14370
|
constructor(name, value) {
|
|
14274
|
-
const { escapeName } = this.constructor;
|
|
14371
|
+
const { escapeName: escapeName2 } = this.constructor;
|
|
14275
14372
|
const isStringValue = utils_default.isString(value);
|
|
14276
|
-
let headers = `Content-Disposition: form-data; name="${
|
|
14373
|
+
let headers = `Content-Disposition: form-data; name="${escapeName2(name)}"${!isStringValue && value.name ? `; filename="${escapeName2(value.name)}"` : ""}${CRLF}`;
|
|
14277
14374
|
if (isStringValue) {
|
|
14278
14375
|
value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
|
|
14279
14376
|
} else {
|
|
@@ -14348,7 +14445,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
14348
14445
|
};
|
|
14349
14446
|
var formDataToStream_default = formDataToStream;
|
|
14350
14447
|
|
|
14351
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14448
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
14352
14449
|
import stream2 from "stream";
|
|
14353
14450
|
var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
14354
14451
|
__transform(chunk, encoding, callback) {
|
|
@@ -14370,7 +14467,7 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
|
14370
14467
|
};
|
|
14371
14468
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
14372
14469
|
|
|
14373
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14470
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
|
|
14374
14471
|
import http2 from "http2";
|
|
14375
14472
|
import util2 from "util";
|
|
14376
14473
|
var Http2Sessions = class {
|
|
@@ -14434,7 +14531,7 @@ var Http2Sessions = class {
|
|
|
14434
14531
|
timer = null;
|
|
14435
14532
|
}
|
|
14436
14533
|
stream4.once("close", () => {
|
|
14437
|
-
if (!--streamsCount) {
|
|
14534
|
+
if (!--streamsCount && !removed) {
|
|
14438
14535
|
timer = setTimeout(() => {
|
|
14439
14536
|
timer = null;
|
|
14440
14537
|
removeSession();
|
|
@@ -14446,6 +14543,7 @@ var Http2Sessions = class {
|
|
|
14446
14543
|
}
|
|
14447
14544
|
session.once("close", removeSession);
|
|
14448
14545
|
session.once("error", removeSession);
|
|
14546
|
+
session.once("goaway", removeSession);
|
|
14449
14547
|
let entry = [session, options];
|
|
14450
14548
|
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
14451
14549
|
return session;
|
|
@@ -14453,7 +14551,7 @@ var Http2Sessions = class {
|
|
|
14453
14551
|
};
|
|
14454
14552
|
var Http2Sessions_default = Http2Sessions;
|
|
14455
14553
|
|
|
14456
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14554
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
|
|
14457
14555
|
var callbackify = (fn, reducer) => {
|
|
14458
14556
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
14459
14557
|
const cb = args.pop();
|
|
@@ -14468,7 +14566,8 @@ var callbackify = (fn, reducer) => {
|
|
|
14468
14566
|
};
|
|
14469
14567
|
var callbackify_default = callbackify;
|
|
14470
14568
|
|
|
14471
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14569
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
|
|
14570
|
+
import { domainToASCII } from "url";
|
|
14472
14571
|
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
|
|
14473
14572
|
var trimTrailingDots = (value) => {
|
|
14474
14573
|
let end = value.length;
|
|
@@ -14662,7 +14761,20 @@ var normalizeNoProxyHost = (hostname) => {
|
|
|
14662
14761
|
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
|
|
14663
14762
|
hostname = hostname.slice(1, -1);
|
|
14664
14763
|
}
|
|
14665
|
-
|
|
14764
|
+
let trimmed = trimTrailingDots(hostname);
|
|
14765
|
+
if (trimmed.indexOf(":") !== -1) {
|
|
14766
|
+
try {
|
|
14767
|
+
trimmed = new URL("http://[" + trimmed + "]/").hostname.slice(1, -1);
|
|
14768
|
+
} catch (_err) {
|
|
14769
|
+
return trimmed;
|
|
14770
|
+
}
|
|
14771
|
+
} else if (/[\u0080-\uffff]/.test(trimmed)) {
|
|
14772
|
+
const prefix = /^[*.]+/.exec(trimmed);
|
|
14773
|
+
const start = prefix ? prefix[0] : "";
|
|
14774
|
+
const ascii = domainToASCII(trimmed.slice(start.length));
|
|
14775
|
+
if (!ascii) return "";
|
|
14776
|
+
trimmed = start + trimTrailingDots(ascii);
|
|
14777
|
+
}
|
|
14666
14778
|
const ipv4 = normalizeIPAddress(trimmed);
|
|
14667
14779
|
if (ipv4 !== trimmed) {
|
|
14668
14780
|
return ipv4;
|
|
@@ -14792,7 +14904,7 @@ function shouldBypassProxy(location) {
|
|
|
14792
14904
|
});
|
|
14793
14905
|
}
|
|
14794
14906
|
|
|
14795
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14907
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
|
|
14796
14908
|
function speedometer(samplesCount, min) {
|
|
14797
14909
|
samplesCount = samplesCount || 10;
|
|
14798
14910
|
const bytes = new Array(samplesCount);
|
|
@@ -14828,7 +14940,7 @@ function speedometer(samplesCount, min) {
|
|
|
14828
14940
|
}
|
|
14829
14941
|
var speedometer_default = speedometer;
|
|
14830
14942
|
|
|
14831
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14943
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
|
|
14832
14944
|
function throttle(fn, freq) {
|
|
14833
14945
|
let timestamp = 0;
|
|
14834
14946
|
let threshold = 1e3 / freq;
|
|
@@ -14864,7 +14976,7 @@ function throttle(fn, freq) {
|
|
|
14864
14976
|
}
|
|
14865
14977
|
var throttle_default = throttle;
|
|
14866
14978
|
|
|
14867
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14979
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
14868
14980
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
14869
14981
|
let bytesNotified = 0;
|
|
14870
14982
|
const _speedometer = speedometer_default(50, 250);
|
|
@@ -14905,7 +15017,7 @@ var progressEventDecorator = (total, throttled) => {
|
|
|
14905
15017
|
};
|
|
14906
15018
|
var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
|
|
14907
15019
|
|
|
14908
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15020
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
14909
15021
|
var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
|
|
14910
15022
|
var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
|
|
14911
15023
|
var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
|
|
@@ -14933,6 +15045,26 @@ var estimateBase64BufferAllocation = (body) => {
|
|
|
14933
15045
|
}
|
|
14934
15046
|
return Math.floor((len - padding) * 3 / 4);
|
|
14935
15047
|
};
|
|
15048
|
+
var estimatePercentDecodedBase64BufferAllocation = (body) => {
|
|
15049
|
+
if (body.indexOf("%") === -1) {
|
|
15050
|
+
return estimateBase64BufferAllocation(body);
|
|
15051
|
+
}
|
|
15052
|
+
let length = 0;
|
|
15053
|
+
let previous = 0;
|
|
15054
|
+
let last = 0;
|
|
15055
|
+
for (let i = 0, len = body.length; i < len; i++) {
|
|
15056
|
+
let code = body.charCodeAt(i);
|
|
15057
|
+
if (code === 37 && isPercentEncodedByte(body, i, len)) {
|
|
15058
|
+
code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
|
|
15059
|
+
i += 2;
|
|
15060
|
+
}
|
|
15061
|
+
length++;
|
|
15062
|
+
previous = last;
|
|
15063
|
+
last = code;
|
|
15064
|
+
}
|
|
15065
|
+
const padding = last === 61 ? previous === 61 ? 2 : 1 : 0;
|
|
15066
|
+
return Math.floor((length - padding) * 3 / 4);
|
|
15067
|
+
};
|
|
14936
15068
|
var estimatePercentDecodedBase64Bytes = (body) => {
|
|
14937
15069
|
const len = body.length;
|
|
14938
15070
|
let significant = 0;
|
|
@@ -14962,14 +15094,14 @@ var estimatePercentDecodedBase64Bytes = (body) => {
|
|
|
14962
15094
|
}
|
|
14963
15095
|
return base64Bytes(significant);
|
|
14964
15096
|
};
|
|
14965
|
-
var estimateDataURLBytes = (url2, estimateBase64) => {
|
|
15097
|
+
var estimateDataURLBytes = (url2, estimateBase64, base64Pattern) => {
|
|
14966
15098
|
if (!url2 || typeof url2 !== "string") return 0;
|
|
14967
|
-
if (
|
|
15099
|
+
if (!/^data:/i.test(url2)) return 0;
|
|
14968
15100
|
const comma = url2.indexOf(",");
|
|
14969
15101
|
if (comma < 0) return 0;
|
|
14970
15102
|
const meta = url2.slice(5, comma);
|
|
14971
15103
|
const body = url2.slice(comma + 1);
|
|
14972
|
-
const isBase64 =
|
|
15104
|
+
const isBase64 = base64Pattern.test(meta);
|
|
14973
15105
|
if (isBase64) {
|
|
14974
15106
|
return estimateBase64(body);
|
|
14975
15107
|
}
|
|
@@ -15001,14 +15133,15 @@ function estimateDataURLDecodedBytes(url2) {
|
|
|
15001
15133
|
const fragmentIndex = typeof url2 === "string" ? url2.indexOf("#") : -1;
|
|
15002
15134
|
return estimateDataURLBytes(
|
|
15003
15135
|
fragmentIndex === -1 ? url2 : url2.slice(0, fragmentIndex),
|
|
15004
|
-
estimatePercentDecodedBase64Bytes
|
|
15136
|
+
estimatePercentDecodedBase64Bytes,
|
|
15137
|
+
/; *base64[\t\n\f\r ]*$/i
|
|
15005
15138
|
);
|
|
15006
15139
|
}
|
|
15007
15140
|
function estimateDataURLBufferAllocation(url2) {
|
|
15008
|
-
return estimateDataURLBytes(url2,
|
|
15141
|
+
return estimateDataURLBytes(url2, estimatePercentDecodedBase64BufferAllocation, /;base64$/i);
|
|
15009
15142
|
}
|
|
15010
15143
|
|
|
15011
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15144
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
15012
15145
|
var zlibOptions = {
|
|
15013
15146
|
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
15014
15147
|
finishFlush: zlib.constants.Z_SYNC_FLUSH
|
|
@@ -15039,6 +15172,18 @@ function handleSocketError(err) {
|
|
|
15039
15172
|
var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
|
|
15040
15173
|
var tunnelingAgentCache = /* @__PURE__ */ new Map();
|
|
15041
15174
|
var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
|
|
15175
|
+
var directAgents = /* @__PURE__ */ new WeakMap();
|
|
15176
|
+
var directAgentHooks = ["createConnection", "getName"];
|
|
15177
|
+
var nativeAgentPoolHooks = [
|
|
15178
|
+
"addRequest",
|
|
15179
|
+
"createSocket",
|
|
15180
|
+
"removeSocket",
|
|
15181
|
+
"keepSocketAlive",
|
|
15182
|
+
"reuseSocket",
|
|
15183
|
+
"_getSession",
|
|
15184
|
+
"_cacheSession",
|
|
15185
|
+
"_evictSession"
|
|
15186
|
+
];
|
|
15042
15187
|
var NODE_NATIVE_ENV_PROXY_SUPPORT = {
|
|
15043
15188
|
22: 21,
|
|
15044
15189
|
24: 5
|
|
@@ -15068,6 +15213,49 @@ function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.
|
|
|
15068
15213
|
function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
|
|
15069
15214
|
return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
|
|
15070
15215
|
}
|
|
15216
|
+
function getDirectAgent(configuredAgent, transport) {
|
|
15217
|
+
if (!process.allowedNodeEnvironmentFlags || !process.allowedNodeEnvironmentFlags.has("--use-env-proxy")) {
|
|
15218
|
+
return configuredAgent;
|
|
15219
|
+
}
|
|
15220
|
+
const agent = configuredAgent || transport.globalAgent;
|
|
15221
|
+
const options = agent && agent.options;
|
|
15222
|
+
if (!(agent instanceof transport.Agent) || agent.protocol !== transport.globalAgent.protocol || !options || !utils_default.hasOwnProp(options, "proxyEnv") || typeof options.proxyEnv !== "object" || options.proxyEnv === null) {
|
|
15223
|
+
return configuredAgent;
|
|
15224
|
+
}
|
|
15225
|
+
for (const hook of nativeAgentPoolHooks) {
|
|
15226
|
+
if (utils_default.isFunction(transport.Agent.prototype[hook]) && agent[hook] !== transport.Agent.prototype[hook]) {
|
|
15227
|
+
throw new AxiosError_default(
|
|
15228
|
+
"proxy: false cannot adapt an agent overriding " + hook + "; use an agent constructed without proxyEnv",
|
|
15229
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE
|
|
15230
|
+
);
|
|
15231
|
+
}
|
|
15232
|
+
}
|
|
15233
|
+
let direct = directAgents.get(agent);
|
|
15234
|
+
if (!direct) {
|
|
15235
|
+
direct = new transport.Agent({ ...options, proxyEnv: void 0 });
|
|
15236
|
+
const destroy = agent.destroy;
|
|
15237
|
+
agent.destroy = function destroyWithDirectAgent() {
|
|
15238
|
+
try {
|
|
15239
|
+
return destroy.apply(this, arguments);
|
|
15240
|
+
} finally {
|
|
15241
|
+
direct.destroy();
|
|
15242
|
+
}
|
|
15243
|
+
};
|
|
15244
|
+
directAgents.set(agent, direct);
|
|
15245
|
+
}
|
|
15246
|
+
for (const hook of directAgentHooks) {
|
|
15247
|
+
direct[hook] = agent[hook] === transport.Agent.prototype[hook] ? transport.Agent.prototype[hook] : bind(agent[hook], agent);
|
|
15248
|
+
}
|
|
15249
|
+
return direct;
|
|
15250
|
+
}
|
|
15251
|
+
function setDirectAgent(options, configHttpAgent, configHttpsAgent) {
|
|
15252
|
+
const secure = isHttps.test(options.protocol);
|
|
15253
|
+
const agent = getDirectAgent(secure ? configHttpsAgent : configHttpAgent, secure ? https : http);
|
|
15254
|
+
options.agent = agent;
|
|
15255
|
+
if (options.agents) {
|
|
15256
|
+
options.agents[secure ? "https" : "http"] = agent;
|
|
15257
|
+
}
|
|
15258
|
+
}
|
|
15071
15259
|
function getTunnelingAgent(agentOptions, userHttpsAgent) {
|
|
15072
15260
|
const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
|
|
15073
15261
|
const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
|
|
@@ -15075,13 +15263,12 @@ function getTunnelingAgent(agentOptions, userHttpsAgent) {
|
|
|
15075
15263
|
if (agent) return agent;
|
|
15076
15264
|
const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
|
|
15077
15265
|
agent = new import_https_proxy_agent.default(merged);
|
|
15078
|
-
|
|
15079
|
-
|
|
15080
|
-
const
|
|
15081
|
-
|
|
15082
|
-
|
|
15083
|
-
|
|
15084
|
-
}
|
|
15266
|
+
const callback = agent.callback;
|
|
15267
|
+
agent.callback = function axiosTunnelingAgentCallback(req, opts) {
|
|
15268
|
+
const originTLSAgent = userHttpsAgent || https.globalAgent;
|
|
15269
|
+
const originTLSOptions = originTLSAgent && originTLSAgent.options;
|
|
15270
|
+
return callback.call(this, req, { ...originTLSOptions, ...opts });
|
|
15271
|
+
};
|
|
15085
15272
|
agent[kAxiosInstalledTunnel] = true;
|
|
15086
15273
|
cache.set(key, agent);
|
|
15087
15274
|
return agent;
|
|
@@ -15105,6 +15292,10 @@ var flushOnFinish = (stream4, [throttled, flush]) => {
|
|
|
15105
15292
|
};
|
|
15106
15293
|
var http2Sessions = new Http2Sessions_default();
|
|
15107
15294
|
function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
15295
|
+
if (!isSameOriginRedirect(options, requestDetails)) {
|
|
15296
|
+
stripMatchingHeaders(options.headers, /* @__PURE__ */ new Set(["authorization", "cookie"]));
|
|
15297
|
+
delete options.auth;
|
|
15298
|
+
}
|
|
15108
15299
|
if (options.beforeRedirects.proxy) {
|
|
15109
15300
|
options.beforeRedirects.proxy(options);
|
|
15110
15301
|
}
|
|
@@ -15114,6 +15305,9 @@ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
|
15114
15305
|
if (options.beforeRedirects.sensitiveHeaders) {
|
|
15115
15306
|
options.beforeRedirects.sensitiveHeaders(options, requestDetails);
|
|
15116
15307
|
}
|
|
15308
|
+
if (options.beforeRedirects.direct) {
|
|
15309
|
+
options.beforeRedirects.direct(options);
|
|
15310
|
+
}
|
|
15117
15311
|
if (options.beforeRedirects.config) {
|
|
15118
15312
|
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
15119
15313
|
}
|
|
@@ -15159,6 +15353,9 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent,
|
|
|
15159
15353
|
if (isRedirect && options.agent && options.agent[kAxiosInstalledTunnel]) {
|
|
15160
15354
|
options.agent = void 0;
|
|
15161
15355
|
}
|
|
15356
|
+
if (isRedirect && options.agents && options.agents.https && options.agents.https[kAxiosInstalledTunnel]) {
|
|
15357
|
+
options.agents.https = configHttpsAgent;
|
|
15358
|
+
}
|
|
15162
15359
|
if (proxy) {
|
|
15163
15360
|
const isProxyURL = proxy instanceof URL;
|
|
15164
15361
|
const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
|
|
@@ -15339,9 +15536,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15339
15536
|
if (httpVersion === void 0) httpVersion = 1;
|
|
15340
15537
|
const rawHttpVersion = httpVersion;
|
|
15341
15538
|
let http2Options = own2("http2Options");
|
|
15539
|
+
const configProxy = own2("proxy");
|
|
15342
15540
|
const httpAgent = own2("httpAgent");
|
|
15343
15541
|
const httpsAgent = own2("httpsAgent");
|
|
15344
|
-
const configProxy = own2("proxy");
|
|
15345
15542
|
const responseType = own2("responseType");
|
|
15346
15543
|
const responseEncoding = own2("responseEncoding");
|
|
15347
15544
|
const socketPath = own2("socketPath");
|
|
@@ -15480,6 +15677,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15480
15677
|
} catch (err) {
|
|
15481
15678
|
throw AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config);
|
|
15482
15679
|
}
|
|
15680
|
+
if (maxContentLength > -1 && (responseType === "blob" ? convertedData.size : convertedData.length) > maxContentLength) {
|
|
15681
|
+
return reject(
|
|
15682
|
+
new AxiosError_default(
|
|
15683
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
15684
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
15685
|
+
config
|
|
15686
|
+
)
|
|
15687
|
+
);
|
|
15688
|
+
}
|
|
15483
15689
|
if (responseType === "text") {
|
|
15484
15690
|
convertedData = convertedData.toString(responseEncoding);
|
|
15485
15691
|
if (!responseEncoding || responseEncoding === "utf8") {
|
|
@@ -15682,9 +15888,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15682
15888
|
}
|
|
15683
15889
|
let transport;
|
|
15684
15890
|
let isNativeTransport = false;
|
|
15685
|
-
let transportEnforcesMaxBodyLength = false;
|
|
15686
15891
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
15687
|
-
if (
|
|
15892
|
+
if (!isHttp2 && configProxy === false) {
|
|
15893
|
+
setDirectAgent(options, httpAgent, httpsAgent);
|
|
15894
|
+
options.beforeRedirects.direct = (redirectOptions) => {
|
|
15895
|
+
setDirectAgent(redirectOptions, httpAgent, httpsAgent);
|
|
15896
|
+
};
|
|
15897
|
+
} else if (options.agent == null) {
|
|
15688
15898
|
options.agent = isHttpsRequest ? httpsAgent : httpAgent;
|
|
15689
15899
|
}
|
|
15690
15900
|
if (isHttp2) {
|
|
@@ -15706,7 +15916,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15706
15916
|
transport = isHttpsRequest ? https : http;
|
|
15707
15917
|
isNativeTransport = true;
|
|
15708
15918
|
} else {
|
|
15709
|
-
transportEnforcesMaxBodyLength = true;
|
|
15710
15919
|
options.sensitiveHeaders = [];
|
|
15711
15920
|
if (maxRedirects) {
|
|
15712
15921
|
options.maxRedirects = maxRedirects;
|
|
@@ -15992,7 +16201,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15992
16201
|
}
|
|
15993
16202
|
});
|
|
15994
16203
|
let uploadStream = data;
|
|
15995
|
-
if (maxBodyLength > -1
|
|
16204
|
+
if (maxBodyLength > -1) {
|
|
15996
16205
|
const limit = maxBodyLength;
|
|
15997
16206
|
let bytesSent = 0;
|
|
15998
16207
|
uploadStream = stream3.pipeline(
|
|
@@ -16029,16 +16238,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
16029
16238
|
});
|
|
16030
16239
|
};
|
|
16031
16240
|
|
|
16032
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16033
|
-
var
|
|
16034
|
-
|
|
16035
|
-
|
|
16036
|
-
})
|
|
16037
|
-
|
|
16038
|
-
|
|
16039
|
-
|
|
16040
|
-
|
|
16041
|
-
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
|
|
16241
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
|
|
16242
|
+
var decodeCookieValue = (value) => {
|
|
16243
|
+
try {
|
|
16244
|
+
return decodeURIComponent(value);
|
|
16245
|
+
} catch (e) {
|
|
16246
|
+
return value;
|
|
16247
|
+
}
|
|
16248
|
+
};
|
|
16042
16249
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
16043
16250
|
// Standard browser envs support document.cookie
|
|
16044
16251
|
{
|
|
@@ -16064,20 +16271,29 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
16064
16271
|
},
|
|
16065
16272
|
read(name) {
|
|
16066
16273
|
if (typeof document === "undefined") return null;
|
|
16067
|
-
const
|
|
16274
|
+
const cookieString = document.cookie;
|
|
16275
|
+
if (!cookieString) return null;
|
|
16276
|
+
const cookies = cookieString.split(";");
|
|
16068
16277
|
for (let i = 0; i < cookies.length; i++) {
|
|
16069
16278
|
const cookie = cookies[i].replace(/^\s+/, "");
|
|
16070
16279
|
const eq = cookie.indexOf("=");
|
|
16071
16280
|
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
16072
|
-
|
|
16073
|
-
return decodeURIComponent(cookie.slice(eq + 1));
|
|
16074
|
-
} catch (e) {
|
|
16075
|
-
return cookie.slice(eq + 1);
|
|
16076
|
-
}
|
|
16281
|
+
return decodeCookieValue(cookie.slice(eq + 1));
|
|
16077
16282
|
}
|
|
16078
16283
|
}
|
|
16079
16284
|
return null;
|
|
16080
16285
|
},
|
|
16286
|
+
async readAsync(name) {
|
|
16287
|
+
try {
|
|
16288
|
+
const store = typeof window !== "undefined" && window.cookieStore;
|
|
16289
|
+
if (store && utils_default.isFunction(store.get)) {
|
|
16290
|
+
const cookie = await store.get(name);
|
|
16291
|
+
return cookie ? decodeCookieValue(cookie.value) : null;
|
|
16292
|
+
}
|
|
16293
|
+
} catch (e) {
|
|
16294
|
+
}
|
|
16295
|
+
return this.read(name);
|
|
16296
|
+
},
|
|
16081
16297
|
remove(name) {
|
|
16082
16298
|
this.write(name, "", Date.now() - 864e5, "/");
|
|
16083
16299
|
}
|
|
@@ -16090,130 +16306,224 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
16090
16306
|
read() {
|
|
16091
16307
|
return null;
|
|
16092
16308
|
},
|
|
16309
|
+
async readAsync() {
|
|
16310
|
+
return null;
|
|
16311
|
+
},
|
|
16093
16312
|
remove() {
|
|
16094
16313
|
}
|
|
16095
16314
|
}
|
|
16096
16315
|
);
|
|
16097
16316
|
|
|
16098
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16317
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
16318
|
+
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2) => (url2) => {
|
|
16319
|
+
url2 = new URL(url2, document.baseURI || platform_default.origin);
|
|
16320
|
+
return origin2.protocol === url2.protocol && origin2.host === url2.host && origin2.port === url2.port;
|
|
16321
|
+
})(new URL(platform_default.origin)) : () => true;
|
|
16322
|
+
|
|
16323
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/assertParamsAcyclic.js
|
|
16324
|
+
function assertParamsAcyclic(params) {
|
|
16325
|
+
const pending = [{ value: params }];
|
|
16326
|
+
const active = /* @__PURE__ */ new WeakSet();
|
|
16327
|
+
const visited = /* @__PURE__ */ new WeakSet();
|
|
16328
|
+
while (pending.length) {
|
|
16329
|
+
const { value, done } = pending.pop();
|
|
16330
|
+
if (!utils_default.isPlainObject(value) && !utils_default.isArray(value)) continue;
|
|
16331
|
+
if (done) {
|
|
16332
|
+
active.delete(value);
|
|
16333
|
+
continue;
|
|
16334
|
+
}
|
|
16335
|
+
if (active.has(value)) {
|
|
16336
|
+
throw new AxiosError_default(
|
|
16337
|
+
"Circular reference detected in params",
|
|
16338
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE
|
|
16339
|
+
);
|
|
16340
|
+
}
|
|
16341
|
+
if (visited.has(value)) continue;
|
|
16342
|
+
visited.add(value);
|
|
16343
|
+
active.add(value);
|
|
16344
|
+
pending.push({ value, done: true });
|
|
16345
|
+
const keys = Object.keys(value);
|
|
16346
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
16347
|
+
Object.getOwnPropertySymbols(value).forEach((key) => {
|
|
16348
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
16349
|
+
if (descriptor && descriptor.enumerable) keys.push(key);
|
|
16350
|
+
});
|
|
16351
|
+
}
|
|
16352
|
+
keys.forEach((key) => {
|
|
16353
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
16354
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
16355
|
+
if (descriptor && utils_default.hasOwnProp(descriptor, "value")) {
|
|
16356
|
+
pending.push({ value: descriptor.value });
|
|
16357
|
+
}
|
|
16358
|
+
} else {
|
|
16359
|
+
pending.push({ value: value[key] });
|
|
16360
|
+
}
|
|
16361
|
+
});
|
|
16362
|
+
}
|
|
16363
|
+
}
|
|
16364
|
+
|
|
16365
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
|
|
16099
16366
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
16100
16367
|
var ownEnumerableKeys = (thing) => {
|
|
16101
16368
|
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
16102
16369
|
return Object.keys(thing).concat(
|
|
16103
|
-
Object.getOwnPropertySymbols(thing).filter(
|
|
16104
|
-
|
|
16105
|
-
|
|
16370
|
+
Object.getOwnPropertySymbols(thing).filter((symbol) => {
|
|
16371
|
+
const descriptor = Object.getOwnPropertyDescriptor(thing, symbol);
|
|
16372
|
+
return descriptor && descriptor.enumerable;
|
|
16373
|
+
})
|
|
16106
16374
|
);
|
|
16107
16375
|
}
|
|
16108
16376
|
return Object.keys(thing);
|
|
16109
16377
|
};
|
|
16110
|
-
function
|
|
16111
|
-
|
|
16112
|
-
|
|
16113
|
-
const
|
|
16114
|
-
|
|
16115
|
-
|
|
16116
|
-
|
|
16117
|
-
|
|
16118
|
-
|
|
16119
|
-
|
|
16120
|
-
|
|
16121
|
-
|
|
16122
|
-
|
|
16123
|
-
|
|
16124
|
-
if (
|
|
16125
|
-
|
|
16126
|
-
|
|
16127
|
-
|
|
16128
|
-
|
|
16129
|
-
|
|
16130
|
-
|
|
16131
|
-
|
|
16378
|
+
function mergeParams(a, b) {
|
|
16379
|
+
const pending = [];
|
|
16380
|
+
const copies = /* @__PURE__ */ new WeakMap();
|
|
16381
|
+
const empty = {};
|
|
16382
|
+
function copy(target, source) {
|
|
16383
|
+
if (!utils_default.isPlainObject(source)) {
|
|
16384
|
+
return utils_default.isArray(source) ? source.slice() : source;
|
|
16385
|
+
}
|
|
16386
|
+
const base = utils_default.isPlainObject(target) ? target : empty;
|
|
16387
|
+
let bases = copies.get(source);
|
|
16388
|
+
if (!bases) {
|
|
16389
|
+
bases = /* @__PURE__ */ new WeakMap();
|
|
16390
|
+
copies.set(source, bases);
|
|
16391
|
+
}
|
|
16392
|
+
if (bases.has(base)) return bases.get(base);
|
|
16393
|
+
const result2 = {};
|
|
16394
|
+
bases.set(base, result2);
|
|
16395
|
+
pending.push({ base, source, result: result2 });
|
|
16396
|
+
return result2;
|
|
16397
|
+
}
|
|
16398
|
+
const result = utils_default.isUndefined(b) ? copy(void 0, a) : copy(a, b);
|
|
16399
|
+
while (pending.length) {
|
|
16400
|
+
const { base, source, result: target } = pending.pop();
|
|
16401
|
+
const baseKeys = new Set(ownEnumerableKeys(base));
|
|
16402
|
+
const sourceKeys = new Set(ownEnumerableKeys(source));
|
|
16403
|
+
const keys = /* @__PURE__ */ new Set([...baseKeys, ...sourceKeys]);
|
|
16404
|
+
keys.forEach((key) => {
|
|
16405
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") return;
|
|
16406
|
+
const hasSource = sourceKeys.has(key);
|
|
16407
|
+
const value = hasSource ? source[key] : void 0;
|
|
16408
|
+
const previous = (!hasSource || utils_default.isPlainObject(value)) && baseKeys.has(key) ? base[key] : void 0;
|
|
16409
|
+
target[key] = hasSource ? copy(previous, value) : copy(void 0, previous);
|
|
16410
|
+
});
|
|
16132
16411
|
}
|
|
16133
|
-
|
|
16134
|
-
|
|
16135
|
-
|
|
16136
|
-
|
|
16137
|
-
|
|
16138
|
-
}
|
|
16412
|
+
assertParamsAcyclic(result);
|
|
16413
|
+
return result;
|
|
16414
|
+
}
|
|
16415
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
16416
|
+
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
|
|
16417
|
+
return utils_default.merge.call({ caseless }, target, source);
|
|
16418
|
+
} else if (utils_default.isPlainObject(source)) {
|
|
16419
|
+
return utils_default.merge({}, source);
|
|
16420
|
+
} else if (utils_default.isArray(source)) {
|
|
16421
|
+
return source.slice();
|
|
16422
|
+
}
|
|
16423
|
+
return source;
|
|
16424
|
+
}
|
|
16425
|
+
function mergeDeepProperties(a, b, prop, caseless) {
|
|
16426
|
+
if (!utils_default.isUndefined(b)) {
|
|
16427
|
+
return getMergedValue(a, b, prop, caseless);
|
|
16428
|
+
} else if (!utils_default.isUndefined(a)) {
|
|
16429
|
+
return getMergedValue(void 0, a, prop, caseless);
|
|
16139
16430
|
}
|
|
16140
|
-
|
|
16141
|
-
|
|
16142
|
-
|
|
16143
|
-
|
|
16431
|
+
}
|
|
16432
|
+
function valueFromConfig2(a, b) {
|
|
16433
|
+
if (!utils_default.isUndefined(b)) {
|
|
16434
|
+
return getMergedValue(void 0, b);
|
|
16144
16435
|
}
|
|
16145
|
-
|
|
16146
|
-
|
|
16147
|
-
|
|
16148
|
-
|
|
16149
|
-
|
|
16150
|
-
|
|
16436
|
+
}
|
|
16437
|
+
function defaultToConfig2(a, b) {
|
|
16438
|
+
if (!utils_default.isUndefined(b)) {
|
|
16439
|
+
return getMergedValue(void 0, b);
|
|
16440
|
+
} else if (!utils_default.isUndefined(a)) {
|
|
16441
|
+
return getMergedValue(void 0, a);
|
|
16151
16442
|
}
|
|
16152
|
-
|
|
16153
|
-
|
|
16154
|
-
|
|
16155
|
-
|
|
16156
|
-
|
|
16157
|
-
|
|
16158
|
-
|
|
16159
|
-
} else {
|
|
16160
|
-
return void 0;
|
|
16443
|
+
}
|
|
16444
|
+
function getMergedTransitionalOption(config1, config2, prop) {
|
|
16445
|
+
const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
|
|
16446
|
+
if (!utils_default.isUndefined(transitional2)) {
|
|
16447
|
+
if (utils_default.isPlainObject(transitional2)) {
|
|
16448
|
+
if (utils_default.hasOwnProp(transitional2, prop)) {
|
|
16449
|
+
return transitional2[prop];
|
|
16161
16450
|
}
|
|
16451
|
+
} else {
|
|
16452
|
+
return void 0;
|
|
16162
16453
|
}
|
|
16163
|
-
const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
|
|
16164
|
-
if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
|
|
16165
|
-
return transitional1[prop];
|
|
16166
|
-
}
|
|
16167
|
-
return void 0;
|
|
16168
16454
|
}
|
|
16169
|
-
|
|
16170
|
-
|
|
16171
|
-
|
|
16172
|
-
|
|
16173
|
-
|
|
16174
|
-
|
|
16175
|
-
|
|
16176
|
-
|
|
16177
|
-
|
|
16178
|
-
|
|
16179
|
-
|
|
16180
|
-
|
|
16181
|
-
|
|
16182
|
-
|
|
16183
|
-
|
|
16184
|
-
|
|
16185
|
-
|
|
16186
|
-
|
|
16187
|
-
|
|
16188
|
-
|
|
16189
|
-
|
|
16190
|
-
|
|
16191
|
-
|
|
16192
|
-
|
|
16193
|
-
|
|
16194
|
-
|
|
16195
|
-
|
|
16196
|
-
|
|
16197
|
-
|
|
16198
|
-
|
|
16199
|
-
|
|
16200
|
-
|
|
16201
|
-
|
|
16202
|
-
|
|
16203
|
-
|
|
16204
|
-
|
|
16205
|
-
|
|
16206
|
-
|
|
16207
|
-
|
|
16208
|
-
|
|
16209
|
-
|
|
16455
|
+
const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
|
|
16456
|
+
if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
|
|
16457
|
+
return transitional1[prop];
|
|
16458
|
+
}
|
|
16459
|
+
return void 0;
|
|
16460
|
+
}
|
|
16461
|
+
function mergeDirectKeys(a, b, prop, config1, config2) {
|
|
16462
|
+
if (utils_default.hasOwnProp(config2, prop)) {
|
|
16463
|
+
return getMergedValue(a, b);
|
|
16464
|
+
} else if (utils_default.hasOwnProp(config1, prop)) {
|
|
16465
|
+
return getMergedValue(void 0, a);
|
|
16466
|
+
}
|
|
16467
|
+
}
|
|
16468
|
+
function mergeHeaders(a, b, prop) {
|
|
16469
|
+
return mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true);
|
|
16470
|
+
}
|
|
16471
|
+
var hasOwnPropertyDescriptor = Object.freeze({
|
|
16472
|
+
__proto__: null,
|
|
16473
|
+
value: Object.prototype.hasOwnProperty,
|
|
16474
|
+
enumerable: false,
|
|
16475
|
+
writable: true,
|
|
16476
|
+
configurable: true
|
|
16477
|
+
});
|
|
16478
|
+
var mergeMap = {
|
|
16479
|
+
url: valueFromConfig2,
|
|
16480
|
+
method: valueFromConfig2,
|
|
16481
|
+
data: valueFromConfig2,
|
|
16482
|
+
baseURL: defaultToConfig2,
|
|
16483
|
+
transformRequest: defaultToConfig2,
|
|
16484
|
+
transformResponse: defaultToConfig2,
|
|
16485
|
+
params: mergeParams,
|
|
16486
|
+
paramsSerializer: defaultToConfig2,
|
|
16487
|
+
timeout: defaultToConfig2,
|
|
16488
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
16489
|
+
withCredentials: defaultToConfig2,
|
|
16490
|
+
withXSRFToken: defaultToConfig2,
|
|
16491
|
+
adapter: defaultToConfig2,
|
|
16492
|
+
responseType: defaultToConfig2,
|
|
16493
|
+
xsrfCookieName: defaultToConfig2,
|
|
16494
|
+
xsrfHeaderName: defaultToConfig2,
|
|
16495
|
+
onUploadProgress: defaultToConfig2,
|
|
16496
|
+
onDownloadProgress: defaultToConfig2,
|
|
16497
|
+
decompress: defaultToConfig2,
|
|
16498
|
+
maxContentLength: defaultToConfig2,
|
|
16499
|
+
maxBodyLength: defaultToConfig2,
|
|
16500
|
+
beforeRedirect: defaultToConfig2,
|
|
16501
|
+
transport: defaultToConfig2,
|
|
16502
|
+
httpAgent: defaultToConfig2,
|
|
16503
|
+
httpsAgent: defaultToConfig2,
|
|
16504
|
+
cancelToken: defaultToConfig2,
|
|
16505
|
+
socketPath: defaultToConfig2,
|
|
16506
|
+
allowedSocketPaths: defaultToConfig2,
|
|
16507
|
+
responseEncoding: defaultToConfig2,
|
|
16508
|
+
validateStatus: mergeDirectKeys,
|
|
16509
|
+
headers: mergeHeaders
|
|
16510
|
+
};
|
|
16511
|
+
function mergeConfig(config1, config2) {
|
|
16512
|
+
config1 = config1 || {};
|
|
16513
|
+
config2 = config2 || {};
|
|
16514
|
+
const config = /* @__PURE__ */ Object.create(null);
|
|
16515
|
+
Object.defineProperty(config, "hasOwnProperty", hasOwnPropertyDescriptor);
|
|
16516
|
+
const keys = ownEnumerableKeys({ ...config1, ...config2 });
|
|
16517
|
+
for (let i = 0, len = keys.length; i < len; i++) {
|
|
16518
|
+
const prop = keys[i];
|
|
16519
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") continue;
|
|
16210
16520
|
const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
16211
16521
|
const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
|
|
16212
16522
|
const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
|
|
16213
|
-
const configValue = merge2(a, b, prop);
|
|
16523
|
+
const configValue = merge2 === mergeDirectKeys ? merge2(a, b, prop, config1, config2) : merge2(a, b, prop);
|
|
16214
16524
|
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
16215
|
-
}
|
|
16216
|
-
if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
|
|
16525
|
+
}
|
|
16526
|
+
if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption(config1, config2, "validateStatusUndefinedResolves") === false) {
|
|
16217
16527
|
if (utils_default.hasOwnProp(config1, "validateStatus")) {
|
|
16218
16528
|
config.validateStatus = getMergedValue(void 0, config1.validateStatus);
|
|
16219
16529
|
} else {
|
|
@@ -16223,12 +16533,13 @@ function mergeConfig(config1, config2) {
|
|
|
16223
16533
|
return config;
|
|
16224
16534
|
}
|
|
16225
16535
|
|
|
16226
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16536
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
|
|
16227
16537
|
var encodeUTF8 = (str) => encodeURIComponent(str).replace(
|
|
16228
16538
|
/%([0-9A-F]{2})/gi,
|
|
16229
16539
|
(_, hex) => String.fromCharCode(parseInt(hex, 16))
|
|
16230
16540
|
);
|
|
16231
|
-
|
|
16541
|
+
var readCookie = (name) => cookies_default.read(name);
|
|
16542
|
+
function resolveConfig(config, readXsrfCookie = readCookie) {
|
|
16232
16543
|
const newConfig = mergeConfig({}, config);
|
|
16233
16544
|
const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
16234
16545
|
const data = own2("data");
|
|
@@ -16249,10 +16560,15 @@ function resolveConfig(config) {
|
|
|
16249
16560
|
if (auth) {
|
|
16250
16561
|
const username = utils_default.getSafeProp(auth, "username") || "";
|
|
16251
16562
|
const password = utils_default.getSafeProp(auth, "password") || "";
|
|
16563
|
+
const transitional2 = own2("transitional");
|
|
16564
|
+
const encodeUsername = transitional2 && utils_default.hasOwnProp(transitional2, "encodeBasicAuthUsername") && transitional2.encodeBasicAuthUsername === true;
|
|
16252
16565
|
try {
|
|
16253
16566
|
headers.set(
|
|
16254
16567
|
"Authorization",
|
|
16255
|
-
|
|
16568
|
+
// Preserve legacy username bytes unless the caller opts in to UTF-8.
|
|
16569
|
+
"Basic " + btoa(
|
|
16570
|
+
(encodeUsername ? encodeUTF8(username) : username) + ":" + (password ? encodeUTF8(password) : "")
|
|
16571
|
+
)
|
|
16256
16572
|
);
|
|
16257
16573
|
} catch (e) {
|
|
16258
16574
|
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
|
|
@@ -16272,7 +16588,7 @@ function resolveConfig(config) {
|
|
|
16272
16588
|
}
|
|
16273
16589
|
const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
|
|
16274
16590
|
if (shouldSendXSRF) {
|
|
16275
|
-
const xsrfValue = xsrfHeaderName && xsrfCookieName &&
|
|
16591
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && readXsrfCookie(xsrfCookieName);
|
|
16276
16592
|
if (xsrfValue) {
|
|
16277
16593
|
headers.set(xsrfHeaderName, xsrfValue);
|
|
16278
16594
|
}
|
|
@@ -16282,20 +16598,54 @@ function resolveConfig(config) {
|
|
|
16282
16598
|
}
|
|
16283
16599
|
var resolveConfig_default = resolveConfig;
|
|
16284
16600
|
|
|
16285
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16601
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
|
|
16286
16602
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
16287
16603
|
var xhr_default = isXHRAdapterSupported && function(config) {
|
|
16288
16604
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
16289
|
-
|
|
16605
|
+
let useAsyncXsrf;
|
|
16606
|
+
try {
|
|
16607
|
+
const store = platform_default.hasStandardBrowserEnv && typeof window !== "undefined" && window.cookieStore;
|
|
16608
|
+
useAsyncXsrf = store && utils_default.isFunction(store.get);
|
|
16609
|
+
} catch (e) {
|
|
16610
|
+
}
|
|
16611
|
+
let xsrfCookieName;
|
|
16612
|
+
const _config = resolveConfig_default(
|
|
16613
|
+
config,
|
|
16614
|
+
useAsyncXsrf ? (name) => {
|
|
16615
|
+
xsrfCookieName = name;
|
|
16616
|
+
return null;
|
|
16617
|
+
} : void 0
|
|
16618
|
+
);
|
|
16290
16619
|
let requestData = _config.data;
|
|
16291
16620
|
const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
|
|
16292
16621
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
16293
16622
|
let onCanceled;
|
|
16623
|
+
let timeoutId;
|
|
16294
16624
|
let uploadThrottled, downloadThrottled;
|
|
16295
16625
|
let flushUpload, flushDownload, flushDownloadWithEvent;
|
|
16296
16626
|
function done() {
|
|
16297
|
-
|
|
16298
|
-
|
|
16627
|
+
clearTimeout(timeoutId);
|
|
16628
|
+
try {
|
|
16629
|
+
flushUpload && flushUpload();
|
|
16630
|
+
} catch (err) {
|
|
16631
|
+
setTimeout(() => {
|
|
16632
|
+
throw err;
|
|
16633
|
+
});
|
|
16634
|
+
}
|
|
16635
|
+
try {
|
|
16636
|
+
flushDownload && flushDownload();
|
|
16637
|
+
} catch (err) {
|
|
16638
|
+
setTimeout(() => {
|
|
16639
|
+
throw err;
|
|
16640
|
+
});
|
|
16641
|
+
}
|
|
16642
|
+
if (request) {
|
|
16643
|
+
downloadThrottled && request.removeEventListener("progress", downloadThrottled);
|
|
16644
|
+
if (request.upload) {
|
|
16645
|
+
uploadThrottled && request.upload.removeEventListener("progress", uploadThrottled);
|
|
16646
|
+
flushUpload && request.upload.removeEventListener("loadend", flushUpload);
|
|
16647
|
+
}
|
|
16648
|
+
}
|
|
16299
16649
|
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
16300
16650
|
_config.signal && _config.signal.removeEventListener("abort", onCanceled);
|
|
16301
16651
|
}
|
|
@@ -16381,6 +16731,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
16381
16731
|
request = null;
|
|
16382
16732
|
};
|
|
16383
16733
|
request.ontimeout = function handleTimeout() {
|
|
16734
|
+
if (!request) return;
|
|
16384
16735
|
let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
|
|
16385
16736
|
const transitional2 = _config.transitional || transitional_default;
|
|
16386
16737
|
if (_config.timeoutErrorMessage) {
|
|
@@ -16398,11 +16749,6 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
16398
16749
|
request = null;
|
|
16399
16750
|
};
|
|
16400
16751
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
16401
|
-
if ("setRequestHeader" in request) {
|
|
16402
|
-
utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
|
|
16403
|
-
request.setRequestHeader(key, val);
|
|
16404
|
-
});
|
|
16405
|
-
}
|
|
16406
16752
|
if (!utils_default.isUndefined(_config.withCredentials)) {
|
|
16407
16753
|
request.withCredentials = !!_config.withCredentials;
|
|
16408
16754
|
}
|
|
@@ -16427,15 +16773,18 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
16427
16773
|
return;
|
|
16428
16774
|
}
|
|
16429
16775
|
reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
|
|
16430
|
-
request
|
|
16776
|
+
const xhr = request;
|
|
16431
16777
|
done();
|
|
16432
16778
|
request = null;
|
|
16779
|
+
xhr.abort();
|
|
16433
16780
|
};
|
|
16434
16781
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
16782
|
+
if (!request) return;
|
|
16435
16783
|
if (_config.signal) {
|
|
16436
16784
|
_config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
|
|
16437
16785
|
}
|
|
16438
16786
|
}
|
|
16787
|
+
if (!request) return;
|
|
16439
16788
|
const protocol = parseProtocol(_config.url);
|
|
16440
16789
|
if (protocol && !platform_default.protocols.includes(protocol)) {
|
|
16441
16790
|
reject(
|
|
@@ -16448,11 +16797,62 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
16448
16797
|
done();
|
|
16449
16798
|
return;
|
|
16450
16799
|
}
|
|
16451
|
-
|
|
16800
|
+
const sendRequest = () => {
|
|
16801
|
+
if (!request) return;
|
|
16802
|
+
if ("setRequestHeader" in request) {
|
|
16803
|
+
utils_default.forEach(
|
|
16804
|
+
toByteStringHeaderObject(requestHeaders),
|
|
16805
|
+
function setRequestHeader(val, key) {
|
|
16806
|
+
request.setRequestHeader(key, val);
|
|
16807
|
+
}
|
|
16808
|
+
);
|
|
16809
|
+
}
|
|
16810
|
+
request.send(requestData || null);
|
|
16811
|
+
};
|
|
16812
|
+
if (xsrfCookieName) {
|
|
16813
|
+
const now = typeof performance !== "undefined" && utils_default.isFunction(performance.now) ? () => performance.now() : Date.now;
|
|
16814
|
+
const deadline = request.timeout > 0 ? now() + Number(request.timeout) : void 0;
|
|
16815
|
+
const abortOnTimeout = () => {
|
|
16816
|
+
if (!request) return;
|
|
16817
|
+
const xhr = request;
|
|
16818
|
+
xhr.ontimeout();
|
|
16819
|
+
xhr.abort();
|
|
16820
|
+
};
|
|
16821
|
+
if (deadline !== void 0) {
|
|
16822
|
+
const scheduleTimeout = () => {
|
|
16823
|
+
const remaining = deadline - now();
|
|
16824
|
+
if (remaining > 0) {
|
|
16825
|
+
timeoutId = setTimeout(scheduleTimeout, Math.min(remaining, 2147483647));
|
|
16826
|
+
} else {
|
|
16827
|
+
abortOnTimeout();
|
|
16828
|
+
}
|
|
16829
|
+
};
|
|
16830
|
+
scheduleTimeout();
|
|
16831
|
+
}
|
|
16832
|
+
cookies_default.readAsync(xsrfCookieName).then((value) => {
|
|
16833
|
+
if (!request) return;
|
|
16834
|
+
if (deadline !== void 0 && now() >= deadline) {
|
|
16835
|
+
abortOnTimeout();
|
|
16836
|
+
return;
|
|
16837
|
+
}
|
|
16838
|
+
if (value) {
|
|
16839
|
+
const headerName = utils_default.hasOwnProp(_config, "xsrfHeaderName") && _config.xsrfHeaderName;
|
|
16840
|
+
requestHeaders.set(headerName, value);
|
|
16841
|
+
}
|
|
16842
|
+
sendRequest();
|
|
16843
|
+
}).catch((error) => {
|
|
16844
|
+
if (!request) return;
|
|
16845
|
+
reject(AxiosError_default.from(error, null, config, request));
|
|
16846
|
+
done();
|
|
16847
|
+
request = null;
|
|
16848
|
+
});
|
|
16849
|
+
} else {
|
|
16850
|
+
sendRequest();
|
|
16851
|
+
}
|
|
16452
16852
|
});
|
|
16453
16853
|
};
|
|
16454
16854
|
|
|
16455
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16855
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
|
|
16456
16856
|
var composeSignals = (signals, timeout) => {
|
|
16457
16857
|
signals = signals ? signals.filter(Boolean) : [];
|
|
16458
16858
|
if (!timeout && !signals.length) {
|
|
@@ -16481,7 +16881,8 @@ var composeSignals = (signals, timeout) => {
|
|
|
16481
16881
|
timer && clearTimeout(timer);
|
|
16482
16882
|
timer = null;
|
|
16483
16883
|
signals.forEach((signal2) => {
|
|
16484
|
-
|
|
16884
|
+
const unsubscribeSignal = utils_default.getSafeProp(signal2, "unsubscribe");
|
|
16885
|
+
utils_default.isFunction(unsubscribeSignal) ? unsubscribeSignal.call(signal2, onabort) : signal2.removeEventListener("abort", onabort);
|
|
16485
16886
|
});
|
|
16486
16887
|
signals = null;
|
|
16487
16888
|
};
|
|
@@ -16501,7 +16902,7 @@ var composeSignals = (signals, timeout) => {
|
|
|
16501
16902
|
};
|
|
16502
16903
|
var composeSignals_default = composeSignals;
|
|
16503
16904
|
|
|
16504
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16905
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
|
|
16505
16906
|
var streamChunk = function* (chunk, chunkSize) {
|
|
16506
16907
|
let len = chunk.byteLength;
|
|
16507
16908
|
if (!chunkSize || len < chunkSize) {
|
|
@@ -16581,7 +16982,111 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
16581
16982
|
);
|
|
16582
16983
|
};
|
|
16583
16984
|
|
|
16584
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16985
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToBlob.js
|
|
16986
|
+
var CRLF2 = "\r\n";
|
|
16987
|
+
var normalizeLines = (value) => String(value).replace(/\r\n|\r|\n/g, CRLF2);
|
|
16988
|
+
var escapeName = (value) => String(value).replace(
|
|
16989
|
+
/[\r\n"]/g,
|
|
16990
|
+
(char) => char === "\r" ? "%0D" : char === "\n" ? "%0A" : "%22"
|
|
16991
|
+
);
|
|
16992
|
+
var stringBytes = (value, normalize) => {
|
|
16993
|
+
let length = 0;
|
|
16994
|
+
for (let i = 0; i < value.length; i++) {
|
|
16995
|
+
const code = value.charCodeAt(i);
|
|
16996
|
+
if (normalize && (code === 13 || code === 10)) {
|
|
16997
|
+
if (code === 13 && value.charCodeAt(i + 1) === 10) i++;
|
|
16998
|
+
length += 2;
|
|
16999
|
+
} else if (code < 128) {
|
|
17000
|
+
length++;
|
|
17001
|
+
} else if (code < 2048) {
|
|
17002
|
+
length += 2;
|
|
17003
|
+
} else if (code >= 55296 && code <= 56319 && value.charCodeAt(i + 1) >= 56320 && value.charCodeAt(i + 1) <= 57343) {
|
|
17004
|
+
length += 4;
|
|
17005
|
+
i++;
|
|
17006
|
+
} else {
|
|
17007
|
+
length += 3;
|
|
17008
|
+
}
|
|
17009
|
+
}
|
|
17010
|
+
return length;
|
|
17011
|
+
};
|
|
17012
|
+
var FormDataError = class extends TypeError {
|
|
17013
|
+
constructor(message, reason) {
|
|
17014
|
+
super(message);
|
|
17015
|
+
this.name = "FormDataError";
|
|
17016
|
+
this.reason = reason;
|
|
17017
|
+
}
|
|
17018
|
+
};
|
|
17019
|
+
function formDataToBlob(form, Blob2, limit, limitError, boundary) {
|
|
17020
|
+
if (!utils_default.isFunction(Blob2)) {
|
|
17021
|
+
throw new FormDataError("Blob is not supported", "blob");
|
|
17022
|
+
}
|
|
17023
|
+
if (!utils_default.isString(boundary) || !/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(boundary) || / $/.test(boundary)) {
|
|
17024
|
+
throw new FormDataError("Invalid multipart boundary", "boundary");
|
|
17025
|
+
}
|
|
17026
|
+
const footer = "--" + boundary + "--" + CRLF2;
|
|
17027
|
+
let length = footer.length;
|
|
17028
|
+
const parts = [];
|
|
17029
|
+
const checkLength = (extra) => {
|
|
17030
|
+
if (length + extra > limit) throw limitError();
|
|
17031
|
+
};
|
|
17032
|
+
checkLength(0);
|
|
17033
|
+
for (const [name, value] of form) {
|
|
17034
|
+
const isString2 = utils_default.isString(value);
|
|
17035
|
+
const valueLength = isString2 ? stringBytes(value, true) : value.size;
|
|
17036
|
+
if (!Number.isFinite(valueLength) || valueLength < 0) {
|
|
17037
|
+
throw new FormDataError("Unsupported FormData part size", "part");
|
|
17038
|
+
}
|
|
17039
|
+
checkLength(
|
|
17040
|
+
valueLength + stringBytes(name, true) + (!isString2 && value.name ? stringBytes(value.name, false) : 0) + (!isString2 && value.type ? stringBytes(value.type, false) : 0)
|
|
17041
|
+
);
|
|
17042
|
+
let header = "--" + boundary + CRLF2 + 'Content-Disposition: form-data; name="' + escapeName(normalizeLines(name)) + '"';
|
|
17043
|
+
if (!isString2) {
|
|
17044
|
+
header += '; filename="' + escapeName(utils_default.isString(value.name) ? value.name : "blob") + '"' + CRLF2 + "Content-Type: " + String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
|
|
17045
|
+
}
|
|
17046
|
+
header += CRLF2 + CRLF2;
|
|
17047
|
+
const partLength = stringBytes(header, false) + valueLength + CRLF2.length;
|
|
17048
|
+
checkLength(partLength);
|
|
17049
|
+
length += partLength;
|
|
17050
|
+
parts.push({ header, value, isString: isString2 });
|
|
17051
|
+
}
|
|
17052
|
+
const blobParts = [];
|
|
17053
|
+
for (const part of parts) {
|
|
17054
|
+
blobParts.push(part.header, part.isString ? normalizeLines(part.value) : part.value, CRLF2);
|
|
17055
|
+
}
|
|
17056
|
+
blobParts.push(footer);
|
|
17057
|
+
return new Blob2(blobParts, { type: "multipart/form-data; boundary=" + boundary });
|
|
17058
|
+
}
|
|
17059
|
+
|
|
17060
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/createMultipartBody.js
|
|
17061
|
+
function createMultipartBody(form, Blob2, limit, limitError, boundary) {
|
|
17062
|
+
if (!utils_default.isFunction(Blob2)) {
|
|
17063
|
+
throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
|
|
17064
|
+
}
|
|
17065
|
+
if (boundary === void 0) {
|
|
17066
|
+
if (utils_default.isFunction(platform_default.generateString)) {
|
|
17067
|
+
boundary = "axios-" + platform_default.generateString(36, "0123456789abcdef");
|
|
17068
|
+
} else {
|
|
17069
|
+
const crypto2 = utils_default.global.crypto;
|
|
17070
|
+
if (!crypto2 || !utils_default.isFunction(crypto2.getRandomValues)) {
|
|
17071
|
+
throw new AxiosError_default("Random byte generation is not supported", AxiosError_default.ERR_NOT_SUPPORT);
|
|
17072
|
+
}
|
|
17073
|
+
const random = new Uint8Array(18);
|
|
17074
|
+
crypto2.getRandomValues(random);
|
|
17075
|
+
boundary = "axios-" + Array.from(random, (value) => ("0" + value.toString(16)).slice(-2)).join("");
|
|
17076
|
+
}
|
|
17077
|
+
}
|
|
17078
|
+
try {
|
|
17079
|
+
return formDataToBlob(form, Blob2, limit, limitError, boundary);
|
|
17080
|
+
} catch (error) {
|
|
17081
|
+
if (error instanceof FormDataError) {
|
|
17082
|
+
const code = error.reason === "boundary" ? AxiosError_default.ERR_BAD_OPTION_VALUE : AxiosError_default.ERR_BAD_REQUEST;
|
|
17083
|
+
throw new AxiosError_default(error.message, code);
|
|
17084
|
+
}
|
|
17085
|
+
throw error;
|
|
17086
|
+
}
|
|
17087
|
+
}
|
|
17088
|
+
|
|
17089
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
|
|
16585
17090
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
16586
17091
|
var DEFAULT_REQUEST_OPTIONS = {
|
|
16587
17092
|
cache: "default",
|
|
@@ -16633,11 +17138,13 @@ var factory = (env) => {
|
|
|
16633
17138
|
},
|
|
16634
17139
|
{
|
|
16635
17140
|
Request: globalObject.Request,
|
|
16636
|
-
Response: globalObject.Response
|
|
17141
|
+
Response: globalObject.Response,
|
|
17142
|
+
Blob: globalObject.Blob
|
|
16637
17143
|
},
|
|
16638
17144
|
env
|
|
16639
17145
|
);
|
|
16640
|
-
const
|
|
17146
|
+
const envFetch = utils_default.hasOwnProp(env, "fetch") ? env.fetch : void 0;
|
|
17147
|
+
const { Request, Response, Blob: Blob2 } = env;
|
|
16641
17148
|
const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
|
|
16642
17149
|
const isRequestSupported = isFunction2(Request);
|
|
16643
17150
|
const isResponseSupported = isFunction2(Response);
|
|
@@ -16663,6 +17170,13 @@ var factory = (env) => {
|
|
|
16663
17170
|
return duplexAccessed && !hasContentType;
|
|
16664
17171
|
});
|
|
16665
17172
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
17173
|
+
const requestDefaults = Object.assign(/* @__PURE__ */ Object.create(null), DEFAULT_REQUEST_OPTIONS);
|
|
17174
|
+
if (isRequestSupported && !test(() => new Request(platform_default.origin, requestDefaults))) {
|
|
17175
|
+
delete requestDefaults.cache;
|
|
17176
|
+
if (!test(() => new Request(platform_default.origin, requestDefaults))) {
|
|
17177
|
+
requestDefaults.cache = DEFAULT_REQUEST_OPTIONS.cache;
|
|
17178
|
+
}
|
|
17179
|
+
}
|
|
16666
17180
|
const resolvers = {
|
|
16667
17181
|
stream: supportsResponseStream && ((res) => res.body)
|
|
16668
17182
|
};
|
|
@@ -16688,13 +17202,6 @@ var factory = (env) => {
|
|
|
16688
17202
|
if (utils_default.isBlob(body)) {
|
|
16689
17203
|
return body.size;
|
|
16690
17204
|
}
|
|
16691
|
-
if (utils_default.isSpecCompliantForm(body)) {
|
|
16692
|
-
const _request = new Request(platform_default.origin, {
|
|
16693
|
-
method: "POST",
|
|
16694
|
-
body
|
|
16695
|
-
});
|
|
16696
|
-
return (await _request.arrayBuffer()).byteLength;
|
|
16697
|
-
}
|
|
16698
17205
|
if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
|
|
16699
17206
|
return body.byteLength;
|
|
16700
17207
|
}
|
|
@@ -16742,6 +17249,7 @@ var factory = (env) => {
|
|
|
16742
17249
|
});
|
|
16743
17250
|
let requestContentLength;
|
|
16744
17251
|
let pendingBodyError = null;
|
|
17252
|
+
let pendingResponseError = null;
|
|
16745
17253
|
const maxBodyLengthError = () => new AxiosError_default(
|
|
16746
17254
|
"Request body larger than maxBodyLength limit",
|
|
16747
17255
|
AxiosError_default.ERR_BAD_REQUEST,
|
|
@@ -16759,8 +17267,9 @@ var factory = (env) => {
|
|
|
16759
17267
|
password
|
|
16760
17268
|
};
|
|
16761
17269
|
}
|
|
17270
|
+
let parsedURL;
|
|
16762
17271
|
if (maybeWithAuthCredentials(url2)) {
|
|
16763
|
-
|
|
17272
|
+
parsedURL = new URL(url2, platform_default.origin);
|
|
16764
17273
|
if (!auth && (parsedURL.username || parsedURL.password)) {
|
|
16765
17274
|
const urlUsername = decodeURIComponentSafe2(parsedURL.username);
|
|
16766
17275
|
const urlPassword = decodeURIComponentSafe2(parsedURL.password);
|
|
@@ -16782,8 +17291,8 @@ var factory = (env) => {
|
|
|
16782
17291
|
"Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
|
|
16783
17292
|
);
|
|
16784
17293
|
}
|
|
16785
|
-
if (hasMaxContentLength &&
|
|
16786
|
-
const estimated = estimateDataURLDecodedBytes(
|
|
17294
|
+
if (hasMaxContentLength && parsedURL && parsedURL.protocol === "data:") {
|
|
17295
|
+
const estimated = estimateDataURLDecodedBytes(parsedURL.href);
|
|
16787
17296
|
if (estimated > maxContentLength) {
|
|
16788
17297
|
throw new AxiosError_default(
|
|
16789
17298
|
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
@@ -16793,6 +17302,23 @@ var factory = (env) => {
|
|
|
16793
17302
|
);
|
|
16794
17303
|
}
|
|
16795
17304
|
}
|
|
17305
|
+
const formContentType = utils_default.isSpecCompliantForm(data) && AxiosHeaders_default.from(own2("headers")).getContentType();
|
|
17306
|
+
let formBoundary;
|
|
17307
|
+
if (utils_default.isString(formContentType) && /^multipart\/form-data(?:\s*;|$)/i.test(formContentType.trim())) {
|
|
17308
|
+
const parameters = AxiosHeaders_default.parseParameters(formContentType);
|
|
17309
|
+
if (utils_default.hasOwnProp(parameters, "boundary")) formBoundary = parameters.boundary;
|
|
17310
|
+
}
|
|
17311
|
+
if (utils_default.isSpecCompliantForm(data) && method !== "get" && method !== "head" && (hasMaxBodyLength || onUploadProgress && supportsRequestStream || formBoundary !== void 0)) {
|
|
17312
|
+
data = createMultipartBody(
|
|
17313
|
+
data,
|
|
17314
|
+
Blob2,
|
|
17315
|
+
hasMaxBodyLength ? maxBodyLength : Infinity,
|
|
17316
|
+
maxBodyLengthError,
|
|
17317
|
+
formBoundary
|
|
17318
|
+
);
|
|
17319
|
+
headers.setContentType(formBoundary === void 0 ? data.type : formContentType);
|
|
17320
|
+
requestContentLength = data.size;
|
|
17321
|
+
}
|
|
16796
17322
|
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
16797
17323
|
const outboundLength = await getBodyLength(data);
|
|
16798
17324
|
if (typeof outboundLength === "number" && isFinite(outboundLength)) {
|
|
@@ -16873,7 +17399,7 @@ var factory = (env) => {
|
|
|
16873
17399
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
16874
17400
|
});
|
|
16875
17401
|
if (isRequestSupported) {
|
|
16876
|
-
utils_default.forEach(
|
|
17402
|
+
utils_default.forEach(requestDefaults, (value, key) => {
|
|
16877
17403
|
if (resolvedOptions[key] === void 0) {
|
|
16878
17404
|
resolvedOptions[key] = value;
|
|
16879
17405
|
}
|
|
@@ -16921,7 +17447,7 @@ var factory = (env) => {
|
|
|
16921
17447
|
if (hasMaxContentLength) {
|
|
16922
17448
|
bytesRead = loadedBytes;
|
|
16923
17449
|
if (bytesRead > maxContentLength) {
|
|
16924
|
-
throw new AxiosError_default(
|
|
17450
|
+
throw pendingResponseError = new AxiosError_default(
|
|
16925
17451
|
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
16926
17452
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
16927
17453
|
config,
|
|
@@ -16996,6 +17522,9 @@ var factory = (env) => {
|
|
|
16996
17522
|
request && !pendingBodyError.request && (pendingBodyError.request = request);
|
|
16997
17523
|
throw pendingBodyError;
|
|
16998
17524
|
}
|
|
17525
|
+
if (pendingResponseError) {
|
|
17526
|
+
throw pendingResponseError;
|
|
17527
|
+
}
|
|
16999
17528
|
if (err instanceof AxiosError_default) {
|
|
17000
17529
|
request && !err.request && (err.request = request);
|
|
17001
17530
|
throw err;
|
|
@@ -17023,9 +17552,15 @@ var factory = (env) => {
|
|
|
17023
17552
|
};
|
|
17024
17553
|
var seedCache = /* @__PURE__ */ new Map();
|
|
17025
17554
|
var getFetch = (config) => {
|
|
17026
|
-
|
|
17027
|
-
const
|
|
17028
|
-
|
|
17555
|
+
const env = /* @__PURE__ */ Object.create(null);
|
|
17556
|
+
const configuredEnv = config && utils_default.hasOwnProp(config, "env") && config.env;
|
|
17557
|
+
["fetch", "Request", "Response", "Blob"].forEach((key) => {
|
|
17558
|
+
if (configuredEnv && utils_default.hasOwnProp(configuredEnv, key)) {
|
|
17559
|
+
env[key] = configuredEnv[key];
|
|
17560
|
+
}
|
|
17561
|
+
});
|
|
17562
|
+
const { fetch: fetch2, Request, Response, Blob: Blob2 } = env;
|
|
17563
|
+
const seeds = [Request, Response, fetch2, Blob2];
|
|
17029
17564
|
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
17030
17565
|
while (i--) {
|
|
17031
17566
|
seed = seeds[i];
|
|
@@ -17037,7 +17572,7 @@ var getFetch = (config) => {
|
|
|
17037
17572
|
};
|
|
17038
17573
|
var adapter = getFetch();
|
|
17039
17574
|
|
|
17040
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17575
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
|
|
17041
17576
|
var knownAdapters = {
|
|
17042
17577
|
http: http_default,
|
|
17043
17578
|
xhr: xhr_default,
|
|
@@ -17102,7 +17637,7 @@ var adapters_default = {
|
|
|
17102
17637
|
adapters: knownAdapters
|
|
17103
17638
|
};
|
|
17104
17639
|
|
|
17105
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17640
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
|
|
17106
17641
|
function throwIfCancellationRequested(config) {
|
|
17107
17642
|
if (config.cancelToken) {
|
|
17108
17643
|
config.cancelToken.throwIfRequested();
|
|
@@ -17111,6 +17646,9 @@ function throwIfCancellationRequested(config) {
|
|
|
17111
17646
|
throw new CanceledError_default(null, config);
|
|
17112
17647
|
}
|
|
17113
17648
|
}
|
|
17649
|
+
function elapsedSince(start) {
|
|
17650
|
+
return Math.max(0, Date.now() - start);
|
|
17651
|
+
}
|
|
17114
17652
|
function dispatchRequest(_config) {
|
|
17115
17653
|
const config = utils_default.toSafeFlatObject(_config);
|
|
17116
17654
|
throwIfCancellationRequested(config);
|
|
@@ -17120,9 +17658,11 @@ function dispatchRequest(_config) {
|
|
|
17120
17658
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
17121
17659
|
}
|
|
17122
17660
|
const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
|
|
17661
|
+
const start = Date.now();
|
|
17123
17662
|
return adapter2(config).then(
|
|
17124
17663
|
function onAdapterResolution(response) {
|
|
17125
17664
|
throwIfCancellationRequested(config);
|
|
17665
|
+
response.duration = elapsedSince(start);
|
|
17126
17666
|
config.response = response;
|
|
17127
17667
|
try {
|
|
17128
17668
|
response.data = transformData.call(config, config.transformResponse, response);
|
|
@@ -17136,6 +17676,7 @@ function dispatchRequest(_config) {
|
|
|
17136
17676
|
if (!isCancel(reason)) {
|
|
17137
17677
|
throwIfCancellationRequested(config);
|
|
17138
17678
|
if (reason && reason.response) {
|
|
17679
|
+
reason.response.duration = elapsedSince(start);
|
|
17139
17680
|
config.response = reason.response;
|
|
17140
17681
|
try {
|
|
17141
17682
|
reason.response.data = transformData.call(
|
|
@@ -17154,7 +17695,7 @@ function dispatchRequest(_config) {
|
|
|
17154
17695
|
);
|
|
17155
17696
|
}
|
|
17156
17697
|
|
|
17157
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17698
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
|
|
17158
17699
|
var validators = {};
|
|
17159
17700
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
17160
17701
|
validators[type] = function validator(thing) {
|
|
@@ -17221,8 +17762,29 @@ var validator_default = {
|
|
|
17221
17762
|
validators
|
|
17222
17763
|
};
|
|
17223
17764
|
|
|
17224
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17765
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
|
|
17225
17766
|
var validators2 = validator_default.validators;
|
|
17767
|
+
var isHeadersBucket = (value) => {
|
|
17768
|
+
if (value == null || utils_default.isPlainObject(value) || value instanceof AxiosHeaders_default) {
|
|
17769
|
+
return true;
|
|
17770
|
+
}
|
|
17771
|
+
try {
|
|
17772
|
+
return utils_default.isObject(value) && utils_default.getSafeProp(value, Symbol.toStringTag) === "AxiosHeaders" && [
|
|
17773
|
+
"toJSON",
|
|
17774
|
+
"set",
|
|
17775
|
+
"get",
|
|
17776
|
+
"has",
|
|
17777
|
+
"delete",
|
|
17778
|
+
"clear",
|
|
17779
|
+
"normalize",
|
|
17780
|
+
"concat",
|
|
17781
|
+
"toString",
|
|
17782
|
+
Symbol.iterator
|
|
17783
|
+
].every((method) => utils_default.isFunction(utils_default.getSafeProp(value, method)));
|
|
17784
|
+
} catch (e) {
|
|
17785
|
+
return false;
|
|
17786
|
+
}
|
|
17787
|
+
};
|
|
17226
17788
|
var Axios = class {
|
|
17227
17789
|
constructor(instanceConfig) {
|
|
17228
17790
|
this.defaults = instanceConfig || {};
|
|
@@ -17258,9 +17820,13 @@ var Axios = class {
|
|
|
17258
17820
|
} else if (stack) {
|
|
17259
17821
|
const firstNewlineIndex = stack.indexOf("\n");
|
|
17260
17822
|
const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
|
|
17261
|
-
const
|
|
17262
|
-
|
|
17263
|
-
|
|
17823
|
+
const duplicateCheckSuffix = secondNewlineIndex === -1 ? stack : stack.slice(secondNewlineIndex + 1);
|
|
17824
|
+
const currentStack = String(err.stack);
|
|
17825
|
+
const causeIndex = getCauseStackIndex(err, currentStack);
|
|
17826
|
+
const stackHead = causeIndex === -1 ? currentStack : currentStack.slice(0, causeIndex);
|
|
17827
|
+
const causeSection = causeIndex === -1 ? "" : currentStack.slice(causeIndex);
|
|
17828
|
+
if (!stackHead.endsWith(duplicateCheckSuffix)) {
|
|
17829
|
+
err.stack = stackHead + "\n" + stack + causeSection;
|
|
17264
17830
|
}
|
|
17265
17831
|
}
|
|
17266
17832
|
} catch (e) {
|
|
@@ -17287,7 +17853,8 @@ var Axios = class {
|
|
|
17287
17853
|
clarifyTimeoutError: validators2.transitional(validators2.boolean),
|
|
17288
17854
|
legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
|
|
17289
17855
|
advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
|
|
17290
|
-
validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
|
|
17856
|
+
validateStatusUndefinedResolves: validators2.transitional(validators2.boolean),
|
|
17857
|
+
encodeBasicAuthUsername: validators2.transitional(validators2.boolean)
|
|
17291
17858
|
},
|
|
17292
17859
|
false
|
|
17293
17860
|
);
|
|
@@ -17309,7 +17876,7 @@ var Axios = class {
|
|
|
17309
17876
|
}
|
|
17310
17877
|
}
|
|
17311
17878
|
if (config.allowAbsoluteUrls !== void 0) {
|
|
17312
|
-
} else if (this.defaults.allowAbsoluteUrls !== void 0) {
|
|
17879
|
+
} else if (utils_default.hasOwnProp(this.defaults, "allowAbsoluteUrls") && this.defaults.allowAbsoluteUrls !== void 0) {
|
|
17313
17880
|
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
17314
17881
|
} else {
|
|
17315
17882
|
config.allowAbsoluteUrls = true;
|
|
@@ -17323,9 +17890,16 @@ var Axios = class {
|
|
|
17323
17890
|
true
|
|
17324
17891
|
);
|
|
17325
17892
|
config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
|
|
17326
|
-
|
|
17893
|
+
const commonHeaders = utils_default.getSafeProp(headers, "common");
|
|
17894
|
+
const methodHeaders = utils_default.getSafeProp(headers, config.method);
|
|
17895
|
+
const contextHeaders = headers && utils_default.merge(
|
|
17896
|
+
isHeadersBucket(commonHeaders) ? commonHeaders : void 0,
|
|
17897
|
+
isHeadersBucket(methodHeaders) ? methodHeaders : void 0
|
|
17898
|
+
);
|
|
17327
17899
|
headers && utils_default.forEach(methodList_default.concat("common"), (method) => {
|
|
17328
|
-
|
|
17900
|
+
if (isHeadersBucket(utils_default.getSafeProp(headers, method))) {
|
|
17901
|
+
delete headers[method];
|
|
17902
|
+
}
|
|
17329
17903
|
});
|
|
17330
17904
|
config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
|
|
17331
17905
|
const requestInterceptorChain = [];
|
|
@@ -17407,7 +17981,7 @@ var Axios = class {
|
|
|
17407
17981
|
}
|
|
17408
17982
|
};
|
|
17409
17983
|
utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
17410
|
-
Axios.prototype[method] = function(url2, config) {
|
|
17984
|
+
Axios.prototype[method] = async function(url2, config) {
|
|
17411
17985
|
return this.request(
|
|
17412
17986
|
mergeConfig(config || {}, {
|
|
17413
17987
|
method,
|
|
@@ -17419,7 +17993,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
|
|
|
17419
17993
|
});
|
|
17420
17994
|
utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
|
|
17421
17995
|
function generateHTTPMethod(isForm) {
|
|
17422
|
-
return function httpMethod(url2, data, config) {
|
|
17996
|
+
return async function httpMethod(url2, data, config) {
|
|
17423
17997
|
return this.request(
|
|
17424
17998
|
mergeConfig(config || {}, {
|
|
17425
17999
|
method,
|
|
@@ -17439,7 +18013,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
|
|
|
17439
18013
|
});
|
|
17440
18014
|
var Axios_default = Axios;
|
|
17441
18015
|
|
|
17442
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
18016
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
|
|
17443
18017
|
var CancelToken = class _CancelToken {
|
|
17444
18018
|
constructor(executor) {
|
|
17445
18019
|
if (typeof executor !== "function") {
|
|
@@ -17537,19 +18111,19 @@ var CancelToken = class _CancelToken {
|
|
|
17537
18111
|
};
|
|
17538
18112
|
var CancelToken_default = CancelToken;
|
|
17539
18113
|
|
|
17540
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
18114
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
|
|
17541
18115
|
function spread(callback) {
|
|
17542
18116
|
return function wrap(arr) {
|
|
17543
18117
|
return callback.apply(null, arr);
|
|
17544
18118
|
};
|
|
17545
18119
|
}
|
|
17546
18120
|
|
|
17547
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
18121
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
|
|
17548
18122
|
function isAxiosError(payload) {
|
|
17549
18123
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
17550
18124
|
}
|
|
17551
18125
|
|
|
17552
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
18126
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
17553
18127
|
var HttpStatusCode = {
|
|
17554
18128
|
Continue: 100,
|
|
17555
18129
|
SwitchingProtocols: 101,
|
|
@@ -17637,7 +18211,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
17637
18211
|
});
|
|
17638
18212
|
var HttpStatusCode_default = HttpStatusCode;
|
|
17639
18213
|
|
|
17640
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
18214
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
|
|
17641
18215
|
function createInstance(defaultConfig) {
|
|
17642
18216
|
const context = new Axios_default(defaultConfig);
|
|
17643
18217
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -17670,7 +18244,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
17670
18244
|
axios.default = axios;
|
|
17671
18245
|
var axios_default = axios;
|
|
17672
18246
|
|
|
17673
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
18247
|
+
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
|
|
17674
18248
|
var {
|
|
17675
18249
|
Axios: Axios2,
|
|
17676
18250
|
AxiosError: AxiosError2,
|