bry-biometric-collector 3.3.0-RC03 → 3.3.0-RC05

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 (22) hide show
  1. package/README.md +14 -3
  2. package/dist/{DocumentCollector_7dff158f_3.3.0-RC03.js → DocumentCollector_fac8e88e_3.3.0-RC05.js} +258 -258
  3. package/dist/FaceCollector_d7a5f6dd_3.3.0-RC05.js +2387 -0
  4. package/dist/{ValidationAlert_90602fb5_3.3.0-RC03.js → ValidationAlert_51a3395e_3.3.0-RC05.js} +122 -122
  5. package/dist/{___vite-browser-external_commonjs-proxy_33bd553f_3.3.0-RC03.js → ___vite-browser-external_commonjs-proxy_9c968044_3.3.0-RC05.js} +1 -1
  6. package/dist/bry-biometric-collector-main.js +2 -2
  7. package/dist/faceApi_a8b6f8d4_3.3.0-RC05.js +15 -0
  8. package/dist/{fingersApi_0fe148d9_3.3.0-RC03.js → fingersApi_22e412a3_3.3.0-RC05.js} +34 -34
  9. package/dist/index.d.ts +2 -2
  10. package/dist/index.js +2 -2
  11. package/dist/{index_9787e7e2_3.3.0-RC03.js → index_8a9061ba_3.3.0-RC05.js} +3 -3
  12. package/dist/{index_c5f180d9_3.3.0-RC03.js → index_a05d6356_3.3.0-RC05.js} +3 -3
  13. package/dist/{main_aed227b6_3.3.0-RC03.js → main_35f2cba0_3.3.0-RC05.js} +6434 -6398
  14. package/package.json +4 -2
  15. package/dist/FaceCollector_e0849e85_3.3.0-RC03.js +0 -2366
  16. package/dist/faceApi_53f06f20_3.3.0-RC03.js +0 -17
  17. /package/dist/{en-us_e83efd5d_3.3.0-RC03.js → en-us_e83efd5d_3.3.0-RC05.js} +0 -0
  18. /package/dist/{es-cl_5939150a_3.3.0-RC03.js → es-cl_5939150a_3.3.0-RC05.js} +0 -0
  19. /package/dist/{face_api_0e3ce8c8_3.3.0-RC03.js → face_api_0e3ce8c8_3.3.0-RC05.js} +0 -0
  20. /package/dist/{index-idlf-detector_39cfdffa_3.3.0-RC03.js → index-idlf-detector_39cfdffa_3.3.0-RC05.js} +0 -0
  21. /package/dist/{index-idlf-detector_a819b3c8_3.3.0-RC03.js → index-idlf-detector_a819b3c8_3.3.0-RC05.js} +0 -0
  22. /package/dist/{pt-br_fae15356_3.3.0-RC03.js → pt-br_fae15356_3.3.0-RC05.js} +0 -0
@@ -1,16 +1,16 @@
1
- import { S as nt, t as ot, x as rt, y as lt, z, B as j, C as D, bi as se, D as Q, E as f, b3 as ne, bj as kt, a4 as w, K as E, L as M, bk as q, bl as vi, N as oe, W as L, Q as $, a2 as pe, R as ee, G as W, H as Te, I as H, J as Ae, T as te, O as Y, P as v, V as F, X as Ii, a6 as Ye, a7 as ve, Z as G, a0 as Ie, a8 as wi, a9 as we, ab as yi, aa as ue, ac as ye, ad as Ve, ae as Je, af as zt, ai as Ce, al as xe, am as Ci, an as jt, ao as Me, $ as Mi, ah as Ke, aq as Rt, as as qe, _ as Di, ax as _i, aA as pi, aB as Ti, aD as $e, aE as re, j as Ai, aF as et, aS as St, d as De, aT as Wt, aU as tt, aV as Oi, aJ as it, bm as Ni, aW as ki, aX as zi, aY as ji, aC as Ri, aZ as Si, bn as Wi, a$ as Ei, b0 as _e, b1 as Zi, b2 as Pi, b4 as le, b5 as ct, a3 as Fi, a1 as V, a5 as J, w as Et, b6 as Li, bo as Hi, ba as at, bp as Ui } from "./main_aed227b6_3.3.0-RC03.js";
2
- import { W as Bi, C as Gi, V as Qi, a as Xi } from "./ValidationAlert_90602fb5_3.3.0-RC03.js";
3
- import { matchDimensions as Yi, resizeResults as Vi } from "./face_api_0e3ce8c8_3.3.0-RC03.js";
4
- const Ji = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwNiIgaGVpZ2h0PSI4OTAiIHZpZXdCb3g9IjAgMCAxMjA2IDg5MCIgZmlsbD0ibm9uZSIgb3BhY2l0eT0iMC4yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIC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KICAgIA==";
5
- function xi(a) {
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";
4
+ const $i = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwNiIgaGVpZ2h0PSI4OTAiIHZpZXdCb3g9IjAgMCAxMjA2IDg5MCIgZmlsbD0ibm9uZSIgb3BhY2l0eT0iMC4yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xOF80KSIgb3BhY2l0eT0iMCI+CiAgICA8bWFzayBpZD0icGF0aC0xLWluc2lkZS0xXzE4XzQiIGZpbGw9IndoaXRlIj4KICAgIDxyZWN0IHg9IjQiIHdpZ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jEyMDYiIGhlaWdodD0iODkwIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CiAgICA8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgogICAgPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CiAgICA8ZmVPZmZzZXQgZHk9IjQiLz4KICAgIDxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIiLz4KICAgIDxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgogICAgPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMjUgMCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIgcmVzdWx0PSJzaGFwZSIvPgogICAgPC9maWx0ZXI+CiAgICA8L2RlZnM+CiAgICA8L3N2Zz4KICAgIA==";
5
+ function ea(a) {
6
6
  let e, t, s, n, r, o, g, h, d, l, u;
7
7
  return {
8
8
  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 = Q, f(r, "width", "100%"), f(r, "height", "100%"), f(r, "fill", "white"), f(o, "id", "transparent-rect"), f(o, "x", g = "calc((100% - " + /*$docDimensions*/
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
10
  a[2].width + "px) / 2)"), f(o, "y", h = "calc(" + /*y*/
11
11
  a[3] + ")"), f(o, "width", d = /*$docDimensions*/
12
12
  a[2].width), f(o, "height", l = /*$docDimensions*/
13
- a[2].height), f(o, "fill", "black"), f(n, "id", "transparentAreaMask"), f(u, "width", "100%"), f(u, "height", "100%"), ne(u, "fill", "rgba(" + kt(
13
+ a[2].height), f(o, "fill", "black"), f(n, "id", "transparentAreaMask"), f(u, "width", "100%"), f(u, "height", "100%"), ne(u, "fill", "rgba(" + zt(
14
14
  /*videoOverlay*/
15
15
  a[0]
16
16
  ) + ", " + (1 - /*videoOverlayTransparency*/
@@ -29,22 +29,22 @@ function xi(a) {
29
29
  c[2].width) && f(o, "width", d), b & /*$docDimensions*/
30
30
  4 && l !== (l = /*$docDimensions*/
31
31
  c[2].height) && f(o, "height", l), b & /*videoOverlay, videoOverlayTransparency*/
32
- 3 && ne(u, "fill", "rgba(" + kt(
32
+ 3 && ne(u, "fill", "rgba(" + zt(
33
33
  /*videoOverlay*/
34
34
  c[0]
35
35
  ) + ", " + (1 - /*videoOverlayTransparency*/
36
36
  c[1] / 100) + ")");
37
37
  },
38
- i: Q,
39
- o: Q,
38
+ i: X,
39
+ o: X,
40
40
  d(c) {
41
- c && E(e);
41
+ c && W(e);
42
42
  }
43
43
  };
44
44
  }
45
- function Ki(a, e, t) {
45
+ function ta(a, e, t) {
46
46
  let s, n, r;
47
- M(a, q, (l) => t(2, s = l)), M(a, vi, (l) => t(5, n = l)), M(a, oe, (l) => t(6, r = l));
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
48
  let { videoOverlay: o } = e, { videoOverlayTransparency: g } = e, h, d;
49
49
  return a.$$set = (l) => {
50
50
  "videoOverlay" in l && t(0, o = l.videoOverlay), "videoOverlayTransparency" in l && t(1, g = l.videoOverlayTransparency);
@@ -61,18 +61,18 @@ function Ki(a, e, t) {
61
61
  r
62
62
  ];
63
63
  }
64
- class Ut extends nt {
64
+ class Yt extends ot {
65
65
  constructor(e) {
66
- super(), ot(
66
+ super(), rt(
67
67
  this,
68
68
  {
69
69
  target: this.shadowRoot,
70
- props: lt(this.attributes),
70
+ props: ct(this.attributes),
71
71
  customElement: !0
72
72
  },
73
- Ki,
74
- xi,
75
- rt,
73
+ ta,
74
+ ea,
75
+ lt,
76
76
  {
77
77
  videoOverlay: 0,
78
78
  videoOverlayTransparency: 1
@@ -96,10 +96,10 @@ class Ut extends nt {
96
96
  this.$$set({ videoOverlayTransparency: e }), j();
97
97
  }
98
98
  }
99
- customElements.define("document-overlay", Ut);
100
- function Zt(a) {
99
+ customElements.define("document-overlay", Yt);
100
+ function Lt(a) {
101
101
  let e, t;
102
- return e = new Bi({}), {
102
+ return e = new Qi({}), {
103
103
  c() {
104
104
  $(e.$$.fragment);
105
105
  },
@@ -107,22 +107,22 @@ function Zt(a) {
107
107
  ee(e, s, n), t = !0;
108
108
  },
109
109
  i(s) {
110
- t || (W(e.$$.fragment, s), t = !0);
110
+ t || (S(e.$$.fragment, s), t = !0);
111
111
  },
112
112
  o(s) {
113
- H(e.$$.fragment, s), t = !1;
113
+ L(e.$$.fragment, s), t = !1;
114
114
  },
115
115
  d(s) {
116
116
  te(e, s);
117
117
  }
118
118
  };
119
119
  }
120
- function qi(a) {
120
+ function ia(a) {
121
121
  let e, t, s, n, r, o, g, h, d, l, u = (
122
122
  /*showWatermark*/
123
- a[3] && Zt()
123
+ a[3] && Lt()
124
124
  );
125
- return d = new Ut({
125
+ return d = new Yt({
126
126
  props: {
127
127
  videoOverlay: (
128
128
  /*videoOverlay*/
@@ -139,7 +139,7 @@ function qi(a) {
139
139
  }
140
140
  }), {
141
141
  c() {
142
- e = D("div"), t = D("div"), s = D("div"), n = D("img"), o = L(), u && u.c(), h = L(), $(d.$$.fragment), this.c = Q, pe(n.src, r = Ji) || 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*/
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
143
  (a[0] ? "doc-loading" : "") + " z-10"), f(
144
144
  e,
145
145
  "style",
@@ -153,9 +153,9 @@ function qi(a) {
153
153
  p(c, [b]) {
154
154
  /*showWatermark*/
155
155
  c[3] ? u ? b & /*showWatermark*/
156
- 8 && W(u, 1) : (u = Zt(), u.c(), W(u, 1), u.m(e, null)) : u && (Te(), H(u, 1, 1, () => {
156
+ 8 && S(u, 1) : (u = Lt(), u.c(), S(u, 1), u.m(e, null)) : u && (Ae(), L(u, 1, 1, () => {
157
157
  u = null;
158
- }), Ae()), (!l || b & /*loading*/
158
+ }), Oe()), (!l || b & /*loading*/
159
159
  1 && g !== (g = "doc-loader " + /*loading*/
160
160
  (c[0] ? "doc-loading" : "") + " z-10")) && f(e, "class", g), (!l || b & /*styleVars*/
161
161
  32) && f(
@@ -174,31 +174,31 @@ function qi(a) {
174
174
  c[4]), d.$set(I);
175
175
  },
176
176
  i(c) {
177
- l || (W(u), W(d.$$.fragment, c), l = !0);
177
+ l || (S(u), S(d.$$.fragment, c), l = !0);
178
178
  },
179
179
  o(c) {
180
- H(u), H(d.$$.fragment, c), l = !1;
180
+ L(u), L(d.$$.fragment, c), l = !1;
181
181
  },
182
182
  d(c) {
183
- c && E(e), u && u.d(), c && E(h), te(d, c);
183
+ c && W(e), u && u.d(), c && W(h), te(d, c);
184
184
  }
185
185
  };
186
186
  }
187
- const st = 1.36, $i = "hsl(var(--p))", ea = "hsl(var(--su))";
188
- function ta(a, e, t) {
187
+ const nt = 1.36, aa = "hsl(var(--p))", sa = "hsl(var(--su))";
188
+ function na(a, e, t) {
189
189
  let s, n, r;
190
190
  M(a, q, (I) => t(9, n = I)), M(a, oe, (I) => t(10, r = I));
191
191
  let { loading: o } = e, { videoOverlay: g = "" } = e, { videoOverlayTransparency: h = 100 } = e, { showWatermark: d } = e, l, u, c = 6, b = 0.7;
192
- return Y() && (b = 0.85, c = 5), a.$$set = (I) => {
192
+ return Q() && (b = 0.85, c = 5), a.$$set = (I) => {
193
193
  "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
194
  }, a.$$.update = () => {
195
195
  a.$$.dirty & /*$videoStore, percentage, rectangleHeight, rectangleWidth, $docDimensions*/
196
- 1984 && r && (r.videoWidth / r.videoHeight > st ? (t(7, u = r.videoHeight * b), t(6, l = u * st)) : (t(6, l = r.videoWidth * b), t(7, u = l / st)), v(q, n.width = l, n), v(q, n.height = u, n), v(q, n.x = (r.videoWidth - n.width) / 2, n), v(q, n.y = (r.videoHeight - n.height) / 2, n)), a.$$.dirty & /*rectangleWidth, rectangleHeight, borderWidth*/
196
+ 1984 && r && (r.videoWidth / r.videoHeight > nt ? (t(7, u = r.videoHeight * b), t(6, l = u * nt)) : (t(6, l = r.videoWidth * b), t(7, u = l / nt)), v(q, n.width = l, n), v(q, n.height = u, n), v(q, n.x = (r.videoWidth - n.width) / 2, n), v(q, n.y = (r.videoHeight - n.height) / 2, n)), a.$$.dirty & /*rectangleWidth, rectangleHeight, borderWidth*/
197
197
  208 && t(5, s = `
198
198
  --rectangle-width: ${l}px;
199
199
  --rectangle-height: ${u}px;
200
- --border-color: ${$i};
201
- --border-color-animation: ${ea};
200
+ --border-color: ${aa};
201
+ --border-color-animation: ${sa};
202
202
  --rectangle-border: ${c}px;
203
203
  `);
204
204
  }, [
@@ -215,18 +215,18 @@ function ta(a, e, t) {
215
215
  r
216
216
  ];
217
217
  }
218
- class Bt extends nt {
218
+ class Qt extends ot {
219
219
  constructor(e) {
220
- super(), ot(
220
+ super(), rt(
221
221
  this,
222
222
  {
223
223
  target: this.shadowRoot,
224
- props: lt(this.attributes),
224
+ props: ct(this.attributes),
225
225
  customElement: !0
226
226
  },
227
- ta,
228
- qi,
229
- rt,
227
+ na,
228
+ ia,
229
+ lt,
230
230
  {
231
231
  loading: 0,
232
232
  videoOverlay: 1,
@@ -264,13 +264,13 @@ class Bt extends nt {
264
264
  this.$$set({ showWatermark: e }), j();
265
265
  }
266
266
  }
267
- customElements.define("doc-rectangle", Bt);
268
- function Pt(a) {
267
+ customElements.define("doc-rectangle", Qt);
268
+ function Ut(a) {
269
269
  let e, t, s, n, r, o, g, h, d, l, u, c, b, I, Z, m, C, O, A = (
270
270
  /*$ready*/
271
- a[12] && Ft(a)
271
+ a[12] && Bt(a)
272
272
  );
273
- return u = new Pi({}), b = new Gi({
273
+ return u = new Ui({}), b = new Vi({
274
274
  props: {
275
275
  showConfigButton: (
276
276
  /*showConfigButton*/
@@ -295,8 +295,8 @@ function Pt(a) {
295
295
  }
296
296
  }), {
297
297
  c() {
298
- e = D("div"), t = D("div"), s = D("video"), r = L(), o = D("canvas"), g = L(), h = D("div"), d = D("div"), A && A.c(), l = L(), $(u.$$.fragment), c = L(), $(b.$$.fragment), f(s, "id", "bry-cc-camera-video-tag"), f(s, "class", n = /*$ready*/
299
- a[12] ? Y() ? "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(
298
+ 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
300
  t,
301
301
  "width",
302
302
  /*$videoStore*/
@@ -330,7 +330,7 @@ function Pt(a) {
330
330
  p(T, R) {
331
331
  (!m || R[0] & /*$ready*/
332
332
  4096 && n !== (n = /*$ready*/
333
- T[12] ? Y() ? "absolute inset-0" : "w-full h-full object-cover" : "w-0 h-0")) && f(s, "class", n), (!m || R[0] & /*$videoStore*/
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
334
  8192) && ne(
335
335
  t,
336
336
  "width",
@@ -344,9 +344,9 @@ function Pt(a) {
344
344
  T[13].videoHeight + "px"
345
345
  ), /*$ready*/
346
346
  T[12] ? A ? (A.p(T, R), R[0] & /*$ready*/
347
- 4096 && W(A, 1)) : (A = Ft(T), A.c(), W(A, 1), A.m(d, null)) : A && (Te(), H(A, 1, 1, () => {
347
+ 4096 && S(A, 1)) : (A = Bt(T), A.c(), S(A, 1), A.m(d, null)) : A && (Ae(), L(A, 1, 1, () => {
348
348
  A = null;
349
- }), Ae());
349
+ }), Oe());
350
350
  const P = {};
351
351
  R[0] & /*showConfigButton*/
352
352
  2 && (P.showConfigButton = /*showConfigButton*/
@@ -363,26 +363,26 @@ function Pt(a) {
363
363
  T[11] !== F.OK)) && (e.hidden = Z);
364
364
  },
365
365
  i(T) {
366
- m || (W(A), W(u.$$.fragment, T), W(b.$$.fragment, T), m = !0);
366
+ m || (S(A), S(u.$$.fragment, T), S(b.$$.fragment, T), m = !0);
367
367
  },
368
368
  o(T) {
369
- H(A), H(u.$$.fragment, T), H(b.$$.fragment, T), m = !1;
369
+ L(A), L(u.$$.fragment, T), L(b.$$.fragment, T), m = !1;
370
370
  },
371
371
  d(T) {
372
- T && E(e), a[34](null), a[36](null), A && A.d(), te(u), te(b), C = !1, ct(O);
372
+ T && W(e), a[34](null), a[36](null), A && A.d(), te(u), te(b), C = !1, ut(O);
373
373
  }
374
374
  };
375
375
  }
376
- function Ft(a) {
376
+ function Bt(a) {
377
377
  let e, t, s, n;
378
- return e = new Qi({
378
+ return e = new Ji({
379
379
  props: {
380
380
  isCountingDown: (
381
381
  /*isCountingDown*/
382
382
  a[10]
383
383
  )
384
384
  }
385
- }), s = new Bt({
385
+ }), s = new Qt({
386
386
  props: {
387
387
  loading: (
388
388
  /*isCountingDown*/
@@ -403,7 +403,7 @@ function Ft(a) {
403
403
  }
404
404
  }), {
405
405
  c() {
406
- $(e.$$.fragment), t = L(), $(s.$$.fragment);
406
+ $(e.$$.fragment), t = H(), $(s.$$.fragment);
407
407
  },
408
408
  m(r, o) {
409
409
  ee(e, r, o), z(r, t, o), ee(s, r, o), n = !0;
@@ -425,28 +425,28 @@ function Ft(a) {
425
425
  r[5]), s.$set(h);
426
426
  },
427
427
  i(r) {
428
- n || (W(e.$$.fragment, r), W(s.$$.fragment, r), n = !0);
428
+ n || (S(e.$$.fragment, r), S(s.$$.fragment, r), n = !0);
429
429
  },
430
430
  o(r) {
431
- H(e.$$.fragment, r), H(s.$$.fragment, r), n = !1;
431
+ L(e.$$.fragment, r), L(s.$$.fragment, r), n = !1;
432
432
  },
433
433
  d(r) {
434
- te(e, r), r && E(t), te(s, r);
434
+ te(e, r), r && W(t), te(s, r);
435
435
  }
436
436
  };
437
437
  }
438
- function Lt(a) {
438
+ function Gt(a) {
439
439
  let e, t, s, n, r;
440
440
  function o(d, l) {
441
441
  return (
442
442
  /*$isLoading*/
443
- d[21] ? aa : ia
443
+ d[21] ? ra : oa
444
444
  );
445
445
  }
446
446
  let g = o(a), h = g(a);
447
447
  return {
448
448
  c() {
449
- e = D("slot"), t = D("div"), s = D("img"), r = L(), h.c(), pe(s.src, n = Fi) || f(s, "src", n), f(s, "alt", "loading gif"), f(s, "class", "m-auto h-[10em] lg:h-[12em]"), f(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), f(e, "name", "loading-camera-gif"), f(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
449
+ e = D("slot"), t = D("div"), s = D("img"), r = H(), h.c(), Te(s.src, n = Bi) || f(s, "src", n), f(s, "alt", "loading gif"), f(s, "class", "m-auto h-[10em] lg:h-[12em]"), f(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), f(e, "name", "loading-camera-gif"), f(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
450
450
  },
451
451
  m(d, l) {
452
452
  z(d, e, l), w(e, t), w(t, s), w(t, r), h.m(t, null);
@@ -455,11 +455,11 @@ function Lt(a) {
455
455
  g === (g = o(d)) && h ? h.p(d, l) : (h.d(1), h = g(d), h && (h.c(), h.m(t, null)));
456
456
  },
457
457
  d(d) {
458
- d && E(e), h.d();
458
+ d && W(e), h.d();
459
459
  }
460
460
  };
461
461
  }
462
- function ia(a) {
462
+ function oa(a) {
463
463
  let e, t = (
464
464
  /*$_*/
465
465
  a[19]("faceCollector.initiatingCamera") + ""
@@ -477,11 +477,11 @@ function ia(a) {
477
477
  n[19]("faceCollector.initiatingCamera") + "") && J(s, t);
478
478
  },
479
479
  d(n) {
480
- n && E(e);
480
+ n && W(e);
481
481
  }
482
482
  };
483
483
  }
484
- function aa(a) {
484
+ function ra(a) {
485
485
  let e;
486
486
  return {
487
487
  c() {
@@ -490,13 +490,13 @@ function aa(a) {
490
490
  m(t, s) {
491
491
  z(t, e, s);
492
492
  },
493
- p: Q,
493
+ p: X,
494
494
  d(t) {
495
- t && E(e);
495
+ t && W(e);
496
496
  }
497
497
  };
498
498
  }
499
- function Ht(a) {
499
+ function Xt(a) {
500
500
  let e, t, s = (
501
501
  /*$_*/
502
502
  a[19]("faceCollector.finish") + ""
@@ -506,7 +506,7 @@ function Ht(a) {
506
506
  ), d, l, u;
507
507
  return {
508
508
  c() {
509
- e = D("div"), t = D("button"), n = V(s), o = L(), g = D("button"), d = V(h), t.disabled = r = /*$justification*/
509
+ e = D("div"), t = D("button"), n = V(s), o = H(), g = D("button"), d = V(h), t.disabled = r = /*$justification*/
510
510
  a[16].length === 0, f(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), f(g, "id", "bry-cc-retake-button"), f(g, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), f(e, "class", "ce-dui-btn-group flex");
511
511
  },
512
512
  m(c, b) {
@@ -535,13 +535,13 @@ function Ht(a) {
535
535
  c[19]("faceCollector.retakePhoto") + "") && J(d, h);
536
536
  },
537
537
  d(c) {
538
- c && E(e), l = !1, ct(u);
538
+ c && W(e), l = !1, ut(u);
539
539
  }
540
540
  };
541
541
  }
542
- function sa(a) {
542
+ function la(a) {
543
543
  let e, t;
544
- return e = new Xi({ props: { handler: (
544
+ return e = new Ki({ props: { handler: (
545
545
  /*func*/
546
546
  a[42]
547
547
  ) } }), {
@@ -551,30 +551,30 @@ function sa(a) {
551
551
  m(s, n) {
552
552
  ee(e, s, n), t = !0;
553
553
  },
554
- p: Q,
554
+ p: X,
555
555
  i(s) {
556
- t || (W(e.$$.fragment, s), t = !0);
556
+ t || (S(e.$$.fragment, s), t = !0);
557
557
  },
558
558
  o(s) {
559
- H(e.$$.fragment, s), t = !1;
559
+ L(e.$$.fragment, s), t = !1;
560
560
  },
561
561
  d(s) {
562
562
  te(e, s);
563
563
  }
564
564
  };
565
565
  }
566
- function na(a) {
566
+ function ca(a) {
567
567
  let e, t, s, n, r, o;
568
568
  function g(l, u) {
569
569
  return (
570
570
  /*$captured*/
571
- l[14] ? oa : ra
571
+ l[14] ? ua : da
572
572
  );
573
573
  }
574
574
  let h = g(a), d = h(a);
575
575
  return {
576
576
  c() {
577
- e = D("div"), t = D("img"), r = L(), d.c(), f(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), pe(t.src, s = /*$dataTypePrefix*/
577
+ e = D("div"), t = D("img"), r = H(), d.c(), f(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), Te(t.src, s = /*$dataTypePrefix*/
578
578
  a[20] + "," + /*$image*/
579
579
  a[17]) || f(t, "src", s), t.hidden = n = !/*$captured*/
580
580
  a[14] || !/*$showFaceWhileValidating*/
@@ -586,7 +586,7 @@ function na(a) {
586
586
  },
587
587
  p(l, u) {
588
588
  u[0] & /*$dataTypePrefix, $image*/
589
- 1179648 && !pe(t.src, s = /*$dataTypePrefix*/
589
+ 1179648 && !Te(t.src, s = /*$dataTypePrefix*/
590
590
  l[20] + "," + /*$image*/
591
591
  l[17]) && f(t, "src", s), u[0] & /*$captured, $showFaceWhileValidating*/
592
592
  4210688 && n !== (n = !/*$captured*/
@@ -595,14 +595,14 @@ function na(a) {
595
595
  4194304 && o !== (o = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (/*$showFaceWhileValidating*/
596
596
  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
597
  },
598
- i: Q,
599
- o: Q,
598
+ i: X,
599
+ o: X,
600
600
  d(l) {
601
- l && E(e), d.d();
601
+ l && W(e), d.d();
602
602
  }
603
603
  };
604
604
  }
605
- function oa(a) {
605
+ function ua(a) {
606
606
  let e, t, s, n, r = (
607
607
  /*$_*/
608
608
  a[19]("faceCollector.finish") + ""
@@ -613,16 +613,16 @@ function oa(a) {
613
613
  function I(C, O) {
614
614
  return (
615
615
  /*$requestResult*/
616
- C[18] === re.TEMPLATE_EXTRACTION_ERROR ? ua : (
616
+ C[18] === re.TEMPLATE_EXTRACTION_ERROR ? ha : (
617
617
  /*$saved*/
618
- C[15] ? la : ca
618
+ C[15] ? fa : ga
619
619
  )
620
620
  );
621
621
  }
622
622
  let Z = I(a), m = Z(a);
623
623
  return {
624
624
  c() {
625
- e = D("div"), m.c(), t = L(), s = D("div"), n = D("button"), o = V(r), h = L(), d = D("button"), u = V(l), n.disabled = g = /*$saved*/
625
+ e = D("div"), m.c(), t = H(), s = D("div"), n = D("button"), o = V(r), h = H(), d = D("button"), u = V(l), n.disabled = g = /*$saved*/
626
626
  a[15] || /*$requestResult*/
627
627
  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
628
  },
@@ -653,11 +653,11 @@ function oa(a) {
653
653
  C[19]("faceCollector.retakePhoto") + "") && J(u, l);
654
654
  },
655
655
  d(C) {
656
- C && E(e), m.d(), c = !1, ct(b);
656
+ C && W(e), m.d(), c = !1, ut(b);
657
657
  }
658
658
  };
659
659
  }
660
- function ra(a) {
660
+ function da(a) {
661
661
  let e;
662
662
  return {
663
663
  c() {
@@ -666,13 +666,13 @@ function ra(a) {
666
666
  m(t, s) {
667
667
  z(t, e, s);
668
668
  },
669
- p: Q,
669
+ p: X,
670
670
  d(t) {
671
- t && E(e);
671
+ t && W(e);
672
672
  }
673
673
  };
674
674
  }
675
- function la(a) {
675
+ function fa(a) {
676
676
  let e, t = (
677
677
  /*$_*/
678
678
  a[19]("docCollector.captured") + ""
@@ -690,11 +690,11 @@ function la(a) {
690
690
  n[19]("docCollector.captured") + "") && J(s, t);
691
691
  },
692
692
  d(n) {
693
- n && E(e);
693
+ n && W(e);
694
694
  }
695
695
  };
696
696
  }
697
- function ca(a) {
697
+ function ga(a) {
698
698
  let e, t = (
699
699
  /*$_*/
700
700
  a[19]("faceCollector.everythingOk") + ""
@@ -712,11 +712,11 @@ function ca(a) {
712
712
  n[19]("faceCollector.everythingOk") + "") && J(s, t);
713
713
  },
714
714
  d(n) {
715
- n && E(e);
715
+ n && W(e);
716
716
  }
717
717
  };
718
718
  }
719
- function ua(a) {
719
+ function ha(a) {
720
720
  let e, t = (
721
721
  /*$_*/
722
722
  a[19]("docCollector.docNotFound") + ""
@@ -734,21 +734,21 @@ function ua(a) {
734
734
  n[19]("docCollector.docNotFound") + "") && J(s, t);
735
735
  },
736
736
  d(n) {
737
- n && E(e);
737
+ n && W(e);
738
738
  }
739
739
  };
740
740
  }
741
- function da(a) {
741
+ function ma(a) {
742
742
  let e, t, s, n, r, o, g, h, d, l = (
743
743
  /*$videoStore*/
744
- a[13] && Pt(a)
744
+ a[13] && Ut(a)
745
745
  ), u = !/*$ready*/
746
746
  a[12] && /*$cameraStatusStore*/
747
- a[11] === F.OK && Lt(a), c = (
747
+ a[11] === F.OK && Gt(a), c = (
748
748
  /*$captured*/
749
- a[14] && Ht(a)
749
+ a[14] && Xt(a)
750
750
  );
751
- const b = [na, sa], I = [];
751
+ const b = [ca, la], I = [];
752
752
  function Z(m, C) {
753
753
  return (
754
754
  /*showUnconformities*/
@@ -761,7 +761,7 @@ function da(a) {
761
761
  }
762
762
  return ~(o = Z(a)) && (g = I[o] = b[o](a)), {
763
763
  c() {
764
- e = D("div"), t = D("div"), l && l.c(), s = L(), u && u.c(), n = L(), c && c.c(), r = L(), g && g.c(), h = Ii(), this.c = Q, f(t, "class", "relative mx-auto"), f(e, "class", "flex flex-col justify-between");
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
765
  },
766
766
  m(m, C) {
767
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;
@@ -769,66 +769,66 @@ function da(a) {
769
769
  p(m, C) {
770
770
  /*$videoStore*/
771
771
  m[13] ? l ? (l.p(m, C), C[0] & /*$videoStore*/
772
- 8192 && W(l, 1)) : (l = Pt(m), l.c(), W(l, 1), l.m(t, s)) : l && (Te(), H(l, 1, 1, () => {
772
+ 8192 && S(l, 1)) : (l = Ut(m), l.c(), S(l, 1), l.m(t, s)) : l && (Ae(), L(l, 1, 1, () => {
773
773
  l = null;
774
- }), Ae()), !/*$ready*/
774
+ }), Oe()), !/*$ready*/
775
775
  m[12] && /*$cameraStatusStore*/
776
- m[11] === F.OK ? u ? u.p(m, C) : (u = Lt(m), u.c(), u.m(t, n)) : u && (u.d(1), u = null), /*$captured*/
777
- m[14] ? c ? c.p(m, C) : (c = Ht(m), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
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);
778
778
  let O = o;
779
- o = Z(m), o === O ? ~o && I[o].p(m, C) : (g && (Te(), H(I[O], 1, 1, () => {
779
+ o = Z(m), o === O ? ~o && I[o].p(m, C) : (g && (Ae(), L(I[O], 1, 1, () => {
780
780
  I[O] = null;
781
- }), Ae()), ~o ? (g = I[o], g ? g.p(m, C) : (g = I[o] = b[o](m), g.c()), W(g, 1), g.m(h.parentNode, h)) : g = 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
782
  },
783
783
  i(m) {
784
- d || (W(l), W(g), d = !0);
784
+ d || (S(l), S(g), d = !0);
785
785
  },
786
786
  o(m) {
787
- H(l), H(g), d = !1;
787
+ L(l), L(g), d = !1;
788
788
  },
789
789
  d(m) {
790
- m && E(e), l && l.d(), u && u.d(), c && c.d(), a[39](null), m && E(r), ~o && I[o].d(m), m && E(h);
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
791
  }
792
792
  };
793
793
  }
794
- let fa = !1, ga = 0;
795
- function ha(a, e, t) {
794
+ let ba = !1, va = 0;
795
+ function Ia(a, e, t) {
796
796
  const s = e.videoWidth / e.videoHeight, n = t.width / t.height;
797
797
  let r = 0, o = 0, g = e.videoWidth, h = e.videoHeight;
798
798
  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
799
  }
800
- function ma(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, Oe, x, de, K, ut, dt, ft;
802
- M(a, Ye, (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, wi, (i) => t(59, h = i)), M(a, we, (i) => t(60, d = i)), M(a, yi, (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, Ve, (i) => t(63, I = i)), M(a, Je, (i) => t(64, Z = i)), M(a, zt, (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, Ci, (i) => t(16, T = i)), M(a, jt, (i) => t(17, R = i)), M(a, Me, (i) => t(18, P = i)), M(a, Mi, (i) => t(19, Oe = i)), M(a, Ke, (i) => t(68, x = i)), M(a, Rt, (i) => t(69, K = i)), M(a, qe, (i) => t(70, ut = i)), M(a, Di, (i) => t(21, dt = i)), M(a, _i, (i) => t(22, ft = i));
803
- let _, S, X, ce = !1, gt = !1, U = {
800
+ 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 = {
804
804
  width: 2560,
805
805
  height: 1440,
806
806
  aspectRatio: -1
807
807
  };
808
- const Gt = { width: 2560, height: 1440 };
809
- let { enableMinutiae: Ne } = e, { videoDimensions: ke } = e, { noTabs: ze } = e, { weightsPath: je } = e, { showUnconformities: ht } = e, { showConfigButton: mt } = e, { showCameraButton: bt } = e, { videoOverlay: vt } = e, { videoOverlayTransparency: It } = e, { showWatermark: wt } = e, { faceDetectionSensitivity: fe } = e;
810
- const ge = Et(!1);
808
+ 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
+ const ge = Ht(!1);
811
811
  M(a, ge, (i) => t(57, n = i));
812
- const Re = Et("data:image/png;base64");
813
- M(a, Re, (i) => t(20, de = i));
814
- let yt = !1, he = !0, Ct = 0, Se = 0, We = !0, Mt = 0, Ee = (/* @__PURE__ */ new Date()).getTime(), Ze = !1;
815
- pi(async () => {
816
- if (v(Ie, g = !1, g), Dt(), K)
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;
815
+ Ni(async () => {
816
+ if (St("Mounting Document Collector!"), v(Ie, g = !1, g), _t(), x)
817
817
  try {
818
- await Ti(je), gt = !0;
818
+ await ki(Re), ht = !0;
819
819
  } catch {
820
- v(Rt, K = !1, K);
820
+ v(Et, x = !1, x);
821
821
  }
822
- await Fe(), Xt();
822
+ await He(), Kt();
823
823
  });
824
- function Dt() {
825
- v(ye, b = !1, b), v(zt, m = !0, m), v(Ce, O = "", O), v(we, d = $e.REAR_CAMERA, d), v(ve, r = !1, r), v(xe, A = !1, A), v(Me, P = re.OK, P), v(Ke, x = "", x);
826
- const i = Ai(et);
827
- i.closedMouth = !1, i.isPersonCloseEnough = !1, i.isPersonTooclose = !0, i.isPersonInFrame = !1, et.set(i);
824
+ 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
+ const i = zi(tt);
827
+ i.closedMouth = !1, i.isPersonCloseEnough = !1, i.isPersonTooclose = !0, i.isPersonInFrame = !1, tt.set(i);
828
828
  }
829
- async function Qt() {
830
- const [i, p] = (ke ?? "")?.replaceAll(" ", "")?.split("x")?.map((y) => y ? parseInt(y) : void 0);
831
- !i || !p || (Y() ? (await Li(), v(
829
+ 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(
832
832
  oe,
833
833
  c = {
834
834
  videoWidth: window.innerWidth,
@@ -837,32 +837,32 @@ function ma(a, e, t) {
837
837
  c
838
838
  )) : v(oe, c = { videoWidth: i, videoHeight: p }, c));
839
839
  }
840
- function _t() {
841
- v(G, o = F.OK, o), yt = !0, he = !1;
840
+ function pt() {
841
+ v(G, o = F.OK, o), Ct = !0, he = !1;
842
842
  }
843
843
  async function me() {
844
- if (K && !gt)
845
- return _e(_, me);
844
+ if (x && !ht)
845
+ return pe(_, me);
846
846
  if (_) {
847
- if (ut !== it.Document && !ze)
848
- return _e(_, me);
849
- v(Ie, g = !0, g), K && (n || v(ge, n = !0, n)), _e(_, me);
847
+ if (dt !== at.Document && !je)
848
+ return pe(_, me);
849
+ v(Ie, g = !0, g), x && (n || v(ge, n = !0, n)), pe(_, me);
850
850
  }
851
851
  }
852
- async function pt() {
853
- let i = Yt();
854
- if (K && !(await Hi(i, fe)).result) {
855
- console.warn("Document capture - document not detected! Resetting capture.");
852
+ async function Tt() {
853
+ let i = xt();
854
+ if (x && !(await Xi(i, fe)).result) {
855
+ Ft("Document capture - document not detected! Resetting capture.");
856
856
  return;
857
857
  }
858
858
  v(ye, b = !0, b);
859
859
  let p = [];
860
860
  try {
861
861
  const y = i.toDataURL("image/jpeg").split(",");
862
- v(Re, de = y[0], de), v(jt, R = y[1], R), v(Ke, x = y[1], x), p = [
862
+ v(Ee, de = y[0], de), v(Rt, R = y[1], R), v(qe, K = y[1], K), p = [
863
863
  {
864
864
  bodyPart: "DOCUMENT",
865
- data: x
865
+ data: K
866
866
  }
867
867
  ], v(Me, P = re.OK, P), window.dispatchEvent(new CustomEvent(
868
868
  "document-unconformities-validated",
@@ -871,12 +871,12 @@ function ma(a, e, t) {
871
871
  }
872
872
  ));
873
873
  } catch (y) {
874
- console.error(y);
875
- let N, k = Ui.DOCUMENT_NOT_FOUND, B = [];
874
+ _e(y);
875
+ let N, k = Yi.DOCUMENT_NOT_FOUND, B = [];
876
876
  y instanceof Error && ["DOCUMENT_NOT_FOUND"].includes(y.message) && (v(Me, P = re.TEMPLATE_EXTRACTION_ERROR, P), N = y.message, B = [
877
877
  {
878
878
  bodyPart: "DOCUMENT",
879
- data: x,
879
+ data: K,
880
880
  format: "jpg"
881
881
  }
882
882
  ]), window.dispatchEvent(new CustomEvent(
@@ -885,14 +885,14 @@ function ma(a, e, t) {
885
885
  detail: {
886
886
  bodyParts: B,
887
887
  errorCode: N,
888
- translatedError: Oe(k),
888
+ translatedError: Ne(k),
889
889
  status: P
890
890
  }
891
891
  }
892
892
  ));
893
893
  }
894
894
  }
895
- function Pe() {
895
+ function Fe() {
896
896
  const i = {
897
897
  bodyPart: "DOCUMENT",
898
898
  data: R,
@@ -901,61 +901,61 @@ function ma(a, e, t) {
901
901
  v(xe, A = !0, A), window.dispatchEvent(new CustomEvent("export-document", { detail: i }));
902
902
  }
903
903
  function be() {
904
- window.dispatchEvent(new CustomEvent("document-scrapped")), Dt(), he && _t();
904
+ window.dispatchEvent(new CustomEvent("document-scrapped")), _t(), he && pt();
905
905
  }
906
- async function Fe(i) {
906
+ async function He(i) {
907
907
  if (!We) {
908
908
  v(G, o = F.CAMERA_ORIENTATION_PORTRAIT, o);
909
909
  return;
910
910
  }
911
- await Qt();
911
+ await Jt();
912
912
  try {
913
- let { stream: p, deviceId: y, width: N, height: k, aspectRatio: B } = await St(U.width, U.height, d, i);
914
- if (v(Ve, I = p, I), U.aspectRatio = B || N / k, U.aspectRatio > 1 && N < U.width || U.aspectRatio < 1 && k < U.width) {
915
- U.width = N, U.height = N / 1.7777, I.getTracks()?.forEach((He) => He?.stop());
916
- const { stream: Le } = await St(U.width, U.height, d, i);
917
- v(Ve, I = Le, I);
913
+ let { stream: p, deviceId: y, width: N, height: k, aspectRatio: B } = await Wt(U.width, U.height, d, i);
914
+ if (v(Je, I = p, I), U.aspectRatio = B || N / k, U.aspectRatio > 1 && N < U.width || U.aspectRatio < 1 && k < U.width) {
915
+ 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
+ v(Je, I = Le, I);
918
918
  }
919
919
  v(ue, u = y || l[0].deviceId, u);
920
920
  } catch (p) {
921
921
  const y = p;
922
922
  he = !0;
923
923
  const N = De(p) && p.constraint ? p.constraint : "";
924
- console.error(y, N), De(y) && "message" in y && y.message.includes("Permission denied") && (console.error("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")) && (console.error(`Camera does not meet the minimum supported requirements! (${N})`), v(G, o = F.CAMERA_UNSUPPORTED, o));
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
925
  }
926
926
  }
927
927
  async function ie() {
928
- v(ue, u = "", u), await Fe();
928
+ v(ue, u = "", u), await He();
929
929
  }
930
- function Xt() {
930
+ function Kt() {
931
931
  navigator.mediaDevices.ondevicechange = async (i) => {
932
- await Wt(), o !== F.OK ? await ie() : I.active || (tt(), v(G, o = F.DEVICE_NOT_FOUND_ERROR, o));
932
+ await Zt(), o !== F.OK ? await ie() : I.active || (it(), v(G, o = F.DEVICE_NOT_FOUND_ERROR, o));
933
933
  };
934
934
  }
935
- function Tt() {
935
+ function At() {
936
936
  v(ve, r = !1, r);
937
937
  const i = (/* @__PURE__ */ new Date()).getTime();
938
- i - Ee > 5e3 ? (Ee = i, v(Ce, O = "docCollector.docWasNotFound", O)) : Ze || (Ze = !0, setTimeout(
938
+ i - Ze > 5e3 ? (Ze = i, v(Ce, O = "docCollector.docWasNotFound", O)) : Pe || (Pe = !0, setTimeout(
939
939
  () => {
940
- Ze = !1, O != "docCollector.docWasNotFound" && v(Ce, O = "", O);
940
+ Pe = !1, O != "docCollector.docWasNotFound" && v(Ce, O = "", O);
941
941
  },
942
942
  1500
943
943
  ));
944
944
  }
945
- function Yt() {
946
- const i = c.videoWidth, p = c.videoHeight, y = Gt.width, N = p / i * y, k = document.createElement("canvas"), B = k.getContext("2d");
947
- k.width = y, k.height = N, B && ha(B, _, k);
948
- const Le = k.width / c.videoWidth, He = k.height / c.videoHeight, gi = Y() ? 0.25 : 0.15, hi = Math.round(k.height * gi), Ue = C.width * Le, Be = C.height * He, Ot = (Y() ? 0.15 : 0.2) * Ue, Nt = 0.2 * Be, mi = (k.width - Ue) / 2 - Ot / 2, bi = (k.height - hi - Be) / 2 - Nt / 2, Ge = Ue + Ot, Qe = Be + Nt, ae = document.createElement("canvas");
949
- ae.width = Ge, ae.height = Qe;
950
- const Xe = ae.getContext("2d");
951
- return Xe?.clearRect(0, 0, ae.width, ae.height), Xe?.drawImage(k, mi, bi, Ge, Qe, 0, 0, Ge, Qe), Xe?.save(), ae;
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;
952
952
  }
953
- const Vt = oe.subscribe((i) => {
954
- _ && S && (t(7, _.width = i.videoWidth, _), t(7, _.height = i.videoHeight, _), t(8, S.width = i.videoWidth, S), t(8, S.height = i.videoHeight, S));
955
- }), Jt = et.subscribe((i) => {
953
+ 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
+ }), $t = tt.subscribe((i) => {
956
956
  let p = "";
957
- if (i.isPersonCloseEnough ? i.isPersonTooclose ? p = "docCollector.moveAwayCamera" : i.isPersonInFrame || (p = "docCollector.stayInFrame") : p = "docCollector.comeCloserCamera", r && Oi(p), !b && m && r && !ce && i.isPersonInFrame && !(!i.isPersonCloseEnough || i.isPersonTooclose)) {
958
- t(10, ce = !0), Mt = (/* @__PURE__ */ new Date()).getTime() + 4500;
957
+ 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
+ t(10, ce = !0), Dt = (/* @__PURE__ */ new Date()).getTime() + 4500;
959
959
  const y = setInterval(
960
960
  async () => {
961
961
  if (!m || b || !i.isPersonCloseEnough || i.isPersonTooclose || !i.isPersonInFrame) {
@@ -967,110 +967,110 @@ function ma(a, e, t) {
967
967
  return;
968
968
  }
969
969
  const N = (/* @__PURE__ */ new Date()).getTime();
970
- Math.floor((Mt - N) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(y), t(10, ce = !1), pt());
970
+ Math.floor((Dt - N) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(y), t(10, ce = !1), Tt());
971
971
  },
972
972
  100
973
973
  );
974
974
  }
975
- }), xt = ye.subscribe((i) => {
976
- X && (i ? (X.classList.remove("flex"), X.classList.add("hidden")) : (X.classList.add("flex"), X.classList.remove("hidden")));
977
- }), Kt = Je.subscribe((i) => {
978
- _ && i && (console.log("setting null in video srcObject"), t(7, _.srcObject = null, _), t(7, _.src = "", _), v(ue, u = null, u));
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) => {
978
+ _ && i && (Pt("setting null in video srcObject"), t(7, _.srcObject = null, _), t(7, _.src = "", _), v(ue, u = null, u));
979
979
  });
980
- qe.subscribe(async (i) => {
981
- i === it.Document && await Wt();
980
+ $e.subscribe(async (i) => {
981
+ i === at.Document && await Zt();
982
982
  });
983
- const qt = ue.subscribe(async (i) => {
983
+ const ii = ue.subscribe(async (i) => {
984
984
  if (!(!I || !i))
985
985
  try {
986
- const p = await Ni(U.width, U.height, i);
987
- t(7, _.srcObject = I, _), v(Je, Z = !1, Z), I.getTracks().forEach((y) => {
988
- y.readyState === "live" && console.log(`Camera ${y.label} opened successfully!`);
989
- }), v(G, o = F.OK, o), ki(_);
986
+ 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(_);
990
990
  } catch (p) {
991
991
  const y = p;
992
992
  he = !0, De(y) && "message" in y && y.message.includes("Requested device not found") && v(G, o = F.DEVICE_NOT_FOUND_ERROR, o);
993
993
  }
994
- }), $t = qe.subscribe(async (i) => {
995
- i === it.Document && !yt && !b && fa && await _t();
996
- }), ei = ge.subscribe(async (i) => {
997
- i && At();
998
- }), ti = Ie.subscribe((i) => {
994
+ }), ai = $e.subscribe(async (i) => {
995
+ i === at.Document && !Ct && !b && ba && await pt();
996
+ }), si = ge.subscribe(async (i) => {
997
+ i && Ot();
998
+ }), ni = Ie.subscribe((i) => {
999
999
  i && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
1000
- }), ii = zi.subscribe(async (i) => {
1000
+ }), oi = Si.subscribe(async (i) => {
1001
1001
  if (!(!c || l.length <= 1)) {
1002
- if (tt(), !Y()) {
1002
+ if (it(), !Q()) {
1003
1003
  const y = (l.findIndex((k) => k.deviceId === u) + 1) % l.length, N = l[y].deviceId;
1004
- await Fe(N);
1004
+ await He(N);
1005
1005
  return;
1006
1006
  }
1007
- i ? (v(we, d = $e.FRONT_CAMERA, d), await ie()) : (v(we, d = $e.REAR_CAMERA, d), await ie());
1007
+ i ? (v(we, d = et.FRONT_CAMERA, d), await ie()) : (v(we, d = et.REAR_CAMERA, d), await ie());
1008
1008
  }
1009
- }), ai = ji.subscribe(async (i) => {
1010
- !i.isSupported || !Y() || 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));
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));
1011
1011
  });
1012
- async function At() {
1012
+ async function Ot() {
1013
1013
  let i;
1014
1014
  try {
1015
- if (Se >= ga) {
1015
+ if (Se >= va) {
1016
1016
  Se = 0;
1017
- const p = await Ri(fe), y = await import("./face_api_0e3ce8c8_3.3.0-RC03.js");
1017
+ const p = await Zi(fe), y = await import("./face_api_0e3ce8c8_3.3.0-RC05.js");
1018
1018
  let N;
1019
- if (N = y.detectSingleFace(_, p), i = await N.withFaceLandmarks(), S.getContext("2d")?.clearRect(0, 0, S.width, S.height), i != null) {
1020
- const k = Yi(S, _, !0);
1021
- Si(S, _, k);
1022
- const B = Vi(i, k);
1023
- Wi(B) ? (Ei(B, S, Ne, !0), v(ve, r = !0, r), Ee = (/* @__PURE__ */ new Date()).getTime()) : Tt();
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();
1024
1024
  } else
1025
- Tt();
1025
+ At();
1026
1026
  } else
1027
1027
  Se++;
1028
1028
  } catch (p) {
1029
- console.warn(`FaceapiLoop: ${p}`);
1029
+ Ft(`FaceapiLoop: ${p}`);
1030
1030
  } finally {
1031
- n && _e(_, At);
1031
+ n && pe(_, Ot);
1032
1032
  }
1033
1033
  }
1034
- Ye.subscribe(async (i) => {
1035
- i && (be(), v(Ye, s = !1, s));
1036
- }), Zi(() => {
1037
- console.log("Destroying document collector"), tt(), xt(), Jt(), Vt(), Kt(), qt(), $t(), clearInterval(Ct), ei(), ii(), ti(), ai(), Ct = 0;
1034
+ Ve.subscribe(async (i) => {
1035
+ i && (be(), v(Ve, s = !1, s));
1036
+ }), Li(() => {
1037
+ St("Destroying document collector"), it(), ei(), $t(), qt(), ti(), ii(), ai(), clearInterval(Mt), si(), oi(), ni(), ri(), Mt = 0;
1038
1038
  });
1039
- function si(i) {
1040
- at[i ? "unshift" : "push"](() => {
1039
+ function li(i) {
1040
+ st[i ? "unshift" : "push"](() => {
1041
1041
  _ = i, t(7, _);
1042
1042
  });
1043
1043
  }
1044
- const ni = () => {
1045
- t(7, _.width = c.videoWidth, _), t(7, _.height = c.videoHeight, _), t(8, S.width = c.videoWidth, S), t(8, S.height = c.videoHeight, S);
1044
+ 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
1046
  };
1047
- function oi(i) {
1048
- at[i ? "unshift" : "push"](() => {
1049
- S = i, t(8, S);
1047
+ function ui(i) {
1048
+ st[i ? "unshift" : "push"](() => {
1049
+ E = i, t(8, E);
1050
1050
  });
1051
1051
  }
1052
- const ri = () => Pe(), li = () => be();
1053
- function ci(i) {
1054
- at[i ? "unshift" : "push"](() => {
1055
- X = i, t(9, X);
1052
+ const di = () => Fe(), fi = () => be();
1053
+ function gi(i) {
1054
+ st[i ? "unshift" : "push"](() => {
1055
+ Y = i, t(9, Y);
1056
1056
  });
1057
1057
  }
1058
- const ui = () => Pe(), di = () => be(), fi = async () => {
1058
+ const hi = () => Fe(), mi = () => be(), bi = async () => {
1059
1059
  await ie();
1060
1060
  };
1061
1061
  return a.$$set = (i) => {
1062
- "enableMinutiae" in i && t(29, Ne = i.enableMinutiae), "videoDimensions" in i && t(30, ke = i.videoDimensions), "noTabs" in i && t(31, ze = i.noTabs), "weightsPath" in i && t(32, je = i.weightsPath), "showUnconformities" in i && t(0, ht = i.showUnconformities), "showConfigButton" in i && t(1, mt = i.showConfigButton), "showCameraButton" in i && t(2, bt = i.showCameraButton), "videoOverlay" in i && t(3, vt = i.videoOverlay), "videoOverlayTransparency" in i && t(4, It = i.videoOverlayTransparency), "showWatermark" in i && t(5, wt = i.showWatermark), "faceDetectionSensitivity" in i && t(33, fe = i.faceDetectionSensitivity);
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
1063
  }, [
1064
- ht,
1065
1064
  mt,
1066
1065
  bt,
1067
1066
  vt,
1068
1067
  It,
1069
1068
  wt,
1069
+ yt,
1070
1070
  me,
1071
1071
  _,
1072
- S,
1073
- X,
1072
+ E,
1073
+ Y,
1074
1074
  ce,
1075
1075
  o,
1076
1076
  g,
@@ -1080,44 +1080,44 @@ function ma(a, e, t) {
1080
1080
  T,
1081
1081
  R,
1082
1082
  P,
1083
- Oe,
1083
+ Ne,
1084
1084
  de,
1085
- dt,
1086
1085
  ft,
1086
+ gt,
1087
1087
  ge,
1088
- Re,
1089
- pt,
1090
- Pe,
1088
+ Ee,
1089
+ Tt,
1090
+ Fe,
1091
1091
  be,
1092
1092
  ie,
1093
- Ne,
1094
1093
  ke,
1095
1094
  ze,
1096
1095
  je,
1096
+ Re,
1097
1097
  fe,
1098
- si,
1099
- ni,
1100
- oi,
1101
- ri,
1102
1098
  li,
1103
1099
  ci,
1104
1100
  ui,
1105
1101
  di,
1106
- fi
1102
+ fi,
1103
+ gi,
1104
+ hi,
1105
+ mi,
1106
+ bi
1107
1107
  ];
1108
1108
  }
1109
- class ba extends nt {
1109
+ class ya extends ot {
1110
1110
  constructor(e) {
1111
- super(), ot(
1111
+ super(), rt(
1112
1112
  this,
1113
1113
  {
1114
1114
  target: this.shadowRoot,
1115
- props: lt(this.attributes),
1115
+ props: ct(this.attributes),
1116
1116
  customElement: !0
1117
1117
  },
1118
+ wa,
1118
1119
  ma,
1119
- da,
1120
- rt,
1120
+ lt,
1121
1121
  {
1122
1122
  enableMinutiae: 29,
1123
1123
  videoDimensions: 30,
@@ -1222,7 +1222,7 @@ class ba extends nt {
1222
1222
  return this.$$.ctx[6];
1223
1223
  }
1224
1224
  }
1225
- customElements.define("document-collector", ba);
1225
+ customElements.define("document-collector", ya);
1226
1226
  export {
1227
- ba as default
1227
+ ya as default
1228
1228
  };