interview-widget 3.2.21 → 3.2.22
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.
|
@@ -2,7 +2,7 @@ var $l = Object.defineProperty;
|
|
|
2
2
|
var zl = (e, t, i) => t in e ? $l(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
3
3
|
var me = (e, t, i) => zl(e, typeof t != "symbol" ? t + "" : t, i);
|
|
4
4
|
import { jsx as c, jsxs as m, Fragment as bt } from "react/jsx-runtime";
|
|
5
|
-
import Ht, { createContext as ro, useContext as Fi, useSyncExternalStore as no, useRef as
|
|
5
|
+
import Ht, { createContext as ro, useContext as Fi, useSyncExternalStore as no, useRef as P, useCallback as D, useMemo as ur, useState as N, useEffect as B, forwardRef as va, useImperativeHandle as xa } from "react";
|
|
6
6
|
import { createPortal as Wl } from "react-dom";
|
|
7
7
|
const kn = {}, it = {
|
|
8
8
|
api: {
|
|
@@ -152,7 +152,7 @@ const gr = ro(null), Zl = async () => {
|
|
|
152
152
|
}, eu = ({
|
|
153
153
|
children: e
|
|
154
154
|
}) => {
|
|
155
|
-
const t =
|
|
155
|
+
const t = P({
|
|
156
156
|
logViolations: [],
|
|
157
157
|
totalViolations: 0,
|
|
158
158
|
gazeViolationCounters: {
|
|
@@ -163,17 +163,17 @@ const gr = ro(null), Zl = async () => {
|
|
|
163
163
|
},
|
|
164
164
|
referenceSet: !1,
|
|
165
165
|
referenceRef: { x: 0.5, y: 0.5, noseX: 0.5, noseY: 0.5 }
|
|
166
|
-
}), i =
|
|
166
|
+
}), i = P(/* @__PURE__ */ new Set());
|
|
167
167
|
Ht.useEffect(() => {
|
|
168
168
|
Zl().then((w) => {
|
|
169
169
|
t.current = w, r();
|
|
170
170
|
});
|
|
171
171
|
}, []);
|
|
172
|
-
const r =
|
|
172
|
+
const r = D(() => {
|
|
173
173
|
i.current.forEach((w) => w());
|
|
174
|
-
}, []), n =
|
|
174
|
+
}, []), n = D((w) => (i.current.add(w), () => {
|
|
175
175
|
i.current.delete(w);
|
|
176
|
-
}), []), o =
|
|
176
|
+
}), []), o = D(() => t.current, []), s = D(
|
|
177
177
|
(w) => {
|
|
178
178
|
t.current = {
|
|
179
179
|
...t.current,
|
|
@@ -182,7 +182,7 @@ const gr = ro(null), Zl = async () => {
|
|
|
182
182
|
}, tr(t.current), r();
|
|
183
183
|
},
|
|
184
184
|
[r]
|
|
185
|
-
), a =
|
|
185
|
+
), a = D(
|
|
186
186
|
(w) => {
|
|
187
187
|
const f = { ...t.current.gazeViolationCounters };
|
|
188
188
|
w === "looking_away" && (f.lookingAwayCount += 1), w === "no_face_detected" && (f.noFaceDetectedCount += 1), w === "multiple_faces" && (f.multipleFacesCount += 1), f.totalGazeViolations = f.lookingAwayCount + f.noFaceDetectedCount + f.multipleFacesCount, t.current = {
|
|
@@ -191,13 +191,13 @@ const gr = ro(null), Zl = async () => {
|
|
|
191
191
|
}, tr(t.current), r();
|
|
192
192
|
},
|
|
193
193
|
[r]
|
|
194
|
-
), l =
|
|
194
|
+
), l = D(() => {
|
|
195
195
|
t.current = {
|
|
196
196
|
...t.current,
|
|
197
197
|
logViolations: [],
|
|
198
198
|
totalViolations: 0
|
|
199
199
|
}, tr(t.current), r();
|
|
200
|
-
}, [r]), d =
|
|
200
|
+
}, [r]), d = D(() => {
|
|
201
201
|
t.current = {
|
|
202
202
|
...t.current,
|
|
203
203
|
gazeViolationCounters: {
|
|
@@ -207,7 +207,7 @@ const gr = ro(null), Zl = async () => {
|
|
|
207
207
|
totalGazeViolations: 0
|
|
208
208
|
}
|
|
209
209
|
}, tr(t.current), r();
|
|
210
|
-
}, [r]), u =
|
|
210
|
+
}, [r]), u = D(
|
|
211
211
|
(w, f) => {
|
|
212
212
|
t.current = {
|
|
213
213
|
...t.current,
|
|
@@ -420,69 +420,69 @@ const hu = (e) => {
|
|
|
420
420
|
}
|
|
421
421
|
);
|
|
422
422
|
}, wu = (e) => {
|
|
423
|
-
const t =
|
|
424
|
-
i.current && (i.current.getTracks().forEach((
|
|
425
|
-
}, []),
|
|
426
|
-
var
|
|
423
|
+
const t = P(null), i = P(null), [r, n] = N(!1), [o, s] = N(!1), [a, l] = N(null), [d, u] = N([]), [h, w] = N([]), [f, g] = N(""), [y, b] = N(""), [p, v] = N(!1), E = D(() => {
|
|
424
|
+
i.current && (i.current.getTracks().forEach((C) => C.stop()), i.current = null, l(null));
|
|
425
|
+
}, []), x = D(async () => {
|
|
426
|
+
var C, A, L, j;
|
|
427
427
|
try {
|
|
428
|
-
const
|
|
429
|
-
if (u(
|
|
430
|
-
const
|
|
431
|
-
g(ee || ((
|
|
428
|
+
const $ = await navigator.mediaDevices.enumerateDevices(), q = $.filter((G) => G.kind === "audioinput"), O = $.filter((G) => G.kind === "videoinput");
|
|
429
|
+
if (u(q), w(O), !f && q.length > 0) {
|
|
430
|
+
const G = (C = i.current) == null ? void 0 : C.getAudioTracks()[0], ee = G == null ? void 0 : G.getSettings().deviceId;
|
|
431
|
+
g(ee || ((A = q[0]) == null ? void 0 : A.deviceId) || "");
|
|
432
432
|
}
|
|
433
433
|
if (!y && O.length > 0) {
|
|
434
|
-
const
|
|
434
|
+
const G = (L = i.current) == null ? void 0 : L.getVideoTracks()[0], ee = G == null ? void 0 : G.getSettings().deviceId;
|
|
435
435
|
b(ee || ((j = O[0]) == null ? void 0 : j.deviceId) || "");
|
|
436
436
|
}
|
|
437
|
-
} catch (
|
|
438
|
-
console.error("Error enumerating devices:",
|
|
437
|
+
} catch ($) {
|
|
438
|
+
console.error("Error enumerating devices:", $);
|
|
439
439
|
}
|
|
440
|
-
}, [f, y]), k =
|
|
441
|
-
const
|
|
440
|
+
}, [f, y]), k = D(async (C, A) => {
|
|
441
|
+
const L = {
|
|
442
442
|
width: { ideal: 1280 },
|
|
443
443
|
height: { ideal: 720 },
|
|
444
|
-
...
|
|
444
|
+
...A ? { deviceId: { exact: A } } : { facingMode: "user" }
|
|
445
445
|
}, j = {
|
|
446
446
|
echoCancellation: !0,
|
|
447
447
|
noiseSuppression: !0,
|
|
448
448
|
autoGainControl: !0,
|
|
449
449
|
sampleRate: { ideal: 16e3 },
|
|
450
450
|
channelCount: { ideal: 1 },
|
|
451
|
-
...
|
|
451
|
+
...C ? { deviceId: { exact: C } } : {}
|
|
452
452
|
};
|
|
453
|
-
let
|
|
453
|
+
let $ = null;
|
|
454
454
|
try {
|
|
455
|
-
|
|
456
|
-
video:
|
|
455
|
+
$ = await navigator.mediaDevices.getUserMedia({
|
|
456
|
+
video: L,
|
|
457
457
|
audio: j
|
|
458
458
|
}), n(!0), s(!0);
|
|
459
|
-
} catch (
|
|
460
|
-
console.warn("Combined media request failed, trying individual.",
|
|
459
|
+
} catch (q) {
|
|
460
|
+
console.warn("Combined media request failed, trying individual.", q);
|
|
461
461
|
try {
|
|
462
462
|
const O = await navigator.mediaDevices.getUserMedia({ audio: j });
|
|
463
|
-
n(!0),
|
|
463
|
+
n(!0), $ = O;
|
|
464
464
|
} catch (O) {
|
|
465
465
|
console.error("Audio permission denied", O), n(!1);
|
|
466
466
|
}
|
|
467
467
|
try {
|
|
468
|
-
const O = await navigator.mediaDevices.getUserMedia({ video:
|
|
469
|
-
s(!0),
|
|
468
|
+
const O = await navigator.mediaDevices.getUserMedia({ video: L });
|
|
469
|
+
s(!0), $ ? O.getTracks().forEach((G) => $.addTrack(G)) : $ = O;
|
|
470
470
|
} catch (O) {
|
|
471
471
|
console.error("Video permission denied", O), s(!1);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
|
|
475
|
-
}, [
|
|
476
|
-
|
|
477
|
-
},
|
|
478
|
-
|
|
474
|
+
$ ? (i.current = $, l($), t.current && (t.current.srcObject = $, await t.current.play().catch((q) => console.error("Error playing video element", q)))) : (i.current = null, l(null)), await x();
|
|
475
|
+
}, [x]), _ = async (C) => {
|
|
476
|
+
C !== f && (v(!0), g(C), E(), await k(C, y), v(!1));
|
|
477
|
+
}, U = async (C) => {
|
|
478
|
+
C !== y && (v(!0), b(C), E(), await k(f, C), v(!1));
|
|
479
479
|
};
|
|
480
480
|
return B(() => {
|
|
481
481
|
if (!e) {
|
|
482
|
-
|
|
482
|
+
E();
|
|
483
483
|
return;
|
|
484
484
|
}
|
|
485
|
-
return k(), () =>
|
|
485
|
+
return k(), () => E();
|
|
486
486
|
}, [e]), {
|
|
487
487
|
videoRef: t,
|
|
488
488
|
audioAllowed: r,
|
|
@@ -493,9 +493,9 @@ const hu = (e) => {
|
|
|
493
493
|
selectedVideoDeviceId: y,
|
|
494
494
|
isDeviceLoading: p,
|
|
495
495
|
currentStream: a,
|
|
496
|
-
handleAudioChange:
|
|
497
|
-
handleVideoChange:
|
|
498
|
-
stopStream:
|
|
496
|
+
handleAudioChange: _,
|
|
497
|
+
handleVideoChange: U,
|
|
498
|
+
stopStream: E
|
|
499
499
|
};
|
|
500
500
|
}, Yr = (e) => /* @__PURE__ */ m(
|
|
501
501
|
"svg",
|
|
@@ -1173,7 +1173,7 @@ var Mi = typeof Symbol == "function" && typeof Symbol() == "symbol";
|
|
|
1173
1173
|
function ht(e, t, i = !1) {
|
|
1174
1174
|
return typeof Symbol == "function" && typeof Symbol() == "symbol" ? i && Symbol.for && e ? Symbol.for(e) : e != null ? Symbol(e) : Symbol() : t;
|
|
1175
1175
|
}
|
|
1176
|
-
var Du = ht("jas", void 0, !0), ms = ht(void 0, "0di"), ir = ht(void 0, "1oa"),
|
|
1176
|
+
var Du = ht("jas", void 0, !0), ms = ht(void 0, "0di"), ir = ht(void 0, "1oa"), Ve = ht(void 0, Symbol()), Pu = ht(void 0, "0ub"), Ou = ht(void 0, "0ubs"), Un = ht(void 0, "0ubsb"), Bu = ht(void 0, "0actk"), xi = ht("m_m", "Pa", !0), gs = ht();
|
|
1177
1177
|
const Ba = { Ga: { value: 0, configurable: !0, writable: !0, enumerable: !1 } }, Ua = Object.defineProperties, S = Mi ? Du : "Ga";
|
|
1178
1178
|
var ti;
|
|
1179
1179
|
const ps = [];
|
|
@@ -1219,7 +1219,7 @@ class ys {
|
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
var Uu = Object.freeze({});
|
|
1222
|
-
function
|
|
1222
|
+
function Ga(e, t, i) {
|
|
1223
1223
|
const r = 128 & t ? 0 : -1, n = e.length;
|
|
1224
1224
|
var o;
|
|
1225
1225
|
(o = !!n) && (o = (o = e[n - 1]) != null && typeof o == "object" && o.constructor === Object);
|
|
@@ -1230,22 +1230,22 @@ function Va(e, t, i) {
|
|
|
1230
1230
|
for (const a in e) !isNaN(a) && i(+a, e[a]);
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
|
-
var
|
|
1233
|
+
var Va = {};
|
|
1234
1234
|
function Di(e) {
|
|
1235
|
-
return 128 & e ?
|
|
1235
|
+
return 128 & e ? Va : void 0;
|
|
1236
1236
|
}
|
|
1237
1237
|
function Jr(e) {
|
|
1238
1238
|
return e.Na = !0, e;
|
|
1239
1239
|
}
|
|
1240
|
-
var
|
|
1240
|
+
var Gu = Jr((e) => typeof e == "number"), bs = Jr((e) => typeof e == "string"), Vu = Jr((e) => typeof e == "boolean"), Zr = typeof yi.BigInt == "function" && typeof yi.BigInt(0) == "bigint";
|
|
1241
1241
|
function je(e) {
|
|
1242
1242
|
var t = e;
|
|
1243
1243
|
if (bs(t)) {
|
|
1244
1244
|
if (!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t)) throw Error(String(t));
|
|
1245
|
-
} else if (
|
|
1246
|
-
return Zr ? BigInt(e) : e =
|
|
1245
|
+
} else if (Gu(t) && !Number.isSafeInteger(t)) throw Error(String(t));
|
|
1246
|
+
return Zr ? BigInt(e) : e = Vu(e) ? e ? "1" : "0" : bs(e) ? e.trim() || "0" : String(e);
|
|
1247
1247
|
}
|
|
1248
|
-
var
|
|
1248
|
+
var Gn = Jr((e) => Zr ? e >= $u && e <= Wu : e[0] === "-" ? vs(e, ju) : vs(e, zu));
|
|
1249
1249
|
const ju = Number.MIN_SAFE_INTEGER.toString(), $u = Zr ? BigInt(Number.MIN_SAFE_INTEGER) : void 0, zu = Number.MAX_SAFE_INTEGER.toString(), Wu = Zr ? BigInt(Number.MAX_SAFE_INTEGER) : void 0;
|
|
1250
1250
|
function vs(e, t) {
|
|
1251
1251
|
if (e.length > t.length) return !1;
|
|
@@ -1273,7 +1273,7 @@ function mo(e) {
|
|
|
1273
1273
|
const t = qu || (qu = new DataView(new ArrayBuffer(8)));
|
|
1274
1274
|
t.setFloat32(0, +e, !0), he = 0, oe = t.getUint32(0, !0);
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1276
|
+
function Vn(e, t) {
|
|
1277
1277
|
const i = 4294967296 * t + (e >>> 0);
|
|
1278
1278
|
return Number.isSafeInteger(i) ? i : wr(e, t);
|
|
1279
1279
|
}
|
|
@@ -1282,7 +1282,7 @@ function Ku(e, t) {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
function go(e, t) {
|
|
1284
1284
|
const i = 2147483648 & t;
|
|
1285
|
-
return i && (t = ~t >>> 0, (e = 1 + ~e >>> 0) == 0 && (t = t + 1 >>> 0)), typeof (e =
|
|
1285
|
+
return i && (t = ~t >>> 0, (e = 1 + ~e >>> 0) == 0 && (t = t + 1 >>> 0)), typeof (e = Vn(e, t)) == "number" ? i ? -e : e : i ? "-" + e : e;
|
|
1286
1286
|
}
|
|
1287
1287
|
function ja(e, t) {
|
|
1288
1288
|
return Li() ? je(BigInt.asIntN(64, (BigInt.asUintN(32, BigInt(t)) << BigInt(32)) + BigInt.asUintN(32, BigInt(e)))) : je(po(e, t));
|
|
@@ -1389,7 +1389,7 @@ function Ka(e) {
|
|
|
1389
1389
|
return ei(e) ? e = je(bo(e)) : (e = ki(e), ei(e) ? e = String(e) : (_i(e), e = po(oe, he)), e = je(e)), e;
|
|
1390
1390
|
}
|
|
1391
1391
|
function Ju(e) {
|
|
1392
|
-
return e == null ? e : typeof e == "bigint" ? (
|
|
1392
|
+
return e == null ? e : typeof e == "bigint" ? (Gn(e) ? e = Number(e) : (e = vr(64, e), e = Gn(e) ? Number(e) : String(e)), e) : xr(e) ? typeof e == "number" ? bo(e) : Ha(e) : void 0;
|
|
1393
1393
|
}
|
|
1394
1394
|
function Br(e) {
|
|
1395
1395
|
const t = typeof e;
|
|
@@ -1554,7 +1554,7 @@ function ks() {
|
|
|
1554
1554
|
return od || (od = new vt(br([]), void 0, void 0, void 0, ed));
|
|
1555
1555
|
}
|
|
1556
1556
|
function rn(e) {
|
|
1557
|
-
return
|
|
1557
|
+
return Ve ? e[Ve] : void 0;
|
|
1558
1558
|
}
|
|
1559
1559
|
function Ur(e, t) {
|
|
1560
1560
|
for (const i in e) !isNaN(i) && t(e, +i, e[i]);
|
|
@@ -1569,7 +1569,7 @@ function ad(e, t) {
|
|
|
1569
1569
|
function nn(e, t, i, r) {
|
|
1570
1570
|
const n = r !== void 0;
|
|
1571
1571
|
r = !!r;
|
|
1572
|
-
var o, s =
|
|
1572
|
+
var o, s = Ve;
|
|
1573
1573
|
!n && Mi && s && (o = e[s]) && Ur(o, ad), s = [];
|
|
1574
1574
|
var a = e.length;
|
|
1575
1575
|
let l;
|
|
@@ -1589,7 +1589,7 @@ function nn(e, t, i, r) {
|
|
|
1589
1589
|
let g;
|
|
1590
1590
|
w = +f, u && !Number.isNaN(w) && (g = w + h) < o ? s[g] = a : (t ?? (t = {}))[f] = a;
|
|
1591
1591
|
}
|
|
1592
|
-
return t && (d ? s.push(t) : s[o] = t), n &&
|
|
1592
|
+
return t && (d ? s.push(t) : s[o] = t), n && Ve && (e = rn(e)) && e instanceof jn && (s[Ve] = function(f) {
|
|
1593
1593
|
const g = new jn();
|
|
1594
1594
|
return Ur(f, (y, b, p) => {
|
|
1595
1595
|
g[b] = rt(p);
|
|
@@ -1604,7 +1604,7 @@ function mr(e) {
|
|
|
1604
1604
|
case "number":
|
|
1605
1605
|
return Number.isFinite(e) ? e : "" + e;
|
|
1606
1606
|
case "bigint":
|
|
1607
|
-
return
|
|
1607
|
+
return Gn(e) ? Number(e) : "" + e;
|
|
1608
1608
|
case "boolean":
|
|
1609
1609
|
return e ? 1 : 0;
|
|
1610
1610
|
case "object":
|
|
@@ -1814,7 +1814,7 @@ function ec(e) {
|
|
|
1814
1814
|
function Lt(e, t, i, r) {
|
|
1815
1815
|
Ui(e), ge(e = e.v, 0 | e[S], t, (r === "0" ? Number(i) === 0 : i === r) ? void 0 : i);
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1817
|
+
function Gi(e, t, i) {
|
|
1818
1818
|
if (2 & t) throw Error();
|
|
1819
1819
|
const r = Di(t);
|
|
1820
1820
|
let n = ko(e, i, r), o = n === ti ? 7 : 0 | n[S], s = Ao(o, t);
|
|
@@ -1865,7 +1865,7 @@ function ic(e, t, i, r, n) {
|
|
|
1865
1865
|
return o = a !== s && a != null, a;
|
|
1866
1866
|
})) != null) return o && !$e(r) && ii(e, t), r;
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1868
|
+
function Y(e, t, i, r) {
|
|
1869
1869
|
let n = e.v, o = 0 | n[S];
|
|
1870
1870
|
if ((t = ic(n, o, t, i, r)) == null) return t;
|
|
1871
1871
|
if (o = 0 | n[S], !$e(e, o)) {
|
|
@@ -1887,8 +1887,8 @@ function rc(e, t, i, r, n, o, s, a) {
|
|
|
1887
1887
|
const v = vo(h[b], r, !1, w);
|
|
1888
1888
|
if (v instanceof r) {
|
|
1889
1889
|
if (!f) {
|
|
1890
|
-
const
|
|
1891
|
-
g && (g = !
|
|
1890
|
+
const E = $e(v);
|
|
1891
|
+
g && (g = !E), y && (y = E);
|
|
1892
1892
|
}
|
|
1893
1893
|
h[p++] = v;
|
|
1894
1894
|
}
|
|
@@ -1908,7 +1908,7 @@ function Et(e, t, i) {
|
|
|
1908
1908
|
function nc(e) {
|
|
1909
1909
|
return e == null && (e = void 0), e;
|
|
1910
1910
|
}
|
|
1911
|
-
function
|
|
1911
|
+
function M(e, t, i, r, n) {
|
|
1912
1912
|
return J(e, i, r = nc(r), n), r && !$e(r) && ii(e.v), e;
|
|
1913
1913
|
}
|
|
1914
1914
|
function sr(e, t, i, r) {
|
|
@@ -1955,7 +1955,7 @@ function R(e, t, i) {
|
|
|
1955
1955
|
function ze(e, t, i) {
|
|
1956
1956
|
Lt(e, t, Er(i), "");
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function Gr(e, t, i) {
|
|
1959
1959
|
{
|
|
1960
1960
|
Ui(e);
|
|
1961
1961
|
const s = e.v;
|
|
@@ -2018,7 +2018,7 @@ function Pt(e) {
|
|
|
2018
2018
|
function kt(e) {
|
|
2019
2019
|
return Pt(e) >>> 0;
|
|
2020
2020
|
}
|
|
2021
|
-
function
|
|
2021
|
+
function Vr(e) {
|
|
2022
2022
|
var t = e.h;
|
|
2023
2023
|
const i = e.g;
|
|
2024
2024
|
var r = t[i], n = t[i + 1];
|
|
@@ -2184,12 +2184,12 @@ function gi(e, t, i) {
|
|
|
2184
2184
|
for (; i > 0 || t > 127; ) e.g.push(127 & t | 128), t = (t >>> 7 | i << 25) >>> 0, i >>>= 7;
|
|
2185
2185
|
e.g.push(t);
|
|
2186
2186
|
}
|
|
2187
|
-
function
|
|
2187
|
+
function Vi(e, t) {
|
|
2188
2188
|
for (; t > 127; ) e.g.push(127 & t | 128), t >>>= 7;
|
|
2189
2189
|
e.g.push(t);
|
|
2190
2190
|
}
|
|
2191
2191
|
function an(e, t) {
|
|
2192
|
-
if (t >= 0)
|
|
2192
|
+
if (t >= 0) Vi(e, t);
|
|
2193
2193
|
else {
|
|
2194
2194
|
for (let i = 0; i < 9; i++) e.g.push(127 & t | 128), t >>= 7;
|
|
2195
2195
|
e.g.push(1);
|
|
@@ -2203,7 +2203,7 @@ function Ti(e, t) {
|
|
|
2203
2203
|
t.length !== 0 && (e.l.push(t), e.h += t.length);
|
|
2204
2204
|
}
|
|
2205
2205
|
function et(e, t, i) {
|
|
2206
|
-
|
|
2206
|
+
Vi(e.g, 8 * t + i);
|
|
2207
2207
|
}
|
|
2208
2208
|
function Mo(e, t) {
|
|
2209
2209
|
return et(e, t, 2), t = e.g.end(), Ti(e, t), t.push(e.h), t;
|
|
@@ -2214,7 +2214,7 @@ function Do(e, t) {
|
|
|
2214
2214
|
t.push(i), e.h++;
|
|
2215
2215
|
}
|
|
2216
2216
|
function cn(e, t, i) {
|
|
2217
|
-
et(e, t, 2),
|
|
2217
|
+
et(e, t, 2), Vi(e.g, i.length), Ti(e, e.g.end()), Ti(e, i);
|
|
2218
2218
|
}
|
|
2219
2219
|
function $r(e, t, i, r) {
|
|
2220
2220
|
i != null && (t = Mo(e, t), r(i, e), Do(e, t));
|
|
@@ -2230,7 +2230,7 @@ function wt() {
|
|
|
2230
2230
|
var Po = wt(), hc = wt(), Oo = wt(), Bo = wt(), wc = wt(), fc = wt(), pd = wt(), ln = wt(), mc = wt(), gc = wt();
|
|
2231
2231
|
function ft(e, t, i) {
|
|
2232
2232
|
var r = e.v;
|
|
2233
|
-
|
|
2233
|
+
Ve && Ve in r && (r = r[Ve]) && delete r[t.g], t.h ? t.j(e, t.h, t.g, i, t.l) : t.j(e, t.g, i, t.l);
|
|
2234
2234
|
}
|
|
2235
2235
|
var I = class {
|
|
2236
2236
|
constructor(e, t) {
|
|
@@ -2241,8 +2241,8 @@ var I = class {
|
|
|
2241
2241
|
}
|
|
2242
2242
|
j() {
|
|
2243
2243
|
var n;
|
|
2244
|
-
var e = Zd, t = this.v, i = e.g, r =
|
|
2245
|
-
if (Mi && r && ((n = t[r]) == null ? void 0 : n[i]) != null && vi(Pu, 3), t = e.g, gs &&
|
|
2244
|
+
var e = Zd, t = this.v, i = e.g, r = Ve;
|
|
2245
|
+
if (Mi && r && ((n = t[r]) == null ? void 0 : n[i]) != null && vi(Pu, 3), t = e.g, gs && Ve && gs === void 0 && (r = (i = this.v)[Ve]) && (r = r.da)) try {
|
|
2246
2246
|
r(i, t, sd);
|
|
2247
2247
|
} catch (o) {
|
|
2248
2248
|
Fa(o);
|
|
@@ -2324,15 +2324,15 @@ function Uo(e, t, i, r) {
|
|
|
2324
2324
|
const n = i.g;
|
|
2325
2325
|
e[t] = r ? (o, s, a) => n(o, s, a, r) : n;
|
|
2326
2326
|
}
|
|
2327
|
-
function
|
|
2327
|
+
function Go(e, t, i, r, n) {
|
|
2328
2328
|
const o = i.g;
|
|
2329
2329
|
let s, a;
|
|
2330
|
-
e[t] = (l, d, u) => o(l, d, u, a || (a = ri(hn, Uo,
|
|
2330
|
+
e[t] = (l, d, u) => o(l, d, u, a || (a = ri(hn, Uo, Go, r).T), s || (s = Vo(r)), n);
|
|
2331
2331
|
}
|
|
2332
|
-
function
|
|
2332
|
+
function Vo(e) {
|
|
2333
2333
|
let t = e[Wn];
|
|
2334
2334
|
if (t != null) return t;
|
|
2335
|
-
const i = ri(hn, Uo,
|
|
2335
|
+
const i = ri(hn, Uo, Go, e);
|
|
2336
2336
|
return t = i.ma ? (r, n) => yc(r, n, i) : (r, n) => {
|
|
2337
2337
|
for (; uc(n) && n.h != 4; ) {
|
|
2338
2338
|
var o = n.l, s = i[o];
|
|
@@ -2343,7 +2343,7 @@ function Go(e) {
|
|
|
2343
2343
|
if (s == null || !s(n, r, o)) {
|
|
2344
2344
|
if (s = (a = n).m, Dr(a), a.ha) var l = void 0;
|
|
2345
2345
|
else l = a.g.g - s, a.g.g = s, l = ac(a.g, l);
|
|
2346
|
-
s = void 0, a = r, l && ((s = a[
|
|
2346
|
+
s = void 0, a = r, l && ((s = a[Ve] ?? (a[Ve] = new jn()))[o] ?? (s[o] = [])).push(l);
|
|
2347
2347
|
}
|
|
2348
2348
|
}
|
|
2349
2349
|
return (r = rn(r)) && (r.da = i.qa[Fs]), !0;
|
|
@@ -2380,7 +2380,7 @@ function vd(e, t, i, r) {
|
|
|
2380
2380
|
}
|
|
2381
2381
|
g != null && (u = ge(e, u, f, g, h)), delete a[f];
|
|
2382
2382
|
};
|
|
2383
|
-
t == null ?
|
|
2383
|
+
t == null ? Ga(s, 0 | s[S], (f, g) => {
|
|
2384
2384
|
w(f, g);
|
|
2385
2385
|
}) : w(t, xt(s, t, h));
|
|
2386
2386
|
}
|
|
@@ -2390,7 +2390,7 @@ function vd(e, t, i, r) {
|
|
|
2390
2390
|
function xd(e) {
|
|
2391
2391
|
const t = (e = vc(e))[0].g;
|
|
2392
2392
|
if (e = e[1]) {
|
|
2393
|
-
const i =
|
|
2393
|
+
const i = Vo(e), r = ri(hn, Uo, Go, e).T;
|
|
2394
2394
|
return (n, o, s) => t(n, o, s, r, i);
|
|
2395
2395
|
}
|
|
2396
2396
|
return t;
|
|
@@ -2412,7 +2412,7 @@ function Ec(e) {
|
|
|
2412
2412
|
return t;
|
|
2413
2413
|
}
|
|
2414
2414
|
function _c(e, t, i) {
|
|
2415
|
-
|
|
2415
|
+
Ga(e, 0 | e[S], (r, n) => {
|
|
2416
2416
|
if (n != null) {
|
|
2417
2417
|
var o = function(s, a) {
|
|
2418
2418
|
var l = s[a];
|
|
@@ -2515,10 +2515,10 @@ function Ic(e, t, i) {
|
|
|
2515
2515
|
(t = t == null || typeof t == "string" || t instanceof dt ? t : void 0) != null && cn(e, i, Io(t, !0).buffer);
|
|
2516
2516
|
}
|
|
2517
2517
|
function Fc(e, t, i) {
|
|
2518
|
-
return (e.h === 5 || e.h === 2) && (t =
|
|
2518
|
+
return (e.h === 5 || e.h === 2) && (t = Gi(t, 0 | t[S], i), e.h == 2 ? sn(e, Vr, t) : t.push(Vr(e.g)), !0);
|
|
2519
2519
|
}
|
|
2520
2520
|
var we = Ie(function(e, t, i) {
|
|
2521
|
-
return e.h === 5 && (_e(t, i,
|
|
2521
|
+
return e.h === 5 && (_e(t, i, Vr(e.g)), !0);
|
|
2522
2522
|
}, kc, ln), kd = zi(Fc, function(e, t, i) {
|
|
2523
2523
|
if ((t = $i(ut, t)) != null) for (let s = 0; s < t.length; s++) {
|
|
2524
2524
|
var r = e, n = i, o = t[s];
|
|
@@ -2526,17 +2526,17 @@ var we = Ie(function(e, t, i) {
|
|
|
2526
2526
|
}
|
|
2527
2527
|
}, ln), jo = zi(Fc, function(e, t, i) {
|
|
2528
2528
|
if ((t = $i(ut, t)) != null && t.length) {
|
|
2529
|
-
et(e, i, 2),
|
|
2529
|
+
et(e, i, 2), Vi(e.g, 4 * t.length);
|
|
2530
2530
|
for (let r = 0; r < t.length; r++) i = e.g, mo(t[r]), Lo(i);
|
|
2531
2531
|
}
|
|
2532
2532
|
}, ln), Ad = Ie(function(e, t, i) {
|
|
2533
|
-
return e.h === 5 && (_e(t, i, (e =
|
|
2533
|
+
return e.h === 5 && (_e(t, i, (e = Vr(e.g)) === 0 ? void 0 : e), !0);
|
|
2534
2534
|
}, kc, ln), Ot = Ie(function(e, t, i) {
|
|
2535
2535
|
return lo ? (e.h !== 0 ? e = !1 : (_e(t, i, Ai(e.g, ja)), e = !0), e) : e.h === 0 && (_e(t, i, Ai(e.g, go)), !0);
|
|
2536
2536
|
}, Ac, fc), Sn = Ie(function(e, t, i) {
|
|
2537
2537
|
return lo ? (e.h !== 0 ? t = !1 : (_e(t, i, (e = Ai(e.g, ja)) === Ed ? void 0 : e), t = !0), t) : e.h === 0 && (_e(t, i, (e = Ai(e.g, go)) === 0 ? void 0 : e), !0);
|
|
2538
2538
|
}, Ac, fc), Td = Ie(function(e, t, i) {
|
|
2539
|
-
return lo ? (e.h !== 0 ? e = !1 : (_e(t, i, Ai(e.g, Ku)), e = !0), e) : e.h === 0 && (_e(t, i, Ai(e.g,
|
|
2539
|
+
return lo ? (e.h !== 0 ? e = !1 : (_e(t, i, Ai(e.g, Ku)), e = !0), e) : e.h === 0 && (_e(t, i, Ai(e.g, Vn)), !0);
|
|
2540
2540
|
}, function(e, t, i) {
|
|
2541
2541
|
if (t = function(r) {
|
|
2542
2542
|
if (r == null) return r;
|
|
@@ -2544,7 +2544,7 @@ var we = Ie(function(e, t, i) {
|
|
|
2544
2544
|
if (n === "bigint") return String(Yu(64, r));
|
|
2545
2545
|
if (xr(r)) {
|
|
2546
2546
|
if (n === "string") return n = ki(Number(r)), ei(n) && n >= 0 ? r = String(n) : ((n = r.indexOf(".")) !== -1 && (r = r.substring(0, n)), (n = r[0] !== "-" && ((n = r.length) < 20 || n === 20 && r <= "18446744073709551615")) || (en(r), r = wr(oe, he))), r;
|
|
2547
|
-
if (n === "number") return (r = ki(r)) >= 0 && ei(r) || (_i(r), r =
|
|
2547
|
+
if (n === "number") return (r = ki(r)) >= 0 && ei(r) || (_i(r), r = Vn(oe, he)), r;
|
|
2548
2548
|
}
|
|
2549
2549
|
}(t), t != null && (typeof t == "string" && Cs(t), t != null))
|
|
2550
2550
|
switch (et(e, i, 0), typeof t) {
|
|
@@ -2560,7 +2560,7 @@ var we = Ie(function(e, t, i) {
|
|
|
2560
2560
|
}, pd), Ee = Ie(function(e, t, i) {
|
|
2561
2561
|
return e.h === 0 && (_e(t, i, Pt(e.g)), !0);
|
|
2562
2562
|
}, Tc, Bo), kr = zi(function(e, t, i) {
|
|
2563
|
-
return (e.h === 0 || e.h === 2) && (t =
|
|
2563
|
+
return (e.h === 0 || e.h === 2) && (t = Gi(t, 0 | t[S], i), e.h == 2 ? sn(e, Pt, t) : t.push(Pt(e.g)), !0);
|
|
2564
2564
|
}, function(e, t, i) {
|
|
2565
2565
|
if ((t = $i(Pi, t)) != null && t.length) {
|
|
2566
2566
|
i = Mo(e, i);
|
|
@@ -2574,7 +2574,7 @@ var we = Ie(function(e, t, i) {
|
|
|
2574
2574
|
}, Nc, hc), Qt = Ie(function(e, t, i) {
|
|
2575
2575
|
return e.h === 0 && (_e(t, i, (e = Fo(e.g)) === !1 ? void 0 : e), !0);
|
|
2576
2576
|
}, Nc, hc), Te = zi(function(e, t, i) {
|
|
2577
|
-
return e.h === 2 && (e = Ro(e),
|
|
2577
|
+
return e.h === 2 && (e = Ro(e), Gi(t, 0 | t[S], i).push(e), !0);
|
|
2578
2578
|
}, function(e, t, i) {
|
|
2579
2579
|
if ((t = $i(ke, t)) != null) for (let s = 0; s < t.length; s++) {
|
|
2580
2580
|
var r = e, n = i, o = t[s];
|
|
@@ -2587,7 +2587,7 @@ var we = Ie(function(e, t, i) {
|
|
|
2587
2587
|
}, Cc, Oo), xe = function(e, t, i = Po) {
|
|
2588
2588
|
return new ji(e, t, i);
|
|
2589
2589
|
}(function(e, t, i, r, n) {
|
|
2590
|
-
return e.h === 2 && (r = qt(void 0, r),
|
|
2590
|
+
return e.h === 2 && (r = qt(void 0, r), Gi(t, 0 | t[S], i).push(r), _r(e, r, n), !0);
|
|
2591
2591
|
}, function(e, t, i, r, n) {
|
|
2592
2592
|
if (Array.isArray(t)) {
|
|
2593
2593
|
for (let o = 0; o < t.length; o++) Sc(e, t[o], i, r, n);
|
|
@@ -2600,16 +2600,16 @@ var we = Ie(function(e, t, i) {
|
|
|
2600
2600
|
}, Sc), Rc = Ie(function(e, t, i) {
|
|
2601
2601
|
return e.h === 2 && (_e(t, i, dc(e)), !0);
|
|
2602
2602
|
}, Ic, mc), Nd = zi(function(e, t, i) {
|
|
2603
|
-
return (e.h === 0 || e.h === 2) && (t =
|
|
2603
|
+
return (e.h === 0 || e.h === 2) && (t = Gi(t, 0 | t[S], i), e.h == 2 ? sn(e, kt, t) : t.push(kt(e.g)), !0);
|
|
2604
2604
|
}, function(e, t, i) {
|
|
2605
2605
|
if ((t = $i(za, t)) != null) for (let s = 0; s < t.length; s++) {
|
|
2606
2606
|
var r = e, n = i, o = t[s];
|
|
2607
|
-
o != null && (et(r, n, 0),
|
|
2607
|
+
o != null && (et(r, n, 0), Vi(r.g, o));
|
|
2608
2608
|
}
|
|
2609
2609
|
}, wc), Cd = Ie(function(e, t, i) {
|
|
2610
2610
|
return e.h === 0 && (_e(t, i, (e = kt(e.g)) === 0 ? void 0 : e), !0);
|
|
2611
2611
|
}, function(e, t, i) {
|
|
2612
|
-
(t = za(t)) != null && t != null && (et(e, i, 0),
|
|
2612
|
+
(t = za(t)) != null && t != null && (et(e, i, 0), Vi(e.g, t));
|
|
2613
2613
|
}, wc), We = Ie(function(e, t, i) {
|
|
2614
2614
|
return e.h === 0 && (_e(t, i, Pt(e.g)), !0);
|
|
2615
2615
|
}, function(e, t, i) {
|
|
@@ -2618,7 +2618,7 @@ var we = Ie(function(e, t, i) {
|
|
|
2618
2618
|
class Sd {
|
|
2619
2619
|
constructor(t, i) {
|
|
2620
2620
|
var r = qe;
|
|
2621
|
-
this.g = t, this.h = i, this.m =
|
|
2621
|
+
this.g = t, this.h = i, this.m = Y, this.j = M, this.defaultValue = void 0, this.l = r.Oa != null ? Va : void 0;
|
|
2622
2622
|
}
|
|
2623
2623
|
register() {
|
|
2624
2624
|
Qr(this);
|
|
@@ -2634,7 +2634,7 @@ function Bt(e, t) {
|
|
|
2634
2634
|
r && Object.assign(o, r), i = cc(i, void 0, void 0, o);
|
|
2635
2635
|
try {
|
|
2636
2636
|
const s = new e(), a = s.v;
|
|
2637
|
-
|
|
2637
|
+
Vo(t)(a, i);
|
|
2638
2638
|
var n = s;
|
|
2639
2639
|
} finally {
|
|
2640
2640
|
lc(i);
|
|
@@ -2719,7 +2719,7 @@ var Lc = [0, Ee, We, de, -1, kr, We, -1, de], Fd = class extends I {
|
|
|
2719
2719
|
super(e);
|
|
2720
2720
|
}
|
|
2721
2721
|
}, Mc = [0, de, Z, de, We, -1, zi(function(e, t, i) {
|
|
2722
|
-
return (e.h === 0 || e.h === 2) && (t =
|
|
2722
|
+
return (e.h === 0 || e.h === 2) && (t = Gi(t, 0 | t[S], i), e.h == 2 ? sn(e, wd, t) : t.push(Pt(e.g)), !0);
|
|
2723
2723
|
}, function(e, t, i) {
|
|
2724
2724
|
if ((t = $i(Pi, t)) != null && t.length) {
|
|
2725
2725
|
i = Mo(e, i);
|
|
@@ -2748,7 +2748,7 @@ var Le = class extends I {
|
|
|
2748
2748
|
super(e, 500);
|
|
2749
2749
|
}
|
|
2750
2750
|
o(e) {
|
|
2751
|
-
return
|
|
2751
|
+
return M(this, 0, 7, e);
|
|
2752
2752
|
}
|
|
2753
2753
|
}, ar = [-1, {}], Bs = [0, Z, 1, ar], Us = [0, Z, Te, ar];
|
|
2754
2754
|
function tt(e, t) {
|
|
@@ -2757,7 +2757,7 @@ function tt(e, t) {
|
|
|
2757
2757
|
function se(e, t) {
|
|
2758
2758
|
on(e, 10, t);
|
|
2759
2759
|
}
|
|
2760
|
-
function
|
|
2760
|
+
function X(e, t) {
|
|
2761
2761
|
on(e, 15, t);
|
|
2762
2762
|
}
|
|
2763
2763
|
var Ke = class extends I {
|
|
@@ -2765,7 +2765,7 @@ var Ke = class extends I {
|
|
|
2765
2765
|
super(e, 500);
|
|
2766
2766
|
}
|
|
2767
2767
|
o(e) {
|
|
2768
|
-
return
|
|
2768
|
+
return M(this, 0, 1001, e);
|
|
2769
2769
|
}
|
|
2770
2770
|
}, Uc = [-500, xe, [-500, Mt, -1, Te, -3, [-2, pe, de], xe, Ls, mi, -1, Bs, Us, xe, [0, Mt, Qt], Mt, Os, mi, Te, 987, Te], 4, xe, [-500, Z, -1, [-1, {}], 998, Z], xe, [-500, Z, Te, -1, [-2, {}, de], 997, Te, -1], mi, xe, [-500, Z, Te, ar, 998, Te], Te, mi, Bs, Us, xe, [0, Mt, -1, ar], Te, -2, Os, Mt, -1, Qt, [0, Qt, Cd], 978, ar, xe, Ls];
|
|
2771
2771
|
Ke.prototype.g = mn(Uc);
|
|
@@ -2773,14 +2773,14 @@ var Rd = Bt(Ke, Uc), Ld = class extends I {
|
|
|
2773
2773
|
constructor(e) {
|
|
2774
2774
|
super(e);
|
|
2775
2775
|
}
|
|
2776
|
-
},
|
|
2776
|
+
}, Gc = class extends I {
|
|
2777
2777
|
constructor(e) {
|
|
2778
2778
|
super(e);
|
|
2779
2779
|
}
|
|
2780
2780
|
g() {
|
|
2781
2781
|
return Et(this, Ld, 1);
|
|
2782
2782
|
}
|
|
2783
|
-
},
|
|
2783
|
+
}, Vc = [0, xe, [0, Ee, we, Z, -1]], gn = Bt(Gc, Vc), Md = class extends I {
|
|
2784
2784
|
constructor(e) {
|
|
2785
2785
|
super(e);
|
|
2786
2786
|
}
|
|
@@ -2793,7 +2793,7 @@ var Rd = Bt(Ke, Uc), Ld = class extends I {
|
|
|
2793
2793
|
super(e);
|
|
2794
2794
|
}
|
|
2795
2795
|
l() {
|
|
2796
|
-
return
|
|
2796
|
+
return Y(this, Md, 2);
|
|
2797
2797
|
}
|
|
2798
2798
|
g() {
|
|
2799
2799
|
return Et(this, Dd, 5);
|
|
@@ -2836,11 +2836,11 @@ var Bd = class extends I {
|
|
|
2836
2836
|
constructor(e) {
|
|
2837
2837
|
super(e);
|
|
2838
2838
|
}
|
|
2839
|
-
}, [0, xe, [0, 1, Ee, Z,
|
|
2839
|
+
}, [0, xe, [0, 1, Ee, Z, Vc], Ot]), Gs = class extends I {
|
|
2840
2840
|
constructor(e) {
|
|
2841
2841
|
super(e);
|
|
2842
2842
|
}
|
|
2843
|
-
},
|
|
2843
|
+
}, Gd = class extends I {
|
|
2844
2844
|
constructor(e) {
|
|
2845
2845
|
super(e);
|
|
2846
2846
|
}
|
|
@@ -2848,7 +2848,7 @@ var Bd = class extends I {
|
|
|
2848
2848
|
const e = ie(this, 1, void 0, void 0, Za);
|
|
2849
2849
|
return e ?? Jt();
|
|
2850
2850
|
}
|
|
2851
|
-
},
|
|
2851
|
+
}, Vd = class extends I {
|
|
2852
2852
|
constructor(e) {
|
|
2853
2853
|
super(e);
|
|
2854
2854
|
}
|
|
@@ -2860,7 +2860,7 @@ var Bd = class extends I {
|
|
|
2860
2860
|
constructor(e) {
|
|
2861
2861
|
super(e);
|
|
2862
2862
|
}
|
|
2863
|
-
}, qc = [0, Z, Ee, we, Te, -1],
|
|
2863
|
+
}, qc = [0, Z, Ee, we, Te, -1], Vs = class extends I {
|
|
2864
2864
|
constructor(e) {
|
|
2865
2865
|
super(e);
|
|
2866
2866
|
}
|
|
@@ -2910,7 +2910,7 @@ var wi = class extends I {
|
|
|
2910
2910
|
super(e);
|
|
2911
2911
|
}
|
|
2912
2912
|
l() {
|
|
2913
|
-
return
|
|
2913
|
+
return Y(this, $o, 2);
|
|
2914
2914
|
}
|
|
2915
2915
|
g() {
|
|
2916
2916
|
J(this, 2);
|
|
@@ -3039,7 +3039,7 @@ var hl = class extends I {
|
|
|
3039
3039
|
}
|
|
3040
3040
|
}, ih = mt(516587230, hl);
|
|
3041
3041
|
function Yn(e, t) {
|
|
3042
|
-
return t = t ? t.clone() : new $o(), e.displayNamesLocale !== void 0 ? J(t, 1, Er(e.displayNamesLocale)) : e.displayNamesLocale === void 0 && J(t, 1), e.maxResults !== void 0 ? _t(t, 2, e.maxResults) : "maxResults" in e && J(t, 2), e.scoreThreshold !== void 0 ? R(t, 3, e.scoreThreshold) : "scoreThreshold" in e && J(t, 3), e.categoryAllowlist !== void 0 ?
|
|
3042
|
+
return t = t ? t.clone() : new $o(), e.displayNamesLocale !== void 0 ? J(t, 1, Er(e.displayNamesLocale)) : e.displayNamesLocale === void 0 && J(t, 1), e.maxResults !== void 0 ? _t(t, 2, e.maxResults) : "maxResults" in e && J(t, 2), e.scoreThreshold !== void 0 ? R(t, 3, e.scoreThreshold) : "scoreThreshold" in e && J(t, 3), e.categoryAllowlist !== void 0 ? Gr(t, 4, e.categoryAllowlist) : "categoryAllowlist" in e && J(t, 4), e.categoryDenylist !== void 0 ? Gr(t, 5, e.categoryDenylist) : "categoryDenylist" in e && J(t, 5), t;
|
|
3043
3043
|
}
|
|
3044
3044
|
function wl(e) {
|
|
3045
3045
|
const t = Number(e);
|
|
@@ -3051,7 +3051,7 @@ function Xo(e, t = -1, i = "") {
|
|
|
3051
3051
|
function rh(e) {
|
|
3052
3052
|
const t = { classifications: Et(e, Bd, 1).map((i) => {
|
|
3053
3053
|
var r;
|
|
3054
|
-
return Xo(((r =
|
|
3054
|
+
return Xo(((r = Y(i, Gc, 4)) == null ? void 0 : r.g()) ?? [], Ze(i, 2) ?? 0, ke(ie(i, 3)) ?? "");
|
|
3055
3055
|
}) };
|
|
3056
3056
|
return function(i) {
|
|
3057
3057
|
return Ju(uo ? ie(i, 2, void 0, void 0, Br) : ie(i, 2));
|
|
@@ -3062,7 +3062,7 @@ function fl(e) {
|
|
|
3062
3062
|
var t = Wt(e, 3, ut, zt()), i = Wt(e, 2, Pi, zt()), r = Wt(e, 1, ke, zt()), n = Wt(e, 9, ke, zt());
|
|
3063
3063
|
const o = { categories: [], keypoints: [] };
|
|
3064
3064
|
for (let l = 0; l < t.length; l++) o.categories.push({ score: t[l], index: i[l] ?? -1, categoryName: r[l] ?? "", displayName: n[l] ?? "" });
|
|
3065
|
-
if ((t = (s =
|
|
3065
|
+
if ((t = (s = Y(e, Fn, 4)) == null ? void 0 : s.l()) && (o.boundingBox = { originX: Ze(t, 1, Ct) ?? 0, originY: Ze(t, 2, Ct) ?? 0, width: Ze(t, 3, Ct) ?? 0, height: Ze(t, 4, Ct) ?? 0, angle: 0 }), (a = Y(e, Fn, 4)) == null ? void 0 : a.g().length) for (const l of Y(e, Fn, 4).g()) o.keypoints.push({ x: ie(l, 1, void 0, Ct, ut) ?? 0, y: ie(l, 2, void 0, Ct, ut) ?? 0, score: ie(l, 4, void 0, Ct, ut) ?? 0, label: ke(ie(l, 3, void 0, Ct)) ?? "" });
|
|
3066
3066
|
return o;
|
|
3067
3067
|
}
|
|
3068
3068
|
function yn(e) {
|
|
@@ -3176,8 +3176,8 @@ async function oh(e, t, i, r) {
|
|
|
3176
3176
|
})(e, i.wasmLoaderPath, i.assetLoaderPath, t, { locateFile: (n) => n.endsWith(".wasm") ? i.wasmBinaryPath.toString() : i.assetBinaryPath && n.endsWith(".data") ? i.assetBinaryPath.toString() : n }), await e.o(r), e;
|
|
3177
3177
|
}
|
|
3178
3178
|
function Ln(e, t) {
|
|
3179
|
-
const i =
|
|
3180
|
-
typeof t == "string" ? (J(i, 2, Er(t)), J(i, 1)) : t instanceof Uint8Array && (J(i, 1, fo(t, !1)), J(i, 2)),
|
|
3179
|
+
const i = Y(e.baseOptions, zr, 1) || new zr();
|
|
3180
|
+
typeof t == "string" ? (J(i, 2, Er(t)), J(i, 1)) : t instanceof Uint8Array && (J(i, 1, fo(t, !1)), J(i, 2)), M(e.baseOptions, 0, 1, i);
|
|
3181
3181
|
}
|
|
3182
3182
|
function Qs(e) {
|
|
3183
3183
|
try {
|
|
@@ -3188,7 +3188,7 @@ function Qs(e) {
|
|
|
3188
3188
|
e.H = [];
|
|
3189
3189
|
}
|
|
3190
3190
|
}
|
|
3191
|
-
function
|
|
3191
|
+
function T(e, t) {
|
|
3192
3192
|
e.C = Math.max(e.C, t);
|
|
3193
3193
|
}
|
|
3194
3194
|
function bn(e, t) {
|
|
@@ -3209,14 +3209,14 @@ var Xn = class {
|
|
|
3209
3209
|
if (t) {
|
|
3210
3210
|
const l = e.baseOptions || {};
|
|
3211
3211
|
if ((i = e.baseOptions) != null && i.modelAssetBuffer && ((r = e.baseOptions) != null && r.modelAssetPath)) throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");
|
|
3212
|
-
if (!((n =
|
|
3212
|
+
if (!((n = Y(this.baseOptions, zr, 1)) != null && n.g() || (o = Y(this.baseOptions, zr, 1)) != null && o.l() || (s = e.baseOptions) != null && s.modelAssetBuffer || (a = e.baseOptions) != null && a.modelAssetPath)) throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");
|
|
3213
3213
|
if (function(d, u) {
|
|
3214
|
-
let h =
|
|
3214
|
+
let h = Y(d.baseOptions, js, 3);
|
|
3215
3215
|
if (!h) {
|
|
3216
3216
|
var w = h = new js(), f = new Ps();
|
|
3217
3217
|
sr(w, 4, Pr, f);
|
|
3218
3218
|
}
|
|
3219
|
-
"delegate" in u && (u.delegate === "GPU" ? (u = h, w = new Fd(), sr(u, 2, Pr, w)) : (u = h, w = new Ps(), sr(u, 4, Pr, w))),
|
|
3219
|
+
"delegate" in u && (u.delegate === "GPU" ? (u = h, w = new Fd(), sr(u, 2, Pr, w)) : (u = h, w = new Ps(), sr(u, 4, Pr, w))), M(d.baseOptions, 0, 3, h);
|
|
3220
3220
|
}(this, l), l.modelAssetPath) return fetch(l.modelAssetPath.toString()).then((d) => {
|
|
3221
3221
|
if (d.ok) return d.arrayBuffer();
|
|
3222
3222
|
throw Error(`Failed to fetch model: ${l.modelAssetPath} (${d.status})`);
|
|
@@ -3830,7 +3830,7 @@ const lh = /* @__PURE__ */ function(e) {
|
|
|
3830
3830
|
}));
|
|
3831
3831
|
var ta, ot = class extends lh {
|
|
3832
3832
|
};
|
|
3833
|
-
async function
|
|
3833
|
+
async function K(e, t, i) {
|
|
3834
3834
|
return async function(r, n, o, s) {
|
|
3835
3835
|
return oh(r, n, o, s);
|
|
3836
3836
|
}(e, i.canvas ?? (gl() ? void 0 : document.createElement("canvas")), t, i);
|
|
@@ -3887,13 +3887,13 @@ var He = class extends Xn {
|
|
|
3887
3887
|
He.prototype.close = He.prototype.close;
|
|
3888
3888
|
var Xe = class extends He {
|
|
3889
3889
|
constructor(e, t) {
|
|
3890
|
-
super(new ot(e, t), "image_in", "norm_rect_in", !1), this.j = { detections: [] },
|
|
3890
|
+
super(new ot(e, t), "image_in", "norm_rect_in", !1), this.j = { detections: [] }, M(e = this.h = new pn(), 0, 1, t = new ce()), R(this.h, 2, 0.5), R(this.h, 3, 0.3);
|
|
3891
3891
|
}
|
|
3892
3892
|
get baseOptions() {
|
|
3893
|
-
return
|
|
3893
|
+
return Y(this.h, ce, 1);
|
|
3894
3894
|
}
|
|
3895
3895
|
set baseOptions(e) {
|
|
3896
|
-
|
|
3896
|
+
M(this.h, 0, 1, e);
|
|
3897
3897
|
}
|
|
3898
3898
|
o(e) {
|
|
3899
3899
|
return "minDetectionConfidence" in e && R(this.h, 2, e.minDetectionConfidence ?? 0.5), "minSuppressionThreshold" in e && R(this.h, 3, e.minSuppressionThreshold ?? 0.3), this.l(e);
|
|
@@ -3906,24 +3906,24 @@ var Xe = class extends He {
|
|
|
3906
3906
|
}
|
|
3907
3907
|
m() {
|
|
3908
3908
|
var e = new Ke();
|
|
3909
|
-
se(e, "image_in"), se(e, "norm_rect_in"),
|
|
3909
|
+
se(e, "image_in"), se(e, "norm_rect_in"), X(e, "detections");
|
|
3910
3910
|
const t = new qe();
|
|
3911
3911
|
ft(t, zd, this.h);
|
|
3912
3912
|
const i = new Le();
|
|
3913
3913
|
ze(i, 2, "mediapipe.tasks.vision.face_detector.FaceDetectorGraph"), re(i, "IMAGE:image_in"), re(i, "NORM_RECT:norm_rect_in"), H(i, "DETECTIONS:detections"), i.o(t), tt(e, i), this.g.attachProtoVectorListener("detections", (r, n) => {
|
|
3914
3914
|
for (const o of r) r = jc(o), this.j.detections.push(fl(r));
|
|
3915
|
-
|
|
3915
|
+
T(this, n);
|
|
3916
3916
|
}), this.g.attachEmptyPacketListener("detections", (r) => {
|
|
3917
|
-
|
|
3917
|
+
T(this, r);
|
|
3918
3918
|
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3919
3919
|
}
|
|
3920
3920
|
};
|
|
3921
3921
|
Xe.prototype.detectForVideo = Xe.prototype.G, Xe.prototype.detect = Xe.prototype.F, Xe.prototype.setOptions = Xe.prototype.o, Xe.createFromModelPath = async function(e, t) {
|
|
3922
|
-
return
|
|
3922
|
+
return K(Xe, e, { baseOptions: { modelAssetPath: t } });
|
|
3923
3923
|
}, Xe.createFromModelBuffer = function(e, t) {
|
|
3924
|
-
return
|
|
3924
|
+
return K(Xe, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3925
3925
|
}, Xe.createFromOptions = function(e, t) {
|
|
3926
|
-
return
|
|
3926
|
+
return K(Xe, e, t);
|
|
3927
3927
|
};
|
|
3928
3928
|
var Zo = nt([61, 146], [146, 91], [91, 181], [181, 84], [84, 17], [17, 314], [314, 405], [405, 321], [321, 375], [375, 291], [61, 185], [185, 40], [40, 39], [39, 37], [37, 0], [0, 267], [267, 269], [269, 270], [270, 409], [409, 291], [78, 95], [95, 88], [88, 178], [178, 87], [87, 14], [14, 317], [317, 402], [402, 318], [318, 324], [324, 308], [78, 191], [191, 80], [80, 81], [81, 82], [82, 13], [13, 312], [312, 311], [311, 310], [310, 415], [415, 308]), es = nt([263, 249], [249, 390], [390, 373], [373, 374], [374, 380], [380, 381], [381, 382], [382, 362], [263, 466], [466, 388], [388, 387], [387, 386], [386, 385], [385, 384], [384, 398], [398, 362]), ts = nt([276, 283], [283, 282], [282, 295], [295, 285], [300, 293], [293, 334], [334, 296], [296, 336]), Al = nt([474, 475], [475, 476], [476, 477], [477, 474]), is = nt([33, 7], [7, 163], [163, 144], [144, 145], [145, 153], [153, 154], [154, 155], [155, 133], [33, 246], [246, 161], [161, 160], [160, 159], [159, 158], [158, 157], [157, 173], [173, 133]), rs = nt([46, 53], [53, 52], [52, 65], [65, 55], [70, 63], [63, 105], [105, 66], [66, 107]), Tl = nt([469, 470], [470, 471], [471, 472], [472, 469]), ns = nt([10, 338], [338, 297], [297, 332], [332, 284], [284, 251], [251, 389], [389, 356], [356, 454], [454, 323], [323, 361], [361, 288], [288, 397], [397, 365], [365, 379], [379, 378], [378, 400], [400, 377], [377, 152], [152, 148], [148, 176], [176, 149], [149, 150], [150, 136], [136, 172], [172, 58], [58, 132], [132, 93], [93, 234], [234, 127], [127, 162], [162, 21], [21, 54], [54, 103], [103, 67], [67, 109], [109, 10]), Nl = [...Zo, ...es, ...ts, ...is, ...rs, ...ns], Cl = nt([127, 34], [34, 139], [139, 127], [11, 0], [0, 37], [37, 11], [232, 231], [231, 120], [120, 232], [72, 37], [37, 39], [39, 72], [128, 121], [121, 47], [47, 128], [232, 121], [121, 128], [128, 232], [104, 69], [69, 67], [67, 104], [175, 171], [171, 148], [148, 175], [118, 50], [50, 101], [101, 118], [73, 39], [39, 40], [40, 73], [9, 151], [151, 108], [108, 9], [48, 115], [115, 131], [131, 48], [194, 204], [204, 211], [211, 194], [74, 40], [40, 185], [185, 74], [80, 42], [42, 183], [183, 80], [40, 92], [92, 186], [186, 40], [230, 229], [229, 118], [118, 230], [202, 212], [212, 214], [214, 202], [83, 18], [18, 17], [17, 83], [76, 61], [61, 146], [146, 76], [160, 29], [29, 30], [30, 160], [56, 157], [157, 173], [173, 56], [106, 204], [204, 194], [194, 106], [135, 214], [214, 192], [192, 135], [203, 165], [165, 98], [98, 203], [21, 71], [71, 68], [68, 21], [51, 45], [45, 4], [4, 51], [144, 24], [24, 23], [23, 144], [77, 146], [146, 91], [91, 77], [205, 50], [50, 187], [187, 205], [201, 200], [200, 18], [18, 201], [91, 106], [106, 182], [182, 91], [90, 91], [91, 181], [181, 90], [85, 84], [84, 17], [17, 85], [206, 203], [203, 36], [36, 206], [148, 171], [171, 140], [140, 148], [92, 40], [40, 39], [39, 92], [193, 189], [189, 244], [244, 193], [159, 158], [158, 28], [28, 159], [247, 246], [246, 161], [161, 247], [236, 3], [3, 196], [196, 236], [54, 68], [68, 104], [104, 54], [193, 168], [168, 8], [8, 193], [117, 228], [228, 31], [31, 117], [189, 193], [193, 55], [55, 189], [98, 97], [97, 99], [99, 98], [126, 47], [47, 100], [100, 126], [166, 79], [79, 218], [218, 166], [155, 154], [154, 26], [26, 155], [209, 49], [49, 131], [131, 209], [135, 136], [136, 150], [150, 135], [47, 126], [126, 217], [217, 47], [223, 52], [52, 53], [53, 223], [45, 51], [51, 134], [134, 45], [211, 170], [170, 140], [140, 211], [67, 69], [69, 108], [108, 67], [43, 106], [106, 91], [91, 43], [230, 119], [119, 120], [120, 230], [226, 130], [130, 247], [247, 226], [63, 53], [53, 52], [52, 63], [238, 20], [20, 242], [242, 238], [46, 70], [70, 156], [156, 46], [78, 62], [62, 96], [96, 78], [46, 53], [53, 63], [63, 46], [143, 34], [34, 227], [227, 143], [123, 117], [117, 111], [111, 123], [44, 125], [125, 19], [19, 44], [236, 134], [134, 51], [51, 236], [216, 206], [206, 205], [205, 216], [154, 153], [153, 22], [22, 154], [39, 37], [37, 167], [167, 39], [200, 201], [201, 208], [208, 200], [36, 142], [142, 100], [100, 36], [57, 212], [212, 202], [202, 57], [20, 60], [60, 99], [99, 20], [28, 158], [158, 157], [157, 28], [35, 226], [226, 113], [113, 35], [160, 159], [159, 27], [27, 160], [204, 202], [202, 210], [210, 204], [113, 225], [225, 46], [46, 113], [43, 202], [202, 204], [204, 43], [62, 76], [76, 77], [77, 62], [137, 123], [123, 116], [116, 137], [41, 38], [38, 72], [72, 41], [203, 129], [129, 142], [142, 203], [64, 98], [98, 240], [240, 64], [49, 102], [102, 64], [64, 49], [41, 73], [73, 74], [74, 41], [212, 216], [216, 207], [207, 212], [42, 74], [74, 184], [184, 42], [169, 170], [170, 211], [211, 169], [170, 149], [149, 176], [176, 170], [105, 66], [66, 69], [69, 105], [122, 6], [6, 168], [168, 122], [123, 147], [147, 187], [187, 123], [96, 77], [77, 90], [90, 96], [65, 55], [55, 107], [107, 65], [89, 90], [90, 180], [180, 89], [101, 100], [100, 120], [120, 101], [63, 105], [105, 104], [104, 63], [93, 137], [137, 227], [227, 93], [15, 86], [86, 85], [85, 15], [129, 102], [102, 49], [49, 129], [14, 87], [87, 86], [86, 14], [55, 8], [8, 9], [9, 55], [100, 47], [47, 121], [121, 100], [145, 23], [23, 22], [22, 145], [88, 89], [89, 179], [179, 88], [6, 122], [122, 196], [196, 6], [88, 95], [95, 96], [96, 88], [138, 172], [172, 136], [136, 138], [215, 58], [58, 172], [172, 215], [115, 48], [48, 219], [219, 115], [42, 80], [80, 81], [81, 42], [195, 3], [3, 51], [51, 195], [43, 146], [146, 61], [61, 43], [171, 175], [175, 199], [199, 171], [81, 82], [82, 38], [38, 81], [53, 46], [46, 225], [225, 53], [144, 163], [163, 110], [110, 144], [52, 65], [65, 66], [66, 52], [229, 228], [228, 117], [117, 229], [34, 127], [127, 234], [234, 34], [107, 108], [108, 69], [69, 107], [109, 108], [108, 151], [151, 109], [48, 64], [64, 235], [235, 48], [62, 78], [78, 191], [191, 62], [129, 209], [209, 126], [126, 129], [111, 35], [35, 143], [143, 111], [117, 123], [123, 50], [50, 117], [222, 65], [65, 52], [52, 222], [19, 125], [125, 141], [141, 19], [221, 55], [55, 65], [65, 221], [3, 195], [195, 197], [197, 3], [25, 7], [7, 33], [33, 25], [220, 237], [237, 44], [44, 220], [70, 71], [71, 139], [139, 70], [122, 193], [193, 245], [245, 122], [247, 130], [130, 33], [33, 247], [71, 21], [21, 162], [162, 71], [170, 169], [169, 150], [150, 170], [188, 174], [174, 196], [196, 188], [216, 186], [186, 92], [92, 216], [2, 97], [97, 167], [167, 2], [141, 125], [125, 241], [241, 141], [164, 167], [167, 37], [37, 164], [72, 38], [38, 12], [12, 72], [38, 82], [82, 13], [13, 38], [63, 68], [68, 71], [71, 63], [226, 35], [35, 111], [111, 226], [101, 50], [50, 205], [205, 101], [206, 92], [92, 165], [165, 206], [209, 198], [198, 217], [217, 209], [165, 167], [167, 97], [97, 165], [220, 115], [115, 218], [218, 220], [133, 112], [112, 243], [243, 133], [239, 238], [238, 241], [241, 239], [214, 135], [135, 169], [169, 214], [190, 173], [173, 133], [133, 190], [171, 208], [208, 32], [32, 171], [125, 44], [44, 237], [237, 125], [86, 87], [87, 178], [178, 86], [85, 86], [86, 179], [179, 85], [84, 85], [85, 180], [180, 84], [83, 84], [84, 181], [181, 83], [201, 83], [83, 182], [182, 201], [137, 93], [93, 132], [132, 137], [76, 62], [62, 183], [183, 76], [61, 76], [76, 184], [184, 61], [57, 61], [61, 185], [185, 57], [212, 57], [57, 186], [186, 212], [214, 207], [207, 187], [187, 214], [34, 143], [143, 156], [156, 34], [79, 239], [239, 237], [237, 79], [123, 137], [137, 177], [177, 123], [44, 1], [1, 4], [4, 44], [201, 194], [194, 32], [32, 201], [64, 102], [102, 129], [129, 64], [213, 215], [215, 138], [138, 213], [59, 166], [166, 219], [219, 59], [242, 99], [99, 97], [97, 242], [2, 94], [94, 141], [141, 2], [75, 59], [59, 235], [235, 75], [24, 110], [110, 228], [228, 24], [25, 130], [130, 226], [226, 25], [23, 24], [24, 229], [229, 23], [22, 23], [23, 230], [230, 22], [26, 22], [22, 231], [231, 26], [112, 26], [26, 232], [232, 112], [189, 190], [190, 243], [243, 189], [221, 56], [56, 190], [190, 221], [28, 56], [56, 221], [221, 28], [27, 28], [28, 222], [222, 27], [29, 27], [27, 223], [223, 29], [30, 29], [29, 224], [224, 30], [247, 30], [30, 225], [225, 247], [238, 79], [79, 20], [20, 238], [166, 59], [59, 75], [75, 166], [60, 75], [75, 240], [240, 60], [147, 177], [177, 215], [215, 147], [20, 79], [79, 166], [166, 20], [187, 147], [147, 213], [213, 187], [112, 233], [233, 244], [244, 112], [233, 128], [128, 245], [245, 233], [128, 114], [114, 188], [188, 128], [114, 217], [217, 174], [174, 114], [131, 115], [115, 220], [220, 131], [217, 198], [198, 236], [236, 217], [198, 131], [131, 134], [134, 198], [177, 132], [132, 58], [58, 177], [143, 35], [35, 124], [124, 143], [110, 163], [163, 7], [7, 110], [228, 110], [110, 25], [25, 228], [356, 389], [389, 368], [368, 356], [11, 302], [302, 267], [267, 11], [452, 350], [350, 349], [349, 452], [302, 303], [303, 269], [269, 302], [357, 343], [343, 277], [277, 357], [452, 453], [453, 357], [357, 452], [333, 332], [332, 297], [297, 333], [175, 152], [152, 377], [377, 175], [347, 348], [348, 330], [330, 347], [303, 304], [304, 270], [270, 303], [9, 336], [336, 337], [337, 9], [278, 279], [279, 360], [360, 278], [418, 262], [262, 431], [431, 418], [304, 408], [408, 409], [409, 304], [310, 415], [415, 407], [407, 310], [270, 409], [409, 410], [410, 270], [450, 348], [348, 347], [347, 450], [422, 430], [430, 434], [434, 422], [313, 314], [314, 17], [17, 313], [306, 307], [307, 375], [375, 306], [387, 388], [388, 260], [260, 387], [286, 414], [414, 398], [398, 286], [335, 406], [406, 418], [418, 335], [364, 367], [367, 416], [416, 364], [423, 358], [358, 327], [327, 423], [251, 284], [284, 298], [298, 251], [281, 5], [5, 4], [4, 281], [373, 374], [374, 253], [253, 373], [307, 320], [320, 321], [321, 307], [425, 427], [427, 411], [411, 425], [421, 313], [313, 18], [18, 421], [321, 405], [405, 406], [406, 321], [320, 404], [404, 405], [405, 320], [315, 16], [16, 17], [17, 315], [426, 425], [425, 266], [266, 426], [377, 400], [400, 369], [369, 377], [322, 391], [391, 269], [269, 322], [417, 465], [465, 464], [464, 417], [386, 257], [257, 258], [258, 386], [466, 260], [260, 388], [388, 466], [456, 399], [399, 419], [419, 456], [284, 332], [332, 333], [333, 284], [417, 285], [285, 8], [8, 417], [346, 340], [340, 261], [261, 346], [413, 441], [441, 285], [285, 413], [327, 460], [460, 328], [328, 327], [355, 371], [371, 329], [329, 355], [392, 439], [439, 438], [438, 392], [382, 341], [341, 256], [256, 382], [429, 420], [420, 360], [360, 429], [364, 394], [394, 379], [379, 364], [277, 343], [343, 437], [437, 277], [443, 444], [444, 283], [283, 443], [275, 440], [440, 363], [363, 275], [431, 262], [262, 369], [369, 431], [297, 338], [338, 337], [337, 297], [273, 375], [375, 321], [321, 273], [450, 451], [451, 349], [349, 450], [446, 342], [342, 467], [467, 446], [293, 334], [334, 282], [282, 293], [458, 461], [461, 462], [462, 458], [276, 353], [353, 383], [383, 276], [308, 324], [324, 325], [325, 308], [276, 300], [300, 293], [293, 276], [372, 345], [345, 447], [447, 372], [352, 345], [345, 340], [340, 352], [274, 1], [1, 19], [19, 274], [456, 248], [248, 281], [281, 456], [436, 427], [427, 425], [425, 436], [381, 256], [256, 252], [252, 381], [269, 391], [391, 393], [393, 269], [200, 199], [199, 428], [428, 200], [266, 330], [330, 329], [329, 266], [287, 273], [273, 422], [422, 287], [250, 462], [462, 328], [328, 250], [258, 286], [286, 384], [384, 258], [265, 353], [353, 342], [342, 265], [387, 259], [259, 257], [257, 387], [424, 431], [431, 430], [430, 424], [342, 353], [353, 276], [276, 342], [273, 335], [335, 424], [424, 273], [292, 325], [325, 307], [307, 292], [366, 447], [447, 345], [345, 366], [271, 303], [303, 302], [302, 271], [423, 266], [266, 371], [371, 423], [294, 455], [455, 460], [460, 294], [279, 278], [278, 294], [294, 279], [271, 272], [272, 304], [304, 271], [432, 434], [434, 427], [427, 432], [272, 407], [407, 408], [408, 272], [394, 430], [430, 431], [431, 394], [395, 369], [369, 400], [400, 395], [334, 333], [333, 299], [299, 334], [351, 417], [417, 168], [168, 351], [352, 280], [280, 411], [411, 352], [325, 319], [319, 320], [320, 325], [295, 296], [296, 336], [336, 295], [319, 403], [403, 404], [404, 319], [330, 348], [348, 349], [349, 330], [293, 298], [298, 333], [333, 293], [323, 454], [454, 447], [447, 323], [15, 16], [16, 315], [315, 15], [358, 429], [429, 279], [279, 358], [14, 15], [15, 316], [316, 14], [285, 336], [336, 9], [9, 285], [329, 349], [349, 350], [350, 329], [374, 380], [380, 252], [252, 374], [318, 402], [402, 403], [403, 318], [6, 197], [197, 419], [419, 6], [318, 319], [319, 325], [325, 318], [367, 364], [364, 365], [365, 367], [435, 367], [367, 397], [397, 435], [344, 438], [438, 439], [439, 344], [272, 271], [271, 311], [311, 272], [195, 5], [5, 281], [281, 195], [273, 287], [287, 291], [291, 273], [396, 428], [428, 199], [199, 396], [311, 271], [271, 268], [268, 311], [283, 444], [444, 445], [445, 283], [373, 254], [254, 339], [339, 373], [282, 334], [334, 296], [296, 282], [449, 347], [347, 346], [346, 449], [264, 447], [447, 454], [454, 264], [336, 296], [296, 299], [299, 336], [338, 10], [10, 151], [151, 338], [278, 439], [439, 455], [455, 278], [292, 407], [407, 415], [415, 292], [358, 371], [371, 355], [355, 358], [340, 345], [345, 372], [372, 340], [346, 347], [347, 280], [280, 346], [442, 443], [443, 282], [282, 442], [19, 94], [94, 370], [370, 19], [441, 442], [442, 295], [295, 441], [248, 419], [419, 197], [197, 248], [263, 255], [255, 359], [359, 263], [440, 275], [275, 274], [274, 440], [300, 383], [383, 368], [368, 300], [351, 412], [412, 465], [465, 351], [263, 467], [467, 466], [466, 263], [301, 368], [368, 389], [389, 301], [395, 378], [378, 379], [379, 395], [412, 351], [351, 419], [419, 412], [436, 426], [426, 322], [322, 436], [2, 164], [164, 393], [393, 2], [370, 462], [462, 461], [461, 370], [164, 0], [0, 267], [267, 164], [302, 11], [11, 12], [12, 302], [268, 12], [12, 13], [13, 268], [293, 300], [300, 301], [301, 293], [446, 261], [261, 340], [340, 446], [330, 266], [266, 425], [425, 330], [426, 423], [423, 391], [391, 426], [429, 355], [355, 437], [437, 429], [391, 327], [327, 326], [326, 391], [440, 457], [457, 438], [438, 440], [341, 382], [382, 362], [362, 341], [459, 457], [457, 461], [461, 459], [434, 430], [430, 394], [394, 434], [414, 463], [463, 362], [362, 414], [396, 369], [369, 262], [262, 396], [354, 461], [461, 457], [457, 354], [316, 403], [403, 402], [402, 316], [315, 404], [404, 403], [403, 315], [314, 405], [405, 404], [404, 314], [313, 406], [406, 405], [405, 313], [421, 418], [418, 406], [406, 421], [366, 401], [401, 361], [361, 366], [306, 408], [408, 407], [407, 306], [291, 409], [409, 408], [408, 291], [287, 410], [410, 409], [409, 287], [432, 436], [436, 410], [410, 432], [434, 416], [416, 411], [411, 434], [264, 368], [368, 383], [383, 264], [309, 438], [438, 457], [457, 309], [352, 376], [376, 401], [401, 352], [274, 275], [275, 4], [4, 274], [421, 428], [428, 262], [262, 421], [294, 327], [327, 358], [358, 294], [433, 416], [416, 367], [367, 433], [289, 455], [455, 439], [439, 289], [462, 370], [370, 326], [326, 462], [2, 326], [326, 370], [370, 2], [305, 460], [460, 455], [455, 305], [254, 449], [449, 448], [448, 254], [255, 261], [261, 446], [446, 255], [253, 450], [450, 449], [449, 253], [252, 451], [451, 450], [450, 252], [256, 452], [452, 451], [451, 256], [341, 453], [453, 452], [452, 341], [413, 464], [464, 463], [463, 413], [441, 413], [413, 414], [414, 441], [258, 442], [442, 441], [441, 258], [257, 443], [443, 442], [442, 257], [259, 444], [444, 443], [443, 259], [260, 445], [445, 444], [444, 260], [467, 342], [342, 445], [445, 467], [459, 458], [458, 250], [250, 459], [289, 392], [392, 290], [290, 289], [290, 328], [328, 460], [460, 290], [376, 433], [433, 435], [435, 376], [250, 290], [290, 392], [392, 250], [411, 416], [416, 433], [433, 411], [341, 463], [463, 464], [464, 341], [453, 464], [464, 465], [465, 453], [357, 465], [465, 412], [412, 357], [343, 412], [412, 399], [399, 343], [360, 363], [363, 440], [440, 360], [437, 399], [399, 456], [456, 437], [420, 456], [456, 363], [363, 420], [401, 435], [435, 288], [288, 401], [372, 383], [383, 353], [353, 372], [339, 255], [255, 249], [249, 339], [448, 261], [261, 255], [255, 448], [133, 243], [243, 190], [190, 133], [133, 155], [155, 112], [112, 133], [33, 246], [246, 247], [247, 33], [33, 130], [130, 25], [25, 33], [398, 384], [384, 286], [286, 398], [362, 398], [398, 414], [414, 362], [362, 463], [463, 341], [341, 362], [263, 359], [359, 467], [467, 263], [263, 249], [249, 255], [255, 263], [466, 467], [467, 260], [260, 466], [75, 60], [60, 166], [166, 75], [238, 239], [239, 79], [79, 238], [162, 127], [127, 139], [139, 162], [72, 11], [11, 37], [37, 72], [121, 232], [232, 120], [120, 121], [73, 72], [72, 39], [39, 73], [114, 128], [128, 47], [47, 114], [233, 232], [232, 128], [128, 233], [103, 104], [104, 67], [67, 103], [152, 175], [175, 148], [148, 152], [119, 118], [118, 101], [101, 119], [74, 73], [73, 40], [40, 74], [107, 9], [9, 108], [108, 107], [49, 48], [48, 131], [131, 49], [32, 194], [194, 211], [211, 32], [184, 74], [74, 185], [185, 184], [191, 80], [80, 183], [183, 191], [185, 40], [40, 186], [186, 185], [119, 230], [230, 118], [118, 119], [210, 202], [202, 214], [214, 210], [84, 83], [83, 17], [17, 84], [77, 76], [76, 146], [146, 77], [161, 160], [160, 30], [30, 161], [190, 56], [56, 173], [173, 190], [182, 106], [106, 194], [194, 182], [138, 135], [135, 192], [192, 138], [129, 203], [203, 98], [98, 129], [54, 21], [21, 68], [68, 54], [5, 51], [51, 4], [4, 5], [145, 144], [144, 23], [23, 145], [90, 77], [77, 91], [91, 90], [207, 205], [205, 187], [187, 207], [83, 201], [201, 18], [18, 83], [181, 91], [91, 182], [182, 181], [180, 90], [90, 181], [181, 180], [16, 85], [85, 17], [17, 16], [205, 206], [206, 36], [36, 205], [176, 148], [148, 140], [140, 176], [165, 92], [92, 39], [39, 165], [245, 193], [193, 244], [244, 245], [27, 159], [159, 28], [28, 27], [30, 247], [247, 161], [161, 30], [174, 236], [236, 196], [196, 174], [103, 54], [54, 104], [104, 103], [55, 193], [193, 8], [8, 55], [111, 117], [117, 31], [31, 111], [221, 189], [189, 55], [55, 221], [240, 98], [98, 99], [99, 240], [142, 126], [126, 100], [100, 142], [219, 166], [166, 218], [218, 219], [112, 155], [155, 26], [26, 112], [198, 209], [209, 131], [131, 198], [169, 135], [135, 150], [150, 169], [114, 47], [47, 217], [217, 114], [224, 223], [223, 53], [53, 224], [220, 45], [45, 134], [134, 220], [32, 211], [211, 140], [140, 32], [109, 67], [67, 108], [108, 109], [146, 43], [43, 91], [91, 146], [231, 230], [230, 120], [120, 231], [113, 226], [226, 247], [247, 113], [105, 63], [63, 52], [52, 105], [241, 238], [238, 242], [242, 241], [124, 46], [46, 156], [156, 124], [95, 78], [78, 96], [96, 95], [70, 46], [46, 63], [63, 70], [116, 143], [143, 227], [227, 116], [116, 123], [123, 111], [111, 116], [1, 44], [44, 19], [19, 1], [3, 236], [236, 51], [51, 3], [207, 216], [216, 205], [205, 207], [26, 154], [154, 22], [22, 26], [165, 39], [39, 167], [167, 165], [199, 200], [200, 208], [208, 199], [101, 36], [36, 100], [100, 101], [43, 57], [57, 202], [202, 43], [242, 20], [20, 99], [99, 242], [56, 28], [28, 157], [157, 56], [124, 35], [35, 113], [113, 124], [29, 160], [160, 27], [27, 29], [211, 204], [204, 210], [210, 211], [124, 113], [113, 46], [46, 124], [106, 43], [43, 204], [204, 106], [96, 62], [62, 77], [77, 96], [227, 137], [137, 116], [116, 227], [73, 41], [41, 72], [72, 73], [36, 203], [203, 142], [142, 36], [235, 64], [64, 240], [240, 235], [48, 49], [49, 64], [64, 48], [42, 41], [41, 74], [74, 42], [214, 212], [212, 207], [207, 214], [183, 42], [42, 184], [184, 183], [210, 169], [169, 211], [211, 210], [140, 170], [170, 176], [176, 140], [104, 105], [105, 69], [69, 104], [193, 122], [122, 168], [168, 193], [50, 123], [123, 187], [187, 50], [89, 96], [96, 90], [90, 89], [66, 65], [65, 107], [107, 66], [179, 89], [89, 180], [180, 179], [119, 101], [101, 120], [120, 119], [68, 63], [63, 104], [104, 68], [234, 93], [93, 227], [227, 234], [16, 15], [15, 85], [85, 16], [209, 129], [129, 49], [49, 209], [15, 14], [14, 86], [86, 15], [107, 55], [55, 9], [9, 107], [120, 100], [100, 121], [121, 120], [153, 145], [145, 22], [22, 153], [178, 88], [88, 179], [179, 178], [197, 6], [6, 196], [196, 197], [89, 88], [88, 96], [96, 89], [135, 138], [138, 136], [136, 135], [138, 215], [215, 172], [172, 138], [218, 115], [115, 219], [219, 218], [41, 42], [42, 81], [81, 41], [5, 195], [195, 51], [51, 5], [57, 43], [43, 61], [61, 57], [208, 171], [171, 199], [199, 208], [41, 81], [81, 38], [38, 41], [224, 53], [53, 225], [225, 224], [24, 144], [144, 110], [110, 24], [105, 52], [52, 66], [66, 105], [118, 229], [229, 117], [117, 118], [227, 34], [34, 234], [234, 227], [66, 107], [107, 69], [69, 66], [10, 109], [109, 151], [151, 10], [219, 48], [48, 235], [235, 219], [183, 62], [62, 191], [191, 183], [142, 129], [129, 126], [126, 142], [116, 111], [111, 143], [143, 116], [118, 117], [117, 50], [50, 118], [223, 222], [222, 52], [52, 223], [94, 19], [19, 141], [141, 94], [222, 221], [221, 65], [65, 222], [196, 3], [3, 197], [197, 196], [45, 220], [220, 44], [44, 45], [156, 70], [70, 139], [139, 156], [188, 122], [122, 245], [245, 188], [139, 71], [71, 162], [162, 139], [149, 170], [170, 150], [150, 149], [122, 188], [188, 196], [196, 122], [206, 216], [216, 92], [92, 206], [164, 2], [2, 167], [167, 164], [242, 141], [141, 241], [241, 242], [0, 164], [164, 37], [37, 0], [11, 72], [72, 12], [12, 11], [12, 38], [38, 13], [13, 12], [70, 63], [63, 71], [71, 70], [31, 226], [226, 111], [111, 31], [36, 101], [101, 205], [205, 36], [203, 206], [206, 165], [165, 203], [126, 209], [209, 217], [217, 126], [98, 165], [165, 97], [97, 98], [237, 220], [220, 218], [218, 237], [237, 239], [239, 241], [241, 237], [210, 214], [214, 169], [169, 210], [140, 171], [171, 32], [32, 140], [241, 125], [125, 237], [237, 241], [179, 86], [86, 178], [178, 179], [180, 85], [85, 179], [179, 180], [181, 84], [84, 180], [180, 181], [182, 83], [83, 181], [181, 182], [194, 201], [201, 182], [182, 194], [177, 137], [137, 132], [132, 177], [184, 76], [76, 183], [183, 184], [185, 61], [61, 184], [184, 185], [186, 57], [57, 185], [185, 186], [216, 212], [212, 186], [186, 216], [192, 214], [214, 187], [187, 192], [139, 34], [34, 156], [156, 139], [218, 79], [79, 237], [237, 218], [147, 123], [123, 177], [177, 147], [45, 44], [44, 4], [4, 45], [208, 201], [201, 32], [32, 208], [98, 64], [64, 129], [129, 98], [192, 213], [213, 138], [138, 192], [235, 59], [59, 219], [219, 235], [141, 242], [242, 97], [97, 141], [97, 2], [2, 141], [141, 97], [240, 75], [75, 235], [235, 240], [229, 24], [24, 228], [228, 229], [31, 25], [25, 226], [226, 31], [230, 23], [23, 229], [229, 230], [231, 22], [22, 230], [230, 231], [232, 26], [26, 231], [231, 232], [233, 112], [112, 232], [232, 233], [244, 189], [189, 243], [243, 244], [189, 221], [221, 190], [190, 189], [222, 28], [28, 221], [221, 222], [223, 27], [27, 222], [222, 223], [224, 29], [29, 223], [223, 224], [225, 30], [30, 224], [224, 225], [113, 247], [247, 225], [225, 113], [99, 60], [60, 240], [240, 99], [213, 147], [147, 215], [215, 213], [60, 20], [20, 166], [166, 60], [192, 187], [187, 213], [213, 192], [243, 112], [112, 244], [244, 243], [244, 233], [233, 245], [245, 244], [245, 128], [128, 188], [188, 245], [188, 114], [114, 174], [174, 188], [134, 131], [131, 220], [220, 134], [174, 217], [217, 236], [236, 174], [236, 198], [198, 134], [134, 236], [215, 177], [177, 58], [58, 215], [156, 143], [143, 124], [124, 156], [25, 110], [110, 7], [7, 25], [31, 228], [228, 25], [25, 31], [264, 356], [356, 368], [368, 264], [0, 11], [11, 267], [267, 0], [451, 452], [452, 349], [349, 451], [267, 302], [302, 269], [269, 267], [350, 357], [357, 277], [277, 350], [350, 452], [452, 357], [357, 350], [299, 333], [333, 297], [297, 299], [396, 175], [175, 377], [377, 396], [280, 347], [347, 330], [330, 280], [269, 303], [303, 270], [270, 269], [151, 9], [9, 337], [337, 151], [344, 278], [278, 360], [360, 344], [424, 418], [418, 431], [431, 424], [270, 304], [304, 409], [409, 270], [272, 310], [310, 407], [407, 272], [322, 270], [270, 410], [410, 322], [449, 450], [450, 347], [347, 449], [432, 422], [422, 434], [434, 432], [18, 313], [313, 17], [17, 18], [291, 306], [306, 375], [375, 291], [259, 387], [387, 260], [260, 259], [424, 335], [335, 418], [418, 424], [434, 364], [364, 416], [416, 434], [391, 423], [423, 327], [327, 391], [301, 251], [251, 298], [298, 301], [275, 281], [281, 4], [4, 275], [254, 373], [373, 253], [253, 254], [375, 307], [307, 321], [321, 375], [280, 425], [425, 411], [411, 280], [200, 421], [421, 18], [18, 200], [335, 321], [321, 406], [406, 335], [321, 320], [320, 405], [405, 321], [314, 315], [315, 17], [17, 314], [423, 426], [426, 266], [266, 423], [396, 377], [377, 369], [369, 396], [270, 322], [322, 269], [269, 270], [413, 417], [417, 464], [464, 413], [385, 386], [386, 258], [258, 385], [248, 456], [456, 419], [419, 248], [298, 284], [284, 333], [333, 298], [168, 417], [417, 8], [8, 168], [448, 346], [346, 261], [261, 448], [417, 413], [413, 285], [285, 417], [326, 327], [327, 328], [328, 326], [277, 355], [355, 329], [329, 277], [309, 392], [392, 438], [438, 309], [381, 382], [382, 256], [256, 381], [279, 429], [429, 360], [360, 279], [365, 364], [364, 379], [379, 365], [355, 277], [277, 437], [437, 355], [282, 443], [443, 283], [283, 282], [281, 275], [275, 363], [363, 281], [395, 431], [431, 369], [369, 395], [299, 297], [297, 337], [337, 299], [335, 273], [273, 321], [321, 335], [348, 450], [450, 349], [349, 348], [359, 446], [446, 467], [467, 359], [283, 293], [293, 282], [282, 283], [250, 458], [458, 462], [462, 250], [300, 276], [276, 383], [383, 300], [292, 308], [308, 325], [325, 292], [283, 276], [276, 293], [293, 283], [264, 372], [372, 447], [447, 264], [346, 352], [352, 340], [340, 346], [354, 274], [274, 19], [19, 354], [363, 456], [456, 281], [281, 363], [426, 436], [436, 425], [425, 426], [380, 381], [381, 252], [252, 380], [267, 269], [269, 393], [393, 267], [421, 200], [200, 428], [428, 421], [371, 266], [266, 329], [329, 371], [432, 287], [287, 422], [422, 432], [290, 250], [250, 328], [328, 290], [385, 258], [258, 384], [384, 385], [446, 265], [265, 342], [342, 446], [386, 387], [387, 257], [257, 386], [422, 424], [424, 430], [430, 422], [445, 342], [342, 276], [276, 445], [422, 273], [273, 424], [424, 422], [306, 292], [292, 307], [307, 306], [352, 366], [366, 345], [345, 352], [268, 271], [271, 302], [302, 268], [358, 423], [423, 371], [371, 358], [327, 294], [294, 460], [460, 327], [331, 279], [279, 294], [294, 331], [303, 271], [271, 304], [304, 303], [436, 432], [432, 427], [427, 436], [304, 272], [272, 408], [408, 304], [395, 394], [394, 431], [431, 395], [378, 395], [395, 400], [400, 378], [296, 334], [334, 299], [299, 296], [6, 351], [351, 168], [168, 6], [376, 352], [352, 411], [411, 376], [307, 325], [325, 320], [320, 307], [285, 295], [295, 336], [336, 285], [320, 319], [319, 404], [404, 320], [329, 330], [330, 349], [349, 329], [334, 293], [293, 333], [333, 334], [366, 323], [323, 447], [447, 366], [316, 15], [15, 315], [315, 316], [331, 358], [358, 279], [279, 331], [317, 14], [14, 316], [316, 317], [8, 285], [285, 9], [9, 8], [277, 329], [329, 350], [350, 277], [253, 374], [374, 252], [252, 253], [319, 318], [318, 403], [403, 319], [351, 6], [6, 419], [419, 351], [324, 318], [318, 325], [325, 324], [397, 367], [367, 365], [365, 397], [288, 435], [435, 397], [397, 288], [278, 344], [344, 439], [439, 278], [310, 272], [272, 311], [311, 310], [248, 195], [195, 281], [281, 248], [375, 273], [273, 291], [291, 375], [175, 396], [396, 199], [199, 175], [312, 311], [311, 268], [268, 312], [276, 283], [283, 445], [445, 276], [390, 373], [373, 339], [339, 390], [295, 282], [282, 296], [296, 295], [448, 449], [449, 346], [346, 448], [356, 264], [264, 454], [454, 356], [337, 336], [336, 299], [299, 337], [337, 338], [338, 151], [151, 337], [294, 278], [278, 455], [455, 294], [308, 292], [292, 415], [415, 308], [429, 358], [358, 355], [355, 429], [265, 340], [340, 372], [372, 265], [352, 346], [346, 280], [280, 352], [295, 442], [442, 282], [282, 295], [354, 19], [19, 370], [370, 354], [285, 441], [441, 295], [295, 285], [195, 248], [248, 197], [197, 195], [457, 440], [440, 274], [274, 457], [301, 300], [300, 368], [368, 301], [417, 351], [351, 465], [465, 417], [251, 301], [301, 389], [389, 251], [394, 395], [395, 379], [379, 394], [399, 412], [412, 419], [419, 399], [410, 436], [436, 322], [322, 410], [326, 2], [2, 393], [393, 326], [354, 370], [370, 461], [461, 354], [393, 164], [164, 267], [267, 393], [268, 302], [302, 12], [12, 268], [312, 268], [268, 13], [13, 312], [298, 293], [293, 301], [301, 298], [265, 446], [446, 340], [340, 265], [280, 330], [330, 425], [425, 280], [322, 426], [426, 391], [391, 322], [420, 429], [429, 437], [437, 420], [393, 391], [391, 326], [326, 393], [344, 440], [440, 438], [438, 344], [458, 459], [459, 461], [461, 458], [364, 434], [434, 394], [394, 364], [428, 396], [396, 262], [262, 428], [274, 354], [354, 457], [457, 274], [317, 316], [316, 402], [402, 317], [316, 315], [315, 403], [403, 316], [315, 314], [314, 404], [404, 315], [314, 313], [313, 405], [405, 314], [313, 421], [421, 406], [406, 313], [323, 366], [366, 361], [361, 323], [292, 306], [306, 407], [407, 292], [306, 291], [291, 408], [408, 306], [291, 287], [287, 409], [409, 291], [287, 432], [432, 410], [410, 287], [427, 434], [434, 411], [411, 427], [372, 264], [264, 383], [383, 372], [459, 309], [309, 457], [457, 459], [366, 352], [352, 401], [401, 366], [1, 274], [274, 4], [4, 1], [418, 421], [421, 262], [262, 418], [331, 294], [294, 358], [358, 331], [435, 433], [433, 367], [367, 435], [392, 289], [289, 439], [439, 392], [328, 462], [462, 326], [326, 328], [94, 2], [2, 370], [370, 94], [289, 305], [305, 455], [455, 289], [339, 254], [254, 448], [448, 339], [359, 255], [255, 446], [446, 359], [254, 253], [253, 449], [449, 254], [253, 252], [252, 450], [450, 253], [252, 256], [256, 451], [451, 252], [256, 341], [341, 452], [452, 256], [414, 413], [413, 463], [463, 414], [286, 441], [441, 414], [414, 286], [286, 258], [258, 441], [441, 286], [258, 257], [257, 442], [442, 258], [257, 259], [259, 443], [443, 257], [259, 260], [260, 444], [444, 259], [260, 467], [467, 445], [445, 260], [309, 459], [459, 250], [250, 309], [305, 289], [289, 290], [290, 305], [305, 290], [290, 460], [460, 305], [401, 376], [376, 435], [435, 401], [309, 250], [250, 392], [392, 309], [376, 411], [411, 433], [433, 376], [453, 341], [341, 464], [464, 453], [357, 453], [453, 465], [465, 357], [343, 357], [357, 412], [412, 343], [437, 343], [343, 399], [399, 437], [344, 360], [360, 440], [440, 344], [420, 437], [437, 456], [456, 420], [360, 420], [420, 363], [363, 360], [361, 401], [401, 288], [288, 361], [265, 372], [372, 353], [353, 265], [390, 339], [339, 249], [249, 390], [339, 448], [448, 255], [255, 339]);
|
|
3929
3929
|
function ia(e) {
|
|
@@ -3931,13 +3931,13 @@ function ia(e) {
|
|
|
3931
3931
|
}
|
|
3932
3932
|
var ne = class extends He {
|
|
3933
3933
|
constructor(e, t) {
|
|
3934
|
-
super(new ot(e, t), "image_in", "norm_rect", !1), this.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] }, this.outputFacialTransformationMatrixes = this.outputFaceBlendshapes = !1,
|
|
3934
|
+
super(new ot(e, t), "image_in", "norm_rect", !1), this.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] }, this.outputFacialTransformationMatrixes = this.outputFaceBlendshapes = !1, M(e = this.h = new Xc(), 0, 1, t = new ce()), this.A = new Yc(), M(this.h, 0, 3, this.A), this.u = new pn(), M(this.h, 0, 2, this.u), _t(this.u, 4, 1), R(this.u, 2, 0.5), R(this.A, 2, 0.5), R(this.h, 4, 0.5);
|
|
3935
3935
|
}
|
|
3936
3936
|
get baseOptions() {
|
|
3937
|
-
return
|
|
3937
|
+
return Y(this.h, ce, 1);
|
|
3938
3938
|
}
|
|
3939
3939
|
set baseOptions(e) {
|
|
3940
|
-
|
|
3940
|
+
M(this.h, 0, 1, e);
|
|
3941
3941
|
}
|
|
3942
3942
|
o(e) {
|
|
3943
3943
|
return "numFaces" in e && _t(this.u, 4, e.numFaces ?? 1), "minFaceDetectionConfidence" in e && R(this.u, 2, e.minFaceDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && R(this.h, 4, e.minTrackingConfidence ?? 0.5), "minFacePresenceConfidence" in e && R(this.A, 2, e.minFacePresenceConfidence ?? 0.5), "outputFaceBlendshapes" in e && (this.outputFaceBlendshapes = !!e.outputFaceBlendshapes), "outputFacialTransformationMatrixes" in e && (this.outputFacialTransformationMatrixes = !!e.outputFacialTransformationMatrixes), this.l(e);
|
|
@@ -3950,34 +3950,34 @@ var ne = class extends He {
|
|
|
3950
3950
|
}
|
|
3951
3951
|
m() {
|
|
3952
3952
|
var e = new Ke();
|
|
3953
|
-
se(e, "image_in"), se(e, "norm_rect"),
|
|
3953
|
+
se(e, "image_in"), se(e, "norm_rect"), X(e, "face_landmarks");
|
|
3954
3954
|
const t = new qe();
|
|
3955
3955
|
ft(t, Hd, this.h);
|
|
3956
3956
|
const i = new Le();
|
|
3957
3957
|
ze(i, 2, "mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"), re(i, "IMAGE:image_in"), re(i, "NORM_RECT:norm_rect"), H(i, "NORM_LANDMARKS:face_landmarks"), i.o(t), tt(e, i), this.g.attachProtoVectorListener("face_landmarks", (r, n) => {
|
|
3958
3958
|
for (const o of r) r = Ar(o), this.j.faceLandmarks.push(yn(r));
|
|
3959
|
-
|
|
3959
|
+
T(this, n);
|
|
3960
3960
|
}), this.g.attachEmptyPacketListener("face_landmarks", (r) => {
|
|
3961
|
-
|
|
3962
|
-
}), this.outputFaceBlendshapes && (
|
|
3961
|
+
T(this, r);
|
|
3962
|
+
}), this.outputFaceBlendshapes && (X(e, "blendshapes"), H(i, "BLENDSHAPES:blendshapes"), this.g.attachProtoVectorListener("blendshapes", (r, n) => {
|
|
3963
3963
|
if (this.outputFaceBlendshapes) for (const o of r) r = gn(o), this.j.faceBlendshapes.push(Xo(r.g() ?? []));
|
|
3964
|
-
|
|
3964
|
+
T(this, n);
|
|
3965
3965
|
}), this.g.attachEmptyPacketListener("blendshapes", (r) => {
|
|
3966
|
-
|
|
3967
|
-
})), this.outputFacialTransformationMatrixes && (
|
|
3968
|
-
if (this.outputFacialTransformationMatrixes) for (const o of r) (r =
|
|
3969
|
-
|
|
3966
|
+
T(this, r);
|
|
3967
|
+
})), this.outputFacialTransformationMatrixes && (X(e, "face_geometry"), H(i, "FACE_GEOMETRY:face_geometry"), this.g.attachProtoVectorListener("face_geometry", (r, n) => {
|
|
3968
|
+
if (this.outputFacialTransformationMatrixes) for (const o of r) (r = Y(r = Wd(o), Pd, 2)) && this.j.facialTransformationMatrixes.push({ rows: Ze(r, 1) ?? 0 ?? 0, columns: Ze(r, 2) ?? 0 ?? 0, data: Wt(r, 3, ut, zt()).slice() ?? [] });
|
|
3969
|
+
T(this, n);
|
|
3970
3970
|
}), this.g.attachEmptyPacketListener("face_geometry", (r) => {
|
|
3971
|
-
|
|
3971
|
+
T(this, r);
|
|
3972
3972
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3973
3973
|
}
|
|
3974
3974
|
};
|
|
3975
3975
|
ne.prototype.detectForVideo = ne.prototype.G, ne.prototype.detect = ne.prototype.F, ne.prototype.setOptions = ne.prototype.o, ne.createFromModelPath = function(e, t) {
|
|
3976
|
-
return
|
|
3976
|
+
return K(ne, e, { baseOptions: { modelAssetPath: t } });
|
|
3977
3977
|
}, ne.createFromModelBuffer = function(e, t) {
|
|
3978
|
-
return
|
|
3978
|
+
return K(ne, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3979
3979
|
}, ne.createFromOptions = function(e, t) {
|
|
3980
|
-
return
|
|
3980
|
+
return K(ne, e, t);
|
|
3981
3981
|
}, ne.FACE_LANDMARKS_LIPS = Zo, ne.FACE_LANDMARKS_LEFT_EYE = es, ne.FACE_LANDMARKS_LEFT_EYEBROW = ts, ne.FACE_LANDMARKS_LEFT_IRIS = Al, ne.FACE_LANDMARKS_RIGHT_EYE = is, ne.FACE_LANDMARKS_RIGHT_EYEBROW = rs, ne.FACE_LANDMARKS_RIGHT_IRIS = Tl, ne.FACE_LANDMARKS_FACE_OVAL = ns, ne.FACE_LANDMARKS_CONTOURS = Nl, ne.FACE_LANDMARKS_TESSELATION = Cl;
|
|
3982
3982
|
var os = nt([0, 1], [1, 2], [2, 3], [3, 4], [0, 5], [5, 6], [6, 7], [7, 8], [5, 9], [9, 10], [10, 11], [11, 12], [9, 13], [13, 14], [14, 15], [15, 16], [13, 17], [0, 17], [17, 18], [18, 19], [19, 20]);
|
|
3983
3983
|
function ra(e) {
|
|
@@ -3998,21 +3998,21 @@ function oa(e, t = !0) {
|
|
|
3998
3998
|
}
|
|
3999
3999
|
var Oe = class extends He {
|
|
4000
4000
|
constructor(e, t) {
|
|
4001
|
-
super(new ot(e, t), "image_in", "norm_rect", !1), this.gestures = [], this.landmarks = [], this.worldLandmarks = [], this.handedness = [],
|
|
4001
|
+
super(new ot(e, t), "image_in", "norm_rect", !1), this.gestures = [], this.landmarks = [], this.worldLandmarks = [], this.handedness = [], M(e = this.j = new Zc(), 0, 1, t = new ce()), this.u = new Ho(), M(this.j, 0, 2, this.u), this.D = new Wo(), M(this.u, 0, 3, this.D), this.A = new Jc(), M(this.u, 0, 2, this.A), this.h = new qd(), M(this.j, 0, 3, this.h), R(this.A, 2, 0.5), R(this.u, 4, 0.5), R(this.D, 2, 0.5);
|
|
4002
4002
|
}
|
|
4003
4003
|
get baseOptions() {
|
|
4004
|
-
return
|
|
4004
|
+
return Y(this.j, ce, 1);
|
|
4005
4005
|
}
|
|
4006
4006
|
set baseOptions(e) {
|
|
4007
|
-
|
|
4007
|
+
M(this.j, 0, 1, e);
|
|
4008
4008
|
}
|
|
4009
4009
|
o(e) {
|
|
4010
4010
|
var n, o, s, a;
|
|
4011
4011
|
if (_t(this.A, 3, e.numHands ?? 1), "minHandDetectionConfidence" in e && R(this.A, 2, e.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && R(this.u, 4, e.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in e && R(this.D, 2, e.minHandPresenceConfidence ?? 0.5), e.cannedGesturesClassifierOptions) {
|
|
4012
|
-
var t = new wi(), i = t, r = Yn(e.cannedGesturesClassifierOptions, (n =
|
|
4013
|
-
|
|
4014
|
-
} else e.cannedGesturesClassifierOptions === void 0 && ((o =
|
|
4015
|
-
return e.customGesturesClassifierOptions ? (
|
|
4012
|
+
var t = new wi(), i = t, r = Yn(e.cannedGesturesClassifierOptions, (n = Y(this.h, wi, 3)) == null ? void 0 : n.l());
|
|
4013
|
+
M(i, 0, 2, r), M(this.h, 0, 3, t);
|
|
4014
|
+
} else e.cannedGesturesClassifierOptions === void 0 && ((o = Y(this.h, wi, 3)) == null || o.g());
|
|
4015
|
+
return e.customGesturesClassifierOptions ? (M(i = t = new wi(), 0, 2, r = Yn(e.customGesturesClassifierOptions, (s = Y(this.h, wi, 4)) == null ? void 0 : s.l())), M(this.h, 0, 4, t)) : e.customGesturesClassifierOptions === void 0 && ((a = Y(this.h, wi, 4)) == null || a.g()), this.l(e);
|
|
4016
4016
|
}
|
|
4017
4017
|
Ha(e, t) {
|
|
4018
4018
|
return ra(this), st(this, e, t), na(this);
|
|
@@ -4022,7 +4022,7 @@ var Oe = class extends He {
|
|
|
4022
4022
|
}
|
|
4023
4023
|
m() {
|
|
4024
4024
|
var e = new Ke();
|
|
4025
|
-
se(e, "image_in"), se(e, "norm_rect"),
|
|
4025
|
+
se(e, "image_in"), se(e, "norm_rect"), X(e, "hand_gestures"), X(e, "hand_landmarks"), X(e, "world_hand_landmarks"), X(e, "handedness");
|
|
4026
4026
|
const t = new qe();
|
|
4027
4027
|
ft(t, Kd, this.j);
|
|
4028
4028
|
const i = new Le();
|
|
@@ -4033,9 +4033,9 @@ var Oe = class extends He {
|
|
|
4033
4033
|
for (const a of Et(r, zc, 1)) s.push({ x: ue(a, 1) ?? 0, y: ue(a, 2) ?? 0, z: ue(a, 3) ?? 0, visibility: ue(a, 4) ?? 0 });
|
|
4034
4034
|
this.landmarks.push(s);
|
|
4035
4035
|
}
|
|
4036
|
-
|
|
4036
|
+
T(this, n);
|
|
4037
4037
|
}), this.g.attachEmptyPacketListener("hand_landmarks", (r) => {
|
|
4038
|
-
|
|
4038
|
+
T(this, r);
|
|
4039
4039
|
}), this.g.attachProtoVectorListener("world_hand_landmarks", (r, n) => {
|
|
4040
4040
|
for (const o of r) {
|
|
4041
4041
|
r = pi(o);
|
|
@@ -4043,17 +4043,17 @@ var Oe = class extends He {
|
|
|
4043
4043
|
for (const a of Et(r, $c, 1)) s.push({ x: ue(a, 1) ?? 0, y: ue(a, 2) ?? 0, z: ue(a, 3) ?? 0, visibility: ue(a, 4) ?? 0 });
|
|
4044
4044
|
this.worldLandmarks.push(s);
|
|
4045
4045
|
}
|
|
4046
|
-
|
|
4046
|
+
T(this, n);
|
|
4047
4047
|
}), this.g.attachEmptyPacketListener("world_hand_landmarks", (r) => {
|
|
4048
|
-
|
|
4048
|
+
T(this, r);
|
|
4049
4049
|
}), this.g.attachProtoVectorListener("hand_gestures", (r, n) => {
|
|
4050
|
-
this.gestures.push(...oa(r, !1)),
|
|
4050
|
+
this.gestures.push(...oa(r, !1)), T(this, n);
|
|
4051
4051
|
}), this.g.attachEmptyPacketListener("hand_gestures", (r) => {
|
|
4052
|
-
|
|
4052
|
+
T(this, r);
|
|
4053
4053
|
}), this.g.attachProtoVectorListener("handedness", (r, n) => {
|
|
4054
|
-
this.handedness.push(...oa(r)),
|
|
4054
|
+
this.handedness.push(...oa(r)), T(this, n);
|
|
4055
4055
|
}), this.g.attachEmptyPacketListener("handedness", (r) => {
|
|
4056
|
-
|
|
4056
|
+
T(this, r);
|
|
4057
4057
|
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
4058
4058
|
}
|
|
4059
4059
|
};
|
|
@@ -4061,21 +4061,21 @@ function sa(e) {
|
|
|
4061
4061
|
return { landmarks: e.landmarks, worldLandmarks: e.worldLandmarks, handednesses: e.handedness, handedness: e.handedness };
|
|
4062
4062
|
}
|
|
4063
4063
|
Oe.prototype.recognizeForVideo = Oe.prototype.Ia, Oe.prototype.recognize = Oe.prototype.Ha, Oe.prototype.setOptions = Oe.prototype.o, Oe.createFromModelPath = function(e, t) {
|
|
4064
|
-
return
|
|
4064
|
+
return K(Oe, e, { baseOptions: { modelAssetPath: t } });
|
|
4065
4065
|
}, Oe.createFromModelBuffer = function(e, t) {
|
|
4066
|
-
return
|
|
4066
|
+
return K(Oe, e, { baseOptions: { modelAssetBuffer: t } });
|
|
4067
4067
|
}, Oe.createFromOptions = function(e, t) {
|
|
4068
|
-
return
|
|
4068
|
+
return K(Oe, e, t);
|
|
4069
4069
|
}, Oe.HAND_CONNECTIONS = os;
|
|
4070
4070
|
var Be = class extends He {
|
|
4071
4071
|
constructor(e, t) {
|
|
4072
|
-
super(new ot(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.handedness = [],
|
|
4072
|
+
super(new ot(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.handedness = [], M(e = this.h = new Ho(), 0, 1, t = new ce()), this.u = new Wo(), M(this.h, 0, 3, this.u), this.j = new Jc(), M(this.h, 0, 2, this.j), _t(this.j, 3, 1), R(this.j, 2, 0.5), R(this.u, 2, 0.5), R(this.h, 4, 0.5);
|
|
4073
4073
|
}
|
|
4074
4074
|
get baseOptions() {
|
|
4075
|
-
return
|
|
4075
|
+
return Y(this.h, ce, 1);
|
|
4076
4076
|
}
|
|
4077
4077
|
set baseOptions(e) {
|
|
4078
|
-
|
|
4078
|
+
M(this.h, 0, 1, e);
|
|
4079
4079
|
}
|
|
4080
4080
|
o(e) {
|
|
4081
4081
|
return "numHands" in e && _t(this.j, 3, e.numHands ?? 1), "minHandDetectionConfidence" in e && R(this.j, 2, e.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && R(this.h, 4, e.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in e && R(this.u, 2, e.minHandPresenceConfidence ?? 0.5), this.l(e);
|
|
@@ -4088,20 +4088,20 @@ var Be = class extends He {
|
|
|
4088
4088
|
}
|
|
4089
4089
|
m() {
|
|
4090
4090
|
var e = new Ke();
|
|
4091
|
-
se(e, "image_in"), se(e, "norm_rect"),
|
|
4091
|
+
se(e, "image_in"), se(e, "norm_rect"), X(e, "hand_landmarks"), X(e, "world_hand_landmarks"), X(e, "handedness");
|
|
4092
4092
|
const t = new qe();
|
|
4093
4093
|
ft(t, Yd, this.h);
|
|
4094
4094
|
const i = new Le();
|
|
4095
4095
|
ze(i, 2, "mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"), re(i, "IMAGE:image_in"), re(i, "NORM_RECT:norm_rect"), H(i, "LANDMARKS:hand_landmarks"), H(i, "WORLD_LANDMARKS:world_hand_landmarks"), H(i, "HANDEDNESS:handedness"), i.o(t), tt(e, i), this.g.attachProtoVectorListener("hand_landmarks", (r, n) => {
|
|
4096
4096
|
for (const o of r) r = Ar(o), this.landmarks.push(yn(r));
|
|
4097
|
-
|
|
4097
|
+
T(this, n);
|
|
4098
4098
|
}), this.g.attachEmptyPacketListener("hand_landmarks", (r) => {
|
|
4099
|
-
|
|
4099
|
+
T(this, r);
|
|
4100
4100
|
}), this.g.attachProtoVectorListener("world_hand_landmarks", (r, n) => {
|
|
4101
4101
|
for (const o of r) r = pi(o), this.worldLandmarks.push(cr(r));
|
|
4102
|
-
|
|
4102
|
+
T(this, n);
|
|
4103
4103
|
}), this.g.attachEmptyPacketListener("world_hand_landmarks", (r) => {
|
|
4104
|
-
|
|
4104
|
+
T(this, r);
|
|
4105
4105
|
}), this.g.attachProtoVectorListener("handedness", (r, n) => {
|
|
4106
4106
|
var o = this.handedness, s = o.push;
|
|
4107
4107
|
const a = [];
|
|
@@ -4111,18 +4111,18 @@ var Be = class extends He {
|
|
|
4111
4111
|
for (const u of r.g()) d.push({ score: ue(u, 2) ?? 0, index: Ze(u, 1) ?? 0 ?? -1, categoryName: ke(ie(u, 3)) ?? "" ?? "", displayName: ke(ie(u, 4)) ?? "" ?? "" });
|
|
4112
4112
|
a.push(d);
|
|
4113
4113
|
}
|
|
4114
|
-
s.call(o, ...a),
|
|
4114
|
+
s.call(o, ...a), T(this, n);
|
|
4115
4115
|
}), this.g.attachEmptyPacketListener("handedness", (r) => {
|
|
4116
|
-
|
|
4116
|
+
T(this, r);
|
|
4117
4117
|
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
4118
4118
|
}
|
|
4119
4119
|
};
|
|
4120
4120
|
Be.prototype.detectForVideo = Be.prototype.G, Be.prototype.detect = Be.prototype.F, Be.prototype.setOptions = Be.prototype.o, Be.createFromModelPath = function(e, t) {
|
|
4121
|
-
return
|
|
4121
|
+
return K(Be, e, { baseOptions: { modelAssetPath: t } });
|
|
4122
4122
|
}, Be.createFromModelBuffer = function(e, t) {
|
|
4123
|
-
return
|
|
4123
|
+
return K(Be, e, { baseOptions: { modelAssetBuffer: t } });
|
|
4124
4124
|
}, Be.createFromOptions = function(e, t) {
|
|
4125
|
-
return
|
|
4125
|
+
return K(Be, e, t);
|
|
4126
4126
|
}, Be.HAND_CONNECTIONS = os;
|
|
4127
4127
|
var Sl = nt([0, 1], [1, 2], [2, 3], [3, 7], [0, 4], [4, 5], [5, 6], [6, 8], [9, 10], [11, 12], [11, 13], [13, 15], [15, 17], [15, 19], [15, 21], [17, 19], [12, 14], [14, 16], [16, 18], [16, 20], [16, 22], [18, 20], [11, 23], [12, 24], [23, 24], [23, 25], [24, 26], [25, 27], [26, 28], [27, 29], [28, 30], [29, 31], [30, 32], [27, 31], [28, 32]);
|
|
4128
4128
|
function aa(e) {
|
|
@@ -4141,13 +4141,13 @@ function Lr(e, t) {
|
|
|
4141
4141
|
}
|
|
4142
4142
|
var te = class extends He {
|
|
4143
4143
|
constructor(e, t) {
|
|
4144
|
-
super(new ot(e, t), "input_frames_image", null, !1), this.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] }, this.outputPoseSegmentationMasks = this.outputFaceBlendshapes = !1,
|
|
4144
|
+
super(new ot(e, t), "input_frames_image", null, !1), this.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] }, this.outputPoseSegmentationMasks = this.outputFaceBlendshapes = !1, M(e = this.j = new nl(), 0, 1, t = new ce()), this.I = new Wo(), M(this.j, 0, 2, this.I), this.W = new Xd(), M(this.j, 0, 3, this.W), this.u = new pn(), M(this.j, 0, 4, this.u), this.O = new Yc(), M(this.j, 0, 5, this.O), this.A = new il(), M(this.j, 0, 6, this.A), this.M = new rl(), M(this.j, 0, 7, this.M), R(this.u, 2, 0.5), R(this.u, 3, 0.3), R(this.O, 2, 0.5), R(this.A, 2, 0.5), R(this.A, 3, 0.3), R(this.M, 2, 0.5), R(this.I, 2, 0.5);
|
|
4145
4145
|
}
|
|
4146
4146
|
get baseOptions() {
|
|
4147
|
-
return
|
|
4147
|
+
return Y(this.j, ce, 1);
|
|
4148
4148
|
}
|
|
4149
4149
|
set baseOptions(e) {
|
|
4150
|
-
|
|
4150
|
+
M(this.j, 0, 1, e);
|
|
4151
4151
|
}
|
|
4152
4152
|
o(e) {
|
|
4153
4153
|
return "minFaceDetectionConfidence" in e && R(this.u, 2, e.minFaceDetectionConfidence ?? 0.5), "minFaceSuppressionThreshold" in e && R(this.u, 3, e.minFaceSuppressionThreshold ?? 0.3), "minFacePresenceConfidence" in e && R(this.O, 2, e.minFacePresenceConfidence ?? 0.5), "outputFaceBlendshapes" in e && (this.outputFaceBlendshapes = !!e.outputFaceBlendshapes), "minPoseDetectionConfidence" in e && R(this.A, 2, e.minPoseDetectionConfidence ?? 0.5), "minPoseSuppressionThreshold" in e && R(this.A, 3, e.minPoseSuppressionThreshold ?? 0.3), "minPosePresenceConfidence" in e && R(this.M, 2, e.minPosePresenceConfidence ?? 0.5), "outputPoseSegmentationMasks" in e && (this.outputPoseSegmentationMasks = !!e.outputPoseSegmentationMasks), "minHandLandmarksConfidence" in e && R(this.I, 2, e.minHandLandmarksConfidence ?? 0.5), this.l(e);
|
|
@@ -4162,7 +4162,7 @@ var te = class extends He {
|
|
|
4162
4162
|
}
|
|
4163
4163
|
m() {
|
|
4164
4164
|
var e = new Ke();
|
|
4165
|
-
se(e, "input_frames_image"),
|
|
4165
|
+
se(e, "input_frames_image"), X(e, "pose_landmarks"), X(e, "pose_world_landmarks"), X(e, "face_landmarks"), X(e, "left_hand_landmarks"), X(e, "left_hand_world_landmarks"), X(e, "right_hand_landmarks"), X(e, "right_hand_world_landmarks");
|
|
4166
4166
|
const t = new qe(), i = new Rs();
|
|
4167
4167
|
ze(i, 1, "type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"), function(n, o) {
|
|
4168
4168
|
if (o != null) if (Array.isArray(o)) J(n, 2, nn(o, 0, mr));
|
|
@@ -4173,67 +4173,67 @@ var te = class extends He {
|
|
|
4173
4173
|
}(i, this.j.g());
|
|
4174
4174
|
const r = new Le();
|
|
4175
4175
|
ze(r, 2, "mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"), So(r, 8, Rs, i), re(r, "IMAGE:input_frames_image"), H(r, "POSE_LANDMARKS:pose_landmarks"), H(r, "POSE_WORLD_LANDMARKS:pose_world_landmarks"), H(r, "FACE_LANDMARKS:face_landmarks"), H(r, "LEFT_HAND_LANDMARKS:left_hand_landmarks"), H(r, "LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"), H(r, "RIGHT_HAND_LANDMARKS:right_hand_landmarks"), H(r, "RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"), r.o(t), tt(e, r), bn(this, e), this.g.attachProtoListener("pose_landmarks", (n, o) => {
|
|
4176
|
-
Lr(n, this.h.poseLandmarks),
|
|
4176
|
+
Lr(n, this.h.poseLandmarks), T(this, o);
|
|
4177
4177
|
}), this.g.attachEmptyPacketListener("pose_landmarks", (n) => {
|
|
4178
|
-
|
|
4178
|
+
T(this, n);
|
|
4179
4179
|
}), this.g.attachProtoListener("pose_world_landmarks", (n, o) => {
|
|
4180
4180
|
var s = this.h.poseWorldLandmarks;
|
|
4181
|
-
n = pi(n), s.push(cr(n)),
|
|
4181
|
+
n = pi(n), s.push(cr(n)), T(this, o);
|
|
4182
4182
|
}), this.g.attachEmptyPacketListener("pose_world_landmarks", (n) => {
|
|
4183
|
-
|
|
4183
|
+
T(this, n);
|
|
4184
4184
|
}), this.outputPoseSegmentationMasks && (H(r, "POSE_SEGMENTATION_MASK:pose_segmentation_mask"), Ni(this, "pose_segmentation_mask"), this.g.Z("pose_segmentation_mask", (n, o) => {
|
|
4185
|
-
this.h.poseSegmentationMasks = [Si(this, n, !0, !this.D)],
|
|
4185
|
+
this.h.poseSegmentationMasks = [Si(this, n, !0, !this.D)], T(this, o);
|
|
4186
4186
|
}), this.g.attachEmptyPacketListener("pose_segmentation_mask", (n) => {
|
|
4187
|
-
this.h.poseSegmentationMasks = [],
|
|
4187
|
+
this.h.poseSegmentationMasks = [], T(this, n);
|
|
4188
4188
|
})), this.g.attachProtoListener("face_landmarks", (n, o) => {
|
|
4189
|
-
Lr(n, this.h.faceLandmarks),
|
|
4189
|
+
Lr(n, this.h.faceLandmarks), T(this, o);
|
|
4190
4190
|
}), this.g.attachEmptyPacketListener("face_landmarks", (n) => {
|
|
4191
|
-
|
|
4192
|
-
}), this.outputFaceBlendshapes && (
|
|
4191
|
+
T(this, n);
|
|
4192
|
+
}), this.outputFaceBlendshapes && (X(e, "extra_blendshapes"), H(r, "FACE_BLENDSHAPES:extra_blendshapes"), this.g.attachProtoListener("extra_blendshapes", (n, o) => {
|
|
4193
4193
|
var s = this.h.faceBlendshapes;
|
|
4194
|
-
this.outputFaceBlendshapes && (n = gn(n), s.push(Xo(n.g() ?? []))),
|
|
4194
|
+
this.outputFaceBlendshapes && (n = gn(n), s.push(Xo(n.g() ?? []))), T(this, o);
|
|
4195
4195
|
}), this.g.attachEmptyPacketListener("extra_blendshapes", (n) => {
|
|
4196
|
-
|
|
4196
|
+
T(this, n);
|
|
4197
4197
|
})), this.g.attachProtoListener("left_hand_landmarks", (n, o) => {
|
|
4198
|
-
Lr(n, this.h.leftHandLandmarks),
|
|
4198
|
+
Lr(n, this.h.leftHandLandmarks), T(this, o);
|
|
4199
4199
|
}), this.g.attachEmptyPacketListener("left_hand_landmarks", (n) => {
|
|
4200
|
-
|
|
4200
|
+
T(this, n);
|
|
4201
4201
|
}), this.g.attachProtoListener("left_hand_world_landmarks", (n, o) => {
|
|
4202
4202
|
var s = this.h.leftHandWorldLandmarks;
|
|
4203
|
-
n = pi(n), s.push(cr(n)),
|
|
4203
|
+
n = pi(n), s.push(cr(n)), T(this, o);
|
|
4204
4204
|
}), this.g.attachEmptyPacketListener("left_hand_world_landmarks", (n) => {
|
|
4205
|
-
|
|
4205
|
+
T(this, n);
|
|
4206
4206
|
}), this.g.attachProtoListener("right_hand_landmarks", (n, o) => {
|
|
4207
|
-
Lr(n, this.h.rightHandLandmarks),
|
|
4207
|
+
Lr(n, this.h.rightHandLandmarks), T(this, o);
|
|
4208
4208
|
}), this.g.attachEmptyPacketListener("right_hand_landmarks", (n) => {
|
|
4209
|
-
|
|
4209
|
+
T(this, n);
|
|
4210
4210
|
}), this.g.attachProtoListener("right_hand_world_landmarks", (n, o) => {
|
|
4211
4211
|
var s = this.h.rightHandWorldLandmarks;
|
|
4212
|
-
n = pi(n), s.push(cr(n)),
|
|
4212
|
+
n = pi(n), s.push(cr(n)), T(this, o);
|
|
4213
4213
|
}), this.g.attachEmptyPacketListener("right_hand_world_landmarks", (n) => {
|
|
4214
|
-
|
|
4214
|
+
T(this, n);
|
|
4215
4215
|
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
4216
4216
|
}
|
|
4217
4217
|
};
|
|
4218
4218
|
te.prototype.detectForVideo = te.prototype.G, te.prototype.detect = te.prototype.F, te.prototype.setOptions = te.prototype.o, te.createFromModelPath = function(e, t) {
|
|
4219
|
-
return
|
|
4219
|
+
return K(te, e, { baseOptions: { modelAssetPath: t } });
|
|
4220
4220
|
}, te.createFromModelBuffer = function(e, t) {
|
|
4221
|
-
return
|
|
4221
|
+
return K(te, e, { baseOptions: { modelAssetBuffer: t } });
|
|
4222
4222
|
}, te.createFromOptions = function(e, t) {
|
|
4223
|
-
return
|
|
4223
|
+
return K(te, e, t);
|
|
4224
4224
|
}, te.HAND_CONNECTIONS = os, te.POSE_CONNECTIONS = Sl, te.FACE_LANDMARKS_LIPS = Zo, te.FACE_LANDMARKS_LEFT_EYE = es, te.FACE_LANDMARKS_LEFT_EYEBROW = ts, te.FACE_LANDMARKS_LEFT_IRIS = Al, te.FACE_LANDMARKS_RIGHT_EYE = is, te.FACE_LANDMARKS_RIGHT_EYEBROW = rs, te.FACE_LANDMARKS_RIGHT_IRIS = Tl, te.FACE_LANDMARKS_FACE_OVAL = ns, te.FACE_LANDMARKS_CONTOURS = Nl, te.FACE_LANDMARKS_TESSELATION = Cl;
|
|
4225
4225
|
var Qe = class extends He {
|
|
4226
4226
|
constructor(e, t) {
|
|
4227
|
-
super(new ot(e, t), "input_image", "norm_rect", !0), this.j = { classifications: [] },
|
|
4227
|
+
super(new ot(e, t), "input_image", "norm_rect", !0), this.j = { classifications: [] }, M(e = this.h = new ol(), 0, 1, t = new ce());
|
|
4228
4228
|
}
|
|
4229
4229
|
get baseOptions() {
|
|
4230
|
-
return
|
|
4230
|
+
return Y(this.h, ce, 1);
|
|
4231
4231
|
}
|
|
4232
4232
|
set baseOptions(e) {
|
|
4233
|
-
|
|
4233
|
+
M(this.h, 0, 1, e);
|
|
4234
4234
|
}
|
|
4235
4235
|
o(e) {
|
|
4236
|
-
return
|
|
4236
|
+
return M(this.h, 0, 2, Yn(e, Y(this.h, $o, 2))), this.l(e);
|
|
4237
4237
|
}
|
|
4238
4238
|
sa(e, t) {
|
|
4239
4239
|
return this.j = { classifications: [] }, st(this, e, t), this.j;
|
|
@@ -4243,37 +4243,37 @@ var Qe = class extends He {
|
|
|
4243
4243
|
}
|
|
4244
4244
|
m() {
|
|
4245
4245
|
var e = new Ke();
|
|
4246
|
-
se(e, "input_image"), se(e, "norm_rect"),
|
|
4246
|
+
se(e, "input_image"), se(e, "norm_rect"), X(e, "classifications");
|
|
4247
4247
|
const t = new qe();
|
|
4248
4248
|
ft(t, Qd, this.h);
|
|
4249
4249
|
const i = new Le();
|
|
4250
4250
|
ze(i, 2, "mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"), re(i, "IMAGE:input_image"), re(i, "NORM_RECT:norm_rect"), H(i, "CLASSIFICATIONS:classifications"), i.o(t), tt(e, i), this.g.attachProtoListener("classifications", (r, n) => {
|
|
4251
|
-
this.j = rh(Ud(r)),
|
|
4251
|
+
this.j = rh(Ud(r)), T(this, n);
|
|
4252
4252
|
}), this.g.attachEmptyPacketListener("classifications", (r) => {
|
|
4253
|
-
|
|
4253
|
+
T(this, r);
|
|
4254
4254
|
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
4255
4255
|
}
|
|
4256
4256
|
};
|
|
4257
4257
|
Qe.prototype.classifyForVideo = Qe.prototype.ta, Qe.prototype.classify = Qe.prototype.sa, Qe.prototype.setOptions = Qe.prototype.o, Qe.createFromModelPath = function(e, t) {
|
|
4258
|
-
return
|
|
4258
|
+
return K(Qe, e, { baseOptions: { modelAssetPath: t } });
|
|
4259
4259
|
}, Qe.createFromModelBuffer = function(e, t) {
|
|
4260
|
-
return
|
|
4260
|
+
return K(Qe, e, { baseOptions: { modelAssetBuffer: t } });
|
|
4261
4261
|
}, Qe.createFromOptions = function(e, t) {
|
|
4262
|
-
return
|
|
4262
|
+
return K(Qe, e, t);
|
|
4263
4263
|
};
|
|
4264
4264
|
var Ue = class extends He {
|
|
4265
4265
|
constructor(e, t) {
|
|
4266
|
-
super(new ot(e, t), "image_in", "norm_rect", !0), this.h = new sl(), this.embeddings = { embeddings: [] },
|
|
4266
|
+
super(new ot(e, t), "image_in", "norm_rect", !0), this.h = new sl(), this.embeddings = { embeddings: [] }, M(e = this.h, 0, 1, t = new ce());
|
|
4267
4267
|
}
|
|
4268
4268
|
get baseOptions() {
|
|
4269
|
-
return
|
|
4269
|
+
return Y(this.h, ce, 1);
|
|
4270
4270
|
}
|
|
4271
4271
|
set baseOptions(e) {
|
|
4272
|
-
|
|
4272
|
+
M(this.h, 0, 1, e);
|
|
4273
4273
|
}
|
|
4274
4274
|
o(e) {
|
|
4275
|
-
var t = this.h, i =
|
|
4276
|
-
return i = i ? i.clone() : new
|
|
4275
|
+
var t = this.h, i = Y(this.h, Vs, 2);
|
|
4276
|
+
return i = i ? i.clone() : new Vs(), e.l2Normalize !== void 0 ? J(i, 1, fr(e.l2Normalize)) : "l2Normalize" in e && J(i, 1), e.quantize !== void 0 ? J(i, 2, fr(e.quantize)) : "quantize" in e && J(i, 2), M(t, 0, 2, i), this.l(e);
|
|
4277
4277
|
}
|
|
4278
4278
|
za(e, t) {
|
|
4279
4279
|
return st(this, e, t), this.embeddings;
|
|
@@ -4283,21 +4283,21 @@ var Ue = class extends He {
|
|
|
4283
4283
|
}
|
|
4284
4284
|
m() {
|
|
4285
4285
|
var e = new Ke();
|
|
4286
|
-
se(e, "image_in"), se(e, "norm_rect"),
|
|
4286
|
+
se(e, "image_in"), se(e, "norm_rect"), X(e, "embeddings_out");
|
|
4287
4287
|
const t = new qe();
|
|
4288
4288
|
ft(t, Jd, this.h);
|
|
4289
4289
|
const i = new Le();
|
|
4290
4290
|
ze(i, 2, "mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"), re(i, "IMAGE:image_in"), re(i, "NORM_RECT:norm_rect"), H(i, "EMBEDDINGS:embeddings_out"), i.o(t), tt(e, i), this.g.attachProtoListener("embeddings_out", (r, n) => {
|
|
4291
4291
|
r = jd(r), this.embeddings = function(o) {
|
|
4292
|
-
return { embeddings: Et(o,
|
|
4292
|
+
return { embeddings: Et(o, Vd, 1).map((s) => {
|
|
4293
4293
|
var d, u;
|
|
4294
4294
|
const a = { headIndex: Ze(s, 3) ?? 0 ?? -1, headName: ke(ie(s, 4)) ?? "" ?? "" };
|
|
4295
4295
|
var l = s.v;
|
|
4296
|
-
return ic(l, 0 | l[S],
|
|
4296
|
+
return ic(l, 0 | l[S], Gs, Cn(s, 1)) !== void 0 ? (s = Wt(s = Y(s, Gs, Cn(s, 1), void 0), 1, ut, zt()), a.floatEmbedding = s.slice()) : (l = new Uint8Array(0), a.quantizedEmbedding = ((u = (d = Y(s, Gd, Cn(s, 2), void 0)) == null ? void 0 : d.na()) == null ? void 0 : u.h()) ?? l), a;
|
|
4297
4297
|
}), timestampMs: wl(oc(o)) };
|
|
4298
|
-
}(r),
|
|
4298
|
+
}(r), T(this, n);
|
|
4299
4299
|
}), this.g.attachEmptyPacketListener("embeddings_out", (r) => {
|
|
4300
|
-
|
|
4300
|
+
T(this, r);
|
|
4301
4301
|
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
4302
4302
|
}
|
|
4303
4303
|
};
|
|
@@ -4309,11 +4309,11 @@ Ue.cosineSimilarity = function(e, t) {
|
|
|
4309
4309
|
}
|
|
4310
4310
|
return e;
|
|
4311
4311
|
}, Ue.prototype.embedForVideo = Ue.prototype.Aa, Ue.prototype.embed = Ue.prototype.za, Ue.prototype.setOptions = Ue.prototype.o, Ue.createFromModelPath = function(e, t) {
|
|
4312
|
-
return
|
|
4312
|
+
return K(Ue, e, { baseOptions: { modelAssetPath: t } });
|
|
4313
4313
|
}, Ue.createFromModelBuffer = function(e, t) {
|
|
4314
|
-
return
|
|
4314
|
+
return K(Ue, e, { baseOptions: { modelAssetBuffer: t } });
|
|
4315
4315
|
}, Ue.createFromOptions = function(e, t) {
|
|
4316
|
-
return
|
|
4316
|
+
return K(Ue, e, t);
|
|
4317
4317
|
};
|
|
4318
4318
|
var Zn = class {
|
|
4319
4319
|
constructor(e, t, i) {
|
|
@@ -4332,7 +4332,7 @@ function uh(e) {
|
|
|
4332
4332
|
return Et(n, Le, 1);
|
|
4333
4333
|
}(e.ca()).filter((n) => (ke(ie(n, 1)) ?? "").includes("mediapipe.tasks.TensorsToSegmentationCalculator"));
|
|
4334
4334
|
if (e.u = [], t.length > 1) throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");
|
|
4335
|
-
t.length === 1 && (((r = (i =
|
|
4335
|
+
t.length === 1 && (((r = (i = Y(t[0], qe, 7)) == null ? void 0 : i.j()) == null ? void 0 : r.g()) ?? /* @__PURE__ */ new Map()).forEach((n, o) => {
|
|
4336
4336
|
e.u[Number(o)] = ke(ie(n, 1)) ?? "";
|
|
4337
4337
|
});
|
|
4338
4338
|
}
|
|
@@ -4351,13 +4351,13 @@ function ua(e) {
|
|
|
4351
4351
|
Zn.prototype.close = Zn.prototype.close;
|
|
4352
4352
|
var Re = class extends He {
|
|
4353
4353
|
constructor(e, t) {
|
|
4354
|
-
super(new ot(e, t), "image_in", "norm_rect", !1), this.u = [], this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Yo(), this.A = new al(),
|
|
4354
|
+
super(new ot(e, t), "image_in", "norm_rect", !1), this.u = [], this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Yo(), this.A = new al(), M(this.h, 0, 3, this.A), M(e = this.h, 0, 1, t = new ce());
|
|
4355
4355
|
}
|
|
4356
4356
|
get baseOptions() {
|
|
4357
|
-
return
|
|
4357
|
+
return Y(this.h, ce, 1);
|
|
4358
4358
|
}
|
|
4359
4359
|
set baseOptions(e) {
|
|
4360
|
-
|
|
4360
|
+
M(this.h, 0, 1, e);
|
|
4361
4361
|
}
|
|
4362
4362
|
o(e) {
|
|
4363
4363
|
return e.displayNamesLocale !== void 0 ? J(this.h, 2, Er(e.displayNamesLocale)) : "displayNamesLocale" in e && J(this.h, 2), "outputCategoryMask" in e && (this.outputCategoryMask = e.outputCategoryMask ?? !1), "outputConfidenceMasks" in e && (this.outputConfidenceMasks = e.outputConfidenceMasks ?? !0), super.l(e);
|
|
@@ -4382,27 +4382,27 @@ var Re = class extends He {
|
|
|
4382
4382
|
const t = new qe();
|
|
4383
4383
|
ft(t, ll, this.h);
|
|
4384
4384
|
const i = new Le();
|
|
4385
|
-
ze(i, 2, "mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"), re(i, "IMAGE:image_in"), re(i, "NORM_RECT:norm_rect"), i.o(t), tt(e, i), bn(this, e), this.outputConfidenceMasks && (
|
|
4386
|
-
this.confidenceMasks = r.map((o) => Si(this, o, !0, !this.j)),
|
|
4385
|
+
ze(i, 2, "mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"), re(i, "IMAGE:image_in"), re(i, "NORM_RECT:norm_rect"), i.o(t), tt(e, i), bn(this, e), this.outputConfidenceMasks && (X(e, "confidence_masks"), H(i, "CONFIDENCE_MASKS:confidence_masks"), Ni(this, "confidence_masks"), this.g.aa("confidence_masks", (r, n) => {
|
|
4386
|
+
this.confidenceMasks = r.map((o) => Si(this, o, !0, !this.j)), T(this, n);
|
|
4387
4387
|
}), this.g.attachEmptyPacketListener("confidence_masks", (r) => {
|
|
4388
|
-
this.confidenceMasks = [],
|
|
4389
|
-
})), this.outputCategoryMask && (
|
|
4390
|
-
this.categoryMask = Si(this, r, !1, !this.j),
|
|
4388
|
+
this.confidenceMasks = [], T(this, r);
|
|
4389
|
+
})), this.outputCategoryMask && (X(e, "category_mask"), H(i, "CATEGORY_MASK:category_mask"), Ni(this, "category_mask"), this.g.Z("category_mask", (r, n) => {
|
|
4390
|
+
this.categoryMask = Si(this, r, !1, !this.j), T(this, n);
|
|
4391
4391
|
}), this.g.attachEmptyPacketListener("category_mask", (r) => {
|
|
4392
|
-
this.categoryMask = void 0,
|
|
4393
|
-
})),
|
|
4394
|
-
this.qualityScores = r,
|
|
4392
|
+
this.categoryMask = void 0, T(this, r);
|
|
4393
|
+
})), X(e, "quality_scores"), H(i, "QUALITY_SCORES:quality_scores"), this.g.attachFloatVectorListener("quality_scores", (r, n) => {
|
|
4394
|
+
this.qualityScores = r, T(this, n);
|
|
4395
4395
|
}), this.g.attachEmptyPacketListener("quality_scores", (r) => {
|
|
4396
|
-
this.categoryMask = void 0,
|
|
4396
|
+
this.categoryMask = void 0, T(this, r);
|
|
4397
4397
|
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
4398
4398
|
}
|
|
4399
4399
|
};
|
|
4400
4400
|
Re.prototype.getLabels = Re.prototype.Da, Re.prototype.segmentForVideo = Re.prototype.La, Re.prototype.segment = Re.prototype.segment, Re.prototype.setOptions = Re.prototype.o, Re.createFromModelPath = function(e, t) {
|
|
4401
|
-
return
|
|
4401
|
+
return K(Re, e, { baseOptions: { modelAssetPath: t } });
|
|
4402
4402
|
}, Re.createFromModelBuffer = function(e, t) {
|
|
4403
|
-
return
|
|
4403
|
+
return K(Re, e, { baseOptions: { modelAssetBuffer: t } });
|
|
4404
4404
|
}, Re.createFromOptions = function(e, t) {
|
|
4405
|
-
return
|
|
4405
|
+
return K(Re, e, t);
|
|
4406
4406
|
};
|
|
4407
4407
|
var eo = class {
|
|
4408
4408
|
constructor(e, t, i) {
|
|
@@ -4418,13 +4418,13 @@ var eo = class {
|
|
|
4418
4418
|
eo.prototype.close = eo.prototype.close;
|
|
4419
4419
|
var lt = class extends He {
|
|
4420
4420
|
constructor(e, t) {
|
|
4421
|
-
super(new ot(e, t), "image_in", "norm_rect_in", !1), this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Yo(), this.u = new al(),
|
|
4421
|
+
super(new ot(e, t), "image_in", "norm_rect_in", !1), this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Yo(), this.u = new al(), M(this.h, 0, 3, this.u), M(e = this.h, 0, 1, t = new ce());
|
|
4422
4422
|
}
|
|
4423
4423
|
get baseOptions() {
|
|
4424
|
-
return
|
|
4424
|
+
return Y(this.h, ce, 1);
|
|
4425
4425
|
}
|
|
4426
4426
|
set baseOptions(e) {
|
|
4427
|
-
|
|
4427
|
+
M(this.h, 0, 1, e);
|
|
4428
4428
|
}
|
|
4429
4429
|
o(e) {
|
|
4430
4430
|
return "outputCategoryMask" in e && (this.outputCategoryMask = e.outputCategoryMask ?? !1), "outputConfidenceMasks" in e && (this.outputConfidenceMasks = e.outputConfidenceMasks ?? !0), super.l(e);
|
|
@@ -4465,40 +4465,40 @@ var lt = class extends He {
|
|
|
4465
4465
|
const t = new qe();
|
|
4466
4466
|
ft(t, ll, this.h);
|
|
4467
4467
|
const i = new Le();
|
|
4468
|
-
ze(i, 2, "mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"), re(i, "IMAGE:image_in"), re(i, "ROI:roi_in"), re(i, "NORM_RECT:norm_rect_in"), i.o(t), tt(e, i), bn(this, e), this.outputConfidenceMasks && (
|
|
4469
|
-
this.confidenceMasks = r.map((o) => Si(this, o, !0, !this.j)),
|
|
4468
|
+
ze(i, 2, "mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"), re(i, "IMAGE:image_in"), re(i, "ROI:roi_in"), re(i, "NORM_RECT:norm_rect_in"), i.o(t), tt(e, i), bn(this, e), this.outputConfidenceMasks && (X(e, "confidence_masks"), H(i, "CONFIDENCE_MASKS:confidence_masks"), Ni(this, "confidence_masks"), this.g.aa("confidence_masks", (r, n) => {
|
|
4469
|
+
this.confidenceMasks = r.map((o) => Si(this, o, !0, !this.j)), T(this, n);
|
|
4470
4470
|
}), this.g.attachEmptyPacketListener("confidence_masks", (r) => {
|
|
4471
|
-
this.confidenceMasks = [],
|
|
4472
|
-
})), this.outputCategoryMask && (
|
|
4473
|
-
this.categoryMask = Si(this, r, !1, !this.j),
|
|
4471
|
+
this.confidenceMasks = [], T(this, r);
|
|
4472
|
+
})), this.outputCategoryMask && (X(e, "category_mask"), H(i, "CATEGORY_MASK:category_mask"), Ni(this, "category_mask"), this.g.Z("category_mask", (r, n) => {
|
|
4473
|
+
this.categoryMask = Si(this, r, !1, !this.j), T(this, n);
|
|
4474
4474
|
}), this.g.attachEmptyPacketListener("category_mask", (r) => {
|
|
4475
|
-
this.categoryMask = void 0,
|
|
4476
|
-
})),
|
|
4477
|
-
this.qualityScores = r,
|
|
4475
|
+
this.categoryMask = void 0, T(this, r);
|
|
4476
|
+
})), X(e, "quality_scores"), H(i, "QUALITY_SCORES:quality_scores"), this.g.attachFloatVectorListener("quality_scores", (r, n) => {
|
|
4477
|
+
this.qualityScores = r, T(this, n);
|
|
4478
4478
|
}), this.g.attachEmptyPacketListener("quality_scores", (r) => {
|
|
4479
|
-
this.categoryMask = void 0,
|
|
4479
|
+
this.categoryMask = void 0, T(this, r);
|
|
4480
4480
|
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
4481
4481
|
}
|
|
4482
4482
|
};
|
|
4483
4483
|
lt.prototype.segment = lt.prototype.segment, lt.prototype.setOptions = lt.prototype.o, lt.createFromModelPath = function(e, t) {
|
|
4484
|
-
return
|
|
4484
|
+
return K(lt, e, { baseOptions: { modelAssetPath: t } });
|
|
4485
4485
|
}, lt.createFromModelBuffer = function(e, t) {
|
|
4486
|
-
return
|
|
4486
|
+
return K(lt, e, { baseOptions: { modelAssetBuffer: t } });
|
|
4487
4487
|
}, lt.createFromOptions = function(e, t) {
|
|
4488
|
-
return
|
|
4488
|
+
return K(lt, e, t);
|
|
4489
4489
|
};
|
|
4490
4490
|
var Je = class extends He {
|
|
4491
4491
|
constructor(e, t) {
|
|
4492
|
-
super(new ot(e, t), "input_frame_gpu", "norm_rect", !1), this.j = { detections: [] },
|
|
4492
|
+
super(new ot(e, t), "input_frame_gpu", "norm_rect", !1), this.j = { detections: [] }, M(e = this.h = new dl(), 0, 1, t = new ce());
|
|
4493
4493
|
}
|
|
4494
4494
|
get baseOptions() {
|
|
4495
|
-
return
|
|
4495
|
+
return Y(this.h, ce, 1);
|
|
4496
4496
|
}
|
|
4497
4497
|
set baseOptions(e) {
|
|
4498
|
-
|
|
4498
|
+
M(this.h, 0, 1, e);
|
|
4499
4499
|
}
|
|
4500
4500
|
o(e) {
|
|
4501
|
-
return e.displayNamesLocale !== void 0 ? J(this.h, 2, Er(e.displayNamesLocale)) : "displayNamesLocale" in e && J(this.h, 2), e.maxResults !== void 0 ? _t(this.h, 3, e.maxResults) : "maxResults" in e && J(this.h, 3), e.scoreThreshold !== void 0 ? R(this.h, 4, e.scoreThreshold) : "scoreThreshold" in e && J(this.h, 4), e.categoryAllowlist !== void 0 ?
|
|
4501
|
+
return e.displayNamesLocale !== void 0 ? J(this.h, 2, Er(e.displayNamesLocale)) : "displayNamesLocale" in e && J(this.h, 2), e.maxResults !== void 0 ? _t(this.h, 3, e.maxResults) : "maxResults" in e && J(this.h, 3), e.scoreThreshold !== void 0 ? R(this.h, 4, e.scoreThreshold) : "scoreThreshold" in e && J(this.h, 4), e.categoryAllowlist !== void 0 ? Gr(this.h, 5, e.categoryAllowlist) : "categoryAllowlist" in e && J(this.h, 5), e.categoryDenylist !== void 0 ? Gr(this.h, 6, e.categoryDenylist) : "categoryDenylist" in e && J(this.h, 6), this.l(e);
|
|
4502
4502
|
}
|
|
4503
4503
|
F(e, t) {
|
|
4504
4504
|
return this.j = { detections: [] }, st(this, e, t), this.j;
|
|
@@ -4508,24 +4508,24 @@ var Je = class extends He {
|
|
|
4508
4508
|
}
|
|
4509
4509
|
m() {
|
|
4510
4510
|
var e = new Ke();
|
|
4511
|
-
se(e, "input_frame_gpu"), se(e, "norm_rect"),
|
|
4511
|
+
se(e, "input_frame_gpu"), se(e, "norm_rect"), X(e, "detections");
|
|
4512
4512
|
const t = new qe();
|
|
4513
4513
|
ft(t, th, this.h);
|
|
4514
4514
|
const i = new Le();
|
|
4515
4515
|
ze(i, 2, "mediapipe.tasks.vision.ObjectDetectorGraph"), re(i, "IMAGE:input_frame_gpu"), re(i, "NORM_RECT:norm_rect"), H(i, "DETECTIONS:detections"), i.o(t), tt(e, i), this.g.attachProtoVectorListener("detections", (r, n) => {
|
|
4516
4516
|
for (const o of r) r = jc(o), this.j.detections.push(fl(r));
|
|
4517
|
-
|
|
4517
|
+
T(this, n);
|
|
4518
4518
|
}), this.g.attachEmptyPacketListener("detections", (r) => {
|
|
4519
|
-
|
|
4519
|
+
T(this, r);
|
|
4520
4520
|
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
4521
4521
|
}
|
|
4522
4522
|
};
|
|
4523
4523
|
Je.prototype.detectForVideo = Je.prototype.G, Je.prototype.detect = Je.prototype.F, Je.prototype.setOptions = Je.prototype.o, Je.createFromModelPath = async function(e, t) {
|
|
4524
|
-
return
|
|
4524
|
+
return K(Je, e, { baseOptions: { modelAssetPath: t } });
|
|
4525
4525
|
}, Je.createFromModelBuffer = function(e, t) {
|
|
4526
|
-
return
|
|
4526
|
+
return K(Je, e, { baseOptions: { modelAssetBuffer: t } });
|
|
4527
4527
|
}, Je.createFromOptions = function(e, t) {
|
|
4528
|
-
return
|
|
4528
|
+
return K(Je, e, t);
|
|
4529
4529
|
};
|
|
4530
4530
|
var to = class {
|
|
4531
4531
|
constructor(e, t, i) {
|
|
@@ -4551,15 +4551,15 @@ function ha(e) {
|
|
|
4551
4551
|
}
|
|
4552
4552
|
}
|
|
4553
4553
|
to.prototype.close = to.prototype.close;
|
|
4554
|
-
var
|
|
4554
|
+
var Ge = class extends He {
|
|
4555
4555
|
constructor(e, t) {
|
|
4556
|
-
super(new ot(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.outputSegmentationMasks = !1,
|
|
4556
|
+
super(new ot(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.outputSegmentationMasks = !1, M(e = this.h = new hl(), 0, 1, t = new ce()), this.A = new rl(), M(this.h, 0, 3, this.A), this.j = new il(), M(this.h, 0, 2, this.j), _t(this.j, 4, 1), R(this.j, 2, 0.5), R(this.A, 2, 0.5), R(this.h, 4, 0.5);
|
|
4557
4557
|
}
|
|
4558
4558
|
get baseOptions() {
|
|
4559
|
-
return
|
|
4559
|
+
return Y(this.h, ce, 1);
|
|
4560
4560
|
}
|
|
4561
4561
|
set baseOptions(e) {
|
|
4562
|
-
|
|
4562
|
+
M(this.h, 0, 1, e);
|
|
4563
4563
|
}
|
|
4564
4564
|
o(e) {
|
|
4565
4565
|
return "numPoses" in e && _t(this.j, 4, e.numPoses ?? 1), "minPoseDetectionConfidence" in e && R(this.j, 2, e.minPoseDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && R(this.h, 4, e.minTrackingConfidence ?? 0.5), "minPosePresenceConfidence" in e && R(this.A, 2, e.minPosePresenceConfidence ?? 0.5), "outputSegmentationMasks" in e && (this.outputSegmentationMasks = e.outputSegmentationMasks ?? !1), this.l(e);
|
|
@@ -4574,38 +4574,38 @@ var Ve = class extends He {
|
|
|
4574
4574
|
}
|
|
4575
4575
|
m() {
|
|
4576
4576
|
var e = new Ke();
|
|
4577
|
-
se(e, "image_in"), se(e, "norm_rect"),
|
|
4577
|
+
se(e, "image_in"), se(e, "norm_rect"), X(e, "normalized_landmarks"), X(e, "world_landmarks"), X(e, "segmentation_masks");
|
|
4578
4578
|
const t = new qe();
|
|
4579
4579
|
ft(t, ih, this.h);
|
|
4580
4580
|
const i = new Le();
|
|
4581
4581
|
ze(i, 2, "mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"), re(i, "IMAGE:image_in"), re(i, "NORM_RECT:norm_rect"), H(i, "NORM_LANDMARKS:normalized_landmarks"), H(i, "WORLD_LANDMARKS:world_landmarks"), i.o(t), tt(e, i), bn(this, e), this.g.attachProtoVectorListener("normalized_landmarks", (r, n) => {
|
|
4582
4582
|
this.landmarks = [];
|
|
4583
4583
|
for (const o of r) r = Ar(o), this.landmarks.push(yn(r));
|
|
4584
|
-
|
|
4584
|
+
T(this, n);
|
|
4585
4585
|
}), this.g.attachEmptyPacketListener("normalized_landmarks", (r) => {
|
|
4586
|
-
this.landmarks = [],
|
|
4586
|
+
this.landmarks = [], T(this, r);
|
|
4587
4587
|
}), this.g.attachProtoVectorListener("world_landmarks", (r, n) => {
|
|
4588
4588
|
this.worldLandmarks = [];
|
|
4589
4589
|
for (const o of r) r = pi(o), this.worldLandmarks.push(cr(r));
|
|
4590
|
-
|
|
4590
|
+
T(this, n);
|
|
4591
4591
|
}), this.g.attachEmptyPacketListener("world_landmarks", (r) => {
|
|
4592
|
-
this.worldLandmarks = [],
|
|
4592
|
+
this.worldLandmarks = [], T(this, r);
|
|
4593
4593
|
}), this.outputSegmentationMasks && (H(i, "SEGMENTATION_MASK:segmentation_masks"), Ni(this, "segmentation_masks"), this.g.aa("segmentation_masks", (r, n) => {
|
|
4594
|
-
this.segmentationMasks = r.map((o) => Si(this, o, !0, !this.u)),
|
|
4594
|
+
this.segmentationMasks = r.map((o) => Si(this, o, !0, !this.u)), T(this, n);
|
|
4595
4595
|
}), this.g.attachEmptyPacketListener("segmentation_masks", (r) => {
|
|
4596
|
-
this.segmentationMasks = [],
|
|
4596
|
+
this.segmentationMasks = [], T(this, r);
|
|
4597
4597
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
4598
4598
|
}
|
|
4599
4599
|
};
|
|
4600
|
-
|
|
4601
|
-
return
|
|
4602
|
-
},
|
|
4603
|
-
return
|
|
4604
|
-
},
|
|
4605
|
-
return
|
|
4606
|
-
},
|
|
4600
|
+
Ge.prototype.detectForVideo = Ge.prototype.G, Ge.prototype.detect = Ge.prototype.F, Ge.prototype.setOptions = Ge.prototype.o, Ge.createFromModelPath = function(e, t) {
|
|
4601
|
+
return K(Ge, e, { baseOptions: { modelAssetPath: t } });
|
|
4602
|
+
}, Ge.createFromModelBuffer = function(e, t) {
|
|
4603
|
+
return K(Ge, e, { baseOptions: { modelAssetBuffer: t } });
|
|
4604
|
+
}, Ge.createFromOptions = function(e, t) {
|
|
4605
|
+
return K(Ge, e, t);
|
|
4606
|
+
}, Ge.POSE_CONNECTIONS = Sl;
|
|
4607
4607
|
const Mr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/latest/face_landmarker.task", dh = "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.32/wasm", hh = () => {
|
|
4608
|
-
const e =
|
|
4608
|
+
const e = P(null), [t, i] = N(!1), [r, n] = N("Initializing..."), [o, s] = N(0), [a, l] = N(!1);
|
|
4609
4609
|
B(() => {
|
|
4610
4610
|
"serviceWorker" in navigator && navigator.serviceWorker.register("/sw.js").then((w) => {
|
|
4611
4611
|
console.log("ServiceWorker registered:", w);
|
|
@@ -4621,11 +4621,11 @@ const Mr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
4621
4621
|
let b = 0;
|
|
4622
4622
|
const p = [];
|
|
4623
4623
|
for (; ; ) {
|
|
4624
|
-
const { done: v, value:
|
|
4624
|
+
const { done: v, value: E } = await y.read();
|
|
4625
4625
|
if (v) break;
|
|
4626
|
-
if (p.push(
|
|
4627
|
-
const
|
|
4628
|
-
s(
|
|
4626
|
+
if (p.push(E), b += E.length, g) {
|
|
4627
|
+
const x = Math.round(b / g * 100);
|
|
4628
|
+
s(x), n(`Downloading model... ${x}%`);
|
|
4629
4629
|
}
|
|
4630
4630
|
}
|
|
4631
4631
|
return "caches" in window && await (await caches.open("mediapipe-models-v1")).put(
|
|
@@ -4671,7 +4671,7 @@ const Mr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
4671
4671
|
}
|
|
4672
4672
|
};
|
|
4673
4673
|
}, wh = () => {
|
|
4674
|
-
const [e, t] =
|
|
4674
|
+
const [e, t] = N(0), i = P({ lastTime: 0, frames: 0, fps: 0 }), r = D(() => {
|
|
4675
4675
|
const n = performance.now(), o = i.current;
|
|
4676
4676
|
if (o.frames++, n - o.lastTime >= 1e3) {
|
|
4677
4677
|
const s = Math.round(o.frames * 1e3 / (n - o.lastTime));
|
|
@@ -4680,7 +4680,7 @@ const Mr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
4680
4680
|
}, []);
|
|
4681
4681
|
return { fps: e, updateFPS: r };
|
|
4682
4682
|
}, fh = () => {
|
|
4683
|
-
const e =
|
|
4683
|
+
const e = P({ value: 100, isLookingAway: !1 }), t = D(
|
|
4684
4684
|
(o, s, a, l) => {
|
|
4685
4685
|
if (!o || !a || !s) return;
|
|
4686
4686
|
const d = o.getContext("2d");
|
|
@@ -4693,14 +4693,14 @@ const Mr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
4693
4693
|
}
|
|
4694
4694
|
},
|
|
4695
4695
|
[]
|
|
4696
|
-
), i =
|
|
4696
|
+
), i = D((o) => {
|
|
4697
4697
|
const s = e.current.value / 100, a = 100, l = 20, d = 20, u = 40;
|
|
4698
4698
|
o.fillStyle = "rgba(0, 0, 0, 0.3)", o.fillRect(d, u, l, a), o.fillStyle = `rgba(${Math.floor(
|
|
4699
4699
|
255 * (1 - s)
|
|
4700
4700
|
)}, ${Math.floor(255 * s)}, 0, 0.8)`;
|
|
4701
4701
|
const h = a * s;
|
|
4702
4702
|
o.fillRect(d, u + a - h, l, h), o.fillStyle = "#FFFFFF", o.fillRect(d, u + a * (1 - s), l, 2);
|
|
4703
|
-
}, []), r =
|
|
4703
|
+
}, []), r = D(
|
|
4704
4704
|
(o, s, a, l, d, u, h) => {
|
|
4705
4705
|
if (t(o, s, a, l), d && u && h) {
|
|
4706
4706
|
const w = o.getContext("2d");
|
|
@@ -4708,7 +4708,7 @@ const Mr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
4708
4708
|
}
|
|
4709
4709
|
},
|
|
4710
4710
|
[t, i]
|
|
4711
|
-
), n =
|
|
4711
|
+
), n = D(
|
|
4712
4712
|
(o, s) => {
|
|
4713
4713
|
const a = o.getContext("2d");
|
|
4714
4714
|
a && (a.clearRect(0, 0, o.width, o.height), a.drawImage(s, 0, 0, o.width, o.height));
|
|
@@ -4723,17 +4723,17 @@ const Mr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
4723
4723
|
engagementRef: e
|
|
4724
4724
|
};
|
|
4725
4725
|
}, mh = 50, gh = () => {
|
|
4726
|
-
const [e, t] =
|
|
4726
|
+
const [e, t] = N(100), [i, r] = N(!1), n = P(0), o = D(
|
|
4727
4727
|
(s, a, l) => {
|
|
4728
4728
|
if (!l || s.length < 468)
|
|
4729
4729
|
return;
|
|
4730
4730
|
const d = s[33], u = s[263], h = s[1];
|
|
4731
4731
|
if (!d || !u || !h) return;
|
|
4732
|
-
const w = (d.x + u.x) * 0.5, f = (d.y + u.y) * 0.5, g = w - a.x, y = f - a.y, b = Math.sqrt(g * g + y * y), p = Math.abs(h.y - a.noseY) * 100, v = Math.abs(h.x - a.noseX) * 100,
|
|
4732
|
+
const w = (d.x + u.x) * 0.5, f = (d.y + u.y) * 0.5, g = w - a.x, y = f - a.y, b = Math.sqrt(g * g + y * y), p = Math.abs(h.y - a.noseY) * 100, v = Math.abs(h.x - a.noseX) * 100, E = Math.max(
|
|
4733
4733
|
0,
|
|
4734
4734
|
100 - (b * 200 + p + v)
|
|
4735
|
-
),
|
|
4736
|
-
return k - n.current > 100 && (t(
|
|
4735
|
+
), x = E < mh, k = performance.now();
|
|
4736
|
+
return k - n.current > 100 && (t(E), r(x), n.current = k), { engagement: E, isLookingAway: x };
|
|
4737
4737
|
},
|
|
4738
4738
|
[]
|
|
4739
4739
|
);
|
|
@@ -4745,10 +4745,10 @@ const Mr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
4745
4745
|
setIsLookingAway: r
|
|
4746
4746
|
};
|
|
4747
4747
|
}, ph = 0.05, yh = () => {
|
|
4748
|
-
const [e, t] =
|
|
4748
|
+
const [e, t] = N(!1), [i, r] = N(!1), n = D(
|
|
4749
4749
|
(a, l) => Math.sqrt(Math.pow(a.x - l.x, 2) + Math.pow(a.y - l.y, 2)),
|
|
4750
4750
|
[]
|
|
4751
|
-
), o =
|
|
4751
|
+
), o = D(
|
|
4752
4752
|
(a, l) => {
|
|
4753
4753
|
if (!a || !l) return 0;
|
|
4754
4754
|
const d = [
|
|
@@ -4773,20 +4773,20 @@ const Mr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
4773
4773
|
y
|
|
4774
4774
|
);
|
|
4775
4775
|
if (b === 0 || p === 0) return 0;
|
|
4776
|
-
for (const
|
|
4777
|
-
const
|
|
4778
|
-
if (
|
|
4779
|
-
const
|
|
4780
|
-
u += n(
|
|
4781
|
-
x:
|
|
4782
|
-
y:
|
|
4776
|
+
for (const E of d) {
|
|
4777
|
+
const x = l[E], k = a[E];
|
|
4778
|
+
if (x && k) {
|
|
4779
|
+
const _ = w.x + (k.x - g.x) * b / p, U = w.y + (k.y - g.y) * b / p;
|
|
4780
|
+
u += n(x, {
|
|
4781
|
+
x: _,
|
|
4782
|
+
y: U
|
|
4783
4783
|
}), h++;
|
|
4784
4784
|
}
|
|
4785
4785
|
}
|
|
4786
4786
|
return h === 0 ? 0 : u / h;
|
|
4787
4787
|
},
|
|
4788
4788
|
[n]
|
|
4789
|
-
), s =
|
|
4789
|
+
), s = D(
|
|
4790
4790
|
(a, l, d, u) => {
|
|
4791
4791
|
if (!a.faceLandmarks || a.faceLandmarks.length === 0)
|
|
4792
4792
|
return u("Face not detected."), r(!0), t(!1), null;
|
|
@@ -4819,7 +4819,7 @@ const Mr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
4819
4819
|
setReferenceFaceNotDetected: r
|
|
4820
4820
|
};
|
|
4821
4821
|
}, bh = 500, vh = (e, t, i) => {
|
|
4822
|
-
const [r, n] =
|
|
4822
|
+
const [r, n] = N(!1), [o, s] = N(Se.MODEL_LOADING), { incrementGazeViolation: a } = ka(), { multipleFacesDetected: l, referenceFaceNotDetected: d, isLookingAway: u } = e;
|
|
4823
4823
|
B(() => {
|
|
4824
4824
|
if (!i) return;
|
|
4825
4825
|
let f;
|
|
@@ -4838,12 +4838,12 @@ const Mr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
4838
4838
|
a,
|
|
4839
4839
|
i
|
|
4840
4840
|
]);
|
|
4841
|
-
const h =
|
|
4841
|
+
const h = D(() => l ? Se.MULTIPLE_FACES : d ? "no_face_detected" : u ? Se.LOOKING_AWAY : o === Se.MODEL_LOADING ? Se.MODEL_LOADING : Se.FACE_DETECTED, [
|
|
4842
4842
|
l,
|
|
4843
4843
|
d,
|
|
4844
4844
|
u,
|
|
4845
4845
|
o
|
|
4846
|
-
]), w =
|
|
4846
|
+
]), w = D(() => {
|
|
4847
4847
|
n(!1), s("face_detected");
|
|
4848
4848
|
}, []);
|
|
4849
4849
|
return {
|
|
@@ -5319,7 +5319,7 @@ const _h = 50 * 1024 * 1024, wa = 300, fa = 500, lr = class lr {
|
|
|
5319
5319
|
me(lr, "activeStream", null);
|
|
5320
5320
|
let Ii = lr;
|
|
5321
5321
|
const Il = new Ii(), kh = (e, t, i, r) => {
|
|
5322
|
-
const n =
|
|
5322
|
+
const n = P(null);
|
|
5323
5323
|
return B(() => {
|
|
5324
5324
|
if (!t) return;
|
|
5325
5325
|
const o = async () => {
|
|
@@ -5354,34 +5354,34 @@ const Il = new Ii(), kh = (e, t, i, r) => {
|
|
|
5354
5354
|
}
|
|
5355
5355
|
}, []), { animationFrameRef: n };
|
|
5356
5356
|
}, Ah = (e, t, i, r, n, o, s, a, l, d, u, h, w, f, g) => {
|
|
5357
|
-
const y =
|
|
5358
|
-
const p = e.current, v = t.current,
|
|
5359
|
-
if (!p || p.readyState < 2 || !
|
|
5357
|
+
const y = P(null), b = D(() => {
|
|
5358
|
+
const p = e.current, v = t.current, E = i.current;
|
|
5359
|
+
if (!p || p.readyState < 2 || !E || !v) {
|
|
5360
5360
|
y.current = requestAnimationFrame(b);
|
|
5361
5361
|
return;
|
|
5362
5362
|
}
|
|
5363
5363
|
r();
|
|
5364
5364
|
try {
|
|
5365
|
-
const
|
|
5365
|
+
const x = performance.now(), k = E.detectForVideo(
|
|
5366
5366
|
p,
|
|
5367
|
-
|
|
5368
|
-
),
|
|
5367
|
+
x
|
|
5368
|
+
), _ = n(
|
|
5369
5369
|
k,
|
|
5370
5370
|
l,
|
|
5371
5371
|
d.current,
|
|
5372
5372
|
f
|
|
5373
5373
|
);
|
|
5374
|
-
|
|
5374
|
+
_ ? (o(
|
|
5375
5375
|
v,
|
|
5376
5376
|
p,
|
|
5377
|
-
|
|
5377
|
+
_,
|
|
5378
5378
|
u,
|
|
5379
5379
|
h,
|
|
5380
5380
|
w,
|
|
5381
5381
|
l
|
|
5382
|
-
), l && w && a(
|
|
5383
|
-
} catch (
|
|
5384
|
-
console.error("Face detection error:",
|
|
5382
|
+
), l && w && a(_, d.current, w)) : s(v, p);
|
|
5383
|
+
} catch (x) {
|
|
5384
|
+
console.error("Face detection error:", x);
|
|
5385
5385
|
}
|
|
5386
5386
|
y.current = requestAnimationFrame(b);
|
|
5387
5387
|
}, [
|
|
@@ -5407,9 +5407,9 @@ const Il = new Ii(), kh = (e, t, i, r) => {
|
|
|
5407
5407
|
referenceSet: n,
|
|
5408
5408
|
referenceRef: o,
|
|
5409
5409
|
setReferenceData: s
|
|
5410
|
-
} = ka(), a =
|
|
5410
|
+
} = ka(), a = P(o), l = D(() => {
|
|
5411
5411
|
a.current = o;
|
|
5412
|
-
}, [o]), d =
|
|
5412
|
+
}, [o]), d = D(() => {
|
|
5413
5413
|
var f;
|
|
5414
5414
|
const h = e.current, w = t.current;
|
|
5415
5415
|
if (!(!h || !w))
|
|
@@ -5419,12 +5419,12 @@ const Il = new Ii(), kh = (e, t, i, r) => {
|
|
|
5419
5419
|
g
|
|
5420
5420
|
);
|
|
5421
5421
|
if ((f = y.faceLandmarks) != null && f[0]) {
|
|
5422
|
-
const b = y.faceLandmarks[0], p = b[33], v = b[263],
|
|
5423
|
-
p && v &&
|
|
5422
|
+
const b = y.faceLandmarks[0], p = b[33], v = b[263], E = b[1];
|
|
5423
|
+
p && v && E && (a.current = {
|
|
5424
5424
|
x: (p.x + v.x) * 0.5,
|
|
5425
5425
|
y: (p.y + v.y) * 0.5,
|
|
5426
|
-
noseX:
|
|
5427
|
-
noseY:
|
|
5426
|
+
noseX: E.x,
|
|
5427
|
+
noseY: E.y
|
|
5428
5428
|
}, s(!0, a.current), i("Reference set. Gaze tracking active."), r && r());
|
|
5429
5429
|
}
|
|
5430
5430
|
} catch (g) {
|
|
@@ -5436,7 +5436,7 @@ const Il = new Ii(), kh = (e, t, i, r) => {
|
|
|
5436
5436
|
i,
|
|
5437
5437
|
s,
|
|
5438
5438
|
r
|
|
5439
|
-
]), u =
|
|
5439
|
+
]), u = D(() => {
|
|
5440
5440
|
s(!1, { x: 0, y: 0, noseX: 0, noseY: 0 }), i("Reference reset. Starting calibration...");
|
|
5441
5441
|
}, [s, i]);
|
|
5442
5442
|
return {
|
|
@@ -5494,11 +5494,11 @@ const Ch = ({ status: e }) => {
|
|
|
5494
5494
|
] });
|
|
5495
5495
|
};
|
|
5496
5496
|
function Sh(e, t = {}) {
|
|
5497
|
-
const [i, r] =
|
|
5497
|
+
const [i, r] = N({
|
|
5498
5498
|
data: null,
|
|
5499
5499
|
loading: !1,
|
|
5500
5500
|
error: null
|
|
5501
|
-
}), n =
|
|
5501
|
+
}), n = D(
|
|
5502
5502
|
async (...o) => {
|
|
5503
5503
|
var s, a, l, d;
|
|
5504
5504
|
r((u) => ({ ...u, loading: !0, error: null }));
|
|
@@ -5533,7 +5533,7 @@ function Sh(e, t = {}) {
|
|
|
5533
5533
|
};
|
|
5534
5534
|
}
|
|
5535
5535
|
const Ih = (e) => {
|
|
5536
|
-
const [t, i] =
|
|
5536
|
+
const [t, i] = N(null), [r, n] = N(!1), o = document, s = () => !!(o.fullscreenEnabled || o.webkitFullscreenEnabled || o.mozFullScreenEnabled || o.msFullscreenEnabled), a = () => o.fullscreenElement || o.webkitFullscreenElement || o.mozFullScreenElement || o.msFullscreenElement, l = async (f) => {
|
|
5537
5537
|
var g;
|
|
5538
5538
|
try {
|
|
5539
5539
|
if (!s())
|
|
@@ -5557,7 +5557,7 @@ const Ih = (e) => {
|
|
|
5557
5557
|
};
|
|
5558
5558
|
i(y), (f = e == null ? void 0 : e.onError) == null || f.call(e, y);
|
|
5559
5559
|
}
|
|
5560
|
-
}, u =
|
|
5560
|
+
}, u = D(() => {
|
|
5561
5561
|
var g;
|
|
5562
5562
|
const f = !!a();
|
|
5563
5563
|
n(f), (g = e == null ? void 0 : e.onFullScreenChange) == null || g.call(e, f);
|
|
@@ -5813,9 +5813,9 @@ const Rh = (e) => {
|
|
|
5813
5813
|
};
|
|
5814
5814
|
}, [e]);
|
|
5815
5815
|
}, Lh = (e = {}) => {
|
|
5816
|
-
const [t, i] =
|
|
5816
|
+
const [t, i] = N(!1), [r, n] = N(!1), [o, s] = N(null), [a, l] = N(null), [d, u] = N(null), h = P(e);
|
|
5817
5817
|
h.current = e;
|
|
5818
|
-
const w =
|
|
5818
|
+
const w = P(null);
|
|
5819
5819
|
w.current || (w.current = new Ii(e.config)), B(() => {
|
|
5820
5820
|
var p;
|
|
5821
5821
|
e.config && ((p = w.current) == null || p.updateConfig(e.config));
|
|
@@ -5825,8 +5825,8 @@ const Rh = (e) => {
|
|
|
5825
5825
|
p == null || p.dispose(), w.current = null;
|
|
5826
5826
|
};
|
|
5827
5827
|
}, []);
|
|
5828
|
-
const f =
|
|
5829
|
-
var
|
|
5828
|
+
const f = D(async (p) => {
|
|
5829
|
+
var E, x;
|
|
5830
5830
|
const v = w.current;
|
|
5831
5831
|
if (!v || v.isDisposed())
|
|
5832
5832
|
throw new Q(
|
|
@@ -5837,31 +5837,31 @@ const Rh = (e) => {
|
|
|
5837
5837
|
try {
|
|
5838
5838
|
l(null), s(null), u(null), await v.startRecording(p, {
|
|
5839
5839
|
onStart: () => {
|
|
5840
|
-
var k,
|
|
5841
|
-
i(!0), (
|
|
5840
|
+
var k, _;
|
|
5841
|
+
i(!0), (_ = (k = h.current).onStart) == null || _.call(k);
|
|
5842
5842
|
},
|
|
5843
5843
|
// ---- FIX: onStop is the SINGLE source of truth for stop events.
|
|
5844
5844
|
// stopRecording() no longer calls onStop separately, preventing double-fire.
|
|
5845
5845
|
onStop: () => {
|
|
5846
|
-
var k,
|
|
5847
|
-
i(!1), (
|
|
5846
|
+
var k, _;
|
|
5847
|
+
i(!1), (_ = (k = h.current).onStop) == null || _.call(k);
|
|
5848
5848
|
},
|
|
5849
5849
|
onError: (k) => {
|
|
5850
|
-
var
|
|
5851
|
-
const
|
|
5852
|
-
l(
|
|
5850
|
+
var U, C;
|
|
5851
|
+
const _ = k instanceof Q ? k : new Q(k.message, "RECORDING_ERROR", !0);
|
|
5852
|
+
l(_), i(!1), (C = (U = h.current).onError) == null || C.call(U, _);
|
|
5853
5853
|
}
|
|
5854
5854
|
});
|
|
5855
5855
|
} catch (k) {
|
|
5856
|
-
const
|
|
5856
|
+
const _ = k instanceof Q ? k : new Q(
|
|
5857
5857
|
k instanceof Error ? k.message : String(k),
|
|
5858
5858
|
"START_FAILED",
|
|
5859
5859
|
!1
|
|
5860
5860
|
);
|
|
5861
|
-
throw l(
|
|
5861
|
+
throw l(_), i(!1), (x = (E = h.current).onError) == null || x.call(E, _), _;
|
|
5862
5862
|
}
|
|
5863
|
-
}, []), g =
|
|
5864
|
-
var v,
|
|
5863
|
+
}, []), g = D(async () => {
|
|
5864
|
+
var v, E;
|
|
5865
5865
|
const p = w.current;
|
|
5866
5866
|
if (!p || p.isDisposed())
|
|
5867
5867
|
throw new Q(
|
|
@@ -5870,21 +5870,21 @@ const Rh = (e) => {
|
|
|
5870
5870
|
!1
|
|
5871
5871
|
);
|
|
5872
5872
|
try {
|
|
5873
|
-
const
|
|
5874
|
-
return u(
|
|
5875
|
-
} catch (
|
|
5876
|
-
const k =
|
|
5877
|
-
|
|
5873
|
+
const x = await p.stopRecording();
|
|
5874
|
+
return u(x), x;
|
|
5875
|
+
} catch (x) {
|
|
5876
|
+
const k = x instanceof Q ? x : new Q(
|
|
5877
|
+
x instanceof Error ? x.message : String(x),
|
|
5878
5878
|
"STOP_FAILED",
|
|
5879
5879
|
!1
|
|
5880
5880
|
);
|
|
5881
|
-
throw l(k), i(!1), (
|
|
5881
|
+
throw l(k), i(!1), (E = (v = h.current).onError) == null || E.call(v, k), k;
|
|
5882
5882
|
}
|
|
5883
|
-
}, []), y =
|
|
5883
|
+
}, []), y = D(
|
|
5884
5884
|
async (p, v = {}) => {
|
|
5885
|
-
var
|
|
5886
|
-
const
|
|
5887
|
-
if (!
|
|
5885
|
+
var x, k, _, U, C, A;
|
|
5886
|
+
const E = w.current;
|
|
5887
|
+
if (!E || E.isDisposed())
|
|
5888
5888
|
throw new Q(
|
|
5889
5889
|
"STT service is not available",
|
|
5890
5890
|
"SERVICE_UNAVAILABLE",
|
|
@@ -5893,25 +5893,25 @@ const Rh = (e) => {
|
|
|
5893
5893
|
try {
|
|
5894
5894
|
if (l(null), n(!0), !p || p.size === 0) {
|
|
5895
5895
|
console.warn("Skipping transcription — blob is empty");
|
|
5896
|
-
const
|
|
5897
|
-
return s(
|
|
5896
|
+
const $ = { transcript: "" };
|
|
5897
|
+
return s($.transcript), n(!1), (k = (x = h.current).onTranscriptionComplete) == null || k.call(x, $), $;
|
|
5898
5898
|
}
|
|
5899
|
-
const
|
|
5899
|
+
const L = {
|
|
5900
5900
|
audioBlob: p,
|
|
5901
5901
|
...v
|
|
5902
|
-
}, j = await
|
|
5903
|
-
return s(j.transcript), n(!1), (
|
|
5904
|
-
} catch (
|
|
5905
|
-
const j =
|
|
5906
|
-
|
|
5902
|
+
}, j = await E.transcribe(L);
|
|
5903
|
+
return s(j.transcript), n(!1), (U = (_ = h.current).onTranscriptionComplete) == null || U.call(_, j), j;
|
|
5904
|
+
} catch (L) {
|
|
5905
|
+
const j = L instanceof Q ? L : new Q(
|
|
5906
|
+
L instanceof Error ? L.message : String(L),
|
|
5907
5907
|
"TRANSCRIPTION_FAILED",
|
|
5908
5908
|
!0
|
|
5909
5909
|
);
|
|
5910
|
-
throw l(j), n(!1), (
|
|
5910
|
+
throw l(j), n(!1), (A = (C = h.current).onError) == null || A.call(C, j), j;
|
|
5911
5911
|
}
|
|
5912
5912
|
},
|
|
5913
5913
|
[]
|
|
5914
|
-
), b =
|
|
5914
|
+
), b = D(() => {
|
|
5915
5915
|
var p;
|
|
5916
5916
|
(p = w.current) == null || p.cancelRecording(), i(!1), u(null);
|
|
5917
5917
|
}, []);
|
|
@@ -5927,7 +5927,7 @@ const Rh = (e) => {
|
|
|
5927
5927
|
audioBlob: d
|
|
5928
5928
|
};
|
|
5929
5929
|
}, Mh = (e) => {
|
|
5930
|
-
const t =
|
|
5930
|
+
const t = P(null), i = P(!1);
|
|
5931
5931
|
B(() => {
|
|
5932
5932
|
const r = () => {
|
|
5933
5933
|
document.hidden && (i.current = !0, t.current && (clearTimeout(t.current), t.current = null), e({
|
|
@@ -5977,7 +5977,7 @@ const Rh = (e) => {
|
|
|
5977
5977
|
};
|
|
5978
5978
|
}, []);
|
|
5979
5979
|
};
|
|
5980
|
-
var
|
|
5980
|
+
var z = /* @__PURE__ */ ((e) => (e.IDLE = "idle", e.FETCHING_QUESTION = "fetching_question", e.READING_QUESTION = "reading_question", e.THINKING = "thinking", e.ANSWERING = "answering", e.TRANSCRIBING = "transcribing", e.EDITING = "editing", e.SUBMITTING = "submitting", e.COMPLETED = "completed", e))(z || {});
|
|
5981
5981
|
const Fl = {
|
|
5982
5982
|
thinkingDuration: 0,
|
|
5983
5983
|
answeringDuration: 120,
|
|
@@ -6132,9 +6132,9 @@ class Ph {
|
|
|
6132
6132
|
}
|
|
6133
6133
|
}
|
|
6134
6134
|
function Oh(e = {}) {
|
|
6135
|
-
const { config: t = {}, callbacks: i = {} } = e, r =
|
|
6135
|
+
const { config: t = {}, callbacks: i = {} } = e, r = P(null);
|
|
6136
6136
|
r.current || (r.current = new Ph(t, {}));
|
|
6137
|
-
const n = r.current, [o, s] =
|
|
6137
|
+
const n = r.current, [o, s] = N(n.getState()), a = D(() => {
|
|
6138
6138
|
s(n.getState());
|
|
6139
6139
|
}, [n]);
|
|
6140
6140
|
B(() => {
|
|
@@ -6158,11 +6158,11 @@ function Oh(e = {}) {
|
|
|
6158
6158
|
}, [n, t]), B(() => () => {
|
|
6159
6159
|
n.destroy();
|
|
6160
6160
|
}, [n]);
|
|
6161
|
-
const l =
|
|
6161
|
+
const l = D(() => {
|
|
6162
6162
|
n.startQuestion(), a();
|
|
6163
|
-
}, [n, a]), d =
|
|
6163
|
+
}, [n, a]), d = D(() => {
|
|
6164
6164
|
n.nextPhase(), a();
|
|
6165
|
-
}, [n, a]), u =
|
|
6165
|
+
}, [n, a]), u = D(() => {
|
|
6166
6166
|
n.completeInterview(), a();
|
|
6167
6167
|
}, [n, a]);
|
|
6168
6168
|
return {
|
|
@@ -6229,7 +6229,7 @@ class Bh {
|
|
|
6229
6229
|
}
|
|
6230
6230
|
}
|
|
6231
6231
|
const io = new Bh(), Uh = (e = {}) => {
|
|
6232
|
-
const [t, i] =
|
|
6232
|
+
const [t, i] = N(!1), [r, n] = N(!1), [o, s] = N(null), a = D(
|
|
6233
6233
|
async (d) => {
|
|
6234
6234
|
var u;
|
|
6235
6235
|
try {
|
|
@@ -6253,7 +6253,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6253
6253
|
}
|
|
6254
6254
|
},
|
|
6255
6255
|
[e]
|
|
6256
|
-
), l =
|
|
6256
|
+
), l = D(() => {
|
|
6257
6257
|
io.stop(), i(!1), n(!1);
|
|
6258
6258
|
}, []);
|
|
6259
6259
|
return {
|
|
@@ -6263,23 +6263,23 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6263
6263
|
isLoading: r,
|
|
6264
6264
|
error: o
|
|
6265
6265
|
};
|
|
6266
|
-
},
|
|
6266
|
+
}, Gh = ({
|
|
6267
6267
|
onViolation: e,
|
|
6268
6268
|
onEnd: t,
|
|
6269
6269
|
maxViolations: i = 5
|
|
6270
6270
|
}) => {
|
|
6271
|
-
const { addViolation: r } = ru(), n = tu(), o = iu(), s =
|
|
6271
|
+
const { addViolation: r } = ru(), n = tu(), o = iu(), s = P(o);
|
|
6272
6272
|
B(() => {
|
|
6273
6273
|
s.current = o;
|
|
6274
6274
|
}, [o]);
|
|
6275
|
-
const a =
|
|
6275
|
+
const a = D(
|
|
6276
6276
|
(d) => {
|
|
6277
6277
|
t && t(d, s.current);
|
|
6278
6278
|
},
|
|
6279
6279
|
[t]
|
|
6280
6280
|
);
|
|
6281
6281
|
return {
|
|
6282
|
-
logViolation:
|
|
6282
|
+
logViolation: D(
|
|
6283
6283
|
({ type: d, severity: u, details: h }) => {
|
|
6284
6284
|
const w = {
|
|
6285
6285
|
id: uu(),
|
|
@@ -6298,7 +6298,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6298
6298
|
violationCount: o,
|
|
6299
6299
|
logList: n
|
|
6300
6300
|
};
|
|
6301
|
-
},
|
|
6301
|
+
}, Vh = () => {
|
|
6302
6302
|
B(() => {
|
|
6303
6303
|
function e() {
|
|
6304
6304
|
console.clear(), console.log(
|
|
@@ -6395,13 +6395,13 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6395
6395
|
videoAllowed: u = !0
|
|
6396
6396
|
}, h) => {
|
|
6397
6397
|
var cs;
|
|
6398
|
-
const { authToken: w } = Ta(), f = ss(), g = w ? du(w) : null, { borderRadius: y } = Ri(), b = y ?? 18, { proctoring: p, capture_screenshots: v } = pr(),
|
|
6398
|
+
const { authToken: w } = Ta(), f = ss(), g = w ? du(w) : null, { borderRadius: y } = Ri(), b = y ?? 18, { proctoring: p, capture_screenshots: v } = pr(), E = !!(p != null && p.gazeAnalysisEnabled), [x, k] = N(!1), [_, U] = N(
|
|
6399
6399
|
(p == null ? void 0 : p.showLandmarks) ?? !1
|
|
6400
|
-
), [
|
|
6400
|
+
), [C, A] = N(
|
|
6401
6401
|
r && ((p == null ? void 0 : p.showEngagementBar) ?? !0)
|
|
6402
|
-
), [
|
|
6403
|
-
|
|
6404
|
-
), [
|
|
6402
|
+
), [L, j] = N(
|
|
6403
|
+
E
|
|
6404
|
+
), [$, q] = N(!1), O = P(null), G = P(null), ee = P(null), be = P(null), Me = D(
|
|
6405
6405
|
async (Ae) => {
|
|
6406
6406
|
var Sr;
|
|
6407
6407
|
const Zi = O.current, Ne = ee.current;
|
|
@@ -6410,13 +6410,13 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6410
6410
|
if (!di) return;
|
|
6411
6411
|
Ne.width = Zi.videoWidth, Ne.height = Zi.videoHeight, di.save(), di.scale(-1, 1), di.drawImage(Zi, -Ne.width, 0, Ne.width, Ne.height), di.restore();
|
|
6412
6412
|
const er = await new Promise(
|
|
6413
|
-
(
|
|
6413
|
+
(Vt) => Ne.toBlob(Vt, "image/jpeg")
|
|
6414
6414
|
);
|
|
6415
6415
|
if (er && t)
|
|
6416
6416
|
try {
|
|
6417
|
-
const
|
|
6417
|
+
const Vt = `${Ae}-${Date.now()}.jpeg`, Ce = await f.requestScreenshotUploadUrl(
|
|
6418
6418
|
t,
|
|
6419
|
-
|
|
6419
|
+
Vt
|
|
6420
6420
|
);
|
|
6421
6421
|
Ce.data && Ce.data.upload_url && (await f.uploadScreenshot(
|
|
6422
6422
|
(Sr = Ce == null ? void 0 : Ce.data) == null ? void 0 : Sr.upload_url,
|
|
@@ -6424,15 +6424,15 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6424
6424
|
), Ce.data.asset_id && await f.confirmScreenshotUpload(
|
|
6425
6425
|
Ce.data.asset_id
|
|
6426
6426
|
));
|
|
6427
|
-
} catch (
|
|
6428
|
-
console.error(`Failed to upload screenshot for ${Ae}:`,
|
|
6427
|
+
} catch (Vt) {
|
|
6428
|
+
console.error(`Failed to upload screenshot for ${Ae}:`, Vt);
|
|
6429
6429
|
}
|
|
6430
6430
|
},
|
|
6431
6431
|
[f, t]
|
|
6432
6432
|
);
|
|
6433
6433
|
B(() => {
|
|
6434
6434
|
let Ae;
|
|
6435
|
-
return o && (
|
|
6435
|
+
return o && (q(!0), Ae = setTimeout(() => q(!1), 1e3)), () => {
|
|
6436
6436
|
Ae && clearTimeout(Ae);
|
|
6437
6437
|
};
|
|
6438
6438
|
}, [o]);
|
|
@@ -6449,7 +6449,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6449
6449
|
isLookingAway: ae,
|
|
6450
6450
|
analyzeGaze: Wi,
|
|
6451
6451
|
setEngagement: li,
|
|
6452
|
-
setIsLookingAway:
|
|
6452
|
+
setIsLookingAway: Gt
|
|
6453
6453
|
} = gh(), {
|
|
6454
6454
|
multipleFacesDetected: ui,
|
|
6455
6455
|
referenceFaceNotDetected: Hi,
|
|
@@ -6473,7 +6473,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6473
6473
|
setFaceDetectionState: as
|
|
6474
6474
|
} = vh(
|
|
6475
6475
|
Nr,
|
|
6476
|
-
|
|
6476
|
+
E && !a,
|
|
6477
6477
|
// Disable warning manager modal triggers if overlay is on
|
|
6478
6478
|
De
|
|
6479
6479
|
);
|
|
@@ -6502,7 +6502,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6502
6502
|
]);
|
|
6503
6503
|
const { renderLoop: Ol } = Ah(
|
|
6504
6504
|
O,
|
|
6505
|
-
|
|
6505
|
+
G,
|
|
6506
6506
|
pt,
|
|
6507
6507
|
ai,
|
|
6508
6508
|
En,
|
|
@@ -6511,9 +6511,9 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6511
6511
|
Wi,
|
|
6512
6512
|
Ki,
|
|
6513
6513
|
Yi,
|
|
6514
|
-
A,
|
|
6515
|
-
x,
|
|
6516
6514
|
_,
|
|
6515
|
+
C,
|
|
6516
|
+
E,
|
|
6517
6517
|
at,
|
|
6518
6518
|
qi
|
|
6519
6519
|
);
|
|
@@ -6522,21 +6522,21 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6522
6522
|
}, [Ji]), B(() => {
|
|
6523
6523
|
Fe && Fe.current && (Fe.current.value = Tt, Fe.current.isLookingAway = ae);
|
|
6524
6524
|
}, [Tt, ae, Fe]);
|
|
6525
|
-
const Bl =
|
|
6525
|
+
const Bl = D(
|
|
6526
6526
|
(Ae) => {
|
|
6527
|
-
j(Ae), Ae || (li(100),
|
|
6527
|
+
j(Ae), Ae || (li(100), Gt(!1));
|
|
6528
6528
|
},
|
|
6529
|
-
[li,
|
|
6530
|
-
), Ul =
|
|
6531
|
-
|
|
6529
|
+
[li, Gt]
|
|
6530
|
+
), Ul = D(() => {
|
|
6531
|
+
Gt(!1), Tr(!1), qi(!1), as("face_detected"), Cr(!1), Ye();
|
|
6532
6532
|
}, [
|
|
6533
|
-
|
|
6533
|
+
Gt,
|
|
6534
6534
|
Tr,
|
|
6535
6535
|
qi,
|
|
6536
6536
|
as,
|
|
6537
6537
|
Cr,
|
|
6538
6538
|
Ye
|
|
6539
|
-
]),
|
|
6539
|
+
]), Gl = {
|
|
6540
6540
|
engagement: Tt,
|
|
6541
6541
|
fps: si,
|
|
6542
6542
|
isLookingAway: ae,
|
|
@@ -6557,10 +6557,10 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6557
6557
|
label: `capture-${Nt + 1}`,
|
|
6558
6558
|
start: Nt * er,
|
|
6559
6559
|
end: (Nt + 1) * er
|
|
6560
|
-
})),
|
|
6561
|
-
Sr.forEach(({ label: Ce, start: Nt, end:
|
|
6560
|
+
})), Vt = (Ce, Nt) => Ce === Nt ? Ce : Math.random() * (Nt - Ce) + Ce;
|
|
6561
|
+
Sr.forEach(({ label: Ce, start: Nt, end: Vl }, jl) => {
|
|
6562
6562
|
let _n;
|
|
6563
|
-
jl === 0 ? _n = 3e3 : _n =
|
|
6563
|
+
jl === 0 ? _n = 3e3 : _n = Vt(Nt, Vl), Ae.push(
|
|
6564
6564
|
setTimeout(() => {
|
|
6565
6565
|
Me(Ce);
|
|
6566
6566
|
}, _n)
|
|
@@ -6593,7 +6593,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6593
6593
|
] }) : /* @__PURE__ */ c("div", { className: "iw-flex iw-w-full iw-h-full iw-justify-start iw-items-start", children: /* @__PURE__ */ m(
|
|
6594
6594
|
"div",
|
|
6595
6595
|
{
|
|
6596
|
-
className: `iw-relative iw-max-w-full iw-max-h-full iw-aspect-video iw-rounded-2xl iw-overflow-hidden iw-bg-black ${
|
|
6596
|
+
className: `iw-relative iw-max-w-full iw-max-h-full iw-aspect-video iw-rounded-2xl iw-overflow-hidden iw-bg-black ${$ ? "iw-animate-answer-start" : ""} ${o ? "iw-border-4 iw-border-[#6296FB]" : ""}`,
|
|
6597
6597
|
style: { width: "100%", height: "auto", minHeight: "0" },
|
|
6598
6598
|
children: [
|
|
6599
6599
|
/* @__PURE__ */ c(
|
|
@@ -6614,10 +6614,10 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6614
6614
|
/* @__PURE__ */ c("span", { className: "iw-text-white iw-font-medium iw-text-sm", children: "Camera not found" }),
|
|
6615
6615
|
/* @__PURE__ */ c("p", { className: "iw-text-white/60 iw-text-xs iw-mt-1", children: "Please ensure your camera is connected and enabled" })
|
|
6616
6616
|
] }) }),
|
|
6617
|
-
|
|
6617
|
+
E && /* @__PURE__ */ c(
|
|
6618
6618
|
"canvas",
|
|
6619
6619
|
{
|
|
6620
|
-
ref:
|
|
6620
|
+
ref: G,
|
|
6621
6621
|
width: 320,
|
|
6622
6622
|
height: 240,
|
|
6623
6623
|
className: "iw-absolute iw-inset-0 iw-w-full iw-h-full iw-object-cover",
|
|
@@ -6638,19 +6638,19 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6638
6638
|
ku,
|
|
6639
6639
|
{
|
|
6640
6640
|
showControls: (p == null ? void 0 : p.showControls) ?? !1,
|
|
6641
|
-
isBubbleOpen:
|
|
6641
|
+
isBubbleOpen: x,
|
|
6642
6642
|
setIsBubbleOpen: k,
|
|
6643
6643
|
setReference: Xi,
|
|
6644
6644
|
clearCache: oi,
|
|
6645
6645
|
isModelLoaded: De,
|
|
6646
|
-
gazeAnalysisEnabled:
|
|
6646
|
+
gazeAnalysisEnabled: L && E,
|
|
6647
6647
|
referenceSet: Ki,
|
|
6648
|
-
showLandmarks:
|
|
6649
|
-
setShowLandmarks:
|
|
6650
|
-
showEngagementBar:
|
|
6651
|
-
setShowEngagementBar:
|
|
6648
|
+
showLandmarks: _,
|
|
6649
|
+
setShowLandmarks: U,
|
|
6650
|
+
showEngagementBar: C,
|
|
6651
|
+
setShowEngagementBar: A,
|
|
6652
6652
|
handleToggleGazeAnalysis: Bl,
|
|
6653
|
-
stats:
|
|
6653
|
+
stats: Gl,
|
|
6654
6654
|
statusMessage: Pe,
|
|
6655
6655
|
loadingProgress: At
|
|
6656
6656
|
}
|
|
@@ -6675,7 +6675,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6675
6675
|
]
|
|
6676
6676
|
}
|
|
6677
6677
|
) }),
|
|
6678
|
-
|
|
6678
|
+
E && V && !a && /* @__PURE__ */ c(
|
|
6679
6679
|
Nh,
|
|
6680
6680
|
{
|
|
6681
6681
|
isOpen: V,
|
|
@@ -6751,7 +6751,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6751
6751
|
barCount: i = 50,
|
|
6752
6752
|
onAudioLevel: r
|
|
6753
6753
|
}) => {
|
|
6754
|
-
const n =
|
|
6754
|
+
const n = P(null), o = P(null), s = P(0), a = P(null), l = P(null), d = P(null);
|
|
6755
6755
|
B(() => {
|
|
6756
6756
|
if (!e || window === void 0) return;
|
|
6757
6757
|
l.current || (l.current = new (window.AudioContext || window.webkitAudioContext)());
|
|
@@ -6770,31 +6770,31 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6770
6770
|
if (!y) return;
|
|
6771
6771
|
const b = w.frequencyBinCount, p = new Uint8Array(b);
|
|
6772
6772
|
w.getByteFrequencyData(p);
|
|
6773
|
-
const v = g.width,
|
|
6774
|
-
y.clearRect(0, 0, v,
|
|
6775
|
-
let
|
|
6773
|
+
const v = g.width, E = g.height;
|
|
6774
|
+
y.clearRect(0, 0, v, E);
|
|
6775
|
+
let x = 0;
|
|
6776
6776
|
for (let O = 0; O < b; O++) {
|
|
6777
|
-
const
|
|
6778
|
-
|
|
6777
|
+
const G = p[O] ?? 0;
|
|
6778
|
+
x += G * G;
|
|
6779
6779
|
}
|
|
6780
|
-
const k = Math.sqrt(
|
|
6781
|
-
w.getFloatTimeDomainData(
|
|
6782
|
-
let
|
|
6783
|
-
for (let O = 0; O <
|
|
6784
|
-
const
|
|
6785
|
-
|
|
6780
|
+
const k = Math.sqrt(x / b), _ = Math.min(1, k / 128), U = new Float32Array(w.fftSize);
|
|
6781
|
+
w.getFloatTimeDomainData(U);
|
|
6782
|
+
let C = 0;
|
|
6783
|
+
for (let O = 0; O < U.length; O++) {
|
|
6784
|
+
const G = U[O] || 0;
|
|
6785
|
+
C += G * G;
|
|
6786
6786
|
}
|
|
6787
|
-
const
|
|
6787
|
+
const A = Math.sqrt(C / U.length), L = A > 0 ? 20 * Math.log10(A) : -1 / 0;
|
|
6788
6788
|
let j = "problem";
|
|
6789
|
-
if (
|
|
6789
|
+
if (L >= -20 ? j = "good" : L >= -25 ? j = "acceptable" : L >= -45 ? j = "poor" : j = "problem", r) {
|
|
6790
6790
|
const O = Date.now();
|
|
6791
|
-
O - s.current > 200 && (s.current = O, r(j,
|
|
6791
|
+
O - s.current > 200 && (s.current = O, r(j, L));
|
|
6792
6792
|
}
|
|
6793
|
-
y.clearRect(0, 0, v,
|
|
6794
|
-
const
|
|
6795
|
-
for (let O = 0; O <
|
|
6796
|
-
const
|
|
6797
|
-
O <
|
|
6793
|
+
y.clearRect(0, 0, v, E);
|
|
6794
|
+
const $ = i, q = Math.floor(_ * $);
|
|
6795
|
+
for (let O = 0; O < $; O++) {
|
|
6796
|
+
const G = O * (v / $), ee = v / $ - 1.8;
|
|
6797
|
+
O < q ? y.fillStyle = "#0EB00E" : y.fillStyle = "#D9D9D9", y.fillRect(G, 0, ee, E);
|
|
6798
6798
|
}
|
|
6799
6799
|
o.current = requestAnimationFrame(f);
|
|
6800
6800
|
};
|
|
@@ -6802,7 +6802,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6802
6802
|
o.current && cancelAnimationFrame(o.current);
|
|
6803
6803
|
};
|
|
6804
6804
|
}, [e, i]);
|
|
6805
|
-
const u =
|
|
6805
|
+
const u = P({
|
|
6806
6806
|
audioContext: l.current,
|
|
6807
6807
|
source: d.current
|
|
6808
6808
|
});
|
|
@@ -6936,10 +6936,10 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
6936
6936
|
hasPermission: u = !0,
|
|
6937
6937
|
onAudioLevel: h
|
|
6938
6938
|
}) => {
|
|
6939
|
-
const { baseColor: w } = Ri(), [f, g] =
|
|
6939
|
+
const { baseColor: w } = Ri(), [f, g] = N(!1), y = P(null);
|
|
6940
6940
|
B(() => {
|
|
6941
|
-
const v = (
|
|
6942
|
-
y.current && !y.current.contains(
|
|
6941
|
+
const v = (E) => {
|
|
6942
|
+
y.current && !y.current.contains(E.target) && g(!1);
|
|
6943
6943
|
};
|
|
6944
6944
|
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
6945
6945
|
}, []);
|
|
@@ -7040,11 +7040,11 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7040
7040
|
audioStream: y = null,
|
|
7041
7041
|
isDeviceLoading: b = !1
|
|
7042
7042
|
}) => {
|
|
7043
|
-
const { baseColor: p } = Ri(), [v,
|
|
7043
|
+
const { baseColor: p } = Ri(), [v, E] = N("problem"), [x, k] = N(!1);
|
|
7044
7044
|
Ht.useEffect(() => {
|
|
7045
|
-
|
|
7045
|
+
E("problem"), k(!1);
|
|
7046
7046
|
}, [h]);
|
|
7047
|
-
const
|
|
7047
|
+
const _ = l || !n || a && (!e || !t || !x) || b;
|
|
7048
7048
|
return /* @__PURE__ */ m("div", { className: "iw-flex iw-flex-col iw-gap-1 iw-w-full", children: [
|
|
7049
7049
|
/* @__PURE__ */ m("div", { className: "iw-flex iw-justify-center iw-items-center iw-gap-2 iw-flex-wrap iw-max-w-[700px] iw-mx-auto", children: [
|
|
7050
7050
|
a && /* @__PURE__ */ m("div", { className: "iw-flex sm:iw-flex-row iw-flex-col iw-gap-4 iw-w-full", children: [
|
|
@@ -7054,19 +7054,19 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7054
7054
|
icon: bu,
|
|
7055
7055
|
devices: d,
|
|
7056
7056
|
selectedId: h ?? "",
|
|
7057
|
-
onChange: (
|
|
7057
|
+
onChange: (C) => f && f(C),
|
|
7058
7058
|
label: "Choose mic",
|
|
7059
7059
|
showVisualizer: !0,
|
|
7060
7060
|
showMicHint: !0,
|
|
7061
|
-
micTested:
|
|
7061
|
+
micTested: x,
|
|
7062
7062
|
audioStatus: v,
|
|
7063
7063
|
stream: y,
|
|
7064
7064
|
hasPermission: e,
|
|
7065
|
-
onAudioLevel: (
|
|
7066
|
-
const
|
|
7067
|
-
|
|
7068
|
-
(
|
|
7069
|
-
), !
|
|
7065
|
+
onAudioLevel: (C) => {
|
|
7066
|
+
const A = { good: 3, acceptable: 2, poor: 1, problem: 0 };
|
|
7067
|
+
E(
|
|
7068
|
+
(L) => A[C] > A[L] ? C : L
|
|
7069
|
+
), !x && (C === "good" || C === "acceptable") && k(!0);
|
|
7070
7070
|
}
|
|
7071
7071
|
}
|
|
7072
7072
|
),
|
|
@@ -7076,7 +7076,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7076
7076
|
icon: xu,
|
|
7077
7077
|
devices: u,
|
|
7078
7078
|
selectedId: w ?? "",
|
|
7079
|
-
onChange: (
|
|
7079
|
+
onChange: (C) => g && g(C),
|
|
7080
7080
|
label: "Choose camera",
|
|
7081
7081
|
hasPermission: t
|
|
7082
7082
|
}
|
|
@@ -7087,8 +7087,8 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7087
7087
|
"div",
|
|
7088
7088
|
{
|
|
7089
7089
|
className: `iw-mt-0.5 iw-h-5 iw-w-5 iw-min-w-[20px] iw-rounded iw-border iw-flex iw-items-center iw-justify-center iw-cursor-pointer iw-transition-colors ${n ? "iw-bg-[#062260] iw-border-[#062260]" : "iw-bg-white iw-border-[#062260]"}`,
|
|
7090
|
-
onClick: (
|
|
7091
|
-
|
|
7090
|
+
onClick: (C) => {
|
|
7091
|
+
C.stopPropagation(), o(!n);
|
|
7092
7092
|
},
|
|
7093
7093
|
children: n && /* @__PURE__ */ c(Or, { className: "iw-size-3 iw-text-white" })
|
|
7094
7094
|
}
|
|
@@ -7108,8 +7108,8 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7108
7108
|
Wr,
|
|
7109
7109
|
{
|
|
7110
7110
|
onClick: r,
|
|
7111
|
-
disabled:
|
|
7112
|
-
className: `iw-h-12 iw-w-full iw-shadow-lg !iw-bg-[#F1F5FE] !iw-text-[#062260] !iw-font-bold !iw-border-[#E7EAF1] iw-rounded-lg ${
|
|
7111
|
+
disabled: _,
|
|
7112
|
+
className: `iw-h-12 iw-w-full iw-shadow-lg !iw-bg-[#F1F5FE] !iw-text-[#062260] !iw-font-bold !iw-border-[#E7EAF1] iw-rounded-lg ${_ ? "iw-opacity-50" : "hover:iw-opacity-75"}`,
|
|
7113
7113
|
children: b ? "Device Loading..." : i
|
|
7114
7114
|
}
|
|
7115
7115
|
),
|
|
@@ -7181,20 +7181,20 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7181
7181
|
handleAudioChange: y,
|
|
7182
7182
|
handleVideoChange: b,
|
|
7183
7183
|
stopStream: p
|
|
7184
|
-
} = wu(e), [v,
|
|
7185
|
-
|
|
7184
|
+
} = wu(e), [v, E] = N(!1), [x, k] = N(0), [_, U] = N(!1), C = P(null), A = P(null), L = (G) => {
|
|
7185
|
+
C.current = G, r && (typeof r == "function" ? r(G) : r.current = G);
|
|
7186
7186
|
};
|
|
7187
7187
|
if (B(() => () => {
|
|
7188
|
-
|
|
7188
|
+
A.current && (clearInterval(A.current), A.current = null);
|
|
7189
7189
|
}, []), !e) return null;
|
|
7190
|
-
const [j,
|
|
7190
|
+
const [j, $] = N(Se.MODEL_LOADING), q = async () => {
|
|
7191
7191
|
var ee;
|
|
7192
|
-
|
|
7193
|
-
const
|
|
7192
|
+
E(!0), (ee = C.current) == null || ee.resetReference();
|
|
7193
|
+
const G = () => {
|
|
7194
7194
|
var be;
|
|
7195
|
-
return (be =
|
|
7195
|
+
return (be = C.current) == null ? void 0 : be.setReference();
|
|
7196
7196
|
};
|
|
7197
|
-
|
|
7197
|
+
G(), A.current && clearInterval(A.current), A.current = setInterval(G, 500);
|
|
7198
7198
|
};
|
|
7199
7199
|
return /* @__PURE__ */ c("div", { className: "iw-fixed iw-inset-0 iw-z-50 iw-flex iw-items-center iw-justify-center iw-bg-gray-900/40 iw-backdrop-blur-sm iw-p-4 iw-pt-16 iw-overflow-auto", children: /* @__PURE__ */ m("div", { className: "iw-w-full iw-max-w-[700px] iw-max-h-[900px] iw-my-6 iw-bg-white iw-rounded-xl iw-shadow-2xl iw-overflow-auto", children: [
|
|
7200
7200
|
/* @__PURE__ */ m("div", { className: "iw-px-12 iw-pt-3", children: [
|
|
@@ -7204,22 +7204,22 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7204
7204
|
/* @__PURE__ */ c(Wh, { steps: [
|
|
7205
7205
|
{ label: i ? "Calibrate your camera" : "Camera & Mic permission" },
|
|
7206
7206
|
{ label: "Basic guidelines" }
|
|
7207
|
-
], currentStepIndex:
|
|
7207
|
+
], currentStepIndex: x })
|
|
7208
7208
|
] }),
|
|
7209
|
-
/* @__PURE__ */ c("div", { className: "iw-px-12 iw-pb-3 iw-flex iw-flex-col iw-items-center", children:
|
|
7209
|
+
/* @__PURE__ */ c("div", { className: "iw-px-12 iw-pb-3 iw-flex iw-flex-col iw-items-center", children: x === 0 ? /* @__PURE__ */ m("div", { className: "iw-w-full iw-flex iw-flex-col iw-items-center iw-gap-4", children: [
|
|
7210
7210
|
/* @__PURE__ */ c("div", { className: "iw-w-full iw-max-w-[600px] iw-aspect-video iw-bg-slate-100 iw-rounded-2xl iw-overflow-hidden iw-relative iw-border iw-border-slate-200", children: i ? /* @__PURE__ */ c(
|
|
7211
7211
|
Rl,
|
|
7212
7212
|
{
|
|
7213
|
-
ref:
|
|
7213
|
+
ref: L,
|
|
7214
7214
|
interviewId: n,
|
|
7215
7215
|
interview_duration: o,
|
|
7216
7216
|
showProctoringUI: !1,
|
|
7217
7217
|
showStatusOverlay: !f && a,
|
|
7218
7218
|
isDeviceLoading: f,
|
|
7219
7219
|
videoAllowed: a,
|
|
7220
|
-
onProctoringStatusChange:
|
|
7220
|
+
onProctoringStatusChange: $,
|
|
7221
7221
|
onSetReference: () => {
|
|
7222
|
-
|
|
7222
|
+
A.current && (clearInterval(A.current), A.current = null), E(!1), k(1);
|
|
7223
7223
|
}
|
|
7224
7224
|
}
|
|
7225
7225
|
) : /* @__PURE__ */ c(
|
|
@@ -7240,11 +7240,11 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7240
7240
|
videoEnabled: a,
|
|
7241
7241
|
buttonText: i ? v ? "Calibrating..." : j === "model_loading" ? "Initialising..." : "Start calibrate" : "Next",
|
|
7242
7242
|
onButtonClick: () => {
|
|
7243
|
-
i ?
|
|
7243
|
+
i ? q() : k(1);
|
|
7244
7244
|
},
|
|
7245
|
-
disabled: !
|
|
7246
|
-
isAgreed:
|
|
7247
|
-
onAgreedToggle:
|
|
7245
|
+
disabled: !_ || i && j !== "face_detected" || !i && (!s || !a),
|
|
7246
|
+
isAgreed: _,
|
|
7247
|
+
onAgreedToggle: U,
|
|
7248
7248
|
audioDevices: d,
|
|
7249
7249
|
videoDevices: u,
|
|
7250
7250
|
selectedAudioId: h,
|
|
@@ -7256,9 +7256,9 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7256
7256
|
}
|
|
7257
7257
|
)
|
|
7258
7258
|
] }) : /* @__PURE__ */ m("div", { className: "iw-w-full iw-flex iw-flex-col iw-gap-6", children: [
|
|
7259
|
-
/* @__PURE__ */ c("div", { className: "iw-w-full iw-bg-[#F8FAFF] iw-rounded-2xl iw-p-8 iw-flex iw-flex-col iw-gap-5", children: Hh.map((
|
|
7259
|
+
/* @__PURE__ */ c("div", { className: "iw-w-full iw-bg-[#F8FAFF] iw-rounded-2xl iw-p-8 iw-flex iw-flex-col iw-gap-5", children: Hh.map((G, ee) => /* @__PURE__ */ m("div", { className: "iw-flex iw-items-center iw-gap-4", children: [
|
|
7260
7260
|
/* @__PURE__ */ c("div", { className: "iw-flex iw-h-7 iw-w-7 iw-min-w-[28px] iw-items-center iw-justify-center iw-rounded-full iw-bg-[#DBEAFE] iw-text-[#062260] iw-text-xs iw-font-bold", children: ee + 1 }),
|
|
7261
|
-
/* @__PURE__ */ c("span", { className: "iw-text-[#5C6686] iw-font-medium", children:
|
|
7261
|
+
/* @__PURE__ */ c("span", { className: "iw-text-[#5C6686] iw-font-medium", children: G })
|
|
7262
7262
|
] }, ee)) }),
|
|
7263
7263
|
/* @__PURE__ */ c(
|
|
7264
7264
|
pa,
|
|
@@ -7267,14 +7267,14 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7267
7267
|
onButtonClick: () => {
|
|
7268
7268
|
t(), p();
|
|
7269
7269
|
},
|
|
7270
|
-
isAgreed:
|
|
7271
|
-
onAgreedToggle:
|
|
7270
|
+
isAgreed: _,
|
|
7271
|
+
onAgreedToggle: U,
|
|
7272
7272
|
showMediaIcons: !1
|
|
7273
7273
|
}
|
|
7274
7274
|
)
|
|
7275
7275
|
] }) })
|
|
7276
7276
|
] }) });
|
|
7277
|
-
}, fi =
|
|
7277
|
+
}, fi = D(() => {
|
|
7278
7278
|
var e, t;
|
|
7279
7279
|
io.stop(), Il.dispose(), (t = (e = Ii.activeStream) == null ? void 0 : e.getTracks()) == null || t.forEach((i) => i.stop());
|
|
7280
7280
|
}, []), Hr = (e) => {
|
|
@@ -7304,7 +7304,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7304
7304
|
/* @__PURE__ */ c(
|
|
7305
7305
|
"div",
|
|
7306
7306
|
{
|
|
7307
|
-
className: `iw-flex iw-flex-col iw-items-center iw-justify-center iw-relative iw-h-16 iw-w-16 iw-shrink-0 iw-shadow iw-rounded-full iw-border-[#E8EEFE] iw-border-4 ${i ===
|
|
7307
|
+
className: `iw-flex iw-flex-col iw-items-center iw-justify-center iw-relative iw-h-16 iw-w-16 iw-shrink-0 iw-shadow iw-rounded-full iw-border-[#E8EEFE] iw-border-4 ${i === z.READING_QUESTION ? "iw-animate-speaking" : ""}`,
|
|
7308
7308
|
children: /* @__PURE__ */ c(
|
|
7309
7309
|
"div",
|
|
7310
7310
|
{
|
|
@@ -7330,7 +7330,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7330
7330
|
}
|
|
7331
7331
|
), Yh = ({ phase: e, question: t, isLoading: i, brandName: r }) => {
|
|
7332
7332
|
const n = r || "We", o = r ? "is" : "are";
|
|
7333
|
-
if (i || e ===
|
|
7333
|
+
if (i || e === z.FETCHING_QUESTION || e === z.IDLE)
|
|
7334
7334
|
return /* @__PURE__ */ m("div", { className: "iw-animate-pulse iw-w-full iw-space-y-3 iw-mr-10", children: [
|
|
7335
7335
|
/* @__PURE__ */ c("div", { className: "iw-h-5 iw-bg-gray-200 iw-rounded iw-w-full" }),
|
|
7336
7336
|
/* @__PURE__ */ c("div", { className: "iw-h-5 iw-bg-gray-200 iw-rounded iw-w-3/4" })
|
|
@@ -7341,12 +7341,12 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7341
7341
|
/* @__PURE__ */ c("span", { children: "." })
|
|
7342
7342
|
] });
|
|
7343
7343
|
switch (e) {
|
|
7344
|
-
case
|
|
7344
|
+
case z.ANSWERING:
|
|
7345
7345
|
return /* @__PURE__ */ c("div", { className: "iw-flex iw-items-center iw-justify-between iw-w-full", children: /* @__PURE__ */ m("p", { className: "iw-text-lg iw-leading-7 iw-font-medium iw-text-gray-600", children: [
|
|
7346
7346
|
"Listening",
|
|
7347
7347
|
/* @__PURE__ */ c(s, {})
|
|
7348
7348
|
] }) });
|
|
7349
|
-
case
|
|
7349
|
+
case z.TRANSCRIBING:
|
|
7350
7350
|
return /* @__PURE__ */ m("p", { className: "iw-text-lg iw-leading-7 iw-font-medium iw-text-gray-600", children: [
|
|
7351
7351
|
n,
|
|
7352
7352
|
" ",
|
|
@@ -7354,7 +7354,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7354
7354
|
" analyzing your answer",
|
|
7355
7355
|
/* @__PURE__ */ c(s, {})
|
|
7356
7356
|
] });
|
|
7357
|
-
case (
|
|
7357
|
+
case (z.EDITING || z.SUBMITTING):
|
|
7358
7358
|
return /* @__PURE__ */ m("p", { className: "iw-text-lg iw-leading-7 iw-font-medium iw-text-gray-600", children: [
|
|
7359
7359
|
n,
|
|
7360
7360
|
" ",
|
|
@@ -7489,7 +7489,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7489
7489
|
onChange: t,
|
|
7490
7490
|
placeholder: "Type your answer here...",
|
|
7491
7491
|
className: "iw-w-full iw-h-64 iw-resize-none iw-bg-transparent iw-border-none iw-text-[#062260] iw-text-base iw-leading-relaxed focus-visible:iw-outline-0 iw-p-0",
|
|
7492
|
-
disabled: i.phase ===
|
|
7492
|
+
disabled: i.phase === z.SUBMITTING
|
|
7493
7493
|
}
|
|
7494
7494
|
) }),
|
|
7495
7495
|
/* @__PURE__ */ m("div", { className: "iw-bg-[#F1F5FE] iw-px-2 iw-py-2 iw-flex iw-items-center iw-justify-between iw-border-t iw-border-[#E8EEFE]", children: [
|
|
@@ -7574,28 +7574,28 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7574
7574
|
n = new u(), o = n.createAnalyser(), o.fftSize = 256, o.smoothingTimeConstant = 0.9, s = n.createMediaStreamSource(d), s.connect(o);
|
|
7575
7575
|
const h = o.frequencyBinCount, w = new Uint8Array(h), f = new Float32Array(h), g = 0.2, y = () => {
|
|
7576
7576
|
if (t.current) {
|
|
7577
|
-
const
|
|
7578
|
-
i.width !==
|
|
7577
|
+
const A = t.current.clientWidth - 32;
|
|
7578
|
+
i.width !== A && A > 0 && (i.width = A);
|
|
7579
7579
|
}
|
|
7580
7580
|
const b = i.width, p = i.height;
|
|
7581
7581
|
r.clearRect(0, 0, b, p), o.getByteFrequencyData(w);
|
|
7582
|
-
for (let
|
|
7583
|
-
const
|
|
7584
|
-
f[
|
|
7582
|
+
for (let A = 0; A < h; A++) {
|
|
7583
|
+
const L = f[A] || 0, j = w[A] || 0;
|
|
7584
|
+
f[A] = L * g + j * (1 - g);
|
|
7585
7585
|
}
|
|
7586
|
-
const v = 3,
|
|
7586
|
+
const v = 3, E = 2, x = Math.floor(b / (v + E)), k = x > 0 ? x % 2 === 0 ? x - 1 : x : 0;
|
|
7587
7587
|
if (k <= 0) {
|
|
7588
7588
|
a = requestAnimationFrame(y);
|
|
7589
7589
|
return;
|
|
7590
7590
|
}
|
|
7591
|
-
const
|
|
7591
|
+
const _ = (b - k * (v + E)) / 2, U = Math.floor(k / 2);
|
|
7592
7592
|
r.fillStyle = "#27ba71";
|
|
7593
|
-
const
|
|
7594
|
-
for (let
|
|
7595
|
-
const
|
|
7596
|
-
let
|
|
7597
|
-
|
|
7598
|
-
const O = 1 - j * 0.8,
|
|
7593
|
+
const C = 38;
|
|
7594
|
+
for (let A = 0; A < k; A++) {
|
|
7595
|
+
const L = Math.abs(A - U), j = U > 0 ? L / U : 0, $ = 2 + Math.floor(Math.pow(j, 1.5) * C);
|
|
7596
|
+
let q = f[Math.min($, h - 1)] || 0;
|
|
7597
|
+
q = q / 255, q = Math.pow(q, 2.2);
|
|
7598
|
+
const O = 1 - j * 0.8, G = 1.5, ee = q > 0.05 ? Math.sin(Date.now() / 300 + A) * 0.5 * O : 0, be = q * (p - 8) * O, Me = Math.max(G, be + ee), pt = _ + A * (v + E), De = (p - Me) / 2;
|
|
7599
7599
|
r.beginPath(), r.roundRect(pt, De, v, Me, v / 2), r.fill();
|
|
7600
7600
|
}
|
|
7601
7601
|
a = requestAnimationFrame(y);
|
|
@@ -7634,12 +7634,12 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7634
7634
|
}, r2 = ({ phase: e, questionNumber: t, timerState: i }) => {
|
|
7635
7635
|
const { timers: r } = pr();
|
|
7636
7636
|
switch (e) {
|
|
7637
|
-
case
|
|
7637
|
+
case z.FETCHING_QUESTION:
|
|
7638
7638
|
return /* @__PURE__ */ m(ba, { children: [
|
|
7639
7639
|
/* @__PURE__ */ c(Zh, { questionNumber: t + 1 }),
|
|
7640
7640
|
/* @__PURE__ */ c(e2, {})
|
|
7641
7641
|
] });
|
|
7642
|
-
case
|
|
7642
|
+
case z.ANSWERING:
|
|
7643
7643
|
return /* @__PURE__ */ m("div", { className: "iw-flex iw-flex-col iw-items-end iw-w-full", children: [
|
|
7644
7644
|
/* @__PURE__ */ c(i2, {}),
|
|
7645
7645
|
/* @__PURE__ */ c("div", { className: "iw-mt-2 iw-w-full", children: /* @__PURE__ */ c(
|
|
@@ -7650,7 +7650,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7650
7650
|
}
|
|
7651
7651
|
) })
|
|
7652
7652
|
] });
|
|
7653
|
-
case
|
|
7653
|
+
case z.TRANSCRIBING:
|
|
7654
7654
|
return /* @__PURE__ */ c(ba, { children: /* @__PURE__ */ m("div", { className: "iw-flex iw-items-center iw-px-1 iw-py-1.5 iw-rounded-lg iw-mb-2 iw-text-sm iw-bg-[#F2E8FE]", children: [
|
|
7655
7655
|
/* @__PURE__ */ c("div", { className: "iw-h-8 iw-w-12 iw-transcribing-icon" }),
|
|
7656
7656
|
/* @__PURE__ */ c("span", { className: "iw-text-sm iw-text-[#062260]", children: "Analyzing answer…" })
|
|
@@ -7806,7 +7806,7 @@ const io = new Bh(), Uh = (e = {}) => {
|
|
|
7806
7806
|
timerState: a,
|
|
7807
7807
|
editingTime: l
|
|
7808
7808
|
}) => {
|
|
7809
|
-
const d = ss(), [u, h] =
|
|
7809
|
+
const d = ss(), [u, h] = N([]), [w, f] = N(!0), g = Ht.useRef(null);
|
|
7810
7810
|
return B(() => {
|
|
7811
7811
|
var y;
|
|
7812
7812
|
(y = g.current) == null || y.scrollIntoView({ behavior: "smooth" });
|
|
@@ -7868,7 +7868,7 @@ function c2({
|
|
|
7868
7868
|
violationType: r,
|
|
7869
7869
|
onDisqualify: n
|
|
7870
7870
|
}) {
|
|
7871
|
-
const [, o] =
|
|
7871
|
+
const [, o] = N(Dn), s = P(t), a = P(n), l = P(i);
|
|
7872
7872
|
if (B(() => {
|
|
7873
7873
|
s.current = t, a.current = n, l.current = i;
|
|
7874
7874
|
}, [t, n, i]), B(() => {
|
|
@@ -8148,21 +8148,21 @@ const l2 = (e) => /* @__PURE__ */ m(
|
|
|
8148
8148
|
};
|
|
8149
8149
|
}, h2 = va(
|
|
8150
8150
|
({ children: e, onDisqualify: t, onExit: i, isCompleted: r }, n) => {
|
|
8151
|
-
const [o, s] =
|
|
8151
|
+
const [o, s] = N(!1), [a, l] = N(!1), [d, u] = N(!1), [h, w] = N(!1), [f, g] = N("fullscreen_exit"), { logViolation: y, violationCount: b } = Gh({
|
|
8152
8152
|
maxViolations: 5,
|
|
8153
|
-
onViolation: (
|
|
8154
|
-
!d && !r && !h && (s(!0), g(
|
|
8153
|
+
onViolation: (L) => {
|
|
8154
|
+
!d && !r && !h && (s(!0), g(L.type));
|
|
8155
8155
|
}
|
|
8156
|
-
}), { enterFullScreen: p, isFullScreen: v, exitFullScreen:
|
|
8157
|
-
onFullScreenChange(
|
|
8158
|
-
!
|
|
8156
|
+
}), { enterFullScreen: p, isFullScreen: v, exitFullScreen: E } = Ih({
|
|
8157
|
+
onFullScreenChange(L) {
|
|
8158
|
+
!L && !d && !h && !r && (s(!0), y({
|
|
8159
8159
|
type: "fullscreen_exit",
|
|
8160
8160
|
severity: "high",
|
|
8161
8161
|
details: {
|
|
8162
8162
|
action: "fullscreen_exit",
|
|
8163
8163
|
reason: "Attempted to exit full screen mode"
|
|
8164
8164
|
}
|
|
8165
|
-
})),
|
|
8165
|
+
})), L && w(!1);
|
|
8166
8166
|
}
|
|
8167
8167
|
});
|
|
8168
8168
|
B(() => {
|
|
@@ -8174,45 +8174,37 @@ const l2 = (e) => /* @__PURE__ */ m(
|
|
|
8174
8174
|
w(!0), s(!1), u(!1);
|
|
8175
8175
|
try {
|
|
8176
8176
|
document.fullscreenElement && await document.exitFullscreen();
|
|
8177
|
-
} catch (
|
|
8178
|
-
console.error("Failed to exit fullscreen:",
|
|
8177
|
+
} catch (L) {
|
|
8178
|
+
console.error("Failed to exit fullscreen:", L);
|
|
8179
8179
|
}
|
|
8180
8180
|
}
|
|
8181
8181
|
}),
|
|
8182
8182
|
[]
|
|
8183
|
-
), Mh(y), Rh(y), Dh(),
|
|
8184
|
-
const { proctoring:
|
|
8183
|
+
), Mh(y), Rh(y), Dh(), Vh();
|
|
8184
|
+
const { proctoring: x } = pr(), k = (x == null ? void 0 : x.prevent_unintended_exit) ?? !1, _ = !d && !h && !r;
|
|
8185
8185
|
B(() => {
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
}
|
|
8194
|
-
window.history.pushState(null, "", window.location.href);
|
|
8186
|
+
if (!_) return;
|
|
8187
|
+
const L = () => {
|
|
8188
|
+
if (k)
|
|
8189
|
+
l(!0);
|
|
8190
|
+
else if (window.confirm("Leave site? Changes you made may not be saved.")) {
|
|
8191
|
+
fi();
|
|
8192
|
+
return;
|
|
8195
8193
|
}
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
return console.log("User attempted to reload or close the tab"), k && l(!0), j.preventDefault(), j.returnValue = "", "";
|
|
8199
|
-
}, P = () => {
|
|
8194
|
+
window.history.pushState(null, "", window.location.href);
|
|
8195
|
+
}, j = (q) => (k && l(!0), q.preventDefault(), q.returnValue = "", ""), $ = () => {
|
|
8200
8196
|
h || fi();
|
|
8201
8197
|
};
|
|
8202
|
-
return window.history.pushState(null, "", window.location.href), window.addEventListener("popstate",
|
|
8203
|
-
window.removeEventListener("popstate",
|
|
8198
|
+
return window.history.pushState(null, "", window.location.href), window.addEventListener("popstate", L), window.addEventListener("beforeunload", j), window.addEventListener("unload", $), () => {
|
|
8199
|
+
window.removeEventListener("popstate", L), window.removeEventListener("beforeunload", j), window.removeEventListener("unload", $);
|
|
8204
8200
|
};
|
|
8205
|
-
}, [
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
const A = () => {
|
|
8213
|
-
fi(), u(!0), _(), s(!1), l(!1), t == null || t();
|
|
8214
|
-
}, G = () => {
|
|
8215
|
-
fi(), l(!1), i == null || i();
|
|
8201
|
+
}, [_, k, fi]);
|
|
8202
|
+
const U = D(() => {
|
|
8203
|
+
fi(), l(!1), s(!1);
|
|
8204
|
+
}, [fi]), C = () => {
|
|
8205
|
+
U(), u(!0), E(), t == null || t();
|
|
8206
|
+
}, A = () => {
|
|
8207
|
+
U(), i == null || i();
|
|
8216
8208
|
};
|
|
8217
8209
|
return /* @__PURE__ */ m(
|
|
8218
8210
|
Pl.Provider,
|
|
@@ -8225,7 +8217,7 @@ const l2 = (e) => /* @__PURE__ */ m(
|
|
|
8225
8217
|
handleClose: () => {
|
|
8226
8218
|
s(!1), p();
|
|
8227
8219
|
},
|
|
8228
|
-
handleDisqualify:
|
|
8220
|
+
handleDisqualify: C,
|
|
8229
8221
|
handleUnintendedExit: () => {
|
|
8230
8222
|
l(!0);
|
|
8231
8223
|
}
|
|
@@ -8240,7 +8232,7 @@ const l2 = (e) => /* @__PURE__ */ m(
|
|
|
8240
8232
|
l(!1);
|
|
8241
8233
|
},
|
|
8242
8234
|
confirmExitInterview: () => {
|
|
8243
|
-
|
|
8235
|
+
A();
|
|
8244
8236
|
}
|
|
8245
8237
|
}
|
|
8246
8238
|
),
|
|
@@ -8310,7 +8302,7 @@ const l2 = (e) => /* @__PURE__ */ m(
|
|
|
8310
8302
|
violationCount: b,
|
|
8311
8303
|
violationType: p,
|
|
8312
8304
|
handleClose: v,
|
|
8313
|
-
handleDisqualify:
|
|
8305
|
+
handleDisqualify: E
|
|
8314
8306
|
} = d2();
|
|
8315
8307
|
return /* @__PURE__ */ m(
|
|
8316
8308
|
"div",
|
|
@@ -8322,7 +8314,7 @@ const l2 = (e) => /* @__PURE__ */ m(
|
|
|
8322
8314
|
Kh,
|
|
8323
8315
|
{
|
|
8324
8316
|
question: i,
|
|
8325
|
-
isLoading: n ===
|
|
8317
|
+
isLoading: n === z.FETCHING_QUESTION || n === z.IDLE,
|
|
8326
8318
|
phase: n,
|
|
8327
8319
|
brandName: e,
|
|
8328
8320
|
brandLogo: t
|
|
@@ -8335,7 +8327,7 @@ const l2 = (e) => /* @__PURE__ */ m(
|
|
|
8335
8327
|
ref: l,
|
|
8336
8328
|
interviewId: s,
|
|
8337
8329
|
interview_duration: a,
|
|
8338
|
-
isAnswering: n ===
|
|
8330
|
+
isAnswering: n === z.ANSWERING,
|
|
8339
8331
|
cheatingWarningVisible: y
|
|
8340
8332
|
}
|
|
8341
8333
|
),
|
|
@@ -8346,7 +8338,7 @@ const l2 = (e) => /* @__PURE__ */ m(
|
|
|
8346
8338
|
warningCount: b,
|
|
8347
8339
|
violationType: p,
|
|
8348
8340
|
onClose: v,
|
|
8349
|
-
onDisqualify:
|
|
8341
|
+
onDisqualify: E
|
|
8350
8342
|
}
|
|
8351
8343
|
)
|
|
8352
8344
|
] })
|
|
@@ -8357,20 +8349,20 @@ const l2 = (e) => /* @__PURE__ */ m(
|
|
|
8357
8349
|
interviewId: s,
|
|
8358
8350
|
currentQuestion: i,
|
|
8359
8351
|
lastSubmittedAnswer: d,
|
|
8360
|
-
isEditing: n ===
|
|
8352
|
+
isEditing: n === z.EDITING,
|
|
8361
8353
|
answerText: h,
|
|
8362
8354
|
onAnswerChange: w,
|
|
8363
8355
|
timerState: r,
|
|
8364
8356
|
editingTime: f
|
|
8365
8357
|
}
|
|
8366
8358
|
) }),
|
|
8367
|
-
u && (n ===
|
|
8359
|
+
u && (n === z.ANSWERING || n === z.EDITING) && /* @__PURE__ */ c(
|
|
8368
8360
|
w2,
|
|
8369
8361
|
{
|
|
8370
8362
|
onClick: u,
|
|
8371
8363
|
disabled: g,
|
|
8372
8364
|
isFirstQuestion: (r == null ? void 0 : r.currentQuestionNumber) === 1,
|
|
8373
|
-
text: n ===
|
|
8365
|
+
text: n === z.ANSWERING ? "Submit Response" : "Submit Final Response"
|
|
8374
8366
|
}
|
|
8375
8367
|
)
|
|
8376
8368
|
]
|
|
@@ -8384,7 +8376,7 @@ const l2 = (e) => /* @__PURE__ */ m(
|
|
|
8384
8376
|
totalDuration: n = 30,
|
|
8385
8377
|
elapsedTime: o = 0
|
|
8386
8378
|
}) => {
|
|
8387
|
-
const [s, a] =
|
|
8379
|
+
const [s, a] = N(!1), l = Math.min(o / (n * 60) * 100, 100);
|
|
8388
8380
|
return /* @__PURE__ */ m("header", { className: "iw-w-full iw-text-gray-900 iw-shadow-sm", children: [
|
|
8389
8381
|
/* @__PURE__ */ m("div", { className: "iw-mx-auto iw-flex iw-items-center iw-justify-between iw-p-4 iw-pt-1 iw-mb-2 iw-border-b iw-border-[#B3B9CB] iw-border-dashed", children: [
|
|
8390
8382
|
/* @__PURE__ */ m("div", { className: "iw-flex iw-items-center iw-space-x-2", children: [
|
|
@@ -8444,78 +8436,78 @@ const l2 = (e) => /* @__PURE__ */ m(
|
|
|
8444
8436
|
mediaStream: a,
|
|
8445
8437
|
startOnMount: l = !0
|
|
8446
8438
|
}) => {
|
|
8447
|
-
const { baseColor: d } = Ri(), u =
|
|
8439
|
+
const { baseColor: d } = Ri(), u = P(null), h = P(null), w = P(null), f = P(null), g = P(null), y = P(null), b = P(!1), [p, v] = N(null);
|
|
8448
8440
|
B(() => {
|
|
8449
8441
|
if (t || !h.current) return;
|
|
8450
|
-
const
|
|
8451
|
-
const
|
|
8452
|
-
if (!
|
|
8453
|
-
const
|
|
8454
|
-
|
|
8455
|
-
},
|
|
8456
|
-
return
|
|
8442
|
+
const x = h.current, k = () => {
|
|
8443
|
+
const U = u.current;
|
|
8444
|
+
if (!U) return;
|
|
8445
|
+
const C = x.clientWidth, A = i;
|
|
8446
|
+
U.width = Math.max(1, Math.floor(C * window.devicePixelRatio || 1)), U.height = Math.max(1, Math.floor(A * window.devicePixelRatio || 1));
|
|
8447
|
+
}, _ = new ResizeObserver(k);
|
|
8448
|
+
return _.observe(x), k(), () => _.disconnect();
|
|
8457
8449
|
}, [t, i]), B(() => {
|
|
8458
8450
|
if (!t) return;
|
|
8459
|
-
const
|
|
8460
|
-
|
|
8451
|
+
const x = u.current;
|
|
8452
|
+
x && (x.width = Math.max(
|
|
8461
8453
|
1,
|
|
8462
8454
|
Math.floor(t * (window.devicePixelRatio || 1))
|
|
8463
|
-
),
|
|
8455
|
+
), x.height = Math.max(
|
|
8464
8456
|
1,
|
|
8465
8457
|
Math.floor(i * (window.devicePixelRatio || 1))
|
|
8466
8458
|
));
|
|
8467
8459
|
}, [t, i]), B(() => {
|
|
8468
|
-
let
|
|
8460
|
+
let x = !1;
|
|
8469
8461
|
return (async () => {
|
|
8470
8462
|
try {
|
|
8471
|
-
const
|
|
8472
|
-
w.current =
|
|
8473
|
-
let
|
|
8474
|
-
if (!
|
|
8463
|
+
const _ = new (window.AudioContext || window.webkitAudioContext)();
|
|
8464
|
+
w.current = _;
|
|
8465
|
+
let U = a;
|
|
8466
|
+
if (!U) {
|
|
8475
8467
|
if (!l) return;
|
|
8476
|
-
|
|
8468
|
+
U = await navigator.mediaDevices.getUserMedia({
|
|
8477
8469
|
audio: !0,
|
|
8478
8470
|
video: !1
|
|
8479
8471
|
}), b.current = !0;
|
|
8480
8472
|
}
|
|
8481
|
-
if (
|
|
8482
|
-
const
|
|
8483
|
-
|
|
8484
|
-
const
|
|
8485
|
-
g.current =
|
|
8486
|
-
} catch (
|
|
8487
|
-
v((
|
|
8473
|
+
if (x) return;
|
|
8474
|
+
const C = _.createAnalyser();
|
|
8475
|
+
C.fftSize = o, C.smoothingTimeConstant = s, f.current = C;
|
|
8476
|
+
const A = _.createMediaStreamSource(U);
|
|
8477
|
+
g.current = A, A.connect(C), E();
|
|
8478
|
+
} catch (_) {
|
|
8479
|
+
v((_ == null ? void 0 : _.message) || "Failed to initialize microphone");
|
|
8488
8480
|
}
|
|
8489
8481
|
})(), () => {
|
|
8490
|
-
var
|
|
8491
|
-
|
|
8482
|
+
var _, U, C, A;
|
|
8483
|
+
x = !0, y.current && cancelAnimationFrame(y.current);
|
|
8492
8484
|
try {
|
|
8493
|
-
(
|
|
8485
|
+
(_ = g.current) == null || _.disconnect();
|
|
8494
8486
|
} catch {
|
|
8495
8487
|
}
|
|
8496
8488
|
try {
|
|
8497
|
-
(
|
|
8489
|
+
(U = f.current) == null || U.disconnect();
|
|
8498
8490
|
} catch {
|
|
8499
8491
|
}
|
|
8500
|
-
b.current && ((
|
|
8492
|
+
b.current && ((A = ((C = g.current) == null ? void 0 : C.mediaStream) || void 0) == null || A.getTracks().forEach((L) => L.stop())), w.current && w.current.state !== "closed" && w.current.close();
|
|
8501
8493
|
};
|
|
8502
8494
|
}, [a, o, s, l]);
|
|
8503
|
-
const
|
|
8504
|
-
const
|
|
8505
|
-
if (!
|
|
8506
|
-
const
|
|
8507
|
-
if (!
|
|
8508
|
-
const
|
|
8509
|
-
y.current = requestAnimationFrame(
|
|
8510
|
-
const
|
|
8495
|
+
const E = () => {
|
|
8496
|
+
const x = u.current, k = f.current;
|
|
8497
|
+
if (!x || !k) return;
|
|
8498
|
+
const _ = x.getContext("2d");
|
|
8499
|
+
if (!_) return;
|
|
8500
|
+
const U = window.devicePixelRatio || 1, C = x.width, A = x.height, L = k.frequencyBinCount, j = new Uint8Array(L), $ = () => {
|
|
8501
|
+
y.current = requestAnimationFrame($), k.getByteTimeDomainData(j), _.clearRect(0, 0, C, A), _.fillStyle = "rgba(0,0,0,0)", _.fillRect(0, 0, C, A);
|
|
8502
|
+
const q = Math.max(1, Math.floor(r * U)), O = Math.max(1, Math.floor(n * U)), G = q + O, ee = Math.max(8, Math.floor((C + O) / G)), be = Math.floor(j.length / ee);
|
|
8511
8503
|
for (let Me = 0; Me < ee; Me++) {
|
|
8512
|
-
const pt = Math.min(j.length - 1, Me * be), De = j[pt] / 128 - 1, Pe = Math.abs(De), at = Math.pow(Pe, 0.6), At = Math.max(
|
|
8513
|
-
|
|
8514
|
-
const Ut = Math.min(
|
|
8515
|
-
p2(
|
|
8504
|
+
const pt = Math.min(j.length - 1, Me * be), De = j[pt] / 128 - 1, Pe = Math.abs(De), at = Math.pow(Pe, 0.6), At = Math.max(A * 0.06, at * (A * 0.9)), ni = Me * G, oi = (A - At) / 2, si = 140 - Math.min(140, 140 * Pe), ai = 85, ci = 48 + Math.floor(12 * (1 - Pe));
|
|
8505
|
+
_.fillStyle = `${d}`, _.shadowColor = `hsla(${si}, ${ai}%, ${ci}%, ${0.25 * Pe})`, _.shadowBlur = 8 * Pe;
|
|
8506
|
+
const Ut = Math.min(q / 2, At / 2);
|
|
8507
|
+
p2(_, ni, oi, q, At, Ut), _.fill();
|
|
8516
8508
|
}
|
|
8517
8509
|
};
|
|
8518
|
-
|
|
8510
|
+
$();
|
|
8519
8511
|
};
|
|
8520
8512
|
return /* @__PURE__ */ m(
|
|
8521
8513
|
"div",
|
|
@@ -8581,7 +8573,7 @@ const y2 = ({
|
|
|
8581
8573
|
) })
|
|
8582
8574
|
] });
|
|
8583
8575
|
function b2() {
|
|
8584
|
-
const [e, t] =
|
|
8576
|
+
const [e, t] = N(!0), i = ur(
|
|
8585
8577
|
() => [0, 1, 2].map((r) => ({ id: r })),
|
|
8586
8578
|
[]
|
|
8587
8579
|
);
|
|
@@ -8858,9 +8850,9 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8858
8850
|
videoFeedRef: a
|
|
8859
8851
|
}) => {
|
|
8860
8852
|
var Ji, Nr;
|
|
8861
|
-
const l = ss(), { baseUrl: d, authToken: u } = Ta(), { timers: h, stt: w, proctoring: f } = pr(), g =
|
|
8853
|
+
const l = ss(), { baseUrl: d, authToken: u } = Ta(), { timers: h, stt: w, proctoring: f } = pr(), g = P(null), [y, b] = N(null), [p, v] = N(""), [E, x] = N(null), [k, _] = N(
|
|
8862
8854
|
qr
|
|
8863
|
-
), [
|
|
8855
|
+
), [U, C] = N(!0), A = P(""), L = P(null), j = {
|
|
8864
8856
|
thinkingTime: (h == null ? void 0 : h.thinkingDuration) || 0,
|
|
8865
8857
|
// TODO: Use this to use the estimated answer duration from response
|
|
8866
8858
|
// answeringTime:
|
|
@@ -8868,12 +8860,12 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8868
8860
|
// timers?.answeringDuration ||
|
|
8869
8861
|
// 120,
|
|
8870
8862
|
answeringTime: (h == null ? void 0 : h.answeringDuration) || 120,
|
|
8871
|
-
editingTime:
|
|
8872
|
-
}, { thinkingTime:
|
|
8863
|
+
editingTime: U ? (h == null ? void 0 : h.editingDuration) || 30 : 0
|
|
8864
|
+
}, { thinkingTime: $, answeringTime: q, editingTime: O } = j;
|
|
8873
8865
|
B(() => {
|
|
8874
|
-
|
|
8866
|
+
A.current = p;
|
|
8875
8867
|
}, [p]);
|
|
8876
|
-
const [
|
|
8868
|
+
const [G, ee] = N(!1), be = P(!1), {
|
|
8877
8869
|
speak: Me,
|
|
8878
8870
|
stop: pt,
|
|
8879
8871
|
error: De
|
|
@@ -8884,7 +8876,7 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8884
8876
|
onError: () => {
|
|
8885
8877
|
be.current || (be.current = !0, ae());
|
|
8886
8878
|
}
|
|
8887
|
-
}), Pe =
|
|
8879
|
+
}), Pe = P(!1), at = P(!1), {
|
|
8888
8880
|
startRecording: At,
|
|
8889
8881
|
stopRecording: ni,
|
|
8890
8882
|
transcribe: oi,
|
|
@@ -8899,7 +8891,7 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8899
8891
|
model: w == null ? void 0 : w.model,
|
|
8900
8892
|
language: w == null ? void 0 : w.language,
|
|
8901
8893
|
authToken: u,
|
|
8902
|
-
qnaId: ((Ji =
|
|
8894
|
+
qnaId: ((Ji = L.current) == null ? void 0 : Ji.qna_id) || "",
|
|
8903
8895
|
interviewId: r
|
|
8904
8896
|
},
|
|
8905
8897
|
onStart: () => {
|
|
@@ -8909,7 +8901,7 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8909
8901
|
},
|
|
8910
8902
|
onTranscriptionComplete: (V) => {
|
|
8911
8903
|
const W = V.transcript;
|
|
8912
|
-
v(W),
|
|
8904
|
+
v(W), A.current = W, at.current || (at.current = !0, ae());
|
|
8913
8905
|
},
|
|
8914
8906
|
onError: (V) => {
|
|
8915
8907
|
console.error("STT Error:", V), Pe.current || (Pe.current = !0, ae());
|
|
@@ -8917,25 +8909,25 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8917
8909
|
}), { state: Fe, startQuestion: Tt, nextPhase: ae, completeInterview: Wi, timerService: li } = Oh({
|
|
8918
8910
|
config: {
|
|
8919
8911
|
// thinkingDuration: thinkingTime,
|
|
8920
|
-
answeringDuration:
|
|
8912
|
+
answeringDuration: q,
|
|
8921
8913
|
editingDuration: O
|
|
8922
8914
|
},
|
|
8923
8915
|
callbacks: {
|
|
8924
8916
|
onPhaseChange: (V) => {
|
|
8925
8917
|
switch (V) {
|
|
8926
|
-
case
|
|
8927
|
-
|
|
8918
|
+
case z.FETCHING_QUESTION:
|
|
8919
|
+
Gt();
|
|
8928
8920
|
break;
|
|
8929
|
-
case
|
|
8921
|
+
case z.READING_QUESTION:
|
|
8930
8922
|
En();
|
|
8931
8923
|
break;
|
|
8932
|
-
case
|
|
8924
|
+
case z.ANSWERING:
|
|
8933
8925
|
Tr();
|
|
8934
8926
|
break;
|
|
8935
|
-
case
|
|
8927
|
+
case z.TRANSCRIBING:
|
|
8936
8928
|
qi();
|
|
8937
8929
|
break;
|
|
8938
|
-
case
|
|
8930
|
+
case z.SUBMITTING:
|
|
8939
8931
|
Hi();
|
|
8940
8932
|
break;
|
|
8941
8933
|
}
|
|
@@ -8951,7 +8943,7 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8951
8943
|
(async () => {
|
|
8952
8944
|
try {
|
|
8953
8945
|
const W = await l.getInterviewConfig(r);
|
|
8954
|
-
if (W != null && W.data && (W.data.duration_in_minutes &&
|
|
8946
|
+
if (W != null && W.data && (W.data.duration_in_minutes && _(W.data.duration_in_minutes), typeof W.data.allow_answer_editing == "boolean" && C(W.data.allow_answer_editing), typeof W.data.elapsed_time_in_minutes == "number")) {
|
|
8955
8947
|
const Ye = Math.floor(
|
|
8956
8948
|
W.data.elapsed_time_in_minutes * 60
|
|
8957
8949
|
);
|
|
@@ -8962,7 +8954,7 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8962
8954
|
}
|
|
8963
8955
|
})();
|
|
8964
8956
|
}, [r, li]);
|
|
8965
|
-
const { execute:
|
|
8957
|
+
const { execute: Gt, error: ui } = Sh(
|
|
8966
8958
|
async () => {
|
|
8967
8959
|
const V = await l.generateQuestion({
|
|
8968
8960
|
interviewId: r
|
|
@@ -8970,25 +8962,25 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8970
8962
|
// qnaId: currentQuestionRef.current?.qna_id || "",
|
|
8971
8963
|
// answer: answerTextRef.current,
|
|
8972
8964
|
});
|
|
8973
|
-
return
|
|
8965
|
+
return L.current = V.data, V;
|
|
8974
8966
|
},
|
|
8975
8967
|
{
|
|
8976
8968
|
onSuccess: async (V) => {
|
|
8977
|
-
V && V.data && (v(""),
|
|
8969
|
+
V && V.data && (v(""), A.current = "", b(V.data), ae());
|
|
8978
8970
|
},
|
|
8979
8971
|
onError: (V) => {
|
|
8980
8972
|
console.error("Failed to fetch questions:", V);
|
|
8981
8973
|
}
|
|
8982
8974
|
}
|
|
8983
|
-
), Hi =
|
|
8975
|
+
), Hi = D(async () => {
|
|
8984
8976
|
var V;
|
|
8985
8977
|
try {
|
|
8986
|
-
const W =
|
|
8987
|
-
|
|
8978
|
+
const W = A.current, Ye = ((V = L.current) == null ? void 0 : V.qna_id) || "";
|
|
8979
|
+
U && await l.submitAnswer({
|
|
8988
8980
|
interviewId: r,
|
|
8989
8981
|
qnaId: Ye,
|
|
8990
8982
|
answer: W
|
|
8991
|
-
}),
|
|
8983
|
+
}), x({
|
|
8992
8984
|
qnaId: Ye,
|
|
8993
8985
|
answer: W
|
|
8994
8986
|
});
|
|
@@ -8996,14 +8988,14 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8996
8988
|
console.error("Failed to submit answer:", W);
|
|
8997
8989
|
}
|
|
8998
8990
|
Tt();
|
|
8999
|
-
}, [l, r, Tt,
|
|
8991
|
+
}, [l, r, Tt, U]), En = D(async () => {
|
|
9000
8992
|
var V, W;
|
|
9001
|
-
if ((V =
|
|
9002
|
-
if (
|
|
8993
|
+
if ((V = L.current) != null && V.question)
|
|
8994
|
+
if (L.current.question_audio_data_base64)
|
|
9003
8995
|
try {
|
|
9004
8996
|
be.current = !1, await Me(
|
|
9005
|
-
|
|
9006
|
-
),
|
|
8997
|
+
L.current.question_audio_data_base64
|
|
8998
|
+
), L.current.is_interview_done && (pt(), si(), a && "current" in a && ((W = a.current) == null || W.stopCamera()), Wi());
|
|
9007
8999
|
} catch (Ye) {
|
|
9008
9000
|
console.error("Failed to speak question:", Ye);
|
|
9009
9001
|
}
|
|
@@ -9011,9 +9003,9 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
9011
9003
|
console.warn("No audio data available for question"), await cu(2e3), ae();
|
|
9012
9004
|
else
|
|
9013
9005
|
ae();
|
|
9014
|
-
}, [Me, ae, Wi]), Tr =
|
|
9006
|
+
}, [Me, ae, Wi]), Tr = D(async () => {
|
|
9015
9007
|
try {
|
|
9016
|
-
await At(
|
|
9008
|
+
await At(q);
|
|
9017
9009
|
} catch (V) {
|
|
9018
9010
|
if ((V == null ? void 0 : V.code) === "ALREADY_RECORDING") {
|
|
9019
9011
|
console.warn(
|
|
@@ -9023,8 +9015,8 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
9023
9015
|
}
|
|
9024
9016
|
console.error("Failed to start recording:", V), ae();
|
|
9025
9017
|
}
|
|
9026
|
-
}, [At, ae,
|
|
9027
|
-
if (
|
|
9018
|
+
}, [At, ae, q]), qi = D(async () => {
|
|
9019
|
+
if (G) {
|
|
9028
9020
|
console.warn(
|
|
9029
9021
|
"Audio processing already in progress, ignoring duplicate call"
|
|
9030
9022
|
);
|
|
@@ -9040,7 +9032,7 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
9040
9032
|
ee(!1);
|
|
9041
9033
|
}
|
|
9042
9034
|
}, [
|
|
9043
|
-
|
|
9035
|
+
G,
|
|
9044
9036
|
ai,
|
|
9045
9037
|
Ut,
|
|
9046
9038
|
ni,
|
|
@@ -9048,9 +9040,9 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
9048
9040
|
ae,
|
|
9049
9041
|
r,
|
|
9050
9042
|
li
|
|
9051
|
-
]), Ki =
|
|
9052
|
-
|
|
9053
|
-
}, [
|
|
9043
|
+
]), Ki = D(() => {
|
|
9044
|
+
G || ae();
|
|
9045
|
+
}, [G, ae]), Yi = D(
|
|
9054
9046
|
async (V) => {
|
|
9055
9047
|
var W, Ye;
|
|
9056
9048
|
fi(), si(), a && "current" in a && ((W = a.current) == null || W.stopCamera()), await ((Ye = g.current) == null ? void 0 : Ye.exitFullScreenIntentionally());
|
|
@@ -9066,48 +9058,48 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
9066
9058
|
), Xi = () => {
|
|
9067
9059
|
const { phase: V } = Fe;
|
|
9068
9060
|
switch (V) {
|
|
9069
|
-
case
|
|
9061
|
+
case z.IDLE:
|
|
9070
9062
|
return /* @__PURE__ */ m("div", { className: "iw-text-center iw-flex iw-flex-col iw-items-center iw-justify-center iw-gap-2 iw-h-full", children: [
|
|
9071
9063
|
/* @__PURE__ */ c("h3", { className: "iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1", children: "Ready to start the Interview?" }),
|
|
9072
9064
|
/* @__PURE__ */ c("p", { className: "iw-max-w-xl iw-text-gray-500 iw-text-xs iw-leading-[21px]", children: `You will be asked a series of behavioral and technical questions. For each one you'll get a short thinking period, then a timed recording window. We'll transcribe your response so you can review and edit it before submitting. Click "Start Interview" when you're ready.` }),
|
|
9073
9065
|
/* @__PURE__ */ c(Hr, { onClick: Tt, className: "iw-mt-2 iw-w-40", children: "Start Interview" })
|
|
9074
9066
|
] });
|
|
9075
|
-
case
|
|
9067
|
+
case z.FETCHING_QUESTION:
|
|
9076
9068
|
return ui ? /* @__PURE__ */ m("div", { className: "iw-text-center iw-flex iw-flex-col iw-items-center iw-justify-center iw-gap-2 iw-h-full", children: [
|
|
9077
9069
|
/* @__PURE__ */ c("h3", { className: "iw-text-lg iw-font-semibold iw-text-red-600 iw-mb-1", children: "Failed to load the next question" }),
|
|
9078
9070
|
/* @__PURE__ */ c("p", { className: "iw-max-w-md iw-text-gray-500 iw-text-sm iw-leading-[21px]", children: ui.message || "Please check your network connection and try again." }),
|
|
9079
9071
|
/* @__PURE__ */ c(
|
|
9080
9072
|
Hr,
|
|
9081
9073
|
{
|
|
9082
|
-
onClick: () =>
|
|
9074
|
+
onClick: () => Gt(),
|
|
9083
9075
|
className: "iw-mt-4 iw-w-40",
|
|
9084
9076
|
children: "Retry"
|
|
9085
9077
|
}
|
|
9086
9078
|
)
|
|
9087
9079
|
] }) : /* @__PURE__ */ c(b2, {});
|
|
9088
|
-
case
|
|
9080
|
+
case z.READING_QUESTION:
|
|
9089
9081
|
return /* @__PURE__ */ c(x2, { ttsError: De });
|
|
9090
|
-
case
|
|
9082
|
+
case z.THINKING:
|
|
9091
9083
|
return /* @__PURE__ */ c(
|
|
9092
9084
|
E2,
|
|
9093
9085
|
{
|
|
9094
9086
|
state: Fe,
|
|
9095
|
-
thinkingTime:
|
|
9087
|
+
thinkingTime: $,
|
|
9096
9088
|
nextPhase: ae
|
|
9097
9089
|
}
|
|
9098
9090
|
);
|
|
9099
|
-
case
|
|
9091
|
+
case z.ANSWERING:
|
|
9100
9092
|
return /* @__PURE__ */ c(
|
|
9101
9093
|
y2,
|
|
9102
9094
|
{
|
|
9103
9095
|
state: Fe,
|
|
9104
|
-
answeringTime:
|
|
9096
|
+
answeringTime: q,
|
|
9105
9097
|
nextPhase: Ki,
|
|
9106
9098
|
sttError: ci,
|
|
9107
|
-
disableStopButton:
|
|
9099
|
+
disableStopButton: G
|
|
9108
9100
|
}
|
|
9109
9101
|
);
|
|
9110
|
-
case
|
|
9102
|
+
case z.TRANSCRIBING:
|
|
9111
9103
|
return /* @__PURE__ */ c(
|
|
9112
9104
|
_2,
|
|
9113
9105
|
{
|
|
@@ -9115,10 +9107,10 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
9115
9107
|
editingDuration: O
|
|
9116
9108
|
}
|
|
9117
9109
|
);
|
|
9118
|
-
case
|
|
9119
|
-
case
|
|
9110
|
+
case z.EDITING:
|
|
9111
|
+
case z.SUBMITTING:
|
|
9120
9112
|
return null;
|
|
9121
|
-
case
|
|
9113
|
+
case z.COMPLETED:
|
|
9122
9114
|
return null;
|
|
9123
9115
|
default:
|
|
9124
9116
|
return null;
|
|
@@ -9150,15 +9142,15 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
9150
9142
|
interviewId: r,
|
|
9151
9143
|
interview_duration: k,
|
|
9152
9144
|
videoFeedRef: a,
|
|
9153
|
-
lastSubmittedAnswer:
|
|
9154
|
-
onNextPhase: Fe.phase ===
|
|
9145
|
+
lastSubmittedAnswer: E,
|
|
9146
|
+
onNextPhase: Fe.phase === z.ANSWERING ? Ki : ae,
|
|
9155
9147
|
answerText: p,
|
|
9156
9148
|
onAnswerChange: (V) => {
|
|
9157
9149
|
const W = V.target.value;
|
|
9158
|
-
v(W),
|
|
9150
|
+
v(W), A.current = W;
|
|
9159
9151
|
},
|
|
9160
9152
|
editingTime: O,
|
|
9161
|
-
disableSubmitButton: Fe.phase ===
|
|
9153
|
+
disableSubmitButton: Fe.phase === z.ANSWERING && G,
|
|
9162
9154
|
children: Xi()
|
|
9163
9155
|
}
|
|
9164
9156
|
)
|
|
@@ -9169,7 +9161,7 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
9169
9161
|
ref: g,
|
|
9170
9162
|
onDisqualify: () => Yi(o),
|
|
9171
9163
|
onExit: () => Yi(),
|
|
9172
|
-
isCompleted: ((Nr =
|
|
9164
|
+
isCompleted: ((Nr = L == null ? void 0 : L.current) == null ? void 0 : Nr.is_interview_done) ?? !1,
|
|
9173
9165
|
children: Qi
|
|
9174
9166
|
}
|
|
9175
9167
|
) : Qi });
|
|
@@ -9182,7 +9174,7 @@ const E2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
9182
9174
|
onInterviewDisqualify: o,
|
|
9183
9175
|
className: s = ""
|
|
9184
9176
|
}) => {
|
|
9185
|
-
const [a, l] =
|
|
9177
|
+
const [a, l] = N(!1), [d, u] = N(!0), [h, w] = N(!1), { proctoring: f } = pr(), g = P(null), y = P(null), b = (f == null ? void 0 : f.gazeAnalysisEnabled) === !0, p = () => {
|
|
9186
9178
|
l(!0), u(!1);
|
|
9187
9179
|
};
|
|
9188
9180
|
return B(() => {
|