bry-biometric-collector 3.3.0-RC05 → 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.
Files changed (24) hide show
  1. package/README.md +3 -3
  2. package/dist/CaptureBar_bbb41c40_3.3.0-RC07.js +893 -0
  3. package/dist/{DocumentCollector_fac8e88e_3.3.0-RC05.js → DocumentCollector_39a1a662_3.3.0-RC07.js} +161 -160
  4. package/dist/FaceCollector_5e696802_3.3.0-RC07.js +2391 -0
  5. package/dist/StreamCollector_89664342_3.3.0-RC07.js +348 -0
  6. package/dist/ValidationAlert_81eae4eb_3.3.0-RC07.js +847 -0
  7. package/dist/{___vite-browser-external_commonjs-proxy_9c968044_3.3.0-RC05.js → ___vite-browser-external_commonjs-proxy_d99dffb1_3.3.0-RC07.js} +3 -3
  8. package/dist/bry-biometric-collector-main.js +2 -2
  9. package/dist/{en-us_e83efd5d_3.3.0-RC05.js → en-us_c02e99cd_3.3.0-RC07.js} +3 -2
  10. package/dist/{es-cl_5939150a_3.3.0-RC05.js → es-cl_6f3eda53_3.3.0-RC07.js} +3 -2
  11. package/dist/{fingersApi_22e412a3_3.3.0-RC05.js → fingersApi_0f644f7a_3.3.0-RC07.js} +2 -2
  12. package/dist/index.js +2 -2
  13. package/dist/{index_a05d6356_3.3.0-RC05.js → index_8a654b33_3.3.0-RC07.js} +3 -3
  14. package/dist/{index_8a9061ba_3.3.0-RC05.js → index_b0b3c37a_3.3.0-RC07.js} +3 -3
  15. package/dist/{main_35f2cba0_3.3.0-RC05.js → main_866e3050_3.3.0-RC07.js} +6190 -6023
  16. package/dist/{pt-br_fae15356_3.3.0-RC05.js → pt-br_e7d46668_3.3.0-RC07.js} +9 -8
  17. package/dist/style.css +1 -1
  18. package/package.json +1 -1
  19. package/dist/FaceCollector_d7a5f6dd_3.3.0-RC05.js +0 -2387
  20. package/dist/ValidationAlert_51a3395e_3.3.0-RC05.js +0 -1657
  21. package/dist/faceApi_a8b6f8d4_3.3.0-RC05.js +0 -15
  22. /package/dist/{face_api_0e3ce8c8_3.3.0-RC05.js → face_api_0e3ce8c8_3.3.0-RC07.js} +0 -0
  23. /package/dist/{index-idlf-detector_39cfdffa_3.3.0-RC05.js → index-idlf-detector_39cfdffa_3.3.0-RC07.js} +0 -0
  24. /package/dist/{index-idlf-detector_a819b3c8_3.3.0-RC05.js → index-idlf-detector_a819b3c8_3.3.0-RC07.js} +0 -0
@@ -1,12 +1,13 @@
1
- import { S as ot, B as rt, C as lt, D as ct, E as z, G as j, H as D, bm as se, I as X, J as f, b8 as ne, bn as zt, a8 as w, O as W, P as M, bo as q, bp as Ci, R as oe, _ as H, V as $, a6 as Te, W as ee, K as S, L as Ae, M as L, N as Oe, X as te, T as Q, U as v, Z as F, a0 as Mi, ab as Ve, ac as ve, a2 as G, a4 as Ie, ad as Di, ae as we, ag as _i, af as ue, ah as ye, aa as Je, ai as Ke, aj as jt, am as Ce, ap as xe, aq as pi, ar as Rt, as as Me, $ as Ti, al as qe, au as Et, aw as $e, a3 as Ai, aB as Oi, aE as Ni, f as St, aF as ki, aI as et, aJ as re, m as zi, aK as tt, aX as Wt, e as De, l as _e, aY as Zt, aZ as it, a_ as ji, aO as at, bq as Ri, w as Pt, a$ as Ei, b0 as Si, b1 as Wi, aG as Zi, b2 as Pi, br as Fi, b4 as Hi, d as Ft, b5 as pe, b6 as Li, b7 as Ui, b9 as le, ba as ut, a7 as Bi, a5 as V, a9 as J, z as Ht, aH as Gi, bs as Xi, be as st, bt as Yi } from "./main_35f2cba0_3.3.0-RC05.js";
2
- import { W as Qi, C as Vi, V as Ji, a as Ki } from "./ValidationAlert_51a3395e_3.3.0-RC05.js";
3
- import { matchDimensions as xi, resizeResults as qi } from "./face_api_0e3ce8c8_3.3.0-RC05.js";
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
+ import { W as Ki, C as qi } from "./CaptureBar_bbb41c40_3.3.0-RC07.js";
4
5
  const $i = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwNiIgaGVpZ2h0PSI4OTAiIHZpZXdCb3g9IjAgMCAxMjA2IDg5MCIgZmlsbD0ibm9uZSIgb3BhY2l0eT0iMC4yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xOF80KSIgb3BhY2l0eT0iMCI+CiAgICA8bWFzayBpZD0icGF0aC0xLWluc2lkZS0xXzE4XzQiIGZpbGw9IndoaXRlIj4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiLz4KICAgIDwvbWFzaz4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iMTYiIHNoYXBlLXJlbmRlcmluZz0iY3Jpc3BFZGdlcyIgbWFzaz0idXJsKCNwYXRoLTEtaW5zaWRlLTFfMThfNCkiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJwYXRoLTItaW5zaWRlLTJfMThfNCIgZmlsbD0id2hpdGUiPgogICAgPHJlY3QgeD0iMjE5LjI3OCIgeT0iMjk2IiB3aWR0aD0iMzM4Ljg2MyIgaGVpZ2h0PSI0NjgiIHJ4PSI3Ii8+CiAgICA8L21hc2s+CiAgICA8cmVjdCB4PSIyMTkuMjc4IiB5PSIyOTYiIHdpZHRoPSIzMzguODYzIiBoZWlnaHQ9IjQ2OCIgcng9IjciIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iMTYiIG1hc2s9InVybCgjcGF0aC0yLWluc2lkZS0yXzE4XzQpIi8+CiAgICA8ZWxsaXBzZSBjeD0iMzg5LjIzOCIgY3k9IjUxMS4yMjgiIHJ4PSI4Ni4yMzc2IiByeT0iODUuMjI4NCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4wOCIvPgogICAgPHBhdGggZD0iTTQ3MS40NzUgNTExLjIyOEM0NzEuNDc1IDU1Ni4wNDUgNDM0LjcwMSA1OTIuNDU3IDM4OS4yMzggNTkyLjQ1N0MzNDMuNzc0IDU5Mi40NTcgMzA3IDU1Ni4wNDUgMzA3IDUxMS4yMjhDMzA3IDQ2Ni40MTEgMzQzLjc3NCA0MzAgMzg5LjIzOCA0MzBDNDM0LjcwMSA0MzAgNDcxLjQ3NSA0NjYuNDExIDQ3MS40NzUgNTExLjIyOFoiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iOCIvPgogICAgPHBhdGggZD0iTTM4Ny4zOCA2MDhDNTM1LjI2IDYwOCA1MzkuODggNzQzLjQ3MyA1MzkuODggNzQzLjQ3M0wyMzkgNzQzLjVDMjM5IDc0My41IDIzOS41IDYwOCAzODcuMzggNjA4WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4wOCIvPgogICAgPHBhdGggZD0iTTM4Ny4zOCA2MTJDNDU5Ljc5NCA2MTIgNDk2LjY0OSA2NDUuMDIgNTE1LjYyNSA2NzcuNzQzQzUyNS4xOCA2OTQuMjIgNTMwLjI1NSA3MTAuNzMzIDUzMi45MzggNzIzLjE1QzUzNC4yNzggNzI5LjM1MSA1MzUuMDE2IDczNC41MDggNTM1LjQxOCA3MzguMDk4QzUzNS40NzMgNzM4LjU4NiA1MzUuNTIxIDczOS4wNDUgNTM1LjU2NCA3MzkuNDc0TDI0My4xODQgNzM5LjVDMjQzLjIxNiA3MzkuMDM3IDI0My4yNTMgNzM4LjUzOCAyNDMuMjk3IDczOC4wMDNDMjQzLjU5IDczNC40MTQgMjQ0LjE3MSA3MjkuMjU4IDI0NS4zMjIgNzIzLjA1OEMyNDcuNjI2IDcxMC42NDIgMjUyLjE5NyA2OTQuMTM4IDI2MS4yNDEgNjc3LjY3NkMyNzAuMjczIDY2MS4yMzYgMjgzLjc0OCA2NDQuODY0IDMwMy44OTEgNjMyLjU4N0MzMjQuMDI0IDYyMC4zMTYgMzUxLjA0MiA2MTIgMzg3LjM4IDYxMloiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iOCIvPgogICAgPGRlZnM+CiAgICA8ZmlsdGVyIGlkPSJmaWx0ZXIwX2RfMThfNCIgeD0iMCIgeT0iMCIgd2lkdGg9IjEyMDYiIGhlaWdodD0iODkwIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CiAgICA8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgogICAgPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CiAgICA8ZmVPZmZzZXQgZHk9IjQiLz4KICAgIDxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIiLz4KICAgIDxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgogICAgPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMjUgMCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIgcmVzdWx0PSJzaGFwZSIvPgogICAgPC9maWx0ZXI+CiAgICA8L2RlZnM+CiAgICA8L3N2Zz4KICAgIA==";
5
6
  function ea(a) {
6
7
  let e, t, s, n, r, o, g, h, d, l, u;
7
8
  return {
8
9
  c() {
9
- e = D("div"), t = se("svg"), s = se("defs"), n = se("mask"), r = se("rect"), o = se("rect"), u = se("rect"), this.c = X, f(r, "width", "100%"), f(r, "height", "100%"), f(r, "fill", "white"), f(o, "id", "transparent-rect"), f(o, "x", g = "calc((100% - " + /*$docDimensions*/
10
+ e = D("div"), t = se("svg"), s = se("defs"), n = se("mask"), r = se("rect"), o = se("rect"), u = se("rect"), this.c = Y, f(r, "width", "100%"), f(r, "height", "100%"), f(r, "fill", "white"), f(o, "id", "transparent-rect"), f(o, "x", g = "calc((100% - " + /*$docDimensions*/
10
11
  a[2].width + "px) / 2)"), f(o, "y", h = "calc(" + /*y*/
11
12
  a[3] + ")"), f(o, "width", d = /*$docDimensions*/
12
13
  a[2].width), f(o, "height", l = /*$docDimensions*/
@@ -35,16 +36,16 @@ function ea(a) {
35
36
  ) + ", " + (1 - /*videoOverlayTransparency*/
36
37
  c[1] / 100) + ")");
37
38
  },
38
- i: X,
39
- o: X,
39
+ i: Y,
40
+ o: Y,
40
41
  d(c) {
41
- c && W(e);
42
+ c && S(e);
42
43
  }
43
44
  };
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, Ci, (l) => t(5, n = l)), M(a, oe, (l) => t(6, r = l));
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);
@@ -61,7 +62,7 @@ function ta(a, e, t) {
61
62
  r
62
63
  ];
63
64
  }
64
- class Yt extends ot {
65
+ class Qt extends ot {
65
66
  constructor(e) {
66
67
  super(), rt(
67
68
  this,
@@ -96,10 +97,10 @@ class Yt extends ot {
96
97
  this.$$set({ videoOverlayTransparency: e }), j();
97
98
  }
98
99
  }
99
- customElements.define("document-overlay", Yt);
100
+ customElements.define("document-overlay", Qt);
100
101
  function Lt(a) {
101
102
  let e, t;
102
- return e = new Qi({}), {
103
+ return e = new Ki({}), {
103
104
  c() {
104
105
  $(e.$$.fragment);
105
106
  },
@@ -107,7 +108,7 @@ function Lt(a) {
107
108
  ee(e, s, n), t = !0;
108
109
  },
109
110
  i(s) {
110
- t || (S(e.$$.fragment, s), t = !0);
111
+ t || (E(e.$$.fragment, s), t = !0);
111
112
  },
112
113
  o(s) {
113
114
  L(e.$$.fragment, s), t = !1;
@@ -122,7 +123,7 @@ function ia(a) {
122
123
  /*showWatermark*/
123
124
  a[3] && Lt()
124
125
  );
125
- return d = new Yt({
126
+ return d = new Qt({
126
127
  props: {
127
128
  videoOverlay: (
128
129
  /*videoOverlay*/
@@ -139,7 +140,7 @@ function ia(a) {
139
140
  }
140
141
  }), {
141
142
  c() {
142
- e = D("div"), t = D("div"), s = D("div"), n = D("img"), o = H(), u && u.c(), h = H(), $(d.$$.fragment), this.c = X, Te(n.src, r = $i) || f(n, "src", r), f(n, "alt", "document"), f(s, "class", "w-full h-full relative"), f(t, "class", "absolute inset-0 flex justify-center"), f(e, "id", "doc-rectangle"), f(e, "class", g = "doc-loader " + /*loading*/
143
+ e = D("div"), t = D("div"), s = D("div"), n = D("img"), o = H(), u && u.c(), h = H(), $(d.$$.fragment), this.c = Y, Te(n.src, r = $i) || f(n, "src", r), f(n, "alt", "document"), f(s, "class", "w-full h-full relative"), f(t, "class", "absolute inset-0 flex justify-center"), f(e, "id", "doc-rectangle"), f(e, "class", g = "doc-loader " + /*loading*/
143
144
  (a[0] ? "doc-loading" : "") + " z-10"), f(
144
145
  e,
145
146
  "style",
@@ -153,7 +154,7 @@ function ia(a) {
153
154
  p(c, [b]) {
154
155
  /*showWatermark*/
155
156
  c[3] ? u ? b & /*showWatermark*/
156
- 8 && S(u, 1) : (u = Lt(), u.c(), S(u, 1), u.m(e, null)) : u && (Ae(), L(u, 1, 1, () => {
157
+ 8 && E(u, 1) : (u = Lt(), u.c(), E(u, 1), u.m(e, null)) : u && (Ae(), L(u, 1, 1, () => {
157
158
  u = null;
158
159
  }), Oe()), (!l || b & /*loading*/
159
160
  1 && g !== (g = "doc-loader " + /*loading*/
@@ -174,13 +175,13 @@ function ia(a) {
174
175
  c[4]), d.$set(I);
175
176
  },
176
177
  i(c) {
177
- l || (S(u), S(d.$$.fragment, c), l = !0);
178
+ l || (E(u), E(d.$$.fragment, c), l = !0);
178
179
  },
179
180
  o(c) {
180
181
  L(u), L(d.$$.fragment, c), l = !1;
181
182
  },
182
183
  d(c) {
183
- c && W(e), u && u.d(), c && W(h), te(d, c);
184
+ c && S(e), u && u.d(), c && S(h), te(d, c);
184
185
  }
185
186
  };
186
187
  }
@@ -189,7 +190,7 @@ function na(a, e, t) {
189
190
  let s, n, r;
190
191
  M(a, q, (I) => t(9, n = I)), M(a, oe, (I) => t(10, r = I));
191
192
  let { loading: o } = e, { videoOverlay: g = "" } = e, { videoOverlayTransparency: h = 100 } = e, { showWatermark: d } = e, l, u, c = 6, b = 0.7;
192
- return Q() && (b = 0.85, c = 5), a.$$set = (I) => {
193
+ return X() && (b = 0.85, c = 5), a.$$set = (I) => {
193
194
  "loading" in I && t(0, o = I.loading), "videoOverlay" in I && t(1, g = I.videoOverlay), "videoOverlayTransparency" in I && t(2, h = I.videoOverlayTransparency), "showWatermark" in I && t(3, d = I.showWatermark);
194
195
  }, a.$$.update = () => {
195
196
  a.$$.dirty & /*$videoStore, percentage, rectangleHeight, rectangleWidth, $docDimensions*/
@@ -215,7 +216,7 @@ function na(a, e, t) {
215
216
  r
216
217
  ];
217
218
  }
218
- class Qt extends ot {
219
+ class Xt extends ot {
219
220
  constructor(e) {
220
221
  super(), rt(
221
222
  this,
@@ -264,13 +265,13 @@ class Qt extends ot {
264
265
  this.$$set({ showWatermark: e }), j();
265
266
  }
266
267
  }
267
- customElements.define("doc-rectangle", Qt);
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, C, O, A = (
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 Vi({
274
+ return u = new Ui({}), b = new qi({
274
275
  props: {
275
276
  showConfigButton: (
276
277
  /*showConfigButton*/
@@ -296,7 +297,7 @@ function Ut(a) {
296
297
  }), {
297
298
  c() {
298
299
  e = D("div"), t = D("div"), s = D("video"), r = H(), o = D("canvas"), g = H(), h = D("div"), d = D("div"), A && A.c(), l = H(), $(u.$$.fragment), c = H(), $(b.$$.fragment), f(s, "id", "bry-cc-camera-video-tag"), f(s, "class", n = /*$ready*/
299
- a[12] ? Q() ? "absolute inset-0" : "w-full h-full object-cover" : "w-0 h-0"), s.playsInline = !0, s.muted = !0, s.autoplay = !0, f(o, "id", "bry-ce-detectionsCanvas"), f(o, "class", "absolute top-0 left-0 max-w-full"), f(t, "class", "overflow-hidden"), ne(
300
+ a[12] ? X() ? "absolute inset-0" : "w-full h-full object-cover" : "w-0 h-0"), s.playsInline = !0, s.muted = !0, s.autoplay = !0, f(o, "id", "bry-ce-detectionsCanvas"), f(o, "class", "absolute top-0 left-0 max-w-full"), f(t, "class", "overflow-hidden"), ne(
300
301
  t,
301
302
  "width",
302
303
  /*$videoStore*/
@@ -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, C || (O = [
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,12 +326,12 @@ function Ut(a) {
325
326
  a[6],
326
327
  { once: !0 }
327
328
  )
328
- ], C = !0);
329
+ ], y = !0);
329
330
  },
330
331
  p(T, R) {
331
332
  (!m || R[0] & /*$ready*/
332
333
  4096 && n !== (n = /*$ready*/
333
- T[12] ? Q() ? "absolute inset-0" : "w-full h-full object-cover" : "w-0 h-0")) && f(s, "class", n), (!m || R[0] & /*$videoStore*/
334
+ T[12] ? X() ? "absolute inset-0" : "w-full h-full object-cover" : "w-0 h-0")) && f(s, "class", n), (!m || R[0] & /*$videoStore*/
334
335
  8192) && ne(
335
336
  t,
336
337
  "width",
@@ -344,7 +345,7 @@ function Ut(a) {
344
345
  T[13].videoHeight + "px"
345
346
  ), /*$ready*/
346
347
  T[12] ? A ? (A.p(T, R), R[0] & /*$ready*/
347
- 4096 && S(A, 1)) : (A = Bt(T), A.c(), S(A, 1), A.m(d, null)) : A && (Ae(), L(A, 1, 1, () => {
348
+ 4096 && E(A, 1)) : (A = Bt(T), A.c(), E(A, 1), A.m(d, null)) : A && (Ae(), L(A, 1, 1, () => {
348
349
  A = null;
349
350
  }), Oe());
350
351
  const P = {};
@@ -363,26 +364,26 @@ function Ut(a) {
363
364
  T[11] !== F.OK)) && (e.hidden = Z);
364
365
  },
365
366
  i(T) {
366
- m || (S(A), S(u.$$.fragment, T), S(b.$$.fragment, T), m = !0);
367
+ m || (E(A), E(u.$$.fragment, T), E(b.$$.fragment, T), m = !0);
367
368
  },
368
369
  o(T) {
369
370
  L(A), L(u.$$.fragment, T), L(b.$$.fragment, T), m = !1;
370
371
  },
371
372
  d(T) {
372
- T && W(e), a[34](null), a[36](null), A && A.d(), te(u), te(b), C = !1, ut(O);
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 Ji({
379
+ return e = new Xi({
379
380
  props: {
380
381
  isCountingDown: (
381
382
  /*isCountingDown*/
382
383
  a[10]
383
384
  )
384
385
  }
385
- }), s = new Qt({
386
+ }), s = new Xt({
386
387
  props: {
387
388
  loading: (
388
389
  /*isCountingDown*/
@@ -425,13 +426,13 @@ function Bt(a) {
425
426
  r[5]), s.$set(h);
426
427
  },
427
428
  i(r) {
428
- n || (S(e.$$.fragment, r), S(s.$$.fragment, r), n = !0);
429
+ n || (E(e.$$.fragment, r), E(s.$$.fragment, r), n = !0);
429
430
  },
430
431
  o(r) {
431
432
  L(e.$$.fragment, r), L(s.$$.fragment, r), n = !1;
432
433
  },
433
434
  d(r) {
434
- te(e, r), r && W(t), te(s, r);
435
+ te(e, r), r && S(t), te(s, r);
435
436
  }
436
437
  };
437
438
  }
@@ -455,7 +456,7 @@ function Gt(a) {
455
456
  g === (g = o(d)) && h ? h.p(d, l) : (h.d(1), h = g(d), h && (h.c(), h.m(t, null)));
456
457
  },
457
458
  d(d) {
458
- d && W(e), h.d();
459
+ d && S(e), h.d();
459
460
  }
460
461
  };
461
462
  }
@@ -477,7 +478,7 @@ function oa(a) {
477
478
  n[19]("faceCollector.initiatingCamera") + "") && J(s, t);
478
479
  },
479
480
  d(n) {
480
- n && W(e);
481
+ n && S(e);
481
482
  }
482
483
  };
483
484
  }
@@ -490,13 +491,13 @@ function ra(a) {
490
491
  m(t, s) {
491
492
  z(t, e, s);
492
493
  },
493
- p: X,
494
+ p: Y,
494
495
  d(t) {
495
- t && W(e);
496
+ t && S(e);
496
497
  }
497
498
  };
498
499
  }
499
- function Xt(a) {
500
+ function Yt(a) {
500
501
  let e, t, s = (
501
502
  /*$_*/
502
503
  a[19]("faceCollector.finish") + ""
@@ -535,13 +536,13 @@ function Xt(a) {
535
536
  c[19]("faceCollector.retakePhoto") + "") && J(d, h);
536
537
  },
537
538
  d(c) {
538
- c && W(e), l = !1, ut(u);
539
+ c && S(e), l = !1, ut(u);
539
540
  }
540
541
  };
541
542
  }
542
543
  function la(a) {
543
544
  let e, t;
544
- return e = new Ki({ props: { handler: (
545
+ return e = new Vi({ props: { handler: (
545
546
  /*func*/
546
547
  a[42]
547
548
  ) } }), {
@@ -551,9 +552,9 @@ function la(a) {
551
552
  m(s, n) {
552
553
  ee(e, s, n), t = !0;
553
554
  },
554
- p: X,
555
+ p: Y,
555
556
  i(s) {
556
- t || (S(e.$$.fragment, s), t = !0);
557
+ t || (E(e.$$.fragment, s), t = !0);
557
558
  },
558
559
  o(s) {
559
560
  L(e.$$.fragment, s), t = !1;
@@ -595,10 +596,10 @@ function ca(a) {
595
596
  4194304 && o !== (o = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (/*$showFaceWhileValidating*/
596
597
  l[22] ? "grid overflow-hidden" : "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible")) && f(e, "class", o);
597
598
  },
598
- i: X,
599
- o: X,
599
+ i: Y,
600
+ o: Y,
600
601
  d(l) {
601
- l && W(e), d.d();
602
+ l && S(e), d.d();
602
603
  }
603
604
  };
604
605
  }
@@ -610,12 +611,12 @@ function ua(a) {
610
611
  /*$_*/
611
612
  a[19]("faceCollector.retakePhoto") + ""
612
613
  ), u, c, b;
613
- function I(C, O) {
614
+ function I(y, O) {
614
615
  return (
615
616
  /*$requestResult*/
616
- C[18] === re.TEMPLATE_EXTRACTION_ERROR ? ha : (
617
+ y[18] === re.TEMPLATE_EXTRACTION_ERROR ? ha : (
617
618
  /*$saved*/
618
- C[15] ? fa : ga
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(C, O) {
630
- z(C, 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 = [
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(C, O) {
646
- Z === (Z = I(C)) && m ? m.p(C, O) : (m.d(1), m = Z(C), m && (m.c(), m.m(e, t))), O[0] & /*$_*/
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
- C[19]("faceCollector.finish") + "") && J(o, r), O[0] & /*$saved, $requestResult*/
649
+ y[19]("faceCollector.finish") + "") && J(o, r), O[0] & /*$saved, $requestResult*/
649
650
  294912 && g !== (g = /*$saved*/
650
- C[15] || /*$requestResult*/
651
- C[18] !== re.OK) && (n.disabled = g), O[0] & /*$_*/
651
+ y[15] || /*$requestResult*/
652
+ y[18] !== re.OK) && (n.disabled = g), O[0] & /*$_*/
652
653
  524288 && l !== (l = /*$_*/
653
- C[19]("faceCollector.retakePhoto") + "") && J(u, l);
654
+ y[19]("faceCollector.retakePhoto") + "") && J(u, l);
654
655
  },
655
- d(C) {
656
- C && W(e), m.d(), c = !1, ut(b);
656
+ d(y) {
657
+ y && S(e), m.d(), c = !1, ut(b);
657
658
  }
658
659
  };
659
660
  }
@@ -666,9 +667,9 @@ function da(a) {
666
667
  m(t, s) {
667
668
  z(t, e, s);
668
669
  },
669
- p: X,
670
+ p: Y,
670
671
  d(t) {
671
- t && W(e);
672
+ t && S(e);
672
673
  }
673
674
  };
674
675
  }
@@ -690,7 +691,7 @@ function fa(a) {
690
691
  n[19]("docCollector.captured") + "") && J(s, t);
691
692
  },
692
693
  d(n) {
693
- n && W(e);
694
+ n && S(e);
694
695
  }
695
696
  };
696
697
  }
@@ -712,7 +713,7 @@ function ga(a) {
712
713
  n[19]("faceCollector.everythingOk") + "") && J(s, t);
713
714
  },
714
715
  d(n) {
715
- n && W(e);
716
+ n && S(e);
716
717
  }
717
718
  };
718
719
  }
@@ -734,7 +735,7 @@ function ha(a) {
734
735
  n[19]("docCollector.docNotFound") + "") && J(s, t);
735
736
  },
736
737
  d(n) {
737
- n && W(e);
738
+ n && S(e);
738
739
  }
739
740
  };
740
741
  }
@@ -746,10 +747,10 @@ function ma(a) {
746
747
  a[12] && /*$cameraStatusStore*/
747
748
  a[11] === F.OK && Gt(a), c = (
748
749
  /*$captured*/
749
- a[14] && Xt(a)
750
+ a[14] && Yt(a)
750
751
  );
751
752
  const b = [ca, la], I = [];
752
- function Z(m, C) {
753
+ function Z(m, y) {
753
754
  return (
754
755
  /*showUnconformities*/
755
756
  m[0] && /*$captured*/
@@ -761,33 +762,33 @@ function ma(a) {
761
762
  }
762
763
  return ~(o = Z(a)) && (g = I[o] = b[o](a)), {
763
764
  c() {
764
- 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 = X, f(t, "class", "relative mx-auto"), f(e, "class", "flex flex-col justify-between");
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, C) {
767
- 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;
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, C) {
770
+ p(m, y) {
770
771
  /*$videoStore*/
771
- m[13] ? l ? (l.p(m, C), C[0] & /*$videoStore*/
772
- 8192 && S(l, 1)) : (l = Ut(m), l.c(), S(l, 1), l.m(t, s)) : l && (Ae(), L(l, 1, 1, () => {
772
+ m[13] ? l ? (l.p(m, y), y[0] & /*$videoStore*/
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, C) : (u = Gt(m), u.c(), u.m(t, n)) : u && (u.d(1), u = null), /*$captured*/
777
- m[14] ? c ? c.p(m, C) : (c = Xt(m), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
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, C) : (g && (Ae(), L(I[O], 1, 1, () => {
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, C) : (g = I[o] = b[o](m), g.c()), S(g, 1), g.m(h.parentNode, h)) : g = null);
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
- d || (S(l), S(g), d = !0);
785
+ d || (E(l), E(g), d = !0);
785
786
  },
786
787
  o(m) {
787
788
  L(l), L(g), d = !1;
788
789
  },
789
790
  d(m) {
790
- m && W(e), l && l.d(), u && u.d(), c && c.d(), a[39](null), m && W(r), ~o && I[o].d(m), m && W(h);
791
+ m && S(e), l && l.d(), u && u.d(), c && c.d(), a[39](null), m && S(r), ~o && I[o].d(m), m && S(h);
791
792
  }
792
793
  };
793
794
  }
@@ -798,37 +799,37 @@ 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, C, O, A, T, R, P, Ne, K, de, x, dt, ft, gt;
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, ye, (i) => t(14, b = i)), M(a, Je, (i) => t(63, I = i)), M(a, Ke, (i) => t(64, Z = i)), M(a, jt, (i) => t(65, m = i)), M(a, q, (i) => t(66, C = i)), M(a, Ce, (i) => t(67, O = i)), M(a, xe, (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, K = i)), M(a, Et, (i) => t(69, x = 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
- let _, E, Y, ce = !1, ht = !1, U = {
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));
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: yt } = e, { faceDetectionSensitivity: fe } = e;
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
- const Ee = Ht("data:image/png;base64");
813
- M(a, Ee, (i) => t(20, de = i));
814
- let Ct = !1, he = !0, Mt = 0, Se = 0, We = !0, Dt = 0, Ze = (/* @__PURE__ */ new Date()).getTime(), Pe = !1;
813
+ const We = Ht("data:image/png;base64");
814
+ M(a, We, (i) => t(20, de = i));
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
- if (St("Mounting Document Collector!"), v(Ie, g = !1, g), _t(), x)
817
+ if (Et("Mounting Document Collector!"), v(Ie, g = !1, g), _t(), K)
817
818
  try {
818
819
  await ki(Re), ht = !0;
819
820
  } catch {
820
- v(Et, x = !1, x);
821
+ v(Wt, K = !1, K);
821
822
  }
822
- await He(), Kt();
823
+ await He(), xt();
823
824
  });
824
825
  function _t() {
825
- v(ye, b = !1, b), v(jt, m = !0, m), v(Ce, O = "", O), v(we, d = et.REAR_CAMERA, d), v(ve, r = !1, r), v(xe, A = !1, A), v(Me, P = re.OK, P), v(qe, K = "", K);
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((y) => y ? parseInt(y) : void 0);
831
- !i || !p || (Q() ? (await Gi(), v(
831
+ const [i, p] = (ze ?? "")?.replaceAll(" ", "")?.split("x")?.map((C) => C ? parseInt(C) : void 0);
832
+ !i || !p || (X() ? (await Gi(), v(
832
833
  oe,
833
834
  c = {
834
835
  videoWidth: window.innerWidth,
@@ -838,31 +839,31 @@ 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), Ct = !0, he = !1;
842
+ v(G, o = F.OK, o), yt = !0, he = !1;
842
843
  }
843
844
  async function me() {
844
- if (x && !ht)
845
+ if (K && !ht)
845
846
  return pe(_, me);
846
847
  if (_) {
847
848
  if (dt !== at.Document && !je)
848
849
  return pe(_, me);
849
- v(Ie, g = !0, g), x && (n || v(ge, n = !0, n)), pe(_, me);
850
+ v(Ie, g = !0, g), K && (n || v(ge, n = !0, n)), pe(_, me);
850
851
  }
851
852
  }
852
853
  async function Tt() {
853
- let i = xt();
854
- if (x && !(await Xi(i, fe)).result) {
854
+ let i = Kt();
855
+ if (K && !(await Yi(i, fe)).result) {
855
856
  Ft("Document capture - document not detected! Resetting capture.");
856
857
  return;
857
858
  }
858
- v(ye, b = !0, b);
859
+ v(Ce, b = !0, b);
859
860
  let p = [];
860
861
  try {
861
- const y = i.toDataURL("image/jpeg").split(",");
862
- v(Ee, de = y[0], de), v(Rt, R = y[1], R), v(qe, K = y[1], K), p = [
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
- data: K
866
+ data: x
866
867
  }
867
868
  ], v(Me, P = re.OK, P), window.dispatchEvent(new CustomEvent(
868
869
  "document-unconformities-validated",
@@ -870,13 +871,13 @@ function wa(a, e, t) {
870
871
  detail: { bodyParts: p, status: P }
871
872
  }
872
873
  ));
873
- } catch (y) {
874
- _e(y);
875
- let N, k = Yi.DOCUMENT_NOT_FOUND, B = [];
876
- y instanceof Error && ["DOCUMENT_NOT_FOUND"].includes(y.message) && (v(Me, P = re.TEMPLATE_EXTRACTION_ERROR, P), N = y.message, B = [
874
+ } catch (C) {
875
+ _e(C);
876
+ let N, k = Qi.DOCUMENT_NOT_FOUND, B = [];
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
- data: K,
880
+ data: x,
880
881
  format: "jpg"
881
882
  }
882
883
  ]), window.dispatchEvent(new CustomEvent(
@@ -898,36 +899,36 @@ function wa(a, e, t) {
898
899
  data: R,
899
900
  justification: T
900
901
  };
901
- v(xe, A = !0, A), window.dispatchEvent(new CustomEvent("export-document", { detail: i }));
902
+ v(Ke, A = !0, A), window.dispatchEvent(new CustomEvent("export-document", { detail: i }));
902
903
  }
903
904
  function be() {
904
905
  window.dispatchEvent(new CustomEvent("document-scrapped")), _t(), he && pt();
905
906
  }
906
907
  async function He(i) {
907
- if (!We) {
908
+ if (!Se) {
908
909
  v(G, o = F.CAMERA_ORIENTATION_PORTRAIT, o);
909
910
  return;
910
911
  }
911
912
  await Jt();
912
913
  try {
913
- let { stream: p, deviceId: y, width: N, height: k, aspectRatio: B } = await Wt(U.width, U.height, d, i);
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
- const { stream: Le } = await Wt(U.width, U.height, d, i);
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 = y || l[0].deviceId, u);
920
+ v(ue, u = C || l[0].deviceId, u);
920
921
  } catch (p) {
921
- const y = p;
922
+ const C = p;
922
923
  he = !0;
923
924
  const N = De(p) && p.constraint ? p.constraint : "";
924
- _e(y, N), De(y) && "message" in y && y.message.includes("Permission denied") && (_e("User didn't give permission to use camera!"), v(G, o = F.CAMERA_DENIED_ERROR, o)), De(y) && "message" in y && y.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
+ _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() {
928
929
  v(ue, u = "", u), await He();
929
930
  }
930
- function Kt() {
931
+ function xt() {
931
932
  navigator.mediaDevices.ondevicechange = async (i) => {
932
933
  await Zt(), o !== F.OK ? await ie() : I.active || (it(), v(G, o = F.DEVICE_NOT_FOUND_ERROR, o));
933
934
  };
@@ -935,46 +936,46 @@ 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(Ce, O = "docCollector.docWasNotFound", O)) : Pe || (Pe = !0, setTimeout(
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(Ce, O = "", O);
941
+ Pe = !1, O != "docCollector.docWasNotFound" && v(ye, O = "", O);
941
942
  },
942
943
  1500
943
944
  ));
944
945
  }
945
- function xt() {
946
- const i = c.videoWidth, p = c.videoHeight, y = Vt.width, N = p / i * y, k = document.createElement("canvas"), B = k.getContext("2d");
947
- k.width = y, k.height = N, B && Ia(B, _, k);
948
- const Le = k.width / c.videoWidth, Ue = k.height / c.videoHeight, vi = Q() ? 0.25 : 0.15, Ii = Math.round(k.height * vi), Be = C.width * Le, Ge = C.height * Ue, Nt = (Q() ? 0.15 : 0.2) * Be, kt = 0.2 * Ge, wi = (k.width - Be) / 2 - Nt / 2, yi = (k.height - Ii - Ge) / 2 - kt / 2, Xe = Be + Nt, Ye = Ge + kt, ae = document.createElement("canvas");
949
- ae.width = Xe, ae.height = Ye;
950
- const Qe = ae.getContext("2d");
951
- return Qe?.clearRect(0, 0, ae.width, ae.height), Qe?.drawImage(k, wi, yi, Xe, Ye, 0, 0, Xe, Ye), Qe?.save(), ae;
946
+ function Kt() {
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");
950
+ ae.width = Ye, ae.height = Qe;
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
953
  }
953
954
  const qt = oe.subscribe((i) => {
954
- _ && E && (t(7, _.width = i.videoWidth, _), t(7, _.height = i.videoHeight, _), t(8, E.width = i.videoWidth, E), t(8, E.height = i.videoHeight, E));
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));
955
956
  }), $t = tt.subscribe((i) => {
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 y = setInterval(
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(y);
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(y), t(10, ce = !1), Tt());
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 = ye.subscribe((i) => {
976
- Y && (i ? (Y.classList.remove("flex"), Y.classList.add("hidden")) : (Y.classList.add("flex"), Y.classList.remove("hidden")));
977
- }), ti = Ke.subscribe((i) => {
976
+ }), ei = Ce.subscribe((i) => {
977
+ Q && (i ? (Q.classList.remove("flex"), Q.classList.add("hidden")) : (Q.classList.add("flex"), Q.classList.remove("hidden")));
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));
979
980
  });
980
981
  $e.subscribe(async (i) => {
@@ -984,47 +985,47 @@ 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(Ke, Z = !1, Z), I.getTracks().forEach((y) => {
988
- y.readyState === "live" && Pt(`Camera ${y.label} opened successfully!`);
989
- }), v(G, o = F.OK, o), Ei(_);
988
+ t(7, _.srcObject = I, _), v(xe, Z = !1, Z), I.getTracks().forEach((C) => {
989
+ C.readyState === "live" && Pt(`Camera ${C.label} opened successfully!`);
990
+ }), v(G, o = F.OK, o), Wi(_);
990
991
  } catch (p) {
991
- const y = p;
992
- he = !0, De(y) && "message" in y && y.message.includes("Requested device not found") && v(G, o = F.DEVICE_NOT_FOUND_ERROR, o);
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 && !Ct && !b && ba && await pt();
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) => {
999
1000
  i && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
1000
- }), oi = Si.subscribe(async (i) => {
1001
+ }), oi = Ei.subscribe(async (i) => {
1001
1002
  if (!(!c || l.length <= 1)) {
1002
- if (it(), !Q()) {
1003
- const y = (l.findIndex((k) => k.deviceId === u) + 1) % l.length, N = l[y].deviceId;
1003
+ if (it(), !X()) {
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
  }
1007
1008
  i ? (v(we, d = et.FRONT_CAMERA, d), await ie()) : (v(we, d = et.REAR_CAMERA, d), await ie());
1008
1009
  }
1009
- }), ri = Wi.subscribe(async (i) => {
1010
- !i.isSupported || !Q() || h != "DOCUMENT" || (We = i.orientation.includes("portrait"), We ? _ && !g ? await ie() : v(G, o = F.OK, o) : v(G, o = F.CAMERA_ORIENTATION_PORTRAIT, o));
1010
+ }), ri = Si.subscribe(async (i) => {
1011
+ !i.isSupported || !X() || h != "DOCUMENT" || (Se = i.orientation.includes("portrait"), Se ? _ && !g ? await ie() : v(G, o = F.OK, o) : v(G, o = F.CAMERA_ORIENTATION_PORTRAIT, o));
1011
1012
  });
1012
1013
  async function Ot() {
1013
1014
  let i;
1014
1015
  try {
1015
- if (Se >= va) {
1016
- Se = 0;
1017
- const p = await Zi(fe), y = await import("./face_api_0e3ce8c8_3.3.0-RC05.js");
1016
+ if (Ee >= va) {
1017
+ Ee = 0;
1018
+ const p = await Zi(fe), C = await import("./face_api_0e3ce8c8_3.3.0-RC07.js");
1018
1019
  let N;
1019
- if (N = y.detectSingleFace(_, p), i = await N.withFaceLandmarks(), E.getContext("2d")?.clearRect(0, 0, E.width, E.height), i != null) {
1020
- const k = xi(E, _, !0);
1021
- Pi(E, _, k);
1022
- const B = qi(i, k);
1023
- Fi(B) ? (Hi(B, E, ke, !0), v(ve, r = !0, r), Ze = (/* @__PURE__ */ new Date()).getTime()) : At();
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);
1022
+ Pi(W, _, k);
1023
+ const B = xi(i, k);
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();
1026
1027
  } else
1027
- Se++;
1028
+ Ee++;
1028
1029
  } catch (p) {
1029
1030
  Ft(`FaceapiLoop: ${p}`);
1030
1031
  } finally {
@@ -1034,7 +1035,7 @@ function wa(a, e, t) {
1034
1035
  Ve.subscribe(async (i) => {
1035
1036
  i && (be(), v(Ve, s = !1, s));
1036
1037
  }), Li(() => {
1037
- St("Destroying document collector"), it(), ei(), $t(), qt(), ti(), ii(), ai(), clearInterval(Mt), si(), oi(), ni(), ri(), Mt = 0;
1038
+ Et("Destroying document collector"), it(), ei(), $t(), qt(), ti(), ii(), ai(), clearInterval(Mt), si(), oi(), ni(), ri(), Mt = 0;
1038
1039
  });
1039
1040
  function li(i) {
1040
1041
  st[i ? "unshift" : "push"](() => {
@@ -1042,35 +1043,35 @@ function wa(a, e, t) {
1042
1043
  });
1043
1044
  }
1044
1045
  const ci = () => {
1045
- t(7, _.width = c.videoWidth, _), t(7, _.height = c.videoHeight, _), t(8, E.width = c.videoWidth, E), t(8, E.height = c.videoHeight, E);
1046
+ t(7, _.width = c.videoWidth, _), t(7, _.height = c.videoHeight, _), t(8, W.width = c.videoWidth, W), t(8, W.height = c.videoHeight, W);
1046
1047
  };
1047
1048
  function ui(i) {
1048
1049
  st[i ? "unshift" : "push"](() => {
1049
- E = i, t(8, E);
1050
+ W = i, t(8, W);
1050
1051
  });
1051
1052
  }
1052
1053
  const di = () => Fe(), fi = () => be();
1053
1054
  function gi(i) {
1054
1055
  st[i ? "unshift" : "push"](() => {
1055
- Y = i, t(9, Y);
1056
+ Q = i, t(9, Q);
1056
1057
  });
1057
1058
  }
1058
1059
  const hi = () => Fe(), mi = () => be(), bi = async () => {
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, yt = i.showWatermark), "faceDetectionSensitivity" in i && t(33, fe = i.faceDetectionSensitivity);
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
- yt,
1070
+ Ct,
1070
1071
  me,
1071
1072
  _,
1072
- E,
1073
- Y,
1073
+ W,
1074
+ Q,
1074
1075
  ce,
1075
1076
  o,
1076
1077
  g,
@@ -1085,7 +1086,7 @@ function wa(a, e, t) {
1085
1086
  ft,
1086
1087
  gt,
1087
1088
  ge,
1088
- Ee,
1089
+ We,
1089
1090
  Tt,
1090
1091
  Fe,
1091
1092
  be,
@@ -1106,7 +1107,7 @@ function wa(a, e, t) {
1106
1107
  bi
1107
1108
  ];
1108
1109
  }
1109
- class ya extends ot {
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", ya);
1226
+ customElements.define("document-collector", Ca);
1226
1227
  export {
1227
- ya as default
1228
+ Ca as default
1228
1229
  };