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