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