@regulaforensics/facesdk-webclient 8.4.851-rc → 8.4.853-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +1138 -924
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16,91 +16,117 @@ function n(e, t) {
|
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region node_modules/axios/lib/utils.js
|
|
19
|
-
var { toString: r } = Object.prototype, { getPrototypeOf: i } = Object, { iterator: a, toStringTag: o } = Symbol, s = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), c = (e, t) => {
|
|
19
|
+
var { toString: r } = Object.prototype, { getPrototypeOf: i } = Object, { iterator: a, toStringTag: o } = Symbol, s = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), c = (e) => typeof e == "string" && (e === "__proto__" || e === "constructor" || e === "prototype"), l = (e, t, n) => e === Object.prototype || !n && t === null, u = (e) => {
|
|
20
|
+
if (!Object.isExtensible(e)) return !1;
|
|
21
|
+
let t = Object.getOwnPropertyNames(e);
|
|
22
|
+
return Object.getOwnPropertySymbols && t.push(...Object.getOwnPropertySymbols(e)), t.every((t) => {
|
|
23
|
+
if (c(t)) return !1;
|
|
24
|
+
let n = Object.getOwnPropertyDescriptor(e, t);
|
|
25
|
+
return !!n && n.configurable && n.writable === !0;
|
|
26
|
+
});
|
|
27
|
+
}, d = (e, t) => {
|
|
20
28
|
let n = e, r = [];
|
|
21
|
-
for (; n != null
|
|
29
|
+
for (; n != null;) {
|
|
22
30
|
if (r.indexOf(n) !== -1) return !1;
|
|
23
|
-
|
|
24
|
-
|
|
31
|
+
r.push(n);
|
|
32
|
+
let a = i(n);
|
|
33
|
+
if (l(n, a, n === e)) return !1;
|
|
34
|
+
if (s(n, t)) return !0;
|
|
35
|
+
n = a;
|
|
25
36
|
}
|
|
26
37
|
return !1;
|
|
27
|
-
},
|
|
38
|
+
}, f = (e, t) => e != null && d(e, t) ? e[t] : void 0, p = (e) => {
|
|
39
|
+
if (e == null || typeof e != "object" && typeof e != "function") return e;
|
|
40
|
+
let t = i(e);
|
|
41
|
+
if (t === null && u(e)) return e;
|
|
42
|
+
let n = Object.create(null), r = Object.create(null), a = [], o = e;
|
|
43
|
+
for (; o != null && a.indexOf(o) === -1;) {
|
|
44
|
+
a.push(o);
|
|
45
|
+
let u = o === e ? t : i(o);
|
|
46
|
+
if (l(o, u, o === e)) break;
|
|
47
|
+
let d = Object.getOwnPropertyNames(o);
|
|
48
|
+
Object.getOwnPropertySymbols && d.push(...Object.getOwnPropertySymbols(o));
|
|
49
|
+
for (let t of d) c(t) || s(r, t) || (n[t] = e[t], r[t] = !0);
|
|
50
|
+
o = u;
|
|
51
|
+
}
|
|
52
|
+
return n;
|
|
53
|
+
}, m = ((e) => (t) => {
|
|
28
54
|
let n = r.call(t);
|
|
29
55
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
30
|
-
})(Object.create(null)),
|
|
31
|
-
function
|
|
32
|
-
return e !== null && !
|
|
56
|
+
})(Object.create(null)), h = (e) => (e = e.toLowerCase(), (t) => m(t) === e), g = (e) => (t) => typeof t === e, { isArray: _ } = Array, v = g("undefined");
|
|
57
|
+
function y(e) {
|
|
58
|
+
return e !== null && !v(e) && e.constructor !== null && !v(e.constructor) && S(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
33
59
|
}
|
|
34
|
-
var
|
|
35
|
-
function
|
|
60
|
+
var b = h("ArrayBuffer");
|
|
61
|
+
function x(e) {
|
|
36
62
|
let t;
|
|
37
|
-
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer &&
|
|
63
|
+
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && b(e.buffer), t;
|
|
38
64
|
}
|
|
39
|
-
var ee =
|
|
40
|
-
if (!
|
|
65
|
+
var ee = g("string"), S = g("function"), C = g("number"), w = (e) => typeof e == "object" && !!e, te = (e) => e === !0 || e === !1, T = (e) => {
|
|
66
|
+
if (!w(e)) return !1;
|
|
41
67
|
let t = i(e);
|
|
42
|
-
return (t === null || t === Object.prototype || i(t) === null) && !
|
|
43
|
-
},
|
|
44
|
-
if (!
|
|
68
|
+
return (t === null || t === Object.prototype || i(t) === null) && !d(e, o) && !d(e, a);
|
|
69
|
+
}, ne = (e) => {
|
|
70
|
+
if (!w(e) || y(e)) return !1;
|
|
45
71
|
try {
|
|
46
72
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
47
73
|
} catch {
|
|
48
74
|
return !1;
|
|
49
75
|
}
|
|
50
|
-
},
|
|
51
|
-
function
|
|
76
|
+
}, re = h("Date"), ie = h("File"), E = (e) => !!(e && e.uri !== void 0), D = (e) => e && e.getParts !== void 0, O = h("Blob"), ae = h("FileList"), oe = h("Set"), se = (e) => w(e) && S(e.pipe);
|
|
77
|
+
function ce() {
|
|
52
78
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
53
79
|
}
|
|
54
|
-
var
|
|
80
|
+
var k = ce(), A = k.FormData === void 0 ? void 0 : k.FormData, j = (e) => {
|
|
55
81
|
if (!e) return !1;
|
|
56
|
-
if (
|
|
82
|
+
if (A && e instanceof A) return !0;
|
|
57
83
|
let t = i(e);
|
|
58
|
-
if (!t || t === Object.prototype || !
|
|
59
|
-
let n =
|
|
60
|
-
return n === "formdata" || n === "object" &&
|
|
61
|
-
},
|
|
84
|
+
if (!t || t === Object.prototype || !S(e.append)) return !1;
|
|
85
|
+
let n = m(e);
|
|
86
|
+
return n === "formdata" || n === "object" && S(e.toString) && e.toString() === "[object FormData]";
|
|
87
|
+
}, le = h("URLSearchParams"), [ue, M, de, fe] = [
|
|
62
88
|
"ReadableStream",
|
|
63
89
|
"Request",
|
|
64
90
|
"Response",
|
|
65
91
|
"Headers"
|
|
66
|
-
].map(
|
|
67
|
-
function
|
|
92
|
+
].map(h), pe = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
93
|
+
function me(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
68
94
|
if (e == null) return;
|
|
69
95
|
let r, i;
|
|
70
|
-
if (typeof e != "object" && (e = [e]),
|
|
96
|
+
if (typeof e != "object" && (e = [e]), _(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
|
|
71
97
|
else {
|
|
72
|
-
if (
|
|
98
|
+
if (y(e)) return;
|
|
73
99
|
let i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length, o;
|
|
74
100
|
for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
|
|
75
101
|
}
|
|
76
102
|
}
|
|
77
|
-
function
|
|
78
|
-
if (
|
|
103
|
+
function he(e, t) {
|
|
104
|
+
if (y(e)) return null;
|
|
79
105
|
t = t.toLowerCase();
|
|
80
106
|
let n = Object.keys(e), r = n.length, i;
|
|
81
107
|
for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
|
|
82
108
|
return null;
|
|
83
109
|
}
|
|
84
|
-
var
|
|
85
|
-
function
|
|
86
|
-
let { caseless: t, skipUndefined: n } =
|
|
110
|
+
var N = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ge = (e) => !v(e) && e !== N;
|
|
111
|
+
function _e(...e) {
|
|
112
|
+
let { caseless: t, skipUndefined: n } = ge(this) && this || {}, r = {}, i = (e, i) => {
|
|
87
113
|
if (i === "__proto__" || i === "constructor" || i === "prototype") return;
|
|
88
|
-
let a = t && typeof i == "string" &&
|
|
89
|
-
|
|
114
|
+
let a = t && typeof i == "string" && he(r, i) || i, o = s(r, a) ? r[a] : void 0;
|
|
115
|
+
T(o) && T(e) ? r[a] = _e(o, e) : T(e) ? r[a] = _e({}, e) : _(e) ? r[a] = e.slice() : (!n || !v(e)) && (r[a] = e);
|
|
90
116
|
};
|
|
91
117
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
92
118
|
let n = e[t];
|
|
93
|
-
if (!n ||
|
|
119
|
+
if (!n || y(n) || (me(n, i), typeof n != "object" || _(n))) continue;
|
|
94
120
|
let r = Object.getOwnPropertySymbols(n);
|
|
95
121
|
for (let e = 0; e < r.length; e++) {
|
|
96
122
|
let t = r[e];
|
|
97
|
-
|
|
123
|
+
ke.call(n, t) && i(n[t], t);
|
|
98
124
|
}
|
|
99
125
|
}
|
|
100
126
|
return r;
|
|
101
127
|
}
|
|
102
|
-
var
|
|
103
|
-
r &&
|
|
128
|
+
var ve = (e, t, r, { allOwnKeys: i } = {}) => (me(t, (t, i) => {
|
|
129
|
+
r && S(t) ? Object.defineProperty(e, i, {
|
|
104
130
|
__proto__: null,
|
|
105
131
|
value: n(t, r),
|
|
106
132
|
writable: !0,
|
|
@@ -113,7 +139,7 @@ var me = (e, t, r, { allOwnKeys: i } = {}) => (ue(t, (t, i) => {
|
|
|
113
139
|
enumerable: !0,
|
|
114
140
|
configurable: !0
|
|
115
141
|
});
|
|
116
|
-
}, { allOwnKeys: i }), e),
|
|
142
|
+
}, { allOwnKeys: i }), e), ye = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), be = (e, t, n, r) => {
|
|
117
143
|
e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
|
|
118
144
|
__proto__: null,
|
|
119
145
|
value: e,
|
|
@@ -124,7 +150,7 @@ var me = (e, t, r, { allOwnKeys: i } = {}) => (ue(t, (t, i) => {
|
|
|
124
150
|
__proto__: null,
|
|
125
151
|
value: t.prototype
|
|
126
152
|
}), n && Object.assign(e.prototype, n);
|
|
127
|
-
},
|
|
153
|
+
}, xe = (e, t, n, r) => {
|
|
128
154
|
let a, o, s, c = {};
|
|
129
155
|
if (t ||= {}, e == null) return t;
|
|
130
156
|
do {
|
|
@@ -132,45 +158,45 @@ var me = (e, t, r, { allOwnKeys: i } = {}) => (ue(t, (t, i) => {
|
|
|
132
158
|
e = n !== !1 && i(e);
|
|
133
159
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
134
160
|
return t;
|
|
135
|
-
},
|
|
161
|
+
}, Se = (e, t, n) => {
|
|
136
162
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
137
163
|
let r = e.indexOf(t, n);
|
|
138
164
|
return r !== -1 && r === n;
|
|
139
|
-
},
|
|
165
|
+
}, Ce = (e) => {
|
|
140
166
|
if (!e) return null;
|
|
141
|
-
if (
|
|
167
|
+
if (_(e)) return e;
|
|
142
168
|
let t = e.length;
|
|
143
|
-
if (!
|
|
169
|
+
if (!C(t)) return null;
|
|
144
170
|
let n = Array(t);
|
|
145
171
|
for (; t-- > 0;) n[t] = e[t];
|
|
146
172
|
return n;
|
|
147
|
-
},
|
|
173
|
+
}, we = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && i(Uint8Array)), Te = (e, t) => {
|
|
148
174
|
let n = (e && e[a]).call(e), r;
|
|
149
175
|
for (; (r = n.next()) && !r.done;) {
|
|
150
176
|
let n = r.value;
|
|
151
177
|
t.call(e, n[0], n[1]);
|
|
152
178
|
}
|
|
153
|
-
},
|
|
179
|
+
}, Ee = (e, t) => {
|
|
154
180
|
let n, r = [];
|
|
155
181
|
for (; (n = e.exec(t)) !== null;) r.push(n);
|
|
156
182
|
return r;
|
|
157
|
-
},
|
|
183
|
+
}, De = h("HTMLFormElement"), Oe = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
|
|
158
184
|
return t.toUpperCase() + n;
|
|
159
|
-
}), { propertyIsEnumerable:
|
|
185
|
+
}), { propertyIsEnumerable: ke } = Object.prototype, Ae = h("RegExp"), je = (e, t) => {
|
|
160
186
|
let n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
161
|
-
|
|
187
|
+
me(n, (n, i) => {
|
|
162
188
|
let a;
|
|
163
189
|
(a = t(n, i, e)) !== !1 && (r[i] = a || n);
|
|
164
190
|
}), Object.defineProperties(e, r);
|
|
165
|
-
},
|
|
166
|
-
|
|
167
|
-
if (
|
|
191
|
+
}, Me = (e) => {
|
|
192
|
+
je(e, (t, n) => {
|
|
193
|
+
if (S(e) && [
|
|
168
194
|
"arguments",
|
|
169
195
|
"caller",
|
|
170
196
|
"callee"
|
|
171
197
|
].includes(n)) return !1;
|
|
172
198
|
let r = e[n];
|
|
173
|
-
if (
|
|
199
|
+
if (S(r)) {
|
|
174
200
|
if (t.enumerable = !1, "writable" in t) {
|
|
175
201
|
t.writable = !1;
|
|
176
202
|
return;
|
|
@@ -180,102 +206,110 @@ var me = (e, t, r, { allOwnKeys: i } = {}) => (ue(t, (t, i) => {
|
|
|
180
206
|
};
|
|
181
207
|
}
|
|
182
208
|
});
|
|
183
|
-
},
|
|
209
|
+
}, Ne = (e, t) => {
|
|
184
210
|
let n = {}, r = (e) => {
|
|
185
211
|
e.forEach((e) => {
|
|
186
212
|
n[e] = !0;
|
|
187
213
|
});
|
|
188
214
|
};
|
|
189
|
-
return
|
|
190
|
-
},
|
|
191
|
-
function
|
|
192
|
-
return !!(e &&
|
|
215
|
+
return _(e) ? r(e) : r(String(e).split(t)), n;
|
|
216
|
+
}, Pe = () => {}, Fe = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
217
|
+
function Ie(e) {
|
|
218
|
+
return !!(e && S(e.append) && e[o] === "FormData" && e[a]);
|
|
193
219
|
}
|
|
194
|
-
var
|
|
220
|
+
var Le = (e) => {
|
|
195
221
|
let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
|
|
196
|
-
if (
|
|
222
|
+
if (w(e)) {
|
|
197
223
|
if (t.has(e)) return;
|
|
198
|
-
if (
|
|
224
|
+
if (y(e)) return e;
|
|
199
225
|
if (!("toJSON" in e)) {
|
|
200
226
|
t.add(e);
|
|
201
|
-
let r
|
|
202
|
-
|
|
227
|
+
let r;
|
|
228
|
+
if (oe(e)) {
|
|
229
|
+
r = [];
|
|
230
|
+
for (let t of e) {
|
|
231
|
+
let e = n(t);
|
|
232
|
+
!v(e) && r.push(e);
|
|
233
|
+
}
|
|
234
|
+
} else r = _(e) ? [] : {}, me(e, (e, t) => {
|
|
203
235
|
let i = n(e);
|
|
204
|
-
!
|
|
205
|
-
})
|
|
236
|
+
!v(i) && (r[t] = i);
|
|
237
|
+
});
|
|
238
|
+
return t.delete(e), r;
|
|
206
239
|
}
|
|
207
240
|
}
|
|
208
241
|
return e;
|
|
209
242
|
};
|
|
210
243
|
return n(e);
|
|
211
|
-
},
|
|
212
|
-
n ===
|
|
244
|
+
}, Re = h("AsyncFunction"), ze = (e) => e && (w(e) || S(e)) && S(e.then) && S(e.catch), Be = ((e, t) => e ? setImmediate : t ? ((e, t) => (N.addEventListener("message", ({ source: n, data: r }) => {
|
|
245
|
+
n === N && r === e && t.length && t.shift()();
|
|
213
246
|
}, !1), (n) => {
|
|
214
|
-
t.push(n),
|
|
215
|
-
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function",
|
|
216
|
-
isArray:
|
|
217
|
-
isArrayBuffer:
|
|
218
|
-
isBuffer:
|
|
219
|
-
isFormData:
|
|
220
|
-
isArrayBufferView:
|
|
247
|
+
t.push(n), N.postMessage(e, "*");
|
|
248
|
+
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", S(N.postMessage)), Ve = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || Be, He = (e) => e != null && S(e[a]), P = {
|
|
249
|
+
isArray: _,
|
|
250
|
+
isArrayBuffer: b,
|
|
251
|
+
isBuffer: y,
|
|
252
|
+
isFormData: j,
|
|
253
|
+
isArrayBufferView: x,
|
|
221
254
|
isString: ee,
|
|
222
|
-
isNumber:
|
|
255
|
+
isNumber: C,
|
|
223
256
|
isBoolean: te,
|
|
224
|
-
isObject:
|
|
225
|
-
isPlainObject:
|
|
226
|
-
isEmptyObject:
|
|
227
|
-
isReadableStream:
|
|
228
|
-
isRequest:
|
|
229
|
-
isResponse:
|
|
230
|
-
isHeaders:
|
|
231
|
-
isUndefined:
|
|
232
|
-
isDate:
|
|
233
|
-
isFile:
|
|
234
|
-
isReactNativeBlob:
|
|
235
|
-
isReactNative:
|
|
236
|
-
isBlob:
|
|
237
|
-
isRegExp:
|
|
238
|
-
isFunction:
|
|
239
|
-
isStream:
|
|
240
|
-
isURLSearchParams:
|
|
241
|
-
isTypedArray:
|
|
242
|
-
isFileList:
|
|
243
|
-
forEach:
|
|
244
|
-
merge:
|
|
245
|
-
extend:
|
|
246
|
-
trim:
|
|
247
|
-
stripBOM:
|
|
248
|
-
inherits:
|
|
249
|
-
toFlatObject:
|
|
250
|
-
kindOf:
|
|
251
|
-
kindOfTest:
|
|
252
|
-
endsWith:
|
|
253
|
-
toArray:
|
|
254
|
-
forEachEntry:
|
|
255
|
-
matchAll:
|
|
256
|
-
isHTMLForm:
|
|
257
|
+
isObject: w,
|
|
258
|
+
isPlainObject: T,
|
|
259
|
+
isEmptyObject: ne,
|
|
260
|
+
isReadableStream: ue,
|
|
261
|
+
isRequest: M,
|
|
262
|
+
isResponse: de,
|
|
263
|
+
isHeaders: fe,
|
|
264
|
+
isUndefined: v,
|
|
265
|
+
isDate: re,
|
|
266
|
+
isFile: ie,
|
|
267
|
+
isReactNativeBlob: E,
|
|
268
|
+
isReactNative: D,
|
|
269
|
+
isBlob: O,
|
|
270
|
+
isRegExp: Ae,
|
|
271
|
+
isFunction: S,
|
|
272
|
+
isStream: se,
|
|
273
|
+
isURLSearchParams: le,
|
|
274
|
+
isTypedArray: we,
|
|
275
|
+
isFileList: ae,
|
|
276
|
+
forEach: me,
|
|
277
|
+
merge: _e,
|
|
278
|
+
extend: ve,
|
|
279
|
+
trim: pe,
|
|
280
|
+
stripBOM: ye,
|
|
281
|
+
inherits: be,
|
|
282
|
+
toFlatObject: xe,
|
|
283
|
+
kindOf: m,
|
|
284
|
+
kindOfTest: h,
|
|
285
|
+
endsWith: Se,
|
|
286
|
+
toArray: Ce,
|
|
287
|
+
forEachEntry: Te,
|
|
288
|
+
matchAll: Ee,
|
|
289
|
+
isHTMLForm: De,
|
|
257
290
|
hasOwnProperty: s,
|
|
258
291
|
hasOwnProp: s,
|
|
259
|
-
hasOwnInPrototypeChain:
|
|
260
|
-
getSafeProp:
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
292
|
+
hasOwnInPrototypeChain: d,
|
|
293
|
+
getSafeProp: f,
|
|
294
|
+
toSafeFlatObject: p,
|
|
295
|
+
reduceDescriptors: je,
|
|
296
|
+
freezeMethods: Me,
|
|
297
|
+
toObjectSet: Ne,
|
|
298
|
+
toCamelCase: Oe,
|
|
299
|
+
noop: Pe,
|
|
300
|
+
toFiniteNumber: Fe,
|
|
301
|
+
findKey: he,
|
|
302
|
+
global: N,
|
|
303
|
+
isContextDefined: ge,
|
|
304
|
+
isSpecCompliantForm: Ie,
|
|
305
|
+
toJSONObject: Le,
|
|
306
|
+
isAsyncFn: Re,
|
|
307
|
+
isThenable: ze,
|
|
308
|
+
setImmediate: Be,
|
|
309
|
+
asap: Ve,
|
|
310
|
+
isIterable: He,
|
|
311
|
+
isSafeIterable: (e) => e != null && d(e, a) && He(e)
|
|
312
|
+
}, Ue = P.toObjectSet([
|
|
279
313
|
"age",
|
|
280
314
|
"authorization",
|
|
281
315
|
"content-length",
|
|
@@ -293,15 +327,17 @@ var Ne = (e) => {
|
|
|
293
327
|
"referer",
|
|
294
328
|
"retry-after",
|
|
295
329
|
"user-agent"
|
|
296
|
-
]),
|
|
330
|
+
]), We = (e) => {
|
|
297
331
|
let t = {}, n, r, i;
|
|
298
332
|
return e && e.split("\n").forEach(function(e) {
|
|
299
|
-
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim()
|
|
333
|
+
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim();
|
|
334
|
+
let a = P.hasOwnProp(t, n);
|
|
335
|
+
!n || a && P.hasOwnProp(Ue, n) || (n === "set-cookie" ? a ? t[n].push(r) : t[n] = [r] : t[n] = a ? t[n] + ", " + r : r);
|
|
300
336
|
}), t;
|
|
301
337
|
};
|
|
302
338
|
//#endregion
|
|
303
339
|
//#region node_modules/axios/lib/helpers/sanitizeHeaderValue.js
|
|
304
|
-
function
|
|
340
|
+
function Ge(e) {
|
|
305
341
|
let t = 0, n = e.length;
|
|
306
342
|
for (; t < n;) {
|
|
307
343
|
let n = e.charCodeAt(t);
|
|
@@ -315,44 +351,88 @@ function Ve(e) {
|
|
|
315
351
|
}
|
|
316
352
|
return t === 0 && n === e.length ? e : e.slice(t, n);
|
|
317
353
|
}
|
|
318
|
-
var
|
|
319
|
-
function
|
|
320
|
-
return
|
|
354
|
+
var Ke = /* @__PURE__ */ RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"), qe = /* @__PURE__ */ RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
|
|
355
|
+
function Je(e, t) {
|
|
356
|
+
return P.isArray(e) ? e.map((e) => Je(e, t)) : Ge(String(e).replace(t, ""));
|
|
321
357
|
}
|
|
322
|
-
var
|
|
323
|
-
function
|
|
358
|
+
var Ye = (e) => Je(e, Ke), Xe = (e) => Je(e, qe);
|
|
359
|
+
function Ze(e) {
|
|
324
360
|
let t = Object.create(null);
|
|
325
|
-
return
|
|
326
|
-
t[n] =
|
|
361
|
+
return P.forEach(e.toJSON(), (e, n) => {
|
|
362
|
+
t[n] = Xe(e);
|
|
327
363
|
}), t;
|
|
328
364
|
}
|
|
329
365
|
//#endregion
|
|
330
366
|
//#region node_modules/axios/lib/core/AxiosHeaders.js
|
|
331
|
-
var
|
|
332
|
-
function
|
|
367
|
+
var Qe = Symbol("internals");
|
|
368
|
+
function $e(e) {
|
|
333
369
|
return e && String(e).trim().toLowerCase();
|
|
334
370
|
}
|
|
335
|
-
function
|
|
336
|
-
return e === !1 || e == null ? e :
|
|
371
|
+
function et(e) {
|
|
372
|
+
return e === !1 || e == null ? e : P.isArray(e) ? e.map(et) : Ye(String(e));
|
|
337
373
|
}
|
|
338
|
-
function
|
|
374
|
+
function tt(e) {
|
|
339
375
|
let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
|
|
340
376
|
for (; r = n.exec(e);) t[r[1]] = r[2];
|
|
341
377
|
return t;
|
|
342
378
|
}
|
|
343
|
-
var
|
|
344
|
-
function
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
if (
|
|
379
|
+
var nt = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
380
|
+
function rt(e) {
|
|
381
|
+
let t = 0, n = e.length;
|
|
382
|
+
for (; t < n;) {
|
|
383
|
+
let n = e.charCodeAt(t);
|
|
384
|
+
if (n !== 9 && n !== 32) break;
|
|
385
|
+
t += 1;
|
|
349
386
|
}
|
|
387
|
+
for (; n > t;) {
|
|
388
|
+
let t = e.charCodeAt(n - 1);
|
|
389
|
+
if (t !== 9 && t !== 32) break;
|
|
390
|
+
--n;
|
|
391
|
+
}
|
|
392
|
+
return t === 0 && n === e.length ? e : e.slice(t, n);
|
|
350
393
|
}
|
|
351
|
-
function
|
|
394
|
+
function it(e) {
|
|
395
|
+
let t = e.length - 1;
|
|
396
|
+
if (t < 1 || e.charCodeAt(0) !== 34 || e.charCodeAt(t) !== 34) return e;
|
|
397
|
+
let n = "";
|
|
398
|
+
for (let r = 1; r < t; r++) {
|
|
399
|
+
let i = e.charCodeAt(r);
|
|
400
|
+
if (i === 34 || i === 92 && (r += 1, r >= t)) return e;
|
|
401
|
+
n += e[r];
|
|
402
|
+
}
|
|
403
|
+
return n;
|
|
404
|
+
}
|
|
405
|
+
function at(e) {
|
|
406
|
+
let t = Object.create(null), n = String(e), r = 0, i = !1, a = !1;
|
|
407
|
+
function o(e) {
|
|
408
|
+
let i = rt(n.slice(r, e)), a = i.indexOf("=");
|
|
409
|
+
if (a < 1) return;
|
|
410
|
+
let o = rt(i.slice(0, a));
|
|
411
|
+
if (!nt.test(o)) return;
|
|
412
|
+
let s = o.toLowerCase();
|
|
413
|
+
if (s === "__proto__" || s === "constructor" || s === "prototype") return;
|
|
414
|
+
let c = rt(i.slice(a + 1));
|
|
415
|
+
t[s] = it(c);
|
|
416
|
+
}
|
|
417
|
+
for (let e = 0; e < n.length; e++) {
|
|
418
|
+
let t = n.charCodeAt(e);
|
|
419
|
+
i ? a ? a = !1 : t === 92 ? a = !0 : t === 34 && (i = !1) : t === 34 ? i = !0 : (t === 44 || t === 59) && (o(e), r = e + 1);
|
|
420
|
+
}
|
|
421
|
+
return o(n.length), t;
|
|
422
|
+
}
|
|
423
|
+
var ot = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
424
|
+
function st(e, t, n, r, i) {
|
|
425
|
+
if (P.isFunction(r)) return r.call(this, t, n);
|
|
426
|
+
if (i && (t = n), P.isString(t)) {
|
|
427
|
+
if (P.isString(r)) return t.indexOf(r) !== -1;
|
|
428
|
+
if (P.isRegExp(r)) return r.test(t);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
function ct(e) {
|
|
352
432
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n);
|
|
353
433
|
}
|
|
354
|
-
function
|
|
355
|
-
let n =
|
|
434
|
+
function lt(e, t) {
|
|
435
|
+
let n = P.toCamelCase(" " + t);
|
|
356
436
|
[
|
|
357
437
|
"get",
|
|
358
438
|
"set",
|
|
@@ -367,79 +447,79 @@ function tt(e, t) {
|
|
|
367
447
|
});
|
|
368
448
|
});
|
|
369
449
|
}
|
|
370
|
-
var
|
|
450
|
+
var F = class {
|
|
371
451
|
constructor(e) {
|
|
372
452
|
e && this.set(e);
|
|
373
453
|
}
|
|
374
454
|
set(e, t, n) {
|
|
375
455
|
let r = this;
|
|
376
456
|
function i(e, t, n) {
|
|
377
|
-
let i =
|
|
457
|
+
let i = $e(t);
|
|
378
458
|
if (!i) return;
|
|
379
|
-
let a =
|
|
380
|
-
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] =
|
|
459
|
+
let a = P.findKey(r, i);
|
|
460
|
+
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] = et(e));
|
|
381
461
|
}
|
|
382
|
-
let a = (e, t) =>
|
|
383
|
-
if (
|
|
384
|
-
else if (
|
|
385
|
-
else if (
|
|
462
|
+
let a = (e, t) => P.forEach(e, (e, n) => i(e, n, t));
|
|
463
|
+
if (P.isPlainObject(e) || e instanceof this.constructor) a(e, t);
|
|
464
|
+
else if (P.isString(e) && (e = e.trim()) && !ot(e)) a(We(e), t);
|
|
465
|
+
else if (P.isObject(e) && P.isSafeIterable(e)) {
|
|
386
466
|
let n = Object.create(null), r, i;
|
|
387
467
|
for (let t of e) {
|
|
388
|
-
if (!
|
|
389
|
-
i = t[0],
|
|
468
|
+
if (!P.isArray(t)) throw TypeError("Object iterator must return a key-value pair");
|
|
469
|
+
i = t[0], P.hasOwnProp(n, i) ? (r = n[i], n[i] = P.isArray(r) ? [...r, t[1]] : [r, t[1]]) : n[i] = t[1];
|
|
390
470
|
}
|
|
391
471
|
a(n, t);
|
|
392
472
|
} else e != null && i(t, e, n);
|
|
393
473
|
return this;
|
|
394
474
|
}
|
|
395
475
|
get(e, t) {
|
|
396
|
-
if (e =
|
|
397
|
-
let n =
|
|
476
|
+
if (e = $e(e), e) {
|
|
477
|
+
let n = P.findKey(this, e);
|
|
398
478
|
if (n) {
|
|
399
479
|
let e = this[n];
|
|
400
480
|
if (!t) return e;
|
|
401
|
-
if (t === !0) return
|
|
402
|
-
if (
|
|
403
|
-
if (
|
|
481
|
+
if (t === !0) return tt(e);
|
|
482
|
+
if (P.isFunction(t)) return t.call(this, e, n);
|
|
483
|
+
if (P.isRegExp(t)) return t.exec(e);
|
|
404
484
|
throw TypeError("parser must be boolean|regexp|function");
|
|
405
485
|
}
|
|
406
486
|
}
|
|
407
487
|
}
|
|
408
488
|
has(e, t) {
|
|
409
|
-
if (e =
|
|
410
|
-
let n =
|
|
411
|
-
return !!(n && this[n] !== void 0 && (!t ||
|
|
489
|
+
if (e = $e(e), e) {
|
|
490
|
+
let n = P.findKey(this, e);
|
|
491
|
+
return !!(n && this[n] !== void 0 && (!t || st(this, this[n], n, t)));
|
|
412
492
|
}
|
|
413
493
|
return !1;
|
|
414
494
|
}
|
|
415
495
|
delete(e, t) {
|
|
416
496
|
let n = this, r = !1;
|
|
417
497
|
function i(e) {
|
|
418
|
-
if (e =
|
|
419
|
-
let i =
|
|
420
|
-
i && (!t ||
|
|
498
|
+
if (e = $e(e), e) {
|
|
499
|
+
let i = P.findKey(n, e);
|
|
500
|
+
i && (!t || st(n, n[i], i, t)) && (delete n[i], r = !0);
|
|
421
501
|
}
|
|
422
502
|
}
|
|
423
|
-
return
|
|
503
|
+
return P.isArray(e) ? e.forEach(i) : i(e), r;
|
|
424
504
|
}
|
|
425
505
|
clear(e) {
|
|
426
506
|
let t = Object.keys(this), n = t.length, r = !1;
|
|
427
507
|
for (; n--;) {
|
|
428
508
|
let i = t[n];
|
|
429
|
-
(!e ||
|
|
509
|
+
(!e || st(this, this[i], i, e, !0)) && (delete this[i], r = !0);
|
|
430
510
|
}
|
|
431
511
|
return r;
|
|
432
512
|
}
|
|
433
513
|
normalize(e) {
|
|
434
514
|
let t = this, n = {};
|
|
435
|
-
return
|
|
436
|
-
let a =
|
|
515
|
+
return P.forEach(this, (r, i) => {
|
|
516
|
+
let a = P.findKey(n, i);
|
|
437
517
|
if (a) {
|
|
438
|
-
t[a] =
|
|
518
|
+
t[a] = et(r), delete t[i];
|
|
439
519
|
return;
|
|
440
520
|
}
|
|
441
|
-
let o = e ?
|
|
442
|
-
o !== i && delete t[i], t[o] =
|
|
521
|
+
let o = e ? ct(i) : String(i).trim();
|
|
522
|
+
o !== i && delete t[i], t[o] = et(r), n[o] = !0;
|
|
443
523
|
}), this;
|
|
444
524
|
}
|
|
445
525
|
concat(...e) {
|
|
@@ -447,8 +527,8 @@ var P = class {
|
|
|
447
527
|
}
|
|
448
528
|
toJSON(e) {
|
|
449
529
|
let t = Object.create(null);
|
|
450
|
-
return
|
|
451
|
-
n != null && n !== !1 && (t[r] = e &&
|
|
530
|
+
return P.forEach(this, (n, r) => {
|
|
531
|
+
n != null && n !== !1 && (t[r] = e && P.isArray(n) ? n.join(", ") : n);
|
|
452
532
|
}), t;
|
|
453
533
|
}
|
|
454
534
|
[Symbol.iterator]() {
|
|
@@ -458,7 +538,8 @@ var P = class {
|
|
|
458
538
|
return Object.entries(this.toJSON()).map(([e, t]) => e + ": " + t).join("\n");
|
|
459
539
|
}
|
|
460
540
|
getSetCookie() {
|
|
461
|
-
|
|
541
|
+
let e = this.get("set-cookie");
|
|
542
|
+
return P.isArray(e) ? e : e == null || e === !1 ? [] : [e];
|
|
462
543
|
}
|
|
463
544
|
get [Symbol.toStringTag]() {
|
|
464
545
|
return "AxiosHeaders";
|
|
@@ -466,27 +547,30 @@ var P = class {
|
|
|
466
547
|
static from(e) {
|
|
467
548
|
return e instanceof this ? e : new this(e);
|
|
468
549
|
}
|
|
550
|
+
static parseParameters(e) {
|
|
551
|
+
return at(e);
|
|
552
|
+
}
|
|
469
553
|
static concat(e, ...t) {
|
|
470
554
|
let n = new this(e);
|
|
471
555
|
return t.forEach((e) => n.set(e)), n;
|
|
472
556
|
}
|
|
473
557
|
static accessor(e) {
|
|
474
|
-
let t = (this[
|
|
558
|
+
let t = (this[Qe] = this[Qe] = { accessors: {} }).accessors, n = this.prototype;
|
|
475
559
|
function r(e) {
|
|
476
|
-
let r =
|
|
477
|
-
t[r] || (
|
|
560
|
+
let r = $e(e);
|
|
561
|
+
t[r] || (lt(n, e), t[r] = !0);
|
|
478
562
|
}
|
|
479
|
-
return
|
|
563
|
+
return P.isArray(e) ? e.forEach(r) : r(e), this;
|
|
480
564
|
}
|
|
481
565
|
};
|
|
482
|
-
|
|
566
|
+
F.accessor([
|
|
483
567
|
"Content-Type",
|
|
484
568
|
"Content-Length",
|
|
485
569
|
"Accept",
|
|
486
570
|
"Accept-Encoding",
|
|
487
571
|
"User-Agent",
|
|
488
572
|
"Authorization"
|
|
489
|
-
]),
|
|
573
|
+
]), P.reduceDescriptors(F.prototype, ({ value: e }, t) => {
|
|
490
574
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
491
575
|
return {
|
|
492
576
|
get: () => e,
|
|
@@ -494,51 +578,69 @@ P.accessor([
|
|
|
494
578
|
this[n] = e;
|
|
495
579
|
}
|
|
496
580
|
};
|
|
497
|
-
}),
|
|
581
|
+
}), P.freezeMethods(F);
|
|
498
582
|
//#endregion
|
|
499
583
|
//#region node_modules/axios/lib/core/AxiosError.js
|
|
500
|
-
var
|
|
501
|
-
function
|
|
502
|
-
if (
|
|
584
|
+
var ut = "[REDACTED ****]";
|
|
585
|
+
function dt(e) {
|
|
586
|
+
if (P.hasOwnProp(e, "toJSON")) return !0;
|
|
503
587
|
let t = Object.getPrototypeOf(e);
|
|
504
588
|
for (; t && t !== Object.prototype;) {
|
|
505
|
-
if (
|
|
589
|
+
if (P.hasOwnProp(t, "toJSON")) return !0;
|
|
506
590
|
t = Object.getPrototypeOf(t);
|
|
507
591
|
}
|
|
508
592
|
return !1;
|
|
509
593
|
}
|
|
510
|
-
function
|
|
594
|
+
function ft(e, t) {
|
|
511
595
|
let n = new Set(t.map((e) => String(e).toLowerCase())), r = [], i = (e) => {
|
|
512
|
-
if (typeof e != "object" || !e ||
|
|
596
|
+
if (typeof e != "object" || !e || P.isBuffer(e)) return e;
|
|
513
597
|
if (r.indexOf(e) !== -1) return;
|
|
514
|
-
e instanceof
|
|
598
|
+
e instanceof F && (e = e.toJSON()), r.push(e);
|
|
515
599
|
let t;
|
|
516
|
-
if (
|
|
600
|
+
if (P.isArray(e)) t = [], e.forEach((e, n) => {
|
|
517
601
|
let r = i(e);
|
|
518
|
-
|
|
602
|
+
P.isUndefined(r) || (t[n] = r);
|
|
519
603
|
});
|
|
520
604
|
else {
|
|
521
|
-
if (!
|
|
605
|
+
if (!P.isPlainObject(e) && dt(e)) return r.pop(), e;
|
|
522
606
|
t = Object.create(null);
|
|
523
607
|
for (let [r, a] of Object.entries(e)) {
|
|
524
|
-
let e = n.has(r.toLowerCase()) ?
|
|
525
|
-
|
|
608
|
+
let e = n.has(r.toLowerCase()) ? ut : i(a);
|
|
609
|
+
P.isUndefined(e) || (t[r] = e);
|
|
526
610
|
}
|
|
527
611
|
}
|
|
528
612
|
return r.pop(), t;
|
|
529
613
|
};
|
|
530
614
|
return i(e);
|
|
531
615
|
}
|
|
532
|
-
|
|
616
|
+
function pt(e) {
|
|
617
|
+
try {
|
|
618
|
+
return String(e);
|
|
619
|
+
} catch {
|
|
620
|
+
return "";
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
function mt(e) {
|
|
624
|
+
return e.errors.map((e) => {
|
|
625
|
+
try {
|
|
626
|
+
return e && e.message ? pt(e.message) : pt(e);
|
|
627
|
+
} catch {
|
|
628
|
+
return "";
|
|
629
|
+
}
|
|
630
|
+
}).filter(Boolean).join("; ") || e.name || "AggregateError";
|
|
631
|
+
}
|
|
632
|
+
var I = class e extends Error {
|
|
533
633
|
static from(t, n, r, i, a, o) {
|
|
534
|
-
let s =
|
|
535
|
-
|
|
634
|
+
let s = t.message;
|
|
635
|
+
!s && P.isArray(t.errors) && t.errors.length && (s = mt(t));
|
|
636
|
+
let c = new e(s, n || t.code, r, i, a);
|
|
637
|
+
return Object.defineProperty(c, "cause", {
|
|
536
638
|
__proto__: null,
|
|
537
639
|
value: t,
|
|
538
640
|
writable: !0,
|
|
539
641
|
enumerable: !1,
|
|
540
642
|
configurable: !0
|
|
541
|
-
}),
|
|
643
|
+
}), c.name = t.name, t.status != null && c.status == null && (c.status = t.status), o && Object.assign(c, o), c;
|
|
542
644
|
}
|
|
543
645
|
constructor(e, t, n, r, i) {
|
|
544
646
|
super(e), Object.defineProperty(this, "message", {
|
|
@@ -550,7 +652,7 @@ var F = class e extends Error {
|
|
|
550
652
|
}), this.name = "AxiosError", this.isAxiosError = !0, t && (this.code = t), n && (this.config = n), r && (this.request = r), i && (this.response = i, this.status = i.status);
|
|
551
653
|
}
|
|
552
654
|
toJSON() {
|
|
553
|
-
let e = this.config, t = e &&
|
|
655
|
+
let e = this.config, t = e && P.hasOwnProp(e, "redact") ? e.redact : void 0, n = P.isArray(t) && t.length > 0 ? ft(e, t) : P.toJSONObject(e);
|
|
554
656
|
return {
|
|
555
657
|
message: this.message,
|
|
556
658
|
name: this.name,
|
|
@@ -566,89 +668,85 @@ var F = class e extends Error {
|
|
|
566
668
|
};
|
|
567
669
|
}
|
|
568
670
|
};
|
|
569
|
-
|
|
570
|
-
function
|
|
571
|
-
return
|
|
671
|
+
I.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", I.ERR_BAD_OPTION = "ERR_BAD_OPTION", I.ECONNABORTED = "ECONNABORTED", I.ETIMEDOUT = "ETIMEDOUT", I.ECONNREFUSED = "ECONNREFUSED", I.ERR_NETWORK = "ERR_NETWORK", I.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", I.ERR_DEPRECATED = "ERR_DEPRECATED", I.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", I.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", I.ERR_CANCELED = "ERR_CANCELED", I.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", I.ERR_INVALID_URL = "ERR_INVALID_URL", I.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
672
|
+
function ht(e) {
|
|
673
|
+
return P.isPlainObject(e) || P.isArray(e);
|
|
572
674
|
}
|
|
573
|
-
function
|
|
574
|
-
return
|
|
675
|
+
function gt(e) {
|
|
676
|
+
return P.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
575
677
|
}
|
|
576
|
-
function
|
|
678
|
+
function _t(e, t, n) {
|
|
577
679
|
return e ? e.concat(t).map(function(e, t) {
|
|
578
|
-
return e =
|
|
680
|
+
return e = gt(e), !n && t ? "[" + e + "]" : e;
|
|
579
681
|
}).join(n ? "." : "") : t;
|
|
580
682
|
}
|
|
581
|
-
function
|
|
582
|
-
return
|
|
683
|
+
function vt(e) {
|
|
684
|
+
return P.isArray(e) && !e.some(ht);
|
|
583
685
|
}
|
|
584
|
-
var
|
|
686
|
+
var yt = P.toFlatObject(P, {}, null, function(e) {
|
|
585
687
|
return /^is[A-Z]/.test(e);
|
|
586
688
|
});
|
|
587
|
-
function
|
|
588
|
-
if (!
|
|
589
|
-
t ||= new FormData()
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
}, !1,
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
let r = n.metaTokens, i = n.visitor || m, a = n.dots, o = n.indexes, s = n.Blob || typeof Blob < "u" && Blob, c = n.maxDepth === void 0 ? 100 : n.maxDepth, l = s && N.isSpecCompliantForm(t), u = [];
|
|
597
|
-
if (!N.isFunction(i)) throw TypeError("visitor must be a function");
|
|
598
|
-
function d(e) {
|
|
689
|
+
function bt(e, t, n) {
|
|
690
|
+
if (!P.isObject(e)) throw TypeError("target must be an object");
|
|
691
|
+
t ||= new FormData();
|
|
692
|
+
let r = (e, t) => {
|
|
693
|
+
let r = P.getSafeProp(n, e);
|
|
694
|
+
return P.isUndefined(r) ? t : r;
|
|
695
|
+
}, i = r("metaTokens", !0), a = r("visitor") || h, o = r("dots", !1), s = r("indexes", !1), c = r("Blob") || typeof Blob < "u" && Blob, l = r("maxDepth", 100), u = c && P.isSpecCompliantForm(t), d = [];
|
|
696
|
+
if (!P.isFunction(a)) throw TypeError("visitor must be a function");
|
|
697
|
+
function f(e) {
|
|
599
698
|
if (e === null) return "";
|
|
600
|
-
if (
|
|
601
|
-
if (
|
|
602
|
-
if (!
|
|
603
|
-
if (
|
|
604
|
-
if (
|
|
605
|
-
|
|
606
|
-
throw new F("Blob is not supported. Use a Buffer instead.", F.ERR_NOT_SUPPORT);
|
|
699
|
+
if (P.isDate(e)) return e.toISOString();
|
|
700
|
+
if (P.isBoolean(e)) return e.toString();
|
|
701
|
+
if (!u && P.isBlob(e)) throw new I("Blob is not supported. Use a Buffer instead.");
|
|
702
|
+
if (P.isArrayBuffer(e) || P.isTypedArray(e)) {
|
|
703
|
+
if (u && typeof c == "function") return new c([e]);
|
|
704
|
+
throw new I("Blob is not supported. Use a Buffer instead.", I.ERR_NOT_SUPPORT);
|
|
607
705
|
}
|
|
608
706
|
return e;
|
|
609
707
|
}
|
|
610
|
-
function
|
|
611
|
-
if (e >
|
|
708
|
+
function p(e) {
|
|
709
|
+
if (e > l) throw new I("Object is too deeply nested (" + e + " levels). Max depth: " + l, I.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
612
710
|
}
|
|
613
|
-
function
|
|
614
|
-
if (
|
|
711
|
+
function m(e, t) {
|
|
712
|
+
if (l === Infinity) return JSON.stringify(e);
|
|
615
713
|
let n = [];
|
|
616
714
|
return JSON.stringify(e, function(e, r) {
|
|
617
|
-
if (!
|
|
715
|
+
if (!P.isObject(r)) return r;
|
|
618
716
|
for (; n.length && n[n.length - 1] !== this;) n.pop();
|
|
619
|
-
return n.push(r),
|
|
717
|
+
return n.push(r), p(t + n.length - 1), r;
|
|
620
718
|
});
|
|
621
719
|
}
|
|
622
|
-
function
|
|
623
|
-
let
|
|
624
|
-
if (
|
|
625
|
-
if (e && !
|
|
626
|
-
if (
|
|
627
|
-
else if (
|
|
628
|
-
!(
|
|
720
|
+
function h(e, n, r) {
|
|
721
|
+
let a = e;
|
|
722
|
+
if (P.isReactNative(t) && P.isReactNativeBlob(e)) return t.append(_t(r, n, o), f(e)), !1;
|
|
723
|
+
if (e && !r && typeof e == "object") {
|
|
724
|
+
if (P.endsWith(n, "{}")) n = i ? n : n.slice(0, -2), e = m(e, 1);
|
|
725
|
+
else if (P.isArray(e) && vt(e) || (P.isFileList(e) || P.endsWith(n, "[]")) && (a = P.toArray(e))) return n = gt(n), a.forEach(function(e, r) {
|
|
726
|
+
!(P.isUndefined(e) || e === null) && t.append(s === !0 ? _t([n], r, o) : s === null ? n : n + "[]", f(e));
|
|
629
727
|
}), !1;
|
|
630
728
|
}
|
|
631
|
-
return
|
|
729
|
+
return ht(e) ? !0 : (t.append(_t(r, n, o), f(e)), !1);
|
|
632
730
|
}
|
|
633
|
-
let
|
|
634
|
-
defaultVisitor:
|
|
635
|
-
convertValue:
|
|
636
|
-
isVisitable:
|
|
731
|
+
let g = Object.assign(yt, {
|
|
732
|
+
defaultVisitor: h,
|
|
733
|
+
convertValue: f,
|
|
734
|
+
isVisitable: ht
|
|
637
735
|
});
|
|
638
|
-
function
|
|
639
|
-
if (!
|
|
640
|
-
if (
|
|
641
|
-
|
|
642
|
-
(!(
|
|
643
|
-
}),
|
|
736
|
+
function _(e, n, r = 0) {
|
|
737
|
+
if (!P.isUndefined(e)) {
|
|
738
|
+
if (p(r), d.indexOf(e) !== -1) throw Error("Circular reference detected in " + n.join("."));
|
|
739
|
+
d.push(e), P.forEach(e, function(e, i) {
|
|
740
|
+
(!(P.isUndefined(e) || e === null) && a.call(t, e, P.isString(i) ? i.trim() : i, n, g)) === !0 && _(e, n ? n.concat(i) : [i], r + 1);
|
|
741
|
+
}), d.pop();
|
|
644
742
|
}
|
|
645
743
|
}
|
|
646
|
-
if (!
|
|
647
|
-
return
|
|
744
|
+
if (!P.isObject(e)) throw TypeError("data must be an object");
|
|
745
|
+
return _(e), t;
|
|
648
746
|
}
|
|
649
747
|
//#endregion
|
|
650
748
|
//#region node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
651
|
-
function
|
|
749
|
+
function xt(e) {
|
|
652
750
|
let t = {
|
|
653
751
|
"!": "%21",
|
|
654
752
|
"'": "%27",
|
|
@@ -661,28 +759,28 @@ function dt(e) {
|
|
|
661
759
|
return t[e];
|
|
662
760
|
});
|
|
663
761
|
}
|
|
664
|
-
function
|
|
665
|
-
this._pairs = [], e &&
|
|
762
|
+
function St(e, t) {
|
|
763
|
+
this._pairs = [], e && bt(e, this, t);
|
|
666
764
|
}
|
|
667
|
-
var
|
|
668
|
-
|
|
765
|
+
var Ct = St.prototype;
|
|
766
|
+
Ct.append = function(e, t) {
|
|
669
767
|
this._pairs.push([e, t]);
|
|
670
|
-
},
|
|
671
|
-
let t = e ? (t) => e.call(this, t,
|
|
768
|
+
}, Ct.toString = function(e) {
|
|
769
|
+
let t = e ? (t) => e.call(this, t, xt) : xt;
|
|
672
770
|
return this._pairs.map(function(e) {
|
|
673
771
|
return t(e[0]) + "=" + t(e[1]);
|
|
674
772
|
}, "").join("&");
|
|
675
773
|
};
|
|
676
774
|
//#endregion
|
|
677
775
|
//#region node_modules/axios/lib/helpers/buildURL.js
|
|
678
|
-
function
|
|
776
|
+
function wt(e) {
|
|
679
777
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
680
778
|
}
|
|
681
|
-
function
|
|
779
|
+
function Tt(e, t, n) {
|
|
682
780
|
if (!t) return e;
|
|
683
781
|
e ||= "";
|
|
684
|
-
let r =
|
|
685
|
-
if (o = a ? a(t, r) :
|
|
782
|
+
let r = P.isFunction(n) ? { serialize: n } : n, i = P.getSafeProp(r, "encode") || wt, a = P.getSafeProp(r, "serialize"), o;
|
|
783
|
+
if (o = a ? a(t, r) : P.isURLSearchParams(t) ? t.toString() : new St(t, r).toString(i), o) {
|
|
686
784
|
let t = e.indexOf("#");
|
|
687
785
|
t !== -1 && (e = e.slice(0, t)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
688
786
|
}
|
|
@@ -690,40 +788,77 @@ function ht(e, t, n) {
|
|
|
690
788
|
}
|
|
691
789
|
//#endregion
|
|
692
790
|
//#region node_modules/axios/lib/core/InterceptorManager.js
|
|
693
|
-
var
|
|
791
|
+
var Et = Symbol("internals");
|
|
792
|
+
function Dt(e) {
|
|
793
|
+
return e ? e.length : 0;
|
|
794
|
+
}
|
|
795
|
+
function Ot(e) {
|
|
796
|
+
if (e) for (; e.length && e[e.length - 1] === null;) e.pop();
|
|
797
|
+
}
|
|
798
|
+
function kt(e, t) {
|
|
799
|
+
let n = e.handlers, r = Dt(n);
|
|
800
|
+
n === t.handlersRef ? r !== t.handlersLength && (r ? t.handlerEntries.forEach(function(e, r) {
|
|
801
|
+
n[e.index] !== e.handler && t.handlerEntries.delete(r);
|
|
802
|
+
}) : t.handlerEntries.clear()) : (t.handlersRef = n, t.handlerEntries.clear()), t.handlersLength = r;
|
|
803
|
+
}
|
|
804
|
+
var At = class {
|
|
694
805
|
constructor() {
|
|
695
|
-
this.handlers = []
|
|
806
|
+
this.handlers = [], this[Et] = {
|
|
807
|
+
handlersRef: this.handlers,
|
|
808
|
+
handlersLength: this.handlers.length,
|
|
809
|
+
handlerEntries: /* @__PURE__ */ new Map(),
|
|
810
|
+
iterationDepth: 0,
|
|
811
|
+
nextId: 0
|
|
812
|
+
};
|
|
696
813
|
}
|
|
697
814
|
use(e, t, n) {
|
|
698
|
-
|
|
815
|
+
let r = {
|
|
699
816
|
fulfilled: e,
|
|
700
817
|
rejected: t,
|
|
701
818
|
synchronous: n ? n.synchronous : !1,
|
|
702
819
|
runWhen: n ? n.runWhen : null
|
|
703
|
-
}
|
|
820
|
+
}, i = this[Et];
|
|
821
|
+
this.handlers ??= [], kt(this, i);
|
|
822
|
+
let a = i.nextId++;
|
|
823
|
+
return this.handlers.push(r), i.handlerEntries.set(a, {
|
|
824
|
+
handler: r,
|
|
825
|
+
index: this.handlers.length - 1
|
|
826
|
+
}), i.handlersLength = this.handlers.length, a;
|
|
704
827
|
}
|
|
705
828
|
eject(e) {
|
|
706
|
-
|
|
829
|
+
let t = this[Et];
|
|
830
|
+
kt(this, t);
|
|
831
|
+
let n = t.handlerEntries.get(e);
|
|
832
|
+
if (n) {
|
|
833
|
+
if (t.handlerEntries.delete(e), this.handlers[n.index] !== n.handler) return;
|
|
834
|
+
this.handlers[n.index] = null, t.iterationDepth || (Ot(this.handlers), t.handlersLength = this.handlers.length);
|
|
835
|
+
}
|
|
707
836
|
}
|
|
708
837
|
clear() {
|
|
709
|
-
this.handlers
|
|
838
|
+
this.handlers && (this.handlers = [], kt(this, this[Et]));
|
|
710
839
|
}
|
|
711
840
|
forEach(e) {
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
841
|
+
let t = this[Et];
|
|
842
|
+
kt(this, t), t.iterationDepth++;
|
|
843
|
+
try {
|
|
844
|
+
P.forEach(this.handlers, function(t) {
|
|
845
|
+
t !== null && e(t);
|
|
846
|
+
});
|
|
847
|
+
} finally {
|
|
848
|
+
--t.iterationDepth || (kt(this, t), Ot(this.handlers), t.handlersLength = Dt(this.handlers));
|
|
849
|
+
}
|
|
715
850
|
}
|
|
716
|
-
},
|
|
851
|
+
}, jt = {
|
|
717
852
|
silentJSONParsing: !0,
|
|
718
853
|
forcedJSONParsing: !0,
|
|
719
854
|
clarifyTimeoutError: !1,
|
|
720
855
|
legacyInterceptorReqResOrdering: !0,
|
|
721
856
|
advertiseZstdAcceptEncoding: !1,
|
|
722
857
|
validateStatusUndefinedResolves: !0
|
|
723
|
-
},
|
|
858
|
+
}, Mt = {
|
|
724
859
|
isBrowser: !0,
|
|
725
860
|
classes: {
|
|
726
|
-
URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams :
|
|
861
|
+
URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : St,
|
|
727
862
|
FormData: typeof FormData < "u" ? FormData : null,
|
|
728
863
|
Blob: typeof Blob < "u" ? Blob : null
|
|
729
864
|
},
|
|
@@ -735,106 +870,118 @@ var gt = class {
|
|
|
735
870
|
"url",
|
|
736
871
|
"data"
|
|
737
872
|
]
|
|
738
|
-
},
|
|
739
|
-
hasBrowserEnv: () =>
|
|
740
|
-
hasStandardBrowserEnv: () =>
|
|
741
|
-
hasStandardBrowserWebWorkerEnv: () =>
|
|
742
|
-
navigator: () =>
|
|
743
|
-
origin: () =>
|
|
744
|
-
}),
|
|
873
|
+
}, Nt = /* @__PURE__ */ t({
|
|
874
|
+
hasBrowserEnv: () => Pt,
|
|
875
|
+
hasStandardBrowserEnv: () => It,
|
|
876
|
+
hasStandardBrowserWebWorkerEnv: () => Lt,
|
|
877
|
+
navigator: () => Ft,
|
|
878
|
+
origin: () => Rt
|
|
879
|
+
}), Pt = typeof window < "u" && typeof document < "u", Ft = typeof navigator == "object" && navigator || void 0, It = Pt && (!Ft || [
|
|
745
880
|
"ReactNative",
|
|
746
881
|
"NativeScript",
|
|
747
882
|
"NS"
|
|
748
|
-
].indexOf(
|
|
749
|
-
...
|
|
750
|
-
...
|
|
883
|
+
].indexOf(Ft.product) < 0), Lt = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Rt = Pt && window.location.href || "http://localhost", L = {
|
|
884
|
+
...Nt,
|
|
885
|
+
...Mt
|
|
751
886
|
};
|
|
752
887
|
//#endregion
|
|
753
888
|
//#region node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
754
|
-
function
|
|
755
|
-
return
|
|
889
|
+
function zt(e, t) {
|
|
890
|
+
return bt(e, new L.classes.URLSearchParams(), {
|
|
756
891
|
visitor: function(e, t, n, r) {
|
|
757
|
-
return
|
|
892
|
+
return L.isNode && P.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
|
|
758
893
|
},
|
|
759
894
|
...t
|
|
760
895
|
});
|
|
761
896
|
}
|
|
762
897
|
//#endregion
|
|
763
898
|
//#region node_modules/axios/lib/helpers/formDataToJSON.js
|
|
764
|
-
var
|
|
765
|
-
function
|
|
766
|
-
if (e >
|
|
899
|
+
var Bt = 100;
|
|
900
|
+
function Vt(e) {
|
|
901
|
+
if (e > Bt) throw new I("FormData field is too deeply nested (" + e + " levels). Max depth: " + Bt, I.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
767
902
|
}
|
|
768
|
-
function
|
|
769
|
-
let t = [], n =
|
|
770
|
-
for (; (r = n.exec(e)) !== null;)
|
|
903
|
+
function Ht(e) {
|
|
904
|
+
let t = [], n = /[^.[\]]+|\[([^.[\]]*)]/g, r;
|
|
905
|
+
for (; (r = n.exec(e)) !== null;) Vt(t.length), t.push(r[0] === "[]" ? "" : r[1] || r[0]);
|
|
771
906
|
return t;
|
|
772
907
|
}
|
|
773
|
-
function
|
|
908
|
+
function Ut(e) {
|
|
774
909
|
let t = {}, n = Object.keys(e), r, i = n.length, a;
|
|
775
910
|
for (r = 0; r < i; r++) a = n[r], t[a] = e[a];
|
|
776
911
|
return t;
|
|
777
912
|
}
|
|
778
|
-
function
|
|
913
|
+
function Wt(e) {
|
|
779
914
|
function t(e, n, r, i) {
|
|
780
|
-
|
|
915
|
+
Vt(i);
|
|
781
916
|
let a = e[i++];
|
|
782
917
|
if (a === "__proto__") return !0;
|
|
783
918
|
let o = Number.isFinite(+a), s = i >= e.length;
|
|
784
|
-
return a = !a &&
|
|
919
|
+
return a = !a && P.isArray(r) ? r.length : a, s ? (P.hasOwnProp(r, a) ? r[a] = P.isArray(r[a]) ? r[a].concat(n) : [r[a], n] : r[a] = n, !o) : ((!P.hasOwnProp(r, a) || !P.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && P.isArray(r[a]) && (r[a] = Ut(r[a])), !o);
|
|
785
920
|
}
|
|
786
|
-
if (
|
|
921
|
+
if (P.isFormData(e) && P.isFunction(e.entries)) {
|
|
787
922
|
let n = {};
|
|
788
|
-
return
|
|
789
|
-
t(
|
|
923
|
+
return P.forEachEntry(e, (e, r) => {
|
|
924
|
+
t(Ht(e), r, n, 0);
|
|
790
925
|
}), n;
|
|
791
926
|
}
|
|
792
927
|
return null;
|
|
793
928
|
}
|
|
794
929
|
//#endregion
|
|
795
|
-
//#region node_modules/axios/lib/
|
|
796
|
-
var
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
930
|
+
//#region node_modules/axios/lib/core/methodList.js
|
|
931
|
+
var Gt = Object.freeze([
|
|
932
|
+
"get",
|
|
933
|
+
"delete",
|
|
934
|
+
"head",
|
|
935
|
+
"options",
|
|
936
|
+
"post",
|
|
937
|
+
"put",
|
|
938
|
+
"patch",
|
|
939
|
+
"purge",
|
|
940
|
+
"link",
|
|
941
|
+
"unlink",
|
|
942
|
+
"query"
|
|
943
|
+
]), R = (e, t) => e != null && P.hasOwnProp(e, t) ? e[t] : void 0;
|
|
944
|
+
function Kt(e, t, n) {
|
|
945
|
+
if (P.isString(e)) try {
|
|
946
|
+
return (t || JSON.parse)(e), P.trim(e);
|
|
800
947
|
} catch (e) {
|
|
801
948
|
if (e.name !== "SyntaxError") throw e;
|
|
802
949
|
}
|
|
803
950
|
return (n || JSON.stringify)(e);
|
|
804
951
|
}
|
|
805
|
-
var
|
|
806
|
-
transitional:
|
|
952
|
+
var qt = {
|
|
953
|
+
transitional: jt,
|
|
807
954
|
adapter: [
|
|
808
955
|
"xhr",
|
|
809
956
|
"http",
|
|
810
957
|
"fetch"
|
|
811
958
|
],
|
|
812
959
|
transformRequest: [function(e, t) {
|
|
813
|
-
let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i =
|
|
814
|
-
if (i &&
|
|
815
|
-
if (
|
|
816
|
-
if (
|
|
817
|
-
if (
|
|
960
|
+
let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = P.isObject(e);
|
|
961
|
+
if (i && P.isHTMLForm(e) && (e = new FormData(e)), P.isFormData(e)) return r ? JSON.stringify(Wt(e)) : e;
|
|
962
|
+
if (P.isArrayBuffer(e) || P.isBuffer(e) || P.isStream(e) || P.isFile(e) || P.isBlob(e) || P.isReadableStream(e)) return e;
|
|
963
|
+
if (P.isArrayBufferView(e)) return e.buffer;
|
|
964
|
+
if (P.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
818
965
|
let a;
|
|
819
966
|
if (i) {
|
|
820
|
-
let t =
|
|
821
|
-
if (n.indexOf("application/x-www-form-urlencoded") > -1) return
|
|
822
|
-
if ((a =
|
|
823
|
-
let n =
|
|
824
|
-
return
|
|
967
|
+
let t = R(this, "formSerializer");
|
|
968
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1) return zt(e, t).toString();
|
|
969
|
+
if ((a = P.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
970
|
+
let n = R(this, "env"), r = n && n.FormData;
|
|
971
|
+
return bt(a ? { "files[]": e } : e, r && new r(), t);
|
|
825
972
|
}
|
|
826
973
|
}
|
|
827
|
-
return i || r ? (t.setContentType("application/json", !1),
|
|
974
|
+
return i || r ? (t.setContentType("application/json", !1), Kt(e)) : e;
|
|
828
975
|
}],
|
|
829
976
|
transformResponse: [function(e) {
|
|
830
|
-
let t =
|
|
831
|
-
if (
|
|
832
|
-
if (e &&
|
|
977
|
+
let t = R(this, "transitional") || qt.transitional, n = t && t.forcedJSONParsing, r = R(this, "responseType"), i = r === "json";
|
|
978
|
+
if (P.isResponse(e) || P.isReadableStream(e)) return e;
|
|
979
|
+
if (e && P.isString(e) && (n && !r || i)) {
|
|
833
980
|
let n = !(t && t.silentJSONParsing) && i;
|
|
834
981
|
try {
|
|
835
|
-
return JSON.parse(e,
|
|
982
|
+
return JSON.parse(e, R(this, "parseReviver"));
|
|
836
983
|
} catch (e) {
|
|
837
|
-
if (n) throw e.name === "SyntaxError" ?
|
|
984
|
+
if (n) throw e.name === "SyntaxError" ? I.from(e, I.ERR_BAD_RESPONSE, this, null, R(this, "response")) : e;
|
|
838
985
|
}
|
|
839
986
|
}
|
|
840
987
|
return e;
|
|
@@ -845,8 +992,8 @@ var Mt = {
|
|
|
845
992
|
maxContentLength: -1,
|
|
846
993
|
maxBodyLength: -1,
|
|
847
994
|
env: {
|
|
848
|
-
FormData:
|
|
849
|
-
Blob:
|
|
995
|
+
FormData: L.classes.FormData,
|
|
996
|
+
Blob: L.classes.Blob
|
|
850
997
|
},
|
|
851
998
|
validateStatus: function(e) {
|
|
852
999
|
return e >= 200 && e < 300;
|
|
@@ -856,52 +1003,53 @@ var Mt = {
|
|
|
856
1003
|
"Content-Type": void 0
|
|
857
1004
|
} }
|
|
858
1005
|
};
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
"get",
|
|
862
|
-
"head",
|
|
863
|
-
"post",
|
|
864
|
-
"put",
|
|
865
|
-
"patch",
|
|
866
|
-
"query"
|
|
867
|
-
], (e) => {
|
|
868
|
-
Mt.headers[e] = {};
|
|
1006
|
+
P.forEach(Gt, (e) => {
|
|
1007
|
+
qt.headers[e] = {};
|
|
869
1008
|
});
|
|
870
1009
|
//#endregion
|
|
871
1010
|
//#region node_modules/axios/lib/core/transformData.js
|
|
872
|
-
function
|
|
873
|
-
let n = this ||
|
|
874
|
-
return
|
|
1011
|
+
function Jt(e, t) {
|
|
1012
|
+
let n = this || qt, r = t || n, i = F.from(r.headers), a = r.data;
|
|
1013
|
+
return P.forEach(e, function(e) {
|
|
875
1014
|
a = e.call(n, a, i.normalize(), t ? t.status : void 0);
|
|
876
1015
|
}), i.normalize(), a;
|
|
877
1016
|
}
|
|
878
1017
|
//#endregion
|
|
879
1018
|
//#region node_modules/axios/lib/cancel/isCancel.js
|
|
880
|
-
function
|
|
1019
|
+
function Yt(e) {
|
|
881
1020
|
return !!(e && e.__CANCEL__);
|
|
882
1021
|
}
|
|
883
1022
|
//#endregion
|
|
884
1023
|
//#region node_modules/axios/lib/cancel/CanceledError.js
|
|
885
|
-
var
|
|
1024
|
+
var Xt = class extends I {
|
|
886
1025
|
constructor(e, t, n) {
|
|
887
|
-
super(e ?? "canceled",
|
|
1026
|
+
super(e ?? "canceled", I.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
888
1027
|
}
|
|
889
1028
|
};
|
|
890
1029
|
//#endregion
|
|
891
1030
|
//#region node_modules/axios/lib/core/settle.js
|
|
892
|
-
function
|
|
1031
|
+
function Zt(e, t, n) {
|
|
893
1032
|
let r = n.config.validateStatus;
|
|
894
|
-
!n.status || !r || r(n.status) ? e(n) : t(new
|
|
1033
|
+
!n.status || !r || r(n.status) ? e(n) : t(new I("Request failed with status code " + n.status, n.status >= 400 && n.status < 500 ? I.ERR_BAD_REQUEST : I.ERR_BAD_RESPONSE, n.config, n.request, n));
|
|
1034
|
+
}
|
|
1035
|
+
//#endregion
|
|
1036
|
+
//#region node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
|
|
1037
|
+
var Qt = /[\t\n\r]/g;
|
|
1038
|
+
function $t(e) {
|
|
1039
|
+
if (typeof e != "string") return e;
|
|
1040
|
+
let t = 0;
|
|
1041
|
+
for (; t < e.length && e.charCodeAt(t) <= 32;) t++;
|
|
1042
|
+
return e.slice(t).replace(Qt, "");
|
|
895
1043
|
}
|
|
896
1044
|
//#endregion
|
|
897
1045
|
//#region node_modules/axios/lib/helpers/parseProtocol.js
|
|
898
|
-
function
|
|
1046
|
+
function en(e) {
|
|
899
1047
|
let t = /^([-+\w]{1,25}):(?:\/\/)?/.exec(e);
|
|
900
1048
|
return t && t[1] || "";
|
|
901
1049
|
}
|
|
902
1050
|
//#endregion
|
|
903
1051
|
//#region node_modules/axios/lib/helpers/speedometer.js
|
|
904
|
-
function
|
|
1052
|
+
function tn(e, t) {
|
|
905
1053
|
e ||= 10;
|
|
906
1054
|
let n = Array(e), r = Array(e), i = 0, a = 0, o;
|
|
907
1055
|
return t = t === void 0 ? 1e3 : t, function(s) {
|
|
@@ -916,24 +1064,28 @@ function Rt(e, t) {
|
|
|
916
1064
|
}
|
|
917
1065
|
//#endregion
|
|
918
1066
|
//#region node_modules/axios/lib/helpers/throttle.js
|
|
919
|
-
function
|
|
1067
|
+
function nn(e, t) {
|
|
920
1068
|
let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
|
|
921
1069
|
n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
|
|
922
1070
|
};
|
|
923
|
-
return [
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
1071
|
+
return [
|
|
1072
|
+
(...e) => {
|
|
1073
|
+
let t = Date.now(), s = t - n;
|
|
1074
|
+
s >= r ? o(e, t) : (i = e, a ||= setTimeout(() => {
|
|
1075
|
+
a = null, o(i);
|
|
1076
|
+
}, r - s));
|
|
1077
|
+
},
|
|
1078
|
+
() => i && o(i),
|
|
1079
|
+
(...e) => o(e)
|
|
1080
|
+
];
|
|
929
1081
|
}
|
|
930
1082
|
//#endregion
|
|
931
1083
|
//#region node_modules/axios/lib/helpers/progressEventReducer.js
|
|
932
|
-
var
|
|
933
|
-
let r = 0, i =
|
|
934
|
-
return
|
|
935
|
-
if (!n ||
|
|
936
|
-
let a = n.loaded, o = n.lengthComputable ? n.total : void 0, s = o == null ? a : Math.min(a, o), c = Math.max(0, s - r), l = i(c);
|
|
1084
|
+
var rn = (e, t, n = 3) => {
|
|
1085
|
+
let r = 0, i = tn(50, 250);
|
|
1086
|
+
return nn((n) => {
|
|
1087
|
+
if (!n || !P.isNumber(n.loaded)) return;
|
|
1088
|
+
let a = n.loaded, o = n.lengthComputable ? n.total : void 0, s = Math.max(0, o == null ? a : Math.min(a, o)), c = Math.max(0, s - r), l = i(c);
|
|
937
1089
|
r = Math.max(r, s), e({
|
|
938
1090
|
loaded: s,
|
|
939
1091
|
total: o,
|
|
@@ -946,18 +1098,18 @@ var Bt = (e, t, n = 3) => {
|
|
|
946
1098
|
[t ? "download" : "upload"]: !0
|
|
947
1099
|
});
|
|
948
1100
|
}, n);
|
|
949
|
-
},
|
|
1101
|
+
}, an = (e, t) => {
|
|
950
1102
|
let n = e != null;
|
|
951
1103
|
return [(r) => t[0]({
|
|
952
1104
|
lengthComputable: n,
|
|
953
1105
|
total: e,
|
|
954
1106
|
loaded: r
|
|
955
1107
|
}), t[1]];
|
|
956
|
-
},
|
|
1108
|
+
}, on = (e, t = P.asap) => (...n) => t(() => e(...n)), sn = L.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, L.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(L.origin), L.navigator && /(msie|trident)/i.test(L.navigator.userAgent)) : () => !0, cn = L.hasStandardBrowserEnv ? {
|
|
957
1109
|
write(e, t, n, r, i, a, o) {
|
|
958
1110
|
if (typeof document > "u") return;
|
|
959
1111
|
let s = [`${e}=${encodeURIComponent(t)}`];
|
|
960
|
-
|
|
1112
|
+
P.isNumber(n) && s.push(`expires=${new Date(n).toUTCString()}`), P.isString(r) && s.push(`path=${r}`), P.isString(i) && s.push(`domain=${i}`), a === !0 && s.push("secure"), P.isString(o) && s.push(`SameSite=${o}`), document.cookie = s.join("; ");
|
|
961
1113
|
},
|
|
962
1114
|
read(e) {
|
|
963
1115
|
if (typeof document > "u") return null;
|
|
@@ -984,37 +1136,42 @@ var Bt = (e, t, n = 3) => {
|
|
|
984
1136
|
};
|
|
985
1137
|
//#endregion
|
|
986
1138
|
//#region node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
987
|
-
function
|
|
1139
|
+
function ln(e) {
|
|
988
1140
|
return typeof e == "string" && /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
989
1141
|
}
|
|
990
1142
|
//#endregion
|
|
991
1143
|
//#region node_modules/axios/lib/helpers/combineURLs.js
|
|
992
|
-
function
|
|
993
|
-
|
|
1144
|
+
function un(e, t) {
|
|
1145
|
+
if (!t) return e;
|
|
1146
|
+
let n = e.length;
|
|
1147
|
+
for (; n > 0 && e.charCodeAt(n - 1) === 47;) n--;
|
|
1148
|
+
return e.slice(0, n) + "/" + t.replace(/^\/+/, "");
|
|
994
1149
|
}
|
|
995
1150
|
//#endregion
|
|
996
1151
|
//#region node_modules/axios/lib/core/buildFullPath.js
|
|
997
|
-
var
|
|
998
|
-
function
|
|
999
|
-
|
|
1000
|
-
for (; t < e.length && e.charCodeAt(t) <= 32;) t++;
|
|
1001
|
-
return e.slice(t);
|
|
1152
|
+
var dn = /^https?:(?!\/\/)/i;
|
|
1153
|
+
function fn(e) {
|
|
1154
|
+
return e && e.replace(/(^|&)([^=&]*=)?[^&]+/g, (e, t, n = "") => `${t}${n}${ut}`);
|
|
1002
1155
|
}
|
|
1003
|
-
function
|
|
1004
|
-
|
|
1156
|
+
function pn(e) {
|
|
1157
|
+
let t = e.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${ut}@`), n = t.indexOf("#"), r = (n === -1 ? t : t.slice(0, n)).replace(/([?&][^=&#]*=)[^&#]*/g, `$1${ut}`);
|
|
1158
|
+
return n === -1 ? r : `${r}#${fn(t.slice(n + 1))}`;
|
|
1005
1159
|
}
|
|
1006
|
-
function
|
|
1007
|
-
if (typeof e == "string"
|
|
1160
|
+
function mn(e, t) {
|
|
1161
|
+
if (typeof e == "string") {
|
|
1162
|
+
let n = $t(e);
|
|
1163
|
+
if (dn.test(n)) throw new I(`Invalid URL ${JSON.stringify(pn(n))}: missing "//" after protocol`, I.ERR_INVALID_URL, t);
|
|
1164
|
+
}
|
|
1008
1165
|
}
|
|
1009
|
-
function
|
|
1010
|
-
|
|
1011
|
-
let i = !
|
|
1012
|
-
return e && (i || n === !1) ? (
|
|
1166
|
+
function hn(e, t, n, r) {
|
|
1167
|
+
mn(t, r);
|
|
1168
|
+
let i = !ln(t);
|
|
1169
|
+
return e && (i || n === !1) ? (mn(e, r), un(e, t)) : t;
|
|
1013
1170
|
}
|
|
1014
1171
|
//#endregion
|
|
1015
1172
|
//#region node_modules/axios/lib/core/mergeConfig.js
|
|
1016
|
-
var
|
|
1017
|
-
function
|
|
1173
|
+
var gn = (e) => e instanceof F ? { ...e } : e, _n = (e) => Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor ? Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter((t) => Object.getOwnPropertyDescriptor(e, t).enumerable)) : Object.keys(e);
|
|
1174
|
+
function z(e, t) {
|
|
1018
1175
|
e ||= {}, t ||= {};
|
|
1019
1176
|
let n = Object.create(null);
|
|
1020
1177
|
Object.defineProperty(n, "hasOwnProperty", {
|
|
@@ -1025,30 +1182,30 @@ function R(e, t) {
|
|
|
1025
1182
|
configurable: !0
|
|
1026
1183
|
});
|
|
1027
1184
|
function r(e, t, n, r) {
|
|
1028
|
-
return
|
|
1185
|
+
return P.isPlainObject(e) && P.isPlainObject(t) ? P.merge.call({ caseless: r }, e, t) : P.isPlainObject(t) ? P.merge({}, t) : P.isArray(t) ? t.slice() : t;
|
|
1029
1186
|
}
|
|
1030
1187
|
function i(e, t, n, i) {
|
|
1031
|
-
if (!
|
|
1032
|
-
if (!
|
|
1188
|
+
if (!P.isUndefined(t)) return r(e, t, n, i);
|
|
1189
|
+
if (!P.isUndefined(e)) return r(void 0, e, n, i);
|
|
1033
1190
|
}
|
|
1034
1191
|
function a(e, t) {
|
|
1035
|
-
if (!
|
|
1192
|
+
if (!P.isUndefined(t)) return r(void 0, t);
|
|
1036
1193
|
}
|
|
1037
1194
|
function o(e, t) {
|
|
1038
|
-
if (!
|
|
1039
|
-
if (!
|
|
1195
|
+
if (!P.isUndefined(t)) return r(void 0, t);
|
|
1196
|
+
if (!P.isUndefined(e)) return r(void 0, e);
|
|
1040
1197
|
}
|
|
1041
1198
|
function s(n) {
|
|
1042
|
-
let r =
|
|
1043
|
-
if (!
|
|
1044
|
-
if (
|
|
1199
|
+
let r = P.hasOwnProp(t, "transitional") ? t.transitional : void 0;
|
|
1200
|
+
if (!P.isUndefined(r)) if (P.isPlainObject(r)) {
|
|
1201
|
+
if (P.hasOwnProp(r, n)) return r[n];
|
|
1045
1202
|
} else return;
|
|
1046
|
-
let i =
|
|
1047
|
-
if (
|
|
1203
|
+
let i = P.hasOwnProp(e, "transitional") ? e.transitional : void 0;
|
|
1204
|
+
if (P.isPlainObject(i) && P.hasOwnProp(i, n)) return i[n];
|
|
1048
1205
|
}
|
|
1049
1206
|
function c(n, i, a) {
|
|
1050
|
-
if (
|
|
1051
|
-
if (
|
|
1207
|
+
if (P.hasOwnProp(t, a)) return r(n, i);
|
|
1208
|
+
if (P.hasOwnProp(e, a)) return r(void 0, n);
|
|
1052
1209
|
}
|
|
1053
1210
|
let l = {
|
|
1054
1211
|
url: a,
|
|
@@ -1059,7 +1216,7 @@ function R(e, t) {
|
|
|
1059
1216
|
transformResponse: o,
|
|
1060
1217
|
paramsSerializer: o,
|
|
1061
1218
|
timeout: o,
|
|
1062
|
-
|
|
1219
|
+
timeoutErrorMessage: o,
|
|
1063
1220
|
withCredentials: o,
|
|
1064
1221
|
withXSRFToken: o,
|
|
1065
1222
|
adapter: o,
|
|
@@ -1080,111 +1237,137 @@ function R(e, t) {
|
|
|
1080
1237
|
allowedSocketPaths: o,
|
|
1081
1238
|
responseEncoding: o,
|
|
1082
1239
|
validateStatus: c,
|
|
1083
|
-
headers: (e, t, n) => i(
|
|
1240
|
+
headers: (e, t, n) => i(gn(e), gn(t), n, !0)
|
|
1084
1241
|
};
|
|
1085
|
-
return
|
|
1242
|
+
return P.forEach(_n({
|
|
1086
1243
|
...e,
|
|
1087
1244
|
...t
|
|
1088
1245
|
}), function(r) {
|
|
1089
1246
|
if (r === "__proto__" || r === "constructor" || r === "prototype") return;
|
|
1090
|
-
let a =
|
|
1091
|
-
|
|
1092
|
-
}),
|
|
1247
|
+
let a = P.hasOwnProp(l, r) ? l[r] : i, o = a(P.hasOwnProp(e, r) ? e[r] : void 0, P.hasOwnProp(t, r) ? t[r] : void 0, r);
|
|
1248
|
+
P.isUndefined(o) && a !== c || (n[r] = o);
|
|
1249
|
+
}), P.hasOwnProp(t, "validateStatus") && P.isUndefined(t.validateStatus) && s("validateStatusUndefinedResolves") === !1 && (P.hasOwnProp(e, "validateStatus") ? n.validateStatus = r(void 0, e.validateStatus) : delete n.validateStatus), n;
|
|
1093
1250
|
}
|
|
1094
1251
|
//#endregion
|
|
1095
|
-
//#region node_modules/axios/lib/
|
|
1096
|
-
var
|
|
1097
|
-
function
|
|
1252
|
+
//#region node_modules/axios/lib/core/setFormDataHeaders.js
|
|
1253
|
+
var vn = ["content-type", "content-length"];
|
|
1254
|
+
function yn(e, t, n) {
|
|
1098
1255
|
if (n !== "content-only") {
|
|
1099
1256
|
e.set(t);
|
|
1100
1257
|
return;
|
|
1101
1258
|
}
|
|
1102
1259
|
Object.entries(t || {}).forEach(([t, n]) => {
|
|
1103
|
-
|
|
1260
|
+
vn.includes(t.toLowerCase()) && e.set(t, n);
|
|
1104
1261
|
});
|
|
1105
1262
|
}
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1263
|
+
//#endregion
|
|
1264
|
+
//#region node_modules/axios/lib/helpers/resolveConfig.js
|
|
1265
|
+
var bn = (e) => encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi, (e, t) => String.fromCharCode(parseInt(t, 16)));
|
|
1266
|
+
function xn(e) {
|
|
1267
|
+
let t = z({}, e), n = (e) => P.hasOwnProp(t, e) ? t[e] : void 0, r = n("data"), i = n("withXSRFToken"), a = n("xsrfHeaderName"), o = n("xsrfCookieName"), s = n("headers"), c = n("auth"), l = n("baseURL"), u = n("allowAbsoluteUrls"), d = n("url");
|
|
1268
|
+
if (t.headers = s = F.from(s), t.url = Tt(hn(l, d, u, t), n("params"), n("paramsSerializer")), c) {
|
|
1269
|
+
let t = P.getSafeProp(c, "username") || "", n = P.getSafeProp(c, "password") || "";
|
|
1111
1270
|
try {
|
|
1112
|
-
s.set("Authorization", "Basic " + btoa(t + ":" + (n ?
|
|
1271
|
+
s.set("Authorization", "Basic " + btoa(t + ":" + (n ? bn(n) : "")));
|
|
1113
1272
|
} catch (t) {
|
|
1114
|
-
throw
|
|
1273
|
+
throw I.from(t, I.ERR_BAD_OPTION_VALUE, e);
|
|
1115
1274
|
}
|
|
1116
1275
|
}
|
|
1117
|
-
if (
|
|
1118
|
-
let e =
|
|
1276
|
+
if (P.isFormData(r)) {
|
|
1277
|
+
let e = P.getSafeProp(r, "getHeaders");
|
|
1278
|
+
L.hasStandardBrowserEnv || L.hasStandardBrowserWebWorkerEnv || P.isReactNative(r) ? s.setContentType(void 0) : P.isFunction(e) && yn(s, e.call(r), n("formDataHeaderPolicy"));
|
|
1279
|
+
}
|
|
1280
|
+
if (L.hasStandardBrowserEnv && (P.isFunction(i) && (i = i(t)), i === !0 || i == null && sn(t.url))) {
|
|
1281
|
+
let e = a && o && cn.read(o);
|
|
1119
1282
|
e && s.set(a, e);
|
|
1120
1283
|
}
|
|
1121
1284
|
return t;
|
|
1122
1285
|
}
|
|
1123
|
-
var
|
|
1286
|
+
var Sn = typeof XMLHttpRequest < "u" && function(e) {
|
|
1124
1287
|
return new Promise(function(t, n) {
|
|
1125
|
-
let r =
|
|
1126
|
-
function
|
|
1288
|
+
let r = xn(e), i = r.data, a = F.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p, m;
|
|
1289
|
+
function h() {
|
|
1127
1290
|
f && f(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
|
|
1128
1291
|
}
|
|
1129
|
-
let
|
|
1130
|
-
|
|
1131
|
-
function
|
|
1132
|
-
if (!
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1292
|
+
let g = new XMLHttpRequest();
|
|
1293
|
+
g.open(r.method.toUpperCase(), r.url, !0), g.timeout = r.timeout;
|
|
1294
|
+
function _(i) {
|
|
1295
|
+
if (!g) return;
|
|
1296
|
+
if (g.status === 0 && (en($t(r.url)) || en(L.origin)) !== "file" && !(g.responseURL && g.responseURL.startsWith("file:"))) {
|
|
1297
|
+
n(new I("Request aborted", I.ECONNABORTED, e, g)), h(), g = null;
|
|
1298
|
+
return;
|
|
1299
|
+
}
|
|
1300
|
+
try {
|
|
1301
|
+
i ? m && m(i) : p && p();
|
|
1302
|
+
} catch (e) {
|
|
1303
|
+
setTimeout(() => {
|
|
1304
|
+
throw e;
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
if (!g) return;
|
|
1308
|
+
let a = F.from("getAllResponseHeaders" in g && g.getAllResponseHeaders());
|
|
1309
|
+
Zt(function(e) {
|
|
1310
|
+
t(e), h();
|
|
1136
1311
|
}, function(e) {
|
|
1137
|
-
n(e),
|
|
1312
|
+
n(e), h();
|
|
1138
1313
|
}, {
|
|
1139
|
-
data: !o || o === "text" || o === "json" ?
|
|
1140
|
-
status:
|
|
1141
|
-
statusText:
|
|
1142
|
-
headers:
|
|
1314
|
+
data: !o || o === "text" || o === "json" ? g.responseText : g.response,
|
|
1315
|
+
status: g.status,
|
|
1316
|
+
statusText: g.statusText,
|
|
1317
|
+
headers: a,
|
|
1143
1318
|
config: e,
|
|
1144
|
-
request:
|
|
1145
|
-
}),
|
|
1319
|
+
request: g
|
|
1320
|
+
}), g = null;
|
|
1146
1321
|
}
|
|
1147
|
-
"onloadend" in
|
|
1148
|
-
!
|
|
1149
|
-
},
|
|
1150
|
-
|
|
1151
|
-
},
|
|
1152
|
-
let r = new
|
|
1153
|
-
r.event = t || null, n(r),
|
|
1154
|
-
},
|
|
1155
|
-
let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional ||
|
|
1156
|
-
r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new
|
|
1157
|
-
}, i === void 0 && a.setContentType(null), "setRequestHeader" in
|
|
1158
|
-
|
|
1159
|
-
}),
|
|
1160
|
-
|
|
1322
|
+
"onloadend" in g ? g.onloadend = _ : g.onreadystatechange = function() {
|
|
1323
|
+
!g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.startsWith("file:")) || setTimeout(_);
|
|
1324
|
+
}, g.onabort = function() {
|
|
1325
|
+
g &&= (n(new I("Request aborted", I.ECONNABORTED, e, g)), h(), null);
|
|
1326
|
+
}, g.onerror = function(t) {
|
|
1327
|
+
let r = new I(t && t.message ? t.message : "Network Error", I.ERR_NETWORK, e, g);
|
|
1328
|
+
r.event = t || null, n(r), h(), g = null;
|
|
1329
|
+
}, g.ontimeout = function() {
|
|
1330
|
+
let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || jt;
|
|
1331
|
+
r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new I(t, i.clarifyTimeoutError ? I.ETIMEDOUT : I.ECONNABORTED, e, g)), h(), g = null;
|
|
1332
|
+
}, i === void 0 && a.setContentType(null), "setRequestHeader" in g && P.forEach(Ze(a), function(e, t) {
|
|
1333
|
+
g.setRequestHeader(t, e);
|
|
1334
|
+
}), P.isUndefined(r.withCredentials) || (g.withCredentials = !!r.withCredentials), o && o !== "json" && (g.responseType = r.responseType), c && ([d, p, m] = rn(c, !0), g.addEventListener("progress", d)), s && g.upload && ([u, f] = rn(s), g.upload.addEventListener("progress", u), g.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (l = (t) => {
|
|
1335
|
+
g &&= (n(!t || t.type ? new Xt(null, e, g) : t), g.abort(), h(), null);
|
|
1161
1336
|
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
|
1162
|
-
let
|
|
1163
|
-
if (
|
|
1164
|
-
n(new
|
|
1337
|
+
let v = en(r.url);
|
|
1338
|
+
if (v && !L.protocols.includes(v)) {
|
|
1339
|
+
n(new I("Unsupported protocol " + v + ":", I.ERR_BAD_REQUEST, e)), h();
|
|
1165
1340
|
return;
|
|
1166
1341
|
}
|
|
1167
|
-
|
|
1342
|
+
g.send(i || null);
|
|
1168
1343
|
});
|
|
1169
|
-
},
|
|
1344
|
+
}, Cn = (e, t) => {
|
|
1170
1345
|
if (e = e ? e.filter(Boolean) : [], !t && !e.length) return;
|
|
1171
1346
|
let n = new AbortController(), r = !1, i = function(e) {
|
|
1172
1347
|
if (!r) {
|
|
1173
1348
|
r = !0, o();
|
|
1174
1349
|
let t = e instanceof Error ? e : this.reason;
|
|
1175
|
-
n.abort(t instanceof
|
|
1350
|
+
n.abort(t instanceof I ? t : new Xt(t instanceof Error ? t.message : t));
|
|
1176
1351
|
}
|
|
1177
1352
|
}, a = t && setTimeout(() => {
|
|
1178
|
-
a = null, i(new
|
|
1353
|
+
a = null, i(new I(`timeout of ${t}ms exceeded`, I.ETIMEDOUT));
|
|
1179
1354
|
}, t), o = () => {
|
|
1180
1355
|
e &&= (a && clearTimeout(a), a = null, e.forEach((e) => {
|
|
1181
1356
|
e.unsubscribe ? e.unsubscribe(i) : e.removeEventListener("abort", i);
|
|
1182
1357
|
}), null);
|
|
1183
1358
|
};
|
|
1184
|
-
e.forEach((e) =>
|
|
1359
|
+
e.forEach((e) => {
|
|
1360
|
+
if (!r) {
|
|
1361
|
+
if (e.aborted) {
|
|
1362
|
+
i.call(e);
|
|
1363
|
+
return;
|
|
1364
|
+
}
|
|
1365
|
+
e.addEventListener("abort", i, { once: !0 });
|
|
1366
|
+
}
|
|
1367
|
+
});
|
|
1185
1368
|
let { signal: s } = n;
|
|
1186
|
-
return s.unsubscribe = () =>
|
|
1187
|
-
},
|
|
1369
|
+
return s.unsubscribe = () => P.asap(o), s;
|
|
1370
|
+
}, wn = function* (e, t) {
|
|
1188
1371
|
let n = e.byteLength;
|
|
1189
1372
|
if (!t || n < t) {
|
|
1190
1373
|
yield e;
|
|
@@ -1192,9 +1375,9 @@ var an = typeof XMLHttpRequest < "u" && function(e) {
|
|
|
1192
1375
|
}
|
|
1193
1376
|
let r = 0, i;
|
|
1194
1377
|
for (; r < n;) i = r + t, yield e.slice(r, i), r = i;
|
|
1195
|
-
},
|
|
1196
|
-
for await (let n of
|
|
1197
|
-
},
|
|
1378
|
+
}, Tn = async function* (e, t) {
|
|
1379
|
+
for await (let n of En(e)) yield* wn(n, t);
|
|
1380
|
+
}, En = async function* (e) {
|
|
1198
1381
|
if (e[Symbol.asyncIterator]) {
|
|
1199
1382
|
yield* e;
|
|
1200
1383
|
return;
|
|
@@ -1209,8 +1392,8 @@ var an = typeof XMLHttpRequest < "u" && function(e) {
|
|
|
1209
1392
|
} finally {
|
|
1210
1393
|
await t.cancel();
|
|
1211
1394
|
}
|
|
1212
|
-
},
|
|
1213
|
-
let i =
|
|
1395
|
+
}, Dn = (e, t, n, r) => {
|
|
1396
|
+
let i = Tn(e, t), a = 0, o, s = (e) => {
|
|
1214
1397
|
o || (o = !0, r && r(e));
|
|
1215
1398
|
};
|
|
1216
1399
|
return new ReadableStream({
|
|
@@ -1231,64 +1414,90 @@ var an = typeof XMLHttpRequest < "u" && function(e) {
|
|
|
1231
1414
|
return s(e), i.return();
|
|
1232
1415
|
}
|
|
1233
1416
|
}, { highWaterMark: 2 });
|
|
1234
|
-
},
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1417
|
+
}, On = (e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, kn = (e, t, n) => t + 2 < n && On(e.charCodeAt(t + 1)) && On(e.charCodeAt(t + 2)), An = (e) => e <= 57 ? e - 48 : (e & 223) - 55, jn = (e) => e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 43 || e === 47 || e === 45 || e === 95, Mn = (e) => e === 9 || e === 10 || e === 12 || e === 13 || e === 32, Nn = (e) => {
|
|
1418
|
+
let t = Math.floor(e / 4), n = e % 4;
|
|
1419
|
+
return t * 3 + (n === 2 ? 1 : n === 3 ? 2 : 0);
|
|
1420
|
+
}, Pn = (e) => {
|
|
1421
|
+
let t = e.length, n = 0;
|
|
1422
|
+
return t > 0 && e.charCodeAt(t - 1) === 61 && (n++, t > 1 && e.charCodeAt(t - 2) === 61 && n++), Math.floor((t - n) * 3 / 4);
|
|
1423
|
+
}, Fn = (e) => {
|
|
1424
|
+
let t = e.length, n = 0, r = 0, i = !1;
|
|
1425
|
+
for (let a = 0; a < t; a++) {
|
|
1426
|
+
let o = e.charCodeAt(a);
|
|
1427
|
+
if (o === 37 && kn(e, a, t) && (o = An(e.charCodeAt(a + 1)) * 16 + An(e.charCodeAt(a + 2)), a += 2), !Mn(o)) {
|
|
1428
|
+
if (o === 61) {
|
|
1429
|
+
r++;
|
|
1430
|
+
continue;
|
|
1431
|
+
}
|
|
1432
|
+
if (!jn(o) || r > 0) {
|
|
1433
|
+
i = !0;
|
|
1434
|
+
continue;
|
|
1435
|
+
}
|
|
1436
|
+
n++;
|
|
1245
1437
|
}
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1438
|
+
}
|
|
1439
|
+
return i || r > 2 || r > 0 && (n + r) % 4 != 0 || n % 4 == 1 ? Pn(e) : Nn(n);
|
|
1440
|
+
}, In = (e, t) => {
|
|
1441
|
+
if (!e || typeof e != "string" || !e.startsWith("data:")) return 0;
|
|
1442
|
+
let n = e.indexOf(",");
|
|
1443
|
+
if (n < 0) return 0;
|
|
1444
|
+
let r = e.slice(5, n), i = e.slice(n + 1);
|
|
1445
|
+
if (/;base64/i.test(r)) return t(i);
|
|
1446
|
+
let a = 0;
|
|
1447
|
+
for (let e = 0, t = i.length; e < t; e++) {
|
|
1448
|
+
let n = i.charCodeAt(e);
|
|
1449
|
+
if (n === 37 && kn(i, e, t)) a += 1, e += 2;
|
|
1450
|
+
else if (n < 128) a += 1;
|
|
1451
|
+
else if (n < 2048) a += 2;
|
|
1257
1452
|
else if (n >= 55296 && n <= 56319 && e + 1 < t) {
|
|
1258
|
-
let t =
|
|
1259
|
-
t >= 56320 && t <= 57343 ? (
|
|
1260
|
-
} else
|
|
1453
|
+
let t = i.charCodeAt(e + 1);
|
|
1454
|
+
t >= 56320 && t <= 57343 ? (a += 4, e++) : a += 3;
|
|
1455
|
+
} else a += 3;
|
|
1261
1456
|
}
|
|
1262
|
-
return
|
|
1457
|
+
return a;
|
|
1458
|
+
};
|
|
1459
|
+
function Ln(e) {
|
|
1460
|
+
let t = typeof e == "string" ? e.indexOf("#") : -1;
|
|
1461
|
+
return In(t === -1 ? e : e.slice(0, t), Fn);
|
|
1263
1462
|
}
|
|
1264
1463
|
//#endregion
|
|
1265
1464
|
//#region node_modules/axios/lib/env/data.js
|
|
1266
|
-
var
|
|
1267
|
-
|
|
1465
|
+
var Rn = "1.20.0", zn = 64 * 1024, Bn = {
|
|
1466
|
+
cache: "default",
|
|
1467
|
+
redirect: "follow",
|
|
1468
|
+
referrer: "about:client",
|
|
1469
|
+
referrerPolicy: "",
|
|
1470
|
+
mode: "cors",
|
|
1471
|
+
integrity: "",
|
|
1472
|
+
keepalive: !1,
|
|
1473
|
+
priority: "auto",
|
|
1474
|
+
window: null
|
|
1475
|
+
}, { isFunction: Vn } = P, Hn = (e) => encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi, (e, t) => String.fromCharCode(parseInt(t, 16))), Un = (e) => {
|
|
1476
|
+
if (!P.isString(e)) return e;
|
|
1268
1477
|
try {
|
|
1269
1478
|
return decodeURIComponent(e);
|
|
1270
1479
|
} catch {
|
|
1271
1480
|
return e;
|
|
1272
1481
|
}
|
|
1273
|
-
},
|
|
1482
|
+
}, Wn = (e, ...t) => {
|
|
1274
1483
|
try {
|
|
1275
1484
|
return !!e(...t);
|
|
1276
1485
|
} catch {
|
|
1277
1486
|
return !1;
|
|
1278
1487
|
}
|
|
1279
|
-
},
|
|
1488
|
+
}, Gn = (e) => {
|
|
1280
1489
|
let t = e.indexOf("://"), n = e;
|
|
1281
1490
|
return t !== -1 && (n = n.slice(t + 3)), n.includes("@") || n.includes(":");
|
|
1282
|
-
},
|
|
1283
|
-
let t =
|
|
1284
|
-
e =
|
|
1491
|
+
}, Kn = (e) => {
|
|
1492
|
+
let t = P.global !== void 0 && P.global !== null ? P.global : globalThis, { ReadableStream: n, TextEncoder: r } = t;
|
|
1493
|
+
e = P.merge.call({ skipUndefined: !0 }, {
|
|
1285
1494
|
Request: t.Request,
|
|
1286
1495
|
Response: t.Response
|
|
1287
1496
|
}, e);
|
|
1288
|
-
let { fetch: i, Request: a, Response: o } = e, s = i ?
|
|
1497
|
+
let { fetch: i, Request: a, Response: o } = e, s = i ? Vn(i) : typeof fetch == "function", c = Vn(a), l = Vn(o);
|
|
1289
1498
|
if (!s) return !1;
|
|
1290
|
-
let u = s &&
|
|
1291
|
-
let e = !1, t = new a(
|
|
1499
|
+
let u = s && Vn(n), d = s && (typeof r == "function" ? ((e) => (t) => e.encode(t))(new r()) : async (e) => new Uint8Array(await new a(e).arrayBuffer())), f = c && u && Wn(() => {
|
|
1500
|
+
let e = !1, t = new a(L.origin, {
|
|
1292
1501
|
body: new n(),
|
|
1293
1502
|
method: "POST",
|
|
1294
1503
|
get duplex() {
|
|
@@ -1296,7 +1505,7 @@ var mn = "1.18.1", hn = 64 * 1024, { isFunction: gn } = N, _n = (e) => encodeURI
|
|
|
1296
1505
|
}
|
|
1297
1506
|
}), r = t.headers.has("Content-Type");
|
|
1298
1507
|
return t.body != null && t.body.cancel(), e && !r;
|
|
1299
|
-
}), p = l && u &&
|
|
1508
|
+
}), p = l && u && Wn(() => P.isReadableStream(new o("").body)), m = { stream: p && ((e) => e.body) };
|
|
1300
1509
|
s && [
|
|
1301
1510
|
"text",
|
|
1302
1511
|
"arrayBuffer",
|
|
@@ -1307,120 +1516,123 @@ var mn = "1.18.1", hn = 64 * 1024, { isFunction: gn } = N, _n = (e) => encodeURI
|
|
|
1307
1516
|
!m[e] && (m[e] = (t, n) => {
|
|
1308
1517
|
let r = t && t[e];
|
|
1309
1518
|
if (r) return r.call(t);
|
|
1310
|
-
throw new
|
|
1519
|
+
throw new I(`Response type '${e}' is not supported`, I.ERR_NOT_SUPPORT, n);
|
|
1311
1520
|
});
|
|
1312
1521
|
});
|
|
1313
1522
|
let h = async (e) => {
|
|
1314
1523
|
if (e == null) return 0;
|
|
1315
|
-
if (
|
|
1316
|
-
if (
|
|
1524
|
+
if (P.isBlob(e)) return e.size;
|
|
1525
|
+
if (P.isSpecCompliantForm(e)) return (await new a(L.origin, {
|
|
1317
1526
|
method: "POST",
|
|
1318
1527
|
body: e
|
|
1319
1528
|
}).arrayBuffer()).byteLength;
|
|
1320
|
-
if (
|
|
1321
|
-
if (
|
|
1322
|
-
}, g = async (e, t) =>
|
|
1529
|
+
if (P.isArrayBufferView(e) || P.isArrayBuffer(e)) return e.byteLength;
|
|
1530
|
+
if (P.isURLSearchParams(e) && (e += ""), P.isString(e)) return (await d(e)).byteLength;
|
|
1531
|
+
}, g = async (e, t) => P.toFiniteNumber(e.getContentLength()) ?? h(t);
|
|
1323
1532
|
return async (e) => {
|
|
1324
|
-
let { url: t, method: n, data: s, signal: l, cancelToken: d, timeout: _, onDownloadProgress:
|
|
1325
|
-
|
|
1326
|
-
let
|
|
1327
|
-
|
|
1328
|
-
}),
|
|
1533
|
+
let { url: t, method: n, data: s, signal: l, cancelToken: d, timeout: _, onDownloadProgress: v, onUploadProgress: y, responseType: b, headers: x, withCredentials: ee = "same-origin", fetchOptions: S, maxContentLength: C, maxBodyLength: w, maxRedirects: te } = xn(e), T = P.isNumber(C) && C > -1, ne = P.isNumber(w) && w > -1, re = (t) => P.hasOwnProp(e, t) ? e[t] : void 0, ie = i || fetch;
|
|
1534
|
+
b = b ? (b + "").toLowerCase() : "text";
|
|
1535
|
+
let E = Cn([l, d && d.toAbortSignal()], _), D = null, O = E && E.unsubscribe && (() => {
|
|
1536
|
+
E.unsubscribe();
|
|
1537
|
+
}), ae, oe = null, se = () => new I("Request body larger than maxBodyLength limit", I.ERR_BAD_REQUEST, e, D);
|
|
1329
1538
|
try {
|
|
1330
1539
|
let i, l = re("auth");
|
|
1331
1540
|
if (l && (i = {
|
|
1332
|
-
username:
|
|
1333
|
-
password:
|
|
1334
|
-
}),
|
|
1335
|
-
let e = new URL(t,
|
|
1541
|
+
username: P.getSafeProp(l, "username") || "",
|
|
1542
|
+
password: P.getSafeProp(l, "password") || ""
|
|
1543
|
+
}), Gn(t)) {
|
|
1544
|
+
let e = new URL(t, L.origin);
|
|
1336
1545
|
!i && (e.username || e.password) && (i = {
|
|
1337
|
-
username:
|
|
1338
|
-
password:
|
|
1546
|
+
username: Un(e.username),
|
|
1547
|
+
password: Un(e.password)
|
|
1339
1548
|
}), (e.username || e.password) && (e.username = "", e.password = "", t = e.href);
|
|
1340
1549
|
}
|
|
1341
|
-
if (i && (
|
|
1550
|
+
if (i && (x.delete("authorization"), x.set("Authorization", "Basic " + btoa(Hn((i.username || "") + ":" + (i.password || ""))))), T && typeof t == "string" && t.startsWith("data:") && Ln(t) > C) throw new I("maxContentLength size of " + C + " exceeded", I.ERR_BAD_RESPONSE, e, D);
|
|
1342
1551
|
if (ne && n !== "get" && n !== "head") {
|
|
1343
1552
|
let e = await h(s);
|
|
1344
|
-
if (typeof e == "number" && isFinite(e) && (
|
|
1553
|
+
if (typeof e == "number" && isFinite(e) && (ae = e, e > w)) throw se();
|
|
1345
1554
|
}
|
|
1346
|
-
let d = ne && (
|
|
1347
|
-
if (ne && e >
|
|
1555
|
+
let d = ne && (P.isReadableStream(s) || P.isStream(s)), _ = (e, t, n) => Dn(e, zn, (e) => {
|
|
1556
|
+
if (ne && e > w) throw oe = se();
|
|
1348
1557
|
t && t(e);
|
|
1349
1558
|
}, n);
|
|
1350
|
-
if (f && n !== "get" && n !== "head" && (
|
|
1351
|
-
if (
|
|
1559
|
+
if (f && n !== "get" && n !== "head" && (y || d)) {
|
|
1560
|
+
if (ae ??= await g(x, s), ae !== 0 || d) {
|
|
1352
1561
|
let e = new a(t, {
|
|
1353
1562
|
method: "POST",
|
|
1354
1563
|
body: s,
|
|
1355
1564
|
duplex: "half"
|
|
1356
1565
|
}), n;
|
|
1357
|
-
if (
|
|
1358
|
-
let [t, n] =
|
|
1566
|
+
if (P.isFormData(s) && (n = e.headers.get("content-type")) && x.setContentType(n), e.body) {
|
|
1567
|
+
let [t, n] = y && an(ae, rn(on(y))) || [];
|
|
1359
1568
|
s = _(e.body, t, n);
|
|
1360
1569
|
}
|
|
1361
1570
|
}
|
|
1362
1571
|
} else if (d && !c && u && n !== "get" && n !== "head") s = _(s);
|
|
1363
|
-
else if (d && c && !f && n !== "get" && n !== "head") throw new
|
|
1364
|
-
|
|
1365
|
-
let
|
|
1366
|
-
if (
|
|
1367
|
-
let e =
|
|
1368
|
-
e && /^multipart\/form-data/i.test(e) && !/boundary=/i.test(e) &&
|
|
1572
|
+
else if (d && c && !f && n !== "get" && n !== "head") throw new I("Stream request bodies are not supported by the current fetch implementation", I.ERR_NOT_SUPPORT, e, D);
|
|
1573
|
+
P.isString(ee) || (ee = ee ? "include" : "omit");
|
|
1574
|
+
let ce = c && "credentials" in a.prototype;
|
|
1575
|
+
if (P.isFormData(s)) {
|
|
1576
|
+
let e = x.getContentType();
|
|
1577
|
+
e && /^multipart\/form-data/i.test(e) && !/boundary=/i.test(e) && x.delete("content-type");
|
|
1369
1578
|
}
|
|
1370
|
-
|
|
1371
|
-
let
|
|
1372
|
-
|
|
1373
|
-
|
|
1579
|
+
x.set("User-Agent", "axios/" + Rn, !1);
|
|
1580
|
+
let k = S == null ? S : Object.assign(Object.create(null), S);
|
|
1581
|
+
k && (delete k.body, delete k.headers, delete k.method, delete k.signal, delete k.duplex, delete k.credentials);
|
|
1582
|
+
let A = Object.assign(Object.create(null), k, {
|
|
1583
|
+
signal: E,
|
|
1374
1584
|
method: n.toUpperCase(),
|
|
1375
|
-
headers:
|
|
1585
|
+
headers: Ze(x.normalize()),
|
|
1376
1586
|
body: s,
|
|
1377
1587
|
duplex: "half",
|
|
1378
|
-
credentials:
|
|
1379
|
-
};
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1588
|
+
credentials: ce ? ee : void 0
|
|
1589
|
+
});
|
|
1590
|
+
c && (P.forEach(Bn, (e, t) => {
|
|
1591
|
+
A[t] === void 0 && (A[t] = e);
|
|
1592
|
+
}), A.signal === void 0 && (A.signal = null), A.body === void 0 && (A.body = null)), te === 0 && (A.redirect = "manual", k && (k.redirect = "manual")), D = c && new a(t, A);
|
|
1593
|
+
let j = await (c ? ie(D, k) : ie(t, A)), le = F.from(j.headers);
|
|
1594
|
+
if (T) {
|
|
1595
|
+
let t = P.toFiniteNumber(le.getContentLength());
|
|
1596
|
+
if (t != null && t > C) throw new I("maxContentLength size of " + C + " exceeded", I.ERR_BAD_RESPONSE, e, D);
|
|
1385
1597
|
}
|
|
1386
|
-
let
|
|
1387
|
-
if (p &&
|
|
1598
|
+
let ue = p && (b === "stream" || b === "response");
|
|
1599
|
+
if (p && j.body && (v || T || ue && O)) {
|
|
1388
1600
|
let t = {};
|
|
1389
1601
|
[
|
|
1390
1602
|
"status",
|
|
1391
1603
|
"statusText",
|
|
1392
1604
|
"headers"
|
|
1393
1605
|
].forEach((e) => {
|
|
1394
|
-
t[e] =
|
|
1606
|
+
t[e] = j[e];
|
|
1395
1607
|
});
|
|
1396
|
-
let n =
|
|
1397
|
-
|
|
1398
|
-
if (
|
|
1608
|
+
let n = P.toFiniteNumber(le.getContentLength()), [r, i] = v && an(n, rn(on(v), !0)) || [], a = 0;
|
|
1609
|
+
j = new o(Dn(j.body, zn, (t) => {
|
|
1610
|
+
if (T && (a = t, a > C)) throw new I("maxContentLength size of " + C + " exceeded", I.ERR_BAD_RESPONSE, e, D);
|
|
1399
1611
|
r && r(t);
|
|
1400
1612
|
}, () => {
|
|
1401
|
-
i && i(),
|
|
1613
|
+
i && i(), O && O();
|
|
1402
1614
|
}), t);
|
|
1403
1615
|
}
|
|
1404
|
-
|
|
1405
|
-
let
|
|
1406
|
-
if (
|
|
1616
|
+
b ||= "text";
|
|
1617
|
+
let M = await m[P.findKey(m, b) || "text"](j, e);
|
|
1618
|
+
if (T && !p && !ue) {
|
|
1407
1619
|
let t;
|
|
1408
|
-
if (
|
|
1620
|
+
if (M != null && (typeof M.byteLength == "number" ? t = M.byteLength : typeof M.size == "number" ? t = M.size : typeof M == "string" && (t = typeof r == "function" ? new r().encode(M).byteLength : M.length)), typeof t == "number" && t > C) throw new I("maxContentLength size of " + C + " exceeded", I.ERR_BAD_RESPONSE, e, D);
|
|
1409
1621
|
}
|
|
1410
|
-
return !
|
|
1411
|
-
|
|
1412
|
-
data:
|
|
1413
|
-
headers:
|
|
1414
|
-
status:
|
|
1415
|
-
statusText:
|
|
1622
|
+
return !ue && O && O(), await new Promise((t, n) => {
|
|
1623
|
+
Zt(t, n, {
|
|
1624
|
+
data: M,
|
|
1625
|
+
headers: F.from(j.headers),
|
|
1626
|
+
status: j.status,
|
|
1627
|
+
statusText: j.statusText,
|
|
1416
1628
|
config: e,
|
|
1417
|
-
request:
|
|
1629
|
+
request: D
|
|
1418
1630
|
});
|
|
1419
1631
|
});
|
|
1420
1632
|
} catch (t) {
|
|
1421
|
-
if (
|
|
1422
|
-
let n =
|
|
1423
|
-
throw n.config = e,
|
|
1633
|
+
if (O && O(), E && E.aborted && E.reason instanceof I) {
|
|
1634
|
+
let n = E.reason;
|
|
1635
|
+
throw n.config = e, D && (n.request = D), t !== n && Object.defineProperty(n, "cause", {
|
|
1424
1636
|
__proto__: null,
|
|
1425
1637
|
value: t,
|
|
1426
1638
|
writable: !0,
|
|
@@ -1428,10 +1640,10 @@ var mn = "1.18.1", hn = 64 * 1024, { isFunction: gn } = N, _n = (e) => encodeURI
|
|
|
1428
1640
|
configurable: !0
|
|
1429
1641
|
}), n;
|
|
1430
1642
|
}
|
|
1431
|
-
if (
|
|
1432
|
-
if (t instanceof
|
|
1643
|
+
if (oe) throw D && !oe.request && (oe.request = D), oe;
|
|
1644
|
+
if (t instanceof I) throw D && !t.request && (t.request = D), t;
|
|
1433
1645
|
if (t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message)) {
|
|
1434
|
-
let n = new
|
|
1646
|
+
let n = new I("Network Error", I.ERR_NETWORK, e, D, t && t.response);
|
|
1435
1647
|
throw Object.defineProperty(n, "cause", {
|
|
1436
1648
|
__proto__: null,
|
|
1437
1649
|
value: t.cause || t,
|
|
@@ -1440,27 +1652,27 @@ var mn = "1.18.1", hn = 64 * 1024, { isFunction: gn } = N, _n = (e) => encodeURI
|
|
|
1440
1652
|
configurable: !0
|
|
1441
1653
|
}), n;
|
|
1442
1654
|
}
|
|
1443
|
-
throw
|
|
1655
|
+
throw I.from(t, t && t.code, e, D, t && t.response);
|
|
1444
1656
|
}
|
|
1445
1657
|
};
|
|
1446
|
-
},
|
|
1658
|
+
}, qn = /* @__PURE__ */ new Map(), Jn = (e) => {
|
|
1447
1659
|
let t = e && e.env || {}, { fetch: n, Request: r, Response: i } = t, a = [
|
|
1448
1660
|
r,
|
|
1449
1661
|
i,
|
|
1450
1662
|
n
|
|
1451
|
-
], o = a.length, s, c, l =
|
|
1452
|
-
for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() :
|
|
1663
|
+
], o = a.length, s, c, l = qn;
|
|
1664
|
+
for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() : Kn(t)), l = c;
|
|
1453
1665
|
return c;
|
|
1454
1666
|
};
|
|
1455
|
-
|
|
1667
|
+
Jn();
|
|
1456
1668
|
//#endregion
|
|
1457
1669
|
//#region node_modules/axios/lib/adapters/adapters.js
|
|
1458
|
-
var
|
|
1670
|
+
var Yn = {
|
|
1459
1671
|
http: null,
|
|
1460
|
-
xhr:
|
|
1461
|
-
fetch: { get:
|
|
1672
|
+
xhr: Sn,
|
|
1673
|
+
fetch: { get: Jn }
|
|
1462
1674
|
};
|
|
1463
|
-
|
|
1675
|
+
P.forEach(Yn, (e, t) => {
|
|
1464
1676
|
if (e) {
|
|
1465
1677
|
try {
|
|
1466
1678
|
Object.defineProperty(e, "name", {
|
|
@@ -1474,61 +1686,62 @@ N.forEach(wn, (e, t) => {
|
|
|
1474
1686
|
});
|
|
1475
1687
|
}
|
|
1476
1688
|
});
|
|
1477
|
-
var
|
|
1478
|
-
function
|
|
1479
|
-
e =
|
|
1689
|
+
var Xn = (e) => `- ${e}`, Zn = (e) => P.isFunction(e) || e === null || e === !1;
|
|
1690
|
+
function Qn(e, t) {
|
|
1691
|
+
e = P.isArray(e) ? e : [e];
|
|
1480
1692
|
let { length: n } = e, r, i, a = {};
|
|
1481
1693
|
for (let o = 0; o < n; o++) {
|
|
1482
1694
|
r = e[o];
|
|
1483
1695
|
let n;
|
|
1484
|
-
if (i = r, !
|
|
1485
|
-
if (i && (
|
|
1696
|
+
if (i = r, !Zn(r) && (i = Yn[(n = String(r)).toLowerCase()], i === void 0)) throw new I(`Unknown adapter '${n}'`);
|
|
1697
|
+
if (i && (P.isFunction(i) || (i = i.get(t)))) break;
|
|
1486
1698
|
a[n || "#" + o] = i;
|
|
1487
1699
|
}
|
|
1488
1700
|
if (!i) {
|
|
1489
1701
|
let e = Object.entries(a).map(([e, t]) => `adapter ${e} ` + (t === !1 ? "is not supported by the environment" : "is not available in the build"));
|
|
1490
|
-
throw new
|
|
1702
|
+
throw new I("There is no suitable adapter to dispatch the request " + (n ? e.length > 1 ? "since :\n" + e.map(Xn).join("\n") : " " + Xn(e[0]) : "as no adapter specified"), I.ERR_NOT_SUPPORT);
|
|
1491
1703
|
}
|
|
1492
1704
|
return i;
|
|
1493
1705
|
}
|
|
1494
|
-
var
|
|
1495
|
-
getAdapter:
|
|
1496
|
-
adapters:
|
|
1706
|
+
var $n = {
|
|
1707
|
+
getAdapter: Qn,
|
|
1708
|
+
adapters: Yn
|
|
1497
1709
|
};
|
|
1498
1710
|
//#endregion
|
|
1499
1711
|
//#region node_modules/axios/lib/core/dispatchRequest.js
|
|
1500
|
-
function
|
|
1501
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new
|
|
1712
|
+
function er(e) {
|
|
1713
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new Xt(null, e);
|
|
1502
1714
|
}
|
|
1503
|
-
function
|
|
1504
|
-
|
|
1715
|
+
function tr(e) {
|
|
1716
|
+
let t = P.toSafeFlatObject(e);
|
|
1717
|
+
return er(t), t.headers = F.from(P.getSafeProp(t, "headers")), t.data = Jt.call(t, t.transformRequest), [
|
|
1505
1718
|
"post",
|
|
1506
1719
|
"put",
|
|
1507
1720
|
"patch"
|
|
1508
|
-
].indexOf(
|
|
1509
|
-
|
|
1721
|
+
].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), $n.getAdapter(t.adapter || qt.adapter, t)(t).then(function(e) {
|
|
1722
|
+
er(t), t.response = e;
|
|
1510
1723
|
try {
|
|
1511
|
-
|
|
1724
|
+
e.data = Jt.call(t, t.transformResponse, e);
|
|
1512
1725
|
} finally {
|
|
1513
|
-
delete
|
|
1726
|
+
delete t.response;
|
|
1514
1727
|
}
|
|
1515
|
-
return
|
|
1516
|
-
}, function(
|
|
1517
|
-
if (!
|
|
1518
|
-
|
|
1728
|
+
return e.headers = F.from(e.headers), e;
|
|
1729
|
+
}, function(e) {
|
|
1730
|
+
if (!Yt(e) && (er(t), e && e.response)) {
|
|
1731
|
+
t.response = e.response;
|
|
1519
1732
|
try {
|
|
1520
|
-
|
|
1733
|
+
e.response.data = Jt.call(t, t.transformResponse, e.response);
|
|
1521
1734
|
} finally {
|
|
1522
|
-
delete
|
|
1735
|
+
delete t.response;
|
|
1523
1736
|
}
|
|
1524
|
-
|
|
1737
|
+
e.response.headers = F.from(e.response.headers);
|
|
1525
1738
|
}
|
|
1526
|
-
return Promise.reject(
|
|
1739
|
+
return Promise.reject(e);
|
|
1527
1740
|
});
|
|
1528
1741
|
}
|
|
1529
1742
|
//#endregion
|
|
1530
1743
|
//#region node_modules/axios/lib/helpers/validator.js
|
|
1531
|
-
var
|
|
1744
|
+
var nr = {};
|
|
1532
1745
|
[
|
|
1533
1746
|
"object",
|
|
1534
1747
|
"boolean",
|
|
@@ -1537,103 +1750,92 @@ var jn = {};
|
|
|
1537
1750
|
"string",
|
|
1538
1751
|
"symbol"
|
|
1539
1752
|
].forEach((e, t) => {
|
|
1540
|
-
|
|
1753
|
+
nr[e] = function(n) {
|
|
1541
1754
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1542
1755
|
};
|
|
1543
1756
|
});
|
|
1544
|
-
var
|
|
1545
|
-
|
|
1757
|
+
var rr = {};
|
|
1758
|
+
nr.transitional = function(e, t, n) {
|
|
1546
1759
|
function r(e, t) {
|
|
1547
|
-
return "[Axios v" +
|
|
1760
|
+
return "[Axios v" + Rn + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "");
|
|
1548
1761
|
}
|
|
1549
1762
|
return (n, i, a) => {
|
|
1550
|
-
if (e === !1) throw new
|
|
1551
|
-
return t && !
|
|
1763
|
+
if (e === !1) throw new I(r(i, " has been removed" + (t ? " in " + t : "")), I.ERR_DEPRECATED);
|
|
1764
|
+
return t && !rr[i] && (rr[i] = !0, console.warn(r(i, " has been deprecated since v" + t + " and will be removed in the near future"))), !e || e(n, i, a);
|
|
1552
1765
|
};
|
|
1553
|
-
},
|
|
1766
|
+
}, nr.spelling = function(e) {
|
|
1554
1767
|
return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
|
|
1555
1768
|
};
|
|
1556
|
-
function
|
|
1557
|
-
if (typeof e != "object" || !e) throw new
|
|
1769
|
+
function ir(e, t, n) {
|
|
1770
|
+
if (typeof e != "object" || !e) throw new I("options must be an object", I.ERR_BAD_OPTION_VALUE);
|
|
1558
1771
|
let r = Object.keys(e), i = r.length;
|
|
1559
1772
|
for (; i-- > 0;) {
|
|
1560
1773
|
let a = r[i], o = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0;
|
|
1561
1774
|
if (o) {
|
|
1562
1775
|
let t = e[a], n = t === void 0 || o(t, a, e);
|
|
1563
|
-
if (n !== !0) throw new
|
|
1776
|
+
if (n !== !0) throw new I("option " + a + " must be " + n, I.ERR_BAD_OPTION_VALUE);
|
|
1564
1777
|
continue;
|
|
1565
1778
|
}
|
|
1566
|
-
if (n !== !0) throw new
|
|
1779
|
+
if (n !== !0) throw new I("Unknown option " + a, I.ERR_BAD_OPTION);
|
|
1567
1780
|
}
|
|
1568
1781
|
}
|
|
1569
|
-
var
|
|
1570
|
-
assertOptions:
|
|
1571
|
-
validators:
|
|
1572
|
-
},
|
|
1782
|
+
var ar = {
|
|
1783
|
+
assertOptions: ir,
|
|
1784
|
+
validators: nr
|
|
1785
|
+
}, B = ar.validators, V = class {
|
|
1573
1786
|
constructor(e) {
|
|
1574
1787
|
this.defaults = e || {}, this.interceptors = {
|
|
1575
|
-
request: new
|
|
1576
|
-
response: new
|
|
1788
|
+
request: new At(),
|
|
1789
|
+
response: new At()
|
|
1577
1790
|
};
|
|
1578
1791
|
}
|
|
1579
1792
|
async request(e, t) {
|
|
1580
1793
|
try {
|
|
1581
1794
|
return await this._request(e, t);
|
|
1582
1795
|
} catch (e) {
|
|
1583
|
-
if (e instanceof Error) {
|
|
1796
|
+
if (e instanceof Error) try {
|
|
1584
1797
|
let t = {};
|
|
1585
1798
|
Error.captureStackTrace ? Error.captureStackTrace(t) : t = /* @__PURE__ */ Error();
|
|
1586
|
-
let n =
|
|
1587
|
-
|
|
1588
|
-
let e =
|
|
1589
|
-
|
|
1590
|
-
}
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
} catch {}
|
|
1598
|
-
}
|
|
1799
|
+
let n = t.stack, r = "";
|
|
1800
|
+
if (typeof n == "string") {
|
|
1801
|
+
let e = n.indexOf("\n");
|
|
1802
|
+
r = e === -1 ? "" : n.slice(e + 1);
|
|
1803
|
+
}
|
|
1804
|
+
if (!e.stack) e.stack = r;
|
|
1805
|
+
else if (r) {
|
|
1806
|
+
let t = r.indexOf("\n"), n = t === -1 ? -1 : r.indexOf("\n", t + 1), i = n === -1 ? "" : r.slice(n + 1);
|
|
1807
|
+
String(e.stack).endsWith(i) || (e.stack += "\n" + r);
|
|
1808
|
+
}
|
|
1809
|
+
} catch {}
|
|
1599
1810
|
throw e;
|
|
1600
1811
|
}
|
|
1601
1812
|
}
|
|
1602
1813
|
_request(e, t) {
|
|
1603
|
-
typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t =
|
|
1814
|
+
typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t = z(this.defaults, t);
|
|
1604
1815
|
let { transitional: n, paramsSerializer: r, headers: i } = t;
|
|
1605
|
-
n !== void 0 &&
|
|
1606
|
-
silentJSONParsing:
|
|
1607
|
-
forcedJSONParsing:
|
|
1608
|
-
clarifyTimeoutError:
|
|
1609
|
-
legacyInterceptorReqResOrdering:
|
|
1610
|
-
advertiseZstdAcceptEncoding:
|
|
1611
|
-
validateStatusUndefinedResolves:
|
|
1612
|
-
}, !1), r != null && (
|
|
1613
|
-
encode:
|
|
1614
|
-
serialize:
|
|
1615
|
-
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls),
|
|
1616
|
-
baseUrl:
|
|
1617
|
-
withXsrfToken:
|
|
1618
|
-
}, !0), t.method = (t
|
|
1619
|
-
let a = i &&
|
|
1620
|
-
i &&
|
|
1621
|
-
"delete",
|
|
1622
|
-
"get",
|
|
1623
|
-
"head",
|
|
1624
|
-
"post",
|
|
1625
|
-
"put",
|
|
1626
|
-
"patch",
|
|
1627
|
-
"query",
|
|
1628
|
-
"common"
|
|
1629
|
-
], (e) => {
|
|
1816
|
+
n !== void 0 && ar.assertOptions(n, {
|
|
1817
|
+
silentJSONParsing: B.transitional(B.boolean),
|
|
1818
|
+
forcedJSONParsing: B.transitional(B.boolean),
|
|
1819
|
+
clarifyTimeoutError: B.transitional(B.boolean),
|
|
1820
|
+
legacyInterceptorReqResOrdering: B.transitional(B.boolean),
|
|
1821
|
+
advertiseZstdAcceptEncoding: B.transitional(B.boolean),
|
|
1822
|
+
validateStatusUndefinedResolves: B.transitional(B.boolean)
|
|
1823
|
+
}, !1), r != null && (P.isFunction(r) ? t.paramsSerializer = { serialize: r } : ar.assertOptions(r, {
|
|
1824
|
+
encode: B.function,
|
|
1825
|
+
serialize: B.function
|
|
1826
|
+
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), ar.assertOptions(t, {
|
|
1827
|
+
baseUrl: B.spelling("baseURL"),
|
|
1828
|
+
withXsrfToken: B.spelling("withXSRFToken")
|
|
1829
|
+
}, !0), t.method = (P.getSafeProp(t, "method") || P.getSafeProp(this.defaults, "method") || "get").toLowerCase();
|
|
1830
|
+
let a = i && P.merge(i.common, i[t.method]);
|
|
1831
|
+
i && P.forEach(Gt.concat("common"), (e) => {
|
|
1630
1832
|
delete i[e];
|
|
1631
|
-
}), t.headers =
|
|
1833
|
+
}), t.headers = F.concat(a, i);
|
|
1632
1834
|
let o = [], s = !0;
|
|
1633
1835
|
this.interceptors.request.forEach(function(e) {
|
|
1634
1836
|
if (typeof e.runWhen == "function" && e.runWhen(t) === !1) return;
|
|
1635
1837
|
s &&= e.synchronous;
|
|
1636
|
-
let n = t.transitional ||
|
|
1838
|
+
let n = t.transitional || jt;
|
|
1637
1839
|
n && n.legacyInterceptorReqResOrdering ? o.unshift(e.fulfilled, e.rejected) : o.push(e.fulfilled, e.rejected);
|
|
1638
1840
|
});
|
|
1639
1841
|
let c = [];
|
|
@@ -1642,7 +1844,7 @@ var Pn = {
|
|
|
1642
1844
|
});
|
|
1643
1845
|
let l, u = 0, d;
|
|
1644
1846
|
if (!s) {
|
|
1645
|
-
let e = [
|
|
1847
|
+
let e = [tr.bind(this), void 0];
|
|
1646
1848
|
for (e.unshift(...o), e.push(...c), d = e.length, l = Promise.resolve(t); u < d;) l = l.then(e[u++], e[u++]);
|
|
1647
1849
|
return l;
|
|
1648
1850
|
}
|
|
@@ -1651,38 +1853,47 @@ var Pn = {
|
|
|
1651
1853
|
for (; u < d;) {
|
|
1652
1854
|
let e = o[u++], t = o[u++];
|
|
1653
1855
|
try {
|
|
1654
|
-
f = e(f);
|
|
1856
|
+
f = e ? e(f) : f;
|
|
1655
1857
|
} catch (e) {
|
|
1656
|
-
t
|
|
1858
|
+
if (!t) {
|
|
1859
|
+
l = Promise.reject(e);
|
|
1860
|
+
break;
|
|
1861
|
+
}
|
|
1862
|
+
try {
|
|
1863
|
+
let n = t.call(this, e);
|
|
1864
|
+
P.isThenable(n) && (l = Promise.resolve(n).then(() => tr.call(this, f)));
|
|
1865
|
+
} catch (e) {
|
|
1866
|
+
l = Promise.reject(e);
|
|
1867
|
+
}
|
|
1657
1868
|
break;
|
|
1658
1869
|
}
|
|
1659
1870
|
}
|
|
1660
|
-
try {
|
|
1661
|
-
l =
|
|
1871
|
+
if (!l) try {
|
|
1872
|
+
l = tr.call(this, f);
|
|
1662
1873
|
} catch (e) {
|
|
1663
|
-
|
|
1874
|
+
l = Promise.reject(e);
|
|
1664
1875
|
}
|
|
1665
1876
|
for (u = 0, d = c.length; u < d;) l = l.then(c[u++], c[u++]);
|
|
1666
1877
|
return l;
|
|
1667
1878
|
}
|
|
1668
1879
|
getUri(e) {
|
|
1669
|
-
return e =
|
|
1880
|
+
return e = z(this.defaults, e), Tt(hn(e.baseURL, e.url, e.allowAbsoluteUrls, e), e.params, e.paramsSerializer);
|
|
1670
1881
|
}
|
|
1671
1882
|
};
|
|
1672
|
-
|
|
1883
|
+
P.forEach([
|
|
1673
1884
|
"delete",
|
|
1674
1885
|
"get",
|
|
1675
1886
|
"head",
|
|
1676
1887
|
"options"
|
|
1677
1888
|
], function(e) {
|
|
1678
|
-
|
|
1679
|
-
return this.request(
|
|
1889
|
+
V.prototype[e] = function(t, n) {
|
|
1890
|
+
return this.request(z(n || {}, {
|
|
1680
1891
|
method: e,
|
|
1681
1892
|
url: t,
|
|
1682
|
-
data: n &&
|
|
1893
|
+
data: n && P.hasOwnProp(n, "data") ? n.data : void 0
|
|
1683
1894
|
}));
|
|
1684
1895
|
};
|
|
1685
|
-
}),
|
|
1896
|
+
}), P.forEach([
|
|
1686
1897
|
"post",
|
|
1687
1898
|
"put",
|
|
1688
1899
|
"patch",
|
|
@@ -1690,7 +1901,7 @@ N.forEach([
|
|
|
1690
1901
|
], function(e) {
|
|
1691
1902
|
function t(t) {
|
|
1692
1903
|
return function(n, r, i) {
|
|
1693
|
-
return this.request(
|
|
1904
|
+
return this.request(z(i || {}, {
|
|
1694
1905
|
method: e,
|
|
1695
1906
|
headers: t ? { "Content-Type": "multipart/form-data" } : {},
|
|
1696
1907
|
url: n,
|
|
@@ -1698,11 +1909,11 @@ N.forEach([
|
|
|
1698
1909
|
}));
|
|
1699
1910
|
};
|
|
1700
1911
|
}
|
|
1701
|
-
|
|
1912
|
+
V.prototype[e] = t(), e !== "query" && (V.prototype[e + "Form"] = t(!0));
|
|
1702
1913
|
});
|
|
1703
1914
|
//#endregion
|
|
1704
1915
|
//#region node_modules/axios/lib/cancel/CancelToken.js
|
|
1705
|
-
var
|
|
1916
|
+
var or = class e {
|
|
1706
1917
|
constructor(e) {
|
|
1707
1918
|
if (typeof e != "function") throw TypeError("executor must be a function.");
|
|
1708
1919
|
let t;
|
|
@@ -1723,7 +1934,7 @@ var Fn = class e {
|
|
|
1723
1934
|
n.unsubscribe(t);
|
|
1724
1935
|
}, r;
|
|
1725
1936
|
}, e(function(e, r, i) {
|
|
1726
|
-
n.reason || (n.reason = new
|
|
1937
|
+
n.reason || (n.reason = new Xt(e, r, i), t(n.reason));
|
|
1727
1938
|
});
|
|
1728
1939
|
}
|
|
1729
1940
|
throwIfRequested() {
|
|
@@ -1759,19 +1970,19 @@ var Fn = class e {
|
|
|
1759
1970
|
};
|
|
1760
1971
|
//#endregion
|
|
1761
1972
|
//#region node_modules/axios/lib/helpers/spread.js
|
|
1762
|
-
function
|
|
1973
|
+
function sr(e) {
|
|
1763
1974
|
return function(t) {
|
|
1764
1975
|
return e.apply(null, t);
|
|
1765
1976
|
};
|
|
1766
1977
|
}
|
|
1767
1978
|
//#endregion
|
|
1768
1979
|
//#region node_modules/axios/lib/helpers/isAxiosError.js
|
|
1769
|
-
function
|
|
1770
|
-
return
|
|
1980
|
+
function cr(e) {
|
|
1981
|
+
return P.isObject(e) && e.isAxiosError === !0;
|
|
1771
1982
|
}
|
|
1772
1983
|
//#endregion
|
|
1773
1984
|
//#region node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
1774
|
-
var
|
|
1985
|
+
var lr = {
|
|
1775
1986
|
Continue: 100,
|
|
1776
1987
|
SwitchingProtocols: 101,
|
|
1777
1988
|
Processing: 102,
|
|
@@ -1809,6 +2020,7 @@ var Rn = {
|
|
|
1809
2020
|
LengthRequired: 411,
|
|
1810
2021
|
PreconditionFailed: 412,
|
|
1811
2022
|
PayloadTooLarge: 413,
|
|
2023
|
+
ContentTooLarge: 413,
|
|
1812
2024
|
UriTooLong: 414,
|
|
1813
2025
|
UnsupportedMediaType: 415,
|
|
1814
2026
|
RangeNotSatisfiable: 416,
|
|
@@ -1816,6 +2028,7 @@ var Rn = {
|
|
|
1816
2028
|
ImATeapot: 418,
|
|
1817
2029
|
MisdirectedRequest: 421,
|
|
1818
2030
|
UnprocessableEntity: 422,
|
|
2031
|
+
UnprocessableContent: 422,
|
|
1819
2032
|
Locked: 423,
|
|
1820
2033
|
FailedDependency: 424,
|
|
1821
2034
|
TooEarly: 425,
|
|
@@ -1835,6 +2048,7 @@ var Rn = {
|
|
|
1835
2048
|
LoopDetected: 508,
|
|
1836
2049
|
NotExtended: 510,
|
|
1837
2050
|
NetworkAuthenticationRequired: 511,
|
|
2051
|
+
WebServerReturnsAnUnknownError: 520,
|
|
1838
2052
|
WebServerIsDown: 521,
|
|
1839
2053
|
ConnectionTimedOut: 522,
|
|
1840
2054
|
OriginIsUnreachable: 523,
|
|
@@ -1842,46 +2056,46 @@ var Rn = {
|
|
|
1842
2056
|
SslHandshakeFailed: 525,
|
|
1843
2057
|
InvalidSslCertificate: 526
|
|
1844
2058
|
};
|
|
1845
|
-
Object.entries(
|
|
1846
|
-
|
|
2059
|
+
Object.entries(lr).forEach(([e, t]) => {
|
|
2060
|
+
lr[t] === void 0 && (lr[t] = e);
|
|
1847
2061
|
});
|
|
1848
2062
|
//#endregion
|
|
1849
2063
|
//#region node_modules/axios/lib/axios.js
|
|
1850
|
-
function
|
|
1851
|
-
let t = new
|
|
1852
|
-
return
|
|
1853
|
-
return
|
|
2064
|
+
function ur(e) {
|
|
2065
|
+
let t = new V(e), r = n(V.prototype.request, t);
|
|
2066
|
+
return P.extend(r, V.prototype, t, { allOwnKeys: !0 }), P.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(t) {
|
|
2067
|
+
return ur(z(e, t));
|
|
1854
2068
|
}, r;
|
|
1855
2069
|
}
|
|
1856
|
-
var
|
|
1857
|
-
|
|
2070
|
+
var H = ur(qt);
|
|
2071
|
+
H.Axios = V, H.CanceledError = Xt, H.CancelToken = or, H.isCancel = Yt, H.VERSION = Rn, H.toFormData = bt, H.AxiosError = I, H.Cancel = H.CanceledError, H.all = function(e) {
|
|
1858
2072
|
return Promise.all(e);
|
|
1859
|
-
},
|
|
2073
|
+
}, H.spread = sr, H.isAxiosError = cr, H.mergeConfig = z, H.AxiosHeaders = F, H.formToJSON = (e) => Wt(P.isHTMLForm(e) ? new FormData(e) : e), H.getAdapter = $n.getAdapter, H.HttpStatusCode = lr, H.default = H;
|
|
1860
2074
|
//#endregion
|
|
1861
2075
|
//#region src/base.ts
|
|
1862
|
-
var
|
|
1863
|
-
constructor(e, t =
|
|
2076
|
+
var U = "https://faceapi.regulaforensics.com".replace(/\/+$/, ""), W = class {
|
|
2077
|
+
constructor(e, t = U, n = H) {
|
|
1864
2078
|
this.basePath = t, this.axios = n, e && (this.configuration = e, this.basePath = e.basePath ?? t);
|
|
1865
2079
|
}
|
|
1866
|
-
},
|
|
2080
|
+
}, dr = class extends Error {
|
|
1867
2081
|
constructor(e, t) {
|
|
1868
2082
|
super(t), this.field = e, this.name = "RequiredError";
|
|
1869
2083
|
}
|
|
1870
|
-
},
|
|
1871
|
-
if (n == null) throw new
|
|
2084
|
+
}, G = {}, K = "https://example.com", q = function(e, t, n) {
|
|
2085
|
+
if (n == null) throw new dr(t, `Required parameter ${t} was null or undefined when calling ${e}.`);
|
|
1872
2086
|
};
|
|
1873
|
-
function
|
|
1874
|
-
t != null && (typeof t == "object" ? Array.isArray(t) ? t.forEach((t) =>
|
|
2087
|
+
function fr(e, t, n = "") {
|
|
2088
|
+
t != null && (typeof t == "object" ? Array.isArray(t) ? t.forEach((t) => fr(e, t, n)) : Object.keys(t).forEach((r) => fr(e, t[r], `${n}${n === "" ? "" : "."}${r}`)) : e.has(n) ? e.append(n, t) : e.set(n, t));
|
|
1875
2089
|
}
|
|
1876
|
-
for (var
|
|
2090
|
+
for (var J = function(e, ...t) {
|
|
1877
2091
|
let n = new URLSearchParams(e.search);
|
|
1878
|
-
|
|
1879
|
-
},
|
|
2092
|
+
fr(n, t), e.search = n.toString();
|
|
2093
|
+
}, Y = function(e, t, n) {
|
|
1880
2094
|
let r = typeof e != "string";
|
|
1881
2095
|
return (r && n && n.isJsonMime ? n.isJsonMime(t.headers["Content-Type"]) : r) ? JSON.stringify(e === void 0 ? {} : e) : e || "";
|
|
1882
|
-
},
|
|
2096
|
+
}, X = function(e) {
|
|
1883
2097
|
return e.pathname + e.search + e.hash;
|
|
1884
|
-
},
|
|
2098
|
+
}, Z = function(e, t, n, r) {
|
|
1885
2099
|
return (i = t, a = n) => {
|
|
1886
2100
|
let o = {
|
|
1887
2101
|
...e.options,
|
|
@@ -1889,312 +2103,312 @@ for (var q = function(e, ...t) {
|
|
|
1889
2103
|
};
|
|
1890
2104
|
return i.request(o);
|
|
1891
2105
|
};
|
|
1892
|
-
},
|
|
2106
|
+
}, pr = function(e) {
|
|
1893
2107
|
return {
|
|
1894
2108
|
detect: async (t, n, r = {}) => {
|
|
1895
|
-
|
|
1896
|
-
let i = new URL("/api/detect",
|
|
2109
|
+
q("detect", "detectRequest", t);
|
|
2110
|
+
let i = new URL("/api/detect", K), a;
|
|
1897
2111
|
e && (a = e.baseOptions);
|
|
1898
2112
|
let o = {
|
|
1899
2113
|
method: "POST",
|
|
1900
2114
|
...a,
|
|
1901
2115
|
...r
|
|
1902
2116
|
}, s = {};
|
|
1903
|
-
s["Content-Type"] = "application/json", n != null && (s["X-RequestID"] = String(n)),
|
|
2117
|
+
s["Content-Type"] = "application/json", n != null && (s["X-RequestID"] = String(n)), J(i, {});
|
|
1904
2118
|
let c = a && a.headers ? a.headers : {};
|
|
1905
2119
|
return o.headers = {
|
|
1906
2120
|
...s,
|
|
1907
2121
|
...c,
|
|
1908
2122
|
...r.headers
|
|
1909
|
-
}, o.data =
|
|
1910
|
-
url:
|
|
2123
|
+
}, o.data = Y(t, o, e), {
|
|
2124
|
+
url: X(i),
|
|
1911
2125
|
options: o
|
|
1912
2126
|
};
|
|
1913
2127
|
},
|
|
1914
2128
|
match: async (t, n, r = {}) => {
|
|
1915
|
-
|
|
1916
|
-
let i = new URL("/api/match",
|
|
2129
|
+
q("match", "matchRequest", t);
|
|
2130
|
+
let i = new URL("/api/match", K), a;
|
|
1917
2131
|
e && (a = e.baseOptions);
|
|
1918
2132
|
let o = {
|
|
1919
2133
|
method: "POST",
|
|
1920
2134
|
...a,
|
|
1921
2135
|
...r
|
|
1922
2136
|
}, s = {};
|
|
1923
|
-
s["Content-Type"] = "application/json", n != null && (s["X-RequestID"] = String(n)),
|
|
2137
|
+
s["Content-Type"] = "application/json", n != null && (s["X-RequestID"] = String(n)), J(i, {});
|
|
1924
2138
|
let c = a && a.headers ? a.headers : {};
|
|
1925
2139
|
return o.headers = {
|
|
1926
2140
|
...s,
|
|
1927
2141
|
...c,
|
|
1928
2142
|
...r.headers
|
|
1929
|
-
}, o.data =
|
|
1930
|
-
url:
|
|
2143
|
+
}, o.data = Y(t, o, e), {
|
|
2144
|
+
url: X(i),
|
|
1931
2145
|
options: o
|
|
1932
2146
|
};
|
|
1933
2147
|
},
|
|
1934
2148
|
matchAndSearch: async (t, n, r = {}) => {
|
|
1935
|
-
|
|
1936
|
-
let i = new URL("/api/match_and_search",
|
|
2149
|
+
q("matchAndSearch", "matchAndSearchRequest", t);
|
|
2150
|
+
let i = new URL("/api/match_and_search", K), a;
|
|
1937
2151
|
e && (a = e.baseOptions);
|
|
1938
2152
|
let o = {
|
|
1939
2153
|
method: "POST",
|
|
1940
2154
|
...a,
|
|
1941
2155
|
...r
|
|
1942
2156
|
}, s = {};
|
|
1943
|
-
s["Content-Type"] = "application/json", n != null && (s["X-RequestID"] = String(n)),
|
|
2157
|
+
s["Content-Type"] = "application/json", n != null && (s["X-RequestID"] = String(n)), J(i, {});
|
|
1944
2158
|
let c = a && a.headers ? a.headers : {};
|
|
1945
2159
|
return o.headers = {
|
|
1946
2160
|
...s,
|
|
1947
2161
|
...c,
|
|
1948
2162
|
...r.headers
|
|
1949
|
-
}, o.data =
|
|
1950
|
-
url:
|
|
2163
|
+
}, o.data = Y(t, o, e), {
|
|
2164
|
+
url: X(i),
|
|
1951
2165
|
options: o
|
|
1952
2166
|
};
|
|
1953
2167
|
}
|
|
1954
2168
|
};
|
|
1955
|
-
},
|
|
1956
|
-
let t =
|
|
2169
|
+
}, mr = function(e) {
|
|
2170
|
+
let t = pr(e);
|
|
1957
2171
|
return {
|
|
1958
2172
|
async detect(n, r, i) {
|
|
1959
|
-
let a = await t.detect(n, r, i), o = e?.serverIndex ?? 0, s =
|
|
1960
|
-
return (t, n) =>
|
|
2173
|
+
let a = await t.detect(n, r, i), o = e?.serverIndex ?? 0, s = G["MatchApi.detect"]?.[o]?.url;
|
|
2174
|
+
return (t, n) => Z(a, H, U, e)(t, s || n);
|
|
1961
2175
|
},
|
|
1962
2176
|
async match(n, r, i) {
|
|
1963
|
-
let a = await t.match(n, r, i), o = e?.serverIndex ?? 0, s =
|
|
1964
|
-
return (t, n) =>
|
|
2177
|
+
let a = await t.match(n, r, i), o = e?.serverIndex ?? 0, s = G["MatchApi.match"]?.[o]?.url;
|
|
2178
|
+
return (t, n) => Z(a, H, U, e)(t, s || n);
|
|
1965
2179
|
},
|
|
1966
2180
|
async matchAndSearch(n, r, i) {
|
|
1967
|
-
let a = await t.matchAndSearch(n, r, i), o = e?.serverIndex ?? 0, s =
|
|
1968
|
-
return (t, n) =>
|
|
2181
|
+
let a = await t.matchAndSearch(n, r, i), o = e?.serverIndex ?? 0, s = G["MatchApi.matchAndSearch"]?.[o]?.url;
|
|
2182
|
+
return (t, n) => Z(a, H, U, e)(t, s || n);
|
|
1969
2183
|
}
|
|
1970
2184
|
};
|
|
1971
|
-
},
|
|
2185
|
+
}, hr = class extends W {
|
|
1972
2186
|
detect(e, t, n) {
|
|
1973
|
-
return
|
|
2187
|
+
return mr(this.configuration).detect(e, t, n).then((e) => e(this.axios, this.basePath));
|
|
1974
2188
|
}
|
|
1975
2189
|
match(e, t, n) {
|
|
1976
|
-
return
|
|
2190
|
+
return mr(this.configuration).match(e, t, n).then((e) => e(this.axios, this.basePath));
|
|
1977
2191
|
}
|
|
1978
2192
|
matchAndSearch(e, t, n) {
|
|
1979
|
-
return
|
|
2193
|
+
return mr(this.configuration).matchAndSearch(e, t, n).then((e) => e(this.axios, this.basePath));
|
|
1980
2194
|
}
|
|
1981
|
-
},
|
|
2195
|
+
}, gr = /* @__PURE__ */ function(e) {
|
|
1982
2196
|
return e.AGE = "Age", e.EMOTION = "Emotion", e.EYE_LEFT = "EyeLeft", e.EYE_RIGHT = "EyeRight", e.SMILE = "Smile", e.GLASSES = "Glasses", e.HEAD_COVERING = "HeadCovering", e.FOREHEAD_COVERING = "ForeheadCovering", e.MOUTH = "Mouth", e.MEDICAL_MASK = "MedicalMask", e.OCCLUSION = "Occlusion", e.STRONG_MAKEUP = "StrongMakeup", e.HEADPHONES = "Headphones", e;
|
|
1983
|
-
}({}),
|
|
2197
|
+
}({}), _r = /* @__PURE__ */ function(e) {
|
|
1984
2198
|
return e[e.ALIGN_3x4 = 0] = "ALIGN_3x4", e[e.ALIGN_4x5 = 1] = "ALIGN_4x5", e[e.ALIGN_2x3 = 2] = "ALIGN_2x3", e[e.ALIGN_1x1 = 3] = "ALIGN_1x1", e[e.ALIGN_7x9 = 4] = "ALIGN_7x9", e;
|
|
1985
|
-
}({}),
|
|
2199
|
+
}({}), vr = /* @__PURE__ */ function(e) {
|
|
1986
2200
|
return e[e.IMAGE_CHARACTERISTICS = 1] = "IMAGE_CHARACTERISTICS", e[e.HEAD_SIZE_AND_POSITIONS = 2] = "HEAD_SIZE_AND_POSITIONS", e[e.FACE_QUALITY = 3] = "FACE_QUALITY", e[e.EYES_CHARACTERISTICS = 4] = "EYES_CHARACTERISTICS", e[e.SHADOWS_AND_LIGHTNING = 5] = "SHADOWS_AND_LIGHTNING", e[e.POSE_AND_EXPRESSION = 6] = "POSE_AND_EXPRESSION", e[e.HEAD_OCCLUSION = 7] = "HEAD_OCCLUSION", e[e.BACKGROUND = 8] = "BACKGROUND", e;
|
|
1987
|
-
}({}),
|
|
2201
|
+
}({}), yr = /* @__PURE__ */ function(e) {
|
|
1988
2202
|
return e.IMAGE_CHARACTERISTICS = "ImageCharacteristics", e.HEAD_SIZE_AND_POSITIONS = "HeadSizeAndPosition", e.FACE_QUALITY = "FaceQuality", e.EYES_CHARACTERISTICS = "EyesCharacteristics", e.SHADOWS_AND_LIGHTNING = "ShadowsAndLightning", e.POSE_AND_EXPRESSION = "PoseAndExpression", e.HEAD_OCCLUSION = "HeadOcclusion", e.BACKGROUND = "Background", e;
|
|
1989
|
-
}({}),
|
|
2203
|
+
}({}), br = /* @__PURE__ */ function(e) {
|
|
1990
2204
|
return e[e.QUALITY_STATUS_FALSE = 0] = "QUALITY_STATUS_FALSE", e[e.QUALITY_STATUS_TRUE = 1] = "QUALITY_STATUS_TRUE", e[e.QUALITY_STATUS_UNDETERMINED = 2] = "QUALITY_STATUS_UNDETERMINED", e;
|
|
1991
|
-
}({}),
|
|
2205
|
+
}({}), xr = /* @__PURE__ */ function(e) {
|
|
1992
2206
|
return e.IMAGE_WIDTH = "ImageWidth", e.IMAGE_HEIGHT = "ImageHeight", e.IMAGE_WIDTH_TO_HEIGHT = "ImageWidthToHeight", e.IMAGE_CHANNELS_NUMBER = "ImageChannelsNumber", e.PADDING_RATIO = "PaddingRatio", e.FACE_MID_POINT_HORIZONTAL_POSITION = "FaceMidPointHorizontalPosition", e.FACE_MID_POINT_VERTICAL_POSITION = "FaceMidPointVerticalPosition", e.HEAD_WIDTH_RATIO = "HeadWidthRatio", e.HEAD_HEIGHT_RATIO = "HeadHeightRatio", e.EYES_DISTANCE = "EyesDistance", e.YAW = "Yaw", e.PITCH = "Pitch", e.ROLL = "Roll", e.BLUR_LEVEL = "BlurLevel", e.NOISE_LEVEL = "NoiseLevel", e.EYE_RIGHT_CLOSED = "EyeRightClosed", e.EYE_LEFT_CLOSED = "EyeLeftClosed", e.EYE_RIGHT_OCCLUDED = "EyeRightOccluded", e.EYE_LEFT_OCCLUDED = "EyeLeftOccluded", e.EYES_RED = "EyesRed", e.EYE_RIGHT_COVERED_WITH_HAIR = "EyeRightCoveredWithHair", e.EYE_LEFT_COVERED_WITH_HAIR = "EyeLeftCoveredWithHair", e.OFF_GAZE = "OffGaze", e.FACE_DYNAMIC_RANGE = "FaceDynamicRange", e.UNNATURAL_SKIN_TONE = "UnnaturalSkinTone", e.TOO_DARK = "TooDark", e.TOO_LIGHT = "TooLight", e.FACE_GLARE = "FaceGlare", e.SHADOWS_ON_FACE = "ShadowsOnFace", e.DARK_GLASSES = "DarkGlasses", e.REFLECTION_ON_GLASSES = "ReflectionOnGlasses", e.FRAMES_TOO_HEAVY = "FramesTooHeavy", e.FACE_OCCLUDED = "FaceOccluded", e.HEAD_COVERING = "HeadCovering", e.BACKGROUND_UNIFORMITY = "BackgroundUniformity", e.SHADOWS_ON_BACKGROUND = "ShadowsOnBackground", e.OTHER_FACES = "OtherFaces", e.SHOULDERS_POSE = "ShouldersPose", e.EXPRESSION_LEVEL = "ExpressionLevel", e.MOUTH_OPEN = "MouthOpen", e.FOREHEAD_COVERING = "ForeheadCovering", e.SMILE = "Smile", e.STRONG_MAKEUP = "StrongMakeup", e.HEADPHONES = "Headphones", e.MEDICAL_MASK = "MedicalMask", e.BACKGROUND_COLOR_MATCH = "BackgroundColorMatch", e.ART_FACE = "ArtFace", e.CONTACT_LENSES = "ContactLenses", e;
|
|
1993
|
-
}({}),
|
|
2207
|
+
}({}), Sr = /* @__PURE__ */ function(e) {
|
|
1994
2208
|
return e.OLD_MODE = "OldMode", e.QUALITY_FULL = "QualityFull", e.QUALITY_ICAO = "QualityICAO", e.QUALITY_VISA_SCHENGEN = "QualityVisaSchengen", e.QUALITY_VISA_USA = "QualityVisaUSA", e.CROP_CENTRAL_FACE = "CropCentralFace", e.CROP_ALL_FACES = "CropAllFaces", e.THUMBNAIL = "Thumbnail", e.ATTRIBUTES_ALL = "AttributesAll", e.EMPTY = "", e;
|
|
1995
|
-
}({}),
|
|
2209
|
+
}({}), Cr = /* @__PURE__ */ function(e) {
|
|
1996
2210
|
return e[e.FACER_OK = 0] = "FACER_OK", e[e.FR_IMAGE_EMPTY = 1] = "FR_IMAGE_EMPTY", e[e.FR_FACE_NOT_DETECTED = 2] = "FR_FACE_NOT_DETECTED", e[e.FR_LANDMARKS_NOT_DETECTED = 3] = "FR_LANDMARKS_NOT_DETECTED", e[e.FR_FACE_ALIGHNER_FAILED = 4] = "FR_FACE_ALIGHNER_FAILED", e[e.FR_DESCRIPTOR_EXTRACTOR_ERROR = 5] = "FR_DESCRIPTOR_EXTRACTOR_ERROR", e[e.FR_IMAGE_DECODE_ERROR = 6] = "FR_IMAGE_DECODE_ERROR", e[e.FR_INTERNAL_ERROR = 7] = "FR_INTERNAL_ERROR", e[e.FACER_CONFIG_ERROR = 199] = "FACER_CONFIG_ERROR", e[e.FACER_NO_LICENSE = 200] = "FACER_NO_LICENSE", e[e.FACER_IS_NOT_INITIALIZED = 201] = "FACER_IS_NOT_INITIALIZED", e[e.FACER_COMMAND_IS_NOT_SUPPORTED = 202] = "FACER_COMMAND_IS_NOT_SUPPORTED", e[e.FACER_COMMAND_PARAMS_READ_ERROR = 203] = "FACER_COMMAND_PARAMS_READ_ERROR", e[e.FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST = 224] = "FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST", e[e.FACER_VIDEO_DECODE_ERROR = 227] = "FACER_VIDEO_DECODE_ERROR", e[e.FACER_NOT_ENOUGH_FRAMES = 228] = "FACER_NOT_ENOUGH_FRAMES", e[e.FACER_OUTPUT_IS_NOT_DEFINED = 229] = "FACER_OUTPUT_IS_NOT_DEFINED", e[e.FACER_CLOSED_EYES_DETECTED = 230] = "FACER_CLOSED_EYES_DETECTED", e[e.FACER_LOW_QUALITY = 231] = "FACER_LOW_QUALITY", e[e.FACER_HIGH_ASYMMETRY = 232] = "FACER_HIGH_ASYMMETRY", e[e.FACER_FACE_OVER_EMOTIONAL = 233] = "FACER_FACE_OVER_EMOTIONAL", e[e.FACER_SUNGLASSES_DETECTED = 234] = "FACER_SUNGLASSES_DETECTED", e[e.FACER_SMALL_AGE = 235] = "FACER_SMALL_AGE", e[e.FACER_HEADDRESS_DETECTED = 236] = "FACER_HEADDRESS_DETECTED", e[e.FACER_FACES_NOT_MATCHED = 237] = "FACER_FACES_NOT_MATCHED", e[e.FACER_IMAGES_COUNT_LIMIT_EXCEEDED = 238] = "FACER_IMAGES_COUNT_LIMIT_EXCEEDED", e[e.FACER_MEDICINE_MASK_DETECTED = 239] = "FACER_MEDICINE_MASK_DETECTED", e[e.FACER_OCCLUSION_DETECTED = 240] = "FACER_OCCLUSION_DETECTED", e[e.FACER_FOREHEAD_GLASSES_DETECTED = 242] = "FACER_FOREHEAD_GLASSES_DETECTED", e[e.FACER_MOUTH_OPENED = 243] = "FACER_MOUTH_OPENED", e[e.FACER_ART_MASK_DETECTED = 244] = "FACER_ART_MASK_DETECTED", e[e.FACER_ELECTRONIC_DEVICE_DETECTED = 245] = "FACER_ELECTRONIC_DEVICE_DETECTED", e[e.FACER_TRACK_BREAK = 246] = "FACER_TRACK_BREAK", e[e.FACER_WRONG_GEO = 247] = "FACER_WRONG_GEO", e[e.FACER_WRONG_OF = 248] = "FACER_WRONG_OF", e[e.FACER_WRONG_VIEW = 249] = "FACER_WRONG_VIEW", e[e.FACER_TIMEOUT_LIVENESS_TRANSACTION = 250] = "FACER_TIMEOUT_LIVENESS_TRANSACTION", e[e.FACER_FAILED_LIVENESS_TRANSACTION = 251] = "FACER_FAILED_LIVENESS_TRANSACTION", e[e.FACER_ABORTED_LIVENESS_TRANSACTION = 252] = "FACER_ABORTED_LIVENESS_TRANSACTION", e[e.FACER_GENERAL_ERROR = 253] = "FACER_GENERAL_ERROR", e[e.FACER_PASSIVE_LIVENESS_FAIL = 254] = "FACER_PASSIVE_LIVENESS_FAIL", e;
|
|
1997
|
-
}({}),
|
|
2211
|
+
}({}), wr = /* @__PURE__ */ function(e) {
|
|
1998
2212
|
return e.IN = "in", e.NOT_IN = "nin", e;
|
|
1999
|
-
}({}),
|
|
2213
|
+
}({}), Tr = /* @__PURE__ */ function(e) {
|
|
2000
2214
|
return e[e.DOCUMENT_PRINTED = 1] = "DOCUMENT_PRINTED", e[e.DOCUMENT_RFID = 2] = "DOCUMENT_RFID", e[e.LIVE = 3] = "LIVE", e[e.DOCUMENT_WITH_LIVE = 4] = "DOCUMENT_WITH_LIVE", e[e.EXTERNAL = 5] = "EXTERNAL", e[e.GHOST = 6] = "GHOST", e[e.BARCODE = 7] = "BARCODE", e;
|
|
2001
|
-
}({}),
|
|
2215
|
+
}({}), Er = /* @__PURE__ */ function(e) {
|
|
2002
2216
|
return e[e.ACTIVE = 0] = "ACTIVE", e[e.PASSIVE = 1] = "PASSIVE", e[e.PASSIVE_WITH_BLINK = 2] = "PASSIVE_WITH_BLINK", e;
|
|
2003
|
-
}({}),
|
|
2004
|
-
var
|
|
2217
|
+
}({}), Dr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Or = typeof Uint8Array > "u" ? [] : /* @__PURE__ */ new Uint8Array(256), kr = 0; kr < Dr.length; kr++) Or[Dr.charCodeAt(kr)] = kr;
|
|
2218
|
+
var Ar = function(e) {
|
|
2005
2219
|
var t = new Uint8Array(e), n, r = t.length, i = "";
|
|
2006
|
-
for (n = 0; n < r; n += 3) i +=
|
|
2220
|
+
for (n = 0; n < r; n += 3) i += Dr[t[n] >> 2], i += Dr[(t[n] & 3) << 4 | t[n + 1] >> 4], i += Dr[(t[n + 1] & 15) << 2 | t[n + 2] >> 6], i += Dr[t[n + 2] & 63];
|
|
2007
2221
|
return r % 3 == 2 ? i = i.substring(0, i.length - 1) + "=" : r % 3 == 1 && (i = i.substring(0, i.length - 2) + "=="), i;
|
|
2008
|
-
},
|
|
2222
|
+
}, jr = class {
|
|
2009
2223
|
constructor(e, t, n) {
|
|
2010
|
-
this.superClass = new
|
|
2224
|
+
this.superClass = new hr(e, t, n);
|
|
2011
2225
|
}
|
|
2012
2226
|
async match(e, t, n) {
|
|
2013
|
-
for (let t of e.images) t.type ||=
|
|
2227
|
+
for (let t of e.images) t.type ||= Tr.LIVE, typeof t.data != "string" && (t.data = Ar(t.data));
|
|
2014
2228
|
return (await this.superClass.match(e, t, n)).data;
|
|
2015
2229
|
}
|
|
2016
2230
|
async detect(e, t, n) {
|
|
2017
|
-
return e.image && typeof e.image != "string" && (e.image =
|
|
2231
|
+
return e.image && typeof e.image != "string" && (e.image = Ar(e.image)), (await this.superClass.detect(e, t, n)).data;
|
|
2018
2232
|
}
|
|
2019
2233
|
async matchAndSearch(e, t, n) {
|
|
2020
|
-
if (e.images) for (let t of e.images) t.type ||=
|
|
2234
|
+
if (e.images) for (let t of e.images) t.type ||= Tr.LIVE, t.content && typeof t.content != "string" && (t.content = Ar(t.content));
|
|
2021
2235
|
return (await this.superClass.matchAndSearch(e, t, n)).data;
|
|
2022
2236
|
}
|
|
2023
|
-
},
|
|
2237
|
+
}, Mr = function(e) {
|
|
2024
2238
|
return {
|
|
2025
2239
|
createGroup: async (t, n, r = {}) => {
|
|
2026
|
-
|
|
2027
|
-
let i = new URL("/api/groups",
|
|
2240
|
+
q("createGroup", "groupToCreate", t);
|
|
2241
|
+
let i = new URL("/api/groups", K), a;
|
|
2028
2242
|
e && (a = e.baseOptions);
|
|
2029
2243
|
let o = {
|
|
2030
2244
|
method: "POST",
|
|
2031
2245
|
...a,
|
|
2032
2246
|
...r
|
|
2033
2247
|
}, s = {};
|
|
2034
|
-
s["Content-Type"] = "application/json", n != null && (s["X-RequestID"] = String(n)),
|
|
2248
|
+
s["Content-Type"] = "application/json", n != null && (s["X-RequestID"] = String(n)), J(i, {});
|
|
2035
2249
|
let c = a && a.headers ? a.headers : {};
|
|
2036
2250
|
return o.headers = {
|
|
2037
2251
|
...s,
|
|
2038
2252
|
...c,
|
|
2039
2253
|
...r.headers
|
|
2040
|
-
}, o.data =
|
|
2041
|
-
url:
|
|
2254
|
+
}, o.data = Y(t, o, e), {
|
|
2255
|
+
url: X(i),
|
|
2042
2256
|
options: o
|
|
2043
2257
|
};
|
|
2044
2258
|
},
|
|
2045
2259
|
deleteGroup: async (t, n, r = {}) => {
|
|
2046
|
-
|
|
2047
|
-
let i = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(i,
|
|
2260
|
+
q("deleteGroup", "groupId", t);
|
|
2261
|
+
let i = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(i, K), o;
|
|
2048
2262
|
e && (o = e.baseOptions);
|
|
2049
2263
|
let s = {
|
|
2050
2264
|
method: "DELETE",
|
|
2051
2265
|
...o,
|
|
2052
2266
|
...r
|
|
2053
2267
|
}, c = {};
|
|
2054
|
-
n != null && (c["X-RequestID"] = String(n)),
|
|
2268
|
+
n != null && (c["X-RequestID"] = String(n)), J(a, {});
|
|
2055
2269
|
let l = o && o.headers ? o.headers : {};
|
|
2056
2270
|
return s.headers = {
|
|
2057
2271
|
...c,
|
|
2058
2272
|
...l,
|
|
2059
2273
|
...r.headers
|
|
2060
2274
|
}, {
|
|
2061
|
-
url:
|
|
2275
|
+
url: X(a),
|
|
2062
2276
|
options: s
|
|
2063
2277
|
};
|
|
2064
2278
|
},
|
|
2065
2279
|
getAllGroups: async (t, n, r, i = {}) => {
|
|
2066
|
-
let a = new URL("/api/groups",
|
|
2280
|
+
let a = new URL("/api/groups", K), o;
|
|
2067
2281
|
e && (o = e.baseOptions);
|
|
2068
2282
|
let s = {
|
|
2069
2283
|
method: "GET",
|
|
2070
2284
|
...o,
|
|
2071
2285
|
...i
|
|
2072
2286
|
}, c = {}, l = {};
|
|
2073
|
-
n !== void 0 && (l.page = n), r !== void 0 && (l.size = r), t != null && (c["X-RequestID"] = String(t)),
|
|
2287
|
+
n !== void 0 && (l.page = n), r !== void 0 && (l.size = r), t != null && (c["X-RequestID"] = String(t)), J(a, l);
|
|
2074
2288
|
let u = o && o.headers ? o.headers : {};
|
|
2075
2289
|
return s.headers = {
|
|
2076
2290
|
...c,
|
|
2077
2291
|
...u,
|
|
2078
2292
|
...i.headers
|
|
2079
2293
|
}, {
|
|
2080
|
-
url:
|
|
2294
|
+
url: X(a),
|
|
2081
2295
|
options: s
|
|
2082
2296
|
};
|
|
2083
2297
|
},
|
|
2084
2298
|
getAllPersonsByGroupId: async (t, n, r, i, a = {}) => {
|
|
2085
|
-
|
|
2086
|
-
let o = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), s = new URL(o,
|
|
2299
|
+
q("getAllPersonsByGroupId", "groupId", t);
|
|
2300
|
+
let o = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), s = new URL(o, K), c;
|
|
2087
2301
|
e && (c = e.baseOptions);
|
|
2088
2302
|
let l = {
|
|
2089
2303
|
method: "GET",
|
|
2090
2304
|
...c,
|
|
2091
2305
|
...a
|
|
2092
2306
|
}, u = {}, d = {};
|
|
2093
|
-
r !== void 0 && (d.page = r), i !== void 0 && (d.size = i), n != null && (u["X-RequestID"] = String(n)),
|
|
2307
|
+
r !== void 0 && (d.page = r), i !== void 0 && (d.size = i), n != null && (u["X-RequestID"] = String(n)), J(s, d);
|
|
2094
2308
|
let f = c && c.headers ? c.headers : {};
|
|
2095
2309
|
return l.headers = {
|
|
2096
2310
|
...u,
|
|
2097
2311
|
...f,
|
|
2098
2312
|
...a.headers
|
|
2099
2313
|
}, {
|
|
2100
|
-
url:
|
|
2314
|
+
url: X(s),
|
|
2101
2315
|
options: l
|
|
2102
2316
|
};
|
|
2103
2317
|
},
|
|
2104
2318
|
getGroup: async (t, n, r = {}) => {
|
|
2105
|
-
|
|
2106
|
-
let i = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(i,
|
|
2319
|
+
q("getGroup", "groupId", t);
|
|
2320
|
+
let i = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(i, K), o;
|
|
2107
2321
|
e && (o = e.baseOptions);
|
|
2108
2322
|
let s = {
|
|
2109
2323
|
method: "GET",
|
|
2110
2324
|
...o,
|
|
2111
2325
|
...r
|
|
2112
2326
|
}, c = {};
|
|
2113
|
-
n != null && (c["X-RequestID"] = String(n)),
|
|
2327
|
+
n != null && (c["X-RequestID"] = String(n)), J(a, {});
|
|
2114
2328
|
let l = o && o.headers ? o.headers : {};
|
|
2115
2329
|
return s.headers = {
|
|
2116
2330
|
...c,
|
|
2117
2331
|
...l,
|
|
2118
2332
|
...r.headers
|
|
2119
2333
|
}, {
|
|
2120
|
-
url:
|
|
2334
|
+
url: X(a),
|
|
2121
2335
|
options: s
|
|
2122
2336
|
};
|
|
2123
2337
|
},
|
|
2124
2338
|
updateGroup: async (t, n, r, i = {}) => {
|
|
2125
|
-
|
|
2126
|
-
let a = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), o = new URL(a,
|
|
2339
|
+
q("updateGroup", "groupId", t), q("updateGroup", "groupToCreate", n);
|
|
2340
|
+
let a = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), o = new URL(a, K), s;
|
|
2127
2341
|
e && (s = e.baseOptions);
|
|
2128
2342
|
let c = {
|
|
2129
2343
|
method: "PUT",
|
|
2130
2344
|
...s,
|
|
2131
2345
|
...i
|
|
2132
2346
|
}, l = {};
|
|
2133
|
-
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)),
|
|
2347
|
+
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), J(o, {});
|
|
2134
2348
|
let u = s && s.headers ? s.headers : {};
|
|
2135
2349
|
return c.headers = {
|
|
2136
2350
|
...l,
|
|
2137
2351
|
...u,
|
|
2138
2352
|
...i.headers
|
|
2139
|
-
}, c.data =
|
|
2140
|
-
url:
|
|
2353
|
+
}, c.data = Y(n, c, e), {
|
|
2354
|
+
url: X(o),
|
|
2141
2355
|
options: c
|
|
2142
2356
|
};
|
|
2143
2357
|
},
|
|
2144
2358
|
updatePersonsInGroup: async (t, n, r, i = {}) => {
|
|
2145
|
-
|
|
2146
|
-
let a = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), o = new URL(a,
|
|
2359
|
+
q("updatePersonsInGroup", "groupId", t), q("updatePersonsInGroup", "updateGroup", n);
|
|
2360
|
+
let a = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), o = new URL(a, K), s;
|
|
2147
2361
|
e && (s = e.baseOptions);
|
|
2148
2362
|
let c = {
|
|
2149
2363
|
method: "PUT",
|
|
2150
2364
|
...s,
|
|
2151
2365
|
...i
|
|
2152
2366
|
}, l = {};
|
|
2153
|
-
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)),
|
|
2367
|
+
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), J(o, {});
|
|
2154
2368
|
let u = s && s.headers ? s.headers : {};
|
|
2155
2369
|
return c.headers = {
|
|
2156
2370
|
...l,
|
|
2157
2371
|
...u,
|
|
2158
2372
|
...i.headers
|
|
2159
|
-
}, c.data =
|
|
2160
|
-
url:
|
|
2373
|
+
}, c.data = Y(n, c, e), {
|
|
2374
|
+
url: X(o),
|
|
2161
2375
|
options: c
|
|
2162
2376
|
};
|
|
2163
2377
|
}
|
|
2164
2378
|
};
|
|
2165
2379
|
}, Q = function(e) {
|
|
2166
|
-
let t =
|
|
2380
|
+
let t = Mr(e);
|
|
2167
2381
|
return {
|
|
2168
2382
|
async createGroup(n, r, i) {
|
|
2169
|
-
let a = await t.createGroup(n, r, i), o = e?.serverIndex ?? 0, s =
|
|
2170
|
-
return (t, n) =>
|
|
2383
|
+
let a = await t.createGroup(n, r, i), o = e?.serverIndex ?? 0, s = G["GroupApi.createGroup"]?.[o]?.url;
|
|
2384
|
+
return (t, n) => Z(a, H, U, e)(t, s || n);
|
|
2171
2385
|
},
|
|
2172
2386
|
async deleteGroup(n, r, i) {
|
|
2173
|
-
let a = await t.deleteGroup(n, r, i), o = e?.serverIndex ?? 0, s =
|
|
2174
|
-
return (t, n) =>
|
|
2387
|
+
let a = await t.deleteGroup(n, r, i), o = e?.serverIndex ?? 0, s = G["GroupApi.deleteGroup"]?.[o]?.url;
|
|
2388
|
+
return (t, n) => Z(a, H, U, e)(t, s || n);
|
|
2175
2389
|
},
|
|
2176
2390
|
async getAllGroups(n, r, i, a) {
|
|
2177
|
-
let o = await t.getAllGroups(n, r, i, a), s = e?.serverIndex ?? 0, c =
|
|
2178
|
-
return (t, n) =>
|
|
2391
|
+
let o = await t.getAllGroups(n, r, i, a), s = e?.serverIndex ?? 0, c = G["GroupApi.getAllGroups"]?.[s]?.url;
|
|
2392
|
+
return (t, n) => Z(o, H, U, e)(t, c || n);
|
|
2179
2393
|
},
|
|
2180
2394
|
async getAllPersonsByGroupId(n, r, i, a, o) {
|
|
2181
|
-
let s = await t.getAllPersonsByGroupId(n, r, i, a, o), c = e?.serverIndex ?? 0, l =
|
|
2182
|
-
return (t, n) =>
|
|
2395
|
+
let s = await t.getAllPersonsByGroupId(n, r, i, a, o), c = e?.serverIndex ?? 0, l = G["GroupApi.getAllPersonsByGroupId"]?.[c]?.url;
|
|
2396
|
+
return (t, n) => Z(s, H, U, e)(t, l || n);
|
|
2183
2397
|
},
|
|
2184
2398
|
async getGroup(n, r, i) {
|
|
2185
|
-
let a = await t.getGroup(n, r, i), o = e?.serverIndex ?? 0, s =
|
|
2186
|
-
return (t, n) =>
|
|
2399
|
+
let a = await t.getGroup(n, r, i), o = e?.serverIndex ?? 0, s = G["GroupApi.getGroup"]?.[o]?.url;
|
|
2400
|
+
return (t, n) => Z(a, H, U, e)(t, s || n);
|
|
2187
2401
|
},
|
|
2188
2402
|
async updateGroup(n, r, i, a) {
|
|
2189
|
-
let o = await t.updateGroup(n, r, i, a), s = e?.serverIndex ?? 0, c =
|
|
2190
|
-
return (t, n) =>
|
|
2403
|
+
let o = await t.updateGroup(n, r, i, a), s = e?.serverIndex ?? 0, c = G["GroupApi.updateGroup"]?.[s]?.url;
|
|
2404
|
+
return (t, n) => Z(o, H, U, e)(t, c || n);
|
|
2191
2405
|
},
|
|
2192
2406
|
async updatePersonsInGroup(n, r, i, a) {
|
|
2193
|
-
let o = await t.updatePersonsInGroup(n, r, i, a), s = e?.serverIndex ?? 0, c =
|
|
2194
|
-
return (t, n) =>
|
|
2407
|
+
let o = await t.updatePersonsInGroup(n, r, i, a), s = e?.serverIndex ?? 0, c = G["GroupApi.updatePersonsInGroup"]?.[s]?.url;
|
|
2408
|
+
return (t, n) => Z(o, H, U, e)(t, c || n);
|
|
2195
2409
|
}
|
|
2196
2410
|
};
|
|
2197
|
-
},
|
|
2411
|
+
}, Nr = class extends W {
|
|
2198
2412
|
createGroup(e, t, n) {
|
|
2199
2413
|
return Q(this.configuration).createGroup(e, t, n).then((e) => e(this.axios, this.basePath));
|
|
2200
2414
|
}
|
|
@@ -2216,9 +2430,9 @@ var ir = function(e) {
|
|
|
2216
2430
|
updatePersonsInGroup(e, t, n, r) {
|
|
2217
2431
|
return Q(this.configuration).updatePersonsInGroup(e, t, n, r).then((e) => e(this.axios, this.basePath));
|
|
2218
2432
|
}
|
|
2219
|
-
},
|
|
2433
|
+
}, Pr = class {
|
|
2220
2434
|
constructor(e, t, n) {
|
|
2221
|
-
this.superClass = new
|
|
2435
|
+
this.superClass = new Nr(e, t, n);
|
|
2222
2436
|
}
|
|
2223
2437
|
async createGroup(e, t, n) {
|
|
2224
2438
|
let r = {
|
|
@@ -2245,230 +2459,230 @@ var ir = function(e) {
|
|
|
2245
2459
|
async updatePersonsInGroup(e, t, n, r) {
|
|
2246
2460
|
await this.superClass.updatePersonsInGroup(e, t, n, r);
|
|
2247
2461
|
}
|
|
2248
|
-
},
|
|
2462
|
+
}, Fr = function(e) {
|
|
2249
2463
|
return {
|
|
2250
2464
|
addImageToPerson: async (t, n, r, i = {}) => {
|
|
2251
|
-
|
|
2252
|
-
let a = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), o = new URL(a,
|
|
2465
|
+
q("addImageToPerson", "personId", t), q("addImageToPerson", "addImageToPersonRequest", n);
|
|
2466
|
+
let a = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), o = new URL(a, K), s;
|
|
2253
2467
|
e && (s = e.baseOptions);
|
|
2254
2468
|
let c = {
|
|
2255
2469
|
method: "POST",
|
|
2256
2470
|
...s,
|
|
2257
2471
|
...i
|
|
2258
2472
|
}, l = {};
|
|
2259
|
-
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)),
|
|
2473
|
+
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), J(o, {});
|
|
2260
2474
|
let u = s && s.headers ? s.headers : {};
|
|
2261
2475
|
return c.headers = {
|
|
2262
2476
|
...l,
|
|
2263
2477
|
...u,
|
|
2264
2478
|
...i.headers
|
|
2265
|
-
}, c.data =
|
|
2266
|
-
url:
|
|
2479
|
+
}, c.data = Y(n, c, e), {
|
|
2480
|
+
url: X(o),
|
|
2267
2481
|
options: c
|
|
2268
2482
|
};
|
|
2269
2483
|
},
|
|
2270
2484
|
createPerson: async (t, n, r = {}) => {
|
|
2271
|
-
|
|
2272
|
-
let i = new URL("/api/persons",
|
|
2485
|
+
q("createPerson", "personFields", t);
|
|
2486
|
+
let i = new URL("/api/persons", K), a;
|
|
2273
2487
|
e && (a = e.baseOptions);
|
|
2274
2488
|
let o = {
|
|
2275
2489
|
method: "POST",
|
|
2276
2490
|
...a,
|
|
2277
2491
|
...r
|
|
2278
2492
|
}, s = {};
|
|
2279
|
-
s["Content-Type"] = "application/json", n != null && (s["X-RequestID"] = String(n)),
|
|
2493
|
+
s["Content-Type"] = "application/json", n != null && (s["X-RequestID"] = String(n)), J(i, {});
|
|
2280
2494
|
let c = a && a.headers ? a.headers : {};
|
|
2281
2495
|
return o.headers = {
|
|
2282
2496
|
...s,
|
|
2283
2497
|
...c,
|
|
2284
2498
|
...r.headers
|
|
2285
|
-
}, o.data =
|
|
2286
|
-
url:
|
|
2499
|
+
}, o.data = Y(t, o, e), {
|
|
2500
|
+
url: X(i),
|
|
2287
2501
|
options: o
|
|
2288
2502
|
};
|
|
2289
2503
|
},
|
|
2290
2504
|
deleteImageOfPerson: async (t, n, r, i = {}) => {
|
|
2291
|
-
|
|
2292
|
-
let a = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(n))), o = new URL(a,
|
|
2505
|
+
q("deleteImageOfPerson", "personId", t), q("deleteImageOfPerson", "imageId", n);
|
|
2506
|
+
let a = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(n))), o = new URL(a, K), s;
|
|
2293
2507
|
e && (s = e.baseOptions);
|
|
2294
2508
|
let c = {
|
|
2295
2509
|
method: "DELETE",
|
|
2296
2510
|
...s,
|
|
2297
2511
|
...i
|
|
2298
2512
|
}, l = {};
|
|
2299
|
-
r != null && (l["X-RequestID"] = String(r)),
|
|
2513
|
+
r != null && (l["X-RequestID"] = String(r)), J(o, {});
|
|
2300
2514
|
let u = s && s.headers ? s.headers : {};
|
|
2301
2515
|
return c.headers = {
|
|
2302
2516
|
...l,
|
|
2303
2517
|
...u,
|
|
2304
2518
|
...i.headers
|
|
2305
2519
|
}, {
|
|
2306
|
-
url:
|
|
2520
|
+
url: X(o),
|
|
2307
2521
|
options: c
|
|
2308
2522
|
};
|
|
2309
2523
|
},
|
|
2310
2524
|
deletePerson: async (t, n, r = {}) => {
|
|
2311
|
-
|
|
2312
|
-
let i = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), a = new URL(i,
|
|
2525
|
+
q("deletePerson", "personId", t);
|
|
2526
|
+
let i = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), a = new URL(i, K), o;
|
|
2313
2527
|
e && (o = e.baseOptions);
|
|
2314
2528
|
let s = {
|
|
2315
2529
|
method: "DELETE",
|
|
2316
2530
|
...o,
|
|
2317
2531
|
...r
|
|
2318
2532
|
}, c = {};
|
|
2319
|
-
n != null && (c["X-RequestID"] = String(n)),
|
|
2533
|
+
n != null && (c["X-RequestID"] = String(n)), J(a, {});
|
|
2320
2534
|
let l = o && o.headers ? o.headers : {};
|
|
2321
2535
|
return s.headers = {
|
|
2322
2536
|
...c,
|
|
2323
2537
|
...l,
|
|
2324
2538
|
...r.headers
|
|
2325
2539
|
}, {
|
|
2326
|
-
url:
|
|
2540
|
+
url: X(a),
|
|
2327
2541
|
options: s
|
|
2328
2542
|
};
|
|
2329
2543
|
},
|
|
2330
2544
|
getAllGroupsByPersonId: async (t, n, r, i, a = {}) => {
|
|
2331
|
-
|
|
2332
|
-
let o = "/api/persons/{personId}/groups".replace("{personId}", encodeURIComponent(String(t))), s = new URL(o,
|
|
2545
|
+
q("getAllGroupsByPersonId", "personId", t);
|
|
2546
|
+
let o = "/api/persons/{personId}/groups".replace("{personId}", encodeURIComponent(String(t))), s = new URL(o, K), c;
|
|
2333
2547
|
e && (c = e.baseOptions);
|
|
2334
2548
|
let l = {
|
|
2335
2549
|
method: "GET",
|
|
2336
2550
|
...c,
|
|
2337
2551
|
...a
|
|
2338
2552
|
}, u = {}, d = {};
|
|
2339
|
-
r !== void 0 && (d.page = r), i !== void 0 && (d.size = i), n != null && (u["X-RequestID"] = String(n)),
|
|
2553
|
+
r !== void 0 && (d.page = r), i !== void 0 && (d.size = i), n != null && (u["X-RequestID"] = String(n)), J(s, d);
|
|
2340
2554
|
let f = c && c.headers ? c.headers : {};
|
|
2341
2555
|
return l.headers = {
|
|
2342
2556
|
...u,
|
|
2343
2557
|
...f,
|
|
2344
2558
|
...a.headers
|
|
2345
2559
|
}, {
|
|
2346
|
-
url:
|
|
2560
|
+
url: X(s),
|
|
2347
2561
|
options: l
|
|
2348
2562
|
};
|
|
2349
2563
|
},
|
|
2350
2564
|
getAllImagesByPersonId: async (t, n, r, i, a = {}) => {
|
|
2351
|
-
|
|
2352
|
-
let o = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), s = new URL(o,
|
|
2565
|
+
q("getAllImagesByPersonId", "personId", t);
|
|
2566
|
+
let o = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), s = new URL(o, K), c;
|
|
2353
2567
|
e && (c = e.baseOptions);
|
|
2354
2568
|
let l = {
|
|
2355
2569
|
method: "GET",
|
|
2356
2570
|
...c,
|
|
2357
2571
|
...a
|
|
2358
2572
|
}, u = {}, d = {};
|
|
2359
|
-
r !== void 0 && (d.page = r), i !== void 0 && (d.size = i), n != null && (u["X-RequestID"] = String(n)),
|
|
2573
|
+
r !== void 0 && (d.page = r), i !== void 0 && (d.size = i), n != null && (u["X-RequestID"] = String(n)), J(s, d);
|
|
2360
2574
|
let f = c && c.headers ? c.headers : {};
|
|
2361
2575
|
return l.headers = {
|
|
2362
2576
|
...u,
|
|
2363
2577
|
...f,
|
|
2364
2578
|
...a.headers
|
|
2365
2579
|
}, {
|
|
2366
|
-
url:
|
|
2580
|
+
url: X(s),
|
|
2367
2581
|
options: l
|
|
2368
2582
|
};
|
|
2369
2583
|
},
|
|
2370
2584
|
getImageOfPerson: async (t, n, r, i = {}) => {
|
|
2371
|
-
|
|
2372
|
-
let a = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(n))), o = new URL(a,
|
|
2585
|
+
q("getImageOfPerson", "personId", t), q("getImageOfPerson", "imageId", n);
|
|
2586
|
+
let a = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(n))), o = new URL(a, K), s;
|
|
2373
2587
|
e && (s = e.baseOptions);
|
|
2374
2588
|
let c = {
|
|
2375
2589
|
method: "GET",
|
|
2376
2590
|
...s,
|
|
2377
2591
|
...i
|
|
2378
2592
|
}, l = {};
|
|
2379
|
-
r != null && (l["X-RequestID"] = String(r)),
|
|
2593
|
+
r != null && (l["X-RequestID"] = String(r)), J(o, {});
|
|
2380
2594
|
let u = s && s.headers ? s.headers : {};
|
|
2381
2595
|
return c.headers = {
|
|
2382
2596
|
...l,
|
|
2383
2597
|
...u,
|
|
2384
2598
|
...i.headers
|
|
2385
2599
|
}, {
|
|
2386
|
-
url:
|
|
2600
|
+
url: X(o),
|
|
2387
2601
|
options: c
|
|
2388
2602
|
};
|
|
2389
2603
|
},
|
|
2390
2604
|
getPerson: async (t, n, r = {}) => {
|
|
2391
|
-
|
|
2392
|
-
let i = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), a = new URL(i,
|
|
2605
|
+
q("getPerson", "personId", t);
|
|
2606
|
+
let i = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), a = new URL(i, K), o;
|
|
2393
2607
|
e && (o = e.baseOptions);
|
|
2394
2608
|
let s = {
|
|
2395
2609
|
method: "GET",
|
|
2396
2610
|
...o,
|
|
2397
2611
|
...r
|
|
2398
2612
|
}, c = {};
|
|
2399
|
-
n != null && (c["X-RequestID"] = String(n)),
|
|
2613
|
+
n != null && (c["X-RequestID"] = String(n)), J(a, {});
|
|
2400
2614
|
let l = o && o.headers ? o.headers : {};
|
|
2401
2615
|
return s.headers = {
|
|
2402
2616
|
...c,
|
|
2403
2617
|
...l,
|
|
2404
2618
|
...r.headers
|
|
2405
2619
|
}, {
|
|
2406
|
-
url:
|
|
2620
|
+
url: X(a),
|
|
2407
2621
|
options: s
|
|
2408
2622
|
};
|
|
2409
2623
|
},
|
|
2410
2624
|
updatePerson: async (t, n, r, i = {}) => {
|
|
2411
|
-
|
|
2412
|
-
let a = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), o = new URL(a,
|
|
2625
|
+
q("updatePerson", "personId", t), q("updatePerson", "personToUpdateFields", n);
|
|
2626
|
+
let a = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), o = new URL(a, K), s;
|
|
2413
2627
|
e && (s = e.baseOptions);
|
|
2414
2628
|
let c = {
|
|
2415
2629
|
method: "PUT",
|
|
2416
2630
|
...s,
|
|
2417
2631
|
...i
|
|
2418
2632
|
}, l = {};
|
|
2419
|
-
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)),
|
|
2633
|
+
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), J(o, {});
|
|
2420
2634
|
let u = s && s.headers ? s.headers : {};
|
|
2421
2635
|
return c.headers = {
|
|
2422
2636
|
...l,
|
|
2423
2637
|
...u,
|
|
2424
2638
|
...i.headers
|
|
2425
|
-
}, c.data =
|
|
2426
|
-
url:
|
|
2639
|
+
}, c.data = Y(n, c, e), {
|
|
2640
|
+
url: X(o),
|
|
2427
2641
|
options: c
|
|
2428
2642
|
};
|
|
2429
2643
|
}
|
|
2430
2644
|
};
|
|
2431
2645
|
}, $ = function(e) {
|
|
2432
|
-
let t =
|
|
2646
|
+
let t = Fr(e);
|
|
2433
2647
|
return {
|
|
2434
2648
|
async addImageToPerson(n, r, i, a) {
|
|
2435
|
-
let o = await t.addImageToPerson(n, r, i, a), s = e?.serverIndex ?? 0, c =
|
|
2436
|
-
return (t, n) =>
|
|
2649
|
+
let o = await t.addImageToPerson(n, r, i, a), s = e?.serverIndex ?? 0, c = G["PersonApi.addImageToPerson"]?.[s]?.url;
|
|
2650
|
+
return (t, n) => Z(o, H, U, e)(t, c || n);
|
|
2437
2651
|
},
|
|
2438
2652
|
async createPerson(n, r, i) {
|
|
2439
|
-
let a = await t.createPerson(n, r, i), o = e?.serverIndex ?? 0, s =
|
|
2440
|
-
return (t, n) =>
|
|
2653
|
+
let a = await t.createPerson(n, r, i), o = e?.serverIndex ?? 0, s = G["PersonApi.createPerson"]?.[o]?.url;
|
|
2654
|
+
return (t, n) => Z(a, H, U, e)(t, s || n);
|
|
2441
2655
|
},
|
|
2442
2656
|
async deleteImageOfPerson(n, r, i, a) {
|
|
2443
|
-
let o = await t.deleteImageOfPerson(n, r, i, a), s = e?.serverIndex ?? 0, c =
|
|
2444
|
-
return (t, n) =>
|
|
2657
|
+
let o = await t.deleteImageOfPerson(n, r, i, a), s = e?.serverIndex ?? 0, c = G["PersonApi.deleteImageOfPerson"]?.[s]?.url;
|
|
2658
|
+
return (t, n) => Z(o, H, U, e)(t, c || n);
|
|
2445
2659
|
},
|
|
2446
2660
|
async deletePerson(n, r, i) {
|
|
2447
|
-
let a = await t.deletePerson(n, r, i), o = e?.serverIndex ?? 0, s =
|
|
2448
|
-
return (t, n) =>
|
|
2661
|
+
let a = await t.deletePerson(n, r, i), o = e?.serverIndex ?? 0, s = G["PersonApi.deletePerson"]?.[o]?.url;
|
|
2662
|
+
return (t, n) => Z(a, H, U, e)(t, s || n);
|
|
2449
2663
|
},
|
|
2450
2664
|
async getAllGroupsByPersonId(n, r, i, a, o) {
|
|
2451
|
-
let s = await t.getAllGroupsByPersonId(n, r, i, a, o), c = e?.serverIndex ?? 0, l =
|
|
2452
|
-
return (t, n) =>
|
|
2665
|
+
let s = await t.getAllGroupsByPersonId(n, r, i, a, o), c = e?.serverIndex ?? 0, l = G["PersonApi.getAllGroupsByPersonId"]?.[c]?.url;
|
|
2666
|
+
return (t, n) => Z(s, H, U, e)(t, l || n);
|
|
2453
2667
|
},
|
|
2454
2668
|
async getAllImagesByPersonId(n, r, i, a, o) {
|
|
2455
|
-
let s = await t.getAllImagesByPersonId(n, r, i, a, o), c = e?.serverIndex ?? 0, l =
|
|
2456
|
-
return (t, n) =>
|
|
2669
|
+
let s = await t.getAllImagesByPersonId(n, r, i, a, o), c = e?.serverIndex ?? 0, l = G["PersonApi.getAllImagesByPersonId"]?.[c]?.url;
|
|
2670
|
+
return (t, n) => Z(s, H, U, e)(t, l || n);
|
|
2457
2671
|
},
|
|
2458
2672
|
async getImageOfPerson(n, r, i, a) {
|
|
2459
|
-
let o = await t.getImageOfPerson(n, r, i, a), s = e?.serverIndex ?? 0, c =
|
|
2460
|
-
return (t, n) =>
|
|
2673
|
+
let o = await t.getImageOfPerson(n, r, i, a), s = e?.serverIndex ?? 0, c = G["PersonApi.getImageOfPerson"]?.[s]?.url;
|
|
2674
|
+
return (t, n) => Z(o, H, U, e)(t, c || n);
|
|
2461
2675
|
},
|
|
2462
2676
|
async getPerson(n, r, i) {
|
|
2463
|
-
let a = await t.getPerson(n, r, i), o = e?.serverIndex ?? 0, s =
|
|
2464
|
-
return (t, n) =>
|
|
2677
|
+
let a = await t.getPerson(n, r, i), o = e?.serverIndex ?? 0, s = G["PersonApi.getPerson"]?.[o]?.url;
|
|
2678
|
+
return (t, n) => Z(a, H, U, e)(t, s || n);
|
|
2465
2679
|
},
|
|
2466
2680
|
async updatePerson(n, r, i, a) {
|
|
2467
|
-
let o = await t.updatePerson(n, r, i, a), s = e?.serverIndex ?? 0, c =
|
|
2468
|
-
return (t, n) =>
|
|
2681
|
+
let o = await t.updatePerson(n, r, i, a), s = e?.serverIndex ?? 0, c = G["PersonApi.updatePerson"]?.[s]?.url;
|
|
2682
|
+
return (t, n) => Z(o, H, U, e)(t, c || n);
|
|
2469
2683
|
}
|
|
2470
2684
|
};
|
|
2471
|
-
},
|
|
2685
|
+
}, Ir = class extends W {
|
|
2472
2686
|
addImageToPerson(e, t, n, r) {
|
|
2473
2687
|
return $(this.configuration).addImageToPerson(e, t, n, r).then((e) => e(this.axios, this.basePath));
|
|
2474
2688
|
}
|
|
@@ -2496,9 +2710,9 @@ var ir = function(e) {
|
|
|
2496
2710
|
updatePerson(e, t, n, r) {
|
|
2497
2711
|
return $(this.configuration).updatePerson(e, t, n, r).then((e) => e(this.axios, this.basePath));
|
|
2498
2712
|
}
|
|
2499
|
-
},
|
|
2713
|
+
}, Lr = class {
|
|
2500
2714
|
constructor(e, t, n) {
|
|
2501
|
-
this.superClass = new
|
|
2715
|
+
this.superClass = new Ir(e, t, n);
|
|
2502
2716
|
}
|
|
2503
2717
|
async createPerson(e, t, n) {
|
|
2504
2718
|
let r = {
|
|
@@ -2508,7 +2722,7 @@ var ir = function(e) {
|
|
|
2508
2722
|
return (await this.superClass.createPerson(r, t, n)).data;
|
|
2509
2723
|
}
|
|
2510
2724
|
async addImageToPerson(e, t, n, r) {
|
|
2511
|
-
return t?.image?.content && typeof t.image.content != "string" && (t.image.content =
|
|
2725
|
+
return t?.image?.content && typeof t.image.content != "string" && (t.image.content = Ar(t.image.content)), (await this.superClass.addImageToPerson(e, t, n, r)).data;
|
|
2512
2726
|
}
|
|
2513
2727
|
async deleteImageOfPerson(e, t, n, r) {
|
|
2514
2728
|
await this.superClass.deleteImageOfPerson(t, e, n, r);
|
|
@@ -2531,176 +2745,176 @@ var ir = function(e) {
|
|
|
2531
2745
|
async updatePerson(e, t, n, r) {
|
|
2532
2746
|
await this.superClass.updatePerson(e, t, n, r);
|
|
2533
2747
|
}
|
|
2534
|
-
},
|
|
2748
|
+
}, Rr = function(e) {
|
|
2535
2749
|
return { search: async (t, n, r, i = {}) => {
|
|
2536
|
-
|
|
2537
|
-
let a = new URL("/api/search",
|
|
2750
|
+
q("search", "searchRequest", t);
|
|
2751
|
+
let a = new URL("/api/search", K), o;
|
|
2538
2752
|
e && (o = e.baseOptions);
|
|
2539
2753
|
let s = {
|
|
2540
2754
|
method: "POST",
|
|
2541
2755
|
...o,
|
|
2542
2756
|
...i
|
|
2543
2757
|
}, c = {}, l = {};
|
|
2544
|
-
r !== void 0 && (l.withImages = r), c["Content-Type"] = "application/json", n != null && (c["X-RequestID"] = String(n)),
|
|
2758
|
+
r !== void 0 && (l.withImages = r), c["Content-Type"] = "application/json", n != null && (c["X-RequestID"] = String(n)), J(a, l);
|
|
2545
2759
|
let u = o && o.headers ? o.headers : {};
|
|
2546
2760
|
return s.headers = {
|
|
2547
2761
|
...c,
|
|
2548
2762
|
...u,
|
|
2549
2763
|
...i.headers
|
|
2550
|
-
}, s.data =
|
|
2551
|
-
url:
|
|
2764
|
+
}, s.data = Y(t, s, e), {
|
|
2765
|
+
url: X(a),
|
|
2552
2766
|
options: s
|
|
2553
2767
|
};
|
|
2554
2768
|
} };
|
|
2555
|
-
},
|
|
2556
|
-
let t =
|
|
2769
|
+
}, zr = function(e) {
|
|
2770
|
+
let t = Rr(e);
|
|
2557
2771
|
return { async search(n, r, i, a) {
|
|
2558
|
-
let o = await t.search(n, r, i, a), s = e?.serverIndex ?? 0, c =
|
|
2559
|
-
return (t, n) =>
|
|
2772
|
+
let o = await t.search(n, r, i, a), s = e?.serverIndex ?? 0, c = G["SearchApi.search"]?.[s]?.url;
|
|
2773
|
+
return (t, n) => Z(o, H, U, e)(t, c || n);
|
|
2560
2774
|
} };
|
|
2561
|
-
},
|
|
2775
|
+
}, Br = class extends W {
|
|
2562
2776
|
search(e, t, n, r) {
|
|
2563
|
-
return
|
|
2777
|
+
return zr(this.configuration).search(e, t, n, r).then((e) => e(this.axios, this.basePath));
|
|
2564
2778
|
}
|
|
2565
|
-
},
|
|
2779
|
+
}, Vr = class {
|
|
2566
2780
|
constructor(e, t, n) {
|
|
2567
|
-
this.superClass = new
|
|
2781
|
+
this.superClass = new Br(e, t, n);
|
|
2568
2782
|
}
|
|
2569
2783
|
async search(e, t, n, r) {
|
|
2570
|
-
return e?.image?.content && typeof e.image.content != "string" && (e.image.content =
|
|
2784
|
+
return e?.image?.content && typeof e.image.content != "string" && (e.image.content = Ar(e.image.content)), (await this.superClass.search(e, t, n, r)).data;
|
|
2571
2785
|
}
|
|
2572
|
-
},
|
|
2786
|
+
}, Hr = function(e) {
|
|
2573
2787
|
return {
|
|
2574
2788
|
deleteLivenessTransaction: async (t, n, r = {}) => {
|
|
2575
|
-
|
|
2576
|
-
let i = new URL("/api/v2/liveness",
|
|
2789
|
+
q("deleteLivenessTransaction", "transactionId", t), q("deleteLivenessTransaction", "tag", n);
|
|
2790
|
+
let i = new URL("/api/v2/liveness", K), a;
|
|
2577
2791
|
e && (a = e.baseOptions);
|
|
2578
2792
|
let o = {
|
|
2579
2793
|
method: "DELETE",
|
|
2580
2794
|
...a,
|
|
2581
2795
|
...r
|
|
2582
2796
|
}, s = {}, c = {};
|
|
2583
|
-
t !== void 0 && (c.transactionId = t), n !== void 0 && (c.tag = n),
|
|
2797
|
+
t !== void 0 && (c.transactionId = t), n !== void 0 && (c.tag = n), J(i, c);
|
|
2584
2798
|
let l = a && a.headers ? a.headers : {};
|
|
2585
2799
|
return o.headers = {
|
|
2586
2800
|
...s,
|
|
2587
2801
|
...l,
|
|
2588
2802
|
...r.headers
|
|
2589
2803
|
}, {
|
|
2590
|
-
url:
|
|
2804
|
+
url: X(i),
|
|
2591
2805
|
options: o
|
|
2592
2806
|
};
|
|
2593
2807
|
},
|
|
2594
2808
|
getLivenessTransactionInfo: async (t, n = {}) => {
|
|
2595
|
-
|
|
2596
|
-
let r = new URL("/api/v2/liveness",
|
|
2809
|
+
q("getLivenessTransactionInfo", "transactionId", t);
|
|
2810
|
+
let r = new URL("/api/v2/liveness", K), i;
|
|
2597
2811
|
e && (i = e.baseOptions);
|
|
2598
2812
|
let a = {
|
|
2599
2813
|
method: "GET",
|
|
2600
2814
|
...i,
|
|
2601
2815
|
...n
|
|
2602
2816
|
}, o = {}, s = {};
|
|
2603
|
-
t !== void 0 && (s.transactionId = t),
|
|
2817
|
+
t !== void 0 && (s.transactionId = t), J(r, s);
|
|
2604
2818
|
let c = i && i.headers ? i.headers : {};
|
|
2605
2819
|
return a.headers = {
|
|
2606
2820
|
...o,
|
|
2607
2821
|
...c,
|
|
2608
2822
|
...n.headers
|
|
2609
2823
|
}, {
|
|
2610
|
-
url:
|
|
2824
|
+
url: X(r),
|
|
2611
2825
|
options: a
|
|
2612
2826
|
};
|
|
2613
2827
|
}
|
|
2614
2828
|
};
|
|
2615
|
-
},
|
|
2616
|
-
let t =
|
|
2829
|
+
}, Ur = function(e) {
|
|
2830
|
+
let t = Hr(e);
|
|
2617
2831
|
return {
|
|
2618
2832
|
async deleteLivenessTransaction(n, r, i) {
|
|
2619
|
-
let a = await t.deleteLivenessTransaction(n, r, i), o = e?.serverIndex ?? 0, s =
|
|
2620
|
-
return (t, n) =>
|
|
2833
|
+
let a = await t.deleteLivenessTransaction(n, r, i), o = e?.serverIndex ?? 0, s = G["Liveness20Api.deleteLivenessTransaction"]?.[o]?.url;
|
|
2834
|
+
return (t, n) => Z(a, H, U, e)(t, s || n);
|
|
2621
2835
|
},
|
|
2622
2836
|
async getLivenessTransactionInfo(n, r) {
|
|
2623
|
-
let i = await t.getLivenessTransactionInfo(n, r), a = e?.serverIndex ?? 0, o =
|
|
2624
|
-
return (t, n) =>
|
|
2837
|
+
let i = await t.getLivenessTransactionInfo(n, r), a = e?.serverIndex ?? 0, o = G["Liveness20Api.getLivenessTransactionInfo"]?.[a]?.url;
|
|
2838
|
+
return (t, n) => Z(i, H, U, e)(t, o || n);
|
|
2625
2839
|
}
|
|
2626
2840
|
};
|
|
2627
|
-
},
|
|
2841
|
+
}, Wr = class extends W {
|
|
2628
2842
|
deleteLivenessTransaction(e, t, n) {
|
|
2629
|
-
return
|
|
2843
|
+
return Ur(this.configuration).deleteLivenessTransaction(e, t, n).then((e) => e(this.axios, this.basePath));
|
|
2630
2844
|
}
|
|
2631
2845
|
getLivenessTransactionInfo(e, t) {
|
|
2632
|
-
return
|
|
2846
|
+
return Ur(this.configuration).getLivenessTransactionInfo(e, t).then((e) => e(this.axios, this.basePath));
|
|
2633
2847
|
}
|
|
2634
|
-
},
|
|
2848
|
+
}, Gr = class {
|
|
2635
2849
|
constructor(e, t, n) {
|
|
2636
|
-
this.superClass = new
|
|
2850
|
+
this.superClass = new Wr(e, t, n);
|
|
2637
2851
|
}
|
|
2638
2852
|
async getLivenessTransactionInfo(e, t) {
|
|
2639
2853
|
return (await this.superClass.getLivenessTransactionInfo(e, t)).data;
|
|
2640
2854
|
}
|
|
2641
|
-
},
|
|
2855
|
+
}, Kr = function(e) {
|
|
2642
2856
|
return {
|
|
2643
2857
|
healthz: async (t, n = {}) => {
|
|
2644
|
-
let r = new URL("/api/healthz",
|
|
2858
|
+
let r = new URL("/api/healthz", K), i;
|
|
2645
2859
|
e && (i = e.baseOptions);
|
|
2646
2860
|
let a = {
|
|
2647
2861
|
method: "GET",
|
|
2648
2862
|
...i,
|
|
2649
2863
|
...n
|
|
2650
2864
|
}, o = {};
|
|
2651
|
-
t != null && (o["X-RequestID"] = String(t)),
|
|
2865
|
+
t != null && (o["X-RequestID"] = String(t)), J(r, {});
|
|
2652
2866
|
let s = i && i.headers ? i.headers : {};
|
|
2653
2867
|
return a.headers = {
|
|
2654
2868
|
...o,
|
|
2655
2869
|
...s,
|
|
2656
2870
|
...n.headers
|
|
2657
2871
|
}, {
|
|
2658
|
-
url:
|
|
2872
|
+
url: X(r),
|
|
2659
2873
|
options: a
|
|
2660
2874
|
};
|
|
2661
2875
|
},
|
|
2662
2876
|
readyz: async (t, n = {}) => {
|
|
2663
|
-
let r = new URL("/api/readyz",
|
|
2877
|
+
let r = new URL("/api/readyz", K), i;
|
|
2664
2878
|
e && (i = e.baseOptions);
|
|
2665
2879
|
let a = {
|
|
2666
2880
|
method: "GET",
|
|
2667
2881
|
...i,
|
|
2668
2882
|
...n
|
|
2669
2883
|
}, o = {};
|
|
2670
|
-
t != null && (o["X-RequestID"] = String(t)),
|
|
2884
|
+
t != null && (o["X-RequestID"] = String(t)), J(r, {});
|
|
2671
2885
|
let s = i && i.headers ? i.headers : {};
|
|
2672
2886
|
return a.headers = {
|
|
2673
2887
|
...o,
|
|
2674
2888
|
...s,
|
|
2675
2889
|
...n.headers
|
|
2676
2890
|
}, {
|
|
2677
|
-
url:
|
|
2891
|
+
url: X(r),
|
|
2678
2892
|
options: a
|
|
2679
2893
|
};
|
|
2680
2894
|
}
|
|
2681
2895
|
};
|
|
2682
|
-
},
|
|
2683
|
-
let t =
|
|
2896
|
+
}, qr = function(e) {
|
|
2897
|
+
let t = Kr(e);
|
|
2684
2898
|
return {
|
|
2685
2899
|
async healthz(n, r) {
|
|
2686
|
-
let i = await t.healthz(n, r), a = e?.serverIndex ?? 0, o =
|
|
2687
|
-
return (t, n) =>
|
|
2900
|
+
let i = await t.healthz(n, r), a = e?.serverIndex ?? 0, o = G["HealthcheckApi.healthz"]?.[a]?.url;
|
|
2901
|
+
return (t, n) => Z(i, H, U, e)(t, o || n);
|
|
2688
2902
|
},
|
|
2689
2903
|
async readyz(n, r) {
|
|
2690
|
-
let i = await t.readyz(n, r), a = e?.serverIndex ?? 0, o =
|
|
2691
|
-
return (t, n) =>
|
|
2904
|
+
let i = await t.readyz(n, r), a = e?.serverIndex ?? 0, o = G["HealthcheckApi.readyz"]?.[a]?.url;
|
|
2905
|
+
return (t, n) => Z(i, H, U, e)(t, o || n);
|
|
2692
2906
|
}
|
|
2693
2907
|
};
|
|
2694
|
-
},
|
|
2908
|
+
}, Jr = class extends W {
|
|
2695
2909
|
healthz(e, t) {
|
|
2696
|
-
return
|
|
2910
|
+
return qr(this.configuration).healthz(e, t).then((e) => e(this.axios, this.basePath));
|
|
2697
2911
|
}
|
|
2698
2912
|
readyz(e, t) {
|
|
2699
|
-
return
|
|
2913
|
+
return qr(this.configuration).readyz(e, t).then((e) => e(this.axios, this.basePath));
|
|
2700
2914
|
}
|
|
2701
|
-
},
|
|
2915
|
+
}, Yr = class {
|
|
2702
2916
|
constructor(e, t, n) {
|
|
2703
|
-
this.superClass = new
|
|
2917
|
+
this.superClass = new Jr(e, t, n);
|
|
2704
2918
|
}
|
|
2705
2919
|
async healthz(e, t) {
|
|
2706
2920
|
return (await this.superClass.healthz(e, t)).data;
|
|
@@ -2708,11 +2922,11 @@ var ir = function(e) {
|
|
|
2708
2922
|
async readyz(e, t) {
|
|
2709
2923
|
return (await this.superClass.readyz(e, t)).data;
|
|
2710
2924
|
}
|
|
2711
|
-
},
|
|
2712
|
-
constructor(e, t =
|
|
2713
|
-
this.basePath = t, this.axios = n, this.matchApi = new
|
|
2925
|
+
}, Xr = class {
|
|
2926
|
+
constructor(e, t = U, n = H) {
|
|
2927
|
+
this.basePath = t, this.axios = n, this.matchApi = new jr(e, t, n), this.groupApi = new Pr(e, t, n), this.personApi = new Lr(e, t, n), this.searchApi = new Vr(e, t, n), this.livenessApi = new Gr(e, t, n), this.healthcheckApi = new Yr(e, t, n);
|
|
2714
2928
|
}
|
|
2715
|
-
},
|
|
2929
|
+
}, Zr = class {
|
|
2716
2930
|
constructor(e = {}) {
|
|
2717
2931
|
this.apiKey = e.apiKey, this.username = e.username, this.password = e.password, this.accessToken = e.accessToken, this.basePath = e.basePath, this.serverIndex = e.serverIndex, this.baseOptions = {
|
|
2718
2932
|
...e.baseOptions,
|
|
@@ -2724,4 +2938,4 @@ var ir = function(e) {
|
|
|
2724
2938
|
}
|
|
2725
2939
|
};
|
|
2726
2940
|
//#endregion
|
|
2727
|
-
export {
|
|
2941
|
+
export { Zr as Configuration, gr as FaceAttribute, _r as FaceImageQualityAlignType, vr as FaceImageQualityGroups, yr as FaceImageQualityGroupsStrings, br as FaceImageQualityStatus, xr as FaceQualityConfigName, Sr as FaceQualityScenarios, Cr as FaceSDKResultCode, Xr as FaceSdk, wr as FilterOp, Pr as GroupApi, Yr as HealthcheckApi, Tr as ImageSource, Gr as Liveness20Api, Er as LivenessType, jr as MatchApi, Lr as PersonApi, Vr as SearchApi };
|