bry-biometric-collector 3.3.0-RC11 → 3.3.0
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/{CaptureBar_e46c45ec_3.3.0-RC11.js → CaptureBar_c06537b7_3.3.0.js} +1 -1
- package/dist/{DocumentCollector_de7baafa_3.3.0-RC11.js → DocumentCollector_8466b150_3.3.0.js} +171 -169
- package/dist/{FaceCollector_536c7465_3.3.0-RC11.js → FaceCollector_ef8c1d72_3.3.0.js} +679 -679
- package/dist/{FaceOval_73747bd6_3.3.0-RC11.js → FaceOval_8e4052f2_3.3.0.js} +2 -2
- package/dist/StreamCollector_786a300a_3.3.0.js +339 -0
- package/dist/{ValidationAlert_bba56eb3_3.3.0-RC11.js → ValidationAlert_f888dfba_3.3.0.js} +1 -1
- package/dist/{___vite-browser-external_commonjs-proxy_07f4ac3b_3.3.0-RC11.js → ___vite-browser-external_commonjs-proxy_c43aa35e_3.3.0.js} +41 -41
- package/dist/bry-biometric-collector-main.js +2 -2
- package/dist/{fingersApi_da2bebe6_3.3.0-RC11.js → fingersApi_affad03e_3.3.0.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{index_fcfc4554_3.3.0-RC11.js → index_4b99238a_3.3.0.js} +3 -3
- package/dist/{index_6fff4b84_3.3.0-RC11.js → index_d197fdcb_3.3.0.js} +3 -3
- package/dist/{main_f17fc861_3.3.0-RC11.js → main_bafbae03_3.3.0.js} +36 -37
- package/package.json +1 -1
- package/dist/StreamCollector_1adea6c1_3.3.0-RC11.js +0 -324
- /package/dist/{en-us_c02e99cd_3.3.0-RC11.js → en-us_c02e99cd_3.3.0.js} +0 -0
- /package/dist/{es-cl_6f3eda53_3.3.0-RC11.js → es-cl_6f3eda53_3.3.0.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_3.3.0-RC11.js → face_api_0e3ce8c8_3.3.0.js} +0 -0
- /package/dist/{index-idlf-detector_39cfdffa_3.3.0-RC11.js → index-idlf-detector_39cfdffa_3.3.0.js} +0 -0
- /package/dist/{index-idlf-detector_a819b3c8_3.3.0-RC11.js → index-idlf-detector_a819b3c8_3.3.0.js} +0 -0
- /package/dist/{pt-br_e7d46668_3.3.0-RC11.js → pt-br_e7d46668_3.3.0.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as z, x as D, y as M, z as T, B as v, C as g, O as A, E as x, a1 as E, a2 as b, a3 as B, a0 as d, H as C, I as W,
|
|
2
|
-
import { W as K } from "./
|
|
1
|
+
import { S as z, x as D, y as M, z as T, B as v, C as g, O as A, E as x, a1 as E, a2 as b, a3 as B, a0 as d, H as C, I as W, bw as _, J as F, a8 as O, K as R, aB as k, D as j, G as n, bk as S, X as q, Z as G, _ as I, a4 as J } from "./main_bafbae03_3.3.0.js";
|
|
2
|
+
import { W as K } from "./ValidationAlert_f888dfba_3.3.0.js";
|
|
3
3
|
function N(a) {
|
|
4
4
|
let e, t, o, r = (
|
|
5
5
|
/*showWatermark*/
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { S as ve, x as he, y as we, z as Ee, B as R, C as I, D as A, N as M, E as se, bd as f, G as ie, X as D, a0 as g, a1 as Z, a2 as h, a3 as J, H as oe, I as _, aa as V, am as Y, au as x, av as $, ah as L, T as E, ar as z, a9 as ee, aA as ye, f as Ce, aB as m, aF as Ie, l as te, aK as Le, aM as ae, b4 as ze, Z as O, _ as T, a4 as N, w as De, aQ as Se, bc as ke } from "./main_bafbae03_3.3.0.js";
|
|
2
|
+
import { V as Fe, C as Be } from "./ValidationAlert_f888dfba_3.3.0.js";
|
|
3
|
+
import { F as Ve } from "./FaceOval_8e4052f2_3.3.0.js";
|
|
4
|
+
import "./face_api_0e3ce8c8_3.3.0.js";
|
|
5
|
+
function re(n) {
|
|
6
|
+
let t, a, r, l, b;
|
|
7
|
+
return a = new Fe({}), l = new Ve({
|
|
8
|
+
props: { borderColor: (
|
|
9
|
+
/*ovalColor*/
|
|
10
|
+
n[5]
|
|
11
|
+
) }
|
|
12
|
+
}), {
|
|
13
|
+
c() {
|
|
14
|
+
t = A("div"), O(a.$$.fragment), r = M(), O(l.$$.fragment), ie(t, "class", "absolute inset-0 flex flex-col items-center mt-[4%] mb-[8%] z-50");
|
|
15
|
+
},
|
|
16
|
+
m(c, o) {
|
|
17
|
+
R(c, t, o), T(a, t, null), D(t, r), T(l, t, null), b = !0;
|
|
18
|
+
},
|
|
19
|
+
p(c, o) {
|
|
20
|
+
const s = {};
|
|
21
|
+
o[0] & /*ovalColor*/
|
|
22
|
+
32 && (s.borderColor = /*ovalColor*/
|
|
23
|
+
c[5]), l.$set(s);
|
|
24
|
+
},
|
|
25
|
+
i(c) {
|
|
26
|
+
b || (g(a.$$.fragment, c), g(l.$$.fragment, c), b = !0);
|
|
27
|
+
},
|
|
28
|
+
o(c) {
|
|
29
|
+
h(a.$$.fragment, c), h(l.$$.fragment, c), b = !1;
|
|
30
|
+
},
|
|
31
|
+
d(c) {
|
|
32
|
+
c && oe(t), N(a), N(l);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function ne(n) {
|
|
37
|
+
let t, a;
|
|
38
|
+
return t = new Be({ props: { handler: (
|
|
39
|
+
/*func*/
|
|
40
|
+
n[12]
|
|
41
|
+
) } }), {
|
|
42
|
+
c() {
|
|
43
|
+
O(t.$$.fragment);
|
|
44
|
+
},
|
|
45
|
+
m(r, l) {
|
|
46
|
+
T(t, r, l), a = !0;
|
|
47
|
+
},
|
|
48
|
+
p: se,
|
|
49
|
+
i(r) {
|
|
50
|
+
a || (g(t.$$.fragment, r), a = !0);
|
|
51
|
+
},
|
|
52
|
+
o(r) {
|
|
53
|
+
h(t.$$.fragment, r), a = !1;
|
|
54
|
+
},
|
|
55
|
+
d(r) {
|
|
56
|
+
N(t, r);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function Ae(n) {
|
|
61
|
+
let t, a, r, l, b, c, o = (
|
|
62
|
+
/*$ready*/
|
|
63
|
+
n[7] && !/*idrndClosed*/
|
|
64
|
+
n[3] && !/*idrndLoading*/
|
|
65
|
+
n[4] && re(n)
|
|
66
|
+
), s = (
|
|
67
|
+
/*idrndClosed*/
|
|
68
|
+
n[3] && !/*idrndLoading*/
|
|
69
|
+
n[4] && ne(n)
|
|
70
|
+
);
|
|
71
|
+
return {
|
|
72
|
+
c() {
|
|
73
|
+
t = A("div"), o && o.c(), a = M(), r = A("idlive-face-capture"), b = M(), s && s.c(), this.c = se, f(r, "class", "w-full h-full"), f(r, "mask_hidden", ""), f(r, "auto_close_disabled", ""), f(
|
|
74
|
+
r,
|
|
75
|
+
"device_id",
|
|
76
|
+
/*$selectedVideoDeviceId*/
|
|
77
|
+
n[6]
|
|
78
|
+
), f(r, "face_not_centered_check_enabled", ""), f(r, "sunglasses_detected_check_enabled", ""), f(r, "mouth_open_check_enabled", ""), f(r, "face_blurry_check_enabled", ""), f(r, "dark_image_check_enabled", ""), f(r, "eyes_closed_check_enabled", ""), f(
|
|
79
|
+
r,
|
|
80
|
+
"payload_size",
|
|
81
|
+
/*livenessBlobSize*/
|
|
82
|
+
n[1]
|
|
83
|
+
), f(r, "style", l = /*idrndClosed*/
|
|
84
|
+
n[3] ? "opacity: 0; pointer-events: none;" : "opacity: 1;"), ie(t, "class", "flex justify-center w-full h-full relative bg-black");
|
|
85
|
+
},
|
|
86
|
+
m(i, u) {
|
|
87
|
+
R(i, t, u), o && o.m(t, null), D(t, a), D(t, r), n[11](r), D(t, b), s && s.m(t, null), c = !0;
|
|
88
|
+
},
|
|
89
|
+
p(i, u) {
|
|
90
|
+
/*$ready*/
|
|
91
|
+
i[7] && !/*idrndClosed*/
|
|
92
|
+
i[3] && !/*idrndLoading*/
|
|
93
|
+
i[4] ? o ? (o.p(i, u), u[0] & /*$ready, idrndClosed, idrndLoading*/
|
|
94
|
+
152 && g(o, 1)) : (o = re(i), o.c(), g(o, 1), o.m(t, a)) : o && (Z(), h(o, 1, 1, () => {
|
|
95
|
+
o = null;
|
|
96
|
+
}), J()), (!c || u[0] & /*$selectedVideoDeviceId*/
|
|
97
|
+
64) && f(
|
|
98
|
+
r,
|
|
99
|
+
"device_id",
|
|
100
|
+
/*$selectedVideoDeviceId*/
|
|
101
|
+
i[6]
|
|
102
|
+
), (!c || u[0] & /*livenessBlobSize*/
|
|
103
|
+
2) && f(
|
|
104
|
+
r,
|
|
105
|
+
"payload_size",
|
|
106
|
+
/*livenessBlobSize*/
|
|
107
|
+
i[1]
|
|
108
|
+
), (!c || u[0] & /*idrndClosed*/
|
|
109
|
+
8 && l !== (l = /*idrndClosed*/
|
|
110
|
+
i[3] ? "opacity: 0; pointer-events: none;" : "opacity: 1;")) && f(r, "style", l), /*idrndClosed*/
|
|
111
|
+
i[3] && !/*idrndLoading*/
|
|
112
|
+
i[4] ? s ? (s.p(i, u), u[0] & /*idrndClosed, idrndLoading*/
|
|
113
|
+
24 && g(s, 1)) : (s = ne(i), s.c(), g(s, 1), s.m(t, null)) : s && (Z(), h(s, 1, 1, () => {
|
|
114
|
+
s = null;
|
|
115
|
+
}), J());
|
|
116
|
+
},
|
|
117
|
+
i(i) {
|
|
118
|
+
c || (g(o), g(s), c = !0);
|
|
119
|
+
},
|
|
120
|
+
o(i) {
|
|
121
|
+
h(o), h(s), c = !1;
|
|
122
|
+
},
|
|
123
|
+
d(i) {
|
|
124
|
+
i && oe(t), o && o.d(), n[11](null), s && s.d();
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
function Me() {
|
|
129
|
+
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.3.0.js") : import("./index-idlf-detector_a819b3c8_3.3.0.js");
|
|
130
|
+
}
|
|
131
|
+
function Oe(n, t, a) {
|
|
132
|
+
let r, l, b, c, o, s, i, u, S;
|
|
133
|
+
_(n, V, (e) => a(6, r = e)), _(n, Y, (e) => a(16, l = e)), _(n, x, (e) => a(18, c = e)), _(n, $, (e) => a(19, o = e)), _(n, L, (e) => a(20, s = e)), _(n, E, (e) => a(7, i = e)), _(n, z, (e) => a(21, u = e)), _(n, ee, (e) => a(22, S = e));
|
|
134
|
+
let { livenessBlobSize: K } = t, { cameraDeviceId: y } = t;
|
|
135
|
+
const k = De("data:image/png;base64");
|
|
136
|
+
_(n, k, (e) => a(17, b = e));
|
|
137
|
+
let { widgetInstance: d } = t, P = !1, p = !0, v = !0, F = !1, w = !0, B = "text-blue-400";
|
|
138
|
+
ye(async () => {
|
|
139
|
+
Ce("Mounting Stream Collector!"), m(z, u = !0, u), m(E, i = !1, i), ce(), Me(), de(), le();
|
|
140
|
+
});
|
|
141
|
+
function ce() {
|
|
142
|
+
F = !1, m(ee, S = Ie.FRONT_CAMERA, S), m(L, s = "faceCollector.stayInFrame", s);
|
|
143
|
+
}
|
|
144
|
+
function le() {
|
|
145
|
+
window.addEventListener("focus", W), window.addEventListener("blur", j), document.addEventListener("visibilitychange", H);
|
|
146
|
+
}
|
|
147
|
+
function W() {
|
|
148
|
+
w = !0;
|
|
149
|
+
}
|
|
150
|
+
function j() {
|
|
151
|
+
w = !1;
|
|
152
|
+
}
|
|
153
|
+
function H() {
|
|
154
|
+
document.hidden ? w = !1 : w = !0;
|
|
155
|
+
}
|
|
156
|
+
function de() {
|
|
157
|
+
d.addEventListener("open", async (e) => {
|
|
158
|
+
a(3, p = !1), a(4, v = !1), m(E, i = !0, i), m(z, u = !1, u), window.dispatchEvent(new CustomEvent(
|
|
159
|
+
"stream-ready",
|
|
160
|
+
{
|
|
161
|
+
detail: {
|
|
162
|
+
message: "Stream de vídeo pronto para captura"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
));
|
|
166
|
+
}), d.addEventListener("error", (e) => {
|
|
167
|
+
te("Stream Collector error:", e), a(3, p = !0), a(4, v = !1), m(E, i = !1, i), window.dispatchEvent(new CustomEvent(
|
|
168
|
+
"stream-error",
|
|
169
|
+
{
|
|
170
|
+
detail: {
|
|
171
|
+
message: e.detail[0]?.message || "Erro na câmera",
|
|
172
|
+
error: e
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
));
|
|
176
|
+
}), d.addEventListener("faceDetection", (e) => {
|
|
177
|
+
m(
|
|
178
|
+
L,
|
|
179
|
+
s = e.detail[0].errors[0] ? "faceCollector.stayInFrame" : "faceCollector.capturing",
|
|
180
|
+
s
|
|
181
|
+
), a(5, B = e.detail[0].errors[0] ? "text-blue-400" : "text-green-400");
|
|
182
|
+
}), d.addEventListener("detection", (e) => {
|
|
183
|
+
m(
|
|
184
|
+
L,
|
|
185
|
+
s = e.detail[0].errors[0] ? "faceCollector.stayInFrame" : "faceCollector.capturing",
|
|
186
|
+
s
|
|
187
|
+
), a(5, B = e.detail[0].errors[0] ? "text-blue-400" : "text-green-400");
|
|
188
|
+
}), d.addEventListener("close", async (e) => {
|
|
189
|
+
a(3, p = !0), a(4, v = !1), w || window.dispatchEvent(new CustomEvent(
|
|
190
|
+
"stream-lost-focus",
|
|
191
|
+
{
|
|
192
|
+
detail: {
|
|
193
|
+
message: "Stream de vídeo foi fechado por perda de foco"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
));
|
|
197
|
+
}), d.addEventListener("initialize", async (e) => {
|
|
198
|
+
P = !0, m($, o = !0, o);
|
|
199
|
+
try {
|
|
200
|
+
d.setLicense(Le, "faceDetector");
|
|
201
|
+
} catch (C) {
|
|
202
|
+
te("Error setting license:", C);
|
|
203
|
+
}
|
|
204
|
+
!F && P && await U();
|
|
205
|
+
}), d.addEventListener("capture", async (e) => {
|
|
206
|
+
const { encryptedFile: C, photo: ge } = e.detail[0];
|
|
207
|
+
m(x, c = C, c);
|
|
208
|
+
const G = (await ae(ge)).split(",");
|
|
209
|
+
F = !0, m(k, b = G[0], b), m(Y, l = G[1], l);
|
|
210
|
+
try {
|
|
211
|
+
window.dispatchEvent(new CustomEvent(
|
|
212
|
+
"stream-capture",
|
|
213
|
+
{
|
|
214
|
+
detail: {
|
|
215
|
+
image: l,
|
|
216
|
+
blob: (await ae(C)).split(",")[1],
|
|
217
|
+
status: "success"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
));
|
|
221
|
+
} catch (Q) {
|
|
222
|
+
let X = Q instanceof Error ? Q.message : "UNKNOWN", pe = Se[X] || "Erro desconhecido";
|
|
223
|
+
window.dispatchEvent(new CustomEvent(
|
|
224
|
+
"stream-capture",
|
|
225
|
+
{
|
|
226
|
+
detail: {
|
|
227
|
+
errorCode: X,
|
|
228
|
+
translatedError: pe,
|
|
229
|
+
status: "error"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
));
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
async function U() {
|
|
237
|
+
y && m(V, r = y, r), a(4, v = !0), p && d && "openCamera" in d && d.openCamera(), a(3, p = !1);
|
|
238
|
+
}
|
|
239
|
+
async function ue() {
|
|
240
|
+
d.takePhoto();
|
|
241
|
+
}
|
|
242
|
+
async function q() {
|
|
243
|
+
!p && !v || (a(4, v = !0), m(V, r = "", r), await U());
|
|
244
|
+
}
|
|
245
|
+
const fe = E.subscribe((e) => {
|
|
246
|
+
e && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
|
|
247
|
+
}), me = z.subscribe((e) => {
|
|
248
|
+
e && window.dispatchEvent(new CustomEvent("brycc-face-initialized"));
|
|
249
|
+
});
|
|
250
|
+
ze(() => {
|
|
251
|
+
fe(), me(), window.removeEventListener("focus", W), window.removeEventListener("blur", j), document.removeEventListener("visibilitychange", H);
|
|
252
|
+
});
|
|
253
|
+
function be(e) {
|
|
254
|
+
ke[e ? "unshift" : "push"](() => {
|
|
255
|
+
d = e, a(0, d);
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
const _e = async () => {
|
|
259
|
+
await q();
|
|
260
|
+
};
|
|
261
|
+
return n.$$set = (e) => {
|
|
262
|
+
"livenessBlobSize" in e && a(1, K = e.livenessBlobSize), "cameraDeviceId" in e && a(9, y = e.cameraDeviceId), "widgetInstance" in e && a(0, d = e.widgetInstance);
|
|
263
|
+
}, [
|
|
264
|
+
d,
|
|
265
|
+
K,
|
|
266
|
+
q,
|
|
267
|
+
p,
|
|
268
|
+
v,
|
|
269
|
+
B,
|
|
270
|
+
r,
|
|
271
|
+
i,
|
|
272
|
+
k,
|
|
273
|
+
y,
|
|
274
|
+
ue,
|
|
275
|
+
be,
|
|
276
|
+
_e
|
|
277
|
+
];
|
|
278
|
+
}
|
|
279
|
+
class Te extends ve {
|
|
280
|
+
constructor(t) {
|
|
281
|
+
super(), he(
|
|
282
|
+
this,
|
|
283
|
+
{
|
|
284
|
+
target: this.shadowRoot,
|
|
285
|
+
props: Ee(this.attributes),
|
|
286
|
+
customElement: !0
|
|
287
|
+
},
|
|
288
|
+
Oe,
|
|
289
|
+
Ae,
|
|
290
|
+
we,
|
|
291
|
+
{
|
|
292
|
+
livenessBlobSize: 1,
|
|
293
|
+
cameraDeviceId: 9,
|
|
294
|
+
widgetInstance: 0,
|
|
295
|
+
capture: 10,
|
|
296
|
+
reOpenCamera: 2
|
|
297
|
+
},
|
|
298
|
+
null,
|
|
299
|
+
[-1, -1]
|
|
300
|
+
), t && (t.target && R(t.target, this, t.anchor), t.props && (this.$set(t.props), I()));
|
|
301
|
+
}
|
|
302
|
+
static get observedAttributes() {
|
|
303
|
+
return [
|
|
304
|
+
"livenessBlobSize",
|
|
305
|
+
"cameraDeviceId",
|
|
306
|
+
"widgetInstance",
|
|
307
|
+
"capture",
|
|
308
|
+
"reOpenCamera"
|
|
309
|
+
];
|
|
310
|
+
}
|
|
311
|
+
get livenessBlobSize() {
|
|
312
|
+
return this.$$.ctx[1];
|
|
313
|
+
}
|
|
314
|
+
set livenessBlobSize(t) {
|
|
315
|
+
this.$$set({ livenessBlobSize: t }), I();
|
|
316
|
+
}
|
|
317
|
+
get cameraDeviceId() {
|
|
318
|
+
return this.$$.ctx[9];
|
|
319
|
+
}
|
|
320
|
+
set cameraDeviceId(t) {
|
|
321
|
+
this.$$set({ cameraDeviceId: t }), I();
|
|
322
|
+
}
|
|
323
|
+
get widgetInstance() {
|
|
324
|
+
return this.$$.ctx[0];
|
|
325
|
+
}
|
|
326
|
+
set widgetInstance(t) {
|
|
327
|
+
this.$$set({ widgetInstance: t }), I();
|
|
328
|
+
}
|
|
329
|
+
get capture() {
|
|
330
|
+
return this.$$.ctx[10];
|
|
331
|
+
}
|
|
332
|
+
get reOpenCamera() {
|
|
333
|
+
return this.$$.ctx[2];
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
customElements.define("stream-collector", Te);
|
|
337
|
+
export {
|
|
338
|
+
Te as default
|
|
339
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as B, x as V, y as Z, z as H, B as n, C as Q, O as Y, E as d, H as c, I as C, a8 as P, $ as K, Q as q,
|
|
1
|
+
import { S as B, x as V, y as Z, z as H, B as n, C as Q, O as Y, E as d, H as c, I as C, a8 as P, $ as K, Q as q, br as k, bs as F, f as R, D as w, G as N, bk as S, N as x, U as L, bt as T, X as I, b7 as h, bu as E, Y as y, b8 as $, M as O, V as ee, ap as te, ah as le, K as U } from "./main_bafbae03_3.3.0.js";
|
|
2
2
|
function ae(u) {
|
|
3
3
|
let e;
|
|
4
4
|
function i(l, M) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { by as D, bz as V } from "./main_bafbae03_3.3.0.js";
|
|
2
2
|
function H(e, t) {
|
|
3
3
|
for (var n = 0; n < t.length; n++) {
|
|
4
4
|
const r = t[n];
|
|
@@ -317,17 +317,17 @@ function w(e) {
|
|
|
317
317
|
}
|
|
318
318
|
f.isLong = w;
|
|
319
319
|
var I = {}, B = {};
|
|
320
|
-
function
|
|
320
|
+
function m(e, t) {
|
|
321
321
|
var n, r, s;
|
|
322
322
|
return t ? (e >>>= 0, (s = 0 <= e && e < 256) && (r = B[e], r) ? r : (n = o(e, (e | 0) < 0 ? -1 : 0, !0), s && (B[e] = n), n)) : (e |= 0, (s = -128 <= e && e < 128) && (r = I[e], r) ? r : (n = o(e, e < 0 ? -1 : 0, !1), s && (I[e] = n), n));
|
|
323
323
|
}
|
|
324
|
-
f.fromInt =
|
|
324
|
+
f.fromInt = m;
|
|
325
325
|
function O(e, t) {
|
|
326
326
|
if (isNaN(e))
|
|
327
|
-
return t ?
|
|
327
|
+
return t ? b : y;
|
|
328
328
|
if (t) {
|
|
329
329
|
if (e < 0)
|
|
330
|
-
return
|
|
330
|
+
return b;
|
|
331
331
|
if (e >= Z)
|
|
332
332
|
return j;
|
|
333
333
|
} else {
|
|
@@ -348,7 +348,7 @@ function A(e, t, n) {
|
|
|
348
348
|
if (e.length === 0)
|
|
349
349
|
throw Error("empty string");
|
|
350
350
|
if (e === "NaN" || e === "Infinity" || e === "+Infinity" || e === "-Infinity")
|
|
351
|
-
return
|
|
351
|
+
return y;
|
|
352
352
|
if (typeof t == "number" ? (n = t, t = !1) : t = !!t, n = n || 10, n < 2 || 36 < n)
|
|
353
353
|
throw RangeError("radix");
|
|
354
354
|
var r;
|
|
@@ -356,7 +356,7 @@ function A(e, t, n) {
|
|
|
356
356
|
throw Error("interior hyphen");
|
|
357
357
|
if (r === 0)
|
|
358
358
|
return A(e.substring(1), t, n).neg();
|
|
359
|
-
for (var s = O(T(n, 8)), h =
|
|
359
|
+
for (var s = O(T(n, 8)), h = y, u = 0; u < e.length; u += 8) {
|
|
360
360
|
var F = Math.min(8, e.length - u), E = parseInt(e.substring(u, u + F), n);
|
|
361
361
|
if (F < 8) {
|
|
362
362
|
var l = O(T(n, F));
|
|
@@ -367,19 +367,19 @@ function A(e, t, n) {
|
|
|
367
367
|
return h.unsigned = t, h;
|
|
368
368
|
}
|
|
369
369
|
f.fromString = A;
|
|
370
|
-
function
|
|
370
|
+
function L(e, t) {
|
|
371
371
|
return typeof e == "number" ? O(e, t) : typeof e == "string" ? A(e, t) : o(e.low, e.high, typeof t == "boolean" ? t : e.unsigned);
|
|
372
372
|
}
|
|
373
|
-
f.fromValue =
|
|
374
|
-
var M = 65536, C = 1 << 24, d = M * M, Z = d * d, P = Z / 2, S =
|
|
375
|
-
f.ZERO =
|
|
376
|
-
var
|
|
377
|
-
f.UZERO =
|
|
378
|
-
var
|
|
379
|
-
f.ONE =
|
|
380
|
-
var p =
|
|
373
|
+
f.fromValue = L;
|
|
374
|
+
var M = 65536, C = 1 << 24, d = M * M, Z = d * d, P = Z / 2, S = m(C), y = m(0);
|
|
375
|
+
f.ZERO = y;
|
|
376
|
+
var b = m(0, !0);
|
|
377
|
+
f.UZERO = b;
|
|
378
|
+
var q = m(1);
|
|
379
|
+
f.ONE = q;
|
|
380
|
+
var p = m(1, !0);
|
|
381
381
|
f.UONE = p;
|
|
382
|
-
var U =
|
|
382
|
+
var U = m(-1);
|
|
383
383
|
f.NEG_ONE = U;
|
|
384
384
|
var R = o(-1, 2147483647, !1);
|
|
385
385
|
f.MAX_VALUE = R;
|
|
@@ -450,7 +450,7 @@ i.isEven = function() {
|
|
|
450
450
|
return (this.low & 1) === 0;
|
|
451
451
|
};
|
|
452
452
|
i.equals = function(t) {
|
|
453
|
-
return w(t) || (t =
|
|
453
|
+
return w(t) || (t = L(t)), this.unsigned !== t.unsigned && this.high >>> 31 === 1 && t.high >>> 31 === 1 ? !1 : this.high === t.high && this.low === t.low;
|
|
454
454
|
};
|
|
455
455
|
i.eq = i.equals;
|
|
456
456
|
i.notEquals = function(t) {
|
|
@@ -492,29 +492,29 @@ i.greaterThanOrEqual = function(t) {
|
|
|
492
492
|
i.gte = i.greaterThanOrEqual;
|
|
493
493
|
i.ge = i.greaterThanOrEqual;
|
|
494
494
|
i.compare = function(t) {
|
|
495
|
-
if (w(t) || (t =
|
|
495
|
+
if (w(t) || (t = L(t)), this.eq(t))
|
|
496
496
|
return 0;
|
|
497
497
|
var n = this.isNegative(), r = t.isNegative();
|
|
498
498
|
return n && !r ? -1 : !n && r ? 1 : this.unsigned ? t.high >>> 0 > this.high >>> 0 || t.high === this.high && t.low >>> 0 > this.low >>> 0 ? -1 : 1 : this.sub(t).isNegative() ? -1 : 1;
|
|
499
499
|
};
|
|
500
500
|
i.comp = i.compare;
|
|
501
501
|
i.negate = function() {
|
|
502
|
-
return !this.unsigned && this.eq(c) ? c : this.not().add(
|
|
502
|
+
return !this.unsigned && this.eq(c) ? c : this.not().add(q);
|
|
503
503
|
};
|
|
504
504
|
i.neg = i.negate;
|
|
505
505
|
i.add = function(t) {
|
|
506
|
-
w(t) || (t =
|
|
506
|
+
w(t) || (t = L(t));
|
|
507
507
|
var n = this.high >>> 16, r = this.high & 65535, s = this.low >>> 16, h = this.low & 65535, u = t.high >>> 16, F = t.high & 65535, E = t.low >>> 16, l = t.low & 65535, g = 0, N = 0, a = 0, _ = 0;
|
|
508
508
|
return _ += h + l, a += _ >>> 16, _ &= 65535, a += s + E, N += a >>> 16, a &= 65535, N += r + F, g += N >>> 16, N &= 65535, g += n + u, g &= 65535, o(a << 16 | _, g << 16 | N, this.unsigned);
|
|
509
509
|
};
|
|
510
510
|
i.subtract = function(t) {
|
|
511
|
-
return w(t) || (t =
|
|
511
|
+
return w(t) || (t = L(t)), this.add(t.neg());
|
|
512
512
|
};
|
|
513
513
|
i.sub = i.subtract;
|
|
514
514
|
i.multiply = function(t) {
|
|
515
515
|
if (this.isZero())
|
|
516
|
-
return
|
|
517
|
-
if (w(t) || (t =
|
|
516
|
+
return y;
|
|
517
|
+
if (w(t) || (t = L(t)), v) {
|
|
518
518
|
var n = v.mul(
|
|
519
519
|
this.low,
|
|
520
520
|
this.high,
|
|
@@ -524,11 +524,11 @@ i.multiply = function(t) {
|
|
|
524
524
|
return o(n, v.get_high(), this.unsigned);
|
|
525
525
|
}
|
|
526
526
|
if (t.isZero())
|
|
527
|
-
return
|
|
527
|
+
return y;
|
|
528
528
|
if (this.eq(c))
|
|
529
|
-
return t.isOdd() ? c :
|
|
529
|
+
return t.isOdd() ? c : y;
|
|
530
530
|
if (t.eq(c))
|
|
531
|
-
return this.isOdd() ? c :
|
|
531
|
+
return this.isOdd() ? c : y;
|
|
532
532
|
if (this.isNegative())
|
|
533
533
|
return t.isNegative() ? this.neg().mul(t.neg()) : this.neg().mul(t).neg();
|
|
534
534
|
if (t.isNegative())
|
|
@@ -540,7 +540,7 @@ i.multiply = function(t) {
|
|
|
540
540
|
};
|
|
541
541
|
i.mul = i.multiply;
|
|
542
542
|
i.divide = function(t) {
|
|
543
|
-
if (w(t) || (t =
|
|
543
|
+
if (w(t) || (t = L(t)), t.isZero())
|
|
544
544
|
throw Error("division by zero");
|
|
545
545
|
if (v) {
|
|
546
546
|
if (!this.unsigned && this.high === -2147483648 && t.low === -1 && t.high === -1)
|
|
@@ -554,41 +554,41 @@ i.divide = function(t) {
|
|
|
554
554
|
return o(n, v.get_high(), this.unsigned);
|
|
555
555
|
}
|
|
556
556
|
if (this.isZero())
|
|
557
|
-
return this.unsigned ?
|
|
557
|
+
return this.unsigned ? b : y;
|
|
558
558
|
var r, s, h;
|
|
559
559
|
if (this.unsigned) {
|
|
560
560
|
if (t.unsigned || (t = t.toUnsigned()), t.gt(this))
|
|
561
|
-
return
|
|
561
|
+
return b;
|
|
562
562
|
if (t.gt(this.shru(1)))
|
|
563
563
|
return p;
|
|
564
|
-
h =
|
|
564
|
+
h = b;
|
|
565
565
|
} else {
|
|
566
566
|
if (this.eq(c)) {
|
|
567
|
-
if (t.eq(
|
|
567
|
+
if (t.eq(q) || t.eq(U))
|
|
568
568
|
return c;
|
|
569
569
|
if (t.eq(c))
|
|
570
|
-
return
|
|
570
|
+
return q;
|
|
571
571
|
var u = this.shr(1);
|
|
572
|
-
return r = u.div(t).shl(1), r.eq(
|
|
572
|
+
return r = u.div(t).shl(1), r.eq(y) ? t.isNegative() ? q : U : (s = this.sub(t.mul(r)), h = r.add(s.div(t)), h);
|
|
573
573
|
} else if (t.eq(c))
|
|
574
|
-
return this.unsigned ?
|
|
574
|
+
return this.unsigned ? b : y;
|
|
575
575
|
if (this.isNegative())
|
|
576
576
|
return t.isNegative() ? this.neg().div(t.neg()) : this.neg().div(t).neg();
|
|
577
577
|
if (t.isNegative())
|
|
578
578
|
return this.div(t.neg()).neg();
|
|
579
|
-
h =
|
|
579
|
+
h = y;
|
|
580
580
|
}
|
|
581
581
|
for (s = this; s.gte(t); ) {
|
|
582
582
|
r = Math.max(1, Math.floor(s.toNumber() / t.toNumber()));
|
|
583
583
|
for (var F = Math.ceil(Math.log(r) / Math.LN2), E = F <= 48 ? 1 : T(2, F - 48), l = O(r), g = l.mul(t); g.isNegative() || g.gt(s); )
|
|
584
584
|
r -= E, l = O(r, this.unsigned), g = l.mul(t);
|
|
585
|
-
l.isZero() && (l =
|
|
585
|
+
l.isZero() && (l = q), h = h.add(l), s = s.sub(g);
|
|
586
586
|
}
|
|
587
587
|
return h;
|
|
588
588
|
};
|
|
589
589
|
i.div = i.divide;
|
|
590
590
|
i.modulo = function(t) {
|
|
591
|
-
if (w(t) || (t =
|
|
591
|
+
if (w(t) || (t = L(t)), v) {
|
|
592
592
|
var n = (this.unsigned ? v.rem_u : v.rem_s)(
|
|
593
593
|
this.low,
|
|
594
594
|
this.high,
|
|
@@ -605,13 +605,13 @@ i.not = function() {
|
|
|
605
605
|
return o(~this.low, ~this.high, this.unsigned);
|
|
606
606
|
};
|
|
607
607
|
i.and = function(t) {
|
|
608
|
-
return w(t) || (t =
|
|
608
|
+
return w(t) || (t = L(t)), o(this.low & t.low, this.high & t.high, this.unsigned);
|
|
609
609
|
};
|
|
610
610
|
i.or = function(t) {
|
|
611
|
-
return w(t) || (t =
|
|
611
|
+
return w(t) || (t = L(t)), o(this.low | t.low, this.high | t.high, this.unsigned);
|
|
612
612
|
};
|
|
613
613
|
i.xor = function(t) {
|
|
614
|
-
return w(t) || (t =
|
|
614
|
+
return w(t) || (t = L(t)), o(this.low ^ t.low, this.high ^ t.high, this.unsigned);
|
|
615
615
|
};
|
|
616
616
|
i.shiftLeft = function(t) {
|
|
617
617
|
return w(t) && (t = t.toInt()), (t &= 63) === 0 ? this : t < 32 ? o(this.low << t, this.high << t | this.low >>> 32 - t, this.unsigned) : o(0, this.low << t - 32, this.unsigned);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as D, $ as C, n as b, g as y, i as M, s as l, a as F, l as U, F as L, b as x, c as E, v as P, d as B, e as W, A as v, f as $, h as I, j as g, k, m as q, o as R, p as V, q as X, r as p, t as G } from "./
|
|
2
|
-
import "./face_api_0e3ce8c8_3.3.0
|
|
1
|
+
import { u as D, $ as C, n as b, g as y, i as M, s as l, a as F, l as U, F as L, b as x, c as E, v as P, d as B, e as W, A as v, f as $, h as I, j as g, k, m as q, o as R, p as V, q as X, r as p, t as G } from "./main_bafbae03_3.3.0.js";
|
|
2
|
+
import "./face_api_0e3ce8c8_3.3.0.js";
|
|
3
3
|
const f = D(C);
|
|
4
4
|
var Q = /* @__PURE__ */ ((n) => (n.EXTENSION_MISSING = "EXTENSION_MISSING", n.USER_CANCELLED = "USER_CANCELLED", n.UNAUTHORIZED_EXTENSION = "UNAUTHORIZED_EXTENSION", n.SCANNER_NOT_FOUND = "SCANNER_NOT_FOUND", n.EXTENSION_MODULE_NOT_INSTALLED = "EXTENSION_MODULE_NOT_INSTALLED", n.FINGER_NOT_REMOVED = "FINGER_NOT_REMOVED", n.UNKNOWN_ERROR = "UNKNOWN_ERROR", n.EVALUATE_BIOMETRICS_TIMEOUT = "EVALUATE_BIOMETRICS_TIMEOUT", n.EVALUATE_BIOMETRICS_NETWORK_ISSUE = "EVALUATE_BIOMETRICS_NETWORK_ISSUE", n))(Q || {});
|
|
5
5
|
class r extends Error {
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as vu, L as Au, r as se } from "./___vite-browser-external_commonjs-
|
|
2
|
-
import {
|
|
3
|
-
import "./face_api_0e3ce8c8_3.3.0
|
|
1
|
+
import { l as vu, L as Au, r as se } from "./___vite-browser-external_commonjs-proxy_c43aa35e_3.3.0.js";
|
|
2
|
+
import { bx as Xa, by as hr } from "./main_bafbae03_3.3.0.js";
|
|
3
|
+
import "./face_api_0e3ce8c8_3.3.0.js";
|
|
4
4
|
function gr(e, t) {
|
|
5
5
|
for (var n = 0; n < t.length; n++) {
|
|
6
6
|
const s = t[n];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as x1, l as b1, L as y1 } from "./___vite-browser-external_commonjs-
|
|
3
|
-
import "./face_api_0e3ce8c8_3.3.0
|
|
1
|
+
import { bx as eo } from "./main_bafbae03_3.3.0.js";
|
|
2
|
+
import { r as x1, l as b1, L as y1 } from "./___vite-browser-external_commonjs-proxy_c43aa35e_3.3.0.js";
|
|
3
|
+
import "./face_api_0e3ce8c8_3.3.0.js";
|
|
4
4
|
var pu = { exports: {} };
|
|
5
5
|
pu.exports;
|
|
6
6
|
(function(n) {
|