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