@adriansteffan/reactive 0.1.24 → 0.1.26
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/.claude/settings.local.json +5 -1
- package/dist/{mod-fBXh2yt0.js → mod-BDgNS_RM.js} +119 -114
- package/dist/reactive.es.js +1 -1
- package/dist/reactive.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{web-DEK1IMF9.js → web-DoEAzxsg.js} +1 -1
- package/dist/{web-B1R-GYWu.js → web-tvqjQ4Sx.js} +1 -1
- package/package.json +1 -1
- package/src/components/experimentprovider.tsx +14 -1
- package/src/components/quest.tsx +1 -1
- package/src/index.css +6 -0
|
@@ -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 st, useState as nt, 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) {
|
|
@@ -17328,8 +17328,8 @@ function Rae() {
|
|
|
17328
17328
|
{
|
|
17329
17329
|
var Fe = g.ReactDebugCurrentFrame, bt = Fe.getStackAddendum();
|
|
17330
17330
|
bt !== "" && (ie += "%s", me = me.concat([bt]));
|
|
17331
|
-
var Pt = me.map(function(
|
|
17332
|
-
return String(
|
|
17331
|
+
var Pt = me.map(function(rt) {
|
|
17332
|
+
return String(rt);
|
|
17333
17333
|
});
|
|
17334
17334
|
Pt.unshift("Warning: " + ie), Function.prototype.apply.call(console[N], console, Pt);
|
|
17335
17335
|
}
|
|
@@ -17388,9 +17388,9 @@ function Rae() {
|
|
|
17388
17388
|
var Fe = N.displayName || null;
|
|
17389
17389
|
return Fe !== null ? Fe : _(N.type) || "Memo";
|
|
17390
17390
|
case d: {
|
|
17391
|
-
var bt = N, Pt = bt._payload,
|
|
17391
|
+
var bt = N, Pt = bt._payload, rt = bt._init;
|
|
17392
17392
|
try {
|
|
17393
|
-
return _(
|
|
17393
|
+
return _(rt(Pt));
|
|
17394
17394
|
} catch {
|
|
17395
17395
|
return null;
|
|
17396
17396
|
}
|
|
@@ -17495,27 +17495,27 @@ function Rae() {
|
|
|
17495
17495
|
Pt = te.current, te.current = null, Ie();
|
|
17496
17496
|
try {
|
|
17497
17497
|
if (ie) {
|
|
17498
|
-
var
|
|
17498
|
+
var rt = function() {
|
|
17499
17499
|
throw Error();
|
|
17500
17500
|
};
|
|
17501
|
-
if (Object.defineProperty(
|
|
17501
|
+
if (Object.defineProperty(rt.prototype, "props", {
|
|
17502
17502
|
set: function() {
|
|
17503
17503
|
throw Error();
|
|
17504
17504
|
}
|
|
17505
17505
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
17506
17506
|
try {
|
|
17507
|
-
Reflect.construct(
|
|
17507
|
+
Reflect.construct(rt, []);
|
|
17508
17508
|
} catch ($s) {
|
|
17509
17509
|
Fe = $s;
|
|
17510
17510
|
}
|
|
17511
|
-
Reflect.construct(N, [],
|
|
17511
|
+
Reflect.construct(N, [], rt);
|
|
17512
17512
|
} else {
|
|
17513
17513
|
try {
|
|
17514
|
-
|
|
17514
|
+
rt.call();
|
|
17515
17515
|
} catch ($s) {
|
|
17516
17516
|
Fe = $s;
|
|
17517
17517
|
}
|
|
17518
|
-
N.call(
|
|
17518
|
+
N.call(rt.prototype);
|
|
17519
17519
|
}
|
|
17520
17520
|
} else {
|
|
17521
17521
|
try {
|
|
@@ -17586,7 +17586,7 @@ function Rae() {
|
|
|
17586
17586
|
}
|
|
17587
17587
|
return "";
|
|
17588
17588
|
}
|
|
17589
|
-
var
|
|
17589
|
+
var it = Object.prototype.hasOwnProperty, Mt = {}, zt = g.ReactDebugCurrentFrame;
|
|
17590
17590
|
function Ct(N) {
|
|
17591
17591
|
if (N) {
|
|
17592
17592
|
var ie = N._owner, me = Le(N.type, N._source, ie ? ie.type : null);
|
|
@@ -17596,20 +17596,20 @@ function Rae() {
|
|
|
17596
17596
|
}
|
|
17597
17597
|
function _e(N, ie, me, Fe, bt) {
|
|
17598
17598
|
{
|
|
17599
|
-
var Pt = Function.call.bind(
|
|
17600
|
-
for (var
|
|
17601
|
-
if (Pt(N,
|
|
17599
|
+
var Pt = Function.call.bind(it);
|
|
17600
|
+
for (var rt in N)
|
|
17601
|
+
if (Pt(N, rt)) {
|
|
17602
17602
|
var Ye = void 0;
|
|
17603
17603
|
try {
|
|
17604
|
-
if (typeof N[
|
|
17605
|
-
var As = Error((Fe || "React class") + ": " + me + " type `" +
|
|
17604
|
+
if (typeof N[rt] != "function") {
|
|
17605
|
+
var As = Error((Fe || "React class") + ": " + me + " type `" + rt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof N[rt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
17606
17606
|
throw As.name = "Invariant Violation", As;
|
|
17607
17607
|
}
|
|
17608
|
-
Ye = N[
|
|
17608
|
+
Ye = N[rt](ie, rt, Fe, me, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
17609
17609
|
} catch (jt) {
|
|
17610
17610
|
Ye = jt;
|
|
17611
17611
|
}
|
|
17612
|
-
Ye && !(Ye instanceof Error) && (Ct(bt), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Fe || "React class", me,
|
|
17612
|
+
Ye && !(Ye instanceof Error) && (Ct(bt), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Fe || "React class", me, rt, typeof Ye), Ct(null)), Ye instanceof Error && !(Ye.message in Mt) && (Mt[Ye.message] = !0, Ct(bt), b("Failed %s type: %s", me, Ye.message), Ct(null));
|
|
17613
17613
|
}
|
|
17614
17614
|
}
|
|
17615
17615
|
}
|
|
@@ -17644,7 +17644,7 @@ function Rae() {
|
|
|
17644
17644
|
__source: !0
|
|
17645
17645
|
}, _i, Gs;
|
|
17646
17646
|
function Di(N) {
|
|
17647
|
-
if (
|
|
17647
|
+
if (it.call(N, "ref")) {
|
|
17648
17648
|
var ie = Object.getOwnPropertyDescriptor(N, "ref").get;
|
|
17649
17649
|
if (ie && ie.isReactWarning)
|
|
17650
17650
|
return !1;
|
|
@@ -17652,7 +17652,7 @@ function Rae() {
|
|
|
17652
17652
|
return N.ref !== void 0;
|
|
17653
17653
|
}
|
|
17654
17654
|
function da(N) {
|
|
17655
|
-
if (
|
|
17655
|
+
if (it.call(N, "key")) {
|
|
17656
17656
|
var ie = Object.getOwnPropertyDescriptor(N, "key").get;
|
|
17657
17657
|
if (ie && ie.isReactWarning)
|
|
17658
17658
|
return !1;
|
|
@@ -17684,7 +17684,7 @@ function Rae() {
|
|
|
17684
17684
|
});
|
|
17685
17685
|
}
|
|
17686
17686
|
}
|
|
17687
|
-
var X = function(N, ie, me, Fe, bt, Pt,
|
|
17687
|
+
var X = function(N, ie, me, Fe, bt, Pt, rt) {
|
|
17688
17688
|
var Ye = {
|
|
17689
17689
|
// This tag allows us to uniquely identify this as a React Element
|
|
17690
17690
|
$$typeof: e,
|
|
@@ -17692,7 +17692,7 @@ function Rae() {
|
|
|
17692
17692
|
type: N,
|
|
17693
17693
|
key: ie,
|
|
17694
17694
|
ref: me,
|
|
17695
|
-
props:
|
|
17695
|
+
props: rt,
|
|
17696
17696
|
// Record the component responsible for creating this element.
|
|
17697
17697
|
_owner: Pt
|
|
17698
17698
|
};
|
|
@@ -17715,20 +17715,20 @@ function Rae() {
|
|
|
17715
17715
|
};
|
|
17716
17716
|
function ae(N, ie, me, Fe, bt) {
|
|
17717
17717
|
{
|
|
17718
|
-
var Pt,
|
|
17718
|
+
var Pt, rt = {}, Ye = null, As = null;
|
|
17719
17719
|
me !== void 0 && (Ur(me), Ye = "" + me), da(ie) && (Ur(ie.key), Ye = "" + ie.key), Di(ie) && (As = ie.ref, Cn(ie, bt));
|
|
17720
17720
|
for (Pt in ie)
|
|
17721
|
-
|
|
17721
|
+
it.call(ie, Pt) && !Ws.hasOwnProperty(Pt) && (rt[Pt] = ie[Pt]);
|
|
17722
17722
|
if (N && N.defaultProps) {
|
|
17723
17723
|
var jt = N.defaultProps;
|
|
17724
17724
|
for (Pt in jt)
|
|
17725
|
-
|
|
17725
|
+
rt[Pt] === void 0 && (rt[Pt] = jt[Pt]);
|
|
17726
17726
|
}
|
|
17727
17727
|
if (Ye || As) {
|
|
17728
17728
|
var Kt = typeof N == "function" ? N.displayName || N.name || "Unknown" : N;
|
|
17729
|
-
Ye && Z(
|
|
17729
|
+
Ye && Z(rt, Kt), As && se(rt, Kt);
|
|
17730
17730
|
}
|
|
17731
|
-
return X(N, Ye, As, bt, Fe, js.current,
|
|
17731
|
+
return X(N, Ye, As, bt, Fe, js.current, rt);
|
|
17732
17732
|
}
|
|
17733
17733
|
}
|
|
17734
17734
|
var de = g.ReactCurrentOwner, Ae = g.ReactDebugCurrentFrame;
|
|
@@ -17799,8 +17799,8 @@ Check the top-level render call using <` + me + ">.");
|
|
|
17799
17799
|
else if (N) {
|
|
17800
17800
|
var bt = m(N);
|
|
17801
17801
|
if (typeof bt == "function" && bt !== N.entries)
|
|
17802
|
-
for (var Pt = bt.call(N),
|
|
17803
|
-
Rs(
|
|
17802
|
+
for (var Pt = bt.call(N), rt; !(rt = Pt.next()).done; )
|
|
17803
|
+
Rs(rt.value) && Bu(rt.value, ie);
|
|
17804
17804
|
}
|
|
17805
17805
|
}
|
|
17806
17806
|
}
|
|
@@ -17844,8 +17844,8 @@ Check the top-level render call using <` + me + ">.");
|
|
|
17844
17844
|
var Hu = {};
|
|
17845
17845
|
function Qu(N, ie, me, Fe, bt, Pt) {
|
|
17846
17846
|
{
|
|
17847
|
-
var
|
|
17848
|
-
if (!
|
|
17847
|
+
var rt = M(N);
|
|
17848
|
+
if (!rt) {
|
|
17849
17849
|
var Ye = "";
|
|
17850
17850
|
(N === void 0 || typeof N == "object" && N !== null && Object.keys(N).length === 0) && (Ye += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
17851
17851
|
var As = Za();
|
|
@@ -17856,7 +17856,7 @@ Check the top-level render call using <` + me + ">.");
|
|
|
17856
17856
|
var Kt = ae(N, ie, me, bt, Pt);
|
|
17857
17857
|
if (Kt == null)
|
|
17858
17858
|
return Kt;
|
|
17859
|
-
if (
|
|
17859
|
+
if (rt) {
|
|
17860
17860
|
var si = ie.children;
|
|
17861
17861
|
if (si !== void 0)
|
|
17862
17862
|
if (Fe)
|
|
@@ -17869,7 +17869,7 @@ Check the top-level render call using <` + me + ">.");
|
|
|
17869
17869
|
else
|
|
17870
17870
|
$u(si, N);
|
|
17871
17871
|
}
|
|
17872
|
-
if (
|
|
17872
|
+
if (it.call(ie, "key")) {
|
|
17873
17873
|
var jr = _(N), $s = Object.keys(ie).filter(function(mp) {
|
|
17874
17874
|
return mp !== "key";
|
|
17875
17875
|
}), cl = $s.length > 0 ? "{key: someKey, " + $s.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
@@ -17918,9 +17918,9 @@ function wv({
|
|
|
17918
17918
|
allowedKeys: a = !1
|
|
17919
17919
|
}) {
|
|
17920
17920
|
const o = fe(0);
|
|
17921
|
-
|
|
17921
|
+
st(() => {
|
|
17922
17922
|
window.scrollTo(0, 0);
|
|
17923
|
-
}, []),
|
|
17923
|
+
}, []), st(() => {
|
|
17924
17924
|
o.current = Qs();
|
|
17925
17925
|
const u = (h) => {
|
|
17926
17926
|
const c = Qs();
|
|
@@ -18001,7 +18001,7 @@ function Aae({
|
|
|
18001
18001
|
storeupdate: a,
|
|
18002
18002
|
placeholder: o = "Enter your response here"
|
|
18003
18003
|
}) {
|
|
18004
|
-
const [l, u] =
|
|
18004
|
+
const [l, u] = nt(""), h = (d) => {
|
|
18005
18005
|
u(d.target.value);
|
|
18006
18006
|
}, c = () => {
|
|
18007
18007
|
a && r(a(l)), s({ value: l });
|
|
@@ -18198,7 +18198,7 @@ function $ae(i) {
|
|
|
18198
18198
|
}
|
|
18199
18199
|
const Hae = ({ stream: i }) => {
|
|
18200
18200
|
const e = fe(null), t = fe(null), s = fe(null), r = fe([]);
|
|
18201
|
-
return
|
|
18201
|
+
return st(() => {
|
|
18202
18202
|
if (!i || !e.current) return;
|
|
18203
18203
|
const n = new (window.AudioContext || window.webkitAudioContext)(), a = n.createAnalyser(), o = n.createMediaStreamSource(i);
|
|
18204
18204
|
a.fftSize = 2048, o.connect(a), s.current = a;
|
|
@@ -18265,7 +18265,7 @@ const Hae = ({ stream: i }) => {
|
|
|
18265
18265
|
handleSaveVoiceData: e,
|
|
18266
18266
|
handleDiscardVoiceData: t
|
|
18267
18267
|
}) => {
|
|
18268
|
-
const [s, r] =
|
|
18268
|
+
const [s, r] = nt(!1), [n, a] = nt(null), [o, l] = nt(null), u = fe(null), h = fe([]), c = async () => {
|
|
18269
18269
|
try {
|
|
18270
18270
|
const v = window.audioInputId, m = {
|
|
18271
18271
|
audio: v ? {
|
|
@@ -18361,8 +18361,8 @@ function Uae({
|
|
|
18361
18361
|
onMicrophoneSelect: i
|
|
18362
18362
|
}) {
|
|
18363
18363
|
var u;
|
|
18364
|
-
const [e, t] =
|
|
18365
|
-
|
|
18364
|
+
const [e, t] = nt([]), [s, r] = nt(""), [n, a] = nt(!1);
|
|
18365
|
+
st(() => {
|
|
18366
18366
|
navigator.mediaDevices.getUserMedia({ audio: !0 }).then(() => {
|
|
18367
18367
|
navigator.mediaDevices.enumerateDevices().then((h) => {
|
|
18368
18368
|
const c = h.filter((d) => d.kind === "audioinput").map((d) => ({
|
|
@@ -18433,7 +18433,7 @@ function Uae({
|
|
|
18433
18433
|
] });
|
|
18434
18434
|
}
|
|
18435
18435
|
const zae = ({ next: i }) => {
|
|
18436
|
-
const [e, t] =
|
|
18436
|
+
const [e, t] = nt(!1);
|
|
18437
18437
|
return /* @__PURE__ */ R.jsxs("div", { className: "max-w-prose mx-auto mt-20 mb-20 px-4 ", children: [
|
|
18438
18438
|
/* @__PURE__ */ R.jsxs("article", { className: "prose prose-2xl prose-slate text-xl text-black leading-relaxed", children: [
|
|
18439
18439
|
/* @__PURE__ */ R.jsx("h1", { className: "text-3xl mb-6 font-semibold", children: "Let's test your microphone!" }),
|
|
@@ -21586,7 +21586,7 @@ const Vv = (
|
|
|
21586
21586
|
Expression: Xa
|
|
21587
21587
|
};
|
|
21588
21588
|
let o = Xa;
|
|
21589
|
-
const l = "||", u = "or", h = "&&", c = "and", d = "<=", f = "lessorequal", y = ">=", v = "greaterorequal", m = "==", g = "equal", b = "=", x = "!=", T = "notequal", A = "<", L = "less", D = ">", V = "greater", I = "+", M = "-", q = "*", Q = "/", _ = "%", B = "^", H = "power", $ = "*=", j = "contains", G = "contain", ne = "notcontains", Y = "notcontain", oe = "anyof", re = "allof", ue = "noneof", Ie = "(", ge = "!", te = "negate", we = "empty", et = "notempty", Yt = "undefined", Gt = "null", Is = "{", Et = "}", cs = "''", rs = '""', Le = "'",
|
|
21589
|
+
const l = "||", u = "or", h = "&&", c = "and", d = "<=", f = "lessorequal", y = ">=", v = "greaterorequal", m = "==", g = "equal", b = "=", x = "!=", T = "notequal", A = "<", L = "less", D = ">", V = "greater", I = "+", M = "-", q = "*", Q = "/", _ = "%", B = "^", H = "power", $ = "*=", j = "contains", G = "contain", ne = "notcontains", Y = "notcontain", oe = "anyof", re = "allof", ue = "noneof", Ie = "(", ge = "!", te = "negate", we = "empty", et = "notempty", Yt = "undefined", Gt = "null", Is = "{", Et = "}", cs = "''", rs = '""', Le = "'", it = '"', Mt = "[", zt = "]", Ct = ",", _e = "true", Ge = "false", Te = "0x", ns = ".", bs = "0", ws = "\\'", Ur = '\\"', js = /^[\-]/, Ws = /^[^"']/, _i = /^[^{}]/, Gs = /^[0-9]/, Di = /^[1-9]/, da = /^[a-zA-Z_]/, Cn = /^[ \t\n\r]/, Z = Pe("||", !1), se = Pe("or", !0), X = Pe("&&", !1), ae = Pe("and", !0), de = Pe("<=", !1), Ae = Pe("lessorequal", !0), je = Pe(">=", !1), as = Pe("greaterorequal", !0), Rs = Pe("==", !1), zr = Pe("equal", !0), Za = Pe("=", !1), pa = Pe("!=", !1), op = Pe("notequal", !0), Bu = Pe("<", !1), $u = Pe("less", !0), lp = Pe(">", !1), up = Pe("greater", !0), Hu = Pe("+", !1), Qu = Pe("-", !1), hp = Pe("*", !1), cp = Pe("/", !1), dp = Pe("%", !1), pp = Pe("^", !1), N = Pe("power", !0), ie = Pe("*=", !1), me = Pe("contains", !0), Fe = Pe("contain", !0), bt = Pe("notcontains", !0), Pt = Pe("notcontain", !0), rt = Pe("anyof", !0), Ye = Pe("allof", !0), As = Pe("noneof", !0), jt = Pe("(", !1), Kt = Pe(")", !1), si = Pe("!", !1), bn = Pe("negate", !0), jr = Pe("empty", !0), $s = Pe("notempty", !0), cl = Pe("undefined", !1), fp = Pe("null", !1), mp = Pe("{", !1), Y4 = Pe("}", !1), X4 = Pe("''", !1), eT = Pe('""', !1), N0 = Pe("'", !1), F0 = Pe('"', !1), tT = Pe("[", !1), sT = Pe("]", !1), q0 = Pe(",", !1), iT = Pe("true", !0), rT = Pe("false", !0), nT = Pe("0x", !1), aT = fa(["-"], !1, !1, !1), oT = Pe(".", !1), lT = Pe("0", !1), uT = Pe("\\'", !1), hT = Pe('\\"', !1), cT = fa(['"', "'"], !0, !1, !1), dT = fa(["{", "}"], !0, !1, !1), B0 = fa([["0", "9"]], !1, !1, !1), $0 = fa([["1", "9"]], !1, !1, !1), H0 = fa([["a", "z"], ["A", "Z"], "_"], !1, !1, !1), Q0 = fa([" ", " ", `
|
|
21590
21590
|
`, "\r"], !1, !1, !1);
|
|
21591
21591
|
function pT(C, w) {
|
|
21592
21592
|
return ma(C, w, !0);
|
|
@@ -21977,7 +21977,7 @@ const Vv = (
|
|
|
21977
21977
|
function Y0() {
|
|
21978
21978
|
let C, w;
|
|
21979
21979
|
const z = E * 34 + 13, O = ve[z];
|
|
21980
|
-
return O ? (E = O.nextPos, O.result) : (C = E, t.substr(E, 2) === $ ? (w = $, E += 2) : (w = r, he === 0 && ce(ie)), w === r && (w = t.substr(E, 8), w.toLowerCase() === j ? E += 8 : (w = r, he === 0 && ce(me)), w === r && (w = t.substr(E, 7), w.toLowerCase() === G ? E += 7 : (w = r, he === 0 && ce(Fe)))), w !== r && (xe = C, w = OT()), C = w, C === r && (C = E, w = t.substr(E, 11), w.toLowerCase() === ne ? E += 11 : (w = r, he === 0 && ce(bt)), w === r && (w = t.substr(E, 10), w.toLowerCase() === Y ? E += 10 : (w = r, he === 0 && ce(Pt))), w !== r && (xe = C, w = MT()), C = w, C === r && (C = E, w = t.substr(E, 5), w.toLowerCase() === oe ? E += 5 : (w = r, he === 0 && ce(
|
|
21980
|
+
return O ? (E = O.nextPos, O.result) : (C = E, t.substr(E, 2) === $ ? (w = $, E += 2) : (w = r, he === 0 && ce(ie)), w === r && (w = t.substr(E, 8), w.toLowerCase() === j ? E += 8 : (w = r, he === 0 && ce(me)), w === r && (w = t.substr(E, 7), w.toLowerCase() === G ? E += 7 : (w = r, he === 0 && ce(Fe)))), w !== r && (xe = C, w = OT()), C = w, C === r && (C = E, w = t.substr(E, 11), w.toLowerCase() === ne ? E += 11 : (w = r, he === 0 && ce(bt)), w === r && (w = t.substr(E, 10), w.toLowerCase() === Y ? E += 10 : (w = r, he === 0 && ce(Pt))), w !== r && (xe = C, w = MT()), C = w, C === r && (C = E, w = t.substr(E, 5), w.toLowerCase() === oe ? E += 5 : (w = r, he === 0 && ce(rt)), w !== r && (xe = C, w = NT()), C = w, C === r && (C = E, w = t.substr(E, 5), w.toLowerCase() === re ? E += 5 : (w = r, he === 0 && ce(Ye)), w !== r && (xe = C, w = FT()), C = w, C === r && (C = E, w = t.substr(E, 6), w.toLowerCase() === ue ? E += 6 : (w = r, he === 0 && ce(As)), w !== r && (xe = C, w = qT()), C = w)))), ve[z] = { nextPos: E, result: C }, C);
|
|
21981
21981
|
}
|
|
21982
21982
|
function zu() {
|
|
21983
21983
|
let C, w, z;
|
|
@@ -22007,7 +22007,7 @@ const Vv = (
|
|
|
22007
22007
|
function CP() {
|
|
22008
22008
|
let C, w, z, O;
|
|
22009
22009
|
const J = E * 34 + 19, le = ve[J];
|
|
22010
|
-
return le ? (E = le.nextPos, le.result) : (C = E, w = wP(), w !== r && (xe = C, w = w), C = w, C === r && (C = E, w = xP(), w !== r && (xe = C, w = w), C = w, C === r && (C = E, w = r1(), w !== r && (xe = C, w = w), C = w, C === r && (C = E, t.substr(E, 2) === cs ? (w = cs, E += 2) : (w = r, he === 0 && ce(X4)), w !== r && (xe = C, w = GT()), C = w, C === r && (C = E, t.substr(E, 2) === rs ? (w = rs, E += 2) : (w = r, he === 0 && ce(eT)), w !== r && (xe = C, w = KT()), C = w, C === r && (C = E, t.charCodeAt(E) === 39 ? (w = Le, E++) : (w = r, he === 0 && ce(N0)), w !== r ? (z = t1(), z !== r ? (t.charCodeAt(E) === 39 ? (O = Le, E++) : (O = r, he === 0 && ce(N0)), O !== r ? (xe = C, C = ZT(z)) : (E = C, C = r)) : (E = C, C = r)) : (E = C, C = r), C === r && (C = E, t.charCodeAt(E) === 34 ? (w =
|
|
22010
|
+
return le ? (E = le.nextPos, le.result) : (C = E, w = wP(), w !== r && (xe = C, w = w), C = w, C === r && (C = E, w = xP(), w !== r && (xe = C, w = w), C = w, C === r && (C = E, w = r1(), w !== r && (xe = C, w = w), C = w, C === r && (C = E, t.substr(E, 2) === cs ? (w = cs, E += 2) : (w = r, he === 0 && ce(X4)), w !== r && (xe = C, w = GT()), C = w, C === r && (C = E, t.substr(E, 2) === rs ? (w = rs, E += 2) : (w = r, he === 0 && ce(eT)), w !== r && (xe = C, w = KT()), C = w, C === r && (C = E, t.charCodeAt(E) === 39 ? (w = Le, E++) : (w = r, he === 0 && ce(N0)), w !== r ? (z = t1(), z !== r ? (t.charCodeAt(E) === 39 ? (O = Le, E++) : (O = r, he === 0 && ce(N0)), O !== r ? (xe = C, C = ZT(z)) : (E = C, C = r)) : (E = C, C = r)) : (E = C, C = r), C === r && (C = E, t.charCodeAt(E) === 34 ? (w = it, E++) : (w = r, he === 0 && ce(F0)), w !== r ? (z = t1(), z !== r ? (t.charCodeAt(E) === 34 ? (O = it, E++) : (O = r, he === 0 && ce(F0)), O !== r ? (xe = C, C = JT(z)) : (E = C, C = r)) : (E = C, C = r)) : (E = C, C = r))))))), ve[J] = { nextPos: E, result: C }, C);
|
|
22011
22011
|
}
|
|
22012
22012
|
function bP() {
|
|
22013
22013
|
let C, w, z, O;
|
|
@@ -70465,7 +70465,7 @@ function $ce({
|
|
|
70465
70465
|
);
|
|
70466
70466
|
return n.onComplete.add(a), /* @__PURE__ */ R.jsxs("div", { className: `min-h-screen ${r ?? ""}`, children: [
|
|
70467
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]" }),
|
|
70468
|
-
/* @__PURE__ */ R.jsx("div", { className:
|
|
70468
|
+
/* @__PURE__ */ R.jsx("div", { className: `max-w-4xl mx-auto px-4${r ? " quest-custom-bg" : ""}`, children: /* @__PURE__ */ R.jsx(_S, { model: n }) })
|
|
70469
70469
|
] });
|
|
70470
70470
|
}
|
|
70471
70471
|
var Du = class {
|
|
@@ -72485,7 +72485,7 @@ function Nde() {
|
|
|
72485
72485
|
const ae = se;
|
|
72486
72486
|
te > xf - ae ? (X = Z, ge |= X << te & 65535, cs(ge), ge = X >>> xf - te, te += ae - xf) : (ge |= Z << te & 65535, te += ae);
|
|
72487
72487
|
}
|
|
72488
|
-
function
|
|
72488
|
+
function it(Z, se) {
|
|
72489
72489
|
const X = Z * 2;
|
|
72490
72490
|
Le(se[X] & 65535, se[X + 1] & 65535);
|
|
72491
72491
|
}
|
|
@@ -72495,9 +72495,9 @@ function Nde() {
|
|
|
72495
72495
|
if (de = Ae, Ae = Z[(X + 1) * 2 + 1], !(++je < as && de == Ae)) {
|
|
72496
72496
|
if (je < Rs)
|
|
72497
72497
|
do
|
|
72498
|
-
|
|
72498
|
+
it(de, j);
|
|
72499
72499
|
while (--je !== 0);
|
|
72500
|
-
else de !== 0 ? (de != ae && (
|
|
72500
|
+
else de !== 0 ? (de != ae && (it(de, j), je--), it(a2, j), Le(je - 3, 2)) : je <= 10 ? (it(o2, j), Le(je - 3, 3)) : (it(l2, j), Le(je - 11, 7));
|
|
72501
72501
|
je = 0, ae = de, Ae === 0 ? (as = 138, Rs = 3) : de == Ae ? (as = 6, Rs = 3) : (as = 7, Rs = 4);
|
|
72502
72502
|
}
|
|
72503
72503
|
}
|
|
@@ -72511,7 +72511,7 @@ function Nde() {
|
|
|
72511
72511
|
te == 16 ? (cs(ge), ge = 0, te = 0) : te >= 8 && (Et(ge & 255), ge >>>= 8, te -= 8);
|
|
72512
72512
|
}
|
|
72513
72513
|
function _e() {
|
|
72514
|
-
Le(Sf << 1, 3),
|
|
72514
|
+
Le(Sf << 1, 3), it(Il, Os.static_ltree), Ct(), 1 + Ie + 10 - te < 9 && (Le(Sf << 1, 3), it(Il, Os.static_ltree), Ct()), Ie = 7;
|
|
72515
72515
|
}
|
|
72516
72516
|
function Ge(Z, se) {
|
|
72517
72517
|
let X, ae, de;
|
|
@@ -72527,9 +72527,9 @@ function Nde() {
|
|
|
72527
72527
|
let X, ae, de = 0, Ae, je;
|
|
72528
72528
|
if (re !== 0)
|
|
72529
72529
|
do
|
|
72530
|
-
X = i.dist_buf[de], ae = i.lc_buf[de], de++, X === 0 ?
|
|
72530
|
+
X = i.dist_buf[de], ae = i.lc_buf[de], de++, X === 0 ? it(ae, Z) : (Ae = Ft._length_code[ae], it(Ae + Mc + 1, Z), je = Ft.extra_lbits[Ae], je !== 0 && (ae -= Ft.base_length[Ae], Le(ae, je)), X--, Ae = Ft.d_code(X), it(Ae, se), je = Ft.extra_dbits[Ae], je !== 0 && (X -= Ft.base_dist[Ae], Le(X, je)));
|
|
72531
72531
|
while (de < re);
|
|
72532
|
-
|
|
72532
|
+
it(Il, Z), Ie = Z[Il * 2 + 1];
|
|
72533
72533
|
}
|
|
72534
72534
|
function ns() {
|
|
72535
72535
|
te > 8 ? cs(ge) : te > 0 && Et(ge & 255), ge = 0, te = 0;
|
|
@@ -78168,13 +78168,13 @@ async function Qfe(i, e, t, s) {
|
|
|
78168
78168
|
});
|
|
78169
78169
|
const cs = jfe(s), rs = Gfe(s), Le = lt(cs.localHeaderArray, rs.dataDescriptorArray);
|
|
78170
78170
|
Y = Le + ne, i.options.usdz && (Y += Y + 64), i.pendingEntriesSize += Y;
|
|
78171
|
-
let
|
|
78171
|
+
let it;
|
|
78172
78172
|
try {
|
|
78173
|
-
|
|
78173
|
+
it = await Ufe(i, e, t, { headerInfo: cs, dataDescriptorInfo: rs, metadataSize: Le }, s);
|
|
78174
78174
|
} finally {
|
|
78175
78175
|
i.pendingEntriesSize -= Y;
|
|
78176
78176
|
}
|
|
78177
|
-
return Object.assign(
|
|
78177
|
+
return Object.assign(it, { name: e, comment: a, extraField: G }), new X3(it);
|
|
78178
78178
|
}
|
|
78179
78179
|
async function Ufe(i, e, t, s, r) {
|
|
78180
78180
|
const {
|
|
@@ -78286,7 +78286,7 @@ async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
|
|
|
78286
78286
|
externalFileAttribute: cs,
|
|
78287
78287
|
useCompressionStream: rs,
|
|
78288
78288
|
passThrough: Le
|
|
78289
|
-
} = a,
|
|
78289
|
+
} = a, it = {
|
|
78290
78290
|
lock: s,
|
|
78291
78291
|
versionMadeBy: oe,
|
|
78292
78292
|
zip64: _,
|
|
@@ -78348,7 +78348,7 @@ async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
|
|
|
78348
78348
|
uncompressedSize: zt,
|
|
78349
78349
|
headerInfo: o,
|
|
78350
78350
|
dataDescriptorInfo: l
|
|
78351
|
-
}, a), ne && await Rr(_e, L), Object.assign(
|
|
78351
|
+
}, a), ne && await Rr(_e, L), Object.assign(it, {
|
|
78352
78352
|
uncompressedSize: zt,
|
|
78353
78353
|
compressedSize: Ct,
|
|
78354
78354
|
lastModDate: d,
|
|
@@ -78368,7 +78368,7 @@ async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
|
|
|
78368
78368
|
zip64CompressedSize: H,
|
|
78369
78369
|
zip64Offset: $,
|
|
78370
78370
|
zip64DiskNumberStart: j
|
|
78371
|
-
}),
|
|
78371
|
+
}), it;
|
|
78372
78372
|
}
|
|
78373
78373
|
function jfe(i) {
|
|
78374
78374
|
const {
|
|
@@ -78649,7 +78649,7 @@ var Ym;
|
|
|
78649
78649
|
i.UTF8 = "utf8", i.ASCII = "ascii", i.UTF16 = "utf16";
|
|
78650
78650
|
})(Ym || (Ym = {}));
|
|
78651
78651
|
const Ea = wu("Filesystem", {
|
|
78652
|
-
web: () => import("./web-
|
|
78652
|
+
web: () => import("./web-DoEAzxsg.js").then((i) => new i.FilesystemWeb())
|
|
78653
78653
|
});
|
|
78654
78654
|
vi("Upload", async (i, e, t, s) => {
|
|
78655
78655
|
const r = i.sessionID || `sim_${Date.now()}_${Math.floor(Lt(0, 2176782336)).toString(36)}`, n = VV({
|
|
@@ -78801,7 +78801,7 @@ function ime({
|
|
|
78801
78801
|
uploadingContent: d,
|
|
78802
78802
|
errorContent: f
|
|
78803
78803
|
}) {
|
|
78804
|
-
const [y, v] =
|
|
78804
|
+
const [y, v] = nt(
|
|
78805
78805
|
"initial"
|
|
78806
78806
|
), m = fe(!1), g = Xm.find((V) => V.name === "upload"), b = Xm.find((V) => V.name === "download"), x = Oo(g.name, g.defaultValue, g.type), T = Oo(b.name, b.defaultValue, b.type), A = mde({
|
|
78807
78807
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -78866,9 +78866,9 @@ function ime({
|
|
|
78866
78866
|
e,
|
|
78867
78867
|
A
|
|
78868
78868
|
]);
|
|
78869
|
-
return
|
|
78869
|
+
return st(() => {
|
|
78870
78870
|
o && !m.current && D && D();
|
|
78871
|
-
}, [o, D]),
|
|
78871
|
+
}, [o, D]), st(() => {
|
|
78872
78872
|
y === "error" && (m.current = !1);
|
|
78873
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: [
|
|
78874
78874
|
y == "initial" && !o && /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
@@ -78912,7 +78912,7 @@ var iw;
|
|
|
78912
78912
|
i.None = "NONE", i.Slide = "SLIDE", i.Fade = "FADE";
|
|
78913
78913
|
})(iw || (iw = {}));
|
|
78914
78914
|
const t7 = wu("StatusBar"), s7 = wu("ImmersiveMode", {
|
|
78915
|
-
web: () => import("./web-
|
|
78915
|
+
web: () => import("./web-tvqjQ4Sx.js").then((i) => new i.ImmersiveModeWeb())
|
|
78916
78916
|
});
|
|
78917
78917
|
Ai("EnterFullscreen", "session");
|
|
78918
78918
|
vi("EnterFullscreen", xu, {});
|
|
@@ -78930,7 +78930,7 @@ function rme({
|
|
|
78930
78930
|
const u = /* @__PURE__ */ R.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
78931
78931
|
!!i && i,
|
|
78932
78932
|
!i && /* @__PURE__ */ R.jsx("p", { className: "", children: "Please click the Button below to enter Fullscreen mode." })
|
|
78933
|
-
] }), [h, c] =
|
|
78933
|
+
] }), [h, c] = nt(!1), d = fe(!1), f = fe(null), y = Xe(() => {
|
|
78934
78934
|
f.current && (clearTimeout(f.current), f.current = null);
|
|
78935
78935
|
}, []), v = Xe(() => {
|
|
78936
78936
|
document.removeEventListener("fullscreenchange", g), document.removeEventListener("webkitfullscreenchange", g), document.removeEventListener("mozfullscreenchange", g), document.removeEventListener("MSFullscreenChange", g), y(), d.current = !1;
|
|
@@ -78957,7 +78957,7 @@ function rme({
|
|
|
78957
78957
|
}
|
|
78958
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.");
|
|
78959
78959
|
}, [m, b, v]);
|
|
78960
|
-
return
|
|
78960
|
+
return st(() => () => {
|
|
78961
78961
|
v();
|
|
78962
78962
|
}, [v]), h ? /* @__PURE__ */ R.jsx("div", { className: `min-h-screen ${s ?? ""}` }) : /* @__PURE__ */ R.jsx(
|
|
78963
78963
|
wv,
|
|
@@ -78994,7 +78994,7 @@ function nme({
|
|
|
78994
78994
|
}, [a, n]), l = Xe(() => {
|
|
78995
78995
|
n(), t.current = !0, document.addEventListener("fullscreenchange", o), document.addEventListener("webkitfullscreenchange", o), document.addEventListener("mozfullscreenchange", o), document.addEventListener("MSFullscreenChange", o);
|
|
78996
78996
|
}, [o, n]);
|
|
78997
|
-
return
|
|
78997
|
+
return st(() => ((async () => {
|
|
78998
78998
|
if (!Ul()) {
|
|
78999
78999
|
i({});
|
|
79000
79000
|
return;
|
|
@@ -79045,7 +79045,7 @@ function ep(i) {
|
|
|
79045
79045
|
T.target === c.current && (f(), g.removeEventListener("animationend", x), g.removeEventListener("animationcancel", x), m.current === 0 && T.type !== "animationcancel" && g.classList.remove(...b));
|
|
79046
79046
|
};
|
|
79047
79047
|
g.classList.add(...b), g.addEventListener("animationend", x), g.addEventListener("animationcancel", x);
|
|
79048
|
-
}, []),
|
|
79048
|
+
}, []), st(() => {
|
|
79049
79049
|
const g = c.current, b = () => {
|
|
79050
79050
|
g.removeEventListener("animationend", b), r ? ame(g, h, n) : h();
|
|
79051
79051
|
};
|
|
@@ -79153,7 +79153,7 @@ function lme(i) {
|
|
|
79153
79153
|
}, isToastActive: n7, count: r == null ? void 0 : r.length };
|
|
79154
79154
|
}
|
|
79155
79155
|
function ume(i) {
|
|
79156
|
-
const [e, t] =
|
|
79156
|
+
const [e, t] = nt(!1), [s, r] = nt(!1), n = fe(null), a = fe({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: o, pauseOnHover: l, closeToast: u, onClick: h, closeOnClick: c } = i;
|
|
79157
79157
|
var d, f;
|
|
79158
79158
|
function y() {
|
|
79159
79159
|
t(!0);
|
|
@@ -79173,7 +79173,7 @@ function ume(i) {
|
|
|
79173
79173
|
x.style.transition = "transform 0.2s, opacity 0.2s", x.style.removeProperty("transform"), x.style.removeProperty("opacity");
|
|
79174
79174
|
}
|
|
79175
79175
|
}
|
|
79176
|
-
(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), st(() => {
|
|
79177
79177
|
if (i.pauseOnFocusLoss) return document.hasFocus() || v(), window.addEventListener("focus", y), window.addEventListener("blur", v), () => {
|
|
79178
79178
|
window.removeEventListener("focus", y), window.removeEventListener("blur", v);
|
|
79179
79179
|
};
|
|
@@ -79266,7 +79266,7 @@ Nt.loading = (i, e) => Bl(i, Bc("default", { isLoading: !0, autoClose: !1, close
|
|
|
79266
79266
|
tg.delete(i);
|
|
79267
79267
|
};
|
|
79268
79268
|
}, Nt.play = (i) => nw(!0, i), Nt.pause = (i) => nw(!1, i);
|
|
79269
|
-
const pme = typeof window < "u" ? Pg :
|
|
79269
|
+
const pme = typeof window < "u" ? Pg : st, Bh = (i) => {
|
|
79270
79270
|
let { theme: e, type: t, isLoading: s, ...r } = i;
|
|
79271
79271
|
return Ze.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: e === "colored" ? "currentColor" : `var(--toastify-icon-color-${t})`, ...r });
|
|
79272
79272
|
}, Mf = { info: function(i) {
|
|
@@ -79297,7 +79297,7 @@ const pme = typeof window < "u" ? Pg : nt, Bh = (i) => {
|
|
|
79297
79297
|
}, mme = ep(tp("bounce", !0)), oCe = ep(tp("slide", !0)), lCe = ep(tp("zoom")), uCe = ep(tp("flip")), gme = { position: "top-right", transition: mme, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
|
|
79298
79298
|
function vme(i) {
|
|
79299
79299
|
let e = { ...gme, ...i };
|
|
79300
|
-
const t = i.stacked, [s, r] =
|
|
79300
|
+
const t = i.stacked, [s, r] = nt(!0), n = fe(null), { getToastToRender: a, isToastActive: o, count: l } = lme(e), { className: u, style: h, rtl: c, containerId: d } = e;
|
|
79301
79301
|
function f(v) {
|
|
79302
79302
|
const m = Zn("Toastify__toast-container", `Toastify__toast-container--${v}`, { "Toastify__toast-container--rtl": c });
|
|
79303
79303
|
return Pi(u) ? u({ position: v, rtl: c, defaultClassName: m }) : Zn(m, rc(u));
|
|
@@ -79331,8 +79331,8 @@ const yme = ({
|
|
|
79331
79331
|
paramRegistry: i,
|
|
79332
79332
|
timelineRepresentation: e
|
|
79333
79333
|
}) => {
|
|
79334
|
-
const [t, s] =
|
|
79335
|
-
|
|
79334
|
+
const [t, s] = nt({}), [r, n] = nt([]), [a, o] = nt(""), [l, u] = nt("Copy URL"), [h, c] = nt(!1), [d, f] = nt(!1), [y, v] = nt([]), m = fe(null), g = [...i].filter((_) => _.name !== "includeSubset" && _.name !== "excludeSubset").sort((_, B) => _.name.localeCompare(B.name));
|
|
79335
|
+
st(() => {
|
|
79336
79336
|
const _ = new URLSearchParams(window.location.search), B = {}, H = [];
|
|
79337
79337
|
let $ = [], j = !1;
|
|
79338
79338
|
const G = _.get("includeSubset"), ne = _.get("excludeSubset"), Y = _.get("_b");
|
|
@@ -79395,7 +79395,7 @@ const yme = ({
|
|
|
79395
79395
|
});
|
|
79396
79396
|
}
|
|
79397
79397
|
s(B), n(H);
|
|
79398
|
-
}, [i]),
|
|
79398
|
+
}, [i]), st(() => {
|
|
79399
79399
|
const _ = window.location.pathname.replace(/\/settings$/, "");
|
|
79400
79400
|
let B = "";
|
|
79401
79401
|
const H = { ...t };
|
|
@@ -79831,7 +79831,12 @@ function aw(i) {
|
|
|
79831
79831
|
return !!i;
|
|
79832
79832
|
}
|
|
79833
79833
|
function hCe({ children: i, disableSettings: e, disableHybridSimulation: t }) {
|
|
79834
|
-
return
|
|
79834
|
+
return st(() => {
|
|
79835
|
+
const s = (r) => {
|
|
79836
|
+
r.key === " " && !(r.target instanceof HTMLInputElement) && !(r.target instanceof HTMLTextAreaElement) && !r.target.isContentEditable && r.preventDefault();
|
|
79837
|
+
};
|
|
79838
|
+
return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
|
|
79839
|
+
}, []), window.location.pathname.endsWith("/settings") && !aw(e) ? /* @__PURE__ */ R.jsx(
|
|
79835
79840
|
yme,
|
|
79836
79841
|
{
|
|
79837
79842
|
paramRegistry: Cc.getRegistry(),
|
|
@@ -79861,8 +79866,8 @@ function hCe({ children: i, disableSettings: e, disableHybridSimulation: t }) {
|
|
|
79861
79866
|
Ai("RequestFilePermission", null);
|
|
79862
79867
|
vi("RequestFilePermission", xu, {});
|
|
79863
79868
|
function wme({ next: i }) {
|
|
79864
|
-
const [e, t] =
|
|
79865
|
-
return
|
|
79869
|
+
const [e, t] = nt("checking");
|
|
79870
|
+
return st(() => {
|
|
79866
79871
|
if (e !== "checking") return;
|
|
79867
79872
|
(async () => {
|
|
79868
79873
|
if (Ed() !== "mobile" || Fa.getPlatform() !== "android") {
|
|
@@ -79933,7 +79938,7 @@ function Vme({
|
|
|
79933
79938
|
initCanvas: o
|
|
79934
79939
|
}) {
|
|
79935
79940
|
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);
|
|
79936
|
-
|
|
79941
|
+
st(() => {
|
|
79937
79942
|
const Q = m.current._reactiveScreenRefreshRate, _ = typeof Q == "number" && Q >= 20 && Q <= 300;
|
|
79938
79943
|
x.current = _ ? 1e3 / Q : null;
|
|
79939
79944
|
}, [n]);
|
|
@@ -80073,7 +80078,7 @@ function Vme({
|
|
|
80073
80078
|
},
|
|
80074
80079
|
[l, T, V, L]
|
|
80075
80080
|
);
|
|
80076
|
-
return
|
|
80081
|
+
return st(() => {
|
|
80077
80082
|
const Q = y.current;
|
|
80078
80083
|
if (!Q) return;
|
|
80079
80084
|
const _ = Ul() ? window.screen.width : window.innerWidth, B = Ul() ? window.screen.height : window.innerHeight;
|
|
@@ -80228,8 +80233,8 @@ function Sme({
|
|
|
80228
80233
|
updateStore: r,
|
|
80229
80234
|
next: n
|
|
80230
80235
|
}) {
|
|
80231
|
-
const [a, o] =
|
|
80232
|
-
return
|
|
80236
|
+
const [a, o] = nt(!1), l = fe(!1);
|
|
80237
|
+
return st(() => {
|
|
80233
80238
|
if (l.current)
|
|
80234
80239
|
return;
|
|
80235
80240
|
(async () => {
|
|
@@ -80307,8 +80312,8 @@ function Tme({
|
|
|
80307
80312
|
fields: n,
|
|
80308
80313
|
saveButtonText: a = "Save Configuration"
|
|
80309
80314
|
}) {
|
|
80310
|
-
const [o, l] =
|
|
80311
|
-
|
|
80315
|
+
const [o, l] = nt({}), [u, h] = nt({}), [c, d] = nt({});
|
|
80316
|
+
st(() => {
|
|
80312
80317
|
l(u7(n, t));
|
|
80313
80318
|
const g = {};
|
|
80314
80319
|
n.forEach((b) => {
|
|
@@ -80336,7 +80341,7 @@ function Tme({
|
|
|
80336
80341
|
}
|
|
80337
80342
|
return null;
|
|
80338
80343
|
};
|
|
80339
|
-
|
|
80344
|
+
st(() => {
|
|
80340
80345
|
const g = {};
|
|
80341
80346
|
n.forEach((b) => {
|
|
80342
80347
|
const x = o[b.storeKey];
|
|
@@ -80473,7 +80478,7 @@ function l0(i) {
|
|
|
80473
80478
|
const e = fe(null);
|
|
80474
80479
|
return e.current === null && (e.current = i()), e.current;
|
|
80475
80480
|
}
|
|
80476
|
-
const Pme = typeof window < "u", u0 = Pme ? Pg :
|
|
80481
|
+
const Pme = typeof window < "u", u0 = Pme ? Pg : st, sp = /* @__PURE__ */ fn(null);
|
|
80477
80482
|
function h0(i, e) {
|
|
80478
80483
|
i.indexOf(e) === -1 && i.push(e);
|
|
80479
80484
|
}
|
|
@@ -84525,7 +84530,7 @@ function M4(i = !0) {
|
|
|
84525
84530
|
if (e === null)
|
|
84526
84531
|
return [!0, null];
|
|
84527
84532
|
const { isPresent: t, onExitComplete: s, register: r } = e, n = Ig();
|
|
84528
|
-
|
|
84533
|
+
st(() => {
|
|
84529
84534
|
if (i)
|
|
84530
84535
|
return r(n);
|
|
84531
84536
|
}, [i]);
|
|
@@ -84540,7 +84545,7 @@ function dx(i) {
|
|
|
84540
84545
|
}), e;
|
|
84541
84546
|
}
|
|
84542
84547
|
const C1e = ({ children: i, custom: e, initial: t = !0, onExitComplete: s, presenceAffectsLayout: r = !0, mode: n = "sync", propagate: a = !1, anchorX: o = "left", anchorY: l = "top", root: u }) => {
|
|
84543
|
-
const [h, c] = M4(a), d = di(() => dx(i), [i]), f = a && !h ? [] : d.map(Qh), y = fe(!0), v = fe(d), m = l0(() => /* @__PURE__ */ new Map()), g = fe(/* @__PURE__ */ new Set()), [b, x] =
|
|
84548
|
+
const [h, c] = M4(a), d = di(() => dx(i), [i]), f = a && !h ? [] : d.map(Qh), y = fe(!0), v = fe(d), m = l0(() => /* @__PURE__ */ new Map()), g = fe(/* @__PURE__ */ new Set()), [b, x] = nt(d), [T, A] = nt(d);
|
|
84544
84549
|
u0(() => {
|
|
84545
84550
|
y.current = !1, v.current = d;
|
|
84546
84551
|
for (let V = 0; V < T.length; V++) {
|
|
@@ -84582,7 +84587,7 @@ function w1e() {
|
|
|
84582
84587
|
}), []), i;
|
|
84583
84588
|
}
|
|
84584
84589
|
function x1e() {
|
|
84585
|
-
const i = w1e(), [e, t] =
|
|
84590
|
+
const i = w1e(), [e, t] = nt(0), s = Xe(() => {
|
|
84586
84591
|
i.current && t(e + 1);
|
|
84587
84592
|
}, [e]);
|
|
84588
84593
|
return [Xe(() => Rt.postRender(s), [s]), e];
|
|
@@ -84895,7 +84900,7 @@ function U1e(i, e, t, s, r, n) {
|
|
|
84895
84900
|
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)));
|
|
84896
84901
|
return u0(() => {
|
|
84897
84902
|
f.current = !0, y && (m.current = !0, window.MotionIsMounted = !0, y.updateFeatures(), y.scheduleRenderMicrotask(), b.current && y.animationState && y.animationState.animateChanges());
|
|
84898
|
-
}),
|
|
84903
|
+
}), st(() => {
|
|
84899
84904
|
y && (!b.current && y.animationState && y.animationState.animateChanges(), b.current && (queueMicrotask(() => {
|
|
84900
84905
|
var A;
|
|
84901
84906
|
(A = window.MotionHandoffMarkAsComplete) == null || A.call(window, g);
|
|
@@ -85804,8 +85809,8 @@ const Z4 = fn({
|
|
|
85804
85809
|
backKey: o = "ArrowLeft",
|
|
85805
85810
|
theme: l = "light"
|
|
85806
85811
|
}) => {
|
|
85807
|
-
const [u, h] =
|
|
85808
|
-
|
|
85812
|
+
const [u, h] = nt(0), [c, d] = nt({}), f = fe(), y = fe({}), v = c[u] !== !1, m = fe(v), [g, b] = nt(!1);
|
|
85813
|
+
st(() => {
|
|
85809
85814
|
if (v && !m.current) {
|
|
85810
85815
|
b(!0);
|
|
85811
85816
|
const I = setTimeout(() => b(!1), 300);
|
|
@@ -85833,13 +85838,13 @@ const Z4 = fn({
|
|
|
85833
85838
|
},
|
|
85834
85839
|
[A]
|
|
85835
85840
|
);
|
|
85836
|
-
|
|
85841
|
+
st(() => () => {
|
|
85837
85842
|
f.current && clearTimeout(f.current);
|
|
85838
85843
|
}, []);
|
|
85839
85844
|
const V = Xe(() => {
|
|
85840
85845
|
u > 0 && h((I) => I - 1);
|
|
85841
85846
|
}, [u]);
|
|
85842
|
-
return
|
|
85847
|
+
return st(() => {
|
|
85843
85848
|
if (a === !1 && o === !1) return;
|
|
85844
85849
|
const I = (M) => {
|
|
85845
85850
|
a && M.key === a && (M.preventDefault(), L()), o && M.key === o && (M.preventDefault(), V());
|
|
@@ -86200,7 +86205,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86200
86205
|
const _e = (90 - a) * Math.PI / 180;
|
|
86201
86206
|
return [Math.cos(_e), -Math.sin(_e)];
|
|
86202
86207
|
}, [a]), rs = fe([]), Le = fe(0);
|
|
86203
|
-
|
|
86208
|
+
st(() => {
|
|
86204
86209
|
const _e = Math.floor(r * o), Ge = Math.floor(r * l);
|
|
86205
86210
|
rs.current = Array.from(
|
|
86206
86211
|
{ length: n },
|
|
@@ -86209,7 +86214,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86209
86214
|
return ns < _e ? bs = "coherent" : ns < _e + Ge ? bs = "opposite" : bs = D, Nye(bs, h, Et);
|
|
86210
86215
|
})
|
|
86211
86216
|
);
|
|
86212
|
-
}, []),
|
|
86217
|
+
}, []), st(() => {
|
|
86213
86218
|
typeof G == "number" && G >= 20 && G <= 300 && (et.current = 1e3 / G, Yt.current = !0);
|
|
86214
86219
|
}, [G]), AP(e, () => ({
|
|
86215
86220
|
getStats: () => ({
|
|
@@ -86217,7 +86222,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86217
86222
|
measuredRefreshRate: et.current ? Math.round(1e3 / et.current) : null
|
|
86218
86223
|
})
|
|
86219
86224
|
}));
|
|
86220
|
-
const
|
|
86225
|
+
const it = Xe(
|
|
86221
86226
|
(_e, Ge) => {
|
|
86222
86227
|
Ge.forEach((Te) => {
|
|
86223
86228
|
const ns = v && Te.assignedMovement === "coherent" ? v : y;
|
|
@@ -86294,7 +86299,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86294
86299
|
rs.current[Le.current] = Cn, Le.current = (Le.current + 1) % n, ue.current = _e;
|
|
86295
86300
|
}
|
|
86296
86301
|
const Ws = rs.current[Le.current];
|
|
86297
|
-
Te.save(), Et.clip(Te),
|
|
86302
|
+
Te.save(), Et.clip(Te), it(Te, Ws), Te.restore(), Te.save(), Te.beginPath(), Mt(Te, Et.centerX, Et.centerY), zt(Te), Te.restore();
|
|
86298
86303
|
}
|
|
86299
86304
|
re.current = requestAnimationFrame(Ct);
|
|
86300
86305
|
},
|
|
@@ -86313,15 +86318,15 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86313
86318
|
d,
|
|
86314
86319
|
cs,
|
|
86315
86320
|
c,
|
|
86316
|
-
|
|
86321
|
+
it,
|
|
86317
86322
|
Mt,
|
|
86318
86323
|
zt,
|
|
86319
86324
|
V
|
|
86320
86325
|
]
|
|
86321
86326
|
);
|
|
86322
|
-
return
|
|
86327
|
+
return st(() => (re.current = requestAnimationFrame(Ct), () => {
|
|
86323
86328
|
re.current && cancelAnimationFrame(re.current);
|
|
86324
|
-
}), [Ct]),
|
|
86329
|
+
}), [Ct]), st(() => {
|
|
86325
86330
|
const _e = oe.current;
|
|
86326
86331
|
if (!_e) return;
|
|
86327
86332
|
const Ge = window.devicePixelRatio || 1;
|
|
@@ -86377,7 +86382,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86377
86382
|
borderColor: Y
|
|
86378
86383
|
} = { ...xr, ...i }, oe = fe(i);
|
|
86379
86384
|
oe.current = i;
|
|
86380
|
-
const re = fe(null), ue = fe(performance.now()), Ie = fe(!1), ge = fe(null), te = fe(null), [we, et] =
|
|
86385
|
+
const re = fe(null), ue = fe(performance.now()), Ie = fe(!1), ge = fe(null), te = fe(null), [we, et] = nt(null), [Yt, Gt] = nt(_ <= 0), [Is, Et] = nt(!0), cs = e == null ? void 0 : e._reactiveScreenRefreshRate, rs = Xe((Le, it) => {
|
|
86381
86386
|
var bs;
|
|
86382
86387
|
if (Ie.current) return;
|
|
86383
86388
|
Ie.current = !0;
|
|
@@ -86385,32 +86390,32 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86385
86390
|
Mt({
|
|
86386
86391
|
...xr,
|
|
86387
86392
|
...Ge,
|
|
86388
|
-
rt:
|
|
86393
|
+
rt: it,
|
|
86389
86394
|
response: Le,
|
|
86390
86395
|
correct: Le && ns ? ns.includes(Le) : null,
|
|
86391
86396
|
framesDisplayed: (Te == null ? void 0 : Te.framesDisplayed) ?? 0,
|
|
86392
86397
|
measuredRefreshRate: (Te == null ? void 0 : Te.measuredRefreshRate) ?? null
|
|
86393
86398
|
});
|
|
86394
86399
|
}, []);
|
|
86395
|
-
return
|
|
86400
|
+
return st(() => {
|
|
86396
86401
|
if (_ <= 0) return;
|
|
86397
86402
|
const Le = setTimeout(() => Gt(!0), _);
|
|
86398
86403
|
return () => clearTimeout(Le);
|
|
86399
|
-
}, [_]),
|
|
86404
|
+
}, [_]), st(() => {
|
|
86400
86405
|
const Le = t ?? c;
|
|
86401
86406
|
if (Le <= 0) return;
|
|
86402
|
-
const
|
|
86403
|
-
return () => clearTimeout(
|
|
86404
|
-
}, [_, t, c]),
|
|
86407
|
+
const it = setTimeout(() => Et(!1), _ + Le);
|
|
86408
|
+
return () => clearTimeout(it);
|
|
86409
|
+
}, [_, t, c]), st(() => {
|
|
86405
86410
|
if (c <= 0) return;
|
|
86406
86411
|
const Le = setTimeout(() => {
|
|
86407
86412
|
rs(ge.current, te.current);
|
|
86408
86413
|
}, _ + c);
|
|
86409
86414
|
return () => clearTimeout(Le);
|
|
86410
|
-
}, [_, c, rs]),
|
|
86411
|
-
const Le = (
|
|
86415
|
+
}, [_, c, rs]), st(() => {
|
|
86416
|
+
const Le = (it) => {
|
|
86412
86417
|
if (Ie.current || ge.current) return;
|
|
86413
|
-
const Mt =
|
|
86418
|
+
const Mt = it.key.toLowerCase(), zt = h.length > 0 ? h.map((Ct) => Ct.toLowerCase()) : null;
|
|
86414
86419
|
if (!zt || zt.includes(Mt)) {
|
|
86415
86420
|
const Ct = performance.now() - ue.current;
|
|
86416
86421
|
ge.current = Mt, te.current = Ct, et(Mt), d && rs(Mt, Ct);
|
|
@@ -86536,7 +86541,7 @@ function pCe({
|
|
|
86536
86541
|
params: B
|
|
86537
86542
|
}
|
|
86538
86543
|
}];
|
|
86539
|
-
})()), [l, u] =
|
|
86544
|
+
})()), [l, u] = nt(0), h = fe(Qs()), c = fe({}), [d, f] = nt(
|
|
86540
86545
|
() => Yn(
|
|
86541
86546
|
a,
|
|
86542
86547
|
0,
|
|
@@ -86550,7 +86555,7 @@ function pCe({
|
|
|
86550
86555
|
const q = a.instructions.length;
|
|
86551
86556
|
return q > 0 ? d / q : 0;
|
|
86552
86557
|
}, [d, a.instructions]);
|
|
86553
|
-
|
|
86558
|
+
st(() => {
|
|
86554
86559
|
window.scrollTo(0, 0);
|
|
86555
86560
|
}, [d]);
|
|
86556
86561
|
function T(q) {
|
|
@@ -86605,7 +86610,7 @@ function pCe({
|
|
|
86605
86610
|
return H = requestAnimationFrame(Y), ne;
|
|
86606
86611
|
}, []), D = ({ children: q, collectRefreshRate: Q }) => {
|
|
86607
86612
|
const _ = fe(null), B = fe(null);
|
|
86608
|
-
|
|
86613
|
+
st(() => {
|
|
86609
86614
|
if (_.current = Qs(), Q)
|
|
86610
86615
|
return L((j) => {
|
|
86611
86616
|
B.current = j, T({ _reactiveScreenRefreshRate: j });
|
|
@@ -86630,7 +86635,7 @@ function pCe({
|
|
|
86630
86635
|
const q = V.content;
|
|
86631
86636
|
return !Xf(q) || q.simulate === !1 ? !1 : !!q.simulate || !!q.simulators;
|
|
86632
86637
|
}, [d, y, V]);
|
|
86633
|
-
|
|
86638
|
+
st(() => {
|
|
86634
86639
|
I && m.current !== d && (m.current = d, (async () => {
|
|
86635
86640
|
const q = V.content, { trialProps: Q, simulateFn: _, simulators: B } = wV(q, o.current, c.current), H = await _(
|
|
86636
86641
|
Q,
|