@adriansteffan/reactive 0.1.23 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{mod-CPp-Paa0.js → mod-fBXh2yt0.js} +114 -112
- package/dist/reactive.es.js +1 -1
- package/dist/reactive.umd.js +15 -15
- package/dist/{web-jM3PxDy0.js → web-B1R-GYWu.js} +1 -1
- package/dist/{web-DWLF4kLx.js → web-DEK1IMF9.js} +1 -1
- package/package.json +1 -1
- package/src/components/quest.tsx +4 -2
- package/src/components/text.tsx +4 -0
- package/src/components/tutorial.tsx +2 -2
|
@@ -2,7 +2,7 @@ var a1 = (i) => {
|
|
|
2
2
|
throw TypeError(i);
|
|
3
3
|
};
|
|
4
4
|
var Ep = (i, e, t) => e.has(i) || a1("Cannot " + t);
|
|
5
|
-
var K = (i, e, t) => (Ep(i, e, "read from private field"), t ? t.call(i) : e.get(i)),
|
|
5
|
+
var K = (i, e, t) => (Ep(i, e, "read from private field"), t ? t.call(i) : e.get(i)), at = (i, e, t) => e.has(i) ? a1("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Ue = (i, e, t, s) => (Ep(i, e, "write to private field"), s ? s.call(i, t) : e.set(i, t), t), os = (i, e, t) => (Ep(i, e, "access private method"), t);
|
|
6
6
|
var ju = (i, e, t, s) => ({
|
|
7
7
|
set _(r) {
|
|
8
8
|
Ue(i, e, r, t);
|
|
@@ -12,7 +12,7 @@ var ju = (i, e, t, s) => ({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import * as p from "react";
|
|
15
|
-
import Ze, { useRef as fe, useEffect as
|
|
15
|
+
import Ze, { useRef as fe, useEffect as nt, useState as rt, useCallback as Xe, createElement as qx, useLayoutEffect as Pg, useSyncExternalStore as PP, isValidElement as _a, cloneElement as em, createContext as fn, useContext as fs, useMemo as di, useId as Ig, useInsertionEffect as Rg, Children as IP, Fragment as Bx, forwardRef as $x, Component as RP, useImperativeHandle as AP } from "react";
|
|
16
16
|
import * as o1 from "react-dom";
|
|
17
17
|
import { createPortal as LP } from "react-dom";
|
|
18
18
|
function Qo(i) {
|
|
@@ -17918,7 +17918,9 @@ function wv({
|
|
|
17918
17918
|
allowedKeys: a = !1
|
|
17919
17919
|
}) {
|
|
17920
17920
|
const o = fe(0);
|
|
17921
|
-
|
|
17921
|
+
nt(() => {
|
|
17922
|
+
window.scrollTo(0, 0);
|
|
17923
|
+
}, []), nt(() => {
|
|
17922
17924
|
o.current = Qs();
|
|
17923
17925
|
const u = (h) => {
|
|
17924
17926
|
const c = Qs();
|
|
@@ -18196,7 +18198,7 @@ function $ae(i) {
|
|
|
18196
18198
|
}
|
|
18197
18199
|
const Hae = ({ stream: i }) => {
|
|
18198
18200
|
const e = fe(null), t = fe(null), s = fe(null), r = fe([]);
|
|
18199
|
-
return
|
|
18201
|
+
return nt(() => {
|
|
18200
18202
|
if (!i || !e.current) return;
|
|
18201
18203
|
const n = new (window.AudioContext || window.webkitAudioContext)(), a = n.createAnalyser(), o = n.createMediaStreamSource(i);
|
|
18202
18204
|
a.fftSize = 2048, o.connect(a), s.current = a;
|
|
@@ -18360,7 +18362,7 @@ function Uae({
|
|
|
18360
18362
|
}) {
|
|
18361
18363
|
var u;
|
|
18362
18364
|
const [e, t] = rt([]), [s, r] = rt(""), [n, a] = rt(!1);
|
|
18363
|
-
|
|
18365
|
+
nt(() => {
|
|
18364
18366
|
navigator.mediaDevices.getUserMedia({ audio: !0 }).then(() => {
|
|
18365
18367
|
navigator.mediaDevices.enumerateDevices().then((h) => {
|
|
18366
18368
|
const c = h.filter((d) => d.kind === "audioinput").map((d) => ({
|
|
@@ -70461,9 +70463,9 @@ function $ce({
|
|
|
70461
70463
|
},
|
|
70462
70464
|
[i]
|
|
70463
70465
|
);
|
|
70464
|
-
return n.onComplete.add(a), /* @__PURE__ */ R.jsxs("div", { className: `
|
|
70466
|
+
return n.onComplete.add(a), /* @__PURE__ */ R.jsxs("div", { className: `min-h-screen ${r ?? ""}`, children: [
|
|
70465
70467
|
!r && /* @__PURE__ */ R.jsx("div", { className: "absolute inset-0 -z-10 h-full w-full bg-white bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:16px_16px]" }),
|
|
70466
|
-
/* @__PURE__ */ R.jsx(_S, { model: n })
|
|
70468
|
+
/* @__PURE__ */ R.jsx("div", { className: "max-w-4xl mx-auto px-4", children: /* @__PURE__ */ R.jsx(_S, { model: n }) })
|
|
70467
70469
|
] });
|
|
70468
70470
|
}
|
|
70469
70471
|
var Du = class {
|
|
@@ -70624,9 +70626,9 @@ function e3(i, e) {
|
|
|
70624
70626
|
var Ia, $n, So, Rx, Jce = (Rx = class extends Du {
|
|
70625
70627
|
constructor() {
|
|
70626
70628
|
super();
|
|
70627
|
-
|
|
70628
|
-
|
|
70629
|
-
|
|
70629
|
+
at(this, Ia);
|
|
70630
|
+
at(this, $n);
|
|
70631
|
+
at(this, So);
|
|
70630
70632
|
Ue(this, So, (e) => {
|
|
70631
70633
|
if (!Zd && window.addEventListener) {
|
|
70632
70634
|
const t = () => e();
|
|
@@ -70665,9 +70667,9 @@ var Ia, $n, So, Rx, Jce = (Rx = class extends Du {
|
|
|
70665
70667
|
}, Ia = new WeakMap(), $n = new WeakMap(), So = new WeakMap(), Rx), t3 = new Jce(), To, Hn, Po, Ax, Yce = (Ax = class extends Du {
|
|
70666
70668
|
constructor() {
|
|
70667
70669
|
super();
|
|
70668
|
-
|
|
70669
|
-
|
|
70670
|
-
|
|
70670
|
+
at(this, To, !0);
|
|
70671
|
+
at(this, Hn);
|
|
70672
|
+
at(this, Po);
|
|
70671
70673
|
Ue(this, Po, (e) => {
|
|
70672
70674
|
if (!Zd && window.addEventListener) {
|
|
70673
70675
|
const t = () => e(!0), s = () => e(!1);
|
|
@@ -70851,7 +70853,7 @@ function tde() {
|
|
|
70851
70853
|
}
|
|
70852
70854
|
var Ms = tde(), Ra, Lx, n3 = (Lx = class {
|
|
70853
70855
|
constructor() {
|
|
70854
|
-
|
|
70856
|
+
at(this, Ra);
|
|
70855
70857
|
}
|
|
70856
70858
|
destroy() {
|
|
70857
70859
|
this.clearGcTimeout();
|
|
@@ -70873,13 +70875,13 @@ var Ms = tde(), Ra, Lx, n3 = (Lx = class {
|
|
|
70873
70875
|
}, Ra = new WeakMap(), Lx), Io, Ro, Fi, Hs, uu, Aa, nr, tn, _x, sde = (_x = class extends n3 {
|
|
70874
70876
|
constructor(e) {
|
|
70875
70877
|
super();
|
|
70876
|
-
|
|
70877
|
-
|
|
70878
|
-
|
|
70879
|
-
|
|
70880
|
-
|
|
70881
|
-
|
|
70882
|
-
|
|
70878
|
+
at(this, nr);
|
|
70879
|
+
at(this, Io);
|
|
70880
|
+
at(this, Ro);
|
|
70881
|
+
at(this, Fi);
|
|
70882
|
+
at(this, Hs);
|
|
70883
|
+
at(this, uu);
|
|
70884
|
+
at(this, Aa);
|
|
70883
70885
|
Ue(this, Aa, !1), Ue(this, uu, e.defaultOptions), this.setOptions(e.options), this.observers = [], Ue(this, Fi, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, Ue(this, Io, rde(this.options)), this.state = e.state ?? K(this, Io), this.scheduleGc();
|
|
70884
70886
|
}
|
|
70885
70887
|
get meta() {
|
|
@@ -71155,7 +71157,7 @@ function rde(i) {
|
|
|
71155
71157
|
var Er, Dx, nde = (Dx = class extends Du {
|
|
71156
71158
|
constructor(e = {}) {
|
|
71157
71159
|
super();
|
|
71158
|
-
|
|
71160
|
+
at(this, Er);
|
|
71159
71161
|
this.config = e, Ue(this, Er, /* @__PURE__ */ new Map());
|
|
71160
71162
|
}
|
|
71161
71163
|
build(e, t, s) {
|
|
@@ -71227,10 +71229,10 @@ var Er, Dx, nde = (Dx = class extends Du {
|
|
|
71227
71229
|
}, Er = new WeakMap(), Dx), Vr, Ks, La, Sr, _n, kx, ade = (kx = class extends n3 {
|
|
71228
71230
|
constructor(e) {
|
|
71229
71231
|
super();
|
|
71230
|
-
|
|
71231
|
-
|
|
71232
|
-
|
|
71233
|
-
|
|
71232
|
+
at(this, Sr);
|
|
71233
|
+
at(this, Vr);
|
|
71234
|
+
at(this, Ks);
|
|
71235
|
+
at(this, La);
|
|
71234
71236
|
this.mutationId = e.mutationId, Ue(this, Ks, e.mutationCache), Ue(this, Vr, []), this.state = e.state || a3(), this.setOptions(e.options), this.scheduleGc();
|
|
71235
71237
|
}
|
|
71236
71238
|
setOptions(e) {
|
|
@@ -71424,8 +71426,8 @@ function a3() {
|
|
|
71424
71426
|
var wi, hu, Ox, ode = (Ox = class extends Du {
|
|
71425
71427
|
constructor(e = {}) {
|
|
71426
71428
|
super();
|
|
71427
|
-
|
|
71428
|
-
|
|
71429
|
+
at(this, wi);
|
|
71430
|
+
at(this, hu);
|
|
71429
71431
|
this.config = e, Ue(this, wi, /* @__PURE__ */ new Map()), Ue(this, hu, Date.now());
|
|
71430
71432
|
}
|
|
71431
71433
|
build(e, t, s) {
|
|
@@ -71582,14 +71584,14 @@ function lde(i, { pages: e, pageParams: t }) {
|
|
|
71582
71584
|
}
|
|
71583
71585
|
var Xt, Qn, Un, Ao, Lo, zn, _o, Do, Mx, ude = (Mx = class {
|
|
71584
71586
|
constructor(i = {}) {
|
|
71585
|
-
|
|
71586
|
-
|
|
71587
|
-
|
|
71588
|
-
|
|
71589
|
-
|
|
71590
|
-
|
|
71591
|
-
|
|
71592
|
-
|
|
71587
|
+
at(this, Xt);
|
|
71588
|
+
at(this, Qn);
|
|
71589
|
+
at(this, Un);
|
|
71590
|
+
at(this, Ao);
|
|
71591
|
+
at(this, Lo);
|
|
71592
|
+
at(this, zn);
|
|
71593
|
+
at(this, _o);
|
|
71594
|
+
at(this, Do);
|
|
71593
71595
|
Ue(this, Xt, i.queryCache || new nde()), Ue(this, Qn, i.mutationCache || new ode()), Ue(this, Un, i.defaultOptions || {}), Ue(this, Ao, /* @__PURE__ */ new Map()), Ue(this, Lo, /* @__PURE__ */ new Map()), Ue(this, zn, 0);
|
|
71594
71596
|
}
|
|
71595
71597
|
mount() {
|
|
@@ -71786,11 +71788,11 @@ var Xt, Qn, Un, Ao, Lo, zn, _o, Do, Mx, ude = (Mx = class {
|
|
|
71786
71788
|
}, Xt = new WeakMap(), Qn = new WeakMap(), Un = new WeakMap(), Ao = new WeakMap(), Lo = new WeakMap(), zn = new WeakMap(), _o = new WeakMap(), Do = new WeakMap(), Mx), jn, Wn, ai, an, hn, Xh, Um, Nx, hde = (Nx = class extends Du {
|
|
71787
71789
|
constructor(e, t) {
|
|
71788
71790
|
super();
|
|
71789
|
-
|
|
71790
|
-
|
|
71791
|
-
|
|
71792
|
-
|
|
71793
|
-
|
|
71791
|
+
at(this, hn);
|
|
71792
|
+
at(this, jn);
|
|
71793
|
+
at(this, Wn);
|
|
71794
|
+
at(this, ai);
|
|
71795
|
+
at(this, an);
|
|
71794
71796
|
Ue(this, jn, e), this.setOptions(t), this.bindMethods(), os(this, hn, Xh).call(this);
|
|
71795
71797
|
}
|
|
71796
71798
|
bindMethods() {
|
|
@@ -78084,11 +78086,11 @@ async function Qfe(i, e, t, s) {
|
|
|
78084
78086
|
e = e.trim(), s.directory && !e.endsWith(Rf) ? e += Rf : s.directory = e.endsWith(Rf);
|
|
78085
78087
|
const r = xt(i, s, "encodeText", sc);
|
|
78086
78088
|
let n = r(e);
|
|
78087
|
-
if (n === Bt && (n = sc(e)),
|
|
78089
|
+
if (n === Bt && (n = sc(e)), lt(n) > ui)
|
|
78088
78090
|
throw new Error(Nfe);
|
|
78089
78091
|
const a = s.comment || "";
|
|
78090
78092
|
let o = r(a);
|
|
78091
|
-
if (o === Bt && (o = sc(a)),
|
|
78093
|
+
if (o === Bt && (o = sc(a)), lt(o) > ui)
|
|
78092
78094
|
throw new Error(Mfe);
|
|
78093
78095
|
const l = xt(i, s, Z3, Vpe);
|
|
78094
78096
|
if (l > ui)
|
|
@@ -78107,12 +78109,12 @@ async function Qfe(i, e, t, s) {
|
|
|
78107
78109
|
const { extraField: G } = s;
|
|
78108
78110
|
if (G) {
|
|
78109
78111
|
let Mt = 0, zt = 0;
|
|
78110
|
-
G.forEach((Ct) => Mt += 4 +
|
|
78112
|
+
G.forEach((Ct) => Mt += 4 + lt(Ct)), j = new Uint8Array(Mt), G.forEach((Ct, _e) => {
|
|
78111
78113
|
if (_e > ui)
|
|
78112
78114
|
throw new Error(qfe);
|
|
78113
|
-
if (
|
|
78115
|
+
if (lt(Ct) > ui)
|
|
78114
78116
|
throw new Error(Bfe);
|
|
78115
|
-
ps(j, new Uint16Array([_e]), zt), ps(j, new Uint16Array([
|
|
78117
|
+
ps(j, new Uint16Array([_e]), zt), ps(j, new Uint16Array([lt(Ct)]), zt + 2), ps(j, Ct, zt + 4), zt += 4 + lt(Ct);
|
|
78116
78118
|
});
|
|
78117
78119
|
}
|
|
78118
78120
|
let ne = 0, Y = 0, oe = 0;
|
|
@@ -78160,11 +78162,11 @@ async function Qfe(i, e, t, s) {
|
|
|
78160
78162
|
externalFileAttribute: v,
|
|
78161
78163
|
useCompressionStream: _,
|
|
78162
78164
|
passThrough: m,
|
|
78163
|
-
encrypted: !!(g &&
|
|
78165
|
+
encrypted: !!(g && lt(g) || b && lt(b)) || m && Is,
|
|
78164
78166
|
signature: Et,
|
|
78165
78167
|
compressionMethod: B
|
|
78166
78168
|
});
|
|
78167
|
-
const cs = jfe(s), rs = Gfe(s), Le =
|
|
78169
|
+
const cs = jfe(s), rs = Gfe(s), Le = lt(cs.localHeaderArray, rs.dataDescriptorArray);
|
|
78168
78170
|
Y = Le + ne, i.options.usdz && (Y += Y + 64), i.pendingEntriesSize += Y;
|
|
78169
78171
|
let st;
|
|
78170
78172
|
try {
|
|
@@ -78195,7 +78197,7 @@ async function Ufe(i, e, t, s, r) {
|
|
|
78195
78197
|
if (i.addSplitZipSignature) {
|
|
78196
78198
|
delete i.addSplitZipSignature;
|
|
78197
78199
|
const Q = new Uint8Array(4), _ = Ns(Q);
|
|
78198
|
-
|
|
78200
|
+
ot(_, 0, p3), await Rr(I, Q), i.offset += 4;
|
|
78199
78201
|
}
|
|
78200
78202
|
c && Wfe(s, i.offset - M), y || (await V, await D(I));
|
|
78201
78203
|
const { diskNumber: q } = a;
|
|
@@ -78233,7 +78235,7 @@ async function Ufe(i, e, t, s, r) {
|
|
|
78233
78235
|
}), await V;
|
|
78234
78236
|
}
|
|
78235
78237
|
async function D(V) {
|
|
78236
|
-
|
|
78238
|
+
lt(h.localHeaderArray) > a.availableSize && (a.availableSize = 0, await Rr(V, new Uint8Array()));
|
|
78237
78239
|
}
|
|
78238
78240
|
}
|
|
78239
78241
|
async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
|
|
@@ -78387,7 +78389,7 @@ function jfe(i) {
|
|
|
78387
78389
|
} = i, v = n !== 0 && !h;
|
|
78388
78390
|
let { version: m, compressionMethod: g } = i, b;
|
|
78389
78391
|
if (y && !o) {
|
|
78390
|
-
b = new Uint8Array(
|
|
78392
|
+
b = new Uint8Array(lt(X2) + 2);
|
|
78391
78393
|
const $ = Ns(b);
|
|
78392
78394
|
mt($, 0, gpe), ps(b, X2, 2), qc($, 8, d);
|
|
78393
78395
|
} else
|
|
@@ -78396,9 +78398,9 @@ function jfe(i) {
|
|
|
78396
78398
|
if (f) {
|
|
78397
78399
|
T = new Uint8Array(9 + (s ? 4 : 0) + (r ? 4 : 0));
|
|
78398
78400
|
const $ = Ns(T);
|
|
78399
|
-
mt($, 0, g3), mt($, 2,
|
|
78401
|
+
mt($, 0, g3), mt($, 2, lt(T) - 4), A = 1 + (s ? 2 : 0) + (r ? 4 : 0), qc($, 4, A);
|
|
78400
78402
|
let j = 5;
|
|
78401
|
-
|
|
78403
|
+
ot($, j, Math.floor(t.getTime() / 1e3)), j += 4, s && (ot($, j, Math.floor(s.getTime() / 1e3)), j += 4), r && ot($, j, Math.floor(r.getTime() / 1e3));
|
|
78402
78404
|
try {
|
|
78403
78405
|
x = new Uint8Array(36);
|
|
78404
78406
|
const G = Ns(x), ne = Of(t);
|
|
@@ -78416,11 +78418,11 @@ function jfe(i) {
|
|
|
78416
78418
|
let q;
|
|
78417
78419
|
t < M2 ? q = M2 : t > O2 ? q = O2 : q = t, mt(M, 0, (q.getHours() << 6 | q.getMinutes()) << 5 | q.getSeconds() / 2), mt(M, 2, (q.getFullYear() - 1980 << 4 | q.getMonth() + 1) << 5 | q.getDate());
|
|
78418
78420
|
const Q = I[0];
|
|
78419
|
-
|
|
78420
|
-
const _ =
|
|
78421
|
+
ot(V, 6, Q), mt(V, 22, lt(e));
|
|
78422
|
+
const _ = lt(b, T, x, c);
|
|
78421
78423
|
mt(V, 24, _);
|
|
78422
|
-
const B = new Uint8Array(30 +
|
|
78423
|
-
return
|
|
78424
|
+
const B = new Uint8Array(30 + lt(e) + _), H = Ns(B);
|
|
78425
|
+
return ot(H, 0, lpe), ps(B, D, 4), ps(B, e, 30), ps(B, b, 30 + lt(e)), ps(B, T, 30 + lt(e, b)), ps(B, x, 30 + lt(e, b, T)), ps(B, c, 30 + lt(e, b, T, x)), {
|
|
78424
78426
|
localHeaderArray: B,
|
|
78425
78427
|
headerArray: D,
|
|
78426
78428
|
headerView: V,
|
|
@@ -78439,12 +78441,12 @@ function jfe(i) {
|
|
|
78439
78441
|
}
|
|
78440
78442
|
function Wfe(i, e) {
|
|
78441
78443
|
const { headerInfo: t } = i;
|
|
78442
|
-
let { localHeaderArray: s, extraFieldLength: r } = t, n = Ns(s), a = 64 - (e +
|
|
78444
|
+
let { localHeaderArray: s, extraFieldLength: r } = t, n = Ns(s), a = 64 - (e + lt(s)) % 64;
|
|
78443
78445
|
a < 4 && (a += 64);
|
|
78444
78446
|
const o = new Uint8Array(a), l = Ns(o);
|
|
78445
78447
|
mt(l, 0, Cpe), mt(l, 2, a - 2);
|
|
78446
78448
|
const u = s;
|
|
78447
|
-
t.localHeaderArray = s = new Uint8Array(
|
|
78449
|
+
t.localHeaderArray = s = new Uint8Array(lt(u) + a), ps(s, u), ps(s, o, lt(u)), n = Ns(s), mt(n, 28, r + a), i.metadataSize += a;
|
|
78448
78450
|
}
|
|
78449
78451
|
function Gfe(i) {
|
|
78450
78452
|
const {
|
|
@@ -78453,7 +78455,7 @@ function Gfe(i) {
|
|
|
78453
78455
|
dataDescriptorSignature: s
|
|
78454
78456
|
} = i;
|
|
78455
78457
|
let r = new Uint8Array(), n, a = 0;
|
|
78456
|
-
return t && (r = new Uint8Array(e ? s ? 24 : 20 : s ? 16 : 12), n = Ns(r), s && (a = 4,
|
|
78458
|
+
return t && (r = new Uint8Array(e ? s ? 24 : 20 : s ? 16 : 12), n = Ns(r), s && (a = 4, ot(n, 0, upe))), {
|
|
78457
78459
|
dataDescriptorArray: r,
|
|
78458
78460
|
dataDescriptorView: n,
|
|
78459
78461
|
dataDescriptorOffset: a
|
|
@@ -78480,24 +78482,24 @@ function Kfe(i, e) {
|
|
|
78480
78482
|
zipCrypto: v,
|
|
78481
78483
|
dataDescriptor: m
|
|
78482
78484
|
} = e;
|
|
78483
|
-
if ((!u || v) && t !== Bt && (
|
|
78485
|
+
if ((!u || v) && t !== Bt && (ot(l, 10, t), m && ot(h, c, t)), d) {
|
|
78484
78486
|
const g = Ns(s);
|
|
78485
|
-
mt(g, 0, mpe), mt(g, 2,
|
|
78487
|
+
mt(g, 0, mpe), mt(g, 2, lt(s) - 4);
|
|
78486
78488
|
let b = 4;
|
|
78487
|
-
f && (
|
|
78489
|
+
f && (ot(l, 18, ci), hi(g, b, BigInt(n)), b += 8), y && (ot(l, 14, ci), hi(g, b, BigInt(r))), m && (hi(h, c + 4, BigInt(r)), hi(h, c + 12, BigInt(n)));
|
|
78488
78490
|
} else
|
|
78489
|
-
|
|
78491
|
+
ot(l, 14, r), ot(l, 18, n), m && (ot(h, c + 4, r), ot(h, c + 8, n));
|
|
78490
78492
|
}
|
|
78491
78493
|
async function Zfe(i, e, t, { zipCrypto: s }) {
|
|
78492
78494
|
let r;
|
|
78493
78495
|
r = await e.slice(0, 26).arrayBuffer(), r.byteLength != 26 && (r = r.slice(0, 26));
|
|
78494
78496
|
const n = new DataView(r);
|
|
78495
|
-
return (!i.encrypted || s) &&
|
|
78497
|
+
return (!i.encrypted || s) && ot(n, 14, i.signature), i.zip64 ? (ot(n, 18, ci), ot(n, 22, ci)) : (ot(n, 18, i.compressedSize), ot(n, 22, i.uncompressedSize)), await Rr(t, new Uint8Array(r)), e.slice(r.byteLength);
|
|
78496
78498
|
}
|
|
78497
78499
|
function Jfe(i, e) {
|
|
78498
78500
|
const { rawExtraFieldZip64: t, offset: s, diskNumberStart: r } = i, { zip64UncompressedSize: n, zip64CompressedSize: a, zip64Offset: o, zip64DiskNumberStart: l } = e, u = Ns(t);
|
|
78499
78501
|
let h = 4;
|
|
78500
|
-
n && (h += 8), a && (h += 8), o && (hi(u, h, BigInt(s)), h += 8), l &&
|
|
78502
|
+
n && (h += 8), a && (h += 8), o && (hi(u, h, BigInt(s)), h += 8), l && ot(u, h, r);
|
|
78501
78503
|
}
|
|
78502
78504
|
async function Yfe(i, e, t) {
|
|
78503
78505
|
const { files: s, writer: r } = i, { diskOffset: n, writable: a } = r;
|
|
@@ -78518,10 +78520,10 @@ async function Yfe(i, e, t) {
|
|
|
78518
78520
|
if (Q) {
|
|
78519
78521
|
H = new Uint8Array(9);
|
|
78520
78522
|
const $ = Ns(H);
|
|
78521
|
-
mt($, 0, g3), mt($, 2, 5), qc($, 4, _),
|
|
78523
|
+
mt($, 0, g3), mt($, 2, 5), qc($, 4, _), ot($, 5, Math.floor(B.getTime() / 1e3));
|
|
78522
78524
|
} else
|
|
78523
78525
|
H = new Uint8Array();
|
|
78524
|
-
A.rawExtraFieldCDExtendedTimestamp = H, u += 46 +
|
|
78526
|
+
A.rawExtraFieldCDExtendedTimestamp = H, u += 46 + lt(
|
|
78525
78527
|
L,
|
|
78526
78528
|
I,
|
|
78527
78529
|
D,
|
|
@@ -78558,11 +78560,11 @@ async function Yfe(i, e, t) {
|
|
|
78558
78560
|
diskNumberStart: te,
|
|
78559
78561
|
uncompressedSize: we,
|
|
78560
78562
|
compressedSize: et
|
|
78561
|
-
} = L, Yt =
|
|
78562
|
-
|
|
78563
|
+
} = L, Yt = lt(I, M, q, Q, _);
|
|
78564
|
+
ot(f, l, hpe), mt(f, l + 4, H);
|
|
78563
78565
|
const Gt = Ns($);
|
|
78564
|
-
ne ||
|
|
78565
|
-
const Is = 46 +
|
|
78566
|
+
ne || ot(Gt, 18, we), Y || ot(Gt, 14, et), ps(d, $, l + 6), mt(f, l + 30, Yt), mt(f, l + 32, lt(B)), mt(f, l + 34, G && oe ? ui : te), mt(f, l + 36, Ie), ge ? ot(f, l + 38, ge) : j && ue && qc(f, l + 38, Epe), ot(f, l + 42, G && re ? ci : D), ps(d, V, l + 46), ps(d, I, l + 46 + lt(V)), ps(d, M, l + 46 + lt(V, I)), ps(d, q, l + 46 + lt(V, I, M)), ps(d, Q, l + 46 + lt(V, I, M, q)), ps(d, _, l + 46 + lt(V, I, M, q, Q)), ps(d, B, l + 46 + lt(V) + Yt);
|
|
78567
|
+
const Is = 46 + lt(V, B) + Yt;
|
|
78566
78568
|
if (l - y > r.availableSize && (r.availableSize = 0, await Rr(a, d.slice(y, l)), y = l), l += Is, t.onprogress)
|
|
78567
78569
|
try {
|
|
78568
78570
|
await t.onprogress(A + 1, s.size, new X3(L));
|
|
@@ -78580,8 +78582,8 @@ async function Yfe(i, e, t) {
|
|
|
78580
78582
|
g = !0;
|
|
78581
78583
|
}
|
|
78582
78584
|
const b = new Uint8Array(g ? fpe : Gm), x = Ns(b);
|
|
78583
|
-
l = 0, g && (
|
|
78584
|
-
const T =
|
|
78585
|
+
l = 0, g && (ot(x, 0, dpe), hi(x, 4, BigInt(44)), mt(x, 12, 45), mt(x, 14, 45), ot(x, 16, v), ot(x, 20, o), hi(x, 24, BigInt(c)), hi(x, 32, BigInt(c)), hi(x, 40, BigInt(u)), hi(x, 48, BigInt(h)), ot(x, 56, ppe), hi(x, 64, BigInt(h) + BigInt(u)), ot(x, 72, v + 1), xt(i, t, "supportZip64SplitFile", !0) && (v = ui, o = ui), c = ui, h = ci, u = ci, l += m3 + f3), ot(x, l, cpe), mt(x, l + 4, v), mt(x, l + 6, o), mt(x, l + 8, c), mt(x, l + 10, c), ot(x, l + 12, u), ot(x, l + 16, h);
|
|
78586
|
+
const T = lt(e);
|
|
78585
78587
|
if (T)
|
|
78586
78588
|
if (T <= ui)
|
|
78587
78589
|
mt(x, l + 20, T);
|
|
@@ -78592,7 +78594,7 @@ async function Yfe(i, e, t) {
|
|
|
78592
78594
|
async function Rr(i, e) {
|
|
78593
78595
|
const t = i.getWriter();
|
|
78594
78596
|
try {
|
|
78595
|
-
await t.ready, i.size +=
|
|
78597
|
+
await t.ready, i.size += lt(e), await t.write(e);
|
|
78596
78598
|
} finally {
|
|
78597
78599
|
t.releaseLock();
|
|
78598
78600
|
}
|
|
@@ -78614,7 +78616,7 @@ function qc(i, e, t) {
|
|
|
78614
78616
|
function mt(i, e, t) {
|
|
78615
78617
|
i.setUint16(e, t, !0);
|
|
78616
78618
|
}
|
|
78617
|
-
function
|
|
78619
|
+
function ot(i, e, t) {
|
|
78618
78620
|
i.setUint32(e, t, !0);
|
|
78619
78621
|
}
|
|
78620
78622
|
function hi(i, e, t) {
|
|
@@ -78626,7 +78628,7 @@ function ps(i, e, t) {
|
|
|
78626
78628
|
function Ns(i) {
|
|
78627
78629
|
return new DataView(i.buffer);
|
|
78628
78630
|
}
|
|
78629
|
-
function
|
|
78631
|
+
function lt(...i) {
|
|
78630
78632
|
let e = 0;
|
|
78631
78633
|
return i.forEach((t) => t && (e += t.length)), e;
|
|
78632
78634
|
}
|
|
@@ -78647,7 +78649,7 @@ var Ym;
|
|
|
78647
78649
|
i.UTF8 = "utf8", i.ASCII = "ascii", i.UTF16 = "utf16";
|
|
78648
78650
|
})(Ym || (Ym = {}));
|
|
78649
78651
|
const Ea = wu("Filesystem", {
|
|
78650
|
-
web: () => import("./web-
|
|
78652
|
+
web: () => import("./web-DEK1IMF9.js").then((i) => new i.FilesystemWeb())
|
|
78651
78653
|
});
|
|
78652
78654
|
vi("Upload", async (i, e, t, s) => {
|
|
78653
78655
|
const r = i.sessionID || `sim_${Date.now()}_${Math.floor(Lt(0, 2176782336)).toString(36)}`, n = VV({
|
|
@@ -78864,9 +78866,9 @@ function ime({
|
|
|
78864
78866
|
e,
|
|
78865
78867
|
A
|
|
78866
78868
|
]);
|
|
78867
|
-
return
|
|
78869
|
+
return nt(() => {
|
|
78868
78870
|
o && !m.current && D && D();
|
|
78869
|
-
}, [o, D]),
|
|
78871
|
+
}, [o, D]), nt(() => {
|
|
78870
78872
|
y === "error" && (m.current = !1);
|
|
78871
78873
|
}, [y]), /* @__PURE__ */ R.jsx("div", { className: h ?? "", style: { position: "fixed", inset: 0 }, children: /* @__PURE__ */ R.jsxs("div", { className: `flex flex-col items-center justify-center gap-4 p-6 text-xl mt-16 px-10 h-full ${u ?? ""}`, children: [
|
|
78872
78874
|
y == "initial" && !o && /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
@@ -78910,7 +78912,7 @@ var iw;
|
|
|
78910
78912
|
i.None = "NONE", i.Slide = "SLIDE", i.Fade = "FADE";
|
|
78911
78913
|
})(iw || (iw = {}));
|
|
78912
78914
|
const t7 = wu("StatusBar"), s7 = wu("ImmersiveMode", {
|
|
78913
|
-
web: () => import("./web-
|
|
78915
|
+
web: () => import("./web-B1R-GYWu.js").then((i) => new i.ImmersiveModeWeb())
|
|
78914
78916
|
});
|
|
78915
78917
|
Ai("EnterFullscreen", "session");
|
|
78916
78918
|
vi("EnterFullscreen", xu, {});
|
|
@@ -78955,7 +78957,7 @@ function rme({
|
|
|
78955
78957
|
}
|
|
78956
78958
|
T.mozRequestFullScreen ? (T.mozRequestFullScreen(), b()) : T.webkitRequestFullscreen ? (T.webkitRequestFullscreen(), b()) : T.msRequestFullscreen ? (T.msRequestFullscreen(), b()) : console.warn("Fullscreen API is not supported by this browser.");
|
|
78957
78959
|
}, [m, b, v]);
|
|
78958
|
-
return
|
|
78960
|
+
return nt(() => () => {
|
|
78959
78961
|
v();
|
|
78960
78962
|
}, [v]), h ? /* @__PURE__ */ R.jsx("div", { className: `min-h-screen ${s ?? ""}` }) : /* @__PURE__ */ R.jsx(
|
|
78961
78963
|
wv,
|
|
@@ -78992,7 +78994,7 @@ function nme({
|
|
|
78992
78994
|
}, [a, n]), l = Xe(() => {
|
|
78993
78995
|
n(), t.current = !0, document.addEventListener("fullscreenchange", o), document.addEventListener("webkitfullscreenchange", o), document.addEventListener("mozfullscreenchange", o), document.addEventListener("MSFullscreenChange", o);
|
|
78994
78996
|
}, [o, n]);
|
|
78995
|
-
return
|
|
78997
|
+
return nt(() => ((async () => {
|
|
78996
78998
|
if (!Ul()) {
|
|
78997
78999
|
i({});
|
|
78998
79000
|
return;
|
|
@@ -79043,7 +79045,7 @@ function ep(i) {
|
|
|
79043
79045
|
T.target === c.current && (f(), g.removeEventListener("animationend", x), g.removeEventListener("animationcancel", x), m.current === 0 && T.type !== "animationcancel" && g.classList.remove(...b));
|
|
79044
79046
|
};
|
|
79045
79047
|
g.classList.add(...b), g.addEventListener("animationend", x), g.addEventListener("animationcancel", x);
|
|
79046
|
-
}, []),
|
|
79048
|
+
}, []), nt(() => {
|
|
79047
79049
|
const g = c.current, b = () => {
|
|
79048
79050
|
g.removeEventListener("animationend", b), r ? ame(g, h, n) : h();
|
|
79049
79051
|
};
|
|
@@ -79171,7 +79173,7 @@ function ume(i) {
|
|
|
79171
79173
|
x.style.transition = "transform 0.2s, opacity 0.2s", x.style.removeProperty("transform"), x.style.removeProperty("opacity");
|
|
79172
79174
|
}
|
|
79173
79175
|
}
|
|
79174
|
-
(f = Js.get((d = { id: i.toastId, containerId: i.containerId, fn: t }).containerId || 1)) == null || f.setToggle(d.id, d.fn),
|
|
79176
|
+
(f = Js.get((d = { id: i.toastId, containerId: i.containerId, fn: t }).containerId || 1)) == null || f.setToggle(d.id, d.fn), nt(() => {
|
|
79175
79177
|
if (i.pauseOnFocusLoss) return document.hasFocus() || v(), window.addEventListener("focus", y), window.addEventListener("blur", v), () => {
|
|
79176
79178
|
window.removeEventListener("focus", y), window.removeEventListener("blur", v);
|
|
79177
79179
|
};
|
|
@@ -79264,7 +79266,7 @@ Nt.loading = (i, e) => Bl(i, Bc("default", { isLoading: !0, autoClose: !1, close
|
|
|
79264
79266
|
tg.delete(i);
|
|
79265
79267
|
};
|
|
79266
79268
|
}, Nt.play = (i) => nw(!0, i), Nt.pause = (i) => nw(!1, i);
|
|
79267
|
-
const pme = typeof window < "u" ? Pg :
|
|
79269
|
+
const pme = typeof window < "u" ? Pg : nt, Bh = (i) => {
|
|
79268
79270
|
let { theme: e, type: t, isLoading: s, ...r } = i;
|
|
79269
79271
|
return Ze.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: e === "colored" ? "currentColor" : `var(--toastify-icon-color-${t})`, ...r });
|
|
79270
79272
|
}, Mf = { info: function(i) {
|
|
@@ -79330,7 +79332,7 @@ const yme = ({
|
|
|
79330
79332
|
timelineRepresentation: e
|
|
79331
79333
|
}) => {
|
|
79332
79334
|
const [t, s] = rt({}), [r, n] = rt([]), [a, o] = rt(""), [l, u] = rt("Copy URL"), [h, c] = rt(!1), [d, f] = rt(!1), [y, v] = rt([]), m = fe(null), g = [...i].filter((_) => _.name !== "includeSubset" && _.name !== "excludeSubset").sort((_, B) => _.name.localeCompare(B.name));
|
|
79333
|
-
|
|
79335
|
+
nt(() => {
|
|
79334
79336
|
const _ = new URLSearchParams(window.location.search), B = {}, H = [];
|
|
79335
79337
|
let $ = [], j = !1;
|
|
79336
79338
|
const G = _.get("includeSubset"), ne = _.get("excludeSubset"), Y = _.get("_b");
|
|
@@ -79393,7 +79395,7 @@ const yme = ({
|
|
|
79393
79395
|
});
|
|
79394
79396
|
}
|
|
79395
79397
|
s(B), n(H);
|
|
79396
|
-
}, [i]),
|
|
79398
|
+
}, [i]), nt(() => {
|
|
79397
79399
|
const _ = window.location.pathname.replace(/\/settings$/, "");
|
|
79398
79400
|
let B = "";
|
|
79399
79401
|
const H = { ...t };
|
|
@@ -79860,7 +79862,7 @@ Ai("RequestFilePermission", null);
|
|
|
79860
79862
|
vi("RequestFilePermission", xu, {});
|
|
79861
79863
|
function wme({ next: i }) {
|
|
79862
79864
|
const [e, t] = rt("checking");
|
|
79863
|
-
return
|
|
79865
|
+
return nt(() => {
|
|
79864
79866
|
if (e !== "checking") return;
|
|
79865
79867
|
(async () => {
|
|
79866
79868
|
if (Ed() !== "mobile" || Fa.getPlatform() !== "android") {
|
|
@@ -79931,7 +79933,7 @@ function Vme({
|
|
|
79931
79933
|
initCanvas: o
|
|
79932
79934
|
}) {
|
|
79933
79935
|
const { instructions: l, markers: u } = di(() => Vd(t), [t]), h = fe(0), c = fe(0), d = fe(!0), f = fe(null), y = fe(null), v = fe([]), m = fe(n ?? {}), g = fe(null), b = fe(0), x = fe(null);
|
|
79934
|
-
|
|
79936
|
+
nt(() => {
|
|
79935
79937
|
const Q = m.current._reactiveScreenRefreshRate, _ = typeof Q == "number" && Q >= 20 && Q <= 300;
|
|
79936
79938
|
x.current = _ ? 1e3 / Q : null;
|
|
79937
79939
|
}, [n]);
|
|
@@ -80071,7 +80073,7 @@ function Vme({
|
|
|
80071
80073
|
},
|
|
80072
80074
|
[l, T, V, L]
|
|
80073
80075
|
);
|
|
80074
|
-
return
|
|
80076
|
+
return nt(() => {
|
|
80075
80077
|
const Q = y.current;
|
|
80076
80078
|
if (!Q) return;
|
|
80077
80079
|
const _ = Ul() ? window.screen.width : window.innerWidth, B = Ul() ? window.screen.height : window.innerHeight;
|
|
@@ -80227,7 +80229,7 @@ function Sme({
|
|
|
80227
80229
|
next: n
|
|
80228
80230
|
}) {
|
|
80229
80231
|
const [a, o] = rt(!1), l = fe(!1);
|
|
80230
|
-
return
|
|
80232
|
+
return nt(() => {
|
|
80231
80233
|
if (l.current)
|
|
80232
80234
|
return;
|
|
80233
80235
|
(async () => {
|
|
@@ -80306,7 +80308,7 @@ function Tme({
|
|
|
80306
80308
|
saveButtonText: a = "Save Configuration"
|
|
80307
80309
|
}) {
|
|
80308
80310
|
const [o, l] = rt({}), [u, h] = rt({}), [c, d] = rt({});
|
|
80309
|
-
|
|
80311
|
+
nt(() => {
|
|
80310
80312
|
l(u7(n, t));
|
|
80311
80313
|
const g = {};
|
|
80312
80314
|
n.forEach((b) => {
|
|
@@ -80334,7 +80336,7 @@ function Tme({
|
|
|
80334
80336
|
}
|
|
80335
80337
|
return null;
|
|
80336
80338
|
};
|
|
80337
|
-
|
|
80339
|
+
nt(() => {
|
|
80338
80340
|
const g = {};
|
|
80339
80341
|
n.forEach((b) => {
|
|
80340
80342
|
const x = o[b.storeKey];
|
|
@@ -80471,7 +80473,7 @@ function l0(i) {
|
|
|
80471
80473
|
const e = fe(null);
|
|
80472
80474
|
return e.current === null && (e.current = i()), e.current;
|
|
80473
80475
|
}
|
|
80474
|
-
const Pme = typeof window < "u", u0 = Pme ? Pg :
|
|
80476
|
+
const Pme = typeof window < "u", u0 = Pme ? Pg : nt, sp = /* @__PURE__ */ fn(null);
|
|
80475
80477
|
function h0(i, e) {
|
|
80476
80478
|
i.indexOf(e) === -1 && i.push(e);
|
|
80477
80479
|
}
|
|
@@ -84523,7 +84525,7 @@ function M4(i = !0) {
|
|
|
84523
84525
|
if (e === null)
|
|
84524
84526
|
return [!0, null];
|
|
84525
84527
|
const { isPresent: t, onExitComplete: s, register: r } = e, n = Ig();
|
|
84526
|
-
|
|
84528
|
+
nt(() => {
|
|
84527
84529
|
if (i)
|
|
84528
84530
|
return r(n);
|
|
84529
84531
|
}, [i]);
|
|
@@ -84893,7 +84895,7 @@ function U1e(i, e, t, s, r, n) {
|
|
|
84893
84895
|
const g = t[J7], b = fe(!!g && typeof window < "u" && !((x = window.MotionHandoffIsComplete) != null && x.call(window, g)) && ((T = window.MotionHasOptimisedAnimation) == null ? void 0 : T.call(window, g)));
|
|
84894
84896
|
return u0(() => {
|
|
84895
84897
|
f.current = !0, y && (m.current = !0, window.MotionIsMounted = !0, y.updateFeatures(), y.scheduleRenderMicrotask(), b.current && y.animationState && y.animationState.animateChanges());
|
|
84896
|
-
}),
|
|
84898
|
+
}), nt(() => {
|
|
84897
84899
|
y && (!b.current && y.animationState && y.animationState.animateChanges(), b.current && (queueMicrotask(() => {
|
|
84898
84900
|
var A;
|
|
84899
84901
|
(A = window.MotionHandoffMarkAsComplete) == null || A.call(window, g);
|
|
@@ -85803,7 +85805,7 @@ const Z4 = fn({
|
|
|
85803
85805
|
theme: l = "light"
|
|
85804
85806
|
}) => {
|
|
85805
85807
|
const [u, h] = rt(0), [c, d] = rt({}), f = fe(), y = fe({}), v = c[u] !== !1, m = fe(v), [g, b] = rt(!1);
|
|
85806
|
-
|
|
85808
|
+
nt(() => {
|
|
85807
85809
|
if (v && !m.current) {
|
|
85808
85810
|
b(!0);
|
|
85809
85811
|
const I = setTimeout(() => b(!1), 300);
|
|
@@ -85831,16 +85833,16 @@ const Z4 = fn({
|
|
|
85831
85833
|
},
|
|
85832
85834
|
[A]
|
|
85833
85835
|
);
|
|
85834
|
-
|
|
85836
|
+
nt(() => () => {
|
|
85835
85837
|
f.current && clearTimeout(f.current);
|
|
85836
85838
|
}, []);
|
|
85837
85839
|
const V = Xe(() => {
|
|
85838
85840
|
u > 0 && h((I) => I - 1);
|
|
85839
85841
|
}, [u]);
|
|
85840
|
-
return
|
|
85842
|
+
return nt(() => {
|
|
85841
85843
|
if (a === !1 && o === !1) return;
|
|
85842
85844
|
const I = (M) => {
|
|
85843
|
-
a && M.key === a && L(), o && M.key === o && V();
|
|
85845
|
+
a && M.key === a && (M.preventDefault(), L()), o && M.key === o && (M.preventDefault(), V());
|
|
85844
85846
|
};
|
|
85845
85847
|
return window.addEventListener("keydown", I), () => window.removeEventListener("keydown", I);
|
|
85846
85848
|
}, [a, o, L, V]), /* @__PURE__ */ R.jsx(V1e, { children: /* @__PURE__ */ R.jsxs(
|
|
@@ -86198,7 +86200,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86198
86200
|
const _e = (90 - a) * Math.PI / 180;
|
|
86199
86201
|
return [Math.cos(_e), -Math.sin(_e)];
|
|
86200
86202
|
}, [a]), rs = fe([]), Le = fe(0);
|
|
86201
|
-
|
|
86203
|
+
nt(() => {
|
|
86202
86204
|
const _e = Math.floor(r * o), Ge = Math.floor(r * l);
|
|
86203
86205
|
rs.current = Array.from(
|
|
86204
86206
|
{ length: n },
|
|
@@ -86207,7 +86209,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86207
86209
|
return ns < _e ? bs = "coherent" : ns < _e + Ge ? bs = "opposite" : bs = D, Nye(bs, h, Et);
|
|
86208
86210
|
})
|
|
86209
86211
|
);
|
|
86210
|
-
}, []),
|
|
86212
|
+
}, []), nt(() => {
|
|
86211
86213
|
typeof G == "number" && G >= 20 && G <= 300 && (et.current = 1e3 / G, Yt.current = !0);
|
|
86212
86214
|
}, [G]), AP(e, () => ({
|
|
86213
86215
|
getStats: () => ({
|
|
@@ -86317,9 +86319,9 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86317
86319
|
V
|
|
86318
86320
|
]
|
|
86319
86321
|
);
|
|
86320
|
-
return
|
|
86322
|
+
return nt(() => (re.current = requestAnimationFrame(Ct), () => {
|
|
86321
86323
|
re.current && cancelAnimationFrame(re.current);
|
|
86322
|
-
}), [Ct]),
|
|
86324
|
+
}), [Ct]), nt(() => {
|
|
86323
86325
|
const _e = oe.current;
|
|
86324
86326
|
if (!_e) return;
|
|
86325
86327
|
const Ge = window.devicePixelRatio || 1;
|
|
@@ -86390,22 +86392,22 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86390
86392
|
measuredRefreshRate: (Te == null ? void 0 : Te.measuredRefreshRate) ?? null
|
|
86391
86393
|
});
|
|
86392
86394
|
}, []);
|
|
86393
|
-
return
|
|
86395
|
+
return nt(() => {
|
|
86394
86396
|
if (_ <= 0) return;
|
|
86395
86397
|
const Le = setTimeout(() => Gt(!0), _);
|
|
86396
86398
|
return () => clearTimeout(Le);
|
|
86397
|
-
}, [_]),
|
|
86399
|
+
}, [_]), nt(() => {
|
|
86398
86400
|
const Le = t ?? c;
|
|
86399
86401
|
if (Le <= 0) return;
|
|
86400
86402
|
const st = setTimeout(() => Et(!1), _ + Le);
|
|
86401
86403
|
return () => clearTimeout(st);
|
|
86402
|
-
}, [_, t, c]),
|
|
86404
|
+
}, [_, t, c]), nt(() => {
|
|
86403
86405
|
if (c <= 0) return;
|
|
86404
86406
|
const Le = setTimeout(() => {
|
|
86405
86407
|
rs(ge.current, te.current);
|
|
86406
86408
|
}, _ + c);
|
|
86407
86409
|
return () => clearTimeout(Le);
|
|
86408
|
-
}, [_, c, rs]),
|
|
86410
|
+
}, [_, c, rs]), nt(() => {
|
|
86409
86411
|
const Le = (st) => {
|
|
86410
86412
|
if (Ie.current || ge.current) return;
|
|
86411
86413
|
const Mt = st.key.toLowerCase(), zt = h.length > 0 ? h.map((Ct) => Ct.toLowerCase()) : null;
|
|
@@ -86548,7 +86550,7 @@ function pCe({
|
|
|
86548
86550
|
const q = a.instructions.length;
|
|
86549
86551
|
return q > 0 ? d / q : 0;
|
|
86550
86552
|
}, [d, a.instructions]);
|
|
86551
|
-
|
|
86553
|
+
nt(() => {
|
|
86552
86554
|
window.scrollTo(0, 0);
|
|
86553
86555
|
}, [d]);
|
|
86554
86556
|
function T(q) {
|
|
@@ -86603,7 +86605,7 @@ function pCe({
|
|
|
86603
86605
|
return H = requestAnimationFrame(Y), ne;
|
|
86604
86606
|
}, []), D = ({ children: q, collectRefreshRate: Q }) => {
|
|
86605
86607
|
const _ = fe(null), B = fe(null);
|
|
86606
|
-
|
|
86608
|
+
nt(() => {
|
|
86607
86609
|
if (_.current = Qs(), Q)
|
|
86608
86610
|
return L((j) => {
|
|
86609
86611
|
B.current = j, T({ _reactiveScreenRefreshRate: j });
|
|
@@ -86628,7 +86630,7 @@ function pCe({
|
|
|
86628
86630
|
const q = V.content;
|
|
86629
86631
|
return !Xf(q) || q.simulate === !1 ? !1 : !!q.simulate || !!q.simulators;
|
|
86630
86632
|
}, [d, y, V]);
|
|
86631
|
-
|
|
86633
|
+
nt(() => {
|
|
86632
86634
|
I && m.current !== d && (m.current = d, (async () => {
|
|
86633
86635
|
const q = V.content, { trialProps: Q, simulateFn: _, simulators: B } = wV(q, o.current, c.current), H = await _(
|
|
86634
86636
|
Q,
|