@tsocial/tvweb-sdk.nbcci 0.0.0-beta.20251215-170414 → 0.0.0-beta.20260102-113929
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/build/tvweb-sdk.nbcci.cjs.min.js +720 -720
- package/build/tvweb-sdk.nbcci.esm.min.js +720 -720
- package/build/tvweb-sdk.nbcci.standalone.js +578 -555
- package/build/tvweb-sdk.nbcci.standalone.min.js +720 -720
- package/build/types/index.d.ts +2 -0
- package/package.json +5 -5
|
@@ -33783,7 +33783,7 @@
|
|
|
33783
33783
|
}, nS$1;
|
|
33784
33784
|
}();
|
|
33785
33785
|
function nB$1() {
|
|
33786
|
-
return "0.0.0-beta.
|
|
33786
|
+
return "0.0.0-beta.20260102-113929";
|
|
33787
33787
|
}
|
|
33788
33788
|
function nI$1() {
|
|
33789
33789
|
return {
|
|
@@ -41259,53 +41259,52 @@
|
|
|
41259
41259
|
}, uz;
|
|
41260
41260
|
}(), uG);
|
|
41261
41261
|
}();
|
|
41262
|
-
|
|
41263
|
-
|
|
41264
|
-
|
|
41265
|
-
|
|
41266
|
-
|
|
41262
|
+
let dm = d_, dg = d_, dy = db();
|
|
41263
|
+
for(;;)try {
|
|
41264
|
+
if (-parseInt(dg(345)) / 1 + parseInt(dg(342)) / 2 + -parseInt(dg(337)) / 3 + parseInt(dg(351)) / 4 * (-parseInt(dg(352)) / 5) + -parseInt(dg(344)) / 6 + parseInt(dg(348)) / 7 * (-parseInt(dg(340)) / 8) + parseInt(dg(357)) / 9 * (parseInt(dg(354)) / 10) === 618403) break;
|
|
41265
|
+
dy.push(dy.shift());
|
|
41266
|
+
} catch (e) {
|
|
41267
|
+
dy.push(dy.shift());
|
|
41267
41268
|
}
|
|
41268
|
-
|
|
41269
|
-
function dy() {
|
|
41269
|
+
function db() {
|
|
41270
41270
|
let e = [
|
|
41271
|
+
"189hhFXAD",
|
|
41271
41272
|
"0301070342",
|
|
41273
|
+
"44P0rKKsZK",
|
|
41274
|
+
"24rqmDDM",
|
|
41275
|
+
"1002995OcTyQq",
|
|
41276
|
+
"ytJdcsPxrD",
|
|
41277
|
+
"11990OPaSvM",
|
|
41278
|
+
"cDQgAE9h6Z",
|
|
41272
41279
|
"072a8648ce",
|
|
41273
|
-
"
|
|
41274
|
-
"+faHkP3QC3",
|
|
41275
|
-
"D9EKOWS+U4",
|
|
41276
|
-
"KA==",
|
|
41280
|
+
"37629rCUIjn",
|
|
41277
41281
|
"000",
|
|
41278
|
-
"KoZIzj0DAQ",
|
|
41279
|
-
"ssRdXLZEX8",
|
|
41280
|
-
"78pJsmjA",
|
|
41281
|
-
"23755112qixOGK",
|
|
41282
|
-
"ytJdcsPxrD",
|
|
41283
41282
|
"MfPrcYTM70",
|
|
41284
|
-
"
|
|
41285
|
-
"
|
|
41286
|
-
"
|
|
41287
|
-
"cDQgAE9h6Z",
|
|
41288
|
-
"4218291nxdvtB",
|
|
41289
|
-
"2729172royNkn",
|
|
41290
|
-
"653601YIYffL",
|
|
41291
|
-
"2315541rITdMg",
|
|
41283
|
+
"KA==",
|
|
41284
|
+
"3577959zMwuqo",
|
|
41285
|
+
"ZIzj0CAQYI",
|
|
41292
41286
|
"2a8648ce3d",
|
|
41293
|
-
"
|
|
41294
|
-
"
|
|
41295
|
-
"
|
|
41287
|
+
"362952WZsXSr",
|
|
41288
|
+
"DepBO8t60S",
|
|
41289
|
+
"1669398mnxwun",
|
|
41290
|
+
"3d02010608",
|
|
41291
|
+
"2547624dmLhJV",
|
|
41292
|
+
"1183501ukhWAU",
|
|
41293
|
+
"ssRdXLZEX8",
|
|
41294
|
+
"+faHkP3QC3"
|
|
41296
41295
|
];
|
|
41297
|
-
return (
|
|
41296
|
+
return (db = function() {
|
|
41298
41297
|
return e;
|
|
41299
41298
|
})();
|
|
41300
41299
|
}
|
|
41301
|
-
let
|
|
41302
|
-
|
|
41303
|
-
|
|
41304
|
-
|
|
41305
|
-
|
|
41306
|
-
|
|
41300
|
+
let dv = "3059301306" + dm(356) + dm(343) + dm(339) + dm(349) + dm(358);
|
|
41301
|
+
function d_(e, t) {
|
|
41302
|
+
let r = db();
|
|
41303
|
+
return (d_ = function(e, t) {
|
|
41304
|
+
return r[e -= 335];
|
|
41305
|
+
})(e, t);
|
|
41307
41306
|
}
|
|
41308
|
-
let
|
|
41307
|
+
let dx = "MFkwEwYHKo" + dm(338) + "KoZIzj0DAQ" + dm(355) + dm(341) + dm(353) + dm(347) + dm(350) + "Mjci1ul8mmD9EKOWS+U4" + dm(335) + dm(346) + dm(336);
|
|
41309
41308
|
async function dC(e) {
|
|
41310
41309
|
let t = new TextEncoder().encode(e);
|
|
41311
41310
|
return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256", t))).map((e)=>e.toString(16).padStart(2, "0")).join("");
|
|
@@ -41410,7 +41409,7 @@
|
|
|
41410
41409
|
isValid: !1,
|
|
41411
41410
|
error: i0$1.invalid_license
|
|
41412
41411
|
};
|
|
41413
|
-
let { mode: a, license: o, signature: s } = dS(e), c = dw(i4$1(o)), l = (r = t || dx, n = i4$1(r).replace(
|
|
41412
|
+
let { mode: a, license: o, signature: s } = dS(e), c = dw(i4$1(o)), l = (r = t || dx, n = i4$1(r).replace(dv, ""), i = new dp.ec("p256").keyFromPublic(n, "hex"), {
|
|
41414
41413
|
verifySignature: async (e, t)=>{
|
|
41415
41414
|
try {
|
|
41416
41415
|
let r = await dC(e), n = i4$1(t);
|
|
@@ -45324,7 +45323,7 @@
|
|
|
45324
45323
|
return this.getKey().getPublicKey();
|
|
45325
45324
|
}, e.prototype.getPublicKeyB64 = function() {
|
|
45326
45325
|
return this.getKey().getPublicBaseKeyB64();
|
|
45327
|
-
}, e.version = "5.
|
|
45326
|
+
}, e.version = "5.34.0", e;
|
|
45328
45327
|
}();
|
|
45329
45328
|
let hO = [
|
|
45330
45329
|
"-",
|
|
@@ -53096,7 +53095,7 @@
|
|
|
53096
53095
|
});
|
|
53097
53096
|
};
|
|
53098
53097
|
|
|
53099
|
-
var Z, K, Y, J, ee, et, er, eo, en, ei, ea, es, ec, el, ed, eu,
|
|
53098
|
+
var Z, K, Y, J, ee, et, er, eo, en, ei, ea, es, ec, el, ed, eu, ep, ef, eh, em, eg, eb, ev, ew, ek, ey, eC, eB, e_, ex, eP, eS, eE, eT, eD, e$, ej, eI, eO, eM, eA, eR, eL, eF, eN, ez, eV, eW, eU, eq, eQ, eX, eH, eG, eZ, eK, eY, eJ, e3, e2, e5, e0, e1, e8, e9, e4, e7, e6, te, tt, tr, to, tn, ti, ta, ts, tc, tl, td, tu, tp, tf, th, tm, tg, tb, tv, tw, tk, ty, tC, tB, t_, tx, tP, tS, tE, tT, tD, t$, tj, tI, tO, tM, tA, tR, tL, tF, tN, tz, tV, tW, tU, tq, tQ, tX, tH, tG, tZ, tK, tY, tJ, t3, t2, t5, t0, t1, t8, t9, t4, t7, t6, re, rt, rr, ro, rn, ri, ra, rs, rc, rl, rd, ru, rp, rf, rh, rm, rg, rb, rv, rw, rk, ry, rC, rB, r_, rx, rP, rS, rE, rT, rD, r$, rj, rI, rO, rM, rA, rR, rL, rF, rN, rz, rV, rW, rU, rq, rQ, rX, rH, rG, rZ, rK, rY, rJ, r3, r2, r5, r0, r1, r8, r9, r4, r7, r6, oe, ot, or, oo, on, oi, oa, os, oc, ol, od, ou, op, of, oh, om, og, ob, ov, ow, ok, oy, oC, oB, o_, ox, oP, oS, oE, oT, oD, o$, oj, oI, oO, oM, oA, oR, oL, oF, oN, oz, oV, oW, oq, oQ = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
|
|
53100
53099
|
function oX(t) {
|
|
53101
53100
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
53102
53101
|
}
|
|
@@ -53175,7 +53174,7 @@
|
|
|
53175
53174
|
};
|
|
53176
53175
|
}
|
|
53177
53176
|
function o5() {
|
|
53178
|
-
return
|
|
53177
|
+
return ef ? ep : (ef = 1, ep = function(t) {
|
|
53179
53178
|
return null != t && "object" == typeof t;
|
|
53180
53179
|
});
|
|
53181
53180
|
}
|
|
@@ -53407,10 +53406,10 @@
|
|
|
53407
53406
|
return t(this, r).get(r);
|
|
53408
53407
|
};
|
|
53409
53408
|
}(), n = function() {
|
|
53410
|
-
if (
|
|
53411
|
-
|
|
53409
|
+
if (tf) return tp;
|
|
53410
|
+
tf = 1;
|
|
53412
53411
|
var t = nr();
|
|
53413
|
-
return
|
|
53412
|
+
return tp = function(r) {
|
|
53414
53413
|
return t(this, r).has(r);
|
|
53415
53414
|
};
|
|
53416
53415
|
}(), i = function() {
|
|
@@ -53553,16 +53552,16 @@
|
|
|
53553
53552
|
function nc(t, r) {
|
|
53554
53553
|
return t.replace(RegExp("(^|\\s)" + r + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
53555
53554
|
}
|
|
53556
|
-
var nl = !1, nd = /*#__PURE__*/ React.createContext(null), nu = "unmounted",
|
|
53555
|
+
var nl = !1, nd = /*#__PURE__*/ React.createContext(null), nu = "unmounted", np = "exited", nf = "entering", nh = "entered", nm = "exiting", ng = function(r) {
|
|
53557
53556
|
function o(t, o) {
|
|
53558
53557
|
var n, i = r.call(this, t, o) || this, a = o && !o.isMounting ? t.enter : t.appear;
|
|
53559
|
-
return i.appearStatus = null, t.in ? a ? (n =
|
|
53558
|
+
return i.appearStatus = null, t.in ? a ? (n = np, i.appearStatus = nf) : n = nh : n = t.unmountOnExit || t.mountOnEnter ? nu : np, i.state = {
|
|
53560
53559
|
status: n
|
|
53561
53560
|
}, i.nextCallback = null, i;
|
|
53562
53561
|
}
|
|
53563
53562
|
ns(o, r), o.getDerivedStateFromProps = function(t, r) {
|
|
53564
53563
|
return t.in && r.status === nu ? {
|
|
53565
|
-
status:
|
|
53564
|
+
status: np
|
|
53566
53565
|
} : null;
|
|
53567
53566
|
};
|
|
53568
53567
|
var n = o.prototype;
|
|
@@ -53572,7 +53571,7 @@
|
|
|
53572
53571
|
var r = null;
|
|
53573
53572
|
if (t !== this.props) {
|
|
53574
53573
|
var o = this.state.status;
|
|
53575
|
-
this.props.in ? o !==
|
|
53574
|
+
this.props.in ? o !== nf && o !== nh && (r = nf) : (o === nf || o === nh) && (r = nm);
|
|
53576
53575
|
}
|
|
53577
53576
|
this.updateStatus(!1, r);
|
|
53578
53577
|
}, n.componentWillUnmount = function() {
|
|
@@ -53585,7 +53584,7 @@
|
|
|
53585
53584
|
appear: o
|
|
53586
53585
|
};
|
|
53587
53586
|
}, n.updateStatus = function(t, r) {
|
|
53588
|
-
void 0 === t && (t = !1), null !== r ? (this.cancelNextCallback(), r ===
|
|
53587
|
+
void 0 === t && (t = !1), null !== r ? (this.cancelNextCallback(), r === nf ? this.performEnter(t) : this.performExit()) : this.props.unmountOnExit && this.state.status === np && this.setState({
|
|
53589
53588
|
status: nu
|
|
53590
53589
|
});
|
|
53591
53590
|
}, n.performEnter = function(t) {
|
|
@@ -53596,7 +53595,7 @@
|
|
|
53596
53595
|
n
|
|
53597
53596
|
], a = i[0], s = i[1], c = this.getTimeouts(), l = n ? c.appear : c.enter;
|
|
53598
53597
|
(t || o) && !nl ? (this.props.onEnter(a, s), this.safeSetState({
|
|
53599
|
-
status:
|
|
53598
|
+
status: nf
|
|
53600
53599
|
}, function() {
|
|
53601
53600
|
r.props.onEntering(a, s), r.onTransitionEnd(l, function() {
|
|
53602
53601
|
r.safeSetState({
|
|
@@ -53613,7 +53612,7 @@
|
|
|
53613
53612
|
}, n.performExit = function() {
|
|
53614
53613
|
var t = this, r = this.props.exit, o = this.getTimeouts(), n = this.props.nodeRef ? void 0 : ReactDOM.findDOMNode(this);
|
|
53615
53614
|
!r || nl ? this.safeSetState({
|
|
53616
|
-
status:
|
|
53615
|
+
status: np
|
|
53617
53616
|
}, function() {
|
|
53618
53617
|
t.props.onExited(n);
|
|
53619
53618
|
}) : (this.props.onExit(n), this.safeSetState({
|
|
@@ -53621,7 +53620,7 @@
|
|
|
53621
53620
|
}, function() {
|
|
53622
53621
|
t.props.onExiting(n), t.onTransitionEnd(o.exit, function() {
|
|
53623
53622
|
t.safeSetState({
|
|
53624
|
-
status:
|
|
53623
|
+
status: np
|
|
53625
53624
|
}, function() {
|
|
53626
53625
|
t.props.onExited(n);
|
|
53627
53626
|
});
|
|
@@ -53694,7 +53693,7 @@
|
|
|
53694
53693
|
onExit: nb,
|
|
53695
53694
|
onExiting: nb,
|
|
53696
53695
|
onExited: nb
|
|
53697
|
-
}, ng.UNMOUNTED = nu, ng.EXITED =
|
|
53696
|
+
}, ng.UNMOUNTED = nu, ng.EXITED = np, ng.ENTERING = nf, ng.ENTERED = nh, ng.EXITING = nm;
|
|
53698
53697
|
var nv = function(t, r) {
|
|
53699
53698
|
return t && r && r.split(" ").forEach(function(r) {
|
|
53700
53699
|
var o, n;
|
|
@@ -53789,7 +53788,7 @@
|
|
|
53789
53788
|
return /*#__PURE__*/ React.cloneElement(o, {
|
|
53790
53789
|
in: !1,
|
|
53791
53790
|
onExited: nC(o, "onExited", function() {
|
|
53792
|
-
n(
|
|
53791
|
+
n(nf, null);
|
|
53793
53792
|
})
|
|
53794
53793
|
});
|
|
53795
53794
|
}, tL[ny] = function(r) {
|
|
@@ -53799,7 +53798,7 @@
|
|
|
53799
53798
|
/*#__PURE__*/ React.cloneElement(i, {
|
|
53800
53799
|
in: !0,
|
|
53801
53800
|
onEntered: nC(i, "onEntered", function() {
|
|
53802
|
-
n(
|
|
53801
|
+
n(nf);
|
|
53803
53802
|
})
|
|
53804
53803
|
})
|
|
53805
53804
|
];
|
|
@@ -53852,8 +53851,8 @@
|
|
|
53852
53851
|
if (null == r.children) return {
|
|
53853
53852
|
current: null
|
|
53854
53853
|
};
|
|
53855
|
-
if (o.status ===
|
|
53856
|
-
status:
|
|
53854
|
+
if (o.status === nf && r.mode === ny) return {
|
|
53855
|
+
status: nf
|
|
53857
53856
|
};
|
|
53858
53857
|
return o.current && (n = o.current, !(n === (i = r.children) || /*#__PURE__*/ React.isValidElement(n) && /*#__PURE__*/ React.isValidElement(i) && null != n.key && n.key === i.key) && 1) ? {
|
|
53859
53858
|
status: nm
|
|
@@ -53870,7 +53869,7 @@
|
|
|
53870
53869
|
status: s
|
|
53871
53870
|
};
|
|
53872
53871
|
switch(s){
|
|
53873
|
-
case
|
|
53872
|
+
case nf:
|
|
53874
53873
|
r = n_[i](l);
|
|
53875
53874
|
break;
|
|
53876
53875
|
case nm:
|
|
@@ -53900,7 +53899,7 @@
|
|
|
53900
53899
|
var t, r;
|
|
53901
53900
|
if (tN) return nS.exports;
|
|
53902
53901
|
return tN = 1, t = nS, r = nS.exports, function(o, n) {
|
|
53903
|
-
var i = "function", a = "undefined", s = "object", c = "string", l = "major", d = "model", u = "name",
|
|
53902
|
+
var i = "function", a = "undefined", s = "object", c = "string", l = "major", d = "model", u = "name", p = "type", f = "vendor", h = "version", m = "architecture", g = "console", b = "mobile", v = "tablet", w = "smarttv", k = "wearable", y = "embedded", C = "Amazon", B = "Apple", _ = "ASUS", x = "BlackBerry", P = "Browser", S = "Chrome", E = "Firefox", T = "Google", D = "Huawei", $ = "Microsoft", j = "Motorola", I = "Opera", O = "Samsung", M = "Sharp", A = "Sony", R = "Xiaomi", L = "Zebra", F = "Facebook", N = "Chromium OS", z = "Mac OS", V = function(t, r) {
|
|
53904
53903
|
var o = {};
|
|
53905
53904
|
for(var n in t)r[n] && r[n].length % 2 == 0 ? o[n] = r[n].concat(t[n]) : o[n] = t[n];
|
|
53906
53905
|
return o;
|
|
@@ -53915,9 +53914,9 @@
|
|
|
53915
53914
|
if (typeof t === c) return t = t.replace(/^\s\s*/, ""), typeof r === a ? t : t.substring(0, 500);
|
|
53916
53915
|
}, X = function(t, r) {
|
|
53917
53916
|
for(var o, n, a, c, l, d, u = 0; u < r.length && !l;){
|
|
53918
|
-
var
|
|
53919
|
-
for(o = n = 0; o <
|
|
53920
|
-
if (l =
|
|
53917
|
+
var p = r[u], f = r[u + 1];
|
|
53918
|
+
for(o = n = 0; o < p.length && !l && p[o];){
|
|
53919
|
+
if (l = p[o++].exec(t)) for(a = 0; a < f.length; a++)d = l[++n], typeof (c = f[a]) === s && c.length > 0 ? 2 === c.length ? typeof c[1] == i ? this[c[0]] = c[1].call(this, d) : this[c[0]] = c[1] : 3 === c.length ? typeof c[1] !== i || c[1].exec && c[1].test ? this[c[0]] = d ? d.replace(c[1], c[2]) : void 0 : this[c[0]] = d ? c[1].call(this, d, c[2]) : void 0 : 4 === c.length && (this[c[0]] = d ? c[3].call(this, d.replace(c[1], c[2])) : void 0) : this[c] = d || void 0;
|
|
53921
53920
|
}
|
|
53922
53921
|
u += 2;
|
|
53923
53922
|
}
|
|
@@ -54501,11 +54500,11 @@
|
|
|
54501
54500
|
[
|
|
54502
54501
|
d,
|
|
54503
54502
|
[
|
|
54504
|
-
|
|
54503
|
+
f,
|
|
54505
54504
|
O
|
|
54506
54505
|
],
|
|
54507
54506
|
[
|
|
54508
|
-
|
|
54507
|
+
p,
|
|
54509
54508
|
v
|
|
54510
54509
|
]
|
|
54511
54510
|
],
|
|
@@ -54517,11 +54516,11 @@
|
|
|
54517
54516
|
[
|
|
54518
54517
|
d,
|
|
54519
54518
|
[
|
|
54520
|
-
|
|
54519
|
+
f,
|
|
54521
54520
|
O
|
|
54522
54521
|
],
|
|
54523
54522
|
[
|
|
54524
|
-
|
|
54523
|
+
p,
|
|
54525
54524
|
b
|
|
54526
54525
|
]
|
|
54527
54526
|
],
|
|
@@ -54531,11 +54530,11 @@
|
|
|
54531
54530
|
[
|
|
54532
54531
|
d,
|
|
54533
54532
|
[
|
|
54534
|
-
|
|
54533
|
+
f,
|
|
54535
54534
|
B
|
|
54536
54535
|
],
|
|
54537
54536
|
[
|
|
54538
|
-
|
|
54537
|
+
p,
|
|
54539
54538
|
b
|
|
54540
54539
|
]
|
|
54541
54540
|
],
|
|
@@ -54547,11 +54546,11 @@
|
|
|
54547
54546
|
[
|
|
54548
54547
|
d,
|
|
54549
54548
|
[
|
|
54550
|
-
|
|
54549
|
+
f,
|
|
54551
54550
|
B
|
|
54552
54551
|
],
|
|
54553
54552
|
[
|
|
54554
|
-
|
|
54553
|
+
p,
|
|
54555
54554
|
v
|
|
54556
54555
|
]
|
|
54557
54556
|
],
|
|
@@ -54561,7 +54560,7 @@
|
|
|
54561
54560
|
[
|
|
54562
54561
|
d,
|
|
54563
54562
|
[
|
|
54564
|
-
|
|
54563
|
+
f,
|
|
54565
54564
|
B
|
|
54566
54565
|
]
|
|
54567
54566
|
],
|
|
@@ -54571,11 +54570,11 @@
|
|
|
54571
54570
|
[
|
|
54572
54571
|
d,
|
|
54573
54572
|
[
|
|
54574
|
-
|
|
54573
|
+
f,
|
|
54575
54574
|
M
|
|
54576
54575
|
],
|
|
54577
54576
|
[
|
|
54578
|
-
|
|
54577
|
+
p,
|
|
54579
54578
|
b
|
|
54580
54579
|
]
|
|
54581
54580
|
],
|
|
@@ -54585,11 +54584,11 @@
|
|
|
54585
54584
|
[
|
|
54586
54585
|
d,
|
|
54587
54586
|
[
|
|
54588
|
-
|
|
54587
|
+
f,
|
|
54589
54588
|
D
|
|
54590
54589
|
],
|
|
54591
54590
|
[
|
|
54592
|
-
|
|
54591
|
+
p,
|
|
54593
54592
|
v
|
|
54594
54593
|
]
|
|
54595
54594
|
],
|
|
@@ -54600,11 +54599,11 @@
|
|
|
54600
54599
|
[
|
|
54601
54600
|
d,
|
|
54602
54601
|
[
|
|
54603
|
-
|
|
54602
|
+
f,
|
|
54604
54603
|
D
|
|
54605
54604
|
],
|
|
54606
54605
|
[
|
|
54607
|
-
|
|
54606
|
+
p,
|
|
54608
54607
|
b
|
|
54609
54608
|
]
|
|
54610
54609
|
],
|
|
@@ -54623,11 +54622,11 @@
|
|
|
54623
54622
|
" "
|
|
54624
54623
|
],
|
|
54625
54624
|
[
|
|
54626
|
-
|
|
54625
|
+
f,
|
|
54627
54626
|
R
|
|
54628
54627
|
],
|
|
54629
54628
|
[
|
|
54630
|
-
|
|
54629
|
+
p,
|
|
54631
54630
|
b
|
|
54632
54631
|
]
|
|
54633
54632
|
],
|
|
@@ -54642,11 +54641,11 @@
|
|
|
54642
54641
|
" "
|
|
54643
54642
|
],
|
|
54644
54643
|
[
|
|
54645
|
-
|
|
54644
|
+
f,
|
|
54646
54645
|
R
|
|
54647
54646
|
],
|
|
54648
54647
|
[
|
|
54649
|
-
|
|
54648
|
+
p,
|
|
54650
54649
|
v
|
|
54651
54650
|
]
|
|
54652
54651
|
],
|
|
@@ -54657,11 +54656,11 @@
|
|
|
54657
54656
|
[
|
|
54658
54657
|
d,
|
|
54659
54658
|
[
|
|
54660
|
-
|
|
54659
|
+
f,
|
|
54661
54660
|
"OPPO"
|
|
54662
54661
|
],
|
|
54663
54662
|
[
|
|
54664
|
-
|
|
54663
|
+
p,
|
|
54665
54664
|
b
|
|
54666
54665
|
]
|
|
54667
54666
|
],
|
|
@@ -54672,11 +54671,11 @@
|
|
|
54672
54671
|
[
|
|
54673
54672
|
d,
|
|
54674
54673
|
[
|
|
54675
|
-
|
|
54674
|
+
f,
|
|
54676
54675
|
"Vivo"
|
|
54677
54676
|
],
|
|
54678
54677
|
[
|
|
54679
|
-
|
|
54678
|
+
p,
|
|
54680
54679
|
b
|
|
54681
54680
|
]
|
|
54682
54681
|
],
|
|
@@ -54686,11 +54685,11 @@
|
|
|
54686
54685
|
[
|
|
54687
54686
|
d,
|
|
54688
54687
|
[
|
|
54689
|
-
|
|
54688
|
+
f,
|
|
54690
54689
|
"Realme"
|
|
54691
54690
|
],
|
|
54692
54691
|
[
|
|
54693
|
-
|
|
54692
|
+
p,
|
|
54694
54693
|
b
|
|
54695
54694
|
]
|
|
54696
54695
|
],
|
|
@@ -54702,11 +54701,11 @@
|
|
|
54702
54701
|
[
|
|
54703
54702
|
d,
|
|
54704
54703
|
[
|
|
54705
|
-
|
|
54704
|
+
f,
|
|
54706
54705
|
j
|
|
54707
54706
|
],
|
|
54708
54707
|
[
|
|
54709
|
-
|
|
54708
|
+
p,
|
|
54710
54709
|
b
|
|
54711
54710
|
]
|
|
54712
54711
|
],
|
|
@@ -54716,11 +54715,11 @@
|
|
|
54716
54715
|
[
|
|
54717
54716
|
d,
|
|
54718
54717
|
[
|
|
54719
|
-
|
|
54718
|
+
f,
|
|
54720
54719
|
j
|
|
54721
54720
|
],
|
|
54722
54721
|
[
|
|
54723
|
-
|
|
54722
|
+
p,
|
|
54724
54723
|
v
|
|
54725
54724
|
]
|
|
54726
54725
|
],
|
|
@@ -54730,11 +54729,11 @@
|
|
|
54730
54729
|
[
|
|
54731
54730
|
d,
|
|
54732
54731
|
[
|
|
54733
|
-
|
|
54732
|
+
f,
|
|
54734
54733
|
"LG"
|
|
54735
54734
|
],
|
|
54736
54735
|
[
|
|
54737
|
-
|
|
54736
|
+
p,
|
|
54738
54737
|
v
|
|
54739
54738
|
]
|
|
54740
54739
|
],
|
|
@@ -54746,11 +54745,11 @@
|
|
|
54746
54745
|
[
|
|
54747
54746
|
d,
|
|
54748
54747
|
[
|
|
54749
|
-
|
|
54748
|
+
f,
|
|
54750
54749
|
"LG"
|
|
54751
54750
|
],
|
|
54752
54751
|
[
|
|
54753
|
-
|
|
54752
|
+
p,
|
|
54754
54753
|
b
|
|
54755
54754
|
]
|
|
54756
54755
|
],
|
|
@@ -54761,11 +54760,11 @@
|
|
|
54761
54760
|
[
|
|
54762
54761
|
d,
|
|
54763
54762
|
[
|
|
54764
|
-
|
|
54763
|
+
f,
|
|
54765
54764
|
"Lenovo"
|
|
54766
54765
|
],
|
|
54767
54766
|
[
|
|
54768
|
-
|
|
54767
|
+
p,
|
|
54769
54768
|
v
|
|
54770
54769
|
]
|
|
54771
54770
|
],
|
|
@@ -54780,11 +54779,11 @@
|
|
|
54780
54779
|
" "
|
|
54781
54780
|
],
|
|
54782
54781
|
[
|
|
54783
|
-
|
|
54782
|
+
f,
|
|
54784
54783
|
"Nokia"
|
|
54785
54784
|
],
|
|
54786
54785
|
[
|
|
54787
|
-
|
|
54786
|
+
p,
|
|
54788
54787
|
b
|
|
54789
54788
|
]
|
|
54790
54789
|
],
|
|
@@ -54794,11 +54793,11 @@
|
|
|
54794
54793
|
[
|
|
54795
54794
|
d,
|
|
54796
54795
|
[
|
|
54797
|
-
|
|
54796
|
+
f,
|
|
54798
54797
|
T
|
|
54799
54798
|
],
|
|
54800
54799
|
[
|
|
54801
|
-
|
|
54800
|
+
p,
|
|
54802
54801
|
v
|
|
54803
54802
|
]
|
|
54804
54803
|
],
|
|
@@ -54808,11 +54807,11 @@
|
|
|
54808
54807
|
[
|
|
54809
54808
|
d,
|
|
54810
54809
|
[
|
|
54811
|
-
|
|
54810
|
+
f,
|
|
54812
54811
|
T
|
|
54813
54812
|
],
|
|
54814
54813
|
[
|
|
54815
|
-
|
|
54814
|
+
p,
|
|
54816
54815
|
b
|
|
54817
54816
|
]
|
|
54818
54817
|
],
|
|
@@ -54822,11 +54821,11 @@
|
|
|
54822
54821
|
[
|
|
54823
54822
|
d,
|
|
54824
54823
|
[
|
|
54825
|
-
|
|
54824
|
+
f,
|
|
54826
54825
|
A
|
|
54827
54826
|
],
|
|
54828
54827
|
[
|
|
54829
|
-
|
|
54828
|
+
p,
|
|
54830
54829
|
b
|
|
54831
54830
|
]
|
|
54832
54831
|
],
|
|
@@ -54840,11 +54839,11 @@
|
|
|
54840
54839
|
"Xperia Tablet"
|
|
54841
54840
|
],
|
|
54842
54841
|
[
|
|
54843
|
-
|
|
54842
|
+
f,
|
|
54844
54843
|
A
|
|
54845
54844
|
],
|
|
54846
54845
|
[
|
|
54847
|
-
|
|
54846
|
+
p,
|
|
54848
54847
|
v
|
|
54849
54848
|
]
|
|
54850
54849
|
],
|
|
@@ -54855,11 +54854,11 @@
|
|
|
54855
54854
|
[
|
|
54856
54855
|
d,
|
|
54857
54856
|
[
|
|
54858
|
-
|
|
54857
|
+
f,
|
|
54859
54858
|
"OnePlus"
|
|
54860
54859
|
],
|
|
54861
54860
|
[
|
|
54862
|
-
|
|
54861
|
+
p,
|
|
54863
54862
|
b
|
|
54864
54863
|
]
|
|
54865
54864
|
],
|
|
@@ -54871,11 +54870,11 @@
|
|
|
54871
54870
|
[
|
|
54872
54871
|
d,
|
|
54873
54872
|
[
|
|
54874
|
-
|
|
54873
|
+
f,
|
|
54875
54874
|
C
|
|
54876
54875
|
],
|
|
54877
54876
|
[
|
|
54878
|
-
|
|
54877
|
+
p,
|
|
54879
54878
|
v
|
|
54880
54879
|
]
|
|
54881
54880
|
],
|
|
@@ -54889,11 +54888,11 @@
|
|
|
54889
54888
|
"Fire Phone $1"
|
|
54890
54889
|
],
|
|
54891
54890
|
[
|
|
54892
|
-
|
|
54891
|
+
f,
|
|
54893
54892
|
C
|
|
54894
54893
|
],
|
|
54895
54894
|
[
|
|
54896
|
-
|
|
54895
|
+
p,
|
|
54897
54896
|
b
|
|
54898
54897
|
]
|
|
54899
54898
|
],
|
|
@@ -54902,9 +54901,9 @@
|
|
|
54902
54901
|
],
|
|
54903
54902
|
[
|
|
54904
54903
|
d,
|
|
54905
|
-
|
|
54904
|
+
f,
|
|
54906
54905
|
[
|
|
54907
|
-
|
|
54906
|
+
p,
|
|
54908
54907
|
v
|
|
54909
54908
|
]
|
|
54910
54909
|
],
|
|
@@ -54915,11 +54914,11 @@
|
|
|
54915
54914
|
[
|
|
54916
54915
|
d,
|
|
54917
54916
|
[
|
|
54918
|
-
|
|
54917
|
+
f,
|
|
54919
54918
|
x
|
|
54920
54919
|
],
|
|
54921
54920
|
[
|
|
54922
|
-
|
|
54921
|
+
p,
|
|
54923
54922
|
b
|
|
54924
54923
|
]
|
|
54925
54924
|
],
|
|
@@ -54929,11 +54928,11 @@
|
|
|
54929
54928
|
[
|
|
54930
54929
|
d,
|
|
54931
54930
|
[
|
|
54932
|
-
|
|
54931
|
+
f,
|
|
54933
54932
|
_
|
|
54934
54933
|
],
|
|
54935
54934
|
[
|
|
54936
|
-
|
|
54935
|
+
p,
|
|
54937
54936
|
v
|
|
54938
54937
|
]
|
|
54939
54938
|
],
|
|
@@ -54943,11 +54942,11 @@
|
|
|
54943
54942
|
[
|
|
54944
54943
|
d,
|
|
54945
54944
|
[
|
|
54946
|
-
|
|
54945
|
+
f,
|
|
54947
54946
|
_
|
|
54948
54947
|
],
|
|
54949
54948
|
[
|
|
54950
|
-
|
|
54949
|
+
p,
|
|
54951
54950
|
b
|
|
54952
54951
|
]
|
|
54953
54952
|
],
|
|
@@ -54957,11 +54956,11 @@
|
|
|
54957
54956
|
[
|
|
54958
54957
|
d,
|
|
54959
54958
|
[
|
|
54960
|
-
|
|
54959
|
+
f,
|
|
54961
54960
|
"HTC"
|
|
54962
54961
|
],
|
|
54963
54962
|
[
|
|
54964
|
-
|
|
54963
|
+
p,
|
|
54965
54964
|
v
|
|
54966
54965
|
]
|
|
54967
54966
|
],
|
|
@@ -54971,14 +54970,14 @@
|
|
|
54971
54970
|
/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i
|
|
54972
54971
|
],
|
|
54973
54972
|
[
|
|
54974
|
-
|
|
54973
|
+
f,
|
|
54975
54974
|
[
|
|
54976
54975
|
d,
|
|
54977
54976
|
/_/g,
|
|
54978
54977
|
" "
|
|
54979
54978
|
],
|
|
54980
54979
|
[
|
|
54981
|
-
|
|
54980
|
+
p,
|
|
54982
54981
|
b
|
|
54983
54982
|
]
|
|
54984
54983
|
],
|
|
@@ -54988,11 +54987,11 @@
|
|
|
54988
54987
|
[
|
|
54989
54988
|
d,
|
|
54990
54989
|
[
|
|
54991
|
-
|
|
54990
|
+
f,
|
|
54992
54991
|
"Acer"
|
|
54993
54992
|
],
|
|
54994
54993
|
[
|
|
54995
|
-
|
|
54994
|
+
p,
|
|
54996
54995
|
v
|
|
54997
54996
|
]
|
|
54998
54997
|
],
|
|
@@ -55003,11 +55002,11 @@
|
|
|
55003
55002
|
[
|
|
55004
55003
|
d,
|
|
55005
55004
|
[
|
|
55006
|
-
|
|
55005
|
+
f,
|
|
55007
55006
|
"Meizu"
|
|
55008
55007
|
],
|
|
55009
55008
|
[
|
|
55010
|
-
|
|
55009
|
+
p,
|
|
55011
55010
|
b
|
|
55012
55011
|
]
|
|
55013
55012
|
],
|
|
@@ -55017,11 +55016,11 @@
|
|
|
55017
55016
|
[
|
|
55018
55017
|
d,
|
|
55019
55018
|
[
|
|
55020
|
-
|
|
55019
|
+
f,
|
|
55021
55020
|
"Ulefone"
|
|
55022
55021
|
],
|
|
55023
55022
|
[
|
|
55024
|
-
|
|
55023
|
+
p,
|
|
55025
55024
|
b
|
|
55026
55025
|
]
|
|
55027
55026
|
],
|
|
@@ -55035,10 +55034,10 @@
|
|
|
55035
55034
|
/(oppo) ?([\w ]+) bui/i
|
|
55036
55035
|
],
|
|
55037
55036
|
[
|
|
55038
|
-
|
|
55037
|
+
f,
|
|
55039
55038
|
d,
|
|
55040
55039
|
[
|
|
55041
|
-
|
|
55040
|
+
p,
|
|
55042
55041
|
b
|
|
55043
55042
|
]
|
|
55044
55043
|
],
|
|
@@ -55055,10 +55054,10 @@
|
|
|
55055
55054
|
/(vodafone) ([\w ]+)(?:\)| bui)/i
|
|
55056
55055
|
],
|
|
55057
55056
|
[
|
|
55058
|
-
|
|
55057
|
+
f,
|
|
55059
55058
|
d,
|
|
55060
55059
|
[
|
|
55061
|
-
|
|
55060
|
+
p,
|
|
55062
55061
|
v
|
|
55063
55062
|
]
|
|
55064
55063
|
],
|
|
@@ -55068,11 +55067,11 @@
|
|
|
55068
55067
|
[
|
|
55069
55068
|
d,
|
|
55070
55069
|
[
|
|
55071
|
-
|
|
55070
|
+
f,
|
|
55072
55071
|
$
|
|
55073
55072
|
],
|
|
55074
55073
|
[
|
|
55075
|
-
|
|
55074
|
+
p,
|
|
55076
55075
|
v
|
|
55077
55076
|
]
|
|
55078
55077
|
],
|
|
@@ -55082,11 +55081,11 @@
|
|
|
55082
55081
|
[
|
|
55083
55082
|
d,
|
|
55084
55083
|
[
|
|
55085
|
-
|
|
55084
|
+
f,
|
|
55086
55085
|
"Fairphone"
|
|
55087
55086
|
],
|
|
55088
55087
|
[
|
|
55089
|
-
|
|
55088
|
+
p,
|
|
55090
55089
|
b
|
|
55091
55090
|
]
|
|
55092
55091
|
],
|
|
@@ -55096,11 +55095,11 @@
|
|
|
55096
55095
|
[
|
|
55097
55096
|
d,
|
|
55098
55097
|
[
|
|
55099
|
-
|
|
55098
|
+
f,
|
|
55100
55099
|
"AT&T"
|
|
55101
55100
|
],
|
|
55102
55101
|
[
|
|
55103
|
-
|
|
55102
|
+
p,
|
|
55104
55103
|
b
|
|
55105
55104
|
]
|
|
55106
55105
|
],
|
|
@@ -55110,11 +55109,11 @@
|
|
|
55110
55109
|
[
|
|
55111
55110
|
d,
|
|
55112
55111
|
[
|
|
55113
|
-
|
|
55112
|
+
f,
|
|
55114
55113
|
"Siemens"
|
|
55115
55114
|
],
|
|
55116
55115
|
[
|
|
55117
|
-
|
|
55116
|
+
p,
|
|
55118
55117
|
b
|
|
55119
55118
|
]
|
|
55120
55119
|
],
|
|
@@ -55124,11 +55123,11 @@
|
|
|
55124
55123
|
[
|
|
55125
55124
|
d,
|
|
55126
55125
|
[
|
|
55127
|
-
|
|
55126
|
+
f,
|
|
55128
55127
|
"RCA"
|
|
55129
55128
|
],
|
|
55130
55129
|
[
|
|
55131
|
-
|
|
55130
|
+
p,
|
|
55132
55131
|
v
|
|
55133
55132
|
]
|
|
55134
55133
|
],
|
|
@@ -55138,11 +55137,11 @@
|
|
|
55138
55137
|
[
|
|
55139
55138
|
d,
|
|
55140
55139
|
[
|
|
55141
|
-
|
|
55140
|
+
f,
|
|
55142
55141
|
"Dell"
|
|
55143
55142
|
],
|
|
55144
55143
|
[
|
|
55145
|
-
|
|
55144
|
+
p,
|
|
55146
55145
|
v
|
|
55147
55146
|
]
|
|
55148
55147
|
],
|
|
@@ -55152,11 +55151,11 @@
|
|
|
55152
55151
|
[
|
|
55153
55152
|
d,
|
|
55154
55153
|
[
|
|
55155
|
-
|
|
55154
|
+
f,
|
|
55156
55155
|
"Verizon"
|
|
55157
55156
|
],
|
|
55158
55157
|
[
|
|
55159
|
-
|
|
55158
|
+
p,
|
|
55160
55159
|
v
|
|
55161
55160
|
]
|
|
55162
55161
|
],
|
|
@@ -55166,11 +55165,11 @@
|
|
|
55166
55165
|
[
|
|
55167
55166
|
d,
|
|
55168
55167
|
[
|
|
55169
|
-
|
|
55168
|
+
f,
|
|
55170
55169
|
"Barnes & Noble"
|
|
55171
55170
|
],
|
|
55172
55171
|
[
|
|
55173
|
-
|
|
55172
|
+
p,
|
|
55174
55173
|
v
|
|
55175
55174
|
]
|
|
55176
55175
|
],
|
|
@@ -55180,11 +55179,11 @@
|
|
|
55180
55179
|
[
|
|
55181
55180
|
d,
|
|
55182
55181
|
[
|
|
55183
|
-
|
|
55182
|
+
f,
|
|
55184
55183
|
"NuVision"
|
|
55185
55184
|
],
|
|
55186
55185
|
[
|
|
55187
|
-
|
|
55186
|
+
p,
|
|
55188
55187
|
v
|
|
55189
55188
|
]
|
|
55190
55189
|
],
|
|
@@ -55194,11 +55193,11 @@
|
|
|
55194
55193
|
[
|
|
55195
55194
|
d,
|
|
55196
55195
|
[
|
|
55197
|
-
|
|
55196
|
+
f,
|
|
55198
55197
|
"ZTE"
|
|
55199
55198
|
],
|
|
55200
55199
|
[
|
|
55201
|
-
|
|
55200
|
+
p,
|
|
55202
55201
|
v
|
|
55203
55202
|
]
|
|
55204
55203
|
],
|
|
@@ -55208,11 +55207,11 @@
|
|
|
55208
55207
|
[
|
|
55209
55208
|
d,
|
|
55210
55209
|
[
|
|
55211
|
-
|
|
55210
|
+
f,
|
|
55212
55211
|
"ZTE"
|
|
55213
55212
|
],
|
|
55214
55213
|
[
|
|
55215
|
-
|
|
55214
|
+
p,
|
|
55216
55215
|
b
|
|
55217
55216
|
]
|
|
55218
55217
|
],
|
|
@@ -55222,11 +55221,11 @@
|
|
|
55222
55221
|
[
|
|
55223
55222
|
d,
|
|
55224
55223
|
[
|
|
55225
|
-
|
|
55224
|
+
f,
|
|
55226
55225
|
"Swiss"
|
|
55227
55226
|
],
|
|
55228
55227
|
[
|
|
55229
|
-
|
|
55228
|
+
p,
|
|
55230
55229
|
b
|
|
55231
55230
|
]
|
|
55232
55231
|
],
|
|
@@ -55236,11 +55235,11 @@
|
|
|
55236
55235
|
[
|
|
55237
55236
|
d,
|
|
55238
55237
|
[
|
|
55239
|
-
|
|
55238
|
+
f,
|
|
55240
55239
|
"Swiss"
|
|
55241
55240
|
],
|
|
55242
55241
|
[
|
|
55243
|
-
|
|
55242
|
+
p,
|
|
55244
55243
|
v
|
|
55245
55244
|
]
|
|
55246
55245
|
],
|
|
@@ -55250,11 +55249,11 @@
|
|
|
55250
55249
|
[
|
|
55251
55250
|
d,
|
|
55252
55251
|
[
|
|
55253
|
-
|
|
55252
|
+
f,
|
|
55254
55253
|
"Zeki"
|
|
55255
55254
|
],
|
|
55256
55255
|
[
|
|
55257
|
-
|
|
55256
|
+
p,
|
|
55258
55257
|
v
|
|
55259
55258
|
]
|
|
55260
55259
|
],
|
|
@@ -55264,12 +55263,12 @@
|
|
|
55264
55263
|
],
|
|
55265
55264
|
[
|
|
55266
55265
|
[
|
|
55267
|
-
|
|
55266
|
+
f,
|
|
55268
55267
|
"Dragon Touch"
|
|
55269
55268
|
],
|
|
55270
55269
|
d,
|
|
55271
55270
|
[
|
|
55272
|
-
|
|
55271
|
+
p,
|
|
55273
55272
|
v
|
|
55274
55273
|
]
|
|
55275
55274
|
],
|
|
@@ -55279,11 +55278,11 @@
|
|
|
55279
55278
|
[
|
|
55280
55279
|
d,
|
|
55281
55280
|
[
|
|
55282
|
-
|
|
55281
|
+
f,
|
|
55283
55282
|
"Insignia"
|
|
55284
55283
|
],
|
|
55285
55284
|
[
|
|
55286
|
-
|
|
55285
|
+
p,
|
|
55287
55286
|
v
|
|
55288
55287
|
]
|
|
55289
55288
|
],
|
|
@@ -55293,11 +55292,11 @@
|
|
|
55293
55292
|
[
|
|
55294
55293
|
d,
|
|
55295
55294
|
[
|
|
55296
|
-
|
|
55295
|
+
f,
|
|
55297
55296
|
"NextBook"
|
|
55298
55297
|
],
|
|
55299
55298
|
[
|
|
55300
|
-
|
|
55299
|
+
p,
|
|
55301
55300
|
v
|
|
55302
55301
|
]
|
|
55303
55302
|
],
|
|
@@ -55306,12 +55305,12 @@
|
|
|
55306
55305
|
],
|
|
55307
55306
|
[
|
|
55308
55307
|
[
|
|
55309
|
-
|
|
55308
|
+
f,
|
|
55310
55309
|
"Voice"
|
|
55311
55310
|
],
|
|
55312
55311
|
d,
|
|
55313
55312
|
[
|
|
55314
|
-
|
|
55313
|
+
p,
|
|
55315
55314
|
b
|
|
55316
55315
|
]
|
|
55317
55316
|
],
|
|
@@ -55320,12 +55319,12 @@
|
|
|
55320
55319
|
],
|
|
55321
55320
|
[
|
|
55322
55321
|
[
|
|
55323
|
-
|
|
55322
|
+
f,
|
|
55324
55323
|
"LvTel"
|
|
55325
55324
|
],
|
|
55326
55325
|
d,
|
|
55327
55326
|
[
|
|
55328
|
-
|
|
55327
|
+
p,
|
|
55329
55328
|
b
|
|
55330
55329
|
]
|
|
55331
55330
|
],
|
|
@@ -55335,11 +55334,11 @@
|
|
|
55335
55334
|
[
|
|
55336
55335
|
d,
|
|
55337
55336
|
[
|
|
55338
|
-
|
|
55337
|
+
f,
|
|
55339
55338
|
"Essential"
|
|
55340
55339
|
],
|
|
55341
55340
|
[
|
|
55342
|
-
|
|
55341
|
+
p,
|
|
55343
55342
|
b
|
|
55344
55343
|
]
|
|
55345
55344
|
],
|
|
@@ -55349,11 +55348,11 @@
|
|
|
55349
55348
|
[
|
|
55350
55349
|
d,
|
|
55351
55350
|
[
|
|
55352
|
-
|
|
55351
|
+
f,
|
|
55353
55352
|
"Envizen"
|
|
55354
55353
|
],
|
|
55355
55354
|
[
|
|
55356
|
-
|
|
55355
|
+
p,
|
|
55357
55356
|
v
|
|
55358
55357
|
]
|
|
55359
55358
|
],
|
|
@@ -55363,11 +55362,11 @@
|
|
|
55363
55362
|
[
|
|
55364
55363
|
d,
|
|
55365
55364
|
[
|
|
55366
|
-
|
|
55365
|
+
f,
|
|
55367
55366
|
"MachSpeed"
|
|
55368
55367
|
],
|
|
55369
55368
|
[
|
|
55370
|
-
|
|
55369
|
+
p,
|
|
55371
55370
|
v
|
|
55372
55371
|
]
|
|
55373
55372
|
],
|
|
@@ -55377,11 +55376,11 @@
|
|
|
55377
55376
|
[
|
|
55378
55377
|
d,
|
|
55379
55378
|
[
|
|
55380
|
-
|
|
55379
|
+
f,
|
|
55381
55380
|
"Rotor"
|
|
55382
55381
|
],
|
|
55383
55382
|
[
|
|
55384
|
-
|
|
55383
|
+
p,
|
|
55385
55384
|
v
|
|
55386
55385
|
]
|
|
55387
55386
|
],
|
|
@@ -55391,11 +55390,11 @@
|
|
|
55391
55390
|
[
|
|
55392
55391
|
d,
|
|
55393
55392
|
[
|
|
55394
|
-
|
|
55393
|
+
f,
|
|
55395
55394
|
"Nvidia"
|
|
55396
55395
|
],
|
|
55397
55396
|
[
|
|
55398
|
-
|
|
55397
|
+
p,
|
|
55399
55398
|
v
|
|
55400
55399
|
]
|
|
55401
55400
|
],
|
|
@@ -55403,10 +55402,10 @@
|
|
|
55403
55402
|
/(sprint) (\w+)/i
|
|
55404
55403
|
],
|
|
55405
55404
|
[
|
|
55406
|
-
|
|
55405
|
+
f,
|
|
55407
55406
|
d,
|
|
55408
55407
|
[
|
|
55409
|
-
|
|
55408
|
+
p,
|
|
55410
55409
|
b
|
|
55411
55410
|
]
|
|
55412
55411
|
],
|
|
@@ -55420,11 +55419,11 @@
|
|
|
55420
55419
|
" "
|
|
55421
55420
|
],
|
|
55422
55421
|
[
|
|
55423
|
-
|
|
55422
|
+
f,
|
|
55424
55423
|
$
|
|
55425
55424
|
],
|
|
55426
55425
|
[
|
|
55427
|
-
|
|
55426
|
+
p,
|
|
55428
55427
|
b
|
|
55429
55428
|
]
|
|
55430
55429
|
],
|
|
@@ -55434,11 +55433,11 @@
|
|
|
55434
55433
|
[
|
|
55435
55434
|
d,
|
|
55436
55435
|
[
|
|
55437
|
-
|
|
55436
|
+
f,
|
|
55438
55437
|
L
|
|
55439
55438
|
],
|
|
55440
55439
|
[
|
|
55441
|
-
|
|
55440
|
+
p,
|
|
55442
55441
|
v
|
|
55443
55442
|
]
|
|
55444
55443
|
],
|
|
@@ -55448,11 +55447,11 @@
|
|
|
55448
55447
|
[
|
|
55449
55448
|
d,
|
|
55450
55449
|
[
|
|
55451
|
-
|
|
55450
|
+
f,
|
|
55452
55451
|
L
|
|
55453
55452
|
],
|
|
55454
55453
|
[
|
|
55455
|
-
|
|
55454
|
+
p,
|
|
55456
55455
|
b
|
|
55457
55456
|
]
|
|
55458
55457
|
],
|
|
@@ -55460,9 +55459,9 @@
|
|
|
55460
55459
|
/smart-tv.+(samsung)/i
|
|
55461
55460
|
],
|
|
55462
55461
|
[
|
|
55463
|
-
|
|
55462
|
+
f,
|
|
55464
55463
|
[
|
|
55465
|
-
|
|
55464
|
+
p,
|
|
55466
55465
|
w
|
|
55467
55466
|
]
|
|
55468
55467
|
],
|
|
@@ -55476,11 +55475,11 @@
|
|
|
55476
55475
|
"SmartTV"
|
|
55477
55476
|
],
|
|
55478
55477
|
[
|
|
55479
|
-
|
|
55478
|
+
f,
|
|
55480
55479
|
O
|
|
55481
55480
|
],
|
|
55482
55481
|
[
|
|
55483
|
-
|
|
55482
|
+
p,
|
|
55484
55483
|
w
|
|
55485
55484
|
]
|
|
55486
55485
|
],
|
|
@@ -55489,11 +55488,11 @@
|
|
|
55489
55488
|
],
|
|
55490
55489
|
[
|
|
55491
55490
|
[
|
|
55492
|
-
|
|
55491
|
+
f,
|
|
55493
55492
|
"LG"
|
|
55494
55493
|
],
|
|
55495
55494
|
[
|
|
55496
|
-
|
|
55495
|
+
p,
|
|
55497
55496
|
w
|
|
55498
55497
|
]
|
|
55499
55498
|
],
|
|
@@ -55501,13 +55500,13 @@
|
|
|
55501
55500
|
/(apple) ?tv/i
|
|
55502
55501
|
],
|
|
55503
55502
|
[
|
|
55504
|
-
|
|
55503
|
+
f,
|
|
55505
55504
|
[
|
|
55506
55505
|
d,
|
|
55507
55506
|
B + " TV"
|
|
55508
55507
|
],
|
|
55509
55508
|
[
|
|
55510
|
-
|
|
55509
|
+
p,
|
|
55511
55510
|
w
|
|
55512
55511
|
]
|
|
55513
55512
|
],
|
|
@@ -55520,11 +55519,11 @@
|
|
|
55520
55519
|
S + "cast"
|
|
55521
55520
|
],
|
|
55522
55521
|
[
|
|
55523
|
-
|
|
55522
|
+
f,
|
|
55524
55523
|
T
|
|
55525
55524
|
],
|
|
55526
55525
|
[
|
|
55527
|
-
|
|
55526
|
+
p,
|
|
55528
55527
|
w
|
|
55529
55528
|
]
|
|
55530
55529
|
],
|
|
@@ -55534,11 +55533,11 @@
|
|
|
55534
55533
|
[
|
|
55535
55534
|
d,
|
|
55536
55535
|
[
|
|
55537
|
-
|
|
55536
|
+
f,
|
|
55538
55537
|
C
|
|
55539
55538
|
],
|
|
55540
55539
|
[
|
|
55541
|
-
|
|
55540
|
+
p,
|
|
55542
55541
|
w
|
|
55543
55542
|
]
|
|
55544
55543
|
],
|
|
@@ -55549,11 +55548,11 @@
|
|
|
55549
55548
|
[
|
|
55550
55549
|
d,
|
|
55551
55550
|
[
|
|
55552
|
-
|
|
55551
|
+
f,
|
|
55553
55552
|
M
|
|
55554
55553
|
],
|
|
55555
55554
|
[
|
|
55556
|
-
|
|
55555
|
+
p,
|
|
55557
55556
|
w
|
|
55558
55557
|
]
|
|
55559
55558
|
],
|
|
@@ -55563,11 +55562,11 @@
|
|
|
55563
55562
|
[
|
|
55564
55563
|
d,
|
|
55565
55564
|
[
|
|
55566
|
-
|
|
55565
|
+
f,
|
|
55567
55566
|
A
|
|
55568
55567
|
],
|
|
55569
55568
|
[
|
|
55570
|
-
|
|
55569
|
+
p,
|
|
55571
55570
|
w
|
|
55572
55571
|
]
|
|
55573
55572
|
],
|
|
@@ -55577,11 +55576,11 @@
|
|
|
55577
55576
|
[
|
|
55578
55577
|
d,
|
|
55579
55578
|
[
|
|
55580
|
-
|
|
55579
|
+
f,
|
|
55581
55580
|
R
|
|
55582
55581
|
],
|
|
55583
55582
|
[
|
|
55584
|
-
|
|
55583
|
+
p,
|
|
55585
55584
|
w
|
|
55586
55585
|
]
|
|
55587
55586
|
],
|
|
@@ -55589,10 +55588,10 @@
|
|
|
55589
55588
|
/Hbbtv.*(technisat) (.*);/i
|
|
55590
55589
|
],
|
|
55591
55590
|
[
|
|
55592
|
-
|
|
55591
|
+
f,
|
|
55593
55592
|
d,
|
|
55594
55593
|
[
|
|
55595
|
-
|
|
55594
|
+
p,
|
|
55596
55595
|
w
|
|
55597
55596
|
]
|
|
55598
55597
|
],
|
|
@@ -55602,7 +55601,7 @@
|
|
|
55602
55601
|
],
|
|
55603
55602
|
[
|
|
55604
55603
|
[
|
|
55605
|
-
|
|
55604
|
+
f,
|
|
55606
55605
|
Q
|
|
55607
55606
|
],
|
|
55608
55607
|
[
|
|
@@ -55610,7 +55609,7 @@
|
|
|
55610
55609
|
Q
|
|
55611
55610
|
],
|
|
55612
55611
|
[
|
|
55613
|
-
|
|
55612
|
+
p,
|
|
55614
55613
|
w
|
|
55615
55614
|
]
|
|
55616
55615
|
],
|
|
@@ -55619,7 +55618,7 @@
|
|
|
55619
55618
|
],
|
|
55620
55619
|
[
|
|
55621
55620
|
[
|
|
55622
|
-
|
|
55621
|
+
p,
|
|
55623
55622
|
w
|
|
55624
55623
|
]
|
|
55625
55624
|
],
|
|
@@ -55628,10 +55627,10 @@
|
|
|
55628
55627
|
/(nintendo) ([wids3utch]+)/i
|
|
55629
55628
|
],
|
|
55630
55629
|
[
|
|
55631
|
-
|
|
55630
|
+
f,
|
|
55632
55631
|
d,
|
|
55633
55632
|
[
|
|
55634
|
-
|
|
55633
|
+
p,
|
|
55635
55634
|
g
|
|
55636
55635
|
]
|
|
55637
55636
|
],
|
|
@@ -55641,11 +55640,11 @@
|
|
|
55641
55640
|
[
|
|
55642
55641
|
d,
|
|
55643
55642
|
[
|
|
55644
|
-
|
|
55643
|
+
f,
|
|
55645
55644
|
"Nvidia"
|
|
55646
55645
|
],
|
|
55647
55646
|
[
|
|
55648
|
-
|
|
55647
|
+
p,
|
|
55649
55648
|
g
|
|
55650
55649
|
]
|
|
55651
55650
|
],
|
|
@@ -55655,11 +55654,11 @@
|
|
|
55655
55654
|
[
|
|
55656
55655
|
d,
|
|
55657
55656
|
[
|
|
55658
|
-
|
|
55657
|
+
f,
|
|
55659
55658
|
A
|
|
55660
55659
|
],
|
|
55661
55660
|
[
|
|
55662
|
-
|
|
55661
|
+
p,
|
|
55663
55662
|
g
|
|
55664
55663
|
]
|
|
55665
55664
|
],
|
|
@@ -55669,11 +55668,11 @@
|
|
|
55669
55668
|
[
|
|
55670
55669
|
d,
|
|
55671
55670
|
[
|
|
55672
|
-
|
|
55671
|
+
f,
|
|
55673
55672
|
$
|
|
55674
55673
|
],
|
|
55675
55674
|
[
|
|
55676
|
-
|
|
55675
|
+
p,
|
|
55677
55676
|
g
|
|
55678
55677
|
]
|
|
55679
55678
|
],
|
|
@@ -55681,10 +55680,10 @@
|
|
|
55681
55680
|
/((pebble))app/i
|
|
55682
55681
|
],
|
|
55683
55682
|
[
|
|
55684
|
-
|
|
55683
|
+
f,
|
|
55685
55684
|
d,
|
|
55686
55685
|
[
|
|
55687
|
-
|
|
55686
|
+
p,
|
|
55688
55687
|
k
|
|
55689
55688
|
]
|
|
55690
55689
|
],
|
|
@@ -55694,11 +55693,11 @@
|
|
|
55694
55693
|
[
|
|
55695
55694
|
d,
|
|
55696
55695
|
[
|
|
55697
|
-
|
|
55696
|
+
f,
|
|
55698
55697
|
B
|
|
55699
55698
|
],
|
|
55700
55699
|
[
|
|
55701
|
-
|
|
55700
|
+
p,
|
|
55702
55701
|
k
|
|
55703
55702
|
]
|
|
55704
55703
|
],
|
|
@@ -55708,11 +55707,11 @@
|
|
|
55708
55707
|
[
|
|
55709
55708
|
d,
|
|
55710
55709
|
[
|
|
55711
|
-
|
|
55710
|
+
f,
|
|
55712
55711
|
T
|
|
55713
55712
|
],
|
|
55714
55713
|
[
|
|
55715
|
-
|
|
55714
|
+
p,
|
|
55716
55715
|
k
|
|
55717
55716
|
]
|
|
55718
55717
|
],
|
|
@@ -55722,11 +55721,11 @@
|
|
|
55722
55721
|
[
|
|
55723
55722
|
d,
|
|
55724
55723
|
[
|
|
55725
|
-
|
|
55724
|
+
f,
|
|
55726
55725
|
L
|
|
55727
55726
|
],
|
|
55728
55727
|
[
|
|
55729
|
-
|
|
55728
|
+
p,
|
|
55730
55729
|
k
|
|
55731
55730
|
]
|
|
55732
55731
|
],
|
|
@@ -55736,11 +55735,11 @@
|
|
|
55736
55735
|
[
|
|
55737
55736
|
d,
|
|
55738
55737
|
[
|
|
55739
|
-
|
|
55738
|
+
f,
|
|
55740
55739
|
F
|
|
55741
55740
|
],
|
|
55742
55741
|
[
|
|
55743
|
-
|
|
55742
|
+
p,
|
|
55744
55743
|
k
|
|
55745
55744
|
]
|
|
55746
55745
|
],
|
|
@@ -55748,9 +55747,9 @@
|
|
|
55748
55747
|
/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i
|
|
55749
55748
|
],
|
|
55750
55749
|
[
|
|
55751
|
-
|
|
55750
|
+
f,
|
|
55752
55751
|
[
|
|
55753
|
-
|
|
55752
|
+
p,
|
|
55754
55753
|
y
|
|
55755
55754
|
]
|
|
55756
55755
|
],
|
|
@@ -55760,11 +55759,11 @@
|
|
|
55760
55759
|
[
|
|
55761
55760
|
d,
|
|
55762
55761
|
[
|
|
55763
|
-
|
|
55762
|
+
f,
|
|
55764
55763
|
C
|
|
55765
55764
|
],
|
|
55766
55765
|
[
|
|
55767
|
-
|
|
55766
|
+
p,
|
|
55768
55767
|
y
|
|
55769
55768
|
]
|
|
55770
55769
|
],
|
|
@@ -55774,7 +55773,7 @@
|
|
|
55774
55773
|
[
|
|
55775
55774
|
d,
|
|
55776
55775
|
[
|
|
55777
|
-
|
|
55776
|
+
p,
|
|
55778
55777
|
b
|
|
55779
55778
|
]
|
|
55780
55779
|
],
|
|
@@ -55784,7 +55783,7 @@
|
|
|
55784
55783
|
[
|
|
55785
55784
|
d,
|
|
55786
55785
|
[
|
|
55787
|
-
|
|
55786
|
+
p,
|
|
55788
55787
|
v
|
|
55789
55788
|
]
|
|
55790
55789
|
],
|
|
@@ -55793,7 +55792,7 @@
|
|
|
55793
55792
|
],
|
|
55794
55793
|
[
|
|
55795
55794
|
[
|
|
55796
|
-
|
|
55795
|
+
p,
|
|
55797
55796
|
v
|
|
55798
55797
|
]
|
|
55799
55798
|
],
|
|
@@ -55802,7 +55801,7 @@
|
|
|
55802
55801
|
],
|
|
55803
55802
|
[
|
|
55804
55803
|
[
|
|
55805
|
-
|
|
55804
|
+
p,
|
|
55806
55805
|
b
|
|
55807
55806
|
]
|
|
55808
55807
|
],
|
|
@@ -55812,7 +55811,7 @@
|
|
|
55812
55811
|
[
|
|
55813
55812
|
d,
|
|
55814
55813
|
[
|
|
55815
|
-
|
|
55814
|
+
f,
|
|
55816
55815
|
"Generic"
|
|
55817
55816
|
]
|
|
55818
55817
|
]
|
|
@@ -56063,7 +56062,7 @@
|
|
|
56063
56062
|
return t[m] = void 0, X.call(t, g, k.cpu), t;
|
|
56064
56063
|
}, this.getDevice = function() {
|
|
56065
56064
|
var t = {};
|
|
56066
|
-
return t[
|
|
56065
|
+
return t[f] = void 0, t[d] = void 0, t[p] = void 0, X.call(t, g, k.device), y && !t[p] && w && w.mobile && (t[p] = b), y && "Macintosh" == t[d] && n && typeof n.standalone !== a && n.maxTouchPoints && n.maxTouchPoints > 2 && (t[d] = "iPad", t[p] = v), t;
|
|
56067
56066
|
}, this.getEngine = function() {
|
|
56068
56067
|
var t = {};
|
|
56069
56068
|
return t[u] = void 0, t[h] = void 0, X.call(t, g, k.engine), t;
|
|
@@ -56093,8 +56092,8 @@
|
|
|
56093
56092
|
m
|
|
56094
56093
|
]), K.DEVICE = W([
|
|
56095
56094
|
d,
|
|
56096
|
-
p,
|
|
56097
56095
|
f,
|
|
56096
|
+
p,
|
|
56098
56097
|
g,
|
|
56099
56098
|
b,
|
|
56100
56099
|
w,
|
|
@@ -56117,9 +56116,9 @@
|
|
|
56117
56116
|
};
|
|
56118
56117
|
}
|
|
56119
56118
|
}("object" == typeof window ? window : nE), nS.exports;
|
|
56120
|
-
}(), i = new n, a = i.getBrowser(), s = i.getCPU(), c = i.getDevice(), l = i.getEngine(), d = i.getOS(), u = i.getUA(),
|
|
56119
|
+
}(), i = new n, a = i.getBrowser(), s = i.getCPU(), c = i.getDevice(), l = i.getEngine(), d = i.getOS(), u = i.getUA(), p = function(t) {
|
|
56121
56120
|
return i.setUA(t);
|
|
56122
|
-
},
|
|
56121
|
+
}, f = function(t) {
|
|
56123
56122
|
if (!t) return void console.error("No userAgent string was provided");
|
|
56124
56123
|
var r = new n(t);
|
|
56125
56124
|
return {
|
|
@@ -56142,8 +56141,8 @@
|
|
|
56142
56141
|
engine: l,
|
|
56143
56142
|
os: d,
|
|
56144
56143
|
ua: u,
|
|
56145
|
-
setUa:
|
|
56146
|
-
parseUserAgent:
|
|
56144
|
+
setUa: p,
|
|
56145
|
+
parseUserAgent: f
|
|
56147
56146
|
});
|
|
56148
56147
|
function m(t, r) {
|
|
56149
56148
|
var o = Object.keys(t);
|
|
@@ -56362,9 +56361,9 @@
|
|
|
56362
56361
|
}, eu = function(t) {
|
|
56363
56362
|
var r = t.name;
|
|
56364
56363
|
return r === $.InternetExplorer || r === $.Ie;
|
|
56365
|
-
}, ef = function(t) {
|
|
56366
|
-
return t.name === $.MIUI;
|
|
56367
56364
|
}, ep = function(t) {
|
|
56365
|
+
return t.name === $.MIUI;
|
|
56366
|
+
}, ef = function(t) {
|
|
56368
56367
|
return t.name === $.SamsungBrowser;
|
|
56369
56368
|
}, eh = function(t) {
|
|
56370
56369
|
return M(t.version);
|
|
@@ -56437,13 +56436,13 @@
|
|
|
56437
56436
|
isLegacyEdge: ea(n) && !ek(s),
|
|
56438
56437
|
isWindows: K(i),
|
|
56439
56438
|
isMacOs: Y(i),
|
|
56440
|
-
isMIUI:
|
|
56441
|
-
isSamsungBrowser:
|
|
56439
|
+
isMIUI: ep(n),
|
|
56440
|
+
isSamsungBrowser: ef(n)
|
|
56442
56441
|
};
|
|
56443
56442
|
}
|
|
56444
|
-
var eS = V(c), eE = q(c), eT = U(c), eD = Q(c), e$ = el(a) || eC(), ej = ei(a), eI = z(c) || eC(), eO = F(c), eM = N(c) || eC(), eA = W(c), eR = W(c), eL = Z(d), eF = J(d), eN = ee(d) || eC(), ez = eo(a), eV = en(a), eW = ec(a), eU = ed(a), eq = eu(a), eQ = et(d), eX = er(d), eH = eh(a), eG = em(a), eZ = eg(a), eK = X(c), eY = H(c), eJ = eb(l), e3 = ev(l), e2 = ex(u), e5 = ea(a) || ek(u), e0 = es(a), e1 = G(c), e8 = ey(), e9 = eC(), e4 = eB(), e7 = e_(), e6 = ew(), te = ek(u), tt = ea(a) && !ek(u), tr = K(d), to = Y(d), tn =
|
|
56443
|
+
var eS = V(c), eE = q(c), eT = U(c), eD = Q(c), e$ = el(a) || eC(), ej = ei(a), eI = z(c) || eC(), eO = F(c), eM = N(c) || eC(), eA = W(c), eR = W(c), eL = Z(d), eF = J(d), eN = ee(d) || eC(), ez = eo(a), eV = en(a), eW = ec(a), eU = ed(a), eq = eu(a), eQ = et(d), eX = er(d), eH = eh(a), eG = em(a), eZ = eg(a), eK = X(c), eY = H(c), eJ = eb(l), e3 = ev(l), e2 = ex(u), e5 = ea(a) || ek(u), e0 = es(a), e1 = G(c), e8 = ey(), e9 = eC(), e4 = eB(), e7 = e_(), e6 = ew(), te = ek(u), tt = ea(a) && !ek(u), tr = K(d), to = Y(d), tn = ep(a), ti = ef(a);
|
|
56445
56444
|
function ta(t) {
|
|
56446
|
-
return
|
|
56445
|
+
return f(t || window.navigator.userAgent);
|
|
56447
56446
|
}
|
|
56448
56447
|
return nP.AndroidView = function(r) {
|
|
56449
56448
|
var n = r.renderWithFragment, i = r.children, a = y(r, [
|
|
@@ -56527,7 +56526,7 @@
|
|
|
56527
56526
|
]);
|
|
56528
56527
|
return eF ? n ? o.createElement(React.Fragment, null, i) : o.createElement("div", a, i) : null;
|
|
56529
56528
|
}, nP.browserName = eZ, nP.browserVersion = eG, nP.deviceDetect = function(t) {
|
|
56530
|
-
var r, o, n, i, a, s, c, l, d, u,
|
|
56529
|
+
var r, o, n, i, a, s, c, l, d, u, p, m, g, b, v, w, k, y, C, B, _, x, P = t ? f(t) : h, S = P.device, E = P.browser, T = P.engine, D = P.os, $ = P.ua, j = O(S.type), I = j.isBrowser, A = j.isMobile, R = j.isTablet, F = j.isSmartTV, N = j.isConsole, z = j.isWearable, V = j.isEmbedded;
|
|
56531
56530
|
if (I) {
|
|
56532
56531
|
return r = I, o = E, n = T, i = D, a = $, {
|
|
56533
56532
|
isBrowser: r,
|
|
@@ -56552,10 +56551,10 @@
|
|
|
56552
56551
|
};
|
|
56553
56552
|
}
|
|
56554
56553
|
if (N) {
|
|
56555
|
-
return u = N,
|
|
56554
|
+
return u = N, p = T, m = D, g = $, {
|
|
56556
56555
|
isConsole: u,
|
|
56557
|
-
engineName: M(
|
|
56558
|
-
engineVersion: M(
|
|
56556
|
+
engineName: M(p.name),
|
|
56557
|
+
engineVersion: M(p.version),
|
|
56559
56558
|
osName: M(m.name),
|
|
56560
56559
|
osVersion: M(m.version),
|
|
56561
56560
|
userAgent: M(g)
|
|
@@ -56586,7 +56585,7 @@
|
|
|
56586
56585
|
}
|
|
56587
56586
|
}, nP.deviceType = e1, nP.engineName = eJ, nP.engineVersion = e3, nP.fullBrowserVersion = eH, nP.getSelectorsByUserAgent = function(t) {
|
|
56588
56587
|
if (!t || "string" != typeof t) return void console.error("No valid user agent string was provided");
|
|
56589
|
-
var r =
|
|
56588
|
+
var r = f(t);
|
|
56590
56589
|
return eP({
|
|
56591
56590
|
device: r.device,
|
|
56592
56591
|
browser: r.browser,
|
|
@@ -56594,8 +56593,8 @@
|
|
|
56594
56593
|
engine: r.engine,
|
|
56595
56594
|
ua: r.ua
|
|
56596
56595
|
});
|
|
56597
|
-
}, nP.getUA = e2, nP.isAndroid = eL, nP.isBrowser = eA, nP.isChrome = ez, nP.isChromium = ej, nP.isConsole = eE, nP.isDesktop = eR, nP.isEdge = e5, nP.isEdgeChromium = te, nP.isElectron = e6, nP.isEmbedded = eD, nP.isFirefox = eV, nP.isIE = eq, nP.isIOS = eN, nP.isIOS13 = e8, nP.isIPad13 = e9, nP.isIPhone13 = e4, nP.isIPod13 = e7, nP.isLegacyEdge = tt, nP.isMIUI = tn, nP.isMacOs = to, nP.isMobile = eI, nP.isMobileOnly = eO, nP.isMobileSafari = e$, nP.isOpera = eU, nP.isSafari = eW, nP.isSamsungBrowser = ti, nP.isSmartTV = eS, nP.isTablet = eM, nP.isWearable = eT, nP.isWinPhone = eF, nP.isWindows = tr, nP.isYandex = e0, nP.mobileModel = eY, nP.mobileVendor = eK, nP.osName = eX, nP.osVersion = eQ, nP.parseUserAgent =
|
|
56598
|
-
return
|
|
56596
|
+
}, nP.getUA = e2, nP.isAndroid = eL, nP.isBrowser = eA, nP.isChrome = ez, nP.isChromium = ej, nP.isConsole = eE, nP.isDesktop = eR, nP.isEdge = e5, nP.isEdgeChromium = te, nP.isElectron = e6, nP.isEmbedded = eD, nP.isFirefox = eV, nP.isIE = eq, nP.isIOS = eN, nP.isIOS13 = e8, nP.isIPad13 = e9, nP.isIPhone13 = e4, nP.isIPod13 = e7, nP.isLegacyEdge = tt, nP.isMIUI = tn, nP.isMacOs = to, nP.isMobile = eI, nP.isMobileOnly = eO, nP.isMobileSafari = e$, nP.isOpera = eU, nP.isSafari = eW, nP.isSamsungBrowser = ti, nP.isSmartTV = eS, nP.isTablet = eM, nP.isWearable = eT, nP.isWinPhone = eF, nP.isWindows = tr, nP.isYandex = e0, nP.mobileModel = eY, nP.mobileVendor = eK, nP.osName = eX, nP.osVersion = eQ, nP.parseUserAgent = f, nP.setUserAgent = function(t) {
|
|
56597
|
+
return p(t);
|
|
56599
56598
|
}, nP.useDeviceData = ta, nP.useDeviceSelectors = function(t) {
|
|
56600
56599
|
var r = ta(t || window.navigator.userAgent);
|
|
56601
56600
|
return [
|
|
@@ -56801,7 +56800,7 @@
|
|
|
56801
56800
|
var nM = oX(function() {
|
|
56802
56801
|
if (tW) return tV;
|
|
56803
56802
|
tW = 1;
|
|
56804
|
-
var t = 0 / 0, r = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, i = /^0o[0-7]+$/i, a = parseInt, s = "object" == typeof oQ && oQ && oQ.Object === Object && oQ, c = "object" == typeof self && self && self.Object === Object && self, l = s || c || Function("return this")(), d = Object.prototype.toString, u = Math.max,
|
|
56803
|
+
var t = 0 / 0, r = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, i = /^0o[0-7]+$/i, a = parseInt, s = "object" == typeof oQ && oQ && oQ.Object === Object && oQ, c = "object" == typeof self && self && self.Object === Object && self, l = s || c || Function("return this")(), d = Object.prototype.toString, u = Math.max, p = Math.min, f = function() {
|
|
56805
56804
|
return l.Date.now();
|
|
56806
56805
|
};
|
|
56807
56806
|
function h(t) {
|
|
@@ -56817,8 +56816,8 @@
|
|
|
56817
56816
|
}
|
|
56818
56817
|
if ("string" != typeof s) return 0 === s ? s : +s;
|
|
56819
56818
|
s = s.replace(r, "");
|
|
56820
|
-
var
|
|
56821
|
-
return
|
|
56819
|
+
var p = n.test(s);
|
|
56820
|
+
return p || i.test(s) ? a(s.slice(2), p ? 2 : 8) : o.test(s) ? t : +s;
|
|
56822
56821
|
}
|
|
56823
56822
|
return tV = function(t, r, o) {
|
|
56824
56823
|
var n, i, a, s, c, l, d = 0, g = !1, b = !1, v = !0;
|
|
@@ -56833,15 +56832,15 @@
|
|
|
56833
56832
|
return void 0 === l || o >= r || o < 0 || b && n >= a;
|
|
56834
56833
|
}
|
|
56835
56834
|
function y() {
|
|
56836
|
-
var t, o, n, i, s =
|
|
56835
|
+
var t, o, n, i, s = f();
|
|
56837
56836
|
if (k(s)) return C(s);
|
|
56838
|
-
c = setTimeout(y, (o = (t = s) - l, n = t - d, i = r - o, b ?
|
|
56837
|
+
c = setTimeout(y, (o = (t = s) - l, n = t - d, i = r - o, b ? p(i, a - n) : i));
|
|
56839
56838
|
}
|
|
56840
56839
|
function C(t) {
|
|
56841
56840
|
return (c = void 0, v && n) ? w(t) : (n = i = void 0, s);
|
|
56842
56841
|
}
|
|
56843
56842
|
function B() {
|
|
56844
|
-
var t, o =
|
|
56843
|
+
var t, o = f(), a = k(o);
|
|
56845
56844
|
if (n = arguments, i = this, l = o, a) {
|
|
56846
56845
|
if (void 0 === c) {
|
|
56847
56846
|
return d = t = l, c = setTimeout(y, r), g ? w(t) : s;
|
|
@@ -56853,7 +56852,7 @@
|
|
|
56853
56852
|
return B.cancel = function() {
|
|
56854
56853
|
void 0 !== c && clearTimeout(c), d = 0, n = l = i = c = void 0;
|
|
56855
56854
|
}, B.flush = function() {
|
|
56856
|
-
return void 0 === c ? s : C(
|
|
56855
|
+
return void 0 === c ? s : C(f());
|
|
56857
56856
|
}, B;
|
|
56858
56857
|
};
|
|
56859
56858
|
}()), nA = {
|
|
@@ -56864,11 +56863,11 @@
|
|
|
56864
56863
|
var t = tq ? nA.exports : (tq = 1, nA.exports = function() {
|
|
56865
56864
|
if (tU) return nR;
|
|
56866
56865
|
tU = 1;
|
|
56867
|
-
var t = "function" == typeof Symbol && Symbol.for, r = t ? Symbol.for("react.element") : 60103, o = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112,
|
|
56866
|
+
var t = "function" == typeof Symbol && Symbol.for, r = t ? Symbol.for("react.element") : 60103, o = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, p = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, h = t ? Symbol.for("react.memo") : 60115, m = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, b = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
|
|
56868
56867
|
function k(t) {
|
|
56869
56868
|
if ("object" == typeof t && null !== t) {
|
|
56870
|
-
var
|
|
56871
|
-
switch(
|
|
56869
|
+
var f = t.$$typeof;
|
|
56870
|
+
switch(f){
|
|
56872
56871
|
case r:
|
|
56873
56872
|
switch(t = t.type){
|
|
56874
56873
|
case l:
|
|
@@ -56876,7 +56875,7 @@
|
|
|
56876
56875
|
case n:
|
|
56877
56876
|
case a:
|
|
56878
56877
|
case i:
|
|
56879
|
-
case
|
|
56878
|
+
case p:
|
|
56880
56879
|
return t;
|
|
56881
56880
|
default:
|
|
56882
56881
|
switch(t = t && t.$$typeof){
|
|
@@ -56887,18 +56886,18 @@
|
|
|
56887
56886
|
case s:
|
|
56888
56887
|
return t;
|
|
56889
56888
|
default:
|
|
56890
|
-
return
|
|
56889
|
+
return f;
|
|
56891
56890
|
}
|
|
56892
56891
|
}
|
|
56893
56892
|
case o:
|
|
56894
|
-
return
|
|
56893
|
+
return f;
|
|
56895
56894
|
}
|
|
56896
56895
|
}
|
|
56897
56896
|
}
|
|
56898
56897
|
function y(t) {
|
|
56899
56898
|
return k(t) === d;
|
|
56900
56899
|
}
|
|
56901
|
-
return nR.AsyncMode = l, nR.ConcurrentMode = d, nR.ContextConsumer = c, nR.ContextProvider = s, nR.Element = r, nR.ForwardRef = u, nR.Fragment = n, nR.Lazy = m, nR.Memo = h, nR.Portal = o, nR.Profiler = a, nR.StrictMode = i, nR.Suspense =
|
|
56900
|
+
return nR.AsyncMode = l, nR.ConcurrentMode = d, nR.ContextConsumer = c, nR.ContextProvider = s, nR.Element = r, nR.ForwardRef = u, nR.Fragment = n, nR.Lazy = m, nR.Memo = h, nR.Portal = o, nR.Profiler = a, nR.StrictMode = i, nR.Suspense = p, nR.isAsyncMode = function(t) {
|
|
56902
56901
|
return y(t) || k(t) === l;
|
|
56903
56902
|
}, nR.isConcurrentMode = y, nR.isContextConsumer = function(t) {
|
|
56904
56903
|
return k(t) === c;
|
|
@@ -56921,9 +56920,9 @@
|
|
|
56921
56920
|
}, nR.isStrictMode = function(t) {
|
|
56922
56921
|
return k(t) === i;
|
|
56923
56922
|
}, nR.isSuspense = function(t) {
|
|
56924
|
-
return k(t) ===
|
|
56923
|
+
return k(t) === p;
|
|
56925
56924
|
}, nR.isValidElementType = function(t) {
|
|
56926
|
-
return "string" == typeof t || "function" == typeof t || t === n || t === d || t === a || t === i || t ===
|
|
56925
|
+
return "string" == typeof t || "function" == typeof t || t === n || t === d || t === a || t === i || t === p || t === f || "object" == typeof t && null !== t && (t.$$typeof === m || t.$$typeof === h || t.$$typeof === s || t.$$typeof === c || t.$$typeof === u || t.$$typeof === b || t.$$typeof === v || t.$$typeof === w || t.$$typeof === g);
|
|
56927
56926
|
}, nR.typeOf = k, nR;
|
|
56928
56927
|
}(), nA.exports), r = {
|
|
56929
56928
|
childContextTypes: !0,
|
|
@@ -56963,12 +56962,12 @@
|
|
|
56963
56962
|
displayName: !0,
|
|
56964
56963
|
propTypes: !0
|
|
56965
56964
|
}, i[t.Memo] = n;
|
|
56966
|
-
var s = Object.defineProperty, c = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, u = Object.getPrototypeOf,
|
|
56965
|
+
var s = Object.defineProperty, c = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, u = Object.getPrototypeOf, p = Object.prototype;
|
|
56967
56966
|
return tQ = function t(r, n, i) {
|
|
56968
56967
|
if ("string" != typeof n) {
|
|
56969
|
-
if (
|
|
56970
|
-
var
|
|
56971
|
-
|
|
56968
|
+
if (p) {
|
|
56969
|
+
var f = u(n);
|
|
56970
|
+
f && f !== p && t(r, f, i);
|
|
56972
56971
|
}
|
|
56973
56972
|
var h = c(n);
|
|
56974
56973
|
l && (h = h.concat(l(n)));
|
|
@@ -57125,7 +57124,7 @@
|
|
|
57125
57124
|
else console.warn("Flashlight is not supported or not initialized.");
|
|
57126
57125
|
}, [
|
|
57127
57126
|
c
|
|
57128
|
-
]),
|
|
57127
|
+
]), p = reactExports.useCallback(async ()=>{
|
|
57129
57128
|
if (c && c.isSupported()) try {
|
|
57130
57129
|
await c.turnOff(), d.current = !1;
|
|
57131
57130
|
} catch (t) {
|
|
@@ -57133,15 +57132,15 @@
|
|
|
57133
57132
|
}
|
|
57134
57133
|
}, [
|
|
57135
57134
|
c
|
|
57136
|
-
]),
|
|
57135
|
+
]), f = React.useMemo(()=>({
|
|
57137
57136
|
turnOnFlashlight: u,
|
|
57138
|
-
turnOffFlashlight:
|
|
57137
|
+
turnOffFlashlight: p
|
|
57139
57138
|
}), [
|
|
57140
57139
|
u,
|
|
57141
|
-
|
|
57140
|
+
p
|
|
57142
57141
|
]);
|
|
57143
57142
|
return oZ.jsx(nU.Provider, {
|
|
57144
|
-
value:
|
|
57143
|
+
value: f,
|
|
57145
57144
|
children: s
|
|
57146
57145
|
});
|
|
57147
57146
|
}, { Errors: nQ } = ra$1, nX = dt$1.div`
|
|
@@ -57187,7 +57186,7 @@
|
|
|
57187
57186
|
`;
|
|
57188
57187
|
function nJ(r) {
|
|
57189
57188
|
var s, c;
|
|
57190
|
-
let l, { checkCameraMode: d, frontCamera: u, onClose:
|
|
57189
|
+
let l, { checkCameraMode: d, frontCamera: u, onClose: p, children: f, onVideoPlayed: w, flipHorizontal: k, videoSettings: y, refVideo: C, onError: B, closeButton: _, videoClassName: x, scale: P, defaultCameraId: S, onWarning: E } = r, T = reactExports.useRef(), { lang: D } = no$1.useSDKSettings(), { sendEvent: $ } = iN$1.useSDKTracking(), j = nz("closeButton.src", "ic_close.svg"), [I, O] = reactExports.useState(""), M = reactExports.useRef(!1), A = reactExports.useRef(!1), R = reactExports.useRef(!1), L = reactExports.useRef(), F = reactExports.useRef([]), N = reactExports.useRef(""), z = gB(), V = reactExports.useCallback((t)=>{
|
|
57191
57190
|
B && B(t);
|
|
57192
57191
|
}, [
|
|
57193
57192
|
B
|
|
@@ -57263,8 +57262,8 @@
|
|
|
57263
57262
|
},
|
|
57264
57263
|
...o
|
|
57265
57264
|
}
|
|
57266
|
-
},
|
|
57267
|
-
if (await U(), q(), !
|
|
57265
|
+
}, p = await navigator.mediaDevices.getUserMedia(n);
|
|
57266
|
+
if (await U(), q(), !p) return O(z("not_supported")), V(nQ.not_supported), null;
|
|
57268
57267
|
a(performance.now(), "end"), window.tv_last_req_camera_complete = !0, c() - s() < 1600 ? $({
|
|
57269
57268
|
tag: "cam_permission",
|
|
57270
57269
|
event: "user_activity.cam",
|
|
@@ -57277,13 +57276,13 @@
|
|
|
57277
57276
|
log: {}
|
|
57278
57277
|
});
|
|
57279
57278
|
try {
|
|
57280
|
-
let t =
|
|
57281
|
-
if (h7.addExifData("device_info.camera_label_dimension.got", `${t.width}x${t.height}`), h7.addExifData("camera_res_selected", `${t.width}x${t.height}`), "function" == typeof
|
|
57282
|
-
let t =
|
|
57279
|
+
let t = p.getVideoTracks()[0].getSettings();
|
|
57280
|
+
if (h7.addExifData("device_info.camera_label_dimension.got", `${t.width}x${t.height}`), h7.addExifData("camera_res_selected", `${t.width}x${t.height}`), "function" == typeof p.getVideoTracks()[0].getCapabilities) {
|
|
57281
|
+
let t = p.getVideoTracks()[0].getCapabilities();
|
|
57283
57282
|
h7.addExifData("device_info.camera_capabilities", JSON.stringify(t));
|
|
57284
57283
|
}
|
|
57285
57284
|
} catch (t) {}
|
|
57286
|
-
return
|
|
57285
|
+
return p;
|
|
57287
57286
|
} catch (t) {
|
|
57288
57287
|
a(performance.now(), "end"), "NotAllowedError" === t.name ? (O(z("no_permission")), V(nQ.no_permission), A.current = !0, $({
|
|
57289
57288
|
tag: "cam_permission",
|
|
@@ -57394,13 +57393,13 @@
|
|
|
57394
57393
|
z
|
|
57395
57394
|
]);
|
|
57396
57395
|
let H = reactExports.useCallback(()=>{
|
|
57397
|
-
W(),
|
|
57396
|
+
W(), p && p(), $({
|
|
57398
57397
|
tag: "result",
|
|
57399
57398
|
event: "user_activity.cancel",
|
|
57400
57399
|
log: {}
|
|
57401
57400
|
});
|
|
57402
57401
|
}, [
|
|
57403
|
-
|
|
57402
|
+
p,
|
|
57404
57403
|
W,
|
|
57405
57404
|
$
|
|
57406
57405
|
]);
|
|
@@ -57463,7 +57462,7 @@
|
|
|
57463
57462
|
className: x,
|
|
57464
57463
|
scale: P
|
|
57465
57464
|
}),
|
|
57466
|
-
|
|
57465
|
+
f,
|
|
57467
57466
|
_ ? /*#__PURE__*/ React.cloneElement(_, {
|
|
57468
57467
|
onClick: H,
|
|
57469
57468
|
"data-testid": "close-camera"
|
|
@@ -57663,32 +57662,32 @@
|
|
|
57663
57662
|
"left center",
|
|
57664
57663
|
"left bottom"
|
|
57665
57664
|
], io = function(t, r, o, n, i) {
|
|
57666
|
-
var a = i.offsetX, s = i.offsetY, c = 8 * !!n, l = o.split(" "), d = t.top + t.height / 2, u = t.left + t.width / 2,
|
|
57665
|
+
var a = i.offsetX, s = i.offsetY, c = 8 * !!n, l = o.split(" "), d = t.top + t.height / 2, u = t.left + t.width / 2, p = r.height, f = r.width, h = d - p / 2, m = u - f / 2, g = "", b = "0%", v = "0%";
|
|
57667
57666
|
switch(l[0]){
|
|
57668
57667
|
case "top":
|
|
57669
|
-
h -=
|
|
57668
|
+
h -= p / 2 + t.height / 2 + c, g = "rotate(180deg) translateX(50%)", b = "100%", v = "50%";
|
|
57670
57669
|
break;
|
|
57671
57670
|
case "bottom":
|
|
57672
|
-
h +=
|
|
57671
|
+
h += p / 2 + t.height / 2 + c, g = "rotate(0deg) translateY(-100%) translateX(-50%)", v = "50%";
|
|
57673
57672
|
break;
|
|
57674
57673
|
case "left":
|
|
57675
|
-
m -=
|
|
57674
|
+
m -= f / 2 + t.width / 2 + c, g = " rotate(90deg) translateY(50%) translateX(-25%)", v = "100%", b = "50%";
|
|
57676
57675
|
break;
|
|
57677
57676
|
case "right":
|
|
57678
|
-
m +=
|
|
57677
|
+
m += f / 2 + t.width / 2 + c, g = "rotate(-90deg) translateY(-150%) translateX(25%)", b = "50%";
|
|
57679
57678
|
}
|
|
57680
57679
|
switch(l[1]){
|
|
57681
57680
|
case "top":
|
|
57682
57681
|
h = t.top, b = t.height / 2 + "px";
|
|
57683
57682
|
break;
|
|
57684
57683
|
case "bottom":
|
|
57685
|
-
h = t.top -
|
|
57684
|
+
h = t.top - p + t.height, b = p - t.height / 2 + "px";
|
|
57686
57685
|
break;
|
|
57687
57686
|
case "left":
|
|
57688
57687
|
m = t.left, v = t.width / 2 + "px";
|
|
57689
57688
|
break;
|
|
57690
57689
|
case "right":
|
|
57691
|
-
m = t.left -
|
|
57690
|
+
m = t.left - f + t.width, v = f - t.width / 2 + "px";
|
|
57692
57691
|
}
|
|
57693
57692
|
return h = "top" === l[0] ? h - s : h + s, {
|
|
57694
57693
|
top: h,
|
|
@@ -57716,12 +57715,12 @@
|
|
|
57716
57715
|
left: 0,
|
|
57717
57716
|
top: 0,
|
|
57718
57717
|
transform: "rotate(135deg)"
|
|
57719
|
-
}, d = 0, u = ii(a),
|
|
57718
|
+
}, d = 0, u = ii(a), p = Array.isArray(o) ? o : [
|
|
57720
57719
|
o
|
|
57721
57720
|
];
|
|
57722
|
-
for((a || Array.isArray(o)) && (
|
|
57723
|
-
var
|
|
57724
|
-
top: (l = io(t, r,
|
|
57721
|
+
for((a || Array.isArray(o)) && (p = [].concat(p, ir)); d < p.length;){
|
|
57722
|
+
var f = {
|
|
57723
|
+
top: (l = io(t, r, p[d], n, {
|
|
57725
57724
|
offsetX: s,
|
|
57726
57725
|
offsetY: c
|
|
57727
57726
|
})).top,
|
|
@@ -57729,7 +57728,7 @@
|
|
|
57729
57728
|
width: r.width,
|
|
57730
57729
|
height: r.height
|
|
57731
57730
|
};
|
|
57732
|
-
if (
|
|
57731
|
+
if (f.top <= u.top || f.left <= u.left || f.top + f.height >= u.top + u.height || f.left + f.width >= u.left + u.width) d++;
|
|
57733
57732
|
else break;
|
|
57734
57733
|
}
|
|
57735
57734
|
return l;
|
|
@@ -57737,7 +57736,7 @@
|
|
|
57737
57736
|
var t = document.getElementById("popup-root");
|
|
57738
57737
|
return null === t && ((t = document.createElement("div")).setAttribute("id", "popup-root"), document.body.appendChild(t)), t;
|
|
57739
57738
|
}, il = /*#__PURE__*/ reactExports.forwardRef(function(r, a) {
|
|
57740
|
-
var s = r.trigger, c = void 0 === s ? null : s, l = r.onOpen, u = void 0 === l ? function() {} : l,
|
|
57739
|
+
var s = r.trigger, c = void 0 === s ? null : s, l = r.onOpen, u = void 0 === l ? function() {} : l, p = r.onClose, f = void 0 === p ? function() {} : p, h = r.defaultOpen, m = r.open, g = void 0 === m ? void 0 : m, b = r.disabled, v = void 0 !== b && b, w = r.nested, k = void 0 !== w && w, y = r.closeOnDocumentClick, C = void 0 === y || y, B = r.repositionOnResize, _ = r.closeOnEscape, x = r.on, P = void 0 === x ? [
|
|
57741
57740
|
"click"
|
|
57742
57741
|
] : x, S = r.contentStyle, E = void 0 === S ? {} : S, T = r.arrowStyle, D = void 0 === T ? {} : T, $ = r.overlayStyle, j = r.className, I = void 0 === j ? "" : j, O = r.position, M = void 0 === O ? "bottom center" : O, A = r.modal, R = void 0 !== A && A, L = r.lockScroll, F = void 0 !== L && L, N = r.arrow, z = void 0 === N || N, V = r.offsetX, W = void 0 === V ? 0 : V, U = r.offsetY, q = void 0 === U ? 0 : U, Q = r.mouseEnterDelay, X = void 0 === Q ? 100 : Q, H = r.mouseLeaveDelay, Z = void 0 === H ? 100 : H, K = r.keepTooltipInside, Y = void 0 !== K && K, J = r.children, ee = reactExports.useState(g || void 0 !== h && h), et = ee[0], er = ee[1], eo = reactExports.useRef(null), en = reactExports.useRef(null), ei = reactExports.useRef(null), ea = reactExports.useRef(null), es = reactExports.useRef("popup-" + ++is), ec = !!R || !c, el = reactExports.useRef(0);
|
|
57743
57742
|
n7(function() {
|
|
@@ -57759,16 +57758,16 @@
|
|
|
57759
57758
|
}, eu = function(t) {
|
|
57760
57759
|
var r;
|
|
57761
57760
|
et && !v && (er(!1), ec && (null == (r = ea.current) || r.focus()), setTimeout(function() {
|
|
57762
|
-
return
|
|
57761
|
+
return f(t);
|
|
57763
57762
|
}, 0));
|
|
57764
|
-
}, ef = function(t) {
|
|
57765
|
-
null == t || t.stopPropagation(), et ? eu(t) : ed(t);
|
|
57766
57763
|
}, ep = function(t) {
|
|
57764
|
+
null == t || t.stopPropagation(), et ? eu(t) : ed(t);
|
|
57765
|
+
}, ef = function(t) {
|
|
57767
57766
|
clearTimeout(el.current), el.current = setTimeout(function() {
|
|
57768
57767
|
return ed(t);
|
|
57769
57768
|
}, X);
|
|
57770
57769
|
}, eh = function(t) {
|
|
57771
|
-
null == t || t.preventDefault(),
|
|
57770
|
+
null == t || t.preventDefault(), ep();
|
|
57772
57771
|
}, em = function(t) {
|
|
57773
57772
|
clearTimeout(el.current), el.current = setTimeout(function() {
|
|
57774
57773
|
return eu(t);
|
|
@@ -57790,7 +57789,7 @@
|
|
|
57790
57789
|
eu();
|
|
57791
57790
|
},
|
|
57792
57791
|
toggle: function() {
|
|
57793
|
-
|
|
57792
|
+
ep();
|
|
57794
57793
|
}
|
|
57795
57794
|
};
|
|
57796
57795
|
});
|
|
@@ -57824,7 +57823,7 @@
|
|
|
57824
57823
|
t.stopPropagation();
|
|
57825
57824
|
}
|
|
57826
57825
|
};
|
|
57827
|
-
return !R && P.indexOf("hover") >= 0 && (r.onMouseEnter =
|
|
57826
|
+
return !R && P.indexOf("hover") >= 0 && (r.onMouseEnter = ef, r.onMouseLeave = em), r;
|
|
57828
57827
|
}, ey = function() {
|
|
57829
57828
|
return /*#__PURE__*/ React.createElement("div", Object.assign({}, ek(), {
|
|
57830
57829
|
key: "C",
|
|
@@ -57871,16 +57870,16 @@
|
|
|
57871
57870
|
P
|
|
57872
57871
|
], n = 0, i = o.length; n < i; n++)switch(o[n]){
|
|
57873
57872
|
case "click":
|
|
57874
|
-
r.onClick =
|
|
57873
|
+
r.onClick = ep;
|
|
57875
57874
|
break;
|
|
57876
57875
|
case "right-click":
|
|
57877
57876
|
r.onContextMenu = eh;
|
|
57878
57877
|
break;
|
|
57879
57878
|
case "hover":
|
|
57880
|
-
r.onMouseEnter =
|
|
57879
|
+
r.onMouseEnter = ef, r.onMouseLeave = em;
|
|
57881
57880
|
break;
|
|
57882
57881
|
case "focus":
|
|
57883
|
-
r.onFocus =
|
|
57882
|
+
r.onFocus = ef, r.onBlur = em;
|
|
57884
57883
|
}
|
|
57885
57884
|
if ("function" == typeof c) {
|
|
57886
57885
|
var a = c(et);
|
|
@@ -58146,8 +58145,8 @@
|
|
|
58146
58145
|
}
|
|
58147
58146
|
}
|
|
58148
58147
|
}, im = "default", ig = "error";
|
|
58149
|
-
function ib({ className: t, width: r, height: o, type: n, strokeStyles: i, strokeWidth: a, radius: s, paddingStyle: c, defaultRectStyles: l, errorRectStyles: d }) {
|
|
58150
|
-
let
|
|
58148
|
+
function ib({ className: t, width: r, height: o, type: n, strokeStyles: i, strokeWidth: a, radius: s, paddingStyle: c, defaultRectStyles: l, errorRectStyles: d, paddingCornerMultiplier: u = 1.5 }) {
|
|
58149
|
+
let f = reactExports.useMemo(()=>({
|
|
58151
58150
|
[im]: l,
|
|
58152
58151
|
[ig]: d,
|
|
58153
58152
|
...i
|
|
@@ -58155,7 +58154,7 @@
|
|
|
58155
58154
|
l,
|
|
58156
58155
|
d,
|
|
58157
58156
|
i
|
|
58158
|
-
]),
|
|
58157
|
+
]), h = s + a * u, m = f[n];
|
|
58159
58158
|
return oZ.jsxs("svg", {
|
|
58160
58159
|
width: r,
|
|
58161
58160
|
height: o,
|
|
@@ -58168,22 +58167,22 @@
|
|
|
58168
58167
|
ry: s,
|
|
58169
58168
|
width: r - a,
|
|
58170
58169
|
height: o - a,
|
|
58171
|
-
style:
|
|
58170
|
+
style: m
|
|
58172
58171
|
}),
|
|
58173
58172
|
oZ.jsx("path", {
|
|
58174
|
-
d: `M0,${
|
|
58173
|
+
d: `M0,${h} Q0,0 ${h},0 L0,0 Z`,
|
|
58175
58174
|
style: c
|
|
58176
58175
|
}),
|
|
58177
58176
|
oZ.jsx("path", {
|
|
58178
|
-
d: `M0,${o -
|
|
58177
|
+
d: `M0,${o - h} Q0,${o} ${h},${o} L0,${o} Z`,
|
|
58179
58178
|
style: c
|
|
58180
58179
|
}),
|
|
58181
58180
|
oZ.jsx("path", {
|
|
58182
|
-
d: `M${r -
|
|
58181
|
+
d: `M${r - h},${o} Q${r},${o} ${r},${o - h} L${r},${o} Z`,
|
|
58183
58182
|
style: c
|
|
58184
58183
|
}),
|
|
58185
58184
|
oZ.jsx("path", {
|
|
58186
|
-
d: `M${r -
|
|
58185
|
+
d: `M${r - h},0 Q${r},0 ${r},${h} L${r},0 Z`,
|
|
58187
58186
|
style: c
|
|
58188
58187
|
})
|
|
58189
58188
|
]
|
|
@@ -58202,7 +58201,8 @@
|
|
|
58202
58201
|
radius: PropTypes.number,
|
|
58203
58202
|
paddingStyle: PropTypes.shape({}),
|
|
58204
58203
|
defaultRectStyles: PropTypes.shape({}),
|
|
58205
|
-
errorRectStyles: PropTypes.shape({})
|
|
58204
|
+
errorRectStyles: PropTypes.shape({}),
|
|
58205
|
+
paddingCornerMultiplier: PropTypes.number
|
|
58206
58206
|
}, ib.defaultProps = {
|
|
58207
58207
|
className: "",
|
|
58208
58208
|
width: ih.IDCapturing.rectangleMask.width,
|
|
@@ -58213,7 +58213,8 @@
|
|
|
58213
58213
|
radius: ih.IDCapturing.rectangleMask.radius,
|
|
58214
58214
|
paddingStyle: ih.IDCapturing.rectangleMask.paddingStyle,
|
|
58215
58215
|
defaultRectStyles: ih.IDCapturing.rectangleMask.default,
|
|
58216
|
-
errorRectStyles: ih.IDCapturing.rectangleMask.error
|
|
58216
|
+
errorRectStyles: ih.IDCapturing.rectangleMask.error,
|
|
58217
|
+
paddingCornerMultiplier: 1.5
|
|
58217
58218
|
};
|
|
58218
58219
|
let iv = mt$1`
|
|
58219
58220
|
from {
|
|
@@ -58372,8 +58373,8 @@
|
|
|
58372
58373
|
if (o && !a || !o && !s) return null;
|
|
58373
58374
|
let { width: c, height: l } = r, d = document.createElement("canvas"), u = document.createElement("canvas");
|
|
58374
58375
|
d.width = c / 2, u.width = c / 2, d.height = l, u.height = l;
|
|
58375
|
-
let
|
|
58376
|
-
|
|
58376
|
+
let p = d.getContext("2d"), f = u.getContext("2d");
|
|
58377
|
+
p.drawImage(r, 0, 0, c / 2, l, 0, 0, c / 2, l), f.drawImage(r, c / 2, 0, c / 2, l, 0, 0, c / 2, l);
|
|
58377
58378
|
let [h, m] = await Promise.all([
|
|
58378
58379
|
fb.getModelPredictions({
|
|
58379
58380
|
model: t,
|
|
@@ -58414,13 +58415,13 @@
|
|
|
58414
58415
|
return i;
|
|
58415
58416
|
}, iz = (t, r)=>parseFloat(t.toFixed(r)), iV = ({ currentFrameBlurScore: t, incomingFrameBlurScore: r, currentFrameGlareScore: o, incomingFrameGlareScore: n, settings: i, blurLargeThreshold: a, blurSmallThreshold: s })=>{
|
|
58416
58417
|
if (null === t) return !0;
|
|
58417
|
-
let { enableBlurCheck: c, enableGlareCheck: l } = i, d = t?.small, u = t?.large,
|
|
58418
|
-
return (!c || !(
|
|
58418
|
+
let { enableBlurCheck: c, enableGlareCheck: l } = i, d = t?.small, u = t?.large, p = r?.small, f = r?.large;
|
|
58419
|
+
return (!c || !(p < s) && !(f < a)) && (Math.abs(p - d) > Number.EPSILON ? p > d : Math.abs(f - u) > Number.EPSILON ? f > u : !!(l && Math.abs(n - o) > Number.EPSILON) && n > o);
|
|
58419
58420
|
};
|
|
58420
58421
|
function iW(t, r, o, n, i) {
|
|
58421
58422
|
o && (o.strokeStyle = r, o.lineWidth = 2, t.forEach((t)=>{
|
|
58422
|
-
let [r, a, s, c] = t, l = (r + i.x) * n, d = (a + i.y) * n, u = (s + i.x) * n,
|
|
58423
|
-
o.strokeRect(l, d, u - l,
|
|
58423
|
+
let [r, a, s, c] = t, l = (r + i.x) * n, d = (a + i.y) * n, u = (s + i.x) * n, p = (c + i.y) * n;
|
|
58424
|
+
o.strokeRect(l, d, u - l, p - d);
|
|
58424
58425
|
}));
|
|
58425
58426
|
}
|
|
58426
58427
|
function iU(t) {
|
|
@@ -59226,14 +59227,14 @@
|
|
|
59226
59227
|
_drawToCanvas(t, r, o, n, i, a) {
|
|
59227
59228
|
if (this._animationFrameId && cancelAnimationFrame(this._animationFrameId), !t || !a || this._stopDrawing) return;
|
|
59228
59229
|
this._lastFrameTime = 0;
|
|
59229
|
-
let { cropX: s, cropY: c, cropWidth: l, cropHeight: d } = a, u = 1e3 / i,
|
|
59230
|
+
let { cropX: s, cropY: c, cropWidth: l, cropHeight: d } = a, u = 1e3 / i, p = (i)=>{
|
|
59230
59231
|
if (this._stopDrawing) {
|
|
59231
59232
|
this._animationFrameId = null;
|
|
59232
59233
|
return;
|
|
59233
59234
|
}
|
|
59234
|
-
i - this._lastFrameTime >= u && (this._lastFrameTime = i, t.drawImage(r, s, c, l, d, 0, 0, o, n)), this._animationFrameId = requestAnimationFrame(
|
|
59235
|
+
i - this._lastFrameTime >= u && (this._lastFrameTime = i, t.drawImage(r, s, c, l, d, 0, 0, o, n)), this._animationFrameId = requestAnimationFrame(p);
|
|
59235
59236
|
};
|
|
59236
|
-
this._animationFrameId = requestAnimationFrame(
|
|
59237
|
+
this._animationFrameId = requestAnimationFrame(p);
|
|
59237
59238
|
}
|
|
59238
59239
|
stopDrawing() {
|
|
59239
59240
|
this._stopDrawing = !0, this._animationFrameId && (cancelAnimationFrame(this._animationFrameId), this._animationFrameId = null);
|
|
@@ -59243,10 +59244,10 @@
|
|
|
59243
59244
|
this.clearVideoChunks(), this._stopDrawing = !1;
|
|
59244
59245
|
let { videoFrameWidth: a, videoFrameHeight: s, videoBitrate: c, fps: l } = o, d = l || this.DEFAULT_VIDEO_FPS, u = r.cropWidth / r.cropHeight;
|
|
59245
59246
|
aE(a) ? (n = a, i = a / u) : aE(s) ? (n = s * u, i = s) : (n = 400, i = 800);
|
|
59246
|
-
let
|
|
59247
|
-
|
|
59248
|
-
let
|
|
59249
|
-
if (!
|
|
59247
|
+
let p = document.createElement("canvas");
|
|
59248
|
+
p.width = n, p.height = i;
|
|
59249
|
+
let f = p.getContext("2d");
|
|
59250
|
+
if (!f) return console.error("Could not get canvas context."), {
|
|
59250
59251
|
mediaRecorder: null
|
|
59251
59252
|
};
|
|
59252
59253
|
try {
|
|
@@ -59254,7 +59255,7 @@
|
|
|
59254
59255
|
mimeType: "video/webm",
|
|
59255
59256
|
videoBitsPerSecond: c
|
|
59256
59257
|
}, i = nT.isIOS ? "video/mp4" : "video/webm";
|
|
59257
|
-
if (MediaRecorder.isTypeSupported(i) && (this._stream && this._stream.getTracks().forEach((t)=>t.stop()), this._stopDrawing = !1, this._drawToCanvas(
|
|
59258
|
+
if (MediaRecorder.isTypeSupported(i) && (this._stream && this._stream.getTracks().forEach((t)=>t.stop()), this._stopDrawing = !1, this._drawToCanvas(f, t, n, n / u, d, r), this._stream = p.captureStream(), o = {
|
|
59258
59259
|
mimeType: i,
|
|
59259
59260
|
videoBitsPerSecond: Math.min(c, this.MAX_VIDEO_BITRATE)
|
|
59260
59261
|
}), !this._stream) throw Error("Failed to create a media stream for recording.");
|
|
@@ -59309,7 +59310,7 @@
|
|
|
59309
59310
|
}
|
|
59310
59311
|
}, [
|
|
59311
59312
|
i
|
|
59312
|
-
]),
|
|
59313
|
+
]), f = reactExports.useCallback(()=>{
|
|
59313
59314
|
if (s.current && r.current) try {
|
|
59314
59315
|
s.current.discardRecording(), r.current = !1;
|
|
59315
59316
|
} catch (t) {
|
|
@@ -59318,19 +59319,19 @@
|
|
|
59318
59319
|
}, []);
|
|
59319
59320
|
return reactExports.useEffect(()=>{
|
|
59320
59321
|
let t = ()=>{
|
|
59321
|
-
"hidden" === document.visibilityState ?
|
|
59322
|
+
"hidden" === document.visibilityState ? f() : "visible" === document.visibilityState && c.current && l(c.current);
|
|
59322
59323
|
};
|
|
59323
59324
|
return document.addEventListener("visibilitychange", t), ()=>{
|
|
59324
59325
|
document.removeEventListener("visibilitychange", t);
|
|
59325
59326
|
};
|
|
59326
59327
|
}, [
|
|
59327
59328
|
l,
|
|
59328
|
-
|
|
59329
|
+
f
|
|
59329
59330
|
]), {
|
|
59330
59331
|
startRecording: l,
|
|
59331
59332
|
stopRecording: d,
|
|
59332
59333
|
resetRecording: u,
|
|
59333
|
-
discardRecording:
|
|
59334
|
+
discardRecording: f
|
|
59334
59335
|
};
|
|
59335
59336
|
}, { Errors: a$ } = ra$1, aj = ()=>({
|
|
59336
59337
|
imageBlob: null,
|
|
@@ -59543,22 +59544,22 @@
|
|
|
59543
59544
|
});
|
|
59544
59545
|
}
|
|
59545
59546
|
let aU = /*#__PURE__*/ reactExports.forwardRef((t, r)=>{
|
|
59546
|
-
let { description: s, usePortraitMask: l, windowAndVideoInfo: u, refVideo:
|
|
59547
|
+
let { description: s, usePortraitMask: l, windowAndVideoInfo: u, refVideo: f, frontSide: k, allowedCardTypes: y, settings: C, onCaptureDone: B, onUISpacingChange: x, outputEncryptionSettings: S, isShowingSpinner: E } = t, T = nt$2(), [D, F] = reactExports.useState({}), { yMessage: N, yCaptureButton: z, yToggleButton: V, yInstruction: U, yCountdown: q } = D, Q = nz("IDCapturing.captureIcon.src", "ic_camera.svg"), X = nz("IDCapturing.captureIcon.disabled.src", "ic_camera.svg"), H = nN("IDCapturing.countdown.color")({
|
|
59547
59548
|
theme: T
|
|
59548
|
-
}), G = nz("IDCapturing.loadingIcon.src", "ic_loading.gif"), [Z, K] = reactExports.useState(""), Y = gB(), [J, ee] = reactExports.useState(null), [et, er] = reactExports.useState(""), [eo, en] = reactExports.useState(null), { showPopup: ei, popupShown: ea, popupType: es } = ad(), ec = reactExports.useContext(aO), [el, ed] = reactExports.useState(!1), eu = reactExports.useRef(()=>{}),
|
|
59549
|
+
}), G = nz("IDCapturing.loadingIcon.src", "ic_loading.gif"), [Z, K] = reactExports.useState(""), Y = gB(), [J, ee] = reactExports.useState(null), [et, er] = reactExports.useState(""), [eo, en] = reactExports.useState(null), { showPopup: ei, popupShown: ea, popupType: es } = ad(), ec = reactExports.useContext(aO), [el, ed] = reactExports.useState(!1), eu = reactExports.useRef(()=>{}), ep = reactExports.useCallback((t)=>{
|
|
59549
59550
|
null === t ? er("") : er(Y(t?.code, {
|
|
59550
59551
|
side: k ? Y("front") : Y("back")
|
|
59551
59552
|
}));
|
|
59552
59553
|
}, [
|
|
59553
59554
|
Y,
|
|
59554
59555
|
k
|
|
59555
|
-
]),
|
|
59556
|
+
]), ef = reactExports.useCallback(()=>{
|
|
59556
59557
|
ee(""), eu.current();
|
|
59557
59558
|
}, []), eh = reactExports.useCallback((...t)=>{
|
|
59558
59559
|
ee(""), B(...t);
|
|
59559
59560
|
}, [
|
|
59560
59561
|
B
|
|
59561
|
-
]), { warmupDone: em, isPostProcessing: eg, isAutoCapturing: eb, takePictureManually: ev, restartSession: ew, resetIsProcessingImageBlobTaken: ek, isAutoCaptureModeOn: ey, onToggleAutoCaptureMode: eC, autoCaptureDuration: eB } = (({ shouldStart: t, refVideo: r, cropArea: s, settings: l, onModelErrorChange: d, frontSide: u, onDebugInfoChange:
|
|
59562
|
+
]), { warmupDone: em, isPostProcessing: eg, isAutoCapturing: eb, takePictureManually: ev, restartSession: ew, resetIsProcessingImageBlobTaken: ek, isAutoCaptureModeOn: ey, onToggleAutoCaptureMode: eC, autoCaptureDuration: eB } = (({ shouldStart: t, refVideo: r, cropArea: s, settings: l, onModelErrorChange: d, frontSide: u, onDebugInfoChange: f, onAboutToTimeout: g, onSessionTimeout: k, onCaptureDone: y, outputEncryptionSettings: C, quality: B })=>{
|
|
59562
59563
|
let x = reactExports.useRef(!1), [S, E] = reactExports.useState(!1), T = reactExports.useRef(()=>{}), { sendEvent: D } = iN$1.useSDKTracking(), L = reactExports.useRef(), F = reactExports.useRef(), N = reactExports.useRef(), z = reactExports.useContext(aO), { enableAntiDebug: V } = no$1.useSDKSettings(), { onErrorCallback: W } = aS(), { playVoice: U } = iJ$1.useVoicePlayer(), [q, Q] = reactExports.useState(nn(l, "enableAutoCapture")), X = reactExports.useCallback(()=>{
|
|
59563
59564
|
Q((t)=>!t);
|
|
59564
59565
|
}, []), { autoCaptureWaitForBestImageTimeMs: H, manualCaptureWaitForBestImageTimeMs: G } = l, Z = q ? H : G;
|
|
@@ -59599,30 +59600,30 @@
|
|
|
59599
59600
|
l.blurLargeThresholdAuto,
|
|
59600
59601
|
l.blurLargeThresholdManual,
|
|
59601
59602
|
l.enableAutoCapture
|
|
59602
|
-
]), { isCapturing: et, refWorkingCanvas: er, stopCheckFrame: eo, checkFrame: en, warmupDone: ei, takePictureManually: ea, refAbleToRunBurstMode: es, refVirtualFrames: ec, refCardCoordinates: el, refBlurScores: ed, refGlareScores: eu, resetState:
|
|
59603
|
+
]), { isCapturing: et, refWorkingCanvas: er, stopCheckFrame: eo, checkFrame: en, warmupDone: ei, takePictureManually: ea, refAbleToRunBurstMode: es, refVirtualFrames: ec, refCardCoordinates: el, refBlurScores: ed, refGlareScores: eu, resetState: ep, resetRecordVideo: ef } = function({ isAutoCapture: t, blurSmallThreshold: r, blurLargeThreshold: s, refVideo: l, shouldStart: d, cropArea: u, settings: f, onError: m, frontSide: g, onAutoCaptureSuccess: b, quality: k, debug: y }) {
|
|
59603
59604
|
let C = reactExports.useRef(null);
|
|
59604
59605
|
null === C.current && (C.current = document.createElement("canvas"));
|
|
59605
|
-
let B = reactExports.useRef([]), x = reactExports.useRef({}), S = reactExports.useRef(!1), E = reactExports.useRef([]), T = reactExports.useRef(!1), D = reactExports.useRef(null), [I, O] = reactExports.useState(!1), M = reactExports.useRef(aj()), A = reactExports.useRef(aI()), R = reactExports.useRef(null), L = reactExports.useRef(!1), F = reactExports.useRef(!1), N = reactExports.useRef(null), z = reactExports.useRef(!1), V = reactExports.useRef({}), { customUrls: W } = no$1.useSDKSettings(), { onErrorCallback: U } = aS(), [q, Q] = reactExports.useState(!0), X = reactExports.useRef([]), H = reactExports.useRef([]), G = reactExports.useRef(t), { allowedCards: Z } =
|
|
59606
|
-
videoFrameWidth:
|
|
59607
|
-
videoFrameHeight:
|
|
59608
|
-
videoBitrate:
|
|
59609
|
-
fps:
|
|
59606
|
+
let B = reactExports.useRef([]), x = reactExports.useRef({}), S = reactExports.useRef(!1), E = reactExports.useRef([]), T = reactExports.useRef(!1), D = reactExports.useRef(null), [I, O] = reactExports.useState(!1), M = reactExports.useRef(aj()), A = reactExports.useRef(aI()), R = reactExports.useRef(null), L = reactExports.useRef(!1), F = reactExports.useRef(!1), N = reactExports.useRef(null), z = reactExports.useRef(!1), V = reactExports.useRef({}), { customUrls: W } = no$1.useSDKSettings(), { onErrorCallback: U } = aS(), [q, Q] = reactExports.useState(!0), X = reactExports.useRef([]), H = reactExports.useRef([]), G = reactExports.useRef(t), { allowedCards: Z } = f, K = reactExports.useRef(null), [Y, J] = reactExports.useState(!1), ee = reactExports.useRef(!1), et = reactExports.useMemo(()=>({
|
|
59607
|
+
videoFrameWidth: f.recordVideoFrameWidth,
|
|
59608
|
+
videoFrameHeight: f.recordVideoFrameHeight,
|
|
59609
|
+
videoBitrate: f.recordVideoBitrate,
|
|
59610
|
+
fps: f.recordVideoFps
|
|
59610
59611
|
}), [
|
|
59611
|
-
|
|
59612
|
-
|
|
59613
|
-
|
|
59614
|
-
|
|
59612
|
+
f.recordVideoBitrate,
|
|
59613
|
+
f.recordVideoFps,
|
|
59614
|
+
f.recordVideoFrameHeight,
|
|
59615
|
+
f.recordVideoFrameWidth
|
|
59615
59616
|
]), { startRecording: er, stopRecording: eo, resetRecording: en } = aD({
|
|
59616
|
-
shouldRecord: reactExports.useMemo(()=>g ?
|
|
59617
|
+
shouldRecord: reactExports.useMemo(()=>g ? f.enableRecordCapturingFront : f.enableRecordCapturingBack, [
|
|
59617
59618
|
g,
|
|
59618
|
-
|
|
59619
|
-
|
|
59619
|
+
f.enableRecordCapturingBack,
|
|
59620
|
+
f.enableRecordCapturingFront
|
|
59620
59621
|
])
|
|
59621
59622
|
}), { startRecording: ei, stopRecording: ea, resetRecording: es } = aD({
|
|
59622
|
-
shouldRecord: reactExports.useMemo(()=>g ?
|
|
59623
|
+
shouldRecord: reactExports.useMemo(()=>g ? f.enableRecordFullSessionFront : f.enableRecordFullSessionBack, [
|
|
59623
59624
|
g,
|
|
59624
|
-
|
|
59625
|
-
|
|
59625
|
+
f.enableRecordFullSessionBack,
|
|
59626
|
+
f.enableRecordFullSessionFront
|
|
59626
59627
|
])
|
|
59627
59628
|
}), { turnOnFlashlight: ec, turnOffFlashlight: el } = (()=>{
|
|
59628
59629
|
let t = reactExports.useContext(nU);
|
|
@@ -59636,8 +59637,8 @@
|
|
|
59636
59637
|
]), reactExports.useEffect(()=>{
|
|
59637
59638
|
let t = !1;
|
|
59638
59639
|
return async function r() {
|
|
59639
|
-
if (
|
|
59640
|
-
if (
|
|
59640
|
+
if (f && !I) {
|
|
59641
|
+
if (f.enableIdDetection) {
|
|
59641
59642
|
let t = ((t, r)=>{
|
|
59642
59643
|
if (0 === t.length) return {
|
|
59643
59644
|
isValid: !1
|
|
@@ -59658,7 +59659,7 @@
|
|
|
59658
59659
|
} : {
|
|
59659
59660
|
isValid: !1
|
|
59660
59661
|
};
|
|
59661
|
-
})(Z.map((t)=>t.code),
|
|
59662
|
+
})(Z.map((t)=>t.code), f?.cardTypeModelMapping);
|
|
59662
59663
|
if (!t.isValid) {
|
|
59663
59664
|
U(a$.invalid_card_type_config), Q(!1), O(!0);
|
|
59664
59665
|
return;
|
|
@@ -59667,7 +59668,7 @@
|
|
|
59667
59668
|
V.current = await a_({
|
|
59668
59669
|
...W,
|
|
59669
59670
|
idCardModelUrl: r
|
|
59670
|
-
}, t.cardModel), await fY.initTensorFlow(), N.current =
|
|
59671
|
+
}, t.cardModel), await fY.initTensorFlow(), N.current = f.enableBlurCheck && V.current.ableToUseModel, Q(!t.forceOffDetection);
|
|
59671
59672
|
} else Q(!1), N.current = !1;
|
|
59672
59673
|
t || O(!0);
|
|
59673
59674
|
}
|
|
@@ -59676,7 +59677,7 @@
|
|
|
59676
59677
|
};
|
|
59677
59678
|
}, [
|
|
59678
59679
|
I,
|
|
59679
|
-
|
|
59680
|
+
f,
|
|
59680
59681
|
W,
|
|
59681
59682
|
Z,
|
|
59682
59683
|
U
|
|
@@ -59693,13 +59694,13 @@
|
|
|
59693
59694
|
});
|
|
59694
59695
|
}, [
|
|
59695
59696
|
k
|
|
59696
|
-
]),
|
|
59697
|
+
]), ep = reactExports.useCallback(()=>{
|
|
59697
59698
|
Y || (en(), es());
|
|
59698
59699
|
}, [
|
|
59699
59700
|
Y,
|
|
59700
59701
|
en,
|
|
59701
59702
|
es
|
|
59702
|
-
]),
|
|
59703
|
+
]), ef = reactExports.useCallback(async ()=>{
|
|
59703
59704
|
let t = {
|
|
59704
59705
|
capturingVideo: {
|
|
59705
59706
|
blob: null
|
|
@@ -59714,18 +59715,18 @@
|
|
|
59714
59715
|
}, [
|
|
59715
59716
|
eo,
|
|
59716
59717
|
ea
|
|
59717
|
-
]), eh = reactExports.useMemo(()=>g ?
|
|
59718
|
+
]), eh = reactExports.useMemo(()=>g ? f.enableFlashlightFront : f.enableFlashlightBack, [
|
|
59718
59719
|
g,
|
|
59719
|
-
|
|
59720
|
-
|
|
59721
|
-
]), em = reactExports.useMemo(()=>g ?
|
|
59720
|
+
f.enableFlashlightBack,
|
|
59721
|
+
f.enableFlashlightFront
|
|
59722
|
+
]), em = reactExports.useMemo(()=>g ? f.flashlightActivationDelayFront : f.flashlightActivationDelayBack, [
|
|
59722
59723
|
g,
|
|
59723
|
-
|
|
59724
|
-
|
|
59725
|
-
]), eg = reactExports.useMemo(()=>g ?
|
|
59724
|
+
f.flashlightActivationDelayBack,
|
|
59725
|
+
f.flashlightActivationDelayFront
|
|
59726
|
+
]), eg = reactExports.useMemo(()=>g ? f.flashlightDurationFront : f.flashlightDurationBack, [
|
|
59726
59727
|
g,
|
|
59727
|
-
|
|
59728
|
-
|
|
59728
|
+
f.flashlightDurationBack,
|
|
59729
|
+
f.flashlightDurationFront
|
|
59729
59730
|
]), eb = reactExports.useCallback(()=>{
|
|
59730
59731
|
!ed.current && eh && (ed.current = !0, setTimeout(()=>{
|
|
59731
59732
|
ec(eg);
|
|
@@ -59742,9 +59743,9 @@
|
|
|
59742
59743
|
]), ew = reactExports.useCallback(()=>{
|
|
59743
59744
|
!0 === T.current && (T.current = !1);
|
|
59744
59745
|
}, []), ek = reactExports.useCallback(()=>{
|
|
59745
|
-
|
|
59746
|
+
ep(), X.current = [], H.current = [], R.current = null, z.current = !1, ee.current = !1;
|
|
59746
59747
|
}, [
|
|
59747
|
-
|
|
59748
|
+
ep
|
|
59748
59749
|
]), ey = reactExports.useCallback(async ({ blurScore: t, detectedCard: o, glareScore: n })=>{
|
|
59749
59750
|
await er({
|
|
59750
59751
|
videoEl: l.current,
|
|
@@ -59757,7 +59758,7 @@
|
|
|
59757
59758
|
incomingFrameBlurScore: t,
|
|
59758
59759
|
currentFrameGlareScore: i.glareScore,
|
|
59759
59760
|
incomingFrameGlareScore: n,
|
|
59760
|
-
settings:
|
|
59761
|
+
settings: f,
|
|
59761
59762
|
blurLargeThreshold: s,
|
|
59762
59763
|
blurSmallThreshold: r
|
|
59763
59764
|
})) {
|
|
@@ -59775,25 +59776,25 @@
|
|
|
59775
59776
|
}
|
|
59776
59777
|
i.takenAt = new Date().getTime(), i.blurScore = t, i.glareScore = n, i.detectedCard = o, i.captureType = "auto";
|
|
59777
59778
|
}
|
|
59778
|
-
|
|
59779
|
+
f.enableBlurCheck && X.current.push(t), f.enableGlareCheck && H.current.push(n);
|
|
59779
59780
|
}, [
|
|
59780
59781
|
er,
|
|
59781
59782
|
l,
|
|
59782
59783
|
et,
|
|
59783
59784
|
eb,
|
|
59784
|
-
|
|
59785
|
+
f,
|
|
59785
59786
|
s,
|
|
59786
59787
|
r,
|
|
59787
59788
|
k
|
|
59788
59789
|
]), eC = reactExports.useCallback(async ({ blurScore: t, detectedCard: o, glareScore: n })=>{
|
|
59789
59790
|
F.current = !0;
|
|
59790
59791
|
let i = A.current;
|
|
59791
|
-
if (
|
|
59792
|
+
if (f.enableBlurCheck && X.current.push(t), f.enableGlareCheck && H.current.push(n), iV({
|
|
59792
59793
|
currentFrameBlurScore: i.blurScore,
|
|
59793
59794
|
currentFrameGlareScore: i.glareScore,
|
|
59794
59795
|
incomingFrameBlurScore: t,
|
|
59795
59796
|
incomingFrameGlareScore: n,
|
|
59796
|
-
settings:
|
|
59797
|
+
settings: f,
|
|
59797
59798
|
blurLargeThreshold: s,
|
|
59798
59799
|
blurSmallThreshold: r
|
|
59799
59800
|
})) {
|
|
@@ -59812,19 +59813,19 @@
|
|
|
59812
59813
|
s,
|
|
59813
59814
|
r,
|
|
59814
59815
|
k,
|
|
59815
|
-
|
|
59816
|
+
f
|
|
59816
59817
|
]), eB = reactExports.useCallback(async ()=>{
|
|
59817
|
-
let { autoCaptureWaitForBestImageTimeMs: t } =
|
|
59818
|
+
let { autoCaptureWaitForBestImageTimeMs: t } = f, r = M.current;
|
|
59818
59819
|
if (null !== r.imageBlob && new Date().getTime() - R.current > t) {
|
|
59819
|
-
let t = await
|
|
59820
|
+
let t = await ef();
|
|
59820
59821
|
await ev(), await b({
|
|
59821
59822
|
...r,
|
|
59822
59823
|
...t
|
|
59823
59824
|
}), J(!1), R.current = null;
|
|
59824
59825
|
}
|
|
59825
59826
|
}, [
|
|
59826
|
-
|
|
59827
|
-
|
|
59827
|
+
f,
|
|
59828
|
+
ef,
|
|
59828
59829
|
ev,
|
|
59829
59830
|
b
|
|
59830
59831
|
]), e_ = reactExports.useCallback(()=>{
|
|
@@ -59839,7 +59840,7 @@
|
|
|
59839
59840
|
resultAnalyzeVideoAndWindowSizes: D.current,
|
|
59840
59841
|
recordVideoSettings: et
|
|
59841
59842
|
}), eb(), new Promise((t)=>{
|
|
59842
|
-
let { enableVirtualCamHashes: o, manualCaptureWaitForBestImageTimeMs: n } =
|
|
59843
|
+
let { enableVirtualCamHashes: o, manualCaptureWaitForBestImageTimeMs: n } = f, i = A.current;
|
|
59843
59844
|
if (i.captureTime = Date.now(), N.current) J(!0), e_(), setTimeout(()=>{
|
|
59844
59845
|
ex().then(async ()=>{
|
|
59845
59846
|
await ev(), (i.blurScore?.small <= r || i.blurScore?.large <= s) && (i.error = a$.id_detector_error_blur);
|
|
@@ -59854,7 +59855,7 @@
|
|
|
59854
59855
|
quality: k
|
|
59855
59856
|
}).then(async (n)=>{
|
|
59856
59857
|
i.imageBlob = n, i.captureTime = Date.now(), i.hash = r, o && await eu(i.detectedCard);
|
|
59857
|
-
let a = await
|
|
59858
|
+
let a = await ef();
|
|
59858
59859
|
t({
|
|
59859
59860
|
...i,
|
|
59860
59861
|
...a
|
|
@@ -59862,7 +59863,7 @@
|
|
|
59862
59863
|
});
|
|
59863
59864
|
} else {
|
|
59864
59865
|
o && await eu(i.detectedCard);
|
|
59865
|
-
let r = await
|
|
59866
|
+
let r = await ef();
|
|
59866
59867
|
t({
|
|
59867
59868
|
...i,
|
|
59868
59869
|
...r
|
|
@@ -59889,10 +59890,10 @@
|
|
|
59889
59890
|
l,
|
|
59890
59891
|
et,
|
|
59891
59892
|
eb,
|
|
59892
|
-
|
|
59893
|
+
f,
|
|
59893
59894
|
e_,
|
|
59894
59895
|
ex,
|
|
59895
|
-
|
|
59896
|
+
ef,
|
|
59896
59897
|
ev,
|
|
59897
59898
|
r,
|
|
59898
59899
|
s,
|
|
@@ -59926,10 +59927,10 @@
|
|
|
59926
59927
|
portraitTopLeft: c,
|
|
59927
59928
|
portraitBottomRight: l
|
|
59928
59929
|
};
|
|
59929
|
-
}(t,
|
|
59930
|
+
}(t, f.blurFullFaceImageRatio, r), a = function(t, r) {
|
|
59930
59931
|
let { cv: o } = window;
|
|
59931
59932
|
if (!o) throw Error("Opencv not found!");
|
|
59932
|
-
let { topLeft: n, topRight: i, bottomRight: a, bottomLeft: s, maxWidth: c, maxHeight: l } = r, { portraitTopLeft: d, portraitBottomRight: u } = t,
|
|
59933
|
+
let { topLeft: n, topRight: i, bottomRight: a, bottomLeft: s, maxWidth: c, maxHeight: l } = r, { portraitTopLeft: d, portraitBottomRight: u } = t, p = o.matFromArray(4, 1, o.CV_32FC2, [
|
|
59933
59934
|
n.x,
|
|
59934
59935
|
n.y,
|
|
59935
59936
|
i.x,
|
|
@@ -59938,7 +59939,7 @@
|
|
|
59938
59939
|
a.y,
|
|
59939
59940
|
s.x,
|
|
59940
59941
|
s.y
|
|
59941
|
-
]),
|
|
59942
|
+
]), f = o.matFromArray(4, 1, o.CV_32FC2, [
|
|
59942
59943
|
0,
|
|
59943
59944
|
0,
|
|
59944
59945
|
c - 1,
|
|
@@ -59947,7 +59948,7 @@
|
|
|
59947
59948
|
l - 1,
|
|
59948
59949
|
0,
|
|
59949
59950
|
l - 1
|
|
59950
|
-
]), h = o.getPerspectiveTransform(
|
|
59951
|
+
]), h = o.getPerspectiveTransform(p, f), m = (t)=>{
|
|
59951
59952
|
let r = o.matFromArray(1, 1, o.CV_32FC2, [
|
|
59952
59953
|
t[0],
|
|
59953
59954
|
t[1]
|
|
@@ -59961,7 +59962,7 @@
|
|
|
59961
59962
|
Math.max(0, Math.min(i[1] * (ra$1.RESIZE_IMAGE_HEIGHT / l), l))
|
|
59962
59963
|
];
|
|
59963
59964
|
}, g = m(d), b = m(u);
|
|
59964
|
-
return
|
|
59965
|
+
return p.delete(), f.delete(), h.delete(), [
|
|
59965
59966
|
parseInt(g[0], 10),
|
|
59966
59967
|
parseInt(g[1], 10),
|
|
59967
59968
|
parseInt(b[0], 10),
|
|
@@ -60039,9 +60040,9 @@
|
|
|
60039
60040
|
};
|
|
60040
60041
|
}
|
|
60041
60042
|
}, [
|
|
60042
|
-
|
|
60043
|
+
f
|
|
60043
60044
|
]), e$ = reactExports.useCallback(async ({ result: t, workingCanvas: o })=>{
|
|
60044
|
-
let n, i, { cropX: a, cropY: c, cropWidth: d, cropHeight: u, cropWidthWithoutPadding:
|
|
60045
|
+
let n, i, { cropX: a, cropY: c, cropWidth: d, cropHeight: u, cropWidthWithoutPadding: p, cropHeightWithoutPadding: h } = D.current, { enableBlurCheck: m, enableGlareCheck: b, glareThreshold: v, isVietnameseCardFlow: k, hasFrontFace: C, hasBackFace: B, genericEnableCheckFrontFace: x, genericEnableCheckBackFace: P } = f, { blazefaceModel: S, blurDetector: E } = V.current, T = {
|
|
60045
60046
|
error: null
|
|
60046
60047
|
};
|
|
60047
60048
|
try {
|
|
@@ -60058,12 +60059,12 @@
|
|
|
60058
60059
|
area: c.width * c.height
|
|
60059
60060
|
},
|
|
60060
60061
|
big: {
|
|
60061
|
-
area:
|
|
60062
|
+
area: p * h
|
|
60062
60063
|
}
|
|
60063
60064
|
});
|
|
60064
60065
|
if (l < .5) throw Error("id_detector_card_too_small");
|
|
60065
60066
|
if (l > .95) throw Error("id_detector_error_incomplete");
|
|
60066
|
-
if (k && nn(
|
|
60067
|
+
if (k && nn(f, "enableCardTypeCheck")) {
|
|
60067
60068
|
let r = nn(t, "card.label", ""), { isAllowed: o, cardType: n } = ((t, r)=>{
|
|
60068
60069
|
let o = t.split(".")?.[0];
|
|
60069
60070
|
if (o !== r[0].split(".")?.[0]) return {
|
|
@@ -60137,8 +60138,8 @@
|
|
|
60137
60138
|
smallThreshold: r,
|
|
60138
60139
|
largeThreshold: s
|
|
60139
60140
|
}), u = {
|
|
60140
|
-
small: iz(d?.[0],
|
|
60141
|
-
large: iz(d?.[1],
|
|
60141
|
+
small: iz(d?.[0], f.blurSmallDecimal),
|
|
60142
|
+
large: iz(d?.[1], f.blurLargeDecimal)
|
|
60142
60143
|
};
|
|
60143
60144
|
if (eT.current = {
|
|
60144
60145
|
...eT.current,
|
|
@@ -60154,10 +60155,10 @@
|
|
|
60154
60155
|
}
|
|
60155
60156
|
if (y) {
|
|
60156
60157
|
var I, O, M, A, R, L, F, N;
|
|
60157
|
-
let r, s,
|
|
60158
|
+
let r, s, p, f = nn(t, "card.label"), h = nn(t, "card.corners");
|
|
60158
60159
|
eT.current = {
|
|
60159
60160
|
...eT.current,
|
|
60160
|
-
label:
|
|
60161
|
+
label: f,
|
|
60161
60162
|
corner_size: h?.length
|
|
60162
60163
|
}, p_.drawDebugCanvas(eE.current, eT.current);
|
|
60163
60164
|
let m = i$ / o.width, g = eS.current.getContext("2d");
|
|
@@ -60169,7 +60170,7 @@
|
|
|
60169
60170
|
o.strokeRect(s, c, l - s, d - c);
|
|
60170
60171
|
}(O[0], "black", I, R), s = M.filter((t)=>"small" === t.lapType), s.length > 0 && s.forEach((t)=>{
|
|
60171
60172
|
iW(t.bboxes, "blue", I, R, r);
|
|
60172
|
-
}),
|
|
60173
|
+
}), p = M.filter((t)=>"large" === t.lapType), p.length > 0 && p.forEach((t)=>{
|
|
60173
60174
|
iW(t.bboxes, "green", I, R, r);
|
|
60174
60175
|
}), L = A.map((t)=>t.location), F = I, N = R, F && (F.strokeStyle = "red", F.lineWidth = 2, L.forEach((t)=>{
|
|
60175
60176
|
let r = t.x * N, o = t.y * N;
|
|
@@ -60178,7 +60179,7 @@
|
|
|
60178
60179
|
}
|
|
60179
60180
|
return T;
|
|
60180
60181
|
}, [
|
|
60181
|
-
|
|
60182
|
+
f,
|
|
60182
60183
|
y,
|
|
60183
60184
|
l,
|
|
60184
60185
|
Z,
|
|
@@ -60187,13 +60188,13 @@
|
|
|
60187
60188
|
s,
|
|
60188
60189
|
eD
|
|
60189
60190
|
]), ej = reactExports.useCallback(async ()=>{
|
|
60190
|
-
if (!
|
|
60191
|
+
if (!f || !I || T.current) return;
|
|
60191
60192
|
M.current = aj(), A.current = aI();
|
|
60192
|
-
let { enableVirtualCamHashes: t } =
|
|
60193
|
+
let { enableVirtualCamHashes: t } = f, { idCardModel: r, ableToUseModel: o } = V.current, n = D.current, i = l.current;
|
|
60193
60194
|
T.current = !0;
|
|
60194
60195
|
let { cropX: a, cropY: s, cropWidth: c, cropHeight: d } = n, u = C.current;
|
|
60195
60196
|
u.width = c, u.height = d;
|
|
60196
|
-
let
|
|
60197
|
+
let p = u.getContext("2d"), h = async ()=>{
|
|
60197
60198
|
if (!1 === T.current) return;
|
|
60198
60199
|
await ei({
|
|
60199
60200
|
videoEl: l.current,
|
|
@@ -60201,11 +60202,11 @@
|
|
|
60201
60202
|
recordVideoSettings: et
|
|
60202
60203
|
});
|
|
60203
60204
|
let n = K.current;
|
|
60204
|
-
|
|
60205
|
+
p.drawImage(i, a, s, c, d, 0, 0, c, d);
|
|
60205
60206
|
let g = performance.now();
|
|
60206
60207
|
if (z.current = !1, q && o) {
|
|
60207
60208
|
let o = await r.predict(u);
|
|
60208
|
-
!
|
|
60209
|
+
!f?.trackCardCoordinates || A.current.imageBlob || M.current.imageBlob || E.current.push(((t)=>{
|
|
60209
60210
|
let r = nn(t, "card.corners");
|
|
60210
60211
|
if (r && Array.isArray(r) && r.length > 0) {
|
|
60211
60212
|
let { x: t, y: o } = nn(r, "[0].location");
|
|
@@ -60234,7 +60235,7 @@
|
|
|
60234
60235
|
};
|
|
60235
60236
|
K.current = window.requestAnimationFrame(h);
|
|
60236
60237
|
}, [
|
|
60237
|
-
|
|
60238
|
+
f,
|
|
60238
60239
|
I,
|
|
60239
60240
|
l,
|
|
60240
60241
|
ei,
|
|
@@ -60287,7 +60288,7 @@
|
|
|
60287
60288
|
refBlurScores: X,
|
|
60288
60289
|
refGlareScores: H,
|
|
60289
60290
|
resetState: ek,
|
|
60290
|
-
resetRecordVideo:
|
|
60291
|
+
resetRecordVideo: ep
|
|
60291
60292
|
};
|
|
60292
60293
|
}({
|
|
60293
60294
|
isAutoCapture: q,
|
|
@@ -60305,17 +60306,17 @@
|
|
|
60305
60306
|
});
|
|
60306
60307
|
reactExports.useContext(aO);
|
|
60307
60308
|
let eh = reactExports.useCallback(()=>{
|
|
60308
|
-
|
|
60309
|
+
ef(), eo(), k();
|
|
60309
60310
|
}, [
|
|
60310
60311
|
eo,
|
|
60311
|
-
|
|
60312
|
+
ef,
|
|
60312
60313
|
k
|
|
60313
60314
|
]), { resumeTimer: em, pauseTimer: eg } = ((t)=>{
|
|
60314
|
-
let { interruptible: r = !0, totalTime: i, maxRetriesSettings: s, onAboutToTimeout: c, onTimeout: l, shouldStart: d, onError: u } = t,
|
|
60315
|
+
let { interruptible: r = !0, totalTime: i, maxRetriesSettings: s, onAboutToTimeout: c, onTimeout: l, shouldStart: d, onError: u } = t, p = reactExports.useRef(new pT({
|
|
60315
60316
|
totalTime: i,
|
|
60316
60317
|
interruptible: r
|
|
60317
60318
|
}));
|
|
60318
|
-
reactExports.useEffect(()=>
|
|
60319
|
+
reactExports.useEffect(()=>p.current.on("tick", ({ remainTime: t })=>{
|
|
60319
60320
|
t >= 0 && t <= i / 3 && "function" == typeof c && c({
|
|
60320
60321
|
curTimeLeft: t
|
|
60321
60322
|
});
|
|
@@ -60324,24 +60325,24 @@
|
|
|
60324
60325
|
c,
|
|
60325
60326
|
i,
|
|
60326
60327
|
r
|
|
60327
|
-
]), reactExports.useEffect(()=>
|
|
60328
|
-
r &&
|
|
60328
|
+
]), reactExports.useEffect(()=>p.current.on("reset", ({ attemptCount: t })=>{
|
|
60329
|
+
r && p.current.pause(), l(), s?.enable && t >= s?.total && u(ra$1.Errors.max_retry_reached);
|
|
60329
60330
|
}), [
|
|
60330
60331
|
l,
|
|
60331
60332
|
u,
|
|
60332
60333
|
s?.enable,
|
|
60333
60334
|
s?.total,
|
|
60334
60335
|
r
|
|
60335
|
-
]), reactExports.useEffect(()=>d ?
|
|
60336
|
+
]), reactExports.useEffect(()=>d ? p.current.start() : ()=>{}, [
|
|
60336
60337
|
d
|
|
60337
60338
|
]);
|
|
60338
|
-
let
|
|
60339
|
-
|
|
60339
|
+
let f = reactExports.useCallback(()=>{
|
|
60340
|
+
p.current.resume();
|
|
60340
60341
|
}, []);
|
|
60341
60342
|
return {
|
|
60342
|
-
resumeTimer:
|
|
60343
|
+
resumeTimer: f,
|
|
60343
60344
|
pauseTimer: reactExports.useCallback(()=>{
|
|
60344
|
-
|
|
60345
|
+
p.current.pause();
|
|
60345
60346
|
}, [])
|
|
60346
60347
|
};
|
|
60347
60348
|
})({
|
|
@@ -60355,24 +60356,24 @@
|
|
|
60355
60356
|
}), eb = reactExports.useCallback(()=>{
|
|
60356
60357
|
x.current = !1;
|
|
60357
60358
|
}, []), ev = reactExports.useCallback(async ()=>{
|
|
60358
|
-
eb(), em(),
|
|
60359
|
+
eb(), em(), ep(), E(!1), U(u ? "keep_front_id_fit_border" : "keep_back_id_fit_border"), await Promise.all([
|
|
60359
60360
|
en()
|
|
60360
60361
|
]);
|
|
60361
60362
|
}, [
|
|
60362
60363
|
eb,
|
|
60363
|
-
|
|
60364
|
+
ep,
|
|
60364
60365
|
U,
|
|
60365
60366
|
u,
|
|
60366
60367
|
en,
|
|
60367
60368
|
em
|
|
60368
60369
|
]), ew = reactExports.useCallback(async (t = {})=>{
|
|
60369
|
-
let r, { imageBlob: o, error: n, detectedCard: i, captureTime: a, captureCount: s, captureDuration: c, captureType: d, hash:
|
|
60370
|
+
let r, { imageBlob: o, error: n, detectedCard: i, captureTime: a, captureCount: s, captureDuration: c, captureType: d, hash: p, blurScore: f, glareScore: h, fullVideo: m, capturingVideo: g } = t;
|
|
60370
60371
|
if (x.current) return;
|
|
60371
60372
|
x.current = !0, E(!0), eo(), eg(), Y(null);
|
|
60372
60373
|
let v = l?.enableVirtualCamHashes, w = l?.enableGlareCheck, k = l?.enableBlurCheck, B = {};
|
|
60373
|
-
if (v && null !==
|
|
60374
|
+
if (v && null !== p) {
|
|
60374
60375
|
let t = [
|
|
60375
|
-
|
|
60376
|
+
p,
|
|
60376
60377
|
...ec.current
|
|
60377
60378
|
];
|
|
60378
60379
|
t.length > 0 && (B = t.reduce((t, r, o)=>(t[`hash${o + 1}`] = r, t), {}));
|
|
@@ -60381,7 +60382,7 @@
|
|
|
60381
60382
|
h7.addExifData("user_action", {
|
|
60382
60383
|
start_id_card: F.current,
|
|
60383
60384
|
end_id_card: Date.now()
|
|
60384
|
-
}), h7.addExifData("id_detection_settings.blur_check.large_threshold", ee), h7.addExifData("id_detection_settings.blur_check.small_threshold", J), h7.addExifData("capture_time", a), h7.addExifData("type", i?.label), v && h7.addExifData("v_cam", B), h7.addExifData("capture_count", s), h7.addExifData("capture_duration", c), h7.addExifData("capture_type", d), _ && h7.addExifData("card_tracking", S), k && (h7.addExifData("model_score.blurry_score",
|
|
60385
|
+
}), h7.addExifData("id_detection_settings.blur_check.large_threshold", ee), h7.addExifData("id_detection_settings.blur_check.small_threshold", J), h7.addExifData("capture_time", a), h7.addExifData("type", i?.label), v && h7.addExifData("v_cam", B), h7.addExifData("capture_count", s), h7.addExifData("capture_duration", c), h7.addExifData("capture_type", d), _ && h7.addExifData("card_tracking", S), k && (h7.addExifData("model_score.blurry_score", f), h7.addExifData("blur_score_frames", JSON.stringify(ed.current))), w && (h7.addExifData("model_score.glare_score", h), h7.addExifData("glare_score_frames", JSON.stringify(eu.current)));
|
|
60385
60386
|
let T = await h7.writeCurrentExif({
|
|
60386
60387
|
imageData: {
|
|
60387
60388
|
blob: o
|
|
@@ -60519,14 +60520,14 @@
|
|
|
60519
60520
|
};
|
|
60520
60521
|
})({
|
|
60521
60522
|
shouldStart: !0,
|
|
60522
|
-
refVideo:
|
|
60523
|
+
refVideo: f,
|
|
60523
60524
|
cropArea: eo,
|
|
60524
60525
|
settings: C,
|
|
60525
|
-
onModelErrorChange:
|
|
60526
|
+
onModelErrorChange: ep,
|
|
60526
60527
|
frontSide: k,
|
|
60527
60528
|
allowedCardTypes: y,
|
|
60528
60529
|
onDebugInfoChange: K,
|
|
60529
|
-
onSessionTimeout:
|
|
60530
|
+
onSessionTimeout: ef,
|
|
60530
60531
|
onCaptureDone: eh,
|
|
60531
60532
|
onAboutToTimeout: reactExports.useCallback(({ curTimeLeft: t })=>{
|
|
60532
60533
|
ee(Y("remaining_time", {
|
|
@@ -60555,9 +60556,9 @@
|
|
|
60555
60556
|
}), { showCaptureButtonInAuto: eS = !0, showHoldStillProgress: eE = !1, showAutoCaptureToggle: eT } = C ?? {};
|
|
60556
60557
|
reactExports.useEffect(()=>{
|
|
60557
60558
|
if (u) {
|
|
60558
|
-
let t, r, o, n, i, a, s, { videoAreaWidth: c, videoAreaHeight: d, lostX:
|
|
60559
|
-
l ? i = .7 * (a = d - 165) : a = Math.floor(Math.min((i = nT.isMobile ? c - 40 : Math.floor(.4 * c)) / 1.5, h - 2 *
|
|
60560
|
-
x: Math.floor((c - i) / 2) +
|
|
60559
|
+
let t, r, o, n, i, a, s, { videoAreaWidth: c, videoAreaHeight: d, lostX: p, lostY: f, clientHeight: h } = u;
|
|
60560
|
+
l ? i = .7 * (a = d - 165) : a = Math.floor(Math.min((i = nT.isMobile ? c - 40 : Math.floor(.4 * c)) / 1.5, h - 2 * f - 80 - 100)), n = (t = (s = f + 140) - 70) + 30, o = eT ? s + a + 20 : s + a, r = s + a + 135, en({
|
|
60561
|
+
x: Math.floor((c - i) / 2) + p,
|
|
60561
60562
|
y: s,
|
|
60562
60563
|
width: i,
|
|
60563
60564
|
height: a,
|
|
@@ -61027,8 +61028,8 @@
|
|
|
61027
61028
|
Object.keys(l || {}).forEach(function(t) {
|
|
61028
61029
|
l[t] = i[t] || l[t];
|
|
61029
61030
|
});
|
|
61030
|
-
var a = "attemptBoth" === l.inversionAttempts || "invertFirst" === l.inversionAttempts, s = "onlyInvert" === l.inversionAttempts || "invertFirst" === l.inversionAttempts, d = n.binarize(t, r, o, a), u = d.binarized,
|
|
61031
|
-
return
|
|
61031
|
+
var a = "attemptBoth" === l.inversionAttempts || "invertFirst" === l.inversionAttempts, s = "onlyInvert" === l.inversionAttempts || "invertFirst" === l.inversionAttempts, d = n.binarize(t, r, o, a), u = d.binarized, p = d.inverted, f = c(s ? p : u);
|
|
61032
|
+
return f || "attemptBoth" !== l.inversionAttempts && "invertFirst" !== l.inversionAttempts || (f = c(s ? u : p)), f;
|
|
61032
61033
|
}
|
|
61033
61034
|
d.default = d, r.default = d;
|
|
61034
61035
|
},
|
|
@@ -61049,10 +61050,10 @@
|
|
|
61049
61050
|
r.binarize = function(t, r, o, a) {
|
|
61050
61051
|
if (t.length !== r * o * 4) throw Error("Malformed data passed to binarizer.");
|
|
61051
61052
|
for(var s = new i(r, o), c = 0; c < r; c++)for(var l = 0; l < o; l++){
|
|
61052
|
-
var d = t[(l * r + c) * 4 + 0], u = t[(l * r + c) * 4 + 1],
|
|
61053
|
-
s.set(c, l, .2126 * d + .7152 * u + .0722 *
|
|
61053
|
+
var d = t[(l * r + c) * 4 + 0], u = t[(l * r + c) * 4 + 1], p = t[(l * r + c) * 4 + 2];
|
|
61054
|
+
s.set(c, l, .2126 * d + .7152 * u + .0722 * p);
|
|
61054
61055
|
}
|
|
61055
|
-
for(var
|
|
61056
|
+
for(var f = Math.ceil(r / 8), h = Math.ceil(o / 8), m = new i(f, h), g = 0; g < h; g++)for(var b = 0; b < f; b++){
|
|
61056
61057
|
for(var v = 0, w = 1 / 0, k = 0, l = 0; l < 8; l++)for(var c = 0; c < 8; c++){
|
|
61057
61058
|
var y = s.get(8 * b + c, 8 * g + l);
|
|
61058
61059
|
v += y, w = Math.min(w, y), k = Math.max(k, y);
|
|
@@ -61066,8 +61067,8 @@
|
|
|
61066
61067
|
}
|
|
61067
61068
|
var _ = n.BitMatrix.createEmpty(r, o), x = null;
|
|
61068
61069
|
a && (x = n.BitMatrix.createEmpty(r, o));
|
|
61069
|
-
for(var g = 0; g < h; g++)for(var b = 0; b <
|
|
61070
|
-
for(var P, S, E, T, D = (P = b, S =
|
|
61070
|
+
for(var g = 0; g < h; g++)for(var b = 0; b < f; b++){
|
|
61071
|
+
for(var P, S, E, T, D = (P = b, S = f - 3, P < 2 ? 2 : P > S ? S : P), $ = (E = g, T = h - 3, E < 2 ? 2 : E > T ? T : E), v = 0, j = -2; j <= 2; j++)for(var I = -2; I <= 2; I++)v += m.get(D + j, $ + I);
|
|
61071
61072
|
for(var O = v / 25, j = 0; j < 8; j++)for(var I = 0; I < 8; I++){
|
|
61072
61073
|
var c = 8 * b + j, l = 8 * g + I, M = s.get(c, l);
|
|
61073
61074
|
_.set(c, l, M <= O), a && x.set(c, l, !(M <= O));
|
|
@@ -61348,16 +61349,16 @@
|
|
|
61348
61349
|
for(var l = 0, d = 5; d >= 0; d--)for(var u = i - 9; u >= i - 11; u--){
|
|
61349
61350
|
r = t.get(u, d), l = l << 1 | r;
|
|
61350
61351
|
}
|
|
61351
|
-
for(var
|
|
61352
|
-
o = t.get(u, d),
|
|
61352
|
+
for(var p = 0, u = 5; u >= 0; u--)for(var d = i - 9; d >= i - 11; d--){
|
|
61353
|
+
o = t.get(u, d), p = p << 1 | o;
|
|
61353
61354
|
}
|
|
61354
|
-
for(var
|
|
61355
|
+
for(var f = 1 / 0, h = 0, m = s.VERSIONS; h < m.length; h++){
|
|
61355
61356
|
var g = m[h];
|
|
61356
|
-
if (g.infoBits === l || g.infoBits ===
|
|
61357
|
+
if (g.infoBits === l || g.infoBits === p) return g;
|
|
61357
61358
|
var b = c(l, g.infoBits);
|
|
61358
|
-
b <
|
|
61359
|
+
b < f && (n = g, f = b), (b = c(p, g.infoBits)) < f && (n = g, f = b);
|
|
61359
61360
|
}
|
|
61360
|
-
if (
|
|
61361
|
+
if (f <= 3) return n;
|
|
61361
61362
|
}(t);
|
|
61362
61363
|
if (!r) return null;
|
|
61363
61364
|
var o = function(t) {
|
|
@@ -61367,19 +61368,19 @@
|
|
|
61367
61368
|
for(var d = 7; d >= 0; d--){
|
|
61368
61369
|
6 !== d && (o = t.get(8, d), a = a << 1 | o);
|
|
61369
61370
|
}
|
|
61370
|
-
for(var u = t.height,
|
|
61371
|
-
n = t.get(8, d),
|
|
61371
|
+
for(var u = t.height, p = 0, d = u - 1; d >= u - 7; d--){
|
|
61372
|
+
n = t.get(8, d), p = p << 1 | n;
|
|
61372
61373
|
}
|
|
61373
61374
|
for(var s = u - 8; s < u; s++){
|
|
61374
|
-
i = t.get(s, 8),
|
|
61375
|
+
i = t.get(s, 8), p = p << 1 | i;
|
|
61375
61376
|
}
|
|
61376
|
-
for(var
|
|
61377
|
+
for(var f = 1 / 0, h = null, m = 0; m < l.length; m++){
|
|
61377
61378
|
var g = l[m], b = g.bits, v = g.formatInfo;
|
|
61378
|
-
if (b === a || b ===
|
|
61379
|
+
if (b === a || b === p) return v;
|
|
61379
61380
|
var w = c(a, b);
|
|
61380
|
-
w <
|
|
61381
|
+
w < f && (h = v, f = w), a !== p && (w = c(p, b)) < f && (h = v, f = w);
|
|
61381
61382
|
}
|
|
61382
|
-
return
|
|
61383
|
+
return f <= 3 ? h : null;
|
|
61383
61384
|
}(t);
|
|
61384
61385
|
if (!o) return null;
|
|
61385
61386
|
var u = function(t, r, o) {
|
|
@@ -61396,10 +61397,10 @@
|
|
|
61396
61397
|
d.codewords.push(t.shift());
|
|
61397
61398
|
}
|
|
61398
61399
|
if (n.ecBlocks.length > 1) {
|
|
61399
|
-
for(var u = n.ecBlocks[0].numBlocks,
|
|
61400
|
+
for(var u = n.ecBlocks[0].numBlocks, p = n.ecBlocks[1].numBlocks, c = 0; c < p; c++)i[u + c].codewords.push(t.shift());
|
|
61400
61401
|
}
|
|
61401
|
-
for(; t.length > 0;)for(var
|
|
61402
|
-
var d = i[
|
|
61402
|
+
for(; t.length > 0;)for(var f = 0; f < i.length; f++){
|
|
61403
|
+
var d = i[f];
|
|
61403
61404
|
d.codewords.push(t.shift());
|
|
61404
61405
|
}
|
|
61405
61406
|
return i;
|
|
@@ -61414,11 +61415,11 @@
|
|
|
61414
61415
|
}
|
|
61415
61416
|
}
|
|
61416
61417
|
return o.setRegion(6, 9, 1, r - 17, !0), o.setRegion(9, 6, r - 17, 1, !0), t.versionNumber > 6 && (o.setRegion(r - 11, 0, 3, 6, !0), o.setRegion(0, r - 11, 6, 3, !0)), o;
|
|
61417
|
-
}(r), c = [], l = 0, u = 0,
|
|
61418
|
-
6 ===
|
|
61418
|
+
}(r), c = [], l = 0, u = 0, p = !0, f = a - 1; f > 0; f -= 2){
|
|
61419
|
+
6 === f && f--;
|
|
61419
61420
|
for(var h = 0; h < a; h++){
|
|
61420
|
-
for(var m =
|
|
61421
|
-
var b =
|
|
61421
|
+
for(var m = p ? a - 1 - h : h, g = 0; g < 2; g++){
|
|
61422
|
+
var b = f - g;
|
|
61422
61423
|
if (!s.get(b, m)) {
|
|
61423
61424
|
u++;
|
|
61424
61425
|
var v = t.get(b, m);
|
|
@@ -61429,20 +61430,20 @@
|
|
|
61429
61430
|
}
|
|
61430
61431
|
}
|
|
61431
61432
|
}
|
|
61432
|
-
|
|
61433
|
+
p = !p;
|
|
61433
61434
|
}
|
|
61434
61435
|
return c;
|
|
61435
61436
|
}(t, r, o), r, o.errorCorrectionLevel);
|
|
61436
61437
|
if (!u) return null;
|
|
61437
|
-
for(var
|
|
61438
|
+
for(var p = new Uint8ClampedArray(u.reduce(function(t, r) {
|
|
61438
61439
|
return t + r.numDataCodewords;
|
|
61439
|
-
}, 0)),
|
|
61440
|
+
}, 0)), f = 0, h = 0; h < u.length; h++){
|
|
61440
61441
|
var m = u[h], g = a.decode(m.codewords, m.codewords.length - m.numDataCodewords);
|
|
61441
61442
|
if (!g) return null;
|
|
61442
|
-
for(var b = 0; b < m.numDataCodewords; b++)f
|
|
61443
|
+
for(var b = 0; b < m.numDataCodewords; b++)p[f++] = g[b];
|
|
61443
61444
|
}
|
|
61444
61445
|
try {
|
|
61445
|
-
return i.decode(
|
|
61446
|
+
return i.decode(p, r.versionNumber);
|
|
61446
61447
|
} catch (t) {
|
|
61447
61448
|
return null;
|
|
61448
61449
|
}
|
|
@@ -61509,23 +61510,23 @@
|
|
|
61509
61510
|
":"
|
|
61510
61511
|
];
|
|
61511
61512
|
r.decode = function(t, r) {
|
|
61512
|
-
for(var o, n, i, u,
|
|
61513
|
+
for(var o, n, i, u, p = new c.BitStream(t), f = r <= 9 ? 0 : r <= 26 ? 1 : 2, h = {
|
|
61513
61514
|
text: "",
|
|
61514
61515
|
bytes: [],
|
|
61515
61516
|
chunks: [],
|
|
61516
61517
|
version: r
|
|
61517
|
-
};
|
|
61518
|
-
var m =
|
|
61518
|
+
}; p.available() >= 4;){
|
|
61519
|
+
var m = p.readBits(4);
|
|
61519
61520
|
if (m === s.Terminator) return h;
|
|
61520
|
-
if (m === s.ECI) 0 ===
|
|
61521
|
+
if (m === s.ECI) 0 === p.readBits(1) ? h.chunks.push({
|
|
61521
61522
|
type: a.ECI,
|
|
61522
|
-
assignmentNumber:
|
|
61523
|
-
}) : 0 ===
|
|
61523
|
+
assignmentNumber: p.readBits(7)
|
|
61524
|
+
}) : 0 === p.readBits(1) ? h.chunks.push({
|
|
61524
61525
|
type: a.ECI,
|
|
61525
|
-
assignmentNumber:
|
|
61526
|
-
}) : 0 ===
|
|
61526
|
+
assignmentNumber: p.readBits(14)
|
|
61527
|
+
}) : 0 === p.readBits(1) ? h.chunks.push({
|
|
61527
61528
|
type: a.ECI,
|
|
61528
|
-
assignmentNumber:
|
|
61529
|
+
assignmentNumber: p.readBits(21)
|
|
61529
61530
|
}) : h.chunks.push({
|
|
61530
61531
|
type: a.ECI,
|
|
61531
61532
|
assignmentNumber: -1
|
|
@@ -61556,7 +61557,7 @@
|
|
|
61556
61557
|
bytes: o,
|
|
61557
61558
|
text: n
|
|
61558
61559
|
};
|
|
61559
|
-
}(
|
|
61560
|
+
}(p, f);
|
|
61560
61561
|
h.text += g.text, (o = h.bytes).push.apply(o, g.bytes), h.chunks.push({
|
|
61561
61562
|
type: a.Numeric,
|
|
61562
61563
|
text: g.text
|
|
@@ -61579,7 +61580,7 @@
|
|
|
61579
61580
|
bytes: o,
|
|
61580
61581
|
text: n
|
|
61581
61582
|
};
|
|
61582
|
-
}(
|
|
61583
|
+
}(p, f);
|
|
61583
61584
|
h.text += b.text, (n = h.bytes).push.apply(n, b.bytes), h.chunks.push({
|
|
61584
61585
|
type: a.Alphanumeric,
|
|
61585
61586
|
text: b.text
|
|
@@ -61603,7 +61604,7 @@
|
|
|
61603
61604
|
bytes: o,
|
|
61604
61605
|
text: n
|
|
61605
61606
|
};
|
|
61606
|
-
}(
|
|
61607
|
+
}(p, f);
|
|
61607
61608
|
h.text += v.text, (i = h.bytes).push.apply(i, v.bytes), h.chunks.push({
|
|
61608
61609
|
type: a.Byte,
|
|
61609
61610
|
bytes: v.bytes,
|
|
@@ -61623,7 +61624,7 @@
|
|
|
61623
61624
|
bytes: o,
|
|
61624
61625
|
text: n
|
|
61625
61626
|
};
|
|
61626
|
-
}(
|
|
61627
|
+
}(p, f);
|
|
61627
61628
|
h.text += w.text, (u = h.bytes).push.apply(u, w.bytes), h.chunks.push({
|
|
61628
61629
|
type: a.Kanji,
|
|
61629
61630
|
bytes: w.bytes,
|
|
@@ -61631,7 +61632,7 @@
|
|
|
61631
61632
|
});
|
|
61632
61633
|
}
|
|
61633
61634
|
}
|
|
61634
|
-
if (0 ===
|
|
61635
|
+
if (0 === p.available() || 0 === p.readBits(p.available())) return h;
|
|
61635
61636
|
};
|
|
61636
61637
|
},
|
|
61637
61638
|
function(t, r, o) {
|
|
@@ -68717,7 +68718,7 @@
|
|
|
68717
68718
|
c[c.length - 1 - d] = u, 0 !== u && (l = !0);
|
|
68718
68719
|
}
|
|
68719
68720
|
if (!l) return o;
|
|
68720
|
-
var
|
|
68721
|
+
var p = new i.default(a, c), f = function(t, r, o, n) {
|
|
68721
68722
|
r.degree() < o.degree() && (r = (i = [
|
|
68722
68723
|
o,
|
|
68723
68724
|
r
|
|
@@ -68726,11 +68727,11 @@
|
|
|
68726
68727
|
var d = a, u = c;
|
|
68727
68728
|
if (a = s, c = l, a.isZero()) return null;
|
|
68728
68729
|
s = d;
|
|
68729
|
-
for(var
|
|
68730
|
+
for(var p = t.zero, f = a.getCoefficient(a.degree()), h = t.inverse(f); s.degree() >= a.degree() && !s.isZero();){
|
|
68730
68731
|
var m = s.degree() - a.degree(), g = t.multiply(s.getCoefficient(s.degree()), h);
|
|
68731
|
-
|
|
68732
|
+
p = p.addOrSubtract(t.buildMonomial(m, g)), s = s.addOrSubtract(a.multiplyByMonomial(m, g));
|
|
68732
68733
|
}
|
|
68733
|
-
if (l =
|
|
68734
|
+
if (l = p.multiplyPoly(c).addOrSubtract(u), s.degree() >= a.degree()) return null;
|
|
68734
68735
|
}
|
|
68735
68736
|
var b = l.getCoefficient(0);
|
|
68736
68737
|
if (0 === b) return null;
|
|
@@ -68739,8 +68740,8 @@
|
|
|
68739
68740
|
l.multiply(v),
|
|
68740
68741
|
s.multiply(v)
|
|
68741
68742
|
];
|
|
68742
|
-
}(a, a.buildMonomial(r, 1),
|
|
68743
|
-
if (null ===
|
|
68743
|
+
}(a, a.buildMonomial(r, 1), p, r);
|
|
68744
|
+
if (null === f) return null;
|
|
68744
68745
|
var h = function(t, r) {
|
|
68745
68746
|
var o = r.degree();
|
|
68746
68747
|
if (1 === o) return [
|
|
@@ -68748,7 +68749,7 @@
|
|
|
68748
68749
|
];
|
|
68749
68750
|
for(var n = Array(o), i = 0, a = 1; a < t.size && i < o; a++)0 === r.evaluateAt(a) && (n[i] = t.inverse(a), i++);
|
|
68750
68751
|
return i !== o ? null : n;
|
|
68751
|
-
}(a,
|
|
68752
|
+
}(a, f[0]);
|
|
68752
68753
|
if (null == h) return null;
|
|
68753
68754
|
for(var m = function(t, r, o) {
|
|
68754
68755
|
for(var i = o.length, a = Array(i), s = 0; s < i; s++){
|
|
@@ -68756,7 +68757,7 @@
|
|
|
68756
68757
|
a[s] = t.multiply(r.evaluateAt(c), t.inverse(l)), 0 !== t.generatorBase && (a[s] = t.multiply(a[s], c));
|
|
68757
68758
|
}
|
|
68758
68759
|
return a;
|
|
68759
|
-
}(a,
|
|
68760
|
+
}(a, f[1], h), g = 0; g < h.length; g++){
|
|
68760
68761
|
var b = o.length - 1 - a.log(h[g]);
|
|
68761
68762
|
if (b < 0) return null;
|
|
68762
68763
|
o[b] = n.addOrSubtractGF(o[b], m[g]);
|
|
@@ -71237,14 +71238,14 @@
|
|
|
71237
71238
|
a32: t.y,
|
|
71238
71239
|
a33: 1
|
|
71239
71240
|
};
|
|
71240
|
-
var s = r.x - o.x, c = n.x - o.x, l = r.y - o.y, d = n.y - o.y, u = s * d - c * l,
|
|
71241
|
+
var s = r.x - o.x, c = n.x - o.x, l = r.y - o.y, d = n.y - o.y, u = s * d - c * l, p = (i * d - c * a) / u, f = (s * a - i * l) / u;
|
|
71241
71242
|
return {
|
|
71242
|
-
a11: r.x - t.x +
|
|
71243
|
-
a12: r.y - t.y +
|
|
71244
|
-
a13:
|
|
71245
|
-
a21: n.x - t.x +
|
|
71246
|
-
a22: n.y - t.y +
|
|
71247
|
-
a23:
|
|
71243
|
+
a11: r.x - t.x + p * r.x,
|
|
71244
|
+
a12: r.y - t.y + p * r.y,
|
|
71245
|
+
a13: p,
|
|
71246
|
+
a21: n.x - t.x + f * n.x,
|
|
71247
|
+
a22: n.y - t.y + f * n.y,
|
|
71248
|
+
a23: f,
|
|
71248
71249
|
a31: t.x,
|
|
71249
71250
|
a32: t.y,
|
|
71250
71251
|
a33: 1
|
|
@@ -71273,7 +71274,7 @@
|
|
|
71273
71274
|
a31: c.a21 * c.a32 - c.a22 * c.a31,
|
|
71274
71275
|
a32: c.a12 * c.a31 - c.a11 * c.a32,
|
|
71275
71276
|
a33: c.a11 * c.a22 - c.a12 * c.a21
|
|
71276
|
-
}),
|
|
71277
|
+
}), p = (l = i(r.topLeft, r.topRight, r.alignmentPattern, r.bottomLeft), d = u, {
|
|
71277
71278
|
a11: l.a11 * d.a11 + l.a21 * d.a12 + l.a31 * d.a13,
|
|
71278
71279
|
a12: l.a12 * d.a11 + l.a22 * d.a12 + l.a32 * d.a13,
|
|
71279
71280
|
a13: l.a13 * d.a11 + l.a23 * d.a12 + l.a33 * d.a13,
|
|
@@ -71283,18 +71284,18 @@
|
|
|
71283
71284
|
a31: l.a11 * d.a31 + l.a21 * d.a32 + l.a31 * d.a33,
|
|
71284
71285
|
a32: l.a12 * d.a31 + l.a22 * d.a32 + l.a32 * d.a33,
|
|
71285
71286
|
a33: l.a13 * d.a31 + l.a23 * d.a32 + l.a33 * d.a33
|
|
71286
|
-
}),
|
|
71287
|
-
var o =
|
|
71287
|
+
}), f = n.BitMatrix.createEmpty(r.dimension, r.dimension), h = function(t, r) {
|
|
71288
|
+
var o = p.a13 * t + p.a23 * r + p.a33;
|
|
71288
71289
|
return {
|
|
71289
|
-
x: (
|
|
71290
|
-
y: (
|
|
71290
|
+
x: (p.a11 * t + p.a21 * r + p.a31) / o,
|
|
71291
|
+
y: (p.a12 * t + p.a22 * r + p.a32) / o
|
|
71291
71292
|
};
|
|
71292
71293
|
}, m = 0; m < r.dimension; m++)for(var g = 0; g < r.dimension; g++){
|
|
71293
71294
|
var b = h(g + .5, m + .5);
|
|
71294
|
-
|
|
71295
|
+
f.set(g, m, t.get(Math.floor(b.x), Math.floor(b.y)));
|
|
71295
71296
|
}
|
|
71296
71297
|
return {
|
|
71297
|
-
matrix:
|
|
71298
|
+
matrix: f,
|
|
71298
71299
|
mappingFunction: h
|
|
71299
71300
|
};
|
|
71300
71301
|
};
|
|
@@ -71319,15 +71320,15 @@
|
|
|
71319
71320
|
}
|
|
71320
71321
|
], u = Math.abs(r.y - t.y) > Math.abs(r.x - t.x);
|
|
71321
71322
|
u ? (a = Math.floor(t.y), s = Math.floor(t.x), c = Math.floor(r.y), l = Math.floor(r.x)) : (a = Math.floor(t.x), s = Math.floor(t.y), c = Math.floor(r.x), l = Math.floor(r.y));
|
|
71322
|
-
for(var
|
|
71323
|
+
for(var p = Math.abs(c - a), f = Math.abs(l - s), h = Math.floor(-p / 2), m = a < c ? 1 : -1, g = s < l ? 1 : -1, b = !0, v = a, w = s; v !== c + m; v += m){
|
|
71323
71324
|
var k = u ? w : v, y = u ? v : w;
|
|
71324
71325
|
if (o.get(k, y) !== b && (b = !b, d.push({
|
|
71325
71326
|
x: k,
|
|
71326
71327
|
y: y
|
|
71327
71328
|
}), d.length === i + 1)) break;
|
|
71328
|
-
if ((h +=
|
|
71329
|
+
if ((h += f) > 0) {
|
|
71329
71330
|
if (w === l) break;
|
|
71330
|
-
w += g, h -=
|
|
71331
|
+
w += g, h -= p;
|
|
71331
71332
|
}
|
|
71332
71333
|
}
|
|
71333
71334
|
for(var C = [], B = 0; B < i; B++)d[B] && d[B + 1] ? C.push(n(d[B], d[B + 1])) : C.push(0);
|
|
@@ -71363,7 +71364,7 @@
|
|
|
71363
71364
|
}, l = s(t, a, o, r.length), d = {
|
|
71364
71365
|
x: Math.min(o.width, t.x + t.y) + 1,
|
|
71365
71366
|
y: Math.min(o.height, t.y + t.x) + 1
|
|
71366
|
-
}, u = s(t, d, o, r.length),
|
|
71367
|
+
}, u = s(t, d, o, r.length), p = c(n, r), f = c(i, r), h = c(l, r), m = c(u, r), g = Math.sqrt(p.error * p.error + f.error * f.error + h.error * h.error + m.error * m.error), b = (p.averageSize + f.averageSize + h.averageSize + m.averageSize) / 4, v = (Math.pow(p.averageSize - b, 2) + Math.pow(f.averageSize - b, 2) + Math.pow(h.averageSize - b, 2) + Math.pow(m.averageSize - b, 2)) / b;
|
|
71367
71368
|
return g + v;
|
|
71368
71369
|
} catch (t) {
|
|
71369
71370
|
return 1 / 0;
|
|
@@ -71396,16 +71397,16 @@
|
|
|
71396
71397
|
dimension: l,
|
|
71397
71398
|
moduleSize: c
|
|
71398
71399
|
};
|
|
71399
|
-
}(a, o, c, t)).dimension,
|
|
71400
|
+
}(a, o, c, t)).dimension, p = d.moduleSize;
|
|
71400
71401
|
} catch (t) {
|
|
71401
71402
|
return null;
|
|
71402
71403
|
}
|
|
71403
|
-
var d, u,
|
|
71404
|
+
var d, u, p, f = {
|
|
71404
71405
|
x: o.x - a.x + c.x,
|
|
71405
71406
|
y: o.y - a.y + c.y
|
|
71406
|
-
}, h = (n(a, c) + n(a, o)) / 2 /
|
|
71407
|
-
x: a.x + m * (
|
|
71408
|
-
y: a.y + m * (
|
|
71407
|
+
}, h = (n(a, c) + n(a, o)) / 2 / p, m = 1 - 3 / h, g = {
|
|
71408
|
+
x: a.x + m * (f.x - a.x),
|
|
71409
|
+
y: a.y + m * (f.y - a.y)
|
|
71409
71410
|
}, b = r.map(function(r) {
|
|
71410
71411
|
var o = (r.top.startX + r.top.endX + r.bottom.startX + r.bottom.endX) / 4, a = (r.top.y + r.bottom.y + 1) / 2;
|
|
71411
71412
|
if (t.get(Math.floor(o), Math.floor(a))) {
|
|
@@ -71443,7 +71444,7 @@
|
|
|
71443
71444
|
};
|
|
71444
71445
|
}
|
|
71445
71446
|
r.locate = function(t) {
|
|
71446
|
-
for(var r, o, a, s, c,
|
|
71447
|
+
for(var r, o, a, s, c, p, f, h, m, g, b, v, w, k = [], y = [], C = [], B = [], _ = function(r) {
|
|
71447
71448
|
for(var o = 0, n = !1, a = [
|
|
71448
71449
|
0,
|
|
71449
71450
|
0,
|
|
@@ -71461,21 +71462,21 @@
|
|
|
71461
71462
|
a[4],
|
|
71462
71463
|
o
|
|
71463
71464
|
], o = 1, n = c;
|
|
71464
|
-
var l = i(a) / 7, d = Math.abs(a[0] - l) < l && Math.abs(a[1] - l) < l && Math.abs(a[2] - 3 * l) < 3 * l && Math.abs(a[3] - l) < l && Math.abs(a[4] - l) < l && !c, u = i(a.slice(-3)) / 3,
|
|
71465
|
+
var l = i(a) / 7, d = Math.abs(a[0] - l) < l && Math.abs(a[1] - l) < l && Math.abs(a[2] - 3 * l) < 3 * l && Math.abs(a[3] - l) < l && Math.abs(a[4] - l) < l && !c, u = i(a.slice(-3)) / 3, p = Math.abs(a[2] - u) < u && Math.abs(a[3] - u) < u && Math.abs(a[4] - u) < u && c;
|
|
71465
71466
|
if (d) {
|
|
71466
|
-
var
|
|
71467
|
+
var f = s - a[3] - a[4], h = f - a[2], m = {
|
|
71467
71468
|
startX: h,
|
|
71468
|
-
endX:
|
|
71469
|
+
endX: f,
|
|
71469
71470
|
y: r
|
|
71470
71471
|
}, g = y.filter(function(t) {
|
|
71471
|
-
return h >= t.bottom.startX && h <= t.bottom.endX ||
|
|
71472
|
+
return h >= t.bottom.startX && h <= t.bottom.endX || f >= t.bottom.startX && h <= t.bottom.endX || h <= t.bottom.startX && f >= t.bottom.endX && a[2] / (t.bottom.endX - t.bottom.startX) < 1.5 && a[2] / (t.bottom.endX - t.bottom.startX) > .5;
|
|
71472
71473
|
});
|
|
71473
71474
|
g.length > 0 ? g[0].bottom = m : y.push({
|
|
71474
71475
|
top: m,
|
|
71475
71476
|
bottom: m
|
|
71476
71477
|
});
|
|
71477
71478
|
}
|
|
71478
|
-
if (
|
|
71479
|
+
if (p) {
|
|
71479
71480
|
var b = s - a[4], v = b - a[3], m = {
|
|
71480
71481
|
startX: v,
|
|
71481
71482
|
y: r,
|
|
@@ -71569,14 +71570,14 @@
|
|
|
71569
71570
|
r,
|
|
71570
71571
|
o,
|
|
71571
71572
|
a
|
|
71572
|
-
])[0], m = c[1], g = c[2]) : (h = (
|
|
71573
|
+
])[0], m = c[1], g = c[2]) : (h = (p = [
|
|
71573
71574
|
r,
|
|
71574
71575
|
a,
|
|
71575
71576
|
o
|
|
71576
|
-
])[0], m =
|
|
71577
|
+
])[0], m = p[1], g = p[2]), (g.x - m.x) * (h.y - m.y) - (g.y - m.y) * (h.x - m.x) < 0 && (h = (f = [
|
|
71577
71578
|
g,
|
|
71578
71579
|
h
|
|
71579
|
-
])[0], g =
|
|
71580
|
+
])[0], g = f[1]), {
|
|
71580
71581
|
bottomLeft: h,
|
|
71581
71582
|
topLeft: m,
|
|
71582
71583
|
topRight: g
|
|
@@ -71749,7 +71750,8 @@
|
|
|
71749
71750
|
opacity: ${({ showChildren: t })=>+!!t};
|
|
71750
71751
|
`;
|
|
71751
71752
|
({
|
|
71752
|
-
onOrientationChange: PropTypes.func
|
|
71753
|
+
onOrientationChange: PropTypes.func,
|
|
71754
|
+
shouldUnmount: PropTypes.bool
|
|
71753
71755
|
});
|
|
71754
71756
|
({
|
|
71755
71757
|
allowedCardTypes: PropTypes.arrayOf(PropTypes.string),
|
|
@@ -71790,10 +71792,10 @@
|
|
|
71790
71792
|
}
|
|
71791
71793
|
];
|
|
71792
71794
|
function sV() {
|
|
71793
|
-
if (rh) return
|
|
71795
|
+
if (rh) return rf;
|
|
71794
71796
|
rh = 1;
|
|
71795
71797
|
var t = o9();
|
|
71796
|
-
return
|
|
71798
|
+
return rf = function() {
|
|
71797
71799
|
try {
|
|
71798
71800
|
var r = t(Object, "defineProperty");
|
|
71799
71801
|
return r({}, "", {}), r;
|
|
@@ -71940,14 +71942,14 @@
|
|
|
71940
71942
|
return n;
|
|
71941
71943
|
}), r = sH(), o = oK(), n = sY(), i = s5(), a = s3(), s = Object.prototype.hasOwnProperty;
|
|
71942
71944
|
return od = function(c, l) {
|
|
71943
|
-
var d = o(c), u = !d && r(c),
|
|
71944
|
-
for(var b in c)(l || s.call(c, b)) && !(h && ("length" == b ||
|
|
71945
|
+
var d = o(c), u = !d && r(c), p = !d && !u && n(c), f = !d && !u && !p && a(c), h = d || u || p || f, m = h ? t(c.length, String) : [], g = m.length;
|
|
71946
|
+
for(var b in c)(l || s.call(c, b)) && !(h && ("length" == b || p && ("offset" == b || "parent" == b) || f && ("buffer" == b || "byteLength" == b || "byteOffset" == b) || i(b, g))) && m.push(b);
|
|
71945
71947
|
return m;
|
|
71946
71948
|
};
|
|
71947
71949
|
}(), r = function() {
|
|
71948
71950
|
if (om) return oh;
|
|
71949
71951
|
om = 1;
|
|
71950
|
-
var t = o1(), r = sX(), o =
|
|
71952
|
+
var t = o1(), r = sX(), o = of ? op : (of = 1, op = function(t) {
|
|
71951
71953
|
var r = [];
|
|
71952
71954
|
if (null != t) for(var o in Object(t))r.push(o);
|
|
71953
71955
|
return r;
|
|
@@ -71975,8 +71977,8 @@
|
|
|
71975
71977
|
if (oB) return oC;
|
|
71976
71978
|
oB = 1;
|
|
71977
71979
|
var t = function() {
|
|
71978
|
-
if (
|
|
71979
|
-
|
|
71980
|
+
if (rp) return ru;
|
|
71981
|
+
rp = 1;
|
|
71980
71982
|
var t = ne(), r = function() {
|
|
71981
71983
|
if (rr) return rt;
|
|
71982
71984
|
rr = 1;
|
|
@@ -72080,7 +72082,7 @@
|
|
|
72080
72082
|
return rZ = function(o) {
|
|
72081
72083
|
return r(o) && t(o);
|
|
72082
72084
|
};
|
|
72083
|
-
}(), l = sY(), d = o8(), u = o1(),
|
|
72085
|
+
}(), l = sY(), d = o8(), u = o1(), p = function() {
|
|
72084
72086
|
if (r5) return r2;
|
|
72085
72087
|
r5 = 1;
|
|
72086
72088
|
var t = o2(), r = sQ(), o = o5(), n = Object.prototype, i = Function.prototype.toString, a = n.hasOwnProperty, s = i.call(Object);
|
|
@@ -72091,7 +72093,7 @@
|
|
|
72091
72093
|
var l = a.call(c, "constructor") && c.constructor;
|
|
72092
72094
|
return "function" == typeof l && l instanceof l && i.call(l) == s;
|
|
72093
72095
|
};
|
|
72094
|
-
}(),
|
|
72096
|
+
}(), f = s3(), h = s2(), m = function() {
|
|
72095
72097
|
if (ow) return ov;
|
|
72096
72098
|
ow = 1;
|
|
72097
72099
|
var t = function() {
|
|
@@ -72125,17 +72127,17 @@
|
|
|
72125
72127
|
if (x) return void t(g, v, x);
|
|
72126
72128
|
var P = y ? y(B, _, v + "", g, b, C) : void 0, S = void 0 === P;
|
|
72127
72129
|
if (S) {
|
|
72128
|
-
var E = s(_), T = !E && l(_), D = !E && !T &&
|
|
72129
|
-
P = _, E || T || D ? s(B) ? P = B : c(B) ? P = n(B) : T ? (S = !1, P = r(_, !0)) : D ? (S = !1, P = o(_, !0)) : P = [] :
|
|
72130
|
+
var E = s(_), T = !E && l(_), D = !E && !T && f(_);
|
|
72131
|
+
P = _, E || T || D ? s(B) ? P = B : c(B) ? P = n(B) : T ? (S = !1, P = r(_, !0)) : D ? (S = !1, P = o(_, !0)) : P = [] : p(_) || a(_) ? (P = B, a(B) ? P = m(B) : (!u(B) || d(B)) && (P = i(_))) : S = !1;
|
|
72130
72132
|
}
|
|
72131
72133
|
S && (C.set(_, P), k(P, _, w, y, C), C.delete(_)), t(g, v, P);
|
|
72132
72134
|
};
|
|
72133
72135
|
}(), i = o1(), a = s0(), s = s2();
|
|
72134
|
-
return oC = function c(l, d, u,
|
|
72136
|
+
return oC = function c(l, d, u, p, f) {
|
|
72135
72137
|
l !== d && o(d, function(o, a) {
|
|
72136
|
-
if (
|
|
72138
|
+
if (f || (f = new t), i(o)) n(l, d, a, u, c, p, f);
|
|
72137
72139
|
else {
|
|
72138
|
-
var h =
|
|
72140
|
+
var h = p ? p(s(l, a), o, a + "", l, d, f) : void 0;
|
|
72139
72141
|
void 0 === h && (h = o), r(l, a, h);
|
|
72140
72142
|
}
|
|
72141
72143
|
}, a);
|
|
@@ -88744,7 +88746,7 @@
|
|
|
88744
88746
|
opacity: ${({ showChildren })=>showChildren ? 1 : 0};
|
|
88745
88747
|
`;
|
|
88746
88748
|
// eslint-disable-next-line react/require-default-props
|
|
88747
|
-
function OrientationDetection({ onOrientationChange, children }) {
|
|
88749
|
+
function OrientationDetection({ onOrientationChange, shouldUnmount, children }) {
|
|
88748
88750
|
const t = gB();
|
|
88749
88751
|
const { curOrientation } = useDetectOrientation(onOrientationChange);
|
|
88750
88752
|
const shouldShowChildren = curOrientation === MODE.PORTRAIT || curOrientation === MODE.DESKTOP;
|
|
@@ -88756,7 +88758,7 @@
|
|
|
88756
88758
|
children: t('wrong_orientation')
|
|
88757
88759
|
})
|
|
88758
88760
|
}),
|
|
88759
|
-
/*#__PURE__*/ jsxRuntimeExports.jsx(ChildrenWrapper, {
|
|
88761
|
+
(shouldUnmount ? shouldShowChildren : true) && /*#__PURE__*/ jsxRuntimeExports.jsx(ChildrenWrapper, {
|
|
88760
88762
|
showChildren: shouldShowChildren,
|
|
88761
88763
|
children: children
|
|
88762
88764
|
})
|
|
@@ -88764,10 +88766,12 @@
|
|
|
88764
88766
|
});
|
|
88765
88767
|
}
|
|
88766
88768
|
OrientationDetection.defaultProps = {
|
|
88767
|
-
onOrientationChange: ()=>{}
|
|
88769
|
+
onOrientationChange: ()=>{},
|
|
88770
|
+
shouldUnmount: false
|
|
88768
88771
|
};
|
|
88769
88772
|
OrientationDetection.propTypes = {
|
|
88770
|
-
onOrientationChange: PropTypes.func
|
|
88773
|
+
onOrientationChange: PropTypes.func,
|
|
88774
|
+
shouldUnmount: PropTypes.bool
|
|
88771
88775
|
};
|
|
88772
88776
|
|
|
88773
88777
|
const useEkycSession = ()=>{
|
|
@@ -90582,6 +90586,7 @@
|
|
|
90582
90586
|
const DefaultFlashLivenessBody = FlashLivenessBody;
|
|
90583
90587
|
const DefaultFlashLivenessOverlay = FlashLivenessOverlay;
|
|
90584
90588
|
const DefaultFlashLivenessError = FlashLivenessError;
|
|
90589
|
+
const DefaultFlashLivenessCloseIcon = CloseIcon;
|
|
90585
90590
|
function FlashLivenessImpl(props) {
|
|
90586
90591
|
const { onReset, onFlashDone: onFlashDoneCallback, frontCamera, styledComponent, onFramesCaptured, customComponent, extraConfig, onImageCaptured } = props;
|
|
90587
90592
|
const { onCloseCallback, onErrorCallback } = useSDKCallback();
|
|
@@ -90589,6 +90594,7 @@
|
|
|
90589
90594
|
const FlashLivenessBodyComponent = customComponent?.FlashLivenessBody ?? DefaultFlashLivenessBody;
|
|
90590
90595
|
const FlashLivenessOverlayComponent = customComponent?.FlashLivenessOverlay ?? DefaultFlashLivenessOverlay;
|
|
90591
90596
|
const FlashLivenessErrorComponent = customComponent?.FlashLivenessError ?? DefaultFlashLivenessError;
|
|
90597
|
+
const FlashLivenessCloseIconComponent = customComponent?.FlashLivenessCloseIcon ?? DefaultFlashLivenessCloseIcon;
|
|
90592
90598
|
const { maskSettings, flashSettings, faceSettings, livenessSettings, captureFrameSettings, imageSettings, timeoutSettings, blurCheckFarSettings, blurCheckCloseSettings, exifSettings, autoGenFrameIds } = flashLivenessSettings;
|
|
90593
90599
|
if (maskSettings.smallScale > maskSettings.largeScale) {
|
|
90594
90600
|
throw new Error('smallScale must be smaller than largeScale');
|
|
@@ -91315,7 +91321,7 @@
|
|
|
91315
91321
|
ref: videoRef,
|
|
91316
91322
|
onError: onErrorCallback,
|
|
91317
91323
|
videoSettings: videoSettings$5,
|
|
91318
|
-
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(
|
|
91324
|
+
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(FlashLivenessCloseIconComponent, {}),
|
|
91319
91325
|
children: /*#__PURE__*/ jsxRuntimeExports.jsxs(WarmUpOverlay, {
|
|
91320
91326
|
overlay: !warmupDone || !isPlaying,
|
|
91321
91327
|
loadingComponent: Loading,
|
|
@@ -92597,12 +92603,14 @@
|
|
|
92597
92603
|
};
|
|
92598
92604
|
const DefaultPassiveLivenessBody = PassiveLivenessBody;
|
|
92599
92605
|
const DefaultPassiveLivenessError = PassiveLivenessError;
|
|
92606
|
+
const DefaultPassiveLivenessCloseIcon = CloseIcon;
|
|
92600
92607
|
function PassiveLivenessUI(props) {
|
|
92601
92608
|
const { onReset, onDone: onDoneCallback, frontCamera, styledComponent, onFramesCaptured, customComponent, extraConfig } = props;
|
|
92602
92609
|
const { onErrorCallback, onCloseCallback } = useSDKCallback();
|
|
92603
92610
|
const passiveLivenessSettings = usePassiveLivenessV2Settings();
|
|
92604
92611
|
const PassiveLivenessBodyComponent = customComponent?.PassiveLivenessBody ?? DefaultPassiveLivenessBody;
|
|
92605
92612
|
const PassiveLivenessErrorComponent = customComponent?.PassiveLivenessError ?? DefaultPassiveLivenessError;
|
|
92613
|
+
const PassiveLivenessCloseIconComponent = customComponent?.PassiveLivenessCloseIcon ?? DefaultPassiveLivenessCloseIcon;
|
|
92606
92614
|
const { maskSettings, faceSettings, captureFrameSettings, exifSettings, imageSettings, timeoutSettings, blurCheckFarSettings, outputImageSettings, autoGenFrameIds } = passiveLivenessSettings;
|
|
92607
92615
|
const farFaceTimeRef = reactExports.useRef();
|
|
92608
92616
|
const logEvent = useEventLogging();
|
|
@@ -93088,7 +93096,7 @@
|
|
|
93088
93096
|
ref: videoRef,
|
|
93089
93097
|
onError: onErrorCallback,
|
|
93090
93098
|
videoSettings: videoSettings$3,
|
|
93091
|
-
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(
|
|
93099
|
+
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(PassiveLivenessCloseIconComponent, {}),
|
|
93092
93100
|
children: /*#__PURE__*/ jsxRuntimeExports.jsxs(WarmUpOverlay, {
|
|
93093
93101
|
overlay: !warmupDone || !isPlaying,
|
|
93094
93102
|
loadingComponent: Loading,
|
|
@@ -94748,7 +94756,7 @@
|
|
|
94748
94756
|
DEFAULT: 'default',
|
|
94749
94757
|
ERROR: 'error'
|
|
94750
94758
|
};
|
|
94751
|
-
function RectangleMask({ className, width, height, type, strokeStyles, strokeWidth, radius, paddingStyle, defaultRectStyles, errorRectStyles }) {
|
|
94759
|
+
function RectangleMask({ className, width, height, type, strokeStyles, strokeWidth, radius, paddingStyle, defaultRectStyles, errorRectStyles, paddingCornerMultiplier = 1.5 }) {
|
|
94752
94760
|
const styleMapping = reactExports.useMemo(()=>{
|
|
94753
94761
|
return {
|
|
94754
94762
|
[Type.DEFAULT]: defaultRectStyles,
|
|
@@ -94760,7 +94768,7 @@
|
|
|
94760
94768
|
errorRectStyles,
|
|
94761
94769
|
strokeStyles
|
|
94762
94770
|
]);
|
|
94763
|
-
const paddingCornerSize = radius + strokeWidth *
|
|
94771
|
+
const paddingCornerSize = radius + strokeWidth * paddingCornerMultiplier;
|
|
94764
94772
|
const rectStyle = styleMapping[type];
|
|
94765
94773
|
return /*#__PURE__*/ jsxRuntimeExports.jsxs("svg", {
|
|
94766
94774
|
width: width,
|
|
@@ -94808,7 +94816,8 @@
|
|
|
94808
94816
|
radius: PropTypes.number,
|
|
94809
94817
|
paddingStyle: PropTypes.shape({}),
|
|
94810
94818
|
defaultRectStyles: PropTypes.shape({}),
|
|
94811
|
-
errorRectStyles: PropTypes.shape({})
|
|
94819
|
+
errorRectStyles: PropTypes.shape({}),
|
|
94820
|
+
paddingCornerMultiplier: PropTypes.number
|
|
94812
94821
|
};
|
|
94813
94822
|
RectangleMask.defaultProps = {
|
|
94814
94823
|
className: '',
|
|
@@ -94820,7 +94829,8 @@
|
|
|
94820
94829
|
radius: defaultIDThemeV2$1.IDCapturing.rectangleMask.radius,
|
|
94821
94830
|
paddingStyle: defaultIDThemeV2$1.IDCapturing.rectangleMask.paddingStyle,
|
|
94822
94831
|
defaultRectStyles: defaultIDThemeV2$1.IDCapturing.rectangleMask.default,
|
|
94823
|
-
errorRectStyles: defaultIDThemeV2$1.IDCapturing.rectangleMask.error
|
|
94832
|
+
errorRectStyles: defaultIDThemeV2$1.IDCapturing.rectangleMask.error,
|
|
94833
|
+
paddingCornerMultiplier: 1.5
|
|
94824
94834
|
};
|
|
94825
94835
|
|
|
94826
94836
|
const StyledRectangleMask = dt$1(RectangleMask)``;
|
|
@@ -113182,6 +113192,17 @@
|
|
|
113182
113192
|
});
|
|
113183
113193
|
};
|
|
113184
113194
|
};
|
|
113195
|
+
const withLocale = (Component)=>{
|
|
113196
|
+
return function WrappedComponent(props) {
|
|
113197
|
+
const { customTexts } = props;
|
|
113198
|
+
return /*#__PURE__*/ jsxRuntimeExports.jsx(SDKLocaleProvider, {
|
|
113199
|
+
customTexts: customTexts,
|
|
113200
|
+
children: /*#__PURE__*/ jsxRuntimeExports.jsx(Component, {
|
|
113201
|
+
...props
|
|
113202
|
+
})
|
|
113203
|
+
});
|
|
113204
|
+
};
|
|
113205
|
+
};
|
|
113185
113206
|
// eslint-disable-next-line react/require-default-props
|
|
113186
113207
|
function FaceAuthenticationContainer(props) {
|
|
113187
113208
|
const { apiCheck, mode, authType, authMethod, apiCredentials, onDone: onDoneFromProp, onError: onErrorFromProp, onClose: onCloseFromProp, onReset, captureFrameSettings, onFramesCaptured, clientSettings: clientSettingsFromProp, outputEncryptionSettings, logCredentials, flowId, serviceSettings, cameraScale, offsetFaceY, frontalMinSize, customTheme, livenessDetectionComponent: LivenessDetectionComponent, customComponent, customTexts, extraConfig } = props;
|
|
@@ -113433,7 +113454,7 @@
|
|
|
113433
113454
|
onFramesCaptured: ()=>{},
|
|
113434
113455
|
customTexts: {}
|
|
113435
113456
|
};
|
|
113436
|
-
var FaceAuthenticationContainer$1 = withClientSettings(FaceAuthenticationContainer);
|
|
113457
|
+
var FaceAuthenticationContainer$1 = withClientSettings(withLocale(FaceAuthenticationContainer));
|
|
113437
113458
|
|
|
113438
113459
|
// eslint-disable-next-line react/require-default-props
|
|
113439
113460
|
function FaceAuthentication(props) {
|
|
@@ -113466,13 +113487,15 @@
|
|
|
113466
113487
|
FlashLivenessOverlay,
|
|
113467
113488
|
FlashLivenessLoading,
|
|
113468
113489
|
FlashLivenessError,
|
|
113490
|
+
FlashLivenessCloseIcon: CloseIcon,
|
|
113491
|
+
PassiveLivenessCloseIcon: CloseIcon,
|
|
113469
113492
|
PassiveLivenessBody,
|
|
113470
113493
|
PassiveLivenessError
|
|
113471
113494
|
}
|
|
113472
113495
|
};
|
|
113473
113496
|
};
|
|
113474
113497
|
|
|
113475
|
-
const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.nbcci/0.0.0-beta.
|
|
113498
|
+
const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.nbcci/0.0.0-beta.20260102-113929/assets";
|
|
113476
113499
|
class TVWebSDK extends gU {
|
|
113477
113500
|
constructor(props){
|
|
113478
113501
|
super({
|