bry-biometric-collector 2.2.2 → 2.2.3
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/{CameraBtn_6f8a02ac_2.2.2.js → CameraBtn_96f6ebaf_2.2.3.js} +1 -1
- package/dist/{DocumentCollector_7e26745c_2.2.2.js → DocumentCollector_33f88502_2.2.3.js} +3 -3
- package/dist/FaceCollector_14d69b3d_2.2.3.js +1636 -0
- package/dist/bry-biometric-collector-main.js +1 -1
- package/dist/{fingersApi_4f72b6e0_2.2.2.js → fingersApi_bb08f771_2.2.3.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{main_3ec3e90c_2.2.2.js → main_0b5de60d_2.2.3.js} +13 -13
- package/package.json +1 -1
- package/dist/FaceCollector_88417927_2.2.2.js +0 -1641
- /package/dist/{en-us_46223587_2.2.2.js → en-us_46223587_2.2.3.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_2.2.2.js → face_api_0e3ce8c8_2.2.3.js} +0 -0
- /package/dist/{index-no-detector_acb82d83_2.2.2.js → index-no-detector_acb82d83_2.2.3.js} +0 -0
- /package/dist/{pt-br_7b1f22cd_2.2.2.js → pt-br_7b1f22cd_2.2.3.js} +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import { u as D, $ as C, n as y, g, i as b, a as M, s as l, b as h, c as U, F, d as x, e as c, v, f as P, A as B, h as S, j as E, k as W, l as k, m as X, o as w, p as $, q as G } from "./
|
1
|
+
import { u as D, $ as C, n as y, g, i as b, a as M, s as l, b as h, c as U, F, d as x, e as c, v, f as P, A as B, h as S, j as E, k as W, l as k, m as X, o as w, p as $, q as G } from "./main_0b5de60d_2.2.3.js";
|
2
2
|
const d = D(C);
|
3
3
|
var V = /* @__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))(V || {});
|
4
4
|
class s extends Error {
|
package/dist/index.js
CHANGED
@@ -7195,8 +7195,8 @@ function Kd(A, e, t = !1) {
|
|
7195
7195
|
async function xd(A) {
|
7196
7196
|
let e = new URL("/weights", document.baseURI).toString();
|
7197
7197
|
A && (e = A), console.log("requesting weights from", e), await Promise.all([
|
7198
|
-
(await import("./face_api_0e3ce8c8_2.2.
|
7199
|
-
(await import("./face_api_0e3ce8c8_2.2.
|
7198
|
+
(await import("./face_api_0e3ce8c8_2.2.3.js")).nets.tinyFaceDetector.load(e),
|
7199
|
+
(await import("./face_api_0e3ce8c8_2.2.3.js")).loadFaceLandmarkModel(e)
|
7200
7200
|
]);
|
7201
7201
|
}
|
7202
7202
|
function Qr() {
|
@@ -10162,13 +10162,13 @@ const xn = _(!0), WE = _(), YE = _(!1), jE = _({
|
|
10162
10162
|
height: 0
|
10163
10163
|
});
|
10164
10164
|
async function jd() {
|
10165
|
-
return new (await import("./face_api_0e3ce8c8_2.2.
|
10165
|
+
return new (await import("./face_api_0e3ce8c8_2.2.3.js")).TinyFaceDetectorOptions({
|
10166
10166
|
scoreThreshold: 0.6
|
10167
10167
|
});
|
10168
10168
|
}
|
10169
10169
|
async function _d(A, e, t, r = !1) {
|
10170
10170
|
if (t) {
|
10171
|
-
const C = (await import("./face_api_0e3ce8c8_2.2.
|
10171
|
+
const C = (await import("./face_api_0e3ce8c8_2.2.3.js")).draw;
|
10172
10172
|
C.drawDetections(e, A), new C.DrawFaceLandmarks(A.landmarks, { pointColor: "gold" }).draw(e);
|
10173
10173
|
}
|
10174
10174
|
const o = A.landmarks.positions, i = _E(o), n = await $E(o), B = A.detection.box, I = await A0(B, n, e, t);
|
@@ -10179,16 +10179,16 @@ function _E(A) {
|
|
10179
10179
|
return pi(e, t);
|
10180
10180
|
}
|
10181
10181
|
async function $E(A) {
|
10182
|
-
const e = (await import("./face_api_0e3ce8c8_2.2.
|
10182
|
+
const e = (await import("./face_api_0e3ce8c8_2.2.3.js")).Point;
|
10183
10183
|
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]);
|
10184
10184
|
return t = t.div(new e(4, 4)), r = r.div(new e(4, 4)), pi(r, t);
|
10185
10185
|
}
|
10186
10186
|
async function A0(A, e, t, r) {
|
10187
|
-
const o = (await import("./face_api_0e3ce8c8_2.2.
|
10187
|
+
const o = (await import("./face_api_0e3ce8c8_2.2.3.js")).Point;
|
10188
10188
|
let i = 2.5, n = 0.8;
|
10189
10189
|
ta() && (i = 0.8, n = 0.7);
|
10190
10190
|
const B = A.topLeft.x - e * 0.3, I = A.topLeft.y - i * (e * 0.5), C = A.bottomLeft.x - e * 0.3, l = A.bottomLeft.y + n * (e * 0.5), p = A.bottomRight.x + e * 0.3, w = A.bottomRight.y + e * 0.5, D = pi(new o(C, l), new o(B, I)), y = pi(new o(C, l), new o(p, w)), U = t.getContext("2d");
|
10191
|
-
return U.beginPath(), U.strokeStyle = "gold", WE.set(new (await import("./face_api_0e3ce8c8_2.2.
|
10191
|
+
return U.beginPath(), U.strokeStyle = "gold", WE.set(new (await import("./face_api_0e3ce8c8_2.2.3.js")).Box({ x: B, y: I, width: y, height: D })), U.rect(B, I, y, D), r && U.stroke(), {
|
10192
10192
|
topLeftX: B,
|
10193
10193
|
topLeftY: I,
|
10194
10194
|
bottomRightX: p,
|
@@ -22780,7 +22780,7 @@ function jI(A) {
|
|
22780
22780
|
return this;
|
22781
22781
|
}
|
22782
22782
|
async function _I(A, e) {
|
22783
|
-
return await import("./
|
22783
|
+
return await import("./fingersApi_bb08f771_2.2.3.js").then((t) => t.captureSingleFinger(A, e));
|
22784
22784
|
}
|
22785
22785
|
function vd(A, e, t) {
|
22786
22786
|
let r, o, i, n, B, I, C, l, p, w, D, y, U, f, P, X, z, uA, iA, Y, aA, T, cA, GA, Ce, Ue, Je, AA, fe, Ie, wA, Le;
|
@@ -22788,7 +22788,7 @@ function vd(A, e, t) {
|
|
22788
22788
|
let { lottie_color: dt = "71 89 124" } = e, { extension_name: k = "BryWebExtension" } = e, { extension_url_chrome: S } = e, { extension_url_mozilla: oA } = e, { min_nfiq_acceptable: tA = 3 } = e;
|
22789
22789
|
hE(tA);
|
22790
22790
|
let { show_theme_picker: lA = "true" } = e, { video_dimensions: gA } = e, { enable_minutiae: dA } = e, { collector_select: $ = "BOTH" } = e, { import_lottie: DA = "true" } = e, { hide_tabs: LA = "false" } = e, { import_extension_script: PA = "false" } = e, { extension_url_script: MA } = e, { liveness_enable: JA = "false" } = e, { weights_path: re } = e, { evaluate_photo: RA = "true" } = e, { show_capture_button: Be = "true" } = e, { show_unconformities: le = "true" } = e, { video_filter: jA = "white" } = e;
|
22791
|
-
Bi("en", () => import("./en-us_46223587_2.2.
|
22791
|
+
Bi("en", () => import("./en-us_46223587_2.2.3.js")), Bi("pt", () => import("./pt-br_7b1f22cd_2.2.3.js")), gI({
|
22792
22792
|
fallbackLocale: "en",
|
22793
22793
|
initialLocale: "pt"
|
22794
22794
|
});
|
@@ -22955,10 +22955,10 @@ function vd(A, e, t) {
|
|
22955
22955
|
return pA(Fn, l = v, l), this;
|
22956
22956
|
}
|
22957
22957
|
async function Rt() {
|
22958
|
-
return t(18, VA = (await import("./
|
22958
|
+
return t(18, VA = (await import("./FaceCollector_14d69b3d_2.2.3.js")).default), this;
|
22959
22959
|
}
|
22960
22960
|
async function $t() {
|
22961
|
-
return t(19, Ge = (await import("./
|
22961
|
+
return t(19, Ge = (await import("./DocumentCollector_33f88502_2.2.3.js")).default), this;
|
22962
22962
|
}
|
22963
22963
|
function He(v) {
|
22964
22964
|
Tt(v);
|
@@ -23505,8 +23505,8 @@ class $I extends ye {
|
|
23505
23505
|
}
|
23506
23506
|
}
|
23507
23507
|
customElements.define("biometric-collector", $I);
|
23508
|
-
Bi("en", () => import("./en-us_46223587_2.2.
|
23509
|
-
Bi("pt", () => import("./pt-br_7b1f22cd_2.2.
|
23508
|
+
Bi("en", () => import("./en-us_46223587_2.2.3.js"));
|
23509
|
+
Bi("pt", () => import("./pt-br_7b1f22cd_2.2.3.js"));
|
23510
23510
|
gI({
|
23511
23511
|
fallbackLocale: "en",
|
23512
23512
|
initialLocale: xQ()
|
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": "2.2.
|
5
|
+
"version": "2.2.3",
|
6
6
|
"main": "dist/bry-biometric-collector-main.js",
|
7
7
|
"type": "module",
|
8
8
|
"license": "UNLICENSED",
|