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