@richard.fadiora/liveness-detection 4.3.13 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -360
- package/dist/{LivenessCheck-DxxnvHvi.js → LivenessCheck-Cr69CK-6.js} +679 -637
- package/dist/{LivenessCheck-YOJ3vZ1M.cjs → LivenessCheck-pkrh70Vp.cjs} +6 -6
- package/dist/angular/README.md +97 -360
- package/dist/angular/fesm2022/richard.fadiora-liveness-detection.mjs +96 -7
- package/dist/angular/fesm2022/richard.fadiora-liveness-detection.mjs.map +1 -1
- package/dist/angular/types/richard.fadiora-liveness-detection.d.ts +17 -1
- package/dist/core/LivenessEngine.d.ts +16 -0
- package/dist/core/LivenessEngine.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/react/useLiveness.d.ts.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Ja, { useState as Za, useRef as
|
|
1
|
+
import Ja, { useState as Za, useRef as Is, useEffect as Rs, useCallback as Ns } from "react";
|
|
2
2
|
import Qa from "react-webcam";
|
|
3
3
|
var yt = typeof self < "u" ? self : {};
|
|
4
4
|
function Qt(e, t) {
|
|
@@ -14,7 +14,7 @@ function Qt(e, t) {
|
|
|
14
14
|
function Je() {
|
|
15
15
|
throw Error("Invalid UTF8");
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Cs(e, t) {
|
|
18
18
|
return t = String.fromCharCode.apply(null, t), e == null ? t : e + t;
|
|
19
19
|
}
|
|
20
20
|
let pr, tn;
|
|
@@ -57,8 +57,8 @@ function Gi(e) {
|
|
|
57
57
|
throw e;
|
|
58
58
|
}, 0);
|
|
59
59
|
}
|
|
60
|
-
var ln, n2 = Qt(610401301, !1),
|
|
61
|
-
function
|
|
60
|
+
var ln, n2 = Qt(610401301, !1), Ds = Qt(748402147, !0), xn = Qt(824648567, !0), Fn = Qt(824656860, Qt(1, !0));
|
|
61
|
+
function Bs() {
|
|
62
62
|
var e = yt.navigator;
|
|
63
63
|
return e && (e = e.userAgent) ? e : "";
|
|
64
64
|
}
|
|
@@ -110,40 +110,40 @@ function Wi() {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
var i2 = typeof Uint8Array < "u",
|
|
113
|
+
var i2 = typeof Uint8Array < "u", qi = !(!(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
|
|
119
|
-
if (!
|
|
118
|
+
function Ki(e) {
|
|
119
|
+
if (!qi) 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
|
|
125
|
+
function In(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
|
|
130
|
+
return c2 || (c2 = new Me(null, vt));
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
|
|
132
|
+
function Rn(e) {
|
|
133
|
+
zi(vt);
|
|
134
134
|
var t = e.g;
|
|
135
|
-
return (t = t == null ||
|
|
135
|
+
return (t = t == null || In(t) ? t : typeof t == "string" ? Ki(t) : null) == null ? t : e.g = t;
|
|
136
136
|
}
|
|
137
|
-
var
|
|
137
|
+
var Me = class {
|
|
138
138
|
h() {
|
|
139
|
-
return new Uint8Array(
|
|
139
|
+
return new Uint8Array(Rn(this) || 0);
|
|
140
140
|
}
|
|
141
141
|
constructor(e, t) {
|
|
142
|
-
if (
|
|
142
|
+
if (zi(t), this.g = e, e != null && e.length === 0) throw Error("ByteString should be constructed with non-empty values");
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
let c2, u2;
|
|
146
|
-
function
|
|
146
|
+
function zi(e) {
|
|
147
147
|
if (e !== vt) throw Error("illegal external caller");
|
|
148
148
|
}
|
|
149
149
|
function Yi(e, t) {
|
|
@@ -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
|
|
161
|
+
function Mt() {
|
|
162
162
|
return typeof BigInt == "function";
|
|
163
163
|
}
|
|
164
|
-
var
|
|
165
|
-
function
|
|
164
|
+
var xt = typeof Symbol == "function" && typeof Symbol() == "symbol";
|
|
165
|
+
function xe(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 =
|
|
169
|
-
const $i = { Ga: { value: 0, configurable: !0, writable: !0, enumerable: !1 } }, Xi = Object.defineProperties, p =
|
|
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";
|
|
170
170
|
var ut;
|
|
171
171
|
const Hs = [];
|
|
172
172
|
function sr(e, t) {
|
|
173
|
-
|
|
173
|
+
xt || p in e || Xi(e, $i), e[p] |= t;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
|
|
175
|
+
function z(e, t) {
|
|
176
|
+
xt || p in e || Xi(e, $i), e[p] = t;
|
|
177
177
|
}
|
|
178
178
|
function ir(e) {
|
|
179
179
|
return sr(e, 34), e;
|
|
@@ -181,16 +181,16 @@ function ir(e) {
|
|
|
181
181
|
function er(e) {
|
|
182
182
|
return sr(e, 8192), e;
|
|
183
183
|
}
|
|
184
|
-
|
|
185
|
-
var
|
|
184
|
+
z(Hs, 7), ut = Object.freeze(Hs);
|
|
185
|
+
var wt = {};
|
|
186
186
|
function ue(e, t) {
|
|
187
187
|
return t === void 0 ? e.h !== at && !!(2 & (0 | e.v[p])) : !!(2 & t) && e.h !== at;
|
|
188
188
|
}
|
|
189
189
|
const at = {};
|
|
190
|
-
function
|
|
190
|
+
function Nn(e, t) {
|
|
191
191
|
if (e != null) {
|
|
192
|
-
if (typeof e == "string") e = e ? new
|
|
193
|
-
else if (e.constructor !==
|
|
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();
|
|
194
194
|
else {
|
|
195
195
|
if (!t) throw Error();
|
|
196
196
|
e = void 0;
|
|
@@ -223,23 +223,23 @@ function Ji(e, t, r) {
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
var Zi = {};
|
|
226
|
-
function
|
|
226
|
+
function Ft(e) {
|
|
227
227
|
return 128 & e ? Zi : 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"),
|
|
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";
|
|
233
233
|
function ce(e) {
|
|
234
234
|
var t = e;
|
|
235
|
-
if (
|
|
235
|
+
if (qs(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" :
|
|
238
|
+
return Or ? BigInt(e) : e = m2(e) ? e ? "1" : "0" : qs(e) ? e.trim() || "0" : String(e);
|
|
239
239
|
}
|
|
240
|
-
var pn = Pr((e) => Or ? e >= y2 && e <= b2 : e[0] === "-" ?
|
|
240
|
+
var pn = Pr((e) => Or ? e >= y2 && e <= b2 : e[0] === "-" ? Ks(e, _2) : Ks(e, v2));
|
|
241
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
|
|
242
|
+
function Ks(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++) {
|
|
@@ -248,47 +248,47 @@ function qs(e, t) {
|
|
|
248
248
|
if (n < s) return !0;
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
-
const
|
|
252
|
-
let
|
|
253
|
-
function
|
|
251
|
+
const E2 = typeof Uint8Array.prototype.slice == "function";
|
|
252
|
+
let w2, F = 0, U = 0;
|
|
253
|
+
function zs(e) {
|
|
254
254
|
const t = e >>> 0;
|
|
255
|
-
|
|
255
|
+
F = t, U = (e - t) / 4294967296 >>> 0;
|
|
256
256
|
}
|
|
257
257
|
function At(e) {
|
|
258
258
|
if (e < 0) {
|
|
259
|
-
|
|
260
|
-
const [t, r] = jn(
|
|
261
|
-
|
|
262
|
-
} else
|
|
259
|
+
zs(-e);
|
|
260
|
+
const [t, r] = jn(F, U);
|
|
261
|
+
F = t >>> 0, U = r >>> 0;
|
|
262
|
+
} else zs(e);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
const t =
|
|
266
|
-
t.setFloat32(0, +e, !0), U = 0,
|
|
264
|
+
function Cn(e) {
|
|
265
|
+
const t = w2 || (w2 = new DataView(new ArrayBuffer(8)));
|
|
266
|
+
t.setFloat32(0, +e, !0), U = 0, F = t.getUint32(0, !0);
|
|
267
267
|
}
|
|
268
268
|
function gn(e, t) {
|
|
269
269
|
const r = 4294967296 * t + (e >>> 0);
|
|
270
270
|
return Number.isSafeInteger(r) ? r : tr(e, t);
|
|
271
271
|
}
|
|
272
272
|
function A2(e, t) {
|
|
273
|
-
return ce(
|
|
273
|
+
return ce(Mt() ? BigInt.asUintN(64, (BigInt(t >>> 0) << BigInt(32)) + BigInt(e >>> 0)) : tr(e, t));
|
|
274
274
|
}
|
|
275
|
-
function
|
|
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
279
|
function Qi(e, t) {
|
|
280
|
-
return
|
|
280
|
+
return Mt() ? 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
|
|
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));
|
|
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
|
-
function
|
|
291
|
-
if (2147483648 & t) if (
|
|
290
|
+
function Bn(e, t) {
|
|
291
|
+
if (2147483648 & t) if (Mt()) 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,30 +296,30 @@ function Dn(e, t) {
|
|
|
296
296
|
else e = tr(e, t);
|
|
297
297
|
return e;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Mr(e) {
|
|
300
300
|
if (e.length < 16) At(Number(e));
|
|
301
|
-
else if (
|
|
301
|
+
else if (Mt()) 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
|
-
U =
|
|
304
|
+
U = F = 0;
|
|
305
305
|
const r = e.length;
|
|
306
306
|
for (let n = t, s = (r - t) % 6 + t; s <= r; n = s, s += 6) {
|
|
307
307
|
const i = Number(e.slice(n, s));
|
|
308
|
-
U *= 1e6,
|
|
308
|
+
U *= 1e6, F = 1e6 * F + i, F >= 4294967296 && (U += Math.trunc(F / 4294967296), U >>>= 0, F >>>= 0);
|
|
309
309
|
}
|
|
310
310
|
if (t) {
|
|
311
|
-
const [n, s] = jn(
|
|
312
|
-
|
|
311
|
+
const [n, s] = jn(F, U);
|
|
312
|
+
F = n, U = s;
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
function jn(e, t) {
|
|
317
317
|
return t = ~t, e ? e = 1 + ~e : t += 1, [e, t];
|
|
318
318
|
}
|
|
319
|
-
function
|
|
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,
|
|
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);
|
|
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;
|
|
@@ -343,31 +343,31 @@ function ar(e) {
|
|
|
343
343
|
case "bigint":
|
|
344
344
|
return !0;
|
|
345
345
|
case "number":
|
|
346
|
-
return
|
|
346
|
+
return xr(e);
|
|
347
347
|
case "string":
|
|
348
348
|
return T2.test(e);
|
|
349
349
|
default:
|
|
350
350
|
return !1;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function It(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
|
|
357
|
+
return xr(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
|
|
363
|
+
return xr(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 : (
|
|
367
|
+
return (e[0] === "-" ? t < 20 || t === 20 && e <= "-9223372036854775808" : t < 19 || t === 19 && e <= "9223372036854775807") ? e : (Mr(e), Bn(F, U));
|
|
368
368
|
}
|
|
369
369
|
function Un(e) {
|
|
370
|
-
return e = kt(e), ct(e) || (At(e), e =
|
|
370
|
+
return e = kt(e), ct(e) || (At(e), e = Dn(F, U)), e;
|
|
371
371
|
}
|
|
372
372
|
function no(e) {
|
|
373
373
|
var t = kt(Number(e));
|
|
@@ -375,10 +375,10 @@ 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)),
|
|
378
|
+
return ct(t) ? ce(t) : ((t = e.indexOf(".")) !== -1 && (e = e.substring(0, t)), Mt() ? ce(or(64, BigInt(e))) : ce(ro(e)));
|
|
379
379
|
}
|
|
380
380
|
function io(e) {
|
|
381
|
-
return ct(e) ? e = ce(Un(e)) : (e = kt(e), ct(e) ? e = String(e) : (At(e), e =
|
|
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;
|
|
382
382
|
}
|
|
383
383
|
function L2(e) {
|
|
384
384
|
return e == null ? e : typeof e == "bigint" ? (pn(e) ? e = Number(e) : (e = or(64, e), e = pn(e) ? Number(e) : String(e)), e) : ar(e) ? typeof e == "number" ? Un(e) : no(e) : void 0;
|
|
@@ -399,7 +399,7 @@ function Z(e) {
|
|
|
399
399
|
return e == null || typeof e == "string" ? e : void 0;
|
|
400
400
|
}
|
|
401
401
|
function Vn(e, t, r, n) {
|
|
402
|
-
return e != null && e[
|
|
402
|
+
return e != null && e[Et] === wt ? e : Array.isArray(e) ? ((n = (r = 0 | e[p]) | 32 & n | 2 & n) !== r && z(e, n), new t(e)) : (r ? 2 & n ? ((e = t[Vs]) || (ir((e = new t()).v), e = t[Vs] = e), t = e) : t = new t() : t = void 0, t);
|
|
403
403
|
}
|
|
404
404
|
function P2(e, t, r) {
|
|
405
405
|
if (t) e: {
|
|
@@ -419,7 +419,7 @@ function P2(e, t, r) {
|
|
|
419
419
|
return (e = t) == null ? r ? S2 : void 0 : e;
|
|
420
420
|
}
|
|
421
421
|
const O2 = {};
|
|
422
|
-
let
|
|
422
|
+
let M2 = 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
|
|
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 {
|
|
469
469
|
constructor() {
|
|
470
470
|
super();
|
|
471
471
|
}
|
|
@@ -476,9 +476,9 @@ 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
|
|
479
|
+
var De = class extends x2 {
|
|
480
480
|
constructor(e, t, r = $s, n = $s) {
|
|
481
|
-
super(), this.J = 0 | e[p], this.K = t, this.S = r, this.fa = this.K ?
|
|
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++) {
|
|
483
483
|
const i = e[s], o = r(i[0], !1, !0);
|
|
484
484
|
let a = i[1];
|
|
@@ -497,14 +497,14 @@ var Be = class extends F2 {
|
|
|
497
497
|
entries() {
|
|
498
498
|
if (this.K) {
|
|
499
499
|
var e = super.keys();
|
|
500
|
-
e = new Ws(e,
|
|
500
|
+
e = new Ws(e, I2, this);
|
|
501
501
|
} else e = super.entries();
|
|
502
502
|
return e;
|
|
503
503
|
}
|
|
504
504
|
values() {
|
|
505
505
|
if (this.K) {
|
|
506
506
|
var e = super.keys();
|
|
507
|
-
e = new Ws(e,
|
|
507
|
+
e = new Ws(e, De.prototype.get, this);
|
|
508
508
|
} else e = super.values();
|
|
509
509
|
return e;
|
|
510
510
|
}
|
|
@@ -535,34 +535,34 @@ var Be = class extends F2 {
|
|
|
535
535
|
return this.entries();
|
|
536
536
|
}
|
|
537
537
|
};
|
|
538
|
-
function
|
|
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
|
|
541
|
+
function I2(e) {
|
|
542
542
|
return [e, this.get(e)];
|
|
543
543
|
}
|
|
544
|
-
let
|
|
544
|
+
let R2;
|
|
545
545
|
function Xs() {
|
|
546
|
-
return
|
|
546
|
+
return R2 || (R2 = new De(ir([]), void 0, void 0, void 0, O2));
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Fr(e) {
|
|
549
549
|
return ae ? e[ae] : void 0;
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function Er(e, t) {
|
|
552
552
|
for (const r in e) !isNaN(r) && t(e, +r, e[r]);
|
|
553
553
|
}
|
|
554
|
-
|
|
554
|
+
De.prototype.toJSON = void 0;
|
|
555
555
|
var mn = class {
|
|
556
556
|
};
|
|
557
|
-
const
|
|
558
|
-
function
|
|
557
|
+
const N2 = { Ka: !0 };
|
|
558
|
+
function C2(e, t) {
|
|
559
559
|
t < 100 || bt(f2, 1);
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Ir(e, t, r, n) {
|
|
562
562
|
const s = n !== void 0;
|
|
563
563
|
n = !!n;
|
|
564
564
|
var i, o = ae;
|
|
565
|
-
!s &&
|
|
565
|
+
!s && xt && o && (i = e[o]) && Er(i, C2), o = [];
|
|
566
566
|
var a = e.length;
|
|
567
567
|
let c;
|
|
568
568
|
i = 4294967295;
|
|
@@ -572,23 +572,23 @@ function Rr(e, t, r, n) {
|
|
|
572
572
|
for (var y = 0; y < a; y++) {
|
|
573
573
|
let b = e[y];
|
|
574
574
|
if (b != null && (b = r(b, n)) != null) if (u && y >= i) {
|
|
575
|
-
const
|
|
576
|
-
(t ?? (t = {}))[
|
|
575
|
+
const C = y - f;
|
|
576
|
+
(t ?? (t = {}))[C] = b;
|
|
577
577
|
} else o[y] = b;
|
|
578
578
|
}
|
|
579
579
|
if (c) for (let b in c) {
|
|
580
580
|
if ((a = c[b]) == null || (a = r(a, n)) == null) continue;
|
|
581
|
-
let
|
|
582
|
-
y = +b, u && !Number.isNaN(y) && (
|
|
583
|
-
}
|
|
584
|
-
return t && (l ? o.push(t) : o[i] = t), s && ae && (e =
|
|
585
|
-
const
|
|
586
|
-
return
|
|
587
|
-
|
|
588
|
-
}),
|
|
581
|
+
let C;
|
|
582
|
+
y = +b, u && !Number.isNaN(y) && (C = y + f) < i ? o[C] = a : (t ?? (t = {}))[b] = a;
|
|
583
|
+
}
|
|
584
|
+
return t && (l ? o.push(t) : o[i] = t), s && ae && (e = Fr(e)) && e instanceof mn && (o[ae] = function(b) {
|
|
585
|
+
const C = new mn();
|
|
586
|
+
return Er(b, (Gt, Te, Xe) => {
|
|
587
|
+
C[Te] = we(Xe);
|
|
588
|
+
}), C.da = b.da, C;
|
|
589
589
|
}(e)), o;
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function D2(e) {
|
|
592
592
|
return e[0] = nr(e[0]), e[1] = nr(e[1]), e;
|
|
593
593
|
}
|
|
594
594
|
function nr(e) {
|
|
@@ -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 :
|
|
605
|
+
return e.length === 0 && 1 & t ? void 0 : Ir(e, t, nr);
|
|
606
606
|
}
|
|
607
|
-
if (e != null && e[
|
|
608
|
-
if (e instanceof
|
|
607
|
+
if (e != null && e[Et] === wt) return ao(e);
|
|
608
|
+
if (e instanceof Me) {
|
|
609
609
|
if ((t = e.g) == null) e = "";
|
|
610
610
|
else if (typeof t == "string") e = t;
|
|
611
611
|
else {
|
|
612
|
-
if (
|
|
612
|
+
if (qi) {
|
|
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 {
|
|
@@ -631,14 +631,14 @@ function nr(e) {
|
|
|
631
631
|
}
|
|
632
632
|
return e;
|
|
633
633
|
}
|
|
634
|
-
return e instanceof
|
|
634
|
+
return e instanceof De ? e = e.size !== 0 ? e.V(D2) : void 0 : void 0;
|
|
635
635
|
}
|
|
636
636
|
return e;
|
|
637
637
|
}
|
|
638
638
|
function ao(e) {
|
|
639
|
-
return
|
|
639
|
+
return Ir(e = e.v, 0 | e[p], nr);
|
|
640
640
|
}
|
|
641
|
-
let
|
|
641
|
+
let B2, j2;
|
|
642
642
|
function tt(e, t) {
|
|
643
643
|
return co(e, t[0], t[1]);
|
|
644
644
|
}
|
|
@@ -648,12 +648,12 @@ function co(e, t, r, n = 0) {
|
|
|
648
648
|
r ? (e = [r], s |= 128) : e = [], t && (s = -16760833 & s | (1023 & t) << 14);
|
|
649
649
|
} else {
|
|
650
650
|
if (!Array.isArray(e)) throw Error("narr");
|
|
651
|
-
if (s = 0 | e[p],
|
|
651
|
+
if (s = 0 | e[p], Ds && 1 & s) throw Error("rfarr");
|
|
652
652
|
if (2048 & s && !(2 & s) && function() {
|
|
653
|
-
if (
|
|
653
|
+
if (Ds) throw Error("carr");
|
|
654
654
|
bt(d2, 5);
|
|
655
655
|
}(), 256 & s) throw Error("farr");
|
|
656
|
-
if (64 & s) return (s | n) !== s &&
|
|
656
|
+
if (64 & s) return (s | n) !== s && z(e, s | n), e;
|
|
657
657
|
if (r && (s |= 128, r !== e[0])) throw Error("mid");
|
|
658
658
|
e: {
|
|
659
659
|
s |= 64;
|
|
@@ -674,7 +674,7 @@ function co(e, t, r, n = 0) {
|
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
return
|
|
677
|
+
return z(e, 64 | s | n), e;
|
|
678
678
|
}
|
|
679
679
|
function U2(e, t) {
|
|
680
680
|
if (typeof e != "object") return e;
|
|
@@ -682,55 +682,55 @@ 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[
|
|
686
|
-
if (e instanceof
|
|
685
|
+
if (e != null && e[Et] === wt) return Zs(e);
|
|
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[
|
|
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;
|
|
693
693
|
}
|
|
694
694
|
return r;
|
|
695
695
|
}
|
|
696
|
-
return e instanceof
|
|
696
|
+
return e instanceof Me ? e : void 0;
|
|
697
697
|
}
|
|
698
698
|
function Js(e, t, r) {
|
|
699
|
-
return 2 & t || (!r || 4096 & t || 16 & t ? e =
|
|
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;
|
|
700
700
|
}
|
|
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
704
|
function Zs(e) {
|
|
705
705
|
const t = e.v, r = 0 | t[p];
|
|
706
|
-
return ue(e, r) ? e : Wn(e, t, r) ? Gn(e, t) :
|
|
706
|
+
return ue(e, r) ? e : Wn(e, t, r) ? Gn(e, t) : Rt(t, r);
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
return n ?? (n = !!(34 & t)), e =
|
|
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;
|
|
710
710
|
}
|
|
711
711
|
function Hn(e) {
|
|
712
712
|
const t = e.v, r = 0 | t[p];
|
|
713
|
-
return ue(e, r) ? Wn(e, t, r) ? Gn(e, t, !0) : new e.constructor(
|
|
713
|
+
return ue(e, r) ? Wn(e, t, r) ? Gn(e, t, !0) : new e.constructor(Rt(t, r, !1)) : e;
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function Nt(e) {
|
|
716
716
|
if (e.h !== at) return !1;
|
|
717
717
|
var t = e.v;
|
|
718
|
-
return sr(t =
|
|
718
|
+
return sr(t = Rt(t, 0 | t[p]), 2048), e.v = t, e.h = void 0, e.m = void 0, !0;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
if (!
|
|
720
|
+
function Ct(e) {
|
|
721
|
+
if (!Nt(e) && ue(e, 0 | e.v[p])) throw Error();
|
|
722
722
|
}
|
|
723
723
|
function ht(e, t) {
|
|
724
|
-
t === void 0 && (t = 0 | e[p]), 32 & t && !(4096 & t) &&
|
|
724
|
+
t === void 0 && (t = 0 | e[p]), 32 & t && !(4096 & t) && z(e, 4096 | t);
|
|
725
725
|
}
|
|
726
726
|
function Wn(e, t, r) {
|
|
727
|
-
return !!(2 & r) || !(!(32 & r) || 4096 & r) && (
|
|
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
730
|
function O(e, t, r, n, s) {
|
|
731
|
-
if ((t =
|
|
731
|
+
if ((t = Be(e.v, t, r, s)) !== null || n && e.m !== at) return t;
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function Be(e, t, r, n) {
|
|
734
734
|
if (t === -1) return null;
|
|
735
735
|
const s = t + (r ? 0 : -1), i = e.length - 1;
|
|
736
736
|
let o, a;
|
|
@@ -749,9 +749,9 @@ function De(e, t, r, n) {
|
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
751
|
function T(e, t, r, n) {
|
|
752
|
-
|
|
752
|
+
Ct(e), q(e = e.v, 0 | e[p], t, r, n);
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function q(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) {
|
|
@@ -765,11 +765,11 @@ function Qe() {
|
|
|
765
765
|
}
|
|
766
766
|
function et(e, t, r, n, s) {
|
|
767
767
|
let i = e.v, o = 0 | i[p];
|
|
768
|
-
n = ue(e, o) ? 1 : n, s = !!s || n === 3, n === 2 &&
|
|
769
|
-
let a = (e =
|
|
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);
|
|
770
770
|
var l = !(4 & c);
|
|
771
771
|
if (l) {
|
|
772
|
-
4 & c && (e =
|
|
772
|
+
4 & c && (e = we(e), a = 0, c = nt(c, o), o = q(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]);
|
|
@@ -777,54 +777,54 @@ function et(e, t, r, n, s) {
|
|
|
777
777
|
}
|
|
778
778
|
f < u && (e.length = f), r = -513 & (4 | c), c = r &= -1025, c &= -4097;
|
|
779
779
|
}
|
|
780
|
-
return c !== a && (
|
|
780
|
+
return c !== a && (z(e, c), 2 & c && Object.freeze(e)), uo(e, c, i, o, t, n, l, 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 &&
|
|
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;
|
|
785
785
|
}
|
|
786
|
-
function
|
|
787
|
-
return e =
|
|
786
|
+
function qn(e, t, r) {
|
|
787
|
+
return e = Be(e, t, r), Array.isArray(e) ? e : ut;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function Kn(e, t) {
|
|
790
790
|
return 2 & t && (e |= 2), 1 | e;
|
|
791
791
|
}
|
|
792
792
|
function rt(e) {
|
|
793
793
|
return !!(2 & e) && !!(4 & e) || !!(256 & e);
|
|
794
794
|
}
|
|
795
795
|
function ho(e) {
|
|
796
|
-
return
|
|
796
|
+
return Nn(e, !0);
|
|
797
797
|
}
|
|
798
798
|
function lo(e) {
|
|
799
|
-
e =
|
|
799
|
+
e = we(e);
|
|
800
800
|
for (let t = 0; t < e.length; t++) {
|
|
801
|
-
const r = e[t] =
|
|
801
|
+
const r = e[t] = we(e[t]);
|
|
802
802
|
Array.isArray(r[1]) && (r[1] = ir(r[1]));
|
|
803
803
|
}
|
|
804
804
|
return er(e);
|
|
805
805
|
}
|
|
806
806
|
function We(e, t, r, n) {
|
|
807
|
-
|
|
807
|
+
Ct(e), q(e = e.v, 0 | e[p], t, (n === "0" ? Number(r) === 0 : r === n) ? void 0 : r);
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function Dt(e, t, r) {
|
|
810
810
|
if (2 & t) throw Error();
|
|
811
|
-
const n =
|
|
812
|
-
let s =
|
|
813
|
-
return (2 & o || rt(o) || 16 & o) && (o === i || rt(o) ||
|
|
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;
|
|
814
814
|
}
|
|
815
815
|
function sn(e, t) {
|
|
816
816
|
var r = sa;
|
|
817
|
-
return Yn(
|
|
817
|
+
return Yn(zn(e = e.v), e, void 0, r) === t ? t : -1;
|
|
818
818
|
}
|
|
819
|
-
function
|
|
820
|
-
if (
|
|
819
|
+
function zn(e) {
|
|
820
|
+
if (xt) 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
|
-
const i =
|
|
827
|
-
return o !== n && (o && (t =
|
|
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;
|
|
828
828
|
}
|
|
829
829
|
function Yn(e, t, r, n, s) {
|
|
830
830
|
let i = e.get(n);
|
|
@@ -832,27 +832,27 @@ 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
|
-
|
|
835
|
+
Be(t, a, s) != null && (i !== 0 && (r = q(t, r, i, void 0, s)), i = a);
|
|
836
836
|
}
|
|
837
837
|
return e.set(n, i), i;
|
|
838
838
|
}
|
|
839
839
|
function $n(e, t, r) {
|
|
840
840
|
let n = 0 | e[p];
|
|
841
|
-
const s =
|
|
841
|
+
const s = Ft(n), i = Be(e, r, s);
|
|
842
842
|
let o;
|
|
843
|
-
if (i != null && i[
|
|
844
|
-
if (!ue(i)) return
|
|
843
|
+
if (i != null && i[Et] === wt) {
|
|
844
|
+
if (!ue(i)) return Nt(i), i.v;
|
|
845
845
|
o = i.v;
|
|
846
846
|
} else Array.isArray(i) && (o = i);
|
|
847
847
|
if (o) {
|
|
848
848
|
const a = 0 | o[p];
|
|
849
|
-
2 & a && (o =
|
|
849
|
+
2 & a && (o = Rt(o, a));
|
|
850
850
|
}
|
|
851
|
-
return o = tt(o, t), o !== i &&
|
|
851
|
+
return o = tt(o, t), o !== i && q(e, n, r, o, s), o;
|
|
852
852
|
}
|
|
853
853
|
function po(e, t, r, n, s) {
|
|
854
854
|
let i = !1;
|
|
855
|
-
if ((n =
|
|
855
|
+
if ((n = Be(e, n, s, (o) => {
|
|
856
856
|
const a = Vn(o, r, !1, t);
|
|
857
857
|
return i = a !== o && a != null, a;
|
|
858
858
|
})) != null) return i && !ue(n) && ht(e, t), n;
|
|
@@ -862,34 +862,34 @@ 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 && (
|
|
865
|
+
o !== t && (Nt(e) && (s = e.v, i = 0 | s[p]), i = q(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
|
-
i = c ? 1 : i, o = !!o || i === 3, c = a && !c, (i === 2 || c) &&
|
|
872
|
-
var l = (e =
|
|
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);
|
|
873
873
|
if (a = !(4 & u)) {
|
|
874
874
|
var f = e, y = r;
|
|
875
875
|
const b = !!(2 & u);
|
|
876
876
|
b && (y |= 2);
|
|
877
|
-
let
|
|
877
|
+
let C = !b, Gt = !0, Te = 0, Xe = 0;
|
|
878
878
|
for (; Te < f.length; Te++) {
|
|
879
879
|
const Ht = Vn(f[Te], n, !1, y);
|
|
880
880
|
if (Ht instanceof n) {
|
|
881
881
|
if (!b) {
|
|
882
882
|
const fr = ue(Ht);
|
|
883
|
-
|
|
883
|
+
C && (C = !fr), Gt && (Gt = fr);
|
|
884
884
|
}
|
|
885
885
|
f[Xe++] = Ht;
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
|
-
Xe < Te && (f.length = Xe), u |= 4, u = Gt ? -4097 & u : 4096 | u, u =
|
|
888
|
+
Xe < Te && (f.length = Xe), u |= 4, u = Gt ? -4097 & u : 4096 | u, u = C ? 8 | u : -9 & u;
|
|
889
889
|
}
|
|
890
|
-
if (u !== l && (
|
|
891
|
-
for (rt(u) && (e =
|
|
892
|
-
c |= 8,
|
|
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);
|
|
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
|
}
|
|
@@ -906,15 +906,15 @@ function v(e, t, r, n, s) {
|
|
|
906
906
|
function Xt(e, t, r, n) {
|
|
907
907
|
e: {
|
|
908
908
|
var s = n = mo(n);
|
|
909
|
-
|
|
909
|
+
Ct(e);
|
|
910
910
|
const i = e.v;
|
|
911
911
|
let o = 0 | i[p];
|
|
912
912
|
if (s == null) {
|
|
913
|
-
const a =
|
|
913
|
+
const a = zn(i);
|
|
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
|
-
|
|
917
|
+
q(i, o, t, s);
|
|
918
918
|
}
|
|
919
919
|
n && !ue(n) && ht(e.v);
|
|
920
920
|
}
|
|
@@ -923,20 +923,20 @@ function nt(e, t) {
|
|
|
923
923
|
}
|
|
924
924
|
function Xn(e, t, r, n) {
|
|
925
925
|
var s = 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
|
|
929
|
+
return It(O(e, t, void 0, r));
|
|
930
930
|
}
|
|
931
931
|
function _o(e) {
|
|
932
|
-
return (
|
|
932
|
+
return (Fn ? O(e, 2, void 0, void 0, br) : br(O(e, 2))) ?? V2;
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function B(e, t) {
|
|
935
935
|
return O(e, t, void 0, void 0, Oe) ?? 0;
|
|
936
936
|
}
|
|
937
937
|
function Ue(e, t, r) {
|
|
938
938
|
if (r != null) {
|
|
939
|
-
if (typeof r != "number" || !
|
|
939
|
+
if (typeof r != "number" || !xr(r)) throw fn("int32");
|
|
940
940
|
r |= 0;
|
|
941
941
|
}
|
|
942
942
|
T(e, t, r);
|
|
@@ -947,24 +947,24 @@ function _(e, t, r) {
|
|
|
947
947
|
function he(e, t, r) {
|
|
948
948
|
We(e, t, cr(r), "");
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function wr(e, t, r) {
|
|
951
951
|
{
|
|
952
|
-
|
|
952
|
+
Ct(e);
|
|
953
953
|
const o = e.v;
|
|
954
954
|
let a = 0 | o[p];
|
|
955
|
-
if (r == null)
|
|
955
|
+
if (r == null) q(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
|
-
for (s || (e = 0), i || (r =
|
|
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
|
-
Object.is(c, l) || (i && (r =
|
|
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 =
|
|
962
|
+
e !== n && (i && (r = we(r), e = nt(e, a)), z(r, e)), q(o, a, t, r);
|
|
963
963
|
}
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
|
-
function
|
|
967
|
-
|
|
966
|
+
function Rr(e, t, r) {
|
|
967
|
+
Ct(e), et(e, t, Z, 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(
|
|
976
|
+
if (typeof e == "string") return new dt(Ki(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 ===
|
|
980
|
+
if (e.constructor === Me) 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
|
}
|
|
@@ -1001,14 +1001,14 @@ function Zn(e) {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
throw Error();
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function ze(e) {
|
|
1005
1005
|
const t = e.h;
|
|
1006
1006
|
let r = e.g, n = t[r++], s = 127 & n;
|
|
1007
1007
|
if (128 & n && (n = t[r++], s |= (127 & n) << 7, 128 & n && (n = t[r++], s |= (127 & n) << 14, 128 & n && (n = t[r++], s |= (127 & n) << 21, 128 & n && (n = t[r++], s |= n << 28, 128 & n && 128 & t[r++] && 128 & t[r++] && 128 & t[r++] && 128 & t[r++] && 128 & t[r++]))))) throw Error();
|
|
1008
1008
|
return st(e, r), s;
|
|
1009
1009
|
}
|
|
1010
1010
|
function Ve(e) {
|
|
1011
|
-
return
|
|
1011
|
+
return ze(e) >>> 0;
|
|
1012
1012
|
}
|
|
1013
1013
|
function Ar(e) {
|
|
1014
1014
|
var t = e.h;
|
|
@@ -1018,7 +1018,7 @@ function Ar(e) {
|
|
|
1018
1018
|
return t = t[r + 3], st(e, e.g + 4), e = 2 * ((s = (n << 0 | s << 8 | i << 16 | t << 24) >>> 0) >> 31) + 1, n = s >>> 23 & 255, s &= 8388607, n == 255 ? s ? NaN : e * (1 / 0) : n == 0 ? 1401298464324817e-60 * e * s : e * Math.pow(2, n - 150) * (s + 8388608);
|
|
1019
1019
|
}
|
|
1020
1020
|
function G2(e) {
|
|
1021
|
-
return
|
|
1021
|
+
return ze(e);
|
|
1022
1022
|
}
|
|
1023
1023
|
function st(e, t) {
|
|
1024
1024
|
if (e.g = t, t > e.l) throw Error();
|
|
@@ -1032,7 +1032,7 @@ 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) :
|
|
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);
|
|
1036
1036
|
}
|
|
1037
1037
|
var Qs = [];
|
|
1038
1038
|
function bo(e, t, r, n) {
|
|
@@ -1042,10 +1042,10 @@ function bo(e, t, r, n) {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
return new H2(e, t, r, n);
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1045
|
+
function Eo(e) {
|
|
1046
1046
|
e.g.clear(), e.l = -1, e.h = -1, kr.length < 100 && kr.push(e);
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function wo(e) {
|
|
1049
1049
|
var t = e.g;
|
|
1050
1050
|
if (t.g == t.l) return !1;
|
|
1051
1051
|
e.m = e.g.g;
|
|
@@ -1073,7 +1073,7 @@ function yr(e) {
|
|
|
1073
1073
|
break;
|
|
1074
1074
|
case 3:
|
|
1075
1075
|
for (t = e.l; ; ) {
|
|
1076
|
-
if (!
|
|
1076
|
+
if (!wo(e)) throw Error();
|
|
1077
1077
|
if (e.h == 4) {
|
|
1078
1078
|
if (e.l != t) throw Error();
|
|
1079
1079
|
break;
|
|
@@ -1118,9 +1118,9 @@ function Qn(e) {
|
|
|
1118
1118
|
let a, c = null;
|
|
1119
1119
|
for (; i < t; ) {
|
|
1120
1120
|
var o = e[i++];
|
|
1121
|
-
o < 128 ? r.push(o) : o < 224 ? i >= t ? Je() : (a = e[i++], o < 194 || (192 & a) != 128 ? (i--, Je()) : r.push((31 & o) << 6 | 63 & a)) : o < 240 ? i >= t - 1 ? Je() : (a = e[i++], (192 & a) != 128 || o === 224 && a < 160 || o === 237 && a >= 160 || (192 & (n = e[i++])) != 128 ? (i--, Je()) : r.push((15 & o) << 12 | (63 & a) << 6 | 63 & n)) : o <= 244 ? i >= t - 2 ? Je() : (a = e[i++], (192 & a) != 128 || a - 144 + (o << 28) >> 30 || (192 & (n = e[i++])) != 128 || (192 & (s = e[i++])) != 128 ? (i--, Je()) : (o = (7 & o) << 18 | (63 & a) << 12 | (63 & n) << 6 | 63 & s, o -= 65536, r.push(55296 + (o >> 10 & 1023), 56320 + (1023 & o)))) : Je(), r.length >= 8192 && (c =
|
|
1121
|
+
o < 128 ? r.push(o) : o < 224 ? i >= t ? Je() : (a = e[i++], o < 194 || (192 & a) != 128 ? (i--, Je()) : r.push((31 & o) << 6 | 63 & a)) : o < 240 ? i >= t - 1 ? Je() : (a = e[i++], (192 & a) != 128 || o === 224 && a < 160 || o === 237 && a >= 160 || (192 & (n = e[i++])) != 128 ? (i--, Je()) : r.push((15 & o) << 12 | (63 & a) << 6 | 63 & n)) : o <= 244 ? i >= t - 2 ? Je() : (a = e[i++], (192 & a) != 128 || a - 144 + (o << 28) >> 30 || (192 & (n = e[i++])) != 128 || (192 & (s = e[i++])) != 128 ? (i--, Je()) : (o = (7 & o) << 18 | (63 & a) << 12 | (63 & n) << 6 | 63 & s, o -= 65536, r.push(55296 + (o >> 10 & 1023), 56320 + (1023 & o)))) : Je(), r.length >= 8192 && (c = Cs(c, r), r.length = 0);
|
|
1122
1122
|
}
|
|
1123
|
-
i =
|
|
1123
|
+
i = Cs(c, r);
|
|
1124
1124
|
}
|
|
1125
1125
|
return i;
|
|
1126
1126
|
}
|
|
@@ -1128,7 +1128,7 @@ function Ao(e) {
|
|
|
1128
1128
|
const t = Ve(e.g);
|
|
1129
1129
|
return vo(e.g, t);
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function Nr(e, t, r) {
|
|
1132
1132
|
var n = Ve(e.g);
|
|
1133
1133
|
for (n = e.g.g + n; e.g.g < n; ) r.push(t(e.g));
|
|
1134
1134
|
}
|
|
@@ -1155,7 +1155,7 @@ var H2 = class {
|
|
|
1155
1155
|
}
|
|
1156
1156
|
}, kr = [];
|
|
1157
1157
|
function ei(e) {
|
|
1158
|
-
return e ? /^\d+$/.test(e) ? (
|
|
1158
|
+
return e ? /^\d+$/.test(e) ? (Mr(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,38 +1164,38 @@ var _n = class {
|
|
|
1164
1164
|
};
|
|
1165
1165
|
let W2;
|
|
1166
1166
|
function ti(e) {
|
|
1167
|
-
return e ? /^-?\d+$/.test(e) ? (
|
|
1167
|
+
return e ? /^-?\d+$/.test(e) ? (Mr(e), new yn(F, U)) : null : q2 || (q2 = 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
|
|
1174
|
+
let q2;
|
|
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);
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function Bt(e, t) {
|
|
1180
1180
|
for (; t > 127; ) e.g.push(127 & t | 128), t >>>= 7;
|
|
1181
1181
|
e.g.push(t);
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1184
|
-
if (t >= 0)
|
|
1183
|
+
function Cr(e, t) {
|
|
1184
|
+
if (t >= 0) Bt(e, t);
|
|
1185
1185
|
else {
|
|
1186
1186
|
for (let r = 0; r < 9; r++) e.g.push(127 & t | 128), t >>= 7;
|
|
1187
1187
|
e.g.push(1);
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
1190
|
function es(e) {
|
|
1191
|
-
var t =
|
|
1191
|
+
var t = F;
|
|
1192
1192
|
e.g.push(t >>> 0 & 255), e.g.push(t >>> 8 & 255), e.g.push(t >>> 16 & 255), e.g.push(t >>> 24 & 255);
|
|
1193
1193
|
}
|
|
1194
1194
|
function Tt(e, t) {
|
|
1195
1195
|
t.length !== 0 && (e.l.push(t), e.h += t.length);
|
|
1196
1196
|
}
|
|
1197
1197
|
function be(e, t, r) {
|
|
1198
|
-
|
|
1198
|
+
Bt(e.g, 8 * t + r);
|
|
1199
1199
|
}
|
|
1200
1200
|
function ts(e, t) {
|
|
1201
1201
|
return be(e, t, 2), t = e.g.end(), Tt(e, t), t.push(e.h), t;
|
|
@@ -1205,13 +1205,13 @@ function rs(e, t) {
|
|
|
1205
1205
|
for (r = e.h + e.g.length() - r; r > 127; ) t.push(127 & r | 128), r >>>= 7, e.h++;
|
|
1206
1206
|
t.push(r), e.h++;
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1209
|
-
be(e, t, 2),
|
|
1208
|
+
function Dr(e, t, r) {
|
|
1209
|
+
be(e, t, 2), Bt(e.g, r.length), Tt(e, e.g.end()), Tt(e, r);
|
|
1210
1210
|
}
|
|
1211
1211
|
function Sr(e, t, r, n) {
|
|
1212
1212
|
r != null && (t = ts(e, t), n(r, e), rs(e, t));
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function Fe() {
|
|
1215
1215
|
const e = class {
|
|
1216
1216
|
constructor() {
|
|
1217
1217
|
throw Error();
|
|
@@ -1219,8 +1219,8 @@ function Me() {
|
|
|
1219
1219
|
};
|
|
1220
1220
|
return Object.setPrototypeOf(e, e.prototype), e;
|
|
1221
1221
|
}
|
|
1222
|
-
var ns =
|
|
1223
|
-
function
|
|
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) {
|
|
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,8 +1234,8 @@ 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 (
|
|
1238
|
-
n(r, t,
|
|
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 {
|
|
1238
|
+
n(r, t, N2);
|
|
1239
1239
|
} catch (i) {
|
|
1240
1240
|
Gi(i);
|
|
1241
1241
|
}
|
|
@@ -1243,10 +1243,10 @@ var g = class {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
clone() {
|
|
1245
1245
|
const e = this.v, t = 0 | e[p];
|
|
1246
|
-
return Wn(this, e, t) ? Gn(this, e, !0) : new this.constructor(
|
|
1246
|
+
return Wn(this, e, t) ? Gn(this, e, !0) : new this.constructor(Rt(e, t, !1));
|
|
1247
1247
|
}
|
|
1248
1248
|
};
|
|
1249
|
-
g.prototype[
|
|
1249
|
+
g.prototype[Et] = wt, g.prototype.toString = function() {
|
|
1250
1250
|
return this.v.toString();
|
|
1251
1251
|
};
|
|
1252
1252
|
var jt = class {
|
|
@@ -1258,22 +1258,22 @@ function jr(e, t) {
|
|
|
1258
1258
|
return new jt(e, t, ns);
|
|
1259
1259
|
}
|
|
1260
1260
|
function Oo(e, t, r, n, s) {
|
|
1261
|
-
Sr(e, r,
|
|
1261
|
+
Sr(e, r, Io(t, n), s);
|
|
1262
1262
|
}
|
|
1263
|
-
const
|
|
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
1265
|
}, Oo), Y2 = jr(function(e, t, r, n, s) {
|
|
1266
1266
|
return e.h === 2 && (ur(e, $n(t, n, r), s), !0);
|
|
1267
1267
|
}, Oo);
|
|
1268
1268
|
var Ur = Symbol(), Vr = Symbol(), vn = Symbol(), ri = Symbol(), ni = Symbol();
|
|
1269
|
-
let
|
|
1269
|
+
let Mo, xo;
|
|
1270
1270
|
function lt(e, t, r, n) {
|
|
1271
1271
|
var s = n[e];
|
|
1272
1272
|
if (s) return s;
|
|
1273
1273
|
(s = {}).qa = n, s.T = function(f) {
|
|
1274
1274
|
switch (typeof f) {
|
|
1275
1275
|
case "boolean":
|
|
1276
|
-
return
|
|
1276
|
+
return B2 || (B2 = [0, void 0, !0]);
|
|
1277
1277
|
case "number":
|
|
1278
1278
|
return f > 0 ? void 0 : f === 0 ? j2 || (j2 = [0, void 0]) : [-f, void 0];
|
|
1279
1279
|
case "string":
|
|
@@ -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,
|
|
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]));
|
|
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;
|
|
@@ -1294,7 +1294,7 @@ function lt(e, t, r, n) {
|
|
|
1294
1294
|
let f;
|
|
1295
1295
|
typeof i == "number" && (c += i, i = n[++o]);
|
|
1296
1296
|
var l = void 0;
|
|
1297
|
-
if (i instanceof jt ? f = i : (f =
|
|
1297
|
+
if (i instanceof jt ? f = i : (f = z2, o--), f == null ? void 0 : f.l) {
|
|
1298
1298
|
i = n[++o], l = n;
|
|
1299
1299
|
var u = o;
|
|
1300
1300
|
typeof i == "function" && (i = i(), l[u] = i), l = i;
|
|
@@ -1306,10 +1306,10 @@ function lt(e, t, r, n) {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
return n[e] = s;
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function Fo(e) {
|
|
1310
1310
|
return Array.isArray(e) ? e[0] instanceof jt ? e : [Y2, e] : [e, void 0];
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function Io(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,8 +1325,8 @@ 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) =>
|
|
1329
|
-
for (;
|
|
1328
|
+
return t = r.ma ? (n, s) => Mo(n, s, r) : (n, s) => {
|
|
1329
|
+
for (; wo(s) && s.h != 4; ) {
|
|
1330
1330
|
var i = s.l, o = r[i];
|
|
1331
1331
|
if (o == null) {
|
|
1332
1332
|
var a = r.ba;
|
|
@@ -1338,12 +1338,12 @@ function cs(e) {
|
|
|
1338
1338
|
o = void 0, a = n, c && ((o = a[ae] ?? (a[ae] = new mn()))[i] ?? (o[i] = [])).push(c);
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
|
-
return (n =
|
|
1341
|
+
return (n = Fr(n)) && (n.da = r.qa[ni]), !0;
|
|
1342
1342
|
}, e[vn] = t, e[ni] = $2.bind(e), t;
|
|
1343
1343
|
}
|
|
1344
1344
|
function $2(e, t, r, n) {
|
|
1345
1345
|
var s = this[Vr];
|
|
1346
|
-
const i = this[vn], o = tt(void 0, s.T), a =
|
|
1346
|
+
const i = this[vn], o = tt(void 0, s.T), a = Fr(e);
|
|
1347
1347
|
if (a) {
|
|
1348
1348
|
var c = !1, l = s.ba;
|
|
1349
1349
|
if (l) {
|
|
@@ -1353,11 +1353,11 @@ function $2(e, t, r, n) {
|
|
|
1353
1353
|
try {
|
|
1354
1354
|
c = !0, i(o, u);
|
|
1355
1355
|
} finally {
|
|
1356
|
-
|
|
1356
|
+
Eo(u);
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
1359
|
else n == null || n(e, f, y);
|
|
1360
|
-
}, t == null)
|
|
1360
|
+
}, t == null) Er(a, s);
|
|
1361
1361
|
else if (a != null) {
|
|
1362
1362
|
const u = a[t];
|
|
1363
1363
|
u && s(a, t, u);
|
|
@@ -1365,22 +1365,22 @@ function $2(e, t, r, n) {
|
|
|
1365
1365
|
if (c) {
|
|
1366
1366
|
let u = 0 | e[p];
|
|
1367
1367
|
if (2 & u && 2048 & u && !(r != null && r.Ka)) throw Error();
|
|
1368
|
-
const f =
|
|
1369
|
-
if (
|
|
1368
|
+
const f = Ft(u), y = (b, C) => {
|
|
1369
|
+
if (Be(e, b, f) != null) {
|
|
1370
1370
|
if ((r == null ? void 0 : r.Qa) === 1) return;
|
|
1371
1371
|
throw Error();
|
|
1372
1372
|
}
|
|
1373
|
-
|
|
1373
|
+
C != null && (u = q(e, u, b, C, f)), delete a[b];
|
|
1374
1374
|
};
|
|
1375
|
-
t == null ? Ji(o, 0 | o[p], (b,
|
|
1376
|
-
y(b,
|
|
1377
|
-
}) : y(t,
|
|
1375
|
+
t == null ? Ji(o, 0 | o[p], (b, C) => {
|
|
1376
|
+
y(b, C);
|
|
1377
|
+
}) : y(t, Be(o, t, f));
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
1380
|
}
|
|
1381
1381
|
}
|
|
1382
1382
|
function X2(e) {
|
|
1383
|
-
const t = (e =
|
|
1383
|
+
const t = (e = Fo(e))[0].g;
|
|
1384
1384
|
if (e = e[1]) {
|
|
1385
1385
|
const r = cs(e), n = lt(Vr, os, as, e).T;
|
|
1386
1386
|
return (s, i, o) => t(s, i, o, n, r);
|
|
@@ -1393,35 +1393,35 @@ function Gr(e, t, r) {
|
|
|
1393
1393
|
function Hr(e, t, r, n) {
|
|
1394
1394
|
let s, i;
|
|
1395
1395
|
const o = r.h;
|
|
1396
|
-
e[t] = (a, c, l) => o(a, c, l, i || (i = lt(Ur, Gr, Hr, n).T), s || (s =
|
|
1396
|
+
e[t] = (a, c, l) => o(a, c, l, i || (i = lt(Ur, Gr, Hr, n).T), s || (s = Ro(n)));
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function Ro(e) {
|
|
1399
1399
|
let t = e[ri];
|
|
1400
1400
|
if (!t) {
|
|
1401
1401
|
const r = lt(Ur, Gr, Hr, e);
|
|
1402
|
-
t = (n, s) =>
|
|
1402
|
+
t = (n, s) => No(n, s, r), e[ri] = t;
|
|
1403
1403
|
}
|
|
1404
1404
|
return t;
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1406
|
+
function No(e, t, r) {
|
|
1407
1407
|
Ji(e, 0 | e[p], (n, s) => {
|
|
1408
1408
|
if (s != null) {
|
|
1409
1409
|
var i = function(o, a) {
|
|
1410
1410
|
var c = o[a];
|
|
1411
1411
|
if (c) return c;
|
|
1412
1412
|
if ((c = o.ba) && (c = c[a])) {
|
|
1413
|
-
var l = (c =
|
|
1413
|
+
var l = (c = Fo(c))[0].h;
|
|
1414
1414
|
if (c = c[1]) {
|
|
1415
|
-
const u =
|
|
1416
|
-
c = o.ma ?
|
|
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);
|
|
1417
1417
|
} else c = l;
|
|
1418
1418
|
return o[a] = c;
|
|
1419
1419
|
}
|
|
1420
1420
|
}(r, n);
|
|
1421
1421
|
i ? i(t, s, n) : n < 500 || bt(dn, 3);
|
|
1422
1422
|
}
|
|
1423
|
-
}), (e =
|
|
1424
|
-
for (Tt(t, t.g.end()), n = 0; n < i.length; n++) Tt(t,
|
|
1423
|
+
}), (e = Fr(e)) && Er(e, (n, s, i) => {
|
|
1424
|
+
for (Tt(t, t.g.end()), n = 0; n < i.length; n++) Tt(t, Rn(i[n]) || new Uint8Array(0));
|
|
1425
1425
|
});
|
|
1426
1426
|
}
|
|
1427
1427
|
const J2 = ce(0);
|
|
@@ -1433,7 +1433,7 @@ function Ut(e, t) {
|
|
|
1433
1433
|
const i = e(t[n]);
|
|
1434
1434
|
i != null && (t[s++] = i);
|
|
1435
1435
|
}
|
|
1436
|
-
return s < n && (t.length = s), (e = -1537 & (5 | r)) !== r &&
|
|
1436
|
+
return s < n && (t.length = s), (e = -1537 & (5 | r)) !== r && z(t, e), 2 & e && Object.freeze(t), t;
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
1439
|
function ee(e, t, r) {
|
|
@@ -1443,20 +1443,20 @@ function Vt(e, t, r) {
|
|
|
1443
1443
|
return new jt(e, t, r);
|
|
1444
1444
|
}
|
|
1445
1445
|
function J(e, t, r) {
|
|
1446
|
-
|
|
1446
|
+
q(e, 0 | e[p], t, r, Ft(0 | e[p]));
|
|
1447
1447
|
}
|
|
1448
1448
|
var Z2 = jr(function(e, t, r, n, s) {
|
|
1449
1449
|
if (e.h !== 2) return !1;
|
|
1450
|
-
if (e =
|
|
1451
|
-
let i =
|
|
1452
|
-
if (i instanceof
|
|
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
|
+
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);
|
|
1453
1453
|
else if (Array.isArray(i)) {
|
|
1454
1454
|
var o = 0 | i[p];
|
|
1455
|
-
8192 & o ||
|
|
1456
|
-
} else
|
|
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);
|
|
1457
1457
|
return !0;
|
|
1458
1458
|
}, function(e, t, r, n, s) {
|
|
1459
|
-
if (t instanceof
|
|
1459
|
+
if (t instanceof De) t.forEach((i, o) => {
|
|
1460
1460
|
Sr(e, r, tt([o, i], n), s);
|
|
1461
1461
|
});
|
|
1462
1462
|
else if (Array.isArray(t)) {
|
|
@@ -1467,10 +1467,10 @@ var Z2 = jr(function(e, t, r, n, s) {
|
|
|
1467
1467
|
er(t);
|
|
1468
1468
|
}
|
|
1469
1469
|
});
|
|
1470
|
-
function
|
|
1471
|
-
(t = Oe(t)) != null && (be(e, r, 5), e = e.g,
|
|
1470
|
+
function Co(e, t, r) {
|
|
1471
|
+
(t = Oe(t)) != null && (be(e, r, 5), e = e.g, Cn(t), es(e));
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1473
|
+
function Do(e, t, r) {
|
|
1474
1474
|
if (t = function(n) {
|
|
1475
1475
|
if (n == null) return n;
|
|
1476
1476
|
const s = typeof n;
|
|
@@ -1482,7 +1482,7 @@ function Bo(e, t, r) {
|
|
|
1482
1482
|
}(t), t != null && (typeof t == "string" && ti(t), t != null))
|
|
1483
1483
|
switch (be(e, r, 0), typeof t) {
|
|
1484
1484
|
case "number":
|
|
1485
|
-
e = e.g, At(t), mt(e,
|
|
1485
|
+
e = e.g, At(t), mt(e, F, U);
|
|
1486
1486
|
break;
|
|
1487
1487
|
case "bigint":
|
|
1488
1488
|
r = BigInt.asUintN(64, t), r = new yn(Number(r & BigInt(4294967295)), Number(r >> BigInt(32))), mt(e.g, r.h, r.g);
|
|
@@ -1491,57 +1491,57 @@ function Bo(e, t, r) {
|
|
|
1491
1491
|
r = ti(t), mt(e.g, r.h, r.g);
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1495
|
-
(t =
|
|
1494
|
+
function Bo(e, t, r) {
|
|
1495
|
+
(t = It(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 &&
|
|
1501
|
+
(t = Z(t)) != null && Dr(e, r, Vi(t));
|
|
1502
1502
|
}
|
|
1503
1503
|
function Vo(e, t, r, n, s) {
|
|
1504
|
-
Sr(e, r,
|
|
1504
|
+
Sr(e, r, Io(t, n), s);
|
|
1505
1505
|
}
|
|
1506
1506
|
function Go(e, t, r) {
|
|
1507
|
-
(t = t == null || typeof t == "string" || t instanceof
|
|
1507
|
+
(t = t == null || typeof t == "string" || t instanceof Me ? t : void 0) != null && Dr(e, r, Jn(t, !0).buffer);
|
|
1508
1508
|
}
|
|
1509
1509
|
function Ho(e, t, r) {
|
|
1510
|
-
return (e.h === 5 || e.h === 2) && (t =
|
|
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
|
-
},
|
|
1514
|
+
}, Co, Br), Q2 = Vt(Ho, function(e, t, r) {
|
|
1515
1515
|
if ((t = Ut(Oe, t)) != null) for (let o = 0; o < t.length; o++) {
|
|
1516
1516
|
var n = e, s = r, i = t[o];
|
|
1517
|
-
i != null && (be(n, s, 5), n = n.g,
|
|
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
1520
|
if ((t = Ut(Oe, t)) != null && t.length) {
|
|
1521
|
-
be(e, r, 2),
|
|
1522
|
-
for (let n = 0; n < t.length; n++) r = e.g,
|
|
1521
|
+
be(e, r, 2), Bt(e.g, 4 * t.length);
|
|
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
|
-
},
|
|
1527
|
-
return
|
|
1528
|
-
},
|
|
1529
|
-
return
|
|
1530
|
-
},
|
|
1531
|
-
return
|
|
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);
|
|
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);
|
|
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);
|
|
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")) || (
|
|
1539
|
-
if (s === "number") return (n = kt(n)) >= 0 && ct(n) || (At(n), n = gn(
|
|
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;
|
|
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))
|
|
1542
1542
|
switch (be(e, r, 0), typeof t) {
|
|
1543
1543
|
case "number":
|
|
1544
|
-
e = e.g, At(t), mt(e,
|
|
1544
|
+
e = e.g, At(t), mt(e, F, U);
|
|
1545
1545
|
break;
|
|
1546
1546
|
case "bigint":
|
|
1547
1547
|
r = BigInt.asUintN(64, t), r = new _n(Number(r & BigInt(4294967295)), Number(r >> BigInt(32))), mt(e.g, r.h, r.g);
|
|
@@ -1549,63 +1549,63 @@ 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
|
-
},
|
|
1553
|
-
return e.h === 0 && (J(t, r,
|
|
1554
|
-
},
|
|
1555
|
-
return (e.h === 0 || e.h === 2) && (t =
|
|
1552
|
+
}, K2), X = ee(function(e, t, r) {
|
|
1553
|
+
return e.h === 0 && (J(t, r, ze(e.g)), !0);
|
|
1554
|
+
}, Bo, is), hr = Vt(function(e, t, r) {
|
|
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(
|
|
1557
|
+
if ((t = Ut(It, t)) != null && t.length) {
|
|
1558
1558
|
r = ts(e, r);
|
|
1559
|
-
for (let n = 0; n < t.length; n++)
|
|
1559
|
+
for (let n = 0; n < t.length; n++) Cr(e.g, t[n]);
|
|
1560
1560
|
rs(e, r);
|
|
1561
1561
|
}
|
|
1562
1562
|
}, is), gt = ee(function(e, t, r) {
|
|
1563
|
-
return e.h === 0 && (J(t, r, (e =
|
|
1564
|
-
},
|
|
1563
|
+
return e.h === 0 && (J(t, r, (e = ze(e.g)) === 0 ? void 0 : e), !0);
|
|
1564
|
+
}, Bo, is), j = ee(function(e, t, r) {
|
|
1565
1565
|
return e.h === 0 && (J(t, r, Zn(e.g)), !0);
|
|
1566
1566
|
}, jo, ko), it = ee(function(e, t, r) {
|
|
1567
1567
|
return e.h === 0 && (J(t, r, (e = Zn(e.g)) === !1 ? void 0 : e), !0);
|
|
1568
1568
|
}, jo, ko), Q = Vt(function(e, t, r) {
|
|
1569
|
-
return e.h === 2 && (e = Qn(e),
|
|
1569
|
+
return e.h === 2 && (e = Qn(e), Dt(t, 0 | t[p], r).push(e), !0);
|
|
1570
1570
|
}, function(e, t, r) {
|
|
1571
1571
|
if ((t = Ut(Z, t)) != null) for (let o = 0; o < t.length; o++) {
|
|
1572
1572
|
var n = e, s = r, i = t[o];
|
|
1573
|
-
i != null &&
|
|
1573
|
+
i != null && Dr(n, s, Vi(i));
|
|
1574
1574
|
}
|
|
1575
|
-
}, ss),
|
|
1575
|
+
}, ss), qe = ee(function(e, t, r) {
|
|
1576
1576
|
return e.h === 2 && (J(t, r, (e = Qn(e)) === "" ? void 0 : e), !0);
|
|
1577
1577
|
}, Uo, ss), L = ee(function(e, t, r) {
|
|
1578
1578
|
return e.h === 2 && (J(t, r, Qn(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) {
|
|
1582
|
-
return e.h === 2 && (n = tt(void 0, n),
|
|
1582
|
+
return e.h === 2 && (n = tt(void 0, n), Dt(t, 0 | t[p], r).push(n), ur(e, n, s), !0);
|
|
1583
1583
|
}, function(e, t, r, n, s) {
|
|
1584
1584
|
if (Array.isArray(t)) {
|
|
1585
1585
|
for (let i = 0; i < t.length; i++) Vo(e, t[i], r, n, s);
|
|
1586
|
-
1 & (e = 0 | t[p]) ||
|
|
1586
|
+
1 & (e = 0 | t[p]) || z(t, 1 | e);
|
|
1587
1587
|
}
|
|
1588
|
-
}),
|
|
1588
|
+
}), D = jr(function(e, t, r, n, s, i) {
|
|
1589
1589
|
if (e.h !== 2) return !1;
|
|
1590
1590
|
let o = 0 | t[p];
|
|
1591
|
-
return fo(t, o, i, r,
|
|
1591
|
+
return fo(t, o, i, r, Ft(o)), ur(e, t = $n(t, n, r), s), !0;
|
|
1592
1592
|
}, Vo), Wo = ee(function(e, t, r) {
|
|
1593
1593
|
return e.h === 2 && (J(t, r, Ao(e)), !0);
|
|
1594
1594
|
}, Go, Lo), r1 = Vt(function(e, t, r) {
|
|
1595
|
-
return (e.h === 0 || e.h === 2) && (t =
|
|
1595
|
+
return (e.h === 0 || e.h === 2) && (t = Dt(t, 0 | t[p], r), e.h == 2 ? Nr(e, Ve, t) : t.push(Ve(e.g)), !0);
|
|
1596
1596
|
}, function(e, t, r) {
|
|
1597
1597
|
if ((t = Ut(to, t)) != null) for (let o = 0; o < t.length; o++) {
|
|
1598
1598
|
var n = e, s = r, i = t[o];
|
|
1599
|
-
i != null && (be(n, s, 0),
|
|
1599
|
+
i != null && (be(n, s, 0), Bt(n.g, i));
|
|
1600
1600
|
}
|
|
1601
1601
|
}, So), n1 = ee(function(e, t, r) {
|
|
1602
1602
|
return e.h === 0 && (J(t, r, (e = Ve(e.g)) === 0 ? void 0 : e), !0);
|
|
1603
1603
|
}, function(e, t, r) {
|
|
1604
|
-
(t = to(t)) != null && t != null && (be(e, r, 0),
|
|
1604
|
+
(t = to(t)) != null && t != null && (be(e, r, 0), Bt(e.g, t));
|
|
1605
1605
|
}, So), le = ee(function(e, t, r) {
|
|
1606
|
-
return e.h === 0 && (J(t, r,
|
|
1606
|
+
return e.h === 0 && (J(t, r, ze(e.g)), !0);
|
|
1607
1607
|
}, function(e, t, r) {
|
|
1608
|
-
(t =
|
|
1608
|
+
(t = It(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) {
|
|
@@ -1616,7 +1616,7 @@ class s1 {
|
|
|
1616
1616
|
Lr(this);
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function Re(e, t) {
|
|
1620
1620
|
return new s1(e, t);
|
|
1621
1621
|
}
|
|
1622
1622
|
function $e(e, t) {
|
|
@@ -1629,7 +1629,7 @@ function $e(e, t) {
|
|
|
1629
1629
|
cs(t)(a, r);
|
|
1630
1630
|
var s = o;
|
|
1631
1631
|
} finally {
|
|
1632
|
-
|
|
1632
|
+
Eo(r);
|
|
1633
1633
|
}
|
|
1634
1634
|
}
|
|
1635
1635
|
return s;
|
|
@@ -1653,7 +1653,7 @@ function Wr(e) {
|
|
|
1653
1653
|
}();
|
|
1654
1654
|
}
|
|
1655
1655
|
}();
|
|
1656
|
-
|
|
1656
|
+
No(this.v, t, lt(Ur, Gr, Hr, e)), Tt(t, t.g.end());
|
|
1657
1657
|
const r = new Uint8Array(t.h), n = t.l, s = n.length;
|
|
1658
1658
|
let i = 0;
|
|
1659
1659
|
for (let o = 0; o < s; o++) {
|
|
@@ -1667,13 +1667,13 @@ var si = class extends g {
|
|
|
1667
1667
|
constructor(e) {
|
|
1668
1668
|
super(e);
|
|
1669
1669
|
}
|
|
1670
|
-
}, ii = [0,
|
|
1670
|
+
}, ii = [0, qe, 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) {
|
|
1674
1674
|
if (t instanceof g) {
|
|
1675
1675
|
const n = t.Ra;
|
|
1676
|
-
return void (n ? (t = n(t), t != null &&
|
|
1676
|
+
return void (n ? (t = n(t), t != null && Dr(e, r, Jn(t, !0).buffer)) : bt(dn, 3));
|
|
1677
1677
|
}
|
|
1678
1678
|
if (Array.isArray(t)) return void bt(dn, 3);
|
|
1679
1679
|
}
|
|
@@ -1706,19 +1706,19 @@ 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
|
|
1709
|
+
var qo = [0, X, le, j, -1, hr, le, -1, j], o1 = class extends g {
|
|
1710
1710
|
constructor(e) {
|
|
1711
1711
|
super(e);
|
|
1712
1712
|
}
|
|
1713
|
-
},
|
|
1714
|
-
return (e.h === 0 || e.h === 2) && (t =
|
|
1713
|
+
}, Ko = [0, j, L, j, le, -1, Vt(function(e, t, r) {
|
|
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(
|
|
1716
|
+
if ((t = Ut(It, t)) != null && t.length) {
|
|
1717
1717
|
r = ts(e, r);
|
|
1718
|
-
for (let n = 0; n < t.length; n++)
|
|
1718
|
+
for (let n = 0; n < t.length; n++) Cr(e.g, t[n]);
|
|
1719
1719
|
rs(e, r);
|
|
1720
1720
|
}
|
|
1721
|
-
}, Po), L, -1, [0, j, -1], le, j, -1],
|
|
1721
|
+
}, Po), L, -1, [0, j, -1], le, j, -1], zo = [0, 3, j, -1, 2, [0, X], [0, le, j], [0, L, -1], [0]], Yo = [0, L, -2], ci = class extends g {
|
|
1722
1722
|
constructor(e) {
|
|
1723
1723
|
super(e);
|
|
1724
1724
|
}
|
|
@@ -1726,14 +1726,14 @@ var zo = [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
|
-
},
|
|
1730
|
-
|
|
1731
|
-
var ui = [0, on, -1, it, -3, on, hr,
|
|
1732
|
-
function
|
|
1733
|
-
|
|
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) {
|
|
1733
|
+
Rr(e, 3, t);
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1736
|
-
|
|
1735
|
+
function w(e, t) {
|
|
1736
|
+
Rr(e, 4, t);
|
|
1737
1737
|
}
|
|
1738
1738
|
var ne = class extends g {
|
|
1739
1739
|
constructor(e) {
|
|
@@ -1743,14 +1743,14 @@ var ne = class extends g {
|
|
|
1743
1743
|
return v(this, 0, 7, e);
|
|
1744
1744
|
}
|
|
1745
1745
|
}, Jt = [-1, {}], hi = [0, L, 1, Jt], li = [0, L, Q, Jt];
|
|
1746
|
-
function
|
|
1746
|
+
function Ee(e, t) {
|
|
1747
1747
|
Xn(e, 1, ne, t);
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1750
|
-
|
|
1749
|
+
function I(e, t) {
|
|
1750
|
+
Rr(e, 10, t);
|
|
1751
1751
|
}
|
|
1752
1752
|
function S(e, t) {
|
|
1753
|
-
|
|
1753
|
+
Rr(e, 15, t);
|
|
1754
1754
|
}
|
|
1755
1755
|
var pe = class extends g {
|
|
1756
1756
|
constructor(e) {
|
|
@@ -1759,7 +1759,7 @@ var pe = class extends g {
|
|
|
1759
1759
|
o(e) {
|
|
1760
1760
|
return v(this, 0, 1001, e);
|
|
1761
1761
|
}
|
|
1762
|
-
}, Jo = [-500, $, [-500,
|
|
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];
|
|
1763
1763
|
pe.prototype.g = Wr(Jo);
|
|
1764
1764
|
var a1 = $e(pe, Jo), c1 = class extends g {
|
|
1765
1765
|
constructor(e) {
|
|
@@ -1772,7 +1772,7 @@ var a1 = $e(pe, Jo), c1 = class extends g {
|
|
|
1772
1772
|
g() {
|
|
1773
1773
|
return je(this, c1, 1);
|
|
1774
1774
|
}
|
|
1775
|
-
}, Qo = [0, $, [0, X, V, L, -1]],
|
|
1775
|
+
}, Qo = [0, $, [0, X, V, L, -1]], qr = $e(Zo, Qo), u1 = class extends g {
|
|
1776
1776
|
constructor(e) {
|
|
1777
1777
|
super(e);
|
|
1778
1778
|
}
|
|
@@ -1848,7 +1848,7 @@ var d1 = class extends g {
|
|
|
1848
1848
|
constructor(e) {
|
|
1849
1849
|
super(e);
|
|
1850
1850
|
}
|
|
1851
|
-
}, [0, $, [0, sa,
|
|
1851
|
+
}, [0, $, [0, sa, D, [0, us], D, [0, Wo], X, L], Ye]), hs = class extends g {
|
|
1852
1852
|
constructor(e) {
|
|
1853
1853
|
super(e);
|
|
1854
1854
|
}
|
|
@@ -1870,19 +1870,19 @@ var d1 = class extends g {
|
|
|
1870
1870
|
l() {
|
|
1871
1871
|
return Z(O(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
1878
|
return eo(O(this, 2)) ?? !1;
|
|
1879
1879
|
}
|
|
1880
|
-
}, oa = [0, Wo, L, [0, X, Ye, -1], [0, t1, Ye]], G = [0, oa, j, [0, vr,
|
|
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 {
|
|
1881
1881
|
constructor(e) {
|
|
1882
1882
|
super(e);
|
|
1883
1883
|
}
|
|
1884
|
-
}, ls = [0, G, V, -1, X], v1 =
|
|
1885
|
-
|
|
1884
|
+
}, ls = [0, G, V, -1, X], v1 = Re(502141897, Kr);
|
|
1885
|
+
K[502141897] = ls;
|
|
1886
1886
|
var b1 = $e(class extends g {
|
|
1887
1887
|
constructor(e) {
|
|
1888
1888
|
super(e);
|
|
@@ -1895,8 +1895,8 @@ var b1 = $e(class extends g {
|
|
|
1895
1895
|
constructor(e) {
|
|
1896
1896
|
super(e);
|
|
1897
1897
|
}
|
|
1898
|
-
}, bn = [0, G, V, [0, G], j],
|
|
1899
|
-
|
|
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;
|
|
1900
1900
|
var pt = class extends g {
|
|
1901
1901
|
constructor(e) {
|
|
1902
1902
|
super(e);
|
|
@@ -1908,8 +1908,8 @@ var pt = class extends g {
|
|
|
1908
1908
|
T(this, 2);
|
|
1909
1909
|
}
|
|
1910
1910
|
}, ua = [0, G, ia];
|
|
1911
|
-
|
|
1912
|
-
var
|
|
1911
|
+
K[478825465] = ua;
|
|
1912
|
+
var w1 = class extends g {
|
|
1913
1913
|
constructor(e) {
|
|
1914
1914
|
super(e);
|
|
1915
1915
|
}
|
|
@@ -1929,10 +1929,10 @@ var E1 = class extends g {
|
|
|
1929
1929
|
constructor(e) {
|
|
1930
1930
|
super(e);
|
|
1931
1931
|
}
|
|
1932
|
-
}, gi = [0, G, [0, G], ua, -1], fa = [0, G, V, X], ps = [0, G, V], da = [0, G, fa, ps, V], A1 =
|
|
1933
|
-
|
|
1934
|
-
var k1 =
|
|
1935
|
-
|
|
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;
|
|
1934
|
+
var k1 = Re(462713202, ds);
|
|
1935
|
+
K[462713202] = da, K[474472470] = ps;
|
|
1936
1936
|
var S1 = class extends g {
|
|
1937
1937
|
constructor(e) {
|
|
1938
1938
|
super(e);
|
|
@@ -1949,20 +1949,20 @@ var S1 = class extends g {
|
|
|
1949
1949
|
constructor(e) {
|
|
1950
1950
|
super(e);
|
|
1951
1951
|
}
|
|
1952
|
-
}, gs = [0, G, V, -1, X],
|
|
1953
|
-
ma.prototype.g = Wr([0, G, ps, [0, G], ls, bn, gs,
|
|
1952
|
+
}, gs = [0, G, V, -1, X], En = [0, G, V, j];
|
|
1953
|
+
ma.prototype.g = Wr([0, G, ps, [0, G], ls, bn, gs, En]);
|
|
1954
1954
|
var _a = class extends g {
|
|
1955
1955
|
constructor(e) {
|
|
1956
1956
|
super(e);
|
|
1957
1957
|
}
|
|
1958
|
-
}, T1 =
|
|
1959
|
-
|
|
1958
|
+
}, T1 = Re(456383383, _a);
|
|
1959
|
+
K[456383383] = [0, G, ia];
|
|
1960
1960
|
var ya = class extends g {
|
|
1961
1961
|
constructor(e) {
|
|
1962
1962
|
super(e);
|
|
1963
1963
|
}
|
|
1964
|
-
}, L1 =
|
|
1965
|
-
|
|
1964
|
+
}, L1 = Re(476348187, ya);
|
|
1965
|
+
K[476348187] = [0, G, y1];
|
|
1966
1966
|
var va = class extends g {
|
|
1967
1967
|
constructor(e) {
|
|
1968
1968
|
super(e);
|
|
@@ -1971,7 +1971,7 @@ var va = class extends g {
|
|
|
1971
1971
|
constructor(e) {
|
|
1972
1972
|
super(e);
|
|
1973
1973
|
}
|
|
1974
|
-
}, ba = [0, le, -1], P1 =
|
|
1974
|
+
}, ba = [0, le, -1], P1 = Re(458105876, class extends g {
|
|
1975
1975
|
constructor(e) {
|
|
1976
1976
|
super(e);
|
|
1977
1977
|
}
|
|
@@ -1981,12 +1981,12 @@ var va = class extends g {
|
|
|
1981
1981
|
const r = 0 | t[p];
|
|
1982
1982
|
return e = ue(this, r), t = function(n, s, i, o) {
|
|
1983
1983
|
var a = mi;
|
|
1984
|
-
!o &&
|
|
1985
|
-
var c =
|
|
1984
|
+
!o && Nt(n) && (i = 0 | (s = n.v)[p]);
|
|
1985
|
+
var c = Be(s, 2);
|
|
1986
1986
|
if (n = !1, c == null) {
|
|
1987
1987
|
if (o) return Xs();
|
|
1988
1988
|
c = [];
|
|
1989
|
-
} else if (c.constructor ===
|
|
1989
|
+
} else if (c.constructor === De) {
|
|
1990
1990
|
if (!(2 & c.J) || o) return c;
|
|
1991
1991
|
c = c.V();
|
|
1992
1992
|
} else Array.isArray(c) ? n = !!(2 & (0 | c[p])) : c = [];
|
|
@@ -1994,17 +1994,17 @@ 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 =
|
|
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;
|
|
1998
1998
|
}(this, t, r, e), !e && mi && (t.ra = !0), t;
|
|
1999
1999
|
}
|
|
2000
2000
|
});
|
|
2001
|
-
|
|
2001
|
+
K[458105876] = [0, ba, Z2, [!0, Ye, [0, L, -1, Q]], [0, hr, j, le]];
|
|
2002
2002
|
var ms = class extends g {
|
|
2003
2003
|
constructor(e) {
|
|
2004
2004
|
super(e);
|
|
2005
2005
|
}
|
|
2006
|
-
},
|
|
2007
|
-
|
|
2006
|
+
}, Ea = Re(458105758, ms);
|
|
2007
|
+
K[458105758] = [0, G, L, ba];
|
|
2008
2008
|
var un = class extends g {
|
|
2009
2009
|
constructor(e) {
|
|
2010
2010
|
super(e);
|
|
@@ -2013,58 +2013,58 @@ var un = class extends g {
|
|
|
2013
2013
|
constructor(e) {
|
|
2014
2014
|
super(e);
|
|
2015
2015
|
}
|
|
2016
|
-
},
|
|
2016
|
+
}, wa = class extends g {
|
|
2017
2017
|
constructor(e) {
|
|
2018
2018
|
super(e);
|
|
2019
2019
|
}
|
|
2020
|
-
},
|
|
2021
|
-
|
|
2020
|
+
}, wn = [1, 2];
|
|
2021
|
+
wa.prototype.g = Wr([0, wn, D, _i, D, [0, $, _i]]);
|
|
2022
2022
|
var Aa = class extends g {
|
|
2023
2023
|
constructor(e) {
|
|
2024
2024
|
super(e);
|
|
2025
2025
|
}
|
|
2026
|
-
},
|
|
2027
|
-
|
|
2026
|
+
}, M1 = Re(443442058, Aa);
|
|
2027
|
+
K[443442058] = [0, G, L, X, V, Q, -1, j, V], K[514774813] = gs;
|
|
2028
2028
|
var ka = class extends g {
|
|
2029
2029
|
constructor(e) {
|
|
2030
2030
|
super(e);
|
|
2031
2031
|
}
|
|
2032
|
-
},
|
|
2032
|
+
}, x1 = Re(516587230, ka);
|
|
2033
2033
|
function An(e, t) {
|
|
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 ?
|
|
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
|
}
|
|
2036
2036
|
function Sa(e) {
|
|
2037
2037
|
const t = Number(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:
|
|
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 };
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2043
|
+
function F1(e) {
|
|
2044
2044
|
const t = { classifications: je(e, d1, 1).map((r) => {
|
|
2045
2045
|
var n;
|
|
2046
2046
|
return _s(((n = k(r, Zo, 4)) == null ? void 0 : n.g()) ?? [], ve(r, 2) ?? 0, Z(O(r, 3)) ?? "");
|
|
2047
2047
|
}) };
|
|
2048
2048
|
return function(r) {
|
|
2049
|
-
return L2(
|
|
2049
|
+
return L2(Fn ? O(r, 2, void 0, void 0, br) : O(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,
|
|
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());
|
|
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
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)) ?? "" });
|
|
2058
2058
|
return i;
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function zr(e) {
|
|
2061
2061
|
const t = [];
|
|
2062
|
-
for (const r of je(e, ra, 1)) t.push({ x:
|
|
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
2065
|
function Zt(e) {
|
|
2066
2066
|
const t = [];
|
|
2067
|
-
for (const r of je(e, ta, 1)) t.push({ x:
|
|
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;
|
|
2069
2069
|
}
|
|
2070
2070
|
function yi(e) {
|
|
@@ -2078,17 +2078,17 @@ function vi(e, t) {
|
|
|
2078
2078
|
return r / Math.sqrt(n * s);
|
|
2079
2079
|
}
|
|
2080
2080
|
let gr;
|
|
2081
|
-
|
|
2082
|
-
const
|
|
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]);
|
|
2083
2083
|
async function La() {
|
|
2084
2084
|
if (gr === void 0) try {
|
|
2085
|
-
await WebAssembly.instantiate(
|
|
2085
|
+
await WebAssembly.instantiate(I1), gr = !0;
|
|
2086
2086
|
} catch {
|
|
2087
2087
|
gr = !1;
|
|
2088
2088
|
}
|
|
2089
2089
|
return gr;
|
|
2090
2090
|
}
|
|
2091
|
-
async function
|
|
2091
|
+
async function qt(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
|
}
|
|
@@ -2124,14 +2124,14 @@ function Oa(e) {
|
|
|
2124
2124
|
function m(e, t, r) {
|
|
2125
2125
|
e.m || console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"), r(t = e.i.stringToNewUTF8(t)), e.i._free(t);
|
|
2126
2126
|
}
|
|
2127
|
-
function
|
|
2127
|
+
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
2131
|
const [n, s] = Oa(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
|
-
function
|
|
2134
|
+
function wi(e, t, r) {
|
|
2135
2135
|
e.m || console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");
|
|
2136
2136
|
const n = new Uint32Array(t.length);
|
|
2137
2137
|
for (let s = 0; s < t.length; s++) n[s] = e.i.stringToNewUTF8(t[s]);
|
|
@@ -2149,19 +2149,19 @@ function He(e, t, r) {
|
|
|
2149
2149
|
};
|
|
2150
2150
|
}
|
|
2151
2151
|
Ze.forVisionTasks = function(e) {
|
|
2152
|
-
return
|
|
2152
|
+
return qt("vision", e);
|
|
2153
2153
|
}, Ze.forTextTasks = function(e) {
|
|
2154
|
-
return
|
|
2154
|
+
return qt("text", e);
|
|
2155
2155
|
}, Ze.forGenAiExperimentalTasks = function(e) {
|
|
2156
|
-
return
|
|
2156
|
+
return qt("genai_experimental", e);
|
|
2157
2157
|
}, Ze.forGenAiTasks = function(e) {
|
|
2158
|
-
return
|
|
2158
|
+
return qt("genai", e);
|
|
2159
2159
|
}, Ze.forAudioTasks = function(e) {
|
|
2160
|
-
return
|
|
2160
|
+
return qt("audio", e);
|
|
2161
2161
|
}, Ze.isSimdSupported = function() {
|
|
2162
2162
|
return La();
|
|
2163
2163
|
};
|
|
2164
|
-
async function
|
|
2164
|
+
async function R1(e, t, r, n) {
|
|
2165
2165
|
return e = await (async (s, i, o, a, c) => {
|
|
2166
2166
|
if (i && await bi(i), !self.ModuleFactory || o && (await bi(o), !self.ModuleFactory)) throw Error("ModuleFactory not set.");
|
|
2167
2167
|
return self.Module && c && ((i = self.Module).locateFile = c.locateFile, c.mainScriptUrlOrBlob && (i.mainScriptUrlOrBlob = c.mainScriptUrlOrBlob)), c = await self.ModuleFactory(self.Module || c), self.ModuleFactory = self.Module = void 0, new s(c, a);
|
|
@@ -2169,7 +2169,7 @@ async function I1(e, t, r, n) {
|
|
|
2169
2169
|
}
|
|
2170
2170
|
function hn(e, t) {
|
|
2171
2171
|
const r = k(e.baseOptions, Tr, 1) || new Tr();
|
|
2172
|
-
typeof t == "string" ? (T(r, 2, cr(t)), T(r, 1)) : t instanceof Uint8Array && (T(r, 1,
|
|
2172
|
+
typeof t == "string" ? (T(r, 2, cr(t)), T(r, 1)) : t instanceof Uint8Array && (T(r, 1, Nn(t, !1)), T(r, 2)), v(e.baseOptions, 0, 1, r);
|
|
2173
2173
|
}
|
|
2174
2174
|
function Ai(e) {
|
|
2175
2175
|
try {
|
|
@@ -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"),
|
|
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);
|
|
2188
2188
|
}
|
|
2189
2189
|
function Lt(e, t) {
|
|
2190
|
-
|
|
2190
|
+
M(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,12 +2259,12 @@ var kn = class {
|
|
|
2259
2259
|
this.B = void 0, this.g.closeGraph();
|
|
2260
2260
|
}
|
|
2261
2261
|
};
|
|
2262
|
-
function
|
|
2262
|
+
function Ke(e, t) {
|
|
2263
2263
|
if (!e) throw Error(`Unable to obtain required WebGL resource: ${t}`);
|
|
2264
2264
|
return e;
|
|
2265
2265
|
}
|
|
2266
2266
|
kn.prototype.close = kn.prototype.close;
|
|
2267
|
-
class
|
|
2267
|
+
class N1 {
|
|
2268
2268
|
constructor(t, r, n, s) {
|
|
2269
2269
|
this.g = t, this.h = r, this.m = n, this.l = s;
|
|
2270
2270
|
}
|
|
@@ -2277,36 +2277,36 @@ class C1 {
|
|
|
2277
2277
|
}
|
|
2278
2278
|
function ki(e, t, r) {
|
|
2279
2279
|
const n = e.g;
|
|
2280
|
-
if (r =
|
|
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)}`);
|
|
2281
2281
|
return n.attachShader(e.h, r), r;
|
|
2282
2282
|
}
|
|
2283
2283
|
function Si(e, t) {
|
|
2284
|
-
const r = e.g, n =
|
|
2284
|
+
const r = e.g, n = Ke(r.createVertexArray(), "Failed to create vertex array");
|
|
2285
2285
|
r.bindVertexArray(n);
|
|
2286
|
-
const s =
|
|
2286
|
+
const s = Ke(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 =
|
|
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
|
|
2288
|
+
const i = Ke(r.createBuffer(), "Failed to create buffer");
|
|
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) {
|
|
2292
2292
|
if (e.g) {
|
|
2293
2293
|
if (t !== e.g) throw Error("Cannot change GL context once initialized");
|
|
2294
2294
|
} else e.g = t;
|
|
2295
2295
|
}
|
|
2296
|
-
function
|
|
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
|
|
2300
|
-
return ys(e, t), e =
|
|
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;
|
|
2301
2301
|
}
|
|
2302
|
-
function
|
|
2303
|
-
ys(e, t), e.B || (e.B =
|
|
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);
|
|
2304
2304
|
}
|
|
2305
|
-
function
|
|
2305
|
+
function D1(e) {
|
|
2306
2306
|
var t;
|
|
2307
2307
|
(t = e.g) == null || t.bindFramebuffer(e.g.FRAMEBUFFER, null);
|
|
2308
2308
|
}
|
|
2309
|
-
var
|
|
2309
|
+
var Fa = class {
|
|
2310
2310
|
H() {
|
|
2311
2311
|
return `
|
|
2312
2312
|
precision mediump float;
|
|
@@ -2319,7 +2319,7 @@ var Ma = class {
|
|
|
2319
2319
|
}
|
|
2320
2320
|
m() {
|
|
2321
2321
|
const e = this.g;
|
|
2322
|
-
if (this.h =
|
|
2322
|
+
if (this.h = Ke(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;
|
|
@@ -2341,7 +2341,7 @@ var Ma = class {
|
|
|
2341
2341
|
this.B && this.g.deleteFramebuffer(this.B), this.A && this.A.close(), this.u && this.u.close();
|
|
2342
2342
|
}
|
|
2343
2343
|
};
|
|
2344
|
-
function
|
|
2344
|
+
function Ce(e, t) {
|
|
2345
2345
|
switch (t) {
|
|
2346
2346
|
case 0:
|
|
2347
2347
|
return e.g.find((r) => r instanceof Uint8Array);
|
|
@@ -2354,14 +2354,14 @@ function Ne(e, t) {
|
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
2356
|
function Sn(e) {
|
|
2357
|
-
var t =
|
|
2357
|
+
var t = Ce(e, 1);
|
|
2358
2358
|
if (!t) {
|
|
2359
|
-
if (t =
|
|
2359
|
+
if (t = Ce(e, 0)) t = new Float32Array(t).map((n) => n / 255);
|
|
2360
2360
|
else {
|
|
2361
2361
|
t = new Float32Array(e.width * e.height);
|
|
2362
2362
|
const n = Pt(e);
|
|
2363
2363
|
var r = vs(e);
|
|
2364
|
-
if (
|
|
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) {
|
|
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,21 +2370,21 @@ function Sn(e) {
|
|
|
2370
2370
|
}
|
|
2371
2371
|
return t;
|
|
2372
2372
|
}
|
|
2373
|
-
function
|
|
2374
|
-
let t =
|
|
2373
|
+
function Ia(e) {
|
|
2374
|
+
let t = Ce(e, 2);
|
|
2375
2375
|
if (!t) {
|
|
2376
2376
|
const r = Pt(e);
|
|
2377
|
-
t =
|
|
2378
|
-
const n = Sn(e), s =
|
|
2377
|
+
t = Na(e);
|
|
2378
|
+
const n = Sn(e), s = Ra(e);
|
|
2379
2379
|
r.texImage2D(r.TEXTURE_2D, 0, s, e.width, e.height, 0, r.RED, r.FLOAT, n), Tn(e);
|
|
2380
2380
|
}
|
|
2381
2381
|
return t;
|
|
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 =
|
|
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;
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
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;
|
|
2389
2389
|
else {
|
|
2390
2390
|
if (!e.getExtension("EXT_color_buffer_half_float")) throw Error("GPU does not fully support 4-channel float32 or float16 formats");
|
|
@@ -2393,13 +2393,13 @@ function Ia(e) {
|
|
|
2393
2393
|
return mr;
|
|
2394
2394
|
}
|
|
2395
2395
|
function vs(e) {
|
|
2396
|
-
return e.l || (e.l = new
|
|
2396
|
+
return e.l || (e.l = new Fa()), e.l;
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2398
|
+
function Na(e) {
|
|
2399
2399
|
const t = Pt(e);
|
|
2400
2400
|
t.viewport(0, 0, e.width, e.height), t.activeTexture(t.TEXTURE0);
|
|
2401
|
-
let r =
|
|
2402
|
-
return r || (r =
|
|
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;
|
|
2403
2403
|
}
|
|
2404
2404
|
function Tn(e) {
|
|
2405
2405
|
e.h.bindTexture(e.h.TEXTURE_2D, null);
|
|
@@ -2409,23 +2409,23 @@ var mr, Y = class {
|
|
|
2409
2409
|
this.g = e, this.m = t, this.j = r, this.canvas = n, this.l = s, this.width = i, this.height = o, this.j && --Ti === 0 && console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.");
|
|
2410
2410
|
}
|
|
2411
2411
|
Fa() {
|
|
2412
|
-
return !!
|
|
2412
|
+
return !!Ce(this, 0);
|
|
2413
2413
|
}
|
|
2414
2414
|
ka() {
|
|
2415
|
-
return !!
|
|
2415
|
+
return !!Ce(this, 1);
|
|
2416
2416
|
}
|
|
2417
2417
|
R() {
|
|
2418
|
-
return !!
|
|
2418
|
+
return !!Ce(this, 2);
|
|
2419
2419
|
}
|
|
2420
2420
|
ja() {
|
|
2421
|
-
return (t =
|
|
2421
|
+
return (t = Ce(e = this, 0)) || (t = Sn(e), t = new Uint8Array(t.map((r) => Math.round(255 * r))), e.g.push(t)), t;
|
|
2422
2422
|
var e, t;
|
|
2423
2423
|
}
|
|
2424
2424
|
ia() {
|
|
2425
2425
|
return Sn(this);
|
|
2426
2426
|
}
|
|
2427
2427
|
N() {
|
|
2428
|
-
return
|
|
2428
|
+
return Ia(this);
|
|
2429
2429
|
}
|
|
2430
2430
|
clone() {
|
|
2431
2431
|
const e = [];
|
|
@@ -2437,11 +2437,11 @@ 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 =
|
|
2441
|
-
const i =
|
|
2442
|
-
n.texImage2D(n.TEXTURE_2D, 0, i, this.width, this.height, 0, n.RED, n.FLOAT, null), n.bindTexture(n.TEXTURE_2D, null),
|
|
2443
|
-
|
|
2444
|
-
}),
|
|
2440
|
+
n.activeTexture(n.TEXTURE1), r = Ma(s, n, this.m ? n.LINEAR : n.NEAREST), n.bindTexture(n.TEXTURE_2D, r);
|
|
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, () => {
|
|
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
|
+
}), D1(s), Tn(this);
|
|
2445
2445
|
}
|
|
2446
2446
|
}
|
|
2447
2447
|
e.push(r);
|
|
@@ -2449,7 +2449,7 @@ var mr, Y = class {
|
|
|
2449
2449
|
return new Y(e, this.m, this.R(), this.canvas, this.l, this.width, this.height);
|
|
2450
2450
|
}
|
|
2451
2451
|
close() {
|
|
2452
|
-
this.j && Pt(this).deleteTexture(
|
|
2452
|
+
this.j && Pt(this).deleteTexture(Ce(this, 2)), Ti = -1;
|
|
2453
2453
|
}
|
|
2454
2454
|
};
|
|
2455
2455
|
Y.prototype.close = Y.prototype.close, Y.prototype.clone = Y.prototype.clone, Y.prototype.getAsWebGLTexture = Y.prototype.N, Y.prototype.getAsFloat32Array = Y.prototype.ia, Y.prototype.getAsUint8Array = Y.prototype.ja, Y.prototype.hasWebGLTexture = Y.prototype.R, Y.prototype.hasFloat32Array = Y.prototype.ka, Y.prototype.hasUint8Array = Y.prototype.Fa;
|
|
@@ -2457,7 +2457,7 @@ var Ti = 250;
|
|
|
2457
2457
|
function Ae(...e) {
|
|
2458
2458
|
return e.map(([t, r]) => ({ start: t, end: r }));
|
|
2459
2459
|
}
|
|
2460
|
-
const
|
|
2460
|
+
const B1 = /* @__PURE__ */ function(e) {
|
|
2461
2461
|
return class extends e {
|
|
2462
2462
|
Ja() {
|
|
2463
2463
|
this.i._registerModelResourcesGraphService();
|
|
@@ -2518,7 +2518,7 @@ const D1 = /* @__PURE__ */ function(e) {
|
|
|
2518
2518
|
}
|
|
2519
2519
|
addGpuBufferToStream(e, t, r) {
|
|
2520
2520
|
m(this, t, (n) => {
|
|
2521
|
-
const [s, i] =
|
|
2521
|
+
const [s, i] = Ei(this, e, n);
|
|
2522
2522
|
this.i._addBoundTextureToStream(n, s, i, r);
|
|
2523
2523
|
});
|
|
2524
2524
|
}
|
|
@@ -2556,8 +2556,8 @@ const D1 = /* @__PURE__ */ function(e) {
|
|
|
2556
2556
|
}
|
|
2557
2557
|
addStringRecordToStream(e, t, r) {
|
|
2558
2558
|
m(this, t, (n) => {
|
|
2559
|
-
|
|
2560
|
-
|
|
2559
|
+
wi(this, Object.keys(e), (s) => {
|
|
2560
|
+
wi(this, Object.values(e), (i) => {
|
|
2561
2561
|
this.i._addFlatHashMapToInputStream(s, i, Object.keys(e).length, n, r);
|
|
2562
2562
|
});
|
|
2563
2563
|
});
|
|
@@ -2805,7 +2805,7 @@ const D1 = /* @__PURE__ */ function(e) {
|
|
|
2805
2805
|
}
|
|
2806
2806
|
pa(e, t, r) {
|
|
2807
2807
|
m(this, t, (n) => {
|
|
2808
|
-
const [s, i] =
|
|
2808
|
+
const [s, i] = Ei(this, e, n);
|
|
2809
2809
|
this.ga._addBoundTextureAsImageToStream(n, s, i, r);
|
|
2810
2810
|
});
|
|
2811
2811
|
}
|
|
@@ -2820,14 +2820,14 @@ const D1 = /* @__PURE__ */ function(e) {
|
|
|
2820
2820
|
});
|
|
2821
2821
|
}
|
|
2822
2822
|
}));
|
|
2823
|
-
var Li, ke = class extends
|
|
2823
|
+
var Li, ke = class extends B1 {
|
|
2824
2824
|
};
|
|
2825
2825
|
async function A(e, t, r) {
|
|
2826
2826
|
return async function(n, s, i, o) {
|
|
2827
|
-
return
|
|
2827
|
+
return R1(n, s, i, o);
|
|
2828
2828
|
}(e, r.canvas ?? (Pa() ? void 0 : document.createElement("canvas")), t, r);
|
|
2829
2829
|
}
|
|
2830
|
-
function
|
|
2830
|
+
function Ca(e, t, r, n) {
|
|
2831
2831
|
if (e.U) {
|
|
2832
2832
|
const i = new na();
|
|
2833
2833
|
if (r != null && r.regionOfInterest) {
|
|
@@ -2841,7 +2841,7 @@ function Na(e, t, r, n) {
|
|
|
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
2843
|
const [o, a] = Oa(t);
|
|
2844
|
-
r =
|
|
2844
|
+
r = B(i, 3) * a / o, s = B(i, 4) * o / a, _(i, 4, r), _(i, 3, s);
|
|
2845
2845
|
}
|
|
2846
2846
|
}
|
|
2847
2847
|
e.g.addProtoToStream(i.g(), "mediapipe.NormalizedRect", e.U, n);
|
|
@@ -2851,12 +2851,12 @@ function Na(e, t, r, n) {
|
|
|
2851
2851
|
function Se(e, t, r) {
|
|
2852
2852
|
var n;
|
|
2853
2853
|
if ((n = e.baseOptions) != null && n.g()) throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");
|
|
2854
|
-
|
|
2854
|
+
Ca(e, t, r, e.C + 1);
|
|
2855
2855
|
}
|
|
2856
|
-
function
|
|
2856
|
+
function Ne(e, t, r, n) {
|
|
2857
2857
|
var s;
|
|
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
2861
|
function Ot(e, t, r, n) {
|
|
2862
2862
|
var s = t.data;
|
|
@@ -2866,7 +2866,7 @@ function Ot(e, t, r, n) {
|
|
|
2866
2866
|
}
|
|
2867
2867
|
var fe = class extends kn {
|
|
2868
2868
|
constructor(e, t, r, n) {
|
|
2869
|
-
super(e), this.g = e, this.X = t, this.U = r, this.oa = n, this.P = new
|
|
2869
|
+
super(e), this.g = e, this.X = t, this.U = r, this.oa = n, this.P = new Fa();
|
|
2870
2870
|
}
|
|
2871
2871
|
l(e, t = !0) {
|
|
2872
2872
|
if ("runningMode" in e && T(this.baseOptions, 2, rr(!!e.runningMode && e.runningMode !== "IMAGE")), e.canvas !== void 0 && this.g.i.canvas !== e.canvas) throw Error("You must create a new task to reset the canvas.");
|
|
@@ -2879,10 +2879,10 @@ 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
|
|
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);
|
|
2883
2883
|
}
|
|
2884
2884
|
get baseOptions() {
|
|
2885
|
-
return k(this.h,
|
|
2885
|
+
return k(this.h, N, 1);
|
|
2886
2886
|
}
|
|
2887
2887
|
set baseOptions(e) {
|
|
2888
2888
|
v(this.h, 0, 1, e);
|
|
@@ -2894,15 +2894,15 @@ var ge = class extends fe {
|
|
|
2894
2894
|
return this.j = { detections: [] }, Se(this, e, t), this.j;
|
|
2895
2895
|
}
|
|
2896
2896
|
G(e, t, r) {
|
|
2897
|
-
return this.j = { detections: [] },
|
|
2897
|
+
return this.j = { detections: [] }, Ne(this, e, r, t), this.j;
|
|
2898
2898
|
}
|
|
2899
2899
|
m() {
|
|
2900
2900
|
var e = new pe();
|
|
2901
|
-
|
|
2901
|
+
I(e, "image_in"), I(e, "norm_rect_in"), S(e, "detections");
|
|
2902
2902
|
const t = new de();
|
|
2903
|
-
|
|
2903
|
+
Ie(t, v1, this.h);
|
|
2904
2904
|
const r = new ne();
|
|
2905
|
-
he(r, 2, "mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),
|
|
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) => {
|
|
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) => {
|
|
@@ -2917,16 +2917,16 @@ ge.prototype.detectForVideo = ge.prototype.G, ge.prototype.detect = ge.prototype
|
|
|
2917
2917
|
}, ge.createFromOptions = function(e, t) {
|
|
2918
2918
|
return A(ge, e, t);
|
|
2919
2919
|
};
|
|
2920
|
-
var bs = Ae([61, 146], [146, 91], [91, 181], [181, 84], [84, 17], [17, 314], [314, 405], [405, 321], [321, 375], [375, 291], [61, 185], [185, 40], [40, 39], [39, 37], [37, 0], [0, 267], [267, 269], [269, 270], [270, 409], [409, 291], [78, 95], [95, 88], [88, 178], [178, 87], [87, 14], [14, 317], [317, 402], [402, 318], [318, 324], [324, 308], [78, 191], [191, 80], [80, 81], [81, 82], [82, 13], [13, 312], [312, 311], [311, 310], [310, 415], [415, 308]), ws = Ae([263, 249], [249, 390], [390, 373], [373, 374], [374, 380], [380, 381], [381, 382], [382, 362], [263, 466], [466, 388], [388, 387], [387, 386], [386, 385], [385, 384], [384, 398], [398, 362]), Es = Ae([276, 283], [283, 282], [282, 295], [295, 285], [300, 293], [293, 334], [334, 296], [296, 336]), Ba = Ae([474, 475], [475, 476], [476, 477], [477, 474]), As = Ae([33, 7], [7, 163], [163, 144], [144, 145], [145, 153], [153, 154], [154, 155], [155, 133], [33, 246], [246, 161], [161, 160], [160, 159], [159, 158], [158, 157], [157, 173], [173, 133]), ks = Ae([46, 53], [53, 52], [52, 65], [65, 55], [70, 63], [63, 105], [105, 66], [66, 107]), Da = Ae([469, 470], [470, 471], [471, 472], [472, 469]), Ss = Ae([10, 338], [338, 297], [297, 332], [332, 284], [284, 251], [251, 389], [389, 356], [356, 454], [454, 323], [323, 361], [361, 288], [288, 397], [397, 365], [365, 379], [379, 378], [378, 400], [400, 377], [377, 152], [152, 148], [148, 176], [176, 149], [149, 150], [150, 136], [136, 172], [172, 58], [58, 132], [132, 93], [93, 234], [234, 127], [127, 162], [162, 21], [21, 54], [54, 103], [103, 67], [67, 109], [109, 10]), ja = [...bs, ...ws, ...Es, ...As, ...ks, ...Ss], Ua = Ae([127, 34], [34, 139], [139, 127], [11, 0], [0, 37], [37, 11], [232, 231], [231, 120], [120, 232], [72, 37], [37, 39], [39, 72], [128, 121], [121, 47], [47, 128], [232, 121], [121, 128], [128, 232], [104, 69], [69, 67], [67, 104], [175, 171], [171, 148], [148, 175], [118, 50], [50, 101], [101, 118], [73, 39], [39, 40], [40, 73], [9, 151], [151, 108], [108, 9], [48, 115], [115, 131], [131, 48], [194, 204], [204, 211], [211, 194], [74, 40], [40, 185], [185, 74], [80, 42], [42, 183], [183, 80], [40, 92], [92, 186], [186, 40], [230, 229], [229, 118], [118, 230], [202, 212], [212, 214], [214, 202], [83, 18], [18, 17], [17, 83], [76, 61], [61, 146], [146, 76], [160, 29], [29, 30], [30, 160], [56, 157], [157, 173], [173, 56], [106, 204], [204, 194], [194, 106], [135, 214], [214, 192], [192, 135], [203, 165], [165, 98], [98, 203], [21, 71], [71, 68], [68, 21], [51, 45], [45, 4], [4, 51], [144, 24], [24, 23], [23, 144], [77, 146], [146, 91], [91, 77], [205, 50], [50, 187], [187, 205], [201, 200], [200, 18], [18, 201], [91, 106], [106, 182], [182, 91], [90, 91], [91, 181], [181, 90], [85, 84], [84, 17], [17, 85], [206, 203], [203, 36], [36, 206], [148, 171], [171, 140], [140, 148], [92, 40], [40, 39], [39, 92], [193, 189], [189, 244], [244, 193], [159, 158], [158, 28], [28, 159], [247, 246], [246, 161], [161, 247], [236, 3], [3, 196], [196, 236], [54, 68], [68, 104], [104, 54], [193, 168], [168, 8], [8, 193], [117, 228], [228, 31], [31, 117], [189, 193], [193, 55], [55, 189], [98, 97], [97, 99], [99, 98], [126, 47], [47, 100], [100, 126], [166, 79], [79, 218], [218, 166], [155, 154], [154, 26], [26, 155], [209, 49], [49, 131], [131, 209], [135, 136], [136, 150], [150, 135], [47, 126], [126, 217], [217, 47], [223, 52], [52, 53], [53, 223], [45, 51], [51, 134], [134, 45], [211, 170], [170, 140], [140, 211], [67, 69], [69, 108], [108, 67], [43, 106], [106, 91], [91, 43], [230, 119], [119, 120], [120, 230], [226, 130], [130, 247], [247, 226], [63, 53], [53, 52], [52, 63], [238, 20], [20, 242], [242, 238], [46, 70], [70, 156], [156, 46], [78, 62], [62, 96], [96, 78], [46, 53], [53, 63], [63, 46], [143, 34], [34, 227], [227, 143], [123, 117], [117, 111], [111, 123], [44, 125], [125, 19], [19, 44], [236, 134], [134, 51], [51, 236], [216, 206], [206, 205], [205, 216], [154, 153], [153, 22], [22, 154], [39, 37], [37, 167], [167, 39], [200, 201], [201, 208], [208, 200], [36, 142], [142, 100], [100, 36], [57, 212], [212, 202], [202, 57], [20, 60], [60, 99], [99, 20], [28, 158], [158, 157], [157, 28], [35, 226], [226, 113], [113, 35], [160, 159], [159, 27], [27, 160], [204, 202], [202, 210], [210, 204], [113, 225], [225, 46], [46, 113], [43, 202], [202, 204], [204, 43], [62, 76], [76, 77], [77, 62], [137, 123], [123, 116], [116, 137], [41, 38], [38, 72], [72, 41], [203, 129], [129, 142], [142, 203], [64, 98], [98, 240], [240, 64], [49, 102], [102, 64], [64, 49], [41, 73], [73, 74], [74, 41], [212, 216], [216, 207], [207, 212], [42, 74], [74, 184], [184, 42], [169, 170], [170, 211], [211, 169], [170, 149], [149, 176], [176, 170], [105, 66], [66, 69], [69, 105], [122, 6], [6, 168], [168, 122], [123, 147], [147, 187], [187, 123], [96, 77], [77, 90], [90, 96], [65, 55], [55, 107], [107, 65], [89, 90], [90, 180], [180, 89], [101, 100], [100, 120], [120, 101], [63, 105], [105, 104], [104, 63], [93, 137], [137, 227], [227, 93], [15, 86], [86, 85], [85, 15], [129, 102], [102, 49], [49, 129], [14, 87], [87, 86], [86, 14], [55, 8], [8, 9], [9, 55], [100, 47], [47, 121], [121, 100], [145, 23], [23, 22], [22, 145], [88, 89], [89, 179], [179, 88], [6, 122], [122, 196], [196, 6], [88, 95], [95, 96], [96, 88], [138, 172], [172, 136], [136, 138], [215, 58], [58, 172], [172, 215], [115, 48], [48, 219], [219, 115], [42, 80], [80, 81], [81, 42], [195, 3], [3, 51], [51, 195], [43, 146], [146, 61], [61, 43], [171, 175], [175, 199], [199, 171], [81, 82], [82, 38], [38, 81], [53, 46], [46, 225], [225, 53], [144, 163], [163, 110], [110, 144], [52, 65], [65, 66], [66, 52], [229, 228], [228, 117], [117, 229], [34, 127], [127, 234], [234, 34], [107, 108], [108, 69], [69, 107], [109, 108], [108, 151], [151, 109], [48, 64], [64, 235], [235, 48], [62, 78], [78, 191], [191, 62], [129, 209], [209, 126], [126, 129], [111, 35], [35, 143], [143, 111], [117, 123], [123, 50], [50, 117], [222, 65], [65, 52], [52, 222], [19, 125], [125, 141], [141, 19], [221, 55], [55, 65], [65, 221], [3, 195], [195, 197], [197, 3], [25, 7], [7, 33], [33, 25], [220, 237], [237, 44], [44, 220], [70, 71], [71, 139], [139, 70], [122, 193], [193, 245], [245, 122], [247, 130], [130, 33], [33, 247], [71, 21], [21, 162], [162, 71], [170, 169], [169, 150], [150, 170], [188, 174], [174, 196], [196, 188], [216, 186], [186, 92], [92, 216], [2, 97], [97, 167], [167, 2], [141, 125], [125, 241], [241, 141], [164, 167], [167, 37], [37, 164], [72, 38], [38, 12], [12, 72], [38, 82], [82, 13], [13, 38], [63, 68], [68, 71], [71, 63], [226, 35], [35, 111], [111, 226], [101, 50], [50, 205], [205, 101], [206, 92], [92, 165], [165, 206], [209, 198], [198, 217], [217, 209], [165, 167], [167, 97], [97, 165], [220, 115], [115, 218], [218, 220], [133, 112], [112, 243], [243, 133], [239, 238], [238, 241], [241, 239], [214, 135], [135, 169], [169, 214], [190, 173], [173, 133], [133, 190], [171, 208], [208, 32], [32, 171], [125, 44], [44, 237], [237, 125], [86, 87], [87, 178], [178, 86], [85, 86], [86, 179], [179, 85], [84, 85], [85, 180], [180, 84], [83, 84], [84, 181], [181, 83], [201, 83], [83, 182], [182, 201], [137, 93], [93, 132], [132, 137], [76, 62], [62, 183], [183, 76], [61, 76], [76, 184], [184, 61], [57, 61], [61, 185], [185, 57], [212, 57], [57, 186], [186, 212], [214, 207], [207, 187], [187, 214], [34, 143], [143, 156], [156, 34], [79, 239], [239, 237], [237, 79], [123, 137], [137, 177], [177, 123], [44, 1], [1, 4], [4, 44], [201, 194], [194, 32], [32, 201], [64, 102], [102, 129], [129, 64], [213, 215], [215, 138], [138, 213], [59, 166], [166, 219], [219, 59], [242, 99], [99, 97], [97, 242], [2, 94], [94, 141], [141, 2], [75, 59], [59, 235], [235, 75], [24, 110], [110, 228], [228, 24], [25, 130], [130, 226], [226, 25], [23, 24], [24, 229], [229, 23], [22, 23], [23, 230], [230, 22], [26, 22], [22, 231], [231, 26], [112, 26], [26, 232], [232, 112], [189, 190], [190, 243], [243, 189], [221, 56], [56, 190], [190, 221], [28, 56], [56, 221], [221, 28], [27, 28], [28, 222], [222, 27], [29, 27], [27, 223], [223, 29], [30, 29], [29, 224], [224, 30], [247, 30], [30, 225], [225, 247], [238, 79], [79, 20], [20, 238], [166, 59], [59, 75], [75, 166], [60, 75], [75, 240], [240, 60], [147, 177], [177, 215], [215, 147], [20, 79], [79, 166], [166, 20], [187, 147], [147, 213], [213, 187], [112, 233], [233, 244], [244, 112], [233, 128], [128, 245], [245, 233], [128, 114], [114, 188], [188, 128], [114, 217], [217, 174], [174, 114], [131, 115], [115, 220], [220, 131], [217, 198], [198, 236], [236, 217], [198, 131], [131, 134], [134, 198], [177, 132], [132, 58], [58, 177], [143, 35], [35, 124], [124, 143], [110, 163], [163, 7], [7, 110], [228, 110], [110, 25], [25, 228], [356, 389], [389, 368], [368, 356], [11, 302], [302, 267], [267, 11], [452, 350], [350, 349], [349, 452], [302, 303], [303, 269], [269, 302], [357, 343], [343, 277], [277, 357], [452, 453], [453, 357], [357, 452], [333, 332], [332, 297], [297, 333], [175, 152], [152, 377], [377, 175], [347, 348], [348, 330], [330, 347], [303, 304], [304, 270], [270, 303], [9, 336], [336, 337], [337, 9], [278, 279], [279, 360], [360, 278], [418, 262], [262, 431], [431, 418], [304, 408], [408, 409], [409, 304], [310, 415], [415, 407], [407, 310], [270, 409], [409, 410], [410, 270], [450, 348], [348, 347], [347, 450], [422, 430], [430, 434], [434, 422], [313, 314], [314, 17], [17, 313], [306, 307], [307, 375], [375, 306], [387, 388], [388, 260], [260, 387], [286, 414], [414, 398], [398, 286], [335, 406], [406, 418], [418, 335], [364, 367], [367, 416], [416, 364], [423, 358], [358, 327], [327, 423], [251, 284], [284, 298], [298, 251], [281, 5], [5, 4], [4, 281], [373, 374], [374, 253], [253, 373], [307, 320], [320, 321], [321, 307], [425, 427], [427, 411], [411, 425], [421, 313], [313, 18], [18, 421], [321, 405], [405, 406], [406, 321], [320, 404], [404, 405], [405, 320], [315, 16], [16, 17], [17, 315], [426, 425], [425, 266], [266, 426], [377, 400], [400, 369], [369, 377], [322, 391], [391, 269], [269, 322], [417, 465], [465, 464], [464, 417], [386, 257], [257, 258], [258, 386], [466, 260], [260, 388], [388, 466], [456, 399], [399, 419], [419, 456], [284, 332], [332, 333], [333, 284], [417, 285], [285, 8], [8, 417], [346, 340], [340, 261], [261, 346], [413, 441], [441, 285], [285, 413], [327, 460], [460, 328], [328, 327], [355, 371], [371, 329], [329, 355], [392, 439], [439, 438], [438, 392], [382, 341], [341, 256], [256, 382], [429, 420], [420, 360], [360, 429], [364, 394], [394, 379], [379, 364], [277, 343], [343, 437], [437, 277], [443, 444], [444, 283], [283, 443], [275, 440], [440, 363], [363, 275], [431, 262], [262, 369], [369, 431], [297, 338], [338, 337], [337, 297], [273, 375], [375, 321], [321, 273], [450, 451], [451, 349], [349, 450], [446, 342], [342, 467], [467, 446], [293, 334], [334, 282], [282, 293], [458, 461], [461, 462], [462, 458], [276, 353], [353, 383], [383, 276], [308, 324], [324, 325], [325, 308], [276, 300], [300, 293], [293, 276], [372, 345], [345, 447], [447, 372], [352, 345], [345, 340], [340, 352], [274, 1], [1, 19], [19, 274], [456, 248], [248, 281], [281, 456], [436, 427], [427, 425], [425, 436], [381, 256], [256, 252], [252, 381], [269, 391], [391, 393], [393, 269], [200, 199], [199, 428], [428, 200], [266, 330], [330, 329], [329, 266], [287, 273], [273, 422], [422, 287], [250, 462], [462, 328], [328, 250], [258, 286], [286, 384], [384, 258], [265, 353], [353, 342], [342, 265], [387, 259], [259, 257], [257, 387], [424, 431], [431, 430], [430, 424], [342, 353], [353, 276], [276, 342], [273, 335], [335, 424], [424, 273], [292, 325], [325, 307], [307, 292], [366, 447], [447, 345], [345, 366], [271, 303], [303, 302], [302, 271], [423, 266], [266, 371], [371, 423], [294, 455], [455, 460], [460, 294], [279, 278], [278, 294], [294, 279], [271, 272], [272, 304], [304, 271], [432, 434], [434, 427], [427, 432], [272, 407], [407, 408], [408, 272], [394, 430], [430, 431], [431, 394], [395, 369], [369, 400], [400, 395], [334, 333], [333, 299], [299, 334], [351, 417], [417, 168], [168, 351], [352, 280], [280, 411], [411, 352], [325, 319], [319, 320], [320, 325], [295, 296], [296, 336], [336, 295], [319, 403], [403, 404], [404, 319], [330, 348], [348, 349], [349, 330], [293, 298], [298, 333], [333, 293], [323, 454], [454, 447], [447, 323], [15, 16], [16, 315], [315, 15], [358, 429], [429, 279], [279, 358], [14, 15], [15, 316], [316, 14], [285, 336], [336, 9], [9, 285], [329, 349], [349, 350], [350, 329], [374, 380], [380, 252], [252, 374], [318, 402], [402, 403], [403, 318], [6, 197], [197, 419], [419, 6], [318, 319], [319, 325], [325, 318], [367, 364], [364, 365], [365, 367], [435, 367], [367, 397], [397, 435], [344, 438], [438, 439], [439, 344], [272, 271], [271, 311], [311, 272], [195, 5], [5, 281], [281, 195], [273, 287], [287, 291], [291, 273], [396, 428], [428, 199], [199, 396], [311, 271], [271, 268], [268, 311], [283, 444], [444, 445], [445, 283], [373, 254], [254, 339], [339, 373], [282, 334], [334, 296], [296, 282], [449, 347], [347, 346], [346, 449], [264, 447], [447, 454], [454, 264], [336, 296], [296, 299], [299, 336], [338, 10], [10, 151], [151, 338], [278, 439], [439, 455], [455, 278], [292, 407], [407, 415], [415, 292], [358, 371], [371, 355], [355, 358], [340, 345], [345, 372], [372, 340], [346, 347], [347, 280], [280, 346], [442, 443], [443, 282], [282, 442], [19, 94], [94, 370], [370, 19], [441, 442], [442, 295], [295, 441], [248, 419], [419, 197], [197, 248], [263, 255], [255, 359], [359, 263], [440, 275], [275, 274], [274, 440], [300, 383], [383, 368], [368, 300], [351, 412], [412, 465], [465, 351], [263, 467], [467, 466], [466, 263], [301, 368], [368, 389], [389, 301], [395, 378], [378, 379], [379, 395], [412, 351], [351, 419], [419, 412], [436, 426], [426, 322], [322, 436], [2, 164], [164, 393], [393, 2], [370, 462], [462, 461], [461, 370], [164, 0], [0, 267], [267, 164], [302, 11], [11, 12], [12, 302], [268, 12], [12, 13], [13, 268], [293, 300], [300, 301], [301, 293], [446, 261], [261, 340], [340, 446], [330, 266], [266, 425], [425, 330], [426, 423], [423, 391], [391, 426], [429, 355], [355, 437], [437, 429], [391, 327], [327, 326], [326, 391], [440, 457], [457, 438], [438, 440], [341, 382], [382, 362], [362, 341], [459, 457], [457, 461], [461, 459], [434, 430], [430, 394], [394, 434], [414, 463], [463, 362], [362, 414], [396, 369], [369, 262], [262, 396], [354, 461], [461, 457], [457, 354], [316, 403], [403, 402], [402, 316], [315, 404], [404, 403], [403, 315], [314, 405], [405, 404], [404, 314], [313, 406], [406, 405], [405, 313], [421, 418], [418, 406], [406, 421], [366, 401], [401, 361], [361, 366], [306, 408], [408, 407], [407, 306], [291, 409], [409, 408], [408, 291], [287, 410], [410, 409], [409, 287], [432, 436], [436, 410], [410, 432], [434, 416], [416, 411], [411, 434], [264, 368], [368, 383], [383, 264], [309, 438], [438, 457], [457, 309], [352, 376], [376, 401], [401, 352], [274, 275], [275, 4], [4, 274], [421, 428], [428, 262], [262, 421], [294, 327], [327, 358], [358, 294], [433, 416], [416, 367], [367, 433], [289, 455], [455, 439], [439, 289], [462, 370], [370, 326], [326, 462], [2, 326], [326, 370], [370, 2], [305, 460], [460, 455], [455, 305], [254, 449], [449, 448], [448, 254], [255, 261], [261, 446], [446, 255], [253, 450], [450, 449], [449, 253], [252, 451], [451, 450], [450, 252], [256, 452], [452, 451], [451, 256], [341, 453], [453, 452], [452, 341], [413, 464], [464, 463], [463, 413], [441, 413], [413, 414], [414, 441], [258, 442], [442, 441], [441, 258], [257, 443], [443, 442], [442, 257], [259, 444], [444, 443], [443, 259], [260, 445], [445, 444], [444, 260], [467, 342], [342, 445], [445, 467], [459, 458], [458, 250], [250, 459], [289, 392], [392, 290], [290, 289], [290, 328], [328, 460], [460, 290], [376, 433], [433, 435], [435, 376], [250, 290], [290, 392], [392, 250], [411, 416], [416, 433], [433, 411], [341, 463], [463, 464], [464, 341], [453, 464], [464, 465], [465, 453], [357, 465], [465, 412], [412, 357], [343, 412], [412, 399], [399, 343], [360, 363], [363, 440], [440, 360], [437, 399], [399, 456], [456, 437], [420, 456], [456, 363], [363, 420], [401, 435], [435, 288], [288, 401], [372, 383], [383, 353], [353, 372], [339, 255], [255, 249], [249, 339], [448, 261], [261, 255], [255, 448], [133, 243], [243, 190], [190, 133], [133, 155], [155, 112], [112, 133], [33, 246], [246, 247], [247, 33], [33, 130], [130, 25], [25, 33], [398, 384], [384, 286], [286, 398], [362, 398], [398, 414], [414, 362], [362, 463], [463, 341], [341, 362], [263, 359], [359, 467], [467, 263], [263, 249], [249, 255], [255, 263], [466, 467], [467, 260], [260, 466], [75, 60], [60, 166], [166, 75], [238, 239], [239, 79], [79, 238], [162, 127], [127, 139], [139, 162], [72, 11], [11, 37], [37, 72], [121, 232], [232, 120], [120, 121], [73, 72], [72, 39], [39, 73], [114, 128], [128, 47], [47, 114], [233, 232], [232, 128], [128, 233], [103, 104], [104, 67], [67, 103], [152, 175], [175, 148], [148, 152], [119, 118], [118, 101], [101, 119], [74, 73], [73, 40], [40, 74], [107, 9], [9, 108], [108, 107], [49, 48], [48, 131], [131, 49], [32, 194], [194, 211], [211, 32], [184, 74], [74, 185], [185, 184], [191, 80], [80, 183], [183, 191], [185, 40], [40, 186], [186, 185], [119, 230], [230, 118], [118, 119], [210, 202], [202, 214], [214, 210], [84, 83], [83, 17], [17, 84], [77, 76], [76, 146], [146, 77], [161, 160], [160, 30], [30, 161], [190, 56], [56, 173], [173, 190], [182, 106], [106, 194], [194, 182], [138, 135], [135, 192], [192, 138], [129, 203], [203, 98], [98, 129], [54, 21], [21, 68], [68, 54], [5, 51], [51, 4], [4, 5], [145, 144], [144, 23], [23, 145], [90, 77], [77, 91], [91, 90], [207, 205], [205, 187], [187, 207], [83, 201], [201, 18], [18, 83], [181, 91], [91, 182], [182, 181], [180, 90], [90, 181], [181, 180], [16, 85], [85, 17], [17, 16], [205, 206], [206, 36], [36, 205], [176, 148], [148, 140], [140, 176], [165, 92], [92, 39], [39, 165], [245, 193], [193, 244], [244, 245], [27, 159], [159, 28], [28, 27], [30, 247], [247, 161], [161, 30], [174, 236], [236, 196], [196, 174], [103, 54], [54, 104], [104, 103], [55, 193], [193, 8], [8, 55], [111, 117], [117, 31], [31, 111], [221, 189], [189, 55], [55, 221], [240, 98], [98, 99], [99, 240], [142, 126], [126, 100], [100, 142], [219, 166], [166, 218], [218, 219], [112, 155], [155, 26], [26, 112], [198, 209], [209, 131], [131, 198], [169, 135], [135, 150], [150, 169], [114, 47], [47, 217], [217, 114], [224, 223], [223, 53], [53, 224], [220, 45], [45, 134], [134, 220], [32, 211], [211, 140], [140, 32], [109, 67], [67, 108], [108, 109], [146, 43], [43, 91], [91, 146], [231, 230], [230, 120], [120, 231], [113, 226], [226, 247], [247, 113], [105, 63], [63, 52], [52, 105], [241, 238], [238, 242], [242, 241], [124, 46], [46, 156], [156, 124], [95, 78], [78, 96], [96, 95], [70, 46], [46, 63], [63, 70], [116, 143], [143, 227], [227, 116], [116, 123], [123, 111], [111, 116], [1, 44], [44, 19], [19, 1], [3, 236], [236, 51], [51, 3], [207, 216], [216, 205], [205, 207], [26, 154], [154, 22], [22, 26], [165, 39], [39, 167], [167, 165], [199, 200], [200, 208], [208, 199], [101, 36], [36, 100], [100, 101], [43, 57], [57, 202], [202, 43], [242, 20], [20, 99], [99, 242], [56, 28], [28, 157], [157, 56], [124, 35], [35, 113], [113, 124], [29, 160], [160, 27], [27, 29], [211, 204], [204, 210], [210, 211], [124, 113], [113, 46], [46, 124], [106, 43], [43, 204], [204, 106], [96, 62], [62, 77], [77, 96], [227, 137], [137, 116], [116, 227], [73, 41], [41, 72], [72, 73], [36, 203], [203, 142], [142, 36], [235, 64], [64, 240], [240, 235], [48, 49], [49, 64], [64, 48], [42, 41], [41, 74], [74, 42], [214, 212], [212, 207], [207, 214], [183, 42], [42, 184], [184, 183], [210, 169], [169, 211], [211, 210], [140, 170], [170, 176], [176, 140], [104, 105], [105, 69], [69, 104], [193, 122], [122, 168], [168, 193], [50, 123], [123, 187], [187, 50], [89, 96], [96, 90], [90, 89], [66, 65], [65, 107], [107, 66], [179, 89], [89, 180], [180, 179], [119, 101], [101, 120], [120, 119], [68, 63], [63, 104], [104, 68], [234, 93], [93, 227], [227, 234], [16, 15], [15, 85], [85, 16], [209, 129], [129, 49], [49, 209], [15, 14], [14, 86], [86, 15], [107, 55], [55, 9], [9, 107], [120, 100], [100, 121], [121, 120], [153, 145], [145, 22], [22, 153], [178, 88], [88, 179], [179, 178], [197, 6], [6, 196], [196, 197], [89, 88], [88, 96], [96, 89], [135, 138], [138, 136], [136, 135], [138, 215], [215, 172], [172, 138], [218, 115], [115, 219], [219, 218], [41, 42], [42, 81], [81, 41], [5, 195], [195, 51], [51, 5], [57, 43], [43, 61], [61, 57], [208, 171], [171, 199], [199, 208], [41, 81], [81, 38], [38, 41], [224, 53], [53, 225], [225, 224], [24, 144], [144, 110], [110, 24], [105, 52], [52, 66], [66, 105], [118, 229], [229, 117], [117, 118], [227, 34], [34, 234], [234, 227], [66, 107], [107, 69], [69, 66], [10, 109], [109, 151], [151, 10], [219, 48], [48, 235], [235, 219], [183, 62], [62, 191], [191, 183], [142, 129], [129, 126], [126, 142], [116, 111], [111, 143], [143, 116], [118, 117], [117, 50], [50, 118], [223, 222], [222, 52], [52, 223], [94, 19], [19, 141], [141, 94], [222, 221], [221, 65], [65, 222], [196, 3], [3, 197], [197, 196], [45, 220], [220, 44], [44, 45], [156, 70], [70, 139], [139, 156], [188, 122], [122, 245], [245, 188], [139, 71], [71, 162], [162, 139], [149, 170], [170, 150], [150, 149], [122, 188], [188, 196], [196, 122], [206, 216], [216, 92], [92, 206], [164, 2], [2, 167], [167, 164], [242, 141], [141, 241], [241, 242], [0, 164], [164, 37], [37, 0], [11, 72], [72, 12], [12, 11], [12, 38], [38, 13], [13, 12], [70, 63], [63, 71], [71, 70], [31, 226], [226, 111], [111, 31], [36, 101], [101, 205], [205, 36], [203, 206], [206, 165], [165, 203], [126, 209], [209, 217], [217, 126], [98, 165], [165, 97], [97, 98], [237, 220], [220, 218], [218, 237], [237, 239], [239, 241], [241, 237], [210, 214], [214, 169], [169, 210], [140, 171], [171, 32], [32, 140], [241, 125], [125, 237], [237, 241], [179, 86], [86, 178], [178, 179], [180, 85], [85, 179], [179, 180], [181, 84], [84, 180], [180, 181], [182, 83], [83, 181], [181, 182], [194, 201], [201, 182], [182, 194], [177, 137], [137, 132], [132, 177], [184, 76], [76, 183], [183, 184], [185, 61], [61, 184], [184, 185], [186, 57], [57, 185], [185, 186], [216, 212], [212, 186], [186, 216], [192, 214], [214, 187], [187, 192], [139, 34], [34, 156], [156, 139], [218, 79], [79, 237], [237, 218], [147, 123], [123, 177], [177, 147], [45, 44], [44, 4], [4, 45], [208, 201], [201, 32], [32, 208], [98, 64], [64, 129], [129, 98], [192, 213], [213, 138], [138, 192], [235, 59], [59, 219], [219, 235], [141, 242], [242, 97], [97, 141], [97, 2], [2, 141], [141, 97], [240, 75], [75, 235], [235, 240], [229, 24], [24, 228], [228, 229], [31, 25], [25, 226], [226, 31], [230, 23], [23, 229], [229, 230], [231, 22], [22, 230], [230, 231], [232, 26], [26, 231], [231, 232], [233, 112], [112, 232], [232, 233], [244, 189], [189, 243], [243, 244], [189, 221], [221, 190], [190, 189], [222, 28], [28, 221], [221, 222], [223, 27], [27, 222], [222, 223], [224, 29], [29, 223], [223, 224], [225, 30], [30, 224], [224, 225], [113, 247], [247, 225], [225, 113], [99, 60], [60, 240], [240, 99], [213, 147], [147, 215], [215, 213], [60, 20], [20, 166], [166, 60], [192, 187], [187, 213], [213, 192], [243, 112], [112, 244], [244, 243], [244, 233], [233, 245], [245, 244], [245, 128], [128, 188], [188, 245], [188, 114], [114, 174], [174, 188], [134, 131], [131, 220], [220, 134], [174, 217], [217, 236], [236, 174], [236, 198], [198, 134], [134, 236], [215, 177], [177, 58], [58, 215], [156, 143], [143, 124], [124, 156], [25, 110], [110, 7], [7, 25], [31, 228], [228, 25], [25, 31], [264, 356], [356, 368], [368, 264], [0, 11], [11, 267], [267, 0], [451, 452], [452, 349], [349, 451], [267, 302], [302, 269], [269, 267], [350, 357], [357, 277], [277, 350], [350, 452], [452, 357], [357, 350], [299, 333], [333, 297], [297, 299], [396, 175], [175, 377], [377, 396], [280, 347], [347, 330], [330, 280], [269, 303], [303, 270], [270, 269], [151, 9], [9, 337], [337, 151], [344, 278], [278, 360], [360, 344], [424, 418], [418, 431], [431, 424], [270, 304], [304, 409], [409, 270], [272, 310], [310, 407], [407, 272], [322, 270], [270, 410], [410, 322], [449, 450], [450, 347], [347, 449], [432, 422], [422, 434], [434, 432], [18, 313], [313, 17], [17, 18], [291, 306], [306, 375], [375, 291], [259, 387], [387, 260], [260, 259], [424, 335], [335, 418], [418, 424], [434, 364], [364, 416], [416, 434], [391, 423], [423, 327], [327, 391], [301, 251], [251, 298], [298, 301], [275, 281], [281, 4], [4, 275], [254, 373], [373, 253], [253, 254], [375, 307], [307, 321], [321, 375], [280, 425], [425, 411], [411, 280], [200, 421], [421, 18], [18, 200], [335, 321], [321, 406], [406, 335], [321, 320], [320, 405], [405, 321], [314, 315], [315, 17], [17, 314], [423, 426], [426, 266], [266, 423], [396, 377], [377, 369], [369, 396], [270, 322], [322, 269], [269, 270], [413, 417], [417, 464], [464, 413], [385, 386], [386, 258], [258, 385], [248, 456], [456, 419], [419, 248], [298, 284], [284, 333], [333, 298], [168, 417], [417, 8], [8, 168], [448, 346], [346, 261], [261, 448], [417, 413], [413, 285], [285, 417], [326, 327], [327, 328], [328, 326], [277, 355], [355, 329], [329, 277], [309, 392], [392, 438], [438, 309], [381, 382], [382, 256], [256, 381], [279, 429], [429, 360], [360, 279], [365, 364], [364, 379], [379, 365], [355, 277], [277, 437], [437, 355], [282, 443], [443, 283], [283, 282], [281, 275], [275, 363], [363, 281], [395, 431], [431, 369], [369, 395], [299, 297], [297, 337], [337, 299], [335, 273], [273, 321], [321, 335], [348, 450], [450, 349], [349, 348], [359, 446], [446, 467], [467, 359], [283, 293], [293, 282], [282, 283], [250, 458], [458, 462], [462, 250], [300, 276], [276, 383], [383, 300], [292, 308], [308, 325], [325, 292], [283, 276], [276, 293], [293, 283], [264, 372], [372, 447], [447, 264], [346, 352], [352, 340], [340, 346], [354, 274], [274, 19], [19, 354], [363, 456], [456, 281], [281, 363], [426, 436], [436, 425], [425, 426], [380, 381], [381, 252], [252, 380], [267, 269], [269, 393], [393, 267], [421, 200], [200, 428], [428, 421], [371, 266], [266, 329], [329, 371], [432, 287], [287, 422], [422, 432], [290, 250], [250, 328], [328, 290], [385, 258], [258, 384], [384, 385], [446, 265], [265, 342], [342, 446], [386, 387], [387, 257], [257, 386], [422, 424], [424, 430], [430, 422], [445, 342], [342, 276], [276, 445], [422, 273], [273, 424], [424, 422], [306, 292], [292, 307], [307, 306], [352, 366], [366, 345], [345, 352], [268, 271], [271, 302], [302, 268], [358, 423], [423, 371], [371, 358], [327, 294], [294, 460], [460, 327], [331, 279], [279, 294], [294, 331], [303, 271], [271, 304], [304, 303], [436, 432], [432, 427], [427, 436], [304, 272], [272, 408], [408, 304], [395, 394], [394, 431], [431, 395], [378, 395], [395, 400], [400, 378], [296, 334], [334, 299], [299, 296], [6, 351], [351, 168], [168, 6], [376, 352], [352, 411], [411, 376], [307, 325], [325, 320], [320, 307], [285, 295], [295, 336], [336, 285], [320, 319], [319, 404], [404, 320], [329, 330], [330, 349], [349, 329], [334, 293], [293, 333], [333, 334], [366, 323], [323, 447], [447, 366], [316, 15], [15, 315], [315, 316], [331, 358], [358, 279], [279, 331], [317, 14], [14, 316], [316, 317], [8, 285], [285, 9], [9, 8], [277, 329], [329, 350], [350, 277], [253, 374], [374, 252], [252, 253], [319, 318], [318, 403], [403, 319], [351, 6], [6, 419], [419, 351], [324, 318], [318, 325], [325, 324], [397, 367], [367, 365], [365, 397], [288, 435], [435, 397], [397, 288], [278, 344], [344, 439], [439, 278], [310, 272], [272, 311], [311, 310], [248, 195], [195, 281], [281, 248], [375, 273], [273, 291], [291, 375], [175, 396], [396, 199], [199, 175], [312, 311], [311, 268], [268, 312], [276, 283], [283, 445], [445, 276], [390, 373], [373, 339], [339, 390], [295, 282], [282, 296], [296, 295], [448, 449], [449, 346], [346, 448], [356, 264], [264, 454], [454, 356], [337, 336], [336, 299], [299, 337], [337, 338], [338, 151], [151, 337], [294, 278], [278, 455], [455, 294], [308, 292], [292, 415], [415, 308], [429, 358], [358, 355], [355, 429], [265, 340], [340, 372], [372, 265], [352, 346], [346, 280], [280, 352], [295, 442], [442, 282], [282, 295], [354, 19], [19, 370], [370, 354], [285, 441], [441, 295], [295, 285], [195, 248], [248, 197], [197, 195], [457, 440], [440, 274], [274, 457], [301, 300], [300, 368], [368, 301], [417, 351], [351, 465], [465, 417], [251, 301], [301, 389], [389, 251], [394, 395], [395, 379], [379, 394], [399, 412], [412, 419], [419, 399], [410, 436], [436, 322], [322, 410], [326, 2], [2, 393], [393, 326], [354, 370], [370, 461], [461, 354], [393, 164], [164, 267], [267, 393], [268, 302], [302, 12], [12, 268], [312, 268], [268, 13], [13, 312], [298, 293], [293, 301], [301, 298], [265, 446], [446, 340], [340, 265], [280, 330], [330, 425], [425, 280], [322, 426], [426, 391], [391, 322], [420, 429], [429, 437], [437, 420], [393, 391], [391, 326], [326, 393], [344, 440], [440, 438], [438, 344], [458, 459], [459, 461], [461, 458], [364, 434], [434, 394], [394, 364], [428, 396], [396, 262], [262, 428], [274, 354], [354, 457], [457, 274], [317, 316], [316, 402], [402, 317], [316, 315], [315, 403], [403, 316], [315, 314], [314, 404], [404, 315], [314, 313], [313, 405], [405, 314], [313, 421], [421, 406], [406, 313], [323, 366], [366, 361], [361, 323], [292, 306], [306, 407], [407, 292], [306, 291], [291, 408], [408, 306], [291, 287], [287, 409], [409, 291], [287, 432], [432, 410], [410, 287], [427, 434], [434, 411], [411, 427], [372, 264], [264, 383], [383, 372], [459, 309], [309, 457], [457, 459], [366, 352], [352, 401], [401, 366], [1, 274], [274, 4], [4, 1], [418, 421], [421, 262], [262, 418], [331, 294], [294, 358], [358, 331], [435, 433], [433, 367], [367, 435], [392, 289], [289, 439], [439, 392], [328, 462], [462, 326], [326, 328], [94, 2], [2, 370], [370, 94], [289, 305], [305, 455], [455, 289], [339, 254], [254, 448], [448, 339], [359, 255], [255, 446], [446, 359], [254, 253], [253, 449], [449, 254], [253, 252], [252, 450], [450, 253], [252, 256], [256, 451], [451, 252], [256, 341], [341, 452], [452, 256], [414, 413], [413, 463], [463, 414], [286, 441], [441, 414], [414, 286], [286, 258], [258, 441], [441, 286], [258, 257], [257, 442], [442, 258], [257, 259], [259, 443], [443, 257], [259, 260], [260, 444], [444, 259], [260, 467], [467, 445], [445, 260], [309, 459], [459, 250], [250, 309], [305, 289], [289, 290], [290, 305], [305, 290], [290, 460], [460, 305], [401, 376], [376, 435], [435, 401], [309, 250], [250, 392], [392, 309], [376, 411], [411, 433], [433, 376], [453, 341], [341, 464], [464, 453], [357, 453], [453, 465], [465, 357], [343, 357], [357, 412], [412, 343], [437, 343], [343, 399], [399, 437], [344, 360], [360, 440], [440, 344], [420, 437], [437, 456], [456, 420], [360, 420], [420, 363], [363, 360], [361, 401], [401, 288], [288, 361], [265, 372], [372, 353], [353, 265], [390, 339], [339, 249], [249, 390], [339, 448], [448, 255], [255, 339]);
|
|
2920
|
+
var bs = Ae([61, 146], [146, 91], [91, 181], [181, 84], [84, 17], [17, 314], [314, 405], [405, 321], [321, 375], [375, 291], [61, 185], [185, 40], [40, 39], [39, 37], [37, 0], [0, 267], [267, 269], [269, 270], [270, 409], [409, 291], [78, 95], [95, 88], [88, 178], [178, 87], [87, 14], [14, 317], [317, 402], [402, 318], [318, 324], [324, 308], [78, 191], [191, 80], [80, 81], [81, 82], [82, 13], [13, 312], [312, 311], [311, 310], [310, 415], [415, 308]), Es = Ae([263, 249], [249, 390], [390, 373], [373, 374], [374, 380], [380, 381], [381, 382], [382, 362], [263, 466], [466, 388], [388, 387], [387, 386], [386, 385], [385, 384], [384, 398], [398, 362]), ws = Ae([276, 283], [283, 282], [282, 295], [295, 285], [300, 293], [293, 334], [334, 296], [296, 336]), Da = Ae([474, 475], [475, 476], [476, 477], [477, 474]), As = Ae([33, 7], [7, 163], [163, 144], [144, 145], [145, 153], [153, 154], [154, 155], [155, 133], [33, 246], [246, 161], [161, 160], [160, 159], [159, 158], [158, 157], [157, 173], [173, 133]), ks = Ae([46, 53], [53, 52], [52, 65], [65, 55], [70, 63], [63, 105], [105, 66], [66, 107]), Ba = Ae([469, 470], [470, 471], [471, 472], [472, 469]), Ss = Ae([10, 338], [338, 297], [297, 332], [332, 284], [284, 251], [251, 389], [389, 356], [356, 454], [454, 323], [323, 361], [361, 288], [288, 397], [397, 365], [365, 379], [379, 378], [378, 400], [400, 377], [377, 152], [152, 148], [148, 176], [176, 149], [149, 150], [150, 136], [136, 172], [172, 58], [58, 132], [132, 93], [93, 234], [234, 127], [127, 162], [162, 21], [21, 54], [54, 103], [103, 67], [67, 109], [109, 10]), ja = [...bs, ...Es, ...ws, ...As, ...ks, ...Ss], Ua = Ae([127, 34], [34, 139], [139, 127], [11, 0], [0, 37], [37, 11], [232, 231], [231, 120], [120, 232], [72, 37], [37, 39], [39, 72], [128, 121], [121, 47], [47, 128], [232, 121], [121, 128], [128, 232], [104, 69], [69, 67], [67, 104], [175, 171], [171, 148], [148, 175], [118, 50], [50, 101], [101, 118], [73, 39], [39, 40], [40, 73], [9, 151], [151, 108], [108, 9], [48, 115], [115, 131], [131, 48], [194, 204], [204, 211], [211, 194], [74, 40], [40, 185], [185, 74], [80, 42], [42, 183], [183, 80], [40, 92], [92, 186], [186, 40], [230, 229], [229, 118], [118, 230], [202, 212], [212, 214], [214, 202], [83, 18], [18, 17], [17, 83], [76, 61], [61, 146], [146, 76], [160, 29], [29, 30], [30, 160], [56, 157], [157, 173], [173, 56], [106, 204], [204, 194], [194, 106], [135, 214], [214, 192], [192, 135], [203, 165], [165, 98], [98, 203], [21, 71], [71, 68], [68, 21], [51, 45], [45, 4], [4, 51], [144, 24], [24, 23], [23, 144], [77, 146], [146, 91], [91, 77], [205, 50], [50, 187], [187, 205], [201, 200], [200, 18], [18, 201], [91, 106], [106, 182], [182, 91], [90, 91], [91, 181], [181, 90], [85, 84], [84, 17], [17, 85], [206, 203], [203, 36], [36, 206], [148, 171], [171, 140], [140, 148], [92, 40], [40, 39], [39, 92], [193, 189], [189, 244], [244, 193], [159, 158], [158, 28], [28, 159], [247, 246], [246, 161], [161, 247], [236, 3], [3, 196], [196, 236], [54, 68], [68, 104], [104, 54], [193, 168], [168, 8], [8, 193], [117, 228], [228, 31], [31, 117], [189, 193], [193, 55], [55, 189], [98, 97], [97, 99], [99, 98], [126, 47], [47, 100], [100, 126], [166, 79], [79, 218], [218, 166], [155, 154], [154, 26], [26, 155], [209, 49], [49, 131], [131, 209], [135, 136], [136, 150], [150, 135], [47, 126], [126, 217], [217, 47], [223, 52], [52, 53], [53, 223], [45, 51], [51, 134], [134, 45], [211, 170], [170, 140], [140, 211], [67, 69], [69, 108], [108, 67], [43, 106], [106, 91], [91, 43], [230, 119], [119, 120], [120, 230], [226, 130], [130, 247], [247, 226], [63, 53], [53, 52], [52, 63], [238, 20], [20, 242], [242, 238], [46, 70], [70, 156], [156, 46], [78, 62], [62, 96], [96, 78], [46, 53], [53, 63], [63, 46], [143, 34], [34, 227], [227, 143], [123, 117], [117, 111], [111, 123], [44, 125], [125, 19], [19, 44], [236, 134], [134, 51], [51, 236], [216, 206], [206, 205], [205, 216], [154, 153], [153, 22], [22, 154], [39, 37], [37, 167], [167, 39], [200, 201], [201, 208], [208, 200], [36, 142], [142, 100], [100, 36], [57, 212], [212, 202], [202, 57], [20, 60], [60, 99], [99, 20], [28, 158], [158, 157], [157, 28], [35, 226], [226, 113], [113, 35], [160, 159], [159, 27], [27, 160], [204, 202], [202, 210], [210, 204], [113, 225], [225, 46], [46, 113], [43, 202], [202, 204], [204, 43], [62, 76], [76, 77], [77, 62], [137, 123], [123, 116], [116, 137], [41, 38], [38, 72], [72, 41], [203, 129], [129, 142], [142, 203], [64, 98], [98, 240], [240, 64], [49, 102], [102, 64], [64, 49], [41, 73], [73, 74], [74, 41], [212, 216], [216, 207], [207, 212], [42, 74], [74, 184], [184, 42], [169, 170], [170, 211], [211, 169], [170, 149], [149, 176], [176, 170], [105, 66], [66, 69], [69, 105], [122, 6], [6, 168], [168, 122], [123, 147], [147, 187], [187, 123], [96, 77], [77, 90], [90, 96], [65, 55], [55, 107], [107, 65], [89, 90], [90, 180], [180, 89], [101, 100], [100, 120], [120, 101], [63, 105], [105, 104], [104, 63], [93, 137], [137, 227], [227, 93], [15, 86], [86, 85], [85, 15], [129, 102], [102, 49], [49, 129], [14, 87], [87, 86], [86, 14], [55, 8], [8, 9], [9, 55], [100, 47], [47, 121], [121, 100], [145, 23], [23, 22], [22, 145], [88, 89], [89, 179], [179, 88], [6, 122], [122, 196], [196, 6], [88, 95], [95, 96], [96, 88], [138, 172], [172, 136], [136, 138], [215, 58], [58, 172], [172, 215], [115, 48], [48, 219], [219, 115], [42, 80], [80, 81], [81, 42], [195, 3], [3, 51], [51, 195], [43, 146], [146, 61], [61, 43], [171, 175], [175, 199], [199, 171], [81, 82], [82, 38], [38, 81], [53, 46], [46, 225], [225, 53], [144, 163], [163, 110], [110, 144], [52, 65], [65, 66], [66, 52], [229, 228], [228, 117], [117, 229], [34, 127], [127, 234], [234, 34], [107, 108], [108, 69], [69, 107], [109, 108], [108, 151], [151, 109], [48, 64], [64, 235], [235, 48], [62, 78], [78, 191], [191, 62], [129, 209], [209, 126], [126, 129], [111, 35], [35, 143], [143, 111], [117, 123], [123, 50], [50, 117], [222, 65], [65, 52], [52, 222], [19, 125], [125, 141], [141, 19], [221, 55], [55, 65], [65, 221], [3, 195], [195, 197], [197, 3], [25, 7], [7, 33], [33, 25], [220, 237], [237, 44], [44, 220], [70, 71], [71, 139], [139, 70], [122, 193], [193, 245], [245, 122], [247, 130], [130, 33], [33, 247], [71, 21], [21, 162], [162, 71], [170, 169], [169, 150], [150, 170], [188, 174], [174, 196], [196, 188], [216, 186], [186, 92], [92, 216], [2, 97], [97, 167], [167, 2], [141, 125], [125, 241], [241, 141], [164, 167], [167, 37], [37, 164], [72, 38], [38, 12], [12, 72], [38, 82], [82, 13], [13, 38], [63, 68], [68, 71], [71, 63], [226, 35], [35, 111], [111, 226], [101, 50], [50, 205], [205, 101], [206, 92], [92, 165], [165, 206], [209, 198], [198, 217], [217, 209], [165, 167], [167, 97], [97, 165], [220, 115], [115, 218], [218, 220], [133, 112], [112, 243], [243, 133], [239, 238], [238, 241], [241, 239], [214, 135], [135, 169], [169, 214], [190, 173], [173, 133], [133, 190], [171, 208], [208, 32], [32, 171], [125, 44], [44, 237], [237, 125], [86, 87], [87, 178], [178, 86], [85, 86], [86, 179], [179, 85], [84, 85], [85, 180], [180, 84], [83, 84], [84, 181], [181, 83], [201, 83], [83, 182], [182, 201], [137, 93], [93, 132], [132, 137], [76, 62], [62, 183], [183, 76], [61, 76], [76, 184], [184, 61], [57, 61], [61, 185], [185, 57], [212, 57], [57, 186], [186, 212], [214, 207], [207, 187], [187, 214], [34, 143], [143, 156], [156, 34], [79, 239], [239, 237], [237, 79], [123, 137], [137, 177], [177, 123], [44, 1], [1, 4], [4, 44], [201, 194], [194, 32], [32, 201], [64, 102], [102, 129], [129, 64], [213, 215], [215, 138], [138, 213], [59, 166], [166, 219], [219, 59], [242, 99], [99, 97], [97, 242], [2, 94], [94, 141], [141, 2], [75, 59], [59, 235], [235, 75], [24, 110], [110, 228], [228, 24], [25, 130], [130, 226], [226, 25], [23, 24], [24, 229], [229, 23], [22, 23], [23, 230], [230, 22], [26, 22], [22, 231], [231, 26], [112, 26], [26, 232], [232, 112], [189, 190], [190, 243], [243, 189], [221, 56], [56, 190], [190, 221], [28, 56], [56, 221], [221, 28], [27, 28], [28, 222], [222, 27], [29, 27], [27, 223], [223, 29], [30, 29], [29, 224], [224, 30], [247, 30], [30, 225], [225, 247], [238, 79], [79, 20], [20, 238], [166, 59], [59, 75], [75, 166], [60, 75], [75, 240], [240, 60], [147, 177], [177, 215], [215, 147], [20, 79], [79, 166], [166, 20], [187, 147], [147, 213], [213, 187], [112, 233], [233, 244], [244, 112], [233, 128], [128, 245], [245, 233], [128, 114], [114, 188], [188, 128], [114, 217], [217, 174], [174, 114], [131, 115], [115, 220], [220, 131], [217, 198], [198, 236], [236, 217], [198, 131], [131, 134], [134, 198], [177, 132], [132, 58], [58, 177], [143, 35], [35, 124], [124, 143], [110, 163], [163, 7], [7, 110], [228, 110], [110, 25], [25, 228], [356, 389], [389, 368], [368, 356], [11, 302], [302, 267], [267, 11], [452, 350], [350, 349], [349, 452], [302, 303], [303, 269], [269, 302], [357, 343], [343, 277], [277, 357], [452, 453], [453, 357], [357, 452], [333, 332], [332, 297], [297, 333], [175, 152], [152, 377], [377, 175], [347, 348], [348, 330], [330, 347], [303, 304], [304, 270], [270, 303], [9, 336], [336, 337], [337, 9], [278, 279], [279, 360], [360, 278], [418, 262], [262, 431], [431, 418], [304, 408], [408, 409], [409, 304], [310, 415], [415, 407], [407, 310], [270, 409], [409, 410], [410, 270], [450, 348], [348, 347], [347, 450], [422, 430], [430, 434], [434, 422], [313, 314], [314, 17], [17, 313], [306, 307], [307, 375], [375, 306], [387, 388], [388, 260], [260, 387], [286, 414], [414, 398], [398, 286], [335, 406], [406, 418], [418, 335], [364, 367], [367, 416], [416, 364], [423, 358], [358, 327], [327, 423], [251, 284], [284, 298], [298, 251], [281, 5], [5, 4], [4, 281], [373, 374], [374, 253], [253, 373], [307, 320], [320, 321], [321, 307], [425, 427], [427, 411], [411, 425], [421, 313], [313, 18], [18, 421], [321, 405], [405, 406], [406, 321], [320, 404], [404, 405], [405, 320], [315, 16], [16, 17], [17, 315], [426, 425], [425, 266], [266, 426], [377, 400], [400, 369], [369, 377], [322, 391], [391, 269], [269, 322], [417, 465], [465, 464], [464, 417], [386, 257], [257, 258], [258, 386], [466, 260], [260, 388], [388, 466], [456, 399], [399, 419], [419, 456], [284, 332], [332, 333], [333, 284], [417, 285], [285, 8], [8, 417], [346, 340], [340, 261], [261, 346], [413, 441], [441, 285], [285, 413], [327, 460], [460, 328], [328, 327], [355, 371], [371, 329], [329, 355], [392, 439], [439, 438], [438, 392], [382, 341], [341, 256], [256, 382], [429, 420], [420, 360], [360, 429], [364, 394], [394, 379], [379, 364], [277, 343], [343, 437], [437, 277], [443, 444], [444, 283], [283, 443], [275, 440], [440, 363], [363, 275], [431, 262], [262, 369], [369, 431], [297, 338], [338, 337], [337, 297], [273, 375], [375, 321], [321, 273], [450, 451], [451, 349], [349, 450], [446, 342], [342, 467], [467, 446], [293, 334], [334, 282], [282, 293], [458, 461], [461, 462], [462, 458], [276, 353], [353, 383], [383, 276], [308, 324], [324, 325], [325, 308], [276, 300], [300, 293], [293, 276], [372, 345], [345, 447], [447, 372], [352, 345], [345, 340], [340, 352], [274, 1], [1, 19], [19, 274], [456, 248], [248, 281], [281, 456], [436, 427], [427, 425], [425, 436], [381, 256], [256, 252], [252, 381], [269, 391], [391, 393], [393, 269], [200, 199], [199, 428], [428, 200], [266, 330], [330, 329], [329, 266], [287, 273], [273, 422], [422, 287], [250, 462], [462, 328], [328, 250], [258, 286], [286, 384], [384, 258], [265, 353], [353, 342], [342, 265], [387, 259], [259, 257], [257, 387], [424, 431], [431, 430], [430, 424], [342, 353], [353, 276], [276, 342], [273, 335], [335, 424], [424, 273], [292, 325], [325, 307], [307, 292], [366, 447], [447, 345], [345, 366], [271, 303], [303, 302], [302, 271], [423, 266], [266, 371], [371, 423], [294, 455], [455, 460], [460, 294], [279, 278], [278, 294], [294, 279], [271, 272], [272, 304], [304, 271], [432, 434], [434, 427], [427, 432], [272, 407], [407, 408], [408, 272], [394, 430], [430, 431], [431, 394], [395, 369], [369, 400], [400, 395], [334, 333], [333, 299], [299, 334], [351, 417], [417, 168], [168, 351], [352, 280], [280, 411], [411, 352], [325, 319], [319, 320], [320, 325], [295, 296], [296, 336], [336, 295], [319, 403], [403, 404], [404, 319], [330, 348], [348, 349], [349, 330], [293, 298], [298, 333], [333, 293], [323, 454], [454, 447], [447, 323], [15, 16], [16, 315], [315, 15], [358, 429], [429, 279], [279, 358], [14, 15], [15, 316], [316, 14], [285, 336], [336, 9], [9, 285], [329, 349], [349, 350], [350, 329], [374, 380], [380, 252], [252, 374], [318, 402], [402, 403], [403, 318], [6, 197], [197, 419], [419, 6], [318, 319], [319, 325], [325, 318], [367, 364], [364, 365], [365, 367], [435, 367], [367, 397], [397, 435], [344, 438], [438, 439], [439, 344], [272, 271], [271, 311], [311, 272], [195, 5], [5, 281], [281, 195], [273, 287], [287, 291], [291, 273], [396, 428], [428, 199], [199, 396], [311, 271], [271, 268], [268, 311], [283, 444], [444, 445], [445, 283], [373, 254], [254, 339], [339, 373], [282, 334], [334, 296], [296, 282], [449, 347], [347, 346], [346, 449], [264, 447], [447, 454], [454, 264], [336, 296], [296, 299], [299, 336], [338, 10], [10, 151], [151, 338], [278, 439], [439, 455], [455, 278], [292, 407], [407, 415], [415, 292], [358, 371], [371, 355], [355, 358], [340, 345], [345, 372], [372, 340], [346, 347], [347, 280], [280, 346], [442, 443], [443, 282], [282, 442], [19, 94], [94, 370], [370, 19], [441, 442], [442, 295], [295, 441], [248, 419], [419, 197], [197, 248], [263, 255], [255, 359], [359, 263], [440, 275], [275, 274], [274, 440], [300, 383], [383, 368], [368, 300], [351, 412], [412, 465], [465, 351], [263, 467], [467, 466], [466, 263], [301, 368], [368, 389], [389, 301], [395, 378], [378, 379], [379, 395], [412, 351], [351, 419], [419, 412], [436, 426], [426, 322], [322, 436], [2, 164], [164, 393], [393, 2], [370, 462], [462, 461], [461, 370], [164, 0], [0, 267], [267, 164], [302, 11], [11, 12], [12, 302], [268, 12], [12, 13], [13, 268], [293, 300], [300, 301], [301, 293], [446, 261], [261, 340], [340, 446], [330, 266], [266, 425], [425, 330], [426, 423], [423, 391], [391, 426], [429, 355], [355, 437], [437, 429], [391, 327], [327, 326], [326, 391], [440, 457], [457, 438], [438, 440], [341, 382], [382, 362], [362, 341], [459, 457], [457, 461], [461, 459], [434, 430], [430, 394], [394, 434], [414, 463], [463, 362], [362, 414], [396, 369], [369, 262], [262, 396], [354, 461], [461, 457], [457, 354], [316, 403], [403, 402], [402, 316], [315, 404], [404, 403], [403, 315], [314, 405], [405, 404], [404, 314], [313, 406], [406, 405], [405, 313], [421, 418], [418, 406], [406, 421], [366, 401], [401, 361], [361, 366], [306, 408], [408, 407], [407, 306], [291, 409], [409, 408], [408, 291], [287, 410], [410, 409], [409, 287], [432, 436], [436, 410], [410, 432], [434, 416], [416, 411], [411, 434], [264, 368], [368, 383], [383, 264], [309, 438], [438, 457], [457, 309], [352, 376], [376, 401], [401, 352], [274, 275], [275, 4], [4, 274], [421, 428], [428, 262], [262, 421], [294, 327], [327, 358], [358, 294], [433, 416], [416, 367], [367, 433], [289, 455], [455, 439], [439, 289], [462, 370], [370, 326], [326, 462], [2, 326], [326, 370], [370, 2], [305, 460], [460, 455], [455, 305], [254, 449], [449, 448], [448, 254], [255, 261], [261, 446], [446, 255], [253, 450], [450, 449], [449, 253], [252, 451], [451, 450], [450, 252], [256, 452], [452, 451], [451, 256], [341, 453], [453, 452], [452, 341], [413, 464], [464, 463], [463, 413], [441, 413], [413, 414], [414, 441], [258, 442], [442, 441], [441, 258], [257, 443], [443, 442], [442, 257], [259, 444], [444, 443], [443, 259], [260, 445], [445, 444], [444, 260], [467, 342], [342, 445], [445, 467], [459, 458], [458, 250], [250, 459], [289, 392], [392, 290], [290, 289], [290, 328], [328, 460], [460, 290], [376, 433], [433, 435], [435, 376], [250, 290], [290, 392], [392, 250], [411, 416], [416, 433], [433, 411], [341, 463], [463, 464], [464, 341], [453, 464], [464, 465], [465, 453], [357, 465], [465, 412], [412, 357], [343, 412], [412, 399], [399, 343], [360, 363], [363, 440], [440, 360], [437, 399], [399, 456], [456, 437], [420, 456], [456, 363], [363, 420], [401, 435], [435, 288], [288, 401], [372, 383], [383, 353], [353, 372], [339, 255], [255, 249], [249, 339], [448, 261], [261, 255], [255, 448], [133, 243], [243, 190], [190, 133], [133, 155], [155, 112], [112, 133], [33, 246], [246, 247], [247, 33], [33, 130], [130, 25], [25, 33], [398, 384], [384, 286], [286, 398], [362, 398], [398, 414], [414, 362], [362, 463], [463, 341], [341, 362], [263, 359], [359, 467], [467, 263], [263, 249], [249, 255], [255, 263], [466, 467], [467, 260], [260, 466], [75, 60], [60, 166], [166, 75], [238, 239], [239, 79], [79, 238], [162, 127], [127, 139], [139, 162], [72, 11], [11, 37], [37, 72], [121, 232], [232, 120], [120, 121], [73, 72], [72, 39], [39, 73], [114, 128], [128, 47], [47, 114], [233, 232], [232, 128], [128, 233], [103, 104], [104, 67], [67, 103], [152, 175], [175, 148], [148, 152], [119, 118], [118, 101], [101, 119], [74, 73], [73, 40], [40, 74], [107, 9], [9, 108], [108, 107], [49, 48], [48, 131], [131, 49], [32, 194], [194, 211], [211, 32], [184, 74], [74, 185], [185, 184], [191, 80], [80, 183], [183, 191], [185, 40], [40, 186], [186, 185], [119, 230], [230, 118], [118, 119], [210, 202], [202, 214], [214, 210], [84, 83], [83, 17], [17, 84], [77, 76], [76, 146], [146, 77], [161, 160], [160, 30], [30, 161], [190, 56], [56, 173], [173, 190], [182, 106], [106, 194], [194, 182], [138, 135], [135, 192], [192, 138], [129, 203], [203, 98], [98, 129], [54, 21], [21, 68], [68, 54], [5, 51], [51, 4], [4, 5], [145, 144], [144, 23], [23, 145], [90, 77], [77, 91], [91, 90], [207, 205], [205, 187], [187, 207], [83, 201], [201, 18], [18, 83], [181, 91], [91, 182], [182, 181], [180, 90], [90, 181], [181, 180], [16, 85], [85, 17], [17, 16], [205, 206], [206, 36], [36, 205], [176, 148], [148, 140], [140, 176], [165, 92], [92, 39], [39, 165], [245, 193], [193, 244], [244, 245], [27, 159], [159, 28], [28, 27], [30, 247], [247, 161], [161, 30], [174, 236], [236, 196], [196, 174], [103, 54], [54, 104], [104, 103], [55, 193], [193, 8], [8, 55], [111, 117], [117, 31], [31, 111], [221, 189], [189, 55], [55, 221], [240, 98], [98, 99], [99, 240], [142, 126], [126, 100], [100, 142], [219, 166], [166, 218], [218, 219], [112, 155], [155, 26], [26, 112], [198, 209], [209, 131], [131, 198], [169, 135], [135, 150], [150, 169], [114, 47], [47, 217], [217, 114], [224, 223], [223, 53], [53, 224], [220, 45], [45, 134], [134, 220], [32, 211], [211, 140], [140, 32], [109, 67], [67, 108], [108, 109], [146, 43], [43, 91], [91, 146], [231, 230], [230, 120], [120, 231], [113, 226], [226, 247], [247, 113], [105, 63], [63, 52], [52, 105], [241, 238], [238, 242], [242, 241], [124, 46], [46, 156], [156, 124], [95, 78], [78, 96], [96, 95], [70, 46], [46, 63], [63, 70], [116, 143], [143, 227], [227, 116], [116, 123], [123, 111], [111, 116], [1, 44], [44, 19], [19, 1], [3, 236], [236, 51], [51, 3], [207, 216], [216, 205], [205, 207], [26, 154], [154, 22], [22, 26], [165, 39], [39, 167], [167, 165], [199, 200], [200, 208], [208, 199], [101, 36], [36, 100], [100, 101], [43, 57], [57, 202], [202, 43], [242, 20], [20, 99], [99, 242], [56, 28], [28, 157], [157, 56], [124, 35], [35, 113], [113, 124], [29, 160], [160, 27], [27, 29], [211, 204], [204, 210], [210, 211], [124, 113], [113, 46], [46, 124], [106, 43], [43, 204], [204, 106], [96, 62], [62, 77], [77, 96], [227, 137], [137, 116], [116, 227], [73, 41], [41, 72], [72, 73], [36, 203], [203, 142], [142, 36], [235, 64], [64, 240], [240, 235], [48, 49], [49, 64], [64, 48], [42, 41], [41, 74], [74, 42], [214, 212], [212, 207], [207, 214], [183, 42], [42, 184], [184, 183], [210, 169], [169, 211], [211, 210], [140, 170], [170, 176], [176, 140], [104, 105], [105, 69], [69, 104], [193, 122], [122, 168], [168, 193], [50, 123], [123, 187], [187, 50], [89, 96], [96, 90], [90, 89], [66, 65], [65, 107], [107, 66], [179, 89], [89, 180], [180, 179], [119, 101], [101, 120], [120, 119], [68, 63], [63, 104], [104, 68], [234, 93], [93, 227], [227, 234], [16, 15], [15, 85], [85, 16], [209, 129], [129, 49], [49, 209], [15, 14], [14, 86], [86, 15], [107, 55], [55, 9], [9, 107], [120, 100], [100, 121], [121, 120], [153, 145], [145, 22], [22, 153], [178, 88], [88, 179], [179, 178], [197, 6], [6, 196], [196, 197], [89, 88], [88, 96], [96, 89], [135, 138], [138, 136], [136, 135], [138, 215], [215, 172], [172, 138], [218, 115], [115, 219], [219, 218], [41, 42], [42, 81], [81, 41], [5, 195], [195, 51], [51, 5], [57, 43], [43, 61], [61, 57], [208, 171], [171, 199], [199, 208], [41, 81], [81, 38], [38, 41], [224, 53], [53, 225], [225, 224], [24, 144], [144, 110], [110, 24], [105, 52], [52, 66], [66, 105], [118, 229], [229, 117], [117, 118], [227, 34], [34, 234], [234, 227], [66, 107], [107, 69], [69, 66], [10, 109], [109, 151], [151, 10], [219, 48], [48, 235], [235, 219], [183, 62], [62, 191], [191, 183], [142, 129], [129, 126], [126, 142], [116, 111], [111, 143], [143, 116], [118, 117], [117, 50], [50, 118], [223, 222], [222, 52], [52, 223], [94, 19], [19, 141], [141, 94], [222, 221], [221, 65], [65, 222], [196, 3], [3, 197], [197, 196], [45, 220], [220, 44], [44, 45], [156, 70], [70, 139], [139, 156], [188, 122], [122, 245], [245, 188], [139, 71], [71, 162], [162, 139], [149, 170], [170, 150], [150, 149], [122, 188], [188, 196], [196, 122], [206, 216], [216, 92], [92, 206], [164, 2], [2, 167], [167, 164], [242, 141], [141, 241], [241, 242], [0, 164], [164, 37], [37, 0], [11, 72], [72, 12], [12, 11], [12, 38], [38, 13], [13, 12], [70, 63], [63, 71], [71, 70], [31, 226], [226, 111], [111, 31], [36, 101], [101, 205], [205, 36], [203, 206], [206, 165], [165, 203], [126, 209], [209, 217], [217, 126], [98, 165], [165, 97], [97, 98], [237, 220], [220, 218], [218, 237], [237, 239], [239, 241], [241, 237], [210, 214], [214, 169], [169, 210], [140, 171], [171, 32], [32, 140], [241, 125], [125, 237], [237, 241], [179, 86], [86, 178], [178, 179], [180, 85], [85, 179], [179, 180], [181, 84], [84, 180], [180, 181], [182, 83], [83, 181], [181, 182], [194, 201], [201, 182], [182, 194], [177, 137], [137, 132], [132, 177], [184, 76], [76, 183], [183, 184], [185, 61], [61, 184], [184, 185], [186, 57], [57, 185], [185, 186], [216, 212], [212, 186], [186, 216], [192, 214], [214, 187], [187, 192], [139, 34], [34, 156], [156, 139], [218, 79], [79, 237], [237, 218], [147, 123], [123, 177], [177, 147], [45, 44], [44, 4], [4, 45], [208, 201], [201, 32], [32, 208], [98, 64], [64, 129], [129, 98], [192, 213], [213, 138], [138, 192], [235, 59], [59, 219], [219, 235], [141, 242], [242, 97], [97, 141], [97, 2], [2, 141], [141, 97], [240, 75], [75, 235], [235, 240], [229, 24], [24, 228], [228, 229], [31, 25], [25, 226], [226, 31], [230, 23], [23, 229], [229, 230], [231, 22], [22, 230], [230, 231], [232, 26], [26, 231], [231, 232], [233, 112], [112, 232], [232, 233], [244, 189], [189, 243], [243, 244], [189, 221], [221, 190], [190, 189], [222, 28], [28, 221], [221, 222], [223, 27], [27, 222], [222, 223], [224, 29], [29, 223], [223, 224], [225, 30], [30, 224], [224, 225], [113, 247], [247, 225], [225, 113], [99, 60], [60, 240], [240, 99], [213, 147], [147, 215], [215, 213], [60, 20], [20, 166], [166, 60], [192, 187], [187, 213], [213, 192], [243, 112], [112, 244], [244, 243], [244, 233], [233, 245], [245, 244], [245, 128], [128, 188], [188, 245], [188, 114], [114, 174], [174, 188], [134, 131], [131, 220], [220, 134], [174, 217], [217, 236], [236, 174], [236, 198], [198, 134], [134, 236], [215, 177], [177, 58], [58, 215], [156, 143], [143, 124], [124, 156], [25, 110], [110, 7], [7, 25], [31, 228], [228, 25], [25, 31], [264, 356], [356, 368], [368, 264], [0, 11], [11, 267], [267, 0], [451, 452], [452, 349], [349, 451], [267, 302], [302, 269], [269, 267], [350, 357], [357, 277], [277, 350], [350, 452], [452, 357], [357, 350], [299, 333], [333, 297], [297, 299], [396, 175], [175, 377], [377, 396], [280, 347], [347, 330], [330, 280], [269, 303], [303, 270], [270, 269], [151, 9], [9, 337], [337, 151], [344, 278], [278, 360], [360, 344], [424, 418], [418, 431], [431, 424], [270, 304], [304, 409], [409, 270], [272, 310], [310, 407], [407, 272], [322, 270], [270, 410], [410, 322], [449, 450], [450, 347], [347, 449], [432, 422], [422, 434], [434, 432], [18, 313], [313, 17], [17, 18], [291, 306], [306, 375], [375, 291], [259, 387], [387, 260], [260, 259], [424, 335], [335, 418], [418, 424], [434, 364], [364, 416], [416, 434], [391, 423], [423, 327], [327, 391], [301, 251], [251, 298], [298, 301], [275, 281], [281, 4], [4, 275], [254, 373], [373, 253], [253, 254], [375, 307], [307, 321], [321, 375], [280, 425], [425, 411], [411, 280], [200, 421], [421, 18], [18, 200], [335, 321], [321, 406], [406, 335], [321, 320], [320, 405], [405, 321], [314, 315], [315, 17], [17, 314], [423, 426], [426, 266], [266, 423], [396, 377], [377, 369], [369, 396], [270, 322], [322, 269], [269, 270], [413, 417], [417, 464], [464, 413], [385, 386], [386, 258], [258, 385], [248, 456], [456, 419], [419, 248], [298, 284], [284, 333], [333, 298], [168, 417], [417, 8], [8, 168], [448, 346], [346, 261], [261, 448], [417, 413], [413, 285], [285, 417], [326, 327], [327, 328], [328, 326], [277, 355], [355, 329], [329, 277], [309, 392], [392, 438], [438, 309], [381, 382], [382, 256], [256, 381], [279, 429], [429, 360], [360, 279], [365, 364], [364, 379], [379, 365], [355, 277], [277, 437], [437, 355], [282, 443], [443, 283], [283, 282], [281, 275], [275, 363], [363, 281], [395, 431], [431, 369], [369, 395], [299, 297], [297, 337], [337, 299], [335, 273], [273, 321], [321, 335], [348, 450], [450, 349], [349, 348], [359, 446], [446, 467], [467, 359], [283, 293], [293, 282], [282, 283], [250, 458], [458, 462], [462, 250], [300, 276], [276, 383], [383, 300], [292, 308], [308, 325], [325, 292], [283, 276], [276, 293], [293, 283], [264, 372], [372, 447], [447, 264], [346, 352], [352, 340], [340, 346], [354, 274], [274, 19], [19, 354], [363, 456], [456, 281], [281, 363], [426, 436], [436, 425], [425, 426], [380, 381], [381, 252], [252, 380], [267, 269], [269, 393], [393, 267], [421, 200], [200, 428], [428, 421], [371, 266], [266, 329], [329, 371], [432, 287], [287, 422], [422, 432], [290, 250], [250, 328], [328, 290], [385, 258], [258, 384], [384, 385], [446, 265], [265, 342], [342, 446], [386, 387], [387, 257], [257, 386], [422, 424], [424, 430], [430, 422], [445, 342], [342, 276], [276, 445], [422, 273], [273, 424], [424, 422], [306, 292], [292, 307], [307, 306], [352, 366], [366, 345], [345, 352], [268, 271], [271, 302], [302, 268], [358, 423], [423, 371], [371, 358], [327, 294], [294, 460], [460, 327], [331, 279], [279, 294], [294, 331], [303, 271], [271, 304], [304, 303], [436, 432], [432, 427], [427, 436], [304, 272], [272, 408], [408, 304], [395, 394], [394, 431], [431, 395], [378, 395], [395, 400], [400, 378], [296, 334], [334, 299], [299, 296], [6, 351], [351, 168], [168, 6], [376, 352], [352, 411], [411, 376], [307, 325], [325, 320], [320, 307], [285, 295], [295, 336], [336, 285], [320, 319], [319, 404], [404, 320], [329, 330], [330, 349], [349, 329], [334, 293], [293, 333], [333, 334], [366, 323], [323, 447], [447, 366], [316, 15], [15, 315], [315, 316], [331, 358], [358, 279], [279, 331], [317, 14], [14, 316], [316, 317], [8, 285], [285, 9], [9, 8], [277, 329], [329, 350], [350, 277], [253, 374], [374, 252], [252, 253], [319, 318], [318, 403], [403, 319], [351, 6], [6, 419], [419, 351], [324, 318], [318, 325], [325, 324], [397, 367], [367, 365], [365, 397], [288, 435], [435, 397], [397, 288], [278, 344], [344, 439], [439, 278], [310, 272], [272, 311], [311, 310], [248, 195], [195, 281], [281, 248], [375, 273], [273, 291], [291, 375], [175, 396], [396, 199], [199, 175], [312, 311], [311, 268], [268, 312], [276, 283], [283, 445], [445, 276], [390, 373], [373, 339], [339, 390], [295, 282], [282, 296], [296, 295], [448, 449], [449, 346], [346, 448], [356, 264], [264, 454], [454, 356], [337, 336], [336, 299], [299, 337], [337, 338], [338, 151], [151, 337], [294, 278], [278, 455], [455, 294], [308, 292], [292, 415], [415, 308], [429, 358], [358, 355], [355, 429], [265, 340], [340, 372], [372, 265], [352, 346], [346, 280], [280, 352], [295, 442], [442, 282], [282, 295], [354, 19], [19, 370], [370, 354], [285, 441], [441, 295], [295, 285], [195, 248], [248, 197], [197, 195], [457, 440], [440, 274], [274, 457], [301, 300], [300, 368], [368, 301], [417, 351], [351, 465], [465, 417], [251, 301], [301, 389], [389, 251], [394, 395], [395, 379], [379, 394], [399, 412], [412, 419], [419, 399], [410, 436], [436, 322], [322, 410], [326, 2], [2, 393], [393, 326], [354, 370], [370, 461], [461, 354], [393, 164], [164, 267], [267, 393], [268, 302], [302, 12], [12, 268], [312, 268], [268, 13], [13, 312], [298, 293], [293, 301], [301, 298], [265, 446], [446, 340], [340, 265], [280, 330], [330, 425], [425, 280], [322, 426], [426, 391], [391, 322], [420, 429], [429, 437], [437, 420], [393, 391], [391, 326], [326, 393], [344, 440], [440, 438], [438, 344], [458, 459], [459, 461], [461, 458], [364, 434], [434, 394], [394, 364], [428, 396], [396, 262], [262, 428], [274, 354], [354, 457], [457, 274], [317, 316], [316, 402], [402, 317], [316, 315], [315, 403], [403, 316], [315, 314], [314, 404], [404, 315], [314, 313], [313, 405], [405, 314], [313, 421], [421, 406], [406, 313], [323, 366], [366, 361], [361, 323], [292, 306], [306, 407], [407, 292], [306, 291], [291, 408], [408, 306], [291, 287], [287, 409], [409, 291], [287, 432], [432, 410], [410, 287], [427, 434], [434, 411], [411, 427], [372, 264], [264, 383], [383, 372], [459, 309], [309, 457], [457, 459], [366, 352], [352, 401], [401, 366], [1, 274], [274, 4], [4, 1], [418, 421], [421, 262], [262, 418], [331, 294], [294, 358], [358, 331], [435, 433], [433, 367], [367, 435], [392, 289], [289, 439], [439, 392], [328, 462], [462, 326], [326, 328], [94, 2], [2, 370], [370, 94], [289, 305], [305, 455], [455, 289], [339, 254], [254, 448], [448, 339], [359, 255], [255, 446], [446, 359], [254, 253], [253, 449], [449, 254], [253, 252], [252, 450], [450, 253], [252, 256], [256, 451], [451, 252], [256, 341], [341, 452], [452, 256], [414, 413], [413, 463], [463, 414], [286, 441], [441, 414], [414, 286], [286, 258], [258, 441], [441, 286], [258, 257], [257, 442], [442, 258], [257, 259], [259, 443], [443, 257], [259, 260], [260, 444], [444, 259], [260, 467], [467, 445], [445, 260], [309, 459], [459, 250], [250, 309], [305, 289], [289, 290], [290, 305], [305, 290], [290, 460], [460, 305], [401, 376], [376, 435], [435, 401], [309, 250], [250, 392], [392, 309], [376, 411], [411, 433], [433, 376], [453, 341], [341, 464], [464, 453], [357, 453], [453, 465], [465, 357], [343, 357], [357, 412], [412, 343], [437, 343], [343, 399], [399, 437], [344, 360], [360, 440], [440, 344], [420, 437], [437, 456], [456, 420], [360, 420], [420, 363], [363, 360], [361, 401], [401, 288], [288, 361], [265, 372], [372, 353], [353, 265], [390, 339], [339, 249], [249, 390], [339, 448], [448, 255], [255, 339]);
|
|
2921
2921
|
function Pi(e) {
|
|
2922
2922
|
e.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] };
|
|
2923
2923
|
}
|
|
2924
|
-
var
|
|
2924
|
+
var x = 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
|
|
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);
|
|
2927
2927
|
}
|
|
2928
2928
|
get baseOptions() {
|
|
2929
|
-
return k(this.h,
|
|
2929
|
+
return k(this.h, N, 1);
|
|
2930
2930
|
}
|
|
2931
2931
|
set baseOptions(e) {
|
|
2932
2932
|
v(this.h, 0, 1, e);
|
|
@@ -2938,25 +2938,25 @@ var F = class extends fe {
|
|
|
2938
2938
|
return Pi(this), Se(this, e, t), this.j;
|
|
2939
2939
|
}
|
|
2940
2940
|
G(e, t, r) {
|
|
2941
|
-
return Pi(this),
|
|
2941
|
+
return Pi(this), Ne(this, e, r, t), this.j;
|
|
2942
2942
|
}
|
|
2943
2943
|
m() {
|
|
2944
2944
|
var e = new pe();
|
|
2945
|
-
|
|
2945
|
+
I(e, "image_in"), I(e, "norm_rect"), S(e, "face_landmarks");
|
|
2946
2946
|
const t = new de();
|
|
2947
|
-
|
|
2947
|
+
Ie(t, E1, this.h);
|
|
2948
2948
|
const r = new ne();
|
|
2949
|
-
he(r, 2, "mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),
|
|
2950
|
-
for (const i of n) n = lr(i), this.j.faceLandmarks.push(
|
|
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) => {
|
|
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
|
-
}), this.outputFaceBlendshapes && (S(e, "blendshapes"),
|
|
2955
|
-
if (this.outputFaceBlendshapes) for (const i of n) n =
|
|
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() ?? []));
|
|
2956
2956
|
d(this, s);
|
|
2957
2957
|
}), this.g.attachEmptyPacketListener("blendshapes", (n) => {
|
|
2958
2958
|
d(this, n);
|
|
2959
|
-
})), this.outputFacialTransformationMatrixes && (S(e, "face_geometry"),
|
|
2959
|
+
})), this.outputFacialTransformationMatrixes && (S(e, "face_geometry"), w(r, "FACE_GEOMETRY:face_geometry"), this.g.attachProtoVectorListener("face_geometry", (n, s) => {
|
|
2960
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() ?? [] });
|
|
2961
2961
|
d(this, s);
|
|
2962
2962
|
}), this.g.attachEmptyPacketListener("face_geometry", (n) => {
|
|
@@ -2964,36 +2964,36 @@ var F = class extends fe {
|
|
|
2964
2964
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
2965
2965
|
}
|
|
2966
2966
|
};
|
|
2967
|
-
|
|
2968
|
-
return A(
|
|
2969
|
-
},
|
|
2970
|
-
return A(
|
|
2971
|
-
},
|
|
2972
|
-
return A(
|
|
2973
|
-
},
|
|
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;
|
|
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
2975
|
function Oi(e) {
|
|
2976
2976
|
e.gestures = [], e.landmarks = [], e.worldLandmarks = [], e.handedness = [];
|
|
2977
2977
|
}
|
|
2978
|
-
function
|
|
2978
|
+
function Mi(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
|
|
2981
|
+
function xi(e, t = !0) {
|
|
2982
2982
|
const r = [];
|
|
2983
2983
|
for (const s of e) {
|
|
2984
|
-
var n =
|
|
2984
|
+
var n = qr(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:
|
|
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)) ?? "" ?? "" });
|
|
2987
2987
|
r.push(e);
|
|
2988
2988
|
}
|
|
2989
2989
|
return r;
|
|
2990
2990
|
}
|
|
2991
2991
|
var se = class extends fe {
|
|
2992
2992
|
constructor(e, t) {
|
|
2993
|
-
super(new ke(e, t), "image_in", "norm_rect", !1), this.gestures = [], this.landmarks = [], this.worldLandmarks = [], this.handedness = [], v(e = this.j = new la(), 0, 1, t = new
|
|
2993
|
+
super(new ke(e, t), "image_in", "norm_rect", !1), this.gestures = [], this.landmarks = [], this.worldLandmarks = [], this.handedness = [], v(e = this.j = new la(), 0, 1, t = new N()), this.u = new ds(), v(this.j, 0, 2, this.u), this.D = new fs(), v(this.u, 0, 3, this.D), this.A = new ha(), v(this.u, 0, 2, this.A), this.h = new w1(), v(this.j, 0, 3, this.h), _(this.A, 2, 0.5), _(this.u, 4, 0.5), _(this.D, 2, 0.5);
|
|
2994
2994
|
}
|
|
2995
2995
|
get baseOptions() {
|
|
2996
|
-
return k(this.j,
|
|
2996
|
+
return k(this.j, N, 1);
|
|
2997
2997
|
}
|
|
2998
2998
|
set baseOptions(e) {
|
|
2999
2999
|
v(this.j, 0, 1, e);
|
|
@@ -3007,22 +3007,22 @@ 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),
|
|
3010
|
+
return Oi(this), Se(this, e, t), Mi(this);
|
|
3011
3011
|
}
|
|
3012
3012
|
Ia(e, t, r) {
|
|
3013
|
-
return Oi(this),
|
|
3013
|
+
return Oi(this), Ne(this, e, r, t), Mi(this);
|
|
3014
3014
|
}
|
|
3015
3015
|
m() {
|
|
3016
3016
|
var e = new pe();
|
|
3017
|
-
|
|
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");
|
|
3018
3018
|
const t = new de();
|
|
3019
|
-
|
|
3019
|
+
Ie(t, A1, this.j);
|
|
3020
3020
|
const r = new ne();
|
|
3021
|
-
he(r, 2, "mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),
|
|
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) => {
|
|
3022
3022
|
for (const i of n) {
|
|
3023
3023
|
n = lr(i);
|
|
3024
3024
|
const o = [];
|
|
3025
|
-
for (const a of je(n, ra, 1)) o.push({ x:
|
|
3025
|
+
for (const a of je(n, ra, 1)) o.push({ x: B(a, 1) ?? 0, y: B(a, 2) ?? 0, z: B(a, 3) ?? 0, visibility: B(a, 4) ?? 0 });
|
|
3026
3026
|
this.landmarks.push(o);
|
|
3027
3027
|
}
|
|
3028
3028
|
d(this, s);
|
|
@@ -3032,24 +3032,24 @@ var se = class extends fe {
|
|
|
3032
3032
|
for (const i of n) {
|
|
3033
3033
|
n = _t(i);
|
|
3034
3034
|
const o = [];
|
|
3035
|
-
for (const a of je(n, ta, 1)) o.push({ x:
|
|
3035
|
+
for (const a of je(n, ta, 1)) o.push({ x: B(a, 1) ?? 0, y: B(a, 2) ?? 0, z: B(a, 3) ?? 0, visibility: B(a, 4) ?? 0 });
|
|
3036
3036
|
this.worldLandmarks.push(o);
|
|
3037
3037
|
}
|
|
3038
3038
|
d(this, s);
|
|
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(...
|
|
3042
|
+
this.gestures.push(...xi(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(...
|
|
3046
|
+
this.handedness.push(...xi(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);
|
|
3050
3050
|
}
|
|
3051
3051
|
};
|
|
3052
|
-
function
|
|
3052
|
+
function Fi(e) {
|
|
3053
3053
|
return { landmarks: e.landmarks, worldLandmarks: e.worldLandmarks, handednesses: e.handedness, handedness: e.handedness };
|
|
3054
3054
|
}
|
|
3055
3055
|
se.prototype.recognizeForVideo = se.prototype.Ia, se.prototype.recognize = se.prototype.Ha, se.prototype.setOptions = se.prototype.o, se.createFromModelPath = function(e, t) {
|
|
@@ -3061,10 +3061,10 @@ se.prototype.recognizeForVideo = se.prototype.Ia, se.prototype.recognize = se.pr
|
|
|
3061
3061
|
}, se.HAND_CONNECTIONS = Ts;
|
|
3062
3062
|
var re = class extends fe {
|
|
3063
3063
|
constructor(e, t) {
|
|
3064
|
-
super(new ke(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.handedness = [], v(e = this.h = new ds(), 0, 1, t = new
|
|
3064
|
+
super(new ke(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.handedness = [], v(e = this.h = new ds(), 0, 1, t = new N()), this.u = new fs(), v(this.h, 0, 3, this.u), this.j = new ha(), v(this.h, 0, 2, this.j), Ue(this.j, 3, 1), _(this.j, 2, 0.5), _(this.u, 2, 0.5), _(this.h, 4, 0.5);
|
|
3065
3065
|
}
|
|
3066
3066
|
get baseOptions() {
|
|
3067
|
-
return k(this.h,
|
|
3067
|
+
return k(this.h, N, 1);
|
|
3068
3068
|
}
|
|
3069
3069
|
set baseOptions(e) {
|
|
3070
3070
|
v(this.h, 0, 1, e);
|
|
@@ -3073,19 +3073,19 @@ var re = class extends fe {
|
|
|
3073
3073
|
return "numHands" in e && Ue(this.j, 3, e.numHands ?? 1), "minHandDetectionConfidence" in e && _(this.j, 2, e.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && _(this.h, 4, e.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in e && _(this.u, 2, e.minHandPresenceConfidence ?? 0.5), this.l(e);
|
|
3074
3074
|
}
|
|
3075
3075
|
F(e, t) {
|
|
3076
|
-
return this.landmarks = [], this.worldLandmarks = [], this.handedness = [], Se(this, e, t),
|
|
3076
|
+
return this.landmarks = [], this.worldLandmarks = [], this.handedness = [], Se(this, e, t), Fi(this);
|
|
3077
3077
|
}
|
|
3078
3078
|
G(e, t, r) {
|
|
3079
|
-
return this.landmarks = [], this.worldLandmarks = [], this.handedness = [],
|
|
3079
|
+
return this.landmarks = [], this.worldLandmarks = [], this.handedness = [], Ne(this, e, r, t), Fi(this);
|
|
3080
3080
|
}
|
|
3081
3081
|
m() {
|
|
3082
3082
|
var e = new pe();
|
|
3083
|
-
|
|
3083
|
+
I(e, "image_in"), I(e, "norm_rect"), S(e, "hand_landmarks"), S(e, "world_hand_landmarks"), S(e, "handedness");
|
|
3084
3084
|
const t = new de();
|
|
3085
|
-
|
|
3085
|
+
Ie(t, k1, this.h);
|
|
3086
3086
|
const r = new ne();
|
|
3087
|
-
he(r, 2, "mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),
|
|
3088
|
-
for (const i of n) n = lr(i), this.landmarks.push(
|
|
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) => {
|
|
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);
|
|
@@ -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 =
|
|
3101
|
+
n = qr(c);
|
|
3102
3102
|
const l = [];
|
|
3103
|
-
for (const u of n.g()) l.push({ score:
|
|
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)) ?? "" ?? "" });
|
|
3104
3104
|
a.push(l);
|
|
3105
3105
|
}
|
|
3106
3106
|
o.call(i, ...a), d(this, s);
|
|
@@ -3117,10 +3117,10 @@ 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
|
|
3120
|
+
function Ii(e) {
|
|
3121
3121
|
e.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] };
|
|
3122
3122
|
}
|
|
3123
|
-
function
|
|
3123
|
+
function Ri(e) {
|
|
3124
3124
|
try {
|
|
3125
3125
|
if (!e.D) return e.h;
|
|
3126
3126
|
e.D(e.h);
|
|
@@ -3129,14 +3129,14 @@ function Ii(e) {
|
|
|
3129
3129
|
}
|
|
3130
3130
|
}
|
|
3131
3131
|
function _r(e, t) {
|
|
3132
|
-
e = lr(e), t.push(
|
|
3132
|
+
e = lr(e), t.push(zr(e));
|
|
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
|
|
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);
|
|
3137
3137
|
}
|
|
3138
3138
|
get baseOptions() {
|
|
3139
|
-
return k(this.j,
|
|
3139
|
+
return k(this.j, N, 1);
|
|
3140
3140
|
}
|
|
3141
3141
|
set baseOptions(e) {
|
|
3142
3142
|
v(this.j, 0, 1, e);
|
|
@@ -3146,25 +3146,25 @@ 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,
|
|
3149
|
+
return this.D = typeof t == "function" ? t : r, Ii(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,
|
|
3153
|
+
return this.D = typeof r == "function" ? r : n, Ii(this), Ne(this, e, s, t), Ri(this);
|
|
3154
3154
|
}
|
|
3155
3155
|
m() {
|
|
3156
3156
|
var e = new pe();
|
|
3157
|
-
|
|
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");
|
|
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,
|
|
3160
|
+
if (i != null) if (Array.isArray(i)) T(s, 2, Ir(i, 0, nr));
|
|
3161
3161
|
else {
|
|
3162
|
-
if (!(typeof i == "string" || i instanceof
|
|
3163
|
-
We(s, 2,
|
|
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");
|
|
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),
|
|
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) => {
|
|
3168
3168
|
_r(s, this.h.poseLandmarks), d(this, i);
|
|
3169
3169
|
}), this.g.attachEmptyPacketListener("pose_landmarks", (s) => {
|
|
3170
3170
|
d(this, s);
|
|
@@ -3173,7 +3173,7 @@ var P = class extends fe {
|
|
|
3173
3173
|
s = _t(s), o.push(Zt(s)), d(this, i);
|
|
3174
3174
|
}), this.g.attachEmptyPacketListener("pose_world_landmarks", (s) => {
|
|
3175
3175
|
d(this, s);
|
|
3176
|
-
}), this.outputPoseSegmentationMasks && (
|
|
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
3177
|
this.h.poseSegmentationMasks = [Ot(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);
|
|
@@ -3181,9 +3181,9 @@ var P = class extends fe {
|
|
|
3181
3181
|
_r(s, this.h.faceLandmarks), d(this, i);
|
|
3182
3182
|
}), this.g.attachEmptyPacketListener("face_landmarks", (s) => {
|
|
3183
3183
|
d(this, s);
|
|
3184
|
-
}), this.outputFaceBlendshapes && (S(e, "extra_blendshapes"),
|
|
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 =
|
|
3186
|
+
this.outputFaceBlendshapes && (s = qr(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) => {
|
|
@@ -3213,13 +3213,13 @@ P.prototype.detectForVideo = P.prototype.G, P.prototype.detect = P.prototype.F,
|
|
|
3213
3213
|
return A(P, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3214
3214
|
}, P.createFromOptions = function(e, t) {
|
|
3215
3215
|
return A(P, e, t);
|
|
3216
|
-
}, P.HAND_CONNECTIONS = Ts, P.POSE_CONNECTIONS = Va, P.FACE_LANDMARKS_LIPS = bs, P.FACE_LANDMARKS_LEFT_EYE =
|
|
3216
|
+
}, P.HAND_CONNECTIONS = Ts, P.POSE_CONNECTIONS = Va, P.FACE_LANDMARKS_LIPS = bs, P.FACE_LANDMARKS_LEFT_EYE = Es, P.FACE_LANDMARKS_LEFT_EYEBROW = ws, P.FACE_LANDMARKS_LEFT_IRIS = Da, P.FACE_LANDMARKS_RIGHT_EYE = As, P.FACE_LANDMARKS_RIGHT_EYEBROW = ks, P.FACE_LANDMARKS_RIGHT_IRIS = Ba, P.FACE_LANDMARKS_FACE_OVAL = Ss, P.FACE_LANDMARKS_CONTOURS = ja, P.FACE_LANDMARKS_TESSELATION = Ua;
|
|
3217
3217
|
var me = class extends fe {
|
|
3218
3218
|
constructor(e, t) {
|
|
3219
|
-
super(new ke(e, t), "input_image", "norm_rect", !0), this.j = { classifications: [] }, v(e = this.h = new _a(), 0, 1, t = new
|
|
3219
|
+
super(new ke(e, t), "input_image", "norm_rect", !0), this.j = { classifications: [] }, v(e = this.h = new _a(), 0, 1, t = new N());
|
|
3220
3220
|
}
|
|
3221
3221
|
get baseOptions() {
|
|
3222
|
-
return k(this.h,
|
|
3222
|
+
return k(this.h, N, 1);
|
|
3223
3223
|
}
|
|
3224
3224
|
set baseOptions(e) {
|
|
3225
3225
|
v(this.h, 0, 1, e);
|
|
@@ -3231,16 +3231,16 @@ var me = class extends fe {
|
|
|
3231
3231
|
return this.j = { classifications: [] }, Se(this, e, t), this.j;
|
|
3232
3232
|
}
|
|
3233
3233
|
ta(e, t, r) {
|
|
3234
|
-
return this.j = { classifications: [] },
|
|
3234
|
+
return this.j = { classifications: [] }, Ne(this, e, r, t), this.j;
|
|
3235
3235
|
}
|
|
3236
3236
|
m() {
|
|
3237
3237
|
var e = new pe();
|
|
3238
|
-
|
|
3238
|
+
I(e, "input_image"), I(e, "norm_rect"), S(e, "classifications");
|
|
3239
3239
|
const t = new de();
|
|
3240
|
-
|
|
3240
|
+
Ie(t, T1, this.h);
|
|
3241
3241
|
const r = new ne();
|
|
3242
|
-
he(r, 2, "mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),
|
|
3243
|
-
this.j =
|
|
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) => {
|
|
3243
|
+
this.j = F1(p1(n)), d(this, s);
|
|
3244
3244
|
}), this.g.attachEmptyPacketListener("classifications", (n) => {
|
|
3245
3245
|
d(this, n);
|
|
3246
3246
|
}), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
@@ -3255,10 +3255,10 @@ me.prototype.classifyForVideo = me.prototype.ta, me.prototype.classify = me.prot
|
|
|
3255
3255
|
};
|
|
3256
3256
|
var ie = class extends fe {
|
|
3257
3257
|
constructor(e, t) {
|
|
3258
|
-
super(new ke(e, t), "image_in", "norm_rect", !0), this.h = new ya(), this.embeddings = { embeddings: [] }, v(e = this.h, 0, 1, t = new
|
|
3258
|
+
super(new ke(e, t), "image_in", "norm_rect", !0), this.h = new ya(), this.embeddings = { embeddings: [] }, v(e = this.h, 0, 1, t = new N());
|
|
3259
3259
|
}
|
|
3260
3260
|
get baseOptions() {
|
|
3261
|
-
return k(this.h,
|
|
3261
|
+
return k(this.h, N, 1);
|
|
3262
3262
|
}
|
|
3263
3263
|
set baseOptions(e) {
|
|
3264
3264
|
v(this.h, 0, 1, e);
|
|
@@ -3271,15 +3271,15 @@ var ie = class extends fe {
|
|
|
3271
3271
|
return Se(this, e, t), this.embeddings;
|
|
3272
3272
|
}
|
|
3273
3273
|
Aa(e, t, r) {
|
|
3274
|
-
return
|
|
3274
|
+
return Ne(this, e, r, t), this.embeddings;
|
|
3275
3275
|
}
|
|
3276
3276
|
m() {
|
|
3277
3277
|
var e = new pe();
|
|
3278
|
-
|
|
3278
|
+
I(e, "image_in"), I(e, "norm_rect"), S(e, "embeddings_out");
|
|
3279
3279
|
const t = new de();
|
|
3280
|
-
|
|
3280
|
+
Ie(t, L1, this.h);
|
|
3281
3281
|
const r = new ne();
|
|
3282
|
-
he(r, 2, "mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),
|
|
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) => {
|
|
3283
3283
|
n = _1(n), this.embeddings = function(i) {
|
|
3284
3284
|
return { embeddings: je(i, m1, 1).map((o) => {
|
|
3285
3285
|
var l, u;
|
|
@@ -3328,10 +3328,10 @@ function j1(e) {
|
|
|
3328
3328
|
e.u[Number(i)] = Z(O(s, 1)) ?? "";
|
|
3329
3329
|
});
|
|
3330
3330
|
}
|
|
3331
|
-
function
|
|
3331
|
+
function Ni(e) {
|
|
3332
3332
|
e.categoryMask = void 0, e.confidenceMasks = void 0, e.qualityScores = void 0;
|
|
3333
3333
|
}
|
|
3334
|
-
function
|
|
3334
|
+
function Ci(e) {
|
|
3335
3335
|
try {
|
|
3336
3336
|
const t = new Ln(e.confidenceMasks, e.categoryMask, e.qualityScores);
|
|
3337
3337
|
if (!e.j) return t;
|
|
@@ -3343,10 +3343,10 @@ function Ni(e) {
|
|
|
3343
3343
|
Ln.prototype.close = Ln.prototype.close;
|
|
3344
3344
|
var te = class extends fe {
|
|
3345
3345
|
constructor(e, t) {
|
|
3346
|
-
super(new ke(e, t), "image_in", "norm_rect", !1), this.u = [], this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new ms(), this.A = new va(), v(this.h, 0, 3, this.A), v(e = this.h, 0, 1, t = new
|
|
3346
|
+
super(new ke(e, t), "image_in", "norm_rect", !1), this.u = [], this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new ms(), this.A = new va(), v(this.h, 0, 3, this.A), v(e = this.h, 0, 1, t = new N());
|
|
3347
3347
|
}
|
|
3348
3348
|
get baseOptions() {
|
|
3349
|
-
return k(this.h,
|
|
3349
|
+
return k(this.h, N, 1);
|
|
3350
3350
|
}
|
|
3351
3351
|
set baseOptions(e) {
|
|
3352
3352
|
v(this.h, 0, 1, e);
|
|
@@ -3359,30 +3359,30 @@ var te = class extends fe {
|
|
|
3359
3359
|
}
|
|
3360
3360
|
segment(e, t, r) {
|
|
3361
3361
|
const n = typeof t != "function" ? t : {};
|
|
3362
|
-
return this.j = typeof t == "function" ? t : r,
|
|
3362
|
+
return this.j = typeof t == "function" ? t : r, Ni(this), Se(this, e, n), Ci(this);
|
|
3363
3363
|
}
|
|
3364
3364
|
La(e, t, r, n) {
|
|
3365
3365
|
const s = typeof r != "function" ? r : {};
|
|
3366
|
-
return this.j = typeof r == "function" ? r : n,
|
|
3366
|
+
return this.j = typeof r == "function" ? r : n, Ni(this), Ne(this, e, s, t), Ci(this);
|
|
3367
3367
|
}
|
|
3368
3368
|
Da() {
|
|
3369
3369
|
return this.u;
|
|
3370
3370
|
}
|
|
3371
3371
|
m() {
|
|
3372
3372
|
var e = new pe();
|
|
3373
|
-
|
|
3373
|
+
I(e, "image_in"), I(e, "norm_rect");
|
|
3374
3374
|
const t = new de();
|
|
3375
|
-
|
|
3375
|
+
Ie(t, Ea, this.h);
|
|
3376
3376
|
const r = new ne();
|
|
3377
|
-
he(r, 2, "mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),
|
|
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
3378
|
this.confidenceMasks = n.map((i) => Ot(this, i, !0, !this.j)), d(this, s);
|
|
3379
3379
|
}), this.g.attachEmptyPacketListener("confidence_masks", (n) => {
|
|
3380
3380
|
this.confidenceMasks = [], d(this, n);
|
|
3381
|
-
})), this.outputCategoryMask && (S(e, "category_mask"),
|
|
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
3382
|
this.categoryMask = Ot(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
|
-
})), S(e, "quality_scores"),
|
|
3385
|
+
})), S(e, "quality_scores"), w(r, "QUALITY_SCORES:quality_scores"), this.g.attachFloatVectorListener("quality_scores", (n, s) => {
|
|
3386
3386
|
this.qualityScores = n, d(this, s);
|
|
3387
3387
|
}), this.g.attachEmptyPacketListener("quality_scores", (n) => {
|
|
3388
3388
|
this.categoryMask = void 0, d(this, n);
|
|
@@ -3410,10 +3410,10 @@ var Pn = class {
|
|
|
3410
3410
|
Pn.prototype.close = Pn.prototype.close;
|
|
3411
3411
|
var Pe = class extends fe {
|
|
3412
3412
|
constructor(e, t) {
|
|
3413
|
-
super(new ke(e, t), "image_in", "norm_rect_in", !1), this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new ms(), this.u = new va(), v(this.h, 0, 3, this.u), v(e = this.h, 0, 1, t = new
|
|
3413
|
+
super(new ke(e, t), "image_in", "norm_rect_in", !1), this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new ms(), this.u = new va(), v(this.h, 0, 3, this.u), v(e = this.h, 0, 1, t = new N());
|
|
3414
3414
|
}
|
|
3415
3415
|
get baseOptions() {
|
|
3416
|
-
return k(this.h,
|
|
3416
|
+
return k(this.h, N, 1);
|
|
3417
3417
|
}
|
|
3418
3418
|
set baseOptions(e) {
|
|
3419
3419
|
v(this.h, 0, 1, e);
|
|
@@ -3423,16 +3423,16 @@ var Pe = class extends fe {
|
|
|
3423
3423
|
}
|
|
3424
3424
|
segment(e, t, r, n) {
|
|
3425
3425
|
const s = typeof r != "function" ? r : {};
|
|
3426
|
-
if (this.j = typeof r == "function" ? r : n, this.qualityScores = this.categoryMask = this.confidenceMasks = void 0, r = this.C + 1, n = new
|
|
3426
|
+
if (this.j = typeof r == "function" ? r : n, this.qualityScores = this.categoryMask = this.confidenceMasks = void 0, r = this.C + 1, n = new wa(), t.keypoint && t.scribble) throw Error("Cannot provide both keypoint and scribble.");
|
|
3427
3427
|
if (t.keypoint) {
|
|
3428
3428
|
var i = new un();
|
|
3429
|
-
We(i, 3, rr(!0), !1), We(i, 1, $t(t.keypoint.x), 0), We(i, 2, $t(t.keypoint.y), 0), Xt(n, 1,
|
|
3429
|
+
We(i, 3, rr(!0), !1), We(i, 1, $t(t.keypoint.x), 0), We(i, 2, $t(t.keypoint.y), 0), Xt(n, 1, wn, i);
|
|
3430
3430
|
} else {
|
|
3431
3431
|
if (!t.scribble) throw Error("Must provide either a keypoint or a scribble.");
|
|
3432
3432
|
{
|
|
3433
3433
|
const a = new O1();
|
|
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
|
-
Xt(n, 2,
|
|
3435
|
+
Xt(n, 2, wn, a);
|
|
3436
3436
|
}
|
|
3437
3437
|
}
|
|
3438
3438
|
this.g.addProtoToStream(n.g(), "mediapipe.tasks.vision.interactive_segmenter.proto.RegionOfInterest", "roi_in", r), Se(this, e, s);
|
|
@@ -3453,19 +3453,19 @@ var Pe = class extends fe {
|
|
|
3453
3453
|
}
|
|
3454
3454
|
m() {
|
|
3455
3455
|
var e = new pe();
|
|
3456
|
-
|
|
3456
|
+
I(e, "image_in"), I(e, "roi_in"), I(e, "norm_rect_in");
|
|
3457
3457
|
const t = new de();
|
|
3458
|
-
|
|
3458
|
+
Ie(t, Ea, this.h);
|
|
3459
3459
|
const r = new ne();
|
|
3460
|
-
he(r, 2, "mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"),
|
|
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
3461
|
this.confidenceMasks = n.map((i) => Ot(this, i, !0, !this.j)), d(this, s);
|
|
3462
3462
|
}), this.g.attachEmptyPacketListener("confidence_masks", (n) => {
|
|
3463
3463
|
this.confidenceMasks = [], d(this, n);
|
|
3464
|
-
})), this.outputCategoryMask && (S(e, "category_mask"),
|
|
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
3465
|
this.categoryMask = Ot(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
|
-
})), S(e, "quality_scores"),
|
|
3468
|
+
})), S(e, "quality_scores"), w(r, "QUALITY_SCORES:quality_scores"), this.g.attachFloatVectorListener("quality_scores", (n, s) => {
|
|
3469
3469
|
this.qualityScores = n, d(this, s);
|
|
3470
3470
|
}), this.g.attachEmptyPacketListener("quality_scores", (n) => {
|
|
3471
3471
|
this.categoryMask = void 0, d(this, n);
|
|
@@ -3481,30 +3481,30 @@ Pe.prototype.segment = Pe.prototype.segment, Pe.prototype.setOptions = Pe.protot
|
|
|
3481
3481
|
};
|
|
3482
3482
|
var _e = class extends fe {
|
|
3483
3483
|
constructor(e, t) {
|
|
3484
|
-
super(new ke(e, t), "input_frame_gpu", "norm_rect", !1), this.j = { detections: [] }, v(e = this.h = new Aa(), 0, 1, t = new
|
|
3484
|
+
super(new ke(e, t), "input_frame_gpu", "norm_rect", !1), this.j = { detections: [] }, v(e = this.h = new Aa(), 0, 1, t = new N());
|
|
3485
3485
|
}
|
|
3486
3486
|
get baseOptions() {
|
|
3487
|
-
return k(this.h,
|
|
3487
|
+
return k(this.h, N, 1);
|
|
3488
3488
|
}
|
|
3489
3489
|
set baseOptions(e) {
|
|
3490
3490
|
v(this.h, 0, 1, e);
|
|
3491
3491
|
}
|
|
3492
3492
|
o(e) {
|
|
3493
|
-
return e.displayNamesLocale !== void 0 ? T(this.h, 2, cr(e.displayNamesLocale)) : "displayNamesLocale" in e && T(this.h, 2), e.maxResults !== void 0 ? Ue(this.h, 3, e.maxResults) : "maxResults" in e && T(this.h, 3), e.scoreThreshold !== void 0 ? _(this.h, 4, e.scoreThreshold) : "scoreThreshold" in e && T(this.h, 4), e.categoryAllowlist !== void 0 ?
|
|
3493
|
+
return e.displayNamesLocale !== void 0 ? T(this.h, 2, cr(e.displayNamesLocale)) : "displayNamesLocale" in e && T(this.h, 2), e.maxResults !== void 0 ? Ue(this.h, 3, e.maxResults) : "maxResults" in e && T(this.h, 3), e.scoreThreshold !== void 0 ? _(this.h, 4, e.scoreThreshold) : "scoreThreshold" in e && T(this.h, 4), e.categoryAllowlist !== void 0 ? wr(this.h, 5, e.categoryAllowlist) : "categoryAllowlist" in e && T(this.h, 5), e.categoryDenylist !== void 0 ? wr(this.h, 6, e.categoryDenylist) : "categoryDenylist" in e && T(this.h, 6), this.l(e);
|
|
3494
3494
|
}
|
|
3495
3495
|
F(e, t) {
|
|
3496
3496
|
return this.j = { detections: [] }, Se(this, e, t), this.j;
|
|
3497
3497
|
}
|
|
3498
3498
|
G(e, t, r) {
|
|
3499
|
-
return this.j = { detections: [] },
|
|
3499
|
+
return this.j = { detections: [] }, Ne(this, e, r, t), this.j;
|
|
3500
3500
|
}
|
|
3501
3501
|
m() {
|
|
3502
3502
|
var e = new pe();
|
|
3503
|
-
|
|
3503
|
+
I(e, "input_frame_gpu"), I(e, "norm_rect"), S(e, "detections");
|
|
3504
3504
|
const t = new de();
|
|
3505
|
-
|
|
3505
|
+
Ie(t, M1, this.h);
|
|
3506
3506
|
const r = new ne();
|
|
3507
|
-
he(r, 2, "mediapipe.tasks.vision.ObjectDetectorGraph"),
|
|
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) => {
|
|
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) => {
|
|
@@ -3530,10 +3530,10 @@ var On = class {
|
|
|
3530
3530
|
});
|
|
3531
3531
|
}
|
|
3532
3532
|
};
|
|
3533
|
-
function
|
|
3533
|
+
function Di(e) {
|
|
3534
3534
|
e.landmarks = [], e.worldLandmarks = [], e.segmentationMasks = void 0;
|
|
3535
3535
|
}
|
|
3536
|
-
function
|
|
3536
|
+
function Bi(e) {
|
|
3537
3537
|
try {
|
|
3538
3538
|
const t = new On(e.landmarks, e.worldLandmarks, e.segmentationMasks);
|
|
3539
3539
|
if (!e.u) return t;
|
|
@@ -3545,10 +3545,10 @@ function Di(e) {
|
|
|
3545
3545
|
On.prototype.close = On.prototype.close;
|
|
3546
3546
|
var oe = class extends fe {
|
|
3547
3547
|
constructor(e, t) {
|
|
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
|
|
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);
|
|
3549
3549
|
}
|
|
3550
3550
|
get baseOptions() {
|
|
3551
|
-
return k(this.h,
|
|
3551
|
+
return k(this.h, N, 1);
|
|
3552
3552
|
}
|
|
3553
3553
|
set baseOptions(e) {
|
|
3554
3554
|
v(this.h, 0, 1, e);
|
|
@@ -3558,21 +3558,21 @@ var oe = class extends fe {
|
|
|
3558
3558
|
}
|
|
3559
3559
|
F(e, t, r) {
|
|
3560
3560
|
const n = typeof t != "function" ? t : {};
|
|
3561
|
-
return this.u = typeof t == "function" ? t : r,
|
|
3561
|
+
return this.u = typeof t == "function" ? t : r, Di(this), Se(this, e, n), Bi(this);
|
|
3562
3562
|
}
|
|
3563
3563
|
G(e, t, r, n) {
|
|
3564
3564
|
const s = typeof r != "function" ? r : {};
|
|
3565
|
-
return this.u = typeof r == "function" ? r : n,
|
|
3565
|
+
return this.u = typeof r == "function" ? r : n, Di(this), Ne(this, e, s, t), Bi(this);
|
|
3566
3566
|
}
|
|
3567
3567
|
m() {
|
|
3568
3568
|
var e = new pe();
|
|
3569
|
-
|
|
3569
|
+
I(e, "image_in"), I(e, "norm_rect"), S(e, "normalized_landmarks"), S(e, "world_landmarks"), S(e, "segmentation_masks");
|
|
3570
3570
|
const t = new de();
|
|
3571
|
-
|
|
3571
|
+
Ie(t, x1, this.h);
|
|
3572
3572
|
const r = new ne();
|
|
3573
|
-
he(r, 2, "mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),
|
|
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) => {
|
|
3574
3574
|
this.landmarks = [];
|
|
3575
|
-
for (const i of n) n = lr(i), this.landmarks.push(
|
|
3575
|
+
for (const i of n) n = lr(i), this.landmarks.push(zr(n));
|
|
3576
3576
|
d(this, s);
|
|
3577
3577
|
}), this.g.attachEmptyPacketListener("normalized_landmarks", (n) => {
|
|
3578
3578
|
this.landmarks = [], d(this, n);
|
|
@@ -3582,7 +3582,7 @@ var oe = class extends fe {
|
|
|
3582
3582
|
d(this, s);
|
|
3583
3583
|
}), this.g.attachEmptyPacketListener("world_landmarks", (n) => {
|
|
3584
3584
|
this.worldLandmarks = [], d(this, n);
|
|
3585
|
-
}), this.outputSegmentationMasks && (
|
|
3585
|
+
}), this.outputSegmentationMasks && (w(r, "SEGMENTATION_MASK:segmentation_masks"), Lt(this, "segmentation_masks"), this.g.aa("segmentation_masks", (n, s) => {
|
|
3586
3586
|
this.segmentationMasks = n.map((i) => Ot(this, i, !0, !this.u)), d(this, s);
|
|
3587
3587
|
}), this.g.attachEmptyPacketListener("segmentation_masks", (n) => {
|
|
3588
3588
|
this.segmentationMasks = [], d(this, n);
|
|
@@ -3598,38 +3598,54 @@ 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.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.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);
|
|
3605
|
+
if (r && Date.now() - parseInt(r) < 3e3) {
|
|
3606
|
+
this.failInstantly("Another session is active.");
|
|
3607
|
+
return;
|
|
3608
|
+
}
|
|
3609
|
+
if (this.heartbeatId = setInterval(() => {
|
|
3610
|
+
localStorage.setItem(this.LIVENESS_LOCK_KEY, Date.now().toString());
|
|
3611
|
+
}, 1e3), this.state.status !== "ready" || !this.webcam) {
|
|
3605
3612
|
console.warn("[LivenessEngine] Engine not ready or video missing.");
|
|
3606
3613
|
return;
|
|
3607
3614
|
}
|
|
3608
3615
|
console.log("[LivenessEngine] Session Starting..."), this.state.status = "capturing", this.updateState({ status: "capturing" }), this.startTimer(), this.detectLoop();
|
|
3609
3616
|
}, this.stop = () => {
|
|
3610
|
-
this.timerId && clearInterval(this.timerId), this.requestId && cancelAnimationFrame(this.requestId), this.timerId = null, this.requestId = null;
|
|
3617
|
+
this.timerId && clearInterval(this.timerId), this.heartbeatId && clearInterval(this.heartbeatId), this.requestId && cancelAnimationFrame(this.requestId), localStorage.removeItem(this.LIVENESS_LOCK_KEY), this.timerId = null, this.heartbeatId = null, this.requestId = null;
|
|
3611
3618
|
}, this.reset = () => {
|
|
3612
|
-
this.stop(), this.currentStepRef = 0, this.isStepTransitioningRef = !1, this.generateSequence(), this.updateState({
|
|
3619
|
+
this.stop(), this.currentStepRef = 0, this.isStepTransitioningRef = !1, this.anchorRatios = null, this.lastNosePos = null, this.consecutiveMissingFrames = 0, this.generateSequence(), this.updateState({
|
|
3613
3620
|
status: "ready",
|
|
3614
3621
|
currentStep: 0,
|
|
3615
3622
|
timeLeft: this.config.duration,
|
|
3616
3623
|
isStepTransitioning: !1,
|
|
3617
|
-
errorMsg: ""
|
|
3624
|
+
errorMsg: "",
|
|
3625
|
+
snapshots: []
|
|
3618
3626
|
});
|
|
3619
3627
|
}, this.detectLoop = () => {
|
|
3620
|
-
var n;
|
|
3628
|
+
var n, s;
|
|
3621
3629
|
if (this.state.status !== "capturing" || !this.webcam || !this.models.face) return;
|
|
3622
3630
|
const r = performance.now();
|
|
3623
3631
|
try {
|
|
3624
|
-
const
|
|
3625
|
-
if (
|
|
3626
|
-
this.
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
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];
|
|
3633
|
+
if (i.faceLandmarks && i.faceLandmarks.length > 1)
|
|
3634
|
+
return this.failInstantly("Multiple faces detected.");
|
|
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)) {
|
|
3640
|
+
this.handleStepSuccess(o);
|
|
3641
|
+
return;
|
|
3642
|
+
}
|
|
3643
|
+
} else if (this.consecutiveMissingFrames++, this.consecutiveMissingFrames > this.MAX_GAP)
|
|
3644
|
+
return this.failInstantly("Face lost. Session reset.");
|
|
3645
|
+
this.requestId = requestAnimationFrame(this.detectLoop);
|
|
3646
|
+
} catch (i) {
|
|
3647
|
+
console.error("[LivenessEngine] Loop detection error:", i), this.requestId = requestAnimationFrame(this.detectLoop);
|
|
3631
3648
|
}
|
|
3632
|
-
this.requestId = requestAnimationFrame(this.detectLoop);
|
|
3633
3649
|
}, this.config = {
|
|
3634
3650
|
apiUrl: t.apiUrl,
|
|
3635
3651
|
duration: t.duration ?? 60,
|
|
@@ -3649,7 +3665,8 @@ class U1 {
|
|
|
3649
3665
|
currentStep: 0,
|
|
3650
3666
|
timeLeft: this.config.duration,
|
|
3651
3667
|
isStepTransitioning: !1,
|
|
3652
|
-
errorMsg: ""
|
|
3668
|
+
errorMsg: "",
|
|
3669
|
+
snapshots: []
|
|
3653
3670
|
}, this.offscreenCanvas.width = 224, this.offscreenCanvas.height = 224;
|
|
3654
3671
|
}
|
|
3655
3672
|
/**
|
|
@@ -3661,7 +3678,7 @@ class U1 {
|
|
|
3661
3678
|
const t = await Ze.forVisionTasks(
|
|
3662
3679
|
"https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.3/wasm"
|
|
3663
3680
|
);
|
|
3664
|
-
this.models.face = await
|
|
3681
|
+
this.models.face = await x.createFromOptions(t, {
|
|
3665
3682
|
baseOptions: {
|
|
3666
3683
|
modelAssetPath: "https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/1/face_landmarker.task",
|
|
3667
3684
|
delegate: "GPU"
|
|
@@ -3680,6 +3697,22 @@ class U1 {
|
|
|
3680
3697
|
console.error("[LivenessEngine] Init Error:", t), this.updateState({ status: "error", errorMsg: "Failed to load security assets." });
|
|
3681
3698
|
}
|
|
3682
3699
|
}
|
|
3700
|
+
// --- NEW SECURITY METHODS ---
|
|
3701
|
+
verifyIdentity(t) {
|
|
3702
|
+
const r = Math.sqrt(
|
|
3703
|
+
Math.pow(t[33].x - t[263].x, 2) + Math.pow(t[33].y - t[263].y, 2)
|
|
3704
|
+
), n = Math.abs(t[1].y - t[13].y), s = r / (n || 1);
|
|
3705
|
+
return this.anchorRatios === null ? (this.anchorRatios = s, !0) : Math.abs(this.anchorRatios - s) / this.anchorRatios < 0.1;
|
|
3706
|
+
}
|
|
3707
|
+
checkMovement(t) {
|
|
3708
|
+
const r = { x: t[1].x, y: t[1].y };
|
|
3709
|
+
return this.lastNosePos && Math.sqrt(
|
|
3710
|
+
Math.pow(r.x - this.lastNosePos.x, 2) + Math.pow(r.y - this.lastNosePos.y, 2)
|
|
3711
|
+
) > 0.3 ? !1 : (this.lastNosePos = r, !0);
|
|
3712
|
+
}
|
|
3713
|
+
failInstantly(t) {
|
|
3714
|
+
this.stop(), this.updateState({ status: "error", errorMsg: t }), this.config.onError({ success: !1, reason: t });
|
|
3715
|
+
}
|
|
3683
3716
|
updateState(t) {
|
|
3684
3717
|
this.state = { ...this.state, ...t }, this.config.onStateChange(this.state);
|
|
3685
3718
|
}
|
|
@@ -3692,13 +3725,21 @@ class U1 {
|
|
|
3692
3725
|
this.state.timeLeft > 0 ? this.updateState({ timeLeft: this.state.timeLeft - 1 }) : (this.stop(), this.updateState({ status: "expired" }));
|
|
3693
3726
|
}, 1e3);
|
|
3694
3727
|
}
|
|
3695
|
-
handleStepSuccess() {
|
|
3696
|
-
|
|
3697
|
-
|
|
3728
|
+
handleStepSuccess(t) {
|
|
3729
|
+
if (this.isStepTransitioningRef) return;
|
|
3730
|
+
this.isStepTransitioningRef = !0;
|
|
3731
|
+
const r = this.getFaceCrop(this.webcam, t), n = {
|
|
3732
|
+
challenge: this.state.sequence[this.currentStepRef],
|
|
3733
|
+
image: r.toDataURL("image/jpeg", 0.7),
|
|
3734
|
+
timestamp: Date.now()
|
|
3735
|
+
}, s = [...this.state.snapshots, n];
|
|
3736
|
+
this.updateState({ isStepTransitioning: !0, snapshots: s }), setTimeout(() => {
|
|
3737
|
+
this.state.status === "capturing" && (this.currentStepRef < this.state.sequence.length - 1 ? (this.currentStepRef++, this.isStepTransitioningRef = !1, this.updateState({
|
|
3698
3738
|
currentStep: this.currentStepRef,
|
|
3699
|
-
isStepTransitioning: !1
|
|
3700
|
-
|
|
3701
|
-
|
|
3739
|
+
isStepTransitioning: !1,
|
|
3740
|
+
snapshots: s
|
|
3741
|
+
}), this.requestId = requestAnimationFrame(this.detectLoop)) : (this.updateState({ snapshots: s }), this.sendFinalProof()));
|
|
3742
|
+
}, 1500);
|
|
3702
3743
|
}
|
|
3703
3744
|
checkAction(t, r, n) {
|
|
3704
3745
|
var s, i;
|
|
@@ -3771,15 +3812,16 @@ const V1 = (e) => {
|
|
|
3771
3812
|
currentStep: 0,
|
|
3772
3813
|
timeLeft: e.duration || 60,
|
|
3773
3814
|
isStepTransitioning: !1,
|
|
3774
|
-
errorMsg: ""
|
|
3775
|
-
|
|
3776
|
-
Is(
|
|
3815
|
+
errorMsg: "",
|
|
3816
|
+
snapshots: []
|
|
3817
|
+
}), n = Is(null), s = Is(null);
|
|
3818
|
+
Rs(() => {
|
|
3777
3819
|
const a = new U1({
|
|
3778
3820
|
...e,
|
|
3779
3821
|
onStateChange: (c) => r({ ...c })
|
|
3780
3822
|
});
|
|
3781
3823
|
return n.current = a, a.loadModels(), () => a.stop();
|
|
3782
|
-
}, []),
|
|
3824
|
+
}, []), Rs(() => {
|
|
3783
3825
|
var a, c;
|
|
3784
3826
|
if (t.status !== "loading" && t.status !== "error") {
|
|
3785
3827
|
const l = (a = s.current) == null ? void 0 : a.video;
|
|
@@ -3795,10 +3837,10 @@ const V1 = (e) => {
|
|
|
3795
3837
|
}
|
|
3796
3838
|
}
|
|
3797
3839
|
}, [t.status]);
|
|
3798
|
-
const i =
|
|
3840
|
+
const i = Ns(() => {
|
|
3799
3841
|
var a;
|
|
3800
3842
|
console.log("[Hook] Start Clicked"), (a = n.current) == null || a.start();
|
|
3801
|
-
}, []), o =
|
|
3843
|
+
}, []), o = Ns(() => {
|
|
3802
3844
|
var a;
|
|
3803
3845
|
console.log("[Hook] Reset Clicked"), (a = n.current) == null || a.reset();
|
|
3804
3846
|
}, []);
|
|
@@ -3809,7 +3851,7 @@ const V1 = (e) => {
|
|
|
3809
3851
|
reset: o
|
|
3810
3852
|
};
|
|
3811
3853
|
};
|
|
3812
|
-
var
|
|
3854
|
+
var Mn = { exports: {} }, Kt = {};
|
|
3813
3855
|
/**
|
|
3814
3856
|
* @license React
|
|
3815
3857
|
* react-jsx-runtime.production.js
|
|
@@ -3821,7 +3863,7 @@ var xn = { exports: {} }, qt = {};
|
|
|
3821
3863
|
*/
|
|
3822
3864
|
var ji;
|
|
3823
3865
|
function G1() {
|
|
3824
|
-
if (ji) return
|
|
3866
|
+
if (ji) return Kt;
|
|
3825
3867
|
ji = 1;
|
|
3826
3868
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
3827
3869
|
function r(n, s, i) {
|
|
@@ -3839,9 +3881,9 @@ function G1() {
|
|
|
3839
3881
|
props: i
|
|
3840
3882
|
};
|
|
3841
3883
|
}
|
|
3842
|
-
return
|
|
3884
|
+
return Kt.Fragment = t, Kt.jsx = r, Kt.jsxs = r, Kt;
|
|
3843
3885
|
}
|
|
3844
|
-
var
|
|
3886
|
+
var zt = {};
|
|
3845
3887
|
/**
|
|
3846
3888
|
* @license React
|
|
3847
3889
|
* react-jsx-runtime.development.js
|
|
@@ -3868,9 +3910,9 @@ function H1() {
|
|
|
3868
3910
|
return "StrictMode";
|
|
3869
3911
|
case Wa:
|
|
3870
3912
|
return "Suspense";
|
|
3871
|
-
case
|
|
3913
|
+
case qa:
|
|
3872
3914
|
return "SuspenseList";
|
|
3873
|
-
case
|
|
3915
|
+
case za:
|
|
3874
3916
|
return "Activity";
|
|
3875
3917
|
}
|
|
3876
3918
|
if (typeof h == "object")
|
|
@@ -3884,14 +3926,14 @@ function H1() {
|
|
|
3884
3926
|
case fr:
|
|
3885
3927
|
return (h._context.displayName || "Context") + ".Consumer";
|
|
3886
3928
|
case Ha:
|
|
3887
|
-
var
|
|
3888
|
-
return h = h.displayName, h || (h =
|
|
3889
|
-
case
|
|
3890
|
-
return
|
|
3929
|
+
var E = h.render;
|
|
3930
|
+
return h = h.displayName, h || (h = E.displayName || E.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
3931
|
+
case Ka:
|
|
3932
|
+
return E = h.displayName || null, E !== null ? E : e(h.type) || "Memo";
|
|
3891
3933
|
case Xr:
|
|
3892
|
-
|
|
3934
|
+
E = h._payload, h = h._init;
|
|
3893
3935
|
try {
|
|
3894
|
-
return e(h(
|
|
3936
|
+
return e(h(E));
|
|
3895
3937
|
} catch {
|
|
3896
3938
|
}
|
|
3897
3939
|
}
|
|
@@ -3903,15 +3945,15 @@ function H1() {
|
|
|
3903
3945
|
function r(h) {
|
|
3904
3946
|
try {
|
|
3905
3947
|
t(h);
|
|
3906
|
-
var
|
|
3948
|
+
var E = !1;
|
|
3907
3949
|
} catch {
|
|
3908
|
-
|
|
3950
|
+
E = !0;
|
|
3909
3951
|
}
|
|
3910
|
-
if (
|
|
3911
|
-
|
|
3912
|
-
var
|
|
3913
|
-
return
|
|
3914
|
-
|
|
3952
|
+
if (E) {
|
|
3953
|
+
E = console;
|
|
3954
|
+
var R = E.error, H = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
3955
|
+
return R.call(
|
|
3956
|
+
E,
|
|
3915
3957
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
3916
3958
|
H
|
|
3917
3959
|
), t(h);
|
|
@@ -3922,8 +3964,8 @@ function H1() {
|
|
|
3922
3964
|
if (typeof h == "object" && h !== null && h.$$typeof === Xr)
|
|
3923
3965
|
return "<...>";
|
|
3924
3966
|
try {
|
|
3925
|
-
var
|
|
3926
|
-
return
|
|
3967
|
+
var E = e(h);
|
|
3968
|
+
return E ? "<" + E + ">" : "<...>";
|
|
3927
3969
|
} catch {
|
|
3928
3970
|
return "<...>";
|
|
3929
3971
|
}
|
|
@@ -3937,20 +3979,20 @@ function H1() {
|
|
|
3937
3979
|
}
|
|
3938
3980
|
function o(h) {
|
|
3939
3981
|
if (Ls.call(h, "key")) {
|
|
3940
|
-
var
|
|
3941
|
-
if (
|
|
3982
|
+
var E = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
3983
|
+
if (E && E.isReactWarning) return !1;
|
|
3942
3984
|
}
|
|
3943
3985
|
return h.key !== void 0;
|
|
3944
3986
|
}
|
|
3945
|
-
function a(h,
|
|
3946
|
-
function
|
|
3987
|
+
function a(h, E) {
|
|
3988
|
+
function R() {
|
|
3947
3989
|
Ps || (Ps = !0, console.error(
|
|
3948
3990
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
3949
|
-
|
|
3991
|
+
E
|
|
3950
3992
|
));
|
|
3951
3993
|
}
|
|
3952
|
-
|
|
3953
|
-
get:
|
|
3994
|
+
R.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
3995
|
+
get: R,
|
|
3954
3996
|
configurable: !0
|
|
3955
3997
|
});
|
|
3956
3998
|
}
|
|
@@ -3960,13 +4002,13 @@ function H1() {
|
|
|
3960
4002
|
"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."
|
|
3961
4003
|
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
3962
4004
|
}
|
|
3963
|
-
function l(h,
|
|
3964
|
-
var W =
|
|
4005
|
+
function l(h, E, R, H, dr, Qr) {
|
|
4006
|
+
var W = R.ref;
|
|
3965
4007
|
return h = {
|
|
3966
|
-
$$typeof:
|
|
4008
|
+
$$typeof: C,
|
|
3967
4009
|
type: h,
|
|
3968
|
-
key:
|
|
3969
|
-
props:
|
|
4010
|
+
key: E,
|
|
4011
|
+
props: R,
|
|
3970
4012
|
_owner: H
|
|
3971
4013
|
}, (W !== void 0 ? W : null) !== null ? Object.defineProperty(h, "ref", {
|
|
3972
4014
|
enumerable: !1,
|
|
@@ -3993,8 +4035,8 @@ function H1() {
|
|
|
3993
4035
|
value: Qr
|
|
3994
4036
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
3995
4037
|
}
|
|
3996
|
-
function u(h,
|
|
3997
|
-
var W =
|
|
4038
|
+
function u(h, E, R, H, dr, Qr) {
|
|
4039
|
+
var W = E.children;
|
|
3998
4040
|
if (W !== void 0)
|
|
3999
4041
|
if (H)
|
|
4000
4042
|
if ($a(W)) {
|
|
@@ -4006,12 +4048,12 @@ function H1() {
|
|
|
4006
4048
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
4007
4049
|
);
|
|
4008
4050
|
else f(W);
|
|
4009
|
-
if (Ls.call(
|
|
4051
|
+
if (Ls.call(E, "key")) {
|
|
4010
4052
|
W = e(h);
|
|
4011
|
-
var ft = Object.keys(
|
|
4053
|
+
var ft = Object.keys(E).filter(function(Xa) {
|
|
4012
4054
|
return Xa !== "key";
|
|
4013
4055
|
});
|
|
4014
|
-
H = 0 < ft.length ? "{key: someKey, " + ft.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
4056
|
+
H = 0 < ft.length ? "{key: someKey, " + ft.join(": ..., ") + ": ...}" : "{key: someKey}", Fs[W + H] || (ft = 0 < ft.length ? "{" + ft.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
4015
4057
|
`A props object containing a "key" prop is being spread into JSX:
|
|
4016
4058
|
let props = %s;
|
|
4017
4059
|
<%s {...props} />
|
|
@@ -4022,20 +4064,20 @@ React keys must be passed directly to JSX without using spread:
|
|
|
4022
4064
|
W,
|
|
4023
4065
|
ft,
|
|
4024
4066
|
W
|
|
4025
|
-
),
|
|
4067
|
+
), Fs[W + H] = !0);
|
|
4026
4068
|
}
|
|
4027
|
-
if (W = null,
|
|
4028
|
-
|
|
4029
|
-
for (var en in
|
|
4030
|
-
en !== "key" && (
|
|
4031
|
-
} else
|
|
4069
|
+
if (W = null, R !== void 0 && (r(R), W = "" + R), o(E) && (r(E.key), W = "" + E.key), "key" in E) {
|
|
4070
|
+
R = {};
|
|
4071
|
+
for (var en in E)
|
|
4072
|
+
en !== "key" && (R[en] = E[en]);
|
|
4073
|
+
} else R = E;
|
|
4032
4074
|
return W && a(
|
|
4033
|
-
|
|
4075
|
+
R,
|
|
4034
4076
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
4035
4077
|
), l(
|
|
4036
4078
|
h,
|
|
4037
4079
|
W,
|
|
4038
|
-
|
|
4080
|
+
R,
|
|
4039
4081
|
s(),
|
|
4040
4082
|
dr,
|
|
4041
4083
|
Qr
|
|
@@ -4045,9 +4087,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
4045
4087
|
y(h) ? h._store && (h._store.validated = 1) : typeof h == "object" && h !== null && h.$$typeof === Xr && (h._payload.status === "fulfilled" ? y(h._payload.value) && h._payload.value._store && (h._payload.value._store.validated = 1) : h._store && (h._store.validated = 1));
|
|
4046
4088
|
}
|
|
4047
4089
|
function y(h) {
|
|
4048
|
-
return typeof h == "object" && h !== null && h.$$typeof ===
|
|
4090
|
+
return typeof h == "object" && h !== null && h.$$typeof === C;
|
|
4049
4091
|
}
|
|
4050
|
-
var b = Ja,
|
|
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() {
|
|
4051
4093
|
return null;
|
|
4052
4094
|
};
|
|
4053
4095
|
b = {
|
|
@@ -4055,36 +4097,36 @@ React keys must be passed directly to JSX without using spread:
|
|
|
4055
4097
|
return h();
|
|
4056
4098
|
}
|
|
4057
4099
|
};
|
|
4058
|
-
var Ps, Os = {},
|
|
4100
|
+
var Ps, Os = {}, Ms = b.react_stack_bottom_frame.bind(
|
|
4059
4101
|
b,
|
|
4060
4102
|
i
|
|
4061
|
-
)(),
|
|
4062
|
-
|
|
4103
|
+
)(), xs = Zr(n(i)), Fs = {};
|
|
4104
|
+
zt.Fragment = Te, zt.jsx = function(h, E, R) {
|
|
4063
4105
|
var H = 1e4 > Jr.recentlyCreatedOwnerStacks++;
|
|
4064
4106
|
return u(
|
|
4065
4107
|
h,
|
|
4066
|
-
|
|
4067
|
-
|
|
4108
|
+
E,
|
|
4109
|
+
R,
|
|
4068
4110
|
!1,
|
|
4069
|
-
H ? Error("react-stack-top-frame") :
|
|
4070
|
-
H ? Zr(n(h)) :
|
|
4111
|
+
H ? Error("react-stack-top-frame") : Ms,
|
|
4112
|
+
H ? Zr(n(h)) : xs
|
|
4071
4113
|
);
|
|
4072
|
-
},
|
|
4114
|
+
}, zt.jsxs = function(h, E, R) {
|
|
4073
4115
|
var H = 1e4 > Jr.recentlyCreatedOwnerStacks++;
|
|
4074
4116
|
return u(
|
|
4075
4117
|
h,
|
|
4076
|
-
|
|
4077
|
-
|
|
4118
|
+
E,
|
|
4119
|
+
R,
|
|
4078
4120
|
!0,
|
|
4079
|
-
H ? Error("react-stack-top-frame") :
|
|
4080
|
-
H ? Zr(n(h)) :
|
|
4121
|
+
H ? Error("react-stack-top-frame") : Ms,
|
|
4122
|
+
H ? Zr(n(h)) : xs
|
|
4081
4123
|
);
|
|
4082
4124
|
};
|
|
4083
|
-
}()),
|
|
4125
|
+
}()), zt;
|
|
4084
4126
|
}
|
|
4085
|
-
process.env.NODE_ENV === "production" ?
|
|
4086
|
-
var ye =
|
|
4087
|
-
const
|
|
4127
|
+
process.env.NODE_ENV === "production" ? Mn.exports = G1() : Mn.exports = H1();
|
|
4128
|
+
var ye = Mn.exports;
|
|
4129
|
+
const K1 = ({
|
|
4088
4130
|
apiUrl: e,
|
|
4089
4131
|
duration: t,
|
|
4090
4132
|
onComplete: r,
|
|
@@ -4127,6 +4169,6 @@ const q1 = ({
|
|
|
4127
4169
|
};
|
|
4128
4170
|
export {
|
|
4129
4171
|
U1 as L,
|
|
4130
|
-
|
|
4172
|
+
K1 as a,
|
|
4131
4173
|
V1 as u
|
|
4132
4174
|
};
|