bry-biometric-collector 3.3.2-RC01 → 3.3.2-RC02

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.
Files changed (20) hide show
  1. package/dist/{CaptureBar_4d431e44_3.3.2-RC01.js → CaptureBar_7a7965bc_3.3.2-RC02.js} +1 -1
  2. package/dist/{DocumentCollector_c284fbe5_3.3.2-RC01.js → DocumentCollector_bea06b6f_3.3.2-RC02.js} +67 -67
  3. package/dist/{FaceCollector_e241eecc_3.3.2-RC01.js → FaceCollector_8e1a9947_3.3.2-RC02.js} +613 -603
  4. package/dist/{FaceOval_d125a8dd_3.3.2-RC01.js → FaceOval_2f82c133_3.3.2-RC02.js} +2 -2
  5. package/dist/{StreamCollector_8d833076_3.3.2-RC01.js → StreamCollector_66beed3f_3.3.2-RC02.js} +36 -36
  6. package/dist/{Unique_impl_55956c53_3.3.2-RC01.js → Unique_impl_ac67b281_3.3.2-RC02.js} +1 -1
  7. package/dist/{ValidationAlert_6225f572_3.3.2-RC01.js → ValidationAlert_2edac538_3.3.2-RC02.js} +53 -53
  8. package/dist/bry-biometric-collector-main.js +2 -2
  9. package/dist/{fingersApi_267da302_3.3.2-RC01.js → fingersApi_e5d2a353_3.3.2-RC02.js} +2 -2
  10. package/dist/index.js +2 -2
  11. package/dist/{index_a89779e7_3.3.2-RC01.js → index_6b4a94e8_3.3.2-RC02.js} +3 -3
  12. package/dist/{index_74a75d48_3.3.2-RC01.js → index_a23faa9a_3.3.2-RC02.js} +4 -4
  13. package/dist/{main_ccac3ad3_3.3.2-RC01.js → main_2ecd1129_3.3.2-RC02.js} +2447 -2431
  14. package/package.json +1 -1
  15. /package/dist/{en-us_c02e99cd_3.3.2-RC01.js → en-us_c02e99cd_3.3.2-RC02.js} +0 -0
  16. /package/dist/{es-cl_6f3eda53_3.3.2-RC01.js → es-cl_6f3eda53_3.3.2-RC02.js} +0 -0
  17. /package/dist/{face_api_d3d25326_3.3.2-RC01.js → face_api_d3d25326_3.3.2-RC02.js} +0 -0
  18. /package/dist/{index-idlf-detector_18843221_3.3.2-RC01.js → index-idlf-detector_18843221_3.3.2-RC02.js} +0 -0
  19. /package/dist/{index-idlf-detector_a5efb00c_3.3.2-RC01.js → index-idlf-detector_a5efb00c_3.3.2-RC02.js} +0 -0
  20. /package/dist/{pt-br_e7d46668_3.3.2-RC01.js → pt-br_e7d46668_3.3.2-RC02.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { S as M, x as K, y as R, z as D, B as w, C as g, O as fe, E as C, H as E, I as b, ab as be, a_ as $, br as j, bs as x, aB as L, D as O, G as v, bk as ee, bt as te, X as p, b7 as V, bu as _e, U as he, Y as de, ae as F, $ as ce, a1 as k, a2 as c, a3 as B, a0 as d, J as we, bn as N, a8 as Ce, T as pe, ap as ve, Q as ke, K as Be, N as T, b6 as _, bl as H, bv as me, Z as y, _ as A, a4 as S, M as I, L as ne } from "./main_ccac3ad3_3.3.2-RC01.js";
1
+ import { S as M, x as K, y as R, z as D, B as w, C as g, O as fe, E as C, H as E, I as b, ab as be, a$ as $, bt as j, bu as x, aB as L, D as O, G as v, bm as ee, bv as te, X as p, b9 as V, bw as _e, U as he, Y as de, ae as F, $ as ce, a1 as k, a2 as c, a3 as B, a0 as d, J as we, bp as N, a8 as Ce, T as pe, ap as ve, Q as ke, K as Be, N as T, b8 as _, bn as H, bx as me, Z as y, _ as A, a4 as S, M as I, L as ne } from "./main_2ecd1129_3.3.2-RC02.js";
2
2
  function Ee(r) {
3
3
  let e;
4
4
  return {
@@ -1,7 +1,7 @@
1
- import { S as ot, x as rt, y as lt, z as ct, B as z, C as j, D, bk as se, E as Y, G as f, b6 as ne, bl as zt, X as w, H as S, I as M, bm as q, bn as yi, J as oe, N as H, Z as $, V as Ae, _ as ee, a0 as E, a1 as Oe, a2 as L, a3 as Ne, a4 as te, K as X, aB as v, M as F, O as Mi, a6 as Ve, a7 as Ie, Q as G, T as we, a8 as Di, a9 as Ce, ab as _i, aa as ue, ac as ye, a5 as Je, ad as xe, ae as jt, ah as Me, ak as Ke, al as pi, am as Rt, an as De, $ as Ti, ag as qe, ap as Wt, as as $e, R as Ai, ax as Oi, aA as Ni, f as Et, aC as ki, aF as et, aG as re, m as zi, aH as tt, aU as St, e as _e, l as pe, aV as Zt, aW as it, aX as ji, aL as at, aY as Pt, aZ as Ri, a_ as Wi, a$ as Ei, aD as Si, b0 as Zi, bo as Pi, b2 as Fi, d as Ft, b3 as Te, b4 as Hi, b5 as Li, b7 as le, b8 as ut, W as Ui, U as V, Y as J, w as Ht, aE as Bi, bp as Gi, bc as st, bq as Yi } from "./main_ccac3ad3_3.3.2-RC01.js";
2
- import { W as Qi, V as Xi, C as Vi } from "./ValidationAlert_6225f572_3.3.2-RC01.js";
3
- import { matchDimensions as Ji, resizeResults as xi } from "./face_api_d3d25326_3.3.2-RC01.js";
4
- import { C as Ki } from "./CaptureBar_4d431e44_3.3.2-RC01.js";
1
+ import { S as ot, x as rt, y as lt, z as ct, B as z, C as j, D, bm as se, E as Y, G as f, b8 as ne, bn as zt, X as w, H as S, I as M, bo as q, bp as Ci, J as oe, N as H, Z as $, V as Ae, _ as ee, a0 as E, a1 as Oe, a2 as L, a3 as Ne, a4 as te, K as X, aB as v, M as F, O as Mi, a6 as Ve, a7 as Ie, Q as G, T as we, a8 as Di, a9 as ye, ab as _i, aa as ue, ac as Ce, a5 as Je, ad as xe, ae as jt, ah as Me, ak as Ke, al as pi, am as Rt, an as De, $ as Ti, ag as qe, ap as Wt, as as $e, R as Ai, ax as Oi, aA 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 _e, l as pe, aW as Zt, aX as it, aY as ji, aM as at, aZ as Pt, a_ as Ri, a$ as Wi, b0 as Ei, aE as Si, b1 as Zi, bq as Pi, b3 as Fi, d as Ft, b4 as Te, b5 as Hi, b7 as Li, b9 as le, ba as ut, W as Ui, U as V, Y as J, w as Ht, aF as Bi, br as Gi, be as st, bs as Yi } from "./main_2ecd1129_3.3.2-RC02.js";
2
+ import { W as Qi, V as Xi, C as Vi } from "./ValidationAlert_2edac538_3.3.2-RC02.js";
3
+ import { matchDimensions as Ji, resizeResults as xi } from "./face_api_d3d25326_3.3.2-RC02.js";
4
+ import { C as Ki } from "./CaptureBar_7a7965bc_3.3.2-RC02.js";
5
5
  const qi = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwNiIgaGVpZ2h0PSI4OTAiIHZpZXdCb3g9IjAgMCAxMjA2IDg5MCIgZmlsbD0ibm9uZSIgb3BhY2l0eT0iMC4yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xOF80KSIgb3BhY2l0eT0iMCI+CiAgICA8bWFzayBpZD0icGF0aC0xLWluc2lkZS0xXzE4XzQiIGZpbGw9IndoaXRlIj4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiLz4KICAgIDwvbWFzaz4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iMTYiIHNoYXBlLXJlbmRlcmluZz0iY3Jpc3BFZGdlcyIgbWFzaz0idXJsKCNwYXRoLTEtaW5zaWRlLTFfMThfNCkiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJwYXRoLTItaW5zaWRlLTJfMThfNCIgZmlsbD0id2hpdGUiPgogICAgPHJlY3QgeD0iMjE5LjI3OCIgeT0iMjk2IiB3aWR0aD0iMzM4Ljg2MyIgaGVpZ2h0PSI0NjgiIHJ4PSI3Ii8+CiAgICA8L21hc2s+CiAgICA8cmVjdCB4PSIyMTkuMjc4IiB5PSIyOTYiIHdpZHRoPSIzMzguODYzIiBoZWlnaHQ9IjQ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M9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMjUgMCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIgcmVzdWx0PSJzaGFwZSIvPgogICAgPC9maWx0ZXI+CiAgICA8L2RlZnM+CiAgICA8L3N2Zz4KICAgIA==";
6
6
  function $i(a) {
7
7
  let e, t, s, n, r, o, g, h, d, l, u;
@@ -45,7 +45,7 @@ function $i(a) {
45
45
  }
46
46
  function ea(a, e, t) {
47
47
  let s, n, r;
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
+ M(a, q, (l) => t(2, s = l)), M(a, Ci, (l) => t(5, n = l)), M(a, oe, (l) => t(6, r = l));
49
49
  let { videoOverlay: o } = e, { videoOverlayTransparency: g } = e, h, d;
50
50
  return a.$$set = (l) => {
51
51
  "videoOverlay" in l && t(0, o = l.videoOverlay), "videoOverlayTransparency" in l && t(1, g = l.videoOverlayTransparency);
@@ -267,7 +267,7 @@ class Xt extends ot {
267
267
  }
268
268
  customElements.define("doc-rectangle", Xt);
269
269
  function Ut(a) {
270
- let e, t, s, n, r, o, g, h, d, l, u, c, b, I, Z, m, y, N, A = (
270
+ let e, t, s, n, r, o, g, h, d, l, u, c, b, I, Z, m, C, N, A = (
271
271
  /*$ready*/
272
272
  a[12] && Bt(a)
273
273
  );
@@ -312,7 +312,7 @@ function Ut(a) {
312
312
  a[11] !== F.OK;
313
313
  },
314
314
  m(T, R) {
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 || (N = [
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, C || (N = [
316
316
  le(
317
317
  s,
318
318
  "canplay",
@@ -326,7 +326,7 @@ function Ut(a) {
326
326
  a[6],
327
327
  { once: !0 }
328
328
  )
329
- ], y = !0);
329
+ ], C = !0);
330
330
  },
331
331
  p(T, R) {
332
332
  (!m || R[0] & /*$ready*/
@@ -370,7 +370,7 @@ function Ut(a) {
370
370
  L(A), L(u.$$.fragment, T), L(b.$$.fragment, T), m = !1;
371
371
  },
372
372
  d(T) {
373
- T && S(e), a[34](null), a[36](null), A && A.d(), te(u), te(b), y = !1, ut(N);
373
+ T && S(e), a[34](null), a[36](null), A && A.d(), te(u), te(b), C = !1, ut(N);
374
374
  }
375
375
  };
376
376
  }
@@ -611,12 +611,12 @@ function ca(a) {
611
611
  /*$_*/
612
612
  a[19]("faceCollector.retakePhoto") + ""
613
613
  ), u, c, b;
614
- function I(y, N) {
614
+ function I(C, N) {
615
615
  return (
616
616
  /*$requestResult*/
617
- y[18] === re.TEMPLATE_EXTRACTION_ERROR ? ga : (
617
+ C[18] === re.TEMPLATE_EXTRACTION_ERROR ? ga : (
618
618
  /*$saved*/
619
- y[15] ? da : fa
619
+ C[15] ? da : fa
620
620
  )
621
621
  );
622
622
  }
@@ -627,8 +627,8 @@ function ca(a) {
627
627
  a[15] || /*$requestResult*/
628
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");
629
629
  },
630
- m(y, N) {
631
- z(y, e, N), 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 = [
630
+ m(C, N) {
631
+ z(C, e, N), 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 = [
632
632
  le(
633
633
  n,
634
634
  "click",
@@ -643,18 +643,18 @@ function ca(a) {
643
643
  )
644
644
  ], c = !0);
645
645
  },
646
- p(y, N) {
647
- Z === (Z = I(y)) && m ? m.p(y, N) : (m.d(1), m = Z(y), m && (m.c(), m.m(e, t))), N[0] & /*$_*/
646
+ p(C, N) {
647
+ Z === (Z = I(C)) && m ? m.p(C, N) : (m.d(1), m = Z(C), m && (m.c(), m.m(e, t))), N[0] & /*$_*/
648
648
  524288 && r !== (r = /*$_*/
649
- y[19]("faceCollector.finish") + "") && J(o, r), N[0] & /*$saved, $requestResult*/
649
+ C[19]("faceCollector.finish") + "") && J(o, r), N[0] & /*$saved, $requestResult*/
650
650
  294912 && g !== (g = /*$saved*/
651
- y[15] || /*$requestResult*/
652
- y[18] !== re.OK) && (n.disabled = g), N[0] & /*$_*/
651
+ C[15] || /*$requestResult*/
652
+ C[18] !== re.OK) && (n.disabled = g), N[0] & /*$_*/
653
653
  524288 && l !== (l = /*$_*/
654
- y[19]("faceCollector.retakePhoto") + "") && J(u, l);
654
+ C[19]("faceCollector.retakePhoto") + "") && J(u, l);
655
655
  },
656
- d(y) {
657
- y && S(e), m.d(), c = !1, ut(b);
656
+ d(C) {
657
+ C && S(e), m.d(), c = !1, ut(b);
658
658
  }
659
659
  };
660
660
  }
@@ -750,7 +750,7 @@ function ha(a) {
750
750
  a[14] && Yt(a)
751
751
  );
752
752
  const b = [la, ra], I = [];
753
- function Z(m, y) {
753
+ function Z(m, C) {
754
754
  return (
755
755
  /*showUnconformities*/
756
756
  m[0] && /*$captured*/
@@ -764,22 +764,22 @@ function ha(a) {
764
764
  c() {
765
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");
766
766
  },
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;
767
+ m(m, C) {
768
+ z(m, e, C), 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, C), ~o && I[o].m(m, C), z(m, h, C), d = !0;
769
769
  },
770
- p(m, y) {
770
+ p(m, C) {
771
771
  /*$videoStore*/
772
- m[13] ? l ? (l.p(m, y), y[0] & /*$videoStore*/
772
+ m[13] ? l ? (l.p(m, C), C[0] & /*$videoStore*/
773
773
  8192 && E(l, 1)) : (l = Ut(m), l.c(), E(l, 1), l.m(t, s)) : l && (Oe(), L(l, 1, 1, () => {
774
774
  l = null;
775
775
  }), Ne()), !/*$ready*/
776
776
  m[12] && /*$cameraStatusStore*/
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);
777
+ m[11] === F.OK ? u ? u.p(m, C) : (u = Gt(m), u.c(), u.m(t, n)) : u && (u.d(1), u = null), /*$captured*/
778
+ m[14] ? c ? c.p(m, C) : (c = Yt(m), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
779
779
  let N = o;
780
- o = Z(m), o === N ? ~o && I[o].p(m, y) : (g && (Oe(), L(I[N], 1, 1, () => {
780
+ o = Z(m), o === N ? ~o && I[o].p(m, C) : (g && (Oe(), L(I[N], 1, 1, () => {
781
781
  I[N] = null;
782
- }), Ne()), ~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
+ }), Ne()), ~o ? (g = I[o], g ? g.p(m, C) : (g = I[o] = b[o](m), g.c()), E(g, 1), g.m(h.parentNode, h)) : g = null);
783
783
  },
784
784
  i(m) {
785
785
  d || (E(l), E(g), d = !0);
@@ -799,20 +799,20 @@ function va(a, e, t) {
799
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);
800
800
  }
801
801
  function Ia(a, e, t) {
802
- let s, n, r, o, g, h, d, l, u, c, b, I, Z, m, y, N, A, T, R, P, ke, x, de, K, dt, ft, gt;
803
- M(a, Ve, (i) => t(56, s = i)), M(a, Ie, (i) => t(58, r = i)), M(a, G, (i) => t(11, o = i)), M(a, we, (i) => t(12, g = i)), M(a, Di, (i) => t(59, h = i)), M(a, Ce, (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, ye, (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, Me, (i) => t(67, N = 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, De, (i) => t(18, P = i)), M(a, Ti, (i) => t(19, ke = 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));
802
+ let s, n, r, o, g, h, d, l, u, c, b, I, Z, m, C, N, A, T, R, P, ke, x, de, K, dt, ft, gt;
803
+ M(a, Ve, (i) => t(56, s = i)), M(a, Ie, (i) => t(58, r = i)), M(a, G, (i) => t(11, o = i)), M(a, we, (i) => t(12, g = i)), M(a, Di, (i) => t(59, h = i)), M(a, ye, (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, C = i)), M(a, Me, (i) => t(67, N = 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, De, (i) => t(18, P = i)), M(a, Ti, (i) => t(19, ke = 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));
804
804
  let _, W, Q, ce = !1, ht = !1, U = {
805
805
  width: 2560,
806
806
  height: 1440,
807
807
  aspectRatio: -1
808
808
  };
809
809
  const Vt = { width: 2560, height: 1440 };
810
- let { enableMinutiae: ze } = e, { videoDimensions: je } = e, { noTabs: Re } = e, { weightsPath: We } = e, { showUnconformities: mt } = e, { showConfigButton: bt } = e, { showCameraButton: vt } = e, { videoOverlay: It } = e, { videoOverlayTransparency: wt } = e, { showWatermark: Ct } = e, { faceDetectionSensitivity: fe } = e;
810
+ let { enableMinutiae: ze } = e, { videoDimensions: je } = e, { noTabs: Re } = e, { weightsPath: We } = e, { showUnconformities: mt } = e, { showConfigButton: bt } = e, { showCameraButton: vt } = e, { videoOverlay: It } = e, { videoOverlayTransparency: wt } = e, { showWatermark: yt } = e, { faceDetectionSensitivity: fe } = e;
811
811
  const ge = Ht(!1);
812
812
  M(a, ge, (i) => t(57, n = i));
813
813
  const Ee = Ht("data:image/png;base64");
814
814
  M(a, Ee, (i) => t(20, de = i));
815
- let yt = !1, he = !0, Mt = 0, Se = 0, Ze = !0, Dt = 0, Pe = (/* @__PURE__ */ new Date()).getTime(), Fe = !1;
815
+ let Ct = !1, he = !0, Mt = 0, Se = 0, Ze = !0, Dt = 0, Pe = (/* @__PURE__ */ new Date()).getTime(), Fe = !1;
816
816
  Ni(async () => {
817
817
  if (Et("Mounting Document Collector!"), v(we, g = !1, g), _t(), K)
818
818
  try {
@@ -823,12 +823,12 @@ function Ia(a, e, t) {
823
823
  await ve(), xt();
824
824
  });
825
825
  function _t() {
826
- v(ye, b = !1, b), v(jt, m = !0, m), v(Me, N = "", N), v(Ce, d = et.REAR_CAMERA, d), v(Ie, r = !1, r), v(Ke, A = !1, A), v(De, P = re.OK, P), v(qe, x = "", x);
826
+ v(Ce, b = !1, b), v(jt, m = !0, m), v(Me, N = "", N), v(ye, d = et.REAR_CAMERA, d), v(Ie, r = !1, r), v(Ke, A = !1, A), v(De, P = re.OK, P), v(qe, x = "", x);
827
827
  const i = zi(tt);
828
828
  i.closedMouth = !1, i.isPersonCloseEnough = !1, i.isPersonTooclose = !0, i.isPersonInFrame = !1, tt.set(i);
829
829
  }
830
830
  async function Jt() {
831
- const [i, p] = (je ?? "")?.replaceAll(" ", "")?.split("x")?.map((C) => C ? parseInt(C) : void 0);
831
+ const [i, p] = (je ?? "")?.replaceAll(" ", "")?.split("x")?.map((y) => y ? parseInt(y) : void 0);
832
832
  !i || !p || (X() ? (await Bi(), v(
833
833
  oe,
834
834
  c = {
@@ -839,7 +839,7 @@ function Ia(a, e, t) {
839
839
  )) : v(oe, c = { videoWidth: i, videoHeight: p }, c));
840
840
  }
841
841
  function pt() {
842
- v(G, o = F.OK, o), yt = !0, he = !1;
842
+ v(G, o = F.OK, o), Ct = !0, he = !1;
843
843
  }
844
844
  async function me() {
845
845
  if (K && !ht)
@@ -856,11 +856,11 @@ function Ia(a, e, t) {
856
856
  Ft("Document capture - document not detected! Resetting capture.");
857
857
  return;
858
858
  }
859
- v(ye, b = !0, b);
859
+ v(Ce, b = !0, b);
860
860
  let p = [];
861
861
  try {
862
- const C = i.toDataURL("image/jpeg").split(",");
863
- v(Ee, de = C[0], de), v(Rt, R = C[1], R), v(qe, x = C[1], x), p = [
862
+ const y = i.toDataURL("image/jpeg").split(",");
863
+ v(Ee, de = y[0], de), v(Rt, R = y[1], R), v(qe, x = y[1], x), p = [
864
864
  {
865
865
  bodyPart: "DOCUMENT",
866
866
  data: x
@@ -871,10 +871,10 @@ function Ia(a, e, t) {
871
871
  detail: { bodyParts: p, status: P }
872
872
  }
873
873
  ));
874
- } catch (C) {
875
- pe(C);
874
+ } catch (y) {
875
+ pe(y);
876
876
  let O, k = Yi.DOCUMENT_NOT_FOUND, B = [];
877
- C instanceof Error && ["DOCUMENT_NOT_FOUND"].includes(C.message) && (v(De, P = re.TEMPLATE_EXTRACTION_ERROR, P), O = C.message, B = [
877
+ y instanceof Error && ["DOCUMENT_NOT_FOUND"].includes(y.message) && (v(De, P = re.TEMPLATE_EXTRACTION_ERROR, P), O = y.message, B = [
878
878
  {
879
879
  bodyPart: "DOCUMENT",
880
880
  data: x,
@@ -911,18 +911,18 @@ function Ia(a, e, t) {
911
911
  }
912
912
  await Jt();
913
913
  try {
914
- let { stream: p, deviceId: C, width: O, height: k, aspectRatio: B } = await St(U.width, U.height, d, i);
914
+ let { stream: p, deviceId: y, width: O, height: k, aspectRatio: B } = await St(U.width, U.height, d, i);
915
915
  if (v(Je, I = p, I), U.aspectRatio = B || O / k, U.aspectRatio > 1 && O < U.width || U.aspectRatio < 1 && k < U.width) {
916
916
  U.width = O, U.height = O / 1.7777, I.getTracks()?.forEach((Ue) => Ue?.stop());
917
917
  const { stream: Le } = await St(U.width, U.height, d, i);
918
918
  v(Je, I = Le, I);
919
919
  }
920
- v(ue, u = C || l[0].deviceId, u);
920
+ v(ue, u = y || l[0].deviceId, u);
921
921
  } catch (p) {
922
- const C = p;
922
+ const y = p;
923
923
  he = !0;
924
924
  const O = _e(p) && p.constraint ? p.constraint : "";
925
- pe(C, O), _e(C) && "message" in C && C.message.includes("Permission denied") && (pe("User didn't give permission to use camera!"), v(G, o = F.CAMERA_DENIED_ERROR, o)), _e(C) && "message" in C && C.message.includes("Requested device not found") && v(G, o = F.DEVICE_NOT_FOUND_ERROR, o), (O.includes("width") || O.includes("height")) && (pe(`Camera does not meet the minimum supported requirements! (${O})`), v(G, o = F.CAMERA_UNSUPPORTED, o));
925
+ pe(y, O), _e(y) && "message" in y && y.message.includes("Permission denied") && (pe("User didn't give permission to use camera!"), v(G, o = F.CAMERA_DENIED_ERROR, o)), _e(y) && "message" in y && y.message.includes("Requested device not found") && v(G, o = F.DEVICE_NOT_FOUND_ERROR, o), (O.includes("width") || O.includes("height")) && (pe(`Camera does not meet the minimum supported requirements! (${O})`), v(G, o = F.CAMERA_UNSUPPORTED, o));
926
926
  }
927
927
  }
928
928
  async function ie() {
@@ -944,12 +944,12 @@ function Ia(a, e, t) {
944
944
  ));
945
945
  }
946
946
  function Kt() {
947
- const i = c.videoWidth, p = c.videoHeight, C = Vt.width, O = p / i * C, k = document.createElement("canvas"), B = k.getContext("2d");
948
- k.width = C, k.height = O, B && va(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");
947
+ const i = c.videoWidth, p = c.videoHeight, y = Vt.width, O = p / i * y, k = document.createElement("canvas"), B = k.getContext("2d");
948
+ k.width = y, k.height = O, B && va(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 = C.width * Le, Ge = C.height * Ue, Nt = (X() ? 0.15 : 0.2) * Be, kt = 0.2 * Ge, wi = (k.width - Be) / 2 - Nt / 2, yi = (k.height - Ii - Ge) / 2 - kt / 2, Ye = Be + Nt, Qe = Ge + kt, ae = document.createElement("canvas");
950
950
  ae.width = Ye, ae.height = Qe;
951
951
  const Xe = ae.getContext("2d");
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
+ return Xe?.clearRect(0, 0, ae.width, ae.height), Xe?.drawImage(k, wi, yi, Ye, Qe, 0, 0, Ye, Qe), Xe?.save(), ae;
953
953
  }
954
954
  const qt = oe.subscribe((i) => {
955
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));
@@ -957,23 +957,23 @@ function Ia(a, e, t) {
957
957
  let p = "";
958
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)) {
959
959
  t(10, ce = !0), Dt = (/* @__PURE__ */ new Date()).getTime() + 4500;
960
- const C = setInterval(
960
+ const y = setInterval(
961
961
  async () => {
962
962
  if (!m || b || !i.isPersonCloseEnough || i.isPersonTooclose || !i.isPersonInFrame) {
963
963
  t(10, ce = !1), setTimeout(
964
964
  () => {
965
965
  },
966
966
  1500
967
- ), clearInterval(C);
967
+ ), clearInterval(y);
968
968
  return;
969
969
  }
970
970
  const O = (/* @__PURE__ */ new Date()).getTime();
971
- Math.floor((Dt - O) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(C), t(10, ce = !1), Tt());
971
+ Math.floor((Dt - O) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(y), t(10, ce = !1), Tt());
972
972
  },
973
973
  100
974
974
  );
975
975
  }
976
- }), ei = ye.subscribe((i) => {
976
+ }), ei = Ce.subscribe((i) => {
977
977
  Q && (i ? (Q.classList.remove("flex"), Q.classList.add("hidden")) : (Q.classList.add("flex"), Q.classList.remove("hidden")));
978
978
  }), ti = xe.subscribe((i) => {
979
979
  _ && i && (Pt("setting null in video srcObject"), t(7, _.srcObject = null, _), t(7, _.src = "", _), v(ue, u = null, u));
@@ -987,15 +987,15 @@ function Ia(a, e, t) {
987
987
  const p = I?.getVideoTracks()[0]?.getSettings()?.deviceId;
988
988
  p && p !== i && await ve(i);
989
989
  try {
990
- t(7, _.srcObject = I, _), v(xe, Z = !1, Z), I.getTracks().forEach((C) => {
991
- C.readyState === "live" && Pt(`Camera ${C.label} opened successfully!`);
990
+ t(7, _.srcObject = I, _), v(xe, Z = !1, Z), I.getTracks().forEach((y) => {
991
+ y.readyState === "live" && Pt(`Camera ${y.label} opened successfully!`);
992
992
  }), v(G, o = F.OK, o), Ri(_);
993
- } catch (C) {
994
- const O = C;
993
+ } catch (y) {
994
+ const O = y;
995
995
  he = !0, _e(O) && "message" in O && O.message.includes("Requested device not found") && v(G, o = F.DEVICE_NOT_FOUND_ERROR, o);
996
996
  }
997
997
  }), ai = $e.subscribe(async (i) => {
998
- i === at.Document && !yt && !b && ma && await pt();
998
+ i === at.Document && !Ct && !b && ma && await pt();
999
999
  }), si = ge.subscribe(async (i) => {
1000
1000
  i && Ot();
1001
1001
  }), ni = we.subscribe((i) => {
@@ -1003,11 +1003,11 @@ function Ia(a, e, t) {
1003
1003
  }), oi = Wi.subscribe(async (i) => {
1004
1004
  if (!(!c || l.length <= 1)) {
1005
1005
  if (it(), !X()) {
1006
- const C = (l.findIndex((k) => k.deviceId === u) + 1) % l.length, O = l[C].deviceId;
1006
+ const y = (l.findIndex((k) => k.deviceId === u) + 1) % l.length, O = l[y].deviceId;
1007
1007
  await ve(O);
1008
1008
  return;
1009
1009
  }
1010
- i ? (v(Ce, d = et.FRONT_CAMERA, d), await ie()) : (v(Ce, d = et.REAR_CAMERA, d), await ie());
1010
+ i ? (v(ye, d = et.FRONT_CAMERA, d), await ie()) : (v(ye, d = et.REAR_CAMERA, d), await ie());
1011
1011
  }
1012
1012
  }), ri = Ei.subscribe(async (i) => {
1013
1013
  !i.isSupported || !X() || h != "DOCUMENT" || (Ze = i.orientation.includes("portrait"), Ze ? _ && !g ? await ie() : v(G, o = F.OK, o) : v(G, o = F.CAMERA_ORIENTATION_PORTRAIT, o));
@@ -1017,9 +1017,9 @@ function Ia(a, e, t) {
1017
1017
  try {
1018
1018
  if (Se >= ba) {
1019
1019
  Se = 0;
1020
- const p = await Si(fe), C = await import("./face_api_d3d25326_3.3.2-RC01.js");
1020
+ const p = await Si(fe), y = await import("./face_api_d3d25326_3.3.2-RC02.js");
1021
1021
  let O;
1022
- if (O = C.detectSingleFace(_, p), i = await O.withFaceLandmarks(), W.getContext("2d")?.clearRect(0, 0, W.width, W.height), i != null) {
1022
+ if (O = y.detectSingleFace(_, p), i = await O.withFaceLandmarks(), W.getContext("2d")?.clearRect(0, 0, W.width, W.height), i != null) {
1023
1023
  const k = Ji(W, _, !0);
1024
1024
  Zi(W, _, k);
1025
1025
  const B = xi(i, k);
@@ -1062,14 +1062,14 @@ function Ia(a, e, t) {
1062
1062
  await ie();
1063
1063
  };
1064
1064
  return a.$$set = (i) => {
1065
- "enableMinutiae" in i && t(29, ze = i.enableMinutiae), "videoDimensions" in i && t(30, je = i.videoDimensions), "noTabs" in i && t(31, Re = i.noTabs), "weightsPath" in i && t(32, We = 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);
1065
+ "enableMinutiae" in i && t(29, ze = i.enableMinutiae), "videoDimensions" in i && t(30, je = i.videoDimensions), "noTabs" in i && t(31, Re = i.noTabs), "weightsPath" in i && t(32, We = 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, yt = i.showWatermark), "faceDetectionSensitivity" in i && t(33, fe = i.faceDetectionSensitivity);
1066
1066
  }, [
1067
1067
  mt,
1068
1068
  bt,
1069
1069
  vt,
1070
1070
  It,
1071
1071
  wt,
1072
- Ct,
1072
+ yt,
1073
1073
  me,
1074
1074
  _,
1075
1075
  W,