@regulaforensics/facesdk-webclient 8.3.663-nightly → 8.3.664-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 +8 -8
- package/dist/index.js +1425 -1619
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,171 +1,161 @@
|
|
|
1
|
-
function
|
|
1
|
+
function dt(e, t) {
|
|
2
2
|
return function() {
|
|
3
3
|
return e.apply(t, arguments);
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
|
-
const { toString:
|
|
7
|
-
const r =
|
|
6
|
+
const { toString: Dt } = Object.prototype, { getPrototypeOf: xe } = Object, { iterator: Oe, toStringTag: ut } = Symbol, _e = /* @__PURE__ */ ((e) => (t) => {
|
|
7
|
+
const r = Dt.call(t);
|
|
8
8
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
9
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
10
|
-
function
|
|
11
|
-
return e !== null && !
|
|
9
|
+
})(/* @__PURE__ */ Object.create(null)), G = (e) => (e = e.toLowerCase(), (t) => _e(t) === e), Re = (e) => (t) => typeof t === e, { isArray: K } = Array, Z = Re("undefined");
|
|
10
|
+
function re(e) {
|
|
11
|
+
return e !== null && !Z(e) && e.constructor !== null && !Z(e.constructor) && N(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
function
|
|
13
|
+
const pt = G("ArrayBuffer");
|
|
14
|
+
function Bt(e) {
|
|
15
15
|
let t;
|
|
16
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
16
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && pt(e.buffer), t;
|
|
17
17
|
}
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
18
|
+
const Ht = Re("string"), N = Re("function"), ht = Re("number"), se = (e) => e !== null && typeof e == "object", Gt = (e) => e === !0 || e === !1, pe = (e) => {
|
|
19
|
+
if (_e(e) !== "object")
|
|
20
20
|
return !1;
|
|
21
|
-
const t =
|
|
22
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
23
|
-
},
|
|
24
|
-
if (!
|
|
21
|
+
const t = xe(e);
|
|
22
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ut in e) && !(Oe in e);
|
|
23
|
+
}, Mt = (e) => {
|
|
24
|
+
if (!se(e) || re(e))
|
|
25
25
|
return !1;
|
|
26
26
|
try {
|
|
27
27
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
28
28
|
} catch {
|
|
29
29
|
return !1;
|
|
30
30
|
}
|
|
31
|
-
},
|
|
32
|
-
function
|
|
31
|
+
}, vt = G("Date"), jt = G("File"), kt = (e) => !!(e && typeof e.uri < "u"), Ft = (e) => e && typeof e.getParts < "u", qt = G("Blob"), $t = G("FileList"), zt = (e) => se(e) && N(e.pipe);
|
|
32
|
+
function Wt() {
|
|
33
33
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const r = Ce(e);
|
|
41
|
-
return r === "formdata" || // detect form-data instance
|
|
42
|
-
r === "object" && D(e.toString) && e.toString() === "[object FormData]";
|
|
43
|
-
}, rr = M("URLSearchParams"), [nr, sr, or, ar] = [
|
|
35
|
+
const $e = Wt(), ze = typeof $e.FormData < "u" ? $e.FormData : void 0, Yt = (e) => {
|
|
36
|
+
let t;
|
|
37
|
+
return e && (ze && e instanceof ze || N(e.append) && ((t = _e(e)) === "formdata" || // detect form-data instance
|
|
38
|
+
t === "object" && N(e.toString) && e.toString() === "[object FormData]"));
|
|
39
|
+
}, Xt = G("URLSearchParams"), [Jt, Zt, Kt, Qt] = [
|
|
44
40
|
"ReadableStream",
|
|
45
41
|
"Request",
|
|
46
42
|
"Response",
|
|
47
43
|
"Headers"
|
|
48
|
-
].map(
|
|
49
|
-
function
|
|
44
|
+
].map(G), er = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
45
|
+
function ne(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
50
46
|
if (e === null || typeof e > "u")
|
|
51
47
|
return;
|
|
52
|
-
let
|
|
53
|
-
if (typeof e != "object" && (e = [e]),
|
|
54
|
-
for (
|
|
55
|
-
t.call(null, e[
|
|
48
|
+
let s, n;
|
|
49
|
+
if (typeof e != "object" && (e = [e]), K(e))
|
|
50
|
+
for (s = 0, n = e.length; s < n; s++)
|
|
51
|
+
t.call(null, e[s], s, e);
|
|
56
52
|
else {
|
|
57
|
-
if (
|
|
53
|
+
if (re(e))
|
|
58
54
|
return;
|
|
59
55
|
const o = r ? Object.getOwnPropertyNames(e) : Object.keys(e), a = o.length;
|
|
60
56
|
let i;
|
|
61
|
-
for (
|
|
62
|
-
i = o[
|
|
57
|
+
for (s = 0; s < a; s++)
|
|
58
|
+
i = o[s], t.call(null, e[i], i, e);
|
|
63
59
|
}
|
|
64
60
|
}
|
|
65
|
-
function
|
|
66
|
-
if (
|
|
61
|
+
function ft(e, t) {
|
|
62
|
+
if (re(e))
|
|
67
63
|
return null;
|
|
68
64
|
t = t.toLowerCase();
|
|
69
65
|
const r = Object.keys(e);
|
|
70
|
-
let
|
|
71
|
-
for (;
|
|
72
|
-
if (
|
|
73
|
-
return
|
|
66
|
+
let s = r.length, n;
|
|
67
|
+
for (; s-- > 0; )
|
|
68
|
+
if (n = r[s], t === n.toLowerCase())
|
|
69
|
+
return n;
|
|
74
70
|
return null;
|
|
75
71
|
}
|
|
76
|
-
const
|
|
77
|
-
function
|
|
78
|
-
const { caseless:
|
|
79
|
-
if (
|
|
72
|
+
const z = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Et = (e) => !Z(e) && e !== z;
|
|
73
|
+
function Le() {
|
|
74
|
+
const { caseless: e, skipUndefined: t } = Et(this) && this || {}, r = {}, s = (n, o) => {
|
|
75
|
+
if (o === "__proto__" || o === "constructor" || o === "prototype")
|
|
80
76
|
return;
|
|
81
|
-
const
|
|
82
|
-
|
|
77
|
+
const a = e && ft(r, o) || o;
|
|
78
|
+
pe(r[a]) && pe(n) ? r[a] = Le(r[a], n) : pe(n) ? r[a] = Le({}, n) : K(n) ? r[a] = n.slice() : (!t || !Z(n)) && (r[a] = n);
|
|
83
79
|
};
|
|
84
|
-
for (let
|
|
85
|
-
|
|
86
|
-
return
|
|
80
|
+
for (let n = 0, o = arguments.length; n < o; n++)
|
|
81
|
+
arguments[n] && ne(arguments[n], s);
|
|
82
|
+
return r;
|
|
87
83
|
}
|
|
88
|
-
const
|
|
84
|
+
const tr = (e, t, r, { allOwnKeys: s } = {}) => (ne(
|
|
89
85
|
t,
|
|
90
|
-
(
|
|
91
|
-
r &&
|
|
92
|
-
|
|
93
|
-
// hijack defineProperty's accessor-vs-data resolution.
|
|
94
|
-
__proto__: null,
|
|
95
|
-
value: _t(s, r),
|
|
86
|
+
(n, o) => {
|
|
87
|
+
r && N(n) ? Object.defineProperty(e, o, {
|
|
88
|
+
value: dt(n, r),
|
|
96
89
|
writable: !0,
|
|
97
90
|
enumerable: !0,
|
|
98
91
|
configurable: !0
|
|
99
92
|
}) : Object.defineProperty(e, o, {
|
|
100
|
-
|
|
101
|
-
value: s,
|
|
93
|
+
value: n,
|
|
102
94
|
writable: !0,
|
|
103
95
|
enumerable: !0,
|
|
104
96
|
configurable: !0
|
|
105
97
|
});
|
|
106
98
|
},
|
|
107
|
-
{ allOwnKeys:
|
|
108
|
-
), e),
|
|
109
|
-
e.prototype = Object.create(t.prototype,
|
|
110
|
-
__proto__: null,
|
|
99
|
+
{ allOwnKeys: s }
|
|
100
|
+
), e), rr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), sr = (e, t, r, s) => {
|
|
101
|
+
e.prototype = Object.create(t.prototype, s), Object.defineProperty(e.prototype, "constructor", {
|
|
111
102
|
value: e,
|
|
112
103
|
writable: !0,
|
|
113
104
|
enumerable: !1,
|
|
114
105
|
configurable: !0
|
|
115
106
|
}), Object.defineProperty(e, "super", {
|
|
116
|
-
__proto__: null,
|
|
117
107
|
value: t.prototype
|
|
118
108
|
}), r && Object.assign(e.prototype, r);
|
|
119
|
-
},
|
|
120
|
-
let
|
|
109
|
+
}, nr = (e, t, r, s) => {
|
|
110
|
+
let n, o, a;
|
|
121
111
|
const i = {};
|
|
122
112
|
if (t = t || {}, e == null) return t;
|
|
123
113
|
do {
|
|
124
|
-
for (
|
|
125
|
-
a =
|
|
126
|
-
e = r !== !1 &&
|
|
114
|
+
for (n = Object.getOwnPropertyNames(e), o = n.length; o-- > 0; )
|
|
115
|
+
a = n[o], (!s || s(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
|
|
116
|
+
e = r !== !1 && xe(e);
|
|
127
117
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
128
118
|
return t;
|
|
129
|
-
},
|
|
119
|
+
}, or = (e, t, r) => {
|
|
130
120
|
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
131
|
-
const
|
|
132
|
-
return
|
|
133
|
-
},
|
|
121
|
+
const s = e.indexOf(t, r);
|
|
122
|
+
return s !== -1 && s === r;
|
|
123
|
+
}, ar = (e) => {
|
|
134
124
|
if (!e) return null;
|
|
135
|
-
if (
|
|
125
|
+
if (K(e)) return e;
|
|
136
126
|
let t = e.length;
|
|
137
|
-
if (!
|
|
127
|
+
if (!ht(t)) return null;
|
|
138
128
|
const r = new Array(t);
|
|
139
129
|
for (; t-- > 0; )
|
|
140
130
|
r[t] = e[t];
|
|
141
131
|
return r;
|
|
142
|
-
},
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
for (; (
|
|
146
|
-
const o =
|
|
132
|
+
}, ir = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && xe(Uint8Array)), lr = (e, t) => {
|
|
133
|
+
const s = (e && e[Oe]).call(e);
|
|
134
|
+
let n;
|
|
135
|
+
for (; (n = s.next()) && !n.done; ) {
|
|
136
|
+
const o = n.value;
|
|
147
137
|
t.call(e, o[0], o[1]);
|
|
148
138
|
}
|
|
149
|
-
},
|
|
139
|
+
}, cr = (e, t) => {
|
|
150
140
|
let r;
|
|
151
|
-
const
|
|
141
|
+
const s = [];
|
|
152
142
|
for (; (r = e.exec(t)) !== null; )
|
|
153
|
-
|
|
154
|
-
return
|
|
155
|
-
},
|
|
156
|
-
return
|
|
157
|
-
}),
|
|
158
|
-
const r = Object.getOwnPropertyDescriptors(e),
|
|
159
|
-
|
|
143
|
+
s.push(r);
|
|
144
|
+
return s;
|
|
145
|
+
}, dr = G("HTMLFormElement"), ur = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, s, n) {
|
|
146
|
+
return s.toUpperCase() + n;
|
|
147
|
+
}), We = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), pr = G("RegExp"), At = (e, t) => {
|
|
148
|
+
const r = Object.getOwnPropertyDescriptors(e), s = {};
|
|
149
|
+
ne(r, (n, o) => {
|
|
160
150
|
let a;
|
|
161
|
-
(a = t(
|
|
162
|
-
}), Object.defineProperties(e,
|
|
163
|
-
},
|
|
164
|
-
|
|
165
|
-
if (
|
|
151
|
+
(a = t(n, o, e)) !== !1 && (s[o] = a || n);
|
|
152
|
+
}), Object.defineProperties(e, s);
|
|
153
|
+
}, hr = (e) => {
|
|
154
|
+
At(e, (t, r) => {
|
|
155
|
+
if (N(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
166
156
|
return !1;
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
157
|
+
const s = e[r];
|
|
158
|
+
if (N(s)) {
|
|
169
159
|
if (t.enumerable = !1, "writable" in t) {
|
|
170
160
|
t.writable = !1;
|
|
171
161
|
return;
|
|
@@ -175,375 +165,110 @@ const lr = (e, t, r, { allOwnKeys: n } = {}) => (he(
|
|
|
175
165
|
});
|
|
176
166
|
}
|
|
177
167
|
});
|
|
178
|
-
},
|
|
179
|
-
const r = {},
|
|
180
|
-
|
|
168
|
+
}, fr = (e, t) => {
|
|
169
|
+
const r = {}, s = (n) => {
|
|
170
|
+
n.forEach((o) => {
|
|
181
171
|
r[o] = !0;
|
|
182
172
|
});
|
|
183
173
|
};
|
|
184
|
-
return
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
function
|
|
188
|
-
return !!(e &&
|
|
174
|
+
return K(e) ? s(e) : s(String(e).split(t)), r;
|
|
175
|
+
}, Er = () => {
|
|
176
|
+
}, Ar = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
177
|
+
function Or(e) {
|
|
178
|
+
return !!(e && N(e.append) && e[ut] === "FormData" && e[Oe]);
|
|
189
179
|
}
|
|
190
|
-
const
|
|
191
|
-
const t = new Array(10), r = (
|
|
192
|
-
if (
|
|
193
|
-
if (t.indexOf(
|
|
180
|
+
const _r = (e) => {
|
|
181
|
+
const t = new Array(10), r = (s, n) => {
|
|
182
|
+
if (se(s)) {
|
|
183
|
+
if (t.indexOf(s) >= 0)
|
|
194
184
|
return;
|
|
195
|
-
if (
|
|
196
|
-
return
|
|
197
|
-
if (!("toJSON" in
|
|
198
|
-
t[
|
|
199
|
-
const o =
|
|
200
|
-
return
|
|
201
|
-
const l = r(a,
|
|
202
|
-
!
|
|
203
|
-
}), t[
|
|
185
|
+
if (re(s))
|
|
186
|
+
return s;
|
|
187
|
+
if (!("toJSON" in s)) {
|
|
188
|
+
t[n] = s;
|
|
189
|
+
const o = K(s) ? [] : {};
|
|
190
|
+
return ne(s, (a, i) => {
|
|
191
|
+
const l = r(a, n + 1);
|
|
192
|
+
!Z(l) && (o[i] = l);
|
|
193
|
+
}), t[n] = void 0, o;
|
|
204
194
|
}
|
|
205
195
|
}
|
|
206
|
-
return
|
|
196
|
+
return s;
|
|
207
197
|
};
|
|
208
198
|
return r(e, 0);
|
|
209
|
-
},
|
|
199
|
+
}, Rr = G("AsyncFunction"), mr = (e) => e && (se(e) || N(e)) && N(e.then) && N(e.catch), Ot = ((e, t) => e ? setImmediate : t ? ((r, s) => (z.addEventListener(
|
|
210
200
|
"message",
|
|
211
|
-
({ source:
|
|
212
|
-
|
|
201
|
+
({ source: n, data: o }) => {
|
|
202
|
+
n === z && o === r && s.length && s.shift()();
|
|
213
203
|
},
|
|
214
204
|
!1
|
|
215
|
-
), (
|
|
216
|
-
|
|
217
|
-
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function",
|
|
218
|
-
isArray:
|
|
219
|
-
isArrayBuffer:
|
|
220
|
-
isBuffer:
|
|
221
|
-
isFormData:
|
|
222
|
-
isArrayBufferView:
|
|
223
|
-
isString:
|
|
224
|
-
isNumber:
|
|
225
|
-
isBoolean:
|
|
226
|
-
isObject:
|
|
227
|
-
isPlainObject:
|
|
228
|
-
isEmptyObject:
|
|
229
|
-
isReadableStream:
|
|
230
|
-
isRequest:
|
|
231
|
-
isResponse:
|
|
232
|
-
isHeaders:
|
|
233
|
-
isUndefined:
|
|
234
|
-
isDate:
|
|
235
|
-
isFile:
|
|
236
|
-
isReactNativeBlob:
|
|
237
|
-
isReactNative:
|
|
238
|
-
isBlob:
|
|
239
|
-
isRegExp:
|
|
240
|
-
isFunction:
|
|
241
|
-
isStream:
|
|
242
|
-
isURLSearchParams:
|
|
243
|
-
isTypedArray:
|
|
244
|
-
isFileList:
|
|
245
|
-
forEach:
|
|
246
|
-
merge:
|
|
247
|
-
extend:
|
|
248
|
-
trim:
|
|
249
|
-
stripBOM:
|
|
250
|
-
inherits:
|
|
251
|
-
toFlatObject:
|
|
252
|
-
kindOf:
|
|
253
|
-
kindOfTest:
|
|
254
|
-
endsWith:
|
|
255
|
-
toArray:
|
|
256
|
-
forEachEntry:
|
|
257
|
-
matchAll:
|
|
258
|
-
isHTMLForm:
|
|
259
|
-
hasOwnProperty:
|
|
260
|
-
hasOwnProp:
|
|
205
|
+
), (n) => {
|
|
206
|
+
s.push(n), z.postMessage(r, "*");
|
|
207
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", N(z.postMessage)), Tr = typeof queueMicrotask < "u" ? queueMicrotask.bind(z) : typeof process < "u" && process.nextTick || Ot, Pr = (e) => e != null && N(e[Oe]), u = {
|
|
208
|
+
isArray: K,
|
|
209
|
+
isArrayBuffer: pt,
|
|
210
|
+
isBuffer: re,
|
|
211
|
+
isFormData: Yt,
|
|
212
|
+
isArrayBufferView: Bt,
|
|
213
|
+
isString: Ht,
|
|
214
|
+
isNumber: ht,
|
|
215
|
+
isBoolean: Gt,
|
|
216
|
+
isObject: se,
|
|
217
|
+
isPlainObject: pe,
|
|
218
|
+
isEmptyObject: Mt,
|
|
219
|
+
isReadableStream: Jt,
|
|
220
|
+
isRequest: Zt,
|
|
221
|
+
isResponse: Kt,
|
|
222
|
+
isHeaders: Qt,
|
|
223
|
+
isUndefined: Z,
|
|
224
|
+
isDate: vt,
|
|
225
|
+
isFile: jt,
|
|
226
|
+
isReactNativeBlob: kt,
|
|
227
|
+
isReactNative: Ft,
|
|
228
|
+
isBlob: qt,
|
|
229
|
+
isRegExp: pr,
|
|
230
|
+
isFunction: N,
|
|
231
|
+
isStream: zt,
|
|
232
|
+
isURLSearchParams: Xt,
|
|
233
|
+
isTypedArray: ir,
|
|
234
|
+
isFileList: $t,
|
|
235
|
+
forEach: ne,
|
|
236
|
+
merge: Le,
|
|
237
|
+
extend: tr,
|
|
238
|
+
trim: er,
|
|
239
|
+
stripBOM: rr,
|
|
240
|
+
inherits: sr,
|
|
241
|
+
toFlatObject: nr,
|
|
242
|
+
kindOf: _e,
|
|
243
|
+
kindOfTest: G,
|
|
244
|
+
endsWith: or,
|
|
245
|
+
toArray: ar,
|
|
246
|
+
forEachEntry: lr,
|
|
247
|
+
matchAll: cr,
|
|
248
|
+
isHTMLForm: dr,
|
|
249
|
+
hasOwnProperty: We,
|
|
250
|
+
hasOwnProp: We,
|
|
261
251
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
262
|
-
reduceDescriptors:
|
|
263
|
-
freezeMethods:
|
|
264
|
-
toObjectSet:
|
|
265
|
-
toCamelCase:
|
|
266
|
-
noop:
|
|
267
|
-
toFiniteNumber:
|
|
268
|
-
findKey:
|
|
269
|
-
global:
|
|
270
|
-
isContextDefined:
|
|
271
|
-
isSpecCompliantForm:
|
|
272
|
-
toJSONObject:
|
|
273
|
-
isAsyncFn:
|
|
274
|
-
isThenable:
|
|
275
|
-
setImmediate:
|
|
276
|
-
asap:
|
|
277
|
-
isIterable:
|
|
278
|
-
}, gr = u.toObjectSet([
|
|
279
|
-
"age",
|
|
280
|
-
"authorization",
|
|
281
|
-
"content-length",
|
|
282
|
-
"content-type",
|
|
283
|
-
"etag",
|
|
284
|
-
"expires",
|
|
285
|
-
"from",
|
|
286
|
-
"host",
|
|
287
|
-
"if-modified-since",
|
|
288
|
-
"if-unmodified-since",
|
|
289
|
-
"last-modified",
|
|
290
|
-
"location",
|
|
291
|
-
"max-forwards",
|
|
292
|
-
"proxy-authorization",
|
|
293
|
-
"referer",
|
|
294
|
-
"retry-after",
|
|
295
|
-
"user-agent"
|
|
296
|
-
]), Nr = (e) => {
|
|
297
|
-
const t = {};
|
|
298
|
-
let r, n, s;
|
|
299
|
-
return e && e.split(`
|
|
300
|
-
`).forEach(function(a) {
|
|
301
|
-
s = a.indexOf(":"), r = a.substring(0, s).trim().toLowerCase(), n = a.substring(s + 1).trim(), !(!r || t[r] && gr[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
302
|
-
}), t;
|
|
303
|
-
}, st = /* @__PURE__ */ Symbol("internals"), xr = /[^\x09\x20-\x7E\x80-\xFF]/g;
|
|
304
|
-
function Vr(e) {
|
|
305
|
-
let t = 0, r = e.length;
|
|
306
|
-
for (; t < r; ) {
|
|
307
|
-
const n = e.charCodeAt(t);
|
|
308
|
-
if (n !== 9 && n !== 32)
|
|
309
|
-
break;
|
|
310
|
-
t += 1;
|
|
311
|
-
}
|
|
312
|
-
for (; r > t; ) {
|
|
313
|
-
const n = e.charCodeAt(r - 1);
|
|
314
|
-
if (n !== 9 && n !== 32)
|
|
315
|
-
break;
|
|
316
|
-
r -= 1;
|
|
317
|
-
}
|
|
318
|
-
return t === 0 && r === e.length ? e : e.slice(t, r);
|
|
319
|
-
}
|
|
320
|
-
function de(e) {
|
|
321
|
-
return e && String(e).trim().toLowerCase();
|
|
322
|
-
}
|
|
323
|
-
function Ur(e) {
|
|
324
|
-
return Vr(e.replace(xr, ""));
|
|
325
|
-
}
|
|
326
|
-
function Pe(e) {
|
|
327
|
-
return e === !1 || e == null ? e : u.isArray(e) ? e.map(Pe) : Ur(String(e));
|
|
328
|
-
}
|
|
329
|
-
function Dr(e) {
|
|
330
|
-
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
331
|
-
let n;
|
|
332
|
-
for (; n = r.exec(e); )
|
|
333
|
-
t[n[1]] = n[2];
|
|
334
|
-
return t;
|
|
335
|
-
}
|
|
336
|
-
const Br = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
337
|
-
function De(e, t, r, n, s) {
|
|
338
|
-
if (u.isFunction(n))
|
|
339
|
-
return n.call(this, t, r);
|
|
340
|
-
if (s && (t = r), !!u.isString(t)) {
|
|
341
|
-
if (u.isString(n))
|
|
342
|
-
return t.indexOf(n) !== -1;
|
|
343
|
-
if (u.isRegExp(n))
|
|
344
|
-
return n.test(t);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
function Hr(e) {
|
|
348
|
-
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
349
|
-
}
|
|
350
|
-
function Gr(e, t) {
|
|
351
|
-
const r = u.toCamelCase(" " + t);
|
|
352
|
-
["get", "set", "has"].forEach((n) => {
|
|
353
|
-
Object.defineProperty(e, n + r, {
|
|
354
|
-
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
355
|
-
// this data descriptor into an accessor descriptor on the way in.
|
|
356
|
-
__proto__: null,
|
|
357
|
-
value: function(s, o, a) {
|
|
358
|
-
return this[n].call(this, t, s, o, a);
|
|
359
|
-
},
|
|
360
|
-
configurable: !0
|
|
361
|
-
});
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
let U = class {
|
|
365
|
-
constructor(t) {
|
|
366
|
-
t && this.set(t);
|
|
367
|
-
}
|
|
368
|
-
set(t, r, n) {
|
|
369
|
-
const s = this;
|
|
370
|
-
function o(i, l, c) {
|
|
371
|
-
const d = de(l);
|
|
372
|
-
if (!d)
|
|
373
|
-
throw new Error("header name must be a non-empty string");
|
|
374
|
-
const p = u.findKey(s, d);
|
|
375
|
-
(!p || s[p] === void 0 || c === !0 || c === void 0 && s[p] !== !1) && (s[p || l] = Pe(i));
|
|
376
|
-
}
|
|
377
|
-
const a = (i, l) => u.forEach(i, (c, d) => o(c, d, l));
|
|
378
|
-
if (u.isPlainObject(t) || t instanceof this.constructor)
|
|
379
|
-
a(t, r);
|
|
380
|
-
else if (u.isString(t) && (t = t.trim()) && !Br(t))
|
|
381
|
-
a(Nr(t), r);
|
|
382
|
-
else if (u.isObject(t) && u.isIterable(t)) {
|
|
383
|
-
let i = {}, l, c;
|
|
384
|
-
for (const d of t) {
|
|
385
|
-
if (!u.isArray(d))
|
|
386
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
387
|
-
i[c = d[0]] = (l = i[c]) ? u.isArray(l) ? [...l, d[1]] : [l, d[1]] : d[1];
|
|
388
|
-
}
|
|
389
|
-
a(i, r);
|
|
390
|
-
} else
|
|
391
|
-
t != null && o(r, t, n);
|
|
392
|
-
return this;
|
|
393
|
-
}
|
|
394
|
-
get(t, r) {
|
|
395
|
-
if (t = de(t), t) {
|
|
396
|
-
const n = u.findKey(this, t);
|
|
397
|
-
if (n) {
|
|
398
|
-
const s = this[n];
|
|
399
|
-
if (!r)
|
|
400
|
-
return s;
|
|
401
|
-
if (r === !0)
|
|
402
|
-
return Dr(s);
|
|
403
|
-
if (u.isFunction(r))
|
|
404
|
-
return r.call(this, s, n);
|
|
405
|
-
if (u.isRegExp(r))
|
|
406
|
-
return r.exec(s);
|
|
407
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
has(t, r) {
|
|
412
|
-
if (t = de(t), t) {
|
|
413
|
-
const n = u.findKey(this, t);
|
|
414
|
-
return !!(n && this[n] !== void 0 && (!r || De(this, this[n], n, r)));
|
|
415
|
-
}
|
|
416
|
-
return !1;
|
|
417
|
-
}
|
|
418
|
-
delete(t, r) {
|
|
419
|
-
const n = this;
|
|
420
|
-
let s = !1;
|
|
421
|
-
function o(a) {
|
|
422
|
-
if (a = de(a), a) {
|
|
423
|
-
const i = u.findKey(n, a);
|
|
424
|
-
i && (!r || De(n, n[i], i, r)) && (delete n[i], s = !0);
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
return u.isArray(t) ? t.forEach(o) : o(t), s;
|
|
428
|
-
}
|
|
429
|
-
clear(t) {
|
|
430
|
-
const r = Object.keys(this);
|
|
431
|
-
let n = r.length, s = !1;
|
|
432
|
-
for (; n--; ) {
|
|
433
|
-
const o = r[n];
|
|
434
|
-
(!t || De(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
435
|
-
}
|
|
436
|
-
return s;
|
|
437
|
-
}
|
|
438
|
-
normalize(t) {
|
|
439
|
-
const r = this, n = {};
|
|
440
|
-
return u.forEach(this, (s, o) => {
|
|
441
|
-
const a = u.findKey(n, o);
|
|
442
|
-
if (a) {
|
|
443
|
-
r[a] = Pe(s), delete r[o];
|
|
444
|
-
return;
|
|
445
|
-
}
|
|
446
|
-
const i = t ? Hr(o) : String(o).trim();
|
|
447
|
-
i !== o && delete r[o], r[i] = Pe(s), n[i] = !0;
|
|
448
|
-
}), this;
|
|
449
|
-
}
|
|
450
|
-
concat(...t) {
|
|
451
|
-
return this.constructor.concat(this, ...t);
|
|
452
|
-
}
|
|
453
|
-
toJSON(t) {
|
|
454
|
-
const r = /* @__PURE__ */ Object.create(null);
|
|
455
|
-
return u.forEach(this, (n, s) => {
|
|
456
|
-
n != null && n !== !1 && (r[s] = t && u.isArray(n) ? n.join(", ") : n);
|
|
457
|
-
}), r;
|
|
458
|
-
}
|
|
459
|
-
[Symbol.iterator]() {
|
|
460
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
461
|
-
}
|
|
462
|
-
toString() {
|
|
463
|
-
return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
|
|
464
|
-
`);
|
|
465
|
-
}
|
|
466
|
-
getSetCookie() {
|
|
467
|
-
return this.get("set-cookie") || [];
|
|
468
|
-
}
|
|
469
|
-
get [Symbol.toStringTag]() {
|
|
470
|
-
return "AxiosHeaders";
|
|
471
|
-
}
|
|
472
|
-
static from(t) {
|
|
473
|
-
return t instanceof this ? t : new this(t);
|
|
474
|
-
}
|
|
475
|
-
static concat(t, ...r) {
|
|
476
|
-
const n = new this(t);
|
|
477
|
-
return r.forEach((s) => n.set(s)), n;
|
|
478
|
-
}
|
|
479
|
-
static accessor(t) {
|
|
480
|
-
const n = (this[st] = this[st] = {
|
|
481
|
-
accessors: {}
|
|
482
|
-
}).accessors, s = this.prototype;
|
|
483
|
-
function o(a) {
|
|
484
|
-
const i = de(a);
|
|
485
|
-
n[i] || (Gr(s, a), n[i] = !0);
|
|
486
|
-
}
|
|
487
|
-
return u.isArray(t) ? t.forEach(o) : o(t), this;
|
|
488
|
-
}
|
|
252
|
+
reduceDescriptors: At,
|
|
253
|
+
freezeMethods: hr,
|
|
254
|
+
toObjectSet: fr,
|
|
255
|
+
toCamelCase: ur,
|
|
256
|
+
noop: Er,
|
|
257
|
+
toFiniteNumber: Ar,
|
|
258
|
+
findKey: ft,
|
|
259
|
+
global: z,
|
|
260
|
+
isContextDefined: Et,
|
|
261
|
+
isSpecCompliantForm: Or,
|
|
262
|
+
toJSONObject: _r,
|
|
263
|
+
isAsyncFn: Rr,
|
|
264
|
+
isThenable: mr,
|
|
265
|
+
setImmediate: Ot,
|
|
266
|
+
asap: Tr,
|
|
267
|
+
isIterable: Pr
|
|
489
268
|
};
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
"Accept",
|
|
494
|
-
"Accept-Encoding",
|
|
495
|
-
"User-Agent",
|
|
496
|
-
"Authorization"
|
|
497
|
-
]);
|
|
498
|
-
u.reduceDescriptors(U.prototype, ({ value: e }, t) => {
|
|
499
|
-
let r = t[0].toUpperCase() + t.slice(1);
|
|
500
|
-
return {
|
|
501
|
-
get: () => e,
|
|
502
|
-
set(n) {
|
|
503
|
-
this[r] = n;
|
|
504
|
-
}
|
|
505
|
-
};
|
|
506
|
-
});
|
|
507
|
-
u.freezeMethods(U);
|
|
508
|
-
const Mr = "[REDACTED ****]";
|
|
509
|
-
function vr(e) {
|
|
510
|
-
if (u.hasOwnProp(e, "toJSON"))
|
|
511
|
-
return !0;
|
|
512
|
-
let t = Object.getPrototypeOf(e);
|
|
513
|
-
for (; t && t !== Object.prototype; ) {
|
|
514
|
-
if (u.hasOwnProp(t, "toJSON"))
|
|
515
|
-
return !0;
|
|
516
|
-
t = Object.getPrototypeOf(t);
|
|
517
|
-
}
|
|
518
|
-
return !1;
|
|
519
|
-
}
|
|
520
|
-
function jr(e, t) {
|
|
521
|
-
const r = new Set(t.map((o) => String(o).toLowerCase())), n = [], s = (o) => {
|
|
522
|
-
if (o === null || typeof o != "object" || u.isBuffer(o)) return o;
|
|
523
|
-
if (n.indexOf(o) !== -1) return;
|
|
524
|
-
o instanceof U && (o = o.toJSON()), n.push(o);
|
|
525
|
-
let a;
|
|
526
|
-
if (u.isArray(o))
|
|
527
|
-
a = [], o.forEach((i, l) => {
|
|
528
|
-
const c = s(i);
|
|
529
|
-
u.isUndefined(c) || (a[l] = c);
|
|
530
|
-
});
|
|
531
|
-
else {
|
|
532
|
-
if (!u.isPlainObject(o) && vr(o))
|
|
533
|
-
return n.pop(), o;
|
|
534
|
-
a = /* @__PURE__ */ Object.create(null);
|
|
535
|
-
for (const [i, l] of Object.entries(o)) {
|
|
536
|
-
const c = r.has(i.toLowerCase()) ? Mr : s(l);
|
|
537
|
-
u.isUndefined(c) || (a[i] = c);
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
return n.pop(), a;
|
|
541
|
-
};
|
|
542
|
-
return s(e);
|
|
543
|
-
}
|
|
544
|
-
let f = class yt extends Error {
|
|
545
|
-
static from(t, r, n, s, o, a) {
|
|
546
|
-
const i = new yt(t.message, r || t.code, n, s, o);
|
|
269
|
+
let A = class _t extends Error {
|
|
270
|
+
static from(t, r, s, n, o, a) {
|
|
271
|
+
const i = new _t(t.message, r || t.code, s, n, o);
|
|
547
272
|
return i.cause = t, i.name = t.name, t.status != null && i.status == null && (i.status = t.status), a && Object.assign(i, a), i;
|
|
548
273
|
}
|
|
549
274
|
/**
|
|
@@ -557,19 +282,15 @@ let f = class yt extends Error {
|
|
|
557
282
|
*
|
|
558
283
|
* @returns {Error} The created error.
|
|
559
284
|
*/
|
|
560
|
-
constructor(t, r,
|
|
285
|
+
constructor(t, r, s, n, o) {
|
|
561
286
|
super(t), Object.defineProperty(this, "message", {
|
|
562
|
-
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
563
|
-
// this data descriptor into an accessor descriptor on the way in.
|
|
564
|
-
__proto__: null,
|
|
565
287
|
value: t,
|
|
566
288
|
enumerable: !0,
|
|
567
289
|
writable: !0,
|
|
568
290
|
configurable: !0
|
|
569
|
-
}), this.name = "AxiosError", this.isAxiosError = !0, r && (this.code = r),
|
|
291
|
+
}), this.name = "AxiosError", this.isAxiosError = !0, r && (this.code = r), s && (this.config = s), n && (this.request = n), o && (this.response = o, this.status = o.status);
|
|
570
292
|
}
|
|
571
293
|
toJSON() {
|
|
572
|
-
const t = this.config, r = t && u.hasOwnProp(t, "redact") ? t.redact : void 0, n = u.isArray(r) && r.length > 0 ? jr(t, r) : u.toJSONObject(t);
|
|
573
294
|
return {
|
|
574
295
|
// Standard
|
|
575
296
|
message: this.message,
|
|
@@ -583,45 +304,43 @@ let f = class yt extends Error {
|
|
|
583
304
|
columnNumber: this.columnNumber,
|
|
584
305
|
stack: this.stack,
|
|
585
306
|
// Axios
|
|
586
|
-
config:
|
|
307
|
+
config: u.toJSONObject(this.config),
|
|
587
308
|
code: this.code,
|
|
588
309
|
status: this.status
|
|
589
310
|
};
|
|
590
311
|
}
|
|
591
312
|
};
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
const Fr = null;
|
|
607
|
-
function Fe(e) {
|
|
313
|
+
A.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
314
|
+
A.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
315
|
+
A.ECONNABORTED = "ECONNABORTED";
|
|
316
|
+
A.ETIMEDOUT = "ETIMEDOUT";
|
|
317
|
+
A.ERR_NETWORK = "ERR_NETWORK";
|
|
318
|
+
A.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
319
|
+
A.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
320
|
+
A.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
321
|
+
A.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
322
|
+
A.ERR_CANCELED = "ERR_CANCELED";
|
|
323
|
+
A.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
324
|
+
A.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
325
|
+
const Ir = null;
|
|
326
|
+
function ge(e) {
|
|
608
327
|
return u.isPlainObject(e) || u.isArray(e);
|
|
609
328
|
}
|
|
610
|
-
function
|
|
329
|
+
function Rt(e) {
|
|
611
330
|
return u.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
612
331
|
}
|
|
613
|
-
function
|
|
614
|
-
return e ? e.concat(t).map(function(
|
|
615
|
-
return
|
|
332
|
+
function Se(e, t, r) {
|
|
333
|
+
return e ? e.concat(t).map(function(n, o) {
|
|
334
|
+
return n = Rt(n), !r && o ? "[" + n + "]" : n;
|
|
616
335
|
}).join(r ? "." : "") : t;
|
|
617
336
|
}
|
|
618
|
-
function
|
|
619
|
-
return u.isArray(e) && !e.some(
|
|
337
|
+
function Sr(e) {
|
|
338
|
+
return u.isArray(e) && !e.some(ge);
|
|
620
339
|
}
|
|
621
|
-
const
|
|
340
|
+
const br = u.toFlatObject(u, {}, null, function(t) {
|
|
622
341
|
return /^is[A-Z]/.test(t);
|
|
623
342
|
});
|
|
624
|
-
function
|
|
343
|
+
function me(e, t, r) {
|
|
625
344
|
if (!u.isObject(e))
|
|
626
345
|
throw new TypeError("target must be an object");
|
|
627
346
|
t = t || new FormData(), r = u.toFlatObject(
|
|
@@ -632,109 +351,105 @@ function ge(e, t, r) {
|
|
|
632
351
|
indexes: !1
|
|
633
352
|
},
|
|
634
353
|
!1,
|
|
635
|
-
function(
|
|
636
|
-
return !u.isUndefined(
|
|
354
|
+
function(E, f) {
|
|
355
|
+
return !u.isUndefined(f[E]);
|
|
637
356
|
}
|
|
638
357
|
);
|
|
639
|
-
const
|
|
640
|
-
if (!u.isFunction(
|
|
358
|
+
const s = r.metaTokens, n = r.visitor || d, o = r.dots, a = r.indexes, l = (r.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(t);
|
|
359
|
+
if (!u.isFunction(n))
|
|
641
360
|
throw new TypeError("visitor must be a function");
|
|
642
|
-
function
|
|
643
|
-
if (
|
|
644
|
-
if (u.isDate(
|
|
645
|
-
return
|
|
646
|
-
if (u.isBoolean(
|
|
647
|
-
return
|
|
648
|
-
if (!
|
|
649
|
-
throw new
|
|
650
|
-
return u.isArrayBuffer(
|
|
651
|
-
}
|
|
652
|
-
function
|
|
653
|
-
let
|
|
654
|
-
if (u.isReactNative(t) && u.isReactNativeBlob(
|
|
655
|
-
return t.append(
|
|
656
|
-
if (
|
|
657
|
-
if (u.endsWith(
|
|
658
|
-
|
|
659
|
-
else if (u.isArray(
|
|
660
|
-
return
|
|
661
|
-
!(u.isUndefined(
|
|
361
|
+
function c(h) {
|
|
362
|
+
if (h === null) return "";
|
|
363
|
+
if (u.isDate(h))
|
|
364
|
+
return h.toISOString();
|
|
365
|
+
if (u.isBoolean(h))
|
|
366
|
+
return h.toString();
|
|
367
|
+
if (!l && u.isBlob(h))
|
|
368
|
+
throw new A("Blob is not supported. Use a Buffer instead.");
|
|
369
|
+
return u.isArrayBuffer(h) || u.isTypedArray(h) ? l && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
|
370
|
+
}
|
|
371
|
+
function d(h, E, f) {
|
|
372
|
+
let w = h;
|
|
373
|
+
if (u.isReactNative(t) && u.isReactNativeBlob(h))
|
|
374
|
+
return t.append(Se(f, E, o), c(h)), !1;
|
|
375
|
+
if (h && !f && typeof h == "object") {
|
|
376
|
+
if (u.endsWith(E, "{}"))
|
|
377
|
+
E = s ? E : E.slice(0, -2), h = JSON.stringify(h);
|
|
378
|
+
else if (u.isArray(h) && Sr(h) || (u.isFileList(h) || u.endsWith(E, "[]")) && (w = u.toArray(h)))
|
|
379
|
+
return E = Rt(E), w.forEach(function(y, g) {
|
|
380
|
+
!(u.isUndefined(y) || y === null) && t.append(
|
|
662
381
|
// eslint-disable-next-line no-nested-ternary
|
|
663
|
-
a === !0 ?
|
|
664
|
-
|
|
382
|
+
a === !0 ? Se([E], g, o) : a === null ? E : E + "[]",
|
|
383
|
+
c(y)
|
|
665
384
|
);
|
|
666
385
|
}), !1;
|
|
667
386
|
}
|
|
668
|
-
return
|
|
387
|
+
return ge(h) ? !0 : (t.append(Se(f, E, o), c(h)), !1);
|
|
669
388
|
}
|
|
670
|
-
const
|
|
671
|
-
defaultVisitor:
|
|
672
|
-
convertValue:
|
|
673
|
-
isVisitable:
|
|
389
|
+
const p = [], _ = Object.assign(br, {
|
|
390
|
+
defaultVisitor: d,
|
|
391
|
+
convertValue: c,
|
|
392
|
+
isVisitable: ge
|
|
674
393
|
});
|
|
675
|
-
function
|
|
676
|
-
if (!u.isUndefined(
|
|
677
|
-
if (
|
|
678
|
-
throw
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
if (_.indexOf(E) !== -1)
|
|
683
|
-
throw Error("Circular reference detected in " + h.join("."));
|
|
684
|
-
_.push(E), u.forEach(E, function(P, T) {
|
|
685
|
-
(!(u.isUndefined(P) || P === null) && s.call(t, P, u.isString(T) ? T.trim() : T, h, R)) === !0 && m(P, h ? h.concat(T) : [T], A + 1);
|
|
686
|
-
}), _.pop();
|
|
394
|
+
function C(h, E) {
|
|
395
|
+
if (!u.isUndefined(h)) {
|
|
396
|
+
if (p.indexOf(h) !== -1)
|
|
397
|
+
throw Error("Circular reference detected in " + E.join("."));
|
|
398
|
+
p.push(h), u.forEach(h, function(w, x) {
|
|
399
|
+
(!(u.isUndefined(w) || w === null) && n.call(t, w, u.isString(x) ? x.trim() : x, E, _)) === !0 && C(w, E ? E.concat(x) : [x]);
|
|
400
|
+
}), p.pop();
|
|
687
401
|
}
|
|
688
402
|
}
|
|
689
403
|
if (!u.isObject(e))
|
|
690
404
|
throw new TypeError("data must be an object");
|
|
691
|
-
return
|
|
405
|
+
return C(e), t;
|
|
692
406
|
}
|
|
693
|
-
function
|
|
407
|
+
function Ye(e) {
|
|
694
408
|
const t = {
|
|
695
409
|
"!": "%21",
|
|
696
410
|
"'": "%27",
|
|
697
411
|
"(": "%28",
|
|
698
412
|
")": "%29",
|
|
699
413
|
"~": "%7E",
|
|
700
|
-
"%20": "+"
|
|
414
|
+
"%20": "+",
|
|
415
|
+
"%00": "\0"
|
|
701
416
|
};
|
|
702
|
-
return encodeURIComponent(e).replace(/[!'()~]|%20/g, function(
|
|
703
|
-
return t[
|
|
417
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(s) {
|
|
418
|
+
return t[s];
|
|
704
419
|
});
|
|
705
420
|
}
|
|
706
|
-
function
|
|
707
|
-
this._pairs = [], e &&
|
|
421
|
+
function De(e, t) {
|
|
422
|
+
this._pairs = [], e && me(e, this, t);
|
|
708
423
|
}
|
|
709
|
-
const
|
|
710
|
-
|
|
424
|
+
const mt = De.prototype;
|
|
425
|
+
mt.append = function(t, r) {
|
|
711
426
|
this._pairs.push([t, r]);
|
|
712
427
|
};
|
|
713
|
-
|
|
714
|
-
const r = t ? function(
|
|
715
|
-
return t.call(this,
|
|
716
|
-
} :
|
|
717
|
-
return this._pairs.map(function(
|
|
718
|
-
return r(
|
|
428
|
+
mt.toString = function(t) {
|
|
429
|
+
const r = t ? function(s) {
|
|
430
|
+
return t.call(this, s, Ye);
|
|
431
|
+
} : Ye;
|
|
432
|
+
return this._pairs.map(function(n) {
|
|
433
|
+
return r(n[0]) + "=" + r(n[1]);
|
|
719
434
|
}, "").join("&");
|
|
720
435
|
};
|
|
721
|
-
function
|
|
436
|
+
function wr(e) {
|
|
722
437
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
723
438
|
}
|
|
724
|
-
function
|
|
439
|
+
function Tt(e, t, r) {
|
|
725
440
|
if (!t)
|
|
726
441
|
return e;
|
|
727
|
-
const
|
|
442
|
+
const s = r && r.encode || wr, n = u.isFunction(r) ? {
|
|
728
443
|
serialize: r
|
|
729
|
-
} : r, o =
|
|
444
|
+
} : r, o = n && n.serialize;
|
|
730
445
|
let a;
|
|
731
|
-
if (o ? a = o(t,
|
|
446
|
+
if (o ? a = o(t, n) : a = u.isURLSearchParams(t) ? t.toString() : new De(t, n).toString(s), a) {
|
|
732
447
|
const i = e.indexOf("#");
|
|
733
448
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
|
|
734
449
|
}
|
|
735
450
|
return e;
|
|
736
451
|
}
|
|
737
|
-
class
|
|
452
|
+
class Xe {
|
|
738
453
|
constructor() {
|
|
739
454
|
this.handlers = [];
|
|
740
455
|
}
|
|
@@ -747,12 +462,12 @@ class at {
|
|
|
747
462
|
*
|
|
748
463
|
* @return {Number} An ID used to remove interceptor later
|
|
749
464
|
*/
|
|
750
|
-
use(t, r,
|
|
465
|
+
use(t, r, s) {
|
|
751
466
|
return this.handlers.push({
|
|
752
467
|
fulfilled: t,
|
|
753
468
|
rejected: r,
|
|
754
|
-
synchronous:
|
|
755
|
-
runWhen:
|
|
469
|
+
synchronous: s ? s.synchronous : !1,
|
|
470
|
+
runWhen: s ? s.runWhen : null
|
|
756
471
|
}), this.handlers.length - 1;
|
|
757
472
|
}
|
|
758
473
|
/**
|
|
@@ -784,90 +499,89 @@ class at {
|
|
|
784
499
|
* @returns {void}
|
|
785
500
|
*/
|
|
786
501
|
forEach(t) {
|
|
787
|
-
u.forEach(this.handlers, function(
|
|
788
|
-
|
|
502
|
+
u.forEach(this.handlers, function(s) {
|
|
503
|
+
s !== null && t(s);
|
|
789
504
|
});
|
|
790
505
|
}
|
|
791
506
|
}
|
|
792
|
-
const
|
|
507
|
+
const Be = {
|
|
793
508
|
silentJSONParsing: !0,
|
|
794
509
|
forcedJSONParsing: !0,
|
|
795
510
|
clarifyTimeoutError: !1,
|
|
796
511
|
legacyInterceptorReqResOrdering: !0
|
|
797
|
-
},
|
|
512
|
+
}, yr = typeof URLSearchParams < "u" ? URLSearchParams : De, Cr = typeof FormData < "u" ? FormData : null, Lr = typeof Blob < "u" ? Blob : null, gr = {
|
|
798
513
|
isBrowser: !0,
|
|
799
514
|
classes: {
|
|
800
|
-
URLSearchParams:
|
|
801
|
-
FormData:
|
|
802
|
-
Blob:
|
|
515
|
+
URLSearchParams: yr,
|
|
516
|
+
FormData: Cr,
|
|
517
|
+
Blob: Lr
|
|
803
518
|
},
|
|
804
519
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
805
|
-
},
|
|
806
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
520
|
+
}, He = typeof window < "u" && typeof document < "u", Ve = typeof navigator == "object" && navigator || void 0, Vr = He && (!Ve || ["ReactNative", "NativeScript", "NS"].indexOf(Ve.product) < 0), Nr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
521
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ur = He && window.location.href || "http://localhost", xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
807
522
|
__proto__: null,
|
|
808
|
-
hasBrowserEnv:
|
|
809
|
-
hasStandardBrowserEnv:
|
|
810
|
-
hasStandardBrowserWebWorkerEnv:
|
|
811
|
-
navigator:
|
|
812
|
-
origin:
|
|
813
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
814
|
-
...
|
|
815
|
-
...
|
|
523
|
+
hasBrowserEnv: He,
|
|
524
|
+
hasStandardBrowserEnv: Vr,
|
|
525
|
+
hasStandardBrowserWebWorkerEnv: Nr,
|
|
526
|
+
navigator: Ve,
|
|
527
|
+
origin: Ur
|
|
528
|
+
}, Symbol.toStringTag, { value: "Module" })), L = {
|
|
529
|
+
...xr,
|
|
530
|
+
...gr
|
|
816
531
|
};
|
|
817
|
-
function
|
|
818
|
-
return
|
|
819
|
-
visitor: function(r,
|
|
820
|
-
return
|
|
532
|
+
function Dr(e, t) {
|
|
533
|
+
return me(e, new L.classes.URLSearchParams(), {
|
|
534
|
+
visitor: function(r, s, n, o) {
|
|
535
|
+
return L.isNode && u.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
821
536
|
},
|
|
822
537
|
...t
|
|
823
538
|
});
|
|
824
539
|
}
|
|
825
|
-
function
|
|
540
|
+
function Br(e) {
|
|
826
541
|
return u.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
827
542
|
}
|
|
828
|
-
function
|
|
543
|
+
function Hr(e) {
|
|
829
544
|
const t = {}, r = Object.keys(e);
|
|
830
|
-
let
|
|
831
|
-
const
|
|
545
|
+
let s;
|
|
546
|
+
const n = r.length;
|
|
832
547
|
let o;
|
|
833
|
-
for (
|
|
834
|
-
o = r[
|
|
548
|
+
for (s = 0; s < n; s++)
|
|
549
|
+
o = r[s], t[o] = e[o];
|
|
835
550
|
return t;
|
|
836
551
|
}
|
|
837
|
-
function
|
|
838
|
-
function t(r,
|
|
552
|
+
function Pt(e) {
|
|
553
|
+
function t(r, s, n, o) {
|
|
839
554
|
let a = r[o++];
|
|
840
555
|
if (a === "__proto__") return !0;
|
|
841
556
|
const i = Number.isFinite(+a), l = o >= r.length;
|
|
842
|
-
return a = !a && u.isArray(
|
|
557
|
+
return a = !a && u.isArray(n) ? n.length : a, l ? (u.hasOwnProp(n, a) ? n[a] = [n[a], s] : n[a] = s, !i) : ((!n[a] || !u.isObject(n[a])) && (n[a] = []), t(r, s, n[a], o) && u.isArray(n[a]) && (n[a] = Hr(n[a])), !i);
|
|
843
558
|
}
|
|
844
559
|
if (u.isFormData(e) && u.isFunction(e.entries)) {
|
|
845
560
|
const r = {};
|
|
846
|
-
return u.forEachEntry(e, (
|
|
847
|
-
t(
|
|
561
|
+
return u.forEachEntry(e, (s, n) => {
|
|
562
|
+
t(Br(s), n, r, 0);
|
|
848
563
|
}), r;
|
|
849
564
|
}
|
|
850
565
|
return null;
|
|
851
566
|
}
|
|
852
|
-
|
|
853
|
-
function nn(e, t, r) {
|
|
567
|
+
function Gr(e, t, r) {
|
|
854
568
|
if (u.isString(e))
|
|
855
569
|
try {
|
|
856
570
|
return (t || JSON.parse)(e), u.trim(e);
|
|
857
|
-
} catch (
|
|
858
|
-
if (
|
|
859
|
-
throw
|
|
571
|
+
} catch (s) {
|
|
572
|
+
if (s.name !== "SyntaxError")
|
|
573
|
+
throw s;
|
|
860
574
|
}
|
|
861
575
|
return (r || JSON.stringify)(e);
|
|
862
576
|
}
|
|
863
|
-
const
|
|
864
|
-
transitional:
|
|
577
|
+
const oe = {
|
|
578
|
+
transitional: Be,
|
|
865
579
|
adapter: ["xhr", "http", "fetch"],
|
|
866
580
|
transformRequest: [
|
|
867
581
|
function(t, r) {
|
|
868
|
-
const
|
|
582
|
+
const s = r.getContentType() || "", n = s.indexOf("application/json") > -1, o = u.isObject(t);
|
|
869
583
|
if (o && u.isHTMLForm(t) && (t = new FormData(t)), u.isFormData(t))
|
|
870
|
-
return
|
|
584
|
+
return n ? JSON.stringify(Pt(t)) : t;
|
|
871
585
|
if (u.isArrayBuffer(t) || u.isBuffer(t) || u.isStream(t) || u.isFile(t) || u.isBlob(t) || u.isReadableStream(t))
|
|
872
586
|
return t;
|
|
873
587
|
if (u.isArrayBufferView(t))
|
|
@@ -876,33 +590,32 @@ const fe = {
|
|
|
876
590
|
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
877
591
|
let i;
|
|
878
592
|
if (o) {
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
return ge(
|
|
593
|
+
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
|
594
|
+
return Dr(t, this.formSerializer).toString();
|
|
595
|
+
if ((i = u.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
|
|
596
|
+
const l = this.env && this.env.FormData;
|
|
597
|
+
return me(
|
|
885
598
|
i ? { "files[]": t } : t,
|
|
886
|
-
|
|
887
|
-
|
|
599
|
+
l && new l(),
|
|
600
|
+
this.formSerializer
|
|
888
601
|
);
|
|
889
602
|
}
|
|
890
603
|
}
|
|
891
|
-
return o ||
|
|
604
|
+
return o || n ? (r.setContentType("application/json", !1), Gr(t)) : t;
|
|
892
605
|
}
|
|
893
606
|
],
|
|
894
607
|
transformResponse: [
|
|
895
608
|
function(t) {
|
|
896
|
-
const r =
|
|
609
|
+
const r = this.transitional || oe.transitional, s = r && r.forcedJSONParsing, n = this.responseType === "json";
|
|
897
610
|
if (u.isResponse(t) || u.isReadableStream(t))
|
|
898
611
|
return t;
|
|
899
|
-
if (t && u.isString(t) && (
|
|
900
|
-
const
|
|
612
|
+
if (t && u.isString(t) && (s && !this.responseType || n)) {
|
|
613
|
+
const a = !(r && r.silentJSONParsing) && n;
|
|
901
614
|
try {
|
|
902
|
-
return JSON.parse(t,
|
|
903
|
-
} catch (
|
|
904
|
-
if (
|
|
905
|
-
throw
|
|
615
|
+
return JSON.parse(t, this.parseReviver);
|
|
616
|
+
} catch (i) {
|
|
617
|
+
if (a)
|
|
618
|
+
throw i.name === "SyntaxError" ? A.from(i, A.ERR_BAD_RESPONSE, this, null, this.response) : i;
|
|
906
619
|
}
|
|
907
620
|
}
|
|
908
621
|
return t;
|
|
@@ -918,8 +631,8 @@ const fe = {
|
|
|
918
631
|
maxContentLength: -1,
|
|
919
632
|
maxBodyLength: -1,
|
|
920
633
|
env: {
|
|
921
|
-
FormData:
|
|
922
|
-
Blob:
|
|
634
|
+
FormData: L.classes.FormData,
|
|
635
|
+
Blob: L.classes.Blob
|
|
923
636
|
},
|
|
924
637
|
validateStatus: function(t) {
|
|
925
638
|
return t >= 200 && t < 300;
|
|
@@ -931,20 +644,248 @@ const fe = {
|
|
|
931
644
|
}
|
|
932
645
|
}
|
|
933
646
|
};
|
|
934
|
-
u.forEach(["delete", "get", "head", "post", "put", "patch"
|
|
935
|
-
|
|
647
|
+
u.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
648
|
+
oe.headers[e] = {};
|
|
649
|
+
});
|
|
650
|
+
const Mr = u.toObjectSet([
|
|
651
|
+
"age",
|
|
652
|
+
"authorization",
|
|
653
|
+
"content-length",
|
|
654
|
+
"content-type",
|
|
655
|
+
"etag",
|
|
656
|
+
"expires",
|
|
657
|
+
"from",
|
|
658
|
+
"host",
|
|
659
|
+
"if-modified-since",
|
|
660
|
+
"if-unmodified-since",
|
|
661
|
+
"last-modified",
|
|
662
|
+
"location",
|
|
663
|
+
"max-forwards",
|
|
664
|
+
"proxy-authorization",
|
|
665
|
+
"referer",
|
|
666
|
+
"retry-after",
|
|
667
|
+
"user-agent"
|
|
668
|
+
]), vr = (e) => {
|
|
669
|
+
const t = {};
|
|
670
|
+
let r, s, n;
|
|
671
|
+
return e && e.split(`
|
|
672
|
+
`).forEach(function(a) {
|
|
673
|
+
n = a.indexOf(":"), r = a.substring(0, n).trim().toLowerCase(), s = a.substring(n + 1).trim(), !(!r || t[r] && Mr[r]) && (r === "set-cookie" ? t[r] ? t[r].push(s) : t[r] = [s] : t[r] = t[r] ? t[r] + ", " + s : s);
|
|
674
|
+
}), t;
|
|
675
|
+
}, Je = /* @__PURE__ */ Symbol("internals"), jr = (e) => !/[\r\n]/.test(e);
|
|
676
|
+
function It(e, t) {
|
|
677
|
+
if (!(e === !1 || e == null)) {
|
|
678
|
+
if (u.isArray(e)) {
|
|
679
|
+
e.forEach((r) => It(r, t));
|
|
680
|
+
return;
|
|
681
|
+
}
|
|
682
|
+
if (!jr(String(e)))
|
|
683
|
+
throw new Error(`Invalid character in header content ["${t}"]`);
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
function te(e) {
|
|
687
|
+
return e && String(e).trim().toLowerCase();
|
|
688
|
+
}
|
|
689
|
+
function kr(e) {
|
|
690
|
+
let t = e.length;
|
|
691
|
+
for (; t > 0; ) {
|
|
692
|
+
const r = e.charCodeAt(t - 1);
|
|
693
|
+
if (r !== 10 && r !== 13)
|
|
694
|
+
break;
|
|
695
|
+
t -= 1;
|
|
696
|
+
}
|
|
697
|
+
return t === e.length ? e : e.slice(0, t);
|
|
698
|
+
}
|
|
699
|
+
function he(e) {
|
|
700
|
+
return e === !1 || e == null ? e : u.isArray(e) ? e.map(he) : kr(String(e));
|
|
701
|
+
}
|
|
702
|
+
function Fr(e) {
|
|
703
|
+
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
704
|
+
let s;
|
|
705
|
+
for (; s = r.exec(e); )
|
|
706
|
+
t[s[1]] = s[2];
|
|
707
|
+
return t;
|
|
708
|
+
}
|
|
709
|
+
const qr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
710
|
+
function be(e, t, r, s, n) {
|
|
711
|
+
if (u.isFunction(s))
|
|
712
|
+
return s.call(this, t, r);
|
|
713
|
+
if (n && (t = r), !!u.isString(t)) {
|
|
714
|
+
if (u.isString(s))
|
|
715
|
+
return t.indexOf(s) !== -1;
|
|
716
|
+
if (u.isRegExp(s))
|
|
717
|
+
return s.test(t);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
function $r(e) {
|
|
721
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, s) => r.toUpperCase() + s);
|
|
722
|
+
}
|
|
723
|
+
function zr(e, t) {
|
|
724
|
+
const r = u.toCamelCase(" " + t);
|
|
725
|
+
["get", "set", "has"].forEach((s) => {
|
|
726
|
+
Object.defineProperty(e, s + r, {
|
|
727
|
+
value: function(n, o, a) {
|
|
728
|
+
return this[s].call(this, t, n, o, a);
|
|
729
|
+
},
|
|
730
|
+
configurable: !0
|
|
731
|
+
});
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
let U = class {
|
|
735
|
+
constructor(t) {
|
|
736
|
+
t && this.set(t);
|
|
737
|
+
}
|
|
738
|
+
set(t, r, s) {
|
|
739
|
+
const n = this;
|
|
740
|
+
function o(i, l, c) {
|
|
741
|
+
const d = te(l);
|
|
742
|
+
if (!d)
|
|
743
|
+
throw new Error("header name must be a non-empty string");
|
|
744
|
+
const p = u.findKey(n, d);
|
|
745
|
+
(!p || n[p] === void 0 || c === !0 || c === void 0 && n[p] !== !1) && (It(i, l), n[p || l] = he(i));
|
|
746
|
+
}
|
|
747
|
+
const a = (i, l) => u.forEach(i, (c, d) => o(c, d, l));
|
|
748
|
+
if (u.isPlainObject(t) || t instanceof this.constructor)
|
|
749
|
+
a(t, r);
|
|
750
|
+
else if (u.isString(t) && (t = t.trim()) && !qr(t))
|
|
751
|
+
a(vr(t), r);
|
|
752
|
+
else if (u.isObject(t) && u.isIterable(t)) {
|
|
753
|
+
let i = {}, l, c;
|
|
754
|
+
for (const d of t) {
|
|
755
|
+
if (!u.isArray(d))
|
|
756
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
757
|
+
i[c = d[0]] = (l = i[c]) ? u.isArray(l) ? [...l, d[1]] : [l, d[1]] : d[1];
|
|
758
|
+
}
|
|
759
|
+
a(i, r);
|
|
760
|
+
} else
|
|
761
|
+
t != null && o(r, t, s);
|
|
762
|
+
return this;
|
|
763
|
+
}
|
|
764
|
+
get(t, r) {
|
|
765
|
+
if (t = te(t), t) {
|
|
766
|
+
const s = u.findKey(this, t);
|
|
767
|
+
if (s) {
|
|
768
|
+
const n = this[s];
|
|
769
|
+
if (!r)
|
|
770
|
+
return n;
|
|
771
|
+
if (r === !0)
|
|
772
|
+
return Fr(n);
|
|
773
|
+
if (u.isFunction(r))
|
|
774
|
+
return r.call(this, n, s);
|
|
775
|
+
if (u.isRegExp(r))
|
|
776
|
+
return r.exec(n);
|
|
777
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
has(t, r) {
|
|
782
|
+
if (t = te(t), t) {
|
|
783
|
+
const s = u.findKey(this, t);
|
|
784
|
+
return !!(s && this[s] !== void 0 && (!r || be(this, this[s], s, r)));
|
|
785
|
+
}
|
|
786
|
+
return !1;
|
|
787
|
+
}
|
|
788
|
+
delete(t, r) {
|
|
789
|
+
const s = this;
|
|
790
|
+
let n = !1;
|
|
791
|
+
function o(a) {
|
|
792
|
+
if (a = te(a), a) {
|
|
793
|
+
const i = u.findKey(s, a);
|
|
794
|
+
i && (!r || be(s, s[i], i, r)) && (delete s[i], n = !0);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
return u.isArray(t) ? t.forEach(o) : o(t), n;
|
|
798
|
+
}
|
|
799
|
+
clear(t) {
|
|
800
|
+
const r = Object.keys(this);
|
|
801
|
+
let s = r.length, n = !1;
|
|
802
|
+
for (; s--; ) {
|
|
803
|
+
const o = r[s];
|
|
804
|
+
(!t || be(this, this[o], o, t, !0)) && (delete this[o], n = !0);
|
|
805
|
+
}
|
|
806
|
+
return n;
|
|
807
|
+
}
|
|
808
|
+
normalize(t) {
|
|
809
|
+
const r = this, s = {};
|
|
810
|
+
return u.forEach(this, (n, o) => {
|
|
811
|
+
const a = u.findKey(s, o);
|
|
812
|
+
if (a) {
|
|
813
|
+
r[a] = he(n), delete r[o];
|
|
814
|
+
return;
|
|
815
|
+
}
|
|
816
|
+
const i = t ? $r(o) : String(o).trim();
|
|
817
|
+
i !== o && delete r[o], r[i] = he(n), s[i] = !0;
|
|
818
|
+
}), this;
|
|
819
|
+
}
|
|
820
|
+
concat(...t) {
|
|
821
|
+
return this.constructor.concat(this, ...t);
|
|
822
|
+
}
|
|
823
|
+
toJSON(t) {
|
|
824
|
+
const r = /* @__PURE__ */ Object.create(null);
|
|
825
|
+
return u.forEach(this, (s, n) => {
|
|
826
|
+
s != null && s !== !1 && (r[n] = t && u.isArray(s) ? s.join(", ") : s);
|
|
827
|
+
}), r;
|
|
828
|
+
}
|
|
829
|
+
[Symbol.iterator]() {
|
|
830
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
831
|
+
}
|
|
832
|
+
toString() {
|
|
833
|
+
return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
|
|
834
|
+
`);
|
|
835
|
+
}
|
|
836
|
+
getSetCookie() {
|
|
837
|
+
return this.get("set-cookie") || [];
|
|
838
|
+
}
|
|
839
|
+
get [Symbol.toStringTag]() {
|
|
840
|
+
return "AxiosHeaders";
|
|
841
|
+
}
|
|
842
|
+
static from(t) {
|
|
843
|
+
return t instanceof this ? t : new this(t);
|
|
844
|
+
}
|
|
845
|
+
static concat(t, ...r) {
|
|
846
|
+
const s = new this(t);
|
|
847
|
+
return r.forEach((n) => s.set(n)), s;
|
|
848
|
+
}
|
|
849
|
+
static accessor(t) {
|
|
850
|
+
const s = (this[Je] = this[Je] = {
|
|
851
|
+
accessors: {}
|
|
852
|
+
}).accessors, n = this.prototype;
|
|
853
|
+
function o(a) {
|
|
854
|
+
const i = te(a);
|
|
855
|
+
s[i] || (zr(n, a), s[i] = !0);
|
|
856
|
+
}
|
|
857
|
+
return u.isArray(t) ? t.forEach(o) : o(t), this;
|
|
858
|
+
}
|
|
859
|
+
};
|
|
860
|
+
U.accessor([
|
|
861
|
+
"Content-Type",
|
|
862
|
+
"Content-Length",
|
|
863
|
+
"Accept",
|
|
864
|
+
"Accept-Encoding",
|
|
865
|
+
"User-Agent",
|
|
866
|
+
"Authorization"
|
|
867
|
+
]);
|
|
868
|
+
u.reduceDescriptors(U.prototype, ({ value: e }, t) => {
|
|
869
|
+
let r = t[0].toUpperCase() + t.slice(1);
|
|
870
|
+
return {
|
|
871
|
+
get: () => e,
|
|
872
|
+
set(s) {
|
|
873
|
+
this[r] = s;
|
|
874
|
+
}
|
|
875
|
+
};
|
|
936
876
|
});
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
877
|
+
u.freezeMethods(U);
|
|
878
|
+
function we(e, t) {
|
|
879
|
+
const r = this || oe, s = t || r, n = U.from(s.headers);
|
|
880
|
+
let o = s.data;
|
|
940
881
|
return u.forEach(e, function(i) {
|
|
941
|
-
o = i.call(r, o,
|
|
942
|
-
}),
|
|
882
|
+
o = i.call(r, o, n.normalize(), t ? t.status : void 0);
|
|
883
|
+
}), n.normalize(), o;
|
|
943
884
|
}
|
|
944
|
-
function
|
|
885
|
+
function St(e) {
|
|
945
886
|
return !!(e && e.__CANCEL__);
|
|
946
887
|
}
|
|
947
|
-
let
|
|
888
|
+
let ae = class extends A {
|
|
948
889
|
/**
|
|
949
890
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
950
891
|
*
|
|
@@ -954,101 +895,98 @@ let Ee = class extends f {
|
|
|
954
895
|
*
|
|
955
896
|
* @returns {CanceledError} The created error.
|
|
956
897
|
*/
|
|
957
|
-
constructor(t, r,
|
|
958
|
-
super(t ?? "canceled",
|
|
898
|
+
constructor(t, r, s) {
|
|
899
|
+
super(t ?? "canceled", A.ERR_CANCELED, r, s), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
959
900
|
}
|
|
960
901
|
};
|
|
961
|
-
function
|
|
962
|
-
const
|
|
963
|
-
!r.status || !
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
902
|
+
function bt(e, t, r) {
|
|
903
|
+
const s = r.config.validateStatus;
|
|
904
|
+
!r.status || !s || s(r.status) ? e(r) : t(
|
|
905
|
+
new A(
|
|
906
|
+
"Request failed with status code " + r.status,
|
|
907
|
+
[A.ERR_BAD_REQUEST, A.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
908
|
+
r.config,
|
|
909
|
+
r.request,
|
|
910
|
+
r
|
|
911
|
+
)
|
|
912
|
+
);
|
|
970
913
|
}
|
|
971
|
-
function
|
|
972
|
-
const t = /^([-+\w]{1,25})
|
|
914
|
+
function Wr(e) {
|
|
915
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
973
916
|
return t && t[1] || "";
|
|
974
917
|
}
|
|
975
|
-
function
|
|
918
|
+
function Yr(e, t) {
|
|
976
919
|
e = e || 10;
|
|
977
|
-
const r = new Array(e),
|
|
978
|
-
let
|
|
920
|
+
const r = new Array(e), s = new Array(e);
|
|
921
|
+
let n = 0, o = 0, a;
|
|
979
922
|
return t = t !== void 0 ? t : 1e3, function(l) {
|
|
980
|
-
const c = Date.now(), d =
|
|
981
|
-
a || (a = c), r[
|
|
923
|
+
const c = Date.now(), d = s[o];
|
|
924
|
+
a || (a = c), r[n] = l, s[n] = c;
|
|
982
925
|
let p = o, _ = 0;
|
|
983
|
-
for (; p !==
|
|
926
|
+
for (; p !== n; )
|
|
984
927
|
_ += r[p++], p = p % e;
|
|
985
|
-
if (
|
|
928
|
+
if (n = (n + 1) % e, n === o && (o = (o + 1) % e), c - a < t)
|
|
986
929
|
return;
|
|
987
|
-
const
|
|
988
|
-
return
|
|
930
|
+
const C = d && c - d;
|
|
931
|
+
return C ? Math.round(_ * 1e3 / C) : void 0;
|
|
989
932
|
};
|
|
990
933
|
}
|
|
991
|
-
function
|
|
992
|
-
let r = 0,
|
|
934
|
+
function Xr(e, t) {
|
|
935
|
+
let r = 0, s = 1e3 / t, n, o;
|
|
993
936
|
const a = (c, d = Date.now()) => {
|
|
994
|
-
r = d,
|
|
937
|
+
r = d, n = null, o && (clearTimeout(o), o = null), e(...c);
|
|
995
938
|
};
|
|
996
939
|
return [(...c) => {
|
|
997
940
|
const d = Date.now(), p = d - r;
|
|
998
|
-
p >=
|
|
999
|
-
o = null, a(
|
|
1000
|
-
},
|
|
1001
|
-
}, () =>
|
|
941
|
+
p >= s ? a(c, d) : (n = c, o || (o = setTimeout(() => {
|
|
942
|
+
o = null, a(n);
|
|
943
|
+
}, s - p)));
|
|
944
|
+
}, () => n && a(n)];
|
|
1002
945
|
}
|
|
1003
|
-
const
|
|
1004
|
-
let
|
|
1005
|
-
const
|
|
1006
|
-
return
|
|
1007
|
-
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, l =
|
|
1008
|
-
|
|
946
|
+
const Ee = (e, t, r = 3) => {
|
|
947
|
+
let s = 0;
|
|
948
|
+
const n = Yr(50, 250);
|
|
949
|
+
return Xr((o) => {
|
|
950
|
+
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, l = a - s, c = n(l), d = a <= i;
|
|
951
|
+
s = a;
|
|
1009
952
|
const p = {
|
|
1010
|
-
loaded:
|
|
953
|
+
loaded: a,
|
|
1011
954
|
total: i,
|
|
1012
|
-
progress: i ?
|
|
1013
|
-
bytes:
|
|
1014
|
-
rate:
|
|
1015
|
-
estimated:
|
|
955
|
+
progress: i ? a / i : void 0,
|
|
956
|
+
bytes: l,
|
|
957
|
+
rate: c || void 0,
|
|
958
|
+
estimated: c && i && d ? (i - a) / c : void 0,
|
|
1016
959
|
event: o,
|
|
1017
960
|
lengthComputable: i != null,
|
|
1018
961
|
[t ? "download" : "upload"]: !0
|
|
1019
962
|
};
|
|
1020
963
|
e(p);
|
|
1021
964
|
}, r);
|
|
1022
|
-
},
|
|
965
|
+
}, Ze = (e, t) => {
|
|
1023
966
|
const r = e != null;
|
|
1024
967
|
return [
|
|
1025
|
-
(
|
|
968
|
+
(s) => t[0]({
|
|
1026
969
|
lengthComputable: r,
|
|
1027
970
|
total: e,
|
|
1028
|
-
loaded:
|
|
971
|
+
loaded: s
|
|
1029
972
|
}),
|
|
1030
973
|
t[1]
|
|
1031
974
|
];
|
|
1032
|
-
},
|
|
1033
|
-
new URL(
|
|
1034
|
-
|
|
1035
|
-
) : () => !0,
|
|
975
|
+
}, Ke = (e) => (...t) => u.asap(() => e(...t)), Jr = L.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, L.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
976
|
+
new URL(L.origin),
|
|
977
|
+
L.navigator && /(msie|trident)/i.test(L.navigator.userAgent)
|
|
978
|
+
) : () => !0, Zr = L.hasStandardBrowserEnv ? (
|
|
1036
979
|
// Standard browser envs support document.cookie
|
|
1037
980
|
{
|
|
1038
|
-
write(e, t, r,
|
|
981
|
+
write(e, t, r, s, n, o, a) {
|
|
1039
982
|
if (typeof document > "u") return;
|
|
1040
983
|
const i = [`${e}=${encodeURIComponent(t)}`];
|
|
1041
|
-
u.isNumber(r) && i.push(`expires=${new Date(r).toUTCString()}`), u.isString(
|
|
984
|
+
u.isNumber(r) && i.push(`expires=${new Date(r).toUTCString()}`), u.isString(s) && i.push(`path=${s}`), u.isString(n) && i.push(`domain=${n}`), o === !0 && i.push("secure"), u.isString(a) && i.push(`SameSite=${a}`), document.cookie = i.join("; ");
|
|
1042
985
|
},
|
|
1043
986
|
read(e) {
|
|
1044
987
|
if (typeof document > "u") return null;
|
|
1045
|
-
const t = document.cookie.
|
|
1046
|
-
|
|
1047
|
-
const n = t[r].replace(/^\s+/, ""), s = n.indexOf("=");
|
|
1048
|
-
if (s !== -1 && n.slice(0, s) === e)
|
|
1049
|
-
return decodeURIComponent(n.slice(s + 1));
|
|
1050
|
-
}
|
|
1051
|
-
return null;
|
|
988
|
+
const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
|
|
989
|
+
return t ? decodeURIComponent(t[1]) : null;
|
|
1052
990
|
},
|
|
1053
991
|
remove(e) {
|
|
1054
992
|
this.write(e, "", Date.now() - 864e5, "/");
|
|
@@ -1066,53 +1004,44 @@ const Se = (e, t, r = 3) => {
|
|
|
1066
1004
|
}
|
|
1067
1005
|
}
|
|
1068
1006
|
);
|
|
1069
|
-
function
|
|
1007
|
+
function Kr(e) {
|
|
1070
1008
|
return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1071
1009
|
}
|
|
1072
|
-
function
|
|
1010
|
+
function Qr(e, t) {
|
|
1073
1011
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1074
1012
|
}
|
|
1075
|
-
function
|
|
1076
|
-
let
|
|
1077
|
-
return e && (
|
|
1013
|
+
function wt(e, t, r) {
|
|
1014
|
+
let s = !Kr(t);
|
|
1015
|
+
return e && (s || r == !1) ? Qr(e, t) : t;
|
|
1078
1016
|
}
|
|
1079
|
-
const
|
|
1080
|
-
function
|
|
1017
|
+
const Qe = (e) => e instanceof U ? { ...e } : e;
|
|
1018
|
+
function Y(e, t) {
|
|
1081
1019
|
t = t || {};
|
|
1082
|
-
const r =
|
|
1083
|
-
|
|
1084
|
-
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
1085
|
-
// this data descriptor into an accessor descriptor on the way in.
|
|
1086
|
-
__proto__: null,
|
|
1087
|
-
value: Object.prototype.hasOwnProperty,
|
|
1088
|
-
enumerable: !1,
|
|
1089
|
-
writable: !0,
|
|
1090
|
-
configurable: !0
|
|
1091
|
-
});
|
|
1092
|
-
function n(c, d, p, _) {
|
|
1020
|
+
const r = {};
|
|
1021
|
+
function s(c, d, p, _) {
|
|
1093
1022
|
return u.isPlainObject(c) && u.isPlainObject(d) ? u.merge.call({ caseless: _ }, c, d) : u.isPlainObject(d) ? u.merge({}, d) : u.isArray(d) ? d.slice() : d;
|
|
1094
1023
|
}
|
|
1095
|
-
function
|
|
1024
|
+
function n(c, d, p, _) {
|
|
1096
1025
|
if (u.isUndefined(d)) {
|
|
1097
1026
|
if (!u.isUndefined(c))
|
|
1098
|
-
return
|
|
1099
|
-
} else return
|
|
1027
|
+
return s(void 0, c, p, _);
|
|
1028
|
+
} else return s(c, d, p, _);
|
|
1100
1029
|
}
|
|
1101
1030
|
function o(c, d) {
|
|
1102
1031
|
if (!u.isUndefined(d))
|
|
1103
|
-
return
|
|
1032
|
+
return s(void 0, d);
|
|
1104
1033
|
}
|
|
1105
1034
|
function a(c, d) {
|
|
1106
1035
|
if (u.isUndefined(d)) {
|
|
1107
1036
|
if (!u.isUndefined(c))
|
|
1108
|
-
return
|
|
1109
|
-
} else return
|
|
1037
|
+
return s(void 0, c);
|
|
1038
|
+
} else return s(void 0, d);
|
|
1110
1039
|
}
|
|
1111
1040
|
function i(c, d, p) {
|
|
1112
|
-
if (
|
|
1113
|
-
return
|
|
1114
|
-
if (
|
|
1115
|
-
return
|
|
1041
|
+
if (p in t)
|
|
1042
|
+
return s(c, d);
|
|
1043
|
+
if (p in e)
|
|
1044
|
+
return s(void 0, c);
|
|
1116
1045
|
}
|
|
1117
1046
|
const l = {
|
|
1118
1047
|
url: o,
|
|
@@ -1141,133 +1070,128 @@ function ee(e, t) {
|
|
|
1141
1070
|
httpsAgent: a,
|
|
1142
1071
|
cancelToken: a,
|
|
1143
1072
|
socketPath: a,
|
|
1144
|
-
allowedSocketPaths: a,
|
|
1145
1073
|
responseEncoding: a,
|
|
1146
1074
|
validateStatus: i,
|
|
1147
|
-
headers: (c, d, p) =>
|
|
1075
|
+
headers: (c, d, p) => n(Qe(c), Qe(d), p, !0)
|
|
1148
1076
|
};
|
|
1149
1077
|
return u.forEach(Object.keys({ ...e, ...t }), function(d) {
|
|
1150
1078
|
if (d === "__proto__" || d === "constructor" || d === "prototype") return;
|
|
1151
|
-
const p = u.hasOwnProp(l, d) ? l[d] :
|
|
1152
|
-
u.isUndefined(
|
|
1079
|
+
const p = u.hasOwnProp(l, d) ? l[d] : n, _ = p(e[d], t[d], d);
|
|
1080
|
+
u.isUndefined(_) && p !== i || (r[d] = _);
|
|
1153
1081
|
}), r;
|
|
1154
1082
|
}
|
|
1155
|
-
const
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
}
|
|
1161
|
-
Object.entries(t).forEach(([n, s]) => {
|
|
1162
|
-
pn.includes(n.toLowerCase()) && e.set(n, s);
|
|
1163
|
-
});
|
|
1164
|
-
}
|
|
1165
|
-
const fn = (e) => encodeURIComponent(e).replace(
|
|
1166
|
-
/%([0-9A-F]{2})/gi,
|
|
1167
|
-
(t, r) => String.fromCharCode(parseInt(r, 16))
|
|
1168
|
-
), Ut = (e) => {
|
|
1169
|
-
const t = ee({}, e), r = (_) => u.hasOwnProp(t, _) ? t[_] : void 0, n = r("data");
|
|
1170
|
-
let s = r("withXSRFToken");
|
|
1171
|
-
const o = r("xsrfHeaderName"), a = r("xsrfCookieName");
|
|
1172
|
-
let i = r("headers");
|
|
1173
|
-
const l = r("auth"), c = r("baseURL"), d = r("allowAbsoluteUrls"), p = r("url");
|
|
1174
|
-
if (t.headers = i = U.from(i), t.url = Lt(
|
|
1175
|
-
Vt(c, p, d),
|
|
1083
|
+
const yt = (e) => {
|
|
1084
|
+
const t = Y({}, e);
|
|
1085
|
+
let { data: r, withXSRFToken: s, xsrfHeaderName: n, xsrfCookieName: o, headers: a, auth: i } = t;
|
|
1086
|
+
if (t.headers = a = U.from(a), t.url = Tt(
|
|
1087
|
+
wt(t.baseURL, t.url, t.allowAbsoluteUrls),
|
|
1176
1088
|
e.params,
|
|
1177
1089
|
e.paramsSerializer
|
|
1178
|
-
),
|
|
1090
|
+
), i && a.set(
|
|
1179
1091
|
"Authorization",
|
|
1180
|
-
"Basic " + btoa(
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1092
|
+
"Basic " + btoa(
|
|
1093
|
+
(i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : "")
|
|
1094
|
+
)
|
|
1095
|
+
), u.isFormData(r)) {
|
|
1096
|
+
if (L.hasStandardBrowserEnv || L.hasStandardBrowserWebWorkerEnv)
|
|
1097
|
+
a.setContentType(void 0);
|
|
1098
|
+
else if (u.isFunction(r.getHeaders)) {
|
|
1099
|
+
const l = r.getHeaders(), c = ["content-type", "content-length"];
|
|
1100
|
+
Object.entries(l).forEach(([d, p]) => {
|
|
1101
|
+
c.includes(d.toLowerCase()) && a.set(d, p);
|
|
1102
|
+
});
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
if (L.hasStandardBrowserEnv && (s && u.isFunction(s) && (s = s(t)), s || s !== !1 && Jr(t.url))) {
|
|
1106
|
+
const l = n && o && Zr.read(o);
|
|
1107
|
+
l && a.set(n, l);
|
|
1184
1108
|
}
|
|
1185
1109
|
return t;
|
|
1186
|
-
},
|
|
1187
|
-
return new Promise(function(r,
|
|
1188
|
-
const
|
|
1189
|
-
let o =
|
|
1190
|
-
const a = U.from(
|
|
1191
|
-
let { responseType: i, onUploadProgress: l, onDownloadProgress: c } =
|
|
1110
|
+
}, es = typeof XMLHttpRequest < "u", ts = es && function(e) {
|
|
1111
|
+
return new Promise(function(r, s) {
|
|
1112
|
+
const n = yt(e);
|
|
1113
|
+
let o = n.data;
|
|
1114
|
+
const a = U.from(n.headers).normalize();
|
|
1115
|
+
let { responseType: i, onUploadProgress: l, onDownloadProgress: c } = n, d, p, _, C, h;
|
|
1192
1116
|
function E() {
|
|
1193
|
-
|
|
1117
|
+
C && C(), h && h(), n.cancelToken && n.cancelToken.unsubscribe(d), n.signal && n.signal.removeEventListener("abort", d);
|
|
1194
1118
|
}
|
|
1195
|
-
let
|
|
1196
|
-
|
|
1197
|
-
function
|
|
1198
|
-
if (!
|
|
1119
|
+
let f = new XMLHttpRequest();
|
|
1120
|
+
f.open(n.method.toUpperCase(), n.url, !0), f.timeout = n.timeout;
|
|
1121
|
+
function w() {
|
|
1122
|
+
if (!f)
|
|
1199
1123
|
return;
|
|
1200
|
-
const
|
|
1201
|
-
"getAllResponseHeaders" in
|
|
1202
|
-
),
|
|
1203
|
-
data: !i || i === "text" || i === "json" ?
|
|
1204
|
-
status:
|
|
1205
|
-
statusText:
|
|
1206
|
-
headers:
|
|
1124
|
+
const y = U.from(
|
|
1125
|
+
"getAllResponseHeaders" in f && f.getAllResponseHeaders()
|
|
1126
|
+
), H = {
|
|
1127
|
+
data: !i || i === "text" || i === "json" ? f.responseText : f.response,
|
|
1128
|
+
status: f.status,
|
|
1129
|
+
statusText: f.statusText,
|
|
1130
|
+
headers: y,
|
|
1207
1131
|
config: e,
|
|
1208
|
-
request:
|
|
1132
|
+
request: f
|
|
1209
1133
|
};
|
|
1210
|
-
|
|
1211
|
-
function(
|
|
1212
|
-
r(
|
|
1134
|
+
bt(
|
|
1135
|
+
function(D) {
|
|
1136
|
+
r(D), E();
|
|
1213
1137
|
},
|
|
1214
|
-
function(
|
|
1215
|
-
|
|
1138
|
+
function(D) {
|
|
1139
|
+
s(D), E();
|
|
1216
1140
|
},
|
|
1217
|
-
|
|
1218
|
-
),
|
|
1141
|
+
H
|
|
1142
|
+
), f = null;
|
|
1219
1143
|
}
|
|
1220
|
-
"onloadend" in
|
|
1221
|
-
!
|
|
1222
|
-
},
|
|
1223
|
-
|
|
1224
|
-
},
|
|
1225
|
-
const
|
|
1226
|
-
|
|
1227
|
-
},
|
|
1228
|
-
let
|
|
1229
|
-
const
|
|
1230
|
-
|
|
1231
|
-
new
|
|
1232
|
-
|
|
1233
|
-
|
|
1144
|
+
"onloadend" in f ? f.onloadend = w : f.onreadystatechange = function() {
|
|
1145
|
+
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(w);
|
|
1146
|
+
}, f.onabort = function() {
|
|
1147
|
+
f && (s(new A("Request aborted", A.ECONNABORTED, e, f)), f = null);
|
|
1148
|
+
}, f.onerror = function(g) {
|
|
1149
|
+
const H = g && g.message ? g.message : "Network Error", F = new A(H, A.ERR_NETWORK, e, f);
|
|
1150
|
+
F.event = g || null, s(F), f = null;
|
|
1151
|
+
}, f.ontimeout = function() {
|
|
1152
|
+
let g = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
1153
|
+
const H = n.transitional || Be;
|
|
1154
|
+
n.timeoutErrorMessage && (g = n.timeoutErrorMessage), s(
|
|
1155
|
+
new A(
|
|
1156
|
+
g,
|
|
1157
|
+
H.clarifyTimeoutError ? A.ETIMEDOUT : A.ECONNABORTED,
|
|
1234
1158
|
e,
|
|
1235
|
-
|
|
1159
|
+
f
|
|
1236
1160
|
)
|
|
1237
|
-
),
|
|
1238
|
-
}, o === void 0 && a.setContentType(null), "setRequestHeader" in
|
|
1239
|
-
|
|
1240
|
-
}), u.isUndefined(
|
|
1241
|
-
|
|
1242
|
-
},
|
|
1243
|
-
const
|
|
1244
|
-
if (
|
|
1245
|
-
|
|
1246
|
-
new
|
|
1247
|
-
"Unsupported protocol " +
|
|
1248
|
-
|
|
1161
|
+
), f = null;
|
|
1162
|
+
}, o === void 0 && a.setContentType(null), "setRequestHeader" in f && u.forEach(a.toJSON(), function(g, H) {
|
|
1163
|
+
f.setRequestHeader(H, g);
|
|
1164
|
+
}), u.isUndefined(n.withCredentials) || (f.withCredentials = !!n.withCredentials), i && i !== "json" && (f.responseType = n.responseType), c && ([_, h] = Ee(c, !0), f.addEventListener("progress", _)), l && f.upload && ([p, C] = Ee(l), f.upload.addEventListener("progress", p), f.upload.addEventListener("loadend", C)), (n.cancelToken || n.signal) && (d = (y) => {
|
|
1165
|
+
f && (s(!y || y.type ? new ae(null, e, f) : y), f.abort(), f = null);
|
|
1166
|
+
}, n.cancelToken && n.cancelToken.subscribe(d), n.signal && (n.signal.aborted ? d() : n.signal.addEventListener("abort", d)));
|
|
1167
|
+
const x = Wr(n.url);
|
|
1168
|
+
if (x && L.protocols.indexOf(x) === -1) {
|
|
1169
|
+
s(
|
|
1170
|
+
new A(
|
|
1171
|
+
"Unsupported protocol " + x + ":",
|
|
1172
|
+
A.ERR_BAD_REQUEST,
|
|
1249
1173
|
e
|
|
1250
1174
|
)
|
|
1251
1175
|
);
|
|
1252
1176
|
return;
|
|
1253
1177
|
}
|
|
1254
|
-
|
|
1178
|
+
f.send(o || null);
|
|
1255
1179
|
});
|
|
1256
|
-
},
|
|
1180
|
+
}, rs = (e, t) => {
|
|
1257
1181
|
const { length: r } = e = e ? e.filter(Boolean) : [];
|
|
1258
1182
|
if (t || r) {
|
|
1259
|
-
let
|
|
1183
|
+
let s = new AbortController(), n;
|
|
1260
1184
|
const o = function(c) {
|
|
1261
|
-
if (!
|
|
1262
|
-
|
|
1185
|
+
if (!n) {
|
|
1186
|
+
n = !0, i();
|
|
1263
1187
|
const d = c instanceof Error ? c : this.reason;
|
|
1264
|
-
|
|
1265
|
-
d instanceof
|
|
1188
|
+
s.abort(
|
|
1189
|
+
d instanceof A ? d : new ae(d instanceof Error ? d.message : d)
|
|
1266
1190
|
);
|
|
1267
1191
|
}
|
|
1268
1192
|
};
|
|
1269
1193
|
let a = t && setTimeout(() => {
|
|
1270
|
-
a = null, o(new
|
|
1194
|
+
a = null, o(new A(`timeout of ${t}ms exceeded`, A.ETIMEDOUT));
|
|
1271
1195
|
}, t);
|
|
1272
1196
|
const i = () => {
|
|
1273
1197
|
e && (a && clearTimeout(a), a = null, e.forEach((c) => {
|
|
@@ -1275,22 +1199,22 @@ const fn = (e) => encodeURIComponent(e).replace(
|
|
|
1275
1199
|
}), e = null);
|
|
1276
1200
|
};
|
|
1277
1201
|
e.forEach((c) => c.addEventListener("abort", o));
|
|
1278
|
-
const { signal: l } =
|
|
1202
|
+
const { signal: l } = s;
|
|
1279
1203
|
return l.unsubscribe = () => u.asap(i), l;
|
|
1280
1204
|
}
|
|
1281
|
-
},
|
|
1205
|
+
}, ss = function* (e, t) {
|
|
1282
1206
|
let r = e.byteLength;
|
|
1283
1207
|
if (r < t) {
|
|
1284
1208
|
yield e;
|
|
1285
1209
|
return;
|
|
1286
1210
|
}
|
|
1287
|
-
let
|
|
1288
|
-
for (;
|
|
1289
|
-
|
|
1290
|
-
},
|
|
1291
|
-
for await (const r of
|
|
1292
|
-
yield*
|
|
1293
|
-
},
|
|
1211
|
+
let s = 0, n;
|
|
1212
|
+
for (; s < r; )
|
|
1213
|
+
n = s + t, yield e.slice(s, n), s = n;
|
|
1214
|
+
}, ns = async function* (e, t) {
|
|
1215
|
+
for await (const r of os(e))
|
|
1216
|
+
yield* ss(r, t);
|
|
1217
|
+
}, os = async function* (e) {
|
|
1294
1218
|
if (e[Symbol.asyncIterator]) {
|
|
1295
1219
|
yield* e;
|
|
1296
1220
|
return;
|
|
@@ -1298,24 +1222,24 @@ const fn = (e) => encodeURIComponent(e).replace(
|
|
|
1298
1222
|
const t = e.getReader();
|
|
1299
1223
|
try {
|
|
1300
1224
|
for (; ; ) {
|
|
1301
|
-
const { done: r, value:
|
|
1225
|
+
const { done: r, value: s } = await t.read();
|
|
1302
1226
|
if (r)
|
|
1303
1227
|
break;
|
|
1304
|
-
yield
|
|
1228
|
+
yield s;
|
|
1305
1229
|
}
|
|
1306
1230
|
} finally {
|
|
1307
1231
|
await t.cancel();
|
|
1308
1232
|
}
|
|
1309
|
-
},
|
|
1310
|
-
const
|
|
1233
|
+
}, et = (e, t, r, s) => {
|
|
1234
|
+
const n = ns(e, t);
|
|
1311
1235
|
let o = 0, a, i = (l) => {
|
|
1312
|
-
a || (a = !0,
|
|
1236
|
+
a || (a = !0, s && s(l));
|
|
1313
1237
|
};
|
|
1314
1238
|
return new ReadableStream(
|
|
1315
1239
|
{
|
|
1316
1240
|
async pull(l) {
|
|
1317
1241
|
try {
|
|
1318
|
-
const { done: c, value: d } = await
|
|
1242
|
+
const { done: c, value: d } = await n.next();
|
|
1319
1243
|
if (c) {
|
|
1320
1244
|
i(), l.close();
|
|
1321
1245
|
return;
|
|
@@ -1331,432 +1255,315 @@ const fn = (e) => encodeURIComponent(e).replace(
|
|
|
1331
1255
|
}
|
|
1332
1256
|
},
|
|
1333
1257
|
cancel(l) {
|
|
1334
|
-
return i(l),
|
|
1258
|
+
return i(l), n.return();
|
|
1335
1259
|
}
|
|
1336
1260
|
},
|
|
1337
1261
|
{
|
|
1338
1262
|
highWaterMark: 2
|
|
1339
1263
|
}
|
|
1340
1264
|
);
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
if (t < 0) return 0;
|
|
1346
|
-
const r = e.slice(5, t), n = e.slice(t + 1);
|
|
1347
|
-
if (/;base64/i.test(r)) {
|
|
1348
|
-
let a = n.length;
|
|
1349
|
-
const i = n.length;
|
|
1350
|
-
for (let R = 0; R < i; R++)
|
|
1351
|
-
if (n.charCodeAt(R) === 37 && R + 2 < i) {
|
|
1352
|
-
const m = n.charCodeAt(R + 1), E = n.charCodeAt(R + 2);
|
|
1353
|
-
(m >= 48 && m <= 57 || m >= 65 && m <= 70 || m >= 97 && m <= 102) && (E >= 48 && E <= 57 || E >= 65 && E <= 70 || E >= 97 && E <= 102) && (a -= 2, R += 2);
|
|
1354
|
-
}
|
|
1355
|
-
let l = 0, c = i - 1;
|
|
1356
|
-
const d = (R) => R >= 2 && n.charCodeAt(R - 2) === 37 && // '%'
|
|
1357
|
-
n.charCodeAt(R - 1) === 51 && // '3'
|
|
1358
|
-
(n.charCodeAt(R) === 68 || n.charCodeAt(R) === 100);
|
|
1359
|
-
c >= 0 && (n.charCodeAt(c) === 61 ? (l++, c--) : d(c) && (l++, c -= 3)), l === 1 && c >= 0 && (n.charCodeAt(c) === 61 || d(c)) && l++;
|
|
1360
|
-
const _ = Math.floor(a / 4) * 3 - (l || 0);
|
|
1361
|
-
return _ > 0 ? _ : 0;
|
|
1362
|
-
}
|
|
1363
|
-
if (typeof Buffer < "u" && typeof Buffer.byteLength == "function")
|
|
1364
|
-
return Buffer.byteLength(n, "utf8");
|
|
1365
|
-
let o = 0;
|
|
1366
|
-
for (let a = 0, i = n.length; a < i; a++) {
|
|
1367
|
-
const l = n.charCodeAt(a);
|
|
1368
|
-
if (l < 128)
|
|
1369
|
-
o += 1;
|
|
1370
|
-
else if (l < 2048)
|
|
1371
|
-
o += 2;
|
|
1372
|
-
else if (l >= 55296 && l <= 56319 && a + 1 < i) {
|
|
1373
|
-
const c = n.charCodeAt(a + 1);
|
|
1374
|
-
c >= 56320 && c <= 57343 ? (o += 4, a++) : o += 3;
|
|
1375
|
-
} else
|
|
1376
|
-
o += 3;
|
|
1377
|
-
}
|
|
1378
|
-
return o;
|
|
1379
|
-
}
|
|
1380
|
-
const Ye = "1.16.0", ut = 64 * 1024, { isFunction: Re } = u, pt = (e, ...t) => {
|
|
1265
|
+
}, tt = 64 * 1024, { isFunction: de } = u, as = (({ Request: e, Response: t }) => ({
|
|
1266
|
+
Request: e,
|
|
1267
|
+
Response: t
|
|
1268
|
+
}))(u.global), { ReadableStream: rt, TextEncoder: st } = u.global, nt = (e, ...t) => {
|
|
1381
1269
|
try {
|
|
1382
1270
|
return !!e(...t);
|
|
1383
1271
|
} catch {
|
|
1384
1272
|
return !1;
|
|
1385
1273
|
}
|
|
1386
|
-
},
|
|
1387
|
-
const t = u.global ?? globalThis, { ReadableStream: r, TextEncoder: n } = t;
|
|
1274
|
+
}, is = (e) => {
|
|
1388
1275
|
e = u.merge.call(
|
|
1389
1276
|
{
|
|
1390
1277
|
skipUndefined: !0
|
|
1391
1278
|
},
|
|
1392
|
-
|
|
1393
|
-
Request: t.Request,
|
|
1394
|
-
Response: t.Response
|
|
1395
|
-
},
|
|
1279
|
+
as,
|
|
1396
1280
|
e
|
|
1397
1281
|
);
|
|
1398
|
-
const { fetch:
|
|
1399
|
-
if (!
|
|
1282
|
+
const { fetch: t, Request: r, Response: s } = e, n = t ? de(t) : typeof fetch == "function", o = de(r), a = de(s);
|
|
1283
|
+
if (!n)
|
|
1400
1284
|
return !1;
|
|
1401
|
-
const
|
|
1402
|
-
let
|
|
1403
|
-
const
|
|
1404
|
-
body:
|
|
1285
|
+
const i = n && de(rt), l = n && (typeof st == "function" ? /* @__PURE__ */ ((h) => (E) => h.encode(E))(new st()) : async (h) => new Uint8Array(await new r(h).arrayBuffer())), c = o && i && nt(() => {
|
|
1286
|
+
let h = !1;
|
|
1287
|
+
const E = new rt(), f = new r(L.origin, {
|
|
1288
|
+
body: E,
|
|
1405
1289
|
method: "POST",
|
|
1406
1290
|
get duplex() {
|
|
1407
|
-
return
|
|
1291
|
+
return h = !0, "half";
|
|
1408
1292
|
}
|
|
1409
|
-
})
|
|
1410
|
-
return
|
|
1411
|
-
}),
|
|
1412
|
-
stream:
|
|
1293
|
+
}).headers.has("Content-Type");
|
|
1294
|
+
return E.cancel(), h && !f;
|
|
1295
|
+
}), d = a && i && nt(() => u.isReadableStream(new s("").body)), p = {
|
|
1296
|
+
stream: d && ((h) => h.body)
|
|
1413
1297
|
};
|
|
1414
|
-
|
|
1415
|
-
!
|
|
1416
|
-
let
|
|
1417
|
-
if (
|
|
1418
|
-
return
|
|
1419
|
-
throw new
|
|
1420
|
-
`Response type '${
|
|
1421
|
-
|
|
1422
|
-
|
|
1298
|
+
n && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((h) => {
|
|
1299
|
+
!p[h] && (p[h] = (E, f) => {
|
|
1300
|
+
let w = E && E[h];
|
|
1301
|
+
if (w)
|
|
1302
|
+
return w.call(E);
|
|
1303
|
+
throw new A(
|
|
1304
|
+
`Response type '${h}' is not supported`,
|
|
1305
|
+
A.ERR_NOT_SUPPORT,
|
|
1306
|
+
f
|
|
1423
1307
|
);
|
|
1424
1308
|
});
|
|
1425
1309
|
});
|
|
1426
|
-
const
|
|
1427
|
-
if (
|
|
1310
|
+
const _ = async (h) => {
|
|
1311
|
+
if (h == null)
|
|
1428
1312
|
return 0;
|
|
1429
|
-
if (u.isBlob(
|
|
1430
|
-
return
|
|
1431
|
-
if (u.isSpecCompliantForm(
|
|
1432
|
-
return (await new
|
|
1313
|
+
if (u.isBlob(h))
|
|
1314
|
+
return h.size;
|
|
1315
|
+
if (u.isSpecCompliantForm(h))
|
|
1316
|
+
return (await new r(L.origin, {
|
|
1433
1317
|
method: "POST",
|
|
1434
|
-
body:
|
|
1318
|
+
body: h
|
|
1435
1319
|
}).arrayBuffer()).byteLength;
|
|
1436
|
-
if (u.isArrayBufferView(
|
|
1437
|
-
return
|
|
1438
|
-
if (u.isURLSearchParams(
|
|
1439
|
-
return (await
|
|
1440
|
-
},
|
|
1441
|
-
const
|
|
1442
|
-
return
|
|
1320
|
+
if (u.isArrayBufferView(h) || u.isArrayBuffer(h))
|
|
1321
|
+
return h.byteLength;
|
|
1322
|
+
if (u.isURLSearchParams(h) && (h = h + ""), u.isString(h))
|
|
1323
|
+
return (await l(h)).byteLength;
|
|
1324
|
+
}, C = async (h, E) => {
|
|
1325
|
+
const f = u.toFiniteNumber(h.getContentLength());
|
|
1326
|
+
return f ?? _(E);
|
|
1443
1327
|
};
|
|
1444
|
-
return async (
|
|
1328
|
+
return async (h) => {
|
|
1445
1329
|
let {
|
|
1446
|
-
url:
|
|
1447
|
-
method:
|
|
1448
|
-
data:
|
|
1449
|
-
signal:
|
|
1450
|
-
cancelToken:
|
|
1451
|
-
timeout:
|
|
1452
|
-
onDownloadProgress:
|
|
1453
|
-
onUploadProgress:
|
|
1454
|
-
responseType:
|
|
1455
|
-
headers:
|
|
1456
|
-
withCredentials:
|
|
1457
|
-
fetchOptions:
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
ie
|
|
1467
|
-
), H = null;
|
|
1468
|
-
const J = $ && $.unsubscribe && (() => {
|
|
1469
|
-
$.unsubscribe();
|
|
1330
|
+
url: E,
|
|
1331
|
+
method: f,
|
|
1332
|
+
data: w,
|
|
1333
|
+
signal: x,
|
|
1334
|
+
cancelToken: y,
|
|
1335
|
+
timeout: g,
|
|
1336
|
+
onDownloadProgress: H,
|
|
1337
|
+
onUploadProgress: F,
|
|
1338
|
+
responseType: D,
|
|
1339
|
+
headers: Pe,
|
|
1340
|
+
withCredentials: ie = "same-origin",
|
|
1341
|
+
fetchOptions: Me
|
|
1342
|
+
} = yt(h), ve = t || fetch;
|
|
1343
|
+
D = D ? (D + "").toLowerCase() : "text";
|
|
1344
|
+
let le = rs(
|
|
1345
|
+
[x, y && y.toAbortSignal()],
|
|
1346
|
+
g
|
|
1347
|
+
), ee = null;
|
|
1348
|
+
const q = le && le.unsubscribe && (() => {
|
|
1349
|
+
le.unsubscribe();
|
|
1470
1350
|
});
|
|
1471
|
-
let
|
|
1351
|
+
let je;
|
|
1472
1352
|
try {
|
|
1473
|
-
if (
|
|
1474
|
-
|
|
1475
|
-
"maxContentLength size of " + v + " exceeded",
|
|
1476
|
-
f.ERR_BAD_RESPONSE,
|
|
1477
|
-
A,
|
|
1478
|
-
H
|
|
1479
|
-
);
|
|
1480
|
-
if (vt && P !== "get" && P !== "head") {
|
|
1481
|
-
const b = await h(Y, T);
|
|
1482
|
-
if (typeof b == "number" && isFinite(b) && b > Ve)
|
|
1483
|
-
throw new f(
|
|
1484
|
-
"Request body larger than maxBodyLength limit",
|
|
1485
|
-
f.ERR_BAD_REQUEST,
|
|
1486
|
-
A,
|
|
1487
|
-
H
|
|
1488
|
-
);
|
|
1489
|
-
}
|
|
1490
|
-
if (Ze && _ && P !== "get" && P !== "head" && (et = await h(Y, T)) !== 0) {
|
|
1491
|
-
let b = new o(S, {
|
|
1353
|
+
if (F && c && f !== "get" && f !== "head" && (je = await C(Pe, w)) !== 0) {
|
|
1354
|
+
let k = new r(E, {
|
|
1492
1355
|
method: "POST",
|
|
1493
|
-
body:
|
|
1356
|
+
body: w,
|
|
1494
1357
|
duplex: "half"
|
|
1495
|
-
}),
|
|
1496
|
-
if (u.isFormData(
|
|
1497
|
-
const [
|
|
1498
|
-
|
|
1499
|
-
|
|
1358
|
+
}), X;
|
|
1359
|
+
if (u.isFormData(w) && (X = k.headers.get("content-type")) && Pe.setContentType(X), k.body) {
|
|
1360
|
+
const [Ie, ce] = Ze(
|
|
1361
|
+
je,
|
|
1362
|
+
Ee(Ke(F))
|
|
1500
1363
|
);
|
|
1501
|
-
|
|
1364
|
+
w = et(k.body, tt, Ie, ce);
|
|
1502
1365
|
}
|
|
1503
1366
|
}
|
|
1504
|
-
u.isString(
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
const W = {
|
|
1512
|
-
...Ke,
|
|
1513
|
-
signal: $,
|
|
1514
|
-
method: P.toUpperCase(),
|
|
1515
|
-
headers: Y.normalize().toJSON(),
|
|
1516
|
-
body: T,
|
|
1367
|
+
u.isString(ie) || (ie = ie ? "include" : "omit");
|
|
1368
|
+
const V = o && "credentials" in r.prototype, ke = {
|
|
1369
|
+
...Me,
|
|
1370
|
+
signal: le,
|
|
1371
|
+
method: f.toUpperCase(),
|
|
1372
|
+
headers: Pe.normalize().toJSON(),
|
|
1373
|
+
body: w,
|
|
1517
1374
|
duplex: "half",
|
|
1518
|
-
credentials:
|
|
1375
|
+
credentials: V ? ie : void 0
|
|
1519
1376
|
};
|
|
1520
|
-
|
|
1521
|
-
let j = await (
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
f.ERR_BAD_RESPONSE,
|
|
1528
|
-
A,
|
|
1529
|
-
H
|
|
1530
|
-
);
|
|
1531
|
-
}
|
|
1532
|
-
const Ue = R && (z === "stream" || z === "response");
|
|
1533
|
-
if (R && j.body && (xe || le || Ue && J)) {
|
|
1534
|
-
const b = {};
|
|
1535
|
-
["status", "statusText", "headers"].forEach((ce) => {
|
|
1536
|
-
b[ce] = j[ce];
|
|
1377
|
+
ee = o && new r(E, ke);
|
|
1378
|
+
let j = await (o ? ve(ee, Me) : ve(E, ke));
|
|
1379
|
+
const Fe = d && (D === "stream" || D === "response");
|
|
1380
|
+
if (d && (H || Fe && q)) {
|
|
1381
|
+
const k = {};
|
|
1382
|
+
["status", "statusText", "headers"].forEach((qe) => {
|
|
1383
|
+
k[qe] = j[qe];
|
|
1537
1384
|
});
|
|
1538
|
-
const
|
|
1539
|
-
|
|
1540
|
-
|
|
1385
|
+
const X = u.toFiniteNumber(j.headers.get("content-length")), [Ie, ce] = H && Ze(
|
|
1386
|
+
X,
|
|
1387
|
+
Ee(Ke(H), !0)
|
|
1541
1388
|
) || [];
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
throw new f(
|
|
1546
|
-
"maxContentLength size of " + v + " exceeded",
|
|
1547
|
-
f.ERR_BAD_RESPONSE,
|
|
1548
|
-
A,
|
|
1549
|
-
H
|
|
1550
|
-
);
|
|
1551
|
-
Oe && Oe(ce);
|
|
1552
|
-
};
|
|
1553
|
-
j = new a(
|
|
1554
|
-
dt(j.body, ut, jt, () => {
|
|
1555
|
-
_e && _e(), J && J();
|
|
1389
|
+
j = new s(
|
|
1390
|
+
et(j.body, tt, Ie, () => {
|
|
1391
|
+
ce && ce(), q && q();
|
|
1556
1392
|
}),
|
|
1557
|
-
|
|
1393
|
+
k
|
|
1558
1394
|
);
|
|
1559
1395
|
}
|
|
1560
|
-
|
|
1561
|
-
let
|
|
1396
|
+
D = D || "text";
|
|
1397
|
+
let xt = await p[u.findKey(p, D) || "text"](
|
|
1562
1398
|
j,
|
|
1563
|
-
|
|
1399
|
+
h
|
|
1564
1400
|
);
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
throw new f(
|
|
1569
|
-
"maxContentLength size of " + v + " exceeded",
|
|
1570
|
-
f.ERR_BAD_RESPONSE,
|
|
1571
|
-
A,
|
|
1572
|
-
H
|
|
1573
|
-
);
|
|
1574
|
-
}
|
|
1575
|
-
return !Ue && J && J(), await new Promise((b, te) => {
|
|
1576
|
-
xt(b, te, {
|
|
1577
|
-
data: k,
|
|
1401
|
+
return !Fe && q && q(), await new Promise((k, X) => {
|
|
1402
|
+
bt(k, X, {
|
|
1403
|
+
data: xt,
|
|
1578
1404
|
headers: U.from(j.headers),
|
|
1579
1405
|
status: j.status,
|
|
1580
1406
|
statusText: j.statusText,
|
|
1581
|
-
config:
|
|
1582
|
-
request:
|
|
1407
|
+
config: h,
|
|
1408
|
+
request: ee
|
|
1583
1409
|
});
|
|
1584
1410
|
});
|
|
1585
|
-
} catch (
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
throw W.config = A, H && (W.request = H), x !== W && (W.cause = x), W;
|
|
1589
|
-
}
|
|
1590
|
-
throw x && x.name === "TypeError" && /Load failed|fetch/i.test(x.message) ? Object.assign(
|
|
1591
|
-
new f(
|
|
1411
|
+
} catch (V) {
|
|
1412
|
+
throw q && q(), V && V.name === "TypeError" && /Load failed|fetch/i.test(V.message) ? Object.assign(
|
|
1413
|
+
new A(
|
|
1592
1414
|
"Network Error",
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1415
|
+
A.ERR_NETWORK,
|
|
1416
|
+
h,
|
|
1417
|
+
ee,
|
|
1418
|
+
V && V.response
|
|
1597
1419
|
),
|
|
1598
1420
|
{
|
|
1599
|
-
cause:
|
|
1421
|
+
cause: V.cause || V
|
|
1600
1422
|
}
|
|
1601
|
-
) :
|
|
1423
|
+
) : A.from(V, V && V.code, h, ee, V && V.response);
|
|
1602
1424
|
}
|
|
1603
1425
|
};
|
|
1604
|
-
},
|
|
1426
|
+
}, ls = /* @__PURE__ */ new Map(), Ct = (e) => {
|
|
1605
1427
|
let t = e && e.env || {};
|
|
1606
|
-
const { fetch: r, Request:
|
|
1607
|
-
let a = o.length, i = a, l, c, d =
|
|
1428
|
+
const { fetch: r, Request: s, Response: n } = t, o = [s, n, r];
|
|
1429
|
+
let a = o.length, i = a, l, c, d = ls;
|
|
1608
1430
|
for (; i--; )
|
|
1609
|
-
l = o[i], c = d.get(l), c === void 0 && d.set(l, c = i ? /* @__PURE__ */ new Map() :
|
|
1431
|
+
l = o[i], c = d.get(l), c === void 0 && d.set(l, c = i ? /* @__PURE__ */ new Map() : is(t)), d = c;
|
|
1610
1432
|
return c;
|
|
1611
1433
|
};
|
|
1612
|
-
|
|
1613
|
-
const
|
|
1614
|
-
http:
|
|
1615
|
-
xhr:
|
|
1434
|
+
Ct();
|
|
1435
|
+
const Ge = {
|
|
1436
|
+
http: Ir,
|
|
1437
|
+
xhr: ts,
|
|
1616
1438
|
fetch: {
|
|
1617
|
-
get:
|
|
1439
|
+
get: Ct
|
|
1618
1440
|
}
|
|
1619
1441
|
};
|
|
1620
|
-
u.forEach(
|
|
1442
|
+
u.forEach(Ge, (e, t) => {
|
|
1621
1443
|
if (e) {
|
|
1622
1444
|
try {
|
|
1623
|
-
Object.defineProperty(e, "name", {
|
|
1445
|
+
Object.defineProperty(e, "name", { value: t });
|
|
1624
1446
|
} catch {
|
|
1625
1447
|
}
|
|
1626
|
-
Object.defineProperty(e, "adapterName", {
|
|
1448
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
1627
1449
|
}
|
|
1628
1450
|
});
|
|
1629
|
-
const
|
|
1630
|
-
function
|
|
1451
|
+
const ot = (e) => `- ${e}`, cs = (e) => u.isFunction(e) || e === null || e === !1;
|
|
1452
|
+
function ds(e, t) {
|
|
1631
1453
|
e = u.isArray(e) ? e : [e];
|
|
1632
1454
|
const { length: r } = e;
|
|
1633
|
-
let
|
|
1455
|
+
let s, n;
|
|
1634
1456
|
const o = {};
|
|
1635
1457
|
for (let a = 0; a < r; a++) {
|
|
1636
|
-
|
|
1458
|
+
s = e[a];
|
|
1637
1459
|
let i;
|
|
1638
|
-
if (
|
|
1639
|
-
throw new
|
|
1640
|
-
if (
|
|
1460
|
+
if (n = s, !cs(s) && (n = Ge[(i = String(s)).toLowerCase()], n === void 0))
|
|
1461
|
+
throw new A(`Unknown adapter '${i}'`);
|
|
1462
|
+
if (n && (u.isFunction(n) || (n = n.get(t))))
|
|
1641
1463
|
break;
|
|
1642
|
-
o[i || "#" + a] =
|
|
1464
|
+
o[i || "#" + a] = n;
|
|
1643
1465
|
}
|
|
1644
|
-
if (!
|
|
1466
|
+
if (!n) {
|
|
1645
1467
|
const a = Object.entries(o).map(
|
|
1646
1468
|
([l, c]) => `adapter ${l} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1647
1469
|
);
|
|
1648
1470
|
let i = r ? a.length > 1 ? `since :
|
|
1649
|
-
` + a.map(
|
|
1650
|
-
`) : " " +
|
|
1651
|
-
throw new
|
|
1471
|
+
` + a.map(ot).join(`
|
|
1472
|
+
`) : " " + ot(a[0]) : "as no adapter specified";
|
|
1473
|
+
throw new A(
|
|
1652
1474
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1653
1475
|
"ERR_NOT_SUPPORT"
|
|
1654
1476
|
);
|
|
1655
1477
|
}
|
|
1656
|
-
return
|
|
1478
|
+
return n;
|
|
1657
1479
|
}
|
|
1658
|
-
const
|
|
1480
|
+
const Lt = {
|
|
1659
1481
|
/**
|
|
1660
1482
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1661
1483
|
* @type {Function}
|
|
1662
1484
|
*/
|
|
1663
|
-
getAdapter:
|
|
1485
|
+
getAdapter: ds,
|
|
1664
1486
|
/**
|
|
1665
1487
|
* Exposes all known adapters
|
|
1666
1488
|
* @type {Object<string, Function|Object>}
|
|
1667
1489
|
*/
|
|
1668
|
-
adapters:
|
|
1490
|
+
adapters: Ge
|
|
1669
1491
|
};
|
|
1670
|
-
function
|
|
1492
|
+
function ye(e) {
|
|
1671
1493
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1672
|
-
throw new
|
|
1494
|
+
throw new ae(null, e);
|
|
1673
1495
|
}
|
|
1674
|
-
function
|
|
1675
|
-
return
|
|
1676
|
-
function(
|
|
1677
|
-
|
|
1678
|
-
try {
|
|
1679
|
-
n.data = He.call(e, e.transformResponse, n);
|
|
1680
|
-
} finally {
|
|
1681
|
-
delete e.response;
|
|
1682
|
-
}
|
|
1683
|
-
return n.headers = U.from(n.headers), n;
|
|
1496
|
+
function at(e) {
|
|
1497
|
+
return ye(e), e.headers = U.from(e.headers), e.data = we.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Lt.getAdapter(e.adapter || oe.adapter, e)(e).then(
|
|
1498
|
+
function(s) {
|
|
1499
|
+
return ye(e), s.data = we.call(e, e.transformResponse, s), s.headers = U.from(s.headers), s;
|
|
1684
1500
|
},
|
|
1685
|
-
function(
|
|
1686
|
-
|
|
1687
|
-
e
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
e.transformResponse,
|
|
1692
|
-
n.response
|
|
1693
|
-
);
|
|
1694
|
-
} finally {
|
|
1695
|
-
delete e.response;
|
|
1696
|
-
}
|
|
1697
|
-
n.response.headers = U.from(n.response.headers);
|
|
1698
|
-
}
|
|
1699
|
-
return Promise.reject(n);
|
|
1501
|
+
function(s) {
|
|
1502
|
+
return St(s) || (ye(e), s && s.response && (s.response.data = we.call(
|
|
1503
|
+
e,
|
|
1504
|
+
e.transformResponse,
|
|
1505
|
+
s.response
|
|
1506
|
+
), s.response.headers = U.from(s.response.headers))), Promise.reject(s);
|
|
1700
1507
|
}
|
|
1701
1508
|
);
|
|
1702
1509
|
}
|
|
1703
|
-
const
|
|
1510
|
+
const gt = "1.15.0", Te = {};
|
|
1704
1511
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1705
|
-
|
|
1706
|
-
return typeof
|
|
1512
|
+
Te[e] = function(s) {
|
|
1513
|
+
return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1707
1514
|
};
|
|
1708
1515
|
});
|
|
1709
|
-
const
|
|
1710
|
-
|
|
1711
|
-
function
|
|
1712
|
-
return "[Axios v" +
|
|
1516
|
+
const it = {};
|
|
1517
|
+
Te.transitional = function(t, r, s) {
|
|
1518
|
+
function n(o, a) {
|
|
1519
|
+
return "[Axios v" + gt + "] Transitional option '" + o + "'" + a + (s ? ". " + s : "");
|
|
1713
1520
|
}
|
|
1714
1521
|
return (o, a, i) => {
|
|
1715
1522
|
if (t === !1)
|
|
1716
|
-
throw new
|
|
1717
|
-
|
|
1718
|
-
|
|
1523
|
+
throw new A(
|
|
1524
|
+
n(a, " has been removed" + (r ? " in " + r : "")),
|
|
1525
|
+
A.ERR_DEPRECATED
|
|
1719
1526
|
);
|
|
1720
|
-
return r && !
|
|
1721
|
-
|
|
1527
|
+
return r && !it[a] && (it[a] = !0, console.warn(
|
|
1528
|
+
n(
|
|
1722
1529
|
a,
|
|
1723
1530
|
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
1724
1531
|
)
|
|
1725
1532
|
)), t ? t(o, a, i) : !0;
|
|
1726
1533
|
};
|
|
1727
1534
|
};
|
|
1728
|
-
|
|
1729
|
-
return (r,
|
|
1535
|
+
Te.spelling = function(t) {
|
|
1536
|
+
return (r, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
|
|
1730
1537
|
};
|
|
1731
|
-
function
|
|
1538
|
+
function us(e, t, r) {
|
|
1732
1539
|
if (typeof e != "object")
|
|
1733
|
-
throw new
|
|
1734
|
-
const
|
|
1735
|
-
let
|
|
1736
|
-
for (;
|
|
1737
|
-
const o = n
|
|
1540
|
+
throw new A("options must be an object", A.ERR_BAD_OPTION_VALUE);
|
|
1541
|
+
const s = Object.keys(e);
|
|
1542
|
+
let n = s.length;
|
|
1543
|
+
for (; n-- > 0; ) {
|
|
1544
|
+
const o = s[n], a = t[o];
|
|
1738
1545
|
if (a) {
|
|
1739
1546
|
const i = e[o], l = i === void 0 || a(i, o, e);
|
|
1740
1547
|
if (l !== !0)
|
|
1741
|
-
throw new
|
|
1548
|
+
throw new A(
|
|
1742
1549
|
"option " + o + " must be " + l,
|
|
1743
|
-
|
|
1550
|
+
A.ERR_BAD_OPTION_VALUE
|
|
1744
1551
|
);
|
|
1745
1552
|
continue;
|
|
1746
1553
|
}
|
|
1747
1554
|
if (r !== !0)
|
|
1748
|
-
throw new
|
|
1555
|
+
throw new A("Unknown option " + o, A.ERR_BAD_OPTION);
|
|
1749
1556
|
}
|
|
1750
1557
|
}
|
|
1751
|
-
const
|
|
1752
|
-
assertOptions:
|
|
1753
|
-
validators:
|
|
1754
|
-
},
|
|
1755
|
-
let
|
|
1558
|
+
const fe = {
|
|
1559
|
+
assertOptions: us,
|
|
1560
|
+
validators: Te
|
|
1561
|
+
}, B = fe.validators;
|
|
1562
|
+
let W = class {
|
|
1756
1563
|
constructor(t) {
|
|
1757
1564
|
this.defaults = t || {}, this.interceptors = {
|
|
1758
|
-
request: new
|
|
1759
|
-
response: new
|
|
1565
|
+
request: new Xe(),
|
|
1566
|
+
response: new Xe()
|
|
1760
1567
|
};
|
|
1761
1568
|
}
|
|
1762
1569
|
/**
|
|
@@ -1770,65 +1577,65 @@ let Q = class {
|
|
|
1770
1577
|
async request(t, r) {
|
|
1771
1578
|
try {
|
|
1772
1579
|
return await this._request(t, r);
|
|
1773
|
-
} catch (
|
|
1774
|
-
if (
|
|
1775
|
-
let
|
|
1776
|
-
Error.captureStackTrace ? Error.captureStackTrace(
|
|
1580
|
+
} catch (s) {
|
|
1581
|
+
if (s instanceof Error) {
|
|
1582
|
+
let n = {};
|
|
1583
|
+
Error.captureStackTrace ? Error.captureStackTrace(n) : n = new Error();
|
|
1777
1584
|
const o = (() => {
|
|
1778
|
-
if (!
|
|
1585
|
+
if (!n.stack)
|
|
1779
1586
|
return "";
|
|
1780
|
-
const a =
|
|
1587
|
+
const a = n.stack.indexOf(`
|
|
1781
1588
|
`);
|
|
1782
|
-
return a === -1 ? "" :
|
|
1589
|
+
return a === -1 ? "" : n.stack.slice(a + 1);
|
|
1783
1590
|
})();
|
|
1784
1591
|
try {
|
|
1785
|
-
if (!
|
|
1786
|
-
|
|
1592
|
+
if (!s.stack)
|
|
1593
|
+
s.stack = o;
|
|
1787
1594
|
else if (o) {
|
|
1788
1595
|
const a = o.indexOf(`
|
|
1789
1596
|
`), i = a === -1 ? -1 : o.indexOf(`
|
|
1790
1597
|
`, a + 1), l = i === -1 ? "" : o.slice(i + 1);
|
|
1791
|
-
String(
|
|
1598
|
+
String(s.stack).endsWith(l) || (s.stack += `
|
|
1792
1599
|
` + o);
|
|
1793
1600
|
}
|
|
1794
1601
|
} catch {
|
|
1795
1602
|
}
|
|
1796
1603
|
}
|
|
1797
|
-
throw
|
|
1604
|
+
throw s;
|
|
1798
1605
|
}
|
|
1799
1606
|
}
|
|
1800
1607
|
_request(t, r) {
|
|
1801
|
-
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r =
|
|
1802
|
-
const { transitional:
|
|
1803
|
-
|
|
1804
|
-
|
|
1608
|
+
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = Y(this.defaults, r);
|
|
1609
|
+
const { transitional: s, paramsSerializer: n, headers: o } = r;
|
|
1610
|
+
s !== void 0 && fe.assertOptions(
|
|
1611
|
+
s,
|
|
1805
1612
|
{
|
|
1806
|
-
silentJSONParsing:
|
|
1807
|
-
forcedJSONParsing:
|
|
1808
|
-
clarifyTimeoutError:
|
|
1809
|
-
legacyInterceptorReqResOrdering:
|
|
1613
|
+
silentJSONParsing: B.transitional(B.boolean),
|
|
1614
|
+
forcedJSONParsing: B.transitional(B.boolean),
|
|
1615
|
+
clarifyTimeoutError: B.transitional(B.boolean),
|
|
1616
|
+
legacyInterceptorReqResOrdering: B.transitional(B.boolean)
|
|
1810
1617
|
},
|
|
1811
1618
|
!1
|
|
1812
|
-
),
|
|
1813
|
-
serialize:
|
|
1814
|
-
} :
|
|
1815
|
-
|
|
1619
|
+
), n != null && (u.isFunction(n) ? r.paramsSerializer = {
|
|
1620
|
+
serialize: n
|
|
1621
|
+
} : fe.assertOptions(
|
|
1622
|
+
n,
|
|
1816
1623
|
{
|
|
1817
|
-
encode:
|
|
1818
|
-
serialize:
|
|
1624
|
+
encode: B.function,
|
|
1625
|
+
serialize: B.function
|
|
1819
1626
|
},
|
|
1820
1627
|
!0
|
|
1821
|
-
)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0),
|
|
1628
|
+
)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), fe.assertOptions(
|
|
1822
1629
|
r,
|
|
1823
1630
|
{
|
|
1824
|
-
baseUrl:
|
|
1825
|
-
withXsrfToken:
|
|
1631
|
+
baseUrl: B.spelling("baseURL"),
|
|
1632
|
+
withXsrfToken: B.spelling("withXSRFToken")
|
|
1826
1633
|
},
|
|
1827
1634
|
!0
|
|
1828
1635
|
), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
1829
1636
|
let a = o && u.merge(o.common, o[r.method]);
|
|
1830
|
-
o && u.forEach(["delete", "get", "head", "post", "put", "patch", "
|
|
1831
|
-
delete o[
|
|
1637
|
+
o && u.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (h) => {
|
|
1638
|
+
delete o[h];
|
|
1832
1639
|
}), r.headers = U.concat(a, o);
|
|
1833
1640
|
const i = [];
|
|
1834
1641
|
let l = !0;
|
|
@@ -1836,8 +1643,8 @@ let Q = class {
|
|
|
1836
1643
|
if (typeof E.runWhen == "function" && E.runWhen(r) === !1)
|
|
1837
1644
|
return;
|
|
1838
1645
|
l = l && E.synchronous;
|
|
1839
|
-
const
|
|
1840
|
-
|
|
1646
|
+
const f = r.transitional || Be;
|
|
1647
|
+
f && f.legacyInterceptorReqResOrdering ? i.unshift(E.fulfilled, E.rejected) : i.push(E.fulfilled, E.rejected);
|
|
1841
1648
|
});
|
|
1842
1649
|
const c = [];
|
|
1843
1650
|
this.interceptors.response.forEach(function(E) {
|
|
@@ -1845,55 +1652,55 @@ let Q = class {
|
|
|
1845
1652
|
});
|
|
1846
1653
|
let d, p = 0, _;
|
|
1847
1654
|
if (!l) {
|
|
1848
|
-
const
|
|
1849
|
-
for (
|
|
1850
|
-
d = d.then(
|
|
1655
|
+
const h = [at.bind(this), void 0];
|
|
1656
|
+
for (h.unshift(...i), h.push(...c), _ = h.length, d = Promise.resolve(r); p < _; )
|
|
1657
|
+
d = d.then(h[p++], h[p++]);
|
|
1851
1658
|
return d;
|
|
1852
1659
|
}
|
|
1853
1660
|
_ = i.length;
|
|
1854
|
-
let
|
|
1661
|
+
let C = r;
|
|
1855
1662
|
for (; p < _; ) {
|
|
1856
|
-
const
|
|
1663
|
+
const h = i[p++], E = i[p++];
|
|
1857
1664
|
try {
|
|
1858
|
-
|
|
1859
|
-
} catch (
|
|
1860
|
-
E.call(this,
|
|
1665
|
+
C = h(C);
|
|
1666
|
+
} catch (f) {
|
|
1667
|
+
E.call(this, f);
|
|
1861
1668
|
break;
|
|
1862
1669
|
}
|
|
1863
1670
|
}
|
|
1864
1671
|
try {
|
|
1865
|
-
d =
|
|
1866
|
-
} catch (
|
|
1867
|
-
return Promise.reject(
|
|
1672
|
+
d = at.call(this, C);
|
|
1673
|
+
} catch (h) {
|
|
1674
|
+
return Promise.reject(h);
|
|
1868
1675
|
}
|
|
1869
1676
|
for (p = 0, _ = c.length; p < _; )
|
|
1870
1677
|
d = d.then(c[p++], c[p++]);
|
|
1871
1678
|
return d;
|
|
1872
1679
|
}
|
|
1873
1680
|
getUri(t) {
|
|
1874
|
-
t =
|
|
1875
|
-
const r =
|
|
1876
|
-
return
|
|
1681
|
+
t = Y(this.defaults, t);
|
|
1682
|
+
const r = wt(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1683
|
+
return Tt(r, t.params, t.paramsSerializer);
|
|
1877
1684
|
}
|
|
1878
1685
|
};
|
|
1879
1686
|
u.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1880
|
-
|
|
1687
|
+
W.prototype[t] = function(r, s) {
|
|
1881
1688
|
return this.request(
|
|
1882
|
-
|
|
1689
|
+
Y(s || {}, {
|
|
1883
1690
|
method: t,
|
|
1884
1691
|
url: r,
|
|
1885
|
-
data: (
|
|
1692
|
+
data: (s || {}).data
|
|
1886
1693
|
})
|
|
1887
1694
|
);
|
|
1888
1695
|
};
|
|
1889
1696
|
});
|
|
1890
|
-
u.forEach(["post", "put", "patch"
|
|
1891
|
-
function r(
|
|
1697
|
+
u.forEach(["post", "put", "patch"], function(t) {
|
|
1698
|
+
function r(s) {
|
|
1892
1699
|
return function(o, a, i) {
|
|
1893
1700
|
return this.request(
|
|
1894
|
-
|
|
1701
|
+
Y(i || {}, {
|
|
1895
1702
|
method: t,
|
|
1896
|
-
headers:
|
|
1703
|
+
headers: s ? {
|
|
1897
1704
|
"Content-Type": "multipart/form-data"
|
|
1898
1705
|
} : {},
|
|
1899
1706
|
url: o,
|
|
@@ -1902,9 +1709,9 @@ u.forEach(["post", "put", "patch", "query"], function(t) {
|
|
|
1902
1709
|
);
|
|
1903
1710
|
};
|
|
1904
1711
|
}
|
|
1905
|
-
|
|
1712
|
+
W.prototype[t] = r(), W.prototype[t + "Form"] = r(!0);
|
|
1906
1713
|
});
|
|
1907
|
-
let
|
|
1714
|
+
let ps = class Vt {
|
|
1908
1715
|
constructor(t) {
|
|
1909
1716
|
if (typeof t != "function")
|
|
1910
1717
|
throw new TypeError("executor must be a function.");
|
|
@@ -1912,23 +1719,23 @@ let wn = class Ht {
|
|
|
1912
1719
|
this.promise = new Promise(function(o) {
|
|
1913
1720
|
r = o;
|
|
1914
1721
|
});
|
|
1915
|
-
const
|
|
1916
|
-
this.promise.then((
|
|
1917
|
-
if (!
|
|
1918
|
-
let o =
|
|
1722
|
+
const s = this;
|
|
1723
|
+
this.promise.then((n) => {
|
|
1724
|
+
if (!s._listeners) return;
|
|
1725
|
+
let o = s._listeners.length;
|
|
1919
1726
|
for (; o-- > 0; )
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
}), this.promise.then = (
|
|
1727
|
+
s._listeners[o](n);
|
|
1728
|
+
s._listeners = null;
|
|
1729
|
+
}), this.promise.then = (n) => {
|
|
1923
1730
|
let o;
|
|
1924
1731
|
const a = new Promise((i) => {
|
|
1925
|
-
|
|
1926
|
-
}).then(
|
|
1732
|
+
s.subscribe(i), o = i;
|
|
1733
|
+
}).then(n);
|
|
1927
1734
|
return a.cancel = function() {
|
|
1928
|
-
|
|
1735
|
+
s.unsubscribe(o);
|
|
1929
1736
|
}, a;
|
|
1930
1737
|
}, t(function(o, a, i) {
|
|
1931
|
-
|
|
1738
|
+
s.reason || (s.reason = new ae(o, a, i), r(s.reason));
|
|
1932
1739
|
});
|
|
1933
1740
|
}
|
|
1934
1741
|
/**
|
|
@@ -1958,8 +1765,8 @@ let wn = class Ht {
|
|
|
1958
1765
|
r !== -1 && this._listeners.splice(r, 1);
|
|
1959
1766
|
}
|
|
1960
1767
|
toAbortSignal() {
|
|
1961
|
-
const t = new AbortController(), r = (
|
|
1962
|
-
t.abort(
|
|
1768
|
+
const t = new AbortController(), r = (s) => {
|
|
1769
|
+
t.abort(s);
|
|
1963
1770
|
};
|
|
1964
1771
|
return this.subscribe(r), t.signal.unsubscribe = () => this.unsubscribe(r), t.signal;
|
|
1965
1772
|
}
|
|
@@ -1970,22 +1777,22 @@ let wn = class Ht {
|
|
|
1970
1777
|
static source() {
|
|
1971
1778
|
let t;
|
|
1972
1779
|
return {
|
|
1973
|
-
token: new
|
|
1974
|
-
t =
|
|
1780
|
+
token: new Vt(function(n) {
|
|
1781
|
+
t = n;
|
|
1975
1782
|
}),
|
|
1976
1783
|
cancel: t
|
|
1977
1784
|
};
|
|
1978
1785
|
}
|
|
1979
1786
|
};
|
|
1980
|
-
function
|
|
1787
|
+
function hs(e) {
|
|
1981
1788
|
return function(r) {
|
|
1982
1789
|
return e.apply(null, r);
|
|
1983
1790
|
};
|
|
1984
1791
|
}
|
|
1985
|
-
function
|
|
1792
|
+
function fs(e) {
|
|
1986
1793
|
return u.isObject(e) && e.isAxiosError === !0;
|
|
1987
1794
|
}
|
|
1988
|
-
const
|
|
1795
|
+
const Ne = {
|
|
1989
1796
|
Continue: 100,
|
|
1990
1797
|
SwitchingProtocols: 101,
|
|
1991
1798
|
Processing: 102,
|
|
@@ -2056,87 +1863,86 @@ const qe = {
|
|
|
2056
1863
|
SslHandshakeFailed: 525,
|
|
2057
1864
|
InvalidSslCertificate: 526
|
|
2058
1865
|
};
|
|
2059
|
-
Object.entries(
|
|
2060
|
-
|
|
1866
|
+
Object.entries(Ne).forEach(([e, t]) => {
|
|
1867
|
+
Ne[t] = e;
|
|
2061
1868
|
});
|
|
2062
|
-
function
|
|
2063
|
-
const t = new
|
|
2064
|
-
return u.extend(r,
|
|
2065
|
-
return
|
|
1869
|
+
function Nt(e) {
|
|
1870
|
+
const t = new W(e), r = dt(W.prototype.request, t);
|
|
1871
|
+
return u.extend(r, W.prototype, t, { allOwnKeys: !0 }), u.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(n) {
|
|
1872
|
+
return Nt(Y(e, n));
|
|
2066
1873
|
}, r;
|
|
2067
1874
|
}
|
|
2068
|
-
const O =
|
|
2069
|
-
O.Axios =
|
|
2070
|
-
O.CanceledError =
|
|
2071
|
-
O.CancelToken =
|
|
2072
|
-
O.isCancel =
|
|
2073
|
-
O.VERSION =
|
|
2074
|
-
O.toFormData =
|
|
2075
|
-
O.AxiosError =
|
|
1875
|
+
const O = Nt(oe);
|
|
1876
|
+
O.Axios = W;
|
|
1877
|
+
O.CanceledError = ae;
|
|
1878
|
+
O.CancelToken = ps;
|
|
1879
|
+
O.isCancel = St;
|
|
1880
|
+
O.VERSION = gt;
|
|
1881
|
+
O.toFormData = me;
|
|
1882
|
+
O.AxiosError = A;
|
|
2076
1883
|
O.Cancel = O.CanceledError;
|
|
2077
1884
|
O.all = function(t) {
|
|
2078
1885
|
return Promise.all(t);
|
|
2079
1886
|
};
|
|
2080
|
-
O.spread =
|
|
2081
|
-
O.isAxiosError =
|
|
2082
|
-
O.mergeConfig =
|
|
1887
|
+
O.spread = hs;
|
|
1888
|
+
O.isAxiosError = fs;
|
|
1889
|
+
O.mergeConfig = Y;
|
|
2083
1890
|
O.AxiosHeaders = U;
|
|
2084
|
-
O.formToJSON = (e) =>
|
|
2085
|
-
O.getAdapter =
|
|
2086
|
-
O.HttpStatusCode =
|
|
1891
|
+
O.formToJSON = (e) => Pt(u.isHTMLForm(e) ? new FormData(e) : e);
|
|
1892
|
+
O.getAdapter = Lt.getAdapter;
|
|
1893
|
+
O.HttpStatusCode = Ne;
|
|
2087
1894
|
O.default = O;
|
|
2088
1895
|
const {
|
|
2089
|
-
Axios:
|
|
2090
|
-
AxiosError:
|
|
2091
|
-
CanceledError:
|
|
2092
|
-
isCancel:
|
|
2093
|
-
CancelToken:
|
|
2094
|
-
VERSION:
|
|
2095
|
-
all:
|
|
2096
|
-
Cancel:
|
|
2097
|
-
isAxiosError:
|
|
2098
|
-
spread:
|
|
2099
|
-
toFormData:
|
|
2100
|
-
AxiosHeaders:
|
|
2101
|
-
HttpStatusCode:
|
|
2102
|
-
formToJSON:
|
|
2103
|
-
getAdapter:
|
|
2104
|
-
mergeConfig:
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
this.basePath = r, this.axios = n, t && (this.configuration = t, this.basePath = t.basePath ?? r);
|
|
1896
|
+
Axios: Xs,
|
|
1897
|
+
AxiosError: Js,
|
|
1898
|
+
CanceledError: Zs,
|
|
1899
|
+
isCancel: Ks,
|
|
1900
|
+
CancelToken: Qs,
|
|
1901
|
+
VERSION: en,
|
|
1902
|
+
all: tn,
|
|
1903
|
+
Cancel: rn,
|
|
1904
|
+
isAxiosError: sn,
|
|
1905
|
+
spread: nn,
|
|
1906
|
+
toFormData: on,
|
|
1907
|
+
AxiosHeaders: an,
|
|
1908
|
+
HttpStatusCode: ln,
|
|
1909
|
+
formToJSON: cn,
|
|
1910
|
+
getAdapter: dn,
|
|
1911
|
+
mergeConfig: un
|
|
1912
|
+
} = O, m = "https://faceapi.regulaforensics.com".replace(/\/+$/, "");
|
|
1913
|
+
class Q {
|
|
1914
|
+
constructor(t, r = m, s = O) {
|
|
1915
|
+
this.basePath = r, this.axios = s, t && (this.configuration = t, this.basePath = t.basePath ?? r);
|
|
2110
1916
|
}
|
|
2111
1917
|
}
|
|
2112
|
-
class
|
|
1918
|
+
class Es extends Error {
|
|
2113
1919
|
constructor(t, r) {
|
|
2114
1920
|
super(r), this.field = t, this.name = "RequiredError";
|
|
2115
1921
|
}
|
|
2116
1922
|
}
|
|
2117
|
-
const
|
|
1923
|
+
const T = {}, P = "https://example.com", R = function(e, t, r) {
|
|
2118
1924
|
if (r == null)
|
|
2119
|
-
throw new
|
|
1925
|
+
throw new Es(t, `Required parameter ${t} was null or undefined when calling ${e}.`);
|
|
2120
1926
|
};
|
|
2121
|
-
function
|
|
2122
|
-
t != null && (typeof t == "object" ? Array.isArray(t) ? t.forEach((
|
|
2123
|
-
(
|
|
1927
|
+
function Ue(e, t, r = "") {
|
|
1928
|
+
t != null && (typeof t == "object" ? Array.isArray(t) ? t.forEach((s) => Ue(e, s, r)) : Object.keys(t).forEach(
|
|
1929
|
+
(s) => Ue(e, t[s], `${r}${r !== "" ? "." : ""}${s}`)
|
|
2124
1930
|
) : e.has(r) ? e.append(r, t) : e.set(r, t));
|
|
2125
1931
|
}
|
|
2126
|
-
const
|
|
1932
|
+
const I = function(e, ...t) {
|
|
2127
1933
|
const r = new URLSearchParams(e.search);
|
|
2128
|
-
|
|
2129
|
-
},
|
|
2130
|
-
const
|
|
2131
|
-
return (
|
|
2132
|
-
},
|
|
1934
|
+
Ue(r, t), e.search = r.toString();
|
|
1935
|
+
}, M = function(e, t, r) {
|
|
1936
|
+
const s = typeof e != "string";
|
|
1937
|
+
return (s && r && r.isJsonMime ? r.isJsonMime(t.headers["Content-Type"]) : s) ? JSON.stringify(e !== void 0 ? e : {}) : e || "";
|
|
1938
|
+
}, S = function(e) {
|
|
2133
1939
|
return e.pathname + e.search + e.hash;
|
|
2134
|
-
},
|
|
2135
|
-
return (
|
|
2136
|
-
const a = { ...e.options, url: (
|
|
2137
|
-
return
|
|
1940
|
+
}, b = function(e, t, r, s) {
|
|
1941
|
+
return (n = t, o = r) => {
|
|
1942
|
+
const a = { ...e.options, url: (n.defaults.baseURL ? "" : s?.basePath ?? o) + e.url };
|
|
1943
|
+
return n.request(a);
|
|
2138
1944
|
};
|
|
2139
|
-
},
|
|
1945
|
+
}, As = function(e) {
|
|
2140
1946
|
return {
|
|
2141
1947
|
/**
|
|
2142
1948
|
* Use the POST `api/detect` endpoint to analyze images, recognize faces in them, and return cropped and aligned portraits of the detected people. The Face Detection feature lets you additionally: - **Check face image quality**: Assess whether a portrait meets certain standards, for example, ICAO, Schengen visa, USA visa. To perform image quality check, use the `processParam.quality` field. For the list of assessed characteristics, see the [Face Image Quality Characteristics page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/). - **Evaluate face attributes**: Estimate the age range of a person; check whether the eyes are occluded, closed, or open; detect a facial expression or smile; see if there are glasses, sunglasses, head coverage, medical mask, etc. To evaluate attributes, add the `processParam.attributes` field. For the list of assessed attributes, see the [Attributes List page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/). You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and you will need to add all the necessary parameters to each request. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones. For detailed information about scenarios, refer to the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/).
|
|
@@ -2146,37 +1952,37 @@ const L = function(e, ...t) {
|
|
|
2146
1952
|
* @param {*} [options] Override http request option.
|
|
2147
1953
|
* @throws {RequiredError}
|
|
2148
1954
|
*/
|
|
2149
|
-
detect: async (t, r,
|
|
2150
|
-
|
|
2151
|
-
const
|
|
1955
|
+
detect: async (t, r, s = {}) => {
|
|
1956
|
+
R("detect", "detectRequest", t);
|
|
1957
|
+
const n = "/api/detect", o = new URL(n, P);
|
|
2152
1958
|
let a;
|
|
2153
1959
|
e && (a = e.baseOptions);
|
|
2154
|
-
const i = { method: "POST", ...a, ...
|
|
2155
|
-
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)),
|
|
1960
|
+
const i = { method: "POST", ...a, ...s }, l = {}, c = {};
|
|
1961
|
+
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
2156
1962
|
let d = a && a.headers ? a.headers : {};
|
|
2157
|
-
return i.headers = { ...l, ...d, ...
|
|
2158
|
-
url:
|
|
1963
|
+
return i.headers = { ...l, ...d, ...s.headers }, i.data = M(t, i, e), {
|
|
1964
|
+
url: S(o),
|
|
2159
1965
|
options: i
|
|
2160
1966
|
};
|
|
2161
1967
|
},
|
|
2162
1968
|
/**
|
|
2163
|
-
* To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It\'s possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br>
|
|
1969
|
+
* To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It\'s possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br> The face detection result is displayed in the `detections` field. Each face is identified by two parameters: `faceIndex` (the index number of the face) and `imageIndex` (the index number of the image on which the face is detected). So, if there are two images each of which has two faces in them, the parameters will be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, `imageIndex: 1`
|
|
2164
1970
|
* @summary compare faces (1:1)
|
|
2165
1971
|
* @param {MatchRequest} matchRequest
|
|
2166
1972
|
* @param {string} [xRequestID] Request header label.
|
|
2167
1973
|
* @param {*} [options] Override http request option.
|
|
2168
1974
|
* @throws {RequiredError}
|
|
2169
1975
|
*/
|
|
2170
|
-
match: async (t, r,
|
|
2171
|
-
|
|
2172
|
-
const
|
|
1976
|
+
match: async (t, r, s = {}) => {
|
|
1977
|
+
R("match", "matchRequest", t);
|
|
1978
|
+
const n = "/api/match", o = new URL(n, P);
|
|
2173
1979
|
let a;
|
|
2174
1980
|
e && (a = e.baseOptions);
|
|
2175
|
-
const i = { method: "POST", ...a, ...
|
|
2176
|
-
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)),
|
|
1981
|
+
const i = { method: "POST", ...a, ...s }, l = {}, c = {};
|
|
1982
|
+
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
2177
1983
|
let d = a && a.headers ? a.headers : {};
|
|
2178
|
-
return i.headers = { ...l, ...d, ...
|
|
2179
|
-
url:
|
|
1984
|
+
return i.headers = { ...l, ...d, ...s.headers }, i.data = M(t, i, e), {
|
|
1985
|
+
url: S(o),
|
|
2180
1986
|
options: i
|
|
2181
1987
|
};
|
|
2182
1988
|
},
|
|
@@ -2188,22 +1994,22 @@ const L = function(e, ...t) {
|
|
|
2188
1994
|
* @param {*} [options] Override http request option.
|
|
2189
1995
|
* @throws {RequiredError}
|
|
2190
1996
|
*/
|
|
2191
|
-
matchAndSearch: async (t, r,
|
|
2192
|
-
|
|
2193
|
-
const
|
|
1997
|
+
matchAndSearch: async (t, r, s = {}) => {
|
|
1998
|
+
R("matchAndSearch", "matchAndSearchRequest", t);
|
|
1999
|
+
const n = "/api/match_and_search", o = new URL(n, P);
|
|
2194
2000
|
let a;
|
|
2195
2001
|
e && (a = e.baseOptions);
|
|
2196
|
-
const i = { method: "POST", ...a, ...
|
|
2197
|
-
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)),
|
|
2002
|
+
const i = { method: "POST", ...a, ...s }, l = {}, c = {};
|
|
2003
|
+
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
2198
2004
|
let d = a && a.headers ? a.headers : {};
|
|
2199
|
-
return i.headers = { ...l, ...d, ...
|
|
2200
|
-
url:
|
|
2005
|
+
return i.headers = { ...l, ...d, ...s.headers }, i.data = M(t, i, e), {
|
|
2006
|
+
url: S(o),
|
|
2201
2007
|
options: i
|
|
2202
2008
|
};
|
|
2203
2009
|
}
|
|
2204
2010
|
};
|
|
2205
|
-
},
|
|
2206
|
-
const t =
|
|
2011
|
+
}, Ce = function(e) {
|
|
2012
|
+
const t = As(e);
|
|
2207
2013
|
return {
|
|
2208
2014
|
/**
|
|
2209
2015
|
* Use the POST `api/detect` endpoint to analyze images, recognize faces in them, and return cropped and aligned portraits of the detected people. The Face Detection feature lets you additionally: - **Check face image quality**: Assess whether a portrait meets certain standards, for example, ICAO, Schengen visa, USA visa. To perform image quality check, use the `processParam.quality` field. For the list of assessed characteristics, see the [Face Image Quality Characteristics page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/). - **Evaluate face attributes**: Estimate the age range of a person; check whether the eyes are occluded, closed, or open; detect a facial expression or smile; see if there are glasses, sunglasses, head coverage, medical mask, etc. To evaluate attributes, add the `processParam.attributes` field. For the list of assessed attributes, see the [Attributes List page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/). You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and you will need to add all the necessary parameters to each request. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones. For detailed information about scenarios, refer to the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/).
|
|
@@ -2213,21 +2019,21 @@ const L = function(e, ...t) {
|
|
|
2213
2019
|
* @param {*} [options] Override http request option.
|
|
2214
2020
|
* @throws {RequiredError}
|
|
2215
2021
|
*/
|
|
2216
|
-
async detect(r,
|
|
2217
|
-
const o = await t.detect(r,
|
|
2218
|
-
return (l, c) =>
|
|
2022
|
+
async detect(r, s, n) {
|
|
2023
|
+
const o = await t.detect(r, s, n), a = e?.serverIndex ?? 0, i = T["MatchApi.detect"]?.[a]?.url;
|
|
2024
|
+
return (l, c) => b(o, O, m, e)(l, i || c);
|
|
2219
2025
|
},
|
|
2220
2026
|
/**
|
|
2221
|
-
* To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It\'s possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br>
|
|
2027
|
+
* To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It\'s possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br> The face detection result is displayed in the `detections` field. Each face is identified by two parameters: `faceIndex` (the index number of the face) and `imageIndex` (the index number of the image on which the face is detected). So, if there are two images each of which has two faces in them, the parameters will be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, `imageIndex: 1`
|
|
2222
2028
|
* @summary compare faces (1:1)
|
|
2223
2029
|
* @param {MatchRequest} matchRequest
|
|
2224
2030
|
* @param {string} [xRequestID] Request header label.
|
|
2225
2031
|
* @param {*} [options] Override http request option.
|
|
2226
2032
|
* @throws {RequiredError}
|
|
2227
2033
|
*/
|
|
2228
|
-
async match(r,
|
|
2229
|
-
const o = await t.match(r,
|
|
2230
|
-
return (l, c) =>
|
|
2034
|
+
async match(r, s, n) {
|
|
2035
|
+
const o = await t.match(r, s, n), a = e?.serverIndex ?? 0, i = T["MatchApi.match"]?.[a]?.url;
|
|
2036
|
+
return (l, c) => b(o, O, m, e)(l, i || c);
|
|
2231
2037
|
},
|
|
2232
2038
|
/**
|
|
2233
2039
|
* To compare several images from a document and look up a person in the database in one request, use POST `/api/match_and_search`. In this case, the calculation of the descriptor will be performed only once, as opposed to using two requests for the same operation. At least two photos are required. If, after processing two or more photos, only one face is detected across them, the match step is skipped, and only the search is carried out.
|
|
@@ -2237,13 +2043,13 @@ const L = function(e, ...t) {
|
|
|
2237
2043
|
* @param {*} [options] Override http request option.
|
|
2238
2044
|
* @throws {RequiredError}
|
|
2239
2045
|
*/
|
|
2240
|
-
async matchAndSearch(r,
|
|
2241
|
-
const o = await t.matchAndSearch(r,
|
|
2242
|
-
return (l, c) =>
|
|
2046
|
+
async matchAndSearch(r, s, n) {
|
|
2047
|
+
const o = await t.matchAndSearch(r, s, n), a = e?.serverIndex ?? 0, i = T["MatchApi.matchAndSearch"]?.[a]?.url;
|
|
2048
|
+
return (l, c) => b(o, O, m, e)(l, i || c);
|
|
2243
2049
|
}
|
|
2244
2050
|
};
|
|
2245
2051
|
};
|
|
2246
|
-
let
|
|
2052
|
+
let Os = class extends Q {
|
|
2247
2053
|
/**
|
|
2248
2054
|
* Use the POST `api/detect` endpoint to analyze images, recognize faces in them, and return cropped and aligned portraits of the detected people. The Face Detection feature lets you additionally: - **Check face image quality**: Assess whether a portrait meets certain standards, for example, ICAO, Schengen visa, USA visa. To perform image quality check, use the `processParam.quality` field. For the list of assessed characteristics, see the [Face Image Quality Characteristics page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/). - **Evaluate face attributes**: Estimate the age range of a person; check whether the eyes are occluded, closed, or open; detect a facial expression or smile; see if there are glasses, sunglasses, head coverage, medical mask, etc. To evaluate attributes, add the `processParam.attributes` field. For the list of assessed attributes, see the [Attributes List page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/). You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and you will need to add all the necessary parameters to each request. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones. For detailed information about scenarios, refer to the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/).
|
|
2249
2055
|
* @summary detect and check quality
|
|
@@ -2252,19 +2058,19 @@ let xn = class extends ae {
|
|
|
2252
2058
|
* @param {*} [options] Override http request option.
|
|
2253
2059
|
* @throws {RequiredError}
|
|
2254
2060
|
*/
|
|
2255
|
-
detect(t, r,
|
|
2256
|
-
return
|
|
2061
|
+
detect(t, r, s) {
|
|
2062
|
+
return Ce(this.configuration).detect(t, r, s).then((n) => n(this.axios, this.basePath));
|
|
2257
2063
|
}
|
|
2258
2064
|
/**
|
|
2259
|
-
* To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It\'s possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br>
|
|
2065
|
+
* To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It\'s possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br> The face detection result is displayed in the `detections` field. Each face is identified by two parameters: `faceIndex` (the index number of the face) and `imageIndex` (the index number of the image on which the face is detected). So, if there are two images each of which has two faces in them, the parameters will be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, `imageIndex: 1`
|
|
2260
2066
|
* @summary compare faces (1:1)
|
|
2261
2067
|
* @param {MatchRequest} matchRequest
|
|
2262
2068
|
* @param {string} [xRequestID] Request header label.
|
|
2263
2069
|
* @param {*} [options] Override http request option.
|
|
2264
2070
|
* @throws {RequiredError}
|
|
2265
2071
|
*/
|
|
2266
|
-
match(t, r,
|
|
2267
|
-
return
|
|
2072
|
+
match(t, r, s) {
|
|
2073
|
+
return Ce(this.configuration).match(t, r, s).then((n) => n(this.axios, this.basePath));
|
|
2268
2074
|
}
|
|
2269
2075
|
/**
|
|
2270
2076
|
* To compare several images from a document and look up a person in the database in one request, use POST `/api/match_and_search`. In this case, the calculation of the descriptor will be performed only once, as opposed to using two requests for the same operation. At least two photos are required. If, after processing two or more photos, only one face is detected across them, the match step is skipped, and only the search is carried out.
|
|
@@ -2274,33 +2080,33 @@ let xn = class extends ae {
|
|
|
2274
2080
|
* @param {*} [options] Override http request option.
|
|
2275
2081
|
* @throws {RequiredError}
|
|
2276
2082
|
*/
|
|
2277
|
-
matchAndSearch(t, r,
|
|
2278
|
-
return
|
|
2083
|
+
matchAndSearch(t, r, s) {
|
|
2084
|
+
return Ce(this.configuration).matchAndSearch(t, r, s).then((n) => n(this.axios, this.basePath));
|
|
2279
2085
|
}
|
|
2280
2086
|
};
|
|
2281
|
-
var
|
|
2282
|
-
for (var
|
|
2283
|
-
|
|
2284
|
-
var
|
|
2285
|
-
var t = new Uint8Array(e), r,
|
|
2286
|
-
for (r = 0; r <
|
|
2287
|
-
|
|
2288
|
-
return
|
|
2087
|
+
var _s = /* @__PURE__ */ ((e) => (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))(_s || {}), Rs = /* @__PURE__ */ ((e) => (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))(Rs || {}), ms = /* @__PURE__ */ ((e) => (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))(ms || {}), Ts = /* @__PURE__ */ ((e) => (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))(Ts || {}), Ps = /* @__PURE__ */ ((e) => (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))(Ps || {}), Is = /* @__PURE__ */ ((e) => (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))(Is || {}), Ss = /* @__PURE__ */ ((e) => (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))(Ss || {}), bs = /* @__PURE__ */ ((e) => (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))(bs || {}), ws = /* @__PURE__ */ ((e) => (e.IN = "in", e.NOT_IN = "nin", e))(ws || {}), Ut = /* @__PURE__ */ ((e) => (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))(Ut || {}), ys = /* @__PURE__ */ ((e) => (e[e.ACTIVE = 0] = "ACTIVE", e[e.PASSIVE = 1] = "PASSIVE", e))(ys || {}), J = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Cs = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
2088
|
+
for (var ue = 0; ue < J.length; ue++)
|
|
2089
|
+
Cs[J.charCodeAt(ue)] = ue;
|
|
2090
|
+
var Ae = function(e) {
|
|
2091
|
+
var t = new Uint8Array(e), r, s = t.length, n = "";
|
|
2092
|
+
for (r = 0; r < s; r += 3)
|
|
2093
|
+
n += J[t[r] >> 2], n += J[(t[r] & 3) << 4 | t[r + 1] >> 4], n += J[(t[r + 1] & 15) << 2 | t[r + 2] >> 6], n += J[t[r + 2] & 63];
|
|
2094
|
+
return s % 3 === 2 ? n = n.substring(0, n.length - 1) + "=" : s % 3 === 1 && (n = n.substring(0, n.length - 2) + "=="), n;
|
|
2289
2095
|
};
|
|
2290
|
-
class
|
|
2291
|
-
constructor(t, r,
|
|
2292
|
-
this.superClass = new
|
|
2096
|
+
class Ls {
|
|
2097
|
+
constructor(t, r, s) {
|
|
2098
|
+
this.superClass = new Os(t, r, s);
|
|
2293
2099
|
}
|
|
2294
|
-
async match(t, r,
|
|
2100
|
+
async match(t, r, s) {
|
|
2295
2101
|
for (const o of t.images)
|
|
2296
|
-
o.type || (o.type =
|
|
2297
|
-
return (await this.superClass.match(t, r,
|
|
2102
|
+
o.type || (o.type = Ut.LIVE), typeof o.data != "string" && (o.data = Ae(o.data));
|
|
2103
|
+
return (await this.superClass.match(t, r, s)).data;
|
|
2298
2104
|
}
|
|
2299
|
-
async detect(t, r,
|
|
2300
|
-
return t.image && typeof t.image != "string" && (t.image =
|
|
2105
|
+
async detect(t, r, s) {
|
|
2106
|
+
return t.image && typeof t.image != "string" && (t.image = Ae(t.image)), (await this.superClass.detect(t, r, s)).data;
|
|
2301
2107
|
}
|
|
2302
2108
|
}
|
|
2303
|
-
const
|
|
2109
|
+
const gs = function(e) {
|
|
2304
2110
|
return {
|
|
2305
2111
|
/**
|
|
2306
2112
|
*
|
|
@@ -2310,16 +2116,16 @@ const zn = function(e) {
|
|
|
2310
2116
|
* @param {*} [options] Override http request option.
|
|
2311
2117
|
* @throws {RequiredError}
|
|
2312
2118
|
*/
|
|
2313
|
-
createGroup: async (t, r,
|
|
2314
|
-
|
|
2315
|
-
const
|
|
2119
|
+
createGroup: async (t, r, s = {}) => {
|
|
2120
|
+
R("createGroup", "groupToCreate", t);
|
|
2121
|
+
const n = "/api/groups", o = new URL(n, P);
|
|
2316
2122
|
let a;
|
|
2317
2123
|
e && (a = e.baseOptions);
|
|
2318
|
-
const i = { method: "POST", ...a, ...
|
|
2319
|
-
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)),
|
|
2124
|
+
const i = { method: "POST", ...a, ...s }, l = {}, c = {};
|
|
2125
|
+
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
2320
2126
|
let d = a && a.headers ? a.headers : {};
|
|
2321
|
-
return i.headers = { ...l, ...d, ...
|
|
2322
|
-
url:
|
|
2127
|
+
return i.headers = { ...l, ...d, ...s.headers }, i.data = M(t, i, e), {
|
|
2128
|
+
url: S(o),
|
|
2323
2129
|
options: i
|
|
2324
2130
|
};
|
|
2325
2131
|
},
|
|
@@ -2331,16 +2137,16 @@ const zn = function(e) {
|
|
|
2331
2137
|
* @param {*} [options] Override http request option.
|
|
2332
2138
|
* @throws {RequiredError}
|
|
2333
2139
|
*/
|
|
2334
|
-
deleteGroup: async (t, r,
|
|
2335
|
-
|
|
2336
|
-
const
|
|
2140
|
+
deleteGroup: async (t, r, s = {}) => {
|
|
2141
|
+
R("deleteGroup", "groupId", t);
|
|
2142
|
+
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), o = new URL(n, P);
|
|
2337
2143
|
let a;
|
|
2338
2144
|
e && (a = e.baseOptions);
|
|
2339
|
-
const i = { method: "DELETE", ...a, ...
|
|
2340
|
-
r != null && (l["X-RequestID"] = String(r)),
|
|
2145
|
+
const i = { method: "DELETE", ...a, ...s }, l = {}, c = {};
|
|
2146
|
+
r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
2341
2147
|
let d = a && a.headers ? a.headers : {};
|
|
2342
|
-
return i.headers = { ...l, ...d, ...
|
|
2343
|
-
url:
|
|
2148
|
+
return i.headers = { ...l, ...d, ...s.headers }, {
|
|
2149
|
+
url: S(o),
|
|
2344
2150
|
options: i
|
|
2345
2151
|
};
|
|
2346
2152
|
},
|
|
@@ -2353,15 +2159,15 @@ const zn = function(e) {
|
|
|
2353
2159
|
* @param {*} [options] Override http request option.
|
|
2354
2160
|
* @throws {RequiredError}
|
|
2355
2161
|
*/
|
|
2356
|
-
getAllGroups: async (t, r,
|
|
2357
|
-
const o = "/api/groups", a = new URL(o,
|
|
2162
|
+
getAllGroups: async (t, r, s, n = {}) => {
|
|
2163
|
+
const o = "/api/groups", a = new URL(o, P);
|
|
2358
2164
|
let i;
|
|
2359
2165
|
e && (i = e.baseOptions);
|
|
2360
|
-
const l = { method: "GET", ...i, ...
|
|
2361
|
-
r !== void 0 && (d.page = r),
|
|
2166
|
+
const l = { method: "GET", ...i, ...n }, c = {}, d = {};
|
|
2167
|
+
r !== void 0 && (d.page = r), s !== void 0 && (d.size = s), t != null && (c["X-RequestID"] = String(t)), I(a, d);
|
|
2362
2168
|
let p = i && i.headers ? i.headers : {};
|
|
2363
|
-
return l.headers = { ...c, ...p, ...
|
|
2364
|
-
url:
|
|
2169
|
+
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
2170
|
+
url: S(a),
|
|
2365
2171
|
options: l
|
|
2366
2172
|
};
|
|
2367
2173
|
},
|
|
@@ -2375,16 +2181,16 @@ const zn = function(e) {
|
|
|
2375
2181
|
* @param {*} [options] Override http request option.
|
|
2376
2182
|
* @throws {RequiredError}
|
|
2377
2183
|
*/
|
|
2378
|
-
getAllPersonsByGroupId: async (t, r,
|
|
2379
|
-
|
|
2380
|
-
const a = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), i = new URL(a,
|
|
2184
|
+
getAllPersonsByGroupId: async (t, r, s, n, o = {}) => {
|
|
2185
|
+
R("getAllPersonsByGroupId", "groupId", t);
|
|
2186
|
+
const a = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), i = new URL(a, P);
|
|
2381
2187
|
let l;
|
|
2382
2188
|
e && (l = e.baseOptions);
|
|
2383
2189
|
const c = { method: "GET", ...l, ...o }, d = {}, p = {};
|
|
2384
|
-
|
|
2190
|
+
s !== void 0 && (p.page = s), n !== void 0 && (p.size = n), r != null && (d["X-RequestID"] = String(r)), I(i, p);
|
|
2385
2191
|
let _ = l && l.headers ? l.headers : {};
|
|
2386
2192
|
return c.headers = { ...d, ..._, ...o.headers }, {
|
|
2387
|
-
url:
|
|
2193
|
+
url: S(i),
|
|
2388
2194
|
options: c
|
|
2389
2195
|
};
|
|
2390
2196
|
},
|
|
@@ -2396,16 +2202,16 @@ const zn = function(e) {
|
|
|
2396
2202
|
* @param {*} [options] Override http request option.
|
|
2397
2203
|
* @throws {RequiredError}
|
|
2398
2204
|
*/
|
|
2399
|
-
getGroup: async (t, r,
|
|
2400
|
-
|
|
2401
|
-
const
|
|
2205
|
+
getGroup: async (t, r, s = {}) => {
|
|
2206
|
+
R("getGroup", "groupId", t);
|
|
2207
|
+
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), o = new URL(n, P);
|
|
2402
2208
|
let a;
|
|
2403
2209
|
e && (a = e.baseOptions);
|
|
2404
|
-
const i = { method: "GET", ...a, ...
|
|
2405
|
-
r != null && (l["X-RequestID"] = String(r)),
|
|
2210
|
+
const i = { method: "GET", ...a, ...s }, l = {}, c = {};
|
|
2211
|
+
r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
2406
2212
|
let d = a && a.headers ? a.headers : {};
|
|
2407
|
-
return i.headers = { ...l, ...d, ...
|
|
2408
|
-
url:
|
|
2213
|
+
return i.headers = { ...l, ...d, ...s.headers }, {
|
|
2214
|
+
url: S(o),
|
|
2409
2215
|
options: i
|
|
2410
2216
|
};
|
|
2411
2217
|
},
|
|
@@ -2418,16 +2224,16 @@ const zn = function(e) {
|
|
|
2418
2224
|
* @param {*} [options] Override http request option.
|
|
2419
2225
|
* @throws {RequiredError}
|
|
2420
2226
|
*/
|
|
2421
|
-
updateGroup: async (t, r,
|
|
2422
|
-
|
|
2423
|
-
const o = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(o,
|
|
2227
|
+
updateGroup: async (t, r, s, n = {}) => {
|
|
2228
|
+
R("updateGroup", "groupId", t), R("updateGroup", "groupToCreate", r);
|
|
2229
|
+
const o = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(o, P);
|
|
2424
2230
|
let i;
|
|
2425
2231
|
e && (i = e.baseOptions);
|
|
2426
|
-
const l = { method: "PUT", ...i, ...
|
|
2427
|
-
c["Content-Type"] = "application/json",
|
|
2232
|
+
const l = { method: "PUT", ...i, ...n }, c = {}, d = {};
|
|
2233
|
+
c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(a, d);
|
|
2428
2234
|
let p = i && i.headers ? i.headers : {};
|
|
2429
|
-
return l.headers = { ...c, ...p, ...
|
|
2430
|
-
url:
|
|
2235
|
+
return l.headers = { ...c, ...p, ...n.headers }, l.data = M(r, l, e), {
|
|
2236
|
+
url: S(a),
|
|
2431
2237
|
options: l
|
|
2432
2238
|
};
|
|
2433
2239
|
},
|
|
@@ -2440,22 +2246,22 @@ const zn = function(e) {
|
|
|
2440
2246
|
* @param {*} [options] Override http request option.
|
|
2441
2247
|
* @throws {RequiredError}
|
|
2442
2248
|
*/
|
|
2443
|
-
updatePersonsInGroup: async (t, r,
|
|
2444
|
-
|
|
2445
|
-
const o = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(o,
|
|
2249
|
+
updatePersonsInGroup: async (t, r, s, n = {}) => {
|
|
2250
|
+
R("updatePersonsInGroup", "groupId", t), R("updatePersonsInGroup", "updateGroup", r);
|
|
2251
|
+
const o = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(o, P);
|
|
2446
2252
|
let i;
|
|
2447
2253
|
e && (i = e.baseOptions);
|
|
2448
|
-
const l = { method: "PUT", ...i, ...
|
|
2449
|
-
c["Content-Type"] = "application/json",
|
|
2254
|
+
const l = { method: "PUT", ...i, ...n }, c = {}, d = {};
|
|
2255
|
+
c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(a, d);
|
|
2450
2256
|
let p = i && i.headers ? i.headers : {};
|
|
2451
|
-
return l.headers = { ...c, ...p, ...
|
|
2452
|
-
url:
|
|
2257
|
+
return l.headers = { ...c, ...p, ...n.headers }, l.data = M(r, l, e), {
|
|
2258
|
+
url: S(a),
|
|
2453
2259
|
options: l
|
|
2454
2260
|
};
|
|
2455
2261
|
}
|
|
2456
2262
|
};
|
|
2457
|
-
},
|
|
2458
|
-
const t =
|
|
2263
|
+
}, $ = function(e) {
|
|
2264
|
+
const t = gs(e);
|
|
2459
2265
|
return {
|
|
2460
2266
|
/**
|
|
2461
2267
|
*
|
|
@@ -2465,9 +2271,9 @@ const zn = function(e) {
|
|
|
2465
2271
|
* @param {*} [options] Override http request option.
|
|
2466
2272
|
* @throws {RequiredError}
|
|
2467
2273
|
*/
|
|
2468
|
-
async createGroup(r,
|
|
2469
|
-
const o = await t.createGroup(r,
|
|
2470
|
-
return (l, c) =>
|
|
2274
|
+
async createGroup(r, s, n) {
|
|
2275
|
+
const o = await t.createGroup(r, s, n), a = e?.serverIndex ?? 0, i = T["GroupApi.createGroup"]?.[a]?.url;
|
|
2276
|
+
return (l, c) => b(o, O, m, e)(l, i || c);
|
|
2471
2277
|
},
|
|
2472
2278
|
/**
|
|
2473
2279
|
*
|
|
@@ -2477,9 +2283,9 @@ const zn = function(e) {
|
|
|
2477
2283
|
* @param {*} [options] Override http request option.
|
|
2478
2284
|
* @throws {RequiredError}
|
|
2479
2285
|
*/
|
|
2480
|
-
async deleteGroup(r,
|
|
2481
|
-
const o = await t.deleteGroup(r,
|
|
2482
|
-
return (l, c) =>
|
|
2286
|
+
async deleteGroup(r, s, n) {
|
|
2287
|
+
const o = await t.deleteGroup(r, s, n), a = e?.serverIndex ?? 0, i = T["GroupApi.deleteGroup"]?.[a]?.url;
|
|
2288
|
+
return (l, c) => b(o, O, m, e)(l, i || c);
|
|
2483
2289
|
},
|
|
2484
2290
|
/**
|
|
2485
2291
|
*
|
|
@@ -2490,9 +2296,9 @@ const zn = function(e) {
|
|
|
2490
2296
|
* @param {*} [options] Override http request option.
|
|
2491
2297
|
* @throws {RequiredError}
|
|
2492
2298
|
*/
|
|
2493
|
-
async getAllGroups(r,
|
|
2494
|
-
const a = await t.getAllGroups(r,
|
|
2495
|
-
return (c, d) =>
|
|
2299
|
+
async getAllGroups(r, s, n, o) {
|
|
2300
|
+
const a = await t.getAllGroups(r, s, n, o), i = e?.serverIndex ?? 0, l = T["GroupApi.getAllGroups"]?.[i]?.url;
|
|
2301
|
+
return (c, d) => b(a, O, m, e)(c, l || d);
|
|
2496
2302
|
},
|
|
2497
2303
|
/**
|
|
2498
2304
|
*
|
|
@@ -2504,9 +2310,9 @@ const zn = function(e) {
|
|
|
2504
2310
|
* @param {*} [options] Override http request option.
|
|
2505
2311
|
* @throws {RequiredError}
|
|
2506
2312
|
*/
|
|
2507
|
-
async getAllPersonsByGroupId(r,
|
|
2508
|
-
const i = await t.getAllPersonsByGroupId(r,
|
|
2509
|
-
return (d, p) =>
|
|
2313
|
+
async getAllPersonsByGroupId(r, s, n, o, a) {
|
|
2314
|
+
const i = await t.getAllPersonsByGroupId(r, s, n, o, a), l = e?.serverIndex ?? 0, c = T["GroupApi.getAllPersonsByGroupId"]?.[l]?.url;
|
|
2315
|
+
return (d, p) => b(i, O, m, e)(d, c || p);
|
|
2510
2316
|
},
|
|
2511
2317
|
/**
|
|
2512
2318
|
*
|
|
@@ -2516,9 +2322,9 @@ const zn = function(e) {
|
|
|
2516
2322
|
* @param {*} [options] Override http request option.
|
|
2517
2323
|
* @throws {RequiredError}
|
|
2518
2324
|
*/
|
|
2519
|
-
async getGroup(r,
|
|
2520
|
-
const o = await t.getGroup(r,
|
|
2521
|
-
return (l, c) =>
|
|
2325
|
+
async getGroup(r, s, n) {
|
|
2326
|
+
const o = await t.getGroup(r, s, n), a = e?.serverIndex ?? 0, i = T["GroupApi.getGroup"]?.[a]?.url;
|
|
2327
|
+
return (l, c) => b(o, O, m, e)(l, i || c);
|
|
2522
2328
|
},
|
|
2523
2329
|
/**
|
|
2524
2330
|
*
|
|
@@ -2529,9 +2335,9 @@ const zn = function(e) {
|
|
|
2529
2335
|
* @param {*} [options] Override http request option.
|
|
2530
2336
|
* @throws {RequiredError}
|
|
2531
2337
|
*/
|
|
2532
|
-
async updateGroup(r,
|
|
2533
|
-
const a = await t.updateGroup(r,
|
|
2534
|
-
return (c, d) =>
|
|
2338
|
+
async updateGroup(r, s, n, o) {
|
|
2339
|
+
const a = await t.updateGroup(r, s, n, o), i = e?.serverIndex ?? 0, l = T["GroupApi.updateGroup"]?.[i]?.url;
|
|
2340
|
+
return (c, d) => b(a, O, m, e)(c, l || d);
|
|
2535
2341
|
},
|
|
2536
2342
|
/**
|
|
2537
2343
|
*
|
|
@@ -2542,13 +2348,13 @@ const zn = function(e) {
|
|
|
2542
2348
|
* @param {*} [options] Override http request option.
|
|
2543
2349
|
* @throws {RequiredError}
|
|
2544
2350
|
*/
|
|
2545
|
-
async updatePersonsInGroup(r,
|
|
2546
|
-
const a = await t.updatePersonsInGroup(r,
|
|
2547
|
-
return (c, d) =>
|
|
2351
|
+
async updatePersonsInGroup(r, s, n, o) {
|
|
2352
|
+
const a = await t.updatePersonsInGroup(r, s, n, o), i = e?.serverIndex ?? 0, l = T["GroupApi.updatePersonsInGroup"]?.[i]?.url;
|
|
2353
|
+
return (c, d) => b(a, O, m, e)(c, l || d);
|
|
2548
2354
|
}
|
|
2549
2355
|
};
|
|
2550
2356
|
};
|
|
2551
|
-
let
|
|
2357
|
+
let Vs = class extends Q {
|
|
2552
2358
|
/**
|
|
2553
2359
|
*
|
|
2554
2360
|
* @summary Create group
|
|
@@ -2557,8 +2363,8 @@ let $n = class extends ae {
|
|
|
2557
2363
|
* @param {*} [options] Override http request option.
|
|
2558
2364
|
* @throws {RequiredError}
|
|
2559
2365
|
*/
|
|
2560
|
-
createGroup(t, r,
|
|
2561
|
-
return
|
|
2366
|
+
createGroup(t, r, s) {
|
|
2367
|
+
return $(this.configuration).createGroup(t, r, s).then((n) => n(this.axios, this.basePath));
|
|
2562
2368
|
}
|
|
2563
2369
|
/**
|
|
2564
2370
|
*
|
|
@@ -2568,8 +2374,8 @@ let $n = class extends ae {
|
|
|
2568
2374
|
* @param {*} [options] Override http request option.
|
|
2569
2375
|
* @throws {RequiredError}
|
|
2570
2376
|
*/
|
|
2571
|
-
deleteGroup(t, r,
|
|
2572
|
-
return
|
|
2377
|
+
deleteGroup(t, r, s) {
|
|
2378
|
+
return $(this.configuration).deleteGroup(t, r, s).then((n) => n(this.axios, this.basePath));
|
|
2573
2379
|
}
|
|
2574
2380
|
/**
|
|
2575
2381
|
*
|
|
@@ -2580,8 +2386,8 @@ let $n = class extends ae {
|
|
|
2580
2386
|
* @param {*} [options] Override http request option.
|
|
2581
2387
|
* @throws {RequiredError}
|
|
2582
2388
|
*/
|
|
2583
|
-
getAllGroups(t, r,
|
|
2584
|
-
return
|
|
2389
|
+
getAllGroups(t, r, s, n) {
|
|
2390
|
+
return $(this.configuration).getAllGroups(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2585
2391
|
}
|
|
2586
2392
|
/**
|
|
2587
2393
|
*
|
|
@@ -2593,8 +2399,8 @@ let $n = class extends ae {
|
|
|
2593
2399
|
* @param {*} [options] Override http request option.
|
|
2594
2400
|
* @throws {RequiredError}
|
|
2595
2401
|
*/
|
|
2596
|
-
getAllPersonsByGroupId(t, r,
|
|
2597
|
-
return
|
|
2402
|
+
getAllPersonsByGroupId(t, r, s, n, o) {
|
|
2403
|
+
return $(this.configuration).getAllPersonsByGroupId(t, r, s, n, o).then((a) => a(this.axios, this.basePath));
|
|
2598
2404
|
}
|
|
2599
2405
|
/**
|
|
2600
2406
|
*
|
|
@@ -2604,8 +2410,8 @@ let $n = class extends ae {
|
|
|
2604
2410
|
* @param {*} [options] Override http request option.
|
|
2605
2411
|
* @throws {RequiredError}
|
|
2606
2412
|
*/
|
|
2607
|
-
getGroup(t, r,
|
|
2608
|
-
return
|
|
2413
|
+
getGroup(t, r, s) {
|
|
2414
|
+
return $(this.configuration).getGroup(t, r, s).then((n) => n(this.axios, this.basePath));
|
|
2609
2415
|
}
|
|
2610
2416
|
/**
|
|
2611
2417
|
*
|
|
@@ -2616,8 +2422,8 @@ let $n = class extends ae {
|
|
|
2616
2422
|
* @param {*} [options] Override http request option.
|
|
2617
2423
|
* @throws {RequiredError}
|
|
2618
2424
|
*/
|
|
2619
|
-
updateGroup(t, r,
|
|
2620
|
-
return
|
|
2425
|
+
updateGroup(t, r, s, n) {
|
|
2426
|
+
return $(this.configuration).updateGroup(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2621
2427
|
}
|
|
2622
2428
|
/**
|
|
2623
2429
|
*
|
|
@@ -2628,41 +2434,41 @@ let $n = class extends ae {
|
|
|
2628
2434
|
* @param {*} [options] Override http request option.
|
|
2629
2435
|
* @throws {RequiredError}
|
|
2630
2436
|
*/
|
|
2631
|
-
updatePersonsInGroup(t, r,
|
|
2632
|
-
return
|
|
2437
|
+
updatePersonsInGroup(t, r, s, n) {
|
|
2438
|
+
return $(this.configuration).updatePersonsInGroup(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2633
2439
|
}
|
|
2634
2440
|
};
|
|
2635
|
-
class
|
|
2636
|
-
constructor(t, r,
|
|
2637
|
-
this.superClass = new
|
|
2441
|
+
class Ns {
|
|
2442
|
+
constructor(t, r, s) {
|
|
2443
|
+
this.superClass = new Vs(t, r, s);
|
|
2638
2444
|
}
|
|
2639
|
-
async createGroup(t, r,
|
|
2640
|
-
const
|
|
2445
|
+
async createGroup(t, r, s) {
|
|
2446
|
+
const n = {
|
|
2641
2447
|
...t,
|
|
2642
2448
|
metadata: t?.metadata ? t.metadata : {}
|
|
2643
2449
|
};
|
|
2644
|
-
return (await this.superClass.createGroup(
|
|
2450
|
+
return (await this.superClass.createGroup(n, r, s)).data;
|
|
2645
2451
|
}
|
|
2646
|
-
async deleteGroup(t, r,
|
|
2647
|
-
await this.superClass.deleteGroup(t, r,
|
|
2452
|
+
async deleteGroup(t, r, s) {
|
|
2453
|
+
await this.superClass.deleteGroup(t, r, s);
|
|
2648
2454
|
}
|
|
2649
|
-
async getAllGroups(t, r,
|
|
2650
|
-
return (await this.superClass.getAllGroups(
|
|
2455
|
+
async getAllGroups(t, r, s, n) {
|
|
2456
|
+
return (await this.superClass.getAllGroups(s, t, r, n)).data;
|
|
2651
2457
|
}
|
|
2652
|
-
async getAllPersonsByGroupId(t, r,
|
|
2653
|
-
return (await this.superClass.getAllPersonsByGroupId(
|
|
2458
|
+
async getAllPersonsByGroupId(t, r, s, n, o) {
|
|
2459
|
+
return (await this.superClass.getAllPersonsByGroupId(s, n, t, r, o)).data;
|
|
2654
2460
|
}
|
|
2655
|
-
async getGroup(t, r,
|
|
2656
|
-
return (await this.superClass.getGroup(t, r,
|
|
2461
|
+
async getGroup(t, r, s) {
|
|
2462
|
+
return (await this.superClass.getGroup(t, r, s)).data;
|
|
2657
2463
|
}
|
|
2658
|
-
async updateGroup(t, r,
|
|
2659
|
-
await this.superClass.updateGroup(t, r,
|
|
2464
|
+
async updateGroup(t, r, s, n) {
|
|
2465
|
+
await this.superClass.updateGroup(t, r, s, n);
|
|
2660
2466
|
}
|
|
2661
|
-
async updatePersonsInGroup(t, r,
|
|
2662
|
-
await this.superClass.updatePersonsInGroup(t, r,
|
|
2467
|
+
async updatePersonsInGroup(t, r, s, n) {
|
|
2468
|
+
await this.superClass.updatePersonsInGroup(t, r, s, n);
|
|
2663
2469
|
}
|
|
2664
2470
|
}
|
|
2665
|
-
const
|
|
2471
|
+
const Us = function(e) {
|
|
2666
2472
|
return {
|
|
2667
2473
|
/**
|
|
2668
2474
|
*
|
|
@@ -2673,16 +2479,16 @@ const Xn = function(e) {
|
|
|
2673
2479
|
* @param {*} [options] Override http request option.
|
|
2674
2480
|
* @throws {RequiredError}
|
|
2675
2481
|
*/
|
|
2676
|
-
addImageToPerson: async (t, r,
|
|
2677
|
-
|
|
2678
|
-
const o = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), a = new URL(o,
|
|
2482
|
+
addImageToPerson: async (t, r, s, n = {}) => {
|
|
2483
|
+
R("addImageToPerson", "personId", t), R("addImageToPerson", "addImageToPersonRequest", r);
|
|
2484
|
+
const o = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), a = new URL(o, P);
|
|
2679
2485
|
let i;
|
|
2680
2486
|
e && (i = e.baseOptions);
|
|
2681
|
-
const l = { method: "POST", ...i, ...
|
|
2682
|
-
c["Content-Type"] = "application/json",
|
|
2487
|
+
const l = { method: "POST", ...i, ...n }, c = {}, d = {};
|
|
2488
|
+
c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(a, d);
|
|
2683
2489
|
let p = i && i.headers ? i.headers : {};
|
|
2684
|
-
return l.headers = { ...c, ...p, ...
|
|
2685
|
-
url:
|
|
2490
|
+
return l.headers = { ...c, ...p, ...n.headers }, l.data = M(r, l, e), {
|
|
2491
|
+
url: S(a),
|
|
2686
2492
|
options: l
|
|
2687
2493
|
};
|
|
2688
2494
|
},
|
|
@@ -2694,16 +2500,16 @@ const Xn = function(e) {
|
|
|
2694
2500
|
* @param {*} [options] Override http request option.
|
|
2695
2501
|
* @throws {RequiredError}
|
|
2696
2502
|
*/
|
|
2697
|
-
createPerson: async (t, r,
|
|
2698
|
-
|
|
2699
|
-
const
|
|
2503
|
+
createPerson: async (t, r, s = {}) => {
|
|
2504
|
+
R("createPerson", "personFields", t);
|
|
2505
|
+
const n = "/api/persons", o = new URL(n, P);
|
|
2700
2506
|
let a;
|
|
2701
2507
|
e && (a = e.baseOptions);
|
|
2702
|
-
const i = { method: "POST", ...a, ...
|
|
2703
|
-
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)),
|
|
2508
|
+
const i = { method: "POST", ...a, ...s }, l = {}, c = {};
|
|
2509
|
+
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
2704
2510
|
let d = a && a.headers ? a.headers : {};
|
|
2705
|
-
return i.headers = { ...l, ...d, ...
|
|
2706
|
-
url:
|
|
2511
|
+
return i.headers = { ...l, ...d, ...s.headers }, i.data = M(t, i, e), {
|
|
2512
|
+
url: S(o),
|
|
2707
2513
|
options: i
|
|
2708
2514
|
};
|
|
2709
2515
|
},
|
|
@@ -2716,16 +2522,16 @@ const Xn = function(e) {
|
|
|
2716
2522
|
* @param {*} [options] Override http request option.
|
|
2717
2523
|
* @throws {RequiredError}
|
|
2718
2524
|
*/
|
|
2719
|
-
deleteImageOfPerson: async (t, r,
|
|
2720
|
-
|
|
2721
|
-
const o = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(r))), a = new URL(o,
|
|
2525
|
+
deleteImageOfPerson: async (t, r, s, n = {}) => {
|
|
2526
|
+
R("deleteImageOfPerson", "personId", t), R("deleteImageOfPerson", "imageId", r);
|
|
2527
|
+
const o = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(r))), a = new URL(o, P);
|
|
2722
2528
|
let i;
|
|
2723
2529
|
e && (i = e.baseOptions);
|
|
2724
|
-
const l = { method: "DELETE", ...i, ...
|
|
2725
|
-
|
|
2530
|
+
const l = { method: "DELETE", ...i, ...n }, c = {}, d = {};
|
|
2531
|
+
s != null && (c["X-RequestID"] = String(s)), I(a, d);
|
|
2726
2532
|
let p = i && i.headers ? i.headers : {};
|
|
2727
|
-
return l.headers = { ...c, ...p, ...
|
|
2728
|
-
url:
|
|
2533
|
+
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
2534
|
+
url: S(a),
|
|
2729
2535
|
options: l
|
|
2730
2536
|
};
|
|
2731
2537
|
},
|
|
@@ -2737,16 +2543,16 @@ const Xn = function(e) {
|
|
|
2737
2543
|
* @param {*} [options] Override http request option.
|
|
2738
2544
|
* @throws {RequiredError}
|
|
2739
2545
|
*/
|
|
2740
|
-
deletePerson: async (t, r,
|
|
2741
|
-
|
|
2742
|
-
const
|
|
2546
|
+
deletePerson: async (t, r, s = {}) => {
|
|
2547
|
+
R("deletePerson", "personId", t);
|
|
2548
|
+
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), o = new URL(n, P);
|
|
2743
2549
|
let a;
|
|
2744
2550
|
e && (a = e.baseOptions);
|
|
2745
|
-
const i = { method: "DELETE", ...a, ...
|
|
2746
|
-
r != null && (l["X-RequestID"] = String(r)),
|
|
2551
|
+
const i = { method: "DELETE", ...a, ...s }, l = {}, c = {};
|
|
2552
|
+
r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
2747
2553
|
let d = a && a.headers ? a.headers : {};
|
|
2748
|
-
return i.headers = { ...l, ...d, ...
|
|
2749
|
-
url:
|
|
2554
|
+
return i.headers = { ...l, ...d, ...s.headers }, {
|
|
2555
|
+
url: S(o),
|
|
2750
2556
|
options: i
|
|
2751
2557
|
};
|
|
2752
2558
|
},
|
|
@@ -2760,16 +2566,16 @@ const Xn = function(e) {
|
|
|
2760
2566
|
* @param {*} [options] Override http request option.
|
|
2761
2567
|
* @throws {RequiredError}
|
|
2762
2568
|
*/
|
|
2763
|
-
getAllGroupsByPersonId: async (t, r,
|
|
2764
|
-
|
|
2765
|
-
const a = "/api/persons/{personId}/groups".replace("{personId}", encodeURIComponent(String(t))), i = new URL(a,
|
|
2569
|
+
getAllGroupsByPersonId: async (t, r, s, n, o = {}) => {
|
|
2570
|
+
R("getAllGroupsByPersonId", "personId", t);
|
|
2571
|
+
const a = "/api/persons/{personId}/groups".replace("{personId}", encodeURIComponent(String(t))), i = new URL(a, P);
|
|
2766
2572
|
let l;
|
|
2767
2573
|
e && (l = e.baseOptions);
|
|
2768
2574
|
const c = { method: "GET", ...l, ...o }, d = {}, p = {};
|
|
2769
|
-
|
|
2575
|
+
s !== void 0 && (p.page = s), n !== void 0 && (p.size = n), r != null && (d["X-RequestID"] = String(r)), I(i, p);
|
|
2770
2576
|
let _ = l && l.headers ? l.headers : {};
|
|
2771
2577
|
return c.headers = { ...d, ..._, ...o.headers }, {
|
|
2772
|
-
url:
|
|
2578
|
+
url: S(i),
|
|
2773
2579
|
options: c
|
|
2774
2580
|
};
|
|
2775
2581
|
},
|
|
@@ -2783,16 +2589,16 @@ const Xn = function(e) {
|
|
|
2783
2589
|
* @param {*} [options] Override http request option.
|
|
2784
2590
|
* @throws {RequiredError}
|
|
2785
2591
|
*/
|
|
2786
|
-
getAllImagesByPersonId: async (t, r,
|
|
2787
|
-
|
|
2788
|
-
const a = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), i = new URL(a,
|
|
2592
|
+
getAllImagesByPersonId: async (t, r, s, n, o = {}) => {
|
|
2593
|
+
R("getAllImagesByPersonId", "personId", t);
|
|
2594
|
+
const a = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), i = new URL(a, P);
|
|
2789
2595
|
let l;
|
|
2790
2596
|
e && (l = e.baseOptions);
|
|
2791
2597
|
const c = { method: "GET", ...l, ...o }, d = {}, p = {};
|
|
2792
|
-
|
|
2598
|
+
s !== void 0 && (p.page = s), n !== void 0 && (p.size = n), r != null && (d["X-RequestID"] = String(r)), I(i, p);
|
|
2793
2599
|
let _ = l && l.headers ? l.headers : {};
|
|
2794
2600
|
return c.headers = { ...d, ..._, ...o.headers }, {
|
|
2795
|
-
url:
|
|
2601
|
+
url: S(i),
|
|
2796
2602
|
options: c
|
|
2797
2603
|
};
|
|
2798
2604
|
},
|
|
@@ -2805,16 +2611,16 @@ const Xn = function(e) {
|
|
|
2805
2611
|
* @param {*} [options] Override http request option.
|
|
2806
2612
|
* @throws {RequiredError}
|
|
2807
2613
|
*/
|
|
2808
|
-
getImageOfPerson: async (t, r,
|
|
2809
|
-
|
|
2810
|
-
const o = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(r))), a = new URL(o,
|
|
2614
|
+
getImageOfPerson: async (t, r, s, n = {}) => {
|
|
2615
|
+
R("getImageOfPerson", "personId", t), R("getImageOfPerson", "imageId", r);
|
|
2616
|
+
const o = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(r))), a = new URL(o, P);
|
|
2811
2617
|
let i;
|
|
2812
2618
|
e && (i = e.baseOptions);
|
|
2813
|
-
const l = { method: "GET", ...i, ...
|
|
2814
|
-
|
|
2619
|
+
const l = { method: "GET", ...i, ...n }, c = {}, d = {};
|
|
2620
|
+
s != null && (c["X-RequestID"] = String(s)), I(a, d);
|
|
2815
2621
|
let p = i && i.headers ? i.headers : {};
|
|
2816
|
-
return l.headers = { ...c, ...p, ...
|
|
2817
|
-
url:
|
|
2622
|
+
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
2623
|
+
url: S(a),
|
|
2818
2624
|
options: l
|
|
2819
2625
|
};
|
|
2820
2626
|
},
|
|
@@ -2826,16 +2632,16 @@ const Xn = function(e) {
|
|
|
2826
2632
|
* @param {*} [options] Override http request option.
|
|
2827
2633
|
* @throws {RequiredError}
|
|
2828
2634
|
*/
|
|
2829
|
-
getPerson: async (t, r,
|
|
2830
|
-
|
|
2831
|
-
const
|
|
2635
|
+
getPerson: async (t, r, s = {}) => {
|
|
2636
|
+
R("getPerson", "personId", t);
|
|
2637
|
+
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), o = new URL(n, P);
|
|
2832
2638
|
let a;
|
|
2833
2639
|
e && (a = e.baseOptions);
|
|
2834
|
-
const i = { method: "GET", ...a, ...
|
|
2835
|
-
r != null && (l["X-RequestID"] = String(r)),
|
|
2640
|
+
const i = { method: "GET", ...a, ...s }, l = {}, c = {};
|
|
2641
|
+
r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
2836
2642
|
let d = a && a.headers ? a.headers : {};
|
|
2837
|
-
return i.headers = { ...l, ...d, ...
|
|
2838
|
-
url:
|
|
2643
|
+
return i.headers = { ...l, ...d, ...s.headers }, {
|
|
2644
|
+
url: S(o),
|
|
2839
2645
|
options: i
|
|
2840
2646
|
};
|
|
2841
2647
|
},
|
|
@@ -2848,22 +2654,22 @@ const Xn = function(e) {
|
|
|
2848
2654
|
* @param {*} [options] Override http request option.
|
|
2849
2655
|
* @throws {RequiredError}
|
|
2850
2656
|
*/
|
|
2851
|
-
updatePerson: async (t, r,
|
|
2852
|
-
|
|
2853
|
-
const o = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), a = new URL(o,
|
|
2657
|
+
updatePerson: async (t, r, s, n = {}) => {
|
|
2658
|
+
R("updatePerson", "personId", t), R("updatePerson", "personToUpdateFields", r);
|
|
2659
|
+
const o = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), a = new URL(o, P);
|
|
2854
2660
|
let i;
|
|
2855
2661
|
e && (i = e.baseOptions);
|
|
2856
|
-
const l = { method: "PUT", ...i, ...
|
|
2857
|
-
c["Content-Type"] = "application/json",
|
|
2662
|
+
const l = { method: "PUT", ...i, ...n }, c = {}, d = {};
|
|
2663
|
+
c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(a, d);
|
|
2858
2664
|
let p = i && i.headers ? i.headers : {};
|
|
2859
|
-
return l.headers = { ...c, ...p, ...
|
|
2860
|
-
url:
|
|
2665
|
+
return l.headers = { ...c, ...p, ...n.headers }, l.data = M(r, l, e), {
|
|
2666
|
+
url: S(a),
|
|
2861
2667
|
options: l
|
|
2862
2668
|
};
|
|
2863
2669
|
}
|
|
2864
2670
|
};
|
|
2865
|
-
},
|
|
2866
|
-
const t =
|
|
2671
|
+
}, v = function(e) {
|
|
2672
|
+
const t = Us(e);
|
|
2867
2673
|
return {
|
|
2868
2674
|
/**
|
|
2869
2675
|
*
|
|
@@ -2874,9 +2680,9 @@ const Xn = function(e) {
|
|
|
2874
2680
|
* @param {*} [options] Override http request option.
|
|
2875
2681
|
* @throws {RequiredError}
|
|
2876
2682
|
*/
|
|
2877
|
-
async addImageToPerson(r,
|
|
2878
|
-
const a = await t.addImageToPerson(r,
|
|
2879
|
-
return (c, d) =>
|
|
2683
|
+
async addImageToPerson(r, s, n, o) {
|
|
2684
|
+
const a = await t.addImageToPerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.addImageToPerson"]?.[i]?.url;
|
|
2685
|
+
return (c, d) => b(a, O, m, e)(c, l || d);
|
|
2880
2686
|
},
|
|
2881
2687
|
/**
|
|
2882
2688
|
*
|
|
@@ -2886,9 +2692,9 @@ const Xn = function(e) {
|
|
|
2886
2692
|
* @param {*} [options] Override http request option.
|
|
2887
2693
|
* @throws {RequiredError}
|
|
2888
2694
|
*/
|
|
2889
|
-
async createPerson(r,
|
|
2890
|
-
const o = await t.createPerson(r,
|
|
2891
|
-
return (l, c) =>
|
|
2695
|
+
async createPerson(r, s, n) {
|
|
2696
|
+
const o = await t.createPerson(r, s, n), a = e?.serverIndex ?? 0, i = T["PersonApi.createPerson"]?.[a]?.url;
|
|
2697
|
+
return (l, c) => b(o, O, m, e)(l, i || c);
|
|
2892
2698
|
},
|
|
2893
2699
|
/**
|
|
2894
2700
|
*
|
|
@@ -2899,9 +2705,9 @@ const Xn = function(e) {
|
|
|
2899
2705
|
* @param {*} [options] Override http request option.
|
|
2900
2706
|
* @throws {RequiredError}
|
|
2901
2707
|
*/
|
|
2902
|
-
async deleteImageOfPerson(r,
|
|
2903
|
-
const a = await t.deleteImageOfPerson(r,
|
|
2904
|
-
return (c, d) =>
|
|
2708
|
+
async deleteImageOfPerson(r, s, n, o) {
|
|
2709
|
+
const a = await t.deleteImageOfPerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.deleteImageOfPerson"]?.[i]?.url;
|
|
2710
|
+
return (c, d) => b(a, O, m, e)(c, l || d);
|
|
2905
2711
|
},
|
|
2906
2712
|
/**
|
|
2907
2713
|
*
|
|
@@ -2911,9 +2717,9 @@ const Xn = function(e) {
|
|
|
2911
2717
|
* @param {*} [options] Override http request option.
|
|
2912
2718
|
* @throws {RequiredError}
|
|
2913
2719
|
*/
|
|
2914
|
-
async deletePerson(r,
|
|
2915
|
-
const o = await t.deletePerson(r,
|
|
2916
|
-
return (l, c) =>
|
|
2720
|
+
async deletePerson(r, s, n) {
|
|
2721
|
+
const o = await t.deletePerson(r, s, n), a = e?.serverIndex ?? 0, i = T["PersonApi.deletePerson"]?.[a]?.url;
|
|
2722
|
+
return (l, c) => b(o, O, m, e)(l, i || c);
|
|
2917
2723
|
},
|
|
2918
2724
|
/**
|
|
2919
2725
|
*
|
|
@@ -2925,9 +2731,9 @@ const Xn = function(e) {
|
|
|
2925
2731
|
* @param {*} [options] Override http request option.
|
|
2926
2732
|
* @throws {RequiredError}
|
|
2927
2733
|
*/
|
|
2928
|
-
async getAllGroupsByPersonId(r,
|
|
2929
|
-
const i = await t.getAllGroupsByPersonId(r,
|
|
2930
|
-
return (d, p) =>
|
|
2734
|
+
async getAllGroupsByPersonId(r, s, n, o, a) {
|
|
2735
|
+
const i = await t.getAllGroupsByPersonId(r, s, n, o, a), l = e?.serverIndex ?? 0, c = T["PersonApi.getAllGroupsByPersonId"]?.[l]?.url;
|
|
2736
|
+
return (d, p) => b(i, O, m, e)(d, c || p);
|
|
2931
2737
|
},
|
|
2932
2738
|
/**
|
|
2933
2739
|
*
|
|
@@ -2939,9 +2745,9 @@ const Xn = function(e) {
|
|
|
2939
2745
|
* @param {*} [options] Override http request option.
|
|
2940
2746
|
* @throws {RequiredError}
|
|
2941
2747
|
*/
|
|
2942
|
-
async getAllImagesByPersonId(r,
|
|
2943
|
-
const i = await t.getAllImagesByPersonId(r,
|
|
2944
|
-
return (d, p) =>
|
|
2748
|
+
async getAllImagesByPersonId(r, s, n, o, a) {
|
|
2749
|
+
const i = await t.getAllImagesByPersonId(r, s, n, o, a), l = e?.serverIndex ?? 0, c = T["PersonApi.getAllImagesByPersonId"]?.[l]?.url;
|
|
2750
|
+
return (d, p) => b(i, O, m, e)(d, c || p);
|
|
2945
2751
|
},
|
|
2946
2752
|
/**
|
|
2947
2753
|
*
|
|
@@ -2952,9 +2758,9 @@ const Xn = function(e) {
|
|
|
2952
2758
|
* @param {*} [options] Override http request option.
|
|
2953
2759
|
* @throws {RequiredError}
|
|
2954
2760
|
*/
|
|
2955
|
-
async getImageOfPerson(r,
|
|
2956
|
-
const a = await t.getImageOfPerson(r,
|
|
2957
|
-
return (c, d) =>
|
|
2761
|
+
async getImageOfPerson(r, s, n, o) {
|
|
2762
|
+
const a = await t.getImageOfPerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.getImageOfPerson"]?.[i]?.url;
|
|
2763
|
+
return (c, d) => b(a, O, m, e)(c, l || d);
|
|
2958
2764
|
},
|
|
2959
2765
|
/**
|
|
2960
2766
|
*
|
|
@@ -2964,9 +2770,9 @@ const Xn = function(e) {
|
|
|
2964
2770
|
* @param {*} [options] Override http request option.
|
|
2965
2771
|
* @throws {RequiredError}
|
|
2966
2772
|
*/
|
|
2967
|
-
async getPerson(r,
|
|
2968
|
-
const o = await t.getPerson(r,
|
|
2969
|
-
return (l, c) =>
|
|
2773
|
+
async getPerson(r, s, n) {
|
|
2774
|
+
const o = await t.getPerson(r, s, n), a = e?.serverIndex ?? 0, i = T["PersonApi.getPerson"]?.[a]?.url;
|
|
2775
|
+
return (l, c) => b(o, O, m, e)(l, i || c);
|
|
2970
2776
|
},
|
|
2971
2777
|
/**
|
|
2972
2778
|
*
|
|
@@ -2977,13 +2783,13 @@ const Xn = function(e) {
|
|
|
2977
2783
|
* @param {*} [options] Override http request option.
|
|
2978
2784
|
* @throws {RequiredError}
|
|
2979
2785
|
*/
|
|
2980
|
-
async updatePerson(r,
|
|
2981
|
-
const a = await t.updatePerson(r,
|
|
2982
|
-
return (c, d) =>
|
|
2786
|
+
async updatePerson(r, s, n, o) {
|
|
2787
|
+
const a = await t.updatePerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.updatePerson"]?.[i]?.url;
|
|
2788
|
+
return (c, d) => b(a, O, m, e)(c, l || d);
|
|
2983
2789
|
}
|
|
2984
2790
|
};
|
|
2985
2791
|
};
|
|
2986
|
-
let
|
|
2792
|
+
let xs = class extends Q {
|
|
2987
2793
|
/**
|
|
2988
2794
|
*
|
|
2989
2795
|
* @summary Add person image
|
|
@@ -2993,8 +2799,8 @@ let Yn = class extends ae {
|
|
|
2993
2799
|
* @param {*} [options] Override http request option.
|
|
2994
2800
|
* @throws {RequiredError}
|
|
2995
2801
|
*/
|
|
2996
|
-
addImageToPerson(t, r,
|
|
2997
|
-
return
|
|
2802
|
+
addImageToPerson(t, r, s, n) {
|
|
2803
|
+
return v(this.configuration).addImageToPerson(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2998
2804
|
}
|
|
2999
2805
|
/**
|
|
3000
2806
|
*
|
|
@@ -3004,8 +2810,8 @@ let Yn = class extends ae {
|
|
|
3004
2810
|
* @param {*} [options] Override http request option.
|
|
3005
2811
|
* @throws {RequiredError}
|
|
3006
2812
|
*/
|
|
3007
|
-
createPerson(t, r,
|
|
3008
|
-
return
|
|
2813
|
+
createPerson(t, r, s) {
|
|
2814
|
+
return v(this.configuration).createPerson(t, r, s).then((n) => n(this.axios, this.basePath));
|
|
3009
2815
|
}
|
|
3010
2816
|
/**
|
|
3011
2817
|
*
|
|
@@ -3016,8 +2822,8 @@ let Yn = class extends ae {
|
|
|
3016
2822
|
* @param {*} [options] Override http request option.
|
|
3017
2823
|
* @throws {RequiredError}
|
|
3018
2824
|
*/
|
|
3019
|
-
deleteImageOfPerson(t, r,
|
|
3020
|
-
return
|
|
2825
|
+
deleteImageOfPerson(t, r, s, n) {
|
|
2826
|
+
return v(this.configuration).deleteImageOfPerson(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
3021
2827
|
}
|
|
3022
2828
|
/**
|
|
3023
2829
|
*
|
|
@@ -3027,8 +2833,8 @@ let Yn = class extends ae {
|
|
|
3027
2833
|
* @param {*} [options] Override http request option.
|
|
3028
2834
|
* @throws {RequiredError}
|
|
3029
2835
|
*/
|
|
3030
|
-
deletePerson(t, r,
|
|
3031
|
-
return
|
|
2836
|
+
deletePerson(t, r, s) {
|
|
2837
|
+
return v(this.configuration).deletePerson(t, r, s).then((n) => n(this.axios, this.basePath));
|
|
3032
2838
|
}
|
|
3033
2839
|
/**
|
|
3034
2840
|
*
|
|
@@ -3040,8 +2846,8 @@ let Yn = class extends ae {
|
|
|
3040
2846
|
* @param {*} [options] Override http request option.
|
|
3041
2847
|
* @throws {RequiredError}
|
|
3042
2848
|
*/
|
|
3043
|
-
getAllGroupsByPersonId(t, r,
|
|
3044
|
-
return
|
|
2849
|
+
getAllGroupsByPersonId(t, r, s, n, o) {
|
|
2850
|
+
return v(this.configuration).getAllGroupsByPersonId(t, r, s, n, o).then((a) => a(this.axios, this.basePath));
|
|
3045
2851
|
}
|
|
3046
2852
|
/**
|
|
3047
2853
|
*
|
|
@@ -3053,8 +2859,8 @@ let Yn = class extends ae {
|
|
|
3053
2859
|
* @param {*} [options] Override http request option.
|
|
3054
2860
|
* @throws {RequiredError}
|
|
3055
2861
|
*/
|
|
3056
|
-
getAllImagesByPersonId(t, r,
|
|
3057
|
-
return
|
|
2862
|
+
getAllImagesByPersonId(t, r, s, n, o) {
|
|
2863
|
+
return v(this.configuration).getAllImagesByPersonId(t, r, s, n, o).then((a) => a(this.axios, this.basePath));
|
|
3058
2864
|
}
|
|
3059
2865
|
/**
|
|
3060
2866
|
*
|
|
@@ -3065,8 +2871,8 @@ let Yn = class extends ae {
|
|
|
3065
2871
|
* @param {*} [options] Override http request option.
|
|
3066
2872
|
* @throws {RequiredError}
|
|
3067
2873
|
*/
|
|
3068
|
-
getImageOfPerson(t, r,
|
|
3069
|
-
return
|
|
2874
|
+
getImageOfPerson(t, r, s, n) {
|
|
2875
|
+
return v(this.configuration).getImageOfPerson(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
3070
2876
|
}
|
|
3071
2877
|
/**
|
|
3072
2878
|
*
|
|
@@ -3076,8 +2882,8 @@ let Yn = class extends ae {
|
|
|
3076
2882
|
* @param {*} [options] Override http request option.
|
|
3077
2883
|
* @throws {RequiredError}
|
|
3078
2884
|
*/
|
|
3079
|
-
getPerson(t, r,
|
|
3080
|
-
return
|
|
2885
|
+
getPerson(t, r, s) {
|
|
2886
|
+
return v(this.configuration).getPerson(t, r, s).then((n) => n(this.axios, this.basePath));
|
|
3081
2887
|
}
|
|
3082
2888
|
/**
|
|
3083
2889
|
*
|
|
@@ -3088,47 +2894,47 @@ let Yn = class extends ae {
|
|
|
3088
2894
|
* @param {*} [options] Override http request option.
|
|
3089
2895
|
* @throws {RequiredError}
|
|
3090
2896
|
*/
|
|
3091
|
-
updatePerson(t, r,
|
|
3092
|
-
return
|
|
2897
|
+
updatePerson(t, r, s, n) {
|
|
2898
|
+
return v(this.configuration).updatePerson(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
3093
2899
|
}
|
|
3094
2900
|
};
|
|
3095
|
-
class
|
|
3096
|
-
constructor(t, r,
|
|
3097
|
-
this.superClass = new
|
|
2901
|
+
class Ds {
|
|
2902
|
+
constructor(t, r, s) {
|
|
2903
|
+
this.superClass = new xs(t, r, s);
|
|
3098
2904
|
}
|
|
3099
|
-
async createPerson(t, r,
|
|
3100
|
-
const
|
|
2905
|
+
async createPerson(t, r, s) {
|
|
2906
|
+
const n = {
|
|
3101
2907
|
...t,
|
|
3102
2908
|
metadata: t?.metadata ? t.metadata : {}
|
|
3103
2909
|
};
|
|
3104
|
-
return (await this.superClass.createPerson(
|
|
2910
|
+
return (await this.superClass.createPerson(n, r, s)).data;
|
|
3105
2911
|
}
|
|
3106
|
-
async addImageToPerson(t, r,
|
|
3107
|
-
return r?.image?.content && typeof r.image.content != "string" && (r.image.content =
|
|
2912
|
+
async addImageToPerson(t, r, s, n) {
|
|
2913
|
+
return r?.image?.content && typeof r.image.content != "string" && (r.image.content = Ae(r.image.content)), (await this.superClass.addImageToPerson(t, r, s, n)).data;
|
|
3108
2914
|
}
|
|
3109
|
-
async deleteImageOfPerson(t, r,
|
|
3110
|
-
await this.superClass.deleteImageOfPerson(r, t,
|
|
2915
|
+
async deleteImageOfPerson(t, r, s, n) {
|
|
2916
|
+
await this.superClass.deleteImageOfPerson(r, t, s, n);
|
|
3111
2917
|
}
|
|
3112
|
-
async deletePerson(t, r,
|
|
3113
|
-
await this.superClass.deletePerson(t, r,
|
|
2918
|
+
async deletePerson(t, r, s) {
|
|
2919
|
+
await this.superClass.deletePerson(t, r, s);
|
|
3114
2920
|
}
|
|
3115
|
-
async getAllGroupsByPersonId(t, r,
|
|
3116
|
-
return (await this.superClass.getAllGroupsByPersonId(
|
|
2921
|
+
async getAllGroupsByPersonId(t, r, s, n, o) {
|
|
2922
|
+
return (await this.superClass.getAllGroupsByPersonId(s, n, t, r, o)).data;
|
|
3117
2923
|
}
|
|
3118
|
-
async getAllImagesByPersonId(t, r,
|
|
3119
|
-
return (await this.superClass.getAllImagesByPersonId(
|
|
2924
|
+
async getAllImagesByPersonId(t, r, s, n, o) {
|
|
2925
|
+
return (await this.superClass.getAllImagesByPersonId(s, n, t, r, o)).data;
|
|
3120
2926
|
}
|
|
3121
|
-
async getImageOfPerson(t, r,
|
|
3122
|
-
return (await this.superClass.getImageOfPerson(r, t,
|
|
2927
|
+
async getImageOfPerson(t, r, s, n) {
|
|
2928
|
+
return (await this.superClass.getImageOfPerson(r, t, s, n)).data;
|
|
3123
2929
|
}
|
|
3124
|
-
async getPerson(t, r,
|
|
3125
|
-
return (await this.superClass.getPerson(t, r,
|
|
2930
|
+
async getPerson(t, r, s) {
|
|
2931
|
+
return (await this.superClass.getPerson(t, r, s)).data;
|
|
3126
2932
|
}
|
|
3127
|
-
async updatePerson(t, r,
|
|
3128
|
-
await this.superClass.updatePerson(t, r,
|
|
2933
|
+
async updatePerson(t, r, s, n) {
|
|
2934
|
+
await this.superClass.updatePerson(t, r, s, n);
|
|
3129
2935
|
}
|
|
3130
2936
|
}
|
|
3131
|
-
const
|
|
2937
|
+
const Bs = function(e) {
|
|
3132
2938
|
return {
|
|
3133
2939
|
/**
|
|
3134
2940
|
*
|
|
@@ -3139,22 +2945,22 @@ const Zn = function(e) {
|
|
|
3139
2945
|
* @param {*} [options] Override http request option.
|
|
3140
2946
|
* @throws {RequiredError}
|
|
3141
2947
|
*/
|
|
3142
|
-
search: async (t, r,
|
|
3143
|
-
|
|
3144
|
-
const o = "/api/search", a = new URL(o,
|
|
2948
|
+
search: async (t, r, s, n = {}) => {
|
|
2949
|
+
R("search", "searchRequest", t);
|
|
2950
|
+
const o = "/api/search", a = new URL(o, P);
|
|
3145
2951
|
let i;
|
|
3146
2952
|
e && (i = e.baseOptions);
|
|
3147
|
-
const l = { method: "POST", ...i, ...
|
|
3148
|
-
|
|
2953
|
+
const l = { method: "POST", ...i, ...n }, c = {}, d = {};
|
|
2954
|
+
s !== void 0 && (d.withImages = s), c["Content-Type"] = "application/json", r != null && (c["X-RequestID"] = String(r)), I(a, d);
|
|
3149
2955
|
let p = i && i.headers ? i.headers : {};
|
|
3150
|
-
return l.headers = { ...c, ...p, ...
|
|
3151
|
-
url:
|
|
2956
|
+
return l.headers = { ...c, ...p, ...n.headers }, l.data = M(t, l, e), {
|
|
2957
|
+
url: S(a),
|
|
3152
2958
|
options: l
|
|
3153
2959
|
};
|
|
3154
2960
|
}
|
|
3155
2961
|
};
|
|
3156
|
-
},
|
|
3157
|
-
const t =
|
|
2962
|
+
}, Hs = function(e) {
|
|
2963
|
+
const t = Bs(e);
|
|
3158
2964
|
return {
|
|
3159
2965
|
/**
|
|
3160
2966
|
*
|
|
@@ -3165,13 +2971,13 @@ const Zn = function(e) {
|
|
|
3165
2971
|
* @param {*} [options] Override http request option.
|
|
3166
2972
|
* @throws {RequiredError}
|
|
3167
2973
|
*/
|
|
3168
|
-
async search(r,
|
|
3169
|
-
const a = await t.search(r,
|
|
3170
|
-
return (c, d) =>
|
|
2974
|
+
async search(r, s, n, o) {
|
|
2975
|
+
const a = await t.search(r, s, n, o), i = e?.serverIndex ?? 0, l = T["SearchApi.search"]?.[i]?.url;
|
|
2976
|
+
return (c, d) => b(a, O, m, e)(c, l || d);
|
|
3171
2977
|
}
|
|
3172
2978
|
};
|
|
3173
2979
|
};
|
|
3174
|
-
let
|
|
2980
|
+
let Gs = class extends Q {
|
|
3175
2981
|
/**
|
|
3176
2982
|
*
|
|
3177
2983
|
* @summary Find person by image in groups
|
|
@@ -3181,19 +2987,19 @@ let Qn = class extends ae {
|
|
|
3181
2987
|
* @param {*} [options] Override http request option.
|
|
3182
2988
|
* @throws {RequiredError}
|
|
3183
2989
|
*/
|
|
3184
|
-
search(t, r,
|
|
3185
|
-
return
|
|
2990
|
+
search(t, r, s, n) {
|
|
2991
|
+
return Hs(this.configuration).search(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
3186
2992
|
}
|
|
3187
2993
|
};
|
|
3188
|
-
class
|
|
3189
|
-
constructor(t, r,
|
|
3190
|
-
this.superClass = new
|
|
2994
|
+
class Ms {
|
|
2995
|
+
constructor(t, r, s) {
|
|
2996
|
+
this.superClass = new Gs(t, r, s);
|
|
3191
2997
|
}
|
|
3192
|
-
async search(t, r,
|
|
3193
|
-
return t?.image?.content && typeof t.image.content != "string" && (t.image.content =
|
|
2998
|
+
async search(t, r, s, n) {
|
|
2999
|
+
return t?.image?.content && typeof t.image.content != "string" && (t.image.content = Ae(t.image.content)), (await this.superClass.search(t, r, s, n)).data;
|
|
3194
3000
|
}
|
|
3195
3001
|
}
|
|
3196
|
-
const
|
|
3002
|
+
const vs = function(e) {
|
|
3197
3003
|
return {
|
|
3198
3004
|
/**
|
|
3199
3005
|
* This endpoint deletes a liveness transaction based on either the specified `tag` or `transactionId`. At least one of the parameters must be provided for the operation to be valid.
|
|
@@ -3203,16 +3009,16 @@ const ts = function(e) {
|
|
|
3203
3009
|
* @param {*} [options] Override http request option.
|
|
3204
3010
|
* @throws {RequiredError}
|
|
3205
3011
|
*/
|
|
3206
|
-
deleteLivenessTransaction: async (t, r,
|
|
3207
|
-
|
|
3208
|
-
const
|
|
3012
|
+
deleteLivenessTransaction: async (t, r, s = {}) => {
|
|
3013
|
+
R("deleteLivenessTransaction", "transactionId", t), R("deleteLivenessTransaction", "tag", r);
|
|
3014
|
+
const n = "/api/v2/liveness", o = new URL(n, P);
|
|
3209
3015
|
let a;
|
|
3210
3016
|
e && (a = e.baseOptions);
|
|
3211
|
-
const i = { method: "DELETE", ...a, ...
|
|
3212
|
-
t !== void 0 && (c.transactionId = t), r !== void 0 && (c.tag = r),
|
|
3017
|
+
const i = { method: "DELETE", ...a, ...s }, l = {}, c = {};
|
|
3018
|
+
t !== void 0 && (c.transactionId = t), r !== void 0 && (c.tag = r), I(o, c);
|
|
3213
3019
|
let d = a && a.headers ? a.headers : {};
|
|
3214
|
-
return i.headers = { ...l, ...d, ...
|
|
3215
|
-
url:
|
|
3020
|
+
return i.headers = { ...l, ...d, ...s.headers }, {
|
|
3021
|
+
url: S(o),
|
|
3216
3022
|
options: i
|
|
3217
3023
|
};
|
|
3218
3024
|
},
|
|
@@ -3224,21 +3030,21 @@ const ts = function(e) {
|
|
|
3224
3030
|
* @throws {RequiredError}
|
|
3225
3031
|
*/
|
|
3226
3032
|
getLivenessTransactionInfo: async (t, r = {}) => {
|
|
3227
|
-
|
|
3228
|
-
const
|
|
3033
|
+
R("getLivenessTransactionInfo", "transactionId", t);
|
|
3034
|
+
const s = "/api/v2/liveness", n = new URL(s, P);
|
|
3229
3035
|
let o;
|
|
3230
3036
|
e && (o = e.baseOptions);
|
|
3231
3037
|
const a = { method: "GET", ...o, ...r }, i = {}, l = {};
|
|
3232
|
-
t !== void 0 && (l.transactionId = t),
|
|
3038
|
+
t !== void 0 && (l.transactionId = t), I(n, l);
|
|
3233
3039
|
let c = o && o.headers ? o.headers : {};
|
|
3234
3040
|
return a.headers = { ...i, ...c, ...r.headers }, {
|
|
3235
|
-
url:
|
|
3041
|
+
url: S(n),
|
|
3236
3042
|
options: a
|
|
3237
3043
|
};
|
|
3238
3044
|
}
|
|
3239
3045
|
};
|
|
3240
|
-
},
|
|
3241
|
-
const t =
|
|
3046
|
+
}, lt = function(e) {
|
|
3047
|
+
const t = vs(e);
|
|
3242
3048
|
return {
|
|
3243
3049
|
/**
|
|
3244
3050
|
* This endpoint deletes a liveness transaction based on either the specified `tag` or `transactionId`. At least one of the parameters must be provided for the operation to be valid.
|
|
@@ -3248,9 +3054,9 @@ const ts = function(e) {
|
|
|
3248
3054
|
* @param {*} [options] Override http request option.
|
|
3249
3055
|
* @throws {RequiredError}
|
|
3250
3056
|
*/
|
|
3251
|
-
async deleteLivenessTransaction(r,
|
|
3252
|
-
const o = await t.deleteLivenessTransaction(r,
|
|
3253
|
-
return (l, c) =>
|
|
3057
|
+
async deleteLivenessTransaction(r, s, n) {
|
|
3058
|
+
const o = await t.deleteLivenessTransaction(r, s, n), a = e?.serverIndex ?? 0, i = T["Liveness20Api.deleteLivenessTransaction"]?.[a]?.url;
|
|
3059
|
+
return (l, c) => b(o, O, m, e)(l, i || c);
|
|
3254
3060
|
},
|
|
3255
3061
|
/**
|
|
3256
3062
|
* To verify the presence of a real person in front of a camera, use the GET `/api/v2/liveness` endpoint. When starting, you can specify `tag` which all attempts to read liveness will be bound to. If left unspecified, the application automatically generates one. The calling application returns `tag` and `transactionId`. One session may include many transactions, and from a transaction ID it is clear which session it belongs to. When specifying `tag`, note that only Latin uppercase and lowercase letters, digits, and symbols `-` and `_` are allowed. The maximum supported number of characters is 127. The metadata (device model, screen data, frame size, app ID and version, OS version, platform, SDK version, etc.), a person\'s selfie and video of the liveness detection session are stored on the backend at: `faceapi-session/year={year}/month={month}/day={day}/hour={hour}/minute={minute}/{tag}/transactionId` By default, liveness checks operate with eventual consistency. This means that when you submit a request and receive a response, the associated data (like the selfie and session video) may be saved after the response is sent. If this doesn\'t meet your requirements, you can switch to strong consistency; refer to the [Architecture page](https://docs.regulaforensics.com/develop/face-sdk/overview/architecture/#consistency-models) for details. To access the liveness transaction data, use GET `/api/v2/liveness?transactionId={transactionId}`.
|
|
@@ -3259,13 +3065,13 @@ const ts = function(e) {
|
|
|
3259
3065
|
* @param {*} [options] Override http request option.
|
|
3260
3066
|
* @throws {RequiredError}
|
|
3261
3067
|
*/
|
|
3262
|
-
async getLivenessTransactionInfo(r,
|
|
3263
|
-
const
|
|
3264
|
-
return (i, l) =>
|
|
3068
|
+
async getLivenessTransactionInfo(r, s) {
|
|
3069
|
+
const n = await t.getLivenessTransactionInfo(r, s), o = e?.serverIndex ?? 0, a = T["Liveness20Api.getLivenessTransactionInfo"]?.[o]?.url;
|
|
3070
|
+
return (i, l) => b(n, O, m, e)(i, a || l);
|
|
3265
3071
|
}
|
|
3266
3072
|
};
|
|
3267
3073
|
};
|
|
3268
|
-
let
|
|
3074
|
+
let js = class extends Q {
|
|
3269
3075
|
/**
|
|
3270
3076
|
* This endpoint deletes a liveness transaction based on either the specified `tag` or `transactionId`. At least one of the parameters must be provided for the operation to be valid.
|
|
3271
3077
|
* @summary delete liveness transaction
|
|
@@ -3274,8 +3080,8 @@ let rs = class extends ae {
|
|
|
3274
3080
|
* @param {*} [options] Override http request option.
|
|
3275
3081
|
* @throws {RequiredError}
|
|
3276
3082
|
*/
|
|
3277
|
-
deleteLivenessTransaction(t, r,
|
|
3278
|
-
return
|
|
3083
|
+
deleteLivenessTransaction(t, r, s) {
|
|
3084
|
+
return lt(this.configuration).deleteLivenessTransaction(t, r, s).then((n) => n(this.axios, this.basePath));
|
|
3279
3085
|
}
|
|
3280
3086
|
/**
|
|
3281
3087
|
* To verify the presence of a real person in front of a camera, use the GET `/api/v2/liveness` endpoint. When starting, you can specify `tag` which all attempts to read liveness will be bound to. If left unspecified, the application automatically generates one. The calling application returns `tag` and `transactionId`. One session may include many transactions, and from a transaction ID it is clear which session it belongs to. When specifying `tag`, note that only Latin uppercase and lowercase letters, digits, and symbols `-` and `_` are allowed. The maximum supported number of characters is 127. The metadata (device model, screen data, frame size, app ID and version, OS version, platform, SDK version, etc.), a person\'s selfie and video of the liveness detection session are stored on the backend at: `faceapi-session/year={year}/month={month}/day={day}/hour={hour}/minute={minute}/{tag}/transactionId` By default, liveness checks operate with eventual consistency. This means that when you submit a request and receive a response, the associated data (like the selfie and session video) may be saved after the response is sent. If this doesn\'t meet your requirements, you can switch to strong consistency; refer to the [Architecture page](https://docs.regulaforensics.com/develop/face-sdk/overview/architecture/#consistency-models) for details. To access the liveness transaction data, use GET `/api/v2/liveness?transactionId={transactionId}`.
|
|
@@ -3285,18 +3091,18 @@ let rs = class extends ae {
|
|
|
3285
3091
|
* @throws {RequiredError}
|
|
3286
3092
|
*/
|
|
3287
3093
|
getLivenessTransactionInfo(t, r) {
|
|
3288
|
-
return
|
|
3094
|
+
return lt(this.configuration).getLivenessTransactionInfo(t, r).then((s) => s(this.axios, this.basePath));
|
|
3289
3095
|
}
|
|
3290
3096
|
};
|
|
3291
|
-
class
|
|
3292
|
-
constructor(t, r,
|
|
3293
|
-
this.superClass = new
|
|
3097
|
+
class ks {
|
|
3098
|
+
constructor(t, r, s) {
|
|
3099
|
+
this.superClass = new js(t, r, s);
|
|
3294
3100
|
}
|
|
3295
3101
|
async getLivenessTransactionInfo(t, r) {
|
|
3296
3102
|
return (await this.superClass.getLivenessTransactionInfo(t, r)).data;
|
|
3297
3103
|
}
|
|
3298
3104
|
}
|
|
3299
|
-
const
|
|
3105
|
+
const Fs = function(e) {
|
|
3300
3106
|
return {
|
|
3301
3107
|
/**
|
|
3302
3108
|
* The `/api/healthz` endpoint performs a server health check, providing details such as the application name, license ID, serial number, validity, and product version. <br><br>Comprehensive information about service diagnostics is available on the [Monitoring page](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/monitoring/).
|
|
@@ -3306,14 +3112,14 @@ const ss = function(e) {
|
|
|
3306
3112
|
* @throws {RequiredError}
|
|
3307
3113
|
*/
|
|
3308
3114
|
healthz: async (t, r = {}) => {
|
|
3309
|
-
const
|
|
3115
|
+
const s = "/api/healthz", n = new URL(s, P);
|
|
3310
3116
|
let o;
|
|
3311
3117
|
e && (o = e.baseOptions);
|
|
3312
3118
|
const a = { method: "GET", ...o, ...r }, i = {}, l = {};
|
|
3313
|
-
t != null && (i["X-RequestID"] = String(t)),
|
|
3119
|
+
t != null && (i["X-RequestID"] = String(t)), I(n, l);
|
|
3314
3120
|
let c = o && o.headers ? o.headers : {};
|
|
3315
3121
|
return a.headers = { ...i, ...c, ...r.headers }, {
|
|
3316
|
-
url:
|
|
3122
|
+
url: S(n),
|
|
3317
3123
|
options: a
|
|
3318
3124
|
};
|
|
3319
3125
|
},
|
|
@@ -3325,20 +3131,20 @@ const ss = function(e) {
|
|
|
3325
3131
|
* @throws {RequiredError}
|
|
3326
3132
|
*/
|
|
3327
3133
|
readyz: async (t, r = {}) => {
|
|
3328
|
-
const
|
|
3134
|
+
const s = "/api/readyz", n = new URL(s, P);
|
|
3329
3135
|
let o;
|
|
3330
3136
|
e && (o = e.baseOptions);
|
|
3331
3137
|
const a = { method: "GET", ...o, ...r }, i = {}, l = {};
|
|
3332
|
-
t != null && (i["X-RequestID"] = String(t)),
|
|
3138
|
+
t != null && (i["X-RequestID"] = String(t)), I(n, l);
|
|
3333
3139
|
let c = o && o.headers ? o.headers : {};
|
|
3334
3140
|
return a.headers = { ...i, ...c, ...r.headers }, {
|
|
3335
|
-
url:
|
|
3141
|
+
url: S(n),
|
|
3336
3142
|
options: a
|
|
3337
3143
|
};
|
|
3338
3144
|
}
|
|
3339
3145
|
};
|
|
3340
|
-
},
|
|
3341
|
-
const t =
|
|
3146
|
+
}, ct = function(e) {
|
|
3147
|
+
const t = Fs(e);
|
|
3342
3148
|
return {
|
|
3343
3149
|
/**
|
|
3344
3150
|
* The `/api/healthz` endpoint performs a server health check, providing details such as the application name, license ID, serial number, validity, and product version. <br><br>Comprehensive information about service diagnostics is available on the [Monitoring page](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/monitoring/).
|
|
@@ -3347,9 +3153,9 @@ const ss = function(e) {
|
|
|
3347
3153
|
* @param {*} [options] Override http request option.
|
|
3348
3154
|
* @throws {RequiredError}
|
|
3349
3155
|
*/
|
|
3350
|
-
async healthz(r,
|
|
3351
|
-
const
|
|
3352
|
-
return (i, l) =>
|
|
3156
|
+
async healthz(r, s) {
|
|
3157
|
+
const n = await t.healthz(r, s), o = e?.serverIndex ?? 0, a = T["HealthcheckApi.healthz"]?.[o]?.url;
|
|
3158
|
+
return (i, l) => b(n, O, m, e)(i, a || l);
|
|
3353
3159
|
},
|
|
3354
3160
|
/**
|
|
3355
3161
|
* The `/api/readyz` endpoint checks the license\'s health to determine if the application is ready for operation. It validates the license and returns a response indicating whether the license is valid (`200`) or invalid (`400`).
|
|
@@ -3358,13 +3164,13 @@ const ss = function(e) {
|
|
|
3358
3164
|
* @param {*} [options] Override http request option.
|
|
3359
3165
|
* @throws {RequiredError}
|
|
3360
3166
|
*/
|
|
3361
|
-
async readyz(r,
|
|
3362
|
-
const
|
|
3363
|
-
return (i, l) =>
|
|
3167
|
+
async readyz(r, s) {
|
|
3168
|
+
const n = await t.readyz(r, s), o = e?.serverIndex ?? 0, a = T["HealthcheckApi.readyz"]?.[o]?.url;
|
|
3169
|
+
return (i, l) => b(n, O, m, e)(i, a || l);
|
|
3364
3170
|
}
|
|
3365
3171
|
};
|
|
3366
3172
|
};
|
|
3367
|
-
let
|
|
3173
|
+
let qs = class extends Q {
|
|
3368
3174
|
/**
|
|
3369
3175
|
* The `/api/healthz` endpoint performs a server health check, providing details such as the application name, license ID, serial number, validity, and product version. <br><br>Comprehensive information about service diagnostics is available on the [Monitoring page](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/monitoring/).
|
|
3370
3176
|
* @summary Server healthcheck
|
|
@@ -3373,7 +3179,7 @@ let os = class extends ae {
|
|
|
3373
3179
|
* @throws {RequiredError}
|
|
3374
3180
|
*/
|
|
3375
3181
|
healthz(t, r) {
|
|
3376
|
-
return
|
|
3182
|
+
return ct(this.configuration).healthz(t, r).then((s) => s(this.axios, this.basePath));
|
|
3377
3183
|
}
|
|
3378
3184
|
/**
|
|
3379
3185
|
* The `/api/readyz` endpoint checks the license\'s health to determine if the application is ready for operation. It validates the license and returns a response indicating whether the license is valid (`200`) or invalid (`400`).
|
|
@@ -3383,12 +3189,12 @@ let os = class extends ae {
|
|
|
3383
3189
|
* @throws {RequiredError}
|
|
3384
3190
|
*/
|
|
3385
3191
|
readyz(t, r) {
|
|
3386
|
-
return
|
|
3192
|
+
return ct(this.configuration).readyz(t, r).then((s) => s(this.axios, this.basePath));
|
|
3387
3193
|
}
|
|
3388
3194
|
};
|
|
3389
|
-
class
|
|
3390
|
-
constructor(t, r,
|
|
3391
|
-
this.superClass = new
|
|
3195
|
+
class $s {
|
|
3196
|
+
constructor(t, r, s) {
|
|
3197
|
+
this.superClass = new qs(t, r, s);
|
|
3392
3198
|
}
|
|
3393
3199
|
async healthz(t, r) {
|
|
3394
3200
|
return (await this.superClass.healthz(t, r)).data;
|
|
@@ -3397,12 +3203,12 @@ class as {
|
|
|
3397
3203
|
return (await this.superClass.readyz(t, r)).data;
|
|
3398
3204
|
}
|
|
3399
3205
|
}
|
|
3400
|
-
class
|
|
3401
|
-
constructor(t, r =
|
|
3402
|
-
this.basePath = r, this.axios =
|
|
3206
|
+
class _n {
|
|
3207
|
+
constructor(t, r = m, s = O) {
|
|
3208
|
+
this.basePath = r, this.axios = s, this.matchApi = new Ls(t, r, s), this.groupApi = new Ns(t, r, s), this.personApi = new Ds(t, r, s), this.searchApi = new Ms(t, r, s), this.livenessApi = new ks(t, r, s), this.healthcheckApi = new $s(t, r, s);
|
|
3403
3209
|
}
|
|
3404
3210
|
}
|
|
3405
|
-
class
|
|
3211
|
+
class Rn {
|
|
3406
3212
|
constructor(t = {}) {
|
|
3407
3213
|
this.apiKey = t.apiKey, this.username = t.username, this.password = t.password, this.accessToken = t.accessToken, this.basePath = t.basePath, this.serverIndex = t.serverIndex, this.baseOptions = {
|
|
3408
3214
|
...t.baseOptions,
|
|
@@ -3427,23 +3233,23 @@ class Us {
|
|
|
3427
3233
|
}
|
|
3428
3234
|
}
|
|
3429
3235
|
export {
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3236
|
+
Rn as Configuration,
|
|
3237
|
+
_s as FaceAttribute,
|
|
3238
|
+
Rs as FaceImageQualityAlignType,
|
|
3239
|
+
ms as FaceImageQualityGroups,
|
|
3240
|
+
Ts as FaceImageQualityGroupsStrings,
|
|
3241
|
+
Ps as FaceImageQualityStatus,
|
|
3242
|
+
Is as FaceQualityConfigName,
|
|
3243
|
+
Ss as FaceQualityScenarios,
|
|
3244
|
+
bs as FaceSDKResultCode,
|
|
3245
|
+
_n as FaceSdk,
|
|
3246
|
+
ws as FilterOp,
|
|
3247
|
+
Ns as GroupApi,
|
|
3248
|
+
$s as HealthcheckApi,
|
|
3249
|
+
Ut as ImageSource,
|
|
3250
|
+
ks as Liveness20Api,
|
|
3251
|
+
ys as LivenessType,
|
|
3252
|
+
Ls as MatchApi,
|
|
3253
|
+
Ds as PersonApi,
|
|
3254
|
+
Ms as SearchApi
|
|
3449
3255
|
};
|