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