bry-biometric-collector 2.4.1 → 2.5.0

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { bm as t } from "./main_a11369bb_2.4.1.js";
2
- import "./face_api_0e3ce8c8_2.4.1.js";
1
+ import { bm as t } from "./main_c6f26308_2.5.0.js";
2
+ import "./face_api_0e3ce8c8_2.5.0.js";
3
3
  export {
4
4
  t as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { bj as eo } from "./main_a11369bb_2.4.1.js";
2
- import { r as x1, l as b1, L as y1 } from "./___vite-browser-external_commonjs-proxy_ed55ad19_2.4.1.js";
3
- import "./face_api_0e3ce8c8_2.4.1.js";
1
+ import { bj as eo } from "./main_c6f26308_2.5.0.js";
2
+ import { r as x1, l as b1, L as y1 } from "./___vite-browser-external_commonjs-proxy_00458647_2.5.0.js";
3
+ import "./face_api_0e3ce8c8_2.5.0.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-proxy_ed55ad19_2.4.1.js";
2
- import { bj as Xa, bk as hr } from "./main_a11369bb_2.4.1.js";
3
- import "./face_api_0e3ce8c8_2.4.1.js";
1
+ import { l as vu, L as Au, r as se } from "./___vite-browser-external_commonjs-proxy_00458647_2.5.0.js";
2
+ import { bj as Xa, bk as hr } from "./main_c6f26308_2.5.0.js";
3
+ import "./face_api_0e3ce8c8_2.5.0.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 dc } from "./face_api_0e3ce8c8_2.4.1.js";
1
+ import { detectSingleFace as dc } from "./face_api_0e3ce8c8_2.5.0.js";
2
2
  function W() {
3
3
  }
4
4
  function ln(A, e) {
@@ -7200,18 +7200,18 @@ async function Xd(A) {
7200
7200
  A && (e = A), console.log("requesting weights from", e);
7201
7201
  try {
7202
7202
  await Promise.all([
7203
- (await import("./face_api_0e3ce8c8_2.4.1.js")).nets.tinyFaceDetector.load(e),
7204
- (await import("./face_api_0e3ce8c8_2.4.1.js")).loadFaceLandmarkModel(e)
7203
+ (await import("./face_api_0e3ce8c8_2.5.0.js")).nets.tinyFaceDetector.load(e),
7204
+ (await import("./face_api_0e3ce8c8_2.5.0.js")).loadFaceLandmarkModel(e)
7205
7205
  ]);
7206
7206
  } catch {
7207
7207
  console.warn("Your browser doesn't support WebGL! Trying to use WASM backend now...");
7208
7208
  try {
7209
7209
  await Promise.all([
7210
- (await import("./index_554d13bc_2.4.1.js")).setWasmPaths("https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm/dist/"),
7211
- (await import("./index_2724a1c0_2.4.1.js")).setBackend("wasm"),
7212
- (await import("./index_2724a1c0_2.4.1.js")).ready(),
7213
- (await import("./face_api_0e3ce8c8_2.4.1.js")).nets.tinyFaceDetector.load(e),
7214
- (await import("./face_api_0e3ce8c8_2.4.1.js")).loadFaceLandmarkModel(e)
7210
+ (await import("./index_fd15b978_2.5.0.js")).setWasmPaths("https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm/dist/"),
7211
+ (await import("./index_be00af4f_2.5.0.js")).setBackend("wasm"),
7212
+ (await import("./index_be00af4f_2.5.0.js")).ready(),
7213
+ (await import("./face_api_0e3ce8c8_2.5.0.js")).nets.tinyFaceDetector.load(e),
7214
+ (await import("./face_api_0e3ce8c8_2.5.0.js")).loadFaceLandmarkModel(e)
7215
7215
  ]);
7216
7216
  } catch {
7217
7217
  throw console.warn("WASM backend failed to load, face detection will be disabled"), new Error("Face detection failed to load");
@@ -10213,13 +10213,13 @@ const yi = Y(!0), VE = Y(), xg = Y(!1), XI = Y(0), XE = Y({
10213
10213
  height: 0
10214
10214
  });
10215
10215
  async function ZE() {
10216
- return new (await import("./face_api_0e3ce8c8_2.4.1.js")).TinyFaceDetectorOptions({
10216
+ return new (await import("./face_api_0e3ce8c8_2.5.0.js")).TinyFaceDetectorOptions({
10217
10217
  scoreThreshold: 0.6
10218
10218
  });
10219
10219
  }
10220
10220
  async function Bf(A, e, t, r = !1) {
10221
10221
  if (t) {
10222
- const C = (await import("./face_api_0e3ce8c8_2.4.1.js")).draw;
10222
+ const C = (await import("./face_api_0e3ce8c8_2.5.0.js")).draw;
10223
10223
  C.drawDetections(e, A), new C.DrawFaceLandmarks(A.landmarks, { pointColor: "gold" }).draw(e);
10224
10224
  }
10225
10225
  const o = A.landmarks.positions, i = WE(o), a = await YE(o), B = A.detection.box, I = await jE(B, a, e, t);
@@ -10230,17 +10230,17 @@ function WE(A) {
10230
10230
  return Di(e, t);
10231
10231
  }
10232
10232
  async function YE(A) {
10233
- const e = (await import("./face_api_0e3ce8c8_2.4.1.js")).Point;
10233
+ const e = (await import("./face_api_0e3ce8c8_2.5.0.js")).Point;
10234
10234
  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]);
10235
10235
  t = t.div(new e(4, 4)), r = r.div(new e(4, 4));
10236
10236
  const o = Di(r, t);
10237
10237
  return XI.set(o), o;
10238
10238
  }
10239
10239
  async function jE(A, e, t, r) {
10240
- const o = (await import("./face_api_0e3ce8c8_2.4.1.js")).Point;
10240
+ const o = (await import("./face_api_0e3ce8c8_2.5.0.js")).Point;
10241
10241
  let i = 2.5, a = 0.8;
10242
10242
  const B = A.topLeft.x - e, I = A.topLeft.y - i * e, C = A.bottomLeft.x - e, l = A.bottomLeft.y + a * e, p = A.bottomRight.x + e, b = A.bottomRight.y + e, y = Di(new o(C, l), new o(B, I)), D = Di(new o(C, l), new o(p, b)), U = t.getContext("2d");
10243
- return U.beginPath(), U.strokeStyle = "gold", VE.set(new (await import("./face_api_0e3ce8c8_2.4.1.js")).Box({ x: B, y: I, width: D, height: y })), U.rect(B, I, D, y), r && U.stroke(), {
10243
+ return U.beginPath(), U.strokeStyle = "gold", VE.set(new (await import("./face_api_0e3ce8c8_2.5.0.js")).Box({ x: B, y: I, width: D, height: y })), U.rect(B, I, D, y), r && U.stroke(), {
10244
10244
  topLeftX: A.topLeft.x,
10245
10245
  topLeftY: A.topLeft.y,
10246
10246
  bottomRightX: A.bottomRight.x,
@@ -22936,7 +22936,7 @@ function sB(A) {
22936
22936
  return this;
22937
22937
  }
22938
22938
  async function IB(A, e) {
22939
- return await import("./fingersApi_ad7905b1_2.4.1.js").then((t) => t.captureSingleFinger(A, e));
22939
+ return await import("./fingersApi_83f12fc4_2.5.0.js").then((t) => t.captureSingleFinger(A, e));
22940
22940
  }
22941
22941
  function bd(A, e, t) {
22942
22942
  let r, o, i, a, B, I, C, l, p, b, y, D, U, d, P, X, z, fA, aA, j, gA, T, lA, GA, Ie, Ke, Pe, eA, Me, se, mA, Qe, lt, S, k;
@@ -22944,7 +22944,7 @@ function bd(A, e, t) {
22944
22944
  let { lottie_color: rA = "71 89 124" } = e, { extension_name: _ = "BryWebExtension" } = e, { extension_url_chrome: EA } = e, { extension_url_mozilla: sA } = e, { min_nfiq_acceptable: dA = 3 } = e;
22945
22945
  EE(dA);
22946
22946
  let { show_theme_picker: oA = "true" } = e, { video_dimensions: DA } = e, { enable_minutiae: LA } = e, { collector_select: RA = "BOTH" } = e, { import_lottie: qA = "true" } = e, { hide_tabs: HA = "false" } = e, { import_extension_script: re = "false" } = e, { extension_url_script: SA } = e, { liveness_enable: oe = "false" } = e, { weights_path: Be = "https://unpkg.com/bry-biometric-collector@latest/dist/weights/" } = e, { evaluate_photo: ZA = "true" } = e, { show_capture_button: fe = "true" } = e, { show_unconformities: WA = "true" } = e, { video_overlay: TA = "white" } = e, { video_overlay_transparency: xe = 0 } = e, { show_config_button: Ee = "true" } = e, { show_auto_capture_button: rt = "false" } = e, { show_camera_button: De = "true" } = e, { language: ee = dI() } = e, { show_justification_field: vA = "true" } = e, { min_eye_to_eye_dist: ve = 0 } = e;
22947
- Xr("en", () => import("./en-us_99b30d39_2.4.1.js")), Xr("pt", () => import("./pt-br_d5ca6103_2.4.1.js")), Xr("es", () => import("./es-cl_cfa50670_2.4.1.js")), Sn({
22947
+ Xr("en", () => import("./en-us_99b30d39_2.5.0.js")), Xr("pt", () => import("./pt-br_d5ca6103_2.5.0.js")), Xr("es", () => import("./es-cl_cfa50670_2.5.0.js")), Sn({
22948
22948
  fallbackLocale: "pt",
22949
22949
  initialLocale: ee
22950
22950
  });
@@ -23164,10 +23164,10 @@ function bd(A, e, t) {
23164
23164
  return hA(Mn, l = v, l), this;
23165
23165
  }
23166
23166
  async function Lt() {
23167
- return t(24, kA = (await import("./FaceCollector_76033700_2.4.1.js")).default), this;
23167
+ return t(24, kA = (await import("./FaceCollector_65f36037_2.5.0.js")).default), this;
23168
23168
  }
23169
23169
  async function jt() {
23170
- return t(25, YA = (await import("./DocumentCollector_1945fe25_2.4.1.js")).default), this;
23170
+ return t(25, YA = (await import("./DocumentCollector_a64c974d_2.5.0.js")).default), this;
23171
23171
  }
23172
23172
  function Sr(v) {
23173
23173
  Te(v);
@@ -23782,9 +23782,9 @@ class BB extends ye {
23782
23782
  }
23783
23783
  }
23784
23784
  customElements.define("biometric-collector", BB);
23785
- Xr("en", () => import("./en-us_99b30d39_2.4.1.js"));
23786
- Xr("pt", () => import("./pt-br_d5ca6103_2.4.1.js"));
23787
- Xr("es", () => import("./es-cl_cfa50670_2.4.1.js"));
23785
+ Xr("en", () => import("./en-us_99b30d39_2.5.0.js"));
23786
+ Xr("pt", () => import("./pt-br_d5ca6103_2.5.0.js"));
23787
+ Xr("es", () => import("./es-cl_cfa50670_2.5.0.js"));
23788
23788
  Sn({
23789
23789
  fallbackLocale: "pt",
23790
23790
  initialLocale: dI()
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.4.1",
5
+ "version": "2.5.0",
6
6
  "main": "dist/bry-biometric-collector-main.js",
7
7
  "type": "module",
8
8
  "license": "UNLICENSED",
@@ -73,7 +73,7 @@
73
73
  "vite": "^4.4.9",
74
74
  "vite-plugin-css-injected-by-js": "^2.4.0",
75
75
  "vite-plugin-static-copy": "^0.17.0",
76
- "liveness-lib-dev": "file:idrnd/idlive-face-capture-web-development-1.7.0.tgz",
77
- "liveness-lib-prod": "file:idrnd/idlive-face-capture-web-production-1.7.0.tgz"
76
+ "liveness-lib-dev": "file:idrnd/idlive-face-capture-web-development-2.1.0.tgz",
77
+ "liveness-lib-prod": "file:idrnd/idlive-face-capture-web-production-2.1.0.tgz"
78
78
  }
79
79
  }