bry-biometric-collector 3.3.0-RC04 → 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.
- package/README.md +6 -0
- package/dist/{DocumentCollector_defd5e57_3.3.0-RC04.js → DocumentCollector_fac8e88e_3.3.0-RC05.js} +4 -4
- package/dist/{FaceCollector_16e3c9ed_3.3.0-RC04.js → FaceCollector_d7a5f6dd_3.3.0-RC05.js} +441 -446
- package/dist/{ValidationAlert_722c259d_3.3.0-RC04.js → ValidationAlert_51a3395e_3.3.0-RC05.js} +1 -1
- package/dist/{___vite-browser-external_commonjs-proxy_c9629267_3.3.0-RC04.js → ___vite-browser-external_commonjs-proxy_9c968044_3.3.0-RC05.js} +1 -1
- package/dist/bry-biometric-collector-main.js +2 -2
- package/dist/{faceApi_8254146e_3.3.0-RC04.js → faceApi_a8b6f8d4_3.3.0-RC05.js} +4 -4
- package/dist/{fingersApi_2e316625_3.3.0-RC04.js → fingersApi_22e412a3_3.3.0-RC05.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{index_ccdcae61_3.3.0-RC04.js → index_8a9061ba_3.3.0-RC05.js} +3 -3
- package/dist/{index_882c2cd7_3.3.0-RC04.js → index_a05d6356_3.3.0-RC05.js} +3 -3
- package/dist/{main_adc308db_3.3.0-RC04.js → main_35f2cba0_3.3.0-RC05.js} +30 -30
- package/package.json +1 -1
- /package/dist/{en-us_e83efd5d_3.3.0-RC04.js → en-us_e83efd5d_3.3.0-RC05.js} +0 -0
- /package/dist/{es-cl_5939150a_3.3.0-RC04.js → es-cl_5939150a_3.3.0-RC05.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_3.3.0-RC04.js → face_api_0e3ce8c8_3.3.0-RC05.js} +0 -0
- /package/dist/{index-idlf-detector_39cfdffa_3.3.0-RC04.js → index-idlf-detector_39cfdffa_3.3.0-RC05.js} +0 -0
- /package/dist/{index-idlf-detector_a819b3c8_3.3.0-RC04.js → index-idlf-detector_a819b3c8_3.3.0-RC05.js} +0 -0
- /package/dist/{pt-br_fae15356_3.3.0-RC04.js → pt-br_fae15356_3.3.0-RC05.js} +0 -0
package/dist/{ValidationAlert_722c259d_3.3.0-RC04.js → ValidationAlert_51a3395e_3.3.0-RC05.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as H, B as P, C as F, D as W, E as M, G as S, H as I, I as T, J as h, O as g, P as E, a2 as _e, $ as le, bu as Y, bv as $, Z as B, f as ae, bm as O, _ as p, a5 as L, bw as x, a8 as b, bx as Q, a9 as C, b9 as R, a6 as ve,
|
|
1
|
+
import { S as H, B as P, C as F, D as W, E as M, G as S, H as I, I as T, J as h, O as g, P as E, a2 as _e, $ as le, bu as Y, bv as $, Z as B, f as ae, bm as O, _ as p, a5 as L, bw as x, a8 as b, bx as Q, a9 as C, b9 as R, a6 as ve, ad as ue, a0 as X, ag as Ae, b0 as oe, U as ee, aj as ie, L as V, M as k, N as Z, K as z, R as Le, bp as se, a4 as Ce, au as Ie, T as q, b8 as U, bn as te, by as ze, V as G, W as J, X as K, Y as fe, am as ke } from "./main_35f2cba0_3.3.0-RC05.js";
|
|
2
2
|
function ye(i) {
|
|
3
3
|
let e, s, a, t, l = (
|
|
4
4
|
/*$_*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { w as a, x as r, y as i, d as n, j as o } from "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./face_api_0e3ce8c8_3.3.0-
|
|
4
|
-
import "./
|
|
1
|
+
import { w as a, x as r, y as i, d as n, j as o } from "./main_35f2cba0_3.3.0-RC05.js";
|
|
2
|
+
import "./FaceCollector_d7a5f6dd_3.3.0-RC05.js";
|
|
3
|
+
import "./face_api_0e3ce8c8_3.3.0-RC05.js";
|
|
4
|
+
import "./ValidationAlert_51a3395e_3.3.0-RC05.js";
|
|
5
5
|
async function p(t) {
|
|
6
6
|
try {
|
|
7
7
|
a("Capturing single face"), r.set(t), i.set(!0);
|
|
@@ -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_35f2cba0_3.3.0-RC05.js";
|
|
2
|
+
import "./face_api_0e3ce8c8_3.3.0-RC05.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 { bz 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 { bz as eo } from "./main_35f2cba0_3.3.0-RC05.js";
|
|
2
|
+
import { r as x1, l as b1, L as y1 } from "./___vite-browser-external_commonjs-proxy_9c968044_3.3.0-RC05.js";
|
|
3
|
+
import "./face_api_0e3ce8c8_3.3.0-RC05.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 { bz as Xa, bA 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_9c968044_3.3.0-RC05.js";
|
|
2
|
+
import { bz as Xa, bA as hr } from "./main_35f2cba0_3.3.0-RC05.js";
|
|
3
|
+
import "./face_api_0e3ce8c8_3.3.0-RC05.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 { Box as Rc, detectSingleFace as Fc } from "./face_api_0e3ce8c8_3.3.0-
|
|
1
|
+
import { Box as Rc, detectSingleFace as Fc } from "./face_api_0e3ce8c8_3.3.0-RC05.js";
|
|
2
2
|
function Z() {
|
|
3
3
|
}
|
|
4
4
|
function dn(A, e) {
|
|
@@ -7217,18 +7217,18 @@ async function sf(A) {
|
|
|
7217
7217
|
A && (e = A), pi("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-RC05.js")).nets.tinyFaceDetector.load(e),
|
|
7221
|
+
(await import("./face_api_0e3ce8c8_3.3.0-RC05.js")).loadFaceLandmarkModel(e)
|
|
7222
7222
|
]);
|
|
7223
7223
|
} catch {
|
|
7224
7224
|
wi("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_a05d6356_3.3.0-RC05.js")).setWasmPaths("https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm/dist/"),
|
|
7228
|
+
(await import("./index_8a9061ba_3.3.0-RC05.js")).setBackend("wasm"),
|
|
7229
|
+
(await import("./index_8a9061ba_3.3.0-RC05.js")).ready(),
|
|
7230
|
+
(await import("./face_api_0e3ce8c8_3.3.0-RC05.js")).nets.tinyFaceDetector.load(e),
|
|
7231
|
+
(await import("./face_api_0e3ce8c8_3.3.0-RC05.js")).loadFaceLandmarkModel(e)
|
|
7232
7232
|
]);
|
|
7233
7233
|
} catch {
|
|
7234
7234
|
throw wi("WASM backend failed to load, face detection will be disabled"), new Error("Face detection failed to load");
|
|
@@ -10322,13 +10322,13 @@ async function iQ(A) {
|
|
|
10322
10322
|
e = 0.2;
|
|
10323
10323
|
break;
|
|
10324
10324
|
}
|
|
10325
|
-
return new (await import("./face_api_0e3ce8c8_3.3.0-
|
|
10325
|
+
return new (await import("./face_api_0e3ce8c8_3.3.0-RC05.js")).TinyFaceDetectorOptions({
|
|
10326
10326
|
scoreThreshold: e
|
|
10327
10327
|
});
|
|
10328
10328
|
}
|
|
10329
10329
|
async function Gf(A, e, t, r = !1) {
|
|
10330
10330
|
if (t) {
|
|
10331
|
-
const l = (await import("./face_api_0e3ce8c8_3.3.0-
|
|
10331
|
+
const l = (await import("./face_api_0e3ce8c8_3.3.0-RC05.js")).draw;
|
|
10332
10332
|
l.drawDetections(e, A), new l.DrawFaceLandmarks(A.landmarks, { pointColor: "gold" }).draw(e);
|
|
10333
10333
|
}
|
|
10334
10334
|
const i = A.landmarks.positions, o = oQ(i), n = await nQ(i), c = A.detection.box, B = await aQ(c, n, e, t);
|
|
@@ -10339,17 +10339,17 @@ function oQ(A) {
|
|
|
10339
10339
|
return Ro(e, t);
|
|
10340
10340
|
}
|
|
10341
10341
|
async function nQ(A) {
|
|
10342
|
-
const e = (await import("./face_api_0e3ce8c8_3.3.0-
|
|
10342
|
+
const e = (await import("./face_api_0e3ce8c8_3.3.0-RC05.js")).Point;
|
|
10343
10343
|
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]);
|
|
10344
10344
|
t = t.div(new e(4, 4)), r = r.div(new e(4, 4));
|
|
10345
10345
|
const i = Ro(r, t);
|
|
10346
10346
|
return eB.set(i), i;
|
|
10347
10347
|
}
|
|
10348
10348
|
async function aQ(A, e, t, r) {
|
|
10349
|
-
const i = (await import("./face_api_0e3ce8c8_3.3.0-
|
|
10349
|
+
const i = (await import("./face_api_0e3ce8c8_3.3.0-RC05.js")).Point;
|
|
10350
10350
|
let o = 2.5, n = 0.8;
|
|
10351
10351
|
const c = A.topLeft.x - e, B = A.topLeft.y - o * e, l = A.bottomLeft.x - e, C = A.bottomLeft.y + n * e, w = A.bottomRight.x + e, m = A.bottomRight.y + e, D = Ro(new i(l, C), new i(c, B)), y = Ro(new i(l, C), new i(w, m)), N = t.getContext("2d");
|
|
10352
|
-
return N.beginPath(), N.strokeStyle = "gold", AB.set(new (await import("./face_api_0e3ce8c8_3.3.0-
|
|
10352
|
+
return N.beginPath(), N.strokeStyle = "gold", AB.set(new (await import("./face_api_0e3ce8c8_3.3.0-RC05.js")).Box({ x: c, y: B, width: y, height: D })), N.rect(c, B, y, D), r && N.stroke(), {
|
|
10353
10353
|
topLeftX: A.topLeft.x,
|
|
10354
10354
|
topLeftY: A.topLeft.y,
|
|
10355
10355
|
bottomRightX: A.bottomRight.x,
|
|
@@ -10422,7 +10422,7 @@ async function cQ(A, e, t) {
|
|
|
10422
10422
|
height: e.height * C
|
|
10423
10423
|
}), m = document.createElement("canvas");
|
|
10424
10424
|
m.width = w.width, m.height = w.height, m.getContext("2d")?.clearRect(0, 0, m.width, m.height), B && lQ(B, A, c);
|
|
10425
|
-
const [y] = await (await import("./face_api_0e3ce8c8_3.3.0-
|
|
10425
|
+
const [y] = await (await import("./face_api_0e3ce8c8_3.3.0-RC05.js")).extractFaces(c, [w]);
|
|
10426
10426
|
return y;
|
|
10427
10427
|
}
|
|
10428
10428
|
function lQ(A, e, t) {
|
|
@@ -23197,10 +23197,10 @@ function hB(A) {
|
|
|
23197
23197
|
return this;
|
|
23198
23198
|
}
|
|
23199
23199
|
async function pB(A, e) {
|
|
23200
|
-
return await import("./
|
|
23200
|
+
return await import("./fingersApi_22e412a3_3.3.0-RC05.js").then((t) => t.captureSingleFinger(A, e));
|
|
23201
23201
|
}
|
|
23202
23202
|
async function wB(A) {
|
|
23203
|
-
return await import("./
|
|
23203
|
+
return await import("./faceApi_a8b6f8d4_3.3.0-RC05.js").then((e) => e.captureSingleFace(A));
|
|
23204
23204
|
}
|
|
23205
23205
|
function Jd(A, e, t) {
|
|
23206
23206
|
let r, i, o, n, c, B, l, C, w, m, D, y, N, f, J, V, X, fA, nA, Y, aA, O, lA, LA, ge, Ne, Me, AA, Ue, ne, wA, le, Et, S, v;
|
|
@@ -23208,7 +23208,7 @@ function Jd(A, e, t) {
|
|
|
23208
23208
|
let { lottie_color: rA = "71 89 124" } = e, { extension_name: j = "BryWebExtension" } = e, { extension_url_chrome: CA } = e, { extension_url_mozilla: gA } = e, { min_nfiq_acceptable: uA = 3 } = e;
|
|
23209
23209
|
kE(uA);
|
|
23210
23210
|
let { show_theme_picker: iA = "true" } = e, { video_dimensions: yA } = e, { enable_minutiae: UA } = 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: kA } = e, { liveness_enable: ee = "false" } = e, { weights_path: se = "https://cdn.jsdelivr.net/npm/bry-biometric-collector@latest/dist/weights/" } = e, { evaluate_photo: XA = "true" } = e, { show_capture_button: Qe = "true" } = e, { show_unconformities: zA = "true" } = e, { video_overlay: HA = "white" } = e, { video_overlay_transparency: Le = 0 } = e, { show_config_button: Ce = "true" } = e, { show_auto_capture_button: $e = "false" } = e, { show_camera_button: be = "true" } = e, { language: _A = mI() } = e, { show_justification_field: DA = "true" } = e, { min_eye_to_eye_dist: me = 0 } = e, { show_watermark: qe = "true" } = e, { face_detection_sensitivity: EA = "permissive" } = e, { hidden: vA = "false" } = e, { liveness_blob_size: WA = "normal" } = e;
|
|
23211
|
-
zr("en", () => import("./en-us_e83efd5d_3.3.0-
|
|
23211
|
+
zr("en", () => import("./en-us_e83efd5d_3.3.0-RC05.js")), zr("pt", () => import("./pt-br_fae15356_3.3.0-RC05.js")), zr("es", () => import("./es-cl_5939150a_3.3.0-RC05.js")), Un({
|
|
23212
23212
|
fallbackLocale: "pt",
|
|
23213
23213
|
initialLocale: _A
|
|
23214
23214
|
});
|
|
@@ -23428,10 +23428,10 @@ function Jd(A, e, t) {
|
|
|
23428
23428
|
return hA(Hn, C = a, C), this;
|
|
23429
23429
|
}
|
|
23430
23430
|
async function rt() {
|
|
23431
|
-
return t(28, ue = (await import("./
|
|
23431
|
+
return t(28, ue = (await import("./FaceCollector_d7a5f6dd_3.3.0-RC05.js")).default), this;
|
|
23432
23432
|
}
|
|
23433
23433
|
async function Pt() {
|
|
23434
|
-
return t(29, nr = (await import("./
|
|
23434
|
+
return t(29, nr = (await import("./DocumentCollector_fac8e88e_3.3.0-RC05.js")).default), this;
|
|
23435
23435
|
}
|
|
23436
23436
|
function dt(a) {
|
|
23437
23437
|
ae(a);
|
|
@@ -24088,9 +24088,9 @@ class bB extends we {
|
|
|
24088
24088
|
}
|
|
24089
24089
|
}
|
|
24090
24090
|
customElements.define("biometric-collector", bB);
|
|
24091
|
-
zr("en", () => import("./en-us_e83efd5d_3.3.0-
|
|
24092
|
-
zr("pt", () => import("./pt-br_fae15356_3.3.0-
|
|
24093
|
-
zr("es", () => import("./es-cl_5939150a_3.3.0-
|
|
24091
|
+
zr("en", () => import("./en-us_e83efd5d_3.3.0-RC05.js"));
|
|
24092
|
+
zr("pt", () => import("./pt-br_fae15356_3.3.0-RC05.js"));
|
|
24093
|
+
zr("es", () => import("./es-cl_5939150a_3.3.0-RC05.js"));
|
|
24094
24094
|
Un({
|
|
24095
24095
|
fallbackLocale: "pt",
|
|
24096
24096
|
initialLocale: mI()
|
|
@@ -24190,14 +24190,14 @@ export {
|
|
|
24190
24190
|
NI as aY,
|
|
24191
24191
|
FI as aZ,
|
|
24192
24192
|
Kf as a_,
|
|
24193
|
-
|
|
24194
|
-
|
|
24195
|
-
|
|
24196
|
-
|
|
24197
|
-
|
|
24198
|
-
|
|
24199
|
-
|
|
24200
|
-
|
|
24193
|
+
Mn as aa,
|
|
24194
|
+
Fg as ab,
|
|
24195
|
+
Og as ac,
|
|
24196
|
+
po as ad,
|
|
24197
|
+
ff as ae,
|
|
24198
|
+
Rg as af,
|
|
24199
|
+
vi as ag,
|
|
24200
|
+
kg as ah,
|
|
24201
24201
|
fE as ai,
|
|
24202
24202
|
Sg as aj,
|
|
24203
24203
|
eB as ak,
|
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-RC05",
|
|
6
6
|
"main": "dist/bry-biometric-collector-main.js",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"license": "UNLICENSED",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|