@mx-space/api-client 1.13.1 → 1.14.0
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/controllers/ack.ts +3 -2
- package/controllers/activity.ts +5 -2
- package/controllers/aggregate.ts +3 -3
- package/controllers/ai.ts +2 -1
- package/controllers/base.ts +2 -1
- package/controllers/category.ts +6 -4
- package/controllers/comment.ts +2 -1
- package/controllers/link.ts +4 -2
- package/controllers/note.ts +2 -1
- package/controllers/page.ts +2 -1
- package/controllers/post.ts +2 -1
- package/controllers/project.ts +4 -2
- package/controllers/recently.ts +2 -1
- package/controllers/say.ts +4 -2
- package/controllers/search.ts +2 -1
- package/controllers/severless.ts +2 -1
- package/controllers/snippet.ts +2 -1
- package/controllers/subscribe.ts +2 -1
- package/controllers/topic.ts +4 -2
- package/controllers/user.ts +2 -1
- package/dist/adaptors/axios.d.cts +1 -1
- package/dist/adaptors/axios.d.ts +1 -1
- package/dist/adaptors/axios.global.js +737 -429
- package/dist/adaptors/fetch.d.cts +1 -1
- package/dist/adaptors/fetch.d.ts +1 -1
- package/dist/adaptors/umi-request.d.cts +1 -1
- package/dist/adaptors/umi-request.d.ts +1 -1
- package/dist/adaptors/umi-request.global.js +74 -123
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +63 -61
- package/dist/index.d.ts +63 -61
- package/dist/index.global.js +3 -1
- package/dist/index.js +3 -1
- package/models/base.ts +1 -0
- package/models/comment.ts +2 -1
- package/package.json +3 -3
- /package/dist/{adapter-4fDtRx9o.d.cts → adapter-B8tKfr1O.d.cts} +0 -0
- /package/dist/{adapter-4fDtRx9o.d.ts → adapter-B8tKfr1O.d.ts} +0 -0
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
10
10
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
11
11
|
}) : x)(function(x) {
|
|
12
|
-
if (typeof require !== "undefined")
|
|
13
|
-
return require.apply(this, arguments);
|
|
12
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
14
13
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
15
14
|
});
|
|
16
15
|
var __commonJS = (cb, mod) => function __require2() {
|
|
@@ -246,8 +245,7 @@
|
|
|
246
245
|
if (!this.pauseStreams) {
|
|
247
246
|
return;
|
|
248
247
|
}
|
|
249
|
-
if (this.pauseStreams && this._currentStream && typeof this._currentStream.pause == "function")
|
|
250
|
-
this._currentStream.pause();
|
|
248
|
+
if (this.pauseStreams && this._currentStream && typeof this._currentStream.pause == "function") this._currentStream.pause();
|
|
251
249
|
this.emit("pause");
|
|
252
250
|
};
|
|
253
251
|
CombinedStream.prototype.resume = function() {
|
|
@@ -256,8 +254,7 @@
|
|
|
256
254
|
this.writable = true;
|
|
257
255
|
this._getNext();
|
|
258
256
|
}
|
|
259
|
-
if (this.pauseStreams && this._currentStream && typeof this._currentStream.resume == "function")
|
|
260
|
-
this._currentStream.resume();
|
|
257
|
+
if (this.pauseStreams && this._currentStream && typeof this._currentStream.resume == "function") this._currentStream.resume();
|
|
261
258
|
this.emit("resume");
|
|
262
259
|
};
|
|
263
260
|
CombinedStream.prototype.end = function() {
|
|
@@ -8874,8 +8871,7 @@
|
|
|
8874
8871
|
}
|
|
8875
8872
|
if (mime.indexOf("charset") === -1) {
|
|
8876
8873
|
var charset2 = exports.charset(mime);
|
|
8877
|
-
if (charset2)
|
|
8878
|
-
mime += "; charset=" + charset2.toLowerCase();
|
|
8874
|
+
if (charset2) mime += "; charset=" + charset2.toLowerCase();
|
|
8879
8875
|
}
|
|
8880
8876
|
return mime;
|
|
8881
8877
|
}
|
|
@@ -9272,8 +9268,7 @@
|
|
|
9272
9268
|
}
|
|
9273
9269
|
var header;
|
|
9274
9270
|
for (var prop in headers) {
|
|
9275
|
-
if (!headers.hasOwnProperty(prop))
|
|
9276
|
-
continue;
|
|
9271
|
+
if (!headers.hasOwnProperty(prop)) continue;
|
|
9277
9272
|
header = headers[prop];
|
|
9278
9273
|
if (header == null) {
|
|
9279
9274
|
continue;
|
|
@@ -9660,9 +9655,9 @@
|
|
|
9660
9655
|
}
|
|
9661
9656
|
});
|
|
9662
9657
|
|
|
9663
|
-
// ../../node_modules/.pnpm/debug@4.3.
|
|
9658
|
+
// ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/common.js
|
|
9664
9659
|
var require_common = __commonJS({
|
|
9665
|
-
"../../node_modules/.pnpm/debug@4.3.
|
|
9660
|
+
"../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/common.js"(exports, module) {
|
|
9666
9661
|
"use strict";
|
|
9667
9662
|
function setup(env) {
|
|
9668
9663
|
createDebug.debug = createDebug;
|
|
@@ -9824,9 +9819,9 @@
|
|
|
9824
9819
|
}
|
|
9825
9820
|
});
|
|
9826
9821
|
|
|
9827
|
-
// ../../node_modules/.pnpm/debug@4.3.
|
|
9822
|
+
// ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/browser.js
|
|
9828
9823
|
var require_browser = __commonJS({
|
|
9829
|
-
"../../node_modules/.pnpm/debug@4.3.
|
|
9824
|
+
"../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/browser.js"(exports, module) {
|
|
9830
9825
|
"use strict";
|
|
9831
9826
|
exports.formatArgs = formatArgs;
|
|
9832
9827
|
exports.save = save;
|
|
@@ -10109,9 +10104,9 @@
|
|
|
10109
10104
|
}
|
|
10110
10105
|
});
|
|
10111
10106
|
|
|
10112
|
-
// ../../node_modules/.pnpm/debug@4.3.
|
|
10107
|
+
// ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/node.js
|
|
10113
10108
|
var require_node = __commonJS({
|
|
10114
|
-
"../../node_modules/.pnpm/debug@4.3.
|
|
10109
|
+
"../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/node.js"(exports, module) {
|
|
10115
10110
|
"use strict";
|
|
10116
10111
|
var tty = __require("tty");
|
|
10117
10112
|
var util2 = __require("util");
|
|
@@ -10252,7 +10247,7 @@
|
|
|
10252
10247
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
10253
10248
|
}
|
|
10254
10249
|
function log(...args) {
|
|
10255
|
-
return process.stderr.write(util2.
|
|
10250
|
+
return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
10256
10251
|
}
|
|
10257
10252
|
function save(namespaces) {
|
|
10258
10253
|
if (namespaces) {
|
|
@@ -10284,9 +10279,9 @@
|
|
|
10284
10279
|
}
|
|
10285
10280
|
});
|
|
10286
10281
|
|
|
10287
|
-
// ../../node_modules/.pnpm/debug@4.3.
|
|
10282
|
+
// ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/index.js
|
|
10288
10283
|
var require_src = __commonJS({
|
|
10289
|
-
"../../node_modules/.pnpm/debug@4.3.
|
|
10284
|
+
"../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/index.js"(exports, module) {
|
|
10290
10285
|
"use strict";
|
|
10291
10286
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
10292
10287
|
module.exports = require_browser();
|
|
@@ -10296,9 +10291,9 @@
|
|
|
10296
10291
|
}
|
|
10297
10292
|
});
|
|
10298
10293
|
|
|
10299
|
-
// ../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.
|
|
10294
|
+
// ../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.5/node_modules/follow-redirects/debug.js
|
|
10300
10295
|
var require_debug = __commonJS({
|
|
10301
|
-
"../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.
|
|
10296
|
+
"../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.5/node_modules/follow-redirects/debug.js"(exports, module) {
|
|
10302
10297
|
"use strict";
|
|
10303
10298
|
var debug;
|
|
10304
10299
|
module.exports = function() {
|
|
@@ -10317,9 +10312,9 @@
|
|
|
10317
10312
|
}
|
|
10318
10313
|
});
|
|
10319
10314
|
|
|
10320
|
-
// ../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.
|
|
10315
|
+
// ../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.5/node_modules/follow-redirects/index.js
|
|
10321
10316
|
var require_follow_redirects = __commonJS({
|
|
10322
|
-
"../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.
|
|
10317
|
+
"../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.5/node_modules/follow-redirects/index.js"(exports, module) {
|
|
10323
10318
|
"use strict";
|
|
10324
10319
|
var url2 = __require("url");
|
|
10325
10320
|
var URL2 = url2.URL;
|
|
@@ -10804,14 +10799,14 @@
|
|
|
10804
10799
|
}
|
|
10805
10800
|
});
|
|
10806
10801
|
|
|
10807
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
10802
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/bind.js
|
|
10808
10803
|
function bind(fn, thisArg) {
|
|
10809
10804
|
return function wrap() {
|
|
10810
10805
|
return fn.apply(thisArg, arguments);
|
|
10811
10806
|
};
|
|
10812
10807
|
}
|
|
10813
10808
|
|
|
10814
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
10809
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js
|
|
10815
10810
|
var { toString } = Object.prototype;
|
|
10816
10811
|
var { getPrototypeOf } = Object;
|
|
10817
10812
|
var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
|
|
@@ -10861,6 +10856,7 @@
|
|
|
10861
10856
|
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
10862
10857
|
};
|
|
10863
10858
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
10859
|
+
var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
10864
10860
|
var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
10865
10861
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
10866
10862
|
if (obj === null || typeof obj === "undefined") {
|
|
@@ -10899,8 +10895,7 @@
|
|
|
10899
10895
|
return null;
|
|
10900
10896
|
}
|
|
10901
10897
|
var _global = (() => {
|
|
10902
|
-
if (typeof globalThis !== "undefined")
|
|
10903
|
-
return globalThis;
|
|
10898
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
10904
10899
|
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
10905
10900
|
})();
|
|
10906
10901
|
var isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
@@ -10954,8 +10949,7 @@
|
|
|
10954
10949
|
let prop;
|
|
10955
10950
|
const merged = {};
|
|
10956
10951
|
destObj = destObj || {};
|
|
10957
|
-
if (sourceObj == null)
|
|
10958
|
-
return destObj;
|
|
10952
|
+
if (sourceObj == null) return destObj;
|
|
10959
10953
|
do {
|
|
10960
10954
|
props = Object.getOwnPropertyNames(sourceObj);
|
|
10961
10955
|
i = props.length;
|
|
@@ -10980,13 +10974,10 @@
|
|
|
10980
10974
|
return lastIndex !== -1 && lastIndex === position;
|
|
10981
10975
|
};
|
|
10982
10976
|
var toArray = (thing) => {
|
|
10983
|
-
if (!thing)
|
|
10984
|
-
|
|
10985
|
-
if (isArray(thing))
|
|
10986
|
-
return thing;
|
|
10977
|
+
if (!thing) return null;
|
|
10978
|
+
if (isArray(thing)) return thing;
|
|
10987
10979
|
let i = thing.length;
|
|
10988
|
-
if (!isNumber(i))
|
|
10989
|
-
return null;
|
|
10980
|
+
if (!isNumber(i)) return null;
|
|
10990
10981
|
const arr = new Array(i);
|
|
10991
10982
|
while (i-- > 0) {
|
|
10992
10983
|
arr[i] = thing[i];
|
|
@@ -11043,8 +11034,7 @@
|
|
|
11043
11034
|
return false;
|
|
11044
11035
|
}
|
|
11045
11036
|
const value = obj[name];
|
|
11046
|
-
if (!isFunction(value))
|
|
11047
|
-
return;
|
|
11037
|
+
if (!isFunction(value)) return;
|
|
11048
11038
|
descriptor.enumerable = false;
|
|
11049
11039
|
if ("writable" in descriptor) {
|
|
11050
11040
|
descriptor.writable = false;
|
|
@@ -11070,8 +11060,7 @@
|
|
|
11070
11060
|
var noop = () => {
|
|
11071
11061
|
};
|
|
11072
11062
|
var toFiniteNumber = (value, defaultValue) => {
|
|
11073
|
-
value = +value;
|
|
11074
|
-
return Number.isFinite(value) ? value : defaultValue;
|
|
11063
|
+
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
11075
11064
|
};
|
|
11076
11065
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
11077
11066
|
var DIGIT = "0123456789";
|
|
@@ -11115,6 +11104,26 @@
|
|
|
11115
11104
|
};
|
|
11116
11105
|
var isAsyncFn = kindOfTest("AsyncFunction");
|
|
11117
11106
|
var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
11107
|
+
var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
11108
|
+
if (setImmediateSupported) {
|
|
11109
|
+
return setImmediate;
|
|
11110
|
+
}
|
|
11111
|
+
return postMessageSupported ? ((token, callbacks) => {
|
|
11112
|
+
_global.addEventListener("message", ({ source, data }) => {
|
|
11113
|
+
if (source === _global && data === token) {
|
|
11114
|
+
callbacks.length && callbacks.shift()();
|
|
11115
|
+
}
|
|
11116
|
+
}, false);
|
|
11117
|
+
return (cb) => {
|
|
11118
|
+
callbacks.push(cb);
|
|
11119
|
+
_global.postMessage(token, "*");
|
|
11120
|
+
};
|
|
11121
|
+
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
11122
|
+
})(
|
|
11123
|
+
typeof setImmediate === "function",
|
|
11124
|
+
isFunction(_global.postMessage)
|
|
11125
|
+
);
|
|
11126
|
+
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
11118
11127
|
var utils_default = {
|
|
11119
11128
|
isArray,
|
|
11120
11129
|
isArrayBuffer,
|
|
@@ -11126,6 +11135,10 @@
|
|
|
11126
11135
|
isBoolean,
|
|
11127
11136
|
isObject,
|
|
11128
11137
|
isPlainObject,
|
|
11138
|
+
isReadableStream,
|
|
11139
|
+
isRequest,
|
|
11140
|
+
isResponse,
|
|
11141
|
+
isHeaders,
|
|
11129
11142
|
isUndefined,
|
|
11130
11143
|
isDate,
|
|
11131
11144
|
isFile,
|
|
@@ -11167,10 +11180,12 @@
|
|
|
11167
11180
|
isSpecCompliantForm,
|
|
11168
11181
|
toJSONObject,
|
|
11169
11182
|
isAsyncFn,
|
|
11170
|
-
isThenable
|
|
11183
|
+
isThenable,
|
|
11184
|
+
setImmediate: _setImmediate,
|
|
11185
|
+
asap
|
|
11171
11186
|
};
|
|
11172
11187
|
|
|
11173
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11188
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosError.js
|
|
11174
11189
|
function AxiosError(message, code, config, request, response) {
|
|
11175
11190
|
Error.call(this);
|
|
11176
11191
|
if (Error.captureStackTrace) {
|
|
@@ -11183,7 +11198,10 @@
|
|
|
11183
11198
|
code && (this.code = code);
|
|
11184
11199
|
config && (this.config = config);
|
|
11185
11200
|
request && (this.request = request);
|
|
11186
|
-
|
|
11201
|
+
if (response) {
|
|
11202
|
+
this.response = response;
|
|
11203
|
+
this.status = response.status ? response.status : null;
|
|
11204
|
+
}
|
|
11187
11205
|
}
|
|
11188
11206
|
utils_default.inherits(AxiosError, Error, {
|
|
11189
11207
|
toJSON: function toJSON() {
|
|
@@ -11202,7 +11220,7 @@
|
|
|
11202
11220
|
// Axios
|
|
11203
11221
|
config: utils_default.toJSONObject(this.config),
|
|
11204
11222
|
code: this.code,
|
|
11205
|
-
status: this.
|
|
11223
|
+
status: this.status
|
|
11206
11224
|
};
|
|
11207
11225
|
}
|
|
11208
11226
|
});
|
|
@@ -11242,11 +11260,11 @@
|
|
|
11242
11260
|
};
|
|
11243
11261
|
var AxiosError_default = AxiosError;
|
|
11244
11262
|
|
|
11245
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11263
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
11246
11264
|
var import_form_data = __toESM(require_form_data(), 1);
|
|
11247
11265
|
var FormData_default = import_form_data.default;
|
|
11248
11266
|
|
|
11249
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11267
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toFormData.js
|
|
11250
11268
|
function isVisitable(thing) {
|
|
11251
11269
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
11252
11270
|
}
|
|
@@ -11254,8 +11272,7 @@
|
|
|
11254
11272
|
return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
11255
11273
|
}
|
|
11256
11274
|
function renderKey(path, key, dots) {
|
|
11257
|
-
if (!path)
|
|
11258
|
-
return key;
|
|
11275
|
+
if (!path) return key;
|
|
11259
11276
|
return path.concat(key).map(function each(token, i) {
|
|
11260
11277
|
token = removeBrackets(token);
|
|
11261
11278
|
return !dots && i ? "[" + token + "]" : token;
|
|
@@ -11289,8 +11306,7 @@
|
|
|
11289
11306
|
throw new TypeError("visitor must be a function");
|
|
11290
11307
|
}
|
|
11291
11308
|
function convertValue(value) {
|
|
11292
|
-
if (value === null)
|
|
11293
|
-
return "";
|
|
11309
|
+
if (value === null) return "";
|
|
11294
11310
|
if (utils_default.isDate(value)) {
|
|
11295
11311
|
return value.toISOString();
|
|
11296
11312
|
}
|
|
@@ -11333,8 +11349,7 @@
|
|
|
11333
11349
|
isVisitable
|
|
11334
11350
|
});
|
|
11335
11351
|
function build(value, path) {
|
|
11336
|
-
if (utils_default.isUndefined(value))
|
|
11337
|
-
return;
|
|
11352
|
+
if (utils_default.isUndefined(value)) return;
|
|
11338
11353
|
if (stack.indexOf(value) !== -1) {
|
|
11339
11354
|
throw Error("Circular reference detected in " + path.join("."));
|
|
11340
11355
|
}
|
|
@@ -11361,7 +11376,7 @@
|
|
|
11361
11376
|
}
|
|
11362
11377
|
var toFormData_default = toFormData;
|
|
11363
11378
|
|
|
11364
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11379
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
11365
11380
|
function encode(str) {
|
|
11366
11381
|
const charMap = {
|
|
11367
11382
|
"!": "%21",
|
|
@@ -11394,7 +11409,7 @@
|
|
|
11394
11409
|
};
|
|
11395
11410
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
11396
11411
|
|
|
11397
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11412
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js
|
|
11398
11413
|
function encode2(val) {
|
|
11399
11414
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
11400
11415
|
}
|
|
@@ -11420,7 +11435,7 @@
|
|
|
11420
11435
|
return url2;
|
|
11421
11436
|
}
|
|
11422
11437
|
|
|
11423
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11438
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/InterceptorManager.js
|
|
11424
11439
|
var InterceptorManager = class {
|
|
11425
11440
|
constructor() {
|
|
11426
11441
|
this.handlers = [];
|
|
@@ -11484,18 +11499,18 @@
|
|
|
11484
11499
|
};
|
|
11485
11500
|
var InterceptorManager_default = InterceptorManager;
|
|
11486
11501
|
|
|
11487
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11502
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/transitional.js
|
|
11488
11503
|
var transitional_default = {
|
|
11489
11504
|
silentJSONParsing: true,
|
|
11490
11505
|
forcedJSONParsing: true,
|
|
11491
11506
|
clarifyTimeoutError: false
|
|
11492
11507
|
};
|
|
11493
11508
|
|
|
11494
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11509
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
11495
11510
|
var import_url = __toESM(__require("url"), 1);
|
|
11496
11511
|
var URLSearchParams_default = import_url.default.URLSearchParams;
|
|
11497
11512
|
|
|
11498
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11513
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/node/index.js
|
|
11499
11514
|
var node_default = {
|
|
11500
11515
|
isNode: true,
|
|
11501
11516
|
classes: {
|
|
@@ -11506,29 +11521,31 @@
|
|
|
11506
11521
|
protocols: ["http", "https", "file", "data"]
|
|
11507
11522
|
};
|
|
11508
11523
|
|
|
11509
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11524
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/common/utils.js
|
|
11510
11525
|
var utils_exports = {};
|
|
11511
11526
|
__export(utils_exports, {
|
|
11512
11527
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
11513
11528
|
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
11514
|
-
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv
|
|
11529
|
+
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
|
|
11530
|
+
navigator: () => _navigator,
|
|
11531
|
+
origin: () => origin
|
|
11515
11532
|
});
|
|
11516
11533
|
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
11517
|
-
var
|
|
11518
|
-
|
|
11519
|
-
})(typeof navigator !== "undefined" && navigator.product);
|
|
11534
|
+
var _navigator = typeof navigator === "object" && navigator || void 0;
|
|
11535
|
+
var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
|
|
11520
11536
|
var hasStandardBrowserWebWorkerEnv = (() => {
|
|
11521
11537
|
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
11522
11538
|
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
11523
11539
|
})();
|
|
11540
|
+
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
11524
11541
|
|
|
11525
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11542
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/index.js
|
|
11526
11543
|
var platform_default = {
|
|
11527
11544
|
...utils_exports,
|
|
11528
11545
|
...node_default
|
|
11529
11546
|
};
|
|
11530
11547
|
|
|
11531
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11548
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
11532
11549
|
function toURLEncodedForm(data, options) {
|
|
11533
11550
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
|
|
11534
11551
|
visitor: function(value, key, path, helpers) {
|
|
@@ -11541,7 +11558,7 @@
|
|
|
11541
11558
|
}, options));
|
|
11542
11559
|
}
|
|
11543
11560
|
|
|
11544
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11561
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
11545
11562
|
function parsePropPath(name) {
|
|
11546
11563
|
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
11547
11564
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
@@ -11562,8 +11579,7 @@
|
|
|
11562
11579
|
function formDataToJSON(formData) {
|
|
11563
11580
|
function buildPath(path, value, target, index) {
|
|
11564
11581
|
let name = path[index++];
|
|
11565
|
-
if (name === "__proto__")
|
|
11566
|
-
return true;
|
|
11582
|
+
if (name === "__proto__") return true;
|
|
11567
11583
|
const isNumericKey = Number.isFinite(+name);
|
|
11568
11584
|
const isLast = index >= path.length;
|
|
11569
11585
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
@@ -11595,7 +11611,7 @@
|
|
|
11595
11611
|
}
|
|
11596
11612
|
var formDataToJSON_default = formDataToJSON;
|
|
11597
11613
|
|
|
11598
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11614
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js
|
|
11599
11615
|
function stringifySafely(rawValue, parser, encoder) {
|
|
11600
11616
|
if (utils_default.isString(rawValue)) {
|
|
11601
11617
|
try {
|
|
@@ -11611,7 +11627,7 @@
|
|
|
11611
11627
|
}
|
|
11612
11628
|
var defaults = {
|
|
11613
11629
|
transitional: transitional_default,
|
|
11614
|
-
adapter: ["xhr", "http"],
|
|
11630
|
+
adapter: ["xhr", "http", "fetch"],
|
|
11615
11631
|
transformRequest: [function transformRequest(data, headers) {
|
|
11616
11632
|
const contentType = headers.getContentType() || "";
|
|
11617
11633
|
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
@@ -11623,7 +11639,7 @@
|
|
|
11623
11639
|
if (isFormData2) {
|
|
11624
11640
|
return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
|
|
11625
11641
|
}
|
|
11626
|
-
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
|
|
11642
|
+
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
|
|
11627
11643
|
return data;
|
|
11628
11644
|
}
|
|
11629
11645
|
if (utils_default.isArrayBufferView(data)) {
|
|
@@ -11657,6 +11673,9 @@
|
|
|
11657
11673
|
const transitional2 = this.transitional || defaults.transitional;
|
|
11658
11674
|
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
11659
11675
|
const JSONRequested = this.responseType === "json";
|
|
11676
|
+
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
11677
|
+
return data;
|
|
11678
|
+
}
|
|
11660
11679
|
if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
11661
11680
|
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
11662
11681
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
@@ -11701,7 +11720,7 @@
|
|
|
11701
11720
|
});
|
|
11702
11721
|
var defaults_default = defaults;
|
|
11703
11722
|
|
|
11704
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11723
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseHeaders.js
|
|
11705
11724
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
11706
11725
|
"age",
|
|
11707
11726
|
"authorization",
|
|
@@ -11746,7 +11765,7 @@
|
|
|
11746
11765
|
return parsed;
|
|
11747
11766
|
};
|
|
11748
11767
|
|
|
11749
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11768
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosHeaders.js
|
|
11750
11769
|
var $internals = Symbol("internals");
|
|
11751
11770
|
function normalizeHeader(header) {
|
|
11752
11771
|
return header && String(header).trim().toLowerCase();
|
|
@@ -11774,8 +11793,7 @@
|
|
|
11774
11793
|
if (isHeaderNameFilter) {
|
|
11775
11794
|
value = header;
|
|
11776
11795
|
}
|
|
11777
|
-
if (!utils_default.isString(value))
|
|
11778
|
-
return;
|
|
11796
|
+
if (!utils_default.isString(value)) return;
|
|
11779
11797
|
if (utils_default.isString(filter2)) {
|
|
11780
11798
|
return value.indexOf(filter2) !== -1;
|
|
11781
11799
|
}
|
|
@@ -11820,6 +11838,10 @@
|
|
|
11820
11838
|
setHeaders(header, valueOrRewrite);
|
|
11821
11839
|
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
11822
11840
|
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
11841
|
+
} else if (utils_default.isHeaders(header)) {
|
|
11842
|
+
for (const [key, value] of header.entries()) {
|
|
11843
|
+
setHeader(value, key, rewrite);
|
|
11844
|
+
}
|
|
11823
11845
|
} else {
|
|
11824
11846
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
11825
11847
|
}
|
|
@@ -11964,7 +11986,7 @@
|
|
|
11964
11986
|
utils_default.freezeMethods(AxiosHeaders);
|
|
11965
11987
|
var AxiosHeaders_default = AxiosHeaders;
|
|
11966
11988
|
|
|
11967
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11989
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/transformData.js
|
|
11968
11990
|
function transformData(fns, response) {
|
|
11969
11991
|
const config = this || defaults_default;
|
|
11970
11992
|
const context = response || config;
|
|
@@ -11977,12 +11999,12 @@
|
|
|
11977
11999
|
return data;
|
|
11978
12000
|
}
|
|
11979
12001
|
|
|
11980
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12002
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/isCancel.js
|
|
11981
12003
|
function isCancel(value) {
|
|
11982
12004
|
return !!(value && value.__CANCEL__);
|
|
11983
12005
|
}
|
|
11984
12006
|
|
|
11985
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12007
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CanceledError.js
|
|
11986
12008
|
function CanceledError(message, config, request) {
|
|
11987
12009
|
AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
|
|
11988
12010
|
this.name = "CanceledError";
|
|
@@ -11992,7 +12014,7 @@
|
|
|
11992
12014
|
});
|
|
11993
12015
|
var CanceledError_default = CanceledError;
|
|
11994
12016
|
|
|
11995
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12017
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/settle.js
|
|
11996
12018
|
function settle(resolve, reject, response) {
|
|
11997
12019
|
const validateStatus2 = response.config.validateStatus;
|
|
11998
12020
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -12008,17 +12030,17 @@
|
|
|
12008
12030
|
}
|
|
12009
12031
|
}
|
|
12010
12032
|
|
|
12011
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12033
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
12012
12034
|
function isAbsoluteURL(url2) {
|
|
12013
12035
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
12014
12036
|
}
|
|
12015
12037
|
|
|
12016
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12038
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/combineURLs.js
|
|
12017
12039
|
function combineURLs(baseURL, relativeURL) {
|
|
12018
12040
|
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
12019
12041
|
}
|
|
12020
12042
|
|
|
12021
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12043
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/buildFullPath.js
|
|
12022
12044
|
function buildFullPath(baseURL, requestedURL) {
|
|
12023
12045
|
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
12024
12046
|
return combineURLs(baseURL, requestedURL);
|
|
@@ -12026,7 +12048,7 @@
|
|
|
12026
12048
|
return requestedURL;
|
|
12027
12049
|
}
|
|
12028
12050
|
|
|
12029
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12051
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/http.js
|
|
12030
12052
|
var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
|
|
12031
12053
|
var import_http = __toESM(__require("http"), 1);
|
|
12032
12054
|
var import_https = __toESM(__require("https"), 1);
|
|
@@ -12034,16 +12056,16 @@
|
|
|
12034
12056
|
var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
12035
12057
|
var import_zlib = __toESM(__require("zlib"), 1);
|
|
12036
12058
|
|
|
12037
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12038
|
-
var VERSION = "1.
|
|
12059
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/env/data.js
|
|
12060
|
+
var VERSION = "1.7.7";
|
|
12039
12061
|
|
|
12040
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12062
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseProtocol.js
|
|
12041
12063
|
function parseProtocol(url2) {
|
|
12042
12064
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
12043
12065
|
return match && match[1] || "";
|
|
12044
12066
|
}
|
|
12045
12067
|
|
|
12046
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12068
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/fromDataURI.js
|
|
12047
12069
|
var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
|
|
12048
12070
|
function fromDataURI(uri, asBlob, options) {
|
|
12049
12071
|
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
@@ -12072,75 +12094,11 @@
|
|
|
12072
12094
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
12073
12095
|
}
|
|
12074
12096
|
|
|
12075
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12097
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/http.js
|
|
12076
12098
|
var import_stream4 = __toESM(__require("stream"), 1);
|
|
12077
12099
|
|
|
12078
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12100
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
12079
12101
|
var import_stream = __toESM(__require("stream"), 1);
|
|
12080
|
-
|
|
12081
|
-
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/throttle.js
|
|
12082
|
-
function throttle(fn, freq) {
|
|
12083
|
-
let timestamp = 0;
|
|
12084
|
-
const threshold = 1e3 / freq;
|
|
12085
|
-
let timer = null;
|
|
12086
|
-
return function throttled(force, args) {
|
|
12087
|
-
const now = Date.now();
|
|
12088
|
-
if (force || now - timestamp > threshold) {
|
|
12089
|
-
if (timer) {
|
|
12090
|
-
clearTimeout(timer);
|
|
12091
|
-
timer = null;
|
|
12092
|
-
}
|
|
12093
|
-
timestamp = now;
|
|
12094
|
-
return fn.apply(null, args);
|
|
12095
|
-
}
|
|
12096
|
-
if (!timer) {
|
|
12097
|
-
timer = setTimeout(() => {
|
|
12098
|
-
timer = null;
|
|
12099
|
-
timestamp = Date.now();
|
|
12100
|
-
return fn.apply(null, args);
|
|
12101
|
-
}, threshold - (now - timestamp));
|
|
12102
|
-
}
|
|
12103
|
-
};
|
|
12104
|
-
}
|
|
12105
|
-
var throttle_default = throttle;
|
|
12106
|
-
|
|
12107
|
-
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/speedometer.js
|
|
12108
|
-
function speedometer(samplesCount, min) {
|
|
12109
|
-
samplesCount = samplesCount || 10;
|
|
12110
|
-
const bytes = new Array(samplesCount);
|
|
12111
|
-
const timestamps = new Array(samplesCount);
|
|
12112
|
-
let head = 0;
|
|
12113
|
-
let tail = 0;
|
|
12114
|
-
let firstSampleTS;
|
|
12115
|
-
min = min !== void 0 ? min : 1e3;
|
|
12116
|
-
return function push(chunkLength) {
|
|
12117
|
-
const now = Date.now();
|
|
12118
|
-
const startedAt = timestamps[tail];
|
|
12119
|
-
if (!firstSampleTS) {
|
|
12120
|
-
firstSampleTS = now;
|
|
12121
|
-
}
|
|
12122
|
-
bytes[head] = chunkLength;
|
|
12123
|
-
timestamps[head] = now;
|
|
12124
|
-
let i = tail;
|
|
12125
|
-
let bytesCount = 0;
|
|
12126
|
-
while (i !== head) {
|
|
12127
|
-
bytesCount += bytes[i++];
|
|
12128
|
-
i = i % samplesCount;
|
|
12129
|
-
}
|
|
12130
|
-
head = (head + 1) % samplesCount;
|
|
12131
|
-
if (head === tail) {
|
|
12132
|
-
tail = (tail + 1) % samplesCount;
|
|
12133
|
-
}
|
|
12134
|
-
if (now - firstSampleTS < min) {
|
|
12135
|
-
return;
|
|
12136
|
-
}
|
|
12137
|
-
const passed = startedAt && now - startedAt;
|
|
12138
|
-
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
12139
|
-
};
|
|
12140
|
-
}
|
|
12141
|
-
var speedometer_default = speedometer;
|
|
12142
|
-
|
|
12143
|
-
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
12144
12102
|
var kInternals = Symbol("internals");
|
|
12145
12103
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
12146
12104
|
constructor(options) {
|
|
@@ -12157,11 +12115,8 @@
|
|
|
12157
12115
|
super({
|
|
12158
12116
|
readableHighWaterMark: options.chunkSize
|
|
12159
12117
|
});
|
|
12160
|
-
const self2 = this;
|
|
12161
12118
|
const internals = this[kInternals] = {
|
|
12162
|
-
length: options.length,
|
|
12163
12119
|
timeWindow: options.timeWindow,
|
|
12164
|
-
ticksRate: options.ticksRate,
|
|
12165
12120
|
chunkSize: options.chunkSize,
|
|
12166
12121
|
maxRate: options.maxRate,
|
|
12167
12122
|
minChunkSize: options.minChunkSize,
|
|
@@ -12172,7 +12127,6 @@
|
|
|
12172
12127
|
bytes: 0,
|
|
12173
12128
|
onReadCallback: null
|
|
12174
12129
|
};
|
|
12175
|
-
const _speedometer = speedometer_default(internals.ticksRate * options.samplesCount, internals.timeWindow);
|
|
12176
12130
|
this.on("newListener", (event) => {
|
|
12177
12131
|
if (event === "progress") {
|
|
12178
12132
|
if (!internals.isCaptured) {
|
|
@@ -12180,31 +12134,6 @@
|
|
|
12180
12134
|
}
|
|
12181
12135
|
}
|
|
12182
12136
|
});
|
|
12183
|
-
let bytesNotified = 0;
|
|
12184
|
-
internals.updateProgress = throttle_default(function throttledHandler() {
|
|
12185
|
-
const totalBytes = internals.length;
|
|
12186
|
-
const bytesTransferred = internals.bytesSeen;
|
|
12187
|
-
const progressBytes = bytesTransferred - bytesNotified;
|
|
12188
|
-
if (!progressBytes || self2.destroyed)
|
|
12189
|
-
return;
|
|
12190
|
-
const rate = _speedometer(progressBytes);
|
|
12191
|
-
bytesNotified = bytesTransferred;
|
|
12192
|
-
process.nextTick(() => {
|
|
12193
|
-
self2.emit("progress", {
|
|
12194
|
-
"loaded": bytesTransferred,
|
|
12195
|
-
"total": totalBytes,
|
|
12196
|
-
"progress": totalBytes ? bytesTransferred / totalBytes : void 0,
|
|
12197
|
-
"bytes": progressBytes,
|
|
12198
|
-
"rate": rate ? rate : void 0,
|
|
12199
|
-
"estimated": rate && totalBytes && bytesTransferred <= totalBytes ? (totalBytes - bytesTransferred) / rate : void 0
|
|
12200
|
-
});
|
|
12201
|
-
});
|
|
12202
|
-
}, internals.ticksRate);
|
|
12203
|
-
const onFinish = () => {
|
|
12204
|
-
internals.updateProgress(true);
|
|
12205
|
-
};
|
|
12206
|
-
this.once("end", onFinish);
|
|
12207
|
-
this.once("error", onFinish);
|
|
12208
12137
|
}
|
|
12209
12138
|
_read(size) {
|
|
12210
12139
|
const internals = this[kInternals];
|
|
@@ -12214,7 +12143,6 @@
|
|
|
12214
12143
|
return super._read(size);
|
|
12215
12144
|
}
|
|
12216
12145
|
_transform(chunk, encoding, callback) {
|
|
12217
|
-
const self2 = this;
|
|
12218
12146
|
const internals = this[kInternals];
|
|
12219
12147
|
const maxRate = internals.maxRate;
|
|
12220
12148
|
const readableHighWaterMark = this.readableHighWaterMark;
|
|
@@ -12222,14 +12150,12 @@
|
|
|
12222
12150
|
const divider = 1e3 / timeWindow;
|
|
12223
12151
|
const bytesThreshold = maxRate / divider;
|
|
12224
12152
|
const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
|
|
12225
|
-
|
|
12153
|
+
const pushChunk = (_chunk, _callback) => {
|
|
12226
12154
|
const bytes = Buffer.byteLength(_chunk);
|
|
12227
12155
|
internals.bytesSeen += bytes;
|
|
12228
12156
|
internals.bytes += bytes;
|
|
12229
|
-
|
|
12230
|
-
|
|
12231
|
-
}
|
|
12232
|
-
if (self2.push(_chunk)) {
|
|
12157
|
+
internals.isCaptured && this.emit("progress", internals.bytesSeen);
|
|
12158
|
+
if (this.push(_chunk)) {
|
|
12233
12159
|
process.nextTick(_callback);
|
|
12234
12160
|
} else {
|
|
12235
12161
|
internals.onReadCallback = () => {
|
|
@@ -12237,7 +12163,7 @@
|
|
|
12237
12163
|
process.nextTick(_callback);
|
|
12238
12164
|
};
|
|
12239
12165
|
}
|
|
12240
|
-
}
|
|
12166
|
+
};
|
|
12241
12167
|
const transformChunk = (_chunk, _callback) => {
|
|
12242
12168
|
const chunkSize = Buffer.byteLength(_chunk);
|
|
12243
12169
|
let chunkRemainder = null;
|
|
@@ -12283,21 +12209,17 @@
|
|
|
12283
12209
|
}
|
|
12284
12210
|
});
|
|
12285
12211
|
}
|
|
12286
|
-
setLength(length) {
|
|
12287
|
-
this[kInternals].length = +length;
|
|
12288
|
-
return this;
|
|
12289
|
-
}
|
|
12290
12212
|
};
|
|
12291
12213
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
12292
12214
|
|
|
12293
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12215
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/http.js
|
|
12294
12216
|
var import_events = __require("events");
|
|
12295
12217
|
|
|
12296
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12218
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToStream.js
|
|
12297
12219
|
var import_util = __require("util");
|
|
12298
12220
|
var import_stream2 = __require("stream");
|
|
12299
12221
|
|
|
12300
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12222
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/readBlob.js
|
|
12301
12223
|
var { asyncIterator } = Symbol;
|
|
12302
12224
|
var readBlob = async function* (blob) {
|
|
12303
12225
|
if (blob.stream) {
|
|
@@ -12312,7 +12234,7 @@
|
|
|
12312
12234
|
};
|
|
12313
12235
|
var readBlob_default = readBlob;
|
|
12314
12236
|
|
|
12315
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12237
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToStream.js
|
|
12316
12238
|
var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
12317
12239
|
var textEncoder = new import_util.TextEncoder();
|
|
12318
12240
|
var CRLF = "\r\n";
|
|
@@ -12391,7 +12313,7 @@
|
|
|
12391
12313
|
};
|
|
12392
12314
|
var formDataToStream_default = formDataToStream;
|
|
12393
12315
|
|
|
12394
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12316
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
12395
12317
|
var import_stream3 = __toESM(__require("stream"), 1);
|
|
12396
12318
|
var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
12397
12319
|
__transform(chunk, encoding, callback) {
|
|
@@ -12413,7 +12335,7 @@
|
|
|
12413
12335
|
};
|
|
12414
12336
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
12415
12337
|
|
|
12416
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12338
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/callbackify.js
|
|
12417
12339
|
var callbackify = (fn, reducer) => {
|
|
12418
12340
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
12419
12341
|
const cb = args.pop();
|
|
@@ -12428,7 +12350,113 @@
|
|
|
12428
12350
|
};
|
|
12429
12351
|
var callbackify_default = callbackify;
|
|
12430
12352
|
|
|
12431
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12353
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/speedometer.js
|
|
12354
|
+
function speedometer(samplesCount, min) {
|
|
12355
|
+
samplesCount = samplesCount || 10;
|
|
12356
|
+
const bytes = new Array(samplesCount);
|
|
12357
|
+
const timestamps = new Array(samplesCount);
|
|
12358
|
+
let head = 0;
|
|
12359
|
+
let tail = 0;
|
|
12360
|
+
let firstSampleTS;
|
|
12361
|
+
min = min !== void 0 ? min : 1e3;
|
|
12362
|
+
return function push(chunkLength) {
|
|
12363
|
+
const now = Date.now();
|
|
12364
|
+
const startedAt = timestamps[tail];
|
|
12365
|
+
if (!firstSampleTS) {
|
|
12366
|
+
firstSampleTS = now;
|
|
12367
|
+
}
|
|
12368
|
+
bytes[head] = chunkLength;
|
|
12369
|
+
timestamps[head] = now;
|
|
12370
|
+
let i = tail;
|
|
12371
|
+
let bytesCount = 0;
|
|
12372
|
+
while (i !== head) {
|
|
12373
|
+
bytesCount += bytes[i++];
|
|
12374
|
+
i = i % samplesCount;
|
|
12375
|
+
}
|
|
12376
|
+
head = (head + 1) % samplesCount;
|
|
12377
|
+
if (head === tail) {
|
|
12378
|
+
tail = (tail + 1) % samplesCount;
|
|
12379
|
+
}
|
|
12380
|
+
if (now - firstSampleTS < min) {
|
|
12381
|
+
return;
|
|
12382
|
+
}
|
|
12383
|
+
const passed = startedAt && now - startedAt;
|
|
12384
|
+
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
12385
|
+
};
|
|
12386
|
+
}
|
|
12387
|
+
var speedometer_default = speedometer;
|
|
12388
|
+
|
|
12389
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/throttle.js
|
|
12390
|
+
function throttle(fn, freq) {
|
|
12391
|
+
let timestamp = 0;
|
|
12392
|
+
let threshold = 1e3 / freq;
|
|
12393
|
+
let lastArgs;
|
|
12394
|
+
let timer;
|
|
12395
|
+
const invoke = (args, now = Date.now()) => {
|
|
12396
|
+
timestamp = now;
|
|
12397
|
+
lastArgs = null;
|
|
12398
|
+
if (timer) {
|
|
12399
|
+
clearTimeout(timer);
|
|
12400
|
+
timer = null;
|
|
12401
|
+
}
|
|
12402
|
+
fn.apply(null, args);
|
|
12403
|
+
};
|
|
12404
|
+
const throttled = (...args) => {
|
|
12405
|
+
const now = Date.now();
|
|
12406
|
+
const passed = now - timestamp;
|
|
12407
|
+
if (passed >= threshold) {
|
|
12408
|
+
invoke(args, now);
|
|
12409
|
+
} else {
|
|
12410
|
+
lastArgs = args;
|
|
12411
|
+
if (!timer) {
|
|
12412
|
+
timer = setTimeout(() => {
|
|
12413
|
+
timer = null;
|
|
12414
|
+
invoke(lastArgs);
|
|
12415
|
+
}, threshold - passed);
|
|
12416
|
+
}
|
|
12417
|
+
}
|
|
12418
|
+
};
|
|
12419
|
+
const flush = () => lastArgs && invoke(lastArgs);
|
|
12420
|
+
return [throttled, flush];
|
|
12421
|
+
}
|
|
12422
|
+
var throttle_default = throttle;
|
|
12423
|
+
|
|
12424
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
12425
|
+
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
12426
|
+
let bytesNotified = 0;
|
|
12427
|
+
const _speedometer = speedometer_default(50, 250);
|
|
12428
|
+
return throttle_default((e) => {
|
|
12429
|
+
const loaded = e.loaded;
|
|
12430
|
+
const total = e.lengthComputable ? e.total : void 0;
|
|
12431
|
+
const progressBytes = loaded - bytesNotified;
|
|
12432
|
+
const rate = _speedometer(progressBytes);
|
|
12433
|
+
const inRange = loaded <= total;
|
|
12434
|
+
bytesNotified = loaded;
|
|
12435
|
+
const data = {
|
|
12436
|
+
loaded,
|
|
12437
|
+
total,
|
|
12438
|
+
progress: total ? loaded / total : void 0,
|
|
12439
|
+
bytes: progressBytes,
|
|
12440
|
+
rate: rate ? rate : void 0,
|
|
12441
|
+
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
12442
|
+
event: e,
|
|
12443
|
+
lengthComputable: total != null,
|
|
12444
|
+
[isDownloadStream ? "download" : "upload"]: true
|
|
12445
|
+
};
|
|
12446
|
+
listener(data);
|
|
12447
|
+
}, freq);
|
|
12448
|
+
};
|
|
12449
|
+
var progressEventDecorator = (total, throttled) => {
|
|
12450
|
+
const lengthComputable = total != null;
|
|
12451
|
+
return [(loaded) => throttled[0]({
|
|
12452
|
+
lengthComputable,
|
|
12453
|
+
total,
|
|
12454
|
+
loaded
|
|
12455
|
+
}), throttled[1]];
|
|
12456
|
+
};
|
|
12457
|
+
var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
12458
|
+
|
|
12459
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/http.js
|
|
12432
12460
|
var zlibOptions = {
|
|
12433
12461
|
flush: import_zlib.default.constants.Z_SYNC_FLUSH,
|
|
12434
12462
|
finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
|
|
@@ -12443,6 +12471,10 @@
|
|
|
12443
12471
|
var supportedProtocols = platform_default.protocols.map((protocol) => {
|
|
12444
12472
|
return protocol + ":";
|
|
12445
12473
|
});
|
|
12474
|
+
var flushOnFinish = (stream4, [throttled, flush]) => {
|
|
12475
|
+
stream4.on("end", flush).on("error", flush);
|
|
12476
|
+
return throttled;
|
|
12477
|
+
};
|
|
12446
12478
|
function dispatchBeforeRedirect(options, responseDetails) {
|
|
12447
12479
|
if (options.beforeRedirects.proxy) {
|
|
12448
12480
|
options.beforeRedirects.proxy(options);
|
|
@@ -12490,8 +12522,7 @@
|
|
|
12490
12522
|
let onDone;
|
|
12491
12523
|
let isDone;
|
|
12492
12524
|
const done = (value, isRejected) => {
|
|
12493
|
-
if (isDone)
|
|
12494
|
-
return;
|
|
12525
|
+
if (isDone) return;
|
|
12495
12526
|
isDone = true;
|
|
12496
12527
|
onDone && onDone(value, isRejected);
|
|
12497
12528
|
};
|
|
@@ -12564,7 +12595,7 @@
|
|
|
12564
12595
|
}
|
|
12565
12596
|
}
|
|
12566
12597
|
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
12567
|
-
const parsed = new URL(fullPath,
|
|
12598
|
+
const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
|
|
12568
12599
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
12569
12600
|
if (protocol === "data:") {
|
|
12570
12601
|
let convertedData;
|
|
@@ -12608,8 +12639,7 @@
|
|
|
12608
12639
|
}
|
|
12609
12640
|
const headers = AxiosHeaders_default.from(config.headers).normalize();
|
|
12610
12641
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
12611
|
-
const onDownloadProgress = config
|
|
12612
|
-
const onUploadProgress = config.onUploadProgress;
|
|
12642
|
+
const { onUploadProgress, onDownloadProgress } = config;
|
|
12613
12643
|
const maxRate = config.maxRate;
|
|
12614
12644
|
let maxUploadRate = void 0;
|
|
12615
12645
|
let maxDownloadRate = void 0;
|
|
@@ -12668,14 +12698,15 @@
|
|
|
12668
12698
|
data = import_stream4.default.Readable.from(data, { objectMode: false });
|
|
12669
12699
|
}
|
|
12670
12700
|
data = import_stream4.default.pipeline([data, new AxiosTransformStream_default({
|
|
12671
|
-
length: contentLength,
|
|
12672
12701
|
maxRate: utils_default.toFiniteNumber(maxUploadRate)
|
|
12673
12702
|
})], utils_default.noop);
|
|
12674
|
-
onUploadProgress && data.on("progress", (
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12703
|
+
onUploadProgress && data.on("progress", flushOnFinish(
|
|
12704
|
+
data,
|
|
12705
|
+
progressEventDecorator(
|
|
12706
|
+
contentLength,
|
|
12707
|
+
progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
|
|
12708
|
+
)
|
|
12709
|
+
));
|
|
12679
12710
|
}
|
|
12680
12711
|
let auth = void 0;
|
|
12681
12712
|
if (config.auth) {
|
|
@@ -12723,7 +12754,7 @@
|
|
|
12723
12754
|
if (config.socketPath) {
|
|
12724
12755
|
options.socketPath = config.socketPath;
|
|
12725
12756
|
} else {
|
|
12726
|
-
options.hostname = parsed.hostname;
|
|
12757
|
+
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
12727
12758
|
options.port = parsed.port;
|
|
12728
12759
|
setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
|
|
12729
12760
|
}
|
|
@@ -12752,20 +12783,20 @@
|
|
|
12752
12783
|
options.insecureHTTPParser = config.insecureHTTPParser;
|
|
12753
12784
|
}
|
|
12754
12785
|
req = transport.request(options, function handleResponse(res) {
|
|
12755
|
-
if (req.destroyed)
|
|
12756
|
-
return;
|
|
12786
|
+
if (req.destroyed) return;
|
|
12757
12787
|
const streams = [res];
|
|
12758
12788
|
const responseLength = +res.headers["content-length"];
|
|
12759
|
-
if (onDownloadProgress) {
|
|
12789
|
+
if (onDownloadProgress || maxDownloadRate) {
|
|
12760
12790
|
const transformStream = new AxiosTransformStream_default({
|
|
12761
|
-
length: utils_default.toFiniteNumber(responseLength),
|
|
12762
12791
|
maxRate: utils_default.toFiniteNumber(maxDownloadRate)
|
|
12763
12792
|
});
|
|
12764
|
-
onDownloadProgress && transformStream.on("progress", (
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
|
|
12793
|
+
onDownloadProgress && transformStream.on("progress", flushOnFinish(
|
|
12794
|
+
transformStream,
|
|
12795
|
+
progressEventDecorator(
|
|
12796
|
+
responseLength,
|
|
12797
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
|
|
12798
|
+
)
|
|
12799
|
+
));
|
|
12769
12800
|
streams.push(transformStream);
|
|
12770
12801
|
}
|
|
12771
12802
|
let responseStream = res;
|
|
@@ -12840,8 +12871,7 @@
|
|
|
12840
12871
|
reject(err);
|
|
12841
12872
|
});
|
|
12842
12873
|
responseStream.on("error", function handleStreamError(err) {
|
|
12843
|
-
if (req.destroyed)
|
|
12844
|
-
return;
|
|
12874
|
+
if (req.destroyed) return;
|
|
12845
12875
|
reject(AxiosError_default.from(err, null, config, lastRequest));
|
|
12846
12876
|
});
|
|
12847
12877
|
responseStream.on("end", function handleStreamEnd() {
|
|
@@ -12889,8 +12919,7 @@
|
|
|
12889
12919
|
return;
|
|
12890
12920
|
}
|
|
12891
12921
|
req.setTimeout(timeout, function handleRequestTimeout() {
|
|
12892
|
-
if (isDone)
|
|
12893
|
-
return;
|
|
12922
|
+
if (isDone) return;
|
|
12894
12923
|
let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
|
|
12895
12924
|
const transitional2 = config.transitional || transitional_default;
|
|
12896
12925
|
if (config.timeoutErrorMessage) {
|
|
@@ -12927,45 +12956,12 @@
|
|
|
12927
12956
|
});
|
|
12928
12957
|
};
|
|
12929
12958
|
|
|
12930
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12931
|
-
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
12932
|
-
// Standard browser envs support document.cookie
|
|
12933
|
-
{
|
|
12934
|
-
write(name, value, expires, path, domain, secure) {
|
|
12935
|
-
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
12936
|
-
utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
|
|
12937
|
-
utils_default.isString(path) && cookie.push("path=" + path);
|
|
12938
|
-
utils_default.isString(domain) && cookie.push("domain=" + domain);
|
|
12939
|
-
secure === true && cookie.push("secure");
|
|
12940
|
-
document.cookie = cookie.join("; ");
|
|
12941
|
-
},
|
|
12942
|
-
read(name) {
|
|
12943
|
-
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
12944
|
-
return match ? decodeURIComponent(match[3]) : null;
|
|
12945
|
-
},
|
|
12946
|
-
remove(name) {
|
|
12947
|
-
this.write(name, "", Date.now() - 864e5);
|
|
12948
|
-
}
|
|
12949
|
-
}
|
|
12950
|
-
) : (
|
|
12951
|
-
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
12952
|
-
{
|
|
12953
|
-
write() {
|
|
12954
|
-
},
|
|
12955
|
-
read() {
|
|
12956
|
-
return null;
|
|
12957
|
-
},
|
|
12958
|
-
remove() {
|
|
12959
|
-
}
|
|
12960
|
-
}
|
|
12961
|
-
);
|
|
12962
|
-
|
|
12963
|
-
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
12959
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
12964
12960
|
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
|
|
12965
12961
|
// Standard browser envs have full support of the APIs needed to test
|
|
12966
12962
|
// whether the request URL is of the same origin as current location.
|
|
12967
12963
|
function standardBrowserEnv() {
|
|
12968
|
-
const msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
12964
|
+
const msie = platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent);
|
|
12969
12965
|
const urlParsingNode = document.createElement("a");
|
|
12970
12966
|
let originURL;
|
|
12971
12967
|
function resolveURL(url2) {
|
|
@@ -13001,63 +12997,172 @@
|
|
|
13001
12997
|
}()
|
|
13002
12998
|
);
|
|
13003
12999
|
|
|
13004
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13005
|
-
|
|
13006
|
-
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
|
|
13016
|
-
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13023
|
-
|
|
13024
|
-
|
|
13025
|
-
|
|
13000
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/cookies.js
|
|
13001
|
+
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
13002
|
+
// Standard browser envs support document.cookie
|
|
13003
|
+
{
|
|
13004
|
+
write(name, value, expires, path, domain, secure) {
|
|
13005
|
+
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
13006
|
+
utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
|
|
13007
|
+
utils_default.isString(path) && cookie.push("path=" + path);
|
|
13008
|
+
utils_default.isString(domain) && cookie.push("domain=" + domain);
|
|
13009
|
+
secure === true && cookie.push("secure");
|
|
13010
|
+
document.cookie = cookie.join("; ");
|
|
13011
|
+
},
|
|
13012
|
+
read(name) {
|
|
13013
|
+
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
13014
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
13015
|
+
},
|
|
13016
|
+
remove(name) {
|
|
13017
|
+
this.write(name, "", Date.now() - 864e5);
|
|
13018
|
+
}
|
|
13019
|
+
}
|
|
13020
|
+
) : (
|
|
13021
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
13022
|
+
{
|
|
13023
|
+
write() {
|
|
13024
|
+
},
|
|
13025
|
+
read() {
|
|
13026
|
+
return null;
|
|
13027
|
+
},
|
|
13028
|
+
remove() {
|
|
13029
|
+
}
|
|
13030
|
+
}
|
|
13031
|
+
);
|
|
13032
|
+
|
|
13033
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/mergeConfig.js
|
|
13034
|
+
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
13035
|
+
function mergeConfig(config1, config2) {
|
|
13036
|
+
config2 = config2 || {};
|
|
13037
|
+
const config = {};
|
|
13038
|
+
function getMergedValue(target, source, caseless) {
|
|
13039
|
+
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
|
|
13040
|
+
return utils_default.merge.call({ caseless }, target, source);
|
|
13041
|
+
} else if (utils_default.isPlainObject(source)) {
|
|
13042
|
+
return utils_default.merge({}, source);
|
|
13043
|
+
} else if (utils_default.isArray(source)) {
|
|
13044
|
+
return source.slice();
|
|
13045
|
+
}
|
|
13046
|
+
return source;
|
|
13047
|
+
}
|
|
13048
|
+
function mergeDeepProperties(a, b, caseless) {
|
|
13049
|
+
if (!utils_default.isUndefined(b)) {
|
|
13050
|
+
return getMergedValue(a, b, caseless);
|
|
13051
|
+
} else if (!utils_default.isUndefined(a)) {
|
|
13052
|
+
return getMergedValue(void 0, a, caseless);
|
|
13053
|
+
}
|
|
13054
|
+
}
|
|
13055
|
+
function valueFromConfig2(a, b) {
|
|
13056
|
+
if (!utils_default.isUndefined(b)) {
|
|
13057
|
+
return getMergedValue(void 0, b);
|
|
13058
|
+
}
|
|
13059
|
+
}
|
|
13060
|
+
function defaultToConfig2(a, b) {
|
|
13061
|
+
if (!utils_default.isUndefined(b)) {
|
|
13062
|
+
return getMergedValue(void 0, b);
|
|
13063
|
+
} else if (!utils_default.isUndefined(a)) {
|
|
13064
|
+
return getMergedValue(void 0, a);
|
|
13065
|
+
}
|
|
13066
|
+
}
|
|
13067
|
+
function mergeDirectKeys(a, b, prop) {
|
|
13068
|
+
if (prop in config2) {
|
|
13069
|
+
return getMergedValue(a, b);
|
|
13070
|
+
} else if (prop in config1) {
|
|
13071
|
+
return getMergedValue(void 0, a);
|
|
13072
|
+
}
|
|
13073
|
+
}
|
|
13074
|
+
const mergeMap = {
|
|
13075
|
+
url: valueFromConfig2,
|
|
13076
|
+
method: valueFromConfig2,
|
|
13077
|
+
data: valueFromConfig2,
|
|
13078
|
+
baseURL: defaultToConfig2,
|
|
13079
|
+
transformRequest: defaultToConfig2,
|
|
13080
|
+
transformResponse: defaultToConfig2,
|
|
13081
|
+
paramsSerializer: defaultToConfig2,
|
|
13082
|
+
timeout: defaultToConfig2,
|
|
13083
|
+
timeoutMessage: defaultToConfig2,
|
|
13084
|
+
withCredentials: defaultToConfig2,
|
|
13085
|
+
withXSRFToken: defaultToConfig2,
|
|
13086
|
+
adapter: defaultToConfig2,
|
|
13087
|
+
responseType: defaultToConfig2,
|
|
13088
|
+
xsrfCookieName: defaultToConfig2,
|
|
13089
|
+
xsrfHeaderName: defaultToConfig2,
|
|
13090
|
+
onUploadProgress: defaultToConfig2,
|
|
13091
|
+
onDownloadProgress: defaultToConfig2,
|
|
13092
|
+
decompress: defaultToConfig2,
|
|
13093
|
+
maxContentLength: defaultToConfig2,
|
|
13094
|
+
maxBodyLength: defaultToConfig2,
|
|
13095
|
+
beforeRedirect: defaultToConfig2,
|
|
13096
|
+
transport: defaultToConfig2,
|
|
13097
|
+
httpAgent: defaultToConfig2,
|
|
13098
|
+
httpsAgent: defaultToConfig2,
|
|
13099
|
+
cancelToken: defaultToConfig2,
|
|
13100
|
+
socketPath: defaultToConfig2,
|
|
13101
|
+
responseEncoding: defaultToConfig2,
|
|
13102
|
+
validateStatus: mergeDirectKeys,
|
|
13103
|
+
headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
|
|
13026
13104
|
};
|
|
13105
|
+
utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
13106
|
+
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
13107
|
+
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
13108
|
+
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
13109
|
+
});
|
|
13110
|
+
return config;
|
|
13027
13111
|
}
|
|
13112
|
+
|
|
13113
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/resolveConfig.js
|
|
13114
|
+
var resolveConfig_default = (config) => {
|
|
13115
|
+
const newConfig = mergeConfig({}, config);
|
|
13116
|
+
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
13117
|
+
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
13118
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
13119
|
+
if (auth) {
|
|
13120
|
+
headers.set(
|
|
13121
|
+
"Authorization",
|
|
13122
|
+
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
|
|
13123
|
+
);
|
|
13124
|
+
}
|
|
13125
|
+
let contentType;
|
|
13126
|
+
if (utils_default.isFormData(data)) {
|
|
13127
|
+
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
13128
|
+
headers.setContentType(void 0);
|
|
13129
|
+
} else if ((contentType = headers.getContentType()) !== false) {
|
|
13130
|
+
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
|
13131
|
+
headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
13132
|
+
}
|
|
13133
|
+
}
|
|
13134
|
+
if (platform_default.hasStandardBrowserEnv) {
|
|
13135
|
+
withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
|
|
13136
|
+
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
|
|
13137
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
|
|
13138
|
+
if (xsrfValue) {
|
|
13139
|
+
headers.set(xsrfHeaderName, xsrfValue);
|
|
13140
|
+
}
|
|
13141
|
+
}
|
|
13142
|
+
}
|
|
13143
|
+
return newConfig;
|
|
13144
|
+
};
|
|
13145
|
+
|
|
13146
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/xhr.js
|
|
13028
13147
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
13029
13148
|
var xhr_default = isXHRAdapterSupported && function(config) {
|
|
13030
13149
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
13031
|
-
|
|
13032
|
-
|
|
13033
|
-
|
|
13150
|
+
const _config = resolveConfig_default(config);
|
|
13151
|
+
let requestData = _config.data;
|
|
13152
|
+
const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
|
|
13153
|
+
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
13034
13154
|
let onCanceled;
|
|
13155
|
+
let uploadThrottled, downloadThrottled;
|
|
13156
|
+
let flushUpload, flushDownload;
|
|
13035
13157
|
function done() {
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
|
|
13039
|
-
|
|
13040
|
-
config.signal.removeEventListener("abort", onCanceled);
|
|
13041
|
-
}
|
|
13042
|
-
}
|
|
13043
|
-
let contentType;
|
|
13044
|
-
if (utils_default.isFormData(requestData)) {
|
|
13045
|
-
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
13046
|
-
requestHeaders.setContentType(false);
|
|
13047
|
-
} else if ((contentType = requestHeaders.getContentType()) !== false) {
|
|
13048
|
-
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
|
13049
|
-
requestHeaders.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
13050
|
-
}
|
|
13158
|
+
flushUpload && flushUpload();
|
|
13159
|
+
flushDownload && flushDownload();
|
|
13160
|
+
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
13161
|
+
_config.signal && _config.signal.removeEventListener("abort", onCanceled);
|
|
13051
13162
|
}
|
|
13052
13163
|
let request = new XMLHttpRequest();
|
|
13053
|
-
|
|
13054
|
-
|
|
13055
|
-
const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
|
|
13056
|
-
requestHeaders.set("Authorization", "Basic " + btoa(username + ":" + password));
|
|
13057
|
-
}
|
|
13058
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
13059
|
-
request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
|
|
13060
|
-
request.timeout = config.timeout;
|
|
13164
|
+
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
13165
|
+
request.timeout = _config.timeout;
|
|
13061
13166
|
function onloadend() {
|
|
13062
13167
|
if (!request) {
|
|
13063
13168
|
return;
|
|
@@ -13108,10 +13213,10 @@
|
|
|
13108
13213
|
request = null;
|
|
13109
13214
|
};
|
|
13110
13215
|
request.ontimeout = function handleTimeout() {
|
|
13111
|
-
let timeoutErrorMessage =
|
|
13112
|
-
const transitional2 =
|
|
13113
|
-
if (
|
|
13114
|
-
timeoutErrorMessage =
|
|
13216
|
+
let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
|
|
13217
|
+
const transitional2 = _config.transitional || transitional_default;
|
|
13218
|
+
if (_config.timeoutErrorMessage) {
|
|
13219
|
+
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
13115
13220
|
}
|
|
13116
13221
|
reject(new AxiosError_default(
|
|
13117
13222
|
timeoutErrorMessage,
|
|
@@ -13121,34 +13226,28 @@
|
|
|
13121
13226
|
));
|
|
13122
13227
|
request = null;
|
|
13123
13228
|
};
|
|
13124
|
-
if (platform_default.hasStandardBrowserEnv) {
|
|
13125
|
-
withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
|
|
13126
|
-
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(fullPath)) {
|
|
13127
|
-
const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
|
|
13128
|
-
if (xsrfValue) {
|
|
13129
|
-
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
|
|
13130
|
-
}
|
|
13131
|
-
}
|
|
13132
|
-
}
|
|
13133
13229
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
13134
13230
|
if ("setRequestHeader" in request) {
|
|
13135
13231
|
utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
|
|
13136
13232
|
request.setRequestHeader(key, val);
|
|
13137
13233
|
});
|
|
13138
13234
|
}
|
|
13139
|
-
if (!utils_default.isUndefined(
|
|
13140
|
-
request.withCredentials = !!
|
|
13235
|
+
if (!utils_default.isUndefined(_config.withCredentials)) {
|
|
13236
|
+
request.withCredentials = !!_config.withCredentials;
|
|
13141
13237
|
}
|
|
13142
13238
|
if (responseType && responseType !== "json") {
|
|
13143
|
-
request.responseType =
|
|
13239
|
+
request.responseType = _config.responseType;
|
|
13144
13240
|
}
|
|
13145
|
-
if (
|
|
13146
|
-
|
|
13241
|
+
if (onDownloadProgress) {
|
|
13242
|
+
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
13243
|
+
request.addEventListener("progress", downloadThrottled);
|
|
13147
13244
|
}
|
|
13148
|
-
if (
|
|
13149
|
-
|
|
13245
|
+
if (onUploadProgress && request.upload) {
|
|
13246
|
+
[uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
|
|
13247
|
+
request.upload.addEventListener("progress", uploadThrottled);
|
|
13248
|
+
request.upload.addEventListener("loadend", flushUpload);
|
|
13150
13249
|
}
|
|
13151
|
-
if (
|
|
13250
|
+
if (_config.cancelToken || _config.signal) {
|
|
13152
13251
|
onCanceled = (cancel) => {
|
|
13153
13252
|
if (!request) {
|
|
13154
13253
|
return;
|
|
@@ -13157,12 +13256,12 @@
|
|
|
13157
13256
|
request.abort();
|
|
13158
13257
|
request = null;
|
|
13159
13258
|
};
|
|
13160
|
-
|
|
13161
|
-
if (
|
|
13162
|
-
|
|
13259
|
+
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
13260
|
+
if (_config.signal) {
|
|
13261
|
+
_config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
|
|
13163
13262
|
}
|
|
13164
13263
|
}
|
|
13165
|
-
const protocol = parseProtocol(
|
|
13264
|
+
const protocol = parseProtocol(_config.url);
|
|
13166
13265
|
if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
|
|
13167
13266
|
reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
|
|
13168
13267
|
return;
|
|
@@ -13171,10 +13270,288 @@
|
|
|
13171
13270
|
});
|
|
13172
13271
|
};
|
|
13173
13272
|
|
|
13174
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13273
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/composeSignals.js
|
|
13274
|
+
var composeSignals = (signals, timeout) => {
|
|
13275
|
+
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
13276
|
+
if (timeout || length) {
|
|
13277
|
+
let controller = new AbortController();
|
|
13278
|
+
let aborted;
|
|
13279
|
+
const onabort = function(reason) {
|
|
13280
|
+
if (!aborted) {
|
|
13281
|
+
aborted = true;
|
|
13282
|
+
unsubscribe();
|
|
13283
|
+
const err = reason instanceof Error ? reason : this.reason;
|
|
13284
|
+
controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
|
|
13285
|
+
}
|
|
13286
|
+
};
|
|
13287
|
+
let timer = timeout && setTimeout(() => {
|
|
13288
|
+
timer = null;
|
|
13289
|
+
onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));
|
|
13290
|
+
}, timeout);
|
|
13291
|
+
const unsubscribe = () => {
|
|
13292
|
+
if (signals) {
|
|
13293
|
+
timer && clearTimeout(timer);
|
|
13294
|
+
timer = null;
|
|
13295
|
+
signals.forEach((signal2) => {
|
|
13296
|
+
signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
|
|
13297
|
+
});
|
|
13298
|
+
signals = null;
|
|
13299
|
+
}
|
|
13300
|
+
};
|
|
13301
|
+
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
13302
|
+
const { signal } = controller;
|
|
13303
|
+
signal.unsubscribe = () => utils_default.asap(unsubscribe);
|
|
13304
|
+
return signal;
|
|
13305
|
+
}
|
|
13306
|
+
};
|
|
13307
|
+
var composeSignals_default = composeSignals;
|
|
13308
|
+
|
|
13309
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js
|
|
13310
|
+
var streamChunk = function* (chunk, chunkSize) {
|
|
13311
|
+
let len = chunk.byteLength;
|
|
13312
|
+
if (!chunkSize || len < chunkSize) {
|
|
13313
|
+
yield chunk;
|
|
13314
|
+
return;
|
|
13315
|
+
}
|
|
13316
|
+
let pos = 0;
|
|
13317
|
+
let end;
|
|
13318
|
+
while (pos < len) {
|
|
13319
|
+
end = pos + chunkSize;
|
|
13320
|
+
yield chunk.slice(pos, end);
|
|
13321
|
+
pos = end;
|
|
13322
|
+
}
|
|
13323
|
+
};
|
|
13324
|
+
var readBytes = async function* (iterable, chunkSize) {
|
|
13325
|
+
for await (const chunk of readStream(iterable)) {
|
|
13326
|
+
yield* streamChunk(chunk, chunkSize);
|
|
13327
|
+
}
|
|
13328
|
+
};
|
|
13329
|
+
var readStream = async function* (stream4) {
|
|
13330
|
+
if (stream4[Symbol.asyncIterator]) {
|
|
13331
|
+
yield* stream4;
|
|
13332
|
+
return;
|
|
13333
|
+
}
|
|
13334
|
+
const reader = stream4.getReader();
|
|
13335
|
+
try {
|
|
13336
|
+
for (; ; ) {
|
|
13337
|
+
const { done, value } = await reader.read();
|
|
13338
|
+
if (done) {
|
|
13339
|
+
break;
|
|
13340
|
+
}
|
|
13341
|
+
yield value;
|
|
13342
|
+
}
|
|
13343
|
+
} finally {
|
|
13344
|
+
await reader.cancel();
|
|
13345
|
+
}
|
|
13346
|
+
};
|
|
13347
|
+
var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
13348
|
+
const iterator = readBytes(stream4, chunkSize);
|
|
13349
|
+
let bytes = 0;
|
|
13350
|
+
let done;
|
|
13351
|
+
let _onFinish = (e) => {
|
|
13352
|
+
if (!done) {
|
|
13353
|
+
done = true;
|
|
13354
|
+
onFinish && onFinish(e);
|
|
13355
|
+
}
|
|
13356
|
+
};
|
|
13357
|
+
return new ReadableStream({
|
|
13358
|
+
async pull(controller) {
|
|
13359
|
+
try {
|
|
13360
|
+
const { done: done2, value } = await iterator.next();
|
|
13361
|
+
if (done2) {
|
|
13362
|
+
_onFinish();
|
|
13363
|
+
controller.close();
|
|
13364
|
+
return;
|
|
13365
|
+
}
|
|
13366
|
+
let len = value.byteLength;
|
|
13367
|
+
if (onProgress) {
|
|
13368
|
+
let loadedBytes = bytes += len;
|
|
13369
|
+
onProgress(loadedBytes);
|
|
13370
|
+
}
|
|
13371
|
+
controller.enqueue(new Uint8Array(value));
|
|
13372
|
+
} catch (err) {
|
|
13373
|
+
_onFinish(err);
|
|
13374
|
+
throw err;
|
|
13375
|
+
}
|
|
13376
|
+
},
|
|
13377
|
+
cancel(reason) {
|
|
13378
|
+
_onFinish(reason);
|
|
13379
|
+
return iterator.return();
|
|
13380
|
+
}
|
|
13381
|
+
}, {
|
|
13382
|
+
highWaterMark: 2
|
|
13383
|
+
});
|
|
13384
|
+
};
|
|
13385
|
+
|
|
13386
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/fetch.js
|
|
13387
|
+
var isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
|
|
13388
|
+
var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
|
|
13389
|
+
var encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
|
|
13390
|
+
var test = (fn, ...args) => {
|
|
13391
|
+
try {
|
|
13392
|
+
return !!fn(...args);
|
|
13393
|
+
} catch (e) {
|
|
13394
|
+
return false;
|
|
13395
|
+
}
|
|
13396
|
+
};
|
|
13397
|
+
var supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
13398
|
+
let duplexAccessed = false;
|
|
13399
|
+
const hasContentType = new Request(platform_default.origin, {
|
|
13400
|
+
body: new ReadableStream(),
|
|
13401
|
+
method: "POST",
|
|
13402
|
+
get duplex() {
|
|
13403
|
+
duplexAccessed = true;
|
|
13404
|
+
return "half";
|
|
13405
|
+
}
|
|
13406
|
+
}).headers.has("Content-Type");
|
|
13407
|
+
return duplexAccessed && !hasContentType;
|
|
13408
|
+
});
|
|
13409
|
+
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
13410
|
+
var supportsResponseStream = isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
13411
|
+
var resolvers = {
|
|
13412
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
13413
|
+
};
|
|
13414
|
+
isFetchSupported && ((res) => {
|
|
13415
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
13416
|
+
!resolvers[type] && (resolvers[type] = utils_default.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
|
|
13417
|
+
throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
|
|
13418
|
+
});
|
|
13419
|
+
});
|
|
13420
|
+
})(new Response());
|
|
13421
|
+
var getBodyLength = async (body) => {
|
|
13422
|
+
if (body == null) {
|
|
13423
|
+
return 0;
|
|
13424
|
+
}
|
|
13425
|
+
if (utils_default.isBlob(body)) {
|
|
13426
|
+
return body.size;
|
|
13427
|
+
}
|
|
13428
|
+
if (utils_default.isSpecCompliantForm(body)) {
|
|
13429
|
+
const _request = new Request(platform_default.origin, {
|
|
13430
|
+
method: "POST",
|
|
13431
|
+
body
|
|
13432
|
+
});
|
|
13433
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
13434
|
+
}
|
|
13435
|
+
if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
|
|
13436
|
+
return body.byteLength;
|
|
13437
|
+
}
|
|
13438
|
+
if (utils_default.isURLSearchParams(body)) {
|
|
13439
|
+
body = body + "";
|
|
13440
|
+
}
|
|
13441
|
+
if (utils_default.isString(body)) {
|
|
13442
|
+
return (await encodeText(body)).byteLength;
|
|
13443
|
+
}
|
|
13444
|
+
};
|
|
13445
|
+
var resolveBodyLength = async (headers, body) => {
|
|
13446
|
+
const length = utils_default.toFiniteNumber(headers.getContentLength());
|
|
13447
|
+
return length == null ? getBodyLength(body) : length;
|
|
13448
|
+
};
|
|
13449
|
+
var fetch_default = isFetchSupported && (async (config) => {
|
|
13450
|
+
let {
|
|
13451
|
+
url: url2,
|
|
13452
|
+
method,
|
|
13453
|
+
data,
|
|
13454
|
+
signal,
|
|
13455
|
+
cancelToken,
|
|
13456
|
+
timeout,
|
|
13457
|
+
onDownloadProgress,
|
|
13458
|
+
onUploadProgress,
|
|
13459
|
+
responseType,
|
|
13460
|
+
headers,
|
|
13461
|
+
withCredentials = "same-origin",
|
|
13462
|
+
fetchOptions
|
|
13463
|
+
} = resolveConfig_default(config);
|
|
13464
|
+
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
13465
|
+
let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
13466
|
+
let request;
|
|
13467
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
13468
|
+
composedSignal.unsubscribe();
|
|
13469
|
+
});
|
|
13470
|
+
let requestContentLength;
|
|
13471
|
+
try {
|
|
13472
|
+
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
13473
|
+
let _request = new Request(url2, {
|
|
13474
|
+
method: "POST",
|
|
13475
|
+
body: data,
|
|
13476
|
+
duplex: "half"
|
|
13477
|
+
});
|
|
13478
|
+
let contentTypeHeader;
|
|
13479
|
+
if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
13480
|
+
headers.setContentType(contentTypeHeader);
|
|
13481
|
+
}
|
|
13482
|
+
if (_request.body) {
|
|
13483
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
13484
|
+
requestContentLength,
|
|
13485
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
13486
|
+
);
|
|
13487
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
13488
|
+
}
|
|
13489
|
+
}
|
|
13490
|
+
if (!utils_default.isString(withCredentials)) {
|
|
13491
|
+
withCredentials = withCredentials ? "include" : "omit";
|
|
13492
|
+
}
|
|
13493
|
+
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
13494
|
+
request = new Request(url2, {
|
|
13495
|
+
...fetchOptions,
|
|
13496
|
+
signal: composedSignal,
|
|
13497
|
+
method: method.toUpperCase(),
|
|
13498
|
+
headers: headers.normalize().toJSON(),
|
|
13499
|
+
body: data,
|
|
13500
|
+
duplex: "half",
|
|
13501
|
+
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
13502
|
+
});
|
|
13503
|
+
let response = await fetch(request);
|
|
13504
|
+
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
13505
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
13506
|
+
const options = {};
|
|
13507
|
+
["status", "statusText", "headers"].forEach((prop) => {
|
|
13508
|
+
options[prop] = response[prop];
|
|
13509
|
+
});
|
|
13510
|
+
const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
13511
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
13512
|
+
responseContentLength,
|
|
13513
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
13514
|
+
) || [];
|
|
13515
|
+
response = new Response(
|
|
13516
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
13517
|
+
flush && flush();
|
|
13518
|
+
unsubscribe && unsubscribe();
|
|
13519
|
+
}),
|
|
13520
|
+
options
|
|
13521
|
+
);
|
|
13522
|
+
}
|
|
13523
|
+
responseType = responseType || "text";
|
|
13524
|
+
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
|
|
13525
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
13526
|
+
return await new Promise((resolve, reject) => {
|
|
13527
|
+
settle(resolve, reject, {
|
|
13528
|
+
data: responseData,
|
|
13529
|
+
headers: AxiosHeaders_default.from(response.headers),
|
|
13530
|
+
status: response.status,
|
|
13531
|
+
statusText: response.statusText,
|
|
13532
|
+
config,
|
|
13533
|
+
request
|
|
13534
|
+
});
|
|
13535
|
+
});
|
|
13536
|
+
} catch (err) {
|
|
13537
|
+
unsubscribe && unsubscribe();
|
|
13538
|
+
if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
|
|
13539
|
+
throw Object.assign(
|
|
13540
|
+
new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request),
|
|
13541
|
+
{
|
|
13542
|
+
cause: err.cause || err
|
|
13543
|
+
}
|
|
13544
|
+
);
|
|
13545
|
+
}
|
|
13546
|
+
throw AxiosError_default.from(err, err && err.code, config, request);
|
|
13547
|
+
}
|
|
13548
|
+
});
|
|
13549
|
+
|
|
13550
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/adapters.js
|
|
13175
13551
|
var knownAdapters = {
|
|
13176
13552
|
http: http_default,
|
|
13177
|
-
xhr: xhr_default
|
|
13553
|
+
xhr: xhr_default,
|
|
13554
|
+
fetch: fetch_default
|
|
13178
13555
|
};
|
|
13179
13556
|
utils_default.forEach(knownAdapters, (fn, value) => {
|
|
13180
13557
|
if (fn) {
|
|
@@ -13224,7 +13601,7 @@
|
|
|
13224
13601
|
adapters: knownAdapters
|
|
13225
13602
|
};
|
|
13226
13603
|
|
|
13227
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13604
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/dispatchRequest.js
|
|
13228
13605
|
function throwIfCancellationRequested(config) {
|
|
13229
13606
|
if (config.cancelToken) {
|
|
13230
13607
|
config.cancelToken.throwIfRequested();
|
|
@@ -13269,87 +13646,7 @@
|
|
|
13269
13646
|
});
|
|
13270
13647
|
}
|
|
13271
13648
|
|
|
13272
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13273
|
-
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
13274
|
-
function mergeConfig(config1, config2) {
|
|
13275
|
-
config2 = config2 || {};
|
|
13276
|
-
const config = {};
|
|
13277
|
-
function getMergedValue(target, source, caseless) {
|
|
13278
|
-
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
|
|
13279
|
-
return utils_default.merge.call({ caseless }, target, source);
|
|
13280
|
-
} else if (utils_default.isPlainObject(source)) {
|
|
13281
|
-
return utils_default.merge({}, source);
|
|
13282
|
-
} else if (utils_default.isArray(source)) {
|
|
13283
|
-
return source.slice();
|
|
13284
|
-
}
|
|
13285
|
-
return source;
|
|
13286
|
-
}
|
|
13287
|
-
function mergeDeepProperties(a, b, caseless) {
|
|
13288
|
-
if (!utils_default.isUndefined(b)) {
|
|
13289
|
-
return getMergedValue(a, b, caseless);
|
|
13290
|
-
} else if (!utils_default.isUndefined(a)) {
|
|
13291
|
-
return getMergedValue(void 0, a, caseless);
|
|
13292
|
-
}
|
|
13293
|
-
}
|
|
13294
|
-
function valueFromConfig2(a, b) {
|
|
13295
|
-
if (!utils_default.isUndefined(b)) {
|
|
13296
|
-
return getMergedValue(void 0, b);
|
|
13297
|
-
}
|
|
13298
|
-
}
|
|
13299
|
-
function defaultToConfig2(a, b) {
|
|
13300
|
-
if (!utils_default.isUndefined(b)) {
|
|
13301
|
-
return getMergedValue(void 0, b);
|
|
13302
|
-
} else if (!utils_default.isUndefined(a)) {
|
|
13303
|
-
return getMergedValue(void 0, a);
|
|
13304
|
-
}
|
|
13305
|
-
}
|
|
13306
|
-
function mergeDirectKeys(a, b, prop) {
|
|
13307
|
-
if (prop in config2) {
|
|
13308
|
-
return getMergedValue(a, b);
|
|
13309
|
-
} else if (prop in config1) {
|
|
13310
|
-
return getMergedValue(void 0, a);
|
|
13311
|
-
}
|
|
13312
|
-
}
|
|
13313
|
-
const mergeMap = {
|
|
13314
|
-
url: valueFromConfig2,
|
|
13315
|
-
method: valueFromConfig2,
|
|
13316
|
-
data: valueFromConfig2,
|
|
13317
|
-
baseURL: defaultToConfig2,
|
|
13318
|
-
transformRequest: defaultToConfig2,
|
|
13319
|
-
transformResponse: defaultToConfig2,
|
|
13320
|
-
paramsSerializer: defaultToConfig2,
|
|
13321
|
-
timeout: defaultToConfig2,
|
|
13322
|
-
timeoutMessage: defaultToConfig2,
|
|
13323
|
-
withCredentials: defaultToConfig2,
|
|
13324
|
-
withXSRFToken: defaultToConfig2,
|
|
13325
|
-
adapter: defaultToConfig2,
|
|
13326
|
-
responseType: defaultToConfig2,
|
|
13327
|
-
xsrfCookieName: defaultToConfig2,
|
|
13328
|
-
xsrfHeaderName: defaultToConfig2,
|
|
13329
|
-
onUploadProgress: defaultToConfig2,
|
|
13330
|
-
onDownloadProgress: defaultToConfig2,
|
|
13331
|
-
decompress: defaultToConfig2,
|
|
13332
|
-
maxContentLength: defaultToConfig2,
|
|
13333
|
-
maxBodyLength: defaultToConfig2,
|
|
13334
|
-
beforeRedirect: defaultToConfig2,
|
|
13335
|
-
transport: defaultToConfig2,
|
|
13336
|
-
httpAgent: defaultToConfig2,
|
|
13337
|
-
httpsAgent: defaultToConfig2,
|
|
13338
|
-
cancelToken: defaultToConfig2,
|
|
13339
|
-
socketPath: defaultToConfig2,
|
|
13340
|
-
responseEncoding: defaultToConfig2,
|
|
13341
|
-
validateStatus: mergeDirectKeys,
|
|
13342
|
-
headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
|
|
13343
|
-
};
|
|
13344
|
-
utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
13345
|
-
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
13346
|
-
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
13347
|
-
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
13348
|
-
});
|
|
13349
|
-
return config;
|
|
13350
|
-
}
|
|
13351
|
-
|
|
13352
|
-
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/validator.js
|
|
13649
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js
|
|
13353
13650
|
var validators = {};
|
|
13354
13651
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
13355
13652
|
validators[type] = function validator(thing) {
|
|
@@ -13407,7 +13704,7 @@
|
|
|
13407
13704
|
validators
|
|
13408
13705
|
};
|
|
13409
13706
|
|
|
13410
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13707
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/Axios.js
|
|
13411
13708
|
var validators2 = validator_default.validators;
|
|
13412
13709
|
var Axios = class {
|
|
13413
13710
|
constructor(instanceConfig) {
|
|
@@ -13433,10 +13730,13 @@
|
|
|
13433
13730
|
let dummy;
|
|
13434
13731
|
Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error();
|
|
13435
13732
|
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
|
|
13436
|
-
|
|
13437
|
-
err.stack
|
|
13438
|
-
|
|
13439
|
-
err.stack
|
|
13733
|
+
try {
|
|
13734
|
+
if (!err.stack) {
|
|
13735
|
+
err.stack = stack;
|
|
13736
|
+
} else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
|
|
13737
|
+
err.stack += "\n" + stack;
|
|
13738
|
+
}
|
|
13739
|
+
} catch (e) {
|
|
13440
13740
|
}
|
|
13441
13741
|
}
|
|
13442
13742
|
throw err;
|
|
@@ -13567,7 +13867,7 @@
|
|
|
13567
13867
|
});
|
|
13568
13868
|
var Axios_default = Axios;
|
|
13569
13869
|
|
|
13570
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13870
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CancelToken.js
|
|
13571
13871
|
var CancelToken = class _CancelToken {
|
|
13572
13872
|
constructor(executor) {
|
|
13573
13873
|
if (typeof executor !== "function") {
|
|
@@ -13579,8 +13879,7 @@
|
|
|
13579
13879
|
});
|
|
13580
13880
|
const token = this;
|
|
13581
13881
|
this.promise.then((cancel) => {
|
|
13582
|
-
if (!token._listeners)
|
|
13583
|
-
return;
|
|
13882
|
+
if (!token._listeners) return;
|
|
13584
13883
|
let i = token._listeners.length;
|
|
13585
13884
|
while (i-- > 0) {
|
|
13586
13885
|
token._listeners[i](cancel);
|
|
@@ -13640,6 +13939,15 @@
|
|
|
13640
13939
|
this._listeners.splice(index, 1);
|
|
13641
13940
|
}
|
|
13642
13941
|
}
|
|
13942
|
+
toAbortSignal() {
|
|
13943
|
+
const controller = new AbortController();
|
|
13944
|
+
const abort = (err) => {
|
|
13945
|
+
controller.abort(err);
|
|
13946
|
+
};
|
|
13947
|
+
this.subscribe(abort);
|
|
13948
|
+
controller.signal.unsubscribe = () => this.unsubscribe(abort);
|
|
13949
|
+
return controller.signal;
|
|
13950
|
+
}
|
|
13643
13951
|
/**
|
|
13644
13952
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
13645
13953
|
* cancels the `CancelToken`.
|
|
@@ -13657,19 +13965,19 @@
|
|
|
13657
13965
|
};
|
|
13658
13966
|
var CancelToken_default = CancelToken;
|
|
13659
13967
|
|
|
13660
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13968
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/spread.js
|
|
13661
13969
|
function spread(callback) {
|
|
13662
13970
|
return function wrap(arr) {
|
|
13663
13971
|
return callback.apply(null, arr);
|
|
13664
13972
|
};
|
|
13665
13973
|
}
|
|
13666
13974
|
|
|
13667
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13975
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAxiosError.js
|
|
13668
13976
|
function isAxiosError(payload) {
|
|
13669
13977
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
13670
13978
|
}
|
|
13671
13979
|
|
|
13672
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13980
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
13673
13981
|
var HttpStatusCode = {
|
|
13674
13982
|
Continue: 100,
|
|
13675
13983
|
SwitchingProtocols: 101,
|
|
@@ -13740,7 +14048,7 @@
|
|
|
13740
14048
|
});
|
|
13741
14049
|
var HttpStatusCode_default = HttpStatusCode;
|
|
13742
14050
|
|
|
13743
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14051
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js
|
|
13744
14052
|
function createInstance(defaultConfig) {
|
|
13745
14053
|
const context = new Axios_default(defaultConfig);
|
|
13746
14054
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -13773,7 +14081,7 @@
|
|
|
13773
14081
|
axios.default = axios;
|
|
13774
14082
|
var axios_default = axios;
|
|
13775
14083
|
|
|
13776
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14084
|
+
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/index.js
|
|
13777
14085
|
var {
|
|
13778
14086
|
Axios: Axios2,
|
|
13779
14087
|
AxiosError: AxiosError2,
|