dowwntime 1.5.1 → 1.5.2
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/cli.mjs +1562 -1042
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1572 -1052
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -4
package/dist/cli.mjs
CHANGED
|
@@ -122,7 +122,7 @@ function basename(path2, ext) {
|
|
|
122
122
|
function extname$1(path2) {
|
|
123
123
|
return splitPath(path2)[3];
|
|
124
124
|
}
|
|
125
|
-
const path$
|
|
125
|
+
const path$4 = {
|
|
126
126
|
extname: extname$1,
|
|
127
127
|
basename,
|
|
128
128
|
dirname,
|
|
@@ -207,8 +207,8 @@ function unescapeJsonPointer$1(uri) {
|
|
|
207
207
|
|
|
208
208
|
//#endregion
|
|
209
209
|
//#region node_modules/@scalar/json-magic/dist/helpers/get-segments-from-path.js
|
|
210
|
-
function getSegmentsFromPath$1(path$
|
|
211
|
-
return path$
|
|
210
|
+
function getSegmentsFromPath$1(path$5) {
|
|
211
|
+
return path$5.split("/").slice(1).map(unescapeJsonPointer$1);
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
//#endregion
|
|
@@ -3471,10 +3471,10 @@ function resolveReferencePath(base, relativePath) {
|
|
|
3471
3471
|
url$2.pathname = relativePath;
|
|
3472
3472
|
return url$2.toString();
|
|
3473
3473
|
}
|
|
3474
|
-
const mergedPath = path$
|
|
3474
|
+
const mergedPath = path$4.join(path$4.dirname(url$2.pathname), relativePath);
|
|
3475
3475
|
return new URL(mergedPath, base).toString();
|
|
3476
3476
|
}
|
|
3477
|
-
return path$
|
|
3477
|
+
return path$4.join(path$4.dirname(base), relativePath);
|
|
3478
3478
|
}
|
|
3479
3479
|
function prefixInternalRef(input, prefix) {
|
|
3480
3480
|
if (!isLocalRef(input)) throw "Please provide an internal ref";
|
|
@@ -3740,17 +3740,17 @@ var require_visit = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/visit.j
|
|
|
3740
3740
|
visit$5.SKIP = SKIP$1;
|
|
3741
3741
|
/** Remove the current node */
|
|
3742
3742
|
visit$5.REMOVE = REMOVE$1;
|
|
3743
|
-
function visit_(key, node, visitor, path$
|
|
3744
|
-
const ctrl = callVisitor(key, node, visitor, path$
|
|
3743
|
+
function visit_(key, node, visitor, path$5) {
|
|
3744
|
+
const ctrl = callVisitor(key, node, visitor, path$5);
|
|
3745
3745
|
if (identity$32.isNode(ctrl) || identity$32.isPair(ctrl)) {
|
|
3746
|
-
replaceNode(key, path$
|
|
3747
|
-
return visit_(key, ctrl, visitor, path$
|
|
3746
|
+
replaceNode(key, path$5, ctrl);
|
|
3747
|
+
return visit_(key, ctrl, visitor, path$5);
|
|
3748
3748
|
}
|
|
3749
3749
|
if (typeof ctrl !== "symbol") {
|
|
3750
3750
|
if (identity$32.isCollection(node)) {
|
|
3751
|
-
path$
|
|
3751
|
+
path$5 = Object.freeze(path$5.concat(node));
|
|
3752
3752
|
for (let i = 0; i < node.items.length; ++i) {
|
|
3753
|
-
const ci = visit_(i, node.items[i], visitor, path$
|
|
3753
|
+
const ci = visit_(i, node.items[i], visitor, path$5);
|
|
3754
3754
|
if (typeof ci === "number") i = ci - 1;
|
|
3755
3755
|
else if (ci === BREAK$1) return BREAK$1;
|
|
3756
3756
|
else if (ci === REMOVE$1) {
|
|
@@ -3759,11 +3759,11 @@ var require_visit = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/visit.j
|
|
|
3759
3759
|
}
|
|
3760
3760
|
}
|
|
3761
3761
|
} else if (identity$32.isPair(node)) {
|
|
3762
|
-
path$
|
|
3763
|
-
const ck = visit_("key", node.key, visitor, path$
|
|
3762
|
+
path$5 = Object.freeze(path$5.concat(node));
|
|
3763
|
+
const ck = visit_("key", node.key, visitor, path$5);
|
|
3764
3764
|
if (ck === BREAK$1) return BREAK$1;
|
|
3765
3765
|
else if (ck === REMOVE$1) node.key = null;
|
|
3766
|
-
const cv = visit_("value", node.value, visitor, path$
|
|
3766
|
+
const cv = visit_("value", node.value, visitor, path$5);
|
|
3767
3767
|
if (cv === BREAK$1) return BREAK$1;
|
|
3768
3768
|
else if (cv === REMOVE$1) node.value = null;
|
|
3769
3769
|
}
|
|
@@ -3813,17 +3813,17 @@ var require_visit = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/visit.j
|
|
|
3813
3813
|
visitAsync.SKIP = SKIP$1;
|
|
3814
3814
|
/** Remove the current node */
|
|
3815
3815
|
visitAsync.REMOVE = REMOVE$1;
|
|
3816
|
-
async function visitAsync_(key, node, visitor, path$
|
|
3817
|
-
const ctrl = await callVisitor(key, node, visitor, path$
|
|
3816
|
+
async function visitAsync_(key, node, visitor, path$5) {
|
|
3817
|
+
const ctrl = await callVisitor(key, node, visitor, path$5);
|
|
3818
3818
|
if (identity$32.isNode(ctrl) || identity$32.isPair(ctrl)) {
|
|
3819
|
-
replaceNode(key, path$
|
|
3820
|
-
return visitAsync_(key, ctrl, visitor, path$
|
|
3819
|
+
replaceNode(key, path$5, ctrl);
|
|
3820
|
+
return visitAsync_(key, ctrl, visitor, path$5);
|
|
3821
3821
|
}
|
|
3822
3822
|
if (typeof ctrl !== "symbol") {
|
|
3823
3823
|
if (identity$32.isCollection(node)) {
|
|
3824
|
-
path$
|
|
3824
|
+
path$5 = Object.freeze(path$5.concat(node));
|
|
3825
3825
|
for (let i = 0; i < node.items.length; ++i) {
|
|
3826
|
-
const ci = await visitAsync_(i, node.items[i], visitor, path$
|
|
3826
|
+
const ci = await visitAsync_(i, node.items[i], visitor, path$5);
|
|
3827
3827
|
if (typeof ci === "number") i = ci - 1;
|
|
3828
3828
|
else if (ci === BREAK$1) return BREAK$1;
|
|
3829
3829
|
else if (ci === REMOVE$1) {
|
|
@@ -3832,11 +3832,11 @@ var require_visit = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/visit.j
|
|
|
3832
3832
|
}
|
|
3833
3833
|
}
|
|
3834
3834
|
} else if (identity$32.isPair(node)) {
|
|
3835
|
-
path$
|
|
3836
|
-
const ck = await visitAsync_("key", node.key, visitor, path$
|
|
3835
|
+
path$5 = Object.freeze(path$5.concat(node));
|
|
3836
|
+
const ck = await visitAsync_("key", node.key, visitor, path$5);
|
|
3837
3837
|
if (ck === BREAK$1) return BREAK$1;
|
|
3838
3838
|
else if (ck === REMOVE$1) node.key = null;
|
|
3839
|
-
const cv = await visitAsync_("value", node.value, visitor, path$
|
|
3839
|
+
const cv = await visitAsync_("value", node.value, visitor, path$5);
|
|
3840
3840
|
if (cv === BREAK$1) return BREAK$1;
|
|
3841
3841
|
else if (cv === REMOVE$1) node.value = null;
|
|
3842
3842
|
}
|
|
@@ -3859,16 +3859,16 @@ var require_visit = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/visit.j
|
|
|
3859
3859
|
}, visitor);
|
|
3860
3860
|
return visitor;
|
|
3861
3861
|
}
|
|
3862
|
-
function callVisitor(key, node, visitor, path$
|
|
3863
|
-
if (typeof visitor === "function") return visitor(key, node, path$
|
|
3864
|
-
if (identity$32.isMap(node)) return visitor.Map?.(key, node, path$
|
|
3865
|
-
if (identity$32.isSeq(node)) return visitor.Seq?.(key, node, path$
|
|
3866
|
-
if (identity$32.isPair(node)) return visitor.Pair?.(key, node, path$
|
|
3867
|
-
if (identity$32.isScalar(node)) return visitor.Scalar?.(key, node, path$
|
|
3868
|
-
if (identity$32.isAlias(node)) return visitor.Alias?.(key, node, path$
|
|
3862
|
+
function callVisitor(key, node, visitor, path$5) {
|
|
3863
|
+
if (typeof visitor === "function") return visitor(key, node, path$5);
|
|
3864
|
+
if (identity$32.isMap(node)) return visitor.Map?.(key, node, path$5);
|
|
3865
|
+
if (identity$32.isSeq(node)) return visitor.Seq?.(key, node, path$5);
|
|
3866
|
+
if (identity$32.isPair(node)) return visitor.Pair?.(key, node, path$5);
|
|
3867
|
+
if (identity$32.isScalar(node)) return visitor.Scalar?.(key, node, path$5);
|
|
3868
|
+
if (identity$32.isAlias(node)) return visitor.Alias?.(key, node, path$5);
|
|
3869
3869
|
}
|
|
3870
|
-
function replaceNode(key, path$
|
|
3871
|
-
const parent = path$
|
|
3870
|
+
function replaceNode(key, path$5, node) {
|
|
3871
|
+
const parent = path$5[path$5.length - 1];
|
|
3872
3872
|
if (identity$32.isCollection(parent)) parent.items[key] = node;
|
|
3873
3873
|
else if (identity$32.isPair(parent)) if (key === "key") parent.key = node;
|
|
3874
3874
|
else parent.value = node;
|
|
@@ -4417,10 +4417,10 @@ var require_Collection = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/no
|
|
|
4417
4417
|
var createNode$3 = require_createNode();
|
|
4418
4418
|
var identity$24 = require_identity();
|
|
4419
4419
|
var Node = require_Node();
|
|
4420
|
-
function collectionFromPath(schema$6, path$
|
|
4420
|
+
function collectionFromPath(schema$6, path$5, value) {
|
|
4421
4421
|
let v = value;
|
|
4422
|
-
for (let i = path$
|
|
4423
|
-
const k = path$
|
|
4422
|
+
for (let i = path$5.length - 1; i >= 0; --i) {
|
|
4423
|
+
const k = path$5[i];
|
|
4424
4424
|
if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
|
|
4425
4425
|
const a = [];
|
|
4426
4426
|
a[k] = v;
|
|
@@ -4437,7 +4437,7 @@ var require_Collection = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/no
|
|
|
4437
4437
|
sourceObjects: /* @__PURE__ */ new Map()
|
|
4438
4438
|
});
|
|
4439
4439
|
}
|
|
4440
|
-
const isEmptyPath = (path$
|
|
4440
|
+
const isEmptyPath = (path$5) => path$5 == null || typeof path$5 === "object" && !!path$5[Symbol.iterator]().next().done;
|
|
4441
4441
|
var Collection$3 = class extends Node.NodeBase {
|
|
4442
4442
|
constructor(type, schema$6) {
|
|
4443
4443
|
super(type);
|
|
@@ -4465,10 +4465,10 @@ var require_Collection = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/no
|
|
|
4465
4465
|
* be a Pair instance or a `{ key, value }` object, which may not have a key
|
|
4466
4466
|
* that already exists in the map.
|
|
4467
4467
|
*/
|
|
4468
|
-
addIn(path$
|
|
4469
|
-
if (isEmptyPath(path$
|
|
4468
|
+
addIn(path$5, value) {
|
|
4469
|
+
if (isEmptyPath(path$5)) this.add(value);
|
|
4470
4470
|
else {
|
|
4471
|
-
const [key, ...rest] = path$
|
|
4471
|
+
const [key, ...rest] = path$5;
|
|
4472
4472
|
const node = this.get(key, true);
|
|
4473
4473
|
if (identity$24.isCollection(node)) node.addIn(rest, value);
|
|
4474
4474
|
else if (node === void 0 && this.schema) this.set(key, collectionFromPath(this.schema, rest, value));
|
|
@@ -4479,8 +4479,8 @@ var require_Collection = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/no
|
|
|
4479
4479
|
* Removes a value from the collection.
|
|
4480
4480
|
* @returns `true` if the item was found and removed.
|
|
4481
4481
|
*/
|
|
4482
|
-
deleteIn(path$
|
|
4483
|
-
const [key, ...rest] = path$
|
|
4482
|
+
deleteIn(path$5) {
|
|
4483
|
+
const [key, ...rest] = path$5;
|
|
4484
4484
|
if (rest.length === 0) return this.delete(key);
|
|
4485
4485
|
const node = this.get(key, true);
|
|
4486
4486
|
if (identity$24.isCollection(node)) return node.deleteIn(rest);
|
|
@@ -4491,8 +4491,8 @@ var require_Collection = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/no
|
|
|
4491
4491
|
* scalar values from their surrounding node; to disable set `keepScalar` to
|
|
4492
4492
|
* `true` (collections are always returned intact).
|
|
4493
4493
|
*/
|
|
4494
|
-
getIn(path$
|
|
4495
|
-
const [key, ...rest] = path$
|
|
4494
|
+
getIn(path$5, keepScalar) {
|
|
4495
|
+
const [key, ...rest] = path$5;
|
|
4496
4496
|
const node = this.get(key, true);
|
|
4497
4497
|
if (rest.length === 0) return !keepScalar && identity$24.isScalar(node) ? node.value : node;
|
|
4498
4498
|
else return identity$24.isCollection(node) ? node.getIn(rest, keepScalar) : void 0;
|
|
@@ -4507,8 +4507,8 @@ var require_Collection = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/no
|
|
|
4507
4507
|
/**
|
|
4508
4508
|
* Checks if the collection includes a value with the key `key`.
|
|
4509
4509
|
*/
|
|
4510
|
-
hasIn(path$
|
|
4511
|
-
const [key, ...rest] = path$
|
|
4510
|
+
hasIn(path$5) {
|
|
4511
|
+
const [key, ...rest] = path$5;
|
|
4512
4512
|
if (rest.length === 0) return this.has(key);
|
|
4513
4513
|
const node = this.get(key, true);
|
|
4514
4514
|
return identity$24.isCollection(node) ? node.hasIn(rest) : false;
|
|
@@ -4517,8 +4517,8 @@ var require_Collection = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/no
|
|
|
4517
4517
|
* Sets a value in this collection. For `!!set`, `value` needs to be a
|
|
4518
4518
|
* boolean to add/remove the item from the set.
|
|
4519
4519
|
*/
|
|
4520
|
-
setIn(path$
|
|
4521
|
-
const [key, ...rest] = path$
|
|
4520
|
+
setIn(path$5, value) {
|
|
4521
|
+
const [key, ...rest] = path$5;
|
|
4522
4522
|
if (rest.length === 0) this.set(key, value);
|
|
4523
4523
|
else {
|
|
4524
4524
|
const node = this.get(key, true);
|
|
@@ -6634,8 +6634,8 @@ var require_Document = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/doc/
|
|
|
6634
6634
|
if (assertCollection(this.contents)) this.contents.add(value);
|
|
6635
6635
|
}
|
|
6636
6636
|
/** Adds a value to the document. */
|
|
6637
|
-
addIn(path$
|
|
6638
|
-
if (assertCollection(this.contents)) this.contents.addIn(path$
|
|
6637
|
+
addIn(path$5, value) {
|
|
6638
|
+
if (assertCollection(this.contents)) this.contents.addIn(path$5, value);
|
|
6639
6639
|
}
|
|
6640
6640
|
/**
|
|
6641
6641
|
* Create a new `Alias` node, ensuring that the target `node` has the required anchor.
|
|
@@ -6703,13 +6703,13 @@ var require_Document = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/doc/
|
|
|
6703
6703
|
* Removes a value from the document.
|
|
6704
6704
|
* @returns `true` if the item was found and removed.
|
|
6705
6705
|
*/
|
|
6706
|
-
deleteIn(path$
|
|
6707
|
-
if (Collection.isEmptyPath(path$
|
|
6706
|
+
deleteIn(path$5) {
|
|
6707
|
+
if (Collection.isEmptyPath(path$5)) {
|
|
6708
6708
|
if (this.contents == null) return false;
|
|
6709
6709
|
this.contents = null;
|
|
6710
6710
|
return true;
|
|
6711
6711
|
}
|
|
6712
|
-
return assertCollection(this.contents) ? this.contents.deleteIn(path$
|
|
6712
|
+
return assertCollection(this.contents) ? this.contents.deleteIn(path$5) : false;
|
|
6713
6713
|
}
|
|
6714
6714
|
/**
|
|
6715
6715
|
* Returns item at `key`, or `undefined` if not found. By default unwraps
|
|
@@ -6724,9 +6724,9 @@ var require_Document = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/doc/
|
|
|
6724
6724
|
* scalar values from their surrounding node; to disable set `keepScalar` to
|
|
6725
6725
|
* `true` (collections are always returned intact).
|
|
6726
6726
|
*/
|
|
6727
|
-
getIn(path$
|
|
6728
|
-
if (Collection.isEmptyPath(path$
|
|
6729
|
-
return identity$8.isCollection(this.contents) ? this.contents.getIn(path$
|
|
6727
|
+
getIn(path$5, keepScalar) {
|
|
6728
|
+
if (Collection.isEmptyPath(path$5)) return !keepScalar && identity$8.isScalar(this.contents) ? this.contents.value : this.contents;
|
|
6729
|
+
return identity$8.isCollection(this.contents) ? this.contents.getIn(path$5, keepScalar) : void 0;
|
|
6730
6730
|
}
|
|
6731
6731
|
/**
|
|
6732
6732
|
* Checks if the document includes a value with the key `key`.
|
|
@@ -6737,9 +6737,9 @@ var require_Document = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/doc/
|
|
|
6737
6737
|
/**
|
|
6738
6738
|
* Checks if the document includes a value at `path`.
|
|
6739
6739
|
*/
|
|
6740
|
-
hasIn(path$
|
|
6741
|
-
if (Collection.isEmptyPath(path$
|
|
6742
|
-
return identity$8.isCollection(this.contents) ? this.contents.hasIn(path$
|
|
6740
|
+
hasIn(path$5) {
|
|
6741
|
+
if (Collection.isEmptyPath(path$5)) return this.contents !== void 0;
|
|
6742
|
+
return identity$8.isCollection(this.contents) ? this.contents.hasIn(path$5) : false;
|
|
6743
6743
|
}
|
|
6744
6744
|
/**
|
|
6745
6745
|
* Sets a value in this document. For `!!set`, `value` needs to be a
|
|
@@ -6753,10 +6753,10 @@ var require_Document = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/doc/
|
|
|
6753
6753
|
* Sets a value in this document. For `!!set`, `value` needs to be a
|
|
6754
6754
|
* boolean to add/remove the item from the set.
|
|
6755
6755
|
*/
|
|
6756
|
-
setIn(path$
|
|
6757
|
-
if (Collection.isEmptyPath(path$
|
|
6758
|
-
else if (this.contents == null) this.contents = Collection.collectionFromPath(this.schema, Array.from(path$
|
|
6759
|
-
else if (assertCollection(this.contents)) this.contents.setIn(path$
|
|
6756
|
+
setIn(path$5, value) {
|
|
6757
|
+
if (Collection.isEmptyPath(path$5)) this.contents = value;
|
|
6758
|
+
else if (this.contents == null) this.contents = Collection.collectionFromPath(this.schema, Array.from(path$5), value);
|
|
6759
|
+
else if (assertCollection(this.contents)) this.contents.setIn(path$5, value);
|
|
6760
6760
|
}
|
|
6761
6761
|
/**
|
|
6762
6762
|
* Change the YAML version and schema used by the document.
|
|
@@ -8604,9 +8604,9 @@ var require_cst_visit = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/par
|
|
|
8604
8604
|
/** Remove the current item */
|
|
8605
8605
|
visit$1.REMOVE = REMOVE;
|
|
8606
8606
|
/** Find the item at `path` from `cst` as the root */
|
|
8607
|
-
visit$1.itemAtPath = (cst$3, path$
|
|
8607
|
+
visit$1.itemAtPath = (cst$3, path$5) => {
|
|
8608
8608
|
let item = cst$3;
|
|
8609
|
-
for (const [field, index] of path$
|
|
8609
|
+
for (const [field, index] of path$5) {
|
|
8610
8610
|
const tok = item?.[field];
|
|
8611
8611
|
if (tok && "items" in tok) item = tok.items[index];
|
|
8612
8612
|
else return void 0;
|
|
@@ -8618,21 +8618,21 @@ var require_cst_visit = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/par
|
|
|
8618
8618
|
*
|
|
8619
8619
|
* Throws an error if the collection is not found, which should never happen if the item itself exists.
|
|
8620
8620
|
*/
|
|
8621
|
-
visit$1.parentCollection = (cst$3, path$
|
|
8622
|
-
const parent = visit$1.itemAtPath(cst$3, path$
|
|
8623
|
-
const field = path$
|
|
8621
|
+
visit$1.parentCollection = (cst$3, path$5) => {
|
|
8622
|
+
const parent = visit$1.itemAtPath(cst$3, path$5.slice(0, -1));
|
|
8623
|
+
const field = path$5[path$5.length - 1][0];
|
|
8624
8624
|
const coll = parent?.[field];
|
|
8625
8625
|
if (coll && "items" in coll) return coll;
|
|
8626
8626
|
throw new Error("Parent collection not found");
|
|
8627
8627
|
};
|
|
8628
|
-
function _visit(path$
|
|
8629
|
-
let ctrl = visitor(item, path$
|
|
8628
|
+
function _visit(path$5, item, visitor) {
|
|
8629
|
+
let ctrl = visitor(item, path$5);
|
|
8630
8630
|
if (typeof ctrl === "symbol") return ctrl;
|
|
8631
8631
|
for (const field of ["key", "value"]) {
|
|
8632
8632
|
const token = item[field];
|
|
8633
8633
|
if (token && "items" in token) {
|
|
8634
8634
|
for (let i = 0; i < token.items.length; ++i) {
|
|
8635
|
-
const ci = _visit(Object.freeze(path$
|
|
8635
|
+
const ci = _visit(Object.freeze(path$5.concat([[field, i]])), token.items[i], visitor);
|
|
8636
8636
|
if (typeof ci === "number") i = ci - 1;
|
|
8637
8637
|
else if (ci === BREAK) return BREAK;
|
|
8638
8638
|
else if (ci === REMOVE) {
|
|
@@ -8640,10 +8640,10 @@ var require_cst_visit = /* @__PURE__ */ __commonJS({ "node_modules/yaml/dist/par
|
|
|
8640
8640
|
i -= 1;
|
|
8641
8641
|
}
|
|
8642
8642
|
}
|
|
8643
|
-
if (typeof ctrl === "function" && field === "key") ctrl = ctrl(item, path$
|
|
8643
|
+
if (typeof ctrl === "function" && field === "key") ctrl = ctrl(item, path$5);
|
|
8644
8644
|
}
|
|
8645
8645
|
}
|
|
8646
|
-
return typeof ctrl === "function" ? ctrl(item, path$
|
|
8646
|
+
return typeof ctrl === "function" ? ctrl(item, path$5) : ctrl;
|
|
8647
8647
|
}
|
|
8648
8648
|
exports.visit = visit$1;
|
|
8649
8649
|
}) });
|
|
@@ -10401,11 +10401,11 @@ function parseYaml() {
|
|
|
10401
10401
|
|
|
10402
10402
|
//#endregion
|
|
10403
10403
|
//#region node_modules/@scalar/json-magic/dist/bundle/plugins/read-files/index.js
|
|
10404
|
-
async function readFile(path$
|
|
10404
|
+
async function readFile(path$5) {
|
|
10405
10405
|
const fs$3 = typeof window === "undefined" ? await import("fs/promises") : void 0;
|
|
10406
10406
|
if (fs$3 === void 0) throw "Can not use readFiles plugin outside of a node environment";
|
|
10407
10407
|
try {
|
|
10408
|
-
const fileContents = await fs$3.readFile(path$
|
|
10408
|
+
const fileContents = await fs$3.readFile(path$5, { encoding: "utf-8" });
|
|
10409
10409
|
return {
|
|
10410
10410
|
ok: true,
|
|
10411
10411
|
data: normalize$1(fileContents),
|
|
@@ -14189,10 +14189,10 @@ function getEntrypoint(filesystem) {
|
|
|
14189
14189
|
|
|
14190
14190
|
//#endregion
|
|
14191
14191
|
//#region node_modules/@scalar/openapi-parser/dist/utils/traverse.js
|
|
14192
|
-
function traverse(content, transform, path$
|
|
14192
|
+
function traverse(content, transform, path$5 = []) {
|
|
14193
14193
|
const result = {};
|
|
14194
14194
|
for (const [key, value] of Object.entries(content)) {
|
|
14195
|
-
const currentPath = [...path$
|
|
14195
|
+
const currentPath = [...path$5, key];
|
|
14196
14196
|
if (Array.isArray(value)) {
|
|
14197
14197
|
result[key] = value.map((item, index) => {
|
|
14198
14198
|
if (typeof item === "object" && !Array.isArray(item) && item !== null) return traverse(item, transform, [...currentPath, index.toString()]);
|
|
@@ -14206,7 +14206,7 @@ function traverse(content, transform, path$4 = []) {
|
|
|
14206
14206
|
}
|
|
14207
14207
|
result[key] = value;
|
|
14208
14208
|
}
|
|
14209
|
-
return transform(result, path$
|
|
14209
|
+
return transform(result, path$5);
|
|
14210
14210
|
}
|
|
14211
14211
|
|
|
14212
14212
|
//#endregion
|
|
@@ -14273,8 +14273,8 @@ function unescapeJsonPointer(uri) {
|
|
|
14273
14273
|
|
|
14274
14274
|
//#endregion
|
|
14275
14275
|
//#region node_modules/@scalar/openapi-parser/dist/utils/get-segments-from-path.js
|
|
14276
|
-
function getSegmentsFromPath(path$
|
|
14277
|
-
return path$
|
|
14276
|
+
function getSegmentsFromPath(path$5) {
|
|
14277
|
+
return path$5.split("/").slice(1).map(unescapeJsonPointer);
|
|
14278
14278
|
}
|
|
14279
14279
|
|
|
14280
14280
|
//#endregion
|
|
@@ -14328,7 +14328,7 @@ function resolveUri(uri, options, file, filesystem, resolve$1, errors$4) {
|
|
|
14328
14328
|
});
|
|
14329
14329
|
return;
|
|
14330
14330
|
}
|
|
14331
|
-
const [prefix, path$
|
|
14331
|
+
const [prefix, path$5] = uri.split("#", 2);
|
|
14332
14332
|
const isDifferentFile = prefix !== file.filename;
|
|
14333
14333
|
if (prefix && isDifferentFile) {
|
|
14334
14334
|
const externalReference = filesystem.find((entry) => {
|
|
@@ -14342,10 +14342,10 @@ function resolveUri(uri, options, file, filesystem, resolve$1, errors$4) {
|
|
|
14342
14342
|
});
|
|
14343
14343
|
return;
|
|
14344
14344
|
}
|
|
14345
|
-
if (path$
|
|
14346
|
-
return resolveUri(`#${path$
|
|
14345
|
+
if (path$5 === void 0) return externalReference.specification;
|
|
14346
|
+
return resolveUri(`#${path$5}`, options, resolve$1(externalReference), filesystem, resolve$1, errors$4);
|
|
14347
14347
|
}
|
|
14348
|
-
const segments = getSegmentsFromPath(path$
|
|
14348
|
+
const segments = getSegmentsFromPath(path$5);
|
|
14349
14349
|
try {
|
|
14350
14350
|
return segments.reduce((acc, key) => {
|
|
14351
14351
|
return acc[key];
|
|
@@ -15271,13 +15271,13 @@ const deserialize = (input) => {
|
|
|
15271
15271
|
|
|
15272
15272
|
//#endregion
|
|
15273
15273
|
//#region src/storage.ts
|
|
15274
|
-
const read = async (path$
|
|
15275
|
-
return deserialize(await fs.promises.readFile(path$
|
|
15274
|
+
const read = async (path$5) => {
|
|
15275
|
+
return deserialize(await fs.promises.readFile(path$5, "utf-8"));
|
|
15276
15276
|
};
|
|
15277
|
-
const store = async (path$
|
|
15277
|
+
const store = async (path$5, data) => {
|
|
15278
15278
|
const raw = serialize(data);
|
|
15279
|
-
debug$1(`Storage: Storing ${Buffer.byteLength(raw, "utf-8")} bytes to ${path$
|
|
15280
|
-
await fs.promises.writeFile(path$
|
|
15279
|
+
debug$1(`Storage: Storing ${Buffer.byteLength(raw, "utf-8")} bytes to ${path$5}`);
|
|
15280
|
+
await fs.promises.writeFile(path$5, raw, "utf-8");
|
|
15281
15281
|
};
|
|
15282
15282
|
var Storage = class {
|
|
15283
15283
|
data = null;
|
|
@@ -15301,37 +15301,37 @@ var Storage = class {
|
|
|
15301
15301
|
}
|
|
15302
15302
|
return this.data;
|
|
15303
15303
|
}
|
|
15304
|
-
async add(path$
|
|
15304
|
+
async add(path$5, measurement) {
|
|
15305
15305
|
const data = await this.ensureLoaded();
|
|
15306
|
-
data.set(path$
|
|
15306
|
+
data.set(path$5, [...data.get(path$5) || [], [
|
|
15307
15307
|
measurement.timestamp,
|
|
15308
15308
|
measurement.status,
|
|
15309
15309
|
measurement.durationMs,
|
|
15310
15310
|
measurement.url
|
|
15311
15311
|
]]);
|
|
15312
|
-
this.updatedPaths.add(path$
|
|
15312
|
+
this.updatedPaths.add(path$5);
|
|
15313
15313
|
}
|
|
15314
15314
|
async flush() {
|
|
15315
15315
|
const data = await this.ensureLoaded();
|
|
15316
|
-
for (const path$
|
|
15316
|
+
for (const path$5 of data.keys()) if (!this.updatedPaths.has(path$5)) this.data.delete(path$5);
|
|
15317
15317
|
const paths = Array.from(data.keys());
|
|
15318
15318
|
const bytesPerPath = Math.floor(this.maxSpaceUsageBytes / paths.length);
|
|
15319
|
-
for (const path$
|
|
15320
|
-
const measurements = data.get(path$
|
|
15319
|
+
for (const path$5 of paths) {
|
|
15320
|
+
const measurements = data.get(path$5);
|
|
15321
15321
|
if (!measurements) continue;
|
|
15322
15322
|
const approxBytes = Buffer.byteLength(serialize(measurements), "utf-8");
|
|
15323
15323
|
if (approxBytes > bytesPerPath) {
|
|
15324
15324
|
const reductionFactor = approxBytes / bytesPerPath;
|
|
15325
15325
|
const itemsToKeep = Math.floor(measurements.length / reductionFactor);
|
|
15326
15326
|
const trimmed = measurements.slice(-itemsToKeep);
|
|
15327
|
-
data.set(path$
|
|
15328
|
-
debug$1(`Storage: trimmed data for path ${path$
|
|
15327
|
+
data.set(path$5, trimmed);
|
|
15328
|
+
debug$1(`Storage: trimmed data for path ${path$5} from ${measurements.length} to ${trimmed.length} items`);
|
|
15329
15329
|
}
|
|
15330
15330
|
}
|
|
15331
15331
|
await store(this.storagePath, data);
|
|
15332
15332
|
}
|
|
15333
|
-
async getState(path$
|
|
15334
|
-
const pathData = (await this.ensureLoaded()).get(path$
|
|
15333
|
+
async getState(path$5) {
|
|
15334
|
+
const pathData = (await this.ensureLoaded()).get(path$5);
|
|
15335
15335
|
const current = pathData ? pathData[pathData.length - 1] : null;
|
|
15336
15336
|
const previous = pathData && pathData.length > 1 ? pathData[pathData.length - 2] : null;
|
|
15337
15337
|
return {
|
|
@@ -15349,8 +15349,8 @@ var Storage = class {
|
|
|
15349
15349
|
} : null
|
|
15350
15350
|
};
|
|
15351
15351
|
}
|
|
15352
|
-
async getHistory(path$
|
|
15353
|
-
return ((await this.ensureLoaded()).get(path$
|
|
15352
|
+
async getHistory(path$5) {
|
|
15353
|
+
return ((await this.ensureLoaded()).get(path$5) ?? []).map(([timestamp$3, status, durationMs]) => ({
|
|
15354
15354
|
timestamp: timestamp$3,
|
|
15355
15355
|
status,
|
|
15356
15356
|
durationMs
|
|
@@ -22775,9 +22775,9 @@ var require_mime_types = /* @__PURE__ */ __commonJS({ "node_modules/mime-types/i
|
|
|
22775
22775
|
* @param {string} path
|
|
22776
22776
|
* @return {boolean|string}
|
|
22777
22777
|
*/
|
|
22778
|
-
function lookup(path$
|
|
22779
|
-
if (!path$
|
|
22780
|
-
var extension$1 = extname("x." + path$
|
|
22778
|
+
function lookup(path$5) {
|
|
22779
|
+
if (!path$5 || typeof path$5 !== "string") return false;
|
|
22780
|
+
var extension$1 = extname("x." + path$5).toLowerCase().substr(1);
|
|
22781
22781
|
if (!extension$1) return false;
|
|
22782
22782
|
return exports.types[extension$1] || false;
|
|
22783
22783
|
}
|
|
@@ -23817,7 +23817,7 @@ var require_populate = /* @__PURE__ */ __commonJS({ "node_modules/form-data/lib/
|
|
|
23817
23817
|
var require_form_data = /* @__PURE__ */ __commonJS({ "node_modules/form-data/lib/form_data.js": ((exports, module) => {
|
|
23818
23818
|
var CombinedStream = require_combined_stream();
|
|
23819
23819
|
var util$1 = __require("util");
|
|
23820
|
-
var path$
|
|
23820
|
+
var path$3 = __require("path");
|
|
23821
23821
|
var http$3 = __require("http");
|
|
23822
23822
|
var https$3 = __require("https");
|
|
23823
23823
|
var parseUrl$2 = __require("url").parse;
|
|
@@ -23914,9 +23914,9 @@ var require_form_data = /* @__PURE__ */ __commonJS({ "node_modules/form-data/lib
|
|
|
23914
23914
|
};
|
|
23915
23915
|
FormData$2.prototype._getContentDisposition = function(value, options) {
|
|
23916
23916
|
var filename;
|
|
23917
|
-
if (typeof options.filepath === "string") filename = path$
|
|
23918
|
-
else if (options.filename || value && (value.name || value.path)) filename = path$
|
|
23919
|
-
else if (value && value.readable && hasOwn(value, "httpVersion")) filename = path$
|
|
23917
|
+
if (typeof options.filepath === "string") filename = path$3.normalize(options.filepath).replace(/\\/g, "/");
|
|
23918
|
+
else if (options.filename || value && (value.name || value.path)) filename = path$3.basename(options.filename || value && (value.name || value.path));
|
|
23919
|
+
else if (value && value.readable && hasOwn(value, "httpVersion")) filename = path$3.basename(value.client._httpMessage.path || "");
|
|
23920
23920
|
if (filename) return "filename=\"" + filename + "\"";
|
|
23921
23921
|
};
|
|
23922
23922
|
FormData$2.prototype._getContentType = function(value, options) {
|
|
@@ -23997,7 +23997,7 @@ var require_form_data = /* @__PURE__ */ __commonJS({ "node_modules/form-data/lib
|
|
|
23997
23997
|
FormData$2.prototype.submit = function(params, cb) {
|
|
23998
23998
|
var request;
|
|
23999
23999
|
var options;
|
|
24000
|
-
var defaults$
|
|
24000
|
+
var defaults$1 = { method: "post" };
|
|
24001
24001
|
if (typeof params === "string") {
|
|
24002
24002
|
params = parseUrl$2(params);
|
|
24003
24003
|
options = populate({
|
|
@@ -24005,9 +24005,9 @@ var require_form_data = /* @__PURE__ */ __commonJS({ "node_modules/form-data/lib
|
|
|
24005
24005
|
path: params.pathname,
|
|
24006
24006
|
host: params.hostname,
|
|
24007
24007
|
protocol: params.protocol
|
|
24008
|
-
}, defaults$
|
|
24008
|
+
}, defaults$1);
|
|
24009
24009
|
} else {
|
|
24010
|
-
options = populate(params, defaults$
|
|
24010
|
+
options = populate(params, defaults$1);
|
|
24011
24011
|
if (!options.port) options.port = options.protocol === "https:" ? 443 : 80;
|
|
24012
24012
|
}
|
|
24013
24013
|
options.headers = this.getHeaders(params.headers);
|
|
@@ -24048,76 +24048,6 @@ var require_form_data = /* @__PURE__ */ __commonJS({ "node_modules/form-data/lib
|
|
|
24048
24048
|
module.exports = FormData$2;
|
|
24049
24049
|
}) });
|
|
24050
24050
|
|
|
24051
|
-
//#endregion
|
|
24052
|
-
//#region node_modules/proxy-from-env/index.js
|
|
24053
|
-
var require_proxy_from_env = /* @__PURE__ */ __commonJS({ "node_modules/proxy-from-env/index.js": ((exports) => {
|
|
24054
|
-
var parseUrl$1 = __require("url").parse;
|
|
24055
|
-
var DEFAULT_PORTS = {
|
|
24056
|
-
ftp: 21,
|
|
24057
|
-
gopher: 70,
|
|
24058
|
-
http: 80,
|
|
24059
|
-
https: 443,
|
|
24060
|
-
ws: 80,
|
|
24061
|
-
wss: 443
|
|
24062
|
-
};
|
|
24063
|
-
var stringEndsWith = String.prototype.endsWith || function(s) {
|
|
24064
|
-
return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
|
|
24065
|
-
};
|
|
24066
|
-
/**
|
|
24067
|
-
* @param {string|object} url - The URL, or the result from url.parse.
|
|
24068
|
-
* @return {string} The URL of the proxy that should handle the request to the
|
|
24069
|
-
* given URL. If no proxy is set, this will be an empty string.
|
|
24070
|
-
*/
|
|
24071
|
-
function getProxyForUrl(url$2) {
|
|
24072
|
-
var parsedUrl = typeof url$2 === "string" ? parseUrl$1(url$2) : url$2 || {};
|
|
24073
|
-
var proto = parsedUrl.protocol;
|
|
24074
|
-
var hostname = parsedUrl.host;
|
|
24075
|
-
var port = parsedUrl.port;
|
|
24076
|
-
if (typeof hostname !== "string" || !hostname || typeof proto !== "string") return "";
|
|
24077
|
-
proto = proto.split(":", 1)[0];
|
|
24078
|
-
hostname = hostname.replace(/:\d*$/, "");
|
|
24079
|
-
port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
|
|
24080
|
-
if (!shouldProxy(hostname, port)) return "";
|
|
24081
|
-
var proxy = getEnv("npm_config_" + proto + "_proxy") || getEnv(proto + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy");
|
|
24082
|
-
if (proxy && proxy.indexOf("://") === -1) proxy = proto + "://" + proxy;
|
|
24083
|
-
return proxy;
|
|
24084
|
-
}
|
|
24085
|
-
/**
|
|
24086
|
-
* Determines whether a given URL should be proxied.
|
|
24087
|
-
*
|
|
24088
|
-
* @param {string} hostname - The host name of the URL.
|
|
24089
|
-
* @param {number} port - The effective port of the URL.
|
|
24090
|
-
* @returns {boolean} Whether the given URL should be proxied.
|
|
24091
|
-
* @private
|
|
24092
|
-
*/
|
|
24093
|
-
function shouldProxy(hostname, port) {
|
|
24094
|
-
var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase();
|
|
24095
|
-
if (!NO_PROXY) return true;
|
|
24096
|
-
if (NO_PROXY === "*") return false;
|
|
24097
|
-
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
24098
|
-
if (!proxy) return true;
|
|
24099
|
-
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
24100
|
-
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
24101
|
-
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
24102
|
-
if (parsedProxyPort && parsedProxyPort !== port) return true;
|
|
24103
|
-
if (!/^[.*]/.test(parsedProxyHostname)) return hostname !== parsedProxyHostname;
|
|
24104
|
-
if (parsedProxyHostname.charAt(0) === "*") parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
24105
|
-
return !stringEndsWith.call(hostname, parsedProxyHostname);
|
|
24106
|
-
});
|
|
24107
|
-
}
|
|
24108
|
-
/**
|
|
24109
|
-
* Get the value for an environment variable.
|
|
24110
|
-
*
|
|
24111
|
-
* @param {string} key - The name of the environment variable.
|
|
24112
|
-
* @return {string} The value of the environment variable.
|
|
24113
|
-
* @private
|
|
24114
|
-
*/
|
|
24115
|
-
function getEnv(key) {
|
|
24116
|
-
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
24117
|
-
}
|
|
24118
|
-
exports.getProxyForUrl = getProxyForUrl;
|
|
24119
|
-
}) });
|
|
24120
|
-
|
|
24121
24051
|
//#endregion
|
|
24122
24052
|
//#region node_modules/follow-redirects/debug.js
|
|
24123
24053
|
var require_debug = /* @__PURE__ */ __commonJS({ "node_modules/follow-redirects/debug.js": ((exports, module) => {
|
|
@@ -24156,6 +24086,11 @@ var require_follow_redirects = /* @__PURE__ */ __commonJS({ "node_modules/follow
|
|
|
24156
24086
|
} catch (error) {
|
|
24157
24087
|
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
24158
24088
|
}
|
|
24089
|
+
var sensitiveHeaders = [
|
|
24090
|
+
"Authorization",
|
|
24091
|
+
"Proxy-Authorization",
|
|
24092
|
+
"Cookie"
|
|
24093
|
+
];
|
|
24159
24094
|
var preservedUrlFields = [
|
|
24160
24095
|
"auth",
|
|
24161
24096
|
"host",
|
|
@@ -24209,6 +24144,7 @@ var require_follow_redirects = /* @__PURE__ */ __commonJS({ "node_modules/follow
|
|
|
24209
24144
|
self$1.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
|
|
24210
24145
|
}
|
|
24211
24146
|
};
|
|
24147
|
+
this._headerFilter = new RegExp("^(?:" + sensitiveHeaders.concat(options.sensitiveHeaders).map(escapeRegex).join("|") + ")$", "i");
|
|
24212
24148
|
this._performRequest();
|
|
24213
24149
|
}
|
|
24214
24150
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
@@ -24332,6 +24268,7 @@ var require_follow_redirects = /* @__PURE__ */ __commonJS({ "node_modules/follow
|
|
|
24332
24268
|
});
|
|
24333
24269
|
RedirectableRequest.prototype._sanitizeOptions = function(options) {
|
|
24334
24270
|
if (!options.headers) options.headers = {};
|
|
24271
|
+
if (!isArray$1(options.sensitiveHeaders)) options.sensitiveHeaders = [];
|
|
24335
24272
|
if (options.host) {
|
|
24336
24273
|
if (!options.hostname) options.hostname = options.host;
|
|
24337
24274
|
delete options.host;
|
|
@@ -24403,14 +24340,14 @@ var require_follow_redirects = /* @__PURE__ */ __commonJS({ "node_modules/follow
|
|
|
24403
24340
|
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
24404
24341
|
}
|
|
24405
24342
|
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
24406
|
-
var currentUrlParts = parseUrl(this._currentUrl);
|
|
24343
|
+
var currentUrlParts = parseUrl$1(this._currentUrl);
|
|
24407
24344
|
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
24408
24345
|
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url$1.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
24409
24346
|
var redirectUrl = resolveUrl(location, currentUrl);
|
|
24410
24347
|
debug$2("redirecting to", redirectUrl.href);
|
|
24411
24348
|
this._isRedirect = true;
|
|
24412
24349
|
spreadUrlObject(redirectUrl, this._options);
|
|
24413
|
-
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) removeMatchingHeaders(
|
|
24350
|
+
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) removeMatchingHeaders(this._headerFilter, this._options.headers);
|
|
24414
24351
|
if (isFunction$2(beforeRedirect)) {
|
|
24415
24352
|
var responseDetails = {
|
|
24416
24353
|
headers: response.headers,
|
|
@@ -24438,7 +24375,7 @@ var require_follow_redirects = /* @__PURE__ */ __commonJS({ "node_modules/follow
|
|
|
24438
24375
|
var wrappedProtocol = exports$1[scheme] = Object.create(nativeProtocol);
|
|
24439
24376
|
function request(input, options, callback) {
|
|
24440
24377
|
if (isURL(input)) input = spreadUrlObject(input);
|
|
24441
|
-
else if (isString$1(input)) input = spreadUrlObject(parseUrl(input));
|
|
24378
|
+
else if (isString$1(input)) input = spreadUrlObject(parseUrl$1(input));
|
|
24442
24379
|
else {
|
|
24443
24380
|
callback = options;
|
|
24444
24381
|
options = validateUrl(input);
|
|
@@ -24481,7 +24418,7 @@ var require_follow_redirects = /* @__PURE__ */ __commonJS({ "node_modules/follow
|
|
|
24481
24418
|
return exports$1;
|
|
24482
24419
|
}
|
|
24483
24420
|
function noop$1() {}
|
|
24484
|
-
function parseUrl(input) {
|
|
24421
|
+
function parseUrl$1(input) {
|
|
24485
24422
|
var parsed;
|
|
24486
24423
|
// istanbul ignore else
|
|
24487
24424
|
if (useNativeURL) parsed = new URL$1(input);
|
|
@@ -24493,7 +24430,7 @@ var require_follow_redirects = /* @__PURE__ */ __commonJS({ "node_modules/follow
|
|
|
24493
24430
|
}
|
|
24494
24431
|
function resolveUrl(relative$1, base) {
|
|
24495
24432
|
// istanbul ignore next
|
|
24496
|
-
return useNativeURL ? new URL$1(relative$1, base) : parseUrl(url$1.resolve(base, relative$1));
|
|
24433
|
+
return useNativeURL ? new URL$1(relative$1, base) : parseUrl$1(url$1.resolve(base, relative$1));
|
|
24497
24434
|
}
|
|
24498
24435
|
function validateUrl(input) {
|
|
24499
24436
|
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) throw new InvalidUrlError({ input: input.href || input });
|
|
@@ -24547,6 +24484,9 @@ var require_follow_redirects = /* @__PURE__ */ __commonJS({ "node_modules/follow
|
|
|
24547
24484
|
var dot = subdomain.length - domain.length - 1;
|
|
24548
24485
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
24549
24486
|
}
|
|
24487
|
+
function isArray$1(value) {
|
|
24488
|
+
return value instanceof Array;
|
|
24489
|
+
}
|
|
24550
24490
|
function isString$1(value) {
|
|
24551
24491
|
return typeof value === "string" || value instanceof String;
|
|
24552
24492
|
}
|
|
@@ -24559,6 +24499,9 @@ var require_follow_redirects = /* @__PURE__ */ __commonJS({ "node_modules/follow
|
|
|
24559
24499
|
function isURL(value) {
|
|
24560
24500
|
return URL$1 && value instanceof URL$1;
|
|
24561
24501
|
}
|
|
24502
|
+
function escapeRegex(regex) {
|
|
24503
|
+
return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
|
|
24504
|
+
}
|
|
24562
24505
|
module.exports = wrap({
|
|
24563
24506
|
http: http$2,
|
|
24564
24507
|
https: https$2
|
|
@@ -24568,34 +24511,20 @@ var require_follow_redirects = /* @__PURE__ */ __commonJS({ "node_modules/follow
|
|
|
24568
24511
|
|
|
24569
24512
|
//#endregion
|
|
24570
24513
|
//#region node_modules/axios/dist/node/axios.cjs
|
|
24571
|
-
/*! Axios v1.
|
|
24514
|
+
/*! Axios v1.16.0 Copyright (c) 2026 Matt Zabriskie and contributors */
|
|
24572
24515
|
var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/axios.cjs": ((exports, module) => {
|
|
24573
|
-
|
|
24574
|
-
|
|
24575
|
-
|
|
24576
|
-
|
|
24577
|
-
|
|
24578
|
-
|
|
24579
|
-
|
|
24580
|
-
|
|
24581
|
-
|
|
24582
|
-
|
|
24583
|
-
|
|
24584
|
-
|
|
24585
|
-
function _interopDefaultLegacy(e$1) {
|
|
24586
|
-
return e$1 && typeof e$1 === "object" && "default" in e$1 ? e$1 : { "default": e$1 };
|
|
24587
|
-
}
|
|
24588
|
-
const FormData__default = /* @__PURE__ */ _interopDefaultLegacy(FormData$1);
|
|
24589
|
-
const crypto__default = /* @__PURE__ */ _interopDefaultLegacy(crypto);
|
|
24590
|
-
const url__default = /* @__PURE__ */ _interopDefaultLegacy(url);
|
|
24591
|
-
const proxyFromEnv__default = /* @__PURE__ */ _interopDefaultLegacy(proxyFromEnv);
|
|
24592
|
-
const http__default = /* @__PURE__ */ _interopDefaultLegacy(http$1);
|
|
24593
|
-
const https__default = /* @__PURE__ */ _interopDefaultLegacy(https$1);
|
|
24594
|
-
const http2__default = /* @__PURE__ */ _interopDefaultLegacy(http2);
|
|
24595
|
-
const util__default = /* @__PURE__ */ _interopDefaultLegacy(util);
|
|
24596
|
-
const followRedirects__default = /* @__PURE__ */ _interopDefaultLegacy(followRedirects);
|
|
24597
|
-
const zlib__default = /* @__PURE__ */ _interopDefaultLegacy(zlib);
|
|
24598
|
-
const stream__default = /* @__PURE__ */ _interopDefaultLegacy(stream);
|
|
24516
|
+
var FormData$1 = require_form_data();
|
|
24517
|
+
var crypto = __require("crypto");
|
|
24518
|
+
var url = __require("url");
|
|
24519
|
+
var http$1 = __require("http");
|
|
24520
|
+
var https$1 = __require("https");
|
|
24521
|
+
var http2 = __require("http2");
|
|
24522
|
+
var util = __require("util");
|
|
24523
|
+
var path$2 = __require("path");
|
|
24524
|
+
var followRedirects = require_follow_redirects();
|
|
24525
|
+
var zlib = __require("zlib");
|
|
24526
|
+
var stream = __require("stream");
|
|
24527
|
+
var events = __require("events");
|
|
24599
24528
|
/**
|
|
24600
24529
|
* Create a bound version of a function with a specified `this` context
|
|
24601
24530
|
*
|
|
@@ -24621,7 +24550,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
24621
24550
|
};
|
|
24622
24551
|
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
24623
24552
|
/**
|
|
24624
|
-
* Determine if a value is
|
|
24553
|
+
* Determine if a value is a non-null object
|
|
24625
24554
|
*
|
|
24626
24555
|
* @param {Object} val The value to test
|
|
24627
24556
|
*
|
|
@@ -24714,8 +24643,8 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
24714
24643
|
*/
|
|
24715
24644
|
const isPlainObject = (val) => {
|
|
24716
24645
|
if (kindOf(val) !== "object") return false;
|
|
24717
|
-
const prototype$
|
|
24718
|
-
return (prototype$
|
|
24646
|
+
const prototype$1 = getPrototypeOf(val);
|
|
24647
|
+
return (prototype$1 === null || prototype$1 === Object.prototype || Object.getPrototypeOf(prototype$1) === null) && !(toStringTag in val) && !(iterator in val);
|
|
24719
24648
|
};
|
|
24720
24649
|
/**
|
|
24721
24650
|
* Determine if a value is an empty object (safely handles Buffers)
|
|
@@ -24749,6 +24678,29 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
24749
24678
|
*/
|
|
24750
24679
|
const isFile = kindOfTest("File");
|
|
24751
24680
|
/**
|
|
24681
|
+
* Determine if a value is a React Native Blob
|
|
24682
|
+
* React Native "blob": an object with a `uri` attribute. Optionally, it can
|
|
24683
|
+
* also have a `name` and `type` attribute to specify filename and content type
|
|
24684
|
+
*
|
|
24685
|
+
* @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
|
|
24686
|
+
*
|
|
24687
|
+
* @param {*} value The value to test
|
|
24688
|
+
*
|
|
24689
|
+
* @returns {boolean} True if value is a React Native Blob, otherwise false
|
|
24690
|
+
*/
|
|
24691
|
+
const isReactNativeBlob = (value) => {
|
|
24692
|
+
return !!(value && typeof value.uri !== "undefined");
|
|
24693
|
+
};
|
|
24694
|
+
/**
|
|
24695
|
+
* Determine if environment is React Native
|
|
24696
|
+
* ReactNative `FormData` has a non-standard `getParts()` method
|
|
24697
|
+
*
|
|
24698
|
+
* @param {*} formData The formData to test
|
|
24699
|
+
*
|
|
24700
|
+
* @returns {boolean} True if environment is React Native, otherwise false
|
|
24701
|
+
*/
|
|
24702
|
+
const isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
24703
|
+
/**
|
|
24752
24704
|
* Determine if a value is a Blob
|
|
24753
24705
|
*
|
|
24754
24706
|
* @param {*} val The value to test
|
|
@@ -24761,7 +24713,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
24761
24713
|
*
|
|
24762
24714
|
* @param {*} val The value to test
|
|
24763
24715
|
*
|
|
24764
|
-
* @returns {boolean} True if value is a
|
|
24716
|
+
* @returns {boolean} True if value is a FileList, otherwise false
|
|
24765
24717
|
*/
|
|
24766
24718
|
const isFileList = kindOfTest("FileList");
|
|
24767
24719
|
/**
|
|
@@ -24779,9 +24731,23 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
24779
24731
|
*
|
|
24780
24732
|
* @returns {boolean} True if value is an FormData, otherwise false
|
|
24781
24733
|
*/
|
|
24734
|
+
function getGlobal() {
|
|
24735
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
24736
|
+
if (typeof self !== "undefined") return self;
|
|
24737
|
+
if (typeof window !== "undefined") return window;
|
|
24738
|
+
if (typeof global !== "undefined") return global;
|
|
24739
|
+
return {};
|
|
24740
|
+
}
|
|
24741
|
+
const G = getGlobal();
|
|
24742
|
+
const FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
|
|
24782
24743
|
const isFormData = (thing) => {
|
|
24783
|
-
|
|
24784
|
-
|
|
24744
|
+
if (!thing) return false;
|
|
24745
|
+
if (FormDataCtor && thing instanceof FormDataCtor) return true;
|
|
24746
|
+
const proto = getPrototypeOf(thing);
|
|
24747
|
+
if (!proto || proto === Object.prototype) return false;
|
|
24748
|
+
if (!isFunction$1(thing.append)) return false;
|
|
24749
|
+
const kind = kindOf(thing);
|
|
24750
|
+
return kind === "formdata" || kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]";
|
|
24785
24751
|
};
|
|
24786
24752
|
/**
|
|
24787
24753
|
* Determine if a value is a URLSearchParams object
|
|
@@ -24804,7 +24770,9 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
24804
24770
|
*
|
|
24805
24771
|
* @returns {String} The String freed of excess whitespace
|
|
24806
24772
|
*/
|
|
24807
|
-
const trim = (str) =>
|
|
24773
|
+
const trim = (str) => {
|
|
24774
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
24775
|
+
};
|
|
24808
24776
|
/**
|
|
24809
24777
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
24810
24778
|
*
|
|
@@ -24814,10 +24782,11 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
24814
24782
|
* If 'obj' is an Object callback will be called passing
|
|
24815
24783
|
* the value, key, and complete object for each property.
|
|
24816
24784
|
*
|
|
24817
|
-
* @param {Object|Array} obj The object to iterate
|
|
24785
|
+
* @param {Object|Array<unknown>} obj The object to iterate
|
|
24818
24786
|
* @param {Function} fn The callback to invoke for each item
|
|
24819
24787
|
*
|
|
24820
|
-
* @param {
|
|
24788
|
+
* @param {Object} [options]
|
|
24789
|
+
* @param {Boolean} [options.allOwnKeys = false]
|
|
24821
24790
|
* @returns {any}
|
|
24822
24791
|
*/
|
|
24823
24792
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
@@ -24837,6 +24806,14 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
24837
24806
|
}
|
|
24838
24807
|
}
|
|
24839
24808
|
}
|
|
24809
|
+
/**
|
|
24810
|
+
* Finds a key in an object, case-insensitive, returning the actual key name.
|
|
24811
|
+
* Returns null if the object is a Buffer or if no match is found.
|
|
24812
|
+
*
|
|
24813
|
+
* @param {Object} obj - The object to search.
|
|
24814
|
+
* @param {string} key - The key to find (case-insensitive).
|
|
24815
|
+
* @returns {?string} The actual key name if found, otherwise null.
|
|
24816
|
+
*/
|
|
24840
24817
|
function findKey(obj, key) {
|
|
24841
24818
|
if (isBuffer(obj)) return null;
|
|
24842
24819
|
key = key.toLowerCase();
|
|
@@ -24864,7 +24841,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
24864
24841
|
* Example:
|
|
24865
24842
|
*
|
|
24866
24843
|
* ```js
|
|
24867
|
-
*
|
|
24844
|
+
* const result = merge({foo: 123}, {foo: 456});
|
|
24868
24845
|
* console.log(result.foo); // outputs 456
|
|
24869
24846
|
* ```
|
|
24870
24847
|
*
|
|
@@ -24872,17 +24849,19 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
24872
24849
|
*
|
|
24873
24850
|
* @returns {Object} Result of all merge properties
|
|
24874
24851
|
*/
|
|
24875
|
-
function merge() {
|
|
24852
|
+
function merge(...objs) {
|
|
24876
24853
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
24877
24854
|
const result = {};
|
|
24878
24855
|
const assignValue = (val, key) => {
|
|
24856
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") return;
|
|
24879
24857
|
const targetKey = caseless && findKey(result, key) || key;
|
|
24880
|
-
|
|
24858
|
+
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
24859
|
+
if (isPlainObject(existing) && isPlainObject(val)) result[targetKey] = merge(existing, val);
|
|
24881
24860
|
else if (isPlainObject(val)) result[targetKey] = merge({}, val);
|
|
24882
24861
|
else if (isArray(val)) result[targetKey] = val.slice();
|
|
24883
24862
|
else if (!skipUndefined || !isUndefined(val)) result[targetKey] = val;
|
|
24884
24863
|
};
|
|
24885
|
-
for (let i = 0, l =
|
|
24864
|
+
for (let i = 0, l = objs.length; i < l; i++) objs[i] && forEach(objs[i], assignValue);
|
|
24886
24865
|
return result;
|
|
24887
24866
|
}
|
|
24888
24867
|
/**
|
|
@@ -24892,13 +24871,26 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
24892
24871
|
* @param {Object} b The object to copy properties from
|
|
24893
24872
|
* @param {Object} thisArg The object to bind function to
|
|
24894
24873
|
*
|
|
24895
|
-
* @param {
|
|
24874
|
+
* @param {Object} [options]
|
|
24875
|
+
* @param {Boolean} [options.allOwnKeys]
|
|
24896
24876
|
* @returns {Object} The resulting value of object a
|
|
24897
24877
|
*/
|
|
24898
24878
|
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
24899
24879
|
forEach(b, (val, key) => {
|
|
24900
|
-
if (thisArg && isFunction$1(val)) a
|
|
24901
|
-
|
|
24880
|
+
if (thisArg && isFunction$1(val)) Object.defineProperty(a, key, {
|
|
24881
|
+
__proto__: null,
|
|
24882
|
+
value: bind(val, thisArg),
|
|
24883
|
+
writable: true,
|
|
24884
|
+
enumerable: true,
|
|
24885
|
+
configurable: true
|
|
24886
|
+
});
|
|
24887
|
+
else Object.defineProperty(a, key, {
|
|
24888
|
+
__proto__: null,
|
|
24889
|
+
value: val,
|
|
24890
|
+
writable: true,
|
|
24891
|
+
enumerable: true,
|
|
24892
|
+
configurable: true
|
|
24893
|
+
});
|
|
24902
24894
|
}, { allOwnKeys });
|
|
24903
24895
|
return a;
|
|
24904
24896
|
};
|
|
@@ -24922,10 +24914,19 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
24922
24914
|
*
|
|
24923
24915
|
* @returns {void}
|
|
24924
24916
|
*/
|
|
24925
|
-
const inherits = (constructor, superConstructor, props, descriptors
|
|
24926
|
-
constructor.prototype = Object.create(superConstructor.prototype, descriptors
|
|
24927
|
-
constructor.prototype
|
|
24928
|
-
|
|
24917
|
+
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
24918
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
24919
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
24920
|
+
__proto__: null,
|
|
24921
|
+
value: constructor,
|
|
24922
|
+
writable: true,
|
|
24923
|
+
enumerable: false,
|
|
24924
|
+
configurable: true
|
|
24925
|
+
});
|
|
24926
|
+
Object.defineProperty(constructor, "super", {
|
|
24927
|
+
__proto__: null,
|
|
24928
|
+
value: superConstructor.prototype
|
|
24929
|
+
});
|
|
24929
24930
|
props && Object.assign(constructor.prototype, props);
|
|
24930
24931
|
};
|
|
24931
24932
|
/**
|
|
@@ -25049,9 +25050,9 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25049
25050
|
*/
|
|
25050
25051
|
const isRegExp = kindOfTest("RegExp");
|
|
25051
25052
|
const reduceDescriptors = (obj, reducer) => {
|
|
25052
|
-
const descriptors
|
|
25053
|
+
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
25053
25054
|
const reducedDescriptors = {};
|
|
25054
|
-
forEach(descriptors
|
|
25055
|
+
forEach(descriptors, (descriptor, name) => {
|
|
25055
25056
|
let ret;
|
|
25056
25057
|
if ((ret = reducer(descriptor, name, obj)) !== false) reducedDescriptors[name] = ret || descriptor;
|
|
25057
25058
|
});
|
|
@@ -25067,7 +25068,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25067
25068
|
"arguments",
|
|
25068
25069
|
"caller",
|
|
25069
25070
|
"callee"
|
|
25070
|
-
].
|
|
25071
|
+
].includes(name)) return false;
|
|
25071
25072
|
const value = obj[name];
|
|
25072
25073
|
if (!isFunction$1(value)) return;
|
|
25073
25074
|
descriptor.enumerable = false;
|
|
@@ -25080,6 +25081,14 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25080
25081
|
};
|
|
25081
25082
|
});
|
|
25082
25083
|
};
|
|
25084
|
+
/**
|
|
25085
|
+
* Converts an array or a delimited string into an object set with values as keys and true as values.
|
|
25086
|
+
* Useful for fast membership checks.
|
|
25087
|
+
*
|
|
25088
|
+
* @param {Array|string} arrayOrString - The array or string to convert.
|
|
25089
|
+
* @param {string} delimiter - The delimiter to use if input is a string.
|
|
25090
|
+
* @returns {Object} An object with keys from the array or string, values set to true.
|
|
25091
|
+
*/
|
|
25083
25092
|
const toObjectSet = (arrayOrString, delimiter$1) => {
|
|
25084
25093
|
const obj = {};
|
|
25085
25094
|
const define$1 = (arr) => {
|
|
@@ -25104,6 +25113,12 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25104
25113
|
function isSpecCompliantForm(thing) {
|
|
25105
25114
|
return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
25106
25115
|
}
|
|
25116
|
+
/**
|
|
25117
|
+
* Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
|
|
25118
|
+
*
|
|
25119
|
+
* @param {Object} obj - The object to convert.
|
|
25120
|
+
* @returns {Object} The JSON-compatible object.
|
|
25121
|
+
*/
|
|
25107
25122
|
const toJSONObject = (obj) => {
|
|
25108
25123
|
const stack = new Array(10);
|
|
25109
25124
|
const visit$6 = (source, i) => {
|
|
@@ -25125,8 +25140,28 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25125
25140
|
};
|
|
25126
25141
|
return visit$6(obj, 0);
|
|
25127
25142
|
};
|
|
25143
|
+
/**
|
|
25144
|
+
* Determines if a value is an async function.
|
|
25145
|
+
*
|
|
25146
|
+
* @param {*} thing - The value to test.
|
|
25147
|
+
* @returns {boolean} True if value is an async function, otherwise false.
|
|
25148
|
+
*/
|
|
25128
25149
|
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
25150
|
+
/**
|
|
25151
|
+
* Determines if a value is thenable (has then and catch methods).
|
|
25152
|
+
*
|
|
25153
|
+
* @param {*} thing - The value to test.
|
|
25154
|
+
* @returns {boolean} True if value is thenable, otherwise false.
|
|
25155
|
+
*/
|
|
25129
25156
|
const isThenable = (thing) => thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
25157
|
+
/**
|
|
25158
|
+
* Provides a cross-platform setImmediate implementation.
|
|
25159
|
+
* Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
|
|
25160
|
+
*
|
|
25161
|
+
* @param {boolean} setImmediateSupported - Whether setImmediate is supported.
|
|
25162
|
+
* @param {boolean} postMessageSupported - Whether postMessage is supported.
|
|
25163
|
+
* @returns {Function} A function to schedule a callback asynchronously.
|
|
25164
|
+
*/
|
|
25130
25165
|
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
25131
25166
|
if (setImmediateSupported) return setImmediate;
|
|
25132
25167
|
return postMessageSupported ? ((token, callbacks) => {
|
|
@@ -25139,9 +25174,15 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25139
25174
|
};
|
|
25140
25175
|
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
25141
25176
|
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
25177
|
+
/**
|
|
25178
|
+
* Schedules a microtask or asynchronous callback as soon as possible.
|
|
25179
|
+
* Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
|
|
25180
|
+
*
|
|
25181
|
+
* @type {Function}
|
|
25182
|
+
*/
|
|
25142
25183
|
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
25143
25184
|
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
25144
|
-
|
|
25185
|
+
var utils$1 = {
|
|
25145
25186
|
isArray,
|
|
25146
25187
|
isArrayBuffer,
|
|
25147
25188
|
isBuffer,
|
|
@@ -25160,6 +25201,8 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25160
25201
|
isUndefined,
|
|
25161
25202
|
isDate,
|
|
25162
25203
|
isFile,
|
|
25204
|
+
isReactNativeBlob,
|
|
25205
|
+
isReactNative,
|
|
25163
25206
|
isBlob,
|
|
25164
25207
|
isRegExp,
|
|
25165
25208
|
isFunction: isFunction$1,
|
|
@@ -25200,257 +25243,567 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25200
25243
|
asap,
|
|
25201
25244
|
isIterable
|
|
25202
25245
|
};
|
|
25246
|
+
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
25247
|
+
"age",
|
|
25248
|
+
"authorization",
|
|
25249
|
+
"content-length",
|
|
25250
|
+
"content-type",
|
|
25251
|
+
"etag",
|
|
25252
|
+
"expires",
|
|
25253
|
+
"from",
|
|
25254
|
+
"host",
|
|
25255
|
+
"if-modified-since",
|
|
25256
|
+
"if-unmodified-since",
|
|
25257
|
+
"last-modified",
|
|
25258
|
+
"location",
|
|
25259
|
+
"max-forwards",
|
|
25260
|
+
"proxy-authorization",
|
|
25261
|
+
"referer",
|
|
25262
|
+
"retry-after",
|
|
25263
|
+
"user-agent"
|
|
25264
|
+
]);
|
|
25203
25265
|
/**
|
|
25204
|
-
*
|
|
25266
|
+
* Parse headers into an object
|
|
25205
25267
|
*
|
|
25206
|
-
*
|
|
25207
|
-
*
|
|
25208
|
-
*
|
|
25209
|
-
*
|
|
25210
|
-
*
|
|
25268
|
+
* ```
|
|
25269
|
+
* Date: Wed, 27 Aug 2014 08:58:49 GMT
|
|
25270
|
+
* Content-Type: application/json
|
|
25271
|
+
* Connection: keep-alive
|
|
25272
|
+
* Transfer-Encoding: chunked
|
|
25273
|
+
* ```
|
|
25274
|
+
*
|
|
25275
|
+
* @param {String} rawHeaders Headers needing to be parsed
|
|
25211
25276
|
*
|
|
25212
|
-
* @returns {
|
|
25277
|
+
* @returns {Object} Headers parsed into an object
|
|
25213
25278
|
*/
|
|
25214
|
-
|
|
25215
|
-
|
|
25216
|
-
|
|
25217
|
-
|
|
25218
|
-
|
|
25219
|
-
|
|
25220
|
-
|
|
25221
|
-
|
|
25222
|
-
|
|
25223
|
-
|
|
25224
|
-
|
|
25225
|
-
|
|
25226
|
-
|
|
25227
|
-
}
|
|
25228
|
-
utils$1.inherits(AxiosError, Error, { toJSON: function toJSON() {
|
|
25229
|
-
return {
|
|
25230
|
-
message: this.message,
|
|
25231
|
-
name: this.name,
|
|
25232
|
-
description: this.description,
|
|
25233
|
-
number: this.number,
|
|
25234
|
-
fileName: this.fileName,
|
|
25235
|
-
lineNumber: this.lineNumber,
|
|
25236
|
-
columnNumber: this.columnNumber,
|
|
25237
|
-
stack: this.stack,
|
|
25238
|
-
config: utils$1.toJSONObject(this.config),
|
|
25239
|
-
code: this.code,
|
|
25240
|
-
status: this.status
|
|
25241
|
-
};
|
|
25242
|
-
} });
|
|
25243
|
-
const prototype$1 = AxiosError.prototype;
|
|
25244
|
-
const descriptors = {};
|
|
25245
|
-
[
|
|
25246
|
-
"ERR_BAD_OPTION_VALUE",
|
|
25247
|
-
"ERR_BAD_OPTION",
|
|
25248
|
-
"ECONNABORTED",
|
|
25249
|
-
"ETIMEDOUT",
|
|
25250
|
-
"ERR_NETWORK",
|
|
25251
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
25252
|
-
"ERR_DEPRECATED",
|
|
25253
|
-
"ERR_BAD_RESPONSE",
|
|
25254
|
-
"ERR_BAD_REQUEST",
|
|
25255
|
-
"ERR_CANCELED",
|
|
25256
|
-
"ERR_NOT_SUPPORT",
|
|
25257
|
-
"ERR_INVALID_URL"
|
|
25258
|
-
].forEach((code) => {
|
|
25259
|
-
descriptors[code] = { value: code };
|
|
25260
|
-
});
|
|
25261
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
25262
|
-
Object.defineProperty(prototype$1, "isAxiosError", { value: true });
|
|
25263
|
-
AxiosError.from = (error, code, config$1, request, response, customProps) => {
|
|
25264
|
-
const axiosError = Object.create(prototype$1);
|
|
25265
|
-
utils$1.toFlatObject(error, axiosError, function filter(obj) {
|
|
25266
|
-
return obj !== Error.prototype;
|
|
25267
|
-
}, (prop) => {
|
|
25268
|
-
return prop !== "isAxiosError";
|
|
25269
|
-
});
|
|
25270
|
-
const msg = error && error.message ? error.message : "Error";
|
|
25271
|
-
const errCode = code == null && error ? error.code : code;
|
|
25272
|
-
AxiosError.call(axiosError, msg, errCode, config$1, request, response);
|
|
25273
|
-
if (error && axiosError.cause == null) Object.defineProperty(axiosError, "cause", {
|
|
25274
|
-
value: error,
|
|
25275
|
-
configurable: true
|
|
25279
|
+
var parseHeaders = (rawHeaders) => {
|
|
25280
|
+
const parsed = {};
|
|
25281
|
+
let key;
|
|
25282
|
+
let val;
|
|
25283
|
+
let i;
|
|
25284
|
+
rawHeaders && rawHeaders.split("\n").forEach(function parser$2(line) {
|
|
25285
|
+
i = line.indexOf(":");
|
|
25286
|
+
key = line.substring(0, i).trim().toLowerCase();
|
|
25287
|
+
val = line.substring(i + 1).trim();
|
|
25288
|
+
if (!key || parsed[key] && ignoreDuplicateOf[key]) return;
|
|
25289
|
+
if (key === "set-cookie") if (parsed[key]) parsed[key].push(val);
|
|
25290
|
+
else parsed[key] = [val];
|
|
25291
|
+
else parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
25276
25292
|
});
|
|
25277
|
-
|
|
25278
|
-
customProps && Object.assign(axiosError, customProps);
|
|
25279
|
-
return axiosError;
|
|
25293
|
+
return parsed;
|
|
25280
25294
|
};
|
|
25281
|
-
|
|
25282
|
-
|
|
25283
|
-
|
|
25284
|
-
|
|
25285
|
-
|
|
25286
|
-
|
|
25287
|
-
|
|
25288
|
-
|
|
25289
|
-
|
|
25295
|
+
const $internals = Symbol("internals");
|
|
25296
|
+
const INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
|
|
25297
|
+
function trimSPorHTAB(str) {
|
|
25298
|
+
let start = 0;
|
|
25299
|
+
let end = str.length;
|
|
25300
|
+
while (start < end) {
|
|
25301
|
+
const code = str.charCodeAt(start);
|
|
25302
|
+
if (code !== 9 && code !== 32) break;
|
|
25303
|
+
start += 1;
|
|
25304
|
+
}
|
|
25305
|
+
while (end > start) {
|
|
25306
|
+
const code = str.charCodeAt(end - 1);
|
|
25307
|
+
if (code !== 9 && code !== 32) break;
|
|
25308
|
+
end -= 1;
|
|
25309
|
+
}
|
|
25310
|
+
return start === 0 && end === str.length ? str : str.slice(start, end);
|
|
25290
25311
|
}
|
|
25291
|
-
|
|
25292
|
-
|
|
25293
|
-
*
|
|
25294
|
-
* @param {string} key - The key of the parameter.
|
|
25295
|
-
*
|
|
25296
|
-
* @returns {string} the key without the brackets.
|
|
25297
|
-
*/
|
|
25298
|
-
function removeBrackets(key) {
|
|
25299
|
-
return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
25312
|
+
function normalizeHeader(header) {
|
|
25313
|
+
return header && String(header).trim().toLowerCase();
|
|
25300
25314
|
}
|
|
25301
|
-
|
|
25302
|
-
|
|
25303
|
-
*
|
|
25304
|
-
* @param {string} path - The path to the current key.
|
|
25305
|
-
* @param {string} key - The key of the current object being iterated over.
|
|
25306
|
-
* @param {string} dots - If true, the key will be rendered with dots instead of brackets.
|
|
25307
|
-
*
|
|
25308
|
-
* @returns {string} The path to the current key.
|
|
25309
|
-
*/
|
|
25310
|
-
function renderKey(path$4, key, dots) {
|
|
25311
|
-
if (!path$4) return key;
|
|
25312
|
-
return path$4.concat(key).map(function each(token, i) {
|
|
25313
|
-
token = removeBrackets(token);
|
|
25314
|
-
return !dots && i ? "[" + token + "]" : token;
|
|
25315
|
-
}).join(dots ? "." : "");
|
|
25315
|
+
function sanitizeHeaderValue(str) {
|
|
25316
|
+
return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
|
|
25316
25317
|
}
|
|
25317
|
-
|
|
25318
|
-
|
|
25319
|
-
|
|
25320
|
-
* @param {Array<any>} arr - The array to check
|
|
25321
|
-
*
|
|
25322
|
-
* @returns {boolean}
|
|
25323
|
-
*/
|
|
25324
|
-
function isFlatArray(arr) {
|
|
25325
|
-
return utils$1.isArray(arr) && !arr.some(isVisitable);
|
|
25318
|
+
function normalizeValue(value) {
|
|
25319
|
+
if (value === false || value == null) return value;
|
|
25320
|
+
return utils$1.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
|
|
25326
25321
|
}
|
|
25327
|
-
|
|
25328
|
-
|
|
25329
|
-
|
|
25330
|
-
|
|
25331
|
-
|
|
25332
|
-
|
|
25333
|
-
|
|
25334
|
-
|
|
25335
|
-
|
|
25336
|
-
|
|
25337
|
-
|
|
25338
|
-
|
|
25339
|
-
|
|
25340
|
-
|
|
25341
|
-
|
|
25342
|
-
|
|
25343
|
-
|
|
25344
|
-
|
|
25345
|
-
*
|
|
25346
|
-
* @param {Object<any, any>} obj - The object to convert to form data.
|
|
25347
|
-
* @param {string} formData - The FormData object to append to.
|
|
25348
|
-
* @param {Object<string, any>} options
|
|
25349
|
-
*
|
|
25350
|
-
* @returns
|
|
25351
|
-
*/
|
|
25352
|
-
function toFormData(obj, formData, options) {
|
|
25353
|
-
if (!utils$1.isObject(obj)) throw new TypeError("target must be an object");
|
|
25354
|
-
formData = formData || new (FormData__default["default"] || FormData)();
|
|
25355
|
-
options = utils$1.toFlatObject(options, {
|
|
25356
|
-
metaTokens: true,
|
|
25357
|
-
dots: false,
|
|
25358
|
-
indexes: false
|
|
25359
|
-
}, false, function defined(option, source) {
|
|
25360
|
-
return !utils$1.isUndefined(source[option]);
|
|
25322
|
+
function parseTokens(str) {
|
|
25323
|
+
const tokens = Object.create(null);
|
|
25324
|
+
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
25325
|
+
let match;
|
|
25326
|
+
while (match = tokensRE.exec(str)) tokens[match[1]] = match[2];
|
|
25327
|
+
return tokens;
|
|
25328
|
+
}
|
|
25329
|
+
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
25330
|
+
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
25331
|
+
if (utils$1.isFunction(filter)) return filter.call(this, value, header);
|
|
25332
|
+
if (isHeaderNameFilter) value = header;
|
|
25333
|
+
if (!utils$1.isString(value)) return;
|
|
25334
|
+
if (utils$1.isString(filter)) return value.indexOf(filter) !== -1;
|
|
25335
|
+
if (utils$1.isRegExp(filter)) return filter.test(value);
|
|
25336
|
+
}
|
|
25337
|
+
function formatHeader(header) {
|
|
25338
|
+
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
25339
|
+
return char.toUpperCase() + str;
|
|
25361
25340
|
});
|
|
25362
|
-
|
|
25363
|
-
|
|
25364
|
-
const
|
|
25365
|
-
|
|
25366
|
-
|
|
25367
|
-
|
|
25368
|
-
|
|
25369
|
-
|
|
25370
|
-
|
|
25371
|
-
|
|
25372
|
-
|
|
25373
|
-
|
|
25374
|
-
|
|
25341
|
+
}
|
|
25342
|
+
function buildAccessors(obj, header) {
|
|
25343
|
+
const accessorName = utils$1.toCamelCase(" " + header);
|
|
25344
|
+
[
|
|
25345
|
+
"get",
|
|
25346
|
+
"set",
|
|
25347
|
+
"has"
|
|
25348
|
+
].forEach((methodName) => {
|
|
25349
|
+
Object.defineProperty(obj, methodName + accessorName, {
|
|
25350
|
+
__proto__: null,
|
|
25351
|
+
value: function(arg1, arg2, arg3) {
|
|
25352
|
+
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
25353
|
+
},
|
|
25354
|
+
configurable: true
|
|
25355
|
+
});
|
|
25356
|
+
});
|
|
25357
|
+
}
|
|
25358
|
+
var AxiosHeaders = class {
|
|
25359
|
+
constructor(headers) {
|
|
25360
|
+
headers && this.set(headers);
|
|
25375
25361
|
}
|
|
25376
|
-
|
|
25377
|
-
|
|
25378
|
-
|
|
25379
|
-
|
|
25380
|
-
|
|
25381
|
-
|
|
25382
|
-
|
|
25383
|
-
|
|
25384
|
-
|
|
25385
|
-
|
|
25386
|
-
|
|
25387
|
-
|
|
25388
|
-
|
|
25389
|
-
|
|
25390
|
-
|
|
25391
|
-
|
|
25392
|
-
}
|
|
25393
|
-
|
|
25394
|
-
|
|
25395
|
-
|
|
25396
|
-
|
|
25397
|
-
|
|
25362
|
+
set(header, valueOrRewrite, rewrite) {
|
|
25363
|
+
const self$1 = this;
|
|
25364
|
+
function setHeader(_value, _header, _rewrite) {
|
|
25365
|
+
const lHeader = normalizeHeader(_header);
|
|
25366
|
+
if (!lHeader) throw new Error("header name must be a non-empty string");
|
|
25367
|
+
const key = utils$1.findKey(self$1, lHeader);
|
|
25368
|
+
if (!key || self$1[key] === void 0 || _rewrite === true || _rewrite === void 0 && self$1[key] !== false) self$1[key || _header] = normalizeValue(_value);
|
|
25369
|
+
}
|
|
25370
|
+
const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
25371
|
+
if (utils$1.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
|
|
25372
|
+
else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) setHeaders(parseHeaders(header), valueOrRewrite);
|
|
25373
|
+
else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
|
|
25374
|
+
let obj = {}, dest, key;
|
|
25375
|
+
for (const entry of header) {
|
|
25376
|
+
if (!utils$1.isArray(entry)) throw TypeError("Object iterator must return a key-value pair");
|
|
25377
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
25378
|
+
}
|
|
25379
|
+
setHeaders(obj, valueOrRewrite);
|
|
25380
|
+
} else header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
25381
|
+
return this;
|
|
25382
|
+
}
|
|
25383
|
+
get(header, parser$2) {
|
|
25384
|
+
header = normalizeHeader(header);
|
|
25385
|
+
if (header) {
|
|
25386
|
+
const key = utils$1.findKey(this, header);
|
|
25387
|
+
if (key) {
|
|
25388
|
+
const value = this[key];
|
|
25389
|
+
if (!parser$2) return value;
|
|
25390
|
+
if (parser$2 === true) return parseTokens(value);
|
|
25391
|
+
if (utils$1.isFunction(parser$2)) return parser$2.call(this, value, key);
|
|
25392
|
+
if (utils$1.isRegExp(parser$2)) return parser$2.exec(value);
|
|
25393
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
25398
25394
|
}
|
|
25399
25395
|
}
|
|
25400
|
-
|
|
25401
|
-
|
|
25396
|
+
}
|
|
25397
|
+
has(header, matcher) {
|
|
25398
|
+
header = normalizeHeader(header);
|
|
25399
|
+
if (header) {
|
|
25400
|
+
const key = utils$1.findKey(this, header);
|
|
25401
|
+
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
25402
|
+
}
|
|
25402
25403
|
return false;
|
|
25403
25404
|
}
|
|
25404
|
-
|
|
25405
|
-
|
|
25406
|
-
|
|
25407
|
-
|
|
25408
|
-
|
|
25409
|
-
|
|
25410
|
-
|
|
25411
|
-
|
|
25412
|
-
|
|
25413
|
-
|
|
25414
|
-
|
|
25415
|
-
|
|
25405
|
+
delete(header, matcher) {
|
|
25406
|
+
const self$1 = this;
|
|
25407
|
+
let deleted = false;
|
|
25408
|
+
function deleteHeader(_header) {
|
|
25409
|
+
_header = normalizeHeader(_header);
|
|
25410
|
+
if (_header) {
|
|
25411
|
+
const key = utils$1.findKey(self$1, _header);
|
|
25412
|
+
if (key && (!matcher || matchHeaderValue(self$1, self$1[key], key, matcher))) {
|
|
25413
|
+
delete self$1[key];
|
|
25414
|
+
deleted = true;
|
|
25415
|
+
}
|
|
25416
|
+
}
|
|
25417
|
+
}
|
|
25418
|
+
if (utils$1.isArray(header)) header.forEach(deleteHeader);
|
|
25419
|
+
else deleteHeader(header);
|
|
25420
|
+
return deleted;
|
|
25421
|
+
}
|
|
25422
|
+
clear(matcher) {
|
|
25423
|
+
const keys = Object.keys(this);
|
|
25424
|
+
let i = keys.length;
|
|
25425
|
+
let deleted = false;
|
|
25426
|
+
while (i--) {
|
|
25427
|
+
const key = keys[i];
|
|
25428
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
25429
|
+
delete this[key];
|
|
25430
|
+
deleted = true;
|
|
25431
|
+
}
|
|
25432
|
+
}
|
|
25433
|
+
return deleted;
|
|
25434
|
+
}
|
|
25435
|
+
normalize(format) {
|
|
25436
|
+
const self$1 = this;
|
|
25437
|
+
const headers = {};
|
|
25438
|
+
utils$1.forEach(this, (value, header) => {
|
|
25439
|
+
const key = utils$1.findKey(headers, header);
|
|
25440
|
+
if (key) {
|
|
25441
|
+
self$1[key] = normalizeValue(value);
|
|
25442
|
+
delete self$1[header];
|
|
25443
|
+
return;
|
|
25444
|
+
}
|
|
25445
|
+
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
25446
|
+
if (normalized !== header) delete self$1[header];
|
|
25447
|
+
self$1[normalized] = normalizeValue(value);
|
|
25448
|
+
headers[normalized] = true;
|
|
25416
25449
|
});
|
|
25417
|
-
|
|
25450
|
+
return this;
|
|
25418
25451
|
}
|
|
25419
|
-
|
|
25420
|
-
|
|
25421
|
-
|
|
25452
|
+
concat(...targets) {
|
|
25453
|
+
return this.constructor.concat(this, ...targets);
|
|
25454
|
+
}
|
|
25455
|
+
toJSON(asStrings) {
|
|
25456
|
+
const obj = Object.create(null);
|
|
25457
|
+
utils$1.forEach(this, (value, header) => {
|
|
25458
|
+
value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value);
|
|
25459
|
+
});
|
|
25460
|
+
return obj;
|
|
25461
|
+
}
|
|
25462
|
+
[Symbol.iterator]() {
|
|
25463
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
25464
|
+
}
|
|
25465
|
+
toString() {
|
|
25466
|
+
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
25467
|
+
}
|
|
25468
|
+
getSetCookie() {
|
|
25469
|
+
return this.get("set-cookie") || [];
|
|
25470
|
+
}
|
|
25471
|
+
get [Symbol.toStringTag]() {
|
|
25472
|
+
return "AxiosHeaders";
|
|
25473
|
+
}
|
|
25474
|
+
static from(thing) {
|
|
25475
|
+
return thing instanceof this ? thing : new this(thing);
|
|
25476
|
+
}
|
|
25477
|
+
static concat(first, ...targets) {
|
|
25478
|
+
const computed = new this(first);
|
|
25479
|
+
targets.forEach((target) => computed.set(target));
|
|
25480
|
+
return computed;
|
|
25481
|
+
}
|
|
25482
|
+
static accessor(header) {
|
|
25483
|
+
const accessors = (this[$internals] = this[$internals] = { accessors: {} }).accessors;
|
|
25484
|
+
const prototype$1 = this.prototype;
|
|
25485
|
+
function defineAccessor(_header) {
|
|
25486
|
+
const lHeader = normalizeHeader(_header);
|
|
25487
|
+
if (!accessors[lHeader]) {
|
|
25488
|
+
buildAccessors(prototype$1, _header);
|
|
25489
|
+
accessors[lHeader] = true;
|
|
25490
|
+
}
|
|
25491
|
+
}
|
|
25492
|
+
utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
25493
|
+
return this;
|
|
25494
|
+
}
|
|
25495
|
+
};
|
|
25496
|
+
AxiosHeaders.accessor([
|
|
25497
|
+
"Content-Type",
|
|
25498
|
+
"Content-Length",
|
|
25499
|
+
"Accept",
|
|
25500
|
+
"Accept-Encoding",
|
|
25501
|
+
"User-Agent",
|
|
25502
|
+
"Authorization"
|
|
25503
|
+
]);
|
|
25504
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
25505
|
+
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
25506
|
+
return {
|
|
25507
|
+
get: () => value,
|
|
25508
|
+
set(headerValue) {
|
|
25509
|
+
this[mapped] = headerValue;
|
|
25510
|
+
}
|
|
25511
|
+
};
|
|
25512
|
+
});
|
|
25513
|
+
utils$1.freezeMethods(AxiosHeaders);
|
|
25514
|
+
const REDACTED = "[REDACTED ****]";
|
|
25515
|
+
function hasOwnOrPrototypeToJSON(source) {
|
|
25516
|
+
if (utils$1.hasOwnProp(source, "toJSON")) return true;
|
|
25517
|
+
let prototype$1 = Object.getPrototypeOf(source);
|
|
25518
|
+
while (prototype$1 && prototype$1 !== Object.prototype) {
|
|
25519
|
+
if (utils$1.hasOwnProp(prototype$1, "toJSON")) return true;
|
|
25520
|
+
prototype$1 = Object.getPrototypeOf(prototype$1);
|
|
25521
|
+
}
|
|
25522
|
+
return false;
|
|
25523
|
+
}
|
|
25524
|
+
function redactConfig(config$1, redactKeys) {
|
|
25525
|
+
const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
|
|
25526
|
+
const seen = [];
|
|
25527
|
+
const visit$6 = (source) => {
|
|
25528
|
+
if (source === null || typeof source !== "object") return source;
|
|
25529
|
+
if (utils$1.isBuffer(source)) return source;
|
|
25530
|
+
if (seen.indexOf(source) !== -1) return void 0;
|
|
25531
|
+
if (source instanceof AxiosHeaders) source = source.toJSON();
|
|
25532
|
+
seen.push(source);
|
|
25533
|
+
let result;
|
|
25534
|
+
if (utils$1.isArray(source)) {
|
|
25535
|
+
result = [];
|
|
25536
|
+
source.forEach((v, i) => {
|
|
25537
|
+
const reducedValue = visit$6(v);
|
|
25538
|
+
if (!utils$1.isUndefined(reducedValue)) result[i] = reducedValue;
|
|
25539
|
+
});
|
|
25540
|
+
} else {
|
|
25541
|
+
if (!utils$1.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
|
|
25542
|
+
seen.pop();
|
|
25543
|
+
return source;
|
|
25544
|
+
}
|
|
25545
|
+
result = Object.create(null);
|
|
25546
|
+
for (const [key, value] of Object.entries(source)) {
|
|
25547
|
+
const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit$6(value);
|
|
25548
|
+
if (!utils$1.isUndefined(reducedValue)) result[key] = reducedValue;
|
|
25549
|
+
}
|
|
25550
|
+
}
|
|
25551
|
+
seen.pop();
|
|
25552
|
+
return result;
|
|
25553
|
+
};
|
|
25554
|
+
return visit$6(config$1);
|
|
25422
25555
|
}
|
|
25556
|
+
var AxiosError = class AxiosError extends Error {
|
|
25557
|
+
static from(error, code, config$1, request, response, customProps) {
|
|
25558
|
+
const axiosError = new AxiosError(error.message, code || error.code, config$1, request, response);
|
|
25559
|
+
axiosError.cause = error;
|
|
25560
|
+
axiosError.name = error.name;
|
|
25561
|
+
if (error.status != null && axiosError.status == null) axiosError.status = error.status;
|
|
25562
|
+
customProps && Object.assign(axiosError, customProps);
|
|
25563
|
+
return axiosError;
|
|
25564
|
+
}
|
|
25565
|
+
/**
|
|
25566
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
25567
|
+
*
|
|
25568
|
+
* @param {string} message The error message.
|
|
25569
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
25570
|
+
* @param {Object} [config] The config.
|
|
25571
|
+
* @param {Object} [request] The request.
|
|
25572
|
+
* @param {Object} [response] The response.
|
|
25573
|
+
*
|
|
25574
|
+
* @returns {Error} The created error.
|
|
25575
|
+
*/
|
|
25576
|
+
constructor(message, code, config$1, request, response) {
|
|
25577
|
+
super(message);
|
|
25578
|
+
Object.defineProperty(this, "message", {
|
|
25579
|
+
__proto__: null,
|
|
25580
|
+
value: message,
|
|
25581
|
+
enumerable: true,
|
|
25582
|
+
writable: true,
|
|
25583
|
+
configurable: true
|
|
25584
|
+
});
|
|
25585
|
+
this.name = "AxiosError";
|
|
25586
|
+
this.isAxiosError = true;
|
|
25587
|
+
code && (this.code = code);
|
|
25588
|
+
config$1 && (this.config = config$1);
|
|
25589
|
+
request && (this.request = request);
|
|
25590
|
+
if (response) {
|
|
25591
|
+
this.response = response;
|
|
25592
|
+
this.status = response.status;
|
|
25593
|
+
}
|
|
25594
|
+
}
|
|
25595
|
+
toJSON() {
|
|
25596
|
+
const config$1 = this.config;
|
|
25597
|
+
const redactKeys = config$1 && utils$1.hasOwnProp(config$1, "redact") ? config$1.redact : void 0;
|
|
25598
|
+
const serializedConfig = utils$1.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config$1, redactKeys) : utils$1.toJSONObject(config$1);
|
|
25599
|
+
return {
|
|
25600
|
+
message: this.message,
|
|
25601
|
+
name: this.name,
|
|
25602
|
+
description: this.description,
|
|
25603
|
+
number: this.number,
|
|
25604
|
+
fileName: this.fileName,
|
|
25605
|
+
lineNumber: this.lineNumber,
|
|
25606
|
+
columnNumber: this.columnNumber,
|
|
25607
|
+
stack: this.stack,
|
|
25608
|
+
config: serializedConfig,
|
|
25609
|
+
code: this.code,
|
|
25610
|
+
status: this.status
|
|
25611
|
+
};
|
|
25612
|
+
}
|
|
25613
|
+
};
|
|
25614
|
+
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
25615
|
+
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
25616
|
+
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
25617
|
+
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
25618
|
+
AxiosError.ECONNREFUSED = "ECONNREFUSED";
|
|
25619
|
+
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
25620
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
25621
|
+
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
25622
|
+
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
25623
|
+
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
25624
|
+
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
25625
|
+
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
25626
|
+
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
25627
|
+
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
25423
25628
|
/**
|
|
25424
|
-
*
|
|
25425
|
-
* their percent-encoded equivalents
|
|
25629
|
+
* Determines if the given thing is a array or js object.
|
|
25426
25630
|
*
|
|
25427
|
-
* @param {string}
|
|
25631
|
+
* @param {string} thing - The object or array to be visited.
|
|
25428
25632
|
*
|
|
25429
|
-
* @returns {
|
|
25633
|
+
* @returns {boolean}
|
|
25430
25634
|
*/
|
|
25431
|
-
function
|
|
25432
|
-
|
|
25433
|
-
"!": "%21",
|
|
25434
|
-
"'": "%27",
|
|
25435
|
-
"(": "%28",
|
|
25436
|
-
")": "%29",
|
|
25437
|
-
"~": "%7E",
|
|
25438
|
-
"%20": "+",
|
|
25439
|
-
"%00": "\0"
|
|
25440
|
-
};
|
|
25441
|
-
return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
|
|
25442
|
-
return charMap[match];
|
|
25443
|
-
});
|
|
25635
|
+
function isVisitable(thing) {
|
|
25636
|
+
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
25444
25637
|
}
|
|
25445
25638
|
/**
|
|
25446
|
-
* It
|
|
25639
|
+
* It removes the brackets from the end of a string
|
|
25447
25640
|
*
|
|
25448
|
-
* @param {
|
|
25449
|
-
* @param {Object<string, any>} options - The options object passed to the Axios constructor.
|
|
25641
|
+
* @param {string} key - The key of the parameter.
|
|
25450
25642
|
*
|
|
25451
|
-
* @returns {
|
|
25643
|
+
* @returns {string} the key without the brackets.
|
|
25452
25644
|
*/
|
|
25453
|
-
function
|
|
25645
|
+
function removeBrackets(key) {
|
|
25646
|
+
return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
25647
|
+
}
|
|
25648
|
+
/**
|
|
25649
|
+
* It takes a path, a key, and a boolean, and returns a string
|
|
25650
|
+
*
|
|
25651
|
+
* @param {string} path - The path to the current key.
|
|
25652
|
+
* @param {string} key - The key of the current object being iterated over.
|
|
25653
|
+
* @param {string} dots - If true, the key will be rendered with dots instead of brackets.
|
|
25654
|
+
*
|
|
25655
|
+
* @returns {string} The path to the current key.
|
|
25656
|
+
*/
|
|
25657
|
+
function renderKey(path$5, key, dots) {
|
|
25658
|
+
if (!path$5) return key;
|
|
25659
|
+
return path$5.concat(key).map(function each(token, i) {
|
|
25660
|
+
token = removeBrackets(token);
|
|
25661
|
+
return !dots && i ? "[" + token + "]" : token;
|
|
25662
|
+
}).join(dots ? "." : "");
|
|
25663
|
+
}
|
|
25664
|
+
/**
|
|
25665
|
+
* If the array is an array and none of its elements are visitable, then it's a flat array.
|
|
25666
|
+
*
|
|
25667
|
+
* @param {Array<any>} arr - The array to check
|
|
25668
|
+
*
|
|
25669
|
+
* @returns {boolean}
|
|
25670
|
+
*/
|
|
25671
|
+
function isFlatArray(arr) {
|
|
25672
|
+
return utils$1.isArray(arr) && !arr.some(isVisitable);
|
|
25673
|
+
}
|
|
25674
|
+
const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
|
|
25675
|
+
return /^is[A-Z]/.test(prop);
|
|
25676
|
+
});
|
|
25677
|
+
/**
|
|
25678
|
+
* Convert a data object to FormData
|
|
25679
|
+
*
|
|
25680
|
+
* @param {Object} obj
|
|
25681
|
+
* @param {?Object} [formData]
|
|
25682
|
+
* @param {?Object} [options]
|
|
25683
|
+
* @param {Function} [options.visitor]
|
|
25684
|
+
* @param {Boolean} [options.metaTokens = true]
|
|
25685
|
+
* @param {Boolean} [options.dots = false]
|
|
25686
|
+
* @param {?Boolean} [options.indexes = false]
|
|
25687
|
+
*
|
|
25688
|
+
* @returns {Object}
|
|
25689
|
+
**/
|
|
25690
|
+
/**
|
|
25691
|
+
* It converts an object into a FormData object
|
|
25692
|
+
*
|
|
25693
|
+
* @param {Object<any, any>} obj - The object to convert to form data.
|
|
25694
|
+
* @param {string} formData - The FormData object to append to.
|
|
25695
|
+
* @param {Object<string, any>} options
|
|
25696
|
+
*
|
|
25697
|
+
* @returns
|
|
25698
|
+
*/
|
|
25699
|
+
function toFormData(obj, formData, options) {
|
|
25700
|
+
if (!utils$1.isObject(obj)) throw new TypeError("target must be an object");
|
|
25701
|
+
formData = formData || new (FormData$1 || FormData)();
|
|
25702
|
+
options = utils$1.toFlatObject(options, {
|
|
25703
|
+
metaTokens: true,
|
|
25704
|
+
dots: false,
|
|
25705
|
+
indexes: false
|
|
25706
|
+
}, false, function defined(option, source) {
|
|
25707
|
+
return !utils$1.isUndefined(source[option]);
|
|
25708
|
+
});
|
|
25709
|
+
const metaTokens = options.metaTokens;
|
|
25710
|
+
const visitor = options.visitor || defaultVisitor;
|
|
25711
|
+
const dots = options.dots;
|
|
25712
|
+
const indexes = options.indexes;
|
|
25713
|
+
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
25714
|
+
const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
|
|
25715
|
+
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
25716
|
+
if (!utils$1.isFunction(visitor)) throw new TypeError("visitor must be a function");
|
|
25717
|
+
function convertValue(value) {
|
|
25718
|
+
if (value === null) return "";
|
|
25719
|
+
if (utils$1.isDate(value)) return value.toISOString();
|
|
25720
|
+
if (utils$1.isBoolean(value)) return value.toString();
|
|
25721
|
+
if (!useBlob && utils$1.isBlob(value)) throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
25722
|
+
if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
25723
|
+
return value;
|
|
25724
|
+
}
|
|
25725
|
+
/**
|
|
25726
|
+
* Default visitor.
|
|
25727
|
+
*
|
|
25728
|
+
* @param {*} value
|
|
25729
|
+
* @param {String|Number} key
|
|
25730
|
+
* @param {Array<String|Number>} path
|
|
25731
|
+
* @this {FormData}
|
|
25732
|
+
*
|
|
25733
|
+
* @returns {boolean} return true to visit the each prop of the value recursively
|
|
25734
|
+
*/
|
|
25735
|
+
function defaultVisitor(value, key, path$5) {
|
|
25736
|
+
let arr = value;
|
|
25737
|
+
if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
|
|
25738
|
+
formData.append(renderKey(path$5, key, dots), convertValue(value));
|
|
25739
|
+
return false;
|
|
25740
|
+
}
|
|
25741
|
+
if (value && !path$5 && typeof value === "object") {
|
|
25742
|
+
if (utils$1.endsWith(key, "{}")) {
|
|
25743
|
+
key = metaTokens ? key : key.slice(0, -2);
|
|
25744
|
+
value = JSON.stringify(value);
|
|
25745
|
+
} else if (utils$1.isArray(value) && isFlatArray(value) || (utils$1.isFileList(value) || utils$1.endsWith(key, "[]")) && (arr = utils$1.toArray(value))) {
|
|
25746
|
+
key = removeBrackets(key);
|
|
25747
|
+
arr.forEach(function each(el, index) {
|
|
25748
|
+
!(utils$1.isUndefined(el) || el === null) && formData.append(indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]", convertValue(el));
|
|
25749
|
+
});
|
|
25750
|
+
return false;
|
|
25751
|
+
}
|
|
25752
|
+
}
|
|
25753
|
+
if (isVisitable(value)) return true;
|
|
25754
|
+
formData.append(renderKey(path$5, key, dots), convertValue(value));
|
|
25755
|
+
return false;
|
|
25756
|
+
}
|
|
25757
|
+
const stack = [];
|
|
25758
|
+
const exposedHelpers = Object.assign(predicates, {
|
|
25759
|
+
defaultVisitor,
|
|
25760
|
+
convertValue,
|
|
25761
|
+
isVisitable
|
|
25762
|
+
});
|
|
25763
|
+
function build(value, path$5, depth = 0) {
|
|
25764
|
+
if (utils$1.isUndefined(value)) return;
|
|
25765
|
+
if (depth > maxDepth) throw new AxiosError("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
25766
|
+
if (stack.indexOf(value) !== -1) throw Error("Circular reference detected in " + path$5.join("."));
|
|
25767
|
+
stack.push(value);
|
|
25768
|
+
utils$1.forEach(value, function each(el, key) {
|
|
25769
|
+
if ((!(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path$5, exposedHelpers)) === true) build(el, path$5 ? path$5.concat(key) : [key], depth + 1);
|
|
25770
|
+
});
|
|
25771
|
+
stack.pop();
|
|
25772
|
+
}
|
|
25773
|
+
if (!utils$1.isObject(obj)) throw new TypeError("data must be an object");
|
|
25774
|
+
build(obj);
|
|
25775
|
+
return formData;
|
|
25776
|
+
}
|
|
25777
|
+
/**
|
|
25778
|
+
* It encodes a string by replacing all characters that are not in the unreserved set with
|
|
25779
|
+
* their percent-encoded equivalents
|
|
25780
|
+
*
|
|
25781
|
+
* @param {string} str - The string to encode.
|
|
25782
|
+
*
|
|
25783
|
+
* @returns {string} The encoded string.
|
|
25784
|
+
*/
|
|
25785
|
+
function encode$1(str) {
|
|
25786
|
+
const charMap = {
|
|
25787
|
+
"!": "%21",
|
|
25788
|
+
"'": "%27",
|
|
25789
|
+
"(": "%28",
|
|
25790
|
+
")": "%29",
|
|
25791
|
+
"~": "%7E",
|
|
25792
|
+
"%20": "+"
|
|
25793
|
+
};
|
|
25794
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
|
|
25795
|
+
return charMap[match];
|
|
25796
|
+
});
|
|
25797
|
+
}
|
|
25798
|
+
/**
|
|
25799
|
+
* It takes a params object and converts it to a FormData object
|
|
25800
|
+
*
|
|
25801
|
+
* @param {Object<string, any>} params - The parameters to be converted to a FormData object.
|
|
25802
|
+
* @param {Object<string, any>} options - The options object passed to the Axios constructor.
|
|
25803
|
+
*
|
|
25804
|
+
* @returns {void}
|
|
25805
|
+
*/
|
|
25806
|
+
function AxiosURLSearchParams(params, options) {
|
|
25454
25807
|
this._pairs = [];
|
|
25455
25808
|
params && toFormData(params, this, options);
|
|
25456
25809
|
}
|
|
@@ -25467,8 +25820,8 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25467
25820
|
}, "").join("&");
|
|
25468
25821
|
};
|
|
25469
25822
|
/**
|
|
25470
|
-
* It replaces
|
|
25471
|
-
*
|
|
25823
|
+
* It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
|
|
25824
|
+
* their plain counterparts (`:`, `$`, `,`, `+`).
|
|
25472
25825
|
*
|
|
25473
25826
|
* @param {string} val The value to be encoded.
|
|
25474
25827
|
*
|
|
@@ -25489,11 +25842,11 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25489
25842
|
function buildURL(url$2, params, options) {
|
|
25490
25843
|
if (!params) return url$2;
|
|
25491
25844
|
const _encode = options && options.encode || encode;
|
|
25492
|
-
|
|
25493
|
-
const serializeFn =
|
|
25845
|
+
const _options = utils$1.isFunction(options) ? { serialize: options } : options;
|
|
25846
|
+
const serializeFn = _options && _options.serialize;
|
|
25494
25847
|
let serializedParams;
|
|
25495
|
-
if (serializeFn) serializedParams = serializeFn(params,
|
|
25496
|
-
else serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params,
|
|
25848
|
+
if (serializeFn) serializedParams = serializeFn(params, _options);
|
|
25849
|
+
else serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
25497
25850
|
if (serializedParams) {
|
|
25498
25851
|
const hashmarkIndex = url$2.indexOf("#");
|
|
25499
25852
|
if (hashmarkIndex !== -1) url$2 = url$2.slice(0, hashmarkIndex);
|
|
@@ -25510,6 +25863,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25510
25863
|
*
|
|
25511
25864
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
25512
25865
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
25866
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
25513
25867
|
*
|
|
25514
25868
|
* @return {Number} An ID used to remove interceptor later
|
|
25515
25869
|
*/
|
|
@@ -25556,13 +25910,13 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25556
25910
|
});
|
|
25557
25911
|
}
|
|
25558
25912
|
};
|
|
25559
|
-
|
|
25560
|
-
const transitionalDefaults = {
|
|
25913
|
+
var transitionalDefaults = {
|
|
25561
25914
|
silentJSONParsing: true,
|
|
25562
25915
|
forcedJSONParsing: true,
|
|
25563
|
-
clarifyTimeoutError: false
|
|
25916
|
+
clarifyTimeoutError: false,
|
|
25917
|
+
legacyInterceptorReqResOrdering: true
|
|
25564
25918
|
};
|
|
25565
|
-
|
|
25919
|
+
var URLSearchParams = url.URLSearchParams;
|
|
25566
25920
|
const ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
25567
25921
|
const DIGIT = "0123456789";
|
|
25568
25922
|
const ALPHABET = {
|
|
@@ -25574,15 +25928,15 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25574
25928
|
let str = "";
|
|
25575
25929
|
const { length } = alphabet;
|
|
25576
25930
|
const randomValues = new Uint32Array(size);
|
|
25577
|
-
|
|
25931
|
+
crypto.randomFillSync(randomValues);
|
|
25578
25932
|
for (let i = 0; i < size; i++) str += alphabet[randomValues[i] % length];
|
|
25579
25933
|
return str;
|
|
25580
25934
|
};
|
|
25581
|
-
|
|
25935
|
+
var platform$1 = {
|
|
25582
25936
|
isNode: true,
|
|
25583
25937
|
classes: {
|
|
25584
25938
|
URLSearchParams,
|
|
25585
|
-
FormData:
|
|
25939
|
+
FormData: FormData$1,
|
|
25586
25940
|
Blob: typeof Blob !== "undefined" && Blob || null
|
|
25587
25941
|
},
|
|
25588
25942
|
ALPHABET,
|
|
@@ -25631,12 +25985,12 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25631
25985
|
return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
25632
25986
|
})();
|
|
25633
25987
|
const origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
25634
|
-
|
|
25988
|
+
var platform = {
|
|
25635
25989
|
.../* @__PURE__ */ Object.freeze({
|
|
25636
25990
|
__proto__: null,
|
|
25637
25991
|
hasBrowserEnv,
|
|
25638
|
-
hasStandardBrowserWebWorkerEnv,
|
|
25639
25992
|
hasStandardBrowserEnv,
|
|
25993
|
+
hasStandardBrowserWebWorkerEnv,
|
|
25640
25994
|
navigator: _navigator,
|
|
25641
25995
|
origin
|
|
25642
25996
|
}),
|
|
@@ -25644,7 +25998,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25644
25998
|
};
|
|
25645
25999
|
function toURLEncodedForm(data, options) {
|
|
25646
26000
|
return toFormData(data, new platform.classes.URLSearchParams(), {
|
|
25647
|
-
visitor: function(value, key, path$
|
|
26001
|
+
visitor: function(value, key, path$5, helpers) {
|
|
25648
26002
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
25649
26003
|
this.append(key, value.toString("base64"));
|
|
25650
26004
|
return false;
|
|
@@ -25693,19 +26047,19 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25693
26047
|
* @returns {Object<string, any> | null} The converted object.
|
|
25694
26048
|
*/
|
|
25695
26049
|
function formDataToJSON(formData) {
|
|
25696
|
-
function buildPath(path$
|
|
25697
|
-
let name = path$
|
|
26050
|
+
function buildPath(path$5, value, target, index) {
|
|
26051
|
+
let name = path$5[index++];
|
|
25698
26052
|
if (name === "__proto__") return true;
|
|
25699
26053
|
const isNumericKey = Number.isFinite(+name);
|
|
25700
|
-
const isLast = index >= path$
|
|
26054
|
+
const isLast = index >= path$5.length;
|
|
25701
26055
|
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
25702
26056
|
if (isLast) {
|
|
25703
|
-
if (utils$1.hasOwnProp(target, name)) target[name] = [target[name], value];
|
|
26057
|
+
if (utils$1.hasOwnProp(target, name)) target[name] = utils$1.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
|
|
25704
26058
|
else target[name] = value;
|
|
25705
26059
|
return !isNumericKey;
|
|
25706
26060
|
}
|
|
25707
26061
|
if (!target[name] || !utils$1.isObject(target[name])) target[name] = [];
|
|
25708
|
-
if (buildPath(path$
|
|
26062
|
+
if (buildPath(path$5, value, target[name], index) && utils$1.isArray(target[name])) target[name] = arrayToObject(target[name]);
|
|
25709
26063
|
return !isNumericKey;
|
|
25710
26064
|
}
|
|
25711
26065
|
if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) {
|
|
@@ -25717,6 +26071,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25717
26071
|
}
|
|
25718
26072
|
return null;
|
|
25719
26073
|
}
|
|
26074
|
+
const own = (obj, key) => obj != null && utils$1.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
25720
26075
|
/**
|
|
25721
26076
|
* It takes a string, tries to parse it, and if it fails, it returns the stringified version
|
|
25722
26077
|
* of the input
|
|
@@ -25732,338 +26087,92 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
25732
26087
|
(parser$2 || JSON.parse)(rawValue);
|
|
25733
26088
|
return utils$1.trim(rawValue);
|
|
25734
26089
|
} catch (e$1) {
|
|
25735
|
-
if (e$1.name !== "SyntaxError") throw e$1;
|
|
25736
|
-
}
|
|
25737
|
-
return (encoder || JSON.stringify)(rawValue);
|
|
25738
|
-
}
|
|
25739
|
-
const defaults = {
|
|
25740
|
-
transitional: transitionalDefaults,
|
|
25741
|
-
adapter: [
|
|
25742
|
-
"xhr",
|
|
25743
|
-
"http",
|
|
25744
|
-
"fetch"
|
|
25745
|
-
],
|
|
25746
|
-
transformRequest: [function transformRequest(data, headers) {
|
|
25747
|
-
const contentType$1 = headers.getContentType() || "";
|
|
25748
|
-
const hasJSONContentType = contentType$1.indexOf("application/json") > -1;
|
|
25749
|
-
const isObjectPayload = utils$1.isObject(data);
|
|
25750
|
-
if (isObjectPayload && utils$1.isHTMLForm(data)) data = new FormData(data);
|
|
25751
|
-
if (utils$1.isFormData(data)) return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
25752
|
-
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) return data;
|
|
25753
|
-
if (utils$1.isArrayBufferView(data)) return data.buffer;
|
|
25754
|
-
if (utils$1.isURLSearchParams(data)) {
|
|
25755
|
-
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
25756
|
-
return data.toString();
|
|
25757
|
-
}
|
|
25758
|
-
let isFileList$1;
|
|
25759
|
-
if (isObjectPayload) {
|
|
25760
|
-
if (contentType$1.indexOf("application/x-www-form-urlencoded") > -1) return toURLEncodedForm(data, this.formSerializer).toString();
|
|
25761
|
-
if ((isFileList$1 = utils$1.isFileList(data)) || contentType$1.indexOf("multipart/form-data") > -1) {
|
|
25762
|
-
const _FormData = this.env && this.env.FormData;
|
|
25763
|
-
return toFormData(isFileList$1 ? { "files[]": data } : data, _FormData && new _FormData(), this.formSerializer);
|
|
25764
|
-
}
|
|
25765
|
-
}
|
|
25766
|
-
if (isObjectPayload || hasJSONContentType) {
|
|
25767
|
-
headers.setContentType("application/json", false);
|
|
25768
|
-
return stringifySafely(data);
|
|
25769
|
-
}
|
|
25770
|
-
return data;
|
|
25771
|
-
}],
|
|
25772
|
-
transformResponse: [function transformResponse(data) {
|
|
25773
|
-
const transitional = this.transitional || defaults.transitional;
|
|
25774
|
-
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
25775
|
-
const JSONRequested = this.responseType === "json";
|
|
25776
|
-
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) return data;
|
|
25777
|
-
if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
25778
|
-
const strictJSONParsing = !(transitional && transitional.silentJSONParsing) && JSONRequested;
|
|
25779
|
-
try {
|
|
25780
|
-
return JSON.parse(data, this.parseReviver);
|
|
25781
|
-
} catch (e$1) {
|
|
25782
|
-
if (strictJSONParsing) {
|
|
25783
|
-
if (e$1.name === "SyntaxError") throw AxiosError.from(e$1, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
25784
|
-
throw e$1;
|
|
25785
|
-
}
|
|
25786
|
-
}
|
|
25787
|
-
}
|
|
25788
|
-
return data;
|
|
25789
|
-
}],
|
|
25790
|
-
timeout: 0,
|
|
25791
|
-
xsrfCookieName: "XSRF-TOKEN",
|
|
25792
|
-
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
25793
|
-
maxContentLength: -1,
|
|
25794
|
-
maxBodyLength: -1,
|
|
25795
|
-
env: {
|
|
25796
|
-
FormData: platform.classes.FormData,
|
|
25797
|
-
Blob: platform.classes.Blob
|
|
25798
|
-
},
|
|
25799
|
-
validateStatus: function validateStatus(status) {
|
|
25800
|
-
return status >= 200 && status < 300;
|
|
25801
|
-
},
|
|
25802
|
-
headers: { common: {
|
|
25803
|
-
"Accept": "application/json, text/plain, */*",
|
|
25804
|
-
"Content-Type": void 0
|
|
25805
|
-
} }
|
|
25806
|
-
};
|
|
25807
|
-
utils$1.forEach([
|
|
25808
|
-
"delete",
|
|
25809
|
-
"get",
|
|
25810
|
-
"head",
|
|
25811
|
-
"post",
|
|
25812
|
-
"put",
|
|
25813
|
-
"patch"
|
|
25814
|
-
], (method) => {
|
|
25815
|
-
defaults.headers[method] = {};
|
|
25816
|
-
});
|
|
25817
|
-
const defaults$1 = defaults;
|
|
25818
|
-
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
25819
|
-
"age",
|
|
25820
|
-
"authorization",
|
|
25821
|
-
"content-length",
|
|
25822
|
-
"content-type",
|
|
25823
|
-
"etag",
|
|
25824
|
-
"expires",
|
|
25825
|
-
"from",
|
|
25826
|
-
"host",
|
|
25827
|
-
"if-modified-since",
|
|
25828
|
-
"if-unmodified-since",
|
|
25829
|
-
"last-modified",
|
|
25830
|
-
"location",
|
|
25831
|
-
"max-forwards",
|
|
25832
|
-
"proxy-authorization",
|
|
25833
|
-
"referer",
|
|
25834
|
-
"retry-after",
|
|
25835
|
-
"user-agent"
|
|
25836
|
-
]);
|
|
25837
|
-
/**
|
|
25838
|
-
* Parse headers into an object
|
|
25839
|
-
*
|
|
25840
|
-
* ```
|
|
25841
|
-
* Date: Wed, 27 Aug 2014 08:58:49 GMT
|
|
25842
|
-
* Content-Type: application/json
|
|
25843
|
-
* Connection: keep-alive
|
|
25844
|
-
* Transfer-Encoding: chunked
|
|
25845
|
-
* ```
|
|
25846
|
-
*
|
|
25847
|
-
* @param {String} rawHeaders Headers needing to be parsed
|
|
25848
|
-
*
|
|
25849
|
-
* @returns {Object} Headers parsed into an object
|
|
25850
|
-
*/
|
|
25851
|
-
const parseHeaders = (rawHeaders) => {
|
|
25852
|
-
const parsed = {};
|
|
25853
|
-
let key;
|
|
25854
|
-
let val;
|
|
25855
|
-
let i;
|
|
25856
|
-
rawHeaders && rawHeaders.split("\n").forEach(function parser$2(line) {
|
|
25857
|
-
i = line.indexOf(":");
|
|
25858
|
-
key = line.substring(0, i).trim().toLowerCase();
|
|
25859
|
-
val = line.substring(i + 1).trim();
|
|
25860
|
-
if (!key || parsed[key] && ignoreDuplicateOf[key]) return;
|
|
25861
|
-
if (key === "set-cookie") if (parsed[key]) parsed[key].push(val);
|
|
25862
|
-
else parsed[key] = [val];
|
|
25863
|
-
else parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
25864
|
-
});
|
|
25865
|
-
return parsed;
|
|
25866
|
-
};
|
|
25867
|
-
const $internals = Symbol("internals");
|
|
25868
|
-
function normalizeHeader(header) {
|
|
25869
|
-
return header && String(header).trim().toLowerCase();
|
|
25870
|
-
}
|
|
25871
|
-
function normalizeValue(value) {
|
|
25872
|
-
if (value === false || value == null) return value;
|
|
25873
|
-
return utils$1.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
25874
|
-
}
|
|
25875
|
-
function parseTokens(str) {
|
|
25876
|
-
const tokens = Object.create(null);
|
|
25877
|
-
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
25878
|
-
let match;
|
|
25879
|
-
while (match = tokensRE.exec(str)) tokens[match[1]] = match[2];
|
|
25880
|
-
return tokens;
|
|
25881
|
-
}
|
|
25882
|
-
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
25883
|
-
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
25884
|
-
if (utils$1.isFunction(filter)) return filter.call(this, value, header);
|
|
25885
|
-
if (isHeaderNameFilter) value = header;
|
|
25886
|
-
if (!utils$1.isString(value)) return;
|
|
25887
|
-
if (utils$1.isString(filter)) return value.indexOf(filter) !== -1;
|
|
25888
|
-
if (utils$1.isRegExp(filter)) return filter.test(value);
|
|
25889
|
-
}
|
|
25890
|
-
function formatHeader(header) {
|
|
25891
|
-
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
25892
|
-
return char.toUpperCase() + str;
|
|
25893
|
-
});
|
|
25894
|
-
}
|
|
25895
|
-
function buildAccessors(obj, header) {
|
|
25896
|
-
const accessorName = utils$1.toCamelCase(" " + header);
|
|
25897
|
-
[
|
|
25898
|
-
"get",
|
|
25899
|
-
"set",
|
|
25900
|
-
"has"
|
|
25901
|
-
].forEach((methodName) => {
|
|
25902
|
-
Object.defineProperty(obj, methodName + accessorName, {
|
|
25903
|
-
value: function(arg1, arg2, arg3) {
|
|
25904
|
-
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
25905
|
-
},
|
|
25906
|
-
configurable: true
|
|
25907
|
-
});
|
|
25908
|
-
});
|
|
25909
|
-
}
|
|
25910
|
-
var AxiosHeaders = class {
|
|
25911
|
-
constructor(headers) {
|
|
25912
|
-
headers && this.set(headers);
|
|
25913
|
-
}
|
|
25914
|
-
set(header, valueOrRewrite, rewrite) {
|
|
25915
|
-
const self$1 = this;
|
|
25916
|
-
function setHeader(_value, _header, _rewrite) {
|
|
25917
|
-
const lHeader = normalizeHeader(_header);
|
|
25918
|
-
if (!lHeader) throw new Error("header name must be a non-empty string");
|
|
25919
|
-
const key = utils$1.findKey(self$1, lHeader);
|
|
25920
|
-
if (!key || self$1[key] === void 0 || _rewrite === true || _rewrite === void 0 && self$1[key] !== false) self$1[key || _header] = normalizeValue(_value);
|
|
25921
|
-
}
|
|
25922
|
-
const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
25923
|
-
if (utils$1.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
|
|
25924
|
-
else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) setHeaders(parseHeaders(header), valueOrRewrite);
|
|
25925
|
-
else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
|
|
25926
|
-
let obj = {}, dest, key;
|
|
25927
|
-
for (const entry of header) {
|
|
25928
|
-
if (!utils$1.isArray(entry)) throw TypeError("Object iterator must return a key-value pair");
|
|
25929
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
25930
|
-
}
|
|
25931
|
-
setHeaders(obj, valueOrRewrite);
|
|
25932
|
-
} else header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
25933
|
-
return this;
|
|
25934
|
-
}
|
|
25935
|
-
get(header, parser$2) {
|
|
25936
|
-
header = normalizeHeader(header);
|
|
25937
|
-
if (header) {
|
|
25938
|
-
const key = utils$1.findKey(this, header);
|
|
25939
|
-
if (key) {
|
|
25940
|
-
const value = this[key];
|
|
25941
|
-
if (!parser$2) return value;
|
|
25942
|
-
if (parser$2 === true) return parseTokens(value);
|
|
25943
|
-
if (utils$1.isFunction(parser$2)) return parser$2.call(this, value, key);
|
|
25944
|
-
if (utils$1.isRegExp(parser$2)) return parser$2.exec(value);
|
|
25945
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
25946
|
-
}
|
|
25947
|
-
}
|
|
25948
|
-
}
|
|
25949
|
-
has(header, matcher) {
|
|
25950
|
-
header = normalizeHeader(header);
|
|
25951
|
-
if (header) {
|
|
25952
|
-
const key = utils$1.findKey(this, header);
|
|
25953
|
-
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
25954
|
-
}
|
|
25955
|
-
return false;
|
|
25956
|
-
}
|
|
25957
|
-
delete(header, matcher) {
|
|
25958
|
-
const self$1 = this;
|
|
25959
|
-
let deleted = false;
|
|
25960
|
-
function deleteHeader(_header) {
|
|
25961
|
-
_header = normalizeHeader(_header);
|
|
25962
|
-
if (_header) {
|
|
25963
|
-
const key = utils$1.findKey(self$1, _header);
|
|
25964
|
-
if (key && (!matcher || matchHeaderValue(self$1, self$1[key], key, matcher))) {
|
|
25965
|
-
delete self$1[key];
|
|
25966
|
-
deleted = true;
|
|
25967
|
-
}
|
|
25968
|
-
}
|
|
25969
|
-
}
|
|
25970
|
-
if (utils$1.isArray(header)) header.forEach(deleteHeader);
|
|
25971
|
-
else deleteHeader(header);
|
|
25972
|
-
return deleted;
|
|
25973
|
-
}
|
|
25974
|
-
clear(matcher) {
|
|
25975
|
-
const keys = Object.keys(this);
|
|
25976
|
-
let i = keys.length;
|
|
25977
|
-
let deleted = false;
|
|
25978
|
-
while (i--) {
|
|
25979
|
-
const key = keys[i];
|
|
25980
|
-
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
25981
|
-
delete this[key];
|
|
25982
|
-
deleted = true;
|
|
25983
|
-
}
|
|
25984
|
-
}
|
|
25985
|
-
return deleted;
|
|
25986
|
-
}
|
|
25987
|
-
normalize(format) {
|
|
25988
|
-
const self$1 = this;
|
|
25989
|
-
const headers = {};
|
|
25990
|
-
utils$1.forEach(this, (value, header) => {
|
|
25991
|
-
const key = utils$1.findKey(headers, header);
|
|
25992
|
-
if (key) {
|
|
25993
|
-
self$1[key] = normalizeValue(value);
|
|
25994
|
-
delete self$1[header];
|
|
25995
|
-
return;
|
|
25996
|
-
}
|
|
25997
|
-
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
25998
|
-
if (normalized !== header) delete self$1[header];
|
|
25999
|
-
self$1[normalized] = normalizeValue(value);
|
|
26000
|
-
headers[normalized] = true;
|
|
26001
|
-
});
|
|
26002
|
-
return this;
|
|
26003
|
-
}
|
|
26004
|
-
concat(...targets) {
|
|
26005
|
-
return this.constructor.concat(this, ...targets);
|
|
26006
|
-
}
|
|
26007
|
-
toJSON(asStrings) {
|
|
26008
|
-
const obj = Object.create(null);
|
|
26009
|
-
utils$1.forEach(this, (value, header) => {
|
|
26010
|
-
value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value);
|
|
26011
|
-
});
|
|
26012
|
-
return obj;
|
|
26013
|
-
}
|
|
26014
|
-
[Symbol.iterator]() {
|
|
26015
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
26016
|
-
}
|
|
26017
|
-
toString() {
|
|
26018
|
-
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
26019
|
-
}
|
|
26020
|
-
getSetCookie() {
|
|
26021
|
-
return this.get("set-cookie") || [];
|
|
26022
|
-
}
|
|
26023
|
-
get [Symbol.toStringTag]() {
|
|
26024
|
-
return "AxiosHeaders";
|
|
26025
|
-
}
|
|
26026
|
-
static from(thing) {
|
|
26027
|
-
return thing instanceof this ? thing : new this(thing);
|
|
26028
|
-
}
|
|
26029
|
-
static concat(first, ...targets) {
|
|
26030
|
-
const computed = new this(first);
|
|
26031
|
-
targets.forEach((target) => computed.set(target));
|
|
26032
|
-
return computed;
|
|
26090
|
+
if (e$1.name !== "SyntaxError") throw e$1;
|
|
26033
26091
|
}
|
|
26034
|
-
|
|
26035
|
-
|
|
26036
|
-
|
|
26037
|
-
|
|
26038
|
-
|
|
26039
|
-
|
|
26040
|
-
|
|
26041
|
-
|
|
26092
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
26093
|
+
}
|
|
26094
|
+
const defaults = {
|
|
26095
|
+
transitional: transitionalDefaults,
|
|
26096
|
+
adapter: [
|
|
26097
|
+
"xhr",
|
|
26098
|
+
"http",
|
|
26099
|
+
"fetch"
|
|
26100
|
+
],
|
|
26101
|
+
transformRequest: [function transformRequest(data, headers) {
|
|
26102
|
+
const contentType$1 = headers.getContentType() || "";
|
|
26103
|
+
const hasJSONContentType = contentType$1.indexOf("application/json") > -1;
|
|
26104
|
+
const isObjectPayload = utils$1.isObject(data);
|
|
26105
|
+
if (isObjectPayload && utils$1.isHTMLForm(data)) data = new FormData(data);
|
|
26106
|
+
if (utils$1.isFormData(data)) return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
26107
|
+
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) return data;
|
|
26108
|
+
if (utils$1.isArrayBufferView(data)) return data.buffer;
|
|
26109
|
+
if (utils$1.isURLSearchParams(data)) {
|
|
26110
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
26111
|
+
return data.toString();
|
|
26112
|
+
}
|
|
26113
|
+
let isFileList$1;
|
|
26114
|
+
if (isObjectPayload) {
|
|
26115
|
+
const formSerializer = own(this, "formSerializer");
|
|
26116
|
+
if (contentType$1.indexOf("application/x-www-form-urlencoded") > -1) return toURLEncodedForm(data, formSerializer).toString();
|
|
26117
|
+
if ((isFileList$1 = utils$1.isFileList(data)) || contentType$1.indexOf("multipart/form-data") > -1) {
|
|
26118
|
+
const env = own(this, "env");
|
|
26119
|
+
const _FormData = env && env.FormData;
|
|
26120
|
+
return toFormData(isFileList$1 ? { "files[]": data } : data, _FormData && new _FormData(), formSerializer);
|
|
26042
26121
|
}
|
|
26043
26122
|
}
|
|
26044
|
-
|
|
26045
|
-
|
|
26046
|
-
|
|
26047
|
-
};
|
|
26048
|
-
AxiosHeaders.accessor([
|
|
26049
|
-
"Content-Type",
|
|
26050
|
-
"Content-Length",
|
|
26051
|
-
"Accept",
|
|
26052
|
-
"Accept-Encoding",
|
|
26053
|
-
"User-Agent",
|
|
26054
|
-
"Authorization"
|
|
26055
|
-
]);
|
|
26056
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
26057
|
-
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
26058
|
-
return {
|
|
26059
|
-
get: () => value,
|
|
26060
|
-
set(headerValue) {
|
|
26061
|
-
this[mapped] = headerValue;
|
|
26123
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
26124
|
+
headers.setContentType("application/json", false);
|
|
26125
|
+
return stringifySafely(data);
|
|
26062
26126
|
}
|
|
26063
|
-
|
|
26127
|
+
return data;
|
|
26128
|
+
}],
|
|
26129
|
+
transformResponse: [function transformResponse(data) {
|
|
26130
|
+
const transitional = own(this, "transitional") || defaults.transitional;
|
|
26131
|
+
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
26132
|
+
const responseType = own(this, "responseType");
|
|
26133
|
+
const JSONRequested = responseType === "json";
|
|
26134
|
+
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) return data;
|
|
26135
|
+
if (data && utils$1.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
|
|
26136
|
+
const strictJSONParsing = !(transitional && transitional.silentJSONParsing) && JSONRequested;
|
|
26137
|
+
try {
|
|
26138
|
+
return JSON.parse(data, own(this, "parseReviver"));
|
|
26139
|
+
} catch (e$1) {
|
|
26140
|
+
if (strictJSONParsing) {
|
|
26141
|
+
if (e$1.name === "SyntaxError") throw AxiosError.from(e$1, AxiosError.ERR_BAD_RESPONSE, this, null, own(this, "response"));
|
|
26142
|
+
throw e$1;
|
|
26143
|
+
}
|
|
26144
|
+
}
|
|
26145
|
+
}
|
|
26146
|
+
return data;
|
|
26147
|
+
}],
|
|
26148
|
+
timeout: 0,
|
|
26149
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
26150
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
26151
|
+
maxContentLength: -1,
|
|
26152
|
+
maxBodyLength: -1,
|
|
26153
|
+
env: {
|
|
26154
|
+
FormData: platform.classes.FormData,
|
|
26155
|
+
Blob: platform.classes.Blob
|
|
26156
|
+
},
|
|
26157
|
+
validateStatus: function validateStatus(status) {
|
|
26158
|
+
return status >= 200 && status < 300;
|
|
26159
|
+
},
|
|
26160
|
+
headers: { common: {
|
|
26161
|
+
Accept: "application/json, text/plain, */*",
|
|
26162
|
+
"Content-Type": void 0
|
|
26163
|
+
} }
|
|
26164
|
+
};
|
|
26165
|
+
utils$1.forEach([
|
|
26166
|
+
"delete",
|
|
26167
|
+
"get",
|
|
26168
|
+
"head",
|
|
26169
|
+
"post",
|
|
26170
|
+
"put",
|
|
26171
|
+
"patch",
|
|
26172
|
+
"query"
|
|
26173
|
+
], (method) => {
|
|
26174
|
+
defaults.headers[method] = {};
|
|
26064
26175
|
});
|
|
26065
|
-
utils$1.freezeMethods(AxiosHeaders);
|
|
26066
|
-
const AxiosHeaders$1 = AxiosHeaders;
|
|
26067
26176
|
/**
|
|
26068
26177
|
* Transform the data for a request or a response
|
|
26069
26178
|
*
|
|
@@ -26073,9 +26182,9 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26073
26182
|
* @returns {*} The resulting transformed data
|
|
26074
26183
|
*/
|
|
26075
26184
|
function transformData(fns, response) {
|
|
26076
|
-
const config$1 = this || defaults
|
|
26185
|
+
const config$1 = this || defaults;
|
|
26077
26186
|
const context = response || config$1;
|
|
26078
|
-
const headers = AxiosHeaders
|
|
26187
|
+
const headers = AxiosHeaders.from(context.headers);
|
|
26079
26188
|
let data = context.data;
|
|
26080
26189
|
utils$1.forEach(fns, function transform(fn) {
|
|
26081
26190
|
data = fn.call(config$1, data, headers.normalize(), response ? response.status : void 0);
|
|
@@ -26086,20 +26195,22 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26086
26195
|
function isCancel(value) {
|
|
26087
26196
|
return !!(value && value.__CANCEL__);
|
|
26088
26197
|
}
|
|
26089
|
-
|
|
26090
|
-
|
|
26091
|
-
|
|
26092
|
-
|
|
26093
|
-
|
|
26094
|
-
|
|
26095
|
-
|
|
26096
|
-
|
|
26097
|
-
|
|
26098
|
-
|
|
26099
|
-
|
|
26100
|
-
|
|
26101
|
-
|
|
26102
|
-
|
|
26198
|
+
var CanceledError = class extends AxiosError {
|
|
26199
|
+
/**
|
|
26200
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
26201
|
+
*
|
|
26202
|
+
* @param {string=} message The message.
|
|
26203
|
+
* @param {Object=} config The config.
|
|
26204
|
+
* @param {Object=} request The request.
|
|
26205
|
+
*
|
|
26206
|
+
* @returns {CanceledError} The created error.
|
|
26207
|
+
*/
|
|
26208
|
+
constructor(message, config$1, request) {
|
|
26209
|
+
super(message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config$1, request);
|
|
26210
|
+
this.name = "CanceledError";
|
|
26211
|
+
this.__CANCEL__ = true;
|
|
26212
|
+
}
|
|
26213
|
+
};
|
|
26103
26214
|
/**
|
|
26104
26215
|
* Resolve or reject a Promise based on response status.
|
|
26105
26216
|
*
|
|
@@ -26112,7 +26223,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26112
26223
|
function settle(resolve$1, reject, response) {
|
|
26113
26224
|
const validateStatus = response.config.validateStatus;
|
|
26114
26225
|
if (!response.status || !validateStatus || validateStatus(response.status)) resolve$1(response);
|
|
26115
|
-
else reject(new AxiosError("Request failed with status code " + response.status,
|
|
26226
|
+
else reject(new AxiosError("Request failed with status code " + response.status, response.status >= 400 && response.status < 500 ? AxiosError.ERR_BAD_REQUEST : AxiosError.ERR_BAD_RESPONSE, response.config, response.request, response));
|
|
26116
26227
|
}
|
|
26117
26228
|
/**
|
|
26118
26229
|
* Determines whether the specified URL is absolute
|
|
@@ -26122,6 +26233,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26122
26233
|
* @returns {boolean} True if the specified URL is absolute, otherwise false
|
|
26123
26234
|
*/
|
|
26124
26235
|
function isAbsoluteURL(url$2) {
|
|
26236
|
+
if (typeof url$2 !== "string") return false;
|
|
26125
26237
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url$2);
|
|
26126
26238
|
}
|
|
26127
26239
|
/**
|
|
@@ -26147,12 +26259,80 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26147
26259
|
*/
|
|
26148
26260
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
26149
26261
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
26150
|
-
if (baseURL && (isRelativeUrl || allowAbsoluteUrls
|
|
26262
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) return combineURLs(baseURL, requestedURL);
|
|
26151
26263
|
return requestedURL;
|
|
26152
26264
|
}
|
|
26153
|
-
|
|
26265
|
+
var DEFAULT_PORTS$1 = {
|
|
26266
|
+
ftp: 21,
|
|
26267
|
+
gopher: 70,
|
|
26268
|
+
http: 80,
|
|
26269
|
+
https: 443,
|
|
26270
|
+
ws: 80,
|
|
26271
|
+
wss: 443
|
|
26272
|
+
};
|
|
26273
|
+
function parseUrl(urlString) {
|
|
26274
|
+
try {
|
|
26275
|
+
return new URL(urlString);
|
|
26276
|
+
} catch {
|
|
26277
|
+
return null;
|
|
26278
|
+
}
|
|
26279
|
+
}
|
|
26280
|
+
/**
|
|
26281
|
+
* @param {string|object|URL} url - The URL as a string or URL instance, or a
|
|
26282
|
+
* compatible object (such as the result from legacy url.parse).
|
|
26283
|
+
* @return {string} The URL of the proxy that should handle the request to the
|
|
26284
|
+
* given URL. If no proxy is set, this will be an empty string.
|
|
26285
|
+
*/
|
|
26286
|
+
function getProxyForUrl(url$2) {
|
|
26287
|
+
var parsedUrl = (typeof url$2 === "string" ? parseUrl(url$2) : url$2) || {};
|
|
26288
|
+
var proto = parsedUrl.protocol;
|
|
26289
|
+
var hostname = parsedUrl.host;
|
|
26290
|
+
var port = parsedUrl.port;
|
|
26291
|
+
if (typeof hostname !== "string" || !hostname || typeof proto !== "string") return "";
|
|
26292
|
+
proto = proto.split(":", 1)[0];
|
|
26293
|
+
hostname = hostname.replace(/:\d*$/, "");
|
|
26294
|
+
port = parseInt(port) || DEFAULT_PORTS$1[proto] || 0;
|
|
26295
|
+
if (!shouldProxy(hostname, port)) return "";
|
|
26296
|
+
var proxy = getEnv(proto + "_proxy") || getEnv("all_proxy");
|
|
26297
|
+
if (proxy && proxy.indexOf("://") === -1) proxy = proto + "://" + proxy;
|
|
26298
|
+
return proxy;
|
|
26299
|
+
}
|
|
26300
|
+
/**
|
|
26301
|
+
* Determines whether a given URL should be proxied.
|
|
26302
|
+
*
|
|
26303
|
+
* @param {string} hostname - The host name of the URL.
|
|
26304
|
+
* @param {number} port - The effective port of the URL.
|
|
26305
|
+
* @returns {boolean} Whether the given URL should be proxied.
|
|
26306
|
+
* @private
|
|
26307
|
+
*/
|
|
26308
|
+
function shouldProxy(hostname, port) {
|
|
26309
|
+
var NO_PROXY = getEnv("no_proxy").toLowerCase();
|
|
26310
|
+
if (!NO_PROXY) return true;
|
|
26311
|
+
if (NO_PROXY === "*") return false;
|
|
26312
|
+
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
26313
|
+
if (!proxy) return true;
|
|
26314
|
+
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
26315
|
+
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
26316
|
+
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
26317
|
+
if (parsedProxyPort && parsedProxyPort !== port) return true;
|
|
26318
|
+
if (!/^[.*]/.test(parsedProxyHostname)) return hostname !== parsedProxyHostname;
|
|
26319
|
+
if (parsedProxyHostname.charAt(0) === "*") parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
26320
|
+
return !hostname.endsWith(parsedProxyHostname);
|
|
26321
|
+
});
|
|
26322
|
+
}
|
|
26323
|
+
/**
|
|
26324
|
+
* Get the value for an environment variable.
|
|
26325
|
+
*
|
|
26326
|
+
* @param {string} key - The name of the environment variable.
|
|
26327
|
+
* @return {string} The value of the environment variable.
|
|
26328
|
+
* @private
|
|
26329
|
+
*/
|
|
26330
|
+
function getEnv(key) {
|
|
26331
|
+
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
26332
|
+
}
|
|
26333
|
+
const VERSION = "1.16.0";
|
|
26154
26334
|
function parseProtocol(url$2) {
|
|
26155
|
-
const match = /^([-+\w]{1,25})(
|
|
26335
|
+
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url$2);
|
|
26156
26336
|
return match && match[1] || "";
|
|
26157
26337
|
}
|
|
26158
26338
|
const DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
|
|
@@ -26187,7 +26367,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26187
26367
|
throw new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_NOT_SUPPORT);
|
|
26188
26368
|
}
|
|
26189
26369
|
const kInternals = Symbol("internals");
|
|
26190
|
-
var AxiosTransformStream = class extends
|
|
26370
|
+
var AxiosTransformStream = class extends stream.Transform {
|
|
26191
26371
|
constructor(options) {
|
|
26192
26372
|
options = utils$1.toFlatObject(options, {
|
|
26193
26373
|
maxRate: 0,
|
|
@@ -26278,7 +26458,6 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26278
26458
|
});
|
|
26279
26459
|
}
|
|
26280
26460
|
};
|
|
26281
|
-
const AxiosTransformStream$1 = AxiosTransformStream;
|
|
26282
26461
|
const { asyncIterator } = Symbol;
|
|
26283
26462
|
const readBlob = async function* (blob) {
|
|
26284
26463
|
if (blob.stream) yield* blob.stream();
|
|
@@ -26286,9 +26465,8 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26286
26465
|
else if (blob[asyncIterator]) yield* blob[asyncIterator]();
|
|
26287
26466
|
else yield blob;
|
|
26288
26467
|
};
|
|
26289
|
-
const readBlob$1 = readBlob;
|
|
26290
26468
|
const BOUNDARY_ALPHABET = platform.ALPHABET.ALPHA_DIGIT + "-_";
|
|
26291
|
-
const textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new
|
|
26469
|
+
const textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
|
|
26292
26470
|
const CRLF = "\r\n";
|
|
26293
26471
|
const CRLF_BYTES = textEncoder.encode(CRLF);
|
|
26294
26472
|
const CRLF_BYTES_COUNT = 2;
|
|
@@ -26298,7 +26476,10 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26298
26476
|
const isStringValue = utils$1.isString(value);
|
|
26299
26477
|
let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${!isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : ""}${CRLF}`;
|
|
26300
26478
|
if (isStringValue) value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
|
|
26301
|
-
else
|
|
26479
|
+
else {
|
|
26480
|
+
const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
|
|
26481
|
+
headers += `Content-Type: ${safeType}${CRLF}`;
|
|
26482
|
+
}
|
|
26302
26483
|
this.headers = textEncoder.encode(headers + CRLF);
|
|
26303
26484
|
this.contentLength = isStringValue ? value.byteLength : value.size;
|
|
26304
26485
|
this.size = this.headers.byteLength + this.contentLength + CRLF_BYTES_COUNT;
|
|
@@ -26309,7 +26490,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26309
26490
|
yield this.headers;
|
|
26310
26491
|
const { value } = this;
|
|
26311
26492
|
if (utils$1.isTypedArray(value)) yield value;
|
|
26312
|
-
else yield* readBlob
|
|
26493
|
+
else yield* readBlob(value);
|
|
26313
26494
|
yield CRLF_BYTES;
|
|
26314
26495
|
}
|
|
26315
26496
|
static escapeName(name) {
|
|
@@ -26323,7 +26504,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26323
26504
|
const formDataToStream = (form, headersHandler, options) => {
|
|
26324
26505
|
const { tag = "form-data-boundary", size = 25, boundary = tag + "-" + platform.generateString(size, BOUNDARY_ALPHABET) } = options || {};
|
|
26325
26506
|
if (!utils$1.isFormData(form)) throw TypeError("FormData instance required");
|
|
26326
|
-
if (boundary.length < 1 || boundary.length > 70) throw Error("boundary must be
|
|
26507
|
+
if (boundary.length < 1 || boundary.length > 70) throw Error("boundary must be 1-70 characters long");
|
|
26327
26508
|
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
26328
26509
|
const footerBytes = textEncoder.encode("--" + boundary + "--\r\n");
|
|
26329
26510
|
let contentLength = footerBytes.byteLength;
|
|
@@ -26337,16 +26518,15 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26337
26518
|
const computedHeaders = { "Content-Type": `multipart/form-data; boundary=${boundary}` };
|
|
26338
26519
|
if (Number.isFinite(contentLength)) computedHeaders["Content-Length"] = contentLength;
|
|
26339
26520
|
headersHandler && headersHandler(computedHeaders);
|
|
26340
|
-
return stream.Readable.from(
|
|
26521
|
+
return stream.Readable.from(async function* () {
|
|
26341
26522
|
for (const part of parts) {
|
|
26342
26523
|
yield boundaryBytes;
|
|
26343
26524
|
yield* part.encode();
|
|
26344
26525
|
}
|
|
26345
26526
|
yield footerBytes;
|
|
26346
|
-
}
|
|
26527
|
+
}());
|
|
26347
26528
|
};
|
|
26348
|
-
|
|
26349
|
-
var ZlibHeaderTransformStream = class extends stream__default["default"].Transform {
|
|
26529
|
+
var ZlibHeaderTransformStream = class extends stream.Transform {
|
|
26350
26530
|
__transform(chunk, encoding, callback) {
|
|
26351
26531
|
this.push(chunk);
|
|
26352
26532
|
callback();
|
|
@@ -26364,7 +26544,6 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26364
26544
|
this.__transform(chunk, encoding, callback);
|
|
26365
26545
|
}
|
|
26366
26546
|
};
|
|
26367
|
-
const ZlibHeaderTransformStream$1 = ZlibHeaderTransformStream;
|
|
26368
26547
|
const callbackify = (fn, reducer) => {
|
|
26369
26548
|
return utils$1.isAsyncFn(fn) ? function(...args) {
|
|
26370
26549
|
const cb = args.pop();
|
|
@@ -26377,7 +26556,104 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26377
26556
|
}, cb);
|
|
26378
26557
|
} : fn;
|
|
26379
26558
|
};
|
|
26380
|
-
const
|
|
26559
|
+
const LOOPBACK_HOSTNAMES = new Set(["localhost"]);
|
|
26560
|
+
const isIPv4Loopback = (host) => {
|
|
26561
|
+
const parts = host.split(".");
|
|
26562
|
+
if (parts.length !== 4) return false;
|
|
26563
|
+
if (parts[0] !== "127") return false;
|
|
26564
|
+
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
26565
|
+
};
|
|
26566
|
+
const isIPv6Loopback = (host) => {
|
|
26567
|
+
if (host === "::1") return true;
|
|
26568
|
+
const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
|
|
26569
|
+
if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
|
|
26570
|
+
const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
|
|
26571
|
+
if (v4MappedHex) {
|
|
26572
|
+
const high = parseInt(v4MappedHex[1], 16);
|
|
26573
|
+
return high >= 32512 && high <= 32767;
|
|
26574
|
+
}
|
|
26575
|
+
const groups = host.split(":");
|
|
26576
|
+
if (groups.length === 8) {
|
|
26577
|
+
for (let i = 0; i < 7; i++) if (!/^0+$/.test(groups[i])) return false;
|
|
26578
|
+
return /^0*1$/.test(groups[7]);
|
|
26579
|
+
}
|
|
26580
|
+
return false;
|
|
26581
|
+
};
|
|
26582
|
+
const isLoopback = (host) => {
|
|
26583
|
+
if (!host) return false;
|
|
26584
|
+
if (LOOPBACK_HOSTNAMES.has(host)) return true;
|
|
26585
|
+
if (isIPv4Loopback(host)) return true;
|
|
26586
|
+
return isIPv6Loopback(host);
|
|
26587
|
+
};
|
|
26588
|
+
const DEFAULT_PORTS = {
|
|
26589
|
+
http: 80,
|
|
26590
|
+
https: 443,
|
|
26591
|
+
ws: 80,
|
|
26592
|
+
wss: 443,
|
|
26593
|
+
ftp: 21
|
|
26594
|
+
};
|
|
26595
|
+
const parseNoProxyEntry = (entry) => {
|
|
26596
|
+
let entryHost = entry;
|
|
26597
|
+
let entryPort = 0;
|
|
26598
|
+
if (entryHost.charAt(0) === "[") {
|
|
26599
|
+
const bracketIndex = entryHost.indexOf("]");
|
|
26600
|
+
if (bracketIndex !== -1) {
|
|
26601
|
+
const host = entryHost.slice(1, bracketIndex);
|
|
26602
|
+
const rest = entryHost.slice(bracketIndex + 1);
|
|
26603
|
+
if (rest.charAt(0) === ":" && /^\d+$/.test(rest.slice(1))) entryPort = Number.parseInt(rest.slice(1), 10);
|
|
26604
|
+
return [host, entryPort];
|
|
26605
|
+
}
|
|
26606
|
+
}
|
|
26607
|
+
const firstColon = entryHost.indexOf(":");
|
|
26608
|
+
const lastColon = entryHost.lastIndexOf(":");
|
|
26609
|
+
if (firstColon !== -1 && firstColon === lastColon && /^\d+$/.test(entryHost.slice(lastColon + 1))) {
|
|
26610
|
+
entryPort = Number.parseInt(entryHost.slice(lastColon + 1), 10);
|
|
26611
|
+
entryHost = entryHost.slice(0, lastColon);
|
|
26612
|
+
}
|
|
26613
|
+
return [entryHost, entryPort];
|
|
26614
|
+
};
|
|
26615
|
+
const IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
|
|
26616
|
+
const IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
|
|
26617
|
+
const unmapIPv4MappedIPv6 = (host) => {
|
|
26618
|
+
if (typeof host !== "string" || host.indexOf(":") === -1) return host;
|
|
26619
|
+
const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
|
|
26620
|
+
if (dotted) return dotted[1];
|
|
26621
|
+
const hex = host.match(IPV4_MAPPED_HEX_RE);
|
|
26622
|
+
if (hex) {
|
|
26623
|
+
const high = parseInt(hex[1], 16);
|
|
26624
|
+
const low = parseInt(hex[2], 16);
|
|
26625
|
+
return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
|
|
26626
|
+
}
|
|
26627
|
+
return host;
|
|
26628
|
+
};
|
|
26629
|
+
const normalizeNoProxyHost = (hostname) => {
|
|
26630
|
+
if (!hostname) return hostname;
|
|
26631
|
+
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") hostname = hostname.slice(1, -1);
|
|
26632
|
+
return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
|
|
26633
|
+
};
|
|
26634
|
+
function shouldBypassProxy(location) {
|
|
26635
|
+
let parsed;
|
|
26636
|
+
try {
|
|
26637
|
+
parsed = new URL(location);
|
|
26638
|
+
} catch (_err) {
|
|
26639
|
+
return false;
|
|
26640
|
+
}
|
|
26641
|
+
const noProxy = (process.env.no_proxy || process.env.NO_PROXY || "").toLowerCase();
|
|
26642
|
+
if (!noProxy) return false;
|
|
26643
|
+
if (noProxy === "*") return true;
|
|
26644
|
+
const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS[parsed.protocol.split(":", 1)[0]] || 0;
|
|
26645
|
+
const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
|
|
26646
|
+
return noProxy.split(/[\s,]+/).some((entry) => {
|
|
26647
|
+
if (!entry) return false;
|
|
26648
|
+
let [entryHost, entryPort] = parseNoProxyEntry(entry);
|
|
26649
|
+
entryHost = normalizeNoProxyHost(entryHost);
|
|
26650
|
+
if (!entryHost) return false;
|
|
26651
|
+
if (entryPort && entryPort !== port) return false;
|
|
26652
|
+
if (entryHost.charAt(0) === "*") entryHost = entryHost.slice(1);
|
|
26653
|
+
if (entryHost.charAt(0) === ".") return hostname.endsWith(entryHost);
|
|
26654
|
+
return hostname === entryHost || isLoopback(hostname) && isLoopback(entryHost);
|
|
26655
|
+
});
|
|
26656
|
+
}
|
|
26381
26657
|
/**
|
|
26382
26658
|
* Calculate data maxRate
|
|
26383
26659
|
* @param {Number} [samplesCount= 10]
|
|
@@ -26450,19 +26726,19 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26450
26726
|
let bytesNotified = 0;
|
|
26451
26727
|
const _speedometer = speedometer(50, 250);
|
|
26452
26728
|
return throttle((e$1) => {
|
|
26453
|
-
const
|
|
26729
|
+
const rawLoaded = e$1.loaded;
|
|
26454
26730
|
const total = e$1.lengthComputable ? e$1.total : void 0;
|
|
26455
|
-
const
|
|
26731
|
+
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
26732
|
+
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
26456
26733
|
const rate = _speedometer(progressBytes);
|
|
26457
|
-
|
|
26458
|
-
bytesNotified = loaded;
|
|
26734
|
+
bytesNotified = Math.max(bytesNotified, loaded);
|
|
26459
26735
|
listener({
|
|
26460
26736
|
loaded,
|
|
26461
26737
|
total,
|
|
26462
26738
|
progress: total ? loaded / total : void 0,
|
|
26463
26739
|
bytes: progressBytes,
|
|
26464
26740
|
rate: rate ? rate : void 0,
|
|
26465
|
-
estimated: rate && total
|
|
26741
|
+
estimated: rate && total ? (total - loaded) / rate : void 0,
|
|
26466
26742
|
event: e$1,
|
|
26467
26743
|
lengthComputable: total != null,
|
|
26468
26744
|
[isDownloadStream ? "download" : "upload"]: true
|
|
@@ -26521,25 +26797,59 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26521
26797
|
if (body.charCodeAt(idx) === 61) pad++;
|
|
26522
26798
|
else if (tailIsPct3D(idx)) pad++;
|
|
26523
26799
|
}
|
|
26524
|
-
const bytes = Math.floor(effectiveLen / 4) * 3 - (pad || 0);
|
|
26525
|
-
return bytes > 0 ? bytes : 0;
|
|
26800
|
+
const bytes$1 = Math.floor(effectiveLen / 4) * 3 - (pad || 0);
|
|
26801
|
+
return bytes$1 > 0 ? bytes$1 : 0;
|
|
26526
26802
|
}
|
|
26527
|
-
return Buffer.byteLength(body, "utf8");
|
|
26803
|
+
if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") return Buffer.byteLength(body, "utf8");
|
|
26804
|
+
let bytes = 0;
|
|
26805
|
+
for (let i = 0, len = body.length; i < len; i++) {
|
|
26806
|
+
const c = body.charCodeAt(i);
|
|
26807
|
+
if (c < 128) bytes += 1;
|
|
26808
|
+
else if (c < 2048) bytes += 2;
|
|
26809
|
+
else if (c >= 55296 && c <= 56319 && i + 1 < len) {
|
|
26810
|
+
const next = body.charCodeAt(i + 1);
|
|
26811
|
+
if (next >= 56320 && next <= 57343) {
|
|
26812
|
+
bytes += 4;
|
|
26813
|
+
i++;
|
|
26814
|
+
} else bytes += 3;
|
|
26815
|
+
} else bytes += 3;
|
|
26816
|
+
}
|
|
26817
|
+
return bytes;
|
|
26528
26818
|
}
|
|
26529
26819
|
const zlibOptions = {
|
|
26530
|
-
flush:
|
|
26531
|
-
finishFlush:
|
|
26820
|
+
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
26821
|
+
finishFlush: zlib.constants.Z_SYNC_FLUSH
|
|
26532
26822
|
};
|
|
26533
26823
|
const brotliOptions = {
|
|
26534
|
-
flush:
|
|
26535
|
-
finishFlush:
|
|
26824
|
+
flush: zlib.constants.BROTLI_OPERATION_FLUSH,
|
|
26825
|
+
finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
|
|
26536
26826
|
};
|
|
26537
|
-
const isBrotliSupported = utils$1.isFunction(
|
|
26538
|
-
const { http: httpFollow, https: httpsFollow } =
|
|
26827
|
+
const isBrotliSupported = utils$1.isFunction(zlib.createBrotliDecompress);
|
|
26828
|
+
const { http: httpFollow, https: httpsFollow } = followRedirects;
|
|
26539
26829
|
const isHttps = /https:?/;
|
|
26830
|
+
const FORM_DATA_CONTENT_HEADERS$1 = ["content-type", "content-length"];
|
|
26831
|
+
function setFormDataHeaders$1(headers, formHeaders, policy) {
|
|
26832
|
+
if (policy !== "content-only") {
|
|
26833
|
+
headers.set(formHeaders);
|
|
26834
|
+
return;
|
|
26835
|
+
}
|
|
26836
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
26837
|
+
if (FORM_DATA_CONTENT_HEADERS$1.includes(key.toLowerCase())) headers.set(key, val);
|
|
26838
|
+
});
|
|
26839
|
+
}
|
|
26840
|
+
const kAxiosSocketListener = Symbol("axios.http.socketListener");
|
|
26841
|
+
const kAxiosCurrentReq = Symbol("axios.http.currentReq");
|
|
26540
26842
|
const supportedProtocols = platform.protocols.map((protocol) => {
|
|
26541
26843
|
return protocol + ":";
|
|
26542
26844
|
});
|
|
26845
|
+
const decodeURIComponentSafe = (value) => {
|
|
26846
|
+
if (!utils$1.isString(value)) return value;
|
|
26847
|
+
try {
|
|
26848
|
+
return decodeURIComponent(value);
|
|
26849
|
+
} catch (error) {
|
|
26850
|
+
return value;
|
|
26851
|
+
}
|
|
26852
|
+
};
|
|
26543
26853
|
const flushOnFinish = (stream$1, [throttled, flush]) => {
|
|
26544
26854
|
stream$1.on("end", flush).on("error", flush);
|
|
26545
26855
|
return throttled;
|
|
@@ -26555,10 +26865,10 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26555
26865
|
let len = authoritySessions.length;
|
|
26556
26866
|
for (let i = 0; i < len; i++) {
|
|
26557
26867
|
const [sessionHandle, sessionOptions] = authoritySessions[i];
|
|
26558
|
-
if (!sessionHandle.destroyed && !sessionHandle.closed &&
|
|
26868
|
+
if (!sessionHandle.destroyed && !sessionHandle.closed && util.isDeepStrictEqual(sessionOptions, options)) return sessionHandle;
|
|
26559
26869
|
}
|
|
26560
26870
|
}
|
|
26561
|
-
const session =
|
|
26871
|
+
const session = http2.connect(authority, options);
|
|
26562
26872
|
let removed;
|
|
26563
26873
|
const removeSession = () => {
|
|
26564
26874
|
if (removed) return;
|
|
@@ -26567,6 +26877,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26567
26877
|
while (i--) if (entries[i][0] === session) {
|
|
26568
26878
|
if (len === 1) delete this.sessions[authority];
|
|
26569
26879
|
else entries.splice(i, 1);
|
|
26880
|
+
if (!session.closed) session.close();
|
|
26570
26881
|
return;
|
|
26571
26882
|
}
|
|
26572
26883
|
};
|
|
@@ -26606,9 +26917,9 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26606
26917
|
*
|
|
26607
26918
|
* @returns {Object<string, any>}
|
|
26608
26919
|
*/
|
|
26609
|
-
function dispatchBeforeRedirect(options, responseDetails) {
|
|
26920
|
+
function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
26610
26921
|
if (options.beforeRedirects.proxy) options.beforeRedirects.proxy(options);
|
|
26611
|
-
if (options.beforeRedirects.config) options.beforeRedirects.config(options, responseDetails);
|
|
26922
|
+
if (options.beforeRedirects.config) options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
26612
26923
|
}
|
|
26613
26924
|
/**
|
|
26614
26925
|
* If the proxy or config afterRedirects functions are defined, call them with the options
|
|
@@ -26619,29 +26930,49 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26619
26930
|
*
|
|
26620
26931
|
* @returns {http.ClientRequestArgs}
|
|
26621
26932
|
*/
|
|
26622
|
-
function setProxy(options, configProxy, location) {
|
|
26933
|
+
function setProxy(options, configProxy, location, isRedirect) {
|
|
26623
26934
|
let proxy = configProxy;
|
|
26624
26935
|
if (!proxy && proxy !== false) {
|
|
26625
|
-
const proxyUrl =
|
|
26626
|
-
if (proxyUrl)
|
|
26936
|
+
const proxyUrl = getProxyForUrl(location);
|
|
26937
|
+
if (proxyUrl) {
|
|
26938
|
+
if (!shouldBypassProxy(location)) proxy = new URL(proxyUrl);
|
|
26939
|
+
}
|
|
26940
|
+
}
|
|
26941
|
+
if (isRedirect && options.headers) {
|
|
26942
|
+
for (const name of Object.keys(options.headers)) if (name.toLowerCase() === "proxy-authorization") delete options.headers[name];
|
|
26627
26943
|
}
|
|
26628
26944
|
if (proxy) {
|
|
26629
|
-
|
|
26630
|
-
|
|
26631
|
-
|
|
26632
|
-
|
|
26945
|
+
const isProxyURL = proxy instanceof URL;
|
|
26946
|
+
const readProxyField = (key) => isProxyURL || utils$1.hasOwnProp(proxy, key) ? proxy[key] : void 0;
|
|
26947
|
+
const proxyUsername = readProxyField("username");
|
|
26948
|
+
const proxyPassword = readProxyField("password");
|
|
26949
|
+
let proxyAuth = utils$1.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
|
|
26950
|
+
if (proxyUsername) proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
|
|
26951
|
+
if (proxyAuth) {
|
|
26952
|
+
const authIsObject = typeof proxyAuth === "object";
|
|
26953
|
+
const authUsername = authIsObject && utils$1.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
|
|
26954
|
+
const authPassword = authIsObject && utils$1.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
|
|
26955
|
+
if (Boolean(authUsername || authPassword)) proxyAuth = (authUsername || "") + ":" + (authPassword || "");
|
|
26956
|
+
else if (authIsObject) throw new AxiosError("Invalid proxy authorization", AxiosError.ERR_BAD_OPTION, { proxy });
|
|
26957
|
+
const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
|
|
26633
26958
|
options.headers["Proxy-Authorization"] = "Basic " + base64;
|
|
26634
26959
|
}
|
|
26635
|
-
|
|
26636
|
-
const
|
|
26960
|
+
let hasUserHostHeader = false;
|
|
26961
|
+
for (const name of Object.keys(options.headers)) if (name.toLowerCase() === "host") {
|
|
26962
|
+
hasUserHostHeader = true;
|
|
26963
|
+
break;
|
|
26964
|
+
}
|
|
26965
|
+
if (!hasUserHostHeader) options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
|
|
26966
|
+
const proxyHost = readProxyField("hostname") || readProxyField("host");
|
|
26637
26967
|
options.hostname = proxyHost;
|
|
26638
26968
|
options.host = proxyHost;
|
|
26639
|
-
options.port =
|
|
26969
|
+
options.port = readProxyField("port");
|
|
26640
26970
|
options.path = location;
|
|
26641
|
-
|
|
26971
|
+
const proxyProtocol = readProxyField("protocol");
|
|
26972
|
+
if (proxyProtocol) options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
|
|
26642
26973
|
}
|
|
26643
26974
|
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
|
|
26644
|
-
setProxy(redirectOptions, configProxy, redirectOptions.href);
|
|
26975
|
+
setProxy(redirectOptions, configProxy, redirectOptions.href, true);
|
|
26645
26976
|
};
|
|
26646
26977
|
}
|
|
26647
26978
|
const isHttpAdapterSupported = typeof process !== "undefined" && utils$1.kindOf(process) === "process";
|
|
@@ -26677,10 +27008,10 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26677
27008
|
family
|
|
26678
27009
|
});
|
|
26679
27010
|
const http2Transport = { request(options, cb) {
|
|
26680
|
-
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || 80);
|
|
27011
|
+
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
26681
27012
|
const { http2Options, headers } = options;
|
|
26682
27013
|
const session = http2Sessions.getSession(authority, http2Options);
|
|
26683
|
-
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } =
|
|
27014
|
+
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
|
|
26684
27015
|
const http2Headers = {
|
|
26685
27016
|
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
26686
27017
|
[HTTP2_HEADER_METHOD]: options.method,
|
|
@@ -26701,20 +27032,28 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26701
27032
|
});
|
|
26702
27033
|
return req;
|
|
26703
27034
|
} };
|
|
26704
|
-
|
|
27035
|
+
var httpAdapter = isHttpAdapterSupported && function httpAdapter$1(config$1) {
|
|
26705
27036
|
return wrapAsync(async function dispatchHttpRequest(resolve$1, reject, onDone) {
|
|
26706
|
-
|
|
26707
|
-
|
|
27037
|
+
const own$1 = (key) => utils$1.hasOwnProp(config$1, key) ? config$1[key] : void 0;
|
|
27038
|
+
let data = own$1("data");
|
|
27039
|
+
let lookup$1 = own$1("lookup");
|
|
27040
|
+
let family = own$1("family");
|
|
27041
|
+
let httpVersion = own$1("httpVersion");
|
|
27042
|
+
if (httpVersion === void 0) httpVersion = 1;
|
|
27043
|
+
let http2Options = own$1("http2Options");
|
|
27044
|
+
const responseType = own$1("responseType");
|
|
27045
|
+
const responseEncoding = own$1("responseEncoding");
|
|
26708
27046
|
const method = config$1.method.toUpperCase();
|
|
26709
27047
|
let isDone;
|
|
26710
27048
|
let rejected = false;
|
|
26711
27049
|
let req;
|
|
27050
|
+
let connectPhaseTimer;
|
|
26712
27051
|
httpVersion = +httpVersion;
|
|
26713
27052
|
if (Number.isNaN(httpVersion)) throw TypeError(`Invalid protocol version: '${config$1.httpVersion}' is not a number`);
|
|
26714
27053
|
if (httpVersion !== 1 && httpVersion !== 2) throw TypeError(`Unsupported protocol version '${httpVersion}'`);
|
|
26715
27054
|
const isHttp2 = httpVersion === 2;
|
|
26716
27055
|
if (lookup$1) {
|
|
26717
|
-
const _lookup = callbackify
|
|
27056
|
+
const _lookup = callbackify(lookup$1, (value) => utils$1.isArray(value) ? value : [value]);
|
|
26718
27057
|
lookup$1 = (hostname, opt, cb) => {
|
|
26719
27058
|
_lookup(hostname, opt, (err, arg0, arg1) => {
|
|
26720
27059
|
if (err) return cb(err);
|
|
@@ -26731,8 +27070,21 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26731
27070
|
console.warn("emit error", err);
|
|
26732
27071
|
}
|
|
26733
27072
|
}
|
|
27073
|
+
function clearConnectPhaseTimer() {
|
|
27074
|
+
if (connectPhaseTimer) {
|
|
27075
|
+
clearTimeout(connectPhaseTimer);
|
|
27076
|
+
connectPhaseTimer = null;
|
|
27077
|
+
}
|
|
27078
|
+
}
|
|
27079
|
+
function createTimeoutError() {
|
|
27080
|
+
let timeoutErrorMessage = config$1.timeout ? "timeout of " + config$1.timeout + "ms exceeded" : "timeout exceeded";
|
|
27081
|
+
const transitional = config$1.transitional || transitionalDefaults;
|
|
27082
|
+
if (config$1.timeoutErrorMessage) timeoutErrorMessage = config$1.timeoutErrorMessage;
|
|
27083
|
+
return new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config$1, req);
|
|
27084
|
+
}
|
|
26734
27085
|
abortEmitter.once("abort", reject);
|
|
26735
27086
|
const onFinished = () => {
|
|
27087
|
+
clearConnectPhaseTimer();
|
|
26736
27088
|
if (config$1.cancelToken) config$1.cancelToken.unsubscribe(abort$3);
|
|
26737
27089
|
if (config$1.signal) config$1.signal.removeEventListener("abort", abort$3);
|
|
26738
27090
|
abortEmitter.removeAllListeners();
|
|
@@ -26743,14 +27095,15 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26743
27095
|
}
|
|
26744
27096
|
onDone((response, isRejected) => {
|
|
26745
27097
|
isDone = true;
|
|
27098
|
+
clearConnectPhaseTimer();
|
|
26746
27099
|
if (isRejected) {
|
|
26747
27100
|
rejected = true;
|
|
26748
27101
|
onFinished();
|
|
26749
27102
|
return;
|
|
26750
27103
|
}
|
|
26751
27104
|
const { data: data$1 } = response;
|
|
26752
|
-
if (data$1 instanceof
|
|
26753
|
-
const offListeners =
|
|
27105
|
+
if (data$1 instanceof stream.Readable || data$1 instanceof stream.Duplex) {
|
|
27106
|
+
const offListeners = stream.finished(data$1, () => {
|
|
26754
27107
|
offListeners();
|
|
26755
27108
|
onFinished();
|
|
26756
27109
|
});
|
|
@@ -26778,17 +27131,17 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26778
27131
|
if (responseType === "text") {
|
|
26779
27132
|
convertedData = convertedData.toString(responseEncoding);
|
|
26780
27133
|
if (!responseEncoding || responseEncoding === "utf8") convertedData = utils$1.stripBOM(convertedData);
|
|
26781
|
-
} else if (responseType === "stream") convertedData =
|
|
27134
|
+
} else if (responseType === "stream") convertedData = stream.Readable.from(convertedData);
|
|
26782
27135
|
return settle(resolve$1, reject, {
|
|
26783
27136
|
data: convertedData,
|
|
26784
27137
|
status: 200,
|
|
26785
27138
|
statusText: "OK",
|
|
26786
|
-
headers: new AxiosHeaders
|
|
27139
|
+
headers: new AxiosHeaders(),
|
|
26787
27140
|
config: config$1
|
|
26788
27141
|
});
|
|
26789
27142
|
}
|
|
26790
27143
|
if (supportedProtocols.indexOf(protocol) === -1) return reject(new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_BAD_REQUEST, config$1));
|
|
26791
|
-
const headers = AxiosHeaders
|
|
27144
|
+
const headers = AxiosHeaders.from(config$1.headers).normalize();
|
|
26792
27145
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
26793
27146
|
const { onUploadProgress, onDownloadProgress } = config$1;
|
|
26794
27147
|
const maxRate = config$1.maxRate;
|
|
@@ -26796,22 +27149,22 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26796
27149
|
let maxDownloadRate = void 0;
|
|
26797
27150
|
if (utils$1.isSpecCompliantForm(data)) {
|
|
26798
27151
|
const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
|
|
26799
|
-
data = formDataToStream
|
|
27152
|
+
data = formDataToStream(data, (formHeaders) => {
|
|
26800
27153
|
headers.set(formHeaders);
|
|
26801
27154
|
}, {
|
|
26802
27155
|
tag: `axios-${VERSION}-boundary`,
|
|
26803
27156
|
boundary: userBoundary && userBoundary[1] || void 0
|
|
26804
27157
|
});
|
|
26805
|
-
} else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders)) {
|
|
26806
|
-
headers
|
|
27158
|
+
} else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
|
|
27159
|
+
setFormDataHeaders$1(headers, data.getHeaders(), own$1("formDataHeaderPolicy"));
|
|
26807
27160
|
if (!headers.hasContentLength()) try {
|
|
26808
|
-
const knownLength = await
|
|
27161
|
+
const knownLength = await util.promisify(data.getLength).call(data);
|
|
26809
27162
|
Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
|
|
26810
27163
|
} catch (e$1) {}
|
|
26811
27164
|
} else if (utils$1.isBlob(data) || utils$1.isFile(data)) {
|
|
26812
27165
|
data.size && headers.setContentType(data.type || "application/octet-stream");
|
|
26813
27166
|
headers.setContentLength(data.size || 0);
|
|
26814
|
-
data =
|
|
27167
|
+
data = stream.Readable.from(readBlob(data));
|
|
26815
27168
|
} else if (data && !utils$1.isStream(data)) {
|
|
26816
27169
|
if (Buffer.isBuffer(data));
|
|
26817
27170
|
else if (utils$1.isArrayBuffer(data)) data = Buffer.from(new Uint8Array(data));
|
|
@@ -26826,25 +27179,26 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26826
27179
|
maxDownloadRate = maxRate[1];
|
|
26827
27180
|
} else maxUploadRate = maxDownloadRate = maxRate;
|
|
26828
27181
|
if (data && (onUploadProgress || maxUploadRate)) {
|
|
26829
|
-
if (!utils$1.isStream(data)) data =
|
|
26830
|
-
data =
|
|
27182
|
+
if (!utils$1.isStream(data)) data = stream.Readable.from(data, { objectMode: false });
|
|
27183
|
+
data = stream.pipeline([data, new AxiosTransformStream({ maxRate: utils$1.toFiniteNumber(maxUploadRate) })], utils$1.noop);
|
|
26831
27184
|
onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress), false, 3))));
|
|
26832
27185
|
}
|
|
26833
27186
|
let auth = void 0;
|
|
26834
|
-
|
|
26835
|
-
|
|
26836
|
-
const
|
|
27187
|
+
const configAuth = own$1("auth");
|
|
27188
|
+
if (configAuth) {
|
|
27189
|
+
const username = configAuth.username || "";
|
|
27190
|
+
const password = configAuth.password || "";
|
|
26837
27191
|
auth = username + ":" + password;
|
|
26838
27192
|
}
|
|
26839
27193
|
if (!auth && parsed.username) {
|
|
26840
|
-
const urlUsername = parsed.username;
|
|
26841
|
-
const urlPassword = parsed.password;
|
|
27194
|
+
const urlUsername = decodeURIComponentSafe(parsed.username);
|
|
27195
|
+
const urlPassword = decodeURIComponentSafe(parsed.password);
|
|
26842
27196
|
auth = urlUsername + ":" + urlPassword;
|
|
26843
27197
|
}
|
|
26844
27198
|
auth && headers.delete("authorization");
|
|
26845
|
-
let path$
|
|
27199
|
+
let path$1$1;
|
|
26846
27200
|
try {
|
|
26847
|
-
path$
|
|
27201
|
+
path$1$1 = buildURL(parsed.pathname + parsed.search, config$1.params, config$1.paramsSerializer).replace(/^\?/, "");
|
|
26848
27202
|
} catch (err) {
|
|
26849
27203
|
const customErr = new Error(err.message);
|
|
26850
27204
|
customErr.config = config$1;
|
|
@@ -26853,8 +27207,8 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26853
27207
|
return reject(customErr);
|
|
26854
27208
|
}
|
|
26855
27209
|
headers.set("Accept-Encoding", "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""), false);
|
|
26856
|
-
const options = {
|
|
26857
|
-
path: path$
|
|
27210
|
+
const options = Object.assign(Object.create(null), {
|
|
27211
|
+
path: path$1$1,
|
|
26858
27212
|
method,
|
|
26859
27213
|
headers: headers.toJSON(),
|
|
26860
27214
|
agents: {
|
|
@@ -26865,36 +27219,51 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26865
27219
|
protocol,
|
|
26866
27220
|
family,
|
|
26867
27221
|
beforeRedirect: dispatchBeforeRedirect,
|
|
26868
|
-
beforeRedirects:
|
|
27222
|
+
beforeRedirects: Object.create(null),
|
|
26869
27223
|
http2Options
|
|
26870
|
-
};
|
|
27224
|
+
});
|
|
26871
27225
|
!utils$1.isUndefined(lookup$1) && (options.lookup = lookup$1);
|
|
26872
|
-
if (config$1.socketPath)
|
|
26873
|
-
|
|
27226
|
+
if (config$1.socketPath) {
|
|
27227
|
+
if (typeof config$1.socketPath !== "string") return reject(new AxiosError("socketPath must be a string", AxiosError.ERR_BAD_OPTION_VALUE, config$1));
|
|
27228
|
+
if (config$1.allowedSocketPaths != null) {
|
|
27229
|
+
const allowed = Array.isArray(config$1.allowedSocketPaths) ? config$1.allowedSocketPaths : [config$1.allowedSocketPaths];
|
|
27230
|
+
const resolvedSocket = path$2.resolve(config$1.socketPath);
|
|
27231
|
+
if (!allowed.some((entry) => typeof entry === "string" && path$2.resolve(entry) === resolvedSocket)) return reject(new AxiosError(`socketPath "${config$1.socketPath}" is not permitted by allowedSocketPaths`, AxiosError.ERR_BAD_OPTION_VALUE, config$1));
|
|
27232
|
+
}
|
|
27233
|
+
options.socketPath = config$1.socketPath;
|
|
27234
|
+
} else {
|
|
26874
27235
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
26875
27236
|
options.port = parsed.port;
|
|
26876
27237
|
setProxy(options, config$1.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
|
|
26877
27238
|
}
|
|
26878
27239
|
let transport;
|
|
27240
|
+
let isNativeTransport = false;
|
|
26879
27241
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
26880
27242
|
options.agent = isHttpsRequest ? config$1.httpsAgent : config$1.httpAgent;
|
|
26881
27243
|
if (isHttp2) transport = http2Transport;
|
|
26882
|
-
else if (config$1.transport) transport = config$1.transport;
|
|
26883
|
-
else if (config$1.maxRedirects === 0) transport = isHttpsRequest ? https__default["default"] : http__default["default"];
|
|
26884
27244
|
else {
|
|
26885
|
-
|
|
26886
|
-
if (
|
|
26887
|
-
|
|
27245
|
+
const configTransport = own$1("transport");
|
|
27246
|
+
if (configTransport) transport = configTransport;
|
|
27247
|
+
else if (config$1.maxRedirects === 0) {
|
|
27248
|
+
transport = isHttpsRequest ? https$1 : http$1;
|
|
27249
|
+
isNativeTransport = true;
|
|
27250
|
+
} else {
|
|
27251
|
+
if (config$1.maxRedirects) options.maxRedirects = config$1.maxRedirects;
|
|
27252
|
+
const configBeforeRedirect = own$1("beforeRedirect");
|
|
27253
|
+
if (configBeforeRedirect) options.beforeRedirects.config = configBeforeRedirect;
|
|
27254
|
+
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
27255
|
+
}
|
|
26888
27256
|
}
|
|
26889
27257
|
if (config$1.maxBodyLength > -1) options.maxBodyLength = config$1.maxBodyLength;
|
|
26890
27258
|
else options.maxBodyLength = Infinity;
|
|
26891
|
-
|
|
27259
|
+
options.insecureHTTPParser = Boolean(own$1("insecureHTTPParser"));
|
|
26892
27260
|
req = transport.request(options, function handleResponse(res) {
|
|
27261
|
+
clearConnectPhaseTimer();
|
|
26893
27262
|
if (req.destroyed) return;
|
|
26894
27263
|
const streams = [res];
|
|
26895
27264
|
const responseLength = utils$1.toFiniteNumber(res.headers["content-length"]);
|
|
26896
27265
|
if (onDownloadProgress || maxDownloadRate) {
|
|
26897
|
-
const transformStream = new AxiosTransformStream
|
|
27266
|
+
const transformStream = new AxiosTransformStream({ maxRate: utils$1.toFiniteNumber(maxDownloadRate) });
|
|
26898
27267
|
onDownloadProgress && transformStream.on("progress", flushOnFinish(transformStream, progressEventDecorator(responseLength, progressEventReducer(asyncDecorator(onDownloadProgress), true, 3))));
|
|
26899
27268
|
streams.push(transformStream);
|
|
26900
27269
|
}
|
|
@@ -26907,29 +27276,42 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26907
27276
|
case "x-gzip":
|
|
26908
27277
|
case "compress":
|
|
26909
27278
|
case "x-compress":
|
|
26910
|
-
streams.push(
|
|
27279
|
+
streams.push(zlib.createUnzip(zlibOptions));
|
|
26911
27280
|
delete res.headers["content-encoding"];
|
|
26912
27281
|
break;
|
|
26913
27282
|
case "deflate":
|
|
26914
|
-
streams.push(new ZlibHeaderTransformStream
|
|
26915
|
-
streams.push(
|
|
27283
|
+
streams.push(new ZlibHeaderTransformStream());
|
|
27284
|
+
streams.push(zlib.createUnzip(zlibOptions));
|
|
26916
27285
|
delete res.headers["content-encoding"];
|
|
26917
27286
|
break;
|
|
26918
27287
|
case "br": if (isBrotliSupported) {
|
|
26919
|
-
streams.push(
|
|
27288
|
+
streams.push(zlib.createBrotliDecompress(brotliOptions));
|
|
26920
27289
|
delete res.headers["content-encoding"];
|
|
26921
27290
|
}
|
|
26922
27291
|
}
|
|
26923
27292
|
}
|
|
26924
|
-
responseStream = streams.length > 1 ?
|
|
27293
|
+
responseStream = streams.length > 1 ? stream.pipeline(streams, utils$1.noop) : streams[0];
|
|
26925
27294
|
const response = {
|
|
26926
27295
|
status: res.statusCode,
|
|
26927
27296
|
statusText: res.statusMessage,
|
|
26928
|
-
headers: new AxiosHeaders
|
|
27297
|
+
headers: new AxiosHeaders(res.headers),
|
|
26929
27298
|
config: config$1,
|
|
26930
27299
|
request: lastRequest
|
|
26931
27300
|
};
|
|
26932
27301
|
if (responseType === "stream") {
|
|
27302
|
+
if (config$1.maxContentLength > -1) {
|
|
27303
|
+
const limit = config$1.maxContentLength;
|
|
27304
|
+
const source = responseStream;
|
|
27305
|
+
async function* enforceMaxContentLength() {
|
|
27306
|
+
let totalResponseBytes = 0;
|
|
27307
|
+
for await (const chunk of source) {
|
|
27308
|
+
totalResponseBytes += chunk.length;
|
|
27309
|
+
if (totalResponseBytes > limit) throw new AxiosError("maxContentLength size of " + limit + " exceeded", AxiosError.ERR_BAD_RESPONSE, config$1, lastRequest);
|
|
27310
|
+
yield chunk;
|
|
27311
|
+
}
|
|
27312
|
+
}
|
|
27313
|
+
responseStream = stream.Readable.from(enforceMaxContentLength(), { objectMode: false });
|
|
27314
|
+
}
|
|
26933
27315
|
response.data = responseStream;
|
|
26934
27316
|
settle(resolve$1, reject, response);
|
|
26935
27317
|
} else {
|
|
@@ -26946,13 +27328,13 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26946
27328
|
});
|
|
26947
27329
|
responseStream.on("aborted", function handlerStreamAborted() {
|
|
26948
27330
|
if (rejected) return;
|
|
26949
|
-
const err = new AxiosError("stream has been aborted", AxiosError.ERR_BAD_RESPONSE, config$1, lastRequest);
|
|
27331
|
+
const err = new AxiosError("stream has been aborted", AxiosError.ERR_BAD_RESPONSE, config$1, lastRequest, response);
|
|
26950
27332
|
responseStream.destroy(err);
|
|
26951
27333
|
reject(err);
|
|
26952
27334
|
});
|
|
26953
27335
|
responseStream.on("error", function handleStreamError(err) {
|
|
26954
|
-
if (
|
|
26955
|
-
reject(AxiosError.from(err, null, config$1, lastRequest));
|
|
27336
|
+
if (rejected) return;
|
|
27337
|
+
reject(AxiosError.from(err, null, config$1, lastRequest, response));
|
|
26956
27338
|
});
|
|
26957
27339
|
responseStream.on("end", function handleStreamEnd() {
|
|
26958
27340
|
try {
|
|
@@ -26982,8 +27364,23 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26982
27364
|
req.on("error", function handleRequestError(err) {
|
|
26983
27365
|
reject(AxiosError.from(err, null, config$1, req));
|
|
26984
27366
|
});
|
|
27367
|
+
const boundSockets = /* @__PURE__ */ new Set();
|
|
26985
27368
|
req.on("socket", function handleRequestSocket(socket) {
|
|
26986
27369
|
socket.setKeepAlive(true, 1e3 * 60);
|
|
27370
|
+
if (!socket[kAxiosSocketListener]) {
|
|
27371
|
+
socket.on("error", function handleSocketError(err) {
|
|
27372
|
+
const current = socket[kAxiosCurrentReq];
|
|
27373
|
+
if (current && !current.destroyed) current.destroy(err);
|
|
27374
|
+
});
|
|
27375
|
+
socket[kAxiosSocketListener] = true;
|
|
27376
|
+
}
|
|
27377
|
+
socket[kAxiosCurrentReq] = req;
|
|
27378
|
+
boundSockets.add(socket);
|
|
27379
|
+
});
|
|
27380
|
+
req.once("close", function clearCurrentReq() {
|
|
27381
|
+
clearConnectPhaseTimer();
|
|
27382
|
+
for (const socket of boundSockets) if (socket[kAxiosCurrentReq] === req) socket[kAxiosCurrentReq] = null;
|
|
27383
|
+
boundSockets.clear();
|
|
26987
27384
|
});
|
|
26988
27385
|
if (config$1.timeout) {
|
|
26989
27386
|
const timeout = parseInt(config$1.timeout, 10);
|
|
@@ -26991,13 +27388,12 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
26991
27388
|
abort$3(new AxiosError("error trying to parse `config.timeout` to int", AxiosError.ERR_BAD_OPTION_VALUE, config$1, req));
|
|
26992
27389
|
return;
|
|
26993
27390
|
}
|
|
26994
|
-
|
|
27391
|
+
const handleTimeout = function handleTimeout$1() {
|
|
26995
27392
|
if (isDone) return;
|
|
26996
|
-
|
|
26997
|
-
|
|
26998
|
-
|
|
26999
|
-
|
|
27000
|
-
});
|
|
27393
|
+
abort$3(createTimeoutError());
|
|
27394
|
+
};
|
|
27395
|
+
if (isNativeTransport && timeout > 0) connectPhaseTimer = setTimeout(handleTimeout, timeout);
|
|
27396
|
+
req.setTimeout(timeout, handleTimeout);
|
|
27001
27397
|
} else req.setTimeout(0);
|
|
27002
27398
|
if (utils$1.isStream(data)) {
|
|
27003
27399
|
let ended = false;
|
|
@@ -27012,23 +27408,36 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27012
27408
|
data.on("close", () => {
|
|
27013
27409
|
if (!ended && !errored) abort$3(new CanceledError("Request stream has been aborted", config$1, req));
|
|
27014
27410
|
});
|
|
27015
|
-
data
|
|
27411
|
+
let uploadStream = data;
|
|
27412
|
+
if (config$1.maxBodyLength > -1 && config$1.maxRedirects === 0) {
|
|
27413
|
+
const limit = config$1.maxBodyLength;
|
|
27414
|
+
let bytesSent = 0;
|
|
27415
|
+
uploadStream = stream.pipeline([data, new stream.Transform({ transform(chunk, _enc, cb) {
|
|
27416
|
+
bytesSent += chunk.length;
|
|
27417
|
+
if (bytesSent > limit) return cb(new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config$1, req));
|
|
27418
|
+
cb(null, chunk);
|
|
27419
|
+
} })], utils$1.noop);
|
|
27420
|
+
uploadStream.on("error", (err) => {
|
|
27421
|
+
if (!req.destroyed) req.destroy(err);
|
|
27422
|
+
});
|
|
27423
|
+
}
|
|
27424
|
+
uploadStream.pipe(req);
|
|
27016
27425
|
} else {
|
|
27017
27426
|
data && req.write(data);
|
|
27018
27427
|
req.end();
|
|
27019
27428
|
}
|
|
27020
27429
|
});
|
|
27021
27430
|
};
|
|
27022
|
-
|
|
27431
|
+
var isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin$1, isMSIE) => (url$2) => {
|
|
27023
27432
|
url$2 = new URL(url$2, platform.origin);
|
|
27024
27433
|
return origin$1.protocol === url$2.protocol && origin$1.host === url$2.host && (isMSIE || origin$1.port === url$2.port);
|
|
27025
27434
|
})(new URL(platform.origin), platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)) : () => true;
|
|
27026
|
-
|
|
27027
|
-
write(name, value, expires, path$
|
|
27435
|
+
var cookies = platform.hasStandardBrowserEnv ? {
|
|
27436
|
+
write(name, value, expires, path$5, domain, secure, sameSite) {
|
|
27028
27437
|
if (typeof document === "undefined") return;
|
|
27029
27438
|
const cookie = [`${name}=${encodeURIComponent(value)}`];
|
|
27030
27439
|
if (utils$1.isNumber(expires)) cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
27031
|
-
if (utils$1.isString(path$
|
|
27440
|
+
if (utils$1.isString(path$5)) cookie.push(`path=${path$5}`);
|
|
27032
27441
|
if (utils$1.isString(domain)) cookie.push(`domain=${domain}`);
|
|
27033
27442
|
if (secure === true) cookie.push("secure");
|
|
27034
27443
|
if (utils$1.isString(sameSite)) cookie.push(`SameSite=${sameSite}`);
|
|
@@ -27036,8 +27445,13 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27036
27445
|
},
|
|
27037
27446
|
read(name) {
|
|
27038
27447
|
if (typeof document === "undefined") return null;
|
|
27039
|
-
const
|
|
27040
|
-
|
|
27448
|
+
const cookies$1 = document.cookie.split(";");
|
|
27449
|
+
for (let i = 0; i < cookies$1.length; i++) {
|
|
27450
|
+
const cookie = cookies$1[i].replace(/^\s+/, "");
|
|
27451
|
+
const eq = cookie.indexOf("=");
|
|
27452
|
+
if (eq !== -1 && cookie.slice(0, eq) === name) return decodeURIComponent(cookie.slice(eq + 1));
|
|
27453
|
+
}
|
|
27454
|
+
return null;
|
|
27041
27455
|
},
|
|
27042
27456
|
remove(name) {
|
|
27043
27457
|
this.write(name, "", Date.now() - 864e5, "/");
|
|
@@ -27049,7 +27463,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27049
27463
|
},
|
|
27050
27464
|
remove() {}
|
|
27051
27465
|
};
|
|
27052
|
-
const headersToObject = (thing) => thing instanceof AxiosHeaders
|
|
27466
|
+
const headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
|
|
27053
27467
|
/**
|
|
27054
27468
|
* Config-specific merge-function which creates a new config-object
|
|
27055
27469
|
* by merging two configuration objects together.
|
|
@@ -27061,7 +27475,14 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27061
27475
|
*/
|
|
27062
27476
|
function mergeConfig(config1, config2) {
|
|
27063
27477
|
config2 = config2 || {};
|
|
27064
|
-
const config$1 =
|
|
27478
|
+
const config$1 = Object.create(null);
|
|
27479
|
+
Object.defineProperty(config$1, "hasOwnProperty", {
|
|
27480
|
+
__proto__: null,
|
|
27481
|
+
value: Object.prototype.hasOwnProperty,
|
|
27482
|
+
enumerable: false,
|
|
27483
|
+
writable: true,
|
|
27484
|
+
configurable: true
|
|
27485
|
+
});
|
|
27065
27486
|
function getMergedValue(target, source, prop, caseless) {
|
|
27066
27487
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) return utils$1.merge.call({ caseless }, target, source);
|
|
27067
27488
|
else if (utils$1.isPlainObject(source)) return utils$1.merge({}, source);
|
|
@@ -27080,8 +27501,8 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27080
27501
|
else if (!utils$1.isUndefined(a)) return getMergedValue(void 0, a);
|
|
27081
27502
|
}
|
|
27082
27503
|
function mergeDirectKeys(a, b, prop) {
|
|
27083
|
-
if (prop
|
|
27084
|
-
else if (prop
|
|
27504
|
+
if (utils$1.hasOwnProp(config2, prop)) return getMergedValue(a, b);
|
|
27505
|
+
else if (utils$1.hasOwnProp(config1, prop)) return getMergedValue(void 0, a);
|
|
27085
27506
|
}
|
|
27086
27507
|
const mergeMap = {
|
|
27087
27508
|
url: valueFromConfig2,
|
|
@@ -27110,6 +27531,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27110
27531
|
httpsAgent: defaultToConfig2,
|
|
27111
27532
|
cancelToken: defaultToConfig2,
|
|
27112
27533
|
socketPath: defaultToConfig2,
|
|
27534
|
+
allowedSocketPaths: defaultToConfig2,
|
|
27113
27535
|
responseEncoding: defaultToConfig2,
|
|
27114
27536
|
validateStatus: mergeDirectKeys,
|
|
27115
27537
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
@@ -27118,42 +27540,65 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27118
27540
|
...config1,
|
|
27119
27541
|
...config2
|
|
27120
27542
|
}), function computeConfigValue(prop) {
|
|
27121
|
-
|
|
27122
|
-
const
|
|
27543
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
27544
|
+
const merge$5 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
27545
|
+
const configValue = merge$5(utils$1.hasOwnProp(config1, prop) ? config1[prop] : void 0, utils$1.hasOwnProp(config2, prop) ? config2[prop] : void 0, prop);
|
|
27123
27546
|
utils$1.isUndefined(configValue) && merge$5 !== mergeDirectKeys || (config$1[prop] = configValue);
|
|
27124
27547
|
});
|
|
27125
27548
|
return config$1;
|
|
27126
27549
|
}
|
|
27127
|
-
const
|
|
27550
|
+
const FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
27551
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
27552
|
+
if (policy !== "content-only") {
|
|
27553
|
+
headers.set(formHeaders);
|
|
27554
|
+
return;
|
|
27555
|
+
}
|
|
27556
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
27557
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) headers.set(key, val);
|
|
27558
|
+
});
|
|
27559
|
+
}
|
|
27560
|
+
/**
|
|
27561
|
+
* Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
|
|
27562
|
+
* This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
|
|
27563
|
+
*
|
|
27564
|
+
* @param {string} str The string to encode
|
|
27565
|
+
*
|
|
27566
|
+
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
27567
|
+
*/
|
|
27568
|
+
const encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
27569
|
+
var resolveConfig = (config$1) => {
|
|
27128
27570
|
const newConfig = mergeConfig({}, config$1);
|
|
27129
|
-
|
|
27130
|
-
|
|
27131
|
-
|
|
27132
|
-
|
|
27571
|
+
const own$1 = (key) => utils$1.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
27572
|
+
const data = own$1("data");
|
|
27573
|
+
let withXSRFToken = own$1("withXSRFToken");
|
|
27574
|
+
const xsrfHeaderName = own$1("xsrfHeaderName");
|
|
27575
|
+
const xsrfCookieName = own$1("xsrfCookieName");
|
|
27576
|
+
let headers = own$1("headers");
|
|
27577
|
+
const auth = own$1("auth");
|
|
27578
|
+
const baseURL = own$1("baseURL");
|
|
27579
|
+
const allowAbsoluteUrls = own$1("allowAbsoluteUrls");
|
|
27580
|
+
const url$2 = own$1("url");
|
|
27581
|
+
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
27582
|
+
newConfig.url = buildURL(buildFullPath(baseURL, url$2, allowAbsoluteUrls), config$1.params, config$1.paramsSerializer);
|
|
27583
|
+
if (auth) headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : "")));
|
|
27133
27584
|
if (utils$1.isFormData(data)) {
|
|
27134
27585
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) headers.setContentType(void 0);
|
|
27135
|
-
else if (utils$1.isFunction(data.getHeaders))
|
|
27136
|
-
const formHeaders = data.getHeaders();
|
|
27137
|
-
const allowedHeaders = ["content-type", "content-length"];
|
|
27138
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
27139
|
-
if (allowedHeaders.includes(key.toLowerCase())) headers.set(key, val);
|
|
27140
|
-
});
|
|
27141
|
-
}
|
|
27586
|
+
else if (utils$1.isFunction(data.getHeaders)) setFormDataHeaders(headers, data.getHeaders(), own$1("formDataHeaderPolicy"));
|
|
27142
27587
|
}
|
|
27143
27588
|
if (platform.hasStandardBrowserEnv) {
|
|
27144
|
-
|
|
27145
|
-
if (withXSRFToken || withXSRFToken
|
|
27589
|
+
if (utils$1.isFunction(withXSRFToken)) withXSRFToken = withXSRFToken(newConfig);
|
|
27590
|
+
if (withXSRFToken === true || withXSRFToken == null && isURLSameOrigin(newConfig.url)) {
|
|
27146
27591
|
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
|
|
27147
27592
|
if (xsrfValue) headers.set(xsrfHeaderName, xsrfValue);
|
|
27148
27593
|
}
|
|
27149
27594
|
}
|
|
27150
27595
|
return newConfig;
|
|
27151
27596
|
};
|
|
27152
|
-
|
|
27597
|
+
var xhrAdapter = typeof XMLHttpRequest !== "undefined" && function(config$1) {
|
|
27153
27598
|
return new Promise(function dispatchXhrRequest(resolve$1, reject) {
|
|
27154
27599
|
const _config = resolveConfig(config$1);
|
|
27155
27600
|
let requestData = _config.data;
|
|
27156
|
-
const requestHeaders = AxiosHeaders
|
|
27601
|
+
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
27157
27602
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
27158
27603
|
let onCanceled;
|
|
27159
27604
|
let uploadThrottled, downloadThrottled;
|
|
@@ -27169,7 +27614,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27169
27614
|
request.timeout = _config.timeout;
|
|
27170
27615
|
function onloadend() {
|
|
27171
27616
|
if (!request) return;
|
|
27172
|
-
const responseHeaders = AxiosHeaders
|
|
27617
|
+
const responseHeaders = AxiosHeaders.from("getAllResponseHeaders" in request && request.getAllResponseHeaders());
|
|
27173
27618
|
settle(function _resolve(value) {
|
|
27174
27619
|
resolve$1(value);
|
|
27175
27620
|
done();
|
|
@@ -27189,18 +27634,20 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27189
27634
|
if ("onloadend" in request) request.onloadend = onloadend;
|
|
27190
27635
|
else request.onreadystatechange = function handleLoad() {
|
|
27191
27636
|
if (!request || request.readyState !== 4) return;
|
|
27192
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.
|
|
27637
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) return;
|
|
27193
27638
|
setTimeout(onloadend);
|
|
27194
27639
|
};
|
|
27195
27640
|
request.onabort = function handleAbort() {
|
|
27196
27641
|
if (!request) return;
|
|
27197
27642
|
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config$1, request));
|
|
27643
|
+
done();
|
|
27198
27644
|
request = null;
|
|
27199
27645
|
};
|
|
27200
27646
|
request.onerror = function handleError(event) {
|
|
27201
27647
|
const err = new AxiosError(event && event.message ? event.message : "Network Error", AxiosError.ERR_NETWORK, config$1, request);
|
|
27202
27648
|
err.event = event || null;
|
|
27203
27649
|
reject(err);
|
|
27650
|
+
done();
|
|
27204
27651
|
request = null;
|
|
27205
27652
|
};
|
|
27206
27653
|
request.ontimeout = function handleTimeout() {
|
|
@@ -27208,6 +27655,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27208
27655
|
const transitional = _config.transitional || transitionalDefaults;
|
|
27209
27656
|
if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
27210
27657
|
reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config$1, request));
|
|
27658
|
+
done();
|
|
27211
27659
|
request = null;
|
|
27212
27660
|
};
|
|
27213
27661
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -27230,13 +27678,14 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27230
27678
|
if (!request) return;
|
|
27231
27679
|
reject(!cancel || cancel.type ? new CanceledError(null, config$1, request) : cancel);
|
|
27232
27680
|
request.abort();
|
|
27681
|
+
done();
|
|
27233
27682
|
request = null;
|
|
27234
27683
|
};
|
|
27235
27684
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
27236
27685
|
if (_config.signal) _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
|
|
27237
27686
|
}
|
|
27238
27687
|
const protocol = parseProtocol(_config.url);
|
|
27239
|
-
if (protocol && platform.protocols.
|
|
27688
|
+
if (protocol && !platform.protocols.includes(protocol)) {
|
|
27240
27689
|
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config$1));
|
|
27241
27690
|
return;
|
|
27242
27691
|
}
|
|
@@ -27258,7 +27707,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27258
27707
|
};
|
|
27259
27708
|
let timer = timeout && setTimeout(() => {
|
|
27260
27709
|
timer = null;
|
|
27261
|
-
onabort(new AxiosError(`timeout ${timeout}
|
|
27710
|
+
onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));
|
|
27262
27711
|
}, timeout);
|
|
27263
27712
|
const unsubscribe = () => {
|
|
27264
27713
|
if (signals) {
|
|
@@ -27276,10 +27725,9 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27276
27725
|
return signal;
|
|
27277
27726
|
}
|
|
27278
27727
|
};
|
|
27279
|
-
const composeSignals$1 = composeSignals;
|
|
27280
27728
|
const streamChunk = function* (chunk, chunkSize) {
|
|
27281
27729
|
let len = chunk.byteLength;
|
|
27282
|
-
if (
|
|
27730
|
+
if (len < chunkSize) {
|
|
27283
27731
|
yield chunk;
|
|
27284
27732
|
return;
|
|
27285
27733
|
}
|
|
@@ -27345,11 +27793,6 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27345
27793
|
};
|
|
27346
27794
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
27347
27795
|
const { isFunction } = utils$1;
|
|
27348
|
-
const globalFetchAPI = (({ Request, Response }) => ({
|
|
27349
|
-
Request,
|
|
27350
|
-
Response
|
|
27351
|
-
}))(utils$1.global);
|
|
27352
|
-
const { ReadableStream: ReadableStream$1, TextEncoder: TextEncoder$1 } = utils$1.global;
|
|
27353
27796
|
const test = (fn, ...args) => {
|
|
27354
27797
|
try {
|
|
27355
27798
|
return !!fn(...args);
|
|
@@ -27358,7 +27801,13 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27358
27801
|
}
|
|
27359
27802
|
};
|
|
27360
27803
|
const factory = (env) => {
|
|
27361
|
-
|
|
27804
|
+
var _utils$global;
|
|
27805
|
+
const globalObject = (_utils$global = utils$1.global) !== null && _utils$global !== void 0 ? _utils$global : globalThis;
|
|
27806
|
+
const { ReadableStream: ReadableStream$1, TextEncoder: TextEncoder$1 } = globalObject;
|
|
27807
|
+
env = utils$1.merge.call({ skipUndefined: true }, {
|
|
27808
|
+
Request: globalObject.Request,
|
|
27809
|
+
Response: globalObject.Response
|
|
27810
|
+
}, env);
|
|
27362
27811
|
const { fetch: envFetch, Request, Response } = env;
|
|
27363
27812
|
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
27364
27813
|
const isRequestSupported = isFunction(Request);
|
|
@@ -27368,14 +27817,16 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27368
27817
|
const encodeText = isFetchSupported && (typeof TextEncoder$1 === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder$1()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
|
|
27369
27818
|
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
27370
27819
|
let duplexAccessed = false;
|
|
27371
|
-
const
|
|
27820
|
+
const request = new Request(platform.origin, {
|
|
27372
27821
|
body: new ReadableStream$1(),
|
|
27373
27822
|
method: "POST",
|
|
27374
27823
|
get duplex() {
|
|
27375
27824
|
duplexAccessed = true;
|
|
27376
27825
|
return "half";
|
|
27377
27826
|
}
|
|
27378
|
-
})
|
|
27827
|
+
});
|
|
27828
|
+
const hasContentType = request.headers.has("Content-Type");
|
|
27829
|
+
if (request.body != null) request.body.cancel();
|
|
27379
27830
|
return duplexAccessed && !hasContentType;
|
|
27380
27831
|
});
|
|
27381
27832
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
|
@@ -27409,16 +27860,25 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27409
27860
|
return length == null ? getBodyLength(body) : length;
|
|
27410
27861
|
};
|
|
27411
27862
|
return async (config$1) => {
|
|
27412
|
-
let { url: url$2, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions } = resolveConfig(config$1);
|
|
27863
|
+
let { url: url$2, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions, maxContentLength, maxBodyLength } = resolveConfig(config$1);
|
|
27864
|
+
const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
|
|
27865
|
+
const hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
27413
27866
|
let _fetch = envFetch || fetch;
|
|
27414
27867
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
27415
|
-
let composedSignal = composeSignals
|
|
27868
|
+
let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
27416
27869
|
let request = null;
|
|
27417
27870
|
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
27418
27871
|
composedSignal.unsubscribe();
|
|
27419
27872
|
});
|
|
27420
27873
|
let requestContentLength;
|
|
27421
27874
|
try {
|
|
27875
|
+
if (hasMaxContentLength && typeof url$2 === "string" && url$2.startsWith("data:")) {
|
|
27876
|
+
if (estimateDataURLDecodedBytes(url$2) > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config$1, request);
|
|
27877
|
+
}
|
|
27878
|
+
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
27879
|
+
const outboundLength = await resolveBodyLength(headers, data);
|
|
27880
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) throw new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config$1, request);
|
|
27881
|
+
}
|
|
27422
27882
|
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
27423
27883
|
let _request = new Request(url$2, {
|
|
27424
27884
|
method: "POST",
|
|
@@ -27434,6 +27894,11 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27434
27894
|
}
|
|
27435
27895
|
if (!utils$1.isString(withCredentials)) withCredentials = withCredentials ? "include" : "omit";
|
|
27436
27896
|
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
27897
|
+
if (utils$1.isFormData(data)) {
|
|
27898
|
+
const contentType$1 = headers.getContentType();
|
|
27899
|
+
if (contentType$1 && /^multipart\/form-data/i.test(contentType$1) && !/boundary=/i.test(contentType$1)) headers.delete("content-type");
|
|
27900
|
+
}
|
|
27901
|
+
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
27437
27902
|
const resolvedOptions = {
|
|
27438
27903
|
...fetchOptions,
|
|
27439
27904
|
signal: composedSignal,
|
|
@@ -27445,8 +27910,12 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27445
27910
|
};
|
|
27446
27911
|
request = isRequestSupported && new Request(url$2, resolvedOptions);
|
|
27447
27912
|
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url$2, resolvedOptions));
|
|
27913
|
+
if (hasMaxContentLength) {
|
|
27914
|
+
const declaredLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
27915
|
+
if (declaredLength != null && declaredLength > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config$1, request);
|
|
27916
|
+
}
|
|
27448
27917
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
27449
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
27918
|
+
if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
|
|
27450
27919
|
const options = {};
|
|
27451
27920
|
[
|
|
27452
27921
|
"status",
|
|
@@ -27457,18 +27926,35 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27457
27926
|
});
|
|
27458
27927
|
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
27459
27928
|
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
|
|
27460
|
-
|
|
27929
|
+
let bytesRead = 0;
|
|
27930
|
+
const onChunkProgress = (loadedBytes) => {
|
|
27931
|
+
if (hasMaxContentLength) {
|
|
27932
|
+
bytesRead = loadedBytes;
|
|
27933
|
+
if (bytesRead > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config$1, request);
|
|
27934
|
+
}
|
|
27935
|
+
onProgress && onProgress(loadedBytes);
|
|
27936
|
+
};
|
|
27937
|
+
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
|
|
27461
27938
|
flush && flush();
|
|
27462
27939
|
unsubscribe && unsubscribe();
|
|
27463
27940
|
}), options);
|
|
27464
27941
|
}
|
|
27465
27942
|
responseType = responseType || "text";
|
|
27466
27943
|
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config$1);
|
|
27944
|
+
if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
|
|
27945
|
+
let materializedSize;
|
|
27946
|
+
if (responseData != null) {
|
|
27947
|
+
if (typeof responseData.byteLength === "number") materializedSize = responseData.byteLength;
|
|
27948
|
+
else if (typeof responseData.size === "number") materializedSize = responseData.size;
|
|
27949
|
+
else if (typeof responseData === "string") materializedSize = typeof TextEncoder$1 === "function" ? new TextEncoder$1().encode(responseData).byteLength : responseData.length;
|
|
27950
|
+
}
|
|
27951
|
+
if (typeof materializedSize === "number" && materializedSize > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config$1, request);
|
|
27952
|
+
}
|
|
27467
27953
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
27468
27954
|
return await new Promise((resolve$1, reject) => {
|
|
27469
27955
|
settle(resolve$1, reject, {
|
|
27470
27956
|
data: responseData,
|
|
27471
|
-
headers: AxiosHeaders
|
|
27957
|
+
headers: AxiosHeaders.from(response.headers),
|
|
27472
27958
|
status: response.status,
|
|
27473
27959
|
statusText: response.statusText,
|
|
27474
27960
|
config: config$1,
|
|
@@ -27477,8 +27963,15 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27477
27963
|
});
|
|
27478
27964
|
} catch (err) {
|
|
27479
27965
|
unsubscribe && unsubscribe();
|
|
27480
|
-
if (
|
|
27481
|
-
|
|
27966
|
+
if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError) {
|
|
27967
|
+
const canceledError = composedSignal.reason;
|
|
27968
|
+
canceledError.config = config$1;
|
|
27969
|
+
request && (canceledError.request = request);
|
|
27970
|
+
err !== canceledError && (canceledError.cause = err);
|
|
27971
|
+
throw canceledError;
|
|
27972
|
+
}
|
|
27973
|
+
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) throw Object.assign(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config$1, request, err && err.response), { cause: err.cause || err });
|
|
27974
|
+
throw AxiosError.from(err, err && err.code, config$1, request, err && err.response);
|
|
27482
27975
|
}
|
|
27483
27976
|
};
|
|
27484
27977
|
};
|
|
@@ -27507,7 +28000,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27507
28000
|
* - `http` for Node.js
|
|
27508
28001
|
* - `xhr` for browsers
|
|
27509
28002
|
* - `fetch` for fetch API-based requests
|
|
27510
|
-
*
|
|
28003
|
+
*
|
|
27511
28004
|
* @type {Object<string, Function|Object>}
|
|
27512
28005
|
*/
|
|
27513
28006
|
const knownAdapters = {
|
|
@@ -27518,21 +28011,27 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27518
28011
|
utils$1.forEach(knownAdapters, (fn, value) => {
|
|
27519
28012
|
if (fn) {
|
|
27520
28013
|
try {
|
|
27521
|
-
Object.defineProperty(fn, "name", {
|
|
28014
|
+
Object.defineProperty(fn, "name", {
|
|
28015
|
+
__proto__: null,
|
|
28016
|
+
value
|
|
28017
|
+
});
|
|
27522
28018
|
} catch (e$1) {}
|
|
27523
|
-
Object.defineProperty(fn, "adapterName", {
|
|
28019
|
+
Object.defineProperty(fn, "adapterName", {
|
|
28020
|
+
__proto__: null,
|
|
28021
|
+
value
|
|
28022
|
+
});
|
|
27524
28023
|
}
|
|
27525
28024
|
});
|
|
27526
28025
|
/**
|
|
27527
28026
|
* Render a rejection reason string for unknown or unsupported adapters
|
|
27528
|
-
*
|
|
28027
|
+
*
|
|
27529
28028
|
* @param {string} reason
|
|
27530
28029
|
* @returns {string}
|
|
27531
28030
|
*/
|
|
27532
28031
|
const renderReason = (reason) => `- ${reason}`;
|
|
27533
28032
|
/**
|
|
27534
28033
|
* Check if the adapter is resolved (function, null, or false)
|
|
27535
|
-
*
|
|
28034
|
+
*
|
|
27536
28035
|
* @param {Function|null|false} adapter
|
|
27537
28036
|
* @returns {boolean}
|
|
27538
28037
|
*/
|
|
@@ -27541,7 +28040,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27541
28040
|
* Get the first suitable adapter from the provided list.
|
|
27542
28041
|
* Tries each adapter in order until a supported one is found.
|
|
27543
28042
|
* Throws an AxiosError if no adapter is suitable.
|
|
27544
|
-
*
|
|
28043
|
+
*
|
|
27545
28044
|
* @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
|
|
27546
28045
|
* @param {Object} config - Axios request configuration
|
|
27547
28046
|
* @throws {AxiosError} If no suitable adapter is available
|
|
@@ -27573,7 +28072,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27573
28072
|
/**
|
|
27574
28073
|
* Exports Axios adapters and utility to resolve an adapter
|
|
27575
28074
|
*/
|
|
27576
|
-
|
|
28075
|
+
var adapters = {
|
|
27577
28076
|
getAdapter,
|
|
27578
28077
|
adapters: knownAdapters
|
|
27579
28078
|
};
|
|
@@ -27597,24 +28096,34 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27597
28096
|
*/
|
|
27598
28097
|
function dispatchRequest(config$1) {
|
|
27599
28098
|
throwIfCancellationRequested(config$1);
|
|
27600
|
-
config$1.headers = AxiosHeaders
|
|
28099
|
+
config$1.headers = AxiosHeaders.from(config$1.headers);
|
|
27601
28100
|
config$1.data = transformData.call(config$1, config$1.transformRequest);
|
|
27602
28101
|
if ([
|
|
27603
28102
|
"post",
|
|
27604
28103
|
"put",
|
|
27605
28104
|
"patch"
|
|
27606
28105
|
].indexOf(config$1.method) !== -1) config$1.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
27607
|
-
return adapters.getAdapter(config$1.adapter || defaults
|
|
28106
|
+
return adapters.getAdapter(config$1.adapter || defaults.adapter, config$1)(config$1).then(function onAdapterResolution(response) {
|
|
27608
28107
|
throwIfCancellationRequested(config$1);
|
|
27609
|
-
|
|
27610
|
-
|
|
28108
|
+
config$1.response = response;
|
|
28109
|
+
try {
|
|
28110
|
+
response.data = transformData.call(config$1, config$1.transformResponse, response);
|
|
28111
|
+
} finally {
|
|
28112
|
+
delete config$1.response;
|
|
28113
|
+
}
|
|
28114
|
+
response.headers = AxiosHeaders.from(response.headers);
|
|
27611
28115
|
return response;
|
|
27612
28116
|
}, function onAdapterRejection(reason) {
|
|
27613
28117
|
if (!isCancel(reason)) {
|
|
27614
28118
|
throwIfCancellationRequested(config$1);
|
|
27615
28119
|
if (reason && reason.response) {
|
|
27616
|
-
|
|
27617
|
-
|
|
28120
|
+
config$1.response = reason.response;
|
|
28121
|
+
try {
|
|
28122
|
+
reason.response.data = transformData.call(config$1, config$1.transformResponse, reason.response);
|
|
28123
|
+
} finally {
|
|
28124
|
+
delete config$1.response;
|
|
28125
|
+
}
|
|
28126
|
+
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
27618
28127
|
}
|
|
27619
28128
|
}
|
|
27620
28129
|
return Promise.reject(reason);
|
|
@@ -27677,7 +28186,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27677
28186
|
let i = keys.length;
|
|
27678
28187
|
while (i-- > 0) {
|
|
27679
28188
|
const opt = keys[i];
|
|
27680
|
-
const validator$1 = schema$6[opt];
|
|
28189
|
+
const validator$1 = Object.prototype.hasOwnProperty.call(schema$6, opt) ? schema$6[opt] : void 0;
|
|
27681
28190
|
if (validator$1) {
|
|
27682
28191
|
const value = options[opt];
|
|
27683
28192
|
const result = value === void 0 || validator$1(value, opt, options);
|
|
@@ -27687,7 +28196,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27687
28196
|
if (allowUnknown !== true) throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
|
|
27688
28197
|
}
|
|
27689
28198
|
}
|
|
27690
|
-
|
|
28199
|
+
var validator = {
|
|
27691
28200
|
assertOptions,
|
|
27692
28201
|
validators: validators$1
|
|
27693
28202
|
};
|
|
@@ -27703,8 +28212,8 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27703
28212
|
constructor(instanceConfig) {
|
|
27704
28213
|
this.defaults = instanceConfig || {};
|
|
27705
28214
|
this.interceptors = {
|
|
27706
|
-
request: new InterceptorManager
|
|
27707
|
-
response: new InterceptorManager
|
|
28215
|
+
request: new InterceptorManager(),
|
|
28216
|
+
response: new InterceptorManager()
|
|
27708
28217
|
};
|
|
27709
28218
|
}
|
|
27710
28219
|
/**
|
|
@@ -27722,10 +28231,19 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27722
28231
|
if (err instanceof Error) {
|
|
27723
28232
|
let dummy = {};
|
|
27724
28233
|
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = /* @__PURE__ */ new Error();
|
|
27725
|
-
const stack =
|
|
28234
|
+
const stack = (() => {
|
|
28235
|
+
if (!dummy.stack) return "";
|
|
28236
|
+
const firstNewlineIndex = dummy.stack.indexOf("\n");
|
|
28237
|
+
return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
|
|
28238
|
+
})();
|
|
27726
28239
|
try {
|
|
27727
28240
|
if (!err.stack) err.stack = stack;
|
|
27728
|
-
else if (stack
|
|
28241
|
+
else if (stack) {
|
|
28242
|
+
const firstNewlineIndex = stack.indexOf("\n");
|
|
28243
|
+
const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
|
|
28244
|
+
const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
|
|
28245
|
+
if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) err.stack += "\n" + stack;
|
|
28246
|
+
}
|
|
27729
28247
|
} catch (e$1) {}
|
|
27730
28248
|
}
|
|
27731
28249
|
throw err;
|
|
@@ -27741,7 +28259,8 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27741
28259
|
if (transitional !== void 0) validator.assertOptions(transitional, {
|
|
27742
28260
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
27743
28261
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
27744
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
28262
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
28263
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
27745
28264
|
}, false);
|
|
27746
28265
|
if (paramsSerializer != null) if (utils$1.isFunction(paramsSerializer)) config$1.paramsSerializer = { serialize: paramsSerializer };
|
|
27747
28266
|
else validator.assertOptions(paramsSerializer, {
|
|
@@ -27764,17 +28283,20 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27764
28283
|
"post",
|
|
27765
28284
|
"put",
|
|
27766
28285
|
"patch",
|
|
28286
|
+
"query",
|
|
27767
28287
|
"common"
|
|
27768
28288
|
], (method) => {
|
|
27769
28289
|
delete headers[method];
|
|
27770
28290
|
});
|
|
27771
|
-
config$1.headers = AxiosHeaders
|
|
28291
|
+
config$1.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
27772
28292
|
const requestInterceptorChain = [];
|
|
27773
28293
|
let synchronousRequestInterceptors = true;
|
|
27774
28294
|
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
27775
28295
|
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config$1) === false) return;
|
|
27776
28296
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
27777
|
-
|
|
28297
|
+
const transitional$1 = config$1.transitional || transitionalDefaults;
|
|
28298
|
+
if (transitional$1 && transitional$1.legacyInterceptorReqResOrdering) requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
28299
|
+
else requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
27778
28300
|
});
|
|
27779
28301
|
const responseInterceptorChain = [];
|
|
27780
28302
|
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
@@ -27836,7 +28358,8 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27836
28358
|
utils$1.forEach([
|
|
27837
28359
|
"post",
|
|
27838
28360
|
"put",
|
|
27839
|
-
"patch"
|
|
28361
|
+
"patch",
|
|
28362
|
+
"query"
|
|
27840
28363
|
], function forEachMethodWithData(method) {
|
|
27841
28364
|
function generateHTTPMethod(isForm) {
|
|
27842
28365
|
return function httpMethod(url$2, data, config$1) {
|
|
@@ -27849,9 +28372,8 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27849
28372
|
};
|
|
27850
28373
|
}
|
|
27851
28374
|
Axios.prototype[method] = generateHTTPMethod();
|
|
27852
|
-
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
28375
|
+
if (method !== "query") Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
27853
28376
|
});
|
|
27854
|
-
const Axios$1 = Axios;
|
|
27855
28377
|
/**
|
|
27856
28378
|
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
|
27857
28379
|
*
|
|
@@ -27938,7 +28460,6 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27938
28460
|
};
|
|
27939
28461
|
}
|
|
27940
28462
|
};
|
|
27941
|
-
const CancelToken$1 = CancelToken;
|
|
27942
28463
|
/**
|
|
27943
28464
|
* Syntactic sugar for invoking a function and expanding an array for arguments.
|
|
27944
28465
|
*
|
|
@@ -27946,7 +28467,7 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
27946
28467
|
*
|
|
27947
28468
|
* ```js
|
|
27948
28469
|
* function f(x, y, z) {}
|
|
27949
|
-
*
|
|
28470
|
+
* const args = [1, 2, 3];
|
|
27950
28471
|
* f.apply(null, args);
|
|
27951
28472
|
* ```
|
|
27952
28473
|
*
|
|
@@ -28049,7 +28570,6 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
28049
28570
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
28050
28571
|
HttpStatusCode[value] = key;
|
|
28051
28572
|
});
|
|
28052
|
-
const HttpStatusCode$1 = HttpStatusCode;
|
|
28053
28573
|
/**
|
|
28054
28574
|
* Create an instance of Axios
|
|
28055
28575
|
*
|
|
@@ -28058,19 +28578,19 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
28058
28578
|
* @returns {Axios} A new instance of Axios
|
|
28059
28579
|
*/
|
|
28060
28580
|
function createInstance(defaultConfig) {
|
|
28061
|
-
const context = new Axios
|
|
28062
|
-
const instance = bind(Axios
|
|
28063
|
-
utils$1.extend(instance, Axios
|
|
28581
|
+
const context = new Axios(defaultConfig);
|
|
28582
|
+
const instance = bind(Axios.prototype.request, context);
|
|
28583
|
+
utils$1.extend(instance, Axios.prototype, context, { allOwnKeys: true });
|
|
28064
28584
|
utils$1.extend(instance, context, null, { allOwnKeys: true });
|
|
28065
28585
|
instance.create = function create(instanceConfig) {
|
|
28066
28586
|
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
28067
28587
|
};
|
|
28068
28588
|
return instance;
|
|
28069
28589
|
}
|
|
28070
|
-
const axios = createInstance(defaults
|
|
28071
|
-
axios.Axios = Axios
|
|
28590
|
+
const axios = createInstance(defaults);
|
|
28591
|
+
axios.Axios = Axios;
|
|
28072
28592
|
axios.CanceledError = CanceledError;
|
|
28073
|
-
axios.CancelToken = CancelToken
|
|
28593
|
+
axios.CancelToken = CancelToken;
|
|
28074
28594
|
axios.isCancel = isCancel;
|
|
28075
28595
|
axios.VERSION = VERSION;
|
|
28076
28596
|
axios.toFormData = toFormData;
|
|
@@ -28082,10 +28602,10 @@ var require_axios = /* @__PURE__ */ __commonJS({ "node_modules/axios/dist/node/a
|
|
|
28082
28602
|
axios.spread = spread;
|
|
28083
28603
|
axios.isAxiosError = isAxiosError;
|
|
28084
28604
|
axios.mergeConfig = mergeConfig;
|
|
28085
|
-
axios.AxiosHeaders = AxiosHeaders
|
|
28605
|
+
axios.AxiosHeaders = AxiosHeaders;
|
|
28086
28606
|
axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
28087
28607
|
axios.getAdapter = adapters.getAdapter;
|
|
28088
|
-
axios.HttpStatusCode = HttpStatusCode
|
|
28608
|
+
axios.HttpStatusCode = HttpStatusCode;
|
|
28089
28609
|
axios.default = axios;
|
|
28090
28610
|
module.exports = axios;
|
|
28091
28611
|
}) });
|
|
@@ -28243,17 +28763,17 @@ var require_IncomingWebhook = /* @__PURE__ */ __commonJS({ "node_modules/@slack/
|
|
|
28243
28763
|
* A client for Slack's Incoming Webhooks
|
|
28244
28764
|
*/
|
|
28245
28765
|
var IncomingWebhook$1 = class {
|
|
28246
|
-
constructor(url$2, defaults$
|
|
28766
|
+
constructor(url$2, defaults$1 = { timeout: 0 }) {
|
|
28247
28767
|
if (url$2 === void 0) throw new Error("Incoming webhook URL is required");
|
|
28248
28768
|
this.url = url$2;
|
|
28249
|
-
this.defaults = defaults$
|
|
28769
|
+
this.defaults = defaults$1;
|
|
28250
28770
|
this.axios = axios_1.default.create({
|
|
28251
28771
|
baseURL: url$2,
|
|
28252
|
-
httpAgent: defaults$
|
|
28253
|
-
httpsAgent: defaults$
|
|
28772
|
+
httpAgent: defaults$1.agent,
|
|
28773
|
+
httpsAgent: defaults$1.agent,
|
|
28254
28774
|
maxRedirects: 0,
|
|
28255
28775
|
proxy: false,
|
|
28256
|
-
timeout: defaults$
|
|
28776
|
+
timeout: defaults$1.timeout,
|
|
28257
28777
|
headers: { "User-Agent": (0, instrument_1.getUserAgent)() }
|
|
28258
28778
|
});
|
|
28259
28779
|
this.defaults.agent = void 0;
|
|
@@ -28338,26 +28858,26 @@ const run = async (options) => {
|
|
|
28338
28858
|
if (v.default != null) baseUrl = baseUrl.replaceAll(`{${name}}`, v.default);
|
|
28339
28859
|
}
|
|
28340
28860
|
const serverLabel = server.description ?? new URL(baseUrl).host;
|
|
28341
|
-
if (schema$6.paths) for (const path$
|
|
28342
|
-
const pathItem = schema$6.paths[path$
|
|
28861
|
+
if (schema$6.paths) for (const path$5 of Object.keys(schema$6.paths)) {
|
|
28862
|
+
const pathItem = schema$6.paths[path$5];
|
|
28343
28863
|
if (!pathItem) continue;
|
|
28344
28864
|
if (!pathItem.get) continue;
|
|
28345
|
-
const url$2 = new URL(path$
|
|
28346
|
-
let _path = path$
|
|
28865
|
+
const url$2 = new URL(path$5, baseUrl);
|
|
28866
|
+
let _path = path$5;
|
|
28347
28867
|
if ("200" in (pathItem.get?.responses ?? {}) && "text/event-stream" in (pathItem.get.responses?.["200"]?.content ?? {})) continue;
|
|
28348
28868
|
for (const param of pathItem.get.parameters || []) {
|
|
28349
|
-
let exampleValue = options.getExampleValue?.(param.name, path$
|
|
28869
|
+
let exampleValue = options.getExampleValue?.(param.name, path$5) ?? param.example ?? param.examples?.[0] ?? param.schema?.example ?? param.schema?.examples?.[0];
|
|
28350
28870
|
if (!exampleValue && (param.required || param.in === "path") && "enum" in param.schema) {
|
|
28351
28871
|
const enumValues = param.schema.enum;
|
|
28352
28872
|
if (Array.isArray(enumValues) && enumValues.length > 0) exampleValue = enumValues[0];
|
|
28353
28873
|
}
|
|
28354
28874
|
if (!exampleValue && param.required) {
|
|
28355
|
-
debug$1(`No example value for parameter ${param.name} in ${path$
|
|
28875
|
+
debug$1(`No example value for parameter ${param.name} in ${path$5}`);
|
|
28356
28876
|
continue;
|
|
28357
28877
|
}
|
|
28358
28878
|
if (param.in === "path") {
|
|
28359
28879
|
if (!exampleValue) {
|
|
28360
|
-
debug$1(`No example value for path parameter ${param.name} in ${path$
|
|
28880
|
+
debug$1(`No example value for path parameter ${param.name} in ${path$5}`);
|
|
28361
28881
|
continue;
|
|
28362
28882
|
}
|
|
28363
28883
|
const placeholder = `{${param.name}}`;
|
|
@@ -28367,13 +28887,13 @@ const run = async (options) => {
|
|
|
28367
28887
|
if (!exampleValue) continue;
|
|
28368
28888
|
if (param.in === "query") url$2.searchParams.set(param.name, exampleValue);
|
|
28369
28889
|
}
|
|
28370
|
-
const key = multipleServers ? `[${serverLabel}] ${path$
|
|
28890
|
+
const key = multipleServers ? `[${serverLabel}] ${path$5}` : path$5;
|
|
28371
28891
|
fetchConfigurations.set(key, url$2);
|
|
28372
28892
|
}
|
|
28373
28893
|
}
|
|
28374
28894
|
const measurements = new Storage(options.storagePath, options.maxSpaceUsageBytes ?? 262144 * .95);
|
|
28375
|
-
const measure = async (path$
|
|
28376
|
-
const url$2 = fetchConfigurations.get(path$
|
|
28895
|
+
const measure = async (path$5) => {
|
|
28896
|
+
const url$2 = fetchConfigurations.get(path$5);
|
|
28377
28897
|
if (!url$2) return;
|
|
28378
28898
|
const start = Date.now();
|
|
28379
28899
|
try {
|
|
@@ -28382,7 +28902,7 @@ const run = async (options) => {
|
|
|
28382
28902
|
timeout: options.timeoutMs ?? 5e3,
|
|
28383
28903
|
headers: { "cache-control": "no-cache" }
|
|
28384
28904
|
});
|
|
28385
|
-
debug$1(`Measured ${path$
|
|
28905
|
+
debug$1(`Measured ${path$5}:`, metrics);
|
|
28386
28906
|
return {
|
|
28387
28907
|
...metrics,
|
|
28388
28908
|
url: url$2.toString(),
|
|
@@ -28402,34 +28922,34 @@ const run = async (options) => {
|
|
|
28402
28922
|
limit: options.concurrency ?? 5,
|
|
28403
28923
|
interval: 1e3
|
|
28404
28924
|
})(measure);
|
|
28405
|
-
await Promise.all(Array.from(fetchConfigurations.keys()).map(async (path$
|
|
28406
|
-
const results = await Promise.all(Array.from({ length: options.samples ?? 5 }).map(() => throttledMeasure(path$
|
|
28925
|
+
await Promise.all(Array.from(fetchConfigurations.keys()).map(async (path$5) => {
|
|
28926
|
+
const results = await Promise.all(Array.from({ length: options.samples ?? 5 }).map(() => throttledMeasure(path$5)));
|
|
28407
28927
|
const durationMs = Math.round(results.reduce((acc, curr) => acc + (curr?.durationMs ?? 0), 0) / results.length);
|
|
28408
28928
|
let status = "down";
|
|
28409
28929
|
const statusCode = Math.max(...results.map((r) => r?.statusCode ?? 0));
|
|
28410
28930
|
const lastBody = results.findLast((r) => r?.body !== void 0)?.body;
|
|
28411
|
-
if (options.getStatus) status = options.getStatus(statusCode, path$
|
|
28931
|
+
if (options.getStatus) status = options.getStatus(statusCode, path$5, durationMs, lastBody);
|
|
28412
28932
|
else status = statusCode >= 200 && statusCode < 300 ? "up" : "down";
|
|
28413
28933
|
const measurement = {
|
|
28414
28934
|
status,
|
|
28415
28935
|
durationMs,
|
|
28416
28936
|
timestamp: Date.now(),
|
|
28417
|
-
url: fetchConfigurations.get(path$
|
|
28937
|
+
url: fetchConfigurations.get(path$5)?.toString() ?? ""
|
|
28418
28938
|
};
|
|
28419
|
-
debug$1(`Measured ${path$
|
|
28939
|
+
debug$1(`Measured ${path$5} (avg):`, measurement);
|
|
28420
28940
|
if (!measurement) return;
|
|
28421
|
-
await measurements.add(path$
|
|
28941
|
+
await measurements.add(path$5, measurement);
|
|
28422
28942
|
}));
|
|
28423
28943
|
await measurements.flush();
|
|
28424
|
-
for (const path$
|
|
28425
|
-
const { current, previous } = await measurements.getState(path$
|
|
28944
|
+
for (const path$5 of fetchConfigurations.keys()) {
|
|
28945
|
+
const { current, previous } = await measurements.getState(path$5);
|
|
28426
28946
|
if (!current || !previous && current.status === "up" || previous && previous.status === current.status) continue;
|
|
28427
|
-
for (const alert of options.alerts) if (current.status === "up") await alert.onUp(path$
|
|
28428
|
-
else if (current.status === "down") await alert.onDown(path$
|
|
28429
|
-
else if (current.status === "degraded") await alert.onDegraded(path$
|
|
28947
|
+
for (const alert of options.alerts) if (current.status === "up") await alert.onUp(path$5, current);
|
|
28948
|
+
else if (current.status === "down") await alert.onDown(path$5, current);
|
|
28949
|
+
else if (current.status === "degraded") await alert.onDegraded(path$5, current);
|
|
28430
28950
|
}
|
|
28431
|
-
const reports = await Promise.all([...fetchConfigurations.keys()].map(async (path$
|
|
28432
|
-
const history = await measurements.getHistory(path$
|
|
28951
|
+
const reports = await Promise.all([...fetchConfigurations.keys()].map(async (path$5) => {
|
|
28952
|
+
const history = await measurements.getHistory(path$5);
|
|
28433
28953
|
const startOfPast60m = (0, import_dayjs_min.default)().subtract(60, "minute").startOf("minute").valueOf();
|
|
28434
28954
|
const startOfPast24h = (0, import_dayjs_min.default)().subtract(24, "hours").startOf("hour").valueOf();
|
|
28435
28955
|
const startOfPast7d = (0, import_dayjs_min.default)().subtract(7, "day").startOf("day").valueOf();
|
|
@@ -28463,7 +28983,7 @@ const run = async (options) => {
|
|
|
28463
28983
|
const relDegraded7d = getRelativeDegraded(startOfPast7d);
|
|
28464
28984
|
const relDegraded30d = getRelativeDegraded(startOfPast30d);
|
|
28465
28985
|
return {
|
|
28466
|
-
path: `${path$
|
|
28986
|
+
path: `${path$5} - ${history[history.length - 1]?.status ?? "unknown"} - ${history[history.length - 1]?.durationMs ?? 0}ms`,
|
|
28467
28987
|
down60m: relDowntime60m,
|
|
28468
28988
|
degr60m: relDegraded60m,
|
|
28469
28989
|
dur60m: avgDuration60m,
|
|
@@ -31232,9 +31752,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
31232
31752
|
* @param {string} [path]
|
|
31233
31753
|
* @return {(string|null|Command)}
|
|
31234
31754
|
*/
|
|
31235
|
-
executableDir(path$
|
|
31236
|
-
if (path$
|
|
31237
|
-
this._executableDir = path$
|
|
31755
|
+
executableDir(path$5) {
|
|
31756
|
+
if (path$5 === void 0) return this._executableDir;
|
|
31757
|
+
this._executableDir = path$5;
|
|
31238
31758
|
return this;
|
|
31239
31759
|
}
|
|
31240
31760
|
/**
|