@regulaforensics/facesdk-webclient 8.1.506-nightly → 8.1.508-nightly
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 +6 -6
- package/dist/index.js +917 -855
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,39 +1,44 @@
|
|
|
1
|
-
function
|
|
1
|
+
function lt(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: Nt } = Object.prototype, { getPrototypeOf: Ue } = Object, { iterator: Oe, toStringTag: ct } = Symbol, _e = /* @__PURE__ */ ((e) => (t) => {
|
|
7
|
+
const r = Nt.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 && !Z(e) && e.constructor !== null && !Z(e.constructor) &&
|
|
9
|
+
})(/* @__PURE__ */ Object.create(null)), G = (e) => (e = e.toLowerCase(), (t) => _e(t) === e), me = (e) => (t) => typeof t === e, { isArray: K } = Array, Z = me("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 dt = G("ArrayBuffer");
|
|
14
|
+
function Ut(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 && dt(e.buffer), t;
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const xt = me("string"), N = me("function"), ut = me("number"), se = (e) => e !== null && typeof e == "object", Dt = (e) => e === !0 || e === !1, pe = (e) => {
|
|
19
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 = Ue(e);
|
|
22
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ct in e) && !(Oe in e);
|
|
23
|
+
}, Bt = (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
|
-
},
|
|
31
|
+
}, Ht = G("Date"), Gt = G("File"), Mt = G("Blob"), vt = G("FileList"), jt = (e) => se(e) && N(e.pipe), kt = (e) => {
|
|
32
32
|
let t;
|
|
33
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
34
|
-
t === "object" &&
|
|
35
|
-
},
|
|
36
|
-
|
|
33
|
+
return e && (typeof FormData == "function" && e instanceof FormData || N(e.append) && ((t = _e(e)) === "formdata" || // detect form-data instance
|
|
34
|
+
t === "object" && N(e.toString) && e.toString() === "[object FormData]"));
|
|
35
|
+
}, Ft = G("URLSearchParams"), [qt, $t, zt, Wt] = [
|
|
36
|
+
"ReadableStream",
|
|
37
|
+
"Request",
|
|
38
|
+
"Response",
|
|
39
|
+
"Headers"
|
|
40
|
+
].map(G), Yt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
41
|
+
function ne(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
37
42
|
if (e === null || typeof e > "u")
|
|
38
43
|
return;
|
|
39
44
|
let s, n;
|
|
@@ -41,16 +46,16 @@ function oe(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
41
46
|
for (s = 0, n = e.length; s < n; s++)
|
|
42
47
|
t.call(null, e[s], s, e);
|
|
43
48
|
else {
|
|
44
|
-
if (
|
|
49
|
+
if (re(e))
|
|
45
50
|
return;
|
|
46
|
-
const
|
|
51
|
+
const o = r ? Object.getOwnPropertyNames(e) : Object.keys(e), a = o.length;
|
|
47
52
|
let i;
|
|
48
|
-
for (s = 0; s <
|
|
49
|
-
i =
|
|
53
|
+
for (s = 0; s < a; s++)
|
|
54
|
+
i = o[s], t.call(null, e[i], i, e);
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
|
-
function
|
|
53
|
-
if (
|
|
57
|
+
function pt(e, t) {
|
|
58
|
+
if (re(e))
|
|
54
59
|
return null;
|
|
55
60
|
t = t.toLowerCase();
|
|
56
61
|
const r = Object.keys(e);
|
|
@@ -60,75 +65,96 @@ function ut(e, t) {
|
|
|
60
65
|
return n;
|
|
61
66
|
return null;
|
|
62
67
|
}
|
|
63
|
-
const
|
|
68
|
+
const z = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ht = (e) => !Z(e) && e !== z;
|
|
64
69
|
function Ce() {
|
|
65
|
-
const { caseless: e, skipUndefined: t } =
|
|
66
|
-
|
|
67
|
-
|
|
70
|
+
const { caseless: e, skipUndefined: t } = ht(this) && this || {}, r = {}, s = (n, o) => {
|
|
71
|
+
if (o === "__proto__" || o === "constructor" || o === "prototype")
|
|
72
|
+
return;
|
|
73
|
+
const a = e && pt(r, o) || o;
|
|
74
|
+
pe(r[a]) && pe(n) ? r[a] = Ce(r[a], n) : pe(n) ? r[a] = Ce({}, n) : K(n) ? r[a] = n.slice() : (!t || !Z(n)) && (r[a] = n);
|
|
68
75
|
};
|
|
69
|
-
for (let n = 0,
|
|
70
|
-
arguments[n] &&
|
|
76
|
+
for (let n = 0, o = arguments.length; n < o; n++)
|
|
77
|
+
arguments[n] && ne(arguments[n], s);
|
|
71
78
|
return r;
|
|
72
79
|
}
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
80
|
+
const Xt = (e, t, r, { allOwnKeys: s } = {}) => (ne(
|
|
81
|
+
t,
|
|
82
|
+
(n, o) => {
|
|
83
|
+
r && N(n) ? Object.defineProperty(e, o, {
|
|
84
|
+
value: lt(n, r),
|
|
85
|
+
writable: !0,
|
|
86
|
+
enumerable: !0,
|
|
87
|
+
configurable: !0
|
|
88
|
+
}) : Object.defineProperty(e, o, {
|
|
89
|
+
value: n,
|
|
90
|
+
writable: !0,
|
|
91
|
+
enumerable: !0,
|
|
92
|
+
configurable: !0
|
|
93
|
+
});
|
|
94
|
+
},
|
|
95
|
+
{ allOwnKeys: s }
|
|
96
|
+
), e), Jt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Zt = (e, t, r, s) => {
|
|
97
|
+
e.prototype = Object.create(
|
|
98
|
+
t.prototype,
|
|
99
|
+
s
|
|
100
|
+
), Object.defineProperty(e.prototype, "constructor", {
|
|
101
|
+
value: e,
|
|
102
|
+
writable: !0,
|
|
103
|
+
enumerable: !1,
|
|
104
|
+
configurable: !0
|
|
105
|
+
}), Object.defineProperty(e, "super", {
|
|
77
106
|
value: t.prototype
|
|
78
107
|
}), r && Object.assign(e.prototype, r);
|
|
79
|
-
},
|
|
80
|
-
let n,
|
|
108
|
+
}, Kt = (e, t, r, s) => {
|
|
109
|
+
let n, o, a;
|
|
81
110
|
const i = {};
|
|
82
111
|
if (t = t || {}, e == null) return t;
|
|
83
112
|
do {
|
|
84
|
-
for (n = Object.getOwnPropertyNames(e),
|
|
85
|
-
|
|
86
|
-
e = r !== !1 &&
|
|
113
|
+
for (n = Object.getOwnPropertyNames(e), o = n.length; o-- > 0; )
|
|
114
|
+
a = n[o], (!s || s(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
|
|
115
|
+
e = r !== !1 && Ue(e);
|
|
87
116
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
88
117
|
return t;
|
|
89
|
-
},
|
|
118
|
+
}, Qt = (e, t, r) => {
|
|
90
119
|
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
91
120
|
const s = e.indexOf(t, r);
|
|
92
121
|
return s !== -1 && s === r;
|
|
93
|
-
},
|
|
122
|
+
}, er = (e) => {
|
|
94
123
|
if (!e) return null;
|
|
95
124
|
if (K(e)) return e;
|
|
96
125
|
let t = e.length;
|
|
97
|
-
if (!
|
|
126
|
+
if (!ut(t)) return null;
|
|
98
127
|
const r = new Array(t);
|
|
99
128
|
for (; t-- > 0; )
|
|
100
129
|
r[t] = e[t];
|
|
101
130
|
return r;
|
|
102
|
-
},
|
|
131
|
+
}, tr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ue(Uint8Array)), rr = (e, t) => {
|
|
103
132
|
const s = (e && e[Oe]).call(e);
|
|
104
133
|
let n;
|
|
105
134
|
for (; (n = s.next()) && !n.done; ) {
|
|
106
|
-
const
|
|
107
|
-
t.call(e,
|
|
135
|
+
const o = n.value;
|
|
136
|
+
t.call(e, o[0], o[1]);
|
|
108
137
|
}
|
|
109
|
-
},
|
|
138
|
+
}, sr = (e, t) => {
|
|
110
139
|
let r;
|
|
111
140
|
const s = [];
|
|
112
141
|
for (; (r = e.exec(t)) !== null; )
|
|
113
142
|
s.push(r);
|
|
114
143
|
return s;
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return s.toUpperCase() + n;
|
|
119
|
-
}
|
|
120
|
-
), Fe = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), ir = B("RegExp"), ht = (e, t) => {
|
|
144
|
+
}, nr = G("HTMLFormElement"), or = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, s, n) {
|
|
145
|
+
return s.toUpperCase() + n;
|
|
146
|
+
}), qe = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), ar = G("RegExp"), ft = (e, t) => {
|
|
121
147
|
const r = Object.getOwnPropertyDescriptors(e), s = {};
|
|
122
|
-
|
|
123
|
-
let
|
|
124
|
-
(
|
|
148
|
+
ne(r, (n, o) => {
|
|
149
|
+
let a;
|
|
150
|
+
(a = t(n, o, e)) !== !1 && (s[o] = a || n);
|
|
125
151
|
}), Object.defineProperties(e, s);
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
if (
|
|
152
|
+
}, ir = (e) => {
|
|
153
|
+
ft(e, (t, r) => {
|
|
154
|
+
if (N(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
129
155
|
return !1;
|
|
130
156
|
const s = e[r];
|
|
131
|
-
if (
|
|
157
|
+
if (N(s)) {
|
|
132
158
|
if (t.enumerable = !1, "writable" in t) {
|
|
133
159
|
t.writable = !1;
|
|
134
160
|
return;
|
|
@@ -138,109 +164,125 @@ const Jt = (e, t, r, { allOwnKeys: s } = {}) => (oe(t, (n, a) => {
|
|
|
138
164
|
});
|
|
139
165
|
}
|
|
140
166
|
});
|
|
141
|
-
},
|
|
167
|
+
}, lr = (e, t) => {
|
|
142
168
|
const r = {}, s = (n) => {
|
|
143
|
-
n.forEach((
|
|
144
|
-
r[
|
|
169
|
+
n.forEach((o) => {
|
|
170
|
+
r[o] = !0;
|
|
145
171
|
});
|
|
146
172
|
};
|
|
147
173
|
return K(e) ? s(e) : s(String(e).split(t)), r;
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
function
|
|
151
|
-
return !!(e &&
|
|
174
|
+
}, cr = () => {
|
|
175
|
+
}, dr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
176
|
+
function ur(e) {
|
|
177
|
+
return !!(e && N(e.append) && e[ct] === "FormData" && e[Oe]);
|
|
152
178
|
}
|
|
153
|
-
const
|
|
179
|
+
const pr = (e) => {
|
|
154
180
|
const t = new Array(10), r = (s, n) => {
|
|
155
|
-
if (
|
|
181
|
+
if (se(s)) {
|
|
156
182
|
if (t.indexOf(s) >= 0)
|
|
157
183
|
return;
|
|
158
|
-
if (
|
|
184
|
+
if (re(s))
|
|
159
185
|
return s;
|
|
160
186
|
if (!("toJSON" in s)) {
|
|
161
187
|
t[n] = s;
|
|
162
|
-
const
|
|
163
|
-
return
|
|
164
|
-
const l = r(
|
|
165
|
-
!Z(l) && (
|
|
166
|
-
}), t[n] = void 0,
|
|
188
|
+
const o = K(s) ? [] : {};
|
|
189
|
+
return ne(s, (a, i) => {
|
|
190
|
+
const l = r(a, n + 1);
|
|
191
|
+
!Z(l) && (o[i] = l);
|
|
192
|
+
}), t[n] = void 0, o;
|
|
167
193
|
}
|
|
168
194
|
}
|
|
169
195
|
return s;
|
|
170
196
|
};
|
|
171
197
|
return r(e, 0);
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
),
|
|
198
|
+
}, hr = G("AsyncFunction"), fr = (e) => e && (se(e) || N(e)) && N(e.then) && N(e.catch), Et = ((e, t) => e ? setImmediate : t ? ((r, s) => (z.addEventListener(
|
|
199
|
+
"message",
|
|
200
|
+
({ source: n, data: o }) => {
|
|
201
|
+
n === z && o === r && s.length && s.shift()();
|
|
202
|
+
},
|
|
203
|
+
!1
|
|
204
|
+
), (n) => {
|
|
205
|
+
s.push(n), z.postMessage(r, "*");
|
|
206
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", N(z.postMessage)), Er = typeof queueMicrotask < "u" ? queueMicrotask.bind(z) : typeof process < "u" && process.nextTick || Et, Ar = (e) => e != null && N(e[Oe]), u = {
|
|
180
207
|
isArray: K,
|
|
181
|
-
isArrayBuffer:
|
|
182
|
-
isBuffer:
|
|
183
|
-
isFormData:
|
|
184
|
-
isArrayBufferView:
|
|
185
|
-
isString:
|
|
186
|
-
isNumber:
|
|
187
|
-
isBoolean:
|
|
188
|
-
isObject:
|
|
208
|
+
isArrayBuffer: dt,
|
|
209
|
+
isBuffer: re,
|
|
210
|
+
isFormData: kt,
|
|
211
|
+
isArrayBufferView: Ut,
|
|
212
|
+
isString: xt,
|
|
213
|
+
isNumber: ut,
|
|
214
|
+
isBoolean: Dt,
|
|
215
|
+
isObject: se,
|
|
189
216
|
isPlainObject: pe,
|
|
190
|
-
isEmptyObject:
|
|
191
|
-
isReadableStream:
|
|
217
|
+
isEmptyObject: Bt,
|
|
218
|
+
isReadableStream: qt,
|
|
192
219
|
isRequest: $t,
|
|
193
|
-
isResponse:
|
|
194
|
-
isHeaders:
|
|
220
|
+
isResponse: zt,
|
|
221
|
+
isHeaders: Wt,
|
|
195
222
|
isUndefined: Z,
|
|
196
|
-
isDate:
|
|
197
|
-
isFile:
|
|
198
|
-
isBlob:
|
|
199
|
-
isRegExp:
|
|
200
|
-
isFunction:
|
|
201
|
-
isStream:
|
|
202
|
-
isURLSearchParams:
|
|
203
|
-
isTypedArray:
|
|
204
|
-
isFileList:
|
|
205
|
-
forEach:
|
|
223
|
+
isDate: Ht,
|
|
224
|
+
isFile: Gt,
|
|
225
|
+
isBlob: Mt,
|
|
226
|
+
isRegExp: ar,
|
|
227
|
+
isFunction: N,
|
|
228
|
+
isStream: jt,
|
|
229
|
+
isURLSearchParams: Ft,
|
|
230
|
+
isTypedArray: tr,
|
|
231
|
+
isFileList: vt,
|
|
232
|
+
forEach: ne,
|
|
206
233
|
merge: Ce,
|
|
207
|
-
extend:
|
|
208
|
-
trim:
|
|
209
|
-
stripBOM:
|
|
210
|
-
inherits:
|
|
211
|
-
toFlatObject:
|
|
234
|
+
extend: Xt,
|
|
235
|
+
trim: Yt,
|
|
236
|
+
stripBOM: Jt,
|
|
237
|
+
inherits: Zt,
|
|
238
|
+
toFlatObject: Kt,
|
|
212
239
|
kindOf: _e,
|
|
213
|
-
kindOfTest:
|
|
214
|
-
endsWith:
|
|
215
|
-
toArray:
|
|
216
|
-
forEachEntry:
|
|
217
|
-
matchAll:
|
|
218
|
-
isHTMLForm:
|
|
219
|
-
hasOwnProperty:
|
|
220
|
-
hasOwnProp:
|
|
240
|
+
kindOfTest: G,
|
|
241
|
+
endsWith: Qt,
|
|
242
|
+
toArray: er,
|
|
243
|
+
forEachEntry: rr,
|
|
244
|
+
matchAll: sr,
|
|
245
|
+
isHTMLForm: nr,
|
|
246
|
+
hasOwnProperty: qe,
|
|
247
|
+
hasOwnProp: qe,
|
|
221
248
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
222
|
-
reduceDescriptors:
|
|
223
|
-
freezeMethods:
|
|
224
|
-
toObjectSet:
|
|
225
|
-
toCamelCase:
|
|
226
|
-
noop:
|
|
227
|
-
toFiniteNumber:
|
|
228
|
-
findKey:
|
|
229
|
-
global:
|
|
230
|
-
isContextDefined:
|
|
231
|
-
isSpecCompliantForm:
|
|
232
|
-
toJSONObject:
|
|
233
|
-
isAsyncFn:
|
|
234
|
-
isThenable:
|
|
235
|
-
setImmediate:
|
|
236
|
-
asap:
|
|
237
|
-
isIterable:
|
|
249
|
+
reduceDescriptors: ft,
|
|
250
|
+
freezeMethods: ir,
|
|
251
|
+
toObjectSet: lr,
|
|
252
|
+
toCamelCase: or,
|
|
253
|
+
noop: cr,
|
|
254
|
+
toFiniteNumber: dr,
|
|
255
|
+
findKey: pt,
|
|
256
|
+
global: z,
|
|
257
|
+
isContextDefined: ht,
|
|
258
|
+
isSpecCompliantForm: ur,
|
|
259
|
+
toJSONObject: pr,
|
|
260
|
+
isAsyncFn: hr,
|
|
261
|
+
isThenable: fr,
|
|
262
|
+
setImmediate: Et,
|
|
263
|
+
asap: Er,
|
|
264
|
+
isIterable: Ar
|
|
238
265
|
};
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
266
|
+
let A = class At extends Error {
|
|
267
|
+
static from(t, r, s, n, o, a) {
|
|
268
|
+
const i = new At(t.message, r || t.code, s, n, o);
|
|
269
|
+
return i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
273
|
+
*
|
|
274
|
+
* @param {string} message The error message.
|
|
275
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
276
|
+
* @param {Object} [config] The config.
|
|
277
|
+
* @param {Object} [request] The request.
|
|
278
|
+
* @param {Object} [response] The response.
|
|
279
|
+
*
|
|
280
|
+
* @returns {Error} The created error.
|
|
281
|
+
*/
|
|
282
|
+
constructor(t, r, s, n, o) {
|
|
283
|
+
super(t), 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);
|
|
284
|
+
}
|
|
285
|
+
toJSON() {
|
|
244
286
|
return {
|
|
245
287
|
// Standard
|
|
246
288
|
message: this.message,
|
|
@@ -259,54 +301,38 @@ u.inherits(O, Error, {
|
|
|
259
301
|
status: this.status
|
|
260
302
|
};
|
|
261
303
|
}
|
|
262
|
-
});
|
|
263
|
-
const Et = O.prototype, At = {};
|
|
264
|
-
[
|
|
265
|
-
"ERR_BAD_OPTION_VALUE",
|
|
266
|
-
"ERR_BAD_OPTION",
|
|
267
|
-
"ECONNABORTED",
|
|
268
|
-
"ETIMEDOUT",
|
|
269
|
-
"ERR_NETWORK",
|
|
270
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
271
|
-
"ERR_DEPRECATED",
|
|
272
|
-
"ERR_BAD_RESPONSE",
|
|
273
|
-
"ERR_BAD_REQUEST",
|
|
274
|
-
"ERR_CANCELED",
|
|
275
|
-
"ERR_NOT_SUPPORT",
|
|
276
|
-
"ERR_INVALID_URL"
|
|
277
|
-
// eslint-disable-next-line func-names
|
|
278
|
-
].forEach((e) => {
|
|
279
|
-
At[e] = { value: e };
|
|
280
|
-
});
|
|
281
|
-
Object.defineProperties(O, At);
|
|
282
|
-
Object.defineProperty(Et, "isAxiosError", { value: !0 });
|
|
283
|
-
O.from = (e, t, r, s, n, a) => {
|
|
284
|
-
const o = Object.create(Et);
|
|
285
|
-
u.toFlatObject(e, o, function(d) {
|
|
286
|
-
return d !== Error.prototype;
|
|
287
|
-
}, (c) => c !== "isAxiosError");
|
|
288
|
-
const i = e && e.message ? e.message : "Error", l = t == null && e ? e.code : t;
|
|
289
|
-
return O.call(o, i, l, r, s, n), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", a && Object.assign(o, a), o;
|
|
290
304
|
};
|
|
291
|
-
|
|
305
|
+
A.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
306
|
+
A.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
307
|
+
A.ECONNABORTED = "ECONNABORTED";
|
|
308
|
+
A.ETIMEDOUT = "ETIMEDOUT";
|
|
309
|
+
A.ERR_NETWORK = "ERR_NETWORK";
|
|
310
|
+
A.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
311
|
+
A.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
312
|
+
A.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
313
|
+
A.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
314
|
+
A.ERR_CANCELED = "ERR_CANCELED";
|
|
315
|
+
A.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
316
|
+
A.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
317
|
+
const Or = null;
|
|
292
318
|
function Le(e) {
|
|
293
319
|
return u.isPlainObject(e) || u.isArray(e);
|
|
294
320
|
}
|
|
295
321
|
function Ot(e) {
|
|
296
322
|
return u.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
297
323
|
}
|
|
298
|
-
function
|
|
299
|
-
return e ? e.concat(t).map(function(n,
|
|
300
|
-
return n = Ot(n), !r &&
|
|
324
|
+
function $e(e, t, r) {
|
|
325
|
+
return e ? e.concat(t).map(function(n, o) {
|
|
326
|
+
return n = Ot(n), !r && o ? "[" + n + "]" : n;
|
|
301
327
|
}).join(r ? "." : "") : t;
|
|
302
328
|
}
|
|
303
|
-
function
|
|
329
|
+
function _r(e) {
|
|
304
330
|
return u.isArray(e) && !e.some(Le);
|
|
305
331
|
}
|
|
306
|
-
const
|
|
332
|
+
const mr = u.toFlatObject(u, {}, null, function(t) {
|
|
307
333
|
return /^is[A-Z]/.test(t);
|
|
308
334
|
});
|
|
309
|
-
function
|
|
335
|
+
function Re(e, t, r) {
|
|
310
336
|
if (!u.isObject(e))
|
|
311
337
|
throw new TypeError("target must be an object");
|
|
312
338
|
t = t || new FormData(), r = u.toFlatObject(r, {
|
|
@@ -316,7 +342,7 @@ function Te(e, t, r) {
|
|
|
316
342
|
}, !1, function(E, f) {
|
|
317
343
|
return !u.isUndefined(f[E]);
|
|
318
344
|
});
|
|
319
|
-
const s = r.metaTokens, n = r.visitor || d,
|
|
345
|
+
const s = r.metaTokens, n = r.visitor || d, o = r.dots, a = r.indexes, l = (r.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(t);
|
|
320
346
|
if (!u.isFunction(n))
|
|
321
347
|
throw new TypeError("visitor must be a function");
|
|
322
348
|
function c(h) {
|
|
@@ -326,7 +352,7 @@ function Te(e, t, r) {
|
|
|
326
352
|
if (u.isBoolean(h))
|
|
327
353
|
return h.toString();
|
|
328
354
|
if (!l && u.isBlob(h))
|
|
329
|
-
throw new
|
|
355
|
+
throw new A("Blob is not supported. Use a Buffer instead.");
|
|
330
356
|
return u.isArrayBuffer(h) || u.isTypedArray(h) ? l && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
|
331
357
|
}
|
|
332
358
|
function d(h, E, f) {
|
|
@@ -334,18 +360,18 @@ function Te(e, t, r) {
|
|
|
334
360
|
if (h && !f && typeof h == "object") {
|
|
335
361
|
if (u.endsWith(E, "{}"))
|
|
336
362
|
E = s ? E : E.slice(0, -2), h = JSON.stringify(h);
|
|
337
|
-
else if (u.isArray(h) &&
|
|
363
|
+
else if (u.isArray(h) && _r(h) || (u.isFileList(h) || u.endsWith(E, "[]")) && (w = u.toArray(h)))
|
|
338
364
|
return E = Ot(E), w.forEach(function(y, V) {
|
|
339
365
|
!(u.isUndefined(y) || y === null) && t.append(
|
|
340
366
|
// eslint-disable-next-line no-nested-ternary
|
|
341
|
-
|
|
367
|
+
a === !0 ? $e([E], V, o) : a === null ? E : E + "[]",
|
|
342
368
|
c(y)
|
|
343
369
|
);
|
|
344
370
|
}), !1;
|
|
345
371
|
}
|
|
346
|
-
return Le(h) ? !0 : (t.append(
|
|
372
|
+
return Le(h) ? !0 : (t.append($e(f, E, o), c(h)), !1);
|
|
347
373
|
}
|
|
348
|
-
const p = [], _ = Object.assign(
|
|
374
|
+
const p = [], _ = Object.assign(mr, {
|
|
349
375
|
defaultVisitor: d,
|
|
350
376
|
convertValue: c,
|
|
351
377
|
isVisitable: Le
|
|
@@ -354,14 +380,14 @@ function Te(e, t, r) {
|
|
|
354
380
|
if (!u.isUndefined(h)) {
|
|
355
381
|
if (p.indexOf(h) !== -1)
|
|
356
382
|
throw Error("Circular reference detected in " + E.join("."));
|
|
357
|
-
p.push(h), u.forEach(h, function(w,
|
|
383
|
+
p.push(h), u.forEach(h, function(w, x) {
|
|
358
384
|
(!(u.isUndefined(w) || w === null) && n.call(
|
|
359
385
|
t,
|
|
360
386
|
w,
|
|
361
|
-
u.isString(
|
|
387
|
+
u.isString(x) ? x.trim() : x,
|
|
362
388
|
E,
|
|
363
389
|
_
|
|
364
|
-
)) === !0 && C(w, E ? E.concat(
|
|
390
|
+
)) === !0 && C(w, E ? E.concat(x) : [x]);
|
|
365
391
|
}), p.pop();
|
|
366
392
|
}
|
|
367
393
|
}
|
|
@@ -383,10 +409,10 @@ function ze(e) {
|
|
|
383
409
|
return t[s];
|
|
384
410
|
});
|
|
385
411
|
}
|
|
386
|
-
function
|
|
387
|
-
this._pairs = [], e &&
|
|
412
|
+
function xe(e, t) {
|
|
413
|
+
this._pairs = [], e && Re(e, this, t);
|
|
388
414
|
}
|
|
389
|
-
const _t =
|
|
415
|
+
const _t = xe.prototype;
|
|
390
416
|
_t.append = function(t, r) {
|
|
391
417
|
this._pairs.push([t, r]);
|
|
392
418
|
};
|
|
@@ -404,19 +430,17 @@ function Rr(e) {
|
|
|
404
430
|
function mt(e, t, r) {
|
|
405
431
|
if (!t)
|
|
406
432
|
return e;
|
|
407
|
-
const s = r && r.encode || Rr
|
|
408
|
-
u.isFunction(r) && (r = {
|
|
433
|
+
const s = r && r.encode || Rr, n = u.isFunction(r) ? {
|
|
409
434
|
serialize: r
|
|
410
|
-
}
|
|
411
|
-
const n = r && r.serialize;
|
|
435
|
+
} : r, o = n && n.serialize;
|
|
412
436
|
let a;
|
|
413
|
-
if (
|
|
414
|
-
const
|
|
415
|
-
|
|
437
|
+
if (o ? a = o(t, n) : a = u.isURLSearchParams(t) ? t.toString() : new xe(t, n).toString(s), a) {
|
|
438
|
+
const i = e.indexOf("#");
|
|
439
|
+
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
|
|
416
440
|
}
|
|
417
441
|
return e;
|
|
418
442
|
}
|
|
419
|
-
class
|
|
443
|
+
class We {
|
|
420
444
|
constructor() {
|
|
421
445
|
this.handlers = [];
|
|
422
446
|
}
|
|
@@ -425,6 +449,7 @@ class $e {
|
|
|
425
449
|
*
|
|
426
450
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
427
451
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
452
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
428
453
|
*
|
|
429
454
|
* @return {Number} An ID used to remove interceptor later
|
|
430
455
|
*/
|
|
@@ -441,7 +466,7 @@ class $e {
|
|
|
441
466
|
*
|
|
442
467
|
* @param {Number} id The ID that was returned by `use`
|
|
443
468
|
*
|
|
444
|
-
* @returns {
|
|
469
|
+
* @returns {void}
|
|
445
470
|
*/
|
|
446
471
|
eject(t) {
|
|
447
472
|
this.handlers[t] && (this.handlers[t] = null);
|
|
@@ -470,66 +495,67 @@ class $e {
|
|
|
470
495
|
});
|
|
471
496
|
}
|
|
472
497
|
}
|
|
473
|
-
const
|
|
498
|
+
const De = {
|
|
474
499
|
silentJSONParsing: !0,
|
|
475
500
|
forcedJSONParsing: !0,
|
|
476
|
-
clarifyTimeoutError: !1
|
|
477
|
-
|
|
501
|
+
clarifyTimeoutError: !1,
|
|
502
|
+
legacyInterceptorReqResOrdering: !0
|
|
503
|
+
}, Tr = typeof URLSearchParams < "u" ? URLSearchParams : xe, Pr = typeof FormData < "u" ? FormData : null, Ir = typeof Blob < "u" ? Blob : null, Sr = {
|
|
478
504
|
isBrowser: !0,
|
|
479
505
|
classes: {
|
|
480
|
-
URLSearchParams:
|
|
481
|
-
FormData:
|
|
482
|
-
Blob:
|
|
506
|
+
URLSearchParams: Tr,
|
|
507
|
+
FormData: Pr,
|
|
508
|
+
Blob: Ir
|
|
483
509
|
},
|
|
484
510
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
485
|
-
}, Be = typeof window < "u" && typeof document < "u", Ve = typeof navigator == "object" && navigator || void 0,
|
|
486
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
511
|
+
}, Be = typeof window < "u" && typeof document < "u", Ve = typeof navigator == "object" && navigator || void 0, br = Be && (!Ve || ["ReactNative", "NativeScript", "NS"].indexOf(Ve.product) < 0), wr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
512
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", yr = Be && window.location.href || "http://localhost", Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
487
513
|
__proto__: null,
|
|
488
514
|
hasBrowserEnv: Be,
|
|
489
|
-
hasStandardBrowserEnv:
|
|
490
|
-
hasStandardBrowserWebWorkerEnv:
|
|
515
|
+
hasStandardBrowserEnv: br,
|
|
516
|
+
hasStandardBrowserWebWorkerEnv: wr,
|
|
491
517
|
navigator: Ve,
|
|
492
|
-
origin:
|
|
518
|
+
origin: yr
|
|
493
519
|
}, Symbol.toStringTag, { value: "Module" })), L = {
|
|
494
|
-
...
|
|
495
|
-
...
|
|
520
|
+
...Cr,
|
|
521
|
+
...Sr
|
|
496
522
|
};
|
|
497
|
-
function
|
|
498
|
-
return
|
|
499
|
-
visitor: function(r, s, n,
|
|
500
|
-
return L.isNode && u.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) :
|
|
523
|
+
function Lr(e, t) {
|
|
524
|
+
return Re(e, new L.classes.URLSearchParams(), {
|
|
525
|
+
visitor: function(r, s, n, o) {
|
|
526
|
+
return L.isNode && u.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
501
527
|
},
|
|
502
528
|
...t
|
|
503
529
|
});
|
|
504
530
|
}
|
|
505
|
-
function
|
|
531
|
+
function Vr(e) {
|
|
506
532
|
return u.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
507
533
|
}
|
|
508
|
-
function
|
|
534
|
+
function gr(e) {
|
|
509
535
|
const t = {}, r = Object.keys(e);
|
|
510
536
|
let s;
|
|
511
537
|
const n = r.length;
|
|
512
|
-
let
|
|
538
|
+
let o;
|
|
513
539
|
for (s = 0; s < n; s++)
|
|
514
|
-
|
|
540
|
+
o = r[s], t[o] = e[o];
|
|
515
541
|
return t;
|
|
516
542
|
}
|
|
517
543
|
function Rt(e) {
|
|
518
|
-
function t(r, s, n,
|
|
519
|
-
let
|
|
520
|
-
if (
|
|
521
|
-
const i = Number.isFinite(+
|
|
522
|
-
return
|
|
544
|
+
function t(r, s, n, o) {
|
|
545
|
+
let a = r[o++];
|
|
546
|
+
if (a === "__proto__") return !0;
|
|
547
|
+
const i = Number.isFinite(+a), l = o >= r.length;
|
|
548
|
+
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] = gr(n[a])), !i);
|
|
523
549
|
}
|
|
524
550
|
if (u.isFormData(e) && u.isFunction(e.entries)) {
|
|
525
551
|
const r = {};
|
|
526
552
|
return u.forEachEntry(e, (s, n) => {
|
|
527
|
-
t(
|
|
553
|
+
t(Vr(s), n, r, 0);
|
|
528
554
|
}), r;
|
|
529
555
|
}
|
|
530
556
|
return null;
|
|
531
557
|
}
|
|
532
|
-
function
|
|
558
|
+
function Nr(e, t, r) {
|
|
533
559
|
if (u.isString(e))
|
|
534
560
|
try {
|
|
535
561
|
return (t || JSON.parse)(e), u.trim(e);
|
|
@@ -539,12 +565,12 @@ function Ur(e, t, r) {
|
|
|
539
565
|
}
|
|
540
566
|
return (r || JSON.stringify)(e);
|
|
541
567
|
}
|
|
542
|
-
const
|
|
543
|
-
transitional:
|
|
568
|
+
const oe = {
|
|
569
|
+
transitional: De,
|
|
544
570
|
adapter: ["xhr", "http", "fetch"],
|
|
545
571
|
transformRequest: [function(t, r) {
|
|
546
|
-
const s = r.getContentType() || "", n = s.indexOf("application/json") > -1,
|
|
547
|
-
if (
|
|
572
|
+
const s = r.getContentType() || "", n = s.indexOf("application/json") > -1, o = u.isObject(t);
|
|
573
|
+
if (o && u.isHTMLForm(t) && (t = new FormData(t)), u.isFormData(t))
|
|
548
574
|
return n ? JSON.stringify(Rt(t)) : t;
|
|
549
575
|
if (u.isArrayBuffer(t) || u.isBuffer(t) || u.isStream(t) || u.isFile(t) || u.isBlob(t) || u.isReadableStream(t))
|
|
550
576
|
return t;
|
|
@@ -553,31 +579,31 @@ const ae = {
|
|
|
553
579
|
if (u.isURLSearchParams(t))
|
|
554
580
|
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
555
581
|
let i;
|
|
556
|
-
if (
|
|
582
|
+
if (o) {
|
|
557
583
|
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
|
558
|
-
return
|
|
584
|
+
return Lr(t, this.formSerializer).toString();
|
|
559
585
|
if ((i = u.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
|
|
560
586
|
const l = this.env && this.env.FormData;
|
|
561
|
-
return
|
|
587
|
+
return Re(
|
|
562
588
|
i ? { "files[]": t } : t,
|
|
563
589
|
l && new l(),
|
|
564
590
|
this.formSerializer
|
|
565
591
|
);
|
|
566
592
|
}
|
|
567
593
|
}
|
|
568
|
-
return
|
|
594
|
+
return o || n ? (r.setContentType("application/json", !1), Nr(t)) : t;
|
|
569
595
|
}],
|
|
570
596
|
transformResponse: [function(t) {
|
|
571
|
-
const r = this.transitional ||
|
|
597
|
+
const r = this.transitional || oe.transitional, s = r && r.forcedJSONParsing, n = this.responseType === "json";
|
|
572
598
|
if (u.isResponse(t) || u.isReadableStream(t))
|
|
573
599
|
return t;
|
|
574
600
|
if (t && u.isString(t) && (s && !this.responseType || n)) {
|
|
575
|
-
const
|
|
601
|
+
const a = !(r && r.silentJSONParsing) && n;
|
|
576
602
|
try {
|
|
577
603
|
return JSON.parse(t, this.parseReviver);
|
|
578
604
|
} catch (i) {
|
|
579
|
-
if (
|
|
580
|
-
throw i.name === "SyntaxError" ?
|
|
605
|
+
if (a)
|
|
606
|
+
throw i.name === "SyntaxError" ? A.from(i, A.ERR_BAD_RESPONSE, this, null, this.response) : i;
|
|
581
607
|
}
|
|
582
608
|
}
|
|
583
609
|
return t;
|
|
@@ -606,9 +632,9 @@ const ae = {
|
|
|
606
632
|
}
|
|
607
633
|
};
|
|
608
634
|
u.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
609
|
-
|
|
635
|
+
oe.headers[e] = {};
|
|
610
636
|
});
|
|
611
|
-
const
|
|
637
|
+
const Ur = u.toObjectSet([
|
|
612
638
|
"age",
|
|
613
639
|
"authorization",
|
|
614
640
|
"content-length",
|
|
@@ -626,28 +652,28 @@ const xr = u.toObjectSet([
|
|
|
626
652
|
"referer",
|
|
627
653
|
"retry-after",
|
|
628
654
|
"user-agent"
|
|
629
|
-
]),
|
|
655
|
+
]), xr = (e) => {
|
|
630
656
|
const t = {};
|
|
631
657
|
let r, s, n;
|
|
632
658
|
return e && e.split(`
|
|
633
|
-
`).forEach(function(
|
|
634
|
-
n =
|
|
659
|
+
`).forEach(function(a) {
|
|
660
|
+
n = a.indexOf(":"), r = a.substring(0, n).trim().toLowerCase(), s = a.substring(n + 1).trim(), !(!r || t[r] && Ur[r]) && (r === "set-cookie" ? t[r] ? t[r].push(s) : t[r] = [s] : t[r] = t[r] ? t[r] + ", " + s : s);
|
|
635
661
|
}), t;
|
|
636
|
-
},
|
|
637
|
-
function
|
|
662
|
+
}, Ye = Symbol("internals");
|
|
663
|
+
function te(e) {
|
|
638
664
|
return e && String(e).trim().toLowerCase();
|
|
639
665
|
}
|
|
640
666
|
function he(e) {
|
|
641
667
|
return e === !1 || e == null ? e : u.isArray(e) ? e.map(he) : String(e);
|
|
642
668
|
}
|
|
643
|
-
function
|
|
669
|
+
function Dr(e) {
|
|
644
670
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
645
671
|
let s;
|
|
646
672
|
for (; s = r.exec(e); )
|
|
647
673
|
t[s[1]] = s[2];
|
|
648
674
|
return t;
|
|
649
675
|
}
|
|
650
|
-
const
|
|
676
|
+
const Br = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
651
677
|
function Se(e, t, r, s, n) {
|
|
652
678
|
if (u.isFunction(s))
|
|
653
679
|
return s.call(this, t, r);
|
|
@@ -658,38 +684,38 @@ function Se(e, t, r, s, n) {
|
|
|
658
684
|
return s.test(t);
|
|
659
685
|
}
|
|
660
686
|
}
|
|
661
|
-
function
|
|
687
|
+
function Hr(e) {
|
|
662
688
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, s) => r.toUpperCase() + s);
|
|
663
689
|
}
|
|
664
|
-
function
|
|
690
|
+
function Gr(e, t) {
|
|
665
691
|
const r = u.toCamelCase(" " + t);
|
|
666
692
|
["get", "set", "has"].forEach((s) => {
|
|
667
693
|
Object.defineProperty(e, s + r, {
|
|
668
|
-
value: function(n,
|
|
669
|
-
return this[s].call(this, t, n,
|
|
694
|
+
value: function(n, o, a) {
|
|
695
|
+
return this[s].call(this, t, n, o, a);
|
|
670
696
|
},
|
|
671
697
|
configurable: !0
|
|
672
698
|
});
|
|
673
699
|
});
|
|
674
700
|
}
|
|
675
|
-
let
|
|
701
|
+
let U = class {
|
|
676
702
|
constructor(t) {
|
|
677
703
|
t && this.set(t);
|
|
678
704
|
}
|
|
679
705
|
set(t, r, s) {
|
|
680
706
|
const n = this;
|
|
681
|
-
function
|
|
682
|
-
const d =
|
|
707
|
+
function o(i, l, c) {
|
|
708
|
+
const d = te(l);
|
|
683
709
|
if (!d)
|
|
684
710
|
throw new Error("header name must be a non-empty string");
|
|
685
711
|
const p = u.findKey(n, d);
|
|
686
712
|
(!p || n[p] === void 0 || c === !0 || c === void 0 && n[p] !== !1) && (n[p || l] = he(i));
|
|
687
713
|
}
|
|
688
|
-
const
|
|
714
|
+
const a = (i, l) => u.forEach(i, (c, d) => o(c, d, l));
|
|
689
715
|
if (u.isPlainObject(t) || t instanceof this.constructor)
|
|
690
|
-
|
|
691
|
-
else if (u.isString(t) && (t = t.trim()) && !
|
|
692
|
-
|
|
716
|
+
a(t, r);
|
|
717
|
+
else if (u.isString(t) && (t = t.trim()) && !Br(t))
|
|
718
|
+
a(xr(t), r);
|
|
693
719
|
else if (u.isObject(t) && u.isIterable(t)) {
|
|
694
720
|
let i = {}, l, c;
|
|
695
721
|
for (const d of t) {
|
|
@@ -697,20 +723,20 @@ let N = class {
|
|
|
697
723
|
throw TypeError("Object iterator must return a key-value pair");
|
|
698
724
|
i[c = d[0]] = (l = i[c]) ? u.isArray(l) ? [...l, d[1]] : [l, d[1]] : d[1];
|
|
699
725
|
}
|
|
700
|
-
|
|
726
|
+
a(i, r);
|
|
701
727
|
} else
|
|
702
|
-
t != null &&
|
|
728
|
+
t != null && o(r, t, s);
|
|
703
729
|
return this;
|
|
704
730
|
}
|
|
705
731
|
get(t, r) {
|
|
706
|
-
if (t =
|
|
732
|
+
if (t = te(t), t) {
|
|
707
733
|
const s = u.findKey(this, t);
|
|
708
734
|
if (s) {
|
|
709
735
|
const n = this[s];
|
|
710
736
|
if (!r)
|
|
711
737
|
return n;
|
|
712
738
|
if (r === !0)
|
|
713
|
-
return
|
|
739
|
+
return Dr(n);
|
|
714
740
|
if (u.isFunction(r))
|
|
715
741
|
return r.call(this, n, s);
|
|
716
742
|
if (u.isRegExp(r))
|
|
@@ -720,7 +746,7 @@ let N = class {
|
|
|
720
746
|
}
|
|
721
747
|
}
|
|
722
748
|
has(t, r) {
|
|
723
|
-
if (t =
|
|
749
|
+
if (t = te(t), t) {
|
|
724
750
|
const s = u.findKey(this, t);
|
|
725
751
|
return !!(s && this[s] !== void 0 && (!r || Se(this, this[s], s, r)));
|
|
726
752
|
}
|
|
@@ -729,33 +755,33 @@ let N = class {
|
|
|
729
755
|
delete(t, r) {
|
|
730
756
|
const s = this;
|
|
731
757
|
let n = !1;
|
|
732
|
-
function a
|
|
733
|
-
if (
|
|
734
|
-
const i = u.findKey(s,
|
|
758
|
+
function o(a) {
|
|
759
|
+
if (a = te(a), a) {
|
|
760
|
+
const i = u.findKey(s, a);
|
|
735
761
|
i && (!r || Se(s, s[i], i, r)) && (delete s[i], n = !0);
|
|
736
762
|
}
|
|
737
763
|
}
|
|
738
|
-
return u.isArray(t) ? t.forEach(
|
|
764
|
+
return u.isArray(t) ? t.forEach(o) : o(t), n;
|
|
739
765
|
}
|
|
740
766
|
clear(t) {
|
|
741
767
|
const r = Object.keys(this);
|
|
742
768
|
let s = r.length, n = !1;
|
|
743
769
|
for (; s--; ) {
|
|
744
|
-
const
|
|
745
|
-
(!t || Se(this, this[
|
|
770
|
+
const o = r[s];
|
|
771
|
+
(!t || Se(this, this[o], o, t, !0)) && (delete this[o], n = !0);
|
|
746
772
|
}
|
|
747
773
|
return n;
|
|
748
774
|
}
|
|
749
775
|
normalize(t) {
|
|
750
776
|
const r = this, s = {};
|
|
751
|
-
return u.forEach(this, (n,
|
|
752
|
-
const
|
|
753
|
-
if (
|
|
754
|
-
r[
|
|
777
|
+
return u.forEach(this, (n, o) => {
|
|
778
|
+
const a = u.findKey(s, o);
|
|
779
|
+
if (a) {
|
|
780
|
+
r[a] = he(n), delete r[o];
|
|
755
781
|
return;
|
|
756
782
|
}
|
|
757
|
-
const i = t ?
|
|
758
|
-
i !==
|
|
783
|
+
const i = t ? Hr(o) : String(o).trim();
|
|
784
|
+
i !== o && delete r[o], r[i] = he(n), s[i] = !0;
|
|
759
785
|
}), this;
|
|
760
786
|
}
|
|
761
787
|
concat(...t) {
|
|
@@ -788,18 +814,18 @@ let N = class {
|
|
|
788
814
|
return r.forEach((n) => s.set(n)), s;
|
|
789
815
|
}
|
|
790
816
|
static accessor(t) {
|
|
791
|
-
const s = (this[
|
|
817
|
+
const s = (this[Ye] = this[Ye] = {
|
|
792
818
|
accessors: {}
|
|
793
819
|
}).accessors, n = this.prototype;
|
|
794
|
-
function a
|
|
795
|
-
const i =
|
|
796
|
-
s[i] || (
|
|
820
|
+
function o(a) {
|
|
821
|
+
const i = te(a);
|
|
822
|
+
s[i] || (Gr(n, a), s[i] = !0);
|
|
797
823
|
}
|
|
798
|
-
return u.isArray(t) ? t.forEach(
|
|
824
|
+
return u.isArray(t) ? t.forEach(o) : o(t), this;
|
|
799
825
|
}
|
|
800
826
|
};
|
|
801
|
-
|
|
802
|
-
u.reduceDescriptors(
|
|
827
|
+
U.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
828
|
+
u.reduceDescriptors(U.prototype, ({ value: e }, t) => {
|
|
803
829
|
let r = t[0].toUpperCase() + t.slice(1);
|
|
804
830
|
return {
|
|
805
831
|
get: () => e,
|
|
@@ -808,107 +834,117 @@ u.reduceDescriptors(N.prototype, ({ value: e }, t) => {
|
|
|
808
834
|
}
|
|
809
835
|
};
|
|
810
836
|
});
|
|
811
|
-
u.freezeMethods(
|
|
837
|
+
u.freezeMethods(U);
|
|
812
838
|
function be(e, t) {
|
|
813
|
-
const r = this ||
|
|
814
|
-
let
|
|
839
|
+
const r = this || oe, s = t || r, n = U.from(s.headers);
|
|
840
|
+
let o = s.data;
|
|
815
841
|
return u.forEach(e, function(i) {
|
|
816
|
-
|
|
817
|
-
}), n.normalize(),
|
|
842
|
+
o = i.call(r, o, n.normalize(), t ? t.status : void 0);
|
|
843
|
+
}), n.normalize(), o;
|
|
818
844
|
}
|
|
819
|
-
function
|
|
845
|
+
function Tt(e) {
|
|
820
846
|
return !!(e && e.__CANCEL__);
|
|
821
847
|
}
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
}
|
|
828
|
-
|
|
848
|
+
let ae = class extends A {
|
|
849
|
+
/**
|
|
850
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
851
|
+
*
|
|
852
|
+
* @param {string=} message The message.
|
|
853
|
+
* @param {Object=} config The config.
|
|
854
|
+
* @param {Object=} request The request.
|
|
855
|
+
*
|
|
856
|
+
* @returns {CanceledError} The created error.
|
|
857
|
+
*/
|
|
858
|
+
constructor(t, r, s) {
|
|
859
|
+
super(t ?? "canceled", A.ERR_CANCELED, r, s), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
860
|
+
}
|
|
861
|
+
};
|
|
862
|
+
function Pt(e, t, r) {
|
|
829
863
|
const s = r.config.validateStatus;
|
|
830
|
-
!r.status || !s || s(r.status) ? e(r) : t(new
|
|
864
|
+
!r.status || !s || s(r.status) ? e(r) : t(new A(
|
|
831
865
|
"Request failed with status code " + r.status,
|
|
832
|
-
[
|
|
866
|
+
[A.ERR_BAD_REQUEST, A.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
833
867
|
r.config,
|
|
834
868
|
r.request,
|
|
835
869
|
r
|
|
836
870
|
));
|
|
837
871
|
}
|
|
838
|
-
function
|
|
872
|
+
function Mr(e) {
|
|
839
873
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
840
874
|
return t && t[1] || "";
|
|
841
875
|
}
|
|
842
|
-
function
|
|
876
|
+
function vr(e, t) {
|
|
843
877
|
e = e || 10;
|
|
844
878
|
const r = new Array(e), s = new Array(e);
|
|
845
|
-
let n = 0,
|
|
879
|
+
let n = 0, o = 0, a;
|
|
846
880
|
return t = t !== void 0 ? t : 1e3, function(l) {
|
|
847
|
-
const c = Date.now(), d = s[
|
|
848
|
-
|
|
849
|
-
let p =
|
|
881
|
+
const c = Date.now(), d = s[o];
|
|
882
|
+
a || (a = c), r[n] = l, s[n] = c;
|
|
883
|
+
let p = o, _ = 0;
|
|
850
884
|
for (; p !== n; )
|
|
851
885
|
_ += r[p++], p = p % e;
|
|
852
|
-
if (n = (n + 1) % e, n ===
|
|
886
|
+
if (n = (n + 1) % e, n === o && (o = (o + 1) % e), c - a < t)
|
|
853
887
|
return;
|
|
854
888
|
const C = d && c - d;
|
|
855
889
|
return C ? Math.round(_ * 1e3 / C) : void 0;
|
|
856
890
|
};
|
|
857
891
|
}
|
|
858
|
-
function
|
|
859
|
-
let r = 0, s = 1e3 / t, n,
|
|
860
|
-
const
|
|
861
|
-
r = d, n = null,
|
|
892
|
+
function jr(e, t) {
|
|
893
|
+
let r = 0, s = 1e3 / t, n, o;
|
|
894
|
+
const a = (c, d = Date.now()) => {
|
|
895
|
+
r = d, n = null, o && (clearTimeout(o), o = null), e(...c);
|
|
862
896
|
};
|
|
863
897
|
return [(...c) => {
|
|
864
898
|
const d = Date.now(), p = d - r;
|
|
865
|
-
p >= s ?
|
|
866
|
-
|
|
899
|
+
p >= s ? a(c, d) : (n = c, o || (o = setTimeout(() => {
|
|
900
|
+
o = null, a(n);
|
|
867
901
|
}, s - p)));
|
|
868
|
-
}, () => n &&
|
|
902
|
+
}, () => n && a(n)];
|
|
869
903
|
}
|
|
870
904
|
const Ee = (e, t, r = 3) => {
|
|
871
905
|
let s = 0;
|
|
872
|
-
const n =
|
|
873
|
-
return
|
|
874
|
-
const
|
|
875
|
-
s =
|
|
906
|
+
const n = vr(50, 250);
|
|
907
|
+
return jr((o) => {
|
|
908
|
+
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, l = a - s, c = n(l), d = a <= i;
|
|
909
|
+
s = a;
|
|
876
910
|
const p = {
|
|
877
|
-
loaded:
|
|
911
|
+
loaded: a,
|
|
878
912
|
total: i,
|
|
879
|
-
progress: i ?
|
|
913
|
+
progress: i ? a / i : void 0,
|
|
880
914
|
bytes: l,
|
|
881
915
|
rate: c || void 0,
|
|
882
|
-
estimated: c && i && d ? (i -
|
|
883
|
-
event:
|
|
916
|
+
estimated: c && i && d ? (i - a) / c : void 0,
|
|
917
|
+
event: o,
|
|
884
918
|
lengthComputable: i != null,
|
|
885
919
|
[t ? "download" : "upload"]: !0
|
|
886
920
|
};
|
|
887
921
|
e(p);
|
|
888
922
|
}, r);
|
|
889
|
-
},
|
|
923
|
+
}, Xe = (e, t) => {
|
|
890
924
|
const r = e != null;
|
|
891
925
|
return [(s) => t[0]({
|
|
892
926
|
lengthComputable: r,
|
|
893
927
|
total: e,
|
|
894
928
|
loaded: s
|
|
895
929
|
}), t[1]];
|
|
896
|
-
},
|
|
930
|
+
}, Je = (e) => (...t) => u.asap(() => e(...t)), kr = 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)))(
|
|
897
931
|
new URL(L.origin),
|
|
898
932
|
L.navigator && /(msie|trident)/i.test(L.navigator.userAgent)
|
|
899
|
-
) : () => !0,
|
|
933
|
+
) : () => !0, Fr = L.hasStandardBrowserEnv ? (
|
|
900
934
|
// Standard browser envs support document.cookie
|
|
901
935
|
{
|
|
902
|
-
write(e, t, r, s, n, a) {
|
|
903
|
-
|
|
904
|
-
|
|
936
|
+
write(e, t, r, s, n, o, a) {
|
|
937
|
+
if (typeof document > "u") return;
|
|
938
|
+
const i = [`${e}=${encodeURIComponent(t)}`];
|
|
939
|
+
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("; ");
|
|
905
940
|
},
|
|
906
941
|
read(e) {
|
|
907
|
-
|
|
908
|
-
|
|
942
|
+
if (typeof document > "u") return null;
|
|
943
|
+
const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
|
|
944
|
+
return t ? decodeURIComponent(t[1]) : null;
|
|
909
945
|
},
|
|
910
946
|
remove(e) {
|
|
911
|
-
this.write(e, "", Date.now() - 864e5);
|
|
947
|
+
this.write(e, "", Date.now() - 864e5, "/");
|
|
912
948
|
}
|
|
913
949
|
}
|
|
914
950
|
) : (
|
|
@@ -923,17 +959,17 @@ const Ee = (e, t, r = 3) => {
|
|
|
923
959
|
}
|
|
924
960
|
}
|
|
925
961
|
);
|
|
926
|
-
function
|
|
927
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
962
|
+
function qr(e) {
|
|
963
|
+
return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
928
964
|
}
|
|
929
965
|
function $r(e, t) {
|
|
930
966
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
931
967
|
}
|
|
932
|
-
function
|
|
933
|
-
let s = !
|
|
968
|
+
function It(e, t, r) {
|
|
969
|
+
let s = !qr(t);
|
|
934
970
|
return e && (s || r == !1) ? $r(e, t) : t;
|
|
935
971
|
}
|
|
936
|
-
const
|
|
972
|
+
const Ze = (e) => e instanceof U ? { ...e } : e;
|
|
937
973
|
function Y(e, t) {
|
|
938
974
|
t = t || {};
|
|
939
975
|
const r = {};
|
|
@@ -946,11 +982,11 @@ function Y(e, t) {
|
|
|
946
982
|
return s(void 0, c, p, _);
|
|
947
983
|
} else return s(c, d, p, _);
|
|
948
984
|
}
|
|
949
|
-
function
|
|
985
|
+
function o(c, d) {
|
|
950
986
|
if (!u.isUndefined(d))
|
|
951
987
|
return s(void 0, d);
|
|
952
988
|
}
|
|
953
|
-
function
|
|
989
|
+
function a(c, d) {
|
|
954
990
|
if (u.isUndefined(d)) {
|
|
955
991
|
if (!u.isUndefined(c))
|
|
956
992
|
return s(void 0, c);
|
|
@@ -963,67 +999,72 @@ function Y(e, t) {
|
|
|
963
999
|
return s(void 0, c);
|
|
964
1000
|
}
|
|
965
1001
|
const l = {
|
|
966
|
-
url:
|
|
967
|
-
method:
|
|
968
|
-
data:
|
|
969
|
-
baseURL:
|
|
970
|
-
transformRequest:
|
|
971
|
-
transformResponse:
|
|
972
|
-
paramsSerializer:
|
|
973
|
-
timeout:
|
|
974
|
-
timeoutMessage:
|
|
975
|
-
withCredentials:
|
|
976
|
-
withXSRFToken:
|
|
977
|
-
adapter:
|
|
978
|
-
responseType:
|
|
979
|
-
xsrfCookieName:
|
|
980
|
-
xsrfHeaderName:
|
|
981
|
-
onUploadProgress:
|
|
982
|
-
onDownloadProgress:
|
|
983
|
-
decompress:
|
|
984
|
-
maxContentLength:
|
|
985
|
-
maxBodyLength:
|
|
986
|
-
beforeRedirect:
|
|
987
|
-
transport:
|
|
988
|
-
httpAgent:
|
|
989
|
-
httpsAgent:
|
|
990
|
-
cancelToken:
|
|
991
|
-
socketPath:
|
|
992
|
-
responseEncoding:
|
|
1002
|
+
url: o,
|
|
1003
|
+
method: o,
|
|
1004
|
+
data: o,
|
|
1005
|
+
baseURL: a,
|
|
1006
|
+
transformRequest: a,
|
|
1007
|
+
transformResponse: a,
|
|
1008
|
+
paramsSerializer: a,
|
|
1009
|
+
timeout: a,
|
|
1010
|
+
timeoutMessage: a,
|
|
1011
|
+
withCredentials: a,
|
|
1012
|
+
withXSRFToken: a,
|
|
1013
|
+
adapter: a,
|
|
1014
|
+
responseType: a,
|
|
1015
|
+
xsrfCookieName: a,
|
|
1016
|
+
xsrfHeaderName: a,
|
|
1017
|
+
onUploadProgress: a,
|
|
1018
|
+
onDownloadProgress: a,
|
|
1019
|
+
decompress: a,
|
|
1020
|
+
maxContentLength: a,
|
|
1021
|
+
maxBodyLength: a,
|
|
1022
|
+
beforeRedirect: a,
|
|
1023
|
+
transport: a,
|
|
1024
|
+
httpAgent: a,
|
|
1025
|
+
httpsAgent: a,
|
|
1026
|
+
cancelToken: a,
|
|
1027
|
+
socketPath: a,
|
|
1028
|
+
responseEncoding: a,
|
|
993
1029
|
validateStatus: i,
|
|
994
|
-
headers: (c, d, p) => n(
|
|
1030
|
+
headers: (c, d, p) => n(Ze(c), Ze(d), p, !0)
|
|
995
1031
|
};
|
|
996
|
-
return u.forEach(
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1032
|
+
return u.forEach(
|
|
1033
|
+
Object.keys({ ...e, ...t }),
|
|
1034
|
+
function(d) {
|
|
1035
|
+
if (d === "__proto__" || d === "constructor" || d === "prototype")
|
|
1036
|
+
return;
|
|
1037
|
+
const p = u.hasOwnProp(l, d) ? l[d] : n, _ = p(e[d], t[d], d);
|
|
1038
|
+
u.isUndefined(_) && p !== i || (r[d] = _);
|
|
1039
|
+
}
|
|
1040
|
+
), r;
|
|
1000
1041
|
}
|
|
1001
|
-
const
|
|
1042
|
+
const St = (e) => {
|
|
1002
1043
|
const t = Y({}, e);
|
|
1003
|
-
let { data: r, withXSRFToken: s, xsrfHeaderName: n, xsrfCookieName:
|
|
1004
|
-
if (t.headers =
|
|
1044
|
+
let { data: r, withXSRFToken: s, xsrfHeaderName: n, xsrfCookieName: o, headers: a, auth: i } = t;
|
|
1045
|
+
if (t.headers = a = U.from(a), t.url = mt(It(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
|
|
1005
1046
|
"Authorization",
|
|
1006
1047
|
"Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
|
|
1007
1048
|
), u.isFormData(r)) {
|
|
1008
1049
|
if (L.hasStandardBrowserEnv || L.hasStandardBrowserWebWorkerEnv)
|
|
1009
|
-
|
|
1050
|
+
a.setContentType(void 0);
|
|
1010
1051
|
else if (u.isFunction(r.getHeaders)) {
|
|
1011
1052
|
const l = r.getHeaders(), c = ["content-type", "content-length"];
|
|
1012
1053
|
Object.entries(l).forEach(([d, p]) => {
|
|
1013
|
-
c.includes(d.toLowerCase()) &&
|
|
1054
|
+
c.includes(d.toLowerCase()) && a.set(d, p);
|
|
1014
1055
|
});
|
|
1015
1056
|
}
|
|
1016
1057
|
}
|
|
1017
|
-
if (L.hasStandardBrowserEnv && (s && u.isFunction(s) && (s = s(t)), s || s !== !1 &&
|
|
1018
|
-
const l = n &&
|
|
1019
|
-
l &&
|
|
1058
|
+
if (L.hasStandardBrowserEnv && (s && u.isFunction(s) && (s = s(t)), s || s !== !1 && kr(t.url))) {
|
|
1059
|
+
const l = n && o && Fr.read(o);
|
|
1060
|
+
l && a.set(n, l);
|
|
1020
1061
|
}
|
|
1021
1062
|
return t;
|
|
1022
|
-
},
|
|
1063
|
+
}, zr = typeof XMLHttpRequest < "u", Wr = zr && function(e) {
|
|
1023
1064
|
return new Promise(function(r, s) {
|
|
1024
|
-
const n =
|
|
1025
|
-
let
|
|
1026
|
-
const
|
|
1065
|
+
const n = St(e);
|
|
1066
|
+
let o = n.data;
|
|
1067
|
+
const a = U.from(n.headers).normalize();
|
|
1027
1068
|
let { responseType: i, onUploadProgress: l, onDownloadProgress: c } = n, d, p, _, C, h;
|
|
1028
1069
|
function E() {
|
|
1029
1070
|
C && C(), h && h(), n.cancelToken && n.cancelToken.unsubscribe(d), n.signal && n.signal.removeEventListener("abort", d);
|
|
@@ -1033,9 +1074,9 @@ const bt = (e) => {
|
|
|
1033
1074
|
function w() {
|
|
1034
1075
|
if (!f)
|
|
1035
1076
|
return;
|
|
1036
|
-
const y =
|
|
1077
|
+
const y = U.from(
|
|
1037
1078
|
"getAllResponseHeaders" in f && f.getAllResponseHeaders()
|
|
1038
|
-
),
|
|
1079
|
+
), H = {
|
|
1039
1080
|
data: !i || i === "text" || i === "json" ? f.responseText : f.response,
|
|
1040
1081
|
status: f.status,
|
|
1041
1082
|
statusText: f.statusText,
|
|
@@ -1043,64 +1084,64 @@ const bt = (e) => {
|
|
|
1043
1084
|
config: e,
|
|
1044
1085
|
request: f
|
|
1045
1086
|
};
|
|
1046
|
-
|
|
1047
|
-
r(
|
|
1048
|
-
}, function(
|
|
1049
|
-
s(
|
|
1050
|
-
},
|
|
1087
|
+
Pt(function(D) {
|
|
1088
|
+
r(D), E();
|
|
1089
|
+
}, function(D) {
|
|
1090
|
+
s(D), E();
|
|
1091
|
+
}, H), f = null;
|
|
1051
1092
|
}
|
|
1052
1093
|
"onloadend" in f ? f.onloadend = w : f.onreadystatechange = function() {
|
|
1053
1094
|
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(w);
|
|
1054
1095
|
}, f.onabort = function() {
|
|
1055
|
-
f && (s(new
|
|
1096
|
+
f && (s(new A("Request aborted", A.ECONNABORTED, e, f)), f = null);
|
|
1056
1097
|
}, f.onerror = function(V) {
|
|
1057
|
-
const
|
|
1098
|
+
const H = V && V.message ? V.message : "Network Error", F = new A(H, A.ERR_NETWORK, e, f);
|
|
1058
1099
|
F.event = V || null, s(F), f = null;
|
|
1059
1100
|
}, f.ontimeout = function() {
|
|
1060
1101
|
let V = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
1061
|
-
const
|
|
1062
|
-
n.timeoutErrorMessage && (V = n.timeoutErrorMessage), s(new
|
|
1102
|
+
const H = n.transitional || De;
|
|
1103
|
+
n.timeoutErrorMessage && (V = n.timeoutErrorMessage), s(new A(
|
|
1063
1104
|
V,
|
|
1064
|
-
|
|
1105
|
+
H.clarifyTimeoutError ? A.ETIMEDOUT : A.ECONNABORTED,
|
|
1065
1106
|
e,
|
|
1066
1107
|
f
|
|
1067
1108
|
)), f = null;
|
|
1068
|
-
},
|
|
1069
|
-
f.setRequestHeader(
|
|
1109
|
+
}, o === void 0 && a.setContentType(null), "setRequestHeader" in f && u.forEach(a.toJSON(), function(V, H) {
|
|
1110
|
+
f.setRequestHeader(H, V);
|
|
1070
1111
|
}), 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) => {
|
|
1071
|
-
f && (s(!y || y.type ? new
|
|
1112
|
+
f && (s(!y || y.type ? new ae(null, e, f) : y), f.abort(), f = null);
|
|
1072
1113
|
}, n.cancelToken && n.cancelToken.subscribe(d), n.signal && (n.signal.aborted ? d() : n.signal.addEventListener("abort", d)));
|
|
1073
|
-
const
|
|
1074
|
-
if (
|
|
1075
|
-
s(new
|
|
1114
|
+
const x = Mr(n.url);
|
|
1115
|
+
if (x && L.protocols.indexOf(x) === -1) {
|
|
1116
|
+
s(new A("Unsupported protocol " + x + ":", A.ERR_BAD_REQUEST, e));
|
|
1076
1117
|
return;
|
|
1077
1118
|
}
|
|
1078
|
-
f.send(
|
|
1119
|
+
f.send(o || null);
|
|
1079
1120
|
});
|
|
1080
|
-
},
|
|
1121
|
+
}, Yr = (e, t) => {
|
|
1081
1122
|
const { length: r } = e = e ? e.filter(Boolean) : [];
|
|
1082
1123
|
if (t || r) {
|
|
1083
1124
|
let s = new AbortController(), n;
|
|
1084
|
-
const
|
|
1125
|
+
const o = function(c) {
|
|
1085
1126
|
if (!n) {
|
|
1086
1127
|
n = !0, i();
|
|
1087
1128
|
const d = c instanceof Error ? c : this.reason;
|
|
1088
|
-
s.abort(d instanceof
|
|
1129
|
+
s.abort(d instanceof A ? d : new ae(d instanceof Error ? d.message : d));
|
|
1089
1130
|
}
|
|
1090
1131
|
};
|
|
1091
|
-
let
|
|
1092
|
-
|
|
1132
|
+
let a = t && setTimeout(() => {
|
|
1133
|
+
a = null, o(new A(`timeout of ${t}ms exceeded`, A.ETIMEDOUT));
|
|
1093
1134
|
}, t);
|
|
1094
1135
|
const i = () => {
|
|
1095
|
-
e && (
|
|
1096
|
-
c.unsubscribe ? c.unsubscribe(
|
|
1136
|
+
e && (a && clearTimeout(a), a = null, e.forEach((c) => {
|
|
1137
|
+
c.unsubscribe ? c.unsubscribe(o) : c.removeEventListener("abort", o);
|
|
1097
1138
|
}), e = null);
|
|
1098
1139
|
};
|
|
1099
|
-
e.forEach((c) => c.addEventListener("abort",
|
|
1140
|
+
e.forEach((c) => c.addEventListener("abort", o));
|
|
1100
1141
|
const { signal: l } = s;
|
|
1101
1142
|
return l.unsubscribe = () => u.asap(i), l;
|
|
1102
1143
|
}
|
|
1103
|
-
},
|
|
1144
|
+
}, Xr = function* (e, t) {
|
|
1104
1145
|
let r = e.byteLength;
|
|
1105
1146
|
if (r < t) {
|
|
1106
1147
|
yield e;
|
|
@@ -1109,10 +1150,10 @@ const bt = (e) => {
|
|
|
1109
1150
|
let s = 0, n;
|
|
1110
1151
|
for (; s < r; )
|
|
1111
1152
|
n = s + t, yield e.slice(s, n), s = n;
|
|
1112
|
-
},
|
|
1113
|
-
for await (const r of
|
|
1114
|
-
yield*
|
|
1115
|
-
},
|
|
1153
|
+
}, Jr = async function* (e, t) {
|
|
1154
|
+
for await (const r of Zr(e))
|
|
1155
|
+
yield* Xr(r, t);
|
|
1156
|
+
}, Zr = async function* (e) {
|
|
1116
1157
|
if (e[Symbol.asyncIterator]) {
|
|
1117
1158
|
yield* e;
|
|
1118
1159
|
return;
|
|
@@ -1128,10 +1169,10 @@ const bt = (e) => {
|
|
|
1128
1169
|
} finally {
|
|
1129
1170
|
await t.cancel();
|
|
1130
1171
|
}
|
|
1131
|
-
},
|
|
1132
|
-
const n =
|
|
1133
|
-
let
|
|
1134
|
-
|
|
1172
|
+
}, Ke = (e, t, r, s) => {
|
|
1173
|
+
const n = Jr(e, t);
|
|
1174
|
+
let o = 0, a, i = (l) => {
|
|
1175
|
+
a || (a = !0, s && s(l));
|
|
1135
1176
|
};
|
|
1136
1177
|
return new ReadableStream({
|
|
1137
1178
|
async pull(l) {
|
|
@@ -1143,7 +1184,7 @@ const bt = (e) => {
|
|
|
1143
1184
|
}
|
|
1144
1185
|
let p = d.byteLength;
|
|
1145
1186
|
if (r) {
|
|
1146
|
-
let _ =
|
|
1187
|
+
let _ = o += p;
|
|
1147
1188
|
r(_);
|
|
1148
1189
|
}
|
|
1149
1190
|
l.enqueue(new Uint8Array(d));
|
|
@@ -1157,36 +1198,36 @@ const bt = (e) => {
|
|
|
1157
1198
|
}, {
|
|
1158
1199
|
highWaterMark: 2
|
|
1159
1200
|
});
|
|
1160
|
-
},
|
|
1201
|
+
}, Qe = 64 * 1024, { isFunction: de } = u, Kr = (({ Request: e, Response: t }) => ({
|
|
1161
1202
|
Request: e,
|
|
1162
1203
|
Response: t
|
|
1163
1204
|
}))(u.global), {
|
|
1164
|
-
ReadableStream:
|
|
1165
|
-
TextEncoder:
|
|
1166
|
-
} = u.global,
|
|
1205
|
+
ReadableStream: et,
|
|
1206
|
+
TextEncoder: tt
|
|
1207
|
+
} = u.global, rt = (e, ...t) => {
|
|
1167
1208
|
try {
|
|
1168
1209
|
return !!e(...t);
|
|
1169
1210
|
} catch {
|
|
1170
1211
|
return !1;
|
|
1171
1212
|
}
|
|
1172
|
-
},
|
|
1213
|
+
}, Qr = (e) => {
|
|
1173
1214
|
e = u.merge.call({
|
|
1174
1215
|
skipUndefined: !0
|
|
1175
|
-
},
|
|
1176
|
-
const { fetch: t, Request: r, Response: s } = e, n = t ? de(t) : typeof fetch == "function",
|
|
1216
|
+
}, Kr, e);
|
|
1217
|
+
const { fetch: t, Request: r, Response: s } = e, n = t ? de(t) : typeof fetch == "function", o = de(r), a = de(s);
|
|
1177
1218
|
if (!n)
|
|
1178
1219
|
return !1;
|
|
1179
|
-
const i = n && de(
|
|
1220
|
+
const i = n && de(et), l = n && (typeof tt == "function" ? /* @__PURE__ */ ((h) => (E) => h.encode(E))(new tt()) : async (h) => new Uint8Array(await new r(h).arrayBuffer())), c = o && i && rt(() => {
|
|
1180
1221
|
let h = !1;
|
|
1181
1222
|
const E = new r(L.origin, {
|
|
1182
|
-
body: new
|
|
1223
|
+
body: new et(),
|
|
1183
1224
|
method: "POST",
|
|
1184
1225
|
get duplex() {
|
|
1185
1226
|
return h = !0, "half";
|
|
1186
1227
|
}
|
|
1187
1228
|
}).headers.has("Content-Type");
|
|
1188
1229
|
return h && !E;
|
|
1189
|
-
}), d =
|
|
1230
|
+
}), d = a && i && rt(() => u.isReadableStream(new s("").body)), p = {
|
|
1190
1231
|
stream: d && ((h) => h.body)
|
|
1191
1232
|
};
|
|
1192
1233
|
n && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((h) => {
|
|
@@ -1194,7 +1235,7 @@ const bt = (e) => {
|
|
|
1194
1235
|
let w = E && E[h];
|
|
1195
1236
|
if (w)
|
|
1196
1237
|
return w.call(E);
|
|
1197
|
-
throw new
|
|
1238
|
+
throw new A(`Response type '${h}' is not supported`, A.ERR_NOT_SUPPORT, f);
|
|
1198
1239
|
});
|
|
1199
1240
|
});
|
|
1200
1241
|
const _ = async (h) => {
|
|
@@ -1220,108 +1261,108 @@ const bt = (e) => {
|
|
|
1220
1261
|
url: E,
|
|
1221
1262
|
method: f,
|
|
1222
1263
|
data: w,
|
|
1223
|
-
signal:
|
|
1264
|
+
signal: x,
|
|
1224
1265
|
cancelToken: y,
|
|
1225
1266
|
timeout: V,
|
|
1226
|
-
onDownloadProgress:
|
|
1267
|
+
onDownloadProgress: H,
|
|
1227
1268
|
onUploadProgress: F,
|
|
1228
|
-
responseType:
|
|
1269
|
+
responseType: D,
|
|
1229
1270
|
headers: Pe,
|
|
1230
1271
|
withCredentials: ie = "same-origin",
|
|
1231
|
-
fetchOptions:
|
|
1232
|
-
} =
|
|
1233
|
-
|
|
1234
|
-
let le =
|
|
1272
|
+
fetchOptions: Ge
|
|
1273
|
+
} = St(h), Me = t || fetch;
|
|
1274
|
+
D = D ? (D + "").toLowerCase() : "text";
|
|
1275
|
+
let le = Yr([x, y && y.toAbortSignal()], V), ee = null;
|
|
1235
1276
|
const q = le && le.unsubscribe && (() => {
|
|
1236
1277
|
le.unsubscribe();
|
|
1237
1278
|
});
|
|
1238
|
-
let
|
|
1279
|
+
let ve;
|
|
1239
1280
|
try {
|
|
1240
|
-
if (F && c && f !== "get" && f !== "head" && (
|
|
1281
|
+
if (F && c && f !== "get" && f !== "head" && (ve = await C(Pe, w)) !== 0) {
|
|
1241
1282
|
let k = new r(E, {
|
|
1242
1283
|
method: "POST",
|
|
1243
1284
|
body: w,
|
|
1244
1285
|
duplex: "half"
|
|
1245
1286
|
}), X;
|
|
1246
1287
|
if (u.isFormData(w) && (X = k.headers.get("content-type")) && Pe.setContentType(X), k.body) {
|
|
1247
|
-
const [Ie, ce] =
|
|
1248
|
-
|
|
1249
|
-
Ee(
|
|
1288
|
+
const [Ie, ce] = Xe(
|
|
1289
|
+
ve,
|
|
1290
|
+
Ee(Je(F))
|
|
1250
1291
|
);
|
|
1251
|
-
w =
|
|
1292
|
+
w = Ke(k.body, Qe, Ie, ce);
|
|
1252
1293
|
}
|
|
1253
1294
|
}
|
|
1254
1295
|
u.isString(ie) || (ie = ie ? "include" : "omit");
|
|
1255
|
-
const
|
|
1256
|
-
...
|
|
1296
|
+
const g = o && "credentials" in r.prototype, je = {
|
|
1297
|
+
...Ge,
|
|
1257
1298
|
signal: le,
|
|
1258
1299
|
method: f.toUpperCase(),
|
|
1259
1300
|
headers: Pe.normalize().toJSON(),
|
|
1260
1301
|
body: w,
|
|
1261
1302
|
duplex: "half",
|
|
1262
|
-
credentials:
|
|
1303
|
+
credentials: g ? ie : void 0
|
|
1263
1304
|
};
|
|
1264
|
-
|
|
1265
|
-
let j = await (
|
|
1266
|
-
const
|
|
1267
|
-
if (d && (
|
|
1305
|
+
ee = o && new r(E, je);
|
|
1306
|
+
let j = await (o ? Me(ee, Ge) : Me(E, je));
|
|
1307
|
+
const ke = d && (D === "stream" || D === "response");
|
|
1308
|
+
if (d && (H || ke && q)) {
|
|
1268
1309
|
const k = {};
|
|
1269
|
-
["status", "statusText", "headers"].forEach((
|
|
1270
|
-
k[
|
|
1310
|
+
["status", "statusText", "headers"].forEach((Fe) => {
|
|
1311
|
+
k[Fe] = j[Fe];
|
|
1271
1312
|
});
|
|
1272
|
-
const X = u.toFiniteNumber(j.headers.get("content-length")), [Ie, ce] =
|
|
1313
|
+
const X = u.toFiniteNumber(j.headers.get("content-length")), [Ie, ce] = H && Xe(
|
|
1273
1314
|
X,
|
|
1274
|
-
Ee(
|
|
1315
|
+
Ee(Je(H), !0)
|
|
1275
1316
|
) || [];
|
|
1276
1317
|
j = new s(
|
|
1277
|
-
|
|
1318
|
+
Ke(j.body, Qe, Ie, () => {
|
|
1278
1319
|
ce && ce(), q && q();
|
|
1279
1320
|
}),
|
|
1280
1321
|
k
|
|
1281
1322
|
);
|
|
1282
1323
|
}
|
|
1283
|
-
|
|
1284
|
-
let
|
|
1285
|
-
return !
|
|
1286
|
-
|
|
1287
|
-
data:
|
|
1288
|
-
headers:
|
|
1324
|
+
D = D || "text";
|
|
1325
|
+
let gt = await p[u.findKey(p, D) || "text"](j, h);
|
|
1326
|
+
return !ke && q && q(), await new Promise((k, X) => {
|
|
1327
|
+
Pt(k, X, {
|
|
1328
|
+
data: gt,
|
|
1329
|
+
headers: U.from(j.headers),
|
|
1289
1330
|
status: j.status,
|
|
1290
1331
|
statusText: j.statusText,
|
|
1291
1332
|
config: h,
|
|
1292
|
-
request:
|
|
1333
|
+
request: ee
|
|
1293
1334
|
});
|
|
1294
1335
|
});
|
|
1295
|
-
} catch (
|
|
1296
|
-
throw q && q(),
|
|
1297
|
-
new
|
|
1336
|
+
} catch (g) {
|
|
1337
|
+
throw q && q(), g && g.name === "TypeError" && /Load failed|fetch/i.test(g.message) ? Object.assign(
|
|
1338
|
+
new A("Network Error", A.ERR_NETWORK, h, ee, g && g.response),
|
|
1298
1339
|
{
|
|
1299
|
-
cause:
|
|
1340
|
+
cause: g.cause || g
|
|
1300
1341
|
}
|
|
1301
|
-
) :
|
|
1342
|
+
) : A.from(g, g && g.code, h, ee, g && g.response);
|
|
1302
1343
|
}
|
|
1303
1344
|
};
|
|
1304
|
-
},
|
|
1305
|
-
let t = e
|
|
1306
|
-
const { fetch: r, Request: s, Response: n } = t,
|
|
1345
|
+
}, es = /* @__PURE__ */ new Map(), bt = (e) => {
|
|
1346
|
+
let t = e && e.env || {};
|
|
1347
|
+
const { fetch: r, Request: s, Response: n } = t, o = [
|
|
1307
1348
|
s,
|
|
1308
1349
|
n,
|
|
1309
1350
|
r
|
|
1310
1351
|
];
|
|
1311
|
-
let
|
|
1352
|
+
let a = o.length, i = a, l, c, d = es;
|
|
1312
1353
|
for (; i--; )
|
|
1313
|
-
l =
|
|
1354
|
+
l = o[i], c = d.get(l), c === void 0 && d.set(l, c = i ? /* @__PURE__ */ new Map() : Qr(t)), d = c;
|
|
1314
1355
|
return c;
|
|
1315
1356
|
};
|
|
1316
|
-
|
|
1317
|
-
const
|
|
1318
|
-
http:
|
|
1319
|
-
xhr:
|
|
1357
|
+
bt();
|
|
1358
|
+
const He = {
|
|
1359
|
+
http: Or,
|
|
1360
|
+
xhr: Wr,
|
|
1320
1361
|
fetch: {
|
|
1321
|
-
get:
|
|
1362
|
+
get: bt
|
|
1322
1363
|
}
|
|
1323
1364
|
};
|
|
1324
|
-
u.forEach(
|
|
1365
|
+
u.forEach(He, (e, t) => {
|
|
1325
1366
|
if (e) {
|
|
1326
1367
|
try {
|
|
1327
1368
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1330,113 +1371,123 @@ u.forEach(ge, (e, t) => {
|
|
|
1330
1371
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1331
1372
|
}
|
|
1332
1373
|
});
|
|
1333
|
-
const
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
` +
|
|
1354
|
-
`) : " " +
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1374
|
+
const st = (e) => `- ${e}`, ts = (e) => u.isFunction(e) || e === null || e === !1;
|
|
1375
|
+
function rs(e, t) {
|
|
1376
|
+
e = u.isArray(e) ? e : [e];
|
|
1377
|
+
const { length: r } = e;
|
|
1378
|
+
let s, n;
|
|
1379
|
+
const o = {};
|
|
1380
|
+
for (let a = 0; a < r; a++) {
|
|
1381
|
+
s = e[a];
|
|
1382
|
+
let i;
|
|
1383
|
+
if (n = s, !ts(s) && (n = He[(i = String(s)).toLowerCase()], n === void 0))
|
|
1384
|
+
throw new A(`Unknown adapter '${i}'`);
|
|
1385
|
+
if (n && (u.isFunction(n) || (n = n.get(t))))
|
|
1386
|
+
break;
|
|
1387
|
+
o[i || "#" + a] = n;
|
|
1388
|
+
}
|
|
1389
|
+
if (!n) {
|
|
1390
|
+
const a = Object.entries(o).map(
|
|
1391
|
+
([l, c]) => `adapter ${l} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1392
|
+
);
|
|
1393
|
+
let i = r ? a.length > 1 ? `since :
|
|
1394
|
+
` + a.map(st).join(`
|
|
1395
|
+
`) : " " + st(a[0]) : "as no adapter specified";
|
|
1396
|
+
throw new A(
|
|
1397
|
+
"There is no suitable adapter to dispatch the request " + i,
|
|
1398
|
+
"ERR_NOT_SUPPORT"
|
|
1399
|
+
);
|
|
1400
|
+
}
|
|
1401
|
+
return n;
|
|
1402
|
+
}
|
|
1403
|
+
const wt = {
|
|
1404
|
+
/**
|
|
1405
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
1406
|
+
* @type {Function}
|
|
1407
|
+
*/
|
|
1408
|
+
getAdapter: rs,
|
|
1409
|
+
/**
|
|
1410
|
+
* Exposes all known adapters
|
|
1411
|
+
* @type {Object<string, Function|Object>}
|
|
1412
|
+
*/
|
|
1413
|
+
adapters: He
|
|
1363
1414
|
};
|
|
1364
1415
|
function we(e) {
|
|
1365
1416
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1366
|
-
throw new
|
|
1417
|
+
throw new ae(null, e);
|
|
1367
1418
|
}
|
|
1368
|
-
function
|
|
1369
|
-
return we(e), e.headers =
|
|
1419
|
+
function nt(e) {
|
|
1420
|
+
return we(e), e.headers = U.from(e.headers), e.data = be.call(
|
|
1370
1421
|
e,
|
|
1371
1422
|
e.transformRequest
|
|
1372
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1423
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), wt.getAdapter(e.adapter || oe.adapter, e)(e).then(function(s) {
|
|
1373
1424
|
return we(e), s.data = be.call(
|
|
1374
1425
|
e,
|
|
1375
1426
|
e.transformResponse,
|
|
1376
1427
|
s
|
|
1377
|
-
), s.headers =
|
|
1428
|
+
), s.headers = U.from(s.headers), s;
|
|
1378
1429
|
}, function(s) {
|
|
1379
|
-
return
|
|
1430
|
+
return Tt(s) || (we(e), s && s.response && (s.response.data = be.call(
|
|
1380
1431
|
e,
|
|
1381
1432
|
e.transformResponse,
|
|
1382
1433
|
s.response
|
|
1383
|
-
), s.response.headers =
|
|
1434
|
+
), s.response.headers = U.from(s.response.headers))), Promise.reject(s);
|
|
1384
1435
|
});
|
|
1385
1436
|
}
|
|
1386
|
-
const
|
|
1437
|
+
const yt = "1.13.5", Te = {};
|
|
1387
1438
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1388
|
-
|
|
1439
|
+
Te[e] = function(s) {
|
|
1389
1440
|
return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1390
1441
|
};
|
|
1391
1442
|
});
|
|
1392
|
-
const
|
|
1393
|
-
|
|
1394
|
-
function n(
|
|
1395
|
-
return "[Axios v" +
|
|
1443
|
+
const ot = {};
|
|
1444
|
+
Te.transitional = function(t, r, s) {
|
|
1445
|
+
function n(o, a) {
|
|
1446
|
+
return "[Axios v" + yt + "] Transitional option '" + o + "'" + a + (s ? ". " + s : "");
|
|
1396
1447
|
}
|
|
1397
|
-
return (
|
|
1448
|
+
return (o, a, i) => {
|
|
1398
1449
|
if (t === !1)
|
|
1399
|
-
throw new
|
|
1400
|
-
n(
|
|
1401
|
-
|
|
1450
|
+
throw new A(
|
|
1451
|
+
n(a, " has been removed" + (r ? " in " + r : "")),
|
|
1452
|
+
A.ERR_DEPRECATED
|
|
1402
1453
|
);
|
|
1403
|
-
return r && !
|
|
1454
|
+
return r && !ot[a] && (ot[a] = !0, console.warn(
|
|
1404
1455
|
n(
|
|
1405
|
-
|
|
1456
|
+
a,
|
|
1406
1457
|
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
1407
1458
|
)
|
|
1408
|
-
)), t ? t(
|
|
1459
|
+
)), t ? t(o, a, i) : !0;
|
|
1409
1460
|
};
|
|
1410
1461
|
};
|
|
1411
|
-
|
|
1462
|
+
Te.spelling = function(t) {
|
|
1412
1463
|
return (r, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
|
|
1413
1464
|
};
|
|
1414
1465
|
function ss(e, t, r) {
|
|
1415
1466
|
if (typeof e != "object")
|
|
1416
|
-
throw new
|
|
1467
|
+
throw new A("options must be an object", A.ERR_BAD_OPTION_VALUE);
|
|
1417
1468
|
const s = Object.keys(e);
|
|
1418
1469
|
let n = s.length;
|
|
1419
1470
|
for (; n-- > 0; ) {
|
|
1420
|
-
const
|
|
1421
|
-
if (
|
|
1422
|
-
const i = e[
|
|
1471
|
+
const o = s[n], a = t[o];
|
|
1472
|
+
if (a) {
|
|
1473
|
+
const i = e[o], l = i === void 0 || a(i, o, e);
|
|
1423
1474
|
if (l !== !0)
|
|
1424
|
-
throw new
|
|
1475
|
+
throw new A("option " + o + " must be " + l, A.ERR_BAD_OPTION_VALUE);
|
|
1425
1476
|
continue;
|
|
1426
1477
|
}
|
|
1427
1478
|
if (r !== !0)
|
|
1428
|
-
throw new
|
|
1479
|
+
throw new A("Unknown option " + o, A.ERR_BAD_OPTION);
|
|
1429
1480
|
}
|
|
1430
1481
|
}
|
|
1431
1482
|
const fe = {
|
|
1432
1483
|
assertOptions: ss,
|
|
1433
|
-
validators:
|
|
1434
|
-
},
|
|
1484
|
+
validators: Te
|
|
1485
|
+
}, B = fe.validators;
|
|
1435
1486
|
let W = class {
|
|
1436
1487
|
constructor(t) {
|
|
1437
1488
|
this.defaults = t || {}, this.interceptors = {
|
|
1438
|
-
request: new
|
|
1439
|
-
response: new
|
|
1489
|
+
request: new We(),
|
|
1490
|
+
response: new We()
|
|
1440
1491
|
};
|
|
1441
1492
|
}
|
|
1442
1493
|
/**
|
|
@@ -1454,10 +1505,10 @@ let W = class {
|
|
|
1454
1505
|
if (s instanceof Error) {
|
|
1455
1506
|
let n = {};
|
|
1456
1507
|
Error.captureStackTrace ? Error.captureStackTrace(n) : n = new Error();
|
|
1457
|
-
const
|
|
1508
|
+
const o = n.stack ? n.stack.replace(/^.+\n/, "") : "";
|
|
1458
1509
|
try {
|
|
1459
|
-
s.stack ?
|
|
1460
|
-
` +
|
|
1510
|
+
s.stack ? o && !String(s.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (s.stack += `
|
|
1511
|
+
` + o) : s.stack = o;
|
|
1461
1512
|
} catch {
|
|
1462
1513
|
}
|
|
1463
1514
|
}
|
|
@@ -1466,34 +1517,39 @@ let W = class {
|
|
|
1466
1517
|
}
|
|
1467
1518
|
_request(t, r) {
|
|
1468
1519
|
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = Y(this.defaults, r);
|
|
1469
|
-
const { transitional: s, paramsSerializer: n, headers:
|
|
1520
|
+
const { transitional: s, paramsSerializer: n, headers: o } = r;
|
|
1470
1521
|
s !== void 0 && fe.assertOptions(s, {
|
|
1471
|
-
silentJSONParsing:
|
|
1472
|
-
forcedJSONParsing:
|
|
1473
|
-
clarifyTimeoutError:
|
|
1522
|
+
silentJSONParsing: B.transitional(B.boolean),
|
|
1523
|
+
forcedJSONParsing: B.transitional(B.boolean),
|
|
1524
|
+
clarifyTimeoutError: B.transitional(B.boolean),
|
|
1525
|
+
legacyInterceptorReqResOrdering: B.transitional(B.boolean)
|
|
1474
1526
|
}, !1), n != null && (u.isFunction(n) ? r.paramsSerializer = {
|
|
1475
1527
|
serialize: n
|
|
1476
1528
|
} : fe.assertOptions(n, {
|
|
1477
|
-
encode:
|
|
1478
|
-
serialize:
|
|
1529
|
+
encode: B.function,
|
|
1530
|
+
serialize: B.function
|
|
1479
1531
|
}, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), fe.assertOptions(r, {
|
|
1480
|
-
baseUrl:
|
|
1481
|
-
withXsrfToken:
|
|
1532
|
+
baseUrl: B.spelling("baseURL"),
|
|
1533
|
+
withXsrfToken: B.spelling("withXSRFToken")
|
|
1482
1534
|
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
1483
|
-
let
|
|
1484
|
-
|
|
1485
|
-
|
|
1535
|
+
let a = o && u.merge(
|
|
1536
|
+
o.common,
|
|
1537
|
+
o[r.method]
|
|
1486
1538
|
);
|
|
1487
|
-
|
|
1539
|
+
o && u.forEach(
|
|
1488
1540
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1489
1541
|
(h) => {
|
|
1490
|
-
delete
|
|
1542
|
+
delete o[h];
|
|
1491
1543
|
}
|
|
1492
|
-
), r.headers =
|
|
1544
|
+
), r.headers = U.concat(a, o);
|
|
1493
1545
|
const i = [];
|
|
1494
1546
|
let l = !0;
|
|
1495
1547
|
this.interceptors.request.forEach(function(E) {
|
|
1496
|
-
typeof E.runWhen == "function" && E.runWhen(r) === !1
|
|
1548
|
+
if (typeof E.runWhen == "function" && E.runWhen(r) === !1)
|
|
1549
|
+
return;
|
|
1550
|
+
l = l && E.synchronous;
|
|
1551
|
+
const f = r.transitional || De;
|
|
1552
|
+
f && f.legacyInterceptorReqResOrdering ? i.unshift(E.fulfilled, E.rejected) : i.push(E.fulfilled, E.rejected);
|
|
1497
1553
|
});
|
|
1498
1554
|
const c = [];
|
|
1499
1555
|
this.interceptors.response.forEach(function(E) {
|
|
@@ -1501,7 +1557,7 @@ let W = class {
|
|
|
1501
1557
|
});
|
|
1502
1558
|
let d, p = 0, _;
|
|
1503
1559
|
if (!l) {
|
|
1504
|
-
const h = [
|
|
1560
|
+
const h = [nt.bind(this), void 0];
|
|
1505
1561
|
for (h.unshift(...i), h.push(...c), _ = h.length, d = Promise.resolve(r); p < _; )
|
|
1506
1562
|
d = d.then(h[p++], h[p++]);
|
|
1507
1563
|
return d;
|
|
@@ -1518,7 +1574,7 @@ let W = class {
|
|
|
1518
1574
|
}
|
|
1519
1575
|
}
|
|
1520
1576
|
try {
|
|
1521
|
-
d =
|
|
1577
|
+
d = nt.call(this, C);
|
|
1522
1578
|
} catch (h) {
|
|
1523
1579
|
return Promise.reject(h);
|
|
1524
1580
|
}
|
|
@@ -1528,7 +1584,7 @@ let W = class {
|
|
|
1528
1584
|
}
|
|
1529
1585
|
getUri(t) {
|
|
1530
1586
|
t = Y(this.defaults, t);
|
|
1531
|
-
const r =
|
|
1587
|
+
const r = It(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1532
1588
|
return mt(r, t.params, t.paramsSerializer);
|
|
1533
1589
|
}
|
|
1534
1590
|
};
|
|
@@ -1543,44 +1599,44 @@ u.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1543
1599
|
});
|
|
1544
1600
|
u.forEach(["post", "put", "patch"], function(t) {
|
|
1545
1601
|
function r(s) {
|
|
1546
|
-
return function(
|
|
1602
|
+
return function(o, a, i) {
|
|
1547
1603
|
return this.request(Y(i || {}, {
|
|
1548
1604
|
method: t,
|
|
1549
1605
|
headers: s ? {
|
|
1550
1606
|
"Content-Type": "multipart/form-data"
|
|
1551
1607
|
} : {},
|
|
1552
|
-
url:
|
|
1553
|
-
data:
|
|
1608
|
+
url: o,
|
|
1609
|
+
data: a
|
|
1554
1610
|
}));
|
|
1555
1611
|
};
|
|
1556
1612
|
}
|
|
1557
1613
|
W.prototype[t] = r(), W.prototype[t + "Form"] = r(!0);
|
|
1558
1614
|
});
|
|
1559
|
-
let ns = class
|
|
1615
|
+
let ns = class Ct {
|
|
1560
1616
|
constructor(t) {
|
|
1561
1617
|
if (typeof t != "function")
|
|
1562
1618
|
throw new TypeError("executor must be a function.");
|
|
1563
1619
|
let r;
|
|
1564
|
-
this.promise = new Promise(function(
|
|
1565
|
-
r =
|
|
1620
|
+
this.promise = new Promise(function(o) {
|
|
1621
|
+
r = o;
|
|
1566
1622
|
});
|
|
1567
1623
|
const s = this;
|
|
1568
1624
|
this.promise.then((n) => {
|
|
1569
1625
|
if (!s._listeners) return;
|
|
1570
|
-
let
|
|
1571
|
-
for (;
|
|
1572
|
-
s._listeners[
|
|
1626
|
+
let o = s._listeners.length;
|
|
1627
|
+
for (; o-- > 0; )
|
|
1628
|
+
s._listeners[o](n);
|
|
1573
1629
|
s._listeners = null;
|
|
1574
1630
|
}), this.promise.then = (n) => {
|
|
1575
|
-
let
|
|
1576
|
-
const
|
|
1577
|
-
s.subscribe(i),
|
|
1631
|
+
let o;
|
|
1632
|
+
const a = new Promise((i) => {
|
|
1633
|
+
s.subscribe(i), o = i;
|
|
1578
1634
|
}).then(n);
|
|
1579
|
-
return
|
|
1580
|
-
s.unsubscribe(
|
|
1581
|
-
},
|
|
1582
|
-
}, t(function(
|
|
1583
|
-
s.reason || (s.reason = new
|
|
1635
|
+
return a.cancel = function() {
|
|
1636
|
+
s.unsubscribe(o);
|
|
1637
|
+
}, a;
|
|
1638
|
+
}, t(function(o, a, i) {
|
|
1639
|
+
s.reason || (s.reason = new ae(o, a, i), r(s.reason));
|
|
1584
1640
|
});
|
|
1585
1641
|
}
|
|
1586
1642
|
/**
|
|
@@ -1622,7 +1678,7 @@ let ns = class Lt {
|
|
|
1622
1678
|
static source() {
|
|
1623
1679
|
let t;
|
|
1624
1680
|
return {
|
|
1625
|
-
token: new
|
|
1681
|
+
token: new Ct(function(n) {
|
|
1626
1682
|
t = n;
|
|
1627
1683
|
}),
|
|
1628
1684
|
cancel: t
|
|
@@ -1637,7 +1693,7 @@ function os(e) {
|
|
|
1637
1693
|
function as(e) {
|
|
1638
1694
|
return u.isObject(e) && e.isAxiosError === !0;
|
|
1639
1695
|
}
|
|
1640
|
-
const
|
|
1696
|
+
const ge = {
|
|
1641
1697
|
Continue: 100,
|
|
1642
1698
|
SwitchingProtocols: 101,
|
|
1643
1699
|
Processing: 102,
|
|
@@ -1700,57 +1756,63 @@ const Ne = {
|
|
|
1700
1756
|
InsufficientStorage: 507,
|
|
1701
1757
|
LoopDetected: 508,
|
|
1702
1758
|
NotExtended: 510,
|
|
1703
|
-
NetworkAuthenticationRequired: 511
|
|
1759
|
+
NetworkAuthenticationRequired: 511,
|
|
1760
|
+
WebServerIsDown: 521,
|
|
1761
|
+
ConnectionTimedOut: 522,
|
|
1762
|
+
OriginIsUnreachable: 523,
|
|
1763
|
+
TimeoutOccurred: 524,
|
|
1764
|
+
SslHandshakeFailed: 525,
|
|
1765
|
+
InvalidSslCertificate: 526
|
|
1704
1766
|
};
|
|
1705
|
-
Object.entries(
|
|
1706
|
-
|
|
1767
|
+
Object.entries(ge).forEach(([e, t]) => {
|
|
1768
|
+
ge[t] = e;
|
|
1707
1769
|
});
|
|
1708
|
-
function
|
|
1709
|
-
const t = new W(e), r =
|
|
1770
|
+
function Lt(e) {
|
|
1771
|
+
const t = new W(e), r = lt(W.prototype.request, t);
|
|
1710
1772
|
return u.extend(r, W.prototype, t, { allOwnKeys: !0 }), u.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(n) {
|
|
1711
|
-
return
|
|
1773
|
+
return Lt(Y(e, n));
|
|
1712
1774
|
}, r;
|
|
1713
1775
|
}
|
|
1714
|
-
const
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1776
|
+
const O = Lt(oe);
|
|
1777
|
+
O.Axios = W;
|
|
1778
|
+
O.CanceledError = ae;
|
|
1779
|
+
O.CancelToken = ns;
|
|
1780
|
+
O.isCancel = Tt;
|
|
1781
|
+
O.VERSION = yt;
|
|
1782
|
+
O.toFormData = Re;
|
|
1783
|
+
O.AxiosError = A;
|
|
1784
|
+
O.Cancel = O.CanceledError;
|
|
1785
|
+
O.all = function(t) {
|
|
1724
1786
|
return Promise.all(t);
|
|
1725
1787
|
};
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1788
|
+
O.spread = os;
|
|
1789
|
+
O.isAxiosError = as;
|
|
1790
|
+
O.mergeConfig = Y;
|
|
1791
|
+
O.AxiosHeaders = U;
|
|
1792
|
+
O.formToJSON = (e) => Rt(u.isHTMLForm(e) ? new FormData(e) : e);
|
|
1793
|
+
O.getAdapter = wt.getAdapter;
|
|
1794
|
+
O.HttpStatusCode = ge;
|
|
1795
|
+
O.default = O;
|
|
1734
1796
|
const {
|
|
1735
|
-
Axios:
|
|
1736
|
-
AxiosError:
|
|
1737
|
-
CanceledError:
|
|
1738
|
-
isCancel:
|
|
1739
|
-
CancelToken:
|
|
1797
|
+
Axios: js,
|
|
1798
|
+
AxiosError: ks,
|
|
1799
|
+
CanceledError: Fs,
|
|
1800
|
+
isCancel: qs,
|
|
1801
|
+
CancelToken: $s,
|
|
1740
1802
|
VERSION: zs,
|
|
1741
|
-
all:
|
|
1742
|
-
Cancel:
|
|
1743
|
-
isAxiosError:
|
|
1744
|
-
spread:
|
|
1745
|
-
toFormData:
|
|
1746
|
-
AxiosHeaders:
|
|
1747
|
-
HttpStatusCode:
|
|
1748
|
-
formToJSON:
|
|
1749
|
-
getAdapter:
|
|
1750
|
-
mergeConfig:
|
|
1751
|
-
} =
|
|
1752
|
-
class
|
|
1753
|
-
constructor(t, r =
|
|
1803
|
+
all: Ws,
|
|
1804
|
+
Cancel: Ys,
|
|
1805
|
+
isAxiosError: Xs,
|
|
1806
|
+
spread: Js,
|
|
1807
|
+
toFormData: Zs,
|
|
1808
|
+
AxiosHeaders: Ks,
|
|
1809
|
+
HttpStatusCode: Qs,
|
|
1810
|
+
formToJSON: en,
|
|
1811
|
+
getAdapter: tn,
|
|
1812
|
+
mergeConfig: rn
|
|
1813
|
+
} = O, R = "https://faceapi.regulaforensics.com".replace(/\/+$/, "");
|
|
1814
|
+
class Q {
|
|
1815
|
+
constructor(t, r = R, s = O) {
|
|
1754
1816
|
this.basePath = r, this.axios = s, t && (this.configuration = t, this.basePath = t.basePath ?? r);
|
|
1755
1817
|
}
|
|
1756
1818
|
}
|
|
@@ -1759,27 +1821,27 @@ class is extends Error {
|
|
|
1759
1821
|
super(r), this.field = t, this.name = "RequiredError";
|
|
1760
1822
|
}
|
|
1761
1823
|
}
|
|
1762
|
-
const
|
|
1824
|
+
const T = {}, P = "https://example.com", m = function(e, t, r) {
|
|
1763
1825
|
if (r == null)
|
|
1764
1826
|
throw new is(t, `Required parameter ${t} was null or undefined when calling ${e}.`);
|
|
1765
1827
|
};
|
|
1766
|
-
function
|
|
1767
|
-
t != null && (typeof t == "object" ? Array.isArray(t) ? t.forEach((s) =>
|
|
1768
|
-
(s) =>
|
|
1828
|
+
function Ne(e, t, r = "") {
|
|
1829
|
+
t != null && (typeof t == "object" ? Array.isArray(t) ? t.forEach((s) => Ne(e, s, r)) : Object.keys(t).forEach(
|
|
1830
|
+
(s) => Ne(e, t[s], `${r}${r !== "" ? "." : ""}${s}`)
|
|
1769
1831
|
) : e.has(r) ? e.append(r, t) : e.set(r, t));
|
|
1770
1832
|
}
|
|
1771
1833
|
const I = function(e, ...t) {
|
|
1772
1834
|
const r = new URLSearchParams(e.search);
|
|
1773
|
-
|
|
1835
|
+
Ne(r, t), e.search = r.toString();
|
|
1774
1836
|
}, M = function(e, t, r) {
|
|
1775
1837
|
const s = typeof e != "string";
|
|
1776
1838
|
return (s && r && r.isJsonMime ? r.isJsonMime(t.headers["Content-Type"]) : s) ? JSON.stringify(e !== void 0 ? e : {}) : e || "";
|
|
1777
1839
|
}, S = function(e) {
|
|
1778
1840
|
return e.pathname + e.search + e.hash;
|
|
1779
1841
|
}, b = function(e, t, r, s) {
|
|
1780
|
-
return (n = t,
|
|
1781
|
-
const
|
|
1782
|
-
return n.request(
|
|
1842
|
+
return (n = t, o = r) => {
|
|
1843
|
+
const a = { ...e.options, url: (n.defaults.baseURL ? "" : s?.basePath ?? o) + e.url };
|
|
1844
|
+
return n.request(a);
|
|
1783
1845
|
};
|
|
1784
1846
|
}, ls = function(e) {
|
|
1785
1847
|
return {
|
|
@@ -1793,14 +1855,14 @@ const I = function(e, ...t) {
|
|
|
1793
1855
|
*/
|
|
1794
1856
|
detect: async (t, r, s = {}) => {
|
|
1795
1857
|
m("detect", "detectRequest", t);
|
|
1796
|
-
const n = "/api/detect",
|
|
1797
|
-
let
|
|
1798
|
-
e && (
|
|
1799
|
-
const i = { method: "POST", ...
|
|
1800
|
-
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(
|
|
1801
|
-
let d =
|
|
1858
|
+
const n = "/api/detect", o = new URL(n, P);
|
|
1859
|
+
let a;
|
|
1860
|
+
e && (a = e.baseOptions);
|
|
1861
|
+
const i = { method: "POST", ...a, ...s }, l = {}, c = {};
|
|
1862
|
+
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
1863
|
+
let d = a && a.headers ? a.headers : {};
|
|
1802
1864
|
return i.headers = { ...l, ...d, ...s.headers }, i.data = M(t, i, e), {
|
|
1803
|
-
url: S(
|
|
1865
|
+
url: S(o),
|
|
1804
1866
|
options: i
|
|
1805
1867
|
};
|
|
1806
1868
|
},
|
|
@@ -1814,14 +1876,14 @@ const I = function(e, ...t) {
|
|
|
1814
1876
|
*/
|
|
1815
1877
|
match: async (t, r, s = {}) => {
|
|
1816
1878
|
m("match", "matchRequest", t);
|
|
1817
|
-
const n = "/api/match",
|
|
1818
|
-
let
|
|
1819
|
-
e && (
|
|
1820
|
-
const i = { method: "POST", ...
|
|
1821
|
-
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(
|
|
1822
|
-
let d =
|
|
1879
|
+
const n = "/api/match", o = new URL(n, P);
|
|
1880
|
+
let a;
|
|
1881
|
+
e && (a = e.baseOptions);
|
|
1882
|
+
const i = { method: "POST", ...a, ...s }, l = {}, c = {};
|
|
1883
|
+
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
1884
|
+
let d = a && a.headers ? a.headers : {};
|
|
1823
1885
|
return i.headers = { ...l, ...d, ...s.headers }, i.data = M(t, i, e), {
|
|
1824
|
-
url: S(
|
|
1886
|
+
url: S(o),
|
|
1825
1887
|
options: i
|
|
1826
1888
|
};
|
|
1827
1889
|
},
|
|
@@ -1835,14 +1897,14 @@ const I = function(e, ...t) {
|
|
|
1835
1897
|
*/
|
|
1836
1898
|
matchAndSearch: async (t, r, s = {}) => {
|
|
1837
1899
|
m("matchAndSearch", "matchAndSearchRequest", t);
|
|
1838
|
-
const n = "/api/match_and_search",
|
|
1839
|
-
let
|
|
1840
|
-
e && (
|
|
1841
|
-
const i = { method: "POST", ...
|
|
1842
|
-
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(
|
|
1843
|
-
let d =
|
|
1900
|
+
const n = "/api/match_and_search", o = new URL(n, P);
|
|
1901
|
+
let a;
|
|
1902
|
+
e && (a = e.baseOptions);
|
|
1903
|
+
const i = { method: "POST", ...a, ...s }, l = {}, c = {};
|
|
1904
|
+
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
1905
|
+
let d = a && a.headers ? a.headers : {};
|
|
1844
1906
|
return i.headers = { ...l, ...d, ...s.headers }, i.data = M(t, i, e), {
|
|
1845
|
-
url: S(
|
|
1907
|
+
url: S(o),
|
|
1846
1908
|
options: i
|
|
1847
1909
|
};
|
|
1848
1910
|
}
|
|
@@ -1859,8 +1921,8 @@ const I = function(e, ...t) {
|
|
|
1859
1921
|
* @throws {RequiredError}
|
|
1860
1922
|
*/
|
|
1861
1923
|
async detect(r, s, n) {
|
|
1862
|
-
const
|
|
1863
|
-
return (l, c) => b(
|
|
1924
|
+
const o = await t.detect(r, s, n), a = e?.serverIndex ?? 0, i = T["MatchApi.detect"]?.[a]?.url;
|
|
1925
|
+
return (l, c) => b(o, O, R, e)(l, i || c);
|
|
1864
1926
|
},
|
|
1865
1927
|
/**
|
|
1866
1928
|
* 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`
|
|
@@ -1871,8 +1933,8 @@ const I = function(e, ...t) {
|
|
|
1871
1933
|
* @throws {RequiredError}
|
|
1872
1934
|
*/
|
|
1873
1935
|
async match(r, s, n) {
|
|
1874
|
-
const
|
|
1875
|
-
return (l, c) => b(
|
|
1936
|
+
const o = await t.match(r, s, n), a = e?.serverIndex ?? 0, i = T["MatchApi.match"]?.[a]?.url;
|
|
1937
|
+
return (l, c) => b(o, O, R, e)(l, i || c);
|
|
1876
1938
|
},
|
|
1877
1939
|
/**
|
|
1878
1940
|
* 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.
|
|
@@ -1883,12 +1945,12 @@ const I = function(e, ...t) {
|
|
|
1883
1945
|
* @throws {RequiredError}
|
|
1884
1946
|
*/
|
|
1885
1947
|
async matchAndSearch(r, s, n) {
|
|
1886
|
-
const
|
|
1887
|
-
return (l, c) => b(
|
|
1948
|
+
const o = await t.matchAndSearch(r, s, n), a = e?.serverIndex ?? 0, i = T["MatchApi.matchAndSearch"]?.[a]?.url;
|
|
1949
|
+
return (l, c) => b(o, O, R, e)(l, i || c);
|
|
1888
1950
|
}
|
|
1889
1951
|
};
|
|
1890
1952
|
};
|
|
1891
|
-
let cs = class extends
|
|
1953
|
+
let cs = class extends Q {
|
|
1892
1954
|
/**
|
|
1893
1955
|
* 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/).
|
|
1894
1956
|
* @summary detect and check quality
|
|
@@ -1923,22 +1985,22 @@ let cs = class extends ee {
|
|
|
1923
1985
|
return ye(this.configuration).matchAndSearch(t, r, s).then((n) => n(this.axios, this.basePath));
|
|
1924
1986
|
}
|
|
1925
1987
|
};
|
|
1926
|
-
var ds = /* @__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))(ds || {}), us = /* @__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))(us || {}), ps = /* @__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))(ps || {}), hs = /* @__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))(hs || {}), fs = /* @__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))(fs || {}), Es = /* @__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))(Es || {}), As = /* @__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))(As || {}), Os = /* @__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))(Os || {}), _s = /* @__PURE__ */ ((e) => (e.IN = "in", e.NOT_IN = "nin", e))(_s || {}),
|
|
1988
|
+
var ds = /* @__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))(ds || {}), us = /* @__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))(us || {}), ps = /* @__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))(ps || {}), hs = /* @__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))(hs || {}), fs = /* @__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))(fs || {}), Es = /* @__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))(Es || {}), As = /* @__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))(As || {}), Os = /* @__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))(Os || {}), _s = /* @__PURE__ */ ((e) => (e.IN = "in", e.NOT_IN = "nin", e))(_s || {}), Vt = /* @__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))(Vt || {}), ms = /* @__PURE__ */ ((e) => (e[e.ACTIVE = 0] = "ACTIVE", e[e.PASSIVE = 1] = "PASSIVE", e))(ms || {}), J = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Rs = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
1927
1989
|
for (var ue = 0; ue < J.length; ue++)
|
|
1928
|
-
|
|
1990
|
+
Rs[J.charCodeAt(ue)] = ue;
|
|
1929
1991
|
var Ae = function(e) {
|
|
1930
1992
|
var t = new Uint8Array(e), r, s = t.length, n = "";
|
|
1931
1993
|
for (r = 0; r < s; r += 3)
|
|
1932
1994
|
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];
|
|
1933
1995
|
return s % 3 === 2 ? n = n.substring(0, n.length - 1) + "=" : s % 3 === 1 && (n = n.substring(0, n.length - 2) + "=="), n;
|
|
1934
1996
|
};
|
|
1935
|
-
class
|
|
1997
|
+
class Ts {
|
|
1936
1998
|
constructor(t, r, s) {
|
|
1937
1999
|
this.superClass = new cs(t, r, s);
|
|
1938
2000
|
}
|
|
1939
2001
|
async match(t, r, s) {
|
|
1940
|
-
for (const
|
|
1941
|
-
|
|
2002
|
+
for (const o of t.images)
|
|
2003
|
+
o.type || (o.type = Vt.LIVE), typeof o.data != "string" && (o.data = Ae(o.data));
|
|
1942
2004
|
return (await this.superClass.match(t, r, s)).data;
|
|
1943
2005
|
}
|
|
1944
2006
|
async detect(t, r, s) {
|
|
@@ -1957,14 +2019,14 @@ const Ps = function(e) {
|
|
|
1957
2019
|
*/
|
|
1958
2020
|
createGroup: async (t, r, s = {}) => {
|
|
1959
2021
|
m("createGroup", "groupToCreate", t);
|
|
1960
|
-
const n = "/api/groups",
|
|
1961
|
-
let
|
|
1962
|
-
e && (
|
|
1963
|
-
const i = { method: "POST", ...
|
|
1964
|
-
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(
|
|
1965
|
-
let d =
|
|
2022
|
+
const n = "/api/groups", o = new URL(n, P);
|
|
2023
|
+
let a;
|
|
2024
|
+
e && (a = e.baseOptions);
|
|
2025
|
+
const i = { method: "POST", ...a, ...s }, l = {}, c = {};
|
|
2026
|
+
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
2027
|
+
let d = a && a.headers ? a.headers : {};
|
|
1966
2028
|
return i.headers = { ...l, ...d, ...s.headers }, i.data = M(t, i, e), {
|
|
1967
|
-
url: S(
|
|
2029
|
+
url: S(o),
|
|
1968
2030
|
options: i
|
|
1969
2031
|
};
|
|
1970
2032
|
},
|
|
@@ -1978,14 +2040,14 @@ const Ps = function(e) {
|
|
|
1978
2040
|
*/
|
|
1979
2041
|
deleteGroup: async (t, r, s = {}) => {
|
|
1980
2042
|
m("deleteGroup", "groupId", t);
|
|
1981
|
-
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))),
|
|
1982
|
-
let
|
|
1983
|
-
e && (
|
|
1984
|
-
const i = { method: "DELETE", ...
|
|
1985
|
-
r != null && (l["X-RequestID"] = String(r)), I(
|
|
1986
|
-
let d =
|
|
2043
|
+
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), o = new URL(n, P);
|
|
2044
|
+
let a;
|
|
2045
|
+
e && (a = e.baseOptions);
|
|
2046
|
+
const i = { method: "DELETE", ...a, ...s }, l = {}, c = {};
|
|
2047
|
+
r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
2048
|
+
let d = a && a.headers ? a.headers : {};
|
|
1987
2049
|
return i.headers = { ...l, ...d, ...s.headers }, {
|
|
1988
|
-
url: S(
|
|
2050
|
+
url: S(o),
|
|
1989
2051
|
options: i
|
|
1990
2052
|
};
|
|
1991
2053
|
},
|
|
@@ -1999,14 +2061,14 @@ const Ps = function(e) {
|
|
|
1999
2061
|
* @throws {RequiredError}
|
|
2000
2062
|
*/
|
|
2001
2063
|
getAllGroups: async (t, r, s, n = {}) => {
|
|
2002
|
-
const
|
|
2064
|
+
const o = "/api/groups", a = new URL(o, P);
|
|
2003
2065
|
let i;
|
|
2004
2066
|
e && (i = e.baseOptions);
|
|
2005
2067
|
const l = { method: "GET", ...i, ...n }, c = {}, d = {};
|
|
2006
|
-
r !== void 0 && (d.page = r), s !== void 0 && (d.size = s), t != null && (c["X-RequestID"] = String(t)), I(
|
|
2068
|
+
r !== void 0 && (d.page = r), s !== void 0 && (d.size = s), t != null && (c["X-RequestID"] = String(t)), I(a, d);
|
|
2007
2069
|
let p = i && i.headers ? i.headers : {};
|
|
2008
2070
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
2009
|
-
url: S(
|
|
2071
|
+
url: S(a),
|
|
2010
2072
|
options: l
|
|
2011
2073
|
};
|
|
2012
2074
|
},
|
|
@@ -2020,15 +2082,15 @@ const Ps = function(e) {
|
|
|
2020
2082
|
* @param {*} [options] Override http request option.
|
|
2021
2083
|
* @throws {RequiredError}
|
|
2022
2084
|
*/
|
|
2023
|
-
getAllPersonsByGroupId: async (t, r, s, n,
|
|
2085
|
+
getAllPersonsByGroupId: async (t, r, s, n, o = {}) => {
|
|
2024
2086
|
m("getAllPersonsByGroupId", "groupId", t);
|
|
2025
|
-
const
|
|
2087
|
+
const a = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), i = new URL(a, P);
|
|
2026
2088
|
let l;
|
|
2027
2089
|
e && (l = e.baseOptions);
|
|
2028
|
-
const c = { method: "GET", ...l, ...
|
|
2090
|
+
const c = { method: "GET", ...l, ...o }, d = {}, p = {};
|
|
2029
2091
|
s !== void 0 && (p.page = s), n !== void 0 && (p.size = n), r != null && (d["X-RequestID"] = String(r)), I(i, p);
|
|
2030
2092
|
let _ = l && l.headers ? l.headers : {};
|
|
2031
|
-
return c.headers = { ...d, ..._, ...
|
|
2093
|
+
return c.headers = { ...d, ..._, ...o.headers }, {
|
|
2032
2094
|
url: S(i),
|
|
2033
2095
|
options: c
|
|
2034
2096
|
};
|
|
@@ -2043,14 +2105,14 @@ const Ps = function(e) {
|
|
|
2043
2105
|
*/
|
|
2044
2106
|
getGroup: async (t, r, s = {}) => {
|
|
2045
2107
|
m("getGroup", "groupId", t);
|
|
2046
|
-
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))),
|
|
2047
|
-
let
|
|
2048
|
-
e && (
|
|
2049
|
-
const i = { method: "GET", ...
|
|
2050
|
-
r != null && (l["X-RequestID"] = String(r)), I(
|
|
2051
|
-
let d =
|
|
2108
|
+
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), o = new URL(n, P);
|
|
2109
|
+
let a;
|
|
2110
|
+
e && (a = e.baseOptions);
|
|
2111
|
+
const i = { method: "GET", ...a, ...s }, l = {}, c = {};
|
|
2112
|
+
r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
2113
|
+
let d = a && a.headers ? a.headers : {};
|
|
2052
2114
|
return i.headers = { ...l, ...d, ...s.headers }, {
|
|
2053
|
-
url: S(
|
|
2115
|
+
url: S(o),
|
|
2054
2116
|
options: i
|
|
2055
2117
|
};
|
|
2056
2118
|
},
|
|
@@ -2065,14 +2127,14 @@ const Ps = function(e) {
|
|
|
2065
2127
|
*/
|
|
2066
2128
|
updateGroup: async (t, r, s, n = {}) => {
|
|
2067
2129
|
m("updateGroup", "groupId", t), m("updateGroup", "groupToCreate", r);
|
|
2068
|
-
const
|
|
2130
|
+
const o = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(o, P);
|
|
2069
2131
|
let i;
|
|
2070
2132
|
e && (i = e.baseOptions);
|
|
2071
2133
|
const l = { method: "PUT", ...i, ...n }, c = {}, d = {};
|
|
2072
|
-
c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(
|
|
2134
|
+
c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(a, d);
|
|
2073
2135
|
let p = i && i.headers ? i.headers : {};
|
|
2074
2136
|
return l.headers = { ...c, ...p, ...n.headers }, l.data = M(r, l, e), {
|
|
2075
|
-
url: S(
|
|
2137
|
+
url: S(a),
|
|
2076
2138
|
options: l
|
|
2077
2139
|
};
|
|
2078
2140
|
},
|
|
@@ -2087,19 +2149,19 @@ const Ps = function(e) {
|
|
|
2087
2149
|
*/
|
|
2088
2150
|
updatePersonsInGroup: async (t, r, s, n = {}) => {
|
|
2089
2151
|
m("updatePersonsInGroup", "groupId", t), m("updatePersonsInGroup", "updateGroup", r);
|
|
2090
|
-
const
|
|
2152
|
+
const o = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(o, P);
|
|
2091
2153
|
let i;
|
|
2092
2154
|
e && (i = e.baseOptions);
|
|
2093
2155
|
const l = { method: "PUT", ...i, ...n }, c = {}, d = {};
|
|
2094
|
-
c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(
|
|
2156
|
+
c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(a, d);
|
|
2095
2157
|
let p = i && i.headers ? i.headers : {};
|
|
2096
2158
|
return l.headers = { ...c, ...p, ...n.headers }, l.data = M(r, l, e), {
|
|
2097
|
-
url: S(
|
|
2159
|
+
url: S(a),
|
|
2098
2160
|
options: l
|
|
2099
2161
|
};
|
|
2100
2162
|
}
|
|
2101
2163
|
};
|
|
2102
|
-
},
|
|
2164
|
+
}, $ = function(e) {
|
|
2103
2165
|
const t = Ps(e);
|
|
2104
2166
|
return {
|
|
2105
2167
|
/**
|
|
@@ -2111,8 +2173,8 @@ const Ps = function(e) {
|
|
|
2111
2173
|
* @throws {RequiredError}
|
|
2112
2174
|
*/
|
|
2113
2175
|
async createGroup(r, s, n) {
|
|
2114
|
-
const
|
|
2115
|
-
return (l, c) => b(
|
|
2176
|
+
const o = await t.createGroup(r, s, n), a = e?.serverIndex ?? 0, i = T["GroupApi.createGroup"]?.[a]?.url;
|
|
2177
|
+
return (l, c) => b(o, O, R, e)(l, i || c);
|
|
2116
2178
|
},
|
|
2117
2179
|
/**
|
|
2118
2180
|
*
|
|
@@ -2123,8 +2185,8 @@ const Ps = function(e) {
|
|
|
2123
2185
|
* @throws {RequiredError}
|
|
2124
2186
|
*/
|
|
2125
2187
|
async deleteGroup(r, s, n) {
|
|
2126
|
-
const
|
|
2127
|
-
return (l, c) => b(
|
|
2188
|
+
const o = await t.deleteGroup(r, s, n), a = e?.serverIndex ?? 0, i = T["GroupApi.deleteGroup"]?.[a]?.url;
|
|
2189
|
+
return (l, c) => b(o, O, R, e)(l, i || c);
|
|
2128
2190
|
},
|
|
2129
2191
|
/**
|
|
2130
2192
|
*
|
|
@@ -2135,9 +2197,9 @@ const Ps = function(e) {
|
|
|
2135
2197
|
* @param {*} [options] Override http request option.
|
|
2136
2198
|
* @throws {RequiredError}
|
|
2137
2199
|
*/
|
|
2138
|
-
async getAllGroups(r, s, n,
|
|
2139
|
-
const
|
|
2140
|
-
return (c, d) => b(
|
|
2200
|
+
async getAllGroups(r, s, n, o) {
|
|
2201
|
+
const a = await t.getAllGroups(r, s, n, o), i = e?.serverIndex ?? 0, l = T["GroupApi.getAllGroups"]?.[i]?.url;
|
|
2202
|
+
return (c, d) => b(a, O, R, e)(c, l || d);
|
|
2141
2203
|
},
|
|
2142
2204
|
/**
|
|
2143
2205
|
*
|
|
@@ -2149,9 +2211,9 @@ const Ps = function(e) {
|
|
|
2149
2211
|
* @param {*} [options] Override http request option.
|
|
2150
2212
|
* @throws {RequiredError}
|
|
2151
2213
|
*/
|
|
2152
|
-
async getAllPersonsByGroupId(r, s, n,
|
|
2153
|
-
const i = await t.getAllPersonsByGroupId(r, s, n,
|
|
2154
|
-
return (d, p) => b(i,
|
|
2214
|
+
async getAllPersonsByGroupId(r, s, n, o, a) {
|
|
2215
|
+
const i = await t.getAllPersonsByGroupId(r, s, n, o, a), l = e?.serverIndex ?? 0, c = T["GroupApi.getAllPersonsByGroupId"]?.[l]?.url;
|
|
2216
|
+
return (d, p) => b(i, O, R, e)(d, c || p);
|
|
2155
2217
|
},
|
|
2156
2218
|
/**
|
|
2157
2219
|
*
|
|
@@ -2162,8 +2224,8 @@ const Ps = function(e) {
|
|
|
2162
2224
|
* @throws {RequiredError}
|
|
2163
2225
|
*/
|
|
2164
2226
|
async getGroup(r, s, n) {
|
|
2165
|
-
const
|
|
2166
|
-
return (l, c) => b(
|
|
2227
|
+
const o = await t.getGroup(r, s, n), a = e?.serverIndex ?? 0, i = T["GroupApi.getGroup"]?.[a]?.url;
|
|
2228
|
+
return (l, c) => b(o, O, R, e)(l, i || c);
|
|
2167
2229
|
},
|
|
2168
2230
|
/**
|
|
2169
2231
|
*
|
|
@@ -2174,9 +2236,9 @@ const Ps = function(e) {
|
|
|
2174
2236
|
* @param {*} [options] Override http request option.
|
|
2175
2237
|
* @throws {RequiredError}
|
|
2176
2238
|
*/
|
|
2177
|
-
async updateGroup(r, s, n,
|
|
2178
|
-
const
|
|
2179
|
-
return (c, d) => b(
|
|
2239
|
+
async updateGroup(r, s, n, o) {
|
|
2240
|
+
const a = await t.updateGroup(r, s, n, o), i = e?.serverIndex ?? 0, l = T["GroupApi.updateGroup"]?.[i]?.url;
|
|
2241
|
+
return (c, d) => b(a, O, R, e)(c, l || d);
|
|
2180
2242
|
},
|
|
2181
2243
|
/**
|
|
2182
2244
|
*
|
|
@@ -2187,13 +2249,13 @@ const Ps = function(e) {
|
|
|
2187
2249
|
* @param {*} [options] Override http request option.
|
|
2188
2250
|
* @throws {RequiredError}
|
|
2189
2251
|
*/
|
|
2190
|
-
async updatePersonsInGroup(r, s, n,
|
|
2191
|
-
const
|
|
2192
|
-
return (c, d) => b(
|
|
2252
|
+
async updatePersonsInGroup(r, s, n, o) {
|
|
2253
|
+
const a = await t.updatePersonsInGroup(r, s, n, o), i = e?.serverIndex ?? 0, l = T["GroupApi.updatePersonsInGroup"]?.[i]?.url;
|
|
2254
|
+
return (c, d) => b(a, O, R, e)(c, l || d);
|
|
2193
2255
|
}
|
|
2194
2256
|
};
|
|
2195
2257
|
};
|
|
2196
|
-
let Is = class extends
|
|
2258
|
+
let Is = class extends Q {
|
|
2197
2259
|
/**
|
|
2198
2260
|
*
|
|
2199
2261
|
* @summary Create group
|
|
@@ -2203,7 +2265,7 @@ let Is = class extends ee {
|
|
|
2203
2265
|
* @throws {RequiredError}
|
|
2204
2266
|
*/
|
|
2205
2267
|
createGroup(t, r, s) {
|
|
2206
|
-
return
|
|
2268
|
+
return $(this.configuration).createGroup(t, r, s).then((n) => n(this.axios, this.basePath));
|
|
2207
2269
|
}
|
|
2208
2270
|
/**
|
|
2209
2271
|
*
|
|
@@ -2214,7 +2276,7 @@ let Is = class extends ee {
|
|
|
2214
2276
|
* @throws {RequiredError}
|
|
2215
2277
|
*/
|
|
2216
2278
|
deleteGroup(t, r, s) {
|
|
2217
|
-
return
|
|
2279
|
+
return $(this.configuration).deleteGroup(t, r, s).then((n) => n(this.axios, this.basePath));
|
|
2218
2280
|
}
|
|
2219
2281
|
/**
|
|
2220
2282
|
*
|
|
@@ -2226,7 +2288,7 @@ let Is = class extends ee {
|
|
|
2226
2288
|
* @throws {RequiredError}
|
|
2227
2289
|
*/
|
|
2228
2290
|
getAllGroups(t, r, s, n) {
|
|
2229
|
-
return
|
|
2291
|
+
return $(this.configuration).getAllGroups(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2230
2292
|
}
|
|
2231
2293
|
/**
|
|
2232
2294
|
*
|
|
@@ -2238,8 +2300,8 @@ let Is = class extends ee {
|
|
|
2238
2300
|
* @param {*} [options] Override http request option.
|
|
2239
2301
|
* @throws {RequiredError}
|
|
2240
2302
|
*/
|
|
2241
|
-
getAllPersonsByGroupId(t, r, s, n,
|
|
2242
|
-
return
|
|
2303
|
+
getAllPersonsByGroupId(t, r, s, n, o) {
|
|
2304
|
+
return $(this.configuration).getAllPersonsByGroupId(t, r, s, n, o).then((a) => a(this.axios, this.basePath));
|
|
2243
2305
|
}
|
|
2244
2306
|
/**
|
|
2245
2307
|
*
|
|
@@ -2250,7 +2312,7 @@ let Is = class extends ee {
|
|
|
2250
2312
|
* @throws {RequiredError}
|
|
2251
2313
|
*/
|
|
2252
2314
|
getGroup(t, r, s) {
|
|
2253
|
-
return
|
|
2315
|
+
return $(this.configuration).getGroup(t, r, s).then((n) => n(this.axios, this.basePath));
|
|
2254
2316
|
}
|
|
2255
2317
|
/**
|
|
2256
2318
|
*
|
|
@@ -2262,7 +2324,7 @@ let Is = class extends ee {
|
|
|
2262
2324
|
* @throws {RequiredError}
|
|
2263
2325
|
*/
|
|
2264
2326
|
updateGroup(t, r, s, n) {
|
|
2265
|
-
return
|
|
2327
|
+
return $(this.configuration).updateGroup(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2266
2328
|
}
|
|
2267
2329
|
/**
|
|
2268
2330
|
*
|
|
@@ -2274,7 +2336,7 @@ let Is = class extends ee {
|
|
|
2274
2336
|
* @throws {RequiredError}
|
|
2275
2337
|
*/
|
|
2276
2338
|
updatePersonsInGroup(t, r, s, n) {
|
|
2277
|
-
return
|
|
2339
|
+
return $(this.configuration).updatePersonsInGroup(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2278
2340
|
}
|
|
2279
2341
|
};
|
|
2280
2342
|
class Ss {
|
|
@@ -2294,8 +2356,8 @@ class Ss {
|
|
|
2294
2356
|
async getAllGroups(t, r, s, n) {
|
|
2295
2357
|
return (await this.superClass.getAllGroups(s, t, r, n)).data;
|
|
2296
2358
|
}
|
|
2297
|
-
async getAllPersonsByGroupId(t, r, s, n,
|
|
2298
|
-
return (await this.superClass.getAllPersonsByGroupId(s, n, t, r,
|
|
2359
|
+
async getAllPersonsByGroupId(t, r, s, n, o) {
|
|
2360
|
+
return (await this.superClass.getAllPersonsByGroupId(s, n, t, r, o)).data;
|
|
2299
2361
|
}
|
|
2300
2362
|
async getGroup(t, r, s) {
|
|
2301
2363
|
return (await this.superClass.getGroup(t, r, s)).data;
|
|
@@ -2320,14 +2382,14 @@ const bs = function(e) {
|
|
|
2320
2382
|
*/
|
|
2321
2383
|
addImageToPerson: async (t, r, s, n = {}) => {
|
|
2322
2384
|
m("addImageToPerson", "personId", t), m("addImageToPerson", "addImageToPersonRequest", r);
|
|
2323
|
-
const
|
|
2385
|
+
const o = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), a = new URL(o, P);
|
|
2324
2386
|
let i;
|
|
2325
2387
|
e && (i = e.baseOptions);
|
|
2326
2388
|
const l = { method: "POST", ...i, ...n }, c = {}, d = {};
|
|
2327
|
-
c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(
|
|
2389
|
+
c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(a, d);
|
|
2328
2390
|
let p = i && i.headers ? i.headers : {};
|
|
2329
2391
|
return l.headers = { ...c, ...p, ...n.headers }, l.data = M(r, l, e), {
|
|
2330
|
-
url: S(
|
|
2392
|
+
url: S(a),
|
|
2331
2393
|
options: l
|
|
2332
2394
|
};
|
|
2333
2395
|
},
|
|
@@ -2341,14 +2403,14 @@ const bs = function(e) {
|
|
|
2341
2403
|
*/
|
|
2342
2404
|
createPerson: async (t, r, s = {}) => {
|
|
2343
2405
|
m("createPerson", "personFields", t);
|
|
2344
|
-
const n = "/api/persons",
|
|
2345
|
-
let
|
|
2346
|
-
e && (
|
|
2347
|
-
const i = { method: "POST", ...
|
|
2348
|
-
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(
|
|
2349
|
-
let d =
|
|
2406
|
+
const n = "/api/persons", o = new URL(n, P);
|
|
2407
|
+
let a;
|
|
2408
|
+
e && (a = e.baseOptions);
|
|
2409
|
+
const i = { method: "POST", ...a, ...s }, l = {}, c = {};
|
|
2410
|
+
l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
2411
|
+
let d = a && a.headers ? a.headers : {};
|
|
2350
2412
|
return i.headers = { ...l, ...d, ...s.headers }, i.data = M(t, i, e), {
|
|
2351
|
-
url: S(
|
|
2413
|
+
url: S(o),
|
|
2352
2414
|
options: i
|
|
2353
2415
|
};
|
|
2354
2416
|
},
|
|
@@ -2363,14 +2425,14 @@ const bs = function(e) {
|
|
|
2363
2425
|
*/
|
|
2364
2426
|
deleteImageOfPerson: async (t, r, s, n = {}) => {
|
|
2365
2427
|
m("deleteImageOfPerson", "personId", t), m("deleteImageOfPerson", "imageId", r);
|
|
2366
|
-
const
|
|
2428
|
+
const o = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(r))), a = new URL(o, P);
|
|
2367
2429
|
let i;
|
|
2368
2430
|
e && (i = e.baseOptions);
|
|
2369
2431
|
const l = { method: "DELETE", ...i, ...n }, c = {}, d = {};
|
|
2370
|
-
s != null && (c["X-RequestID"] = String(s)), I(
|
|
2432
|
+
s != null && (c["X-RequestID"] = String(s)), I(a, d);
|
|
2371
2433
|
let p = i && i.headers ? i.headers : {};
|
|
2372
2434
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
2373
|
-
url: S(
|
|
2435
|
+
url: S(a),
|
|
2374
2436
|
options: l
|
|
2375
2437
|
};
|
|
2376
2438
|
},
|
|
@@ -2384,14 +2446,14 @@ const bs = function(e) {
|
|
|
2384
2446
|
*/
|
|
2385
2447
|
deletePerson: async (t, r, s = {}) => {
|
|
2386
2448
|
m("deletePerson", "personId", t);
|
|
2387
|
-
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))),
|
|
2388
|
-
let
|
|
2389
|
-
e && (
|
|
2390
|
-
const i = { method: "DELETE", ...
|
|
2391
|
-
r != null && (l["X-RequestID"] = String(r)), I(
|
|
2392
|
-
let d =
|
|
2449
|
+
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), o = new URL(n, P);
|
|
2450
|
+
let a;
|
|
2451
|
+
e && (a = e.baseOptions);
|
|
2452
|
+
const i = { method: "DELETE", ...a, ...s }, l = {}, c = {};
|
|
2453
|
+
r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
2454
|
+
let d = a && a.headers ? a.headers : {};
|
|
2393
2455
|
return i.headers = { ...l, ...d, ...s.headers }, {
|
|
2394
|
-
url: S(
|
|
2456
|
+
url: S(o),
|
|
2395
2457
|
options: i
|
|
2396
2458
|
};
|
|
2397
2459
|
},
|
|
@@ -2405,15 +2467,15 @@ const bs = function(e) {
|
|
|
2405
2467
|
* @param {*} [options] Override http request option.
|
|
2406
2468
|
* @throws {RequiredError}
|
|
2407
2469
|
*/
|
|
2408
|
-
getAllGroupsByPersonId: async (t, r, s, n,
|
|
2470
|
+
getAllGroupsByPersonId: async (t, r, s, n, o = {}) => {
|
|
2409
2471
|
m("getAllGroupsByPersonId", "personId", t);
|
|
2410
|
-
const
|
|
2472
|
+
const a = "/api/persons/{personId}/groups".replace("{personId}", encodeURIComponent(String(t))), i = new URL(a, P);
|
|
2411
2473
|
let l;
|
|
2412
2474
|
e && (l = e.baseOptions);
|
|
2413
|
-
const c = { method: "GET", ...l, ...
|
|
2475
|
+
const c = { method: "GET", ...l, ...o }, d = {}, p = {};
|
|
2414
2476
|
s !== void 0 && (p.page = s), n !== void 0 && (p.size = n), r != null && (d["X-RequestID"] = String(r)), I(i, p);
|
|
2415
2477
|
let _ = l && l.headers ? l.headers : {};
|
|
2416
|
-
return c.headers = { ...d, ..._, ...
|
|
2478
|
+
return c.headers = { ...d, ..._, ...o.headers }, {
|
|
2417
2479
|
url: S(i),
|
|
2418
2480
|
options: c
|
|
2419
2481
|
};
|
|
@@ -2428,15 +2490,15 @@ const bs = function(e) {
|
|
|
2428
2490
|
* @param {*} [options] Override http request option.
|
|
2429
2491
|
* @throws {RequiredError}
|
|
2430
2492
|
*/
|
|
2431
|
-
getAllImagesByPersonId: async (t, r, s, n,
|
|
2493
|
+
getAllImagesByPersonId: async (t, r, s, n, o = {}) => {
|
|
2432
2494
|
m("getAllImagesByPersonId", "personId", t);
|
|
2433
|
-
const
|
|
2495
|
+
const a = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), i = new URL(a, P);
|
|
2434
2496
|
let l;
|
|
2435
2497
|
e && (l = e.baseOptions);
|
|
2436
|
-
const c = { method: "GET", ...l, ...
|
|
2498
|
+
const c = { method: "GET", ...l, ...o }, d = {}, p = {};
|
|
2437
2499
|
s !== void 0 && (p.page = s), n !== void 0 && (p.size = n), r != null && (d["X-RequestID"] = String(r)), I(i, p);
|
|
2438
2500
|
let _ = l && l.headers ? l.headers : {};
|
|
2439
|
-
return c.headers = { ...d, ..._, ...
|
|
2501
|
+
return c.headers = { ...d, ..._, ...o.headers }, {
|
|
2440
2502
|
url: S(i),
|
|
2441
2503
|
options: c
|
|
2442
2504
|
};
|
|
@@ -2452,14 +2514,14 @@ const bs = function(e) {
|
|
|
2452
2514
|
*/
|
|
2453
2515
|
getImageOfPerson: async (t, r, s, n = {}) => {
|
|
2454
2516
|
m("getImageOfPerson", "personId", t), m("getImageOfPerson", "imageId", r);
|
|
2455
|
-
const
|
|
2517
|
+
const o = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(r))), a = new URL(o, P);
|
|
2456
2518
|
let i;
|
|
2457
2519
|
e && (i = e.baseOptions);
|
|
2458
2520
|
const l = { method: "GET", ...i, ...n }, c = {}, d = {};
|
|
2459
|
-
s != null && (c["X-RequestID"] = String(s)), I(
|
|
2521
|
+
s != null && (c["X-RequestID"] = String(s)), I(a, d);
|
|
2460
2522
|
let p = i && i.headers ? i.headers : {};
|
|
2461
2523
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
2462
|
-
url: S(
|
|
2524
|
+
url: S(a),
|
|
2463
2525
|
options: l
|
|
2464
2526
|
};
|
|
2465
2527
|
},
|
|
@@ -2473,14 +2535,14 @@ const bs = function(e) {
|
|
|
2473
2535
|
*/
|
|
2474
2536
|
getPerson: async (t, r, s = {}) => {
|
|
2475
2537
|
m("getPerson", "personId", t);
|
|
2476
|
-
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))),
|
|
2477
|
-
let
|
|
2478
|
-
e && (
|
|
2479
|
-
const i = { method: "GET", ...
|
|
2480
|
-
r != null && (l["X-RequestID"] = String(r)), I(
|
|
2481
|
-
let d =
|
|
2538
|
+
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), o = new URL(n, P);
|
|
2539
|
+
let a;
|
|
2540
|
+
e && (a = e.baseOptions);
|
|
2541
|
+
const i = { method: "GET", ...a, ...s }, l = {}, c = {};
|
|
2542
|
+
r != null && (l["X-RequestID"] = String(r)), I(o, c);
|
|
2543
|
+
let d = a && a.headers ? a.headers : {};
|
|
2482
2544
|
return i.headers = { ...l, ...d, ...s.headers }, {
|
|
2483
|
-
url: S(
|
|
2545
|
+
url: S(o),
|
|
2484
2546
|
options: i
|
|
2485
2547
|
};
|
|
2486
2548
|
},
|
|
@@ -2495,14 +2557,14 @@ const bs = function(e) {
|
|
|
2495
2557
|
*/
|
|
2496
2558
|
updatePerson: async (t, r, s, n = {}) => {
|
|
2497
2559
|
m("updatePerson", "personId", t), m("updatePerson", "personToUpdateFields", r);
|
|
2498
|
-
const
|
|
2560
|
+
const o = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), a = new URL(o, P);
|
|
2499
2561
|
let i;
|
|
2500
2562
|
e && (i = e.baseOptions);
|
|
2501
2563
|
const l = { method: "PUT", ...i, ...n }, c = {}, d = {};
|
|
2502
|
-
c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(
|
|
2564
|
+
c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(a, d);
|
|
2503
2565
|
let p = i && i.headers ? i.headers : {};
|
|
2504
2566
|
return l.headers = { ...c, ...p, ...n.headers }, l.data = M(r, l, e), {
|
|
2505
|
-
url: S(
|
|
2567
|
+
url: S(a),
|
|
2506
2568
|
options: l
|
|
2507
2569
|
};
|
|
2508
2570
|
}
|
|
@@ -2519,9 +2581,9 @@ const bs = function(e) {
|
|
|
2519
2581
|
* @param {*} [options] Override http request option.
|
|
2520
2582
|
* @throws {RequiredError}
|
|
2521
2583
|
*/
|
|
2522
|
-
async addImageToPerson(r, s, n,
|
|
2523
|
-
const
|
|
2524
|
-
return (c, d) => b(
|
|
2584
|
+
async addImageToPerson(r, s, n, o) {
|
|
2585
|
+
const a = await t.addImageToPerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.addImageToPerson"]?.[i]?.url;
|
|
2586
|
+
return (c, d) => b(a, O, R, e)(c, l || d);
|
|
2525
2587
|
},
|
|
2526
2588
|
/**
|
|
2527
2589
|
*
|
|
@@ -2532,8 +2594,8 @@ const bs = function(e) {
|
|
|
2532
2594
|
* @throws {RequiredError}
|
|
2533
2595
|
*/
|
|
2534
2596
|
async createPerson(r, s, n) {
|
|
2535
|
-
const
|
|
2536
|
-
return (l, c) => b(
|
|
2597
|
+
const o = await t.createPerson(r, s, n), a = e?.serverIndex ?? 0, i = T["PersonApi.createPerson"]?.[a]?.url;
|
|
2598
|
+
return (l, c) => b(o, O, R, e)(l, i || c);
|
|
2537
2599
|
},
|
|
2538
2600
|
/**
|
|
2539
2601
|
*
|
|
@@ -2544,9 +2606,9 @@ const bs = function(e) {
|
|
|
2544
2606
|
* @param {*} [options] Override http request option.
|
|
2545
2607
|
* @throws {RequiredError}
|
|
2546
2608
|
*/
|
|
2547
|
-
async deleteImageOfPerson(r, s, n,
|
|
2548
|
-
const
|
|
2549
|
-
return (c, d) => b(
|
|
2609
|
+
async deleteImageOfPerson(r, s, n, o) {
|
|
2610
|
+
const a = await t.deleteImageOfPerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.deleteImageOfPerson"]?.[i]?.url;
|
|
2611
|
+
return (c, d) => b(a, O, R, e)(c, l || d);
|
|
2550
2612
|
},
|
|
2551
2613
|
/**
|
|
2552
2614
|
*
|
|
@@ -2557,8 +2619,8 @@ const bs = function(e) {
|
|
|
2557
2619
|
* @throws {RequiredError}
|
|
2558
2620
|
*/
|
|
2559
2621
|
async deletePerson(r, s, n) {
|
|
2560
|
-
const
|
|
2561
|
-
return (l, c) => b(
|
|
2622
|
+
const o = await t.deletePerson(r, s, n), a = e?.serverIndex ?? 0, i = T["PersonApi.deletePerson"]?.[a]?.url;
|
|
2623
|
+
return (l, c) => b(o, O, R, e)(l, i || c);
|
|
2562
2624
|
},
|
|
2563
2625
|
/**
|
|
2564
2626
|
*
|
|
@@ -2570,9 +2632,9 @@ const bs = function(e) {
|
|
|
2570
2632
|
* @param {*} [options] Override http request option.
|
|
2571
2633
|
* @throws {RequiredError}
|
|
2572
2634
|
*/
|
|
2573
|
-
async getAllGroupsByPersonId(r, s, n,
|
|
2574
|
-
const i = await t.getAllGroupsByPersonId(r, s, n,
|
|
2575
|
-
return (d, p) => b(i,
|
|
2635
|
+
async getAllGroupsByPersonId(r, s, n, o, a) {
|
|
2636
|
+
const i = await t.getAllGroupsByPersonId(r, s, n, o, a), l = e?.serverIndex ?? 0, c = T["PersonApi.getAllGroupsByPersonId"]?.[l]?.url;
|
|
2637
|
+
return (d, p) => b(i, O, R, e)(d, c || p);
|
|
2576
2638
|
},
|
|
2577
2639
|
/**
|
|
2578
2640
|
*
|
|
@@ -2584,9 +2646,9 @@ const bs = function(e) {
|
|
|
2584
2646
|
* @param {*} [options] Override http request option.
|
|
2585
2647
|
* @throws {RequiredError}
|
|
2586
2648
|
*/
|
|
2587
|
-
async getAllImagesByPersonId(r, s, n,
|
|
2588
|
-
const i = await t.getAllImagesByPersonId(r, s, n,
|
|
2589
|
-
return (d, p) => b(i,
|
|
2649
|
+
async getAllImagesByPersonId(r, s, n, o, a) {
|
|
2650
|
+
const i = await t.getAllImagesByPersonId(r, s, n, o, a), l = e?.serverIndex ?? 0, c = T["PersonApi.getAllImagesByPersonId"]?.[l]?.url;
|
|
2651
|
+
return (d, p) => b(i, O, R, e)(d, c || p);
|
|
2590
2652
|
},
|
|
2591
2653
|
/**
|
|
2592
2654
|
*
|
|
@@ -2597,9 +2659,9 @@ const bs = function(e) {
|
|
|
2597
2659
|
* @param {*} [options] Override http request option.
|
|
2598
2660
|
* @throws {RequiredError}
|
|
2599
2661
|
*/
|
|
2600
|
-
async getImageOfPerson(r, s, n,
|
|
2601
|
-
const
|
|
2602
|
-
return (c, d) => b(
|
|
2662
|
+
async getImageOfPerson(r, s, n, o) {
|
|
2663
|
+
const a = await t.getImageOfPerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.getImageOfPerson"]?.[i]?.url;
|
|
2664
|
+
return (c, d) => b(a, O, R, e)(c, l || d);
|
|
2603
2665
|
},
|
|
2604
2666
|
/**
|
|
2605
2667
|
*
|
|
@@ -2610,8 +2672,8 @@ const bs = function(e) {
|
|
|
2610
2672
|
* @throws {RequiredError}
|
|
2611
2673
|
*/
|
|
2612
2674
|
async getPerson(r, s, n) {
|
|
2613
|
-
const
|
|
2614
|
-
return (l, c) => b(
|
|
2675
|
+
const o = await t.getPerson(r, s, n), a = e?.serverIndex ?? 0, i = T["PersonApi.getPerson"]?.[a]?.url;
|
|
2676
|
+
return (l, c) => b(o, O, R, e)(l, i || c);
|
|
2615
2677
|
},
|
|
2616
2678
|
/**
|
|
2617
2679
|
*
|
|
@@ -2622,13 +2684,13 @@ const bs = function(e) {
|
|
|
2622
2684
|
* @param {*} [options] Override http request option.
|
|
2623
2685
|
* @throws {RequiredError}
|
|
2624
2686
|
*/
|
|
2625
|
-
async updatePerson(r, s, n,
|
|
2626
|
-
const
|
|
2627
|
-
return (c, d) => b(
|
|
2687
|
+
async updatePerson(r, s, n, o) {
|
|
2688
|
+
const a = await t.updatePerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.updatePerson"]?.[i]?.url;
|
|
2689
|
+
return (c, d) => b(a, O, R, e)(c, l || d);
|
|
2628
2690
|
}
|
|
2629
2691
|
};
|
|
2630
2692
|
};
|
|
2631
|
-
let ws = class extends
|
|
2693
|
+
let ws = class extends Q {
|
|
2632
2694
|
/**
|
|
2633
2695
|
*
|
|
2634
2696
|
* @summary Add person image
|
|
@@ -2639,7 +2701,7 @@ let ws = class extends ee {
|
|
|
2639
2701
|
* @throws {RequiredError}
|
|
2640
2702
|
*/
|
|
2641
2703
|
addImageToPerson(t, r, s, n) {
|
|
2642
|
-
return v(this.configuration).addImageToPerson(t, r, s, n).then((
|
|
2704
|
+
return v(this.configuration).addImageToPerson(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2643
2705
|
}
|
|
2644
2706
|
/**
|
|
2645
2707
|
*
|
|
@@ -2662,7 +2724,7 @@ let ws = class extends ee {
|
|
|
2662
2724
|
* @throws {RequiredError}
|
|
2663
2725
|
*/
|
|
2664
2726
|
deleteImageOfPerson(t, r, s, n) {
|
|
2665
|
-
return v(this.configuration).deleteImageOfPerson(t, r, s, n).then((
|
|
2727
|
+
return v(this.configuration).deleteImageOfPerson(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2666
2728
|
}
|
|
2667
2729
|
/**
|
|
2668
2730
|
*
|
|
@@ -2685,8 +2747,8 @@ let ws = class extends ee {
|
|
|
2685
2747
|
* @param {*} [options] Override http request option.
|
|
2686
2748
|
* @throws {RequiredError}
|
|
2687
2749
|
*/
|
|
2688
|
-
getAllGroupsByPersonId(t, r, s, n,
|
|
2689
|
-
return v(this.configuration).getAllGroupsByPersonId(t, r, s, n,
|
|
2750
|
+
getAllGroupsByPersonId(t, r, s, n, o) {
|
|
2751
|
+
return v(this.configuration).getAllGroupsByPersonId(t, r, s, n, o).then((a) => a(this.axios, this.basePath));
|
|
2690
2752
|
}
|
|
2691
2753
|
/**
|
|
2692
2754
|
*
|
|
@@ -2698,8 +2760,8 @@ let ws = class extends ee {
|
|
|
2698
2760
|
* @param {*} [options] Override http request option.
|
|
2699
2761
|
* @throws {RequiredError}
|
|
2700
2762
|
*/
|
|
2701
|
-
getAllImagesByPersonId(t, r, s, n,
|
|
2702
|
-
return v(this.configuration).getAllImagesByPersonId(t, r, s, n,
|
|
2763
|
+
getAllImagesByPersonId(t, r, s, n, o) {
|
|
2764
|
+
return v(this.configuration).getAllImagesByPersonId(t, r, s, n, o).then((a) => a(this.axios, this.basePath));
|
|
2703
2765
|
}
|
|
2704
2766
|
/**
|
|
2705
2767
|
*
|
|
@@ -2711,7 +2773,7 @@ let ws = class extends ee {
|
|
|
2711
2773
|
* @throws {RequiredError}
|
|
2712
2774
|
*/
|
|
2713
2775
|
getImageOfPerson(t, r, s, n) {
|
|
2714
|
-
return v(this.configuration).getImageOfPerson(t, r, s, n).then((
|
|
2776
|
+
return v(this.configuration).getImageOfPerson(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2715
2777
|
}
|
|
2716
2778
|
/**
|
|
2717
2779
|
*
|
|
@@ -2734,7 +2796,7 @@ let ws = class extends ee {
|
|
|
2734
2796
|
* @throws {RequiredError}
|
|
2735
2797
|
*/
|
|
2736
2798
|
updatePerson(t, r, s, n) {
|
|
2737
|
-
return v(this.configuration).updatePerson(t, r, s, n).then((
|
|
2799
|
+
return v(this.configuration).updatePerson(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2738
2800
|
}
|
|
2739
2801
|
};
|
|
2740
2802
|
class ys {
|
|
@@ -2757,11 +2819,11 @@ class ys {
|
|
|
2757
2819
|
async deletePerson(t, r, s) {
|
|
2758
2820
|
await this.superClass.deletePerson(t, r, s);
|
|
2759
2821
|
}
|
|
2760
|
-
async getAllGroupsByPersonId(t, r, s, n,
|
|
2761
|
-
return (await this.superClass.getAllGroupsByPersonId(s, n, t, r,
|
|
2822
|
+
async getAllGroupsByPersonId(t, r, s, n, o) {
|
|
2823
|
+
return (await this.superClass.getAllGroupsByPersonId(s, n, t, r, o)).data;
|
|
2762
2824
|
}
|
|
2763
|
-
async getAllImagesByPersonId(t, r, s, n,
|
|
2764
|
-
return (await this.superClass.getAllImagesByPersonId(s, n, t, r,
|
|
2825
|
+
async getAllImagesByPersonId(t, r, s, n, o) {
|
|
2826
|
+
return (await this.superClass.getAllImagesByPersonId(s, n, t, r, o)).data;
|
|
2765
2827
|
}
|
|
2766
2828
|
async getImageOfPerson(t, r, s, n) {
|
|
2767
2829
|
return (await this.superClass.getImageOfPerson(r, t, s, n)).data;
|
|
@@ -2786,14 +2848,14 @@ const Cs = function(e) {
|
|
|
2786
2848
|
*/
|
|
2787
2849
|
search: async (t, r, s, n = {}) => {
|
|
2788
2850
|
m("search", "searchRequest", t);
|
|
2789
|
-
const
|
|
2851
|
+
const o = "/api/search", a = new URL(o, P);
|
|
2790
2852
|
let i;
|
|
2791
2853
|
e && (i = e.baseOptions);
|
|
2792
2854
|
const l = { method: "POST", ...i, ...n }, c = {}, d = {};
|
|
2793
|
-
s !== void 0 && (d.withImages = s), c["Content-Type"] = "application/json", r != null && (c["X-RequestID"] = String(r)), I(
|
|
2855
|
+
s !== void 0 && (d.withImages = s), c["Content-Type"] = "application/json", r != null && (c["X-RequestID"] = String(r)), I(a, d);
|
|
2794
2856
|
let p = i && i.headers ? i.headers : {};
|
|
2795
2857
|
return l.headers = { ...c, ...p, ...n.headers }, l.data = M(t, l, e), {
|
|
2796
|
-
url: S(
|
|
2858
|
+
url: S(a),
|
|
2797
2859
|
options: l
|
|
2798
2860
|
};
|
|
2799
2861
|
}
|
|
@@ -2810,13 +2872,13 @@ const Cs = function(e) {
|
|
|
2810
2872
|
* @param {*} [options] Override http request option.
|
|
2811
2873
|
* @throws {RequiredError}
|
|
2812
2874
|
*/
|
|
2813
|
-
async search(r, s, n,
|
|
2814
|
-
const
|
|
2815
|
-
return (c, d) => b(
|
|
2875
|
+
async search(r, s, n, o) {
|
|
2876
|
+
const a = await t.search(r, s, n, o), i = e?.serverIndex ?? 0, l = T["SearchApi.search"]?.[i]?.url;
|
|
2877
|
+
return (c, d) => b(a, O, R, e)(c, l || d);
|
|
2816
2878
|
}
|
|
2817
2879
|
};
|
|
2818
2880
|
};
|
|
2819
|
-
let Vs = class extends
|
|
2881
|
+
let Vs = class extends Q {
|
|
2820
2882
|
/**
|
|
2821
2883
|
*
|
|
2822
2884
|
* @summary Find person by image in groups
|
|
@@ -2827,7 +2889,7 @@ let Vs = class extends ee {
|
|
|
2827
2889
|
* @throws {RequiredError}
|
|
2828
2890
|
*/
|
|
2829
2891
|
search(t, r, s, n) {
|
|
2830
|
-
return Ls(this.configuration).search(t, r, s, n).then((
|
|
2892
|
+
return Ls(this.configuration).search(t, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2831
2893
|
}
|
|
2832
2894
|
};
|
|
2833
2895
|
class gs {
|
|
@@ -2850,14 +2912,14 @@ const Ns = function(e) {
|
|
|
2850
2912
|
*/
|
|
2851
2913
|
deleteLivenessTransaction: async (t, r, s = {}) => {
|
|
2852
2914
|
m("deleteLivenessTransaction", "transactionId", t), m("deleteLivenessTransaction", "tag", r);
|
|
2853
|
-
const n = "/api/v2/liveness",
|
|
2854
|
-
let
|
|
2855
|
-
e && (
|
|
2856
|
-
const i = { method: "DELETE", ...
|
|
2857
|
-
t !== void 0 && (c.transactionId = t), r !== void 0 && (c.tag = r), I(
|
|
2858
|
-
let d =
|
|
2915
|
+
const n = "/api/v2/liveness", o = new URL(n, P);
|
|
2916
|
+
let a;
|
|
2917
|
+
e && (a = e.baseOptions);
|
|
2918
|
+
const i = { method: "DELETE", ...a, ...s }, l = {}, c = {};
|
|
2919
|
+
t !== void 0 && (c.transactionId = t), r !== void 0 && (c.tag = r), I(o, c);
|
|
2920
|
+
let d = a && a.headers ? a.headers : {};
|
|
2859
2921
|
return i.headers = { ...l, ...d, ...s.headers }, {
|
|
2860
|
-
url: S(
|
|
2922
|
+
url: S(o),
|
|
2861
2923
|
options: i
|
|
2862
2924
|
};
|
|
2863
2925
|
},
|
|
@@ -2871,18 +2933,18 @@ const Ns = function(e) {
|
|
|
2871
2933
|
getLivenessTransactionInfo: async (t, r = {}) => {
|
|
2872
2934
|
m("getLivenessTransactionInfo", "transactionId", t);
|
|
2873
2935
|
const s = "/api/v2/liveness", n = new URL(s, P);
|
|
2874
|
-
let
|
|
2875
|
-
e && (
|
|
2876
|
-
const
|
|
2936
|
+
let o;
|
|
2937
|
+
e && (o = e.baseOptions);
|
|
2938
|
+
const a = { method: "GET", ...o, ...r }, i = {}, l = {};
|
|
2877
2939
|
t !== void 0 && (l.transactionId = t), I(n, l);
|
|
2878
|
-
let c =
|
|
2879
|
-
return
|
|
2940
|
+
let c = o && o.headers ? o.headers : {};
|
|
2941
|
+
return a.headers = { ...i, ...c, ...r.headers }, {
|
|
2880
2942
|
url: S(n),
|
|
2881
|
-
options:
|
|
2943
|
+
options: a
|
|
2882
2944
|
};
|
|
2883
2945
|
}
|
|
2884
2946
|
};
|
|
2885
|
-
},
|
|
2947
|
+
}, at = function(e) {
|
|
2886
2948
|
const t = Ns(e);
|
|
2887
2949
|
return {
|
|
2888
2950
|
/**
|
|
@@ -2894,8 +2956,8 @@ const Ns = function(e) {
|
|
|
2894
2956
|
* @throws {RequiredError}
|
|
2895
2957
|
*/
|
|
2896
2958
|
async deleteLivenessTransaction(r, s, n) {
|
|
2897
|
-
const
|
|
2898
|
-
return (l, c) => b(
|
|
2959
|
+
const o = await t.deleteLivenessTransaction(r, s, n), a = e?.serverIndex ?? 0, i = T["Liveness20Api.deleteLivenessTransaction"]?.[a]?.url;
|
|
2960
|
+
return (l, c) => b(o, O, R, e)(l, i || c);
|
|
2899
2961
|
},
|
|
2900
2962
|
/**
|
|
2901
2963
|
* 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}`.
|
|
@@ -2905,12 +2967,12 @@ const Ns = function(e) {
|
|
|
2905
2967
|
* @throws {RequiredError}
|
|
2906
2968
|
*/
|
|
2907
2969
|
async getLivenessTransactionInfo(r, s) {
|
|
2908
|
-
const n = await t.getLivenessTransactionInfo(r, s),
|
|
2909
|
-
return (i, l) => b(n,
|
|
2970
|
+
const n = await t.getLivenessTransactionInfo(r, s), o = e?.serverIndex ?? 0, a = T["Liveness20Api.getLivenessTransactionInfo"]?.[o]?.url;
|
|
2971
|
+
return (i, l) => b(n, O, R, e)(i, a || l);
|
|
2910
2972
|
}
|
|
2911
2973
|
};
|
|
2912
2974
|
};
|
|
2913
|
-
let Us = class extends
|
|
2975
|
+
let Us = class extends Q {
|
|
2914
2976
|
/**
|
|
2915
2977
|
* 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.
|
|
2916
2978
|
* @summary delete liveness transaction
|
|
@@ -2920,7 +2982,7 @@ let Us = class extends ee {
|
|
|
2920
2982
|
* @throws {RequiredError}
|
|
2921
2983
|
*/
|
|
2922
2984
|
deleteLivenessTransaction(t, r, s) {
|
|
2923
|
-
return
|
|
2985
|
+
return at(this.configuration).deleteLivenessTransaction(t, r, s).then((n) => n(this.axios, this.basePath));
|
|
2924
2986
|
}
|
|
2925
2987
|
/**
|
|
2926
2988
|
* 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}`.
|
|
@@ -2930,7 +2992,7 @@ let Us = class extends ee {
|
|
|
2930
2992
|
* @throws {RequiredError}
|
|
2931
2993
|
*/
|
|
2932
2994
|
getLivenessTransactionInfo(t, r) {
|
|
2933
|
-
return
|
|
2995
|
+
return at(this.configuration).getLivenessTransactionInfo(t, r).then((s) => s(this.axios, this.basePath));
|
|
2934
2996
|
}
|
|
2935
2997
|
};
|
|
2936
2998
|
class xs {
|
|
@@ -2952,14 +3014,14 @@ const Ds = function(e) {
|
|
|
2952
3014
|
*/
|
|
2953
3015
|
healthz: async (t, r = {}) => {
|
|
2954
3016
|
const s = "/api/healthz", n = new URL(s, P);
|
|
2955
|
-
let
|
|
2956
|
-
e && (
|
|
2957
|
-
const
|
|
3017
|
+
let o;
|
|
3018
|
+
e && (o = e.baseOptions);
|
|
3019
|
+
const a = { method: "GET", ...o, ...r }, i = {}, l = {};
|
|
2958
3020
|
t != null && (i["X-RequestID"] = String(t)), I(n, l);
|
|
2959
|
-
let c =
|
|
2960
|
-
return
|
|
3021
|
+
let c = o && o.headers ? o.headers : {};
|
|
3022
|
+
return a.headers = { ...i, ...c, ...r.headers }, {
|
|
2961
3023
|
url: S(n),
|
|
2962
|
-
options:
|
|
3024
|
+
options: a
|
|
2963
3025
|
};
|
|
2964
3026
|
},
|
|
2965
3027
|
/**
|
|
@@ -2971,18 +3033,18 @@ const Ds = function(e) {
|
|
|
2971
3033
|
*/
|
|
2972
3034
|
readyz: async (t, r = {}) => {
|
|
2973
3035
|
const s = "/api/readyz", n = new URL(s, P);
|
|
2974
|
-
let
|
|
2975
|
-
e && (
|
|
2976
|
-
const
|
|
3036
|
+
let o;
|
|
3037
|
+
e && (o = e.baseOptions);
|
|
3038
|
+
const a = { method: "GET", ...o, ...r }, i = {}, l = {};
|
|
2977
3039
|
t != null && (i["X-RequestID"] = String(t)), I(n, l);
|
|
2978
|
-
let c =
|
|
2979
|
-
return
|
|
3040
|
+
let c = o && o.headers ? o.headers : {};
|
|
3041
|
+
return a.headers = { ...i, ...c, ...r.headers }, {
|
|
2980
3042
|
url: S(n),
|
|
2981
|
-
options:
|
|
3043
|
+
options: a
|
|
2982
3044
|
};
|
|
2983
3045
|
}
|
|
2984
3046
|
};
|
|
2985
|
-
},
|
|
3047
|
+
}, it = function(e) {
|
|
2986
3048
|
const t = Ds(e);
|
|
2987
3049
|
return {
|
|
2988
3050
|
/**
|
|
@@ -2993,8 +3055,8 @@ const Ds = function(e) {
|
|
|
2993
3055
|
* @throws {RequiredError}
|
|
2994
3056
|
*/
|
|
2995
3057
|
async healthz(r, s) {
|
|
2996
|
-
const n = await t.healthz(r, s),
|
|
2997
|
-
return (i, l) => b(n,
|
|
3058
|
+
const n = await t.healthz(r, s), o = e?.serverIndex ?? 0, a = T["HealthcheckApi.healthz"]?.[o]?.url;
|
|
3059
|
+
return (i, l) => b(n, O, R, e)(i, a || l);
|
|
2998
3060
|
},
|
|
2999
3061
|
/**
|
|
3000
3062
|
* 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`).
|
|
@@ -3004,12 +3066,12 @@ const Ds = function(e) {
|
|
|
3004
3066
|
* @throws {RequiredError}
|
|
3005
3067
|
*/
|
|
3006
3068
|
async readyz(r, s) {
|
|
3007
|
-
const n = await t.readyz(r, s),
|
|
3008
|
-
return (i, l) => b(n,
|
|
3069
|
+
const n = await t.readyz(r, s), o = e?.serverIndex ?? 0, a = T["HealthcheckApi.readyz"]?.[o]?.url;
|
|
3070
|
+
return (i, l) => b(n, O, R, e)(i, a || l);
|
|
3009
3071
|
}
|
|
3010
3072
|
};
|
|
3011
3073
|
};
|
|
3012
|
-
let Bs = class extends
|
|
3074
|
+
let Bs = class extends Q {
|
|
3013
3075
|
/**
|
|
3014
3076
|
* 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/).
|
|
3015
3077
|
* @summary Server healthcheck
|
|
@@ -3018,7 +3080,7 @@ let Bs = class extends ee {
|
|
|
3018
3080
|
* @throws {RequiredError}
|
|
3019
3081
|
*/
|
|
3020
3082
|
healthz(t, r) {
|
|
3021
|
-
return
|
|
3083
|
+
return it(this.configuration).healthz(t, r).then((s) => s(this.axios, this.basePath));
|
|
3022
3084
|
}
|
|
3023
3085
|
/**
|
|
3024
3086
|
* 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`).
|
|
@@ -3028,7 +3090,7 @@ let Bs = class extends ee {
|
|
|
3028
3090
|
* @throws {RequiredError}
|
|
3029
3091
|
*/
|
|
3030
3092
|
readyz(t, r) {
|
|
3031
|
-
return
|
|
3093
|
+
return it(this.configuration).readyz(t, r).then((s) => s(this.axios, this.basePath));
|
|
3032
3094
|
}
|
|
3033
3095
|
};
|
|
3034
3096
|
class Hs {
|
|
@@ -3042,12 +3104,12 @@ class Hs {
|
|
|
3042
3104
|
return (await this.superClass.readyz(t, r)).data;
|
|
3043
3105
|
}
|
|
3044
3106
|
}
|
|
3045
|
-
class
|
|
3046
|
-
constructor(t, r =
|
|
3047
|
-
this.basePath = r, this.axios = s, this.matchApi = new
|
|
3107
|
+
class dn {
|
|
3108
|
+
constructor(t, r = R, s = O) {
|
|
3109
|
+
this.basePath = r, this.axios = s, this.matchApi = new Ts(t, r, s), this.groupApi = new Ss(t, r, s), this.personApi = new ys(t, r, s), this.searchApi = new gs(t, r, s), this.livenessApi = new xs(t, r, s), this.healthcheckApi = new Hs(t, r, s);
|
|
3048
3110
|
}
|
|
3049
3111
|
}
|
|
3050
|
-
class
|
|
3112
|
+
class un {
|
|
3051
3113
|
constructor(t = {}) {
|
|
3052
3114
|
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 = {
|
|
3053
3115
|
...t.baseOptions,
|
|
@@ -3072,7 +3134,7 @@ class dn {
|
|
|
3072
3134
|
}
|
|
3073
3135
|
}
|
|
3074
3136
|
export {
|
|
3075
|
-
|
|
3137
|
+
un as Configuration,
|
|
3076
3138
|
ds as FaceAttribute,
|
|
3077
3139
|
us as FaceImageQualityAlignType,
|
|
3078
3140
|
ps as FaceImageQualityGroups,
|
|
@@ -3081,14 +3143,14 @@ export {
|
|
|
3081
3143
|
Es as FaceQualityConfigName,
|
|
3082
3144
|
As as FaceQualityScenarios,
|
|
3083
3145
|
Os as FaceSDKResultCode,
|
|
3084
|
-
|
|
3146
|
+
dn as FaceSdk,
|
|
3085
3147
|
_s as FilterOp,
|
|
3086
3148
|
Ss as GroupApi,
|
|
3087
3149
|
Hs as HealthcheckApi,
|
|
3088
|
-
|
|
3150
|
+
Vt as ImageSource,
|
|
3089
3151
|
xs as Liveness20Api,
|
|
3090
3152
|
ms as LivenessType,
|
|
3091
|
-
|
|
3153
|
+
Ts as MatchApi,
|
|
3092
3154
|
ys as PersonApi,
|
|
3093
3155
|
gs as SearchApi
|
|
3094
3156
|
};
|