@richard.fadiora/liveness-detection 5.0.0 → 5.0.1

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.
@@ -1,7 +1,7 @@
1
- import Ja, { useState as Za, useRef as Is, useEffect as Rs, useCallback as Ns } from "react";
2
- import Qa from "react-webcam";
1
+ import Ja, { useState as Qa, useRef as xs, useEffect as Rs, useCallback as Ns } from "react";
2
+ import Za from "react-webcam";
3
3
  var yt = typeof self < "u" ? self : {};
4
- function Qt(e, t) {
4
+ function Zt(e, t) {
5
5
  e: {
6
6
  for (var r = ["CLOSURE_FLAGS"], n = yt, s = 0; s < r.length; s++) if ((n = n[r[s]]) == null) {
7
7
  r = null;
@@ -57,7 +57,7 @@ function Gi(e) {
57
57
  throw e;
58
58
  }, 0);
59
59
  }
60
- var ln, n2 = Qt(610401301, !1), Ds = Qt(748402147, !0), xn = Qt(824648567, !0), Fn = Qt(824656860, Qt(1, !0));
60
+ var ln, n2 = Zt(610401301, !1), Ds = Zt(748402147, !0), Mn = Zt(824648567, !0), Fn = Zt(824656860, Zt(1, !0));
61
61
  function Bs() {
62
62
  var e = yt.navigator;
63
63
  return e && (e = e.userAgent) ? e : "";
@@ -110,31 +110,31 @@ function Wi() {
110
110
  }
111
111
  }
112
112
  }
113
- var i2 = typeof Uint8Array < "u", qi = !(!(n2 && ln && ln.brands.length > 0) && (Bs().indexOf("Trident") != -1 || Bs().indexOf("MSIE") != -1)) && typeof btoa == "function";
113
+ var i2 = typeof Uint8Array < "u", Ki = !(!(n2 && ln && ln.brands.length > 0) && (Bs().indexOf("Trident") != -1 || Bs().indexOf("MSIE") != -1)) && typeof btoa == "function";
114
114
  const Us = /[-_.]/g, o2 = { "-": "+", _: "/", ".": "=" };
115
115
  function a2(e) {
116
116
  return o2[e] || "";
117
117
  }
118
- function Ki(e) {
119
- if (!qi) return s2(e);
118
+ function qi(e) {
119
+ if (!Ki) return s2(e);
120
120
  e = Us.test(e) ? e.replace(Us, a2) : e, e = atob(e);
121
121
  const t = new Uint8Array(e.length);
122
122
  for (let r = 0; r < e.length; r++) t[r] = e.charCodeAt(r);
123
123
  return t;
124
124
  }
125
- function In(e) {
125
+ function xn(e) {
126
126
  return i2 && e != null && e instanceof Uint8Array;
127
127
  }
128
128
  var vt = {};
129
129
  function ot() {
130
- return c2 || (c2 = new Me(null, vt));
130
+ return c2 || (c2 = new Oe(null, vt));
131
131
  }
132
132
  function Rn(e) {
133
133
  zi(vt);
134
134
  var t = e.g;
135
- return (t = t == null || In(t) ? t : typeof t == "string" ? Ki(t) : null) == null ? t : e.g = t;
135
+ return (t = t == null || xn(t) ? t : typeof t == "string" ? qi(t) : null) == null ? t : e.g = t;
136
136
  }
137
- var Me = class {
137
+ var Oe = class {
138
138
  h() {
139
139
  return new Uint8Array(Rn(this) || 0);
140
140
  }
@@ -158,22 +158,22 @@ function bt(e, t) {
158
158
  n >= t || (r[e] = n + 1, Yi(e = Error(), "incident"), Gi(e));
159
159
  }
160
160
  }
161
- function Mt() {
161
+ function Ot() {
162
162
  return typeof BigInt == "function";
163
163
  }
164
- var xt = typeof Symbol == "function" && typeof Symbol() == "symbol";
165
- function xe(e, t, r = !1) {
164
+ var Mt = typeof Symbol == "function" && typeof Symbol() == "symbol";
165
+ function Me(e, t, r = !1) {
166
166
  return typeof Symbol == "function" && typeof Symbol() == "symbol" ? r && Symbol.for && e ? Symbol.for(e) : e != null ? Symbol(e) : Symbol() : t;
167
167
  }
168
- var h2 = xe("jas", void 0, !0), Vs = xe(void 0, "0di"), Wt = xe(void 0, "1oa"), ae = xe(void 0, Symbol()), l2 = xe(void 0, "0ub"), f2 = xe(void 0, "0ubs"), dn = xe(void 0, "0ubsb"), d2 = xe(void 0, "0actk"), Et = xe("m_m", "Pa", !0), Gs = xe();
169
- const $i = { Ga: { value: 0, configurable: !0, writable: !0, enumerable: !1 } }, Xi = Object.defineProperties, p = xt ? h2 : "Ga";
168
+ var h2 = Me("jas", void 0, !0), Vs = Me(void 0, "0di"), Wt = Me(void 0, "1oa"), ae = Me(void 0, Symbol()), l2 = Me(void 0, "0ub"), f2 = Me(void 0, "0ubs"), dn = Me(void 0, "0ubsb"), d2 = Me(void 0, "0actk"), Et = Me("m_m", "Pa", !0), Gs = Me();
169
+ const $i = { Ga: { value: 0, configurable: !0, writable: !0, enumerable: !1 } }, Xi = Object.defineProperties, p = Mt ? h2 : "Ga";
170
170
  var ut;
171
171
  const Hs = [];
172
172
  function sr(e, t) {
173
- xt || p in e || Xi(e, $i), e[p] |= t;
173
+ Mt || p in e || Xi(e, $i), e[p] |= t;
174
174
  }
175
175
  function z(e, t) {
176
- xt || p in e || Xi(e, $i), e[p] = t;
176
+ Mt || p in e || Xi(e, $i), e[p] = t;
177
177
  }
178
178
  function ir(e) {
179
179
  return sr(e, 34), e;
@@ -189,8 +189,8 @@ function ue(e, t) {
189
189
  const at = {};
190
190
  function Nn(e, t) {
191
191
  if (e != null) {
192
- if (typeof e == "string") e = e ? new Me(e, vt) : ot();
193
- else if (e.constructor !== Me) if (In(e)) e = e.length ? new Me(new Uint8Array(e), vt) : ot();
192
+ if (typeof e == "string") e = e ? new Oe(e, vt) : ot();
193
+ else if (e.constructor !== Oe) if (xn(e)) e = e.length ? new Oe(new Uint8Array(e), vt) : ot();
194
194
  else {
195
195
  if (!t) throw Error();
196
196
  e = void 0;
@@ -222,24 +222,24 @@ function Ji(e, t, r) {
222
222
  for (const a in e) !isNaN(a) && r(+a, e[a]);
223
223
  }
224
224
  }
225
- var Zi = {};
225
+ var Qi = {};
226
226
  function Ft(e) {
227
- return 128 & e ? Zi : void 0;
227
+ return 128 & e ? Qi : void 0;
228
228
  }
229
229
  function Pr(e) {
230
230
  return e.Na = !0, e;
231
231
  }
232
- var g2 = Pr((e) => typeof e == "number"), qs = Pr((e) => typeof e == "string"), m2 = Pr((e) => typeof e == "boolean"), Or = typeof yt.BigInt == "function" && typeof yt.BigInt(0) == "bigint";
232
+ var g2 = Pr((e) => typeof e == "number"), Ks = Pr((e) => typeof e == "string"), m2 = Pr((e) => typeof e == "boolean"), Ir = typeof yt.BigInt == "function" && typeof yt.BigInt(0) == "bigint";
233
233
  function ce(e) {
234
234
  var t = e;
235
- if (qs(t)) {
235
+ if (Ks(t)) {
236
236
  if (!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t)) throw Error(String(t));
237
237
  } else if (g2(t) && !Number.isSafeInteger(t)) throw Error(String(t));
238
- return Or ? BigInt(e) : e = m2(e) ? e ? "1" : "0" : qs(e) ? e.trim() || "0" : String(e);
238
+ return Ir ? BigInt(e) : e = m2(e) ? e ? "1" : "0" : Ks(e) ? e.trim() || "0" : String(e);
239
239
  }
240
- var pn = Pr((e) => Or ? e >= y2 && e <= b2 : e[0] === "-" ? Ks(e, _2) : Ks(e, v2));
241
- const _2 = Number.MIN_SAFE_INTEGER.toString(), y2 = Or ? BigInt(Number.MIN_SAFE_INTEGER) : void 0, v2 = Number.MAX_SAFE_INTEGER.toString(), b2 = Or ? BigInt(Number.MAX_SAFE_INTEGER) : void 0;
242
- function Ks(e, t) {
240
+ var pn = Pr((e) => Ir ? e >= y2 && e <= b2 : e[0] === "-" ? qs(e, _2) : qs(e, v2));
241
+ const _2 = Number.MIN_SAFE_INTEGER.toString(), y2 = Ir ? BigInt(Number.MIN_SAFE_INTEGER) : void 0, v2 = Number.MAX_SAFE_INTEGER.toString(), b2 = Ir ? BigInt(Number.MAX_SAFE_INTEGER) : void 0;
242
+ function qs(e, t) {
243
243
  if (e.length > t.length) return !1;
244
244
  if (e.length < t.length || e === t) return !0;
245
245
  for (let r = 0; r < e.length; r++) {
@@ -270,25 +270,25 @@ function gn(e, t) {
270
270
  return Number.isSafeInteger(r) ? r : tr(e, t);
271
271
  }
272
272
  function A2(e, t) {
273
- return ce(Mt() ? BigInt.asUintN(64, (BigInt(t >>> 0) << BigInt(32)) + BigInt(e >>> 0)) : tr(e, t));
273
+ return ce(Ot() ? BigInt.asUintN(64, (BigInt(t >>> 0) << BigInt(32)) + BigInt(e >>> 0)) : tr(e, t));
274
274
  }
275
275
  function Dn(e, t) {
276
276
  const r = 2147483648 & t;
277
277
  return r && (t = ~t >>> 0, (e = 1 + ~e >>> 0) == 0 && (t = t + 1 >>> 0)), typeof (e = gn(e, t)) == "number" ? r ? -e : e : r ? "-" + e : e;
278
278
  }
279
- function Qi(e, t) {
280
- return Mt() ? ce(BigInt.asIntN(64, (BigInt.asUintN(32, BigInt(t)) << BigInt(32)) + BigInt.asUintN(32, BigInt(e)))) : ce(Bn(e, t));
279
+ function Zi(e, t) {
280
+ return Ot() ? ce(BigInt.asIntN(64, (BigInt.asUintN(32, BigInt(t)) << BigInt(32)) + BigInt.asUintN(32, BigInt(e)))) : ce(Bn(e, t));
281
281
  }
282
282
  function tr(e, t) {
283
283
  if (e >>>= 0, (t >>>= 0) <= 2097151) var r = "" + (4294967296 * t + e);
284
- else Mt() ? r = "" + (BigInt(t) << BigInt(32) | BigInt(e)) : (e = (16777215 & e) + 6777216 * (r = 16777215 & (e >>> 24 | t << 8)) + 6710656 * (t = t >> 16 & 65535), r += 8147497 * t, t *= 2, e >= 1e7 && (r += e / 1e7 >>> 0, e %= 1e7), r >= 1e7 && (t += r / 1e7 >>> 0, r %= 1e7), r = t + Ys(r) + Ys(e));
284
+ else Ot() ? r = "" + (BigInt(t) << BigInt(32) | BigInt(e)) : (e = (16777215 & e) + 6777216 * (r = 16777215 & (e >>> 24 | t << 8)) + 6710656 * (t = t >> 16 & 65535), r += 8147497 * t, t *= 2, e >= 1e7 && (r += e / 1e7 >>> 0, e %= 1e7), r >= 1e7 && (t += r / 1e7 >>> 0, r %= 1e7), r = t + Ys(r) + Ys(e));
285
285
  return r;
286
286
  }
287
287
  function Ys(e) {
288
288
  return e = String(e), "0000000".slice(e.length) + e;
289
289
  }
290
290
  function Bn(e, t) {
291
- if (2147483648 & t) if (Mt()) e = "" + (BigInt(0 | t) << BigInt(32) | BigInt(e >>> 0));
291
+ if (2147483648 & t) if (Ot()) e = "" + (BigInt(0 | t) << BigInt(32) | BigInt(e >>> 0));
292
292
  else {
293
293
  const [r, n] = jn(e, t);
294
294
  e = "-" + tr(r, n);
@@ -296,9 +296,9 @@ function Bn(e, t) {
296
296
  else e = tr(e, t);
297
297
  return e;
298
298
  }
299
- function Mr(e) {
299
+ function Or(e) {
300
300
  if (e.length < 16) At(Number(e));
301
- else if (Mt()) e = BigInt(e), F = Number(e & BigInt(4294967295)) >>> 0, U = Number(e >> BigInt(32) & BigInt(4294967295));
301
+ else if (Ot()) e = BigInt(e), F = Number(e & BigInt(4294967295)) >>> 0, U = Number(e >> BigInt(32) & BigInt(4294967295));
302
302
  else {
303
303
  const t = +(e[0] === "-");
304
304
  U = F = 0;
@@ -319,12 +319,12 @@ function jn(e, t) {
319
319
  function we(e) {
320
320
  return Array.prototype.slice.call(e);
321
321
  }
322
- const or = typeof BigInt == "function" ? BigInt.asIntN : void 0, k2 = typeof BigInt == "function" ? BigInt.asUintN : void 0, ct = Number.isSafeInteger, xr = Number.isFinite, kt = Math.trunc, S2 = ce(0);
322
+ const or = typeof BigInt == "function" ? BigInt.asIntN : void 0, k2 = typeof BigInt == "function" ? BigInt.asUintN : void 0, ct = Number.isSafeInteger, Mr = Number.isFinite, kt = Math.trunc, S2 = ce(0);
323
323
  function $t(e) {
324
324
  if (e != null && typeof e != "number") throw Error(`Value of float/double field must be a number, found ${typeof e}: ${e}`);
325
325
  return e;
326
326
  }
327
- function Oe(e) {
327
+ function Ie(e) {
328
328
  return e == null || typeof e == "number" ? e : e === "NaN" || e === "Infinity" || e === "-Infinity" ? Number(e) : void 0;
329
329
  }
330
330
  function rr(e) {
@@ -343,28 +343,28 @@ function ar(e) {
343
343
  case "bigint":
344
344
  return !0;
345
345
  case "number":
346
- return xr(e);
346
+ return Mr(e);
347
347
  case "string":
348
348
  return T2.test(e);
349
349
  default:
350
350
  return !1;
351
351
  }
352
352
  }
353
- function It(e) {
353
+ function xt(e) {
354
354
  if (e == null) return e;
355
355
  if (typeof e == "string" && e) e = +e;
356
356
  else if (typeof e != "number") return;
357
- return xr(e) ? 0 | e : void 0;
357
+ return Mr(e) ? 0 | e : void 0;
358
358
  }
359
359
  function to(e) {
360
360
  if (e == null) return e;
361
361
  if (typeof e == "string" && e) e = +e;
362
362
  else if (typeof e != "number") return;
363
- return xr(e) ? e >>> 0 : void 0;
363
+ return Mr(e) ? e >>> 0 : void 0;
364
364
  }
365
365
  function ro(e) {
366
366
  const t = e.length;
367
- return (e[0] === "-" ? t < 20 || t === 20 && e <= "-9223372036854775808" : t < 19 || t === 19 && e <= "9223372036854775807") ? e : (Mr(e), Bn(F, U));
367
+ return (e[0] === "-" ? t < 20 || t === 20 && e <= "-9223372036854775808" : t < 19 || t === 19 && e <= "9223372036854775807") ? e : (Or(e), Bn(F, U));
368
368
  }
369
369
  function Un(e) {
370
370
  return e = kt(e), ct(e) || (At(e), e = Dn(F, U)), e;
@@ -375,7 +375,7 @@ function no(e) {
375
375
  }
376
376
  function so(e) {
377
377
  var t = kt(Number(e));
378
- return ct(t) ? ce(t) : ((t = e.indexOf(".")) !== -1 && (e = e.substring(0, t)), Mt() ? ce(or(64, BigInt(e))) : ce(ro(e)));
378
+ return ct(t) ? ce(t) : ((t = e.indexOf(".")) !== -1 && (e = e.substring(0, t)), Ot() ? ce(or(64, BigInt(e))) : ce(ro(e)));
379
379
  }
380
380
  function io(e) {
381
381
  return ct(e) ? e = ce(Un(e)) : (e = kt(e), ct(e) ? e = String(e) : (At(e), e = Bn(F, U)), e = ce(e)), e;
@@ -395,7 +395,7 @@ function cr(e) {
395
395
  if (e != null && typeof e != "string") throw Error();
396
396
  return e;
397
397
  }
398
- function Z(e) {
398
+ function Q(e) {
399
399
  return e == null || typeof e == "string" ? e : void 0;
400
400
  }
401
401
  function Vn(e, t, r, n) {
@@ -418,8 +418,8 @@ function P2(e, t, r) {
418
418
  else t = br(e);
419
419
  return (e = t) == null ? r ? S2 : void 0 : e;
420
420
  }
421
- const O2 = {};
422
- let M2 = function() {
421
+ const I2 = {};
422
+ let O2 = function() {
423
423
  try {
424
424
  return Lr(new class extends Map {
425
425
  constructor() {
@@ -465,7 +465,7 @@ class rn {
465
465
  return this.entries();
466
466
  }
467
467
  }
468
- const x2 = M2 ? (Object.setPrototypeOf(rn.prototype, Map.prototype), Object.defineProperties(rn.prototype, { size: { value: 0, configurable: !0, enumerable: !0, writable: !0 } }), rn) : class extends Map {
468
+ const M2 = O2 ? (Object.setPrototypeOf(rn.prototype, Map.prototype), Object.defineProperties(rn.prototype, { size: { value: 0, configurable: !0, enumerable: !0, writable: !0 } }), rn) : class extends Map {
469
469
  constructor() {
470
470
  super();
471
471
  }
@@ -476,7 +476,7 @@ function $s(e) {
476
476
  function nn(e) {
477
477
  if (2 & e.J) throw Error("Cannot mutate an immutable Map");
478
478
  }
479
- var De = class extends x2 {
479
+ var De = class extends M2 {
480
480
  constructor(e, t, r = $s, n = $s) {
481
481
  super(), this.J = 0 | e[p], this.K = t, this.S = r, this.fa = this.K ? F2 : n;
482
482
  for (let s = 0; s < e.length; s++) {
@@ -497,7 +497,7 @@ var De = class extends x2 {
497
497
  entries() {
498
498
  if (this.K) {
499
499
  var e = super.keys();
500
- e = new Ws(e, I2, this);
500
+ e = new Ws(e, x2, this);
501
501
  } else e = super.entries();
502
502
  return e;
503
503
  }
@@ -538,12 +538,12 @@ var De = class extends x2 {
538
538
  function F2(e, t, r, n, s, i) {
539
539
  return e = Vn(e, n, r, i), s && (e = Hn(e)), e;
540
540
  }
541
- function I2(e) {
541
+ function x2(e) {
542
542
  return [e, this.get(e)];
543
543
  }
544
544
  let R2;
545
545
  function Xs() {
546
- return R2 || (R2 = new De(ir([]), void 0, void 0, void 0, O2));
546
+ return R2 || (R2 = new De(ir([]), void 0, void 0, void 0, I2));
547
547
  }
548
548
  function Fr(e) {
549
549
  return ae ? e[ae] : void 0;
@@ -558,11 +558,11 @@ const N2 = { Ka: !0 };
558
558
  function C2(e, t) {
559
559
  t < 100 || bt(f2, 1);
560
560
  }
561
- function Ir(e, t, r, n) {
561
+ function xr(e, t, r, n) {
562
562
  const s = n !== void 0;
563
563
  n = !!n;
564
564
  var i, o = ae;
565
- !s && xt && o && (i = e[o]) && Er(i, C2), o = [];
565
+ !s && Mt && o && (i = e[o]) && Er(i, C2), o = [];
566
566
  var a = e.length;
567
567
  let c;
568
568
  i = 4294967295;
@@ -602,14 +602,14 @@ function nr(e) {
602
602
  case "object":
603
603
  if (Array.isArray(e)) {
604
604
  var t = 0 | e[p];
605
- return e.length === 0 && 1 & t ? void 0 : Ir(e, t, nr);
605
+ return e.length === 0 && 1 & t ? void 0 : xr(e, t, nr);
606
606
  }
607
607
  if (e != null && e[Et] === wt) return ao(e);
608
- if (e instanceof Me) {
608
+ if (e instanceof Oe) {
609
609
  if ((t = e.g) == null) e = "";
610
610
  else if (typeof t == "string") e = t;
611
611
  else {
612
- if (qi) {
612
+ if (Ki) {
613
613
  for (var r = "", n = 0, s = t.length - 10240; n < s; ) r += String.fromCharCode.apply(null, t.subarray(n, n += 10240));
614
614
  r += String.fromCharCode.apply(null, n ? t.subarray(n) : t), t = btoa(r);
615
615
  } else {
@@ -636,7 +636,7 @@ function nr(e) {
636
636
  return e;
637
637
  }
638
638
  function ao(e) {
639
- return Ir(e = e.v, 0 | e[p], nr);
639
+ return xr(e = e.v, 0 | e[p], nr);
640
640
  }
641
641
  let B2, j2;
642
642
  function tt(e, t) {
@@ -682,18 +682,18 @@ function U2(e, t) {
682
682
  var r = 0 | e[p];
683
683
  return e.length === 0 && 1 & r ? void 0 : Js(e, r, t);
684
684
  }
685
- if (e != null && e[Et] === wt) return Zs(e);
685
+ if (e != null && e[Et] === wt) return Qs(e);
686
686
  if (e instanceof De) {
687
687
  if (2 & (t = e.J)) return e;
688
688
  if (!e.size) return;
689
689
  if (r = ir(e.V()), e.K) for (e = 0; e < r.length; e++) {
690
690
  const n = r[e];
691
691
  let s = n[1];
692
- s = s == null || typeof s != "object" ? void 0 : s != null && s[Et] === wt ? Zs(s) : Array.isArray(s) ? Js(s, 0 | s[p], !!(32 & t)) : void 0, n[1] = s;
692
+ s = s == null || typeof s != "object" ? void 0 : s != null && s[Et] === wt ? Qs(s) : Array.isArray(s) ? Js(s, 0 | s[p], !!(32 & t)) : void 0, n[1] = s;
693
693
  }
694
694
  return r;
695
695
  }
696
- return e instanceof Me ? e : void 0;
696
+ return e instanceof Oe ? e : void 0;
697
697
  }
698
698
  function Js(e, t, r) {
699
699
  return 2 & t || (!r || 4096 & t || 16 & t ? e = Rt(e, t, !1, r && !(16 & t)) : (sr(e, 34), 4 & t && Object.freeze(e))), e;
@@ -701,12 +701,12 @@ function Js(e, t, r) {
701
701
  function Gn(e, t, r) {
702
702
  return e = new e.constructor(t), r && (e.h = at), e.m = at, e;
703
703
  }
704
- function Zs(e) {
704
+ function Qs(e) {
705
705
  const t = e.v, r = 0 | t[p];
706
706
  return ue(e, r) ? e : Wn(e, t, r) ? Gn(e, t) : Rt(t, r);
707
707
  }
708
708
  function Rt(e, t, r, n) {
709
- return n ?? (n = !!(34 & t)), e = Ir(e, t, U2, n), n = 32, r && (n |= 2), z(e, t = 16769217 & t | n), e;
709
+ return n ?? (n = !!(34 & t)), e = xr(e, t, U2, n), n = 32, r && (n |= 2), z(e, t = 16769217 & t | n), e;
710
710
  }
711
711
  function Hn(e) {
712
712
  const t = e.v, r = 0 | t[p];
@@ -727,7 +727,7 @@ function Wn(e, t, r) {
727
727
  return !!(2 & r) || !(!(32 & r) || 4096 & r) && (z(t, 2 | r), e.h = at, !0);
728
728
  }
729
729
  const V2 = ce(0), Ge = {};
730
- function O(e, t, r, n, s) {
730
+ function I(e, t, r, n, s) {
731
731
  if ((t = Be(e.v, t, r, s)) !== null || n && e.m !== at) return t;
732
732
  }
733
733
  function Be(e, t, r, n) {
@@ -749,9 +749,9 @@ function Be(e, t, r, n) {
749
749
  }
750
750
  }
751
751
  function T(e, t, r, n) {
752
- Ct(e), q(e = e.v, 0 | e[p], t, r, n);
752
+ Ct(e), K(e = e.v, 0 | e[p], t, r, n);
753
753
  }
754
- function q(e, t, r, n, s) {
754
+ function K(e, t, r, n, s) {
755
755
  const i = r + (s ? 0 : -1);
756
756
  var o = e.length - 1;
757
757
  if (o >= 1 + (s ? 0 : -1) && i >= o) {
@@ -760,16 +760,16 @@ function q(e, t, r, n, s) {
760
760
  }
761
761
  return i <= o ? (e[i] = n, t) : (n !== void 0 && (r >= (o = (t ?? (t = 0 | e[p])) >> 14 & 1023 || 536870912) ? n != null && (e[o + (s ? 0 : -1)] = { [r]: n }) : e[i] = n), t);
762
762
  }
763
- function Qe() {
763
+ function Ze() {
764
764
  return p2 === void 0 ? 2 : 4;
765
765
  }
766
766
  function et(e, t, r, n, s) {
767
767
  let i = e.v, o = 0 | i[p];
768
768
  n = ue(e, o) ? 1 : n, s = !!s || n === 3, n === 2 && Nt(e) && (i = e.v, o = 0 | i[p]);
769
- let a = (e = qn(i, t)) === ut ? 7 : 0 | e[p], c = Kn(a, o);
769
+ let a = (e = Kn(i, t)) === ut ? 7 : 0 | e[p], c = qn(a, o);
770
770
  var l = !(4 & c);
771
771
  if (l) {
772
- 4 & c && (e = we(e), a = 0, c = nt(c, o), o = q(i, o, t, e));
772
+ 4 & c && (e = we(e), a = 0, c = nt(c, o), o = K(i, o, t, e));
773
773
  let u = 0, f = 0;
774
774
  for (; u < e.length; u++) {
775
775
  const y = r(e[u]);
@@ -781,12 +781,12 @@ function et(e, t, r, n, s) {
781
781
  }
782
782
  function uo(e, t, r, n, s, i, o, a) {
783
783
  let c = t;
784
- return i === 1 || i === 4 && (2 & t || !(16 & t) && 32 & n) ? rt(t) || ((t |= !e.length || o && !(4096 & t) || 32 & n && !(4096 & t || 16 & t) ? 2 : 256) !== c && z(e, t), Object.freeze(e)) : (i === 2 && rt(t) && (e = we(e), c = 0, t = nt(t, n), n = q(r, n, s, e)), rt(t) || (a || (t |= 16), t !== c && z(e, t))), 2 & t || !(4096 & t || 16 & t) || ht(r, n), e;
784
+ return i === 1 || i === 4 && (2 & t || !(16 & t) && 32 & n) ? rt(t) || ((t |= !e.length || o && !(4096 & t) || 32 & n && !(4096 & t || 16 & t) ? 2 : 256) !== c && z(e, t), Object.freeze(e)) : (i === 2 && rt(t) && (e = we(e), c = 0, t = nt(t, n), n = K(r, n, s, e)), rt(t) || (a || (t |= 16), t !== c && z(e, t))), 2 & t || !(4096 & t || 16 & t) || ht(r, n), e;
785
785
  }
786
- function qn(e, t, r) {
786
+ function Kn(e, t, r) {
787
787
  return e = Be(e, t, r), Array.isArray(e) ? e : ut;
788
788
  }
789
- function Kn(e, t) {
789
+ function qn(e, t) {
790
790
  return 2 & t && (e |= 2), 1 | e;
791
791
  }
792
792
  function rt(e) {
@@ -804,27 +804,27 @@ function lo(e) {
804
804
  return er(e);
805
805
  }
806
806
  function We(e, t, r, n) {
807
- Ct(e), q(e = e.v, 0 | e[p], t, (n === "0" ? Number(r) === 0 : r === n) ? void 0 : r);
807
+ Ct(e), K(e = e.v, 0 | e[p], t, (n === "0" ? Number(r) === 0 : r === n) ? void 0 : r);
808
808
  }
809
809
  function Dt(e, t, r) {
810
810
  if (2 & t) throw Error();
811
811
  const n = Ft(t);
812
- let s = qn(e, r, n), i = s === ut ? 7 : 0 | s[p], o = Kn(i, t);
813
- return (2 & o || rt(o) || 16 & o) && (o === i || rt(o) || z(s, o), s = we(s), i = 0, o = nt(o, t), q(e, t, r, s, n)), o &= -13, o !== i && z(s, o), s;
812
+ let s = Kn(e, r, n), i = s === ut ? 7 : 0 | s[p], o = qn(i, t);
813
+ return (2 & o || rt(o) || 16 & o) && (o === i || rt(o) || z(s, o), s = we(s), i = 0, o = nt(o, t), K(e, t, r, s, n)), o &= -13, o !== i && z(s, o), s;
814
814
  }
815
815
  function sn(e, t) {
816
816
  var r = sa;
817
817
  return Yn(zn(e = e.v), e, void 0, r) === t ? t : -1;
818
818
  }
819
819
  function zn(e) {
820
- if (xt) return e[Wt] ?? (e[Wt] = /* @__PURE__ */ new Map());
820
+ if (Mt) return e[Wt] ?? (e[Wt] = /* @__PURE__ */ new Map());
821
821
  if (Wt in e) return e[Wt];
822
822
  const t = /* @__PURE__ */ new Map();
823
823
  return Object.defineProperty(e, Wt, { value: t }), t;
824
824
  }
825
825
  function fo(e, t, r, n, s) {
826
826
  const i = zn(e), o = Yn(i, e, t, r, s);
827
- return o !== n && (o && (t = q(e, t, o, void 0, s)), i.set(r, n)), t;
827
+ return o !== n && (o && (t = K(e, t, o, void 0, s)), i.set(r, n)), t;
828
828
  }
829
829
  function Yn(e, t, r, n, s) {
830
830
  let i = e.get(n);
@@ -832,7 +832,7 @@ function Yn(e, t, r, n, s) {
832
832
  i = 0;
833
833
  for (let o = 0; o < n.length; o++) {
834
834
  const a = n[o];
835
- Be(t, a, s) != null && (i !== 0 && (r = q(t, r, i, void 0, s)), i = a);
835
+ Be(t, a, s) != null && (i !== 0 && (r = K(t, r, i, void 0, s)), i = a);
836
836
  }
837
837
  return e.set(n, i), i;
838
838
  }
@@ -848,7 +848,7 @@ function $n(e, t, r) {
848
848
  const a = 0 | o[p];
849
849
  2 & a && (o = Rt(o, a));
850
850
  }
851
- return o = tt(o, t), o !== i && q(e, n, r, o, s), o;
851
+ return o = tt(o, t), o !== i && K(e, n, r, o, s), o;
852
852
  }
853
853
  function po(e, t, r, n, s) {
854
854
  let i = !1;
@@ -862,14 +862,14 @@ function k(e, t, r, n) {
862
862
  if ((t = po(s, i, t, r, n)) == null) return t;
863
863
  if (i = 0 | s[p], !ue(e, i)) {
864
864
  const o = Hn(t);
865
- o !== t && (Nt(e) && (s = e.v, i = 0 | s[p]), i = q(s, i, r, t = o, n), ht(s, i));
865
+ o !== t && (Nt(e) && (s = e.v, i = 0 | s[p]), i = K(s, i, r, t = o, n), ht(s, i));
866
866
  }
867
867
  return t;
868
868
  }
869
869
  function go(e, t, r, n, s, i, o, a) {
870
870
  var c = ue(e, r);
871
871
  i = c ? 1 : i, o = !!o || i === 3, c = a && !c, (i === 2 || c) && Nt(e) && (r = 0 | (t = e.v)[p]);
872
- var l = (e = qn(t, s)) === ut ? 7 : 0 | e[p], u = Kn(l, r);
872
+ var l = (e = Kn(t, s)) === ut ? 7 : 0 | e[p], u = qn(l, r);
873
873
  if (a = !(4 & u)) {
874
874
  var f = e, y = r;
875
875
  const b = !!(2 & u);
@@ -888,14 +888,14 @@ function go(e, t, r, n, s, i, o, a) {
888
888
  Xe < Te && (f.length = Xe), u |= 4, u = Gt ? -4097 & u : 4096 | u, u = C ? 8 | u : -9 & u;
889
889
  }
890
890
  if (u !== l && (z(e, u), 2 & u && Object.freeze(e)), c && !(8 & u || !e.length && (i === 1 || i === 4 && (2 & u || !(16 & u) && 32 & r)))) {
891
- for (rt(u) && (e = we(e), u = nt(u, r), r = q(t, r, s, e)), n = e, c = u, l = 0; l < n.length; l++) (f = n[l]) !== (u = Hn(f)) && (n[l] = u);
891
+ for (rt(u) && (e = we(e), u = nt(u, r), r = K(t, r, s, e)), n = e, c = u, l = 0; l < n.length; l++) (f = n[l]) !== (u = Hn(f)) && (n[l] = u);
892
892
  c |= 8, z(e, u = c = n.length ? 4096 | c : -4097 & c);
893
893
  }
894
894
  return uo(e, u, t, r, s, i, a, o);
895
895
  }
896
896
  function je(e, t, r) {
897
897
  const n = e.v;
898
- return go(e, n, 0 | n[p], t, r, Qe(), !1, !0);
898
+ return go(e, n, 0 | n[p], t, r, Ze(), !1, !0);
899
899
  }
900
900
  function mo(e) {
901
901
  return e == null && (e = void 0), e;
@@ -914,7 +914,7 @@ function Xt(e, t, r, n) {
914
914
  if (Yn(a, i, o, r) !== t) break e;
915
915
  a.set(r, 0);
916
916
  } else o = fo(i, o, r, t);
917
- q(i, o, t, s);
917
+ K(i, o, t, s);
918
918
  }
919
919
  n && !ue(n) && ht(e.v);
920
920
  }
@@ -926,17 +926,17 @@ function Xn(e, t, r, n) {
926
926
  Ct(e), e = go(e, n = e.v, 0 | n[p], r, t, 2, !0), s = s ?? new r(), e.push(s), t = r = e === ut ? 7 : 0 | e[p], (s = ue(s)) ? (r &= -9, e.length === 1 && (r &= -4097)) : r |= 4096, r !== t && z(e, r), s || ht(n);
927
927
  }
928
928
  function ve(e, t, r) {
929
- return It(O(e, t, void 0, r));
929
+ return xt(I(e, t, void 0, r));
930
930
  }
931
931
  function _o(e) {
932
- return (Fn ? O(e, 2, void 0, void 0, br) : br(O(e, 2))) ?? V2;
932
+ return (Fn ? I(e, 2, void 0, void 0, br) : br(I(e, 2))) ?? V2;
933
933
  }
934
934
  function B(e, t) {
935
- return O(e, t, void 0, void 0, Oe) ?? 0;
935
+ return I(e, t, void 0, void 0, Ie) ?? 0;
936
936
  }
937
937
  function Ue(e, t, r) {
938
938
  if (r != null) {
939
- if (typeof r != "number" || !xr(r)) throw fn("int32");
939
+ if (typeof r != "number" || !Mr(r)) throw fn("int32");
940
940
  r |= 0;
941
941
  }
942
942
  T(e, t, r);
@@ -952,19 +952,19 @@ function wr(e, t, r) {
952
952
  Ct(e);
953
953
  const o = e.v;
954
954
  let a = 0 | o[p];
955
- if (r == null) q(o, a, t);
955
+ if (r == null) K(o, a, t);
956
956
  else {
957
957
  var n = e = r === ut ? 7 : 0 | r[p], s = rt(e), i = s || Object.isFrozen(r);
958
958
  for (s || (e = 0), i || (r = we(r), n = 0, e = nt(e, a), i = !1), e |= 5, e |= (4 & e ? 512 & e ? 512 : 1024 & e ? 1024 : 0 : void 0) ?? (Fn ? 1024 : 0), s = 0; s < r.length; s++) {
959
959
  const c = r[s], l = oo(c);
960
960
  Object.is(c, l) || (i && (r = we(r), n = 0, e = nt(e, a), i = !1), r[s] = l);
961
961
  }
962
- e !== n && (i && (r = we(r), e = nt(e, a)), z(r, e)), q(o, a, t, r);
962
+ e !== n && (i && (r = we(r), e = nt(e, a)), z(r, e)), K(o, a, t, r);
963
963
  }
964
964
  }
965
965
  }
966
966
  function Rr(e, t, r) {
967
- Ct(e), et(e, t, Z, 2, !0).push(oo(r));
967
+ Ct(e), et(e, t, Q, 2, !0).push(oo(r));
968
968
  }
969
969
  var dt = class {
970
970
  constructor(e, t, r) {
@@ -973,11 +973,11 @@ var dt = class {
973
973
  }
974
974
  };
975
975
  function Jn(e, t) {
976
- if (typeof e == "string") return new dt(Ki(e), t);
976
+ if (typeof e == "string") return new dt(qi(e), t);
977
977
  if (Array.isArray(e)) return new dt(new Uint8Array(e), t);
978
978
  if (e.constructor === Uint8Array) return new dt(e, !1);
979
979
  if (e.constructor === ArrayBuffer) return e = new Uint8Array(e), new dt(e, !1);
980
- if (e.constructor === Me) return t = Rn(e) || new Uint8Array(0), new dt(t, !0, e);
980
+ if (e.constructor === Oe) return t = Rn(e) || new Uint8Array(0), new dt(t, !0, e);
981
981
  if (e instanceof Uint8Array) return e = e.constructor === Uint8Array ? e : new Uint8Array(e.buffer, e.byteOffset, e.byteLength), new dt(e, !1);
982
982
  throw Error();
983
983
  }
@@ -992,7 +992,7 @@ function St(e, t) {
992
992
  if (st(e, a), !(128 & r)) return t(n >>> 0, s >>> 0);
993
993
  throw Error();
994
994
  }
995
- function Zn(e) {
995
+ function Qn(e) {
996
996
  let t = 0, r = e.g;
997
997
  const n = r + 10, s = e.h;
998
998
  for (; r < n; ) {
@@ -1032,9 +1032,9 @@ function yo(e, t) {
1032
1032
  function vo(e, t) {
1033
1033
  if (t == 0) return ot();
1034
1034
  var r = yo(e, t);
1035
- return e.Y && e.j ? r = e.h.subarray(r, r + t) : (e = e.h, r = r === (t = r + t) ? new Uint8Array(0) : E2 ? e.slice(r, t) : new Uint8Array(e.subarray(r, t))), r.length == 0 ? ot() : new Me(r, vt);
1035
+ return e.Y && e.j ? r = e.h.subarray(r, r + t) : (e = e.h, r = r === (t = r + t) ? new Uint8Array(0) : E2 ? e.slice(r, t) : new Uint8Array(e.subarray(r, t))), r.length == 0 ? ot() : new Oe(r, vt);
1036
1036
  }
1037
- var Qs = [];
1037
+ var Zs = [];
1038
1038
  function bo(e, t, r, n) {
1039
1039
  if (kr.length) {
1040
1040
  const s = kr.pop();
@@ -1056,7 +1056,7 @@ function wo(e) {
1056
1056
  function yr(e) {
1057
1057
  switch (e.h) {
1058
1058
  case 0:
1059
- e.h != 0 ? yr(e) : Zn(e.g);
1059
+ e.h != 0 ? yr(e) : Qn(e.g);
1060
1060
  break;
1061
1061
  case 1:
1062
1062
  st(e = e.g, e.g + 8);
@@ -1092,7 +1092,7 @@ function ur(e, t, r) {
1092
1092
  if (i <= 0 && (e.g.l = s, r(t, e, void 0, void 0, void 0), i = s - e.g.g), i) throw Error();
1093
1093
  return e.g.g = s, e.g.l = n, t;
1094
1094
  }
1095
- function Qn(e) {
1095
+ function Zn(e) {
1096
1096
  var t = Ve(e.g), r = yo(e = e.g, t);
1097
1097
  if (e = e.h, e2) {
1098
1098
  var n, s = e;
@@ -1134,8 +1134,8 @@ function Nr(e, t, r) {
1134
1134
  }
1135
1135
  var H2 = class {
1136
1136
  constructor(e, t, r, n) {
1137
- if (Qs.length) {
1138
- const s = Qs.pop();
1137
+ if (Zs.length) {
1138
+ const s = Zs.pop();
1139
1139
  s.init(e, t, r, n), e = s;
1140
1140
  } else e = new class {
1141
1141
  constructor(s, i, o, a) {
@@ -1155,7 +1155,7 @@ var H2 = class {
1155
1155
  }
1156
1156
  }, kr = [];
1157
1157
  function ei(e) {
1158
- return e ? /^\d+$/.test(e) ? (Mr(e), new _n(F, U)) : null : W2 || (W2 = new _n(0, 0));
1158
+ return e ? /^\d+$/.test(e) ? (Or(e), new _n(F, U)) : null : W2 || (W2 = new _n(0, 0));
1159
1159
  }
1160
1160
  var _n = class {
1161
1161
  constructor(e, t) {
@@ -1164,14 +1164,14 @@ var _n = class {
1164
1164
  };
1165
1165
  let W2;
1166
1166
  function ti(e) {
1167
- return e ? /^-?\d+$/.test(e) ? (Mr(e), new yn(F, U)) : null : q2 || (q2 = new yn(0, 0));
1167
+ return e ? /^-?\d+$/.test(e) ? (Or(e), new yn(F, U)) : null : K2 || (K2 = new yn(0, 0));
1168
1168
  }
1169
1169
  var yn = class {
1170
1170
  constructor(e, t) {
1171
1171
  this.h = e >>> 0, this.g = t >>> 0;
1172
1172
  }
1173
1173
  };
1174
- let q2;
1174
+ let K2;
1175
1175
  function mt(e, t, r) {
1176
1176
  for (; r > 0 || t > 127; ) e.g.push(127 & t | 128), t = (t >>> 7 | r << 25) >>> 0, r >>>= 7;
1177
1177
  e.g.push(t);
@@ -1219,8 +1219,8 @@ function Fe() {
1219
1219
  };
1220
1220
  return Object.setPrototypeOf(e, e.prototype), e;
1221
1221
  }
1222
- var ns = Fe(), ko = Fe(), ss = Fe(), is = Fe(), So = Fe(), To = Fe(), K2 = Fe(), Br = Fe(), Lo = Fe(), Po = Fe();
1223
- function Ie(e, t, r) {
1222
+ var ns = Fe(), ko = Fe(), ss = Fe(), is = Fe(), So = Fe(), To = Fe(), q2 = Fe(), Br = Fe(), Lo = Fe(), Po = Fe();
1223
+ function xe(e, t, r) {
1224
1224
  var n = e.v;
1225
1225
  ae && ae in n && (n = n[ae]) && delete n[t.g], t.h ? t.j(e, t.h, t.g, r, t.l) : t.j(e, t.g, r, t.l);
1226
1226
  }
@@ -1234,7 +1234,7 @@ var g = class {
1234
1234
  j() {
1235
1235
  var s;
1236
1236
  var e = P1, t = this.v, r = e.g, n = ae;
1237
- if (xt && n && ((s = t[n]) == null ? void 0 : s[r]) != null && bt(l2, 3), t = e.g, Gs && ae && Gs === void 0 && (n = (r = this.v)[ae]) && (n = n.da)) try {
1237
+ if (Mt && n && ((s = t[n]) == null ? void 0 : s[r]) != null && bt(l2, 3), t = e.g, Gs && ae && Gs === void 0 && (n = (r = this.v)[ae]) && (n = n.da)) try {
1238
1238
  n(r, t, N2);
1239
1239
  } catch (i) {
1240
1240
  Gi(i);
@@ -1257,16 +1257,16 @@ var jt = class {
1257
1257
  function jr(e, t) {
1258
1258
  return new jt(e, t, ns);
1259
1259
  }
1260
- function Oo(e, t, r, n, s) {
1261
- Sr(e, r, Io(t, n), s);
1260
+ function Io(e, t, r, n, s) {
1261
+ Sr(e, r, xo(t, n), s);
1262
1262
  }
1263
1263
  const z2 = jr(function(e, t, r, n, s) {
1264
1264
  return e.h === 2 && (ur(e, $n(t, n, r), s), !0);
1265
- }, Oo), Y2 = jr(function(e, t, r, n, s) {
1265
+ }, Io), Y2 = jr(function(e, t, r, n, s) {
1266
1266
  return e.h === 2 && (ur(e, $n(t, n, r), s), !0);
1267
- }, Oo);
1267
+ }, Io);
1268
1268
  var Ur = Symbol(), Vr = Symbol(), vn = Symbol(), ri = Symbol(), ni = Symbol();
1269
- let Mo, xo;
1269
+ let Oo, Mo;
1270
1270
  function lt(e, t, r, n) {
1271
1271
  var s = n[e];
1272
1272
  if (s) return s;
@@ -1284,7 +1284,7 @@ function lt(e, t, r, n) {
1284
1284
  }(n[0]);
1285
1285
  var i = n[1];
1286
1286
  let o = 1;
1287
- i && i.constructor === Object && (s.ba = i, typeof (i = n[++o]) == "function" && (s.ma = !0, Mo ?? (Mo = i), xo ?? (xo = n[o + 1]), i = n[o += 2]));
1287
+ i && i.constructor === Object && (s.ba = i, typeof (i = n[++o]) == "function" && (s.ma = !0, Oo ?? (Oo = i), Mo ?? (Mo = n[o + 1]), i = n[o += 2]));
1288
1288
  const a = {};
1289
1289
  for (; i && Array.isArray(i) && i.length && typeof i[0] == "number" && i[0] > 0; ) {
1290
1290
  for (var c = 0; c < i.length; c++) a[i[c]] = i;
@@ -1309,7 +1309,7 @@ function lt(e, t, r, n) {
1309
1309
  function Fo(e) {
1310
1310
  return Array.isArray(e) ? e[0] instanceof jt ? e : [Y2, e] : [e, void 0];
1311
1311
  }
1312
- function Io(e, t) {
1312
+ function xo(e, t) {
1313
1313
  return e instanceof g ? e.v : Array.isArray(e) ? tt(e, t) : void 0;
1314
1314
  }
1315
1315
  function os(e, t, r, n) {
@@ -1325,7 +1325,7 @@ function cs(e) {
1325
1325
  let t = e[vn];
1326
1326
  if (t != null) return t;
1327
1327
  const r = lt(Vr, os, as, e);
1328
- return t = r.ma ? (n, s) => Mo(n, s, r) : (n, s) => {
1328
+ return t = r.ma ? (n, s) => Oo(n, s, r) : (n, s) => {
1329
1329
  for (; wo(s) && s.h != 4; ) {
1330
1330
  var i = s.l, o = r[i];
1331
1331
  if (o == null) {
@@ -1370,7 +1370,7 @@ function $2(e, t, r, n) {
1370
1370
  if ((r == null ? void 0 : r.Qa) === 1) return;
1371
1371
  throw Error();
1372
1372
  }
1373
- C != null && (u = q(e, u, b, C, f)), delete a[b];
1373
+ C != null && (u = K(e, u, b, C, f)), delete a[b];
1374
1374
  };
1375
1375
  t == null ? Ji(o, 0 | o[p], (b, C) => {
1376
1376
  y(b, C);
@@ -1413,7 +1413,7 @@ function No(e, t, r) {
1413
1413
  var l = (c = Fo(c))[0].h;
1414
1414
  if (c = c[1]) {
1415
1415
  const u = Ro(c), f = lt(Ur, Gr, Hr, c).T;
1416
- c = o.ma ? xo(f, u) : (y, b, C) => l(y, b, C, f, u);
1416
+ c = o.ma ? Mo(f, u) : (y, b, C) => l(y, b, C, f, u);
1417
1417
  } else c = l;
1418
1418
  return o[a] = c;
1419
1419
  }
@@ -1443,17 +1443,17 @@ function Vt(e, t, r) {
1443
1443
  return new jt(e, t, r);
1444
1444
  }
1445
1445
  function J(e, t, r) {
1446
- q(e, 0 | e[p], t, r, Ft(0 | e[p]));
1446
+ K(e, 0 | e[p], t, r, Ft(0 | e[p]));
1447
1447
  }
1448
- var Z2 = jr(function(e, t, r, n, s) {
1448
+ var Q2 = jr(function(e, t, r, n, s) {
1449
1449
  if (e.h !== 2) return !1;
1450
1450
  if (e = we(e = ur(e, tt([void 0, void 0], n), s)), s = Ft(n = 0 | t[p]), 2 & n) throw Error();
1451
1451
  let i = Be(t, r, s);
1452
- if (i instanceof De) 2 & i.J ? (i = i.V(), i.push(e), q(t, n, r, i, s)) : i.Ma(e);
1452
+ if (i instanceof De) 2 & i.J ? (i = i.V(), i.push(e), K(t, n, r, i, s)) : i.Ma(e);
1453
1453
  else if (Array.isArray(i)) {
1454
1454
  var o = 0 | i[p];
1455
- 8192 & o || z(i, o |= 8192), 2 & o && (i = lo(i), q(t, n, r, i, s)), i.push(e);
1456
- } else q(t, n, r, er([e]), s);
1455
+ 8192 & o || z(i, o |= 8192), 2 & o && (i = lo(i), K(t, n, r, i, s)), i.push(e);
1456
+ } else K(t, n, r, er([e]), s);
1457
1457
  return !0;
1458
1458
  }, function(e, t, r, n, s) {
1459
1459
  if (t instanceof De) t.forEach((i, o) => {
@@ -1468,7 +1468,7 @@ var Z2 = jr(function(e, t, r, n, s) {
1468
1468
  }
1469
1469
  });
1470
1470
  function Co(e, t, r) {
1471
- (t = Oe(t)) != null && (be(e, r, 5), e = e.g, Cn(t), es(e));
1471
+ (t = Ie(t)) != null && (be(e, r, 5), e = e.g, Cn(t), es(e));
1472
1472
  }
1473
1473
  function Do(e, t, r) {
1474
1474
  if (t = function(n) {
@@ -1492,50 +1492,50 @@ function Do(e, t, r) {
1492
1492
  }
1493
1493
  }
1494
1494
  function Bo(e, t, r) {
1495
- (t = It(t)) != null && t != null && (be(e, r, 0), Cr(e.g, t));
1495
+ (t = xt(t)) != null && t != null && (be(e, r, 0), Cr(e.g, t));
1496
1496
  }
1497
1497
  function jo(e, t, r) {
1498
1498
  (t = eo(t)) != null && (be(e, r, 0), e.g.g.push(t ? 1 : 0));
1499
1499
  }
1500
1500
  function Uo(e, t, r) {
1501
- (t = Z(t)) != null && Dr(e, r, Vi(t));
1501
+ (t = Q(t)) != null && Dr(e, r, Vi(t));
1502
1502
  }
1503
1503
  function Vo(e, t, r, n, s) {
1504
- Sr(e, r, Io(t, n), s);
1504
+ Sr(e, r, xo(t, n), s);
1505
1505
  }
1506
1506
  function Go(e, t, r) {
1507
- (t = t == null || typeof t == "string" || t instanceof Me ? t : void 0) != null && Dr(e, r, Jn(t, !0).buffer);
1507
+ (t = t == null || typeof t == "string" || t instanceof Oe ? t : void 0) != null && Dr(e, r, Jn(t, !0).buffer);
1508
1508
  }
1509
1509
  function Ho(e, t, r) {
1510
1510
  return (e.h === 5 || e.h === 2) && (t = Dt(t, 0 | t[p], r), e.h == 2 ? Nr(e, Ar, t) : t.push(Ar(e.g)), !0);
1511
1511
  }
1512
1512
  var V = ee(function(e, t, r) {
1513
1513
  return e.h === 5 && (J(t, r, Ar(e.g)), !0);
1514
- }, Co, Br), Q2 = Vt(Ho, function(e, t, r) {
1515
- if ((t = Ut(Oe, t)) != null) for (let o = 0; o < t.length; o++) {
1514
+ }, Co, Br), Z2 = Vt(Ho, function(e, t, r) {
1515
+ if ((t = Ut(Ie, t)) != null) for (let o = 0; o < t.length; o++) {
1516
1516
  var n = e, s = r, i = t[o];
1517
1517
  i != null && (be(n, s, 5), n = n.g, Cn(i), es(n));
1518
1518
  }
1519
1519
  }, Br), us = Vt(Ho, function(e, t, r) {
1520
- if ((t = Ut(Oe, t)) != null && t.length) {
1520
+ if ((t = Ut(Ie, t)) != null && t.length) {
1521
1521
  be(e, r, 2), Bt(e.g, 4 * t.length);
1522
1522
  for (let n = 0; n < t.length; n++) r = e.g, Cn(t[n]), es(r);
1523
1523
  }
1524
1524
  }, Br), e1 = ee(function(e, t, r) {
1525
1525
  return e.h === 5 && (J(t, r, (e = Ar(e.g)) === 0 ? void 0 : e), !0);
1526
1526
  }, Co, Br), Ye = ee(function(e, t, r) {
1527
- return xn ? (e.h !== 0 ? e = !1 : (J(t, r, St(e.g, Qi)), e = !0), e) : e.h === 0 && (J(t, r, St(e.g, Dn)), !0);
1527
+ return Mn ? (e.h !== 0 ? e = !1 : (J(t, r, St(e.g, Zi)), e = !0), e) : e.h === 0 && (J(t, r, St(e.g, Dn)), !0);
1528
1528
  }, Do, To), on = ee(function(e, t, r) {
1529
- return xn ? (e.h !== 0 ? t = !1 : (J(t, r, (e = St(e.g, Qi)) === J2 ? void 0 : e), t = !0), t) : e.h === 0 && (J(t, r, (e = St(e.g, Dn)) === 0 ? void 0 : e), !0);
1529
+ return Mn ? (e.h !== 0 ? t = !1 : (J(t, r, (e = St(e.g, Zi)) === J2 ? void 0 : e), t = !0), t) : e.h === 0 && (J(t, r, (e = St(e.g, Dn)) === 0 ? void 0 : e), !0);
1530
1530
  }, Do, To), t1 = ee(function(e, t, r) {
1531
- return xn ? (e.h !== 0 ? e = !1 : (J(t, r, St(e.g, A2)), e = !0), e) : e.h === 0 && (J(t, r, St(e.g, gn)), !0);
1531
+ return Mn ? (e.h !== 0 ? e = !1 : (J(t, r, St(e.g, A2)), e = !0), e) : e.h === 0 && (J(t, r, St(e.g, gn)), !0);
1532
1532
  }, function(e, t, r) {
1533
1533
  if (t = function(n) {
1534
1534
  if (n == null) return n;
1535
1535
  var s = typeof n;
1536
1536
  if (s === "bigint") return String(k2(64, n));
1537
1537
  if (ar(n)) {
1538
- if (s === "string") return s = kt(Number(n)), ct(s) && s >= 0 ? n = String(s) : ((s = n.indexOf(".")) !== -1 && (n = n.substring(0, s)), (s = n[0] !== "-" && ((s = n.length) < 20 || s === 20 && n <= "18446744073709551615")) || (Mr(n), n = tr(F, U))), n;
1538
+ if (s === "string") return s = kt(Number(n)), ct(s) && s >= 0 ? n = String(s) : ((s = n.indexOf(".")) !== -1 && (n = n.substring(0, s)), (s = n[0] !== "-" && ((s = n.length) < 20 || s === 20 && n <= "18446744073709551615")) || (Or(n), n = tr(F, U))), n;
1539
1539
  if (s === "number") return (n = kt(n)) >= 0 && ct(n) || (At(n), n = gn(F, U)), n;
1540
1540
  }
1541
1541
  }(t), t != null && (typeof t == "string" && ei(t), t != null))
@@ -1549,12 +1549,12 @@ var V = ee(function(e, t, r) {
1549
1549
  default:
1550
1550
  r = ei(t), mt(e.g, r.h, r.g);
1551
1551
  }
1552
- }, K2), X = ee(function(e, t, r) {
1552
+ }, q2), X = ee(function(e, t, r) {
1553
1553
  return e.h === 0 && (J(t, r, ze(e.g)), !0);
1554
1554
  }, Bo, is), hr = Vt(function(e, t, r) {
1555
1555
  return (e.h === 0 || e.h === 2) && (t = Dt(t, 0 | t[p], r), e.h == 2 ? Nr(e, ze, t) : t.push(ze(e.g)), !0);
1556
1556
  }, function(e, t, r) {
1557
- if ((t = Ut(It, t)) != null && t.length) {
1557
+ if ((t = Ut(xt, t)) != null && t.length) {
1558
1558
  r = ts(e, r);
1559
1559
  for (let n = 0; n < t.length; n++) Cr(e.g, t[n]);
1560
1560
  rs(e, r);
@@ -1562,20 +1562,20 @@ var V = ee(function(e, t, r) {
1562
1562
  }, is), gt = ee(function(e, t, r) {
1563
1563
  return e.h === 0 && (J(t, r, (e = ze(e.g)) === 0 ? void 0 : e), !0);
1564
1564
  }, Bo, is), j = ee(function(e, t, r) {
1565
- return e.h === 0 && (J(t, r, Zn(e.g)), !0);
1565
+ return e.h === 0 && (J(t, r, Qn(e.g)), !0);
1566
1566
  }, jo, ko), it = ee(function(e, t, r) {
1567
- return e.h === 0 && (J(t, r, (e = Zn(e.g)) === !1 ? void 0 : e), !0);
1568
- }, jo, ko), Q = Vt(function(e, t, r) {
1569
- return e.h === 2 && (e = Qn(e), Dt(t, 0 | t[p], r).push(e), !0);
1567
+ return e.h === 0 && (J(t, r, (e = Qn(e.g)) === !1 ? void 0 : e), !0);
1568
+ }, jo, ko), Z = Vt(function(e, t, r) {
1569
+ return e.h === 2 && (e = Zn(e), Dt(t, 0 | t[p], r).push(e), !0);
1570
1570
  }, function(e, t, r) {
1571
- if ((t = Ut(Z, t)) != null) for (let o = 0; o < t.length; o++) {
1571
+ if ((t = Ut(Q, t)) != null) for (let o = 0; o < t.length; o++) {
1572
1572
  var n = e, s = r, i = t[o];
1573
1573
  i != null && Dr(n, s, Vi(i));
1574
1574
  }
1575
- }, ss), qe = ee(function(e, t, r) {
1576
- return e.h === 2 && (J(t, r, (e = Qn(e)) === "" ? void 0 : e), !0);
1575
+ }, ss), Ke = ee(function(e, t, r) {
1576
+ return e.h === 2 && (J(t, r, (e = Zn(e)) === "" ? void 0 : e), !0);
1577
1577
  }, Uo, ss), L = ee(function(e, t, r) {
1578
- return e.h === 2 && (J(t, r, Qn(e)), !0);
1578
+ return e.h === 2 && (J(t, r, Zn(e)), !0);
1579
1579
  }, Uo, ss), $ = function(e, t, r = ns) {
1580
1580
  return new jt(e, t, r);
1581
1581
  }(function(e, t, r, n, s) {
@@ -1605,12 +1605,12 @@ var V = ee(function(e, t, r) {
1605
1605
  }, So), le = ee(function(e, t, r) {
1606
1606
  return e.h === 0 && (J(t, r, ze(e.g)), !0);
1607
1607
  }, function(e, t, r) {
1608
- (t = It(t)) != null && (t = parseInt(t, 10), be(e, r, 0), Cr(e.g, t));
1608
+ (t = xt(t)) != null && (t = parseInt(t, 10), be(e, r, 0), Cr(e.g, t));
1609
1609
  }, Po);
1610
1610
  class s1 {
1611
1611
  constructor(t, r) {
1612
1612
  var n = de;
1613
- this.g = t, this.h = r, this.m = k, this.j = v, this.defaultValue = void 0, this.l = n.Oa != null ? Zi : void 0;
1613
+ this.g = t, this.h = r, this.m = k, this.j = v, this.defaultValue = void 0, this.l = n.Oa != null ? Qi : void 0;
1614
1614
  }
1615
1615
  register() {
1616
1616
  Lr(this);
@@ -1667,7 +1667,7 @@ var si = class extends g {
1667
1667
  constructor(e) {
1668
1668
  super(e);
1669
1669
  }
1670
- }, ii = [0, qe, ee(function(e, t, r) {
1670
+ }, ii = [0, Ke, ee(function(e, t, r) {
1671
1671
  return e.h === 2 && (J(t, r, (e = Ao(e)) === ot() ? void 0 : e), !0);
1672
1672
  }, function(e, t, r) {
1673
1673
  if (t != null) {
@@ -1706,14 +1706,14 @@ function i1(e, ...t) {
1706
1706
  for (let n = 0; n < t.length; n++) r += encodeURIComponent(t[n]) + e[n + 1];
1707
1707
  return ai(r);
1708
1708
  }
1709
- var qo = [0, X, le, j, -1, hr, le, -1, j], o1 = class extends g {
1709
+ var Ko = [0, X, le, j, -1, hr, le, -1, j], o1 = class extends g {
1710
1710
  constructor(e) {
1711
1711
  super(e);
1712
1712
  }
1713
- }, Ko = [0, j, L, j, le, -1, Vt(function(e, t, r) {
1713
+ }, qo = [0, j, L, j, le, -1, Vt(function(e, t, r) {
1714
1714
  return (e.h === 0 || e.h === 2) && (t = Dt(t, 0 | t[p], r), e.h == 2 ? Nr(e, G2, t) : t.push(ze(e.g)), !0);
1715
1715
  }, function(e, t, r) {
1716
- if ((t = Ut(It, t)) != null && t.length) {
1716
+ if ((t = Ut(xt, t)) != null && t.length) {
1717
1717
  r = ts(e, r);
1718
1718
  for (let n = 0; n < t.length; n++) Cr(e.g, t[n]);
1719
1719
  rs(e, r);
@@ -1726,10 +1726,10 @@ var qo = [0, X, le, j, -1, hr, le, -1, j], o1 = class extends g {
1726
1726
  constructor(e) {
1727
1727
  super(e, 2);
1728
1728
  }
1729
- }, K = {};
1730
- K[336783863] = [0, L, j, -1, X, [0, [1, 2, 3, 4, 5, 6, 7, 8, 9], D, $o, D, Ko, D, Yo, D, Xo, D, qo, D, [0, L, -2], D, [0, L, le], D, zo, D, [0, le, -1, j]], [0, L], j, [0, [1, 3], [2, 4], D, [0, hr], -1, D, [0, Q], -1, $, [0, L, -1]], L];
1731
- var ui = [0, on, -1, it, -3, on, hr, qe, gt, on, -1, it, gt, it, -2, qe];
1732
- function M(e, t) {
1729
+ }, q = {};
1730
+ q[336783863] = [0, L, j, -1, X, [0, [1, 2, 3, 4, 5, 6, 7, 8, 9], D, $o, D, qo, D, Yo, D, Xo, D, Ko, D, [0, L, -2], D, [0, L, le], D, zo, D, [0, le, -1, j]], [0, L], j, [0, [1, 3], [2, 4], D, [0, hr], -1, D, [0, Z], -1, $, [0, L, -1]], L];
1731
+ var ui = [0, on, -1, it, -3, on, hr, Ke, gt, on, -1, it, gt, it, -2, Ke];
1732
+ function O(e, t) {
1733
1733
  Rr(e, 3, t);
1734
1734
  }
1735
1735
  function w(e, t) {
@@ -1742,11 +1742,11 @@ var ne = class extends g {
1742
1742
  o(e) {
1743
1743
  return v(this, 0, 7, e);
1744
1744
  }
1745
- }, Jt = [-1, {}], hi = [0, L, 1, Jt], li = [0, L, Q, Jt];
1745
+ }, Jt = [-1, {}], hi = [0, L, 1, Jt], li = [0, L, Z, Jt];
1746
1746
  function Ee(e, t) {
1747
1747
  Xn(e, 1, ne, t);
1748
1748
  }
1749
- function I(e, t) {
1749
+ function x(e, t) {
1750
1750
  Rr(e, 10, t);
1751
1751
  }
1752
1752
  function S(e, t) {
@@ -1759,20 +1759,20 @@ var pe = class extends g {
1759
1759
  o(e) {
1760
1760
  return v(this, 0, 1001, e);
1761
1761
  }
1762
- }, Jo = [-500, $, [-500, qe, -1, Q, -3, [-2, K, j], $, ii, gt, -1, hi, li, $, [0, qe, it], qe, ui, gt, Q, 987, Q], 4, $, [-500, L, -1, [-1, {}], 998, L], $, [-500, L, Q, -1, [-2, {}, j], 997, Q, -1], gt, $, [-500, L, Q, Jt, 998, Q], Q, gt, hi, li, $, [0, qe, -1, Jt], Q, -2, ui, qe, -1, it, [0, it, n1], 978, Jt, $, ii];
1762
+ }, Jo = [-500, $, [-500, Ke, -1, Z, -3, [-2, q, j], $, ii, gt, -1, hi, li, $, [0, Ke, it], Ke, ui, gt, Z, 987, Z], 4, $, [-500, L, -1, [-1, {}], 998, L], $, [-500, L, Z, -1, [-2, {}, j], 997, Z, -1], gt, $, [-500, L, Z, Jt, 998, Z], Z, gt, hi, li, $, [0, Ke, -1, Jt], Z, -2, ui, Ke, -1, it, [0, it, n1], 978, Jt, $, ii];
1763
1763
  pe.prototype.g = Wr(Jo);
1764
1764
  var a1 = $e(pe, Jo), c1 = class extends g {
1765
1765
  constructor(e) {
1766
1766
  super(e);
1767
1767
  }
1768
- }, Zo = class extends g {
1768
+ }, Qo = class extends g {
1769
1769
  constructor(e) {
1770
1770
  super(e);
1771
1771
  }
1772
1772
  g() {
1773
1773
  return je(this, c1, 1);
1774
1774
  }
1775
- }, Qo = [0, $, [0, X, V, L, -1]], qr = $e(Zo, Qo), u1 = class extends g {
1775
+ }, Zo = [0, $, [0, X, V, L, -1]], Kr = $e(Qo, Zo), u1 = class extends g {
1776
1776
  constructor(e) {
1777
1777
  super(e);
1778
1778
  }
@@ -1794,7 +1794,7 @@ var a1 = $e(pe, Jo), c1 = class extends g {
1794
1794
  constructor(e) {
1795
1795
  super(e);
1796
1796
  }
1797
- }, [0, Q, hr, us, [0, le, [0, X, -3], [0, V, -3], [0, X, -1, [0, $, [0, X, -2]]], $, [0, V, -1, L, V]], L, -1, Ye, $, [0, X, V], Q, Ye]), ta = class extends g {
1797
+ }, [0, Z, hr, us, [0, le, [0, X, -3], [0, V, -3], [0, X, -1, [0, $, [0, X, -2]]], $, [0, V, -1, L, V]], L, -1, Ye, $, [0, X, V], Z, Ye]), ta = class extends g {
1798
1798
  constructor(e) {
1799
1799
  super(e);
1800
1800
  }
@@ -1828,7 +1828,7 @@ var d1 = class extends g {
1828
1828
  constructor(e) {
1829
1829
  super(e);
1830
1830
  }
1831
- }, [0, $, [0, 1, X, L, Qo], Ye]), fi = class extends g {
1831
+ }, [0, $, [0, 1, X, L, Zo], Ye]), fi = class extends g {
1832
1832
  constructor(e) {
1833
1833
  super(e);
1834
1834
  }
@@ -1837,7 +1837,7 @@ var d1 = class extends g {
1837
1837
  super(e);
1838
1838
  }
1839
1839
  na() {
1840
- const e = O(this, 1, void 0, void 0, ho);
1840
+ const e = I(this, 1, void 0, void 0, ho);
1841
1841
  return e ?? ot();
1842
1842
  }
1843
1843
  }, m1 = class extends g {
@@ -1852,7 +1852,7 @@ var d1 = class extends g {
1852
1852
  constructor(e) {
1853
1853
  super(e);
1854
1854
  }
1855
- }, ia = [0, L, X, V, Q, -1], di = class extends g {
1855
+ }, ia = [0, L, X, V, Z, -1], di = class extends g {
1856
1856
  constructor(e) {
1857
1857
  super(e);
1858
1858
  }
@@ -1865,29 +1865,29 @@ var d1 = class extends g {
1865
1865
  super(e);
1866
1866
  }
1867
1867
  g() {
1868
- return O(this, 1, void 0, void 0, ho) != null;
1868
+ return I(this, 1, void 0, void 0, ho) != null;
1869
1869
  }
1870
1870
  l() {
1871
- return Z(O(this, 2)) != null;
1871
+ return Q(I(this, 2)) != null;
1872
1872
  }
1873
1873
  }, N = class extends g {
1874
1874
  constructor(e) {
1875
1875
  super(e);
1876
1876
  }
1877
1877
  g() {
1878
- return eo(O(this, 2)) ?? !1;
1878
+ return eo(I(this, 2)) ?? !1;
1879
1879
  }
1880
- }, oa = [0, Wo, L, [0, X, Ye, -1], [0, t1, Ye]], G = [0, oa, j, [0, vr, D, Xo, D, Ko, D, qo, D, $o, D, Yo, D, zo], le], Kr = class extends g {
1880
+ }, oa = [0, Wo, L, [0, X, Ye, -1], [0, t1, Ye]], G = [0, oa, j, [0, vr, D, Xo, D, qo, D, Ko, D, $o, D, Yo, D, zo], le], qr = class extends g {
1881
1881
  constructor(e) {
1882
1882
  super(e);
1883
1883
  }
1884
- }, ls = [0, G, V, -1, X], v1 = Re(502141897, Kr);
1885
- K[502141897] = ls;
1884
+ }, ls = [0, G, V, -1, X], v1 = Re(502141897, qr);
1885
+ q[502141897] = ls;
1886
1886
  var b1 = $e(class extends g {
1887
1887
  constructor(e) {
1888
1888
  super(e);
1889
1889
  }
1890
- }, [0, [0, le, -1, Q2, r1], f1]), aa = class extends g {
1890
+ }, [0, [0, le, -1, Z2, r1], f1]), aa = class extends g {
1891
1891
  constructor(e) {
1892
1892
  super(e);
1893
1893
  }
@@ -1896,7 +1896,7 @@ var b1 = $e(class extends g {
1896
1896
  super(e);
1897
1897
  }
1898
1898
  }, bn = [0, G, V, [0, G], j], E1 = Re(508968150, ca);
1899
- K[508968150] = [0, G, ls, bn, V, [0, [0, oa]]], K[508968149] = bn;
1899
+ q[508968150] = [0, G, ls, bn, V, [0, [0, oa]]], q[508968149] = bn;
1900
1900
  var pt = class extends g {
1901
1901
  constructor(e) {
1902
1902
  super(e);
@@ -1908,7 +1908,7 @@ var pt = class extends g {
1908
1908
  T(this, 2);
1909
1909
  }
1910
1910
  }, ua = [0, G, ia];
1911
- K[478825465] = ua;
1911
+ q[478825465] = ua;
1912
1912
  var w1 = class extends g {
1913
1913
  constructor(e) {
1914
1914
  super(e);
@@ -1930,9 +1930,9 @@ var w1 = class extends g {
1930
1930
  super(e);
1931
1931
  }
1932
1932
  }, gi = [0, G, [0, G], ua, -1], fa = [0, G, V, X], ps = [0, G, V], da = [0, G, fa, ps, V], A1 = Re(479097054, la);
1933
- K[479097054] = [0, G, da, gi], K[463370452] = gi, K[464864288] = fa;
1933
+ q[479097054] = [0, G, da, gi], q[463370452] = gi, q[464864288] = fa;
1934
1934
  var k1 = Re(462713202, ds);
1935
- K[462713202] = da, K[474472470] = ps;
1935
+ q[462713202] = da, q[474472470] = ps;
1936
1936
  var S1 = class extends g {
1937
1937
  constructor(e) {
1938
1938
  super(e);
@@ -1956,13 +1956,13 @@ var _a = class extends g {
1956
1956
  super(e);
1957
1957
  }
1958
1958
  }, T1 = Re(456383383, _a);
1959
- K[456383383] = [0, G, ia];
1959
+ q[456383383] = [0, G, ia];
1960
1960
  var ya = class extends g {
1961
1961
  constructor(e) {
1962
1962
  super(e);
1963
1963
  }
1964
1964
  }, L1 = Re(476348187, ya);
1965
- K[476348187] = [0, G, y1];
1965
+ q[476348187] = [0, G, y1];
1966
1966
  var va = class extends g {
1967
1967
  constructor(e) {
1968
1968
  super(e);
@@ -1994,22 +1994,22 @@ var va = class extends g {
1994
1994
  if (!c.length) return Xs();
1995
1995
  n || (n = !0, ir(c));
1996
1996
  } else n && (n = !1, er(c), c = lo(c));
1997
- return !n && 32 & i && sr(c, 32), i = q(s, i, 2, o = new De(c, a, P2, void 0)), n || ht(s, i), o;
1997
+ return !n && 32 & i && sr(c, 32), i = K(s, i, 2, o = new De(c, a, P2, void 0)), n || ht(s, i), o;
1998
1998
  }(this, t, r, e), !e && mi && (t.ra = !0), t;
1999
1999
  }
2000
2000
  });
2001
- K[458105876] = [0, ba, Z2, [!0, Ye, [0, L, -1, Q]], [0, hr, j, le]];
2001
+ q[458105876] = [0, ba, Q2, [!0, Ye, [0, L, -1, Z]], [0, hr, j, le]];
2002
2002
  var ms = class extends g {
2003
2003
  constructor(e) {
2004
2004
  super(e);
2005
2005
  }
2006
2006
  }, Ea = Re(458105758, ms);
2007
- K[458105758] = [0, G, L, ba];
2007
+ q[458105758] = [0, G, L, ba];
2008
2008
  var un = class extends g {
2009
2009
  constructor(e) {
2010
2010
  super(e);
2011
2011
  }
2012
- }, _i = [0, e1, -1, it], O1 = class extends g {
2012
+ }, _i = [0, e1, -1, it], I1 = class extends g {
2013
2013
  constructor(e) {
2014
2014
  super(e);
2015
2015
  }
@@ -2023,13 +2023,13 @@ var Aa = class extends g {
2023
2023
  constructor(e) {
2024
2024
  super(e);
2025
2025
  }
2026
- }, M1 = Re(443442058, Aa);
2027
- K[443442058] = [0, G, L, X, V, Q, -1, j, V], K[514774813] = gs;
2026
+ }, O1 = Re(443442058, Aa);
2027
+ q[443442058] = [0, G, L, X, V, Z, -1, j, V], q[514774813] = gs;
2028
2028
  var ka = class extends g {
2029
2029
  constructor(e) {
2030
2030
  super(e);
2031
2031
  }
2032
- }, x1 = Re(516587230, ka);
2032
+ }, M1 = Re(516587230, ka);
2033
2033
  function An(e, t) {
2034
2034
  return t = t ? t.clone() : new hs(), e.displayNamesLocale !== void 0 ? T(t, 1, cr(e.displayNamesLocale)) : e.displayNamesLocale === void 0 && T(t, 1), e.maxResults !== void 0 ? Ue(t, 2, e.maxResults) : "maxResults" in e && T(t, 2), e.scoreThreshold !== void 0 ? _(t, 3, e.scoreThreshold) : "scoreThreshold" in e && T(t, 3), e.categoryAllowlist !== void 0 ? wr(t, 4, e.categoryAllowlist) : "categoryAllowlist" in e && T(t, 4), e.categoryDenylist !== void 0 ? wr(t, 5, e.categoryDenylist) : "categoryDenylist" in e && T(t, 5), t;
2035
2035
  }
@@ -2038,23 +2038,23 @@ function Sa(e) {
2038
2038
  return Number.isSafeInteger(t) ? t : String(e);
2039
2039
  }
2040
2040
  function _s(e, t = -1, r = "") {
2041
- return { categories: e.map((n) => ({ index: ve(n, 1) ?? 0 ?? -1, score: B(n, 2) ?? 0, categoryName: Z(O(n, 3)) ?? "" ?? "", displayName: Z(O(n, 4)) ?? "" ?? "" })), headIndex: t, headName: r };
2041
+ return { categories: e.map((n) => ({ index: ve(n, 1) ?? 0 ?? -1, score: B(n, 2) ?? 0, categoryName: Q(I(n, 3)) ?? "" ?? "", displayName: Q(I(n, 4)) ?? "" ?? "" })), headIndex: t, headName: r };
2042
2042
  }
2043
2043
  function F1(e) {
2044
2044
  const t = { classifications: je(e, d1, 1).map((r) => {
2045
2045
  var n;
2046
- return _s(((n = k(r, Zo, 4)) == null ? void 0 : n.g()) ?? [], ve(r, 2) ?? 0, Z(O(r, 3)) ?? "");
2046
+ return _s(((n = k(r, Qo, 4)) == null ? void 0 : n.g()) ?? [], ve(r, 2) ?? 0, Q(I(r, 3)) ?? "");
2047
2047
  }) };
2048
2048
  return function(r) {
2049
- return L2(Fn ? O(r, 2, void 0, void 0, br) : O(r, 2));
2049
+ return L2(Fn ? I(r, 2, void 0, void 0, br) : I(r, 2));
2050
2050
  }(e) != null && (t.timestampMs = Sa(_o(e))), t;
2051
2051
  }
2052
2052
  function Ta(e) {
2053
2053
  var o, a;
2054
- var t = et(e, 3, Oe, Qe()), r = et(e, 2, It, Qe()), n = et(e, 1, Z, Qe()), s = et(e, 9, Z, Qe());
2054
+ var t = et(e, 3, Ie, Ze()), r = et(e, 2, xt, Ze()), n = et(e, 1, Q, Ze()), s = et(e, 9, Q, Ze());
2055
2055
  const i = { categories: [], keypoints: [] };
2056
2056
  for (let c = 0; c < t.length; c++) i.categories.push({ score: t[c], index: r[c] ?? -1, categoryName: n[c] ?? "", displayName: s[c] ?? "" });
2057
- if ((t = (o = k(e, cn, 4)) == null ? void 0 : o.l()) && (i.boundingBox = { originX: ve(t, 1, Ge) ?? 0, originY: ve(t, 2, Ge) ?? 0, width: ve(t, 3, Ge) ?? 0, height: ve(t, 4, Ge) ?? 0, angle: 0 }), (a = k(e, cn, 4)) == null ? void 0 : a.g().length) for (const c of k(e, cn, 4).g()) i.keypoints.push({ x: O(c, 1, void 0, Ge, Oe) ?? 0, y: O(c, 2, void 0, Ge, Oe) ?? 0, score: O(c, 4, void 0, Ge, Oe) ?? 0, label: Z(O(c, 3, void 0, Ge)) ?? "" });
2057
+ if ((t = (o = k(e, cn, 4)) == null ? void 0 : o.l()) && (i.boundingBox = { originX: ve(t, 1, Ge) ?? 0, originY: ve(t, 2, Ge) ?? 0, width: ve(t, 3, Ge) ?? 0, height: ve(t, 4, Ge) ?? 0, angle: 0 }), (a = k(e, cn, 4)) == null ? void 0 : a.g().length) for (const c of k(e, cn, 4).g()) i.keypoints.push({ x: I(c, 1, void 0, Ge, Ie) ?? 0, y: I(c, 2, void 0, Ge, Ie) ?? 0, score: I(c, 4, void 0, Ge, Ie) ?? 0, label: Q(I(c, 3, void 0, Ge)) ?? "" });
2058
2058
  return i;
2059
2059
  }
2060
2060
  function zr(e) {
@@ -2062,7 +2062,7 @@ function zr(e) {
2062
2062
  for (const r of je(e, ra, 1)) t.push({ x: B(r, 1) ?? 0, y: B(r, 2) ?? 0, z: B(r, 3) ?? 0, visibility: B(r, 4) ?? 0 });
2063
2063
  return t;
2064
2064
  }
2065
- function Zt(e) {
2065
+ function Qt(e) {
2066
2066
  const t = [];
2067
2067
  for (const r of je(e, ta, 1)) t.push({ x: B(r, 1) ?? 0, y: B(r, 2) ?? 0, z: B(r, 3) ?? 0, visibility: B(r, 4) ?? 0 });
2068
2068
  return t;
@@ -2078,21 +2078,21 @@ function vi(e, t) {
2078
2078
  return r / Math.sqrt(n * s);
2079
2079
  }
2080
2080
  let gr;
2081
- K[516587230] = [0, G, gs, En, V], K[518928384] = En;
2082
- const I1 = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11]);
2081
+ q[516587230] = [0, G, gs, En, V], q[518928384] = En;
2082
+ const x1 = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11]);
2083
2083
  async function La() {
2084
2084
  if (gr === void 0) try {
2085
- await WebAssembly.instantiate(I1), gr = !0;
2085
+ await WebAssembly.instantiate(x1), gr = !0;
2086
2086
  } catch {
2087
2087
  gr = !1;
2088
2088
  }
2089
2089
  return gr;
2090
2090
  }
2091
- async function qt(e, t = i1``) {
2091
+ async function Kt(e, t = i1``) {
2092
2092
  const r = await La() ? "wasm_internal" : "wasm_nosimd_internal";
2093
2093
  return { wasmLoaderPath: `${t}/${e}_${r}.js`, wasmBinaryPath: `${t}/${e}_${r}.wasm` };
2094
2094
  }
2095
- var Ze = class {
2095
+ var Qe = class {
2096
2096
  };
2097
2097
  function Pa() {
2098
2098
  var e = navigator;
@@ -2118,7 +2118,7 @@ async function bi(e) {
2118
2118
  await self.import(e.toString());
2119
2119
  }
2120
2120
  }
2121
- function Oa(e) {
2121
+ function Ia(e) {
2122
2122
  return e.videoWidth !== void 0 ? [e.videoWidth, e.videoHeight] : e.naturalWidth !== void 0 ? [e.naturalWidth, e.naturalHeight] : e.displayWidth !== void 0 ? [e.displayWidth, e.displayHeight] : [e.width, e.height];
2123
2123
  }
2124
2124
  function m(e, t, r) {
@@ -2128,7 +2128,7 @@ function Ei(e, t, r) {
2128
2128
  if (!e.i.canvas) throw Error("No OpenGL canvas configured.");
2129
2129
  if (r ? e.i._bindTextureToStream(r) : e.i._bindTextureToCanvas(), !(r = e.i.canvas.getContext("webgl2") || e.i.canvas.getContext("webgl"))) throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");
2130
2130
  e.i.gpuOriginForWebTexturesIsBottomLeft && r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL, !0), r.texImage2D(r.TEXTURE_2D, 0, r.RGBA, r.RGBA, r.UNSIGNED_BYTE, t), e.i.gpuOriginForWebTexturesIsBottomLeft && r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL, !1);
2131
- const [n, s] = Oa(t);
2131
+ const [n, s] = Ia(t);
2132
2132
  return !e.l || n === e.i.canvas.width && s === e.i.canvas.height || (e.i.canvas.width = n, e.i.canvas.height = s), [n, s];
2133
2133
  }
2134
2134
  function wi(e, t, r) {
@@ -2148,17 +2148,17 @@ function He(e, t, r) {
2148
2148
  i ? (r(n, o), n = []) : n.push(s);
2149
2149
  };
2150
2150
  }
2151
- Ze.forVisionTasks = function(e) {
2152
- return qt("vision", e);
2153
- }, Ze.forTextTasks = function(e) {
2154
- return qt("text", e);
2155
- }, Ze.forGenAiExperimentalTasks = function(e) {
2156
- return qt("genai_experimental", e);
2157
- }, Ze.forGenAiTasks = function(e) {
2158
- return qt("genai", e);
2159
- }, Ze.forAudioTasks = function(e) {
2160
- return qt("audio", e);
2161
- }, Ze.isSimdSupported = function() {
2151
+ Qe.forVisionTasks = function(e) {
2152
+ return Kt("vision", e);
2153
+ }, Qe.forTextTasks = function(e) {
2154
+ return Kt("text", e);
2155
+ }, Qe.forGenAiExperimentalTasks = function(e) {
2156
+ return Kt("genai_experimental", e);
2157
+ }, Qe.forGenAiTasks = function(e) {
2158
+ return Kt("genai", e);
2159
+ }, Qe.forAudioTasks = function(e) {
2160
+ return Kt("audio", e);
2161
+ }, Qe.isSimdSupported = function() {
2162
2162
  return La();
2163
2163
  };
2164
2164
  async function R1(e, t, r, n) {
@@ -2184,10 +2184,10 @@ function d(e, t) {
2184
2184
  e.C = Math.max(e.C, t);
2185
2185
  }
2186
2186
  function Yr(e, t) {
2187
- e.B = new ne(), he(e.B, 2, "PassThroughCalculator"), M(e.B, "free_memory"), w(e.B, "free_memory_unused_out"), I(t, "free_memory"), Ee(t, e.B);
2187
+ e.B = new ne(), he(e.B, 2, "PassThroughCalculator"), O(e.B, "free_memory"), w(e.B, "free_memory_unused_out"), x(t, "free_memory"), Ee(t, e.B);
2188
2188
  }
2189
2189
  function Lt(e, t) {
2190
- M(e.B, t), w(e.B, t + "_unused_out");
2190
+ O(e.B, t), w(e.B, t + "_unused_out");
2191
2191
  }
2192
2192
  function $r(e) {
2193
2193
  e.g.addBoolToStream(!0, "free_memory", e.C);
@@ -2259,7 +2259,7 @@ var kn = class {
2259
2259
  this.B = void 0, this.g.closeGraph();
2260
2260
  }
2261
2261
  };
2262
- function Ke(e, t) {
2262
+ function qe(e, t) {
2263
2263
  if (!e) throw Error(`Unable to obtain required WebGL resource: ${t}`);
2264
2264
  return e;
2265
2265
  }
@@ -2277,15 +2277,15 @@ class N1 {
2277
2277
  }
2278
2278
  function ki(e, t, r) {
2279
2279
  const n = e.g;
2280
- if (r = Ke(n.createShader(r), "Failed to create WebGL shader"), n.shaderSource(r, t), n.compileShader(r), !n.getShaderParameter(r, n.COMPILE_STATUS)) throw Error(`Could not compile WebGL shader: ${n.getShaderInfoLog(r)}`);
2280
+ if (r = qe(n.createShader(r), "Failed to create WebGL shader"), n.shaderSource(r, t), n.compileShader(r), !n.getShaderParameter(r, n.COMPILE_STATUS)) throw Error(`Could not compile WebGL shader: ${n.getShaderInfoLog(r)}`);
2281
2281
  return n.attachShader(e.h, r), r;
2282
2282
  }
2283
2283
  function Si(e, t) {
2284
- const r = e.g, n = Ke(r.createVertexArray(), "Failed to create vertex array");
2284
+ const r = e.g, n = qe(r.createVertexArray(), "Failed to create vertex array");
2285
2285
  r.bindVertexArray(n);
2286
- const s = Ke(r.createBuffer(), "Failed to create buffer");
2286
+ const s = qe(r.createBuffer(), "Failed to create buffer");
2287
2287
  r.bindBuffer(r.ARRAY_BUFFER, s), r.enableVertexAttribArray(e.O), r.vertexAttribPointer(e.O, 2, r.FLOAT, !1, 0, 0), r.bufferData(r.ARRAY_BUFFER, new Float32Array([-1, -1, -1, 1, 1, 1, 1, -1]), r.STATIC_DRAW);
2288
- const i = Ke(r.createBuffer(), "Failed to create buffer");
2288
+ const i = qe(r.createBuffer(), "Failed to create buffer");
2289
2289
  return r.bindBuffer(r.ARRAY_BUFFER, i), r.enableVertexAttribArray(e.L), r.vertexAttribPointer(e.L, 2, r.FLOAT, !1, 0, 0), r.bufferData(r.ARRAY_BUFFER, new Float32Array(t ? [0, 1, 0, 0, 1, 0, 1, 1] : [0, 0, 0, 1, 1, 1, 1, 0]), r.STATIC_DRAW), r.bindBuffer(r.ARRAY_BUFFER, null), r.bindVertexArray(null), new N1(r, n, s, i);
2290
2290
  }
2291
2291
  function ys(e, t) {
@@ -2296,11 +2296,11 @@ function ys(e, t) {
2296
2296
  function C1(e, t, r, n) {
2297
2297
  return ys(e, t), e.h || (e.m(), e.D()), r ? (e.u || (e.u = Si(e, !0)), r = e.u) : (e.A || (e.A = Si(e, !1)), r = e.A), t.useProgram(e.h), r.bind(), e.l(), e = n(), r.g.bindVertexArray(null), e;
2298
2298
  }
2299
- function Ma(e, t, r) {
2300
- return ys(e, t), e = Ke(t.createTexture(), "Failed to create texture"), t.bindTexture(t.TEXTURE_2D, e), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_WRAP_S, t.CLAMP_TO_EDGE), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_WRAP_T, t.CLAMP_TO_EDGE), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_MIN_FILTER, r ?? t.LINEAR), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_MAG_FILTER, r ?? t.LINEAR), t.bindTexture(t.TEXTURE_2D, null), e;
2299
+ function Oa(e, t, r) {
2300
+ return ys(e, t), e = qe(t.createTexture(), "Failed to create texture"), t.bindTexture(t.TEXTURE_2D, e), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_WRAP_S, t.CLAMP_TO_EDGE), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_WRAP_T, t.CLAMP_TO_EDGE), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_MIN_FILTER, r ?? t.LINEAR), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_MAG_FILTER, r ?? t.LINEAR), t.bindTexture(t.TEXTURE_2D, null), e;
2301
2301
  }
2302
- function xa(e, t, r) {
2303
- ys(e, t), e.B || (e.B = Ke(t.createFramebuffer(), "Failed to create framebuffe.")), t.bindFramebuffer(t.FRAMEBUFFER, e.B), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, r, 0);
2302
+ function Ma(e, t, r) {
2303
+ ys(e, t), e.B || (e.B = qe(t.createFramebuffer(), "Failed to create framebuffe.")), t.bindFramebuffer(t.FRAMEBUFFER, e.B), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, r, 0);
2304
2304
  }
2305
2305
  function D1(e) {
2306
2306
  var t;
@@ -2319,7 +2319,7 @@ var Fa = class {
2319
2319
  }
2320
2320
  m() {
2321
2321
  const e = this.g;
2322
- if (this.h = Ke(e.createProgram(), "Failed to create WebGL program"), this.X = ki(this, `
2322
+ if (this.h = qe(e.createProgram(), "Failed to create WebGL program"), this.X = ki(this, `
2323
2323
  attribute vec2 aVertex;
2324
2324
  attribute vec2 aTex;
2325
2325
  varying vec2 vTex;
@@ -2361,7 +2361,7 @@ function Sn(e) {
2361
2361
  t = new Float32Array(e.width * e.height);
2362
2362
  const n = Pt(e);
2363
2363
  var r = vs(e);
2364
- if (xa(r, n, Ia(e)), "iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform) || navigator.userAgent.includes("Mac") && "document" in self && "ontouchend" in self.document) {
2364
+ if (Ma(r, n, xa(e)), "iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform) || navigator.userAgent.includes("Mac") && "document" in self && "ontouchend" in self.document) {
2365
2365
  r = new Float32Array(e.width * e.height * 4), n.readPixels(0, 0, e.width, e.height, n.RGBA, n.FLOAT, r);
2366
2366
  for (let s = 0, i = 0; s < t.length; ++s, i += 4) t[s] = r[i];
2367
2367
  } else n.readPixels(0, 0, e.width, e.height, n.RED, n.FLOAT, t);
@@ -2370,7 +2370,7 @@ function Sn(e) {
2370
2370
  }
2371
2371
  return t;
2372
2372
  }
2373
- function Ia(e) {
2373
+ function xa(e) {
2374
2374
  let t = Ce(e, 2);
2375
2375
  if (!t) {
2376
2376
  const r = Pt(e);
@@ -2382,7 +2382,7 @@ function Ia(e) {
2382
2382
  }
2383
2383
  function Pt(e) {
2384
2384
  if (!e.canvas) throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");
2385
- return e.h || (e.h = Ke(e.canvas.getContext("webgl2"), "You cannot use a canvas that is already bound to a different type of rendering context.")), e.h;
2385
+ return e.h || (e.h = qe(e.canvas.getContext("webgl2"), "You cannot use a canvas that is already bound to a different type of rendering context.")), e.h;
2386
2386
  }
2387
2387
  function Ra(e) {
2388
2388
  if (e = Pt(e), !mr) if (e.getExtension("EXT_color_buffer_float") && e.getExtension("OES_texture_float_linear") && e.getExtension("EXT_float_blend")) mr = e.R32F;
@@ -2399,7 +2399,7 @@ function Na(e) {
2399
2399
  const t = Pt(e);
2400
2400
  t.viewport(0, 0, e.width, e.height), t.activeTexture(t.TEXTURE0);
2401
2401
  let r = Ce(e, 2);
2402
- return r || (r = Ma(vs(e), t, e.m ? t.LINEAR : t.NEAREST), e.g.push(r), e.j = !0), t.bindTexture(t.TEXTURE_2D, r), r;
2402
+ return r || (r = Oa(vs(e), t, e.m ? t.LINEAR : t.NEAREST), e.g.push(r), e.j = !0), t.bindTexture(t.TEXTURE_2D, r), r;
2403
2403
  }
2404
2404
  function Tn(e) {
2405
2405
  e.h.bindTexture(e.h.TEXTURE_2D, null);
@@ -2425,7 +2425,7 @@ var mr, Y = class {
2425
2425
  return Sn(this);
2426
2426
  }
2427
2427
  N() {
2428
- return Ia(this);
2428
+ return xa(this);
2429
2429
  }
2430
2430
  clone() {
2431
2431
  const e = [];
@@ -2437,9 +2437,9 @@ var mr, Y = class {
2437
2437
  if (!(t instanceof WebGLTexture)) throw Error(`Type is not supported: ${t}`);
2438
2438
  {
2439
2439
  const n = Pt(this), s = vs(this);
2440
- n.activeTexture(n.TEXTURE1), r = Ma(s, n, this.m ? n.LINEAR : n.NEAREST), n.bindTexture(n.TEXTURE_2D, r);
2440
+ n.activeTexture(n.TEXTURE1), r = Oa(s, n, this.m ? n.LINEAR : n.NEAREST), n.bindTexture(n.TEXTURE_2D, r);
2441
2441
  const i = Ra(this);
2442
- n.texImage2D(n.TEXTURE_2D, 0, i, this.width, this.height, 0, n.RED, n.FLOAT, null), n.bindTexture(n.TEXTURE_2D, null), xa(s, n, r), C1(s, n, !1, () => {
2442
+ n.texImage2D(n.TEXTURE_2D, 0, i, this.width, this.height, 0, n.RED, n.FLOAT, null), n.bindTexture(n.TEXTURE_2D, null), Ma(s, n, r), C1(s, n, !1, () => {
2443
2443
  Na(this), n.clearColor(0, 0, 0, 0), n.clear(n.COLOR_BUFFER_BIT), n.drawArrays(n.TRIANGLE_FAN, 0, 4), Tn(this);
2444
2444
  }), D1(s), Tn(this);
2445
2445
  }
@@ -2840,7 +2840,7 @@ function Ca(e, t, r, n) {
2840
2840
  if (r != null && r.rotationDegrees) {
2841
2841
  if ((r == null ? void 0 : r.rotationDegrees) % 90 != 0) throw Error("Expected rotation to be a multiple of 90°.");
2842
2842
  if (_(i, 5, -Math.PI * r.rotationDegrees / 180), (r == null ? void 0 : r.rotationDegrees) % 180 != 0) {
2843
- const [o, a] = Oa(t);
2843
+ const [o, a] = Ia(t);
2844
2844
  r = B(i, 3) * a / o, s = B(i, 4) * o / a, _(i, 4, r), _(i, 3, s);
2845
2845
  }
2846
2846
  }
@@ -2858,7 +2858,7 @@ function Ne(e, t, r, n) {
2858
2858
  if (!((s = e.baseOptions) != null && s.g())) throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");
2859
2859
  Ca(e, t, r, n);
2860
2860
  }
2861
- function Ot(e, t, r, n) {
2861
+ function It(e, t, r, n) {
2862
2862
  var s = t.data;
2863
2863
  const i = t.width, o = i * (t = t.height);
2864
2864
  if ((s instanceof Uint8Array || s instanceof Float32Array) && s.length !== o) throw Error("Unsupported channel count: " + s.length / o);
@@ -2879,7 +2879,7 @@ var fe = class extends kn {
2879
2879
  fe.prototype.close = fe.prototype.close;
2880
2880
  var ge = class extends fe {
2881
2881
  constructor(e, t) {
2882
- super(new ke(e, t), "image_in", "norm_rect_in", !1), this.j = { detections: [] }, v(e = this.h = new Kr(), 0, 1, t = new N()), _(this.h, 2, 0.5), _(this.h, 3, 0.3);
2882
+ super(new ke(e, t), "image_in", "norm_rect_in", !1), this.j = { detections: [] }, v(e = this.h = new qr(), 0, 1, t = new N()), _(this.h, 2, 0.5), _(this.h, 3, 0.3);
2883
2883
  }
2884
2884
  get baseOptions() {
2885
2885
  return k(this.h, N, 1);
@@ -2898,11 +2898,11 @@ var ge = class extends fe {
2898
2898
  }
2899
2899
  m() {
2900
2900
  var e = new pe();
2901
- I(e, "image_in"), I(e, "norm_rect_in"), S(e, "detections");
2901
+ x(e, "image_in"), x(e, "norm_rect_in"), S(e, "detections");
2902
2902
  const t = new de();
2903
- Ie(t, v1, this.h);
2903
+ xe(t, v1, this.h);
2904
2904
  const r = new ne();
2905
- he(r, 2, "mediapipe.tasks.vision.face_detector.FaceDetectorGraph"), M(r, "IMAGE:image_in"), M(r, "NORM_RECT:norm_rect_in"), w(r, "DETECTIONS:detections"), r.o(t), Ee(e, r), this.g.attachProtoVectorListener("detections", (n, s) => {
2905
+ he(r, 2, "mediapipe.tasks.vision.face_detector.FaceDetectorGraph"), O(r, "IMAGE:image_in"), O(r, "NORM_RECT:norm_rect_in"), w(r, "DETECTIONS:detections"), r.o(t), Ee(e, r), this.g.attachProtoVectorListener("detections", (n, s) => {
2906
2906
  for (const i of n) n = ea(i), this.j.detections.push(Ta(n));
2907
2907
  d(this, s);
2908
2908
  }), this.g.attachEmptyPacketListener("detections", (n) => {
@@ -2921,9 +2921,9 @@ var bs = Ae([61, 146], [146, 91], [91, 181], [181, 84], [84, 17], [17, 314], [31
2921
2921
  function Pi(e) {
2922
2922
  e.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] };
2923
2923
  }
2924
- var x = class extends fe {
2924
+ var M = class extends fe {
2925
2925
  constructor(e, t) {
2926
- super(new ke(e, t), "image_in", "norm_rect", !1), this.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] }, this.outputFacialTransformationMatrixes = this.outputFaceBlendshapes = !1, v(e = this.h = new ca(), 0, 1, t = new N()), this.A = new aa(), v(this.h, 0, 3, this.A), this.u = new Kr(), v(this.h, 0, 2, this.u), Ue(this.u, 4, 1), _(this.u, 2, 0.5), _(this.A, 2, 0.5), _(this.h, 4, 0.5);
2926
+ super(new ke(e, t), "image_in", "norm_rect", !1), this.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] }, this.outputFacialTransformationMatrixes = this.outputFaceBlendshapes = !1, v(e = this.h = new ca(), 0, 1, t = new N()), this.A = new aa(), v(this.h, 0, 3, this.A), this.u = new qr(), v(this.h, 0, 2, this.u), Ue(this.u, 4, 1), _(this.u, 2, 0.5), _(this.A, 2, 0.5), _(this.h, 4, 0.5);
2927
2927
  }
2928
2928
  get baseOptions() {
2929
2929
  return k(this.h, N, 1);
@@ -2942,48 +2942,48 @@ var x = class extends fe {
2942
2942
  }
2943
2943
  m() {
2944
2944
  var e = new pe();
2945
- I(e, "image_in"), I(e, "norm_rect"), S(e, "face_landmarks");
2945
+ x(e, "image_in"), x(e, "norm_rect"), S(e, "face_landmarks");
2946
2946
  const t = new de();
2947
- Ie(t, E1, this.h);
2947
+ xe(t, E1, this.h);
2948
2948
  const r = new ne();
2949
- he(r, 2, "mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"), M(r, "IMAGE:image_in"), M(r, "NORM_RECT:norm_rect"), w(r, "NORM_LANDMARKS:face_landmarks"), r.o(t), Ee(e, r), this.g.attachProtoVectorListener("face_landmarks", (n, s) => {
2949
+ he(r, 2, "mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"), O(r, "IMAGE:image_in"), O(r, "NORM_RECT:norm_rect"), w(r, "NORM_LANDMARKS:face_landmarks"), r.o(t), Ee(e, r), this.g.attachProtoVectorListener("face_landmarks", (n, s) => {
2950
2950
  for (const i of n) n = lr(i), this.j.faceLandmarks.push(zr(n));
2951
2951
  d(this, s);
2952
2952
  }), this.g.attachEmptyPacketListener("face_landmarks", (n) => {
2953
2953
  d(this, n);
2954
2954
  }), this.outputFaceBlendshapes && (S(e, "blendshapes"), w(r, "BLENDSHAPES:blendshapes"), this.g.attachProtoVectorListener("blendshapes", (n, s) => {
2955
- if (this.outputFaceBlendshapes) for (const i of n) n = qr(i), this.j.faceBlendshapes.push(_s(n.g() ?? []));
2955
+ if (this.outputFaceBlendshapes) for (const i of n) n = Kr(i), this.j.faceBlendshapes.push(_s(n.g() ?? []));
2956
2956
  d(this, s);
2957
2957
  }), this.g.attachEmptyPacketListener("blendshapes", (n) => {
2958
2958
  d(this, n);
2959
2959
  })), this.outputFacialTransformationMatrixes && (S(e, "face_geometry"), w(r, "FACE_GEOMETRY:face_geometry"), this.g.attachProtoVectorListener("face_geometry", (n, s) => {
2960
- if (this.outputFacialTransformationMatrixes) for (const i of n) (n = k(n = b1(i), l1, 2)) && this.j.facialTransformationMatrixes.push({ rows: ve(n, 1) ?? 0 ?? 0, columns: ve(n, 2) ?? 0 ?? 0, data: et(n, 3, Oe, Qe()).slice() ?? [] });
2960
+ if (this.outputFacialTransformationMatrixes) for (const i of n) (n = k(n = b1(i), l1, 2)) && this.j.facialTransformationMatrixes.push({ rows: ve(n, 1) ?? 0 ?? 0, columns: ve(n, 2) ?? 0 ?? 0, data: et(n, 3, Ie, Ze()).slice() ?? [] });
2961
2961
  d(this, s);
2962
2962
  }), this.g.attachEmptyPacketListener("face_geometry", (n) => {
2963
2963
  d(this, n);
2964
2964
  })), e = e.g(), this.setGraph(new Uint8Array(e), !0);
2965
2965
  }
2966
2966
  };
2967
- x.prototype.detectForVideo = x.prototype.G, x.prototype.detect = x.prototype.F, x.prototype.setOptions = x.prototype.o, x.createFromModelPath = function(e, t) {
2968
- return A(x, e, { baseOptions: { modelAssetPath: t } });
2969
- }, x.createFromModelBuffer = function(e, t) {
2970
- return A(x, e, { baseOptions: { modelAssetBuffer: t } });
2971
- }, x.createFromOptions = function(e, t) {
2972
- return A(x, e, t);
2973
- }, x.FACE_LANDMARKS_LIPS = bs, x.FACE_LANDMARKS_LEFT_EYE = Es, x.FACE_LANDMARKS_LEFT_EYEBROW = ws, x.FACE_LANDMARKS_LEFT_IRIS = Da, x.FACE_LANDMARKS_RIGHT_EYE = As, x.FACE_LANDMARKS_RIGHT_EYEBROW = ks, x.FACE_LANDMARKS_RIGHT_IRIS = Ba, x.FACE_LANDMARKS_FACE_OVAL = Ss, x.FACE_LANDMARKS_CONTOURS = ja, x.FACE_LANDMARKS_TESSELATION = Ua;
2967
+ M.prototype.detectForVideo = M.prototype.G, M.prototype.detect = M.prototype.F, M.prototype.setOptions = M.prototype.o, M.createFromModelPath = function(e, t) {
2968
+ return A(M, e, { baseOptions: { modelAssetPath: t } });
2969
+ }, M.createFromModelBuffer = function(e, t) {
2970
+ return A(M, e, { baseOptions: { modelAssetBuffer: t } });
2971
+ }, M.createFromOptions = function(e, t) {
2972
+ return A(M, e, t);
2973
+ }, M.FACE_LANDMARKS_LIPS = bs, M.FACE_LANDMARKS_LEFT_EYE = Es, M.FACE_LANDMARKS_LEFT_EYEBROW = ws, M.FACE_LANDMARKS_LEFT_IRIS = Da, M.FACE_LANDMARKS_RIGHT_EYE = As, M.FACE_LANDMARKS_RIGHT_EYEBROW = ks, M.FACE_LANDMARKS_RIGHT_IRIS = Ba, M.FACE_LANDMARKS_FACE_OVAL = Ss, M.FACE_LANDMARKS_CONTOURS = ja, M.FACE_LANDMARKS_TESSELATION = Ua;
2974
2974
  var Ts = Ae([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]);
2975
- function Oi(e) {
2975
+ function Ii(e) {
2976
2976
  e.gestures = [], e.landmarks = [], e.worldLandmarks = [], e.handedness = [];
2977
2977
  }
2978
- function Mi(e) {
2978
+ function Oi(e) {
2979
2979
  return e.gestures.length === 0 ? { gestures: [], landmarks: [], worldLandmarks: [], handedness: [], handednesses: [] } : { gestures: e.gestures, landmarks: e.landmarks, worldLandmarks: e.worldLandmarks, handedness: e.handedness, handednesses: e.handedness };
2980
2980
  }
2981
- function xi(e, t = !0) {
2981
+ function Mi(e, t = !0) {
2982
2982
  const r = [];
2983
2983
  for (const s of e) {
2984
- var n = qr(s);
2984
+ var n = Kr(s);
2985
2985
  e = [];
2986
- for (const i of n.g()) n = t && ve(i, 1) != null ? ve(i, 1) ?? 0 : -1, e.push({ score: B(i, 2) ?? 0, index: n, categoryName: Z(O(i, 3)) ?? "" ?? "", displayName: Z(O(i, 4)) ?? "" ?? "" });
2986
+ for (const i of n.g()) n = t && ve(i, 1) != null ? ve(i, 1) ?? 0 : -1, e.push({ score: B(i, 2) ?? 0, index: n, categoryName: Q(I(i, 3)) ?? "" ?? "", displayName: Q(I(i, 4)) ?? "" ?? "" });
2987
2987
  r.push(e);
2988
2988
  }
2989
2989
  return r;
@@ -3007,18 +3007,18 @@ var se = class extends fe {
3007
3007
  return e.customGesturesClassifierOptions ? (v(r = t = new pt(), 0, 2, n = An(e.customGesturesClassifierOptions, (o = k(this.h, pt, 4)) == null ? void 0 : o.l())), v(this.h, 0, 4, t)) : e.customGesturesClassifierOptions === void 0 && ((a = k(this.h, pt, 4)) == null || a.g()), this.l(e);
3008
3008
  }
3009
3009
  Ha(e, t) {
3010
- return Oi(this), Se(this, e, t), Mi(this);
3010
+ return Ii(this), Se(this, e, t), Oi(this);
3011
3011
  }
3012
3012
  Ia(e, t, r) {
3013
- return Oi(this), Ne(this, e, r, t), Mi(this);
3013
+ return Ii(this), Ne(this, e, r, t), Oi(this);
3014
3014
  }
3015
3015
  m() {
3016
3016
  var e = new pe();
3017
- I(e, "image_in"), I(e, "norm_rect"), S(e, "hand_gestures"), S(e, "hand_landmarks"), S(e, "world_hand_landmarks"), S(e, "handedness");
3017
+ x(e, "image_in"), x(e, "norm_rect"), S(e, "hand_gestures"), S(e, "hand_landmarks"), S(e, "world_hand_landmarks"), S(e, "handedness");
3018
3018
  const t = new de();
3019
- Ie(t, A1, this.j);
3019
+ xe(t, A1, this.j);
3020
3020
  const r = new ne();
3021
- he(r, 2, "mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"), M(r, "IMAGE:image_in"), M(r, "NORM_RECT:norm_rect"), w(r, "HAND_GESTURES:hand_gestures"), w(r, "LANDMARKS:hand_landmarks"), w(r, "WORLD_LANDMARKS:world_hand_landmarks"), w(r, "HANDEDNESS:handedness"), r.o(t), Ee(e, r), this.g.attachProtoVectorListener("hand_landmarks", (n, s) => {
3021
+ he(r, 2, "mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"), O(r, "IMAGE:image_in"), O(r, "NORM_RECT:norm_rect"), w(r, "HAND_GESTURES:hand_gestures"), w(r, "LANDMARKS:hand_landmarks"), w(r, "WORLD_LANDMARKS:world_hand_landmarks"), w(r, "HANDEDNESS:handedness"), r.o(t), Ee(e, r), this.g.attachProtoVectorListener("hand_landmarks", (n, s) => {
3022
3022
  for (const i of n) {
3023
3023
  n = lr(i);
3024
3024
  const o = [];
@@ -3039,11 +3039,11 @@ var se = class extends fe {
3039
3039
  }), this.g.attachEmptyPacketListener("world_hand_landmarks", (n) => {
3040
3040
  d(this, n);
3041
3041
  }), this.g.attachProtoVectorListener("hand_gestures", (n, s) => {
3042
- this.gestures.push(...xi(n, !1)), d(this, s);
3042
+ this.gestures.push(...Mi(n, !1)), d(this, s);
3043
3043
  }), this.g.attachEmptyPacketListener("hand_gestures", (n) => {
3044
3044
  d(this, n);
3045
3045
  }), this.g.attachProtoVectorListener("handedness", (n, s) => {
3046
- this.handedness.push(...xi(n)), d(this, s);
3046
+ this.handedness.push(...Mi(n)), d(this, s);
3047
3047
  }), this.g.attachEmptyPacketListener("handedness", (n) => {
3048
3048
  d(this, n);
3049
3049
  }), e = e.g(), this.setGraph(new Uint8Array(e), !0);
@@ -3080,17 +3080,17 @@ var re = class extends fe {
3080
3080
  }
3081
3081
  m() {
3082
3082
  var e = new pe();
3083
- I(e, "image_in"), I(e, "norm_rect"), S(e, "hand_landmarks"), S(e, "world_hand_landmarks"), S(e, "handedness");
3083
+ x(e, "image_in"), x(e, "norm_rect"), S(e, "hand_landmarks"), S(e, "world_hand_landmarks"), S(e, "handedness");
3084
3084
  const t = new de();
3085
- Ie(t, k1, this.h);
3085
+ xe(t, k1, this.h);
3086
3086
  const r = new ne();
3087
- he(r, 2, "mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"), M(r, "IMAGE:image_in"), M(r, "NORM_RECT:norm_rect"), w(r, "LANDMARKS:hand_landmarks"), w(r, "WORLD_LANDMARKS:world_hand_landmarks"), w(r, "HANDEDNESS:handedness"), r.o(t), Ee(e, r), this.g.attachProtoVectorListener("hand_landmarks", (n, s) => {
3087
+ he(r, 2, "mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"), O(r, "IMAGE:image_in"), O(r, "NORM_RECT:norm_rect"), w(r, "LANDMARKS:hand_landmarks"), w(r, "WORLD_LANDMARKS:world_hand_landmarks"), w(r, "HANDEDNESS:handedness"), r.o(t), Ee(e, r), this.g.attachProtoVectorListener("hand_landmarks", (n, s) => {
3088
3088
  for (const i of n) n = lr(i), this.landmarks.push(zr(n));
3089
3089
  d(this, s);
3090
3090
  }), this.g.attachEmptyPacketListener("hand_landmarks", (n) => {
3091
3091
  d(this, n);
3092
3092
  }), this.g.attachProtoVectorListener("world_hand_landmarks", (n, s) => {
3093
- for (const i of n) n = _t(i), this.worldLandmarks.push(Zt(n));
3093
+ for (const i of n) n = _t(i), this.worldLandmarks.push(Qt(n));
3094
3094
  d(this, s);
3095
3095
  }), this.g.attachEmptyPacketListener("world_hand_landmarks", (n) => {
3096
3096
  d(this, n);
@@ -3098,9 +3098,9 @@ var re = class extends fe {
3098
3098
  var i = this.handedness, o = i.push;
3099
3099
  const a = [];
3100
3100
  for (const c of n) {
3101
- n = qr(c);
3101
+ n = Kr(c);
3102
3102
  const l = [];
3103
- for (const u of n.g()) l.push({ score: B(u, 2) ?? 0, index: ve(u, 1) ?? 0 ?? -1, categoryName: Z(O(u, 3)) ?? "" ?? "", displayName: Z(O(u, 4)) ?? "" ?? "" });
3103
+ for (const u of n.g()) l.push({ score: B(u, 2) ?? 0, index: ve(u, 1) ?? 0 ?? -1, categoryName: Q(I(u, 3)) ?? "" ?? "", displayName: Q(I(u, 4)) ?? "" ?? "" });
3104
3104
  a.push(l);
3105
3105
  }
3106
3106
  o.call(i, ...a), d(this, s);
@@ -3117,7 +3117,7 @@ re.prototype.detectForVideo = re.prototype.G, re.prototype.detect = re.prototype
3117
3117
  return A(re, e, t);
3118
3118
  }, re.HAND_CONNECTIONS = Ts;
3119
3119
  var Va = Ae([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]);
3120
- function Ii(e) {
3120
+ function xi(e) {
3121
3121
  e.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] };
3122
3122
  }
3123
3123
  function Ri(e) {
@@ -3133,7 +3133,7 @@ function _r(e, t) {
3133
3133
  }
3134
3134
  var P = class extends fe {
3135
3135
  constructor(e, t) {
3136
- super(new ke(e, t), "input_frames_image", null, !1), this.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] }, this.outputPoseSegmentationMasks = this.outputFaceBlendshapes = !1, v(e = this.j = new ma(), 0, 1, t = new N()), this.I = new fs(), v(this.j, 0, 2, this.I), this.W = new S1(), v(this.j, 0, 3, this.W), this.u = new Kr(), v(this.j, 0, 4, this.u), this.O = new aa(), v(this.j, 0, 5, this.O), this.A = new pa(), v(this.j, 0, 6, this.A), this.M = new ga(), v(this.j, 0, 7, this.M), _(this.u, 2, 0.5), _(this.u, 3, 0.3), _(this.O, 2, 0.5), _(this.A, 2, 0.5), _(this.A, 3, 0.3), _(this.M, 2, 0.5), _(this.I, 2, 0.5);
3136
+ super(new ke(e, t), "input_frames_image", null, !1), this.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] }, this.outputPoseSegmentationMasks = this.outputFaceBlendshapes = !1, v(e = this.j = new ma(), 0, 1, t = new N()), this.I = new fs(), v(this.j, 0, 2, this.I), this.W = new S1(), v(this.j, 0, 3, this.W), this.u = new qr(), v(this.j, 0, 4, this.u), this.O = new aa(), v(this.j, 0, 5, this.O), this.A = new pa(), v(this.j, 0, 6, this.A), this.M = new ga(), v(this.j, 0, 7, this.M), _(this.u, 2, 0.5), _(this.u, 3, 0.3), _(this.O, 2, 0.5), _(this.A, 2, 0.5), _(this.A, 3, 0.3), _(this.M, 2, 0.5), _(this.I, 2, 0.5);
3137
3137
  }
3138
3138
  get baseOptions() {
3139
3139
  return k(this.j, N, 1);
@@ -3146,35 +3146,35 @@ var P = class extends fe {
3146
3146
  }
3147
3147
  F(e, t, r) {
3148
3148
  const n = typeof t != "function" ? t : {};
3149
- return this.D = typeof t == "function" ? t : r, Ii(this), Se(this, e, n), Ri(this);
3149
+ return this.D = typeof t == "function" ? t : r, xi(this), Se(this, e, n), Ri(this);
3150
3150
  }
3151
3151
  G(e, t, r, n) {
3152
3152
  const s = typeof r != "function" ? r : {};
3153
- return this.D = typeof r == "function" ? r : n, Ii(this), Ne(this, e, s, t), Ri(this);
3153
+ return this.D = typeof r == "function" ? r : n, xi(this), Ne(this, e, s, t), Ri(this);
3154
3154
  }
3155
3155
  m() {
3156
3156
  var e = new pe();
3157
- I(e, "input_frames_image"), S(e, "pose_landmarks"), S(e, "pose_world_landmarks"), S(e, "face_landmarks"), S(e, "left_hand_landmarks"), S(e, "left_hand_world_landmarks"), S(e, "right_hand_landmarks"), S(e, "right_hand_world_landmarks");
3157
+ x(e, "input_frames_image"), S(e, "pose_landmarks"), S(e, "pose_world_landmarks"), S(e, "face_landmarks"), S(e, "left_hand_landmarks"), S(e, "left_hand_world_landmarks"), S(e, "right_hand_landmarks"), S(e, "right_hand_world_landmarks");
3158
3158
  const t = new de(), r = new si();
3159
3159
  he(r, 1, "type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"), function(s, i) {
3160
- if (i != null) if (Array.isArray(i)) T(s, 2, Ir(i, 0, nr));
3160
+ if (i != null) if (Array.isArray(i)) T(s, 2, xr(i, 0, nr));
3161
3161
  else {
3162
- if (!(typeof i == "string" || i instanceof Me || In(i))) throw Error("invalid value in Any.value field: " + i + " expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");
3162
+ if (!(typeof i == "string" || i instanceof Oe || xn(i))) throw Error("invalid value in Any.value field: " + i + " expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");
3163
3163
  We(s, 2, Nn(i, !1), ot());
3164
3164
  }
3165
3165
  }(r, this.j.g());
3166
3166
  const n = new ne();
3167
- he(n, 2, "mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"), Xn(n, 8, si, r), M(n, "IMAGE:input_frames_image"), w(n, "POSE_LANDMARKS:pose_landmarks"), w(n, "POSE_WORLD_LANDMARKS:pose_world_landmarks"), w(n, "FACE_LANDMARKS:face_landmarks"), w(n, "LEFT_HAND_LANDMARKS:left_hand_landmarks"), w(n, "LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"), w(n, "RIGHT_HAND_LANDMARKS:right_hand_landmarks"), w(n, "RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"), n.o(t), Ee(e, n), Yr(this, e), this.g.attachProtoListener("pose_landmarks", (s, i) => {
3167
+ he(n, 2, "mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"), Xn(n, 8, si, r), O(n, "IMAGE:input_frames_image"), w(n, "POSE_LANDMARKS:pose_landmarks"), w(n, "POSE_WORLD_LANDMARKS:pose_world_landmarks"), w(n, "FACE_LANDMARKS:face_landmarks"), w(n, "LEFT_HAND_LANDMARKS:left_hand_landmarks"), w(n, "LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"), w(n, "RIGHT_HAND_LANDMARKS:right_hand_landmarks"), w(n, "RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"), n.o(t), Ee(e, n), Yr(this, e), this.g.attachProtoListener("pose_landmarks", (s, i) => {
3168
3168
  _r(s, this.h.poseLandmarks), d(this, i);
3169
3169
  }), this.g.attachEmptyPacketListener("pose_landmarks", (s) => {
3170
3170
  d(this, s);
3171
3171
  }), this.g.attachProtoListener("pose_world_landmarks", (s, i) => {
3172
3172
  var o = this.h.poseWorldLandmarks;
3173
- s = _t(s), o.push(Zt(s)), d(this, i);
3173
+ s = _t(s), o.push(Qt(s)), d(this, i);
3174
3174
  }), this.g.attachEmptyPacketListener("pose_world_landmarks", (s) => {
3175
3175
  d(this, s);
3176
3176
  }), this.outputPoseSegmentationMasks && (w(n, "POSE_SEGMENTATION_MASK:pose_segmentation_mask"), Lt(this, "pose_segmentation_mask"), this.g.Z("pose_segmentation_mask", (s, i) => {
3177
- this.h.poseSegmentationMasks = [Ot(this, s, !0, !this.D)], d(this, i);
3177
+ this.h.poseSegmentationMasks = [It(this, s, !0, !this.D)], d(this, i);
3178
3178
  }), this.g.attachEmptyPacketListener("pose_segmentation_mask", (s) => {
3179
3179
  this.h.poseSegmentationMasks = [], d(this, s);
3180
3180
  })), this.g.attachProtoListener("face_landmarks", (s, i) => {
@@ -3183,7 +3183,7 @@ var P = class extends fe {
3183
3183
  d(this, s);
3184
3184
  }), this.outputFaceBlendshapes && (S(e, "extra_blendshapes"), w(n, "FACE_BLENDSHAPES:extra_blendshapes"), this.g.attachProtoListener("extra_blendshapes", (s, i) => {
3185
3185
  var o = this.h.faceBlendshapes;
3186
- this.outputFaceBlendshapes && (s = qr(s), o.push(_s(s.g() ?? []))), d(this, i);
3186
+ this.outputFaceBlendshapes && (s = Kr(s), o.push(_s(s.g() ?? []))), d(this, i);
3187
3187
  }), this.g.attachEmptyPacketListener("extra_blendshapes", (s) => {
3188
3188
  d(this, s);
3189
3189
  })), this.g.attachProtoListener("left_hand_landmarks", (s, i) => {
@@ -3192,7 +3192,7 @@ var P = class extends fe {
3192
3192
  d(this, s);
3193
3193
  }), this.g.attachProtoListener("left_hand_world_landmarks", (s, i) => {
3194
3194
  var o = this.h.leftHandWorldLandmarks;
3195
- s = _t(s), o.push(Zt(s)), d(this, i);
3195
+ s = _t(s), o.push(Qt(s)), d(this, i);
3196
3196
  }), this.g.attachEmptyPacketListener("left_hand_world_landmarks", (s) => {
3197
3197
  d(this, s);
3198
3198
  }), this.g.attachProtoListener("right_hand_landmarks", (s, i) => {
@@ -3201,7 +3201,7 @@ var P = class extends fe {
3201
3201
  d(this, s);
3202
3202
  }), this.g.attachProtoListener("right_hand_world_landmarks", (s, i) => {
3203
3203
  var o = this.h.rightHandWorldLandmarks;
3204
- s = _t(s), o.push(Zt(s)), d(this, i);
3204
+ s = _t(s), o.push(Qt(s)), d(this, i);
3205
3205
  }), this.g.attachEmptyPacketListener("right_hand_world_landmarks", (s) => {
3206
3206
  d(this, s);
3207
3207
  }), e = e.g(), this.setGraph(new Uint8Array(e), !0);
@@ -3235,11 +3235,11 @@ var me = class extends fe {
3235
3235
  }
3236
3236
  m() {
3237
3237
  var e = new pe();
3238
- I(e, "input_image"), I(e, "norm_rect"), S(e, "classifications");
3238
+ x(e, "input_image"), x(e, "norm_rect"), S(e, "classifications");
3239
3239
  const t = new de();
3240
- Ie(t, T1, this.h);
3240
+ xe(t, T1, this.h);
3241
3241
  const r = new ne();
3242
- he(r, 2, "mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"), M(r, "IMAGE:input_image"), M(r, "NORM_RECT:norm_rect"), w(r, "CLASSIFICATIONS:classifications"), r.o(t), Ee(e, r), this.g.attachProtoListener("classifications", (n, s) => {
3242
+ he(r, 2, "mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"), O(r, "IMAGE:input_image"), O(r, "NORM_RECT:norm_rect"), w(r, "CLASSIFICATIONS:classifications"), r.o(t), Ee(e, r), this.g.attachProtoListener("classifications", (n, s) => {
3243
3243
  this.j = F1(p1(n)), d(this, s);
3244
3244
  }), this.g.attachEmptyPacketListener("classifications", (n) => {
3245
3245
  d(this, n);
@@ -3275,17 +3275,17 @@ var ie = class extends fe {
3275
3275
  }
3276
3276
  m() {
3277
3277
  var e = new pe();
3278
- I(e, "image_in"), I(e, "norm_rect"), S(e, "embeddings_out");
3278
+ x(e, "image_in"), x(e, "norm_rect"), S(e, "embeddings_out");
3279
3279
  const t = new de();
3280
- Ie(t, L1, this.h);
3280
+ xe(t, L1, this.h);
3281
3281
  const r = new ne();
3282
- he(r, 2, "mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"), M(r, "IMAGE:image_in"), M(r, "NORM_RECT:norm_rect"), w(r, "EMBEDDINGS:embeddings_out"), r.o(t), Ee(e, r), this.g.attachProtoListener("embeddings_out", (n, s) => {
3282
+ he(r, 2, "mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"), O(r, "IMAGE:image_in"), O(r, "NORM_RECT:norm_rect"), w(r, "EMBEDDINGS:embeddings_out"), r.o(t), Ee(e, r), this.g.attachProtoListener("embeddings_out", (n, s) => {
3283
3283
  n = _1(n), this.embeddings = function(i) {
3284
3284
  return { embeddings: je(i, m1, 1).map((o) => {
3285
3285
  var l, u;
3286
- const a = { headIndex: ve(o, 3) ?? 0 ?? -1, headName: Z(O(o, 4)) ?? "" ?? "" };
3286
+ const a = { headIndex: ve(o, 3) ?? 0 ?? -1, headName: Q(I(o, 4)) ?? "" ?? "" };
3287
3287
  var c = o.v;
3288
- return po(c, 0 | c[p], fi, sn(o, 1)) !== void 0 ? (o = et(o = k(o, fi, sn(o, 1), void 0), 1, Oe, Qe()), a.floatEmbedding = o.slice()) : (c = new Uint8Array(0), a.quantizedEmbedding = ((u = (l = k(o, g1, sn(o, 2), void 0)) == null ? void 0 : l.na()) == null ? void 0 : u.h()) ?? c), a;
3288
+ return po(c, 0 | c[p], fi, sn(o, 1)) !== void 0 ? (o = et(o = k(o, fi, sn(o, 1), void 0), 1, Ie, Ze()), a.floatEmbedding = o.slice()) : (c = new Uint8Array(0), a.quantizedEmbedding = ((u = (l = k(o, g1, sn(o, 2), void 0)) == null ? void 0 : l.na()) == null ? void 0 : u.h()) ?? c), a;
3289
3289
  }), timestampMs: Sa(_o(i)) };
3290
3290
  }(n), d(this, s);
3291
3291
  }), this.g.attachEmptyPacketListener("embeddings_out", (n) => {
@@ -3322,10 +3322,10 @@ function j1(e) {
3322
3322
  var r, n;
3323
3323
  const t = function(s) {
3324
3324
  return je(s, ne, 1);
3325
- }(e.ca()).filter((s) => (Z(O(s, 1)) ?? "").includes("mediapipe.tasks.TensorsToSegmentationCalculator"));
3325
+ }(e.ca()).filter((s) => (Q(I(s, 1)) ?? "").includes("mediapipe.tasks.TensorsToSegmentationCalculator"));
3326
3326
  if (e.u = [], t.length > 1) throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");
3327
3327
  t.length === 1 && (((n = (r = k(t[0], de, 7)) == null ? void 0 : r.j()) == null ? void 0 : n.g()) ?? /* @__PURE__ */ new Map()).forEach((s, i) => {
3328
- e.u[Number(i)] = Z(O(s, 1)) ?? "";
3328
+ e.u[Number(i)] = Q(I(s, 1)) ?? "";
3329
3329
  });
3330
3330
  }
3331
3331
  function Ni(e) {
@@ -3370,16 +3370,16 @@ var te = class extends fe {
3370
3370
  }
3371
3371
  m() {
3372
3372
  var e = new pe();
3373
- I(e, "image_in"), I(e, "norm_rect");
3373
+ x(e, "image_in"), x(e, "norm_rect");
3374
3374
  const t = new de();
3375
- Ie(t, Ea, this.h);
3375
+ xe(t, Ea, this.h);
3376
3376
  const r = new ne();
3377
- he(r, 2, "mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"), M(r, "IMAGE:image_in"), M(r, "NORM_RECT:norm_rect"), r.o(t), Ee(e, r), Yr(this, e), this.outputConfidenceMasks && (S(e, "confidence_masks"), w(r, "CONFIDENCE_MASKS:confidence_masks"), Lt(this, "confidence_masks"), this.g.aa("confidence_masks", (n, s) => {
3378
- this.confidenceMasks = n.map((i) => Ot(this, i, !0, !this.j)), d(this, s);
3377
+ he(r, 2, "mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"), O(r, "IMAGE:image_in"), O(r, "NORM_RECT:norm_rect"), r.o(t), Ee(e, r), Yr(this, e), this.outputConfidenceMasks && (S(e, "confidence_masks"), w(r, "CONFIDENCE_MASKS:confidence_masks"), Lt(this, "confidence_masks"), this.g.aa("confidence_masks", (n, s) => {
3378
+ this.confidenceMasks = n.map((i) => It(this, i, !0, !this.j)), d(this, s);
3379
3379
  }), this.g.attachEmptyPacketListener("confidence_masks", (n) => {
3380
3380
  this.confidenceMasks = [], d(this, n);
3381
3381
  })), this.outputCategoryMask && (S(e, "category_mask"), w(r, "CATEGORY_MASK:category_mask"), Lt(this, "category_mask"), this.g.Z("category_mask", (n, s) => {
3382
- this.categoryMask = Ot(this, n, !1, !this.j), d(this, s);
3382
+ this.categoryMask = It(this, n, !1, !this.j), d(this, s);
3383
3383
  }), this.g.attachEmptyPacketListener("category_mask", (n) => {
3384
3384
  this.categoryMask = void 0, d(this, n);
3385
3385
  })), S(e, "quality_scores"), w(r, "QUALITY_SCORES:quality_scores"), this.g.attachFloatVectorListener("quality_scores", (n, s) => {
@@ -3430,7 +3430,7 @@ var Pe = class extends fe {
3430
3430
  } else {
3431
3431
  if (!t.scribble) throw Error("Must provide either a keypoint or a scribble.");
3432
3432
  {
3433
- const a = new O1();
3433
+ const a = new I1();
3434
3434
  for (i of t.scribble) We(t = new un(), 3, rr(!0), !1), We(t, 1, $t(i.x), 0), We(t, 2, $t(i.y), 0), Xn(a, 1, un, t);
3435
3435
  Xt(n, 2, wn, a);
3436
3436
  }
@@ -3453,16 +3453,16 @@ var Pe = class extends fe {
3453
3453
  }
3454
3454
  m() {
3455
3455
  var e = new pe();
3456
- I(e, "image_in"), I(e, "roi_in"), I(e, "norm_rect_in");
3456
+ x(e, "image_in"), x(e, "roi_in"), x(e, "norm_rect_in");
3457
3457
  const t = new de();
3458
- Ie(t, Ea, this.h);
3458
+ xe(t, Ea, this.h);
3459
3459
  const r = new ne();
3460
- he(r, 2, "mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"), M(r, "IMAGE:image_in"), M(r, "ROI:roi_in"), M(r, "NORM_RECT:norm_rect_in"), r.o(t), Ee(e, r), Yr(this, e), this.outputConfidenceMasks && (S(e, "confidence_masks"), w(r, "CONFIDENCE_MASKS:confidence_masks"), Lt(this, "confidence_masks"), this.g.aa("confidence_masks", (n, s) => {
3461
- this.confidenceMasks = n.map((i) => Ot(this, i, !0, !this.j)), d(this, s);
3460
+ he(r, 2, "mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"), O(r, "IMAGE:image_in"), O(r, "ROI:roi_in"), O(r, "NORM_RECT:norm_rect_in"), r.o(t), Ee(e, r), Yr(this, e), this.outputConfidenceMasks && (S(e, "confidence_masks"), w(r, "CONFIDENCE_MASKS:confidence_masks"), Lt(this, "confidence_masks"), this.g.aa("confidence_masks", (n, s) => {
3461
+ this.confidenceMasks = n.map((i) => It(this, i, !0, !this.j)), d(this, s);
3462
3462
  }), this.g.attachEmptyPacketListener("confidence_masks", (n) => {
3463
3463
  this.confidenceMasks = [], d(this, n);
3464
3464
  })), this.outputCategoryMask && (S(e, "category_mask"), w(r, "CATEGORY_MASK:category_mask"), Lt(this, "category_mask"), this.g.Z("category_mask", (n, s) => {
3465
- this.categoryMask = Ot(this, n, !1, !this.j), d(this, s);
3465
+ this.categoryMask = It(this, n, !1, !this.j), d(this, s);
3466
3466
  }), this.g.attachEmptyPacketListener("category_mask", (n) => {
3467
3467
  this.categoryMask = void 0, d(this, n);
3468
3468
  })), S(e, "quality_scores"), w(r, "QUALITY_SCORES:quality_scores"), this.g.attachFloatVectorListener("quality_scores", (n, s) => {
@@ -3500,11 +3500,11 @@ var _e = class extends fe {
3500
3500
  }
3501
3501
  m() {
3502
3502
  var e = new pe();
3503
- I(e, "input_frame_gpu"), I(e, "norm_rect"), S(e, "detections");
3503
+ x(e, "input_frame_gpu"), x(e, "norm_rect"), S(e, "detections");
3504
3504
  const t = new de();
3505
- Ie(t, M1, this.h);
3505
+ xe(t, O1, this.h);
3506
3506
  const r = new ne();
3507
- he(r, 2, "mediapipe.tasks.vision.ObjectDetectorGraph"), M(r, "IMAGE:input_frame_gpu"), M(r, "NORM_RECT:norm_rect"), w(r, "DETECTIONS:detections"), r.o(t), Ee(e, r), this.g.attachProtoVectorListener("detections", (n, s) => {
3507
+ he(r, 2, "mediapipe.tasks.vision.ObjectDetectorGraph"), O(r, "IMAGE:input_frame_gpu"), O(r, "NORM_RECT:norm_rect"), w(r, "DETECTIONS:detections"), r.o(t), Ee(e, r), this.g.attachProtoVectorListener("detections", (n, s) => {
3508
3508
  for (const i of n) n = ea(i), this.j.detections.push(Ta(n));
3509
3509
  d(this, s);
3510
3510
  }), this.g.attachEmptyPacketListener("detections", (n) => {
@@ -3519,7 +3519,7 @@ _e.prototype.detectForVideo = _e.prototype.G, _e.prototype.detect = _e.prototype
3519
3519
  }, _e.createFromOptions = function(e, t) {
3520
3520
  return A(_e, e, t);
3521
3521
  };
3522
- var On = class {
3522
+ var In = class {
3523
3523
  constructor(e, t, r) {
3524
3524
  this.landmarks = e, this.worldLandmarks = t, this.segmentationMasks = r;
3525
3525
  }
@@ -3535,14 +3535,14 @@ function Di(e) {
3535
3535
  }
3536
3536
  function Bi(e) {
3537
3537
  try {
3538
- const t = new On(e.landmarks, e.worldLandmarks, e.segmentationMasks);
3538
+ const t = new In(e.landmarks, e.worldLandmarks, e.segmentationMasks);
3539
3539
  if (!e.u) return t;
3540
3540
  e.u(t);
3541
3541
  } finally {
3542
3542
  $r(e);
3543
3543
  }
3544
3544
  }
3545
- On.prototype.close = On.prototype.close;
3545
+ In.prototype.close = In.prototype.close;
3546
3546
  var oe = class extends fe {
3547
3547
  constructor(e, t) {
3548
3548
  super(new ke(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.outputSegmentationMasks = !1, v(e = this.h = new ka(), 0, 1, t = new N()), this.A = new ga(), v(this.h, 0, 3, this.A), this.j = new pa(), v(this.h, 0, 2, this.j), Ue(this.j, 4, 1), _(this.j, 2, 0.5), _(this.A, 2, 0.5), _(this.h, 4, 0.5);
@@ -3566,11 +3566,11 @@ var oe = class extends fe {
3566
3566
  }
3567
3567
  m() {
3568
3568
  var e = new pe();
3569
- I(e, "image_in"), I(e, "norm_rect"), S(e, "normalized_landmarks"), S(e, "world_landmarks"), S(e, "segmentation_masks");
3569
+ x(e, "image_in"), x(e, "norm_rect"), S(e, "normalized_landmarks"), S(e, "world_landmarks"), S(e, "segmentation_masks");
3570
3570
  const t = new de();
3571
- Ie(t, x1, this.h);
3571
+ xe(t, M1, this.h);
3572
3572
  const r = new ne();
3573
- he(r, 2, "mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"), M(r, "IMAGE:image_in"), M(r, "NORM_RECT:norm_rect"), w(r, "NORM_LANDMARKS:normalized_landmarks"), w(r, "WORLD_LANDMARKS:world_landmarks"), r.o(t), Ee(e, r), Yr(this, e), this.g.attachProtoVectorListener("normalized_landmarks", (n, s) => {
3573
+ he(r, 2, "mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"), O(r, "IMAGE:image_in"), O(r, "NORM_RECT:norm_rect"), w(r, "NORM_LANDMARKS:normalized_landmarks"), w(r, "WORLD_LANDMARKS:world_landmarks"), r.o(t), Ee(e, r), Yr(this, e), this.g.attachProtoVectorListener("normalized_landmarks", (n, s) => {
3574
3574
  this.landmarks = [];
3575
3575
  for (const i of n) n = lr(i), this.landmarks.push(zr(n));
3576
3576
  d(this, s);
@@ -3578,12 +3578,12 @@ var oe = class extends fe {
3578
3578
  this.landmarks = [], d(this, n);
3579
3579
  }), this.g.attachProtoVectorListener("world_landmarks", (n, s) => {
3580
3580
  this.worldLandmarks = [];
3581
- for (const i of n) n = _t(i), this.worldLandmarks.push(Zt(n));
3581
+ for (const i of n) n = _t(i), this.worldLandmarks.push(Qt(n));
3582
3582
  d(this, s);
3583
3583
  }), this.g.attachEmptyPacketListener("world_landmarks", (n) => {
3584
3584
  this.worldLandmarks = [], d(this, n);
3585
3585
  }), this.outputSegmentationMasks && (w(r, "SEGMENTATION_MASK:segmentation_masks"), Lt(this, "segmentation_masks"), this.g.aa("segmentation_masks", (n, s) => {
3586
- this.segmentationMasks = n.map((i) => Ot(this, i, !0, !this.u)), d(this, s);
3586
+ this.segmentationMasks = n.map((i) => It(this, i, !0, !this.u)), d(this, s);
3587
3587
  }), this.g.attachEmptyPacketListener("segmentation_masks", (n) => {
3588
3588
  this.segmentationMasks = [], d(this, n);
3589
3589
  })), e = e.g(), this.setGraph(new Uint8Array(e), !0);
@@ -3598,7 +3598,7 @@ oe.prototype.detectForVideo = oe.prototype.G, oe.prototype.detect = oe.prototype
3598
3598
  }, oe.POSE_CONNECTIONS = Va;
3599
3599
  class U1 {
3600
3600
  constructor(t) {
3601
- this.models = { face: null, hand: null }, this.webcam = null, this.currentStepRef = 0, this.isStepTransitioningRef = !1, this.timerId = null, this.requestId = null, this.heartbeatId = null, this.anchorRatios = null, this.lastNosePos = null, this.consecutiveMissingFrames = 0, this.MAX_GAP = 15, this.LIVENESS_LOCK_KEY = "liveness_active_session", this.offscreenCanvas = document.createElement("canvas"), this.CHALLENGE_POOL = ["Smile", "Blink", "Turn_Head", "Thumbs_Up"], this.attachVideo = (r) => {
3601
+ this.models = { face: null, hand: null }, this.webcam = null, this.currentStepRef = 0, this.isStepTransitioningRef = !1, this.timerId = null, this.requestId = null, this.heartbeatId = null, this.anchorRatios = null, this.lastNosePos = null, this.consecutiveMissingFrames = 0, this.MAX_GAP = 15, this.LIVENESS_LOCK_KEY = "liveness_active_session", this.stabilityFrames = 0, this.REQUIRED_STABILITY = 10, this.offscreenCanvas = document.createElement("canvas"), this.CHALLENGE_POOL = ["Smile", "Blink", "Turn_Head", "Thumbs_Up"], this.attachVideo = (r) => {
3602
3602
  this.webcam = r, console.log("[LivenessEngine] Video stream attached.");
3603
3603
  }, this.start = () => {
3604
3604
  const r = localStorage.getItem(this.LIVENESS_LOCK_KEY);
@@ -3629,14 +3629,18 @@ class U1 {
3629
3629
  if (this.state.status !== "capturing" || !this.webcam || !this.models.face) return;
3630
3630
  const r = performance.now();
3631
3631
  try {
3632
- const i = this.models.face.detectForVideo(this.webcam, r), o = (n = i.faceLandmarks) == null ? void 0 : n[0], a = this.state.sequence[this.currentStepRef];
3632
+ const i = this.models.face.detectForVideo(this.webcam, r), o = (n = i.faceLandmarks) == null ? void 0 : n[0];
3633
3633
  if (i.faceLandmarks && i.faceLandmarks.length > 1)
3634
3634
  return this.failInstantly("Multiple faces detected.");
3635
3635
  if (o) {
3636
- if (this.consecutiveMissingFrames = 0, !this.verifyIdentity(o) || !this.checkMovement(o))
3637
- return this.failInstantly("Security violation: Identity mismatch.");
3638
- const c = this.state.sequence[this.currentStepRef], l = (s = this.models.hand) == null ? void 0 : s.detectForVideo(this.webcam, r);
3639
- if (this.checkAction(i, l, c)) {
3636
+ if (this.consecutiveMissingFrames = 0, this.anchorRatios === null)
3637
+ this.stabilityFrames++, this.stabilityFrames >= this.REQUIRED_STABILITY && this.verifyIdentity(o);
3638
+ else if (!this.verifyIdentity(o) || !this.checkMovement(o)) {
3639
+ this.failInstantly("Security violation: Identity mismatch.");
3640
+ return;
3641
+ }
3642
+ const a = this.state.sequence[this.currentStepRef], c = (s = this.models.hand) == null ? void 0 : s.detectForVideo(this.webcam, r);
3643
+ if (this.checkAction(i, c, a)) {
3640
3644
  this.handleStepSuccess(o);
3641
3645
  return;
3642
3646
  }
@@ -3675,10 +3679,10 @@ class U1 {
3675
3679
  async loadModels() {
3676
3680
  console.log("[LivenessEngine] Loading AI Models...");
3677
3681
  try {
3678
- const t = await Ze.forVisionTasks(
3682
+ const t = await Qe.forVisionTasks(
3679
3683
  "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.3/wasm"
3680
3684
  );
3681
- this.models.face = await x.createFromOptions(t, {
3685
+ this.models.face = await M.createFromOptions(t, {
3682
3686
  baseOptions: {
3683
3687
  modelAssetPath: "https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/1/face_landmarker.task",
3684
3688
  delegate: "GPU"
@@ -3806,7 +3810,7 @@ class U1 {
3806
3810
  }
3807
3811
  }
3808
3812
  const V1 = (e) => {
3809
- const [t, r] = Za({
3813
+ const [t, r] = Qa({
3810
3814
  status: "loading",
3811
3815
  sequence: [],
3812
3816
  currentStep: 0,
@@ -3814,7 +3818,7 @@ const V1 = (e) => {
3814
3818
  isStepTransitioning: !1,
3815
3819
  errorMsg: "",
3816
3820
  snapshots: []
3817
- }), n = Is(null), s = Is(null);
3821
+ }), n = xs(null), s = xs(null);
3818
3822
  Rs(() => {
3819
3823
  const a = new U1({
3820
3824
  ...e,
@@ -3851,7 +3855,7 @@ const V1 = (e) => {
3851
3855
  reset: o
3852
3856
  };
3853
3857
  };
3854
- var Mn = { exports: {} }, Kt = {};
3858
+ var On = { exports: {} }, qt = {};
3855
3859
  /**
3856
3860
  * @license React
3857
3861
  * react-jsx-runtime.production.js
@@ -3863,7 +3867,7 @@ var Mn = { exports: {} }, Kt = {};
3863
3867
  */
3864
3868
  var ji;
3865
3869
  function G1() {
3866
- if (ji) return Kt;
3870
+ if (ji) return qt;
3867
3871
  ji = 1;
3868
3872
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
3869
3873
  function r(n, s, i) {
@@ -3881,7 +3885,7 @@ function G1() {
3881
3885
  props: i
3882
3886
  };
3883
3887
  }
3884
- return Kt.Fragment = t, Kt.jsx = r, Kt.jsxs = r, Kt;
3888
+ return qt.Fragment = t, qt.jsx = r, qt.jsxs = r, qt;
3885
3889
  }
3886
3890
  var zt = {};
3887
3891
  /**
@@ -3910,7 +3914,7 @@ function H1() {
3910
3914
  return "StrictMode";
3911
3915
  case Wa:
3912
3916
  return "Suspense";
3913
- case qa:
3917
+ case Ka:
3914
3918
  return "SuspenseList";
3915
3919
  case za:
3916
3920
  return "Activity";
@@ -3928,7 +3932,7 @@ function H1() {
3928
3932
  case Ha:
3929
3933
  var E = h.render;
3930
3934
  return h = h.displayName, h || (h = E.displayName || E.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
3931
- case Ka:
3935
+ case qa:
3932
3936
  return E = h.displayName || null, E !== null ? E : e(h.type) || "Memo";
3933
3937
  case Xr:
3934
3938
  E = h._payload, h = h._init;
@@ -3998,11 +4002,11 @@ function H1() {
3998
4002
  }
3999
4003
  function c() {
4000
4004
  var h = e(this.type);
4001
- return Os[h] || (Os[h] = !0, console.error(
4005
+ return Is[h] || (Is[h] = !0, console.error(
4002
4006
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
4003
4007
  )), h = this.props.ref, h !== void 0 ? h : null;
4004
4008
  }
4005
- function l(h, E, R, H, dr, Qr) {
4009
+ function l(h, E, R, H, dr, Zr) {
4006
4010
  var W = R.ref;
4007
4011
  return h = {
4008
4012
  $$typeof: C,
@@ -4032,10 +4036,10 @@ function H1() {
4032
4036
  configurable: !1,
4033
4037
  enumerable: !1,
4034
4038
  writable: !0,
4035
- value: Qr
4039
+ value: Zr
4036
4040
  }), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
4037
4041
  }
4038
- function u(h, E, R, H, dr, Qr) {
4042
+ function u(h, E, R, H, dr, Zr) {
4039
4043
  var W = E.children;
4040
4044
  if (W !== void 0)
4041
4045
  if (H)
@@ -4080,7 +4084,7 @@ React keys must be passed directly to JSX without using spread:
4080
4084
  R,
4081
4085
  s(),
4082
4086
  dr,
4083
- Qr
4087
+ Zr
4084
4088
  );
4085
4089
  }
4086
4090
  function f(h) {
@@ -4089,7 +4093,7 @@ React keys must be passed directly to JSX without using spread:
4089
4093
  function y(h) {
4090
4094
  return typeof h == "object" && h !== null && h.$$typeof === C;
4091
4095
  }
4092
- var b = Ja, C = Symbol.for("react.transitional.element"), Gt = Symbol.for("react.portal"), Te = Symbol.for("react.fragment"), Xe = Symbol.for("react.strict_mode"), Ht = Symbol.for("react.profiler"), fr = Symbol.for("react.consumer"), Ga = Symbol.for("react.context"), Ha = Symbol.for("react.forward_ref"), Wa = Symbol.for("react.suspense"), qa = Symbol.for("react.suspense_list"), Ka = Symbol.for("react.memo"), Xr = Symbol.for("react.lazy"), za = Symbol.for("react.activity"), Ya = Symbol.for("react.client.reference"), Jr = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ls = Object.prototype.hasOwnProperty, $a = Array.isArray, Zr = console.createTask ? console.createTask : function() {
4096
+ var b = Ja, C = Symbol.for("react.transitional.element"), Gt = Symbol.for("react.portal"), Te = Symbol.for("react.fragment"), Xe = Symbol.for("react.strict_mode"), Ht = Symbol.for("react.profiler"), fr = Symbol.for("react.consumer"), Ga = Symbol.for("react.context"), Ha = Symbol.for("react.forward_ref"), Wa = Symbol.for("react.suspense"), Ka = Symbol.for("react.suspense_list"), qa = Symbol.for("react.memo"), Xr = Symbol.for("react.lazy"), za = Symbol.for("react.activity"), Ya = Symbol.for("react.client.reference"), Jr = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ls = Object.prototype.hasOwnProperty, $a = Array.isArray, Qr = console.createTask ? console.createTask : function() {
4093
4097
  return null;
4094
4098
  };
4095
4099
  b = {
@@ -4097,10 +4101,10 @@ React keys must be passed directly to JSX without using spread:
4097
4101
  return h();
4098
4102
  }
4099
4103
  };
4100
- var Ps, Os = {}, Ms = b.react_stack_bottom_frame.bind(
4104
+ var Ps, Is = {}, Os = b.react_stack_bottom_frame.bind(
4101
4105
  b,
4102
4106
  i
4103
- )(), xs = Zr(n(i)), Fs = {};
4107
+ )(), Ms = Qr(n(i)), Fs = {};
4104
4108
  zt.Fragment = Te, zt.jsx = function(h, E, R) {
4105
4109
  var H = 1e4 > Jr.recentlyCreatedOwnerStacks++;
4106
4110
  return u(
@@ -4108,8 +4112,8 @@ React keys must be passed directly to JSX without using spread:
4108
4112
  E,
4109
4113
  R,
4110
4114
  !1,
4111
- H ? Error("react-stack-top-frame") : Ms,
4112
- H ? Zr(n(h)) : xs
4115
+ H ? Error("react-stack-top-frame") : Os,
4116
+ H ? Qr(n(h)) : Ms
4113
4117
  );
4114
4118
  }, zt.jsxs = function(h, E, R) {
4115
4119
  var H = 1e4 > Jr.recentlyCreatedOwnerStacks++;
@@ -4118,15 +4122,15 @@ React keys must be passed directly to JSX without using spread:
4118
4122
  E,
4119
4123
  R,
4120
4124
  !0,
4121
- H ? Error("react-stack-top-frame") : Ms,
4122
- H ? Zr(n(h)) : xs
4125
+ H ? Error("react-stack-top-frame") : Os,
4126
+ H ? Qr(n(h)) : Ms
4123
4127
  );
4124
4128
  };
4125
4129
  }()), zt;
4126
4130
  }
4127
- process.env.NODE_ENV === "production" ? Mn.exports = G1() : Mn.exports = H1();
4128
- var ye = Mn.exports;
4129
- const K1 = ({
4131
+ process.env.NODE_ENV === "production" ? On.exports = G1() : On.exports = H1();
4132
+ var ye = On.exports;
4133
+ const q1 = ({
4130
4134
  apiUrl: e,
4131
4135
  duration: t,
4132
4136
  onComplete: r,
@@ -4144,7 +4148,7 @@ const K1 = ({
4144
4148
  u.status === "loading" && /* @__PURE__ */ ye.jsx("div", { children: "Initializing..." }),
4145
4149
  ["ready", "capturing", "verifying"].includes(u.status) && /* @__PURE__ */ ye.jsxs(ye.Fragment, { children: [
4146
4150
  /* @__PURE__ */ ye.jsx(
4147
- Qa,
4151
+ Za,
4148
4152
  {
4149
4153
  ref: u.webcamRef,
4150
4154
  mirrored: !0,
@@ -4169,6 +4173,6 @@ const K1 = ({
4169
4173
  };
4170
4174
  export {
4171
4175
  U1 as L,
4172
- K1 as a,
4176
+ q1 as a,
4173
4177
  V1 as u
4174
4178
  };