bry-biometric-collector 3.3.0-RC10 → 3.3.0-RC11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CaptureBar_30f1b47c_3.3.0-RC10.js → CaptureBar_e46c45ec_3.3.0-RC11.js} +1 -1
- package/dist/{DocumentCollector_86121c69_3.3.0-RC10.js → DocumentCollector_de7baafa_3.3.0-RC11.js} +5 -5
- package/dist/{FaceCollector_145c8917_3.3.0-RC10.js → FaceCollector_536c7465_3.3.0-RC11.js} +6 -6
- package/dist/{FaceOval_6fa06304_3.3.0-RC10.js → FaceOval_73747bd6_3.3.0-RC11.js} +2 -2
- package/dist/StreamCollector_1adea6c1_3.3.0-RC11.js +324 -0
- package/dist/{ValidationAlert_32eba696_3.3.0-RC10.js → ValidationAlert_bba56eb3_3.3.0-RC11.js} +1 -1
- package/dist/{___vite-browser-external_commonjs-proxy_97215cb6_3.3.0-RC10.js → ___vite-browser-external_commonjs-proxy_07f4ac3b_3.3.0-RC11.js} +1 -1
- package/dist/bry-biometric-collector-main.js +2 -2
- package/dist/{fingersApi_e49e8e02_3.3.0-RC10.js → fingersApi_da2bebe6_3.3.0-RC11.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{index_16468860_3.3.0-RC10.js → index_6fff4b84_3.3.0-RC11.js} +3 -3
- package/dist/{index_e19fb78f_3.3.0-RC10.js → index_fcfc4554_3.3.0-RC11.js} +3 -3
- package/dist/{main_43789262_3.3.0-RC10.js → main_f17fc861_3.3.0-RC11.js} +22 -22
- package/package.json +1 -1
- package/dist/StreamCollector_3b14950c_3.3.0-RC10.js +0 -324
- /package/dist/{en-us_c02e99cd_3.3.0-RC10.js → en-us_c02e99cd_3.3.0-RC11.js} +0 -0
- /package/dist/{es-cl_6f3eda53_3.3.0-RC10.js → es-cl_6f3eda53_3.3.0-RC11.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_3.3.0-RC10.js → face_api_0e3ce8c8_3.3.0-RC11.js} +0 -0
- /package/dist/{index-idlf-detector_39cfdffa_3.3.0-RC10.js → index-idlf-detector_39cfdffa_3.3.0-RC11.js} +0 -0
- /package/dist/{index-idlf-detector_a819b3c8_3.3.0-RC10.js → index-idlf-detector_a819b3c8_3.3.0-RC11.js} +0 -0
- /package/dist/{pt-br_e7d46668_3.3.0-RC10.js → pt-br_e7d46668_3.3.0-RC11.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as M, x as K, y as R, z as D, B as w, C as g, O as fe, E as C, H as E, I as b, ab as be, a_ as $, bs as j, bt as x, aB as L, D as O, G as v, bk as ee, bu as te, X as p, b7 as V, bv as _e, U as he, Y as de, ae as F, $ as ce, a1 as k, a2 as c, a3 as B, a0 as d, J as we, bn as N, a8 as Ce, T as pe, ap as ve, Q as ke, K as Be, N as T, b6 as _, bl as H, bw as me, Z as y, _ as A, a4 as S, M as I, L as ne } from "./
|
|
1
|
+
import { S as M, x as K, y as R, z as D, B as w, C as g, O as fe, E as C, H as E, I as b, ab as be, a_ as $, bs as j, bt as x, aB as L, D as O, G as v, bk as ee, bu as te, X as p, b7 as V, bv as _e, U as he, Y as de, ae as F, $ as ce, a1 as k, a2 as c, a3 as B, a0 as d, J as we, bn as N, a8 as Ce, T as pe, ap as ve, Q as ke, K as Be, N as T, b6 as _, bl as H, bw as me, Z as y, _ as A, a4 as S, M as I, L as ne } from "./main_f17fc861_3.3.0-RC11.js";
|
|
2
2
|
function Ee(r) {
|
|
3
3
|
let e;
|
|
4
4
|
return {
|
package/dist/{DocumentCollector_86121c69_3.3.0-RC10.js → DocumentCollector_de7baafa_3.3.0-RC11.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as ot, x as rt, y as lt, z as ct, B as z, C as j, D, bk as se, E as Y, G as f, b6 as ne, bl as zt, X as w, H as S, I as M, bm as q, bn as yi, J as oe, N as H, Z as $, V as Ae, _ as ee, a0 as E, a1 as Te, a2 as L, a3 as Oe, a4 as te, K as X, aB as v, M as F, O as Mi, a6 as Ve, a7 as ve, Q as G, T as Ie, a8 as Di, a9 as we, ab as _i, aa as ue, ac as Ce, a5 as Je, ad as xe, ae as jt, ah as ye, ak as Ke, al as pi, am as Rt, an as Me, $ as Ai, ag as qe, ap as Wt, as as $e, R as Ti, ax as Oi, aA as Ni, f as Et, aC as ki, aF as et, aG as re, m as zi, aH as tt, aU as St, e as De, l as _e, aV as Zt, aW as it, aX as ji, aL as at, bo as Ri, aY as Pt, aZ as Wi, a_ as Ei, a$ as Si, aD as Zi, b0 as Pi, bp as Fi, b2 as Hi, d as Ft, b3 as pe, b4 as Li, b5 as Ui, b7 as le, b8 as ut, W as Bi, U as V, Y as J, w as Ht, aE as Gi, bq as Yi, bc as st, br as Qi } from "./
|
|
2
|
-
import { W as Xi, V as Vi, C as Ji } from "./
|
|
3
|
-
import { matchDimensions as xi, resizeResults as Ki } from "./face_api_0e3ce8c8_3.3.0-
|
|
4
|
-
import { C as qi } from "./
|
|
1
|
+
import { S as ot, x as rt, y as lt, z as ct, B as z, C as j, D, bk as se, E as Y, G as f, b6 as ne, bl as zt, X as w, H as S, I as M, bm as q, bn as yi, J as oe, N as H, Z as $, V as Ae, _ as ee, a0 as E, a1 as Te, a2 as L, a3 as Oe, a4 as te, K as X, aB as v, M as F, O as Mi, a6 as Ve, a7 as ve, Q as G, T as Ie, a8 as Di, a9 as we, ab as _i, aa as ue, ac as Ce, a5 as Je, ad as xe, ae as jt, ah as ye, ak as Ke, al as pi, am as Rt, an as Me, $ as Ai, ag as qe, ap as Wt, as as $e, R as Ti, ax as Oi, aA as Ni, f as Et, aC as ki, aF as et, aG as re, m as zi, aH as tt, aU as St, e as De, l as _e, aV as Zt, aW as it, aX as ji, aL as at, bo as Ri, aY as Pt, aZ as Wi, a_ as Ei, a$ as Si, aD as Zi, b0 as Pi, bp as Fi, b2 as Hi, d as Ft, b3 as pe, b4 as Li, b5 as Ui, b7 as le, b8 as ut, W as Bi, U as V, Y as J, w as Ht, aE as Gi, bq as Yi, bc as st, br as Qi } from "./main_f17fc861_3.3.0-RC11.js";
|
|
2
|
+
import { W as Xi, V as Vi, C as Ji } from "./ValidationAlert_bba56eb3_3.3.0-RC11.js";
|
|
3
|
+
import { matchDimensions as xi, resizeResults as Ki } from "./face_api_0e3ce8c8_3.3.0-RC11.js";
|
|
4
|
+
import { C as qi } from "./CaptureBar_e46c45ec_3.3.0-RC11.js";
|
|
5
5
|
const $i = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwNiIgaGVpZ2h0PSI4OTAiIHZpZXdCb3g9IjAgMCAxMjA2IDg5MCIgZmlsbD0ibm9uZSIgb3BhY2l0eT0iMC4yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xOF80KSIgb3BhY2l0eT0iMCI+CiAgICA8bWFzayBpZD0icGF0aC0xLWluc2lkZS0xXzE4XzQiIGZpbGw9IndoaXRlIj4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiLz4KICAgIDwvbWFzaz4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iMTYiIHNoYXBlLXJlbmRlcmluZz0iY3Jpc3BFZGdlcyIgbWFzaz0idXJsKCNwYXRoLTEtaW5zaWRlLTFfMThfNCkiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJwYXRoLTItaW5zaWRlLTJfMThfNCIgZmlsbD0id2hpdGUiPgogICAgPHJlY3QgeD0iMjE5LjI3OCIgeT0iMjk2IiB3aWR0aD0iMzM4Ljg2MyIgaGVpZ2h0PSI0NjgiIHJ4PSI3Ii8+CiAgICA8L21hc2s+CiAgICA8cmVjdCB4PSIyMTkuMjc4IiB5PSIyOTYiIHdpZHRoPSIzMzguODYzIiBoZWlnaHQ9IjQ2OCIgcng9IjciIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iMTYiIG1hc2s9InVybCgjcGF0aC0yLWluc2lkZS0yXzE4XzQpIi8+CiAgICA8ZWxsaXBzZSBjeD0iMzg5LjIzOCIgY3k9IjUxMS4yMjgiIHJ4PSI4Ni4yMzc2IiByeT0iODUuMjI4NCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4wOCIvPgogICAgPHBhdGggZD0iTTQ3MS40NzUgNTExLjIyOEM0NzEuNDc1IDU1Ni4wNDUgNDM0LjcwMSA1OTIuNDU3IDM4OS4yMzggNTkyLjQ1N0MzNDMuNzc0IDU5Mi40NTcgMzA3IDU1Ni4wNDUgMzA3IDUxMS4yMjhDMzA3IDQ2Ni40MTEgMzQzLjc3NCA0MzAgMzg5LjIzOCA0MzBDNDM0LjcwMSA0MzAgNDcxLjQ3NSA0NjYuNDExIDQ3MS40NzUgNTExLjIyOFoiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iOCIvPgogICAgPHBhdGggZD0iTTM4Ny4zOCA2MDhDNTM1LjI2IDYwOCA1MzkuODggNzQzLjQ3MyA1MzkuODggNzQzLjQ3M0wyMzkgNzQzLjVDMjM5IDc0My41IDIzOS41IDYwOCAzODcuMzggNjA4WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4wOCIvPgogICAgPHBhdGggZD0iTTM4Ny4zOCA2MTJDNDU5Ljc5NCA2MTIgNDk2LjY0OSA2NDUuMDIgNTE1LjYyNSA2NzcuNzQzQzUyNS4xOCA2OTQuMjIgNTMwLjI1NSA3MTAuNzMzIDUzMi45MzggNzIzLjE1QzUzNC4yNzggNzI5LjM1MSA1MzUuMDE2IDczNC41MDggNTM1LjQxOCA3MzguMDk4QzUzNS40NzMgNzM4LjU4NiA1MzUuNTIxIDczOS4wNDUgNTM1LjU2NCA3MzkuNDc0TDI0My4xODQgNzM5LjVDMjQzLjIxNiA3MzkuMDM3IDI0My4yNTMgNzM4LjUzOCAyNDMuMjk3IDczOC4wMDNDMjQzLjU5IDczNC40MTQgMjQ0LjE3MSA3MjkuMjU4IDI0NS4zMjIgNzIzLjA1OEMyNDcuNjI2IDcxMC42NDIgMjUyLjE5NyA2OTQuMTM4IDI2MS4yNDEgNjc3LjY3NkMyNzAuMjczIDY2MS4yMzYgMjgzLjc0OCA2NDQuODY0IDMwMy44OTEgNjMyLjU4N0MzMjQuMDI0IDYyMC4zMTYgMzUxLjA0MiA2MTIgMzg3LjM4IDYxMloiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iOCIvPgogICAgPGRlZnM+CiAgICA8ZmlsdGVyIGlkPSJmaWx0ZXIwX2RfMThfNCIgeD0iMCIgeT0iMCIgd2lkdGg9IjEyMDYiIGhlaWdodD0iODkwIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CiAgICA8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgogICAgPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CiAgICA8ZmVPZmZzZXQgZHk9IjQiLz4KICAgIDxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIiLz4KICAgIDxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgogICAgPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMjUgMCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIgcmVzdWx0PSJzaGFwZSIvPgogICAgPC9maWx0ZXI+CiAgICA8L2RlZnM+CiAgICA8L3N2Zz4KICAgIA==";
|
|
6
6
|
function ea(a) {
|
|
7
7
|
let e, t, s, n, r, o, g, h, d, l, u;
|
|
@@ -1015,7 +1015,7 @@ function wa(a, e, t) {
|
|
|
1015
1015
|
try {
|
|
1016
1016
|
if (Ee >= va) {
|
|
1017
1017
|
Ee = 0;
|
|
1018
|
-
const p = await Zi(fe), C = await import("./face_api_0e3ce8c8_3.3.0-
|
|
1018
|
+
const p = await Zi(fe), C = await import("./face_api_0e3ce8c8_3.3.0-RC11.js");
|
|
1019
1019
|
let N;
|
|
1020
1020
|
if (N = C.detectSingleFace(_, p), i = await N.withFaceLandmarks(), W.getContext("2d")?.clearRect(0, 0, W.width, W.height), i != null) {
|
|
1021
1021
|
const k = xi(W, _, !0);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { w as Ht, S as Jt, x as Qt, y as Xt, z as Gt, B as R, C as V, D as w, E as Q, G as h, H as I, I as D, J as rt, K as de, L as z, M as U, N, O as Qi, $ as Xi, P as Gi, Q as H, R as Ls, T as Se, U as P, V as He, W as Yt, X as b, Y as W, Z as ge, _ as ve, a0 as J, a1 as ut, a2 as X, a3 as ft, a4 as pe, a5 as Ft, a6 as St, a7 as xe, a8 as As, a9 as $e, aa as be, ab as Fs, ac as Ae, ad as Nt, ae as Ei, af as Ss, ag as je, ah as Te, ai as Ns, aj as Ps, ak as Pt, al as Bt, am as fe, an as ee, ao as ke, ap as yi, aq as Wt, ar as et, as as Mt, at as Bs, au as tt, av as Ti, aw as ki, ax as Ws, ay as Ms, az as Us, aA as Vs, f as Oi, aB as m, aC as js, aD as zs, aE as Ks, aF as Ut, aG as K, m as ct, aH as Vt, aI as Hs, l as ie, aJ as Ri, aK as qs, aL as it, aM as st, aN as Di, aO as Js, aP as nt, A as jt, aQ as Oe, aR as Qs, aS as ze, aT as Xs, aU as Ii, e as Fe, aV as zt, aW as at, aX as Gs, aY as Kt, aZ as Ys, a_ as Zs, a$ as xs, b0 as $s, b1 as en, b2 as tn, b3 as Ke, b4 as sn, b5 as nn, b6 as ot, b7 as oe, b8 as ht, b9 as an, ba as on, d as Li, bb as ln, bc as lt, bd as se, be as rn, bf as cn, bg as Ai, bh as Yi, bi as dt, bj as un } from "./
|
|
2
|
-
import { V as fn, C as dn } from "./
|
|
3
|
-
import { detectSingleFace as hn, matchDimensions as mn, resizeResults as _n } from "./face_api_0e3ce8c8_3.3.0-
|
|
4
|
-
import { F as bn } from "./
|
|
5
|
-
import { C as gn } from "./
|
|
1
|
+
import { w as Ht, S as Jt, x as Qt, y as Xt, z as Gt, B as R, C as V, D as w, E as Q, G as h, H as I, I as D, J as rt, K as de, L as z, M as U, N, O as Qi, $ as Xi, P as Gi, Q as H, R as Ls, T as Se, U as P, V as He, W as Yt, X as b, Y as W, Z as ge, _ as ve, a0 as J, a1 as ut, a2 as X, a3 as ft, a4 as pe, a5 as Ft, a6 as St, a7 as xe, a8 as As, a9 as $e, aa as be, ab as Fs, ac as Ae, ad as Nt, ae as Ei, af as Ss, ag as je, ah as Te, ai as Ns, aj as Ps, ak as Pt, al as Bt, am as fe, an as ee, ao as ke, ap as yi, aq as Wt, ar as et, as as Mt, at as Bs, au as tt, av as Ti, aw as ki, ax as Ws, ay as Ms, az as Us, aA as Vs, f as Oi, aB as m, aC as js, aD as zs, aE as Ks, aF as Ut, aG as K, m as ct, aH as Vt, aI as Hs, l as ie, aJ as Ri, aK as qs, aL as it, aM as st, aN as Di, aO as Js, aP as nt, A as jt, aQ as Oe, aR as Qs, aS as ze, aT as Xs, aU as Ii, e as Fe, aV as zt, aW as at, aX as Gs, aY as Kt, aZ as Ys, a_ as Zs, a$ as xs, b0 as $s, b1 as en, b2 as tn, b3 as Ke, b4 as sn, b5 as nn, b6 as ot, b7 as oe, b8 as ht, b9 as an, ba as on, d as Li, bb as ln, bc as lt, bd as se, be as rn, bf as cn, bg as Ai, bh as Yi, bi as dt, bj as un } from "./main_f17fc861_3.3.0-RC11.js";
|
|
2
|
+
import { V as fn, C as dn } from "./ValidationAlert_bba56eb3_3.3.0-RC11.js";
|
|
3
|
+
import { detectSingleFace as hn, matchDimensions as mn, resizeResults as _n } from "./face_api_0e3ce8c8_3.3.0-RC11.js";
|
|
4
|
+
import { F as bn } from "./FaceOval_73747bd6_3.3.0-RC11.js";
|
|
5
|
+
import { C as gn } from "./CaptureBar_e46c45ec_3.3.0-RC11.js";
|
|
6
6
|
const qt = Ht(!1);
|
|
7
7
|
class vn {
|
|
8
8
|
isDevToolsOpen = !1;
|
|
@@ -1500,7 +1500,7 @@ function Kn(i) {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
let Hn = 0, qn = 3e3;
|
|
1502
1502
|
function Jn() {
|
|
1503
|
-
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.3.0-
|
|
1503
|
+
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.3.0-RC11.js") : import("./index-idlf-detector_a819b3c8_3.3.0-RC11.js");
|
|
1504
1504
|
}
|
|
1505
1505
|
function Qn(i, e, t) {
|
|
1506
1506
|
let a, o, c, f, n, l, u, r, d, g, _, E, p, v, C, y, F, Re, le, j, A, L, k, De, x, re, we, Ce, Ne, mt, ne, Zt, _t, bt, gt, xt, $t;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as z, x as D, y as M, z as T, B as v, C as g, O as A, E as x, a1 as E, a2 as b, a3 as B, a0 as d, H as C, I as W, bx as _, J as F, a8 as O, K as R, aB as k, D as j, G as n, bk as S, X as q, Z as G, _ as I, a4 as J } from "./
|
|
2
|
-
import { W as K } from "./
|
|
1
|
+
import { S as z, x as D, y as M, z as T, B as v, C as g, O as A, E as x, a1 as E, a2 as b, a3 as B, a0 as d, H as C, I as W, bx as _, J as F, a8 as O, K as R, aB as k, D as j, G as n, bk as S, X as q, Z as G, _ as I, a4 as J } from "./main_f17fc861_3.3.0-RC11.js";
|
|
2
|
+
import { W as K } from "./ValidationAlert_bba56eb3_3.3.0-RC11.js";
|
|
3
3
|
function N(a) {
|
|
4
4
|
let e, t, o, r = (
|
|
5
5
|
/*showWatermark*/
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import { S as me, x as _e, y as be, z as pe, B as N, C as I, D as V, N as A, E as te, bd as f, G as ae, X as D, a0 as p, a1 as H, a2 as v, a3 as Q, H as re, I as b, aa as F, am as W, au as X, av as Z, ah as z, T as E, ar as S, a9 as J, aA as ge, f as he, aB as m, aF as ve, l as Y, aK as we, aM as x, b4 as Ee, Z as M, _ as O, a4 as T, w as ye, aQ as Ce, bc as Ie } from "./main_f17fc861_3.3.0-RC11.js";
|
|
2
|
+
import { V as ze, C as Se } from "./ValidationAlert_bba56eb3_3.3.0-RC11.js";
|
|
3
|
+
import { F as De } from "./FaceOval_73747bd6_3.3.0-RC11.js";
|
|
4
|
+
import "./face_api_0e3ce8c8_3.3.0-RC11.js";
|
|
5
|
+
function $(s) {
|
|
6
|
+
let t, a, r, l, _;
|
|
7
|
+
return a = new ze({}), l = new De({
|
|
8
|
+
props: { borderColor: (
|
|
9
|
+
/*ovalColor*/
|
|
10
|
+
s[5]
|
|
11
|
+
) }
|
|
12
|
+
}), {
|
|
13
|
+
c() {
|
|
14
|
+
t = V("div"), M(a.$$.fragment), r = A(), M(l.$$.fragment), ae(t, "class", "absolute inset-0 flex flex-col items-center mt-[4%] mb-[8%] z-50");
|
|
15
|
+
},
|
|
16
|
+
m(c, o) {
|
|
17
|
+
N(c, t, o), O(a, t, null), D(t, r), O(l, t, null), _ = !0;
|
|
18
|
+
},
|
|
19
|
+
p(c, o) {
|
|
20
|
+
const n = {};
|
|
21
|
+
o & /*ovalColor*/
|
|
22
|
+
32 && (n.borderColor = /*ovalColor*/
|
|
23
|
+
c[5]), l.$set(n);
|
|
24
|
+
},
|
|
25
|
+
i(c) {
|
|
26
|
+
_ || (p(a.$$.fragment, c), p(l.$$.fragment, c), _ = !0);
|
|
27
|
+
},
|
|
28
|
+
o(c) {
|
|
29
|
+
v(a.$$.fragment, c), v(l.$$.fragment, c), _ = !1;
|
|
30
|
+
},
|
|
31
|
+
d(c) {
|
|
32
|
+
c && re(t), T(a), T(l);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function ee(s) {
|
|
37
|
+
let t, a;
|
|
38
|
+
return t = new Se({ props: { handler: (
|
|
39
|
+
/*func*/
|
|
40
|
+
s[12]
|
|
41
|
+
) } }), {
|
|
42
|
+
c() {
|
|
43
|
+
M(t.$$.fragment);
|
|
44
|
+
},
|
|
45
|
+
m(r, l) {
|
|
46
|
+
O(t, r, l), a = !0;
|
|
47
|
+
},
|
|
48
|
+
p: te,
|
|
49
|
+
i(r) {
|
|
50
|
+
a || (p(t.$$.fragment, r), a = !0);
|
|
51
|
+
},
|
|
52
|
+
o(r) {
|
|
53
|
+
v(t.$$.fragment, r), a = !1;
|
|
54
|
+
},
|
|
55
|
+
d(r) {
|
|
56
|
+
T(t, r);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function ke(s) {
|
|
61
|
+
let t, a, r, l, _, c, o = (
|
|
62
|
+
/*$ready*/
|
|
63
|
+
s[7] && !/*idrndClosed*/
|
|
64
|
+
s[3] && !/*idrndLoading*/
|
|
65
|
+
s[4] && $(s)
|
|
66
|
+
), n = (
|
|
67
|
+
/*idrndClosed*/
|
|
68
|
+
s[3] && !/*idrndLoading*/
|
|
69
|
+
s[4] && ee(s)
|
|
70
|
+
);
|
|
71
|
+
return {
|
|
72
|
+
c() {
|
|
73
|
+
t = V("div"), o && o.c(), a = A(), r = V("idlive-face-capture"), _ = A(), n && n.c(), this.c = te, f(r, "class", "w-full h-full"), f(r, "mask_hidden", ""), f(r, "auto_close_disabled", ""), f(
|
|
74
|
+
r,
|
|
75
|
+
"device_id",
|
|
76
|
+
/*$selectedVideoDeviceId*/
|
|
77
|
+
s[6]
|
|
78
|
+
), f(r, "face_not_centered_check_enabled", ""), f(r, "sunglasses_detected_check_enabled", ""), f(r, "mouth_open_check_enabled", ""), f(r, "face_blurry_check_enabled", ""), f(r, "dark_image_check_enabled", ""), f(r, "eyes_closed_check_enabled", ""), f(
|
|
79
|
+
r,
|
|
80
|
+
"payload_size",
|
|
81
|
+
/*livenessBlobSize*/
|
|
82
|
+
s[1]
|
|
83
|
+
), f(r, "style", l = /*idrndClosed*/
|
|
84
|
+
s[3] ? "opacity: 0; pointer-events: none;" : "opacity: 1;"), ae(t, "class", "flex justify-center w-full h-full relative bg-black");
|
|
85
|
+
},
|
|
86
|
+
m(i, d) {
|
|
87
|
+
N(i, t, d), o && o.m(t, null), D(t, a), D(t, r), s[11](r), D(t, _), n && n.m(t, null), c = !0;
|
|
88
|
+
},
|
|
89
|
+
p(i, [d]) {
|
|
90
|
+
/*$ready*/
|
|
91
|
+
i[7] && !/*idrndClosed*/
|
|
92
|
+
i[3] && !/*idrndLoading*/
|
|
93
|
+
i[4] ? o ? (o.p(i, d), d & /*$ready, idrndClosed, idrndLoading*/
|
|
94
|
+
152 && p(o, 1)) : (o = $(i), o.c(), p(o, 1), o.m(t, a)) : o && (H(), v(o, 1, 1, () => {
|
|
95
|
+
o = null;
|
|
96
|
+
}), Q()), (!c || d & /*$selectedVideoDeviceId*/
|
|
97
|
+
64) && f(
|
|
98
|
+
r,
|
|
99
|
+
"device_id",
|
|
100
|
+
/*$selectedVideoDeviceId*/
|
|
101
|
+
i[6]
|
|
102
|
+
), (!c || d & /*livenessBlobSize*/
|
|
103
|
+
2) && f(
|
|
104
|
+
r,
|
|
105
|
+
"payload_size",
|
|
106
|
+
/*livenessBlobSize*/
|
|
107
|
+
i[1]
|
|
108
|
+
), (!c || d & /*idrndClosed*/
|
|
109
|
+
8 && l !== (l = /*idrndClosed*/
|
|
110
|
+
i[3] ? "opacity: 0; pointer-events: none;" : "opacity: 1;")) && f(r, "style", l), /*idrndClosed*/
|
|
111
|
+
i[3] && !/*idrndLoading*/
|
|
112
|
+
i[4] ? n ? (n.p(i, d), d & /*idrndClosed, idrndLoading*/
|
|
113
|
+
24 && p(n, 1)) : (n = ee(i), n.c(), p(n, 1), n.m(t, null)) : n && (H(), v(n, 1, 1, () => {
|
|
114
|
+
n = null;
|
|
115
|
+
}), Q());
|
|
116
|
+
},
|
|
117
|
+
i(i) {
|
|
118
|
+
c || (p(o), p(n), c = !0);
|
|
119
|
+
},
|
|
120
|
+
o(i) {
|
|
121
|
+
v(o), v(n), c = !1;
|
|
122
|
+
},
|
|
123
|
+
d(i) {
|
|
124
|
+
i && re(t), o && o.d(), s[11](null), n && n.d();
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
function Le() {
|
|
129
|
+
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.3.0-RC11.js") : import("./index-idlf-detector_a819b3c8_3.3.0-RC11.js");
|
|
130
|
+
}
|
|
131
|
+
function Be(s, t, a) {
|
|
132
|
+
let r, l, _, c, o, n, i, d, k;
|
|
133
|
+
b(s, F, (e) => a(6, r = e)), b(s, W, (e) => a(15, l = e)), b(s, X, (e) => a(17, c = e)), b(s, Z, (e) => a(18, o = e)), b(s, z, (e) => a(19, n = e)), b(s, E, (e) => a(7, i = e)), b(s, S, (e) => a(20, d = e)), b(s, J, (e) => a(21, k = e));
|
|
134
|
+
let { livenessBlobSize: R } = t, { cameraDeviceId: y } = t;
|
|
135
|
+
const L = ye("data:image/png;base64");
|
|
136
|
+
b(s, L, (e) => a(16, _ = e));
|
|
137
|
+
let { widgetInstance: u } = t, K = !1, g = !0, h = !0, w = !0, B = "text-blue-400";
|
|
138
|
+
ge(async () => {
|
|
139
|
+
he("Mounting Stream Collector!"), m(S, d = !0, d), m(E, i = !1, i), se(), Le(), ne();
|
|
140
|
+
});
|
|
141
|
+
function se() {
|
|
142
|
+
w = !1, m(J, k = ve.FRONT_CAMERA, k), m(z, n = "faceCollector.stayInFrame", n);
|
|
143
|
+
}
|
|
144
|
+
function ne() {
|
|
145
|
+
u.addEventListener("open", async (e) => {
|
|
146
|
+
a(3, g = !1), a(4, h = !1), m(E, i = !0, i), m(S, d = !1, d), window.dispatchEvent(new CustomEvent(
|
|
147
|
+
"stream-ready",
|
|
148
|
+
{
|
|
149
|
+
detail: {
|
|
150
|
+
message: "Stream de vídeo pronto para captura"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
));
|
|
154
|
+
}), u.addEventListener("error", (e) => {
|
|
155
|
+
Y("Stream Collector error:", e), a(3, g = !0), a(4, h = !1), m(E, i = !1, i), window.dispatchEvent(new CustomEvent(
|
|
156
|
+
"stream-error",
|
|
157
|
+
{
|
|
158
|
+
detail: {
|
|
159
|
+
message: e.detail[0]?.message || "Erro na câmera",
|
|
160
|
+
error: e
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
));
|
|
164
|
+
}), u.addEventListener("faceDetection", (e) => {
|
|
165
|
+
m(
|
|
166
|
+
z,
|
|
167
|
+
n = e.detail[0].errors[0] ? "faceCollector.stayInFrame" : "faceCollector.capturing",
|
|
168
|
+
n
|
|
169
|
+
), a(5, B = e.detail[0].errors[0] ? "text-blue-400" : "text-green-400");
|
|
170
|
+
}), u.addEventListener("detection", (e) => {
|
|
171
|
+
m(
|
|
172
|
+
z,
|
|
173
|
+
n = e.detail[0].errors[0] ? "faceCollector.stayInFrame" : "faceCollector.capturing",
|
|
174
|
+
n
|
|
175
|
+
), a(5, B = e.detail[0].errors[0] ? "text-blue-400" : "text-green-400");
|
|
176
|
+
}), u.addEventListener("close", async (e) => {
|
|
177
|
+
a(3, g = !0), a(4, h = !1), console.log("Stream closed:", w), w || window.dispatchEvent(new CustomEvent(
|
|
178
|
+
"stream-lost-focus",
|
|
179
|
+
{
|
|
180
|
+
detail: { message: "Stream de vídeo foi fechado" }
|
|
181
|
+
}
|
|
182
|
+
));
|
|
183
|
+
}), u.addEventListener("initialize", async (e) => {
|
|
184
|
+
K = !0, m(Z, o = !0, o);
|
|
185
|
+
try {
|
|
186
|
+
u.setLicense(we, "faceDetector");
|
|
187
|
+
} catch (C) {
|
|
188
|
+
Y("Error setting license:", C);
|
|
189
|
+
}
|
|
190
|
+
!w && K && await P();
|
|
191
|
+
}), u.addEventListener("capture", async (e) => {
|
|
192
|
+
const { encryptedFile: C, photo: de } = e.detail[0];
|
|
193
|
+
m(X, c = C, c);
|
|
194
|
+
const U = (await x(de)).split(",");
|
|
195
|
+
w = !0, m(L, _ = U[0], _), m(W, l = U[1], l);
|
|
196
|
+
try {
|
|
197
|
+
window.dispatchEvent(new CustomEvent(
|
|
198
|
+
"stream-capture",
|
|
199
|
+
{
|
|
200
|
+
detail: {
|
|
201
|
+
image: l,
|
|
202
|
+
blob: (await x(C)).split(",")[1],
|
|
203
|
+
status: "success"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
));
|
|
207
|
+
} catch (q) {
|
|
208
|
+
let G = q instanceof Error ? q.message : "UNKNOWN", fe = Ce[G] || "Erro desconhecido";
|
|
209
|
+
window.dispatchEvent(new CustomEvent(
|
|
210
|
+
"stream-capture",
|
|
211
|
+
{
|
|
212
|
+
detail: {
|
|
213
|
+
errorCode: G,
|
|
214
|
+
translatedError: fe,
|
|
215
|
+
status: "error"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
));
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
async function P() {
|
|
223
|
+
y && m(F, r = y, r), a(4, h = !0), g && u && "openCamera" in u && u.openCamera(), a(3, g = !1);
|
|
224
|
+
}
|
|
225
|
+
async function ie() {
|
|
226
|
+
u.takePhoto();
|
|
227
|
+
}
|
|
228
|
+
async function j() {
|
|
229
|
+
!g && !h || (a(4, h = !0), m(F, r = "", r), await P());
|
|
230
|
+
}
|
|
231
|
+
const oe = E.subscribe((e) => {
|
|
232
|
+
e && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
|
|
233
|
+
}), ce = S.subscribe((e) => {
|
|
234
|
+
e && window.dispatchEvent(new CustomEvent("brycc-face-initialized"));
|
|
235
|
+
});
|
|
236
|
+
Ee(() => {
|
|
237
|
+
oe(), ce();
|
|
238
|
+
});
|
|
239
|
+
function le(e) {
|
|
240
|
+
Ie[e ? "unshift" : "push"](() => {
|
|
241
|
+
u = e, a(0, u);
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
const ue = async () => {
|
|
245
|
+
await j();
|
|
246
|
+
};
|
|
247
|
+
return s.$$set = (e) => {
|
|
248
|
+
"livenessBlobSize" in e && a(1, R = e.livenessBlobSize), "cameraDeviceId" in e && a(9, y = e.cameraDeviceId), "widgetInstance" in e && a(0, u = e.widgetInstance);
|
|
249
|
+
}, [
|
|
250
|
+
u,
|
|
251
|
+
R,
|
|
252
|
+
j,
|
|
253
|
+
g,
|
|
254
|
+
h,
|
|
255
|
+
B,
|
|
256
|
+
r,
|
|
257
|
+
i,
|
|
258
|
+
L,
|
|
259
|
+
y,
|
|
260
|
+
ie,
|
|
261
|
+
le,
|
|
262
|
+
ue
|
|
263
|
+
];
|
|
264
|
+
}
|
|
265
|
+
class Fe extends me {
|
|
266
|
+
constructor(t) {
|
|
267
|
+
super(), _e(
|
|
268
|
+
this,
|
|
269
|
+
{
|
|
270
|
+
target: this.shadowRoot,
|
|
271
|
+
props: pe(this.attributes),
|
|
272
|
+
customElement: !0
|
|
273
|
+
},
|
|
274
|
+
Be,
|
|
275
|
+
ke,
|
|
276
|
+
be,
|
|
277
|
+
{
|
|
278
|
+
livenessBlobSize: 1,
|
|
279
|
+
cameraDeviceId: 9,
|
|
280
|
+
widgetInstance: 0,
|
|
281
|
+
capture: 10,
|
|
282
|
+
reOpenCamera: 2
|
|
283
|
+
},
|
|
284
|
+
null
|
|
285
|
+
), t && (t.target && N(t.target, this, t.anchor), t.props && (this.$set(t.props), I()));
|
|
286
|
+
}
|
|
287
|
+
static get observedAttributes() {
|
|
288
|
+
return [
|
|
289
|
+
"livenessBlobSize",
|
|
290
|
+
"cameraDeviceId",
|
|
291
|
+
"widgetInstance",
|
|
292
|
+
"capture",
|
|
293
|
+
"reOpenCamera"
|
|
294
|
+
];
|
|
295
|
+
}
|
|
296
|
+
get livenessBlobSize() {
|
|
297
|
+
return this.$$.ctx[1];
|
|
298
|
+
}
|
|
299
|
+
set livenessBlobSize(t) {
|
|
300
|
+
this.$$set({ livenessBlobSize: t }), I();
|
|
301
|
+
}
|
|
302
|
+
get cameraDeviceId() {
|
|
303
|
+
return this.$$.ctx[9];
|
|
304
|
+
}
|
|
305
|
+
set cameraDeviceId(t) {
|
|
306
|
+
this.$$set({ cameraDeviceId: t }), I();
|
|
307
|
+
}
|
|
308
|
+
get widgetInstance() {
|
|
309
|
+
return this.$$.ctx[0];
|
|
310
|
+
}
|
|
311
|
+
set widgetInstance(t) {
|
|
312
|
+
this.$$set({ widgetInstance: t }), I();
|
|
313
|
+
}
|
|
314
|
+
get capture() {
|
|
315
|
+
return this.$$.ctx[10];
|
|
316
|
+
}
|
|
317
|
+
get reOpenCamera() {
|
|
318
|
+
return this.$$.ctx[2];
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
customElements.define("stream-collector", Fe);
|
|
322
|
+
export {
|
|
323
|
+
Fe as default
|
|
324
|
+
};
|
package/dist/{ValidationAlert_32eba696_3.3.0-RC10.js → ValidationAlert_bba56eb3_3.3.0-RC11.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as B, x as V, y as Z, z as H, B as n, C as Q, O as Y, E as d, H as c, I as C, a8 as P, $ as K, Q as q, bs as k, bt as F, f as R, D as w, G as N, bk as S, N as x, U as L, bu as T, X as I, b7 as h, bv as E, Y as y, b8 as $, M as O, V as ee, ap as te, ah as le, K as U } from "./
|
|
1
|
+
import { S as B, x as V, y as Z, z as H, B as n, C as Q, O as Y, E as d, H as c, I as C, a8 as P, $ as K, Q as q, bs as k, bt as F, f as R, D as w, G as N, bk as S, N as x, U as L, bu as T, X as I, b7 as h, bv as E, Y as y, b8 as $, M as O, V as ee, ap as te, ah as le, K as U } from "./main_f17fc861_3.3.0-RC11.js";
|
|
2
2
|
function ae(u) {
|
|
3
3
|
let e;
|
|
4
4
|
function i(l, M) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as D, $ as C, n as b, g as y, i as M, s as l, a as F, l as U, F as L, b as x, c as E, v as P, d as B, e as W, A as v, f as $, h as I, j as g, k, m as q, o as R, p as V, q as X, r as p, t as G } from "./
|
|
2
|
-
import "./face_api_0e3ce8c8_3.3.0-
|
|
1
|
+
import { u as D, $ as C, n as b, g as y, i as M, s as l, a as F, l as U, F as L, b as x, c as E, v as P, d as B, e as W, A as v, f as $, h as I, j as g, k, m as q, o as R, p as V, q as X, r as p, t as G } from "./main_f17fc861_3.3.0-RC11.js";
|
|
2
|
+
import "./face_api_0e3ce8c8_3.3.0-RC11.js";
|
|
3
3
|
const f = D(C);
|
|
4
4
|
var Q = /* @__PURE__ */ ((n) => (n.EXTENSION_MISSING = "EXTENSION_MISSING", n.USER_CANCELLED = "USER_CANCELLED", n.UNAUTHORIZED_EXTENSION = "UNAUTHORIZED_EXTENSION", n.SCANNER_NOT_FOUND = "SCANNER_NOT_FOUND", n.EXTENSION_MODULE_NOT_INSTALLED = "EXTENSION_MODULE_NOT_INSTALLED", n.FINGER_NOT_REMOVED = "FINGER_NOT_REMOVED", n.UNKNOWN_ERROR = "UNKNOWN_ERROR", n.EVALUATE_BIOMETRICS_TIMEOUT = "EVALUATE_BIOMETRICS_TIMEOUT", n.EVALUATE_BIOMETRICS_NETWORK_ISSUE = "EVALUATE_BIOMETRICS_NETWORK_ISSUE", n))(Q || {});
|
|
5
5
|
class r extends Error {
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { by as eo } from "./
|
|
2
|
-
import { r as x1, l as b1, L as y1 } from "./___vite-browser-external_commonjs-
|
|
3
|
-
import "./face_api_0e3ce8c8_3.3.0-
|
|
1
|
+
import { by as eo } from "./main_f17fc861_3.3.0-RC11.js";
|
|
2
|
+
import { r as x1, l as b1, L as y1 } from "./___vite-browser-external_commonjs-proxy_07f4ac3b_3.3.0-RC11.js";
|
|
3
|
+
import "./face_api_0e3ce8c8_3.3.0-RC11.js";
|
|
4
4
|
var pu = { exports: {} };
|
|
5
5
|
pu.exports;
|
|
6
6
|
(function(n) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as vu, L as Au, r as se } from "./___vite-browser-external_commonjs-
|
|
2
|
-
import { by as Xa, bz as hr } from "./
|
|
3
|
-
import "./face_api_0e3ce8c8_3.3.0-
|
|
1
|
+
import { l as vu, L as Au, r as se } from "./___vite-browser-external_commonjs-proxy_07f4ac3b_3.3.0-RC11.js";
|
|
2
|
+
import { by as Xa, bz as hr } from "./main_f17fc861_3.3.0-RC11.js";
|
|
3
|
+
import "./face_api_0e3ce8c8_3.3.0-RC11.js";
|
|
4
4
|
function gr(e, t) {
|
|
5
5
|
for (var n = 0; n < t.length; n++) {
|
|
6
6
|
const s = t[n];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { detectSingleFace as SB, Box as RB } from "./face_api_0e3ce8c8_3.3.0-
|
|
1
|
+
import { detectSingleFace as SB, Box as RB } from "./face_api_0e3ce8c8_3.3.0-RC11.js";
|
|
2
2
|
function $() {
|
|
3
3
|
}
|
|
4
4
|
function un(A, e) {
|
|
@@ -7217,18 +7217,18 @@ async function cf(A) {
|
|
|
7217
7217
|
A && (e = A), wi("requesting weights from", e);
|
|
7218
7218
|
try {
|
|
7219
7219
|
await Promise.all([
|
|
7220
|
-
(await import("./face_api_0e3ce8c8_3.3.0-
|
|
7221
|
-
(await import("./face_api_0e3ce8c8_3.3.0-
|
|
7220
|
+
(await import("./face_api_0e3ce8c8_3.3.0-RC11.js")).nets.tinyFaceDetector.load(e),
|
|
7221
|
+
(await import("./face_api_0e3ce8c8_3.3.0-RC11.js")).loadFaceLandmarkModel(e)
|
|
7222
7222
|
]);
|
|
7223
7223
|
} catch {
|
|
7224
7224
|
bi("Your browser doesn't support WebGL! Trying to use WASM backend now...");
|
|
7225
7225
|
try {
|
|
7226
7226
|
await Promise.all([
|
|
7227
|
-
(await import("./
|
|
7228
|
-
(await import("./
|
|
7229
|
-
(await import("./
|
|
7230
|
-
(await import("./face_api_0e3ce8c8_3.3.0-
|
|
7231
|
-
(await import("./face_api_0e3ce8c8_3.3.0-
|
|
7227
|
+
(await import("./index_fcfc4554_3.3.0-RC11.js")).setWasmPaths("https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm/dist/"),
|
|
7228
|
+
(await import("./index_6fff4b84_3.3.0-RC11.js")).setBackend("wasm"),
|
|
7229
|
+
(await import("./index_6fff4b84_3.3.0-RC11.js")).ready(),
|
|
7230
|
+
(await import("./face_api_0e3ce8c8_3.3.0-RC11.js")).nets.tinyFaceDetector.load(e),
|
|
7231
|
+
(await import("./face_api_0e3ce8c8_3.3.0-RC11.js")).loadFaceLandmarkModel(e)
|
|
7232
7232
|
]);
|
|
7233
7233
|
} catch {
|
|
7234
7234
|
throw bi("WASM backend failed to load, face detection will be disabled"), new Error("Face detection failed to load");
|
|
@@ -10316,13 +10316,13 @@ async function iQ(A) {
|
|
|
10316
10316
|
e = 0.2;
|
|
10317
10317
|
break;
|
|
10318
10318
|
}
|
|
10319
|
-
return new (await import("./face_api_0e3ce8c8_3.3.0-
|
|
10319
|
+
return new (await import("./face_api_0e3ce8c8_3.3.0-RC11.js")).TinyFaceDetectorOptions({
|
|
10320
10320
|
scoreThreshold: e
|
|
10321
10321
|
});
|
|
10322
10322
|
}
|
|
10323
10323
|
async function Kf(A, e, t, r = !1) {
|
|
10324
10324
|
if (t) {
|
|
10325
|
-
const l = (await import("./face_api_0e3ce8c8_3.3.0-
|
|
10325
|
+
const l = (await import("./face_api_0e3ce8c8_3.3.0-RC11.js")).draw;
|
|
10326
10326
|
l.drawDetections(e, A), new l.DrawFaceLandmarks(A.landmarks, { pointColor: "gold" }).draw(e);
|
|
10327
10327
|
}
|
|
10328
10328
|
const i = A.landmarks.positions, o = oQ(i), n = await nQ(i), c = A.detection.box, s = await aQ(c, n, e, t);
|
|
@@ -10333,17 +10333,17 @@ function oQ(A) {
|
|
|
10333
10333
|
return Ro(e, t);
|
|
10334
10334
|
}
|
|
10335
10335
|
async function nQ(A) {
|
|
10336
|
-
const e = (await import("./face_api_0e3ce8c8_3.3.0-
|
|
10336
|
+
const e = (await import("./face_api_0e3ce8c8_3.3.0-RC11.js")).Point;
|
|
10337
10337
|
let t = A[37].add(A[38]).add(A[40]).add(A[41]), r = A[43].add(A[44]).add(A[46]).add(A[47]);
|
|
10338
10338
|
t = t.div(new e(4, 4)), r = r.div(new e(4, 4));
|
|
10339
10339
|
const i = Ro(r, t);
|
|
10340
10340
|
return ec.set(i), i;
|
|
10341
10341
|
}
|
|
10342
10342
|
async function aQ(A, e, t, r) {
|
|
10343
|
-
const i = (await import("./face_api_0e3ce8c8_3.3.0-
|
|
10343
|
+
const i = (await import("./face_api_0e3ce8c8_3.3.0-RC11.js")).Point;
|
|
10344
10344
|
let o = 2.5, n = 0.8;
|
|
10345
10345
|
const c = A.topLeft.x - e, s = A.topLeft.y - o * e, l = A.bottomLeft.x - e, C = A.bottomLeft.y + n * e, h = A.bottomRight.x + e, b = A.bottomRight.y + e, v = Ro(new i(l, C), new i(c, s)), D = Ro(new i(l, C), new i(h, b)), U = t.getContext("2d");
|
|
10346
|
-
return U.beginPath(), U.strokeStyle = "gold", Ac.set(new (await import("./face_api_0e3ce8c8_3.3.0-
|
|
10346
|
+
return U.beginPath(), U.strokeStyle = "gold", Ac.set(new (await import("./face_api_0e3ce8c8_3.3.0-RC11.js")).Box({ x: c, y: s, width: D, height: v })), U.rect(c, s, D, v), r && U.stroke(), {
|
|
10347
10347
|
topLeftX: A.topLeft.x,
|
|
10348
10348
|
topLeftY: A.topLeft.y,
|
|
10349
10349
|
bottomRightX: A.bottomRight.x,
|
|
@@ -10416,7 +10416,7 @@ async function BQ(A, e, t) {
|
|
|
10416
10416
|
height: e.height * C
|
|
10417
10417
|
}), b = document.createElement("canvas");
|
|
10418
10418
|
b.width = h.width, b.height = h.height, b.getContext("2d")?.clearRect(0, 0, b.width, b.height), s && lQ(s, A, c);
|
|
10419
|
-
const [D] = await (await import("./face_api_0e3ce8c8_3.3.0-
|
|
10419
|
+
const [D] = await (await import("./face_api_0e3ce8c8_3.3.0-RC11.js")).extractFaces(c, [h]);
|
|
10420
10420
|
return D;
|
|
10421
10421
|
}
|
|
10422
10422
|
function lQ(A, e, t) {
|
|
@@ -23324,7 +23324,7 @@ function hc(A) {
|
|
|
23324
23324
|
return this;
|
|
23325
23325
|
}
|
|
23326
23326
|
async function pc(A, e) {
|
|
23327
|
-
return await import("./
|
|
23327
|
+
return await import("./fingersApi_da2bebe6_3.3.0-RC11.js").then((t) => t.captureSingleFinger(A, e));
|
|
23328
23328
|
}
|
|
23329
23329
|
function Hd(A, e, t) {
|
|
23330
23330
|
let r, i, o, n, c, s, l, C, h, b, v, D, U, f, P, W, Z, wA, IA, eA, cA, V, QA, GA, ge, Le, He, iA, Ge, ae, mA, le, Et, S, k;
|
|
@@ -23332,7 +23332,7 @@ function Hd(A, e, t) {
|
|
|
23332
23332
|
let { lottie_color: oA = "71 89 124" } = e, { extension_name: tA = "BryWebExtension" } = e, { extension_url_chrome: uA } = e, { extension_url_mozilla: BA } = e, { min_nfiq_acceptable: fA = 3 } = e;
|
|
23333
23333
|
kE(fA);
|
|
23334
23334
|
let { show_theme_picker: aA = "true" } = e, { video_dimensions: DA } = e, { enable_minutiae: LA } = e, { collector_select: RA = "BOTH" } = e, { import_lottie: MA = "true" } = e, { hide_tabs: JA = "false" } = e, { import_extension_script: Ae = "false" } = e, { extension_url_script: FA } = e, { liveness_enable: ee = "false" } = e, { weights_path: se = "https://cdn.jsdelivr.net/npm/bry-biometric-collector@latest/dist/weights/" } = e, { evaluate_photo: ZA = "true" } = e, { show_capture_button: de = "true" } = e, { show_unconformities: YA = "true" } = e, { video_overlay: HA = "white" } = e, { video_overlay_transparency: Ke = 0 } = e, { show_config_button: Ce = "true" } = e, { show_auto_capture_button: At = "false" } = e, { show_camera_button: De = "true" } = e, { language: $A = yI() } = e, { show_justification_field: vA = "true" } = e, { min_eye_to_eye_dist: ve = 0 } = e, { show_watermark: Oe = "true" } = e, { face_detection_sensitivity: dA = "permissive" } = e, { hidden: kA = "false" } = e, { liveness_blob_size: jA = "normal" } = e, { camera_device_id: ct = "" } = e;
|
|
23335
|
-
Wr("en", () => import("./en-us_c02e99cd_3.3.0-
|
|
23335
|
+
Wr("en", () => import("./en-us_c02e99cd_3.3.0-RC11.js")), Wr("pt", () => import("./pt-br_e7d46668_3.3.0-RC11.js")), Wr("es", () => import("./es-cl_6f3eda53_3.3.0-RC11.js")), Nn({
|
|
23336
23336
|
fallbackLocale: "pt",
|
|
23337
23337
|
initialLocale: $A
|
|
23338
23338
|
});
|
|
@@ -23552,13 +23552,13 @@ function Hd(A, e, t) {
|
|
|
23552
23552
|
return bA(Pn, C = w, C), this;
|
|
23553
23553
|
}
|
|
23554
23554
|
async function Ut() {
|
|
23555
|
-
return t(29, sr = (await import("./
|
|
23555
|
+
return t(29, sr = (await import("./FaceCollector_536c7465_3.3.0-RC11.js")).default), this;
|
|
23556
23556
|
}
|
|
23557
23557
|
async function Cr() {
|
|
23558
|
-
return t(31, St = (await import("./
|
|
23558
|
+
return t(31, St = (await import("./DocumentCollector_de7baafa_3.3.0-RC11.js")).default), this;
|
|
23559
23559
|
}
|
|
23560
23560
|
async function Bt() {
|
|
23561
|
-
return t(32, fe = (await import("./
|
|
23561
|
+
return t(32, fe = (await import("./StreamCollector_1adea6c1_3.3.0-RC11.js")).default), this;
|
|
23562
23562
|
}
|
|
23563
23563
|
function Lt(w) {
|
|
23564
23564
|
Tt(w);
|
|
@@ -24265,9 +24265,9 @@ class wc extends ye {
|
|
|
24265
24265
|
}
|
|
24266
24266
|
}
|
|
24267
24267
|
customElements.define("biometric-collector", wc);
|
|
24268
|
-
Wr("en", () => import("./en-us_c02e99cd_3.3.0-
|
|
24269
|
-
Wr("pt", () => import("./pt-br_e7d46668_3.3.0-
|
|
24270
|
-
Wr("es", () => import("./es-cl_6f3eda53_3.3.0-
|
|
24268
|
+
Wr("en", () => import("./en-us_c02e99cd_3.3.0-RC11.js"));
|
|
24269
|
+
Wr("pt", () => import("./pt-br_e7d46668_3.3.0-RC11.js"));
|
|
24270
|
+
Wr("es", () => import("./es-cl_6f3eda53_3.3.0-RC11.js"));
|
|
24271
24271
|
Nn({
|
|
24272
24272
|
fallbackLocale: "pt",
|
|
24273
24273
|
initialLocale: yI()
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "bry-biometric-collector",
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "BRy web-collector component for biometric capture.",
|
|
5
|
-
"version": "3.3.0-
|
|
5
|
+
"version": "3.3.0-RC11",
|
|
6
6
|
"main": "dist/bry-biometric-collector-main.js",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"license": "UNLICENSED",
|
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
import { S as _e, x as pe, y as be, z as ge, B as R, C as I, D as V, N as A, E as ae, bd as m, G as re, X as S, a0 as b, a1 as H, a2 as v, a3 as Q, H as se, I as p, aa as F, am as X, ac as O, au as Z, av as J, ah as z, T as E, ar as D, a9 as Y, aA as he, f as ve, aB as f, aF as we, l as x, aK as Ee, aM as $, b4 as ye, aW as Ce, Z as M, _ as T, a4 as N, w as Ie, aQ as ze, bc as De } from "./main_43789262_3.3.0-RC10.js";
|
|
2
|
-
import { V as Se, C as ke } from "./ValidationAlert_32eba696_3.3.0-RC10.js";
|
|
3
|
-
import { F as Le } from "./FaceOval_6fa06304_3.3.0-RC10.js";
|
|
4
|
-
import "./face_api_0e3ce8c8_3.3.0-RC10.js";
|
|
5
|
-
function ee(s) {
|
|
6
|
-
let t, a, r, l, _;
|
|
7
|
-
return a = new Se({}), l = new Le({
|
|
8
|
-
props: { borderColor: (
|
|
9
|
-
/*ovalColor*/
|
|
10
|
-
s[5]
|
|
11
|
-
) }
|
|
12
|
-
}), {
|
|
13
|
-
c() {
|
|
14
|
-
t = V("div"), M(a.$$.fragment), r = A(), M(l.$$.fragment), re(t, "class", "absolute inset-0 flex flex-col items-center mt-[4%] mb-[8%] z-50");
|
|
15
|
-
},
|
|
16
|
-
m(n, i) {
|
|
17
|
-
R(n, t, i), T(a, t, null), S(t, r), T(l, t, null), _ = !0;
|
|
18
|
-
},
|
|
19
|
-
p(n, i) {
|
|
20
|
-
const o = {};
|
|
21
|
-
i & /*ovalColor*/
|
|
22
|
-
32 && (o.borderColor = /*ovalColor*/
|
|
23
|
-
n[5]), l.$set(o);
|
|
24
|
-
},
|
|
25
|
-
i(n) {
|
|
26
|
-
_ || (b(a.$$.fragment, n), b(l.$$.fragment, n), _ = !0);
|
|
27
|
-
},
|
|
28
|
-
o(n) {
|
|
29
|
-
v(a.$$.fragment, n), v(l.$$.fragment, n), _ = !1;
|
|
30
|
-
},
|
|
31
|
-
d(n) {
|
|
32
|
-
n && se(t), N(a), N(l);
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function te(s) {
|
|
37
|
-
let t, a;
|
|
38
|
-
return t = new ke({ props: { handler: (
|
|
39
|
-
/*func*/
|
|
40
|
-
s[12]
|
|
41
|
-
) } }), {
|
|
42
|
-
c() {
|
|
43
|
-
M(t.$$.fragment);
|
|
44
|
-
},
|
|
45
|
-
m(r, l) {
|
|
46
|
-
T(t, r, l), a = !0;
|
|
47
|
-
},
|
|
48
|
-
p: ae,
|
|
49
|
-
i(r) {
|
|
50
|
-
a || (b(t.$$.fragment, r), a = !0);
|
|
51
|
-
},
|
|
52
|
-
o(r) {
|
|
53
|
-
v(t.$$.fragment, r), a = !1;
|
|
54
|
-
},
|
|
55
|
-
d(r) {
|
|
56
|
-
N(t, r);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function Be(s) {
|
|
61
|
-
let t, a, r, l, _, n, i = (
|
|
62
|
-
/*$ready*/
|
|
63
|
-
s[7] && !/*idrndClosed*/
|
|
64
|
-
s[3] && !/*idrndLoading*/
|
|
65
|
-
s[4] && ee(s)
|
|
66
|
-
), o = (
|
|
67
|
-
/*idrndClosed*/
|
|
68
|
-
s[3] && !/*idrndLoading*/
|
|
69
|
-
s[4] && te(s)
|
|
70
|
-
);
|
|
71
|
-
return {
|
|
72
|
-
c() {
|
|
73
|
-
t = V("div"), i && i.c(), a = A(), r = V("idlive-face-capture"), _ = A(), o && o.c(), this.c = ae, m(r, "class", "w-full h-full"), m(r, "mask_hidden", ""), m(r, "auto_close_disabled", ""), m(
|
|
74
|
-
r,
|
|
75
|
-
"device_id",
|
|
76
|
-
/*$selectedVideoDeviceId*/
|
|
77
|
-
s[6]
|
|
78
|
-
), m(r, "face_not_centered_check_enabled", ""), m(r, "sunglasses_detected_check_enabled", ""), m(r, "mouth_open_check_enabled", ""), m(r, "face_blurry_check_enabled", ""), m(r, "dark_image_check_enabled", ""), m(r, "eyes_closed_check_enabled", ""), m(
|
|
79
|
-
r,
|
|
80
|
-
"payload_size",
|
|
81
|
-
/*livenessBlobSize*/
|
|
82
|
-
s[1]
|
|
83
|
-
), m(r, "style", l = /*idrndClosed*/
|
|
84
|
-
s[3] ? "opacity: 0; pointer-events: none;" : "opacity: 1;"), re(t, "class", "flex justify-center w-full h-full relative bg-black");
|
|
85
|
-
},
|
|
86
|
-
m(c, u) {
|
|
87
|
-
R(c, t, u), i && i.m(t, null), S(t, a), S(t, r), s[11](r), S(t, _), o && o.m(t, null), n = !0;
|
|
88
|
-
},
|
|
89
|
-
p(c, [u]) {
|
|
90
|
-
/*$ready*/
|
|
91
|
-
c[7] && !/*idrndClosed*/
|
|
92
|
-
c[3] && !/*idrndLoading*/
|
|
93
|
-
c[4] ? i ? (i.p(c, u), u & /*$ready, idrndClosed, idrndLoading*/
|
|
94
|
-
152 && b(i, 1)) : (i = ee(c), i.c(), b(i, 1), i.m(t, a)) : i && (H(), v(i, 1, 1, () => {
|
|
95
|
-
i = null;
|
|
96
|
-
}), Q()), (!n || u & /*$selectedVideoDeviceId*/
|
|
97
|
-
64) && m(
|
|
98
|
-
r,
|
|
99
|
-
"device_id",
|
|
100
|
-
/*$selectedVideoDeviceId*/
|
|
101
|
-
c[6]
|
|
102
|
-
), (!n || u & /*livenessBlobSize*/
|
|
103
|
-
2) && m(
|
|
104
|
-
r,
|
|
105
|
-
"payload_size",
|
|
106
|
-
/*livenessBlobSize*/
|
|
107
|
-
c[1]
|
|
108
|
-
), (!n || u & /*idrndClosed*/
|
|
109
|
-
8 && l !== (l = /*idrndClosed*/
|
|
110
|
-
c[3] ? "opacity: 0; pointer-events: none;" : "opacity: 1;")) && m(r, "style", l), /*idrndClosed*/
|
|
111
|
-
c[3] && !/*idrndLoading*/
|
|
112
|
-
c[4] ? o ? (o.p(c, u), u & /*idrndClosed, idrndLoading*/
|
|
113
|
-
24 && b(o, 1)) : (o = te(c), o.c(), b(o, 1), o.m(t, null)) : o && (H(), v(o, 1, 1, () => {
|
|
114
|
-
o = null;
|
|
115
|
-
}), Q());
|
|
116
|
-
},
|
|
117
|
-
i(c) {
|
|
118
|
-
n || (b(i), b(o), n = !0);
|
|
119
|
-
},
|
|
120
|
-
o(c) {
|
|
121
|
-
v(i), v(o), n = !1;
|
|
122
|
-
},
|
|
123
|
-
d(c) {
|
|
124
|
-
c && se(t), i && i.d(), s[11](null), o && o.d();
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
function Fe() {
|
|
129
|
-
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.3.0-RC10.js") : import("./index-idlf-detector_a819b3c8_3.3.0-RC10.js");
|
|
130
|
-
}
|
|
131
|
-
function Oe(s, t, a) {
|
|
132
|
-
let r, l, _, n, i, o, c, u, w, k;
|
|
133
|
-
p(s, F, (e) => a(6, r = e)), p(s, X, (e) => a(14, l = e)), p(s, O, (e) => a(16, n = e)), p(s, Z, (e) => a(17, i = e)), p(s, J, (e) => a(18, o = e)), p(s, z, (e) => a(19, c = e)), p(s, E, (e) => a(7, u = e)), p(s, D, (e) => a(20, w = e)), p(s, Y, (e) => a(21, k = e));
|
|
134
|
-
let { livenessBlobSize: K } = t, { cameraDeviceId: y } = t;
|
|
135
|
-
const L = Ie("data:image/png;base64");
|
|
136
|
-
p(s, L, (e) => a(15, _ = e));
|
|
137
|
-
let { widgetInstance: d } = t, P = !1, g = !0, h = !0, B = "text-blue-400";
|
|
138
|
-
he(async () => {
|
|
139
|
-
ve("Mounting Stream Collector!"), f(D, w = !0, w), f(E, u = !1, u), ne(), Fe(), ie();
|
|
140
|
-
});
|
|
141
|
-
function ne() {
|
|
142
|
-
f(O, n = !1, n), f(Y, k = we.FRONT_CAMERA, k), f(z, c = "faceCollector.stayInFrame", c);
|
|
143
|
-
}
|
|
144
|
-
function ie() {
|
|
145
|
-
d.addEventListener("open", async (e) => {
|
|
146
|
-
a(3, g = !1), a(4, h = !1), f(E, u = !0, u), f(D, w = !1, w), window.dispatchEvent(new CustomEvent(
|
|
147
|
-
"stream-ready",
|
|
148
|
-
{
|
|
149
|
-
detail: {
|
|
150
|
-
message: "Stream de vídeo pronto para captura"
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
));
|
|
154
|
-
}), d.addEventListener("error", (e) => {
|
|
155
|
-
x("Stream Collector error:", e), a(3, g = !0), a(4, h = !1), f(E, u = !1, u), window.dispatchEvent(new CustomEvent(
|
|
156
|
-
"stream-error",
|
|
157
|
-
{
|
|
158
|
-
detail: {
|
|
159
|
-
message: e.detail[0]?.message || "Erro na câmera",
|
|
160
|
-
error: e
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
));
|
|
164
|
-
}), d.addEventListener("faceDetection", (e) => {
|
|
165
|
-
f(
|
|
166
|
-
z,
|
|
167
|
-
c = e.detail[0].errors[0] ? "faceCollector.stayInFrame" : "faceCollector.capturing",
|
|
168
|
-
c
|
|
169
|
-
), a(5, B = e.detail[0].errors[0] ? "text-blue-400" : "text-green-400");
|
|
170
|
-
}), d.addEventListener("detection", (e) => {
|
|
171
|
-
f(
|
|
172
|
-
z,
|
|
173
|
-
c = e.detail[0].errors[0] ? "faceCollector.stayInFrame" : "faceCollector.capturing",
|
|
174
|
-
c
|
|
175
|
-
), a(5, B = e.detail[0].errors[0] ? "text-blue-400" : "text-green-400");
|
|
176
|
-
}), d.addEventListener("close", async (e) => {
|
|
177
|
-
a(3, g = !0), a(4, h = !1), n || window.dispatchEvent(new CustomEvent(
|
|
178
|
-
"stream-lost-focus",
|
|
179
|
-
{
|
|
180
|
-
detail: { message: "Stream de vídeo foi fechado" }
|
|
181
|
-
}
|
|
182
|
-
));
|
|
183
|
-
}), d.addEventListener("initialize", async (e) => {
|
|
184
|
-
P = !0, f(J, o = !0, o);
|
|
185
|
-
try {
|
|
186
|
-
d.setLicense(Ee, "faceDetector");
|
|
187
|
-
} catch (C) {
|
|
188
|
-
x("Error setting license:", C);
|
|
189
|
-
}
|
|
190
|
-
!n && P && await j();
|
|
191
|
-
}), d.addEventListener("capture", async (e) => {
|
|
192
|
-
const { encryptedFile: C, photo: fe } = e.detail[0];
|
|
193
|
-
f(Z, i = C, i);
|
|
194
|
-
const W = (await $(fe)).split(",");
|
|
195
|
-
f(O, n = !0, n), f(L, _ = W[0], _), f(X, l = W[1], l);
|
|
196
|
-
try {
|
|
197
|
-
window.dispatchEvent(new CustomEvent(
|
|
198
|
-
"stream-capture",
|
|
199
|
-
{
|
|
200
|
-
detail: {
|
|
201
|
-
image: l,
|
|
202
|
-
blob: (await $(C)).split(",")[1],
|
|
203
|
-
status: "success"
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
));
|
|
207
|
-
} catch (q) {
|
|
208
|
-
let G = q instanceof Error ? q.message : "UNKNOWN", me = ze[G] || "Erro desconhecido";
|
|
209
|
-
window.dispatchEvent(new CustomEvent(
|
|
210
|
-
"stream-capture",
|
|
211
|
-
{
|
|
212
|
-
detail: {
|
|
213
|
-
errorCode: G,
|
|
214
|
-
translatedError: me,
|
|
215
|
-
status: "error"
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
));
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
async function j() {
|
|
223
|
-
y && f(F, r = y, r), a(4, h = !0), g && d && "openCamera" in d && d.openCamera(), a(3, g = !1);
|
|
224
|
-
}
|
|
225
|
-
async function ce() {
|
|
226
|
-
d.takePhoto();
|
|
227
|
-
}
|
|
228
|
-
async function U() {
|
|
229
|
-
!g && !h || (a(4, h = !0), f(F, r = "", r), await j());
|
|
230
|
-
}
|
|
231
|
-
const oe = E.subscribe((e) => {
|
|
232
|
-
e && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
|
|
233
|
-
}), le = D.subscribe((e) => {
|
|
234
|
-
e && window.dispatchEvent(new CustomEvent("brycc-face-initialized"));
|
|
235
|
-
});
|
|
236
|
-
ye(() => {
|
|
237
|
-
Ce(d), oe(), le();
|
|
238
|
-
});
|
|
239
|
-
function ue(e) {
|
|
240
|
-
De[e ? "unshift" : "push"](() => {
|
|
241
|
-
d = e, a(0, d);
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
const de = async () => {
|
|
245
|
-
await U();
|
|
246
|
-
};
|
|
247
|
-
return s.$$set = (e) => {
|
|
248
|
-
"livenessBlobSize" in e && a(1, K = e.livenessBlobSize), "cameraDeviceId" in e && a(9, y = e.cameraDeviceId), "widgetInstance" in e && a(0, d = e.widgetInstance);
|
|
249
|
-
}, [
|
|
250
|
-
d,
|
|
251
|
-
K,
|
|
252
|
-
U,
|
|
253
|
-
g,
|
|
254
|
-
h,
|
|
255
|
-
B,
|
|
256
|
-
r,
|
|
257
|
-
u,
|
|
258
|
-
L,
|
|
259
|
-
y,
|
|
260
|
-
ce,
|
|
261
|
-
ue,
|
|
262
|
-
de
|
|
263
|
-
];
|
|
264
|
-
}
|
|
265
|
-
class Ve extends _e {
|
|
266
|
-
constructor(t) {
|
|
267
|
-
super(), pe(
|
|
268
|
-
this,
|
|
269
|
-
{
|
|
270
|
-
target: this.shadowRoot,
|
|
271
|
-
props: ge(this.attributes),
|
|
272
|
-
customElement: !0
|
|
273
|
-
},
|
|
274
|
-
Oe,
|
|
275
|
-
Be,
|
|
276
|
-
be,
|
|
277
|
-
{
|
|
278
|
-
livenessBlobSize: 1,
|
|
279
|
-
cameraDeviceId: 9,
|
|
280
|
-
widgetInstance: 0,
|
|
281
|
-
capture: 10,
|
|
282
|
-
reOpenCamera: 2
|
|
283
|
-
},
|
|
284
|
-
null
|
|
285
|
-
), t && (t.target && R(t.target, this, t.anchor), t.props && (this.$set(t.props), I()));
|
|
286
|
-
}
|
|
287
|
-
static get observedAttributes() {
|
|
288
|
-
return [
|
|
289
|
-
"livenessBlobSize",
|
|
290
|
-
"cameraDeviceId",
|
|
291
|
-
"widgetInstance",
|
|
292
|
-
"capture",
|
|
293
|
-
"reOpenCamera"
|
|
294
|
-
];
|
|
295
|
-
}
|
|
296
|
-
get livenessBlobSize() {
|
|
297
|
-
return this.$$.ctx[1];
|
|
298
|
-
}
|
|
299
|
-
set livenessBlobSize(t) {
|
|
300
|
-
this.$$set({ livenessBlobSize: t }), I();
|
|
301
|
-
}
|
|
302
|
-
get cameraDeviceId() {
|
|
303
|
-
return this.$$.ctx[9];
|
|
304
|
-
}
|
|
305
|
-
set cameraDeviceId(t) {
|
|
306
|
-
this.$$set({ cameraDeviceId: t }), I();
|
|
307
|
-
}
|
|
308
|
-
get widgetInstance() {
|
|
309
|
-
return this.$$.ctx[0];
|
|
310
|
-
}
|
|
311
|
-
set widgetInstance(t) {
|
|
312
|
-
this.$$set({ widgetInstance: t }), I();
|
|
313
|
-
}
|
|
314
|
-
get capture() {
|
|
315
|
-
return this.$$.ctx[10];
|
|
316
|
-
}
|
|
317
|
-
get reOpenCamera() {
|
|
318
|
-
return this.$$.ctx[2];
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
customElements.define("stream-collector", Ve);
|
|
322
|
-
export {
|
|
323
|
-
Ve as default
|
|
324
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|