bry-biometric-collector 3.3.0-RC06 → 3.3.0-RC07
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/README.md +1 -1
- package/dist/CaptureBar_bbb41c40_3.3.0-RC07.js +893 -0
- package/dist/{DocumentCollector_ec54949a_3.3.0-RC06.js → DocumentCollector_39a1a662_3.3.0-RC07.js} +77 -76
- package/dist/{FaceCollector_d7b7f7c7_3.3.0-RC06.js → FaceCollector_5e696802_3.3.0-RC07.js} +12 -11
- package/dist/StreamCollector_89664342_3.3.0-RC07.js +348 -0
- package/dist/ValidationAlert_81eae4eb_3.3.0-RC07.js +847 -0
- package/dist/{___vite-browser-external_commonjs-proxy_ed53a62c_3.3.0-RC06.js → ___vite-browser-external_commonjs-proxy_d99dffb1_3.3.0-RC07.js} +1 -1
- package/dist/bry-biometric-collector-main.js +2 -2
- package/dist/{en-us_e83efd5d_3.3.0-RC06.js → en-us_c02e99cd_3.3.0-RC07.js} +3 -2
- package/dist/{es-cl_5939150a_3.3.0-RC06.js → es-cl_6f3eda53_3.3.0-RC07.js} +3 -2
- package/dist/{fingersApi_e3b0a904_3.3.0-RC06.js → fingersApi_0f644f7a_3.3.0-RC07.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{index_2611392a_3.3.0-RC06.js → index_8a654b33_3.3.0-RC07.js} +3 -3
- package/dist/{index_10ec837c_3.3.0-RC06.js → index_b0b3c37a_3.3.0-RC07.js} +3 -3
- package/dist/{main_1dfbf19c_3.3.0-RC06.js → main_866e3050_3.3.0-RC07.js} +6245 -6094
- package/dist/{pt-br_fae15356_3.3.0-RC06.js → pt-br_e7d46668_3.3.0-RC07.js} +9 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/ValidationAlert_ac046013_3.3.0-RC06.js +0 -1657
- /package/dist/{face_api_0e3ce8c8_3.3.0-RC06.js → face_api_0e3ce8c8_3.3.0-RC07.js} +0 -0
- /package/dist/{index-idlf-detector_39cfdffa_3.3.0-RC06.js → index-idlf-detector_39cfdffa_3.3.0-RC07.js} +0 -0
- /package/dist/{index-idlf-detector_a819b3c8_3.3.0-RC06.js → index-idlf-detector_a819b3c8_3.3.0-RC07.js} +0 -0
package/dist/{DocumentCollector_ec54949a_3.3.0-RC06.js → DocumentCollector_39a1a662_3.3.0-RC07.js}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { S as ot, x as rt, y as lt, z as ct, B as z, C as j, D, bl as se, E as Y, G as f, b7 as ne, bm as zt, a5 as w, L as S, M, bn as q, bo as
|
|
2
|
-
import {
|
|
3
|
-
import { matchDimensions as
|
|
1
|
+
import { S as ot, x as rt, y as lt, z as ct, B as z, C as j, D, bl as se, E as Y, G as f, b7 as ne, bm as zt, a5 as w, L as S, M, bn as q, bo as yi, O as oe, X as H, R as $, a3 as Te, T as ee, H as E, I as Ae, J as L, K as Oe, U as te, P as X, Q as v, W as F, Y as Mi, a8 as Ve, a9 as ve, _ as G, a1 as Ie, aa as Di, ab as we, ad as _i, ac as ue, ae as Ce, a7 as Je, af as xe, ag as jt, aj as ye, am as Ke, an as pi, ao as Rt, ap as Me, $ as Ti, ai as qe, ar as Wt, au as $e, a0 as Ai, az as Oi, aC as Ni, f as Et, aD as ki, aG as et, aH as re, m as zi, aI as tt, aV as St, e as De, l as _e, aW as Zt, aX as it, aY as ji, aM as at, bp as Ri, aZ as Pt, a_ as Wi, a$ as Ei, b0 as Si, aE as Zi, b1 as Pi, bq as Fi, b3 as Hi, d as Ft, b4 as pe, b5 as Li, b6 as Ui, b8 as le, b9 as ut, a4 as Bi, a2 as V, a6 as J, w as Ht, aF as Gi, br as Yi, bd as st, bs as Qi } from "./main_866e3050_3.3.0-RC07.js";
|
|
2
|
+
import { V as Xi, C as Vi } from "./ValidationAlert_81eae4eb_3.3.0-RC07.js";
|
|
3
|
+
import { matchDimensions as Ji, resizeResults as xi } from "./face_api_0e3ce8c8_3.3.0-RC07.js";
|
|
4
|
+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JbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIgcmVzdWx0PSJzaGFwZSIvPgogICAgPC9maWx0ZXI+CiAgICA8L2RlZnM+CiAgICA8L3N2Zz4KICAgIA==";
|
|
5
6
|
function ea(a) {
|
|
6
7
|
let e, t, s, n, r, o, g, h, d, l, u;
|
|
@@ -44,7 +45,7 @@ function ea(a) {
|
|
|
44
45
|
}
|
|
45
46
|
function ta(a, e, t) {
|
|
46
47
|
let s, n, r;
|
|
47
|
-
M(a, q, (l) => t(2, s = l)), M(a,
|
|
48
|
+
M(a, q, (l) => t(2, s = l)), M(a, yi, (l) => t(5, n = l)), M(a, oe, (l) => t(6, r = l));
|
|
48
49
|
let { videoOverlay: o } = e, { videoOverlayTransparency: g } = e, h, d;
|
|
49
50
|
return a.$$set = (l) => {
|
|
50
51
|
"videoOverlay" in l && t(0, o = l.videoOverlay), "videoOverlayTransparency" in l && t(1, g = l.videoOverlayTransparency);
|
|
@@ -99,7 +100,7 @@ class Qt extends ot {
|
|
|
99
100
|
customElements.define("document-overlay", Qt);
|
|
100
101
|
function Lt(a) {
|
|
101
102
|
let e, t;
|
|
102
|
-
return e = new
|
|
103
|
+
return e = new Ki({}), {
|
|
103
104
|
c() {
|
|
104
105
|
$(e.$$.fragment);
|
|
105
106
|
},
|
|
@@ -266,11 +267,11 @@ class Xt extends ot {
|
|
|
266
267
|
}
|
|
267
268
|
customElements.define("doc-rectangle", Xt);
|
|
268
269
|
function Ut(a) {
|
|
269
|
-
let e, t, s, n, r, o, g, h, d, l, u, c, b, I, Z, m,
|
|
270
|
+
let e, t, s, n, r, o, g, h, d, l, u, c, b, I, Z, m, y, O, A = (
|
|
270
271
|
/*$ready*/
|
|
271
272
|
a[12] && Bt(a)
|
|
272
273
|
);
|
|
273
|
-
return u = new Ui({}), b = new
|
|
274
|
+
return u = new Ui({}), b = new qi({
|
|
274
275
|
props: {
|
|
275
276
|
showConfigButton: (
|
|
276
277
|
/*showConfigButton*/
|
|
@@ -311,7 +312,7 @@ function Ut(a) {
|
|
|
311
312
|
a[11] !== F.OK;
|
|
312
313
|
},
|
|
313
314
|
m(T, R) {
|
|
314
|
-
z(T, e, R), w(e, t), w(t, s), a[34](s), w(t, r), w(t, o), a[36](o), w(e, g), w(e, h), w(h, d), A && A.m(d, null), w(h, l), ee(u, h, null), w(h, c), ee(b, h, null), m = !0,
|
|
315
|
+
z(T, e, R), w(e, t), w(t, s), a[34](s), w(t, r), w(t, o), a[36](o), w(e, g), w(e, h), w(h, d), A && A.m(d, null), w(h, l), ee(u, h, null), w(h, c), ee(b, h, null), m = !0, y || (O = [
|
|
315
316
|
le(
|
|
316
317
|
s,
|
|
317
318
|
"canplay",
|
|
@@ -325,7 +326,7 @@ function Ut(a) {
|
|
|
325
326
|
a[6],
|
|
326
327
|
{ once: !0 }
|
|
327
328
|
)
|
|
328
|
-
],
|
|
329
|
+
], y = !0);
|
|
329
330
|
},
|
|
330
331
|
p(T, R) {
|
|
331
332
|
(!m || R[0] & /*$ready*/
|
|
@@ -369,13 +370,13 @@ function Ut(a) {
|
|
|
369
370
|
L(A), L(u.$$.fragment, T), L(b.$$.fragment, T), m = !1;
|
|
370
371
|
},
|
|
371
372
|
d(T) {
|
|
372
|
-
T && S(e), a[34](null), a[36](null), A && A.d(), te(u), te(b),
|
|
373
|
+
T && S(e), a[34](null), a[36](null), A && A.d(), te(u), te(b), y = !1, ut(O);
|
|
373
374
|
}
|
|
374
375
|
};
|
|
375
376
|
}
|
|
376
377
|
function Bt(a) {
|
|
377
378
|
let e, t, s, n;
|
|
378
|
-
return e = new
|
|
379
|
+
return e = new Xi({
|
|
379
380
|
props: {
|
|
380
381
|
isCountingDown: (
|
|
381
382
|
/*isCountingDown*/
|
|
@@ -541,7 +542,7 @@ function Yt(a) {
|
|
|
541
542
|
}
|
|
542
543
|
function la(a) {
|
|
543
544
|
let e, t;
|
|
544
|
-
return e = new
|
|
545
|
+
return e = new Vi({ props: { handler: (
|
|
545
546
|
/*func*/
|
|
546
547
|
a[42]
|
|
547
548
|
) } }), {
|
|
@@ -610,12 +611,12 @@ function ua(a) {
|
|
|
610
611
|
/*$_*/
|
|
611
612
|
a[19]("faceCollector.retakePhoto") + ""
|
|
612
613
|
), u, c, b;
|
|
613
|
-
function I(
|
|
614
|
+
function I(y, O) {
|
|
614
615
|
return (
|
|
615
616
|
/*$requestResult*/
|
|
616
|
-
|
|
617
|
+
y[18] === re.TEMPLATE_EXTRACTION_ERROR ? ha : (
|
|
617
618
|
/*$saved*/
|
|
618
|
-
|
|
619
|
+
y[15] ? fa : ga
|
|
619
620
|
)
|
|
620
621
|
);
|
|
621
622
|
}
|
|
@@ -626,8 +627,8 @@ function ua(a) {
|
|
|
626
627
|
a[15] || /*$requestResult*/
|
|
627
628
|
a[18] !== re.OK, f(n, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), f(d, "id", "bry-cc-retake-button"), f(d, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), f(s, "class", "ce-dui-btn-group flex"), f(e, "class", "flex flex-col justify-between");
|
|
628
629
|
},
|
|
629
|
-
m(
|
|
630
|
-
z(
|
|
630
|
+
m(y, O) {
|
|
631
|
+
z(y, e, O), m.m(e, null), w(e, t), w(e, s), w(s, n), w(n, o), w(s, h), w(s, d), w(d, u), c || (b = [
|
|
631
632
|
le(
|
|
632
633
|
n,
|
|
633
634
|
"click",
|
|
@@ -642,18 +643,18 @@ function ua(a) {
|
|
|
642
643
|
)
|
|
643
644
|
], c = !0);
|
|
644
645
|
},
|
|
645
|
-
p(
|
|
646
|
-
Z === (Z = I(
|
|
646
|
+
p(y, O) {
|
|
647
|
+
Z === (Z = I(y)) && m ? m.p(y, O) : (m.d(1), m = Z(y), m && (m.c(), m.m(e, t))), O[0] & /*$_*/
|
|
647
648
|
524288 && r !== (r = /*$_*/
|
|
648
|
-
|
|
649
|
+
y[19]("faceCollector.finish") + "") && J(o, r), O[0] & /*$saved, $requestResult*/
|
|
649
650
|
294912 && g !== (g = /*$saved*/
|
|
650
|
-
|
|
651
|
-
|
|
651
|
+
y[15] || /*$requestResult*/
|
|
652
|
+
y[18] !== re.OK) && (n.disabled = g), O[0] & /*$_*/
|
|
652
653
|
524288 && l !== (l = /*$_*/
|
|
653
|
-
|
|
654
|
+
y[19]("faceCollector.retakePhoto") + "") && J(u, l);
|
|
654
655
|
},
|
|
655
|
-
d(
|
|
656
|
-
|
|
656
|
+
d(y) {
|
|
657
|
+
y && S(e), m.d(), c = !1, ut(b);
|
|
657
658
|
}
|
|
658
659
|
};
|
|
659
660
|
}
|
|
@@ -749,7 +750,7 @@ function ma(a) {
|
|
|
749
750
|
a[14] && Yt(a)
|
|
750
751
|
);
|
|
751
752
|
const b = [ca, la], I = [];
|
|
752
|
-
function Z(m,
|
|
753
|
+
function Z(m, y) {
|
|
753
754
|
return (
|
|
754
755
|
/*showUnconformities*/
|
|
755
756
|
m[0] && /*$captured*/
|
|
@@ -763,22 +764,22 @@ function ma(a) {
|
|
|
763
764
|
c() {
|
|
764
765
|
e = D("div"), t = D("div"), l && l.c(), s = H(), u && u.c(), n = H(), c && c.c(), r = H(), g && g.c(), h = Mi(), this.c = Y, f(t, "class", "relative mx-auto"), f(e, "class", "flex flex-col justify-between");
|
|
765
766
|
},
|
|
766
|
-
m(m,
|
|
767
|
-
z(m, e,
|
|
767
|
+
m(m, y) {
|
|
768
|
+
z(m, e, y), w(e, t), l && l.m(t, null), w(t, s), u && u.m(t, null), w(t, n), c && c.m(t, null), a[39](e), z(m, r, y), ~o && I[o].m(m, y), z(m, h, y), d = !0;
|
|
768
769
|
},
|
|
769
|
-
p(m,
|
|
770
|
+
p(m, y) {
|
|
770
771
|
/*$videoStore*/
|
|
771
|
-
m[13] ? l ? (l.p(m,
|
|
772
|
+
m[13] ? l ? (l.p(m, y), y[0] & /*$videoStore*/
|
|
772
773
|
8192 && E(l, 1)) : (l = Ut(m), l.c(), E(l, 1), l.m(t, s)) : l && (Ae(), L(l, 1, 1, () => {
|
|
773
774
|
l = null;
|
|
774
775
|
}), Oe()), !/*$ready*/
|
|
775
776
|
m[12] && /*$cameraStatusStore*/
|
|
776
|
-
m[11] === F.OK ? u ? u.p(m,
|
|
777
|
-
m[14] ? c ? c.p(m,
|
|
777
|
+
m[11] === F.OK ? u ? u.p(m, y) : (u = Gt(m), u.c(), u.m(t, n)) : u && (u.d(1), u = null), /*$captured*/
|
|
778
|
+
m[14] ? c ? c.p(m, y) : (c = Yt(m), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
|
|
778
779
|
let O = o;
|
|
779
|
-
o = Z(m), o === O ? ~o && I[o].p(m,
|
|
780
|
+
o = Z(m), o === O ? ~o && I[o].p(m, y) : (g && (Ae(), L(I[O], 1, 1, () => {
|
|
780
781
|
I[O] = null;
|
|
781
|
-
}), Oe()), ~o ? (g = I[o], g ? g.p(m,
|
|
782
|
+
}), Oe()), ~o ? (g = I[o], g ? g.p(m, y) : (g = I[o] = b[o](m), g.c()), E(g, 1), g.m(h.parentNode, h)) : g = null);
|
|
782
783
|
},
|
|
783
784
|
i(m) {
|
|
784
785
|
d || (E(l), E(g), d = !0);
|
|
@@ -798,20 +799,20 @@ function Ia(a, e, t) {
|
|
|
798
799
|
s > n ? (g = e.videoHeight * n, r = (e.videoWidth - g) / 2) : s < n && (h = e.videoWidth / n, o = (e.videoHeight - h) / 2), a.drawImage(e, r, o, g, h, 0, 0, t.width, t.height);
|
|
799
800
|
}
|
|
800
801
|
function wa(a, e, t) {
|
|
801
|
-
let s, n, r, o, g, h, d, l, u, c, b, I, Z, m,
|
|
802
|
-
M(a, Ve, (i) => t(56, s = i)), M(a, ve, (i) => t(58, r = i)), M(a, G, (i) => t(11, o = i)), M(a, Ie, (i) => t(12, g = i)), M(a, Di, (i) => t(59, h = i)), M(a, we, (i) => t(60, d = i)), M(a, _i, (i) => t(61, l = i)), M(a, ue, (i) => t(62, u = i)), M(a, oe, (i) => t(13, c = i)), M(a,
|
|
802
|
+
let s, n, r, o, g, h, d, l, u, c, b, I, Z, m, y, O, A, T, R, P, Ne, x, de, K, dt, ft, gt;
|
|
803
|
+
M(a, Ve, (i) => t(56, s = i)), M(a, ve, (i) => t(58, r = i)), M(a, G, (i) => t(11, o = i)), M(a, Ie, (i) => t(12, g = i)), M(a, Di, (i) => t(59, h = i)), M(a, we, (i) => t(60, d = i)), M(a, _i, (i) => t(61, l = i)), M(a, ue, (i) => t(62, u = i)), M(a, oe, (i) => t(13, c = i)), M(a, Ce, (i) => t(14, b = i)), M(a, Je, (i) => t(63, I = i)), M(a, xe, (i) => t(64, Z = i)), M(a, jt, (i) => t(65, m = i)), M(a, q, (i) => t(66, y = i)), M(a, ye, (i) => t(67, O = i)), M(a, Ke, (i) => t(15, A = i)), M(a, pi, (i) => t(16, T = i)), M(a, Rt, (i) => t(17, R = i)), M(a, Me, (i) => t(18, P = i)), M(a, Ti, (i) => t(19, Ne = i)), M(a, qe, (i) => t(68, x = i)), M(a, Wt, (i) => t(69, K = i)), M(a, $e, (i) => t(70, dt = i)), M(a, Ai, (i) => t(21, ft = i)), M(a, Oi, (i) => t(22, gt = i));
|
|
803
804
|
let _, W, Q, ce = !1, ht = !1, U = {
|
|
804
805
|
width: 2560,
|
|
805
806
|
height: 1440,
|
|
806
807
|
aspectRatio: -1
|
|
807
808
|
};
|
|
808
809
|
const Vt = { width: 2560, height: 1440 };
|
|
809
|
-
let { enableMinutiae: ke } = e, { videoDimensions: ze } = e, { noTabs: je } = e, { weightsPath: Re } = e, { showUnconformities: mt } = e, { showConfigButton: bt } = e, { showCameraButton: vt } = e, { videoOverlay: It } = e, { videoOverlayTransparency: wt } = e, { showWatermark:
|
|
810
|
+
let { enableMinutiae: ke } = e, { videoDimensions: ze } = e, { noTabs: je } = e, { weightsPath: Re } = e, { showUnconformities: mt } = e, { showConfigButton: bt } = e, { showCameraButton: vt } = e, { videoOverlay: It } = e, { videoOverlayTransparency: wt } = e, { showWatermark: Ct } = e, { faceDetectionSensitivity: fe } = e;
|
|
810
811
|
const ge = Ht(!1);
|
|
811
812
|
M(a, ge, (i) => t(57, n = i));
|
|
812
813
|
const We = Ht("data:image/png;base64");
|
|
813
814
|
M(a, We, (i) => t(20, de = i));
|
|
814
|
-
let
|
|
815
|
+
let yt = !1, he = !0, Mt = 0, Ee = 0, Se = !0, Dt = 0, Ze = (/* @__PURE__ */ new Date()).getTime(), Pe = !1;
|
|
815
816
|
Ni(async () => {
|
|
816
817
|
if (Et("Mounting Document Collector!"), v(Ie, g = !1, g), _t(), K)
|
|
817
818
|
try {
|
|
@@ -822,12 +823,12 @@ function wa(a, e, t) {
|
|
|
822
823
|
await He(), xt();
|
|
823
824
|
});
|
|
824
825
|
function _t() {
|
|
825
|
-
v(
|
|
826
|
+
v(Ce, b = !1, b), v(jt, m = !0, m), v(ye, O = "", O), v(we, d = et.REAR_CAMERA, d), v(ve, r = !1, r), v(Ke, A = !1, A), v(Me, P = re.OK, P), v(qe, x = "", x);
|
|
826
827
|
const i = zi(tt);
|
|
827
828
|
i.closedMouth = !1, i.isPersonCloseEnough = !1, i.isPersonTooclose = !0, i.isPersonInFrame = !1, tt.set(i);
|
|
828
829
|
}
|
|
829
830
|
async function Jt() {
|
|
830
|
-
const [i, p] = (ze ?? "")?.replaceAll(" ", "")?.split("x")?.map((
|
|
831
|
+
const [i, p] = (ze ?? "")?.replaceAll(" ", "")?.split("x")?.map((C) => C ? parseInt(C) : void 0);
|
|
831
832
|
!i || !p || (X() ? (await Gi(), v(
|
|
832
833
|
oe,
|
|
833
834
|
c = {
|
|
@@ -838,7 +839,7 @@ function wa(a, e, t) {
|
|
|
838
839
|
)) : v(oe, c = { videoWidth: i, videoHeight: p }, c));
|
|
839
840
|
}
|
|
840
841
|
function pt() {
|
|
841
|
-
v(G, o = F.OK, o),
|
|
842
|
+
v(G, o = F.OK, o), yt = !0, he = !1;
|
|
842
843
|
}
|
|
843
844
|
async function me() {
|
|
844
845
|
if (K && !ht)
|
|
@@ -855,11 +856,11 @@ function wa(a, e, t) {
|
|
|
855
856
|
Ft("Document capture - document not detected! Resetting capture.");
|
|
856
857
|
return;
|
|
857
858
|
}
|
|
858
|
-
v(
|
|
859
|
+
v(Ce, b = !0, b);
|
|
859
860
|
let p = [];
|
|
860
861
|
try {
|
|
861
|
-
const
|
|
862
|
-
v(We, de =
|
|
862
|
+
const C = i.toDataURL("image/jpeg").split(",");
|
|
863
|
+
v(We, de = C[0], de), v(Rt, R = C[1], R), v(qe, x = C[1], x), p = [
|
|
863
864
|
{
|
|
864
865
|
bodyPart: "DOCUMENT",
|
|
865
866
|
data: x
|
|
@@ -870,10 +871,10 @@ function wa(a, e, t) {
|
|
|
870
871
|
detail: { bodyParts: p, status: P }
|
|
871
872
|
}
|
|
872
873
|
));
|
|
873
|
-
} catch (
|
|
874
|
-
_e(
|
|
874
|
+
} catch (C) {
|
|
875
|
+
_e(C);
|
|
875
876
|
let N, k = Qi.DOCUMENT_NOT_FOUND, B = [];
|
|
876
|
-
|
|
877
|
+
C instanceof Error && ["DOCUMENT_NOT_FOUND"].includes(C.message) && (v(Me, P = re.TEMPLATE_EXTRACTION_ERROR, P), N = C.message, B = [
|
|
877
878
|
{
|
|
878
879
|
bodyPart: "DOCUMENT",
|
|
879
880
|
data: x,
|
|
@@ -910,18 +911,18 @@ function wa(a, e, t) {
|
|
|
910
911
|
}
|
|
911
912
|
await Jt();
|
|
912
913
|
try {
|
|
913
|
-
let { stream: p, deviceId:
|
|
914
|
+
let { stream: p, deviceId: C, width: N, height: k, aspectRatio: B } = await St(U.width, U.height, d, i);
|
|
914
915
|
if (v(Je, I = p, I), U.aspectRatio = B || N / k, U.aspectRatio > 1 && N < U.width || U.aspectRatio < 1 && k < U.width) {
|
|
915
916
|
U.width = N, U.height = N / 1.7777, I.getTracks()?.forEach((Ue) => Ue?.stop());
|
|
916
917
|
const { stream: Le } = await St(U.width, U.height, d, i);
|
|
917
918
|
v(Je, I = Le, I);
|
|
918
919
|
}
|
|
919
|
-
v(ue, u =
|
|
920
|
+
v(ue, u = C || l[0].deviceId, u);
|
|
920
921
|
} catch (p) {
|
|
921
|
-
const
|
|
922
|
+
const C = p;
|
|
922
923
|
he = !0;
|
|
923
924
|
const N = De(p) && p.constraint ? p.constraint : "";
|
|
924
|
-
_e(
|
|
925
|
+
_e(C, N), De(C) && "message" in C && C.message.includes("Permission denied") && (_e("User didn't give permission to use camera!"), v(G, o = F.CAMERA_DENIED_ERROR, o)), De(C) && "message" in C && C.message.includes("Requested device not found") && v(G, o = F.DEVICE_NOT_FOUND_ERROR, o), (N.includes("width") || N.includes("height")) && (_e(`Camera does not meet the minimum supported requirements! (${N})`), v(G, o = F.CAMERA_UNSUPPORTED, o));
|
|
925
926
|
}
|
|
926
927
|
}
|
|
927
928
|
async function ie() {
|
|
@@ -935,20 +936,20 @@ function wa(a, e, t) {
|
|
|
935
936
|
function At() {
|
|
936
937
|
v(ve, r = !1, r);
|
|
937
938
|
const i = (/* @__PURE__ */ new Date()).getTime();
|
|
938
|
-
i - Ze > 5e3 ? (Ze = i, v(
|
|
939
|
+
i - Ze > 5e3 ? (Ze = i, v(ye, O = "docCollector.docWasNotFound", O)) : Pe || (Pe = !0, setTimeout(
|
|
939
940
|
() => {
|
|
940
|
-
Pe = !1, O != "docCollector.docWasNotFound" && v(
|
|
941
|
+
Pe = !1, O != "docCollector.docWasNotFound" && v(ye, O = "", O);
|
|
941
942
|
},
|
|
942
943
|
1500
|
|
943
944
|
));
|
|
944
945
|
}
|
|
945
946
|
function Kt() {
|
|
946
|
-
const i = c.videoWidth, p = c.videoHeight,
|
|
947
|
-
k.width =
|
|
948
|
-
const Le = k.width / c.videoWidth, Ue = k.height / c.videoHeight, vi = X() ? 0.25 : 0.15, Ii = Math.round(k.height * vi), Be =
|
|
947
|
+
const i = c.videoWidth, p = c.videoHeight, C = Vt.width, N = p / i * C, k = document.createElement("canvas"), B = k.getContext("2d");
|
|
948
|
+
k.width = C, k.height = N, B && Ia(B, _, k);
|
|
949
|
+
const Le = k.width / c.videoWidth, Ue = k.height / c.videoHeight, vi = X() ? 0.25 : 0.15, Ii = Math.round(k.height * vi), Be = y.width * Le, Ge = y.height * Ue, Nt = (X() ? 0.15 : 0.2) * Be, kt = 0.2 * Ge, wi = (k.width - Be) / 2 - Nt / 2, Ci = (k.height - Ii - Ge) / 2 - kt / 2, Ye = Be + Nt, Qe = Ge + kt, ae = document.createElement("canvas");
|
|
949
950
|
ae.width = Ye, ae.height = Qe;
|
|
950
951
|
const Xe = ae.getContext("2d");
|
|
951
|
-
return Xe?.clearRect(0, 0, ae.width, ae.height), Xe?.drawImage(k, wi,
|
|
952
|
+
return Xe?.clearRect(0, 0, ae.width, ae.height), Xe?.drawImage(k, wi, Ci, Ye, Qe, 0, 0, Ye, Qe), Xe?.save(), ae;
|
|
952
953
|
}
|
|
953
954
|
const qt = oe.subscribe((i) => {
|
|
954
955
|
_ && W && (t(7, _.width = i.videoWidth, _), t(7, _.height = i.videoHeight, _), t(8, W.width = i.videoWidth, W), t(8, W.height = i.videoHeight, W));
|
|
@@ -956,23 +957,23 @@ function wa(a, e, t) {
|
|
|
956
957
|
let p = "";
|
|
957
958
|
if (i.isPersonCloseEnough ? i.isPersonTooclose ? p = "docCollector.moveAwayCamera" : i.isPersonInFrame || (p = "docCollector.stayInFrame") : p = "docCollector.comeCloserCamera", r && ji(p), !b && m && r && !ce && i.isPersonInFrame && !(!i.isPersonCloseEnough || i.isPersonTooclose)) {
|
|
958
959
|
t(10, ce = !0), Dt = (/* @__PURE__ */ new Date()).getTime() + 4500;
|
|
959
|
-
const
|
|
960
|
+
const C = setInterval(
|
|
960
961
|
async () => {
|
|
961
962
|
if (!m || b || !i.isPersonCloseEnough || i.isPersonTooclose || !i.isPersonInFrame) {
|
|
962
963
|
t(10, ce = !1), setTimeout(
|
|
963
964
|
() => {
|
|
964
965
|
},
|
|
965
966
|
1500
|
|
966
|
-
), clearInterval(
|
|
967
|
+
), clearInterval(C);
|
|
967
968
|
return;
|
|
968
969
|
}
|
|
969
970
|
const N = (/* @__PURE__ */ new Date()).getTime();
|
|
970
|
-
Math.floor((Dt - N) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(
|
|
971
|
+
Math.floor((Dt - N) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(C), t(10, ce = !1), Tt());
|
|
971
972
|
},
|
|
972
973
|
100
|
|
973
974
|
);
|
|
974
975
|
}
|
|
975
|
-
}), ei =
|
|
976
|
+
}), ei = Ce.subscribe((i) => {
|
|
976
977
|
Q && (i ? (Q.classList.remove("flex"), Q.classList.add("hidden")) : (Q.classList.add("flex"), Q.classList.remove("hidden")));
|
|
977
978
|
}), ti = xe.subscribe((i) => {
|
|
978
979
|
_ && i && (Pt("setting null in video srcObject"), t(7, _.srcObject = null, _), t(7, _.src = "", _), v(ue, u = null, u));
|
|
@@ -984,15 +985,15 @@ function wa(a, e, t) {
|
|
|
984
985
|
if (!(!I || !i))
|
|
985
986
|
try {
|
|
986
987
|
const p = await Ri(U.width, U.height, i);
|
|
987
|
-
t(7, _.srcObject = I, _), v(xe, Z = !1, Z), I.getTracks().forEach((
|
|
988
|
-
|
|
988
|
+
t(7, _.srcObject = I, _), v(xe, Z = !1, Z), I.getTracks().forEach((C) => {
|
|
989
|
+
C.readyState === "live" && Pt(`Camera ${C.label} opened successfully!`);
|
|
989
990
|
}), v(G, o = F.OK, o), Wi(_);
|
|
990
991
|
} catch (p) {
|
|
991
|
-
const
|
|
992
|
-
he = !0, De(
|
|
992
|
+
const C = p;
|
|
993
|
+
he = !0, De(C) && "message" in C && C.message.includes("Requested device not found") && v(G, o = F.DEVICE_NOT_FOUND_ERROR, o);
|
|
993
994
|
}
|
|
994
995
|
}), ai = $e.subscribe(async (i) => {
|
|
995
|
-
i === at.Document && !
|
|
996
|
+
i === at.Document && !yt && !b && ba && await pt();
|
|
996
997
|
}), si = ge.subscribe(async (i) => {
|
|
997
998
|
i && Ot();
|
|
998
999
|
}), ni = Ie.subscribe((i) => {
|
|
@@ -1000,7 +1001,7 @@ function wa(a, e, t) {
|
|
|
1000
1001
|
}), oi = Ei.subscribe(async (i) => {
|
|
1001
1002
|
if (!(!c || l.length <= 1)) {
|
|
1002
1003
|
if (it(), !X()) {
|
|
1003
|
-
const
|
|
1004
|
+
const C = (l.findIndex((k) => k.deviceId === u) + 1) % l.length, N = l[C].deviceId;
|
|
1004
1005
|
await He(N);
|
|
1005
1006
|
return;
|
|
1006
1007
|
}
|
|
@@ -1014,12 +1015,12 @@ function wa(a, e, t) {
|
|
|
1014
1015
|
try {
|
|
1015
1016
|
if (Ee >= va) {
|
|
1016
1017
|
Ee = 0;
|
|
1017
|
-
const p = await Zi(fe),
|
|
1018
|
+
const p = await Zi(fe), C = await import("./face_api_0e3ce8c8_3.3.0-RC07.js");
|
|
1018
1019
|
let N;
|
|
1019
|
-
if (N =
|
|
1020
|
-
const k =
|
|
1020
|
+
if (N = C.detectSingleFace(_, p), i = await N.withFaceLandmarks(), W.getContext("2d")?.clearRect(0, 0, W.width, W.height), i != null) {
|
|
1021
|
+
const k = Ji(W, _, !0);
|
|
1021
1022
|
Pi(W, _, k);
|
|
1022
|
-
const B =
|
|
1023
|
+
const B = xi(i, k);
|
|
1023
1024
|
Fi(B) ? (Hi(B, W, ke, !0), v(ve, r = !0, r), Ze = (/* @__PURE__ */ new Date()).getTime()) : At();
|
|
1024
1025
|
} else
|
|
1025
1026
|
At();
|
|
@@ -1059,14 +1060,14 @@ function wa(a, e, t) {
|
|
|
1059
1060
|
await ie();
|
|
1060
1061
|
};
|
|
1061
1062
|
return a.$$set = (i) => {
|
|
1062
|
-
"enableMinutiae" in i && t(29, ke = i.enableMinutiae), "videoDimensions" in i && t(30, ze = i.videoDimensions), "noTabs" in i && t(31, je = i.noTabs), "weightsPath" in i && t(32, Re = i.weightsPath), "showUnconformities" in i && t(0, mt = i.showUnconformities), "showConfigButton" in i && t(1, bt = i.showConfigButton), "showCameraButton" in i && t(2, vt = i.showCameraButton), "videoOverlay" in i && t(3, It = i.videoOverlay), "videoOverlayTransparency" in i && t(4, wt = i.videoOverlayTransparency), "showWatermark" in i && t(5,
|
|
1063
|
+
"enableMinutiae" in i && t(29, ke = i.enableMinutiae), "videoDimensions" in i && t(30, ze = i.videoDimensions), "noTabs" in i && t(31, je = i.noTabs), "weightsPath" in i && t(32, Re = i.weightsPath), "showUnconformities" in i && t(0, mt = i.showUnconformities), "showConfigButton" in i && t(1, bt = i.showConfigButton), "showCameraButton" in i && t(2, vt = i.showCameraButton), "videoOverlay" in i && t(3, It = i.videoOverlay), "videoOverlayTransparency" in i && t(4, wt = i.videoOverlayTransparency), "showWatermark" in i && t(5, Ct = i.showWatermark), "faceDetectionSensitivity" in i && t(33, fe = i.faceDetectionSensitivity);
|
|
1063
1064
|
}, [
|
|
1064
1065
|
mt,
|
|
1065
1066
|
bt,
|
|
1066
1067
|
vt,
|
|
1067
1068
|
It,
|
|
1068
1069
|
wt,
|
|
1069
|
-
|
|
1070
|
+
Ct,
|
|
1070
1071
|
me,
|
|
1071
1072
|
_,
|
|
1072
1073
|
W,
|
|
@@ -1106,7 +1107,7 @@ function wa(a, e, t) {
|
|
|
1106
1107
|
bi
|
|
1107
1108
|
];
|
|
1108
1109
|
}
|
|
1109
|
-
class
|
|
1110
|
+
class Ca extends ot {
|
|
1110
1111
|
constructor(e) {
|
|
1111
1112
|
super(), rt(
|
|
1112
1113
|
this,
|
|
@@ -1222,7 +1223,7 @@ class ya extends ot {
|
|
|
1222
1223
|
return this.$$.ctx[6];
|
|
1223
1224
|
}
|
|
1224
1225
|
}
|
|
1225
|
-
customElements.define("document-collector",
|
|
1226
|
+
customElements.define("document-collector", Ca);
|
|
1226
1227
|
export {
|
|
1227
|
-
|
|
1228
|
+
Ca as default
|
|
1228
1229
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { w as Gt, S as mt, x as _t, y as bt, z as gt, B as R, C as W, D as p, E as X, G as m, H, I as Je, J as Q, K as Qe, L as I, M as D, N as ze, O as qe, P as fe, Q as _, R as he, T as me, U as _e, V as j, W as V, X as N, Y as Gi, $ as Yi, Z as Zi, _ as q, a0 as Fs, a1 as Fe, a2 as P, a3 as Xe, a4 as Zt, a5 as g, a6 as M, a7 as Wt, a8 as Mt, a9 as it, aa as Ns, ab as st, ac as pe, ad as Ps, ae as Le, af as Ut, ag as yi, ah as Bs, ai as je, aj as ke, ak as Ws, al as Ms, am as Vt, an as zt, ao as de, ap as ee, aq as Te, ar as ki, as as jt, at, au as Kt, av as Us, aw as nt, ax as Ti, ay as Oi, az as Vs, aA as zs, aB as js, aC as Ks, f as Ri, aD as Hs, aE as qs, aF as Js, aG as Ht, aH as K, m as dt, aI as qt, aJ as Qs, l as ie, aK as Di, aL as Xs, aM as ot, aN as lt, aO as Ii, aP as Gs, aQ as rt, A as Jt, aR as Oe, aS as Ys, aT as Ke, aU as Zs, aV as Ai, e as Se, aW as Qt, aX as ct, aY as xs, aZ as Xt, a_ as $s, a$ as ea, b0 as ta, b1 as ia, b2 as sa, b3 as aa, b4 as He, b5 as na, b6 as oa, b7 as ut, b8 as oe, b9 as vt, ba as la, bb as ra, d as Li, bc as ca, bd as ft, be as se, bf as ua, bg as fa, bh as Si, bi as xi, bj as ht, bk as da } from "./
|
|
2
|
-
import {
|
|
3
|
-
import { detectSingleFace as
|
|
1
|
+
import { w as Gt, S as mt, x as _t, y as bt, z as gt, B as R, C as W, D as p, E as X, G as m, H, I as Je, J as Q, K as Qe, L as I, M as D, N as ze, O as qe, P as fe, Q as _, R as he, T as me, U as _e, V as j, W as V, X as N, Y as Gi, $ as Yi, Z as Zi, _ as q, a0 as Fs, a1 as Fe, a2 as P, a3 as Xe, a4 as Zt, a5 as g, a6 as M, a7 as Wt, a8 as Mt, a9 as it, aa as Ns, ab as st, ac as pe, ad as Ps, ae as Le, af as Ut, ag as yi, ah as Bs, ai as je, aj as ke, ak as Ws, al as Ms, am as Vt, an as zt, ao as de, ap as ee, aq as Te, ar as ki, as as jt, at, au as Kt, av as Us, aw as nt, ax as Ti, ay as Oi, az as Vs, aA as zs, aB as js, aC as Ks, f as Ri, aD as Hs, aE as qs, aF as Js, aG as Ht, aH as K, m as dt, aI as qt, aJ as Qs, l as ie, aK as Di, aL as Xs, aM as ot, aN as lt, aO as Ii, aP as Gs, aQ as rt, A as Jt, aR as Oe, aS as Ys, aT as Ke, aU as Zs, aV as Ai, e as Se, aW as Qt, aX as ct, aY as xs, aZ as Xt, a_ as $s, a$ as ea, b0 as ta, b1 as ia, b2 as sa, b3 as aa, b4 as He, b5 as na, b6 as oa, b7 as ut, b8 as oe, b9 as vt, ba as la, bb as ra, d as Li, bc as ca, bd as ft, be as se, bf as ua, bg as fa, bh as Si, bi as xi, bj as ht, bk as da } from "./main_866e3050_3.3.0-RC07.js";
|
|
2
|
+
import { V as ha, C as ma } from "./ValidationAlert_81eae4eb_3.3.0-RC07.js";
|
|
3
|
+
import { detectSingleFace as _a, matchDimensions as ba, resizeResults as ga } from "./face_api_0e3ce8c8_3.3.0-RC07.js";
|
|
4
|
+
import { W as va, C as pa } from "./CaptureBar_bbb41c40_3.3.0-RC07.js";
|
|
4
5
|
const Yt = Gt(!1);
|
|
5
6
|
class wa {
|
|
6
7
|
isDevToolsOpen = !1;
|
|
@@ -25,7 +26,7 @@ class wa {
|
|
|
25
26
|
}
|
|
26
27
|
function Fi(i) {
|
|
27
28
|
let e, t;
|
|
28
|
-
return e = new
|
|
29
|
+
return e = new va({}), {
|
|
29
30
|
c() {
|
|
30
31
|
he(e.$$.fragment);
|
|
31
32
|
},
|
|
@@ -490,7 +491,7 @@ function Ui(i) {
|
|
|
490
491
|
i[24] && !/*$detectingFace*/
|
|
491
492
|
i[27] && Vi(i)
|
|
492
493
|
);
|
|
493
|
-
return h = new oa({}), w = new
|
|
494
|
+
return h = new oa({}), w = new pa({
|
|
494
495
|
props: {
|
|
495
496
|
showConfigButton: (
|
|
496
497
|
/*showConfigButton*/
|
|
@@ -677,7 +678,7 @@ function Fa(i) {
|
|
|
677
678
|
}
|
|
678
679
|
function Vi(i) {
|
|
679
680
|
let e, t, a, o, r, f;
|
|
680
|
-
return e = new
|
|
681
|
+
return e = new ha({
|
|
681
682
|
props: {
|
|
682
683
|
isCountingDown: (
|
|
683
684
|
/*isCountingDown*/
|
|
@@ -787,7 +788,7 @@ function zi(i) {
|
|
|
787
788
|
}
|
|
788
789
|
function Na(i) {
|
|
789
790
|
let e, t;
|
|
790
|
-
return e = new
|
|
791
|
+
return e = new ma({ props: { handler: (
|
|
791
792
|
/*func*/
|
|
792
793
|
i[64]
|
|
793
794
|
) } }), {
|
|
@@ -1630,7 +1631,7 @@ function Ga(i) {
|
|
|
1630
1631
|
}
|
|
1631
1632
|
let Ya = 0, Za = 3e3;
|
|
1632
1633
|
function xa() {
|
|
1633
|
-
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.3.0-
|
|
1634
|
+
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.3.0-RC07.js") : import("./index-idlf-detector_a819b3c8_3.3.0-RC07.js");
|
|
1634
1635
|
}
|
|
1635
1636
|
function $a(i, e, t) {
|
|
1636
1637
|
let a, o, r, f, n, l, u, c, d, b, h, E, w, v, C, y, S, Re, le, z, L, A, T, De, x, re, we, Ce, Ne, pt, ae, xt, wt, Ct, Et, $t, ei;
|
|
@@ -2069,10 +2070,10 @@ function $a(i, e, t) {
|
|
|
2069
2070
|
if (Nt >= Ya) {
|
|
2070
2071
|
Nt = 0;
|
|
2071
2072
|
let O;
|
|
2072
|
-
if (O =
|
|
2073
|
-
const k =
|
|
2073
|
+
if (O = _a(F, ti), s = await O.withFaceLandmarks(), te.getContext("2d")?.clearRect(0, 0, te.width, te.height), s != null) {
|
|
2074
|
+
const k = ba(te, F, !0);
|
|
2074
2075
|
ia(te, F, k);
|
|
2075
|
-
const B =
|
|
2076
|
+
const B = ga(s, k);
|
|
2076
2077
|
sa(B) ? (aa(B, te, Ot), _(it, f = !0, f), t(18, kt = !0), Tt = (/* @__PURE__ */ new Date()).getTime()) : gi();
|
|
2077
2078
|
} else
|
|
2078
2079
|
gi();
|