@adriansteffan/reactive 0.1.20 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13273,8 +13273,8 @@ var yY = Zi, wh = Cu, dC = yu, CY = Ua, bY = WE, wY = vY, xY = 1048575, pC = 104
13273
13273
  // 0x3E4CFDEB, 0x43CFD006
13274
13274
  ];
13275
13275
  function DY(i, e, t) {
13276
- var s, r, n, a, o, l, u, h, c, d, f, y, v, m, g, b, x, T, R, A, D, V;
13277
- return A = 0, t < pC && (e *= TY, A -= 53, t = yY(e)), A += (t >> bY) - CY | 0, D = t & xY | 0, t = D | EY | 0, D <= 235662 ? V = 0 : D < 767610 ? V = 1 : (V = 0, A += 1, t -= pC), e = dC(e, t), h = AY[V], T = e - h, R = 1 / (e + h), r = T * R, a = wh(r, 0), s = (t >> 1 | VY) + SY, s += V << 18, l = dC(0, s), u = e - (l - h), o = R * (T - a * l - a * u), n = r * r, x = n * n * wY(n), x += o * (a + r), n = a * a, l = 3 + n + x, l = wh(l, 0), u = x - (l - 3 - n), T = a * l, R = o * l + u * r, d = T + R, d = wh(d, 0), f = R - (d - T), y = IY * d, v = RY * d + f * PY + _Y[V], c = LY[V], b = A, m = y + v + c + b, m = wh(m, 0), g = v - (m - b - c - y), i[0] = m, i[1] = g, i;
13276
+ var s, r, n, a, o, l, u, h, c, d, f, y, v, m, g, b, x, T, A, L, D, V;
13277
+ return L = 0, t < pC && (e *= TY, L -= 53, t = yY(e)), L += (t >> bY) - CY | 0, D = t & xY | 0, t = D | EY | 0, D <= 235662 ? V = 0 : D < 767610 ? V = 1 : (V = 0, L += 1, t -= pC), e = dC(e, t), h = AY[V], T = e - h, A = 1 / (e + h), r = T * A, a = wh(r, 0), s = (t >> 1 | VY) + SY, s += V << 18, l = dC(0, s), u = e - (l - h), o = A * (T - a * l - a * u), n = r * r, x = n * n * wY(n), x += o * (a + r), n = a * a, l = 3 + n + x, l = wh(l, 0), u = x - (l - 3 - n), T = a * l, A = o * l + u * r, d = T + A, d = wh(d, 0), f = A - (d - T), y = IY * d, v = RY * d + f * PY + _Y[V], c = LY[V], b = L, m = y + v + c + b, m = wh(m, 0), g = v - (m - b - c - y), i[0] = m, i[1] = g, i;
13278
13278
  }
13279
13279
  var kY = DY;
13280
13280
  /**
@@ -16422,61 +16422,61 @@ const hae = (i) => {
16422
16422
  return console.warn(`Capacitor plugin "${c}" already registered. Cannot register plugins twice.`), f.proxy;
16423
16423
  const y = r(), v = o(c);
16424
16424
  let m;
16425
- const g = async () => (!m && y in d ? m = typeof d[y] == "function" ? m = await d[y]() : m = d[y] : e !== null && !m && "web" in d && (m = typeof d.web == "function" ? m = await d.web() : m = d.web), m), b = (V, _) => {
16426
- var N, q;
16425
+ const g = async () => (!m && y in d ? m = typeof d[y] == "function" ? m = await d[y]() : m = d[y] : e !== null && !m && "web" in d && (m = typeof d.web == "function" ? m = await d.web() : m = d.web), m), b = (V, I) => {
16426
+ var M, q;
16427
16427
  if (v) {
16428
- const Q = v == null ? void 0 : v.methods.find((L) => _ === L.name);
16428
+ const Q = v == null ? void 0 : v.methods.find((_) => I === _.name);
16429
16429
  if (Q)
16430
- return Q.rtype === "promise" ? (L) => t.nativePromise(c, _.toString(), L) : (L, B) => t.nativeCallback(c, _.toString(), L, B);
16430
+ return Q.rtype === "promise" ? (_) => t.nativePromise(c, I.toString(), _) : (_, B) => t.nativeCallback(c, I.toString(), _, B);
16431
16431
  if (V)
16432
- return (N = V[_]) === null || N === void 0 ? void 0 : N.bind(V);
16432
+ return (M = V[I]) === null || M === void 0 ? void 0 : M.bind(V);
16433
16433
  } else {
16434
16434
  if (V)
16435
- return (q = V[_]) === null || q === void 0 ? void 0 : q.bind(V);
16435
+ return (q = V[I]) === null || q === void 0 ? void 0 : q.bind(V);
16436
16436
  throw new pf(`"${c}" plugin is not implemented on ${y}`, ko.Unimplemented);
16437
16437
  }
16438
16438
  }, x = (V) => {
16439
- let _;
16440
- const N = (...q) => {
16441
- const Q = g().then((L) => {
16442
- const B = b(L, V);
16439
+ let I;
16440
+ const M = (...q) => {
16441
+ const Q = g().then((_) => {
16442
+ const B = b(_, V);
16443
16443
  if (B) {
16444
16444
  const H = B(...q);
16445
- return _ = H == null ? void 0 : H.remove, H;
16445
+ return I = H == null ? void 0 : H.remove, H;
16446
16446
  } else
16447
16447
  throw new pf(`"${c}.${V}()" is not implemented on ${y}`, ko.Unimplemented);
16448
16448
  });
16449
- return V === "addListener" && (Q.remove = async () => _()), Q;
16449
+ return V === "addListener" && (Q.remove = async () => I()), Q;
16450
16450
  };
16451
- return N.toString = () => `${V.toString()}() { [capacitor code] }`, Object.defineProperty(N, "name", {
16451
+ return M.toString = () => `${V.toString()}() { [capacitor code] }`, Object.defineProperty(M, "name", {
16452
16452
  value: V,
16453
16453
  writable: !1,
16454
16454
  configurable: !1
16455
- }), N;
16456
- }, T = x("addListener"), R = x("removeListener"), A = (V, _) => {
16457
- const N = T({ eventName: V }, _), q = async () => {
16458
- const L = await N;
16459
- R({
16455
+ }), M;
16456
+ }, T = x("addListener"), A = x("removeListener"), L = (V, I) => {
16457
+ const M = T({ eventName: V }, I), q = async () => {
16458
+ const _ = await M;
16459
+ A({
16460
16460
  eventName: V,
16461
- callbackId: L
16462
- }, _);
16463
- }, Q = new Promise((L) => N.then(() => L({ remove: q })));
16461
+ callbackId: _
16462
+ }, I);
16463
+ }, Q = new Promise((_) => M.then(() => _({ remove: q })));
16464
16464
  return Q.remove = async () => {
16465
16465
  console.warn("Using addListener() without 'await' is deprecated."), await q();
16466
16466
  }, Q;
16467
16467
  }, D = new Proxy({}, {
16468
- get(V, _) {
16469
- switch (_) {
16468
+ get(V, I) {
16469
+ switch (I) {
16470
16470
  case "$$typeof":
16471
16471
  return;
16472
16472
  case "toJSON":
16473
16473
  return () => ({});
16474
16474
  case "addListener":
16475
- return v ? A : T;
16475
+ return v ? L : T;
16476
16476
  case "removeListener":
16477
- return R;
16477
+ return A;
16478
16478
  default:
16479
- return x(_);
16479
+ return x(I);
16480
16480
  }
16481
16481
  }
16482
16482
  });
@@ -17310,57 +17310,57 @@ var Vb;
17310
17310
  function Rae() {
17311
17311
  return Vb || (Vb = 1, process.env.NODE_ENV !== "production" && function() {
17312
17312
  var i = Ze, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), o = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), y = Symbol.iterator, v = "@@iterator";
17313
- function m(M) {
17314
- if (M === null || typeof M != "object")
17313
+ function m(N) {
17314
+ if (N === null || typeof N != "object")
17315
17315
  return null;
17316
- var ie = y && M[y] || M[v];
17316
+ var ie = y && N[y] || N[v];
17317
17317
  return typeof ie == "function" ? ie : null;
17318
17318
  }
17319
17319
  var g = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
17320
- function b(M) {
17320
+ function b(N) {
17321
17321
  {
17322
17322
  for (var ie = arguments.length, me = new Array(ie > 1 ? ie - 1 : 0), Fe = 1; Fe < ie; Fe++)
17323
17323
  me[Fe - 1] = arguments[Fe];
17324
- x("error", M, me);
17324
+ x("error", N, me);
17325
17325
  }
17326
17326
  }
17327
- function x(M, ie, me) {
17327
+ function x(N, ie, me) {
17328
17328
  {
17329
17329
  var Fe = g.ReactDebugCurrentFrame, bt = Fe.getStackAddendum();
17330
17330
  bt !== "" && (ie += "%s", me = me.concat([bt]));
17331
17331
  var Pt = me.map(function(it) {
17332
17332
  return String(it);
17333
17333
  });
17334
- Pt.unshift("Warning: " + ie), Function.prototype.apply.call(console[M], console, Pt);
17334
+ Pt.unshift("Warning: " + ie), Function.prototype.apply.call(console[N], console, Pt);
17335
17335
  }
17336
17336
  }
17337
- var T = !1, R = !1, A = !1, D = !1, V = !1, _;
17338
- _ = Symbol.for("react.module.reference");
17339
- function N(M) {
17340
- return !!(typeof M == "string" || typeof M == "function" || M === s || M === n || V || M === r || M === u || M === h || D || M === f || T || R || A || typeof M == "object" && M !== null && (M.$$typeof === d || M.$$typeof === c || M.$$typeof === a || M.$$typeof === o || M.$$typeof === l || // This needs to include all possible module reference object
17337
+ var T = !1, A = !1, L = !1, D = !1, V = !1, I;
17338
+ I = Symbol.for("react.module.reference");
17339
+ function M(N) {
17340
+ return !!(typeof N == "string" || typeof N == "function" || N === s || N === n || V || N === r || N === u || N === h || D || N === f || T || A || L || typeof N == "object" && N !== null && (N.$$typeof === d || N.$$typeof === c || N.$$typeof === a || N.$$typeof === o || N.$$typeof === l || // This needs to include all possible module reference object
17341
17341
  // types supported by any Flight configuration anywhere since
17342
17342
  // we don't know which Flight build this will end up being used
17343
17343
  // with.
17344
- M.$$typeof === _ || M.getModuleId !== void 0));
17344
+ N.$$typeof === I || N.getModuleId !== void 0));
17345
17345
  }
17346
- function q(M, ie, me) {
17347
- var Fe = M.displayName;
17346
+ function q(N, ie, me) {
17347
+ var Fe = N.displayName;
17348
17348
  if (Fe)
17349
17349
  return Fe;
17350
17350
  var bt = ie.displayName || ie.name || "";
17351
17351
  return bt !== "" ? me + "(" + bt + ")" : me;
17352
17352
  }
17353
- function Q(M) {
17354
- return M.displayName || "Context";
17353
+ function Q(N) {
17354
+ return N.displayName || "Context";
17355
17355
  }
17356
- function L(M) {
17357
- if (M == null)
17356
+ function _(N) {
17357
+ if (N == null)
17358
17358
  return null;
17359
- if (typeof M.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof M == "function")
17360
- return M.displayName || M.name || null;
17361
- if (typeof M == "string")
17362
- return M;
17363
- switch (M) {
17359
+ if (typeof N.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof N == "function")
17360
+ return N.displayName || N.name || null;
17361
+ if (typeof N == "string")
17362
+ return N;
17363
+ switch (N) {
17364
17364
  case s:
17365
17365
  return "Fragment";
17366
17366
  case t:
@@ -17374,23 +17374,23 @@ function Rae() {
17374
17374
  case h:
17375
17375
  return "SuspenseList";
17376
17376
  }
17377
- if (typeof M == "object")
17378
- switch (M.$$typeof) {
17377
+ if (typeof N == "object")
17378
+ switch (N.$$typeof) {
17379
17379
  case o:
17380
- var ie = M;
17380
+ var ie = N;
17381
17381
  return Q(ie) + ".Consumer";
17382
17382
  case a:
17383
- var me = M;
17383
+ var me = N;
17384
17384
  return Q(me._context) + ".Provider";
17385
17385
  case l:
17386
- return q(M, M.render, "ForwardRef");
17386
+ return q(N, N.render, "ForwardRef");
17387
17387
  case c:
17388
- var Fe = M.displayName || null;
17389
- return Fe !== null ? Fe : L(M.type) || "Memo";
17388
+ var Fe = N.displayName || null;
17389
+ return Fe !== null ? Fe : _(N.type) || "Memo";
17390
17390
  case d: {
17391
- var bt = M, Pt = bt._payload, it = bt._init;
17391
+ var bt = N, Pt = bt._payload, it = bt._init;
17392
17392
  try {
17393
- return L(it(Pt));
17393
+ return _(it(Pt));
17394
17394
  } catch {
17395
17395
  return null;
17396
17396
  }
@@ -17406,20 +17406,20 @@ function Rae() {
17406
17406
  {
17407
17407
  if (H === 0) {
17408
17408
  $ = console.log, j = console.info, G = console.warn, ne = console.error, Y = console.group, oe = console.groupCollapsed, re = console.groupEnd;
17409
- var M = {
17409
+ var N = {
17410
17410
  configurable: !0,
17411
17411
  enumerable: !0,
17412
17412
  value: ue,
17413
17413
  writable: !0
17414
17414
  };
17415
17415
  Object.defineProperties(console, {
17416
- info: M,
17417
- log: M,
17418
- warn: M,
17419
- error: M,
17420
- group: M,
17421
- groupCollapsed: M,
17422
- groupEnd: M
17416
+ info: N,
17417
+ log: N,
17418
+ warn: N,
17419
+ error: N,
17420
+ group: N,
17421
+ groupCollapsed: N,
17422
+ groupEnd: N
17423
17423
  });
17424
17424
  }
17425
17425
  H++;
@@ -17428,31 +17428,31 @@ function Rae() {
17428
17428
  function ge() {
17429
17429
  {
17430
17430
  if (H--, H === 0) {
17431
- var M = {
17431
+ var N = {
17432
17432
  configurable: !0,
17433
17433
  enumerable: !0,
17434
17434
  writable: !0
17435
17435
  };
17436
17436
  Object.defineProperties(console, {
17437
- log: B({}, M, {
17437
+ log: B({}, N, {
17438
17438
  value: $
17439
17439
  }),
17440
- info: B({}, M, {
17440
+ info: B({}, N, {
17441
17441
  value: j
17442
17442
  }),
17443
- warn: B({}, M, {
17443
+ warn: B({}, N, {
17444
17444
  value: G
17445
17445
  }),
17446
- error: B({}, M, {
17446
+ error: B({}, N, {
17447
17447
  value: ne
17448
17448
  }),
17449
- group: B({}, M, {
17449
+ group: B({}, N, {
17450
17450
  value: Y
17451
17451
  }),
17452
- groupCollapsed: B({}, M, {
17452
+ groupCollapsed: B({}, N, {
17453
17453
  value: oe
17454
17454
  }),
17455
- groupEnd: B({}, M, {
17455
+ groupEnd: B({}, N, {
17456
17456
  value: re
17457
17457
  })
17458
17458
  });
@@ -17461,7 +17461,7 @@ function Rae() {
17461
17461
  }
17462
17462
  }
17463
17463
  var te = g.ReactCurrentDispatcher, we;
17464
- function et(M, ie, me) {
17464
+ function et(N, ie, me) {
17465
17465
  {
17466
17466
  if (we === void 0)
17467
17467
  try {
@@ -17471,7 +17471,7 @@ function Rae() {
17471
17471
  we = Fe && Fe[1] || "";
17472
17472
  }
17473
17473
  return `
17474
- ` + we + M;
17474
+ ` + we + N;
17475
17475
  }
17476
17476
  }
17477
17477
  var Yt = !1, Gt;
@@ -17479,11 +17479,11 @@ function Rae() {
17479
17479
  var Is = typeof WeakMap == "function" ? WeakMap : Map;
17480
17480
  Gt = new Is();
17481
17481
  }
17482
- function Et(M, ie) {
17483
- if (!M || Yt)
17482
+ function Et(N, ie) {
17483
+ if (!N || Yt)
17484
17484
  return "";
17485
17485
  {
17486
- var me = Gt.get(M);
17486
+ var me = Gt.get(N);
17487
17487
  if (me !== void 0)
17488
17488
  return me;
17489
17489
  }
@@ -17508,14 +17508,14 @@ function Rae() {
17508
17508
  } catch ($s) {
17509
17509
  Fe = $s;
17510
17510
  }
17511
- Reflect.construct(M, [], it);
17511
+ Reflect.construct(N, [], it);
17512
17512
  } else {
17513
17513
  try {
17514
17514
  it.call();
17515
17515
  } catch ($s) {
17516
17516
  Fe = $s;
17517
17517
  }
17518
- M.call(it.prototype);
17518
+ N.call(it.prototype);
17519
17519
  }
17520
17520
  } else {
17521
17521
  try {
@@ -17523,7 +17523,7 @@ function Rae() {
17523
17523
  } catch ($s) {
17524
17524
  Fe = $s;
17525
17525
  }
17526
- M();
17526
+ N();
17527
17527
  }
17528
17528
  } catch ($s) {
17529
17529
  if ($s && Fe && typeof $s.stack == "string") {
@@ -17538,7 +17538,7 @@ function Rae() {
17538
17538
  if (jt--, Kt--, Kt < 0 || Ye[jt] !== As[Kt]) {
17539
17539
  var si = `
17540
17540
  ` + Ye[jt].replace(" at new ", " at ");
17541
- return M.displayName && si.includes("<anonymous>") && (si = si.replace("<anonymous>", M.displayName)), typeof M == "function" && Gt.set(M, si), si;
17541
+ return N.displayName && si.includes("<anonymous>") && (si = si.replace("<anonymous>", N.displayName)), typeof N == "function" && Gt.set(N, si), si;
17542
17542
  }
17543
17543
  while (jt >= 1 && Kt >= 0);
17544
17544
  break;
@@ -17547,37 +17547,37 @@ function Rae() {
17547
17547
  } finally {
17548
17548
  Yt = !1, te.current = Pt, ge(), Error.prepareStackTrace = bt;
17549
17549
  }
17550
- var bn = M ? M.displayName || M.name : "", jr = bn ? et(bn) : "";
17551
- return typeof M == "function" && Gt.set(M, jr), jr;
17550
+ var bn = N ? N.displayName || N.name : "", jr = bn ? et(bn) : "";
17551
+ return typeof N == "function" && Gt.set(N, jr), jr;
17552
17552
  }
17553
- function cs(M, ie, me) {
17554
- return Et(M, !1);
17553
+ function cs(N, ie, me) {
17554
+ return Et(N, !1);
17555
17555
  }
17556
- function rs(M) {
17557
- var ie = M.prototype;
17556
+ function rs(N) {
17557
+ var ie = N.prototype;
17558
17558
  return !!(ie && ie.isReactComponent);
17559
17559
  }
17560
- function Le(M, ie, me) {
17561
- if (M == null)
17560
+ function Le(N, ie, me) {
17561
+ if (N == null)
17562
17562
  return "";
17563
- if (typeof M == "function")
17564
- return Et(M, rs(M));
17565
- if (typeof M == "string")
17566
- return et(M);
17567
- switch (M) {
17563
+ if (typeof N == "function")
17564
+ return Et(N, rs(N));
17565
+ if (typeof N == "string")
17566
+ return et(N);
17567
+ switch (N) {
17568
17568
  case u:
17569
17569
  return et("Suspense");
17570
17570
  case h:
17571
17571
  return et("SuspenseList");
17572
17572
  }
17573
- if (typeof M == "object")
17574
- switch (M.$$typeof) {
17573
+ if (typeof N == "object")
17574
+ switch (N.$$typeof) {
17575
17575
  case l:
17576
- return cs(M.render);
17576
+ return cs(N.render);
17577
17577
  case c:
17578
- return Le(M.type, ie, me);
17578
+ return Le(N.type, ie, me);
17579
17579
  case d: {
17580
- var Fe = M, bt = Fe._payload, Pt = Fe._init;
17580
+ var Fe = N, bt = Fe._payload, Pt = Fe._init;
17581
17581
  try {
17582
17582
  return Le(Pt(bt), ie, me);
17583
17583
  } catch {
@@ -17587,25 +17587,25 @@ function Rae() {
17587
17587
  return "";
17588
17588
  }
17589
17589
  var st = Object.prototype.hasOwnProperty, Mt = {}, zt = g.ReactDebugCurrentFrame;
17590
- function Ct(M) {
17591
- if (M) {
17592
- var ie = M._owner, me = Le(M.type, M._source, ie ? ie.type : null);
17590
+ function Ct(N) {
17591
+ if (N) {
17592
+ var ie = N._owner, me = Le(N.type, N._source, ie ? ie.type : null);
17593
17593
  zt.setExtraStackFrame(me);
17594
17594
  } else
17595
17595
  zt.setExtraStackFrame(null);
17596
17596
  }
17597
- function _e(M, ie, me, Fe, bt) {
17597
+ function _e(N, ie, me, Fe, bt) {
17598
17598
  {
17599
17599
  var Pt = Function.call.bind(st);
17600
- for (var it in M)
17601
- if (Pt(M, it)) {
17600
+ for (var it in N)
17601
+ if (Pt(N, it)) {
17602
17602
  var Ye = void 0;
17603
17603
  try {
17604
- if (typeof M[it] != "function") {
17605
- var As = Error((Fe || "React class") + ": " + me + " type `" + it + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof M[it] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
17604
+ if (typeof N[it] != "function") {
17605
+ var As = Error((Fe || "React class") + ": " + me + " type `" + it + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof N[it] + "`.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 = M[it](ie, it, Fe, me, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
17608
+ Ye = N[it](ie, it, Fe, me, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
17609
17609
  } catch (jt) {
17610
17610
  Ye = jt;
17611
17611
  }
@@ -17614,28 +17614,28 @@ function Rae() {
17614
17614
  }
17615
17615
  }
17616
17616
  var Ge = Array.isArray;
17617
- function Te(M) {
17618
- return Ge(M);
17617
+ function Te(N) {
17618
+ return Ge(N);
17619
17619
  }
17620
- function ns(M) {
17620
+ function ns(N) {
17621
17621
  {
17622
- var ie = typeof Symbol == "function" && Symbol.toStringTag, me = ie && M[Symbol.toStringTag] || M.constructor.name || "Object";
17622
+ var ie = typeof Symbol == "function" && Symbol.toStringTag, me = ie && N[Symbol.toStringTag] || N.constructor.name || "Object";
17623
17623
  return me;
17624
17624
  }
17625
17625
  }
17626
- function bs(M) {
17626
+ function bs(N) {
17627
17627
  try {
17628
- return ws(M), !1;
17628
+ return ws(N), !1;
17629
17629
  } catch {
17630
17630
  return !0;
17631
17631
  }
17632
17632
  }
17633
- function ws(M) {
17634
- return "" + M;
17633
+ function ws(N) {
17634
+ return "" + N;
17635
17635
  }
17636
- function Ur(M) {
17637
- if (bs(M))
17638
- return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ns(M)), ws(M);
17636
+ function Ur(N) {
17637
+ if (bs(N))
17638
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ns(N)), ws(N);
17639
17639
  }
17640
17640
  var js = g.ReactCurrentOwner, Ws = {
17641
17641
  key: !0,
@@ -17643,53 +17643,53 @@ function Rae() {
17643
17643
  __self: !0,
17644
17644
  __source: !0
17645
17645
  }, _i, Gs;
17646
- function Di(M) {
17647
- if (st.call(M, "ref")) {
17648
- var ie = Object.getOwnPropertyDescriptor(M, "ref").get;
17646
+ function Di(N) {
17647
+ if (st.call(N, "ref")) {
17648
+ var ie = Object.getOwnPropertyDescriptor(N, "ref").get;
17649
17649
  if (ie && ie.isReactWarning)
17650
17650
  return !1;
17651
17651
  }
17652
- return M.ref !== void 0;
17652
+ return N.ref !== void 0;
17653
17653
  }
17654
- function da(M) {
17655
- if (st.call(M, "key")) {
17656
- var ie = Object.getOwnPropertyDescriptor(M, "key").get;
17654
+ function da(N) {
17655
+ if (st.call(N, "key")) {
17656
+ var ie = Object.getOwnPropertyDescriptor(N, "key").get;
17657
17657
  if (ie && ie.isReactWarning)
17658
17658
  return !1;
17659
17659
  }
17660
- return M.key !== void 0;
17660
+ return N.key !== void 0;
17661
17661
  }
17662
- function Cn(M, ie) {
17663
- typeof M.ref == "string" && js.current;
17662
+ function Cn(N, ie) {
17663
+ typeof N.ref == "string" && js.current;
17664
17664
  }
17665
- function Z(M, ie) {
17665
+ function Z(N, ie) {
17666
17666
  {
17667
17667
  var me = function() {
17668
17668
  _i || (_i = !0, b("%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://reactjs.org/link/special-props)", ie));
17669
17669
  };
17670
- me.isReactWarning = !0, Object.defineProperty(M, "key", {
17670
+ me.isReactWarning = !0, Object.defineProperty(N, "key", {
17671
17671
  get: me,
17672
17672
  configurable: !0
17673
17673
  });
17674
17674
  }
17675
17675
  }
17676
- function se(M, ie) {
17676
+ function se(N, ie) {
17677
17677
  {
17678
17678
  var me = function() {
17679
17679
  Gs || (Gs = !0, b("%s: `ref` 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://reactjs.org/link/special-props)", ie));
17680
17680
  };
17681
- me.isReactWarning = !0, Object.defineProperty(M, "ref", {
17681
+ me.isReactWarning = !0, Object.defineProperty(N, "ref", {
17682
17682
  get: me,
17683
17683
  configurable: !0
17684
17684
  });
17685
17685
  }
17686
17686
  }
17687
- var X = function(M, ie, me, Fe, bt, Pt, it) {
17687
+ var X = function(N, ie, me, Fe, bt, Pt, it) {
17688
17688
  var Ye = {
17689
17689
  // This tag allows us to uniquely identify this as a React Element
17690
17690
  $$typeof: e,
17691
17691
  // Built-in properties that belong on the element
17692
- type: M,
17692
+ type: N,
17693
17693
  key: ie,
17694
17694
  ref: me,
17695
17695
  props: it,
@@ -17713,58 +17713,58 @@ function Rae() {
17713
17713
  value: bt
17714
17714
  }), Object.freeze && (Object.freeze(Ye.props), Object.freeze(Ye)), Ye;
17715
17715
  };
17716
- function ae(M, ie, me, Fe, bt) {
17716
+ function ae(N, ie, me, Fe, bt) {
17717
17717
  {
17718
17718
  var Pt, it = {}, 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
  st.call(ie, Pt) && !Ws.hasOwnProperty(Pt) && (it[Pt] = ie[Pt]);
17722
- if (M && M.defaultProps) {
17723
- var jt = M.defaultProps;
17722
+ if (N && N.defaultProps) {
17723
+ var jt = N.defaultProps;
17724
17724
  for (Pt in jt)
17725
17725
  it[Pt] === void 0 && (it[Pt] = jt[Pt]);
17726
17726
  }
17727
17727
  if (Ye || As) {
17728
- var Kt = typeof M == "function" ? M.displayName || M.name || "Unknown" : M;
17728
+ var Kt = typeof N == "function" ? N.displayName || N.name || "Unknown" : N;
17729
17729
  Ye && Z(it, Kt), As && se(it, Kt);
17730
17730
  }
17731
- return X(M, Ye, As, bt, Fe, js.current, it);
17731
+ return X(N, Ye, As, bt, Fe, js.current, it);
17732
17732
  }
17733
17733
  }
17734
17734
  var de = g.ReactCurrentOwner, Ae = g.ReactDebugCurrentFrame;
17735
- function je(M) {
17736
- if (M) {
17737
- var ie = M._owner, me = Le(M.type, M._source, ie ? ie.type : null);
17735
+ function je(N) {
17736
+ if (N) {
17737
+ var ie = N._owner, me = Le(N.type, N._source, ie ? ie.type : null);
17738
17738
  Ae.setExtraStackFrame(me);
17739
17739
  } else
17740
17740
  Ae.setExtraStackFrame(null);
17741
17741
  }
17742
17742
  var as;
17743
17743
  as = !1;
17744
- function Rs(M) {
17745
- return typeof M == "object" && M !== null && M.$$typeof === e;
17744
+ function Rs(N) {
17745
+ return typeof N == "object" && N !== null && N.$$typeof === e;
17746
17746
  }
17747
17747
  function zr() {
17748
17748
  {
17749
17749
  if (de.current) {
17750
- var M = L(de.current.type);
17751
- if (M)
17750
+ var N = _(de.current.type);
17751
+ if (N)
17752
17752
  return `
17753
17753
 
17754
- Check the render method of \`` + M + "`.";
17754
+ Check the render method of \`` + N + "`.";
17755
17755
  }
17756
17756
  return "";
17757
17757
  }
17758
17758
  }
17759
- function Za(M) {
17759
+ function Za(N) {
17760
17760
  return "";
17761
17761
  }
17762
17762
  var pa = {};
17763
- function op(M) {
17763
+ function op(N) {
17764
17764
  {
17765
17765
  var ie = zr();
17766
17766
  if (!ie) {
17767
- var me = typeof M == "string" ? M : M.displayName || M.name;
17767
+ var me = typeof N == "string" ? N : N.displayName || N.name;
17768
17768
  me && (ie = `
17769
17769
 
17770
17770
  Check the top-level render call using <` + me + ">.");
@@ -17772,41 +17772,41 @@ Check the top-level render call using <` + me + ">.");
17772
17772
  return ie;
17773
17773
  }
17774
17774
  }
17775
- function Bu(M, ie) {
17775
+ function Bu(N, ie) {
17776
17776
  {
17777
- if (!M._store || M._store.validated || M.key != null)
17777
+ if (!N._store || N._store.validated || N.key != null)
17778
17778
  return;
17779
- M._store.validated = !0;
17779
+ N._store.validated = !0;
17780
17780
  var me = op(ie);
17781
17781
  if (pa[me])
17782
17782
  return;
17783
17783
  pa[me] = !0;
17784
17784
  var Fe = "";
17785
- M && M._owner && M._owner !== de.current && (Fe = " It was passed a child from " + L(M._owner.type) + "."), je(M), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', me, Fe), je(null);
17785
+ N && N._owner && N._owner !== de.current && (Fe = " It was passed a child from " + _(N._owner.type) + "."), je(N), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', me, Fe), je(null);
17786
17786
  }
17787
17787
  }
17788
- function $u(M, ie) {
17788
+ function $u(N, ie) {
17789
17789
  {
17790
- if (typeof M != "object")
17790
+ if (typeof N != "object")
17791
17791
  return;
17792
- if (Te(M))
17793
- for (var me = 0; me < M.length; me++) {
17794
- var Fe = M[me];
17792
+ if (Te(N))
17793
+ for (var me = 0; me < N.length; me++) {
17794
+ var Fe = N[me];
17795
17795
  Rs(Fe) && Bu(Fe, ie);
17796
17796
  }
17797
- else if (Rs(M))
17798
- M._store && (M._store.validated = !0);
17799
- else if (M) {
17800
- var bt = m(M);
17801
- if (typeof bt == "function" && bt !== M.entries)
17802
- for (var Pt = bt.call(M), it; !(it = Pt.next()).done; )
17797
+ else if (Rs(N))
17798
+ N._store && (N._store.validated = !0);
17799
+ else if (N) {
17800
+ var bt = m(N);
17801
+ if (typeof bt == "function" && bt !== N.entries)
17802
+ for (var Pt = bt.call(N), it; !(it = Pt.next()).done; )
17803
17803
  Rs(it.value) && Bu(it.value, ie);
17804
17804
  }
17805
17805
  }
17806
17806
  }
17807
- function lp(M) {
17807
+ function lp(N) {
17808
17808
  {
17809
- var ie = M.type;
17809
+ var ie = N.type;
17810
17810
  if (ie == null || typeof ie == "string")
17811
17811
  return;
17812
17812
  var me;
@@ -17819,41 +17819,41 @@ Check the top-level render call using <` + me + ">.");
17819
17819
  else
17820
17820
  return;
17821
17821
  if (me) {
17822
- var Fe = L(ie);
17823
- _e(me, M.props, "prop", Fe, M);
17822
+ var Fe = _(ie);
17823
+ _e(me, N.props, "prop", Fe, N);
17824
17824
  } else if (ie.PropTypes !== void 0 && !as) {
17825
17825
  as = !0;
17826
- var bt = L(ie);
17826
+ var bt = _(ie);
17827
17827
  b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", bt || "Unknown");
17828
17828
  }
17829
17829
  typeof ie.getDefaultProps == "function" && !ie.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
17830
17830
  }
17831
17831
  }
17832
- function up(M) {
17832
+ function up(N) {
17833
17833
  {
17834
- for (var ie = Object.keys(M.props), me = 0; me < ie.length; me++) {
17834
+ for (var ie = Object.keys(N.props), me = 0; me < ie.length; me++) {
17835
17835
  var Fe = ie[me];
17836
17836
  if (Fe !== "children" && Fe !== "key") {
17837
- je(M), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Fe), je(null);
17837
+ je(N), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Fe), je(null);
17838
17838
  break;
17839
17839
  }
17840
17840
  }
17841
- M.ref !== null && (je(M), b("Invalid attribute `ref` supplied to `React.Fragment`."), je(null));
17841
+ N.ref !== null && (je(N), b("Invalid attribute `ref` supplied to `React.Fragment`."), je(null));
17842
17842
  }
17843
17843
  }
17844
17844
  var Hu = {};
17845
- function Qu(M, ie, me, Fe, bt, Pt) {
17845
+ function Qu(N, ie, me, Fe, bt, Pt) {
17846
17846
  {
17847
- var it = N(M);
17847
+ var it = M(N);
17848
17848
  if (!it) {
17849
17849
  var Ye = "";
17850
- (M === void 0 || typeof M == "object" && M !== null && Object.keys(M).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.");
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();
17852
17852
  As ? Ye += As : Ye += zr();
17853
17853
  var jt;
17854
- M === null ? jt = "null" : Te(M) ? jt = "array" : M !== void 0 && M.$$typeof === e ? (jt = "<" + (L(M.type) || "Unknown") + " />", Ye = " Did you accidentally export a JSX literal instead of a component?") : jt = typeof M, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", jt, Ye);
17854
+ N === null ? jt = "null" : Te(N) ? jt = "array" : N !== void 0 && N.$$typeof === e ? (jt = "<" + (_(N.type) || "Unknown") + " />", Ye = " Did you accidentally export a JSX literal instead of a component?") : jt = typeof N, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", jt, Ye);
17855
17855
  }
17856
- var Kt = ae(M, ie, me, bt, Pt);
17856
+ var Kt = ae(N, ie, me, bt, Pt);
17857
17857
  if (Kt == null)
17858
17858
  return Kt;
17859
17859
  if (it) {
@@ -17862,15 +17862,15 @@ Check the top-level render call using <` + me + ">.");
17862
17862
  if (Fe)
17863
17863
  if (Te(si)) {
17864
17864
  for (var bn = 0; bn < si.length; bn++)
17865
- $u(si[bn], M);
17865
+ $u(si[bn], N);
17866
17866
  Object.freeze && Object.freeze(si);
17867
17867
  } else
17868
17868
  b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
17869
17869
  else
17870
- $u(si, M);
17870
+ $u(si, N);
17871
17871
  }
17872
17872
  if (st.call(ie, "key")) {
17873
- var jr = L(M), $s = Object.keys(ie).filter(function(mp) {
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}";
17876
17876
  if (!Hu[jr + cl]) {
@@ -17883,21 +17883,21 @@ React keys must be passed directly to JSX without using spread:
17883
17883
  <%s key={someKey} {...props} />`, cl, jr, fp, jr), Hu[jr + cl] = !0;
17884
17884
  }
17885
17885
  }
17886
- return M === s ? up(Kt) : lp(Kt), Kt;
17886
+ return N === s ? up(Kt) : lp(Kt), Kt;
17887
17887
  }
17888
17888
  }
17889
- function hp(M, ie, me) {
17890
- return Qu(M, ie, me, !0);
17889
+ function hp(N, ie, me) {
17890
+ return Qu(N, ie, me, !0);
17891
17891
  }
17892
- function cp(M, ie, me) {
17893
- return Qu(M, ie, me, !1);
17892
+ function cp(N, ie, me) {
17893
+ return Qu(N, ie, me, !1);
17894
17894
  }
17895
17895
  var dp = cp, pp = hp;
17896
17896
  Tl.Fragment = s, Tl.jsx = dp, Tl.jsxs = pp;
17897
17897
  }()), Tl;
17898
17898
  }
17899
17899
  process.env.NODE_ENV === "production" ? Lm.exports = Iae() : Lm.exports = Rae();
17900
- var I = Lm.exports;
17900
+ var R = Lm.exports;
17901
17901
  Ai("Text", "text");
17902
17902
  vi("Text", (i, e, t, s) => {
17903
17903
  const r = t.respond(i, s);
@@ -17943,8 +17943,8 @@ function wv({
17943
17943
  reactionTime: h
17944
17944
  });
17945
17945
  };
17946
- return /* @__PURE__ */ I.jsx("div", { className: `min-h-screen ${s}`, children: /* @__PURE__ */ I.jsxs("div", { className: `max-w-prose mx-auto ${t} pt-20 pb-20 px-4 `, children: [
17947
- /* @__PURE__ */ I.jsx(
17946
+ return /* @__PURE__ */ R.jsx("div", { className: `min-h-screen ${s}`, children: /* @__PURE__ */ R.jsxs("div", { className: `max-w-prose mx-auto ${t} pt-20 pb-20 px-4 `, children: [
17947
+ /* @__PURE__ */ R.jsx(
17948
17948
  "article",
17949
17949
  {
17950
17950
  className: `prose prose-2xl prose-slate text-xl prose-a:text-blue-600 prose-a:underline prose-h1:text-4xl prose-h1:mb-10 prose-h1:font-bold prose-p:mb-4 prose-strong:font-bold text-black leading-relaxed
@@ -17952,12 +17952,12 @@ function wv({
17952
17952
  children: i
17953
17953
  }
17954
17954
  ),
17955
- e && /* @__PURE__ */ I.jsx(
17955
+ e && /* @__PURE__ */ R.jsx(
17956
17956
  "div",
17957
17957
  {
17958
17958
  className: `mt-16 flex justify-center ${n ? "animate-fade-in opacity-0" : ""}`,
17959
17959
  style: n ? { animationDelay: "1s" } : {},
17960
- children: /* @__PURE__ */ I.jsx(
17960
+ children: /* @__PURE__ */ R.jsx(
17961
17961
  "button",
17962
17962
  {
17963
17963
  onClick: l,
@@ -17999,8 +17999,8 @@ function Aae({
17999
17999
  }, c = () => {
18000
18000
  a && r(a(l)), s({ value: l });
18001
18001
  };
18002
- return /* @__PURE__ */ I.jsxs("div", { className: `max-w-prose mx-auto ${t} mt-20 mb-20 px-4 `, children: [
18003
- /* @__PURE__ */ I.jsx(
18002
+ return /* @__PURE__ */ R.jsxs("div", { className: `max-w-prose mx-auto ${t} mt-20 mb-20 px-4 `, children: [
18003
+ /* @__PURE__ */ R.jsx(
18004
18004
  "article",
18005
18005
  {
18006
18006
  className: `prose prose-2xl prose-slate text-xl prose-a:text-blue-600 prose-a:underline prose-h1:text-4xl prose-h1:mb-10 prose-h1:font-bold prose-p:mb-4 prose-strong:font-bold text-black leading-relaxed
@@ -18008,7 +18008,7 @@ function Aae({
18008
18008
  children: i
18009
18009
  }
18010
18010
  ),
18011
- /* @__PURE__ */ I.jsx("div", { className: `mt-8 ${n ? "animate-slide-down opacity-0" : ""}`, children: /* @__PURE__ */ I.jsx(
18011
+ /* @__PURE__ */ R.jsx("div", { className: `mt-8 ${n ? "animate-slide-down opacity-0" : ""}`, children: /* @__PURE__ */ R.jsx(
18012
18012
  "input",
18013
18013
  {
18014
18014
  type: "text",
@@ -18018,12 +18018,12 @@ function Aae({
18018
18018
  className: "w-full px-4 py-3 border-2 border-black rounded-xl text-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
18019
18019
  }
18020
18020
  ) }),
18021
- e && /* @__PURE__ */ I.jsx(
18021
+ e && /* @__PURE__ */ R.jsx(
18022
18022
  "div",
18023
18023
  {
18024
18024
  className: `mt-8 flex justify-center ${n ? "animate-fade-in opacity-0" : ""}`,
18025
18025
  style: n ? { animationDelay: "1s" } : {},
18026
- children: /* @__PURE__ */ I.jsx(
18026
+ children: /* @__PURE__ */ R.jsx(
18027
18027
  "button",
18028
18028
  {
18029
18029
  onClick: c,
@@ -18049,16 +18049,16 @@ function Lae({
18049
18049
  updateStore: n
18050
18050
  }) {
18051
18051
  let a = i ?? Oo("cc", "", "string") ?? null;
18052
- const o = /* @__PURE__ */ I.jsxs("div", { className: "flex flex-col items-center", children: [
18053
- /* @__PURE__ */ I.jsx("svg", { className: "w-12 h-12", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ I.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) }),
18054
- /* @__PURE__ */ I.jsxs("p", { className: "", children: [
18052
+ const o = /* @__PURE__ */ R.jsxs("div", { className: "flex flex-col items-center", children: [
18053
+ /* @__PURE__ */ R.jsx("svg", { className: "w-12 h-12", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ R.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) }),
18054
+ /* @__PURE__ */ R.jsxs("p", { className: "", children: [
18055
18055
  "Thank you! Your data has been successfully submitted. ",
18056
- /* @__PURE__ */ I.jsx("br", {}),
18056
+ /* @__PURE__ */ R.jsx("br", {}),
18057
18057
  " You can go back to Prolific and enter the code ",
18058
18058
  a,
18059
18059
  " to finish the study. Alternatively, you can click on this link:",
18060
18060
  " ",
18061
- /* @__PURE__ */ I.jsx(
18061
+ /* @__PURE__ */ R.jsx(
18062
18062
  "a",
18063
18063
  {
18064
18064
  target: "_blank",
@@ -18069,7 +18069,7 @@ function Lae({
18069
18069
  )
18070
18070
  ] })
18071
18071
  ] });
18072
- return /* @__PURE__ */ I.jsx(wv, { data: r, updateStore: n, className: e, containerClass: t, animate: s, content: o, buttonText: "", next: () => {
18072
+ return /* @__PURE__ */ R.jsx(wv, { data: r, updateStore: n, className: e, containerClass: t, animate: s, content: o, buttonText: "", next: () => {
18073
18073
  } });
18074
18074
  }
18075
18075
  var SV = {
@@ -18205,10 +18205,10 @@ const Hae = ({ stream: i }) => {
18205
18205
  const f = (m, g) => g + (m - g) * 0.08, y = (m, g = 3) => {
18206
18206
  const b = new Array(m.length).fill(0);
18207
18207
  for (let x = 0; x < m.length; x++) {
18208
- let T = 0, R = 0;
18209
- for (let A = Math.max(0, x - g); A < Math.min(m.length, x + g + 1); A++)
18210
- T += m[A], R++;
18211
- b[x] = T / R;
18208
+ let T = 0, A = 0;
18209
+ for (let L = Math.max(0, x - g); L < Math.min(m.length, x + g + 1); L++)
18210
+ T += m[L], A++;
18211
+ b[x] = T / A;
18212
18212
  }
18213
18213
  return b;
18214
18214
  }, v = () => {
@@ -18218,24 +18218,24 @@ const Hae = ({ stream: i }) => {
18218
18218
  (D, V) => f(D, r.current[V])
18219
18219
  ), T = y(x);
18220
18220
  r.current = T, u.fillStyle = "#ffffff", u.fillRect(0, 0, m * h, g * h), u.beginPath(), u.strokeStyle = "rgba(0, 0, 0, 0.1)", u.lineWidth = 1, u.moveTo(0, b), u.lineTo(m, b), u.stroke(), u.beginPath(), u.lineWidth = 2, u.strokeStyle = "rgba(0, 0, 0, 0.85)";
18221
- const R = 4, A = [];
18222
- for (let D = 0; D < T.length; D += R) {
18223
- const V = D / T.length * m, _ = (T[D] - 128) / 128, N = b + _ * g * 4;
18224
- A.push([V, N]);
18225
- }
18226
- if (A.length > 0) {
18227
- u.moveTo(A[0][0], A[0][1]);
18228
- for (let D = 1; D < A.length - 2; D++) {
18229
- const V = (A[D][0] + A[D + 1][0]) / 2, _ = (A[D][1] + A[D + 1][1]) / 2;
18230
- u.quadraticCurveTo(A[D][0], A[D][1], V, _);
18221
+ const A = 4, L = [];
18222
+ for (let D = 0; D < T.length; D += A) {
18223
+ const V = D / T.length * m, I = (T[D] - 128) / 128, M = b + I * g * 4;
18224
+ L.push([V, M]);
18225
+ }
18226
+ if (L.length > 0) {
18227
+ u.moveTo(L[0][0], L[0][1]);
18228
+ for (let D = 1; D < L.length - 2; D++) {
18229
+ const V = (L[D][0] + L[D + 1][0]) / 2, I = (L[D][1] + L[D + 1][1]) / 2;
18230
+ u.quadraticCurveTo(L[D][0], L[D][1], V, I);
18231
18231
  }
18232
- if (A.length > 2) {
18233
- const D = A.length - 1;
18232
+ if (L.length > 2) {
18233
+ const D = L.length - 1;
18234
18234
  u.quadraticCurveTo(
18235
- A[D - 1][0],
18236
- A[D - 1][1],
18237
- A[D][0],
18238
- A[D][1]
18235
+ L[D - 1][0],
18236
+ L[D - 1][1],
18237
+ L[D][0],
18238
+ L[D][1]
18239
18239
  );
18240
18240
  }
18241
18241
  }
@@ -18244,7 +18244,7 @@ const Hae = ({ stream: i }) => {
18244
18244
  return v(), () => {
18245
18245
  t.current && cancelAnimationFrame(t.current), o.disconnect(), n.close();
18246
18246
  };
18247
- }, [i]), /* @__PURE__ */ I.jsx(
18247
+ }, [i]), /* @__PURE__ */ R.jsx(
18248
18248
  "canvas",
18249
18249
  {
18250
18250
  ref: e,
@@ -18281,8 +18281,8 @@ const Hae = ({ stream: i }) => {
18281
18281
  const g = await new Promise((b) => {
18282
18282
  const x = new FileReader();
18283
18283
  x.onloadend = () => {
18284
- var R;
18285
- const T = ((R = x.result) == null ? void 0 : R.toString().split(",")[1]) || "";
18284
+ var A;
18285
+ const T = ((A = x.result) == null ? void 0 : A.toString().split(",")[1]) || "";
18286
18286
  b(T);
18287
18287
  }, x.readAsDataURL(v);
18288
18288
  });
@@ -18298,8 +18298,8 @@ const Hae = ({ stream: i }) => {
18298
18298
  }, y = () => {
18299
18299
  n && URL.revokeObjectURL(n), a(null), i.value = null, t();
18300
18300
  };
18301
- return /* @__PURE__ */ I.jsxs("div", { className: "flex flex-col items-center space-y-4 p-4 bg-white px-8 ", children: [
18302
- !n && /* @__PURE__ */ I.jsx(
18301
+ return /* @__PURE__ */ R.jsxs("div", { className: "flex flex-col items-center space-y-4 p-4 bg-white px-8 ", children: [
18302
+ !n && /* @__PURE__ */ R.jsx(
18303
18303
  "button",
18304
18304
  {
18305
18305
  onClick: s ? d : c,
@@ -18307,29 +18307,29 @@ const Hae = ({ stream: i }) => {
18307
18307
  ${s ? "bg-red-500 hover:bg-red-600" : ""}
18308
18308
  text-white transition-colors duration-200`,
18309
18309
  "aria-label": s ? "Stop Recording" : "Start Recording",
18310
- children: s ? /* @__PURE__ */ I.jsx(Bae, { className: "w-6 h-6" }) : /* @__PURE__ */ I.jsx(qae, { className: "w-6 h-6 text-black" })
18310
+ children: s ? /* @__PURE__ */ R.jsx(Bae, { className: "w-6 h-6" }) : /* @__PURE__ */ R.jsx(qae, { className: "w-6 h-6 text-black" })
18311
18311
  }
18312
18312
  ),
18313
- s && o && /* @__PURE__ */ I.jsx("div", { className: "w-full max-w-md mx-auto", children: /* @__PURE__ */ I.jsx(Hae, { stream: o }) }),
18314
- s && /* @__PURE__ */ I.jsxs("div", { className: "flex items-center space-x-2", children: [
18315
- /* @__PURE__ */ I.jsx("div", { className: "w-3 h-3 bg-red-500 rounded-full animate-pulse" }),
18316
- /* @__PURE__ */ I.jsx("span", { className: "text-sm text-black", children: "Recording..." })
18313
+ s && o && /* @__PURE__ */ R.jsx("div", { className: "w-full max-w-md mx-auto", children: /* @__PURE__ */ R.jsx(Hae, { stream: o }) }),
18314
+ s && /* @__PURE__ */ R.jsxs("div", { className: "flex items-center space-x-2", children: [
18315
+ /* @__PURE__ */ R.jsx("div", { className: "w-3 h-3 bg-red-500 rounded-full animate-pulse" }),
18316
+ /* @__PURE__ */ R.jsx("span", { className: "text-sm text-black", children: "Recording..." })
18317
18317
  ] }),
18318
- n && !s && /* @__PURE__ */ I.jsxs("div", { className: "flex flex-col items-center space-y-4 w-full max-w-md", children: [
18319
- /* @__PURE__ */ I.jsxs("audio", { controls: !0, preload: "none", className: "w-full", playsInline: !0, children: [
18320
- /* @__PURE__ */ I.jsx("source", { src: n, type: "audio/mp4" }),
18321
- /* @__PURE__ */ I.jsx("source", { src: n, type: "audio/webm" }),
18318
+ n && !s && /* @__PURE__ */ R.jsxs("div", { className: "flex flex-col items-center space-y-4 w-full max-w-md", children: [
18319
+ /* @__PURE__ */ R.jsxs("audio", { controls: !0, preload: "none", className: "w-full", playsInline: !0, children: [
18320
+ /* @__PURE__ */ R.jsx("source", { src: n, type: "audio/mp4" }),
18321
+ /* @__PURE__ */ R.jsx("source", { src: n, type: "audio/webm" }),
18322
18322
  "Your browser does not support the audio element."
18323
18323
  ] }),
18324
- /* @__PURE__ */ I.jsx("div", { className: "flex space-x-4", children: /* @__PURE__ */ I.jsxs(
18324
+ /* @__PURE__ */ R.jsx("div", { className: "flex space-x-4", children: /* @__PURE__ */ R.jsxs(
18325
18325
  "button",
18326
18326
  {
18327
18327
  onClick: y,
18328
18328
  className: `border-2 border-black shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none cursor-pointer flex items-center space-x-2 px-4 py-2 text-black
18329
18329
  rounded-xl transition-colors duration-200`,
18330
18330
  children: [
18331
- /* @__PURE__ */ I.jsx($ae, { className: "w-4 h-4" }),
18332
- /* @__PURE__ */ I.jsx("span", { children: "Discard" })
18331
+ /* @__PURE__ */ R.jsx($ae, { className: "w-4 h-4" }),
18332
+ /* @__PURE__ */ R.jsx("span", { children: "Discard" })
18333
18333
  ]
18334
18334
  }
18335
18335
  ) })
@@ -18339,7 +18339,7 @@ const Hae = ({ stream: i }) => {
18339
18339
  function Qae({
18340
18340
  setValue: i
18341
18341
  }) {
18342
- return /* @__PURE__ */ I.jsx(
18342
+ return /* @__PURE__ */ R.jsx(
18343
18343
  PV,
18344
18344
  {
18345
18345
  question: { value: null },
@@ -18371,8 +18371,8 @@ function Uae({
18371
18371
  const o = (h) => {
18372
18372
  r(h), i(h), a(!1);
18373
18373
  }, l = ((u = e.find((h) => h.deviceId === s)) == null ? void 0 : u.label) || "Select Microphone";
18374
- return /* @__PURE__ */ I.jsxs("div", { className: "relative w-64 mx-auto mt-8 mb-8", children: [
18375
- /* @__PURE__ */ I.jsx(
18374
+ return /* @__PURE__ */ R.jsxs("div", { className: "relative w-64 mx-auto mt-8 mb-8", children: [
18375
+ /* @__PURE__ */ R.jsx(
18376
18376
  "button",
18377
18377
  {
18378
18378
  onClick: () => a(!n),
@@ -18390,13 +18390,13 @@ function Uae({
18390
18390
  font-bold
18391
18391
  ${n ? "shadow-none translate-x-1 translate-y-1" : ""}
18392
18392
  `,
18393
- children: /* @__PURE__ */ I.jsxs("div", { className: "flex items-center justify-between", children: [
18394
- /* @__PURE__ */ I.jsx("span", { className: "truncate", children: l }),
18395
- /* @__PURE__ */ I.jsx("span", { className: `transition-transform ${n ? "rotate-180" : ""}`, children: "▼" })
18393
+ children: /* @__PURE__ */ R.jsxs("div", { className: "flex items-center justify-between", children: [
18394
+ /* @__PURE__ */ R.jsx("span", { className: "truncate", children: l }),
18395
+ /* @__PURE__ */ R.jsx("span", { className: `transition-transform ${n ? "rotate-180" : ""}`, children: "▼" })
18396
18396
  ] })
18397
18397
  }
18398
18398
  ),
18399
- n && /* @__PURE__ */ I.jsx("div", { className: "absolute w-full mt-2 z-50", children: /* @__PURE__ */ I.jsx(
18399
+ n && /* @__PURE__ */ R.jsx("div", { className: "absolute w-full mt-2 z-50", children: /* @__PURE__ */ R.jsx(
18400
18400
  "ul",
18401
18401
  {
18402
18402
  className: `
@@ -18405,7 +18405,7 @@ function Uae({
18405
18405
  shadow-[2px_2px_0px_0px_rgba(0,0,0,1)]
18406
18406
  max-h-60 overflow-auto
18407
18407
  `,
18408
- children: e.map((h) => /* @__PURE__ */ I.jsx(
18408
+ children: e.map((h) => /* @__PURE__ */ R.jsx(
18409
18409
  "li",
18410
18410
  {
18411
18411
  onClick: () => o(h.deviceId),
@@ -18427,14 +18427,14 @@ function Uae({
18427
18427
  }
18428
18428
  const zae = ({ next: i }) => {
18429
18429
  const [e, t] = rt(!1);
18430
- return /* @__PURE__ */ I.jsxs("div", { className: "max-w-prose mx-auto mt-20 mb-20 px-4 ", children: [
18431
- /* @__PURE__ */ I.jsxs("article", { className: "prose prose-2xl prose-slate text-xl text-black leading-relaxed", children: [
18432
- /* @__PURE__ */ I.jsx("h1", { className: "text-3xl mb-6 font-semibold", children: "Let's test your microphone!" }),
18433
- /* @__PURE__ */ I.jsx("p", { children: "In this experiment, you will need to answer some questions verbally. To make sure that we don't lose your input, please select your preferred microphone using the menu below..." })
18430
+ return /* @__PURE__ */ R.jsxs("div", { className: "max-w-prose mx-auto mt-20 mb-20 px-4 ", children: [
18431
+ /* @__PURE__ */ R.jsxs("article", { className: "prose prose-2xl prose-slate text-xl text-black leading-relaxed", children: [
18432
+ /* @__PURE__ */ R.jsx("h1", { className: "text-3xl mb-6 font-semibold", children: "Let's test your microphone!" }),
18433
+ /* @__PURE__ */ R.jsx("p", { children: "In this experiment, you will need to answer some questions verbally. To make sure that we don't lose your input, please select your preferred microphone using the menu below..." })
18434
18434
  ] }),
18435
- /* @__PURE__ */ I.jsx(Uae, { onMicrophoneSelect: (s) => window.audioInputId = s }),
18436
- /* @__PURE__ */ I.jsx("article", { className: "prose prose-2xl prose-slate text-xl text-black leading-relaxed", children: /* @__PURE__ */ I.jsx("p", { children: "... and use the recording button below to make a test recording of your voice. After stopping the recording, you can use the play button to play back the audio." }) }),
18437
- /* @__PURE__ */ I.jsx(
18435
+ /* @__PURE__ */ R.jsx(Uae, { onMicrophoneSelect: (s) => window.audioInputId = s }),
18436
+ /* @__PURE__ */ R.jsx("article", { className: "prose prose-2xl prose-slate text-xl text-black leading-relaxed", children: /* @__PURE__ */ R.jsx("p", { children: "... and use the recording button below to make a test recording of your voice. After stopping the recording, you can use the play button to play back the audio." }) }),
18437
+ /* @__PURE__ */ R.jsx(
18438
18438
  PV,
18439
18439
  {
18440
18440
  question: { value: null },
@@ -18442,13 +18442,13 @@ const zae = ({ next: i }) => {
18442
18442
  handleDiscardVoiceData: () => t(!1)
18443
18443
  }
18444
18444
  ),
18445
- e && /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
18446
- /* @__PURE__ */ I.jsx("article", { className: "prose prose-2xl prose-slate text-xl text-black leading-relaxed", children: /* @__PURE__ */ I.jsxs("p", { children: [
18445
+ e && /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
18446
+ /* @__PURE__ */ R.jsx("article", { className: "prose prose-2xl prose-slate text-xl text-black leading-relaxed", children: /* @__PURE__ */ R.jsxs("p", { children: [
18447
18447
  "Can you hear yourself? Great! You can continue on to the next step. ",
18448
- /* @__PURE__ */ I.jsx("br", {}),
18448
+ /* @__PURE__ */ R.jsx("br", {}),
18449
18449
  " If you can't hear your voice, try one of the other options from the list or check any physical mute switches on your microphone. Be sure to also check that your computer audio is turned on so you can actually listen back to your test recording!"
18450
18450
  ] }) }),
18451
- /* @__PURE__ */ I.jsx("div", { className: "mt-16 flex justify-center", children: /* @__PURE__ */ I.jsx(
18451
+ /* @__PURE__ */ R.jsx("div", { className: "mt-16 flex justify-center", children: /* @__PURE__ */ R.jsx(
18452
18452
  "button",
18453
18453
  {
18454
18454
  onClick: () => i({}),
@@ -21579,7 +21579,7 @@ const Vv = (
21579
21579
  Expression: Xa
21580
21580
  };
21581
21581
  let o = Xa;
21582
- const l = "||", u = "or", h = "&&", c = "and", d = "<=", f = "lessorequal", y = ">=", v = "greaterorequal", m = "==", g = "equal", b = "=", x = "!=", T = "notequal", R = "<", A = "less", D = ">", V = "greater", _ = "+", N = "-", q = "*", Q = "/", L = "%", 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 = "'", st = '"', 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), M = Pe("power", !0), ie = Pe("*=", !1), me = Pe("contains", !0), Fe = Pe("contain", !0), bt = Pe("notcontains", !0), Pt = Pe("notcontain", !0), it = 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([" ", " ", `
21582
+ 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 = "'", st = '"', 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), it = 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([" ", " ", `
21583
21583
  `, "\r"], !1, !1, !1);
21584
21584
  function pT(C, w) {
21585
21585
  return ma(C, w, !0);
@@ -21898,7 +21898,7 @@ const Vv = (
21898
21898
  function G0() {
21899
21899
  let C, w;
21900
21900
  const z = E * 34 + 5, O = ve[z];
21901
- return O ? (E = O.nextPos, O.result) : (C = E, t.substr(E, 2) === d ? (w = d, E += 2) : (w = r, he === 0 && ce(de)), w === r && (w = t.substr(E, 11), w.toLowerCase() === f ? E += 11 : (w = r, he === 0 && ce(Ae))), w !== r && (xe = C, w = yT()), C = w, C === r && (C = E, t.substr(E, 2) === y ? (w = y, E += 2) : (w = r, he === 0 && ce(je)), w === r && (w = t.substr(E, 14), w.toLowerCase() === v ? E += 14 : (w = r, he === 0 && ce(as))), w !== r && (xe = C, w = CT()), C = w, C === r && (C = E, t.substr(E, 2) === m ? (w = m, E += 2) : (w = r, he === 0 && ce(Rs)), w === r && (w = t.substr(E, 5), w.toLowerCase() === g ? E += 5 : (w = r, he === 0 && ce(zr))), w !== r && (xe = C, w = bT()), C = w, C === r && (C = E, t.charCodeAt(E) === 61 ? (w = b, E++) : (w = r, he === 0 && ce(Za)), w === r && (w = t.substr(E, 5), w.toLowerCase() === g ? E += 5 : (w = r, he === 0 && ce(zr))), w !== r && (xe = C, w = wT()), C = w, C === r && (C = E, t.substr(E, 2) === x ? (w = x, E += 2) : (w = r, he === 0 && ce(pa)), w === r && (w = t.substr(E, 8), w.toLowerCase() === T ? E += 8 : (w = r, he === 0 && ce(op))), w !== r && (xe = C, w = xT()), C = w, C === r && (C = E, t.charCodeAt(E) === 60 ? (w = R, E++) : (w = r, he === 0 && ce(Bu)), w === r && (w = t.substr(E, 4), w.toLowerCase() === A ? E += 4 : (w = r, he === 0 && ce($u))), w !== r && (xe = C, w = ET()), C = w, C === r && (C = E, t.charCodeAt(E) === 62 ? (w = D, E++) : (w = r, he === 0 && ce(lp)), w === r && (w = t.substr(E, 7), w.toLowerCase() === V ? E += 7 : (w = r, he === 0 && ce(up))), w !== r && (xe = C, w = VT()), C = w)))))), ve[z] = { nextPos: E, result: C }, C);
21901
+ return O ? (E = O.nextPos, O.result) : (C = E, t.substr(E, 2) === d ? (w = d, E += 2) : (w = r, he === 0 && ce(de)), w === r && (w = t.substr(E, 11), w.toLowerCase() === f ? E += 11 : (w = r, he === 0 && ce(Ae))), w !== r && (xe = C, w = yT()), C = w, C === r && (C = E, t.substr(E, 2) === y ? (w = y, E += 2) : (w = r, he === 0 && ce(je)), w === r && (w = t.substr(E, 14), w.toLowerCase() === v ? E += 14 : (w = r, he === 0 && ce(as))), w !== r && (xe = C, w = CT()), C = w, C === r && (C = E, t.substr(E, 2) === m ? (w = m, E += 2) : (w = r, he === 0 && ce(Rs)), w === r && (w = t.substr(E, 5), w.toLowerCase() === g ? E += 5 : (w = r, he === 0 && ce(zr))), w !== r && (xe = C, w = bT()), C = w, C === r && (C = E, t.charCodeAt(E) === 61 ? (w = b, E++) : (w = r, he === 0 && ce(Za)), w === r && (w = t.substr(E, 5), w.toLowerCase() === g ? E += 5 : (w = r, he === 0 && ce(zr))), w !== r && (xe = C, w = wT()), C = w, C === r && (C = E, t.substr(E, 2) === x ? (w = x, E += 2) : (w = r, he === 0 && ce(pa)), w === r && (w = t.substr(E, 8), w.toLowerCase() === T ? E += 8 : (w = r, he === 0 && ce(op))), w !== r && (xe = C, w = xT()), C = w, C === r && (C = E, t.charCodeAt(E) === 60 ? (w = A, E++) : (w = r, he === 0 && ce(Bu)), w === r && (w = t.substr(E, 4), w.toLowerCase() === L ? E += 4 : (w = r, he === 0 && ce($u))), w !== r && (xe = C, w = ET()), C = w, C === r && (C = E, t.charCodeAt(E) === 62 ? (w = D, E++) : (w = r, he === 0 && ce(lp)), w === r && (w = t.substr(E, 7), w.toLowerCase() === V ? E += 7 : (w = r, he === 0 && ce(up))), w !== r && (xe = C, w = VT()), C = w)))))), ve[z] = { nextPos: E, result: C }, C);
21902
21902
  }
21903
21903
  function yp() {
21904
21904
  let C, w, z, O, J, le, qe, Ee;
@@ -21916,7 +21916,7 @@ const Vv = (
21916
21916
  function K0() {
21917
21917
  let C, w;
21918
21918
  const z = E * 34 + 7, O = ve[z];
21919
- return O ? (E = O.nextPos, O.result) : (C = E, t.charCodeAt(E) === 43 ? (w = _, E++) : (w = r, he === 0 && ce(Hu)), w !== r && (xe = C, w = TT()), C = w, C === r && (C = E, t.charCodeAt(E) === 45 ? (w = N, E++) : (w = r, he === 0 && ce(Qu)), w !== r && (xe = C, w = PT()), C = w), ve[z] = { nextPos: E, result: C }, C);
21919
+ return O ? (E = O.nextPos, O.result) : (C = E, t.charCodeAt(E) === 43 ? (w = I, E++) : (w = r, he === 0 && ce(Hu)), w !== r && (xe = C, w = TT()), C = w, C === r && (C = E, t.charCodeAt(E) === 45 ? (w = M, E++) : (w = r, he === 0 && ce(Qu)), w !== r && (xe = C, w = PT()), C = w), ve[z] = { nextPos: E, result: C }, C);
21920
21920
  }
21921
21921
  function Cp() {
21922
21922
  let C, w, z, O, J, le, qe, Ee;
@@ -21934,7 +21934,7 @@ const Vv = (
21934
21934
  function Z0() {
21935
21935
  let C, w;
21936
21936
  const z = E * 34 + 9, O = ve[z];
21937
- return O ? (E = O.nextPos, O.result) : (C = E, t.charCodeAt(E) === 42 ? (w = q, E++) : (w = r, he === 0 && ce(hp)), w !== r && (xe = C, w = RT()), C = w, C === r && (C = E, t.charCodeAt(E) === 47 ? (w = Q, E++) : (w = r, he === 0 && ce(cp)), w !== r && (xe = C, w = AT()), C = w, C === r && (C = E, t.charCodeAt(E) === 37 ? (w = L, E++) : (w = r, he === 0 && ce(dp)), w !== r && (xe = C, w = LT()), C = w)), ve[z] = { nextPos: E, result: C }, C);
21937
+ return O ? (E = O.nextPos, O.result) : (C = E, t.charCodeAt(E) === 42 ? (w = q, E++) : (w = r, he === 0 && ce(hp)), w !== r && (xe = C, w = RT()), C = w, C === r && (C = E, t.charCodeAt(E) === 47 ? (w = Q, E++) : (w = r, he === 0 && ce(cp)), w !== r && (xe = C, w = AT()), C = w, C === r && (C = E, t.charCodeAt(E) === 37 ? (w = _, E++) : (w = r, he === 0 && ce(dp)), w !== r && (xe = C, w = LT()), C = w)), ve[z] = { nextPos: E, result: C }, C);
21938
21938
  }
21939
21939
  function bp() {
21940
21940
  let C, w, z, O, J, le, qe, Ee;
@@ -21952,7 +21952,7 @@ const Vv = (
21952
21952
  function J0() {
21953
21953
  let C, w;
21954
21954
  const z = E * 34 + 11, O = ve[z];
21955
- return O ? (E = O.nextPos, O.result) : (C = E, t.charCodeAt(E) === 94 ? (w = B, E++) : (w = r, he === 0 && ce(pp)), w === r && (w = t.substr(E, 5), w.toLowerCase() === H ? E += 5 : (w = r, he === 0 && ce(M))), w !== r && (xe = C, w = DT()), C = w, ve[z] = { nextPos: E, result: C }, C);
21955
+ return O ? (E = O.nextPos, O.result) : (C = E, t.charCodeAt(E) === 94 ? (w = B, E++) : (w = r, he === 0 && ce(pp)), w === r && (w = t.substr(E, 5), w.toLowerCase() === H ? E += 5 : (w = r, he === 0 && ce(N))), w !== r && (xe = C, w = DT()), C = w, ve[z] = { nextPos: E, result: C }, C);
21956
21956
  }
21957
21957
  function wp() {
21958
21958
  let C, w, z, O, J, le, qe, Ee;
@@ -58082,8 +58082,8 @@ class kt extends Vs {
58082
58082
  const n = !(this.isReadOnly || !e.isEnabled) && this.value != e.value && !(this.survey && this.survey.isDesignMode), a = this.renderedRateItems.filter((D) => D.itemValue == e)[0], o = this.isStar && (a == null ? void 0 : a.highlight) == "highlighted", l = this.isStar && (a == null ? void 0 : a.highlight) == "unhighlighted";
58083
58083
  let u = this.cssClasses.item, h = this.cssClasses.selected, c = this.cssClasses.itemDisabled, d = this.cssClasses.itemReadOnly, f = this.cssClasses.itemPreview, y = this.cssClasses.itemHover, v = this.cssClasses.itemOnError, m = null, g = null, b = null, x = null, T = null;
58084
58084
  this.isStar && (u = this.cssClasses.itemStar, h = this.cssClasses.itemStarSelected, c = this.cssClasses.itemStarDisabled, d = this.cssClasses.itemStarReadOnly, f = this.cssClasses.itemStarPreview, y = this.cssClasses.itemStarHover, v = this.cssClasses.itemStarOnError, m = this.cssClasses.itemStarHighlighted, g = this.cssClasses.itemStarUnhighlighted, T = this.cssClasses.itemStarSmall), this.isSmiley && (u = this.cssClasses.itemSmiley, h = this.cssClasses.itemSmileySelected, c = this.cssClasses.itemSmileyDisabled, d = this.cssClasses.itemSmileyReadOnly, f = this.cssClasses.itemSmileyPreview, y = this.cssClasses.itemSmileyHover, v = this.cssClasses.itemSmileyOnError, m = this.cssClasses.itemSmileyHighlighted, b = this.cssClasses.itemSmileyScaleColored, x = this.cssClasses.itemSmileyRateColored, T = this.cssClasses.itemSmileySmall);
58085
- const R = !this.isStar && !this.isSmiley && (!this.displayRateDescriptionsAsExtremeItems || this.useRateValues() && e != this.rateValues[0] && e != this.rateValues[this.rateValues.length - 1] || !this.useRateValues() && e.value != this.rateMin && e.value != this.rateMax) && e.locText.calculatedText.length <= 2 && Number.isInteger(Number(e.locText.calculatedText)), A = { item: e, css: "" };
58086
- return A.css = new W().append(u).append(h, s).append(c, this.isDisabledStyle).append(d, this.isReadOnlyStyle).append(f, this.isPreviewStyle).append(y, n).append(m, o).append(b, this.scaleColorMode == "colored").append(x, this.rateColorMode == "scale" && s).append(g, l).append(v, this.hasCssError()).append(T, this.itemSmallMode).append(this.cssClasses.itemFixedSize, R).toString(), this.survey && this.survey.updateChoiceItemCss(this, A), A.css;
58085
+ const A = !this.isStar && !this.isSmiley && (!this.displayRateDescriptionsAsExtremeItems || this.useRateValues() && e != this.rateValues[0] && e != this.rateValues[this.rateValues.length - 1] || !this.useRateValues() && e.value != this.rateMin && e.value != this.rateMax) && e.locText.calculatedText.length <= 2 && Number.isInteger(Number(e.locText.calculatedText)), L = { item: e, css: "" };
58086
+ return L.css = new W().append(u).append(h, s).append(c, this.isDisabledStyle).append(d, this.isReadOnlyStyle).append(f, this.isPreviewStyle).append(y, n).append(m, o).append(b, this.scaleColorMode == "colored").append(x, this.rateColorMode == "scale" && s).append(g, l).append(v, this.hasCssError()).append(T, this.itemSmallMode).append(this.cssClasses.itemFixedSize, A).toString(), this.survey && this.survey.updateChoiceItemCss(this, L), L.css;
58087
58087
  }
58088
58088
  //methods for mobile view
58089
58089
  getControlClass() {
@@ -70423,7 +70423,7 @@ const Bce = (i, e) => {
70423
70423
  }
70424
70424
  renderElement() {
70425
70425
  const n = e;
70426
- return /* @__PURE__ */ I.jsx(
70426
+ return /* @__PURE__ */ R.jsx(
70427
70427
  n,
70428
70428
  {
70429
70429
  setValue: (a) => {
@@ -70438,25 +70438,27 @@ const Bce = (i, e) => {
70438
70438
  function $ce({
70439
70439
  next: i,
70440
70440
  surveyJson: e,
70441
- customQuestions: t = {}
70441
+ customQuestions: t = {},
70442
+ theme: s,
70443
+ containerClass: r
70442
70444
  }) {
70443
- Object.keys(t).forEach((n) => {
70444
- Bce(n, t[n]);
70445
+ Object.keys(t).forEach((o) => {
70446
+ Bce(o, t[o]);
70445
70447
  });
70446
- const s = new ze({
70448
+ const n = new ze({
70447
70449
  ...e,
70448
70450
  css: { ...Rc, root: "sd-root-modern custom-root" }
70449
70451
  });
70450
- s.applyTheme(qce);
70451
- const r = Xe(
70452
- (n) => {
70453
- i({ ...n.data });
70452
+ n.applyTheme(s ?? qce);
70453
+ const a = Xe(
70454
+ (o) => {
70455
+ i({ ...o.data });
70454
70456
  },
70455
70457
  [i]
70456
70458
  );
70457
- return s.onComplete.add(r), /* @__PURE__ */ I.jsxs("div", { className: "max-w-4xl mx-auto px-4", children: [
70458
- /* @__PURE__ */ I.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]" }),
70459
- /* @__PURE__ */ I.jsx(_S, { model: s })
70459
+ return n.onComplete.add(a), /* @__PURE__ */ R.jsxs("div", { className: `max-w-4xl mx-auto px-4 ${r ?? ""}`, children: [
70460
+ !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]" }),
70461
+ /* @__PURE__ */ R.jsx(_S, { model: n })
70460
70462
  ] });
70461
70463
  }
70462
70464
  var Du = class {
@@ -70760,15 +70762,15 @@ function r3(i) {
70760
70762
  v = Promise.reject(g);
70761
70763
  }
70762
70764
  Promise.resolve(v).then(c).catch((g) => {
70763
- var A;
70765
+ var L;
70764
70766
  if (s)
70765
70767
  return;
70766
- const b = i.retry ?? (Zd ? 0 : 3), x = i.retryDelay ?? ede, T = typeof x == "function" ? x(t, g) : x, R = b === !0 || typeof b == "number" && t < b || typeof b == "function" && b(t, g);
70767
- if (e || !R) {
70768
+ const b = i.retry ?? (Zd ? 0 : 3), x = i.retryDelay ?? ede, T = typeof x == "function" ? x(t, g) : x, A = b === !0 || typeof b == "number" && t < b || typeof b == "function" && b(t, g);
70769
+ if (e || !A) {
70768
70770
  d(g);
70769
70771
  return;
70770
70772
  }
70771
- t++, (A = i.onFail) == null || A.call(i, t, g), Wce(T).then(() => u() ? void 0 : f()).then(() => {
70773
+ t++, (L = i.onFail) == null || L.call(i, t, g), Wce(T).then(() => u() ? void 0 : f()).then(() => {
70772
70774
  e ? d(g) : y();
70773
70775
  });
70774
70776
  });
@@ -71255,11 +71257,11 @@ var Er, Dx, nde = (Dx = class extends Du {
71255
71257
  this.execute(this.state.variables);
71256
71258
  }
71257
71259
  async execute(e) {
71258
- var r, n, a, o, l, u, h, c, d, f, y, v, m, g, b, x, T, R, A, D;
71260
+ var r, n, a, o, l, u, h, c, d, f, y, v, m, g, b, x, T, A, L, D;
71259
71261
  Ue(this, La, r3({
71260
71262
  fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
71261
- onFail: (V, _) => {
71262
- os(this, Sr, _n).call(this, { type: "failed", failureCount: V, error: _ });
71263
+ onFail: (V, I) => {
71264
+ os(this, Sr, _n).call(this, { type: "failed", failureCount: V, error: I });
71263
71265
  },
71264
71266
  onPause: () => {
71265
71267
  os(this, Sr, _n).call(this, { type: "pause" });
@@ -71280,10 +71282,10 @@ var Er, Dx, nde = (Dx = class extends Du {
71280
71282
  e,
71281
71283
  this
71282
71284
  ));
71283
- const _ = await ((o = (a = this.options).onMutate) == null ? void 0 : o.call(a, e));
71284
- _ !== this.state.context && os(this, Sr, _n).call(this, {
71285
+ const I = await ((o = (a = this.options).onMutate) == null ? void 0 : o.call(a, e));
71286
+ I !== this.state.context && os(this, Sr, _n).call(this, {
71285
71287
  type: "pending",
71286
- context: _,
71288
+ context: I,
71287
71289
  variables: e,
71288
71290
  isPaused: s
71289
71291
  });
@@ -71316,15 +71318,15 @@ var Er, Dx, nde = (Dx = class extends Du {
71316
71318
  V,
71317
71319
  e,
71318
71320
  this.state.context
71319
- )), await ((R = (T = K(this, Ks).config).onSettled) == null ? void 0 : R.call(
71321
+ )), await ((A = (T = K(this, Ks).config).onSettled) == null ? void 0 : A.call(
71320
71322
  T,
71321
71323
  void 0,
71322
71324
  V,
71323
71325
  this.state.variables,
71324
71326
  this.state.context,
71325
71327
  this
71326
- )), await ((D = (A = this.options).onSettled) == null ? void 0 : D.call(
71327
- A,
71328
+ )), await ((D = (L = this.options).onSettled) == null ? void 0 : D.call(
71329
+ L,
71328
71330
  void 0,
71329
71331
  V,
71330
71332
  e,
@@ -71507,32 +71509,32 @@ function t2(i) {
71507
71509
  v = !0;
71508
71510
  }), e.signal)
71509
71511
  });
71510
- }, g = e3(e.options, e.fetchOptions), b = async (x, T, R) => {
71512
+ }, g = e3(e.options, e.fetchOptions), b = async (x, T, A) => {
71511
71513
  if (v)
71512
71514
  return Promise.reject();
71513
71515
  if (T == null && x.pages.length)
71514
71516
  return Promise.resolve(x);
71515
- const A = {
71517
+ const L = {
71516
71518
  queryKey: e.queryKey,
71517
71519
  pageParam: T,
71518
- direction: R ? "backward" : "forward",
71520
+ direction: A ? "backward" : "forward",
71519
71521
  meta: e.options.meta
71520
71522
  };
71521
- m(A);
71523
+ m(L);
71522
71524
  const D = await g(
71523
- A
71524
- ), { maxPages: V } = e.options, _ = R ? Zce : Kce;
71525
+ L
71526
+ ), { maxPages: V } = e.options, I = A ? Zce : Kce;
71525
71527
  return {
71526
- pages: _(x.pages, D, V),
71527
- pageParams: _(x.pageParams, T, V)
71528
+ pages: I(x.pages, D, V),
71529
+ pageParams: I(x.pageParams, T, V)
71528
71530
  };
71529
71531
  };
71530
71532
  if (r && n.length) {
71531
- const x = r === "backward", T = x ? lde : s2, R = {
71533
+ const x = r === "backward", T = x ? lde : s2, A = {
71532
71534
  pages: n,
71533
71535
  pageParams: a
71534
- }, A = T(s, R);
71535
- o = await b(R, A, x);
71536
+ }, L = T(s, A);
71537
+ o = await b(A, L, x);
71536
71538
  } else {
71537
71539
  const x = i ?? n.length;
71538
71540
  do {
@@ -71857,7 +71859,7 @@ var Xt, Qn, Un, Ao, Lo, zn, _o, Do, Mx, ude = (Mx = class {
71857
71859
  children: e
71858
71860
  }) => (p.useEffect(() => (i.mount(), () => {
71859
71861
  i.unmount();
71860
- }), [i]), /* @__PURE__ */ I.jsx(o3.Provider, { value: i, children: e }));
71862
+ }), [i]), /* @__PURE__ */ R.jsx(o3.Provider, { value: i, children: e }));
71861
71863
  function pde(i, e) {
71862
71864
  return typeof i == "function" ? i(...e) : !!i;
71863
71865
  }
@@ -72419,7 +72421,7 @@ function c2(i, e, t, s) {
72419
72421
  }
72420
72422
  function Nde() {
72421
72423
  const i = this;
72422
- let e, t, s, r, n, a, o, l, u, h, c, d, f, y, v, m, g, b, x, T, R, A, D, V, _, N, q, Q, L, B, H, $, j;
72424
+ let e, t, s, r, n, a, o, l, u, h, c, d, f, y, v, m, g, b, x, T, A, L, D, V, I, M, q, Q, _, B, H, $, j;
72423
72425
  const G = new Ft(), ne = new Ft(), Y = new Ft();
72424
72426
  i.depth = [];
72425
72427
  let oe, re, ue, Ie, ge, te;
@@ -72428,7 +72430,7 @@ function Nde() {
72428
72430
  u = 2 * n, c[f - 1] = 0;
72429
72431
  for (let Z = 0; Z < f - 1; Z++)
72430
72432
  c[Z] = 0;
72431
- N = er[q].max_lazy, L = er[q].good_length, B = er[q].nice_length, _ = er[q].max_chain, R = 0, g = 0, D = 0, b = V = Wt - 1, T = 0, d = 0;
72433
+ M = er[q].max_lazy, _ = er[q].good_length, B = er[q].nice_length, I = er[q].max_chain, A = 0, g = 0, D = 0, b = V = Wt - 1, T = 0, d = 0;
72432
72434
  }
72433
72435
  function et() {
72434
72436
  let Z;
@@ -72507,7 +72509,7 @@ function Nde() {
72507
72509
  function Ge(Z, se) {
72508
72510
  let X, ae, de;
72509
72511
  if (i.dist_buf[re] = Z, i.lc_buf[re] = se & 255, re++, Z === 0 ? H[se * 2]++ : (ue++, Z--, H[(Ft._length_code[se] + Mc + 1) * 2]++, $[Ft.d_code(Z) * 2]++), !(re & 8191) && q > 2) {
72510
- for (X = re * 8, ae = R - g, de = 0; de < zm; de++)
72512
+ for (X = re * 8, ae = A - g, de = 0; de < zm; de++)
72511
72513
  X += $[de * 2] * (5 + Ft.extra_dbits[de]);
72512
72514
  if (X >>>= 3, ue < Math.floor(re / 2) && X < Math.floor(ae / 2))
72513
72515
  return !0;
@@ -72536,17 +72538,17 @@ function Nde() {
72536
72538
  q > 0 ? (G.build_tree(i), ne.build_tree(i), Ae = Is(), ae = i.opt_len + 3 + 7 >>> 3, de = i.static_len + 3 + 7 >>> 3, de <= ae && (ae = de)) : ae = de = se + 5, se + 4 <= ae && Z != -1 ? ws(Z, se, X) : de == ae ? (Le((Sf << 1) + (X ? 1 : 0), 3), Te(Os.static_ltree, Os.static_dtree)) : (Le((Mde << 1) + (X ? 1 : 0), 3), zt(G.max_code + 1, ne.max_code + 1, Ae + 1), Te(H, $)), et(), X && ns();
72537
72539
  }
72538
72540
  function js(Z) {
72539
- Ur(g >= 0 ? g : -1, R - g, Z), g = R, e.flush_pending();
72541
+ Ur(g >= 0 ? g : -1, A - g, Z), g = A, e.flush_pending();
72540
72542
  }
72541
72543
  function Ws() {
72542
72544
  let Z, se, X, ae;
72543
72545
  do {
72544
- if (ae = u - D - R, ae === 0 && R === 0 && D === 0)
72546
+ if (ae = u - D - A, ae === 0 && A === 0 && D === 0)
72545
72547
  ae = n;
72546
72548
  else if (ae == -1)
72547
72549
  ae--;
72548
- else if (R >= n + n - Ci) {
72549
- l.set(l.subarray(n, n + n), 0), A -= n, R -= n, g -= n, Z = f, X = Z;
72550
+ else if (A >= n + n - Ci) {
72551
+ l.set(l.subarray(n, n + n), 0), L -= n, A -= n, g -= n, Z = f, X = Z;
72550
72552
  do
72551
72553
  se = c[--X] & 65535, c[X] = se >= n ? se - n : 0;
72552
72554
  while (--Z !== 0);
@@ -72558,7 +72560,7 @@ function Nde() {
72558
72560
  }
72559
72561
  if (e.avail_in === 0)
72560
72562
  return;
72561
- Z = e.read_buf(l, R + D, ae), D += Z, D >= Wt && (d = l[R] & 255, d = (d << m ^ l[R + 1] & 255) & v);
72563
+ Z = e.read_buf(l, A + D, ae), D += Z, D >= Wt && (d = l[A] & 255, d = (d << m ^ l[A + 1] & 255) & v);
72562
72564
  } while (D < Ci && e.avail_in !== 0);
72563
72565
  }
72564
72566
  function _i(Z) {
@@ -72570,18 +72572,18 @@ function Nde() {
72570
72572
  if (D === 0)
72571
72573
  break;
72572
72574
  }
72573
- if (R += D, D = 0, X = g + se, (R === 0 || R >= X) && (D = R - X, R = X, js(!1), e.avail_out === 0) || R - g >= n - Ci && (js(!1), e.avail_out === 0))
72575
+ if (A += D, D = 0, X = g + se, (A === 0 || A >= X) && (D = A - X, A = X, js(!1), e.avail_out === 0) || A - g >= n - Ci && (js(!1), e.avail_out === 0))
72574
72576
  return ki;
72575
72577
  }
72576
72578
  return js(Z == ri), e.avail_out === 0 ? Z == ri ? Rl : ki : Z == ri ? Dh : _h;
72577
72579
  }
72578
72580
  function Gs(Z) {
72579
- let se = _, X = R, ae, de, Ae = V;
72580
- const je = R > n - Ci ? R - (n - Ci) : 0;
72581
+ let se = I, X = A, ae, de, Ae = V;
72582
+ const je = A > n - Ci ? A - (n - Ci) : 0;
72581
72583
  let as = B;
72582
- const Rs = o, zr = R + tc;
72584
+ const Rs = o, zr = A + tc;
72583
72585
  let Za = l[X + Ae - 1], pa = l[X + Ae];
72584
- V >= L && (se >>= 2), as > D && (as = D);
72586
+ V >= _ && (se >>= 2), as > D && (as = D);
72585
72587
  do
72586
72588
  if (ae = Z, !(l[ae + Ae] != pa || l[ae + Ae - 1] != Za || l[ae] != l[X] || l[++ae] != l[X + 1])) {
72587
72589
  X += 2, ae++;
@@ -72589,7 +72591,7 @@ function Nde() {
72589
72591
  ;
72590
72592
  while (l[++X] == l[++ae] && l[++X] == l[++ae] && l[++X] == l[++ae] && l[++X] == l[++ae] && l[++X] == l[++ae] && l[++X] == l[++ae] && l[++X] == l[++ae] && l[++X] == l[++ae] && X < zr);
72591
72593
  if (de = tc - (zr - X), X = zr - tc, de > Ae) {
72592
- if (A = Z, Ae = de, de >= as)
72594
+ if (L = Z, Ae = de, de >= as)
72593
72595
  break;
72594
72596
  Za = l[X + Ae - 1], pa = l[X + Ae];
72595
72597
  }
@@ -72606,17 +72608,17 @@ function Nde() {
72606
72608
  if (D === 0)
72607
72609
  break;
72608
72610
  }
72609
- if (D >= Wt && (d = (d << m ^ l[R + (Wt - 1)] & 255) & v, se = c[d] & 65535, h[R & o] = c[d], c[d] = R), se !== 0 && (R - se & 65535) <= n - Ci && Q != Rh && (b = Gs(se)), b >= Wt)
72610
- if (X = Ge(R - A, b - Wt), D -= b, b <= N && D >= Wt) {
72611
+ if (D >= Wt && (d = (d << m ^ l[A + (Wt - 1)] & 255) & v, se = c[d] & 65535, h[A & o] = c[d], c[d] = A), se !== 0 && (A - se & 65535) <= n - Ci && Q != Rh && (b = Gs(se)), b >= Wt)
72612
+ if (X = Ge(A - L, b - Wt), D -= b, b <= M && D >= Wt) {
72611
72613
  b--;
72612
72614
  do
72613
- R++, d = (d << m ^ l[R + (Wt - 1)] & 255) & v, se = c[d] & 65535, h[R & o] = c[d], c[d] = R;
72615
+ A++, d = (d << m ^ l[A + (Wt - 1)] & 255) & v, se = c[d] & 65535, h[A & o] = c[d], c[d] = A;
72614
72616
  while (--b !== 0);
72615
- R++;
72617
+ A++;
72616
72618
  } else
72617
- R += b, b = 0, d = l[R] & 255, d = (d << m ^ l[R + 1] & 255) & v;
72619
+ A += b, b = 0, d = l[A] & 255, d = (d << m ^ l[A + 1] & 255) & v;
72618
72620
  else
72619
- X = Ge(0, l[R] & 255), D--, R++;
72621
+ X = Ge(0, l[A] & 255), D--, A++;
72620
72622
  if (X && (js(!1), e.avail_out === 0))
72621
72623
  return ki;
72622
72624
  }
@@ -72631,20 +72633,20 @@ function Nde() {
72631
72633
  if (D === 0)
72632
72634
  break;
72633
72635
  }
72634
- if (D >= Wt && (d = (d << m ^ l[R + (Wt - 1)] & 255) & v, se = c[d] & 65535, h[R & o] = c[d], c[d] = R), V = b, x = A, b = Wt - 1, se !== 0 && V < N && (R - se & 65535) <= n - Ci && (Q != Rh && (b = Gs(se)), b <= 5 && (Q == Vde || b == Wt && R - A > 4096) && (b = Wt - 1)), V >= Wt && b <= V) {
72635
- ae = R + D - Wt, X = Ge(R - 1 - x, V - Wt), D -= V - 1, V -= 2;
72636
+ if (D >= Wt && (d = (d << m ^ l[A + (Wt - 1)] & 255) & v, se = c[d] & 65535, h[A & o] = c[d], c[d] = A), V = b, x = L, b = Wt - 1, se !== 0 && V < M && (A - se & 65535) <= n - Ci && (Q != Rh && (b = Gs(se)), b <= 5 && (Q == Vde || b == Wt && A - L > 4096) && (b = Wt - 1)), V >= Wt && b <= V) {
72637
+ ae = A + D - Wt, X = Ge(A - 1 - x, V - Wt), D -= V - 1, V -= 2;
72636
72638
  do
72637
- ++R <= ae && (d = (d << m ^ l[R + (Wt - 1)] & 255) & v, se = c[d] & 65535, h[R & o] = c[d], c[d] = R);
72639
+ ++A <= ae && (d = (d << m ^ l[A + (Wt - 1)] & 255) & v, se = c[d] & 65535, h[A & o] = c[d], c[d] = A);
72638
72640
  while (--V !== 0);
72639
- if (T = 0, b = Wt - 1, R++, X && (js(!1), e.avail_out === 0))
72641
+ if (T = 0, b = Wt - 1, A++, X && (js(!1), e.avail_out === 0))
72640
72642
  return ki;
72641
72643
  } else if (T !== 0) {
72642
- if (X = Ge(0, l[R - 1] & 255), X && js(!1), R++, D--, e.avail_out === 0)
72644
+ if (X = Ge(0, l[A - 1] & 255), X && js(!1), A++, D--, e.avail_out === 0)
72643
72645
  return ki;
72644
72646
  } else
72645
- T = 1, R++, D--;
72647
+ T = 1, A++, D--;
72646
72648
  }
72647
- return T !== 0 && (X = Ge(0, l[R - 1] & 255), T = 0), js(Z == ri), e.avail_out === 0 ? Z == ri ? Rl : ki : Z == ri ? Dh : _h;
72649
+ return T !== 0 && (X = Ge(0, l[A - 1] & 255), T = 0), js(Z == ri), e.avail_out === 0 ? Z == ri ? Rl : ki : Z == ri ? Dh : _h;
72648
72650
  }
72649
72651
  function Cn(Z) {
72650
72652
  return Z.total_in = Z.total_out = 0, Z.msg = null, i.pending = 0, i.pending_out = 0, t = kh, r = po, Yt(), we(), sr;
@@ -72655,14 +72657,14 @@ function Nde() {
72655
72657
  return t != Ef && t != kh && t != Al ? ar : (i.lc_buf = null, i.dist_buf = null, i.pending_buf = null, c = null, h = null, l = null, i.dstate = null, t == kh ? Pde : sr);
72656
72658
  }, i.deflateParams = function(Z, se, X) {
72657
72659
  let ae = sr;
72658
- return se == Nc && (se = 6), se < 0 || se > 9 || X < 0 || X > Rh ? ar : (er[q].func != er[se].func && Z.total_in !== 0 && (ae = Z.deflate(u2)), q != se && (q = se, N = er[q].max_lazy, L = er[q].good_length, B = er[q].nice_length, _ = er[q].max_chain), Q = X, ae);
72660
+ return se == Nc && (se = 6), se < 0 || se > 9 || X < 0 || X > Rh ? ar : (er[q].func != er[se].func && Z.total_in !== 0 && (ae = Z.deflate(u2)), q != se && (q = se, M = er[q].max_lazy, _ = er[q].good_length, B = er[q].nice_length, I = er[q].max_chain), Q = X, ae);
72659
72661
  }, i.deflateSetDictionary = function(Z, se, X) {
72660
72662
  let ae = X, de, Ae = 0;
72661
72663
  if (!se || t != Ef)
72662
72664
  return ar;
72663
72665
  if (ae < Wt)
72664
72666
  return sr;
72665
- for (ae > n - Ci && (ae = n - Ci, Ae = X - ae), l.set(se.subarray(Ae, Ae + ae), 0), R = ae, g = ae, d = l[0] & 255, d = (d << m ^ l[1] & 255) & v, de = 0; de <= ae - Wt; de++)
72667
+ for (ae > n - Ci && (ae = n - Ci, Ae = X - ae), l.set(se.subarray(Ae, Ae + ae), 0), A = ae, g = ae, d = l[0] & 255, d = (d << m ^ l[1] & 255) & v, de = 0; de <= ae - Wt; de++)
72666
72668
  d = (d << m ^ l[de + (Wt - 1)] & 255) & v, h[de & o] = c[d], c[d] = de;
72667
72669
  return sr;
72668
72670
  }, i.deflate = function(Z, se) {
@@ -72673,7 +72675,7 @@ function Nde() {
72673
72675
  return Z.msg = Lh[Ah - ar], ar;
72674
72676
  if (Z.avail_out === 0)
72675
72677
  return Z.msg = Lh[Ah - uo], uo;
72676
- if (e = Z, Ae = r, r = se, t == Ef && (ae = Vf + (a - 8 << 4) << 8, de = (q - 1 & 255) >> 1, de > 3 && (de = 3), ae |= de << 6, R !== 0 && (ae |= kde), ae += 31 - ae % 31, t = kh, rs(ae)), i.pending !== 0) {
72678
+ if (e = Z, Ae = r, r = se, t == Ef && (ae = Vf + (a - 8 << 4) << 8, de = (q - 1 & 255) >> 1, de > 3 && (de = 3), ae |= de << 6, A !== 0 && (ae |= kde), ae += 31 - ae % 31, t = kh, rs(ae)), i.pending !== 0) {
72677
72679
  if (e.flush_pending(), e.avail_out === 0)
72678
72680
  return r = -1, sr;
72679
72681
  } else if (e.avail_in === 0 && se <= Ae && se != ri)
@@ -74576,53 +74578,53 @@ function Wm() {
74576
74578
  const i = this;
74577
74579
  let e, t, s, r, n, a;
74578
74580
  function o(u, h, c, d, f, y, v, m, g, b, x) {
74579
- let T, R, A, D, V, _, N, q, Q, L, B, H, $, j, G;
74580
- L = 0, V = c;
74581
+ let T, A, L, D, V, I, M, q, Q, _, B, H, $, j, G;
74582
+ _ = 0, V = c;
74581
74583
  do
74582
- s[u[h + L]]++, L++, V--;
74584
+ s[u[h + _]]++, _++, V--;
74583
74585
  while (V !== 0);
74584
74586
  if (s[0] == c)
74585
74587
  return v[0] = -1, m[0] = 0, gt;
74586
- for (q = m[0], _ = 1; _ <= In && s[_] === 0; _++)
74588
+ for (q = m[0], I = 1; I <= In && s[I] === 0; I++)
74587
74589
  ;
74588
- for (N = _, q < _ && (q = _), V = In; V !== 0 && s[V] === 0; V--)
74590
+ for (M = I, q < I && (q = I), V = In; V !== 0 && s[V] === 0; V--)
74589
74591
  ;
74590
- for (A = V, q > V && (q = V), m[0] = q, j = 1 << _; _ < V; _++, j <<= 1)
74591
- if ((j -= s[_]) < 0)
74592
+ for (L = V, q > V && (q = V), m[0] = q, j = 1 << I; I < V; I++, j <<= 1)
74593
+ if ((j -= s[I]) < 0)
74592
74594
  return qt;
74593
74595
  if ((j -= s[V]) < 0)
74594
74596
  return qt;
74595
- for (s[V] += j, a[1] = _ = 0, L = 1, $ = 2; --V !== 0; )
74596
- a[$] = _ += s[L], $++, L++;
74597
- V = 0, L = 0;
74597
+ for (s[V] += j, a[1] = I = 0, _ = 1, $ = 2; --V !== 0; )
74598
+ a[$] = I += s[_], $++, _++;
74599
+ V = 0, _ = 0;
74598
74600
  do
74599
- (_ = u[h + L]) !== 0 && (x[a[_]++] = V), L++;
74601
+ (I = u[h + _]) !== 0 && (x[a[I]++] = V), _++;
74600
74602
  while (++V < c);
74601
- for (c = a[A], a[0] = V = 0, L = 0, D = -1, H = -q, n[0] = 0, B = 0, G = 0; N <= A; N++)
74602
- for (T = s[N]; T-- !== 0; ) {
74603
- for (; N > H + q; ) {
74604
- if (D++, H += q, G = A - H, G = G > q ? q : G, (R = 1 << (_ = N - H)) > T + 1 && (R -= T + 1, $ = N, _ < G))
74605
- for (; ++_ < G && !((R <<= 1) <= s[++$]); )
74606
- R -= s[$];
74607
- if (G = 1 << _, b[0] + G > c3)
74603
+ for (c = a[L], a[0] = V = 0, _ = 0, D = -1, H = -q, n[0] = 0, B = 0, G = 0; M <= L; M++)
74604
+ for (T = s[M]; T-- !== 0; ) {
74605
+ for (; M > H + q; ) {
74606
+ if (D++, H += q, G = L - H, G = G > q ? q : G, (A = 1 << (I = M - H)) > T + 1 && (A -= T + 1, $ = M, I < G))
74607
+ for (; ++I < G && !((A <<= 1) <= s[++$]); )
74608
+ A -= s[$];
74609
+ if (G = 1 << I, b[0] + G > c3)
74608
74610
  return qt;
74609
74611
  n[D] = B = /* hp+ */
74610
74612
  b[0], b[0] += G, D !== 0 ? (a[D] = V, r[0] = /* (byte) */
74611
- _, r[1] = /* (byte) */
74612
- q, _ = V >>> H - q, r[2] = /* (int) */
74613
- B - n[D - 1] - _, g.set(r, (n[D - 1] + _) * 3)) : v[0] = B;
74613
+ I, r[1] = /* (byte) */
74614
+ q, I = V >>> H - q, r[2] = /* (int) */
74615
+ B - n[D - 1] - I, g.set(r, (n[D - 1] + I) * 3)) : v[0] = B;
74614
74616
  }
74615
74617
  for (r[1] = /* (byte) */
74616
- N - H, L >= c ? r[0] = 192 : x[L] < d ? (r[0] = /* (byte) */
74617
- x[L] < 256 ? 0 : 96, r[2] = x[L++]) : (r[0] = /* (byte) */
74618
- y[x[L] - d] + 16 + 64, r[2] = f[x[L++] - d]), R = 1 << N - H, _ = V >>> H; _ < G; _ += R)
74619
- g.set(r, (B + _) * 3);
74620
- for (_ = 1 << N - 1; V & _; _ >>>= 1)
74621
- V ^= _;
74622
- for (V ^= _, Q = (1 << H) - 1; (V & Q) != a[D]; )
74618
+ M - H, _ >= c ? r[0] = 192 : x[_] < d ? (r[0] = /* (byte) */
74619
+ x[_] < 256 ? 0 : 96, r[2] = x[_++]) : (r[0] = /* (byte) */
74620
+ y[x[_] - d] + 16 + 64, r[2] = f[x[_++] - d]), A = 1 << M - H, I = V >>> H; I < G; I += A)
74621
+ g.set(r, (B + I) * 3);
74622
+ for (I = 1 << M - 1; V & I; I >>>= 1)
74623
+ V ^= I;
74624
+ for (V ^= I, Q = (1 << H) - 1; (V & Q) != a[D]; )
74623
74625
  D--, H -= q, Q = (1 << H) - 1;
74624
74626
  }
74625
- return j !== 0 && A != 1 ? un : gt;
74627
+ return j !== 0 && L != 1 ? un : gt;
74626
74628
  }
74627
74629
  function l(u) {
74628
74630
  let h;
@@ -74649,169 +74651,169 @@ const Oh = 0, p2 = 1, f2 = 2, m2 = 3, g2 = 4, v2 = 5, y2 = 6, Tf = 7, C2 = 8, Mh
74649
74651
  function Yde() {
74650
74652
  const i = this;
74651
74653
  let e, t = 0, s, r = 0, n = 0, a = 0, o = 0, l = 0, u = 0, h = 0, c, d = 0, f, y = 0;
74652
- function v(m, g, b, x, T, R, A, D) {
74653
- let V, _, N, q, Q, L, B, H, $, j, G, ne, Y, oe, re, ue;
74654
- B = D.next_in_index, H = D.avail_in, Q = A.bitb, L = A.bitk, $ = A.write, j = $ < A.read ? A.read - $ - 1 : A.end - $, G = bi[m], ne = bi[g];
74654
+ function v(m, g, b, x, T, A, L, D) {
74655
+ let V, I, M, q, Q, _, B, H, $, j, G, ne, Y, oe, re, ue;
74656
+ B = D.next_in_index, H = D.avail_in, Q = L.bitb, _ = L.bitk, $ = L.write, j = $ < L.read ? L.read - $ - 1 : L.end - $, G = bi[m], ne = bi[g];
74655
74657
  do {
74656
- for (; L < 20; )
74657
- H--, Q |= (D.read_byte(B++) & 255) << L, L += 8;
74658
- if (V = Q & G, _ = b, N = x, ue = (N + V) * 3, (q = _[ue]) === 0) {
74659
- Q >>= _[ue + 1], L -= _[ue + 1], A.win[$++] = /* (byte) */
74660
- _[ue + 2], j--;
74658
+ for (; _ < 20; )
74659
+ H--, Q |= (D.read_byte(B++) & 255) << _, _ += 8;
74660
+ if (V = Q & G, I = b, M = x, ue = (M + V) * 3, (q = I[ue]) === 0) {
74661
+ Q >>= I[ue + 1], _ -= I[ue + 1], L.win[$++] = /* (byte) */
74662
+ I[ue + 2], j--;
74661
74663
  continue;
74662
74664
  }
74663
74665
  do {
74664
- if (Q >>= _[ue + 1], L -= _[ue + 1], q & 16) {
74665
- for (q &= 15, Y = _[ue + 2] + /* (int) */
74666
- (Q & bi[q]), Q >>= q, L -= q; L < 15; )
74667
- H--, Q |= (D.read_byte(B++) & 255) << L, L += 8;
74668
- V = Q & ne, _ = T, N = R, ue = (N + V) * 3, q = _[ue];
74666
+ if (Q >>= I[ue + 1], _ -= I[ue + 1], q & 16) {
74667
+ for (q &= 15, Y = I[ue + 2] + /* (int) */
74668
+ (Q & bi[q]), Q >>= q, _ -= q; _ < 15; )
74669
+ H--, Q |= (D.read_byte(B++) & 255) << _, _ += 8;
74670
+ V = Q & ne, I = T, M = A, ue = (M + V) * 3, q = I[ue];
74669
74671
  do
74670
- if (Q >>= _[ue + 1], L -= _[ue + 1], q & 16) {
74671
- for (q &= 15; L < q; )
74672
- H--, Q |= (D.read_byte(B++) & 255) << L, L += 8;
74673
- if (oe = _[ue + 2] + (Q & bi[q]), Q >>= q, L -= q, j -= Y, $ >= oe)
74674
- re = $ - oe, $ - re > 0 && 2 > $ - re ? (A.win[$++] = A.win[re++], A.win[$++] = A.win[re++], Y -= 2) : (A.win.set(A.win.subarray(re, re + 2), $), $ += 2, re += 2, Y -= 2);
74672
+ if (Q >>= I[ue + 1], _ -= I[ue + 1], q & 16) {
74673
+ for (q &= 15; _ < q; )
74674
+ H--, Q |= (D.read_byte(B++) & 255) << _, _ += 8;
74675
+ if (oe = I[ue + 2] + (Q & bi[q]), Q >>= q, _ -= q, j -= Y, $ >= oe)
74676
+ re = $ - oe, $ - re > 0 && 2 > $ - re ? (L.win[$++] = L.win[re++], L.win[$++] = L.win[re++], Y -= 2) : (L.win.set(L.win.subarray(re, re + 2), $), $ += 2, re += 2, Y -= 2);
74675
74677
  else {
74676
74678
  re = $ - oe;
74677
74679
  do
74678
- re += A.end;
74680
+ re += L.end;
74679
74681
  while (re < 0);
74680
- if (q = A.end - re, Y > q) {
74682
+ if (q = L.end - re, Y > q) {
74681
74683
  if (Y -= q, $ - re > 0 && q > $ - re)
74682
74684
  do
74683
- A.win[$++] = A.win[re++];
74685
+ L.win[$++] = L.win[re++];
74684
74686
  while (--q !== 0);
74685
74687
  else
74686
- A.win.set(A.win.subarray(re, re + q), $), $ += q, re += q, q = 0;
74688
+ L.win.set(L.win.subarray(re, re + q), $), $ += q, re += q, q = 0;
74687
74689
  re = 0;
74688
74690
  }
74689
74691
  }
74690
74692
  if ($ - re > 0 && Y > $ - re)
74691
74693
  do
74692
- A.win[$++] = A.win[re++];
74694
+ L.win[$++] = L.win[re++];
74693
74695
  while (--Y !== 0);
74694
74696
  else
74695
- A.win.set(A.win.subarray(re, re + Y), $), $ += Y, re += Y, Y = 0;
74697
+ L.win.set(L.win.subarray(re, re + Y), $), $ += Y, re += Y, Y = 0;
74696
74698
  break;
74697
74699
  } else if (!(q & 64))
74698
- V += _[ue + 2], V += Q & bi[q], ue = (N + V) * 3, q = _[ue];
74700
+ V += I[ue + 2], V += Q & bi[q], ue = (M + V) * 3, q = I[ue];
74699
74701
  else
74700
- return D.msg = "invalid distance code", Y = D.avail_in - H, Y = L >> 3 < Y ? L >> 3 : Y, H += Y, B -= Y, L -= Y << 3, A.bitb = Q, A.bitk = L, D.avail_in = H, D.total_in += B - D.next_in_index, D.next_in_index = B, A.write = $, qt;
74702
+ return D.msg = "invalid distance code", Y = D.avail_in - H, Y = _ >> 3 < Y ? _ >> 3 : Y, H += Y, B -= Y, _ -= Y << 3, L.bitb = Q, L.bitk = _, D.avail_in = H, D.total_in += B - D.next_in_index, D.next_in_index = B, L.write = $, qt;
74701
74703
  while (!0);
74702
74704
  break;
74703
74705
  }
74704
74706
  if (q & 64)
74705
- return q & 32 ? (Y = D.avail_in - H, Y = L >> 3 < Y ? L >> 3 : Y, H += Y, B -= Y, L -= Y << 3, A.bitb = Q, A.bitk = L, D.avail_in = H, D.total_in += B - D.next_in_index, D.next_in_index = B, A.write = $, ln) : (D.msg = "invalid literal/length code", Y = D.avail_in - H, Y = L >> 3 < Y ? L >> 3 : Y, H += Y, B -= Y, L -= Y << 3, A.bitb = Q, A.bitk = L, D.avail_in = H, D.total_in += B - D.next_in_index, D.next_in_index = B, A.write = $, qt);
74706
- if (V += _[ue + 2], V += Q & bi[q], ue = (N + V) * 3, (q = _[ue]) === 0) {
74707
- Q >>= _[ue + 1], L -= _[ue + 1], A.win[$++] = /* (byte) */
74708
- _[ue + 2], j--;
74707
+ return q & 32 ? (Y = D.avail_in - H, Y = _ >> 3 < Y ? _ >> 3 : Y, H += Y, B -= Y, _ -= Y << 3, L.bitb = Q, L.bitk = _, D.avail_in = H, D.total_in += B - D.next_in_index, D.next_in_index = B, L.write = $, ln) : (D.msg = "invalid literal/length code", Y = D.avail_in - H, Y = _ >> 3 < Y ? _ >> 3 : Y, H += Y, B -= Y, _ -= Y << 3, L.bitb = Q, L.bitk = _, D.avail_in = H, D.total_in += B - D.next_in_index, D.next_in_index = B, L.write = $, qt);
74708
+ if (V += I[ue + 2], V += Q & bi[q], ue = (M + V) * 3, (q = I[ue]) === 0) {
74709
+ Q >>= I[ue + 1], _ -= I[ue + 1], L.win[$++] = /* (byte) */
74710
+ I[ue + 2], j--;
74709
74711
  break;
74710
74712
  }
74711
74713
  } while (!0);
74712
74714
  } while (j >= 258 && H >= 10);
74713
- return Y = D.avail_in - H, Y = L >> 3 < Y ? L >> 3 : Y, H += Y, B -= Y, L -= Y << 3, A.bitb = Q, A.bitk = L, D.avail_in = H, D.total_in += B - D.next_in_index, D.next_in_index = B, A.write = $, gt;
74715
+ return Y = D.avail_in - H, Y = _ >> 3 < Y ? _ >> 3 : Y, H += Y, B -= Y, _ -= Y << 3, L.bitb = Q, L.bitk = _, D.avail_in = H, D.total_in += B - D.next_in_index, D.next_in_index = B, L.write = $, gt;
74714
74716
  }
74715
- i.init = function(m, g, b, x, T, R) {
74717
+ i.init = function(m, g, b, x, T, A) {
74716
74718
  e = Oh, u = /* (byte) */
74717
74719
  m, h = /* (byte) */
74718
- g, c = b, d = x, f = T, y = R, s = null;
74720
+ g, c = b, d = x, f = T, y = A, s = null;
74719
74721
  }, i.proc = function(m, g, b) {
74720
- let x, T, R, A = 0, D = 0, V = 0, _, N, q, Q;
74721
- for (V = g.next_in_index, _ = g.avail_in, A = m.bitb, D = m.bitk, N = m.write, q = N < m.read ? m.read - N - 1 : m.end - N; ; )
74722
+ let x, T, A, L = 0, D = 0, V = 0, I, M, q, Q;
74723
+ for (V = g.next_in_index, I = g.avail_in, L = m.bitb, D = m.bitk, M = m.write, q = M < m.read ? m.read - M - 1 : m.end - M; ; )
74722
74724
  switch (e) {
74723
74725
  case Oh:
74724
- if (q >= 258 && _ >= 10 && (m.bitb = A, m.bitk = D, g.avail_in = _, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = N, b = v(u, h, c, d, f, y, m, g), V = g.next_in_index, _ = g.avail_in, A = m.bitb, D = m.bitk, N = m.write, q = N < m.read ? m.read - N - 1 : m.end - N, b != gt)) {
74726
+ if (q >= 258 && I >= 10 && (m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, b = v(u, h, c, d, f, y, m, g), V = g.next_in_index, I = g.avail_in, L = m.bitb, D = m.bitk, M = m.write, q = M < m.read ? m.read - M - 1 : m.end - M, b != gt)) {
74725
74727
  e = b == ln ? Tf : Mh;
74726
74728
  break;
74727
74729
  }
74728
74730
  n = u, s = c, r = d, e = p2;
74729
74731
  case p2:
74730
74732
  for (x = n; D < x; ) {
74731
- if (_ !== 0)
74733
+ if (I !== 0)
74732
74734
  b = gt;
74733
74735
  else
74734
- return m.bitb = A, m.bitk = D, g.avail_in = _, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = N, m.inflate_flush(g, b);
74735
- _--, A |= (g.read_byte(V++) & 255) << D, D += 8;
74736
+ return m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
74737
+ I--, L |= (g.read_byte(V++) & 255) << D, D += 8;
74736
74738
  }
74737
- if (T = (r + (A & bi[x])) * 3, A >>>= s[T + 1], D -= s[T + 1], R = s[T], R === 0) {
74739
+ if (T = (r + (L & bi[x])) * 3, L >>>= s[T + 1], D -= s[T + 1], A = s[T], A === 0) {
74738
74740
  a = s[T + 2], e = y2;
74739
74741
  break;
74740
74742
  }
74741
- if (R & 16) {
74742
- o = R & 15, t = s[T + 2], e = f2;
74743
+ if (A & 16) {
74744
+ o = A & 15, t = s[T + 2], e = f2;
74743
74745
  break;
74744
74746
  }
74745
- if (!(R & 64)) {
74746
- n = R, r = T / 3 + s[T + 2];
74747
+ if (!(A & 64)) {
74748
+ n = A, r = T / 3 + s[T + 2];
74747
74749
  break;
74748
74750
  }
74749
- if (R & 32) {
74751
+ if (A & 32) {
74750
74752
  e = Tf;
74751
74753
  break;
74752
74754
  }
74753
- return e = Mh, g.msg = "invalid literal/length code", b = qt, m.bitb = A, m.bitk = D, g.avail_in = _, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = N, m.inflate_flush(g, b);
74755
+ return e = Mh, g.msg = "invalid literal/length code", b = qt, m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
74754
74756
  case f2:
74755
74757
  for (x = o; D < x; ) {
74756
- if (_ !== 0)
74758
+ if (I !== 0)
74757
74759
  b = gt;
74758
74760
  else
74759
- return m.bitb = A, m.bitk = D, g.avail_in = _, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = N, m.inflate_flush(g, b);
74760
- _--, A |= (g.read_byte(V++) & 255) << D, D += 8;
74761
+ return m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
74762
+ I--, L |= (g.read_byte(V++) & 255) << D, D += 8;
74761
74763
  }
74762
- t += A & bi[x], A >>= x, D -= x, n = h, s = f, r = y, e = m2;
74764
+ t += L & bi[x], L >>= x, D -= x, n = h, s = f, r = y, e = m2;
74763
74765
  case m2:
74764
74766
  for (x = n; D < x; ) {
74765
- if (_ !== 0)
74767
+ if (I !== 0)
74766
74768
  b = gt;
74767
74769
  else
74768
- return m.bitb = A, m.bitk = D, g.avail_in = _, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = N, m.inflate_flush(g, b);
74769
- _--, A |= (g.read_byte(V++) & 255) << D, D += 8;
74770
+ return m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
74771
+ I--, L |= (g.read_byte(V++) & 255) << D, D += 8;
74770
74772
  }
74771
- if (T = (r + (A & bi[x])) * 3, A >>= s[T + 1], D -= s[T + 1], R = s[T], R & 16) {
74772
- o = R & 15, l = s[T + 2], e = g2;
74773
+ if (T = (r + (L & bi[x])) * 3, L >>= s[T + 1], D -= s[T + 1], A = s[T], A & 16) {
74774
+ o = A & 15, l = s[T + 2], e = g2;
74773
74775
  break;
74774
74776
  }
74775
- if (!(R & 64)) {
74776
- n = R, r = T / 3 + s[T + 2];
74777
+ if (!(A & 64)) {
74778
+ n = A, r = T / 3 + s[T + 2];
74777
74779
  break;
74778
74780
  }
74779
- return e = Mh, g.msg = "invalid distance code", b = qt, m.bitb = A, m.bitk = D, g.avail_in = _, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = N, m.inflate_flush(g, b);
74781
+ return e = Mh, g.msg = "invalid distance code", b = qt, m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
74780
74782
  case g2:
74781
74783
  for (x = o; D < x; ) {
74782
- if (_ !== 0)
74784
+ if (I !== 0)
74783
74785
  b = gt;
74784
74786
  else
74785
- return m.bitb = A, m.bitk = D, g.avail_in = _, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = N, m.inflate_flush(g, b);
74786
- _--, A |= (g.read_byte(V++) & 255) << D, D += 8;
74787
+ return m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
74788
+ I--, L |= (g.read_byte(V++) & 255) << D, D += 8;
74787
74789
  }
74788
- l += A & bi[x], A >>= x, D -= x, e = v2;
74790
+ l += L & bi[x], L >>= x, D -= x, e = v2;
74789
74791
  case v2:
74790
- for (Q = N - l; Q < 0; )
74792
+ for (Q = M - l; Q < 0; )
74791
74793
  Q += m.end;
74792
74794
  for (; t !== 0; ) {
74793
- if (q === 0 && (N == m.end && m.read !== 0 && (N = 0, q = N < m.read ? m.read - N - 1 : m.end - N), q === 0 && (m.write = N, b = m.inflate_flush(g, b), N = m.write, q = N < m.read ? m.read - N - 1 : m.end - N, N == m.end && m.read !== 0 && (N = 0, q = N < m.read ? m.read - N - 1 : m.end - N), q === 0)))
74794
- return m.bitb = A, m.bitk = D, g.avail_in = _, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = N, m.inflate_flush(g, b);
74795
- m.win[N++] = m.win[Q++], q--, Q == m.end && (Q = 0), t--;
74795
+ if (q === 0 && (M == m.end && m.read !== 0 && (M = 0, q = M < m.read ? m.read - M - 1 : m.end - M), q === 0 && (m.write = M, b = m.inflate_flush(g, b), M = m.write, q = M < m.read ? m.read - M - 1 : m.end - M, M == m.end && m.read !== 0 && (M = 0, q = M < m.read ? m.read - M - 1 : m.end - M), q === 0)))
74796
+ return m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
74797
+ m.win[M++] = m.win[Q++], q--, Q == m.end && (Q = 0), t--;
74796
74798
  }
74797
74799
  e = Oh;
74798
74800
  break;
74799
74801
  case y2:
74800
- if (q === 0 && (N == m.end && m.read !== 0 && (N = 0, q = N < m.read ? m.read - N - 1 : m.end - N), q === 0 && (m.write = N, b = m.inflate_flush(g, b), N = m.write, q = N < m.read ? m.read - N - 1 : m.end - N, N == m.end && m.read !== 0 && (N = 0, q = N < m.read ? m.read - N - 1 : m.end - N), q === 0)))
74801
- return m.bitb = A, m.bitk = D, g.avail_in = _, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = N, m.inflate_flush(g, b);
74802
- b = gt, m.win[N++] = /* (byte) */
74802
+ if (q === 0 && (M == m.end && m.read !== 0 && (M = 0, q = M < m.read ? m.read - M - 1 : m.end - M), q === 0 && (m.write = M, b = m.inflate_flush(g, b), M = m.write, q = M < m.read ? m.read - M - 1 : m.end - M, M == m.end && m.read !== 0 && (M = 0, q = M < m.read ? m.read - M - 1 : m.end - M), q === 0)))
74803
+ return m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
74804
+ b = gt, m.win[M++] = /* (byte) */
74803
74805
  a, q--, e = Oh;
74804
74806
  break;
74805
74807
  case Tf:
74806
- if (D > 7 && (D -= 8, _++, V--), m.write = N, b = m.inflate_flush(g, b), N = m.write, q = N < m.read ? m.read - N - 1 : m.end - N, m.read != m.write)
74807
- return m.bitb = A, m.bitk = D, g.avail_in = _, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = N, m.inflate_flush(g, b);
74808
+ if (D > 7 && (D -= 8, I++, V--), m.write = M, b = m.inflate_flush(g, b), M = m.write, q = M < m.read ? m.read - M - 1 : m.end - M, m.read != m.write)
74809
+ return m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
74808
74810
  e = C2;
74809
74811
  case C2:
74810
- return b = ln, m.bitb = A, m.bitk = D, g.avail_in = _, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = N, m.inflate_flush(g, b);
74812
+ return b = ln, m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
74811
74813
  case Mh:
74812
- return b = qt, m.bitb = A, m.bitk = D, g.avail_in = _, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = N, m.inflate_flush(g, b);
74814
+ return b = qt, m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
74813
74815
  default:
74814
- return b = li, m.bitb = A, m.bitk = D, g.avail_in = _, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = N, m.inflate_flush(g, b);
74816
+ return b = li, m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
74815
74817
  }
74816
74818
  }, i.free = function() {
74817
74819
  };
@@ -74851,18 +74853,18 @@ function Xde(i, e) {
74851
74853
  return b = v.next_out_index, x = t.read, g = /* (int) */
74852
74854
  (x <= t.write ? t.write : t.end) - x, g > v.avail_out && (g = v.avail_out), g !== 0 && m == un && (m = gt), v.avail_out -= g, v.total_out += g, v.next_out.set(t.win.subarray(x, x + g), b), b += g, x += g, x == t.end && (x = 0, t.write == t.end && (t.write = 0), g = t.write - x, g > v.avail_out && (g = v.avail_out), g !== 0 && m == un && (m = gt), v.avail_out -= g, v.total_out += g, v.next_out.set(t.win.subarray(x, x + g), b), b += g, x += g), v.next_out_index = b, t.read = x, m;
74853
74855
  }, t.proc = function(v, m) {
74854
- let g, b, x, T, R, A, D, V;
74855
- for (T = v.next_in_index, R = v.avail_in, b = t.bitb, x = t.bitk, A = t.write, D = /* (int) */
74856
- A < t.read ? t.read - A - 1 : t.end - A; ; ) {
74857
- let _, N, q, Q, L, B, H, $;
74856
+ let g, b, x, T, A, L, D, V;
74857
+ for (T = v.next_in_index, A = v.avail_in, b = t.bitb, x = t.bitk, L = t.write, D = /* (int) */
74858
+ L < t.read ? t.read - L - 1 : t.end - L; ; ) {
74859
+ let I, M, q, Q, _, B, H, $;
74858
74860
  switch (s) {
74859
74861
  case ho:
74860
74862
  for (; x < 3; ) {
74861
- if (R !== 0)
74863
+ if (A !== 0)
74862
74864
  m = gt;
74863
74865
  else
74864
- return t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74865
- R--, b |= (v.read_byte(T++) & 255) << x, x += 8;
74866
+ return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74867
+ A--, b |= (v.read_byte(T++) & 255) << x, x += 8;
74866
74868
  }
74867
74869
  switch (g = /* (int) */
74868
74870
  b & 7, c = g & 1, g >>> 1) {
@@ -74870,47 +74872,47 @@ function Xde(i, e) {
74870
74872
  b >>>= 3, x -= 3, g = x & 7, b >>>= g, x -= g, s = Pf;
74871
74873
  break;
74872
74874
  case 1:
74873
- _ = [], N = [], q = [[]], Q = [[]], Wm.inflate_trees_fixed(_, N, q, Q), h.init(_[0], N[0], q[0], 0, Q[0], 0), b >>>= 3, x -= 3, s = Nh;
74875
+ I = [], M = [], q = [[]], Q = [[]], Wm.inflate_trees_fixed(I, M, q, Q), h.init(I[0], M[0], q[0], 0, Q[0], 0), b >>>= 3, x -= 3, s = Nh;
74874
74876
  break;
74875
74877
  case 2:
74876
74878
  b >>>= 3, x -= 3, s = x2;
74877
74879
  break;
74878
74880
  case 3:
74879
- return b >>>= 3, x -= 3, s = va, v.msg = "invalid block type", m = qt, t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74881
+ return b >>>= 3, x -= 3, s = va, v.msg = "invalid block type", m = qt, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74880
74882
  }
74881
74883
  break;
74882
74884
  case Pf:
74883
74885
  for (; x < 32; ) {
74884
- if (R !== 0)
74886
+ if (A !== 0)
74885
74887
  m = gt;
74886
74888
  else
74887
- return t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74888
- R--, b |= (v.read_byte(T++) & 255) << x, x += 8;
74889
+ return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74890
+ A--, b |= (v.read_byte(T++) & 255) << x, x += 8;
74889
74891
  }
74890
74892
  if ((~b >>> 16 & 65535) != (b & 65535))
74891
- return s = va, v.msg = "invalid stored block lengths", m = qt, t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74893
+ return s = va, v.msg = "invalid stored block lengths", m = qt, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74892
74894
  r = b & 65535, b = x = 0, s = r !== 0 ? w2 : c !== 0 ? Fh : ho;
74893
74895
  break;
74894
74896
  case w2:
74895
- if (R === 0 || D === 0 && (A == t.end && t.read !== 0 && (A = 0, D = /* (int) */
74896
- A < t.read ? t.read - A - 1 : t.end - A), D === 0 && (t.write = A, m = t.inflate_flush(v, m), A = t.write, D = /* (int) */
74897
- A < t.read ? t.read - A - 1 : t.end - A, A == t.end && t.read !== 0 && (A = 0, D = /* (int) */
74898
- A < t.read ? t.read - A - 1 : t.end - A), D === 0)))
74899
- return t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74900
- if (m = gt, g = r, g > R && (g = R), g > D && (g = D), t.win.set(v.read_buf(T, g), A), T += g, R -= g, A += g, D -= g, (r -= g) !== 0)
74897
+ if (A === 0 || D === 0 && (L == t.end && t.read !== 0 && (L = 0, D = /* (int) */
74898
+ L < t.read ? t.read - L - 1 : t.end - L), D === 0 && (t.write = L, m = t.inflate_flush(v, m), L = t.write, D = /* (int) */
74899
+ L < t.read ? t.read - L - 1 : t.end - L, L == t.end && t.read !== 0 && (L = 0, D = /* (int) */
74900
+ L < t.read ? t.read - L - 1 : t.end - L), D === 0)))
74901
+ return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74902
+ if (m = gt, g = r, g > A && (g = A), g > D && (g = D), t.win.set(v.read_buf(T, g), L), T += g, A -= g, L += g, D -= g, (r -= g) !== 0)
74901
74903
  break;
74902
74904
  s = c !== 0 ? Fh : ho;
74903
74905
  break;
74904
74906
  case x2:
74905
74907
  for (; x < 14; ) {
74906
- if (R !== 0)
74908
+ if (A !== 0)
74907
74909
  m = gt;
74908
74910
  else
74909
- return t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74910
- R--, b |= (v.read_byte(T++) & 255) << x, x += 8;
74911
+ return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74912
+ A--, b |= (v.read_byte(T++) & 255) << x, x += 8;
74911
74913
  }
74912
74914
  if (n = g = b & 16383, (g & 31) > 29 || (g >> 5 & 31) > 29)
74913
- return s = va, v.msg = "too many length or distance symbols", m = qt, t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74915
+ return s = va, v.msg = "too many length or distance symbols", m = qt, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74914
74916
  if (g = 258 + (g & 31) + (g >> 5 & 31), !o || o.length < g)
74915
74917
  o = [];
74916
74918
  else
@@ -74920,41 +74922,41 @@ function Xde(i, e) {
74920
74922
  case E2:
74921
74923
  for (; a < 4 + (n >>> 10); ) {
74922
74924
  for (; x < 3; ) {
74923
- if (R !== 0)
74925
+ if (A !== 0)
74924
74926
  m = gt;
74925
74927
  else
74926
- return t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74927
- R--, b |= (v.read_byte(T++) & 255) << x, x += 8;
74928
+ return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74929
+ A--, b |= (v.read_byte(T++) & 255) << x, x += 8;
74928
74930
  }
74929
74931
  o[b2[a++]] = b & 7, b >>>= 3, x -= 3;
74930
74932
  }
74931
74933
  for (; a < 19; )
74932
74934
  o[b2[a++]] = 0;
74933
74935
  if (l[0] = 7, g = y.inflate_trees_bits(o, l, u, d, v), g != gt)
74934
- return m = g, m == qt && (o = null, s = va), t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74936
+ return m = g, m == qt && (o = null, s = va), t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74935
74937
  a = 0, s = V2;
74936
74938
  case V2:
74937
74939
  for (; g = n, !(a >= 258 + (g & 31) + (g >> 5 & 31)); ) {
74938
74940
  let j, G;
74939
74941
  for (g = l[0]; x < g; ) {
74940
- if (R !== 0)
74942
+ if (A !== 0)
74941
74943
  m = gt;
74942
74944
  else
74943
- return t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74944
- R--, b |= (v.read_byte(T++) & 255) << x, x += 8;
74945
+ return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74946
+ A--, b |= (v.read_byte(T++) & 255) << x, x += 8;
74945
74947
  }
74946
74948
  if (g = d[(u[0] + (b & bi[g])) * 3 + 1], G = d[(u[0] + (b & bi[g])) * 3 + 2], G < 16)
74947
74949
  b >>>= g, x -= g, o[a++] = G;
74948
74950
  else {
74949
74951
  for (V = G == 18 ? 7 : G - 14, j = G == 18 ? 11 : 3; x < g + V; ) {
74950
- if (R !== 0)
74952
+ if (A !== 0)
74951
74953
  m = gt;
74952
74954
  else
74953
- return t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74954
- R--, b |= (v.read_byte(T++) & 255) << x, x += 8;
74955
+ return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74956
+ A--, b |= (v.read_byte(T++) & 255) << x, x += 8;
74955
74957
  }
74956
74958
  if (b >>>= g, x -= g, j += b & bi[V], b >>>= V, x -= V, V = a, g = n, V + j > 258 + (g & 31) + (g >> 5 & 31) || G == 16 && V < 1)
74957
- return o = null, s = va, v.msg = "invalid bit length repeat", m = qt, t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74959
+ return o = null, s = va, v.msg = "invalid bit length repeat", m = qt, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74958
74960
  G = G == 16 ? o[V - 1] : 0;
74959
74961
  do
74960
74962
  o[V++] = G;
@@ -74962,29 +74964,29 @@ function Xde(i, e) {
74962
74964
  a = V;
74963
74965
  }
74964
74966
  }
74965
- if (u[0] = -1, L = [], B = [], H = [], $ = [], L[0] = 9, B[0] = 6, g = n, g = y.inflate_trees_dynamic(257 + (g & 31), 1 + (g >> 5 & 31), o, L, B, H, $, d, v), g != gt)
74966
- return g == qt && (o = null, s = va), m = g, t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74967
- h.init(L[0], B[0], d, H[0], d, $[0]), s = Nh;
74967
+ if (u[0] = -1, _ = [], B = [], H = [], $ = [], _[0] = 9, B[0] = 6, g = n, g = y.inflate_trees_dynamic(257 + (g & 31), 1 + (g >> 5 & 31), o, _, B, H, $, d, v), g != gt)
74968
+ return g == qt && (o = null, s = va), m = g, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74969
+ h.init(_[0], B[0], d, H[0], d, $[0]), s = Nh;
74968
74970
  case Nh:
74969
- if (t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, (m = h.proc(t, v, m)) != ln)
74971
+ if (t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, (m = h.proc(t, v, m)) != ln)
74970
74972
  return t.inflate_flush(v, m);
74971
- if (m = gt, h.free(v), T = v.next_in_index, R = v.avail_in, b = t.bitb, x = t.bitk, A = t.write, D = /* (int) */
74972
- A < t.read ? t.read - A - 1 : t.end - A, c === 0) {
74973
+ if (m = gt, h.free(v), T = v.next_in_index, A = v.avail_in, b = t.bitb, x = t.bitk, L = t.write, D = /* (int) */
74974
+ L < t.read ? t.read - L - 1 : t.end - L, c === 0) {
74973
74975
  s = ho;
74974
74976
  break;
74975
74977
  }
74976
74978
  s = Fh;
74977
74979
  case Fh:
74978
- if (t.write = A, m = t.inflate_flush(v, m), A = t.write, D = /* (int) */
74979
- A < t.read ? t.read - A - 1 : t.end - A, t.read != t.write)
74980
- return t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74980
+ if (t.write = L, m = t.inflate_flush(v, m), L = t.write, D = /* (int) */
74981
+ L < t.read ? t.read - L - 1 : t.end - L, t.read != t.write)
74982
+ return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74981
74983
  s = S2;
74982
74984
  case S2:
74983
- return m = ln, t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74985
+ return m = ln, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74984
74986
  case va:
74985
- return m = qt, t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74987
+ return m = qt, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74986
74988
  default:
74987
- return m = li, t.bitb = b, t.bitk = x, v.avail_in = R, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = A, t.inflate_flush(v, m);
74989
+ return m = li, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
74988
74990
  }
74989
74991
  }
74990
74992
  }, t.free = function(v) {
@@ -78092,7 +78094,7 @@ async function Qfe(i, e, t, s) {
78092
78094
  const h = xt(i, s, Q3, /* @__PURE__ */ new Date()), c = xt(i, s, U3), d = xt(i, s, z3), f = xt(i, s, G3, !0), y = xt(i, s, j3, 0), v = xt(i, s, W3, 0), m = xt(i, s, "passThrough");
78093
78095
  let g, b;
78094
78096
  m || (g = xt(i, s, "password"), b = xt(i, s, "rawPassword"));
78095
- const x = xt(i, s, "encryptionStrength", 3), T = xt(i, s, Y3), R = xt(i, s, "extendedTimestamp", !0), A = xt(i, s, "keepOrder", !0), D = xt(i, s, "level"), V = xt(i, s, "useWebWorkers"), _ = xt(i, s, "bufferedWrite"), N = xt(i, s, "dataDescriptorSignature", !1), q = xt(i, s, "signal"), Q = xt(i, s, "useUnicodeFileNames", !0), L = xt(i, s, "useCompressionStream"), B = xt(i, s, "compressionMethod");
78097
+ const x = xt(i, s, "encryptionStrength", 3), T = xt(i, s, Y3), A = xt(i, s, "extendedTimestamp", !0), L = xt(i, s, "keepOrder", !0), D = xt(i, s, "level"), V = xt(i, s, "useWebWorkers"), I = xt(i, s, "bufferedWrite"), M = xt(i, s, "dataDescriptorSignature", !1), q = xt(i, s, "signal"), Q = xt(i, s, "useUnicodeFileNames", !0), _ = xt(i, s, "useCompressionStream"), B = xt(i, s, "compressionMethod");
78096
78098
  let H = xt(i, s, "dataDescriptor", !0), $ = xt(i, s, a0);
78097
78099
  if (!T && (g !== Bt || b !== Bt) && !(x >= 1 && x <= 3))
78098
78100
  throw new Error(Ffe);
@@ -78115,7 +78117,7 @@ async function Qfe(i, e, t, s) {
78115
78117
  t && (t = xfe(t), await tu(t), m ? ne = tw(oe) : t.size === Bt ? (H = !0, ($ || $ === Bt) && ($ = !0, oe = ne = ci + 1)) : (oe = t.size, ne = tw(oe)));
78116
78118
  const { diskOffset: ue, diskNumber: Ie, maxSize: ge } = i.writer, te = re || oe > ci, we = re || ne > ci, et = re || i.offset + i.pendingEntriesSize - ue > ci, Gt = xt(i, s, "supportZip64SplitFile", !0) && re || Ie + Math.ceil(i.pendingEntriesSize / ge) > ui;
78117
78119
  if (et || te || we || Gt) {
78118
- if ($ === !1 || !A)
78120
+ if ($ === !1 || !L)
78119
78121
  throw new Error(o0);
78120
78122
  $ = !0;
78121
78123
  }
@@ -78137,21 +78139,21 @@ async function Qfe(i, e, t, s) {
78137
78139
  zip64DiskNumberStart: Gt,
78138
78140
  password: g,
78139
78141
  rawPassword: b,
78140
- level: !L && i.config.CompressionStream === Bt && i.config.CompressionStreamNative === Bt ? 0 : D,
78142
+ level: !_ && i.config.CompressionStream === Bt && i.config.CompressionStreamNative === Bt ? 0 : D,
78141
78143
  useWebWorkers: V,
78142
78144
  encryptionStrength: x,
78143
- extendedTimestamp: R,
78145
+ extendedTimestamp: A,
78144
78146
  zipCrypto: T,
78145
- bufferedWrite: _,
78146
- keepOrder: A,
78147
+ bufferedWrite: I,
78148
+ keepOrder: L,
78147
78149
  useUnicodeFileNames: Q,
78148
78150
  dataDescriptor: H,
78149
- dataDescriptorSignature: N,
78151
+ dataDescriptorSignature: M,
78150
78152
  signal: q,
78151
78153
  msDosCompatible: f,
78152
78154
  internalFileAttribute: y,
78153
78155
  externalFileAttribute: v,
78154
- useCompressionStream: L,
78156
+ useCompressionStream: _,
78155
78157
  passThrough: m,
78156
78158
  encrypted: !!(g && ot(g) || b && ot(b)) || m && Is,
78157
78159
  signature: Et,
@@ -78182,22 +78184,22 @@ async function Ufe(i, e, t, s, r) {
78182
78184
  n.set(e, f);
78183
78185
  try {
78184
78186
  let V;
78185
- o && (V = d && d.lock, R()), (r.bufferedWrite || i.writerLocked || i.bufferedWrites && o || !l) && !c ? (x = new TransformStream(), T = new Response(x.readable).blob(), x.writable.size = 0, y = !0, i.bufferedWrites++, await tu(a)) : (x = a, await A()), await tu(x);
78186
- const { writable: _ } = a;
78187
- let { diskOffset: N } = a;
78187
+ o && (V = d && d.lock, A()), (r.bufferedWrite || i.writerLocked || i.bufferedWrites && o || !l) && !c ? (x = new TransformStream(), T = new Response(x.readable).blob(), x.writable.size = 0, y = !0, i.bufferedWrites++, await tu(a)) : (x = a, await L()), await tu(x);
78188
+ const { writable: I } = a;
78189
+ let { diskOffset: M } = a;
78188
78190
  if (i.addSplitZipSignature) {
78189
78191
  delete i.addSplitZipSignature;
78190
- const Q = new Uint8Array(4), L = Ns(Q);
78191
- at(L, 0, p3), await Rr(_, Q), i.offset += 4;
78192
+ const Q = new Uint8Array(4), _ = Ns(Q);
78193
+ at(_, 0, p3), await Rr(I, Q), i.offset += 4;
78192
78194
  }
78193
- c && Wfe(s, i.offset - N), y || (await V, await D(_));
78195
+ c && Wfe(s, i.offset - M), y || (await V, await D(I));
78194
78196
  const { diskNumber: q } = a;
78195
78197
  if (b = !0, f.diskNumberStart = q, f = await zfe(t, x, f, s, i.config, r), b = !1, n.set(e, f), f.filename = e, y) {
78196
78198
  await x.writable.getWriter().close();
78197
78199
  let Q = await T;
78198
- await V, await A(), g = !0, l || (Q = await Zfe(f, Q, _, r)), await D(_), f.diskNumberStart = a.diskNumber, N = a.diskOffset, await Q.stream().pipeTo(_, { preventClose: !0, preventAbort: !0, signal: u }), _.size += Q.size, g = !1;
78200
+ await V, await L(), g = !0, l || (Q = await Zfe(f, Q, I, r)), await D(I), f.diskNumberStart = a.diskNumber, M = a.diskOffset, await Q.stream().pipeTo(I, { preventClose: !0, preventAbort: !0, signal: u }), I.size += Q.size, g = !1;
78199
78201
  }
78200
- if (f.offset = i.offset - N, f.zip64)
78202
+ if (f.offset = i.offset - M, f.zip64)
78201
78203
  Jfe(f, r);
78202
78204
  else if (f.offset > ci)
78203
78205
  throw new Error(o0);
@@ -78215,14 +78217,14 @@ async function Ufe(i, e, t, s, r) {
78215
78217
  } finally {
78216
78218
  y && i.bufferedWrites--, m && m(), v && v();
78217
78219
  }
78218
- function R() {
78220
+ function A() {
78219
78221
  f.lock = new Promise((V) => m = V);
78220
78222
  }
78221
- async function A() {
78223
+ async function L() {
78222
78224
  i.writerLocked = !0;
78223
78225
  const { lockWriter: V } = i;
78224
- i.lockWriter = new Promise((_) => v = () => {
78225
- i.writerLocked = !1, _();
78226
+ i.lockWriter = new Promise((I) => v = () => {
78227
+ i.writerLocked = !1, I();
78226
78228
  }), await V;
78227
78229
  }
78228
78230
  async function D(V) {
@@ -78246,15 +78248,15 @@ async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
78246
78248
  rawExtraFieldExtendedTimestamp: b,
78247
78249
  extraFieldExtendedTimestampFlag: x,
78248
78250
  rawExtraFieldNTFS: T,
78249
- rawExtraFieldAES: R
78250
- } = o, { dataDescriptorArray: A } = l, {
78251
+ rawExtraFieldAES: A
78252
+ } = o, { dataDescriptorArray: L } = l, {
78251
78253
  rawFilename: D,
78252
78254
  lastAccessDate: V,
78253
- creationDate: _,
78254
- password: N,
78255
+ creationDate: I,
78256
+ password: M,
78255
78257
  rawPassword: q,
78256
78258
  level: Q,
78257
- zip64: L,
78259
+ zip64: _,
78258
78260
  zip64UncompressedSize: B,
78259
78261
  zip64CompressedSize: H,
78260
78262
  zip64Offset: $,
@@ -78280,7 +78282,7 @@ async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
78280
78282
  } = a, st = {
78281
78283
  lock: s,
78282
78284
  versionMadeBy: oe,
78283
- zip64: L,
78285
+ zip64: _,
78284
78286
  directory: !!Y,
78285
78287
  filenameUTF8: !0,
78286
78288
  rawFilename: D,
@@ -78288,7 +78290,7 @@ async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
78288
78290
  rawComment: re,
78289
78291
  rawExtraFieldExtendedTimestamp: b,
78290
78292
  rawExtraFieldNTFS: T,
78291
- rawExtraFieldAES: R,
78293
+ rawExtraFieldAES: A,
78292
78294
  rawExtraField: ue,
78293
78295
  extendedTimestamp: Gt,
78294
78296
  msDosCompatible: Is,
@@ -78309,7 +78311,7 @@ async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
78309
78311
  codecType: F3,
78310
78312
  level: Q,
78311
78313
  rawPassword: q,
78312
- password: N,
78314
+ password: M,
78313
78315
  encryptionStrength: Yt,
78314
78316
  zipCrypto: y && G,
78315
78317
  passwordVerification: y && G && f >> 8 & 255,
@@ -78327,7 +78329,7 @@ async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
78327
78329
  } else
78328
78330
  await Rr(_e, h);
78329
78331
  let Ge;
78330
- if (L) {
78332
+ if (_) {
78331
78333
  let Te = 4;
78332
78334
  B && (Te += 8), H && (Te += 8), $ && (Te += 8), j && (Te += 4), Ge = new Uint8Array(Te);
78333
78335
  } else
@@ -78339,12 +78341,12 @@ async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
78339
78341
  uncompressedSize: zt,
78340
78342
  headerInfo: o,
78341
78343
  dataDescriptorInfo: l
78342
- }, a), ne && await Rr(_e, A), Object.assign(st, {
78344
+ }, a), ne && await Rr(_e, L), Object.assign(st, {
78343
78345
  uncompressedSize: zt,
78344
78346
  compressedSize: Ct,
78345
78347
  lastModDate: d,
78346
78348
  rawLastModDate: f,
78347
- creationDate: _,
78349
+ creationDate: I,
78348
78350
  lastAccessDate: V,
78349
78351
  encrypted: y,
78350
78352
  zipCrypto: G,
@@ -78385,11 +78387,11 @@ function jfe(i) {
78385
78387
  mt($, 0, gpe), ps(b, X2, 2), qc($, 8, d);
78386
78388
  } else
78387
78389
  b = new Uint8Array();
78388
- let x, T, R;
78390
+ let x, T, A;
78389
78391
  if (f) {
78390
78392
  T = new Uint8Array(9 + (s ? 4 : 0) + (r ? 4 : 0));
78391
78393
  const $ = Ns(T);
78392
- mt($, 0, g3), mt($, 2, ot(T) - 4), R = 1 + (s ? 2 : 0) + (r ? 4 : 0), qc($, 4, R);
78394
+ mt($, 0, g3), mt($, 2, ot(T) - 4), A = 1 + (s ? 2 : 0) + (r ? 4 : 0), qc($, 4, A);
78393
78395
  let j = 5;
78394
78396
  at($, j, Math.floor(t.getTime() / 1e3)), j += 4, s && (at($, j, Math.floor(s.getTime() / 1e3)), j += 4), r && at($, j, Math.floor(r.getTime() / 1e3));
78395
78397
  try {
@@ -78401,18 +78403,18 @@ function jfe(i) {
78401
78403
  }
78402
78404
  } else
78403
78405
  x = T = new Uint8Array();
78404
- let A = 0;
78405
- l && (A = A | xpe), u && (A = A | wpe), g === Bt && (g = v ? _2 : ape), g == _2 && (n >= 1 && n < 3 && (A = A | 6), n >= 3 && n < 5 && (A = A | 1), n === 9 && (A = A | 2)), a && (m = m > D2 ? m : D2), y && (A = A | bpe, o || (m = m > k2 ? m : k2, b[9] = g, g = ope));
78406
+ let L = 0;
78407
+ l && (L = L | xpe), u && (L = L | wpe), g === Bt && (g = v ? _2 : ape), g == _2 && (n >= 1 && n < 3 && (L = L | 6), n >= 3 && n < 5 && (L = L | 1), n === 9 && (L = L | 2)), a && (m = m > D2 ? m : D2), y && (L = L | bpe, o || (m = m > k2 ? m : k2, b[9] = g, g = ope));
78406
78408
  const D = new Uint8Array(26), V = Ns(D);
78407
- mt(V, 0, m), mt(V, 2, A), mt(V, 4, g);
78408
- const _ = new Uint32Array(1), N = Ns(_);
78409
+ mt(V, 0, m), mt(V, 2, L), mt(V, 4, g);
78410
+ const I = new Uint32Array(1), M = Ns(I);
78409
78411
  let q;
78410
- t < M2 ? q = M2 : t > O2 ? q = O2 : q = t, mt(N, 0, (q.getHours() << 6 | q.getMinutes()) << 5 | q.getSeconds() / 2), mt(N, 2, (q.getFullYear() - 1980 << 4 | q.getMonth() + 1) << 5 | q.getDate());
78411
- const Q = _[0];
78412
+ 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());
78413
+ const Q = I[0];
78412
78414
  at(V, 6, Q), mt(V, 22, ot(e));
78413
- const L = ot(b, T, x, c);
78414
- mt(V, 24, L);
78415
- const B = new Uint8Array(30 + ot(e) + L), H = Ns(B);
78415
+ const _ = ot(b, T, x, c);
78416
+ mt(V, 24, _);
78417
+ const B = new Uint8Array(30 + ot(e) + _), H = Ns(B);
78416
78418
  return at(H, 0, lpe), ps(B, D, 4), ps(B, e, 30), ps(B, b, 30 + ot(e)), ps(B, T, 30 + ot(e, b)), ps(B, x, 30 + ot(e, b, T)), ps(B, c, 30 + ot(e, b, T, x)), {
78417
78419
  localHeaderArray: B,
78418
78420
  headerArray: D,
@@ -78423,11 +78425,11 @@ function jfe(i) {
78423
78425
  compressed: v,
78424
78426
  version: m,
78425
78427
  compressionMethod: g,
78426
- extraFieldExtendedTimestampFlag: R,
78428
+ extraFieldExtendedTimestampFlag: A,
78427
78429
  rawExtraFieldExtendedTimestamp: T,
78428
78430
  rawExtraFieldNTFS: x,
78429
78431
  rawExtraFieldAES: b,
78430
- extraFieldLength: L
78432
+ extraFieldLength: _
78431
78433
  };
78432
78434
  }
78433
78435
  function Wfe(i, e) {
@@ -78495,31 +78497,31 @@ function Jfe(i, e) {
78495
78497
  async function Yfe(i, e, t) {
78496
78498
  const { files: s, writer: r } = i, { diskOffset: n, writable: a } = r;
78497
78499
  let { diskNumber: o } = r, l = 0, u = 0, h = i.offset - n, c = s.size;
78498
- for (const [, R] of s) {
78500
+ for (const [, A] of s) {
78499
78501
  const {
78500
- rawFilename: A,
78502
+ rawFilename: L,
78501
78503
  rawExtraFieldZip64: D,
78502
78504
  rawExtraFieldAES: V,
78503
- rawComment: _,
78504
- rawExtraFieldNTFS: N,
78505
+ rawComment: I,
78506
+ rawExtraFieldNTFS: M,
78505
78507
  rawExtraField: q,
78506
78508
  extendedTimestamp: Q,
78507
- extraFieldExtendedTimestampFlag: L,
78509
+ extraFieldExtendedTimestampFlag: _,
78508
78510
  lastModDate: B
78509
- } = R;
78511
+ } = A;
78510
78512
  let H;
78511
78513
  if (Q) {
78512
78514
  H = new Uint8Array(9);
78513
78515
  const $ = Ns(H);
78514
- mt($, 0, g3), mt($, 2, 5), qc($, 4, L), at($, 5, Math.floor(B.getTime() / 1e3));
78516
+ mt($, 0, g3), mt($, 2, 5), qc($, 4, _), at($, 5, Math.floor(B.getTime() / 1e3));
78515
78517
  } else
78516
78518
  H = new Uint8Array();
78517
- R.rawExtraFieldCDExtendedTimestamp = H, u += 46 + ot(
78518
- A,
78519
- _,
78519
+ A.rawExtraFieldCDExtendedTimestamp = H, u += 46 + ot(
78520
+ L,
78521
+ I,
78520
78522
  D,
78521
78523
  V,
78522
- N,
78524
+ M,
78523
78525
  H,
78524
78526
  q
78525
78527
  );
@@ -78527,15 +78529,15 @@ async function Yfe(i, e, t) {
78527
78529
  const d = new Uint8Array(u), f = Ns(d);
78528
78530
  await tu(r);
78529
78531
  let y = 0;
78530
- for (const [R, A] of Array.from(s.values()).entries()) {
78532
+ for (const [A, L] of Array.from(s.values()).entries()) {
78531
78533
  const {
78532
78534
  offset: D,
78533
78535
  rawFilename: V,
78534
- rawExtraFieldZip64: _,
78535
- rawExtraFieldAES: N,
78536
+ rawExtraFieldZip64: I,
78537
+ rawExtraFieldAES: M,
78536
78538
  rawExtraFieldCDExtendedTimestamp: q,
78537
78539
  rawExtraFieldNTFS: Q,
78538
- rawExtraField: L,
78540
+ rawExtraField: _,
78539
78541
  rawComment: B,
78540
78542
  versionMadeBy: H,
78541
78543
  headerArray: $,
@@ -78551,14 +78553,14 @@ async function Yfe(i, e, t) {
78551
78553
  diskNumberStart: te,
78552
78554
  uncompressedSize: we,
78553
78555
  compressedSize: et
78554
- } = A, Yt = ot(_, N, q, Q, L);
78556
+ } = L, Yt = ot(I, M, q, Q, _);
78555
78557
  at(f, l, hpe), mt(f, l + 4, H);
78556
78558
  const Gt = Ns($);
78557
- ne || at(Gt, 18, we), Y || at(Gt, 14, et), ps(d, $, l + 6), mt(f, l + 30, Yt), mt(f, l + 32, ot(B)), mt(f, l + 34, G && oe ? ui : te), mt(f, l + 36, Ie), ge ? at(f, l + 38, ge) : j && ue && qc(f, l + 38, Epe), at(f, l + 42, G && re ? ci : D), ps(d, V, l + 46), ps(d, _, l + 46 + ot(V)), ps(d, N, l + 46 + ot(V, _)), ps(d, q, l + 46 + ot(V, _, N)), ps(d, Q, l + 46 + ot(V, _, N, q)), ps(d, L, l + 46 + ot(V, _, N, q, Q)), ps(d, B, l + 46 + ot(V) + Yt);
78559
+ ne || at(Gt, 18, we), Y || at(Gt, 14, et), ps(d, $, l + 6), mt(f, l + 30, Yt), mt(f, l + 32, ot(B)), mt(f, l + 34, G && oe ? ui : te), mt(f, l + 36, Ie), ge ? at(f, l + 38, ge) : j && ue && qc(f, l + 38, Epe), at(f, l + 42, G && re ? ci : D), ps(d, V, l + 46), ps(d, I, l + 46 + ot(V)), ps(d, M, l + 46 + ot(V, I)), ps(d, q, l + 46 + ot(V, I, M)), ps(d, Q, l + 46 + ot(V, I, M, q)), ps(d, _, l + 46 + ot(V, I, M, q, Q)), ps(d, B, l + 46 + ot(V) + Yt);
78558
78560
  const Is = 46 + ot(V, B) + Yt;
78559
78561
  if (l - y > r.availableSize && (r.availableSize = 0, await Rr(a, d.slice(y, l)), y = l), l += Is, t.onprogress)
78560
78562
  try {
78561
- await t.onprogress(R + 1, s.size, new X3(A));
78563
+ await t.onprogress(A + 1, s.size, new X3(L));
78562
78564
  } catch {
78563
78565
  }
78564
78566
  }
@@ -78640,7 +78642,7 @@ var Ym;
78640
78642
  i.UTF8 = "utf8", i.ASCII = "ascii", i.UTF16 = "utf16";
78641
78643
  })(Ym || (Ym = {}));
78642
78644
  const Ea = wu("Filesystem", {
78643
- web: () => import("./web-CpudSS-g.js").then((i) => new i.FilesystemWeb())
78645
+ web: () => import("./web-DUk2Ckc5.js").then((i) => new i.FilesystemWeb())
78644
78646
  });
78645
78647
  vi("Upload", async (i, e, t, s) => {
78646
78648
  const r = i.sessionID || `sim_${Date.now()}_${Math.floor(Lt(0, 2176782336)).toString(36)}`, n = VV({
@@ -78794,7 +78796,7 @@ function ime({
78794
78796
  }) {
78795
78797
  const [y, v] = rt(
78796
78798
  "initial"
78797
- ), 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), R = mde({
78799
+ ), 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({
78798
78800
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
78799
78801
  mutationFn: async (V) => await wde("/data", V),
78800
78802
  onSuccess: (V) => {
@@ -78803,17 +78805,17 @@ function ime({
78803
78805
  onError: () => {
78804
78806
  v("error");
78805
78807
  }
78806
- }), A = Xe(async (V) => {
78807
- const _ = new Hfe(new Cfe());
78808
- for (const L of V)
78809
- await _.add(L.filename, new bfe(L.content));
78810
- const N = await _.close(), q = URL.createObjectURL(N), Q = document.createElement("a");
78808
+ }), L = Xe(async (V) => {
78809
+ const I = new Hfe(new Cfe());
78810
+ for (const _ of V)
78811
+ await I.add(_.filename, new bfe(_.content));
78812
+ const M = await I.close(), q = URL.createObjectURL(M), Q = document.createElement("a");
78811
78813
  Q.href = q, Q.download = "study-data.zip", document.body.appendChild(Q), Q.click(), document.body.removeChild(Q), URL.revokeObjectURL(q);
78812
78814
  }, []), D = Xe(async () => {
78813
78815
  if (v("uploading"), m.current)
78814
78816
  return;
78815
78817
  m.current = !0;
78816
- const V = s ?? bde(), _ = VV({
78818
+ const V = s ?? bde(), I = VV({
78817
78819
  sessionID: V,
78818
78820
  data: i,
78819
78821
  store: t,
@@ -78822,29 +78824,29 @@ function ime({
78822
78824
  uploadRaw: a
78823
78825
  });
78824
78826
  try {
78825
- const N = {
78827
+ const M = {
78826
78828
  sessionId: V,
78827
- files: _.map((L) => ({ ...L, encoding: L.encoding ?? "utf8" }))
78829
+ files: I.map((_) => ({ ..._, encoding: _.encoding ?? "utf8" }))
78828
78830
  };
78829
- if (T && await A(_), !x) {
78831
+ if (T && await L(I), !x) {
78830
78832
  e({});
78831
78833
  return;
78832
78834
  }
78833
78835
  const { backend: q, type: Q } = tme(l);
78834
78836
  if (Q === "web")
78835
- R.mutate(N);
78837
+ A.mutate(M);
78836
78838
  else if (q)
78837
78839
  try {
78838
- const L = await sme(q, V);
78839
- await q.createDirectory(L);
78840
- for (const B of _)
78841
- await q.saveFile(B.filename, B.content, L);
78840
+ const _ = await sme(q, V);
78841
+ await q.createDirectory(_);
78842
+ for (const B of I)
78843
+ await q.saveFile(B.filename, B.content, _);
78842
78844
  v("success"), e({});
78843
- } catch (L) {
78844
- console.error(`Error saving files with ${Q}:`, L), v("error");
78845
+ } catch (_) {
78846
+ console.error(`Error saving files with ${Q}:`, _), v("error");
78845
78847
  }
78846
- } catch (N) {
78847
- console.error("Error uploading:", N), v("error");
78848
+ } catch (M) {
78849
+ console.error("Error uploading:", M), v("error");
78848
78850
  }
78849
78851
  }, [
78850
78852
  s,
@@ -78853,18 +78855,18 @@ function ime({
78853
78855
  a,
78854
78856
  T,
78855
78857
  x,
78856
- A,
78858
+ L,
78857
78859
  e,
78858
- R
78860
+ A
78859
78861
  ]);
78860
78862
  return lt(() => {
78861
78863
  o && !m.current && D && D();
78862
78864
  }, [o, D]), lt(() => {
78863
78865
  y === "error" && (m.current = !1);
78864
- }, [y]), /* @__PURE__ */ I.jsx("div", { className: h ?? "", style: { position: "fixed", inset: 0 }, children: /* @__PURE__ */ I.jsxs("div", { className: `flex flex-col items-center justify-center gap-4 p-6 text-xl mt-16 px-10 h-full ${u ?? ""}`, children: [
78865
- y == "initial" && !o && /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
78866
- c ?? /* @__PURE__ */ I.jsx("p", { children: "Thank you for participating! Please click the button below to submit your data." }),
78867
- /* @__PURE__ */ I.jsx(
78866
+ }, [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: [
78867
+ y == "initial" && !o && /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
78868
+ c ?? /* @__PURE__ */ R.jsx("p", { children: "Thank you for participating! Please click the button below to submit your data." }),
78869
+ /* @__PURE__ */ R.jsx(
78868
78870
  "button",
78869
78871
  {
78870
78872
  onClick: D,
@@ -78873,17 +78875,17 @@ function ime({
78873
78875
  }
78874
78876
  )
78875
78877
  ] }),
78876
- y == "uploading" && /* @__PURE__ */ I.jsx(I.Fragment, { children: d ?? /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
78877
- /* @__PURE__ */ I.jsx("div", { className: "w-8 h-8 border-4 border-blue-500 border-t-transparent rounded-full animate-spin" }),
78878
- /* @__PURE__ */ I.jsx("p", { children: "Uploading your data..." })
78878
+ y == "uploading" && /* @__PURE__ */ R.jsx(R.Fragment, { children: d ?? /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
78879
+ /* @__PURE__ */ R.jsx("div", { className: "w-8 h-8 border-4 border-blue-500 border-t-transparent rounded-full animate-spin" }),
78880
+ /* @__PURE__ */ R.jsx("p", { children: "Uploading your data..." })
78879
78881
  ] }) }),
78880
- y == "success" && /* @__PURE__ */ I.jsx(I.Fragment, {}),
78881
- y == "error" && /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
78882
- f ?? /* @__PURE__ */ I.jsxs("div", { className: "text-red-500 mb-4", children: [
78883
- /* @__PURE__ */ I.jsx("p", { children: "Sorry, there was an error uploading your data." }),
78884
- /* @__PURE__ */ I.jsx("p", { children: "Please try again or contact the researcher." })
78882
+ y == "success" && /* @__PURE__ */ R.jsx(R.Fragment, {}),
78883
+ y == "error" && /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
78884
+ f ?? /* @__PURE__ */ R.jsxs("div", { className: "text-red-500 mb-4", children: [
78885
+ /* @__PURE__ */ R.jsx("p", { children: "Sorry, there was an error uploading your data." }),
78886
+ /* @__PURE__ */ R.jsx("p", { children: "Please try again or contact the researcher." })
78885
78887
  ] }),
78886
- /* @__PURE__ */ I.jsx(
78888
+ /* @__PURE__ */ R.jsx(
78887
78889
  "button",
78888
78890
  {
78889
78891
  onClick: D,
@@ -78903,7 +78905,7 @@ var iw;
78903
78905
  i.None = "NONE", i.Slide = "SLIDE", i.Fade = "FADE";
78904
78906
  })(iw || (iw = {}));
78905
78907
  const t7 = wu("StatusBar"), s7 = wu("ImmersiveMode", {
78906
- web: () => import("./web-XQ140ulJ.js").then((i) => new i.ImmersiveModeWeb())
78908
+ web: () => import("./web-Dg20aI02.js").then((i) => new i.ImmersiveModeWeb())
78907
78909
  });
78908
78910
  Ai("EnterFullscreen", "session");
78909
78911
  vi("EnterFullscreen", xu, {});
@@ -78918,9 +78920,9 @@ function rme({
78918
78920
  updateStore: o,
78919
78921
  delayMs: l = 0
78920
78922
  }) {
78921
- const u = /* @__PURE__ */ I.jsxs("div", { className: "flex flex-col items-center", children: [
78923
+ const u = /* @__PURE__ */ R.jsxs("div", { className: "flex flex-col items-center", children: [
78922
78924
  !!i && i,
78923
- !i && /* @__PURE__ */ I.jsx("p", { className: "", children: "Please click the Button below to enter Fullscreen mode." })
78925
+ !i && /* @__PURE__ */ R.jsx("p", { className: "", children: "Please click the Button below to enter Fullscreen mode." })
78924
78926
  ] }), [h, c] = rt(!1), d = fe(!1), f = fe(null), y = Xe(() => {
78925
78927
  f.current && (clearTimeout(f.current), f.current = null);
78926
78928
  }, []), v = Xe(() => {
@@ -78942,15 +78944,15 @@ function rme({
78942
78944
  try {
78943
78945
  await T.requestFullscreen(), m();
78944
78946
  return;
78945
- } catch (R) {
78946
- console.error("Fullscreen request failed:", R);
78947
+ } catch (A) {
78948
+ console.error("Fullscreen request failed:", A);
78947
78949
  return;
78948
78950
  }
78949
78951
  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.");
78950
78952
  }, [m, b, v]);
78951
78953
  return lt(() => () => {
78952
78954
  v();
78953
- }, [v]), h ? /* @__PURE__ */ I.jsx("div", { className: `min-h-screen ${s ?? ""}` }) : /* @__PURE__ */ I.jsx(
78955
+ }, [v]), h ? /* @__PURE__ */ R.jsx("div", { className: `min-h-screen ${s ?? ""}` }) : /* @__PURE__ */ R.jsx(
78954
78956
  wv,
78955
78957
  {
78956
78958
  data: a,
@@ -79074,50 +79076,50 @@ function lme(i) {
79074
79076
  return { subscribe(o) {
79075
79077
  const l = /* @__PURE__ */ function(h, c, d) {
79076
79078
  let f = 1, y = 0, v = [], m = [], g = [], b = c;
79077
- const x = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Set(), R = () => {
79079
+ const x = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Set(), A = () => {
79078
79080
  g = Array.from(x.values()), T.forEach((V) => V());
79079
- }, A = (V) => {
79080
- m = V == null ? [] : m.filter((_) => _ !== V), R();
79081
+ }, L = (V) => {
79082
+ m = V == null ? [] : m.filter((I) => I !== V), A();
79081
79083
  }, D = (V) => {
79082
- const { toastId: _, onOpen: N, updateId: q, children: Q } = V.props, L = q == null;
79083
- V.staleId && x.delete(V.staleId), x.set(_, V), m = [...m, V.props.toastId].filter((B) => B !== V.staleId), R(), d(rw(V, L ? "added" : "updated")), L && Pi(N) && N(_a(Q) && Q.props);
79084
+ const { toastId: I, onOpen: M, updateId: q, children: Q } = V.props, _ = q == null;
79085
+ V.staleId && x.delete(V.staleId), x.set(I, V), m = [...m, V.props.toastId].filter((B) => B !== V.staleId), A(), d(rw(V, _ ? "added" : "updated")), _ && Pi(M) && M(_a(Q) && Q.props);
79084
79086
  };
79085
- return { id: h, props: b, observe: (V) => (T.add(V), () => T.delete(V)), toggle: (V, _) => {
79086
- x.forEach((N) => {
79087
- _ != null && _ !== N.props.toastId || Pi(N.toggle) && N.toggle(V);
79087
+ return { id: h, props: b, observe: (V) => (T.add(V), () => T.delete(V)), toggle: (V, I) => {
79088
+ x.forEach((M) => {
79089
+ I != null && I !== M.props.toastId || Pi(M.toggle) && M.toggle(V);
79088
79090
  });
79089
- }, removeToast: A, toasts: x, clearQueue: () => {
79091
+ }, removeToast: L, toasts: x, clearQueue: () => {
79090
79092
  y -= v.length, v = [];
79091
- }, buildToast: (V, _) => {
79093
+ }, buildToast: (V, I) => {
79092
79094
  if (((re) => {
79093
79095
  let { containerId: ue, toastId: Ie, updateId: ge } = re;
79094
79096
  const te = ue ? ue !== h : h !== 1, we = x.has(Ie) && ge == null;
79095
79097
  return te || we;
79096
- })(_)) return;
79097
- const { toastId: N, updateId: q, data: Q, staleId: L, delay: B } = _, H = () => {
79098
- A(N);
79098
+ })(I)) return;
79099
+ const { toastId: M, updateId: q, data: Q, staleId: _, delay: B } = I, H = () => {
79100
+ L(M);
79099
79101
  }, $ = q == null;
79100
79102
  $ && y++;
79101
- const j = { ...b, style: b.toastStyle, key: f++, ...Object.fromEntries(Object.entries(_).filter((re) => {
79103
+ const j = { ...b, style: b.toastStyle, key: f++, ...Object.fromEntries(Object.entries(I).filter((re) => {
79102
79104
  let [ue, Ie] = re;
79103
79105
  return Ie != null;
79104
- })), toastId: N, updateId: q, data: Q, closeToast: H, isIn: !1, className: rc(_.className || b.toastClassName), bodyClassName: rc(_.bodyClassName || b.bodyClassName), progressClassName: rc(_.progressClassName || b.progressClassName), autoClose: !_.isLoading && (G = _.autoClose, ne = b.autoClose, G === !1 || su(G) && G > 0 ? G : ne), deleteToast() {
79105
- const re = x.get(N), { onClose: ue, children: Ie } = re.props;
79106
- Pi(ue) && ue(_a(Ie) && Ie.props), d(rw(re, "removed")), x.delete(N), y--, y < 0 && (y = 0), v.length > 0 ? D(v.shift()) : R();
79106
+ })), toastId: M, updateId: q, data: Q, closeToast: H, isIn: !1, className: rc(I.className || b.toastClassName), bodyClassName: rc(I.bodyClassName || b.bodyClassName), progressClassName: rc(I.progressClassName || b.progressClassName), autoClose: !I.isLoading && (G = I.autoClose, ne = b.autoClose, G === !1 || su(G) && G > 0 ? G : ne), deleteToast() {
79107
+ const re = x.get(M), { onClose: ue, children: Ie } = re.props;
79108
+ Pi(ue) && ue(_a(Ie) && Ie.props), d(rw(re, "removed")), x.delete(M), y--, y < 0 && (y = 0), v.length > 0 ? D(v.shift()) : A();
79107
79109
  } };
79108
79110
  var G, ne;
79109
- j.closeButton = b.closeButton, _.closeButton === !1 || eg(_.closeButton) ? j.closeButton = _.closeButton : _.closeButton === !0 && (j.closeButton = !eg(b.closeButton) || b.closeButton);
79111
+ j.closeButton = b.closeButton, I.closeButton === !1 || eg(I.closeButton) ? j.closeButton = I.closeButton : I.closeButton === !0 && (j.closeButton = !eg(b.closeButton) || b.closeButton);
79110
79112
  let Y = V;
79111
79113
  _a(V) && !Da(V.type) ? Y = em(V, { closeToast: H, toastProps: j, data: Q }) : Pi(V) && (Y = V({ closeToast: H, toastProps: j, data: Q }));
79112
- const oe = { content: Y, props: j, staleId: L };
79114
+ const oe = { content: Y, props: j, staleId: _ };
79113
79115
  b.limit && b.limit > 0 && y > b.limit && $ ? v.push(oe) : su(B) ? setTimeout(() => {
79114
79116
  D(oe);
79115
79117
  }, B) : D(oe);
79116
79118
  }, setProps(V) {
79117
79119
  b = V;
79118
- }, setToggle: (V, _) => {
79119
- x.get(V).toggle = _;
79120
- }, isToastActive: (V) => m.some((_) => _ === V), getSnapshot: () => g };
79120
+ }, setToggle: (V, I) => {
79121
+ x.get(V).toggle = I;
79122
+ }, isToastActive: (V) => m.some((I) => I === V), getSnapshot: () => g };
79121
79123
  }(a, n, ome);
79122
79124
  Js.set(a, l);
79123
79125
  const u = l.observe(o);
@@ -79176,8 +79178,8 @@ function ume(i) {
79176
79178
  a.canCloseOnClick = !0, a.canDrag = !0, T.style.transition = "none", i.draggableDirection === "x" ? (a.start = x.clientX, a.removalDistance = T.offsetWidth * (i.draggablePercent / 100)) : (a.start = x.clientY, a.removalDistance = T.offsetHeight * (i.draggablePercent === 80 ? 1.5 * i.draggablePercent : i.draggablePercent) / 100);
79177
79179
  }
79178
79180
  }, onPointerUp: function(x) {
79179
- const { top: T, bottom: R, left: A, right: D } = n.current.getBoundingClientRect();
79180
- x.nativeEvent.type !== "touchend" && i.pauseOnHover && x.clientX >= A && x.clientX <= D && x.clientY >= T && x.clientY <= R ? v() : y();
79181
+ const { top: T, bottom: A, left: L, right: D } = n.current.getBoundingClientRect();
79182
+ x.nativeEvent.type !== "touchend" && i.pauseOnHover && x.clientX >= L && x.clientX <= D && x.clientY >= T && x.clientY <= A ? v() : y();
79181
79183
  } };
79182
79184
  return o && l && (b.onMouseEnter = v, i.stacked || (b.onMouseLeave = y)), c && (b.onClick = (x) => {
79183
79185
  h && h(x), a.canCloseOnClick && u();
@@ -79271,7 +79273,7 @@ const pme = typeof window < "u" ? Pg : lt, Bh = (i) => {
79271
79273
  }, spinner: function() {
79272
79274
  return Ze.createElement("div", { className: "Toastify__spinner" });
79273
79275
  } }, fme = (i) => {
79274
- const { isRunning: e, preventExitTransition: t, toastRef: s, eventHandlers: r, playToast: n } = ume(i), { closeButton: a, children: o, autoClose: l, onClick: u, type: h, hideProgressBar: c, closeToast: d, transition: f, position: y, className: v, style: m, bodyClassName: g, bodyStyle: b, progressClassName: x, progressStyle: T, updateId: R, role: A, progress: D, rtl: V, toastId: _, deleteToast: N, isIn: q, isLoading: Q, closeOnClick: L, theme: B } = i, H = Zn("Toastify__toast", `Toastify__toast-theme--${B}`, `Toastify__toast--${h}`, { "Toastify__toast--rtl": V }, { "Toastify__toast--close-on-click": L }), $ = Pi(v) ? v({ rtl: V, position: y, type: h, defaultClassName: H }) : Zn(H, v), j = function(oe) {
79276
+ const { isRunning: e, preventExitTransition: t, toastRef: s, eventHandlers: r, playToast: n } = ume(i), { closeButton: a, children: o, autoClose: l, onClick: u, type: h, hideProgressBar: c, closeToast: d, transition: f, position: y, className: v, style: m, bodyClassName: g, bodyStyle: b, progressClassName: x, progressStyle: T, updateId: A, role: L, progress: D, rtl: V, toastId: I, deleteToast: M, isIn: q, isLoading: Q, closeOnClick: _, theme: B } = i, H = Zn("Toastify__toast", `Toastify__toast-theme--${B}`, `Toastify__toast--${h}`, { "Toastify__toast--rtl": V }, { "Toastify__toast--close-on-click": _ }), $ = Pi(v) ? v({ rtl: V, position: y, type: h, defaultClassName: H }) : Zn(H, v), j = function(oe) {
79275
79277
  let { theme: re, type: ue, isLoading: Ie, icon: ge } = oe, te = null;
79276
79278
  const we = { theme: re, type: ue };
79277
79279
  return ge === !1 || (Pi(ge) ? te = ge({ ...we, isLoading: Ie }) : _a(ge) ? te = em(ge, we) : Ie ? te = Mf.spinner() : ((et) => et in Mf)(ue) && (te = Mf[ue](we))), te;
@@ -79282,7 +79284,7 @@ const pme = typeof window < "u" ? Pg : lt, Bh = (i) => {
79282
79284
  return Ze.createElement("button", { className: `Toastify__close-button Toastify__close-button--${ue}`, type: "button", onClick: (ge) => {
79283
79285
  ge.stopPropagation(), re(ge);
79284
79286
  }, "aria-label": Ie }, Ze.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, Ze.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
79285
- }(ne)), Ze.createElement(f, { isIn: q, done: N, position: y, preventExitTransition: t, nodeRef: s, playToast: n }, Ze.createElement("div", { id: _, onClick: u, "data-in": q, className: $, ...r, style: m, ref: s }, Ze.createElement("div", { ...q && { role: A }, className: Pi(g) ? g({ type: h }) : Zn("Toastify__toast-body", g), style: b }, j != null && Ze.createElement("div", { className: Zn("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !Q }) }, j), Ze.createElement("div", null, o)), Y, Ze.createElement(hme, { ...R && !G ? { key: `pb-${R}` } : {}, rtl: V, theme: B, delay: l, isRunning: e, isIn: q, closeToast: d, hide: c, type: h, style: T, className: x, controlledProgress: G, progress: D || 0 })));
79287
+ }(ne)), Ze.createElement(f, { isIn: q, done: M, position: y, preventExitTransition: t, nodeRef: s, playToast: n }, Ze.createElement("div", { id: I, onClick: u, "data-in": q, className: $, ...r, style: m, ref: s }, Ze.createElement("div", { ...q && { role: L }, className: Pi(g) ? g({ type: h }) : Zn("Toastify__toast-body", g), style: b }, j != null && Ze.createElement("div", { className: Zn("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !Q }) }, j), Ze.createElement("div", null, o)), Y, Ze.createElement(hme, { ...A && !G ? { key: `pb-${A}` } : {}, rtl: V, theme: B, delay: l, isRunning: e, isIn: q, closeToast: d, hide: c, type: h, style: T, className: x, controlledProgress: G, progress: D || 0 })));
79286
79288
  }, tp = function(i, e) {
79287
79289
  return e === void 0 && (e = !1), { enter: `Toastify--animate Toastify__${i}-enter`, exit: `Toastify--animate Toastify__${i}-exit`, appendPosition: e };
79288
79290
  }, 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" };
@@ -79301,10 +79303,10 @@ function vme(i) {
79301
79303
  var v;
79302
79304
  const m = n.current.querySelectorAll('[data-in="true"]'), g = 12, b = (v = e.position) == null ? void 0 : v.includes("top");
79303
79305
  let x = 0, T = 0;
79304
- Array.from(m).reverse().forEach((R, A) => {
79305
- const D = R;
79306
- D.classList.add("Toastify__toast--stacked"), A > 0 && (D.dataset.collapsed = `${s}`), D.dataset.pos || (D.dataset.pos = b ? "top" : "bot");
79307
- const V = x * (s ? 0.2 : 1) + (s ? 0 : g * A);
79306
+ Array.from(m).reverse().forEach((A, L) => {
79307
+ const D = A;
79308
+ D.classList.add("Toastify__toast--stacked"), L > 0 && (D.dataset.collapsed = `${s}`), D.dataset.pos || (D.dataset.pos = b ? "top" : "bot");
79309
+ const V = x * (s ? 0.2 : 1) + (s ? 0 : g * L);
79308
79310
  D.style.setProperty("--y", `${b ? V : -1 * V}px`), D.style.setProperty("--g", `${g}`), D.style.setProperty("--s", "" + (1 - (s ? T : 0))), x += D.offsetHeight, T += 0.025;
79309
79311
  });
79310
79312
  }
@@ -79322,11 +79324,11 @@ const yme = ({
79322
79324
  paramRegistry: i,
79323
79325
  timelineRepresentation: e
79324
79326
  }) => {
79325
- 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((L) => L.name !== "includeSubset" && L.name !== "excludeSubset").sort((L, B) => L.name.localeCompare(B.name));
79327
+ 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));
79326
79328
  lt(() => {
79327
- const L = new URLSearchParams(window.location.search), B = {}, H = [];
79329
+ const _ = new URLSearchParams(window.location.search), B = {}, H = [];
79328
79330
  let $ = [], j = !1;
79329
- const G = L.get("includeSubset"), ne = L.get("excludeSubset"), Y = L.get("_b");
79331
+ const G = _.get("includeSubset"), ne = _.get("excludeSubset"), Y = _.get("_b");
79330
79332
  if (Y)
79331
79333
  try {
79332
79334
  const ue = atob(Y), Ie = JSON.parse(ue);
@@ -79340,7 +79342,7 @@ const yme = ({
79340
79342
  { length: e.length },
79341
79343
  (ue, Ie) => (Ie + 1).toString()
79342
79344
  ));
79343
- const oe = L.get("_b");
79345
+ const oe = _.get("_b");
79344
79346
  if (oe)
79345
79347
  try {
79346
79348
  const ue = atob(oe), Ie = JSON.parse(ue), ge = i.map((te) => te.name);
@@ -79354,10 +79356,10 @@ const yme = ({
79354
79356
  te.name in B || (te.type === "boolean" && te.defaultValue !== void 0 ? B[te.name] = String(te.defaultValue) : B[te.name] = "");
79355
79357
  }), c(!0);
79356
79358
  } catch {
79357
- re(L);
79359
+ re(_);
79358
79360
  }
79359
79361
  else
79360
- re(L);
79362
+ re(_);
79361
79363
  function re(ue) {
79362
79364
  i.forEach((ge) => {
79363
79365
  const te = ue.get(ge.name);
@@ -79387,7 +79389,7 @@ const yme = ({
79387
79389
  }
79388
79390
  s(B), n(H);
79389
79391
  }, [i]), lt(() => {
79390
- const L = window.location.pathname.replace(/\/settings$/, "");
79392
+ const _ = window.location.pathname.replace(/\/settings$/, "");
79391
79393
  let B = "";
79392
79394
  const H = { ...t };
79393
79395
  if (y.length > 0 ? d ? (H.excludeSubset = y.sort().join(","), delete H.includeSubset) : y.length != e.length && (H.includeSubset = y.sort().join(","), delete H.excludeSubset) : (delete H.includeSubset, delete H.excludeSubset), r.forEach((j) => {
@@ -79432,53 +79434,53 @@ const yme = ({
79432
79434
  }
79433
79435
  }), B = j.toString() ? `?${j.toString()}` : "";
79434
79436
  }
79435
- const $ = `${window.location.origin}${L}${B}`;
79437
+ const $ = `${window.location.origin}${_}${B}`;
79436
79438
  o($);
79437
79439
  }, [t, r, h, i, y, d]);
79438
- const b = (L, B) => {
79440
+ const b = (_, B) => {
79439
79441
  s((H) => ({
79440
79442
  ...H,
79441
- [L]: B
79443
+ [_]: B
79442
79444
  }));
79443
- }, x = (L, B, H) => {
79445
+ }, x = (_, B, H) => {
79444
79446
  n(($) => {
79445
79447
  const j = [...$];
79446
- return j[L] = {
79447
- ...j[L],
79448
+ return j[_] = {
79449
+ ...j[_],
79448
79450
  [B]: H
79449
79451
  }, j;
79450
79452
  });
79451
- }, T = (L) => {
79452
- const B = `${L + 1}`;
79453
+ }, T = (_) => {
79454
+ const B = `${_ + 1}`;
79453
79455
  v((H) => H.includes(B) ? H.filter((j) => j !== B) : [...H, B]);
79454
- }, R = () => {
79455
- f((L) => !L);
79456
79456
  }, A = () => {
79457
- n((L) => [...L, { name: "", value: "", type: "string" }]);
79457
+ f((_) => !_);
79458
+ }, L = () => {
79459
+ n((_) => [..._, { name: "", value: "", type: "string" }]);
79458
79460
  }, D = r.filter(
79459
- (L) => L.name !== "includeSubset" && L.name !== "excludeSubset"
79460
- ), V = (L) => {
79461
- n((B) => B.filter((H, $) => $ !== L));
79462
- }, _ = () => {
79461
+ (_) => _.name !== "includeSubset" && _.name !== "excludeSubset"
79462
+ ), V = (_) => {
79463
+ n((B) => B.filter((H, $) => $ !== _));
79464
+ }, I = () => {
79463
79465
  m.current && (m.current.select(), document.execCommand("copy"), u("Copied!"), setTimeout(() => u("Copy URL"), 2e3));
79464
- }, N = () => {
79466
+ }, M = () => {
79465
79467
  c(!h);
79466
- }, q = (L) => {
79467
- const { name: B, type: H, defaultValue: $ } = L;
79468
+ }, q = (_) => {
79469
+ const { name: B, type: H, defaultValue: $ } = _;
79468
79470
  if (B === "includeSubset" || B === "excludeSubset")
79469
79471
  return null;
79470
79472
  const j = t[B] || "";
79471
79473
  switch (H) {
79472
79474
  case "boolean":
79473
- return /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
79474
- /* @__PURE__ */ I.jsx(
79475
+ return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
79476
+ /* @__PURE__ */ R.jsx(
79475
79477
  "button",
79476
79478
  {
79477
79479
  onClick: () => b(B, j === "true" ? "false" : "true"),
79478
79480
  className: `relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${j === "true" ? "bg-blue-600" : "bg-gray-200"}`,
79479
79481
  role: "switch",
79480
79482
  "aria-checked": j === "true",
79481
- children: /* @__PURE__ */ I.jsx(
79483
+ children: /* @__PURE__ */ R.jsx(
79482
79484
  "span",
79483
79485
  {
79484
79486
  className: `pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${j === "true" ? "translate-x-5" : "translate-x-0"}`
@@ -79486,10 +79488,10 @@ const yme = ({
79486
79488
  )
79487
79489
  }
79488
79490
  ),
79489
- /* @__PURE__ */ I.jsx("span", { className: "ml-4 text-gray-500", children: j === "true" ? "True" : "False" })
79491
+ /* @__PURE__ */ R.jsx("span", { className: "ml-4 text-gray-500", children: j === "true" ? "True" : "False" })
79490
79492
  ] });
79491
79493
  case "number":
79492
- return /* @__PURE__ */ I.jsx(
79494
+ return /* @__PURE__ */ R.jsx(
79493
79495
  "input",
79494
79496
  {
79495
79497
  type: "number",
@@ -79501,7 +79503,7 @@ const yme = ({
79501
79503
  );
79502
79504
  case "array":
79503
79505
  case "json":
79504
- return /* @__PURE__ */ I.jsx(
79506
+ return /* @__PURE__ */ R.jsx(
79505
79507
  "textarea",
79506
79508
  {
79507
79509
  className: "mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
@@ -79513,7 +79515,7 @@ const yme = ({
79513
79515
  );
79514
79516
  case "string":
79515
79517
  default:
79516
- return /* @__PURE__ */ I.jsx(
79518
+ return /* @__PURE__ */ R.jsx(
79517
79519
  "input",
79518
79520
  {
79519
79521
  type: "text",
@@ -79524,88 +79526,88 @@ const yme = ({
79524
79526
  }
79525
79527
  );
79526
79528
  }
79527
- }, Q = (L, B) => L.name === "includeSubset" || L.name === "excludeSubset" ? null : /* @__PURE__ */ I.jsxs("div", { className: "grid grid-cols-12 gap-2 items-center mb-2", children: [
79528
- /* @__PURE__ */ I.jsx("div", { className: "col-span-3", children: /* @__PURE__ */ I.jsx(
79529
+ }, Q = (_, B) => _.name === "includeSubset" || _.name === "excludeSubset" ? null : /* @__PURE__ */ R.jsxs("div", { className: "grid grid-cols-12 gap-2 items-center mb-2", children: [
79530
+ /* @__PURE__ */ R.jsx("div", { className: "col-span-3", children: /* @__PURE__ */ R.jsx(
79529
79531
  "input",
79530
79532
  {
79531
79533
  type: "text",
79532
79534
  className: "block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
79533
- value: L.name,
79535
+ value: _.name,
79534
79536
  onChange: (H) => x(B, "name", H.target.value),
79535
79537
  placeholder: "Parameter name"
79536
79538
  }
79537
79539
  ) }),
79538
- /* @__PURE__ */ I.jsx("div", { className: "col-span-2", children: /* @__PURE__ */ I.jsxs(
79540
+ /* @__PURE__ */ R.jsx("div", { className: "col-span-2", children: /* @__PURE__ */ R.jsxs(
79539
79541
  "select",
79540
79542
  {
79541
79543
  className: "block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md",
79542
- value: L.type,
79544
+ value: _.type,
79543
79545
  onChange: (H) => x(B, "type", H.target.value),
79544
79546
  children: [
79545
- /* @__PURE__ */ I.jsx("option", { value: "string", children: "String" }),
79546
- /* @__PURE__ */ I.jsx("option", { value: "number", children: "Number" }),
79547
- /* @__PURE__ */ I.jsx("option", { value: "boolean", children: "Boolean" }),
79548
- /* @__PURE__ */ I.jsx("option", { value: "array", children: "Array" }),
79549
- /* @__PURE__ */ I.jsx("option", { value: "json", children: "JSON" })
79547
+ /* @__PURE__ */ R.jsx("option", { value: "string", children: "String" }),
79548
+ /* @__PURE__ */ R.jsx("option", { value: "number", children: "Number" }),
79549
+ /* @__PURE__ */ R.jsx("option", { value: "boolean", children: "Boolean" }),
79550
+ /* @__PURE__ */ R.jsx("option", { value: "array", children: "Array" }),
79551
+ /* @__PURE__ */ R.jsx("option", { value: "json", children: "JSON" })
79550
79552
  ]
79551
79553
  }
79552
79554
  ) }),
79553
- /* @__PURE__ */ I.jsx("div", { className: "col-span-6", children: L.type === "boolean" ? /* @__PURE__ */ I.jsx(I.Fragment, { children: /* @__PURE__ */ I.jsx(
79555
+ /* @__PURE__ */ R.jsx("div", { className: "col-span-6", children: _.type === "boolean" ? /* @__PURE__ */ R.jsx(R.Fragment, { children: /* @__PURE__ */ R.jsx(
79554
79556
  "button",
79555
79557
  {
79556
- onClick: () => x(B, "value", L.value === "true" ? "false" : "true"),
79557
- className: `relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${L.value === "true" ? "bg-blue-600" : "bg-gray-200"}`,
79558
+ onClick: () => x(B, "value", _.value === "true" ? "false" : "true"),
79559
+ className: `relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${_.value === "true" ? "bg-blue-600" : "bg-gray-200"}`,
79558
79560
  role: "switch",
79559
- "aria-checked": L.value === "true",
79560
- children: /* @__PURE__ */ I.jsx(
79561
+ "aria-checked": _.value === "true",
79562
+ children: /* @__PURE__ */ R.jsx(
79561
79563
  "span",
79562
79564
  {
79563
- className: `pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${L.value === "true" ? "translate-x-5" : "translate-x-0"}`
79565
+ className: `pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${_.value === "true" ? "translate-x-5" : "translate-x-0"}`
79564
79566
  }
79565
79567
  )
79566
79568
  }
79567
- ) }) : L.type === "array" || L.type === "json" ? /* @__PURE__ */ I.jsx(
79569
+ ) }) : _.type === "array" || _.type === "json" ? /* @__PURE__ */ R.jsx(
79568
79570
  "textarea",
79569
79571
  {
79570
79572
  className: "block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
79571
- value: L.value,
79573
+ value: _.value,
79572
79574
  onChange: (H) => x(B, "value", H.target.value),
79573
- placeholder: L.type === "array" ? "Enter JSON array [1,2,3]" : 'Enter JSON object {"key":"value"}',
79575
+ placeholder: _.type === "array" ? "Enter JSON array [1,2,3]" : 'Enter JSON object {"key":"value"}',
79574
79576
  rows: 1
79575
79577
  }
79576
- ) : L.type === "number" ? /* @__PURE__ */ I.jsx(
79578
+ ) : _.type === "number" ? /* @__PURE__ */ R.jsx(
79577
79579
  "input",
79578
79580
  {
79579
79581
  type: "number",
79580
79582
  className: "block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
79581
- value: L.value,
79583
+ value: _.value,
79582
79584
  onChange: (H) => x(B, "value", H.target.value),
79583
79585
  placeholder: "Enter number..."
79584
79586
  }
79585
- ) : /* @__PURE__ */ I.jsx(
79587
+ ) : /* @__PURE__ */ R.jsx(
79586
79588
  "input",
79587
79589
  {
79588
79590
  type: "text",
79589
79591
  className: "block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
79590
- value: L.value,
79592
+ value: _.value,
79591
79593
  onChange: (H) => x(B, "value", H.target.value),
79592
79594
  placeholder: "Enter value..."
79593
79595
  }
79594
79596
  ) }),
79595
- /* @__PURE__ */ I.jsx("div", { className: "col-span-1", children: /* @__PURE__ */ I.jsx(
79597
+ /* @__PURE__ */ R.jsx("div", { className: "col-span-1", children: /* @__PURE__ */ R.jsx(
79596
79598
  "button",
79597
79599
  {
79598
79600
  onClick: () => V(B),
79599
79601
  className: "inline-flex cursor-pointer items-center justify-center p-2 border border-transparent rounded-md text-red-700 bg-red-100 hover:bg-red-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",
79600
79602
  "aria-label": "Remove parameter",
79601
- children: /* @__PURE__ */ I.jsx(
79603
+ children: /* @__PURE__ */ R.jsx(
79602
79604
  "svg",
79603
79605
  {
79604
79606
  xmlns: "http://www.w3.org/2000/svg",
79605
79607
  className: "h-5 w-5",
79606
79608
  viewBox: "0 0 20 20",
79607
79609
  fill: "currentColor",
79608
- children: /* @__PURE__ */ I.jsx(
79610
+ children: /* @__PURE__ */ R.jsx(
79609
79611
  "path",
79610
79612
  {
79611
79613
  fillRule: "evenodd",
@@ -79618,52 +79620,52 @@ const yme = ({
79618
79620
  }
79619
79621
  ) })
79620
79622
  ] });
79621
- return /* @__PURE__ */ I.jsxs("div", { className: "max-w-4xl mx-auto p-6", children: [
79622
- /* @__PURE__ */ I.jsx("h1", { className: "text-3xl font-bold mb-4", children: "Experiment Parameters" }),
79623
- /* @__PURE__ */ I.jsx("p", { className: "text-gray-700 mb-6", children: "Configure the experiment by setting parameter values below. Fields left empty will be assigned their default value. Once configured, you can copy the URL to run the experiment with these settings." }),
79624
- /* @__PURE__ */ I.jsxs("div", { className: "bg-white shadow overflow-hidden sm:rounded-md mb-8", children: [
79625
- /* @__PURE__ */ I.jsxs("div", { className: "px-4 py-5 border-b border-gray-200 sm:px-6", children: [
79626
- /* @__PURE__ */ I.jsx("h2", { className: "text-lg font-medium text-gray-900", children: "Registered Parameters" }),
79627
- /* @__PURE__ */ I.jsx("p", { className: "mt-1 text-sm text-gray-500", children: "Parameters defined in the experiment configuration." })
79623
+ return /* @__PURE__ */ R.jsxs("div", { className: "max-w-4xl mx-auto p-6", children: [
79624
+ /* @__PURE__ */ R.jsx("h1", { className: "text-3xl font-bold mb-4", children: "Experiment Parameters" }),
79625
+ /* @__PURE__ */ R.jsx("p", { className: "text-gray-700 mb-6", children: "Configure the experiment by setting parameter values below. Fields left empty will be assigned their default value. Once configured, you can copy the URL to run the experiment with these settings." }),
79626
+ /* @__PURE__ */ R.jsxs("div", { className: "bg-white shadow overflow-hidden sm:rounded-md mb-8", children: [
79627
+ /* @__PURE__ */ R.jsxs("div", { className: "px-4 py-5 border-b border-gray-200 sm:px-6", children: [
79628
+ /* @__PURE__ */ R.jsx("h2", { className: "text-lg font-medium text-gray-900", children: "Registered Parameters" }),
79629
+ /* @__PURE__ */ R.jsx("p", { className: "mt-1 text-sm text-gray-500", children: "Parameters defined in the experiment configuration." })
79628
79630
  ] }),
79629
- /* @__PURE__ */ I.jsx("ul", { className: "divide-y divide-gray-200", children: g.map((L) => /* @__PURE__ */ I.jsx("li", { className: "px-4 py-4 sm:px-6", children: /* @__PURE__ */ I.jsxs("div", { className: "grid grid-cols-3 gap-6", children: [
79630
- /* @__PURE__ */ I.jsx("div", { className: "col-span-2", children: /* @__PURE__ */ I.jsxs("div", { className: "flex flex-col h-full", children: [
79631
- /* @__PURE__ */ I.jsxs("div", { className: "flex items-center", children: [
79632
- /* @__PURE__ */ I.jsx("label", { className: "text-base font-medium text-gray-900", children: L.name }),
79633
- /* @__PURE__ */ I.jsx("span", { className: "ml-2 inline-flex items-center px-2 py-0.5 rounded-lg text-xs font-medium bg-gray-100 text-gray-600", children: L.type })
79631
+ /* @__PURE__ */ R.jsx("ul", { className: "divide-y divide-gray-200", children: g.map((_) => /* @__PURE__ */ R.jsx("li", { className: "px-4 py-4 sm:px-6", children: /* @__PURE__ */ R.jsxs("div", { className: "grid grid-cols-3 gap-6", children: [
79632
+ /* @__PURE__ */ R.jsx("div", { className: "col-span-2", children: /* @__PURE__ */ R.jsxs("div", { className: "flex flex-col h-full", children: [
79633
+ /* @__PURE__ */ R.jsxs("div", { className: "flex items-center", children: [
79634
+ /* @__PURE__ */ R.jsx("label", { className: "text-base font-medium text-gray-900", children: _.name }),
79635
+ /* @__PURE__ */ R.jsx("span", { className: "ml-2 inline-flex items-center px-2 py-0.5 rounded-lg text-xs font-medium bg-gray-100 text-gray-600", children: _.type })
79634
79636
  ] }),
79635
- L.description && /* @__PURE__ */ I.jsx("p", { className: "mt-1 text-sm text-gray-500 flex-grow", children: L.description }),
79636
- L.defaultValue !== void 0 && /* @__PURE__ */ I.jsxs("p", { className: "mt-auto pt-2 text-xs text-gray-500", children: [
79637
+ _.description && /* @__PURE__ */ R.jsx("p", { className: "mt-1 text-sm text-gray-500 flex-grow", children: _.description }),
79638
+ _.defaultValue !== void 0 && /* @__PURE__ */ R.jsxs("p", { className: "mt-auto pt-2 text-xs text-gray-500", children: [
79637
79639
  "Default: ",
79638
- /* @__PURE__ */ I.jsxs("code", { children: [
79640
+ /* @__PURE__ */ R.jsxs("code", { children: [
79639
79641
  " ",
79640
- JSON.stringify(L.defaultValue)
79642
+ JSON.stringify(_.defaultValue)
79641
79643
  ] })
79642
79644
  ] })
79643
79645
  ] }) }),
79644
- /* @__PURE__ */ I.jsx("div", { className: "col-span-1 flex items-center", children: q(L) })
79645
- ] }) }, L.name)) })
79646
+ /* @__PURE__ */ R.jsx("div", { className: "col-span-1 flex items-center", children: q(_) })
79647
+ ] }) }, _.name)) })
79646
79648
  ] }),
79647
- /* @__PURE__ */ I.jsxs("div", { className: "bg-white shadow overflow-hidden sm:rounded-md mb-8", children: [
79648
- /* @__PURE__ */ I.jsx("div", { className: "px-4 py-5 border-b border-gray-200 sm:px-6", children: /* @__PURE__ */ I.jsxs("div", { className: "flex justify-between items-center", children: [
79649
- /* @__PURE__ */ I.jsxs("div", { children: [
79650
- /* @__PURE__ */ I.jsx("h2", { className: "text-lg font-medium text-gray-900", children: "Custom Parameters" }),
79651
- /* @__PURE__ */ I.jsx("p", { className: "mt-1 text-sm text-gray-500", children: "Add any additional parameters to be stored in the data for this run." })
79649
+ /* @__PURE__ */ R.jsxs("div", { className: "bg-white shadow overflow-hidden sm:rounded-md mb-8", children: [
79650
+ /* @__PURE__ */ R.jsx("div", { className: "px-4 py-5 border-b border-gray-200 sm:px-6", children: /* @__PURE__ */ R.jsxs("div", { className: "flex justify-between items-center", children: [
79651
+ /* @__PURE__ */ R.jsxs("div", { children: [
79652
+ /* @__PURE__ */ R.jsx("h2", { className: "text-lg font-medium text-gray-900", children: "Custom Parameters" }),
79653
+ /* @__PURE__ */ R.jsx("p", { className: "mt-1 text-sm text-gray-500", children: "Add any additional parameters to be stored in the data for this run." })
79652
79654
  ] }),
79653
- /* @__PURE__ */ I.jsxs(
79655
+ /* @__PURE__ */ R.jsxs(
79654
79656
  "button",
79655
79657
  {
79656
- onClick: A,
79658
+ onClick: L,
79657
79659
  className: "inline-flex cursor-pointer items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",
79658
79660
  children: [
79659
- /* @__PURE__ */ I.jsx(
79661
+ /* @__PURE__ */ R.jsx(
79660
79662
  "svg",
79661
79663
  {
79662
79664
  xmlns: "http://www.w3.org/2000/svg",
79663
79665
  className: "-ml-1 mr-2 h-5 w-5",
79664
79666
  viewBox: "0 0 20 20",
79665
79667
  fill: "currentColor",
79666
- children: /* @__PURE__ */ I.jsx(
79668
+ children: /* @__PURE__ */ R.jsx(
79667
79669
  "path",
79668
79670
  {
79669
79671
  fillRule: "evenodd",
@@ -79678,31 +79680,31 @@ const yme = ({
79678
79680
  }
79679
79681
  )
79680
79682
  ] }) }),
79681
- /* @__PURE__ */ I.jsx("div", { className: "px-4 py-5 sm:px-6", children: D.length === 0 ? /* @__PURE__ */ I.jsx("p", { className: "text-sm text-gray-500 italic", children: 'No custom parameters added. Click "Add Parameter" to create one.' }) : /* @__PURE__ */ I.jsxs("div", { children: [
79682
- /* @__PURE__ */ I.jsxs("div", { className: "grid grid-cols-12 gap-2 mb-2", children: [
79683
- /* @__PURE__ */ I.jsx("div", { className: "col-span-3", children: /* @__PURE__ */ I.jsx("label", { className: "block text-xs font-medium text-gray-500", children: "PARAMETER NAME" }) }),
79684
- /* @__PURE__ */ I.jsx("div", { className: "col-span-2", children: /* @__PURE__ */ I.jsx("label", { className: "block text-xs font-medium text-gray-500", children: "TYPE" }) }),
79685
- /* @__PURE__ */ I.jsx("div", { className: "col-span-6", children: /* @__PURE__ */ I.jsx("label", { className: "block text-xs font-medium text-gray-500", children: "VALUE" }) }),
79686
- /* @__PURE__ */ I.jsx("div", { className: "col-span-1" })
79683
+ /* @__PURE__ */ R.jsx("div", { className: "px-4 py-5 sm:px-6", children: D.length === 0 ? /* @__PURE__ */ R.jsx("p", { className: "text-sm text-gray-500 italic", children: 'No custom parameters added. Click "Add Parameter" to create one.' }) : /* @__PURE__ */ R.jsxs("div", { children: [
79684
+ /* @__PURE__ */ R.jsxs("div", { className: "grid grid-cols-12 gap-2 mb-2", children: [
79685
+ /* @__PURE__ */ R.jsx("div", { className: "col-span-3", children: /* @__PURE__ */ R.jsx("label", { className: "block text-xs font-medium text-gray-500", children: "PARAMETER NAME" }) }),
79686
+ /* @__PURE__ */ R.jsx("div", { className: "col-span-2", children: /* @__PURE__ */ R.jsx("label", { className: "block text-xs font-medium text-gray-500", children: "TYPE" }) }),
79687
+ /* @__PURE__ */ R.jsx("div", { className: "col-span-6", children: /* @__PURE__ */ R.jsx("label", { className: "block text-xs font-medium text-gray-500", children: "VALUE" }) }),
79688
+ /* @__PURE__ */ R.jsx("div", { className: "col-span-1" })
79687
79689
  ] }),
79688
- D.map((L, B) => /* @__PURE__ */ I.jsx("div", { children: Q(L, B) }, B))
79690
+ D.map((_, B) => /* @__PURE__ */ R.jsx("div", { children: Q(_, B) }, B))
79689
79691
  ] }) })
79690
79692
  ] }),
79691
- e.length > 0 && /* @__PURE__ */ I.jsxs("div", { className: "bg-white shadow overflow-hidden sm:rounded-md mb-8", children: [
79692
- /* @__PURE__ */ I.jsx("div", { className: "px-4 py-5 border-b border-gray-200 sm:px-6", children: /* @__PURE__ */ I.jsxs("div", { className: "flex justify-between items-center", children: [
79693
- /* @__PURE__ */ I.jsxs("div", { children: [
79694
- /* @__PURE__ */ I.jsx("h2", { className: "text-lg font-medium text-gray-900", children: "Trial Selection" }),
79695
- /* @__PURE__ */ I.jsx("p", { className: "mt-1 text-sm text-gray-500", children: "Select which trials to include or exclude from the experiment." })
79693
+ e.length > 0 && /* @__PURE__ */ R.jsxs("div", { className: "bg-white shadow overflow-hidden sm:rounded-md mb-8", children: [
79694
+ /* @__PURE__ */ R.jsx("div", { className: "px-4 py-5 border-b border-gray-200 sm:px-6", children: /* @__PURE__ */ R.jsxs("div", { className: "flex justify-between items-center", children: [
79695
+ /* @__PURE__ */ R.jsxs("div", { children: [
79696
+ /* @__PURE__ */ R.jsx("h2", { className: "text-lg font-medium text-gray-900", children: "Trial Selection" }),
79697
+ /* @__PURE__ */ R.jsx("p", { className: "mt-1 text-sm text-gray-500", children: "Select which trials to include or exclude from the experiment." })
79696
79698
  ] }),
79697
- /* @__PURE__ */ I.jsxs("div", { className: "flex items-center", children: [
79698
- /* @__PURE__ */ I.jsx(
79699
+ /* @__PURE__ */ R.jsxs("div", { className: "flex items-center", children: [
79700
+ /* @__PURE__ */ R.jsx(
79699
79701
  "button",
79700
79702
  {
79701
- onClick: R,
79703
+ onClick: A,
79702
79704
  className: `relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${d ? "bg-red-600" : "bg-green-600"}`,
79703
79705
  role: "switch",
79704
79706
  "aria-checked": d,
79705
- children: /* @__PURE__ */ I.jsx(
79707
+ children: /* @__PURE__ */ R.jsx(
79706
79708
  "span",
79707
79709
  {
79708
79710
  className: `pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${d ? "translate-x-5" : "translate-x-0"}`
@@ -79710,21 +79712,21 @@ const yme = ({
79710
79712
  )
79711
79713
  }
79712
79714
  ),
79713
- /* @__PURE__ */ I.jsx("span", { className: "ml-2 text-sm text-gray-600", children: d ? "Exclude mode" : "Include mode" })
79715
+ /* @__PURE__ */ R.jsx("span", { className: "ml-2 text-sm text-gray-600", children: d ? "Exclude mode" : "Include mode" })
79714
79716
  ] })
79715
79717
  ] }) }),
79716
- /* @__PURE__ */ I.jsxs("div", { className: "px-4 py-5 sm:px-6", children: [
79717
- /* @__PURE__ */ I.jsx("p", { className: "mb-4 text-sm font-medium text-gray-500", children: d ? "Check trials you want to EXCLUDE from the experiment" : "Check trials you want to INCLUDE in the experiment" }),
79718
- /* @__PURE__ */ I.jsx("div", { className: "border border-gray-200 rounded-md overflow-hidden", children: /* @__PURE__ */ I.jsx("ul", { className: "divide-y divide-gray-200", children: e.map(
79719
- (L, B) => /* @__PURE__ */ I.jsx(
79718
+ /* @__PURE__ */ R.jsxs("div", { className: "px-4 py-5 sm:px-6", children: [
79719
+ /* @__PURE__ */ R.jsx("p", { className: "mb-4 text-sm font-medium text-gray-500", children: d ? "Check trials you want to EXCLUDE from the experiment" : "Check trials you want to INCLUDE in the experiment" }),
79720
+ /* @__PURE__ */ R.jsx("div", { className: "border border-gray-200 rounded-md overflow-hidden", children: /* @__PURE__ */ R.jsx("ul", { className: "divide-y divide-gray-200", children: e.map(
79721
+ (_, B) => /* @__PURE__ */ R.jsx(
79720
79722
  "li",
79721
79723
  {
79722
79724
  className: "cursor-pointer px-4 py-3 hover:bg-gray-50",
79723
79725
  onClick: (H) => {
79724
79726
  H.target.type !== "checkbox" && !H.target.closest("label") && T(B);
79725
79727
  },
79726
- children: /* @__PURE__ */ I.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ I.jsxs("div", { className: "flex items-center flex-grow", children: [
79727
- /* @__PURE__ */ I.jsx(
79728
+ children: /* @__PURE__ */ R.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ R.jsxs("div", { className: "flex items-center flex-grow", children: [
79729
+ /* @__PURE__ */ R.jsx(
79728
79730
  "input",
79729
79731
  {
79730
79732
  id: `trial-${B}`,
@@ -79734,18 +79736,18 @@ const yme = ({
79734
79736
  onChange: () => T(B)
79735
79737
  }
79736
79738
  ),
79737
- /* @__PURE__ */ I.jsxs(
79739
+ /* @__PURE__ */ R.jsxs(
79738
79740
  "label",
79739
79741
  {
79740
79742
  htmlFor: `trial-${B}`,
79741
79743
  className: "ml-3 flex-grow flex items-center cursor-pointer",
79742
79744
  children: [
79743
- /* @__PURE__ */ I.jsxs("div", { className: "w-8 text-center text-xs text-gray-500 font-medium", children: [
79745
+ /* @__PURE__ */ R.jsxs("div", { className: "w-8 text-center text-xs text-gray-500 font-medium", children: [
79744
79746
  "#",
79745
79747
  B + 1
79746
79748
  ] }),
79747
- /* @__PURE__ */ I.jsx("div", { className: "flex-grow", children: L.name ? /* @__PURE__ */ I.jsx("span", { className: "font-medium text-gray-900", children: L.name }) : /* @__PURE__ */ I.jsx("span", { className: "font-medium text-gray-500", children: L.type }) }),
79748
- /* @__PURE__ */ I.jsx("div", { className: "ml-2", children: /* @__PURE__ */ I.jsx("span", { className: "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800", children: L.type }) })
79749
+ /* @__PURE__ */ R.jsx("div", { className: "flex-grow", children: _.name ? /* @__PURE__ */ R.jsx("span", { className: "font-medium text-gray-900", children: _.name }) : /* @__PURE__ */ R.jsx("span", { className: "font-medium text-gray-500", children: _.type }) }),
79750
+ /* @__PURE__ */ R.jsx("div", { className: "ml-2", children: /* @__PURE__ */ R.jsx("span", { className: "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800", children: _.type }) })
79749
79751
  ]
79750
79752
  }
79751
79753
  )
@@ -79756,18 +79758,18 @@ const yme = ({
79756
79758
  ) }) })
79757
79759
  ] })
79758
79760
  ] }),
79759
- /* @__PURE__ */ I.jsxs("div", { className: "bg-white shadow sm:rounded-md p-6 mb-8", children: [
79760
- /* @__PURE__ */ I.jsxs("div", { className: "flex justify-between items-center mb-4", children: [
79761
- /* @__PURE__ */ I.jsx("h2", { className: "text-lg font-medium", children: "Generated URL" }),
79762
- /* @__PURE__ */ I.jsxs("div", { className: "flex items-center", children: [
79763
- /* @__PURE__ */ I.jsx(
79761
+ /* @__PURE__ */ R.jsxs("div", { className: "bg-white shadow sm:rounded-md p-6 mb-8", children: [
79762
+ /* @__PURE__ */ R.jsxs("div", { className: "flex justify-between items-center mb-4", children: [
79763
+ /* @__PURE__ */ R.jsx("h2", { className: "text-lg font-medium", children: "Generated URL" }),
79764
+ /* @__PURE__ */ R.jsxs("div", { className: "flex items-center", children: [
79765
+ /* @__PURE__ */ R.jsx(
79764
79766
  "button",
79765
79767
  {
79766
- onClick: N,
79768
+ onClick: M,
79767
79769
  className: `relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${h ? "bg-blue-600" : "bg-gray-200"}`,
79768
79770
  role: "switch",
79769
79771
  "aria-checked": h,
79770
- children: /* @__PURE__ */ I.jsx(
79772
+ children: /* @__PURE__ */ R.jsx(
79771
79773
  "span",
79772
79774
  {
79773
79775
  className: `pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${h ? "translate-x-5" : "translate-x-0"}`
@@ -79775,11 +79777,11 @@ const yme = ({
79775
79777
  )
79776
79778
  }
79777
79779
  ),
79778
- /* @__PURE__ */ I.jsx("span", { className: "ml-2 text-sm text-gray-600", children: h ? "Base64 Encoded" : "Plain Parameters" })
79780
+ /* @__PURE__ */ R.jsx("span", { className: "ml-2 text-sm text-gray-600", children: h ? "Base64 Encoded" : "Plain Parameters" })
79779
79781
  ] })
79780
79782
  ] }),
79781
- /* @__PURE__ */ I.jsxs("div", { className: "flex flex-col md:flex-row gap-3", children: [
79782
- /* @__PURE__ */ I.jsx(
79783
+ /* @__PURE__ */ R.jsxs("div", { className: "flex flex-col md:flex-row gap-3", children: [
79784
+ /* @__PURE__ */ R.jsx(
79783
79785
  "input",
79784
79786
  {
79785
79787
  ref: m,
@@ -79789,21 +79791,21 @@ const yme = ({
79789
79791
  readOnly: !0
79790
79792
  }
79791
79793
  ),
79792
- /* @__PURE__ */ I.jsx(
79794
+ /* @__PURE__ */ R.jsx(
79793
79795
  "button",
79794
79796
  {
79795
- onClick: _,
79797
+ onClick: I,
79796
79798
  className: "inline-flex cursor-pointer justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",
79797
79799
  children: l
79798
79800
  }
79799
79801
  )
79800
79802
  ] }),
79801
- h && /* @__PURE__ */ I.jsxs("p", { className: "mt-4 text-sm text-gray-600", children: [
79802
- /* @__PURE__ */ I.jsx("span", { className: "font-medium", children: "Note:" }),
79803
+ h && /* @__PURE__ */ R.jsxs("p", { className: "mt-4 text-sm text-gray-600", children: [
79804
+ /* @__PURE__ */ R.jsx("span", { className: "font-medium", children: "Note:" }),
79803
79805
  ' Base64 encoding combines all parameters into a single "_b" parameter, creating shorter URLs that hide parameter details.'
79804
79806
  ] })
79805
79807
  ] }),
79806
- /* @__PURE__ */ I.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ I.jsx(
79808
+ /* @__PURE__ */ R.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ R.jsx(
79807
79809
  "a",
79808
79810
  {
79809
79811
  href: a,
@@ -79822,15 +79824,15 @@ function aw(i) {
79822
79824
  return !!i;
79823
79825
  }
79824
79826
  function hCe({ children: i, disableSettings: e, disableHybridSimulation: t }) {
79825
- return window.location.pathname.endsWith("/settings") && !aw(e) ? /* @__PURE__ */ I.jsx(
79827
+ return window.location.pathname.endsWith("/settings") && !aw(e) ? /* @__PURE__ */ R.jsx(
79826
79828
  yme,
79827
79829
  {
79828
79830
  paramRegistry: Cc.getRegistry(),
79829
79831
  timelineRepresentation: Cc.getTimelineRepresentation()
79830
79832
  }
79831
- ) : /* @__PURE__ */ I.jsxs(dde, { client: Cme, children: [
79832
- /* @__PURE__ */ I.jsx(l7.Provider, { value: aw(t), children: i }),
79833
- /* @__PURE__ */ I.jsx(
79833
+ ) : /* @__PURE__ */ R.jsxs(dde, { client: Cme, children: [
79834
+ /* @__PURE__ */ R.jsx(l7.Provider, { value: aw(t), children: i }),
79835
+ /* @__PURE__ */ R.jsx(
79834
79836
  vme,
79835
79837
  {
79836
79838
  position: "top-center",
@@ -79880,10 +79882,10 @@ function wme({ next: i }) {
79880
79882
  console.error("Permission denied or error:", r), t("denied");
79881
79883
  }
79882
79884
  })();
79883
- }, [i, e]), e === "checking" ? null : /* @__PURE__ */ I.jsxs("div", { className: "flex flex-col items-center justify-center gap-4 p-6 text-xl mt-16 px-10", children: [
79884
- /* @__PURE__ */ I.jsx("p", { children: "Storage permission is required to save your data." }),
79885
- /* @__PURE__ */ I.jsx("p", { children: "Please grant permission when prompted." }),
79886
- /* @__PURE__ */ I.jsxs("p", { children: [
79885
+ }, [i, e]), e === "checking" ? null : /* @__PURE__ */ R.jsxs("div", { className: "flex flex-col items-center justify-center gap-4 p-6 text-xl mt-16 px-10", children: [
79886
+ /* @__PURE__ */ R.jsx("p", { children: "Storage permission is required to save your data." }),
79887
+ /* @__PURE__ */ R.jsx("p", { children: "Please grant permission when prompted." }),
79888
+ /* @__PURE__ */ R.jsxs("p", { children: [
79887
79889
  'If there is no popup, go to "Settings" ',
79888
79890
  ">",
79889
79891
  ' "Apps" ',
@@ -79896,7 +79898,7 @@ function wme({ next: i }) {
79896
79898
  ">",
79897
79899
  ' "Allow"'
79898
79900
  ] }),
79899
- /* @__PURE__ */ I.jsx(
79901
+ /* @__PURE__ */ R.jsx(
79900
79902
  "button",
79901
79903
  {
79902
79904
  onClick: () => t("checking"),
@@ -79925,67 +79927,67 @@ function Vme({
79925
79927
  }) {
79926
79928
  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);
79927
79929
  lt(() => {
79928
- const Q = m.current._reactiveScreenRefreshRate, L = typeof Q == "number" && Q >= 20 && Q <= 300;
79929
- x.current = L ? 1e3 / Q : null;
79930
+ const Q = m.current._reactiveScreenRefreshRate, _ = typeof Q == "number" && Q >= 20 && Q <= 300;
79931
+ x.current = _ ? 1e3 / Q : null;
79930
79932
  }, [n]);
79931
79933
  const T = Xe(
79932
79934
  (Q) => {
79933
79935
  if (Q.type !== "ExecuteContent") return null;
79934
- const L = Q.content;
79935
- if (xme(L))
79936
+ const _ = Q.content;
79937
+ if (xme(_))
79936
79938
  try {
79937
- return L(v.current, m.current);
79939
+ return _(v.current, m.current);
79938
79940
  } catch (B) {
79939
79941
  return console.error("Error executing dynamic canvas slide generator:", B), null;
79940
79942
  }
79941
- else if (Eme(L))
79942
- return L;
79943
+ else if (Eme(_))
79944
+ return _;
79943
79945
  return console.warn(
79944
79946
  "ExecuteContent instruction content is not a valid CanvasSlide or Generator:",
79945
- L
79947
+ _
79946
79948
  ), null;
79947
79949
  },
79948
79950
  []
79949
- ), R = Xe(() => {
79951
+ ), A = Xe(() => {
79950
79952
  const Q = y.current;
79951
79953
  if (!Q) return {};
79952
- const L = Q.getContext("2d");
79953
- if (!L) return {};
79954
+ const _ = Q.getContext("2d");
79955
+ if (!_) return {};
79954
79956
  const B = window.devicePixelRatio || 1, H = Q.width / B, $ = Q.height / B;
79955
- return { ctx: L, canvasWidth: H, canvasHeight: $ };
79956
- }, []), A = Xe(() => {
79957
- const { ctx: Q, canvasWidth: L, canvasHeight: B } = R();
79958
- Q && (Q.fillStyle = "white", Q.fillRect(0, 0, L, B), d.current = !1);
79959
- }, [R]), D = Xe(
79957
+ return { ctx: _, canvasWidth: H, canvasHeight: $ };
79958
+ }, []), L = Xe(() => {
79959
+ const { ctx: Q, canvasWidth: _, canvasHeight: B } = A();
79960
+ Q && (Q.fillStyle = "white", Q.fillRect(0, 0, _, B), d.current = !1);
79961
+ }, [A]), D = Xe(
79960
79962
  (Q) => {
79961
- const { ctx: L, canvasWidth: B, canvasHeight: H } = R();
79962
- if (L) {
79963
- if (L.fillStyle = "white", L.fillRect(0, 0, B, H), a)
79963
+ const { ctx: _, canvasWidth: B, canvasHeight: H } = A();
79964
+ if (_) {
79965
+ if (_.fillStyle = "white", _.fillRect(0, 0, B, H), a)
79964
79966
  try {
79965
- a(L, B, H);
79967
+ a(_, B, H);
79966
79968
  } catch ($) {
79967
79969
  console.error("Error during styleCanvas function:", $);
79968
79970
  }
79969
79971
  else
79970
- L.fillStyle = "black";
79972
+ _.fillStyle = "black";
79971
79973
  try {
79972
- Q.draw(L, B, H);
79974
+ Q.draw(_, B, H);
79973
79975
  } catch ($) {
79974
79976
  console.error("Error during slide draw function:", $);
79975
79977
  }
79976
79978
  c.current = Qs(), d.current = !0, f.current = null, b.current += 1;
79977
79979
  }
79978
79980
  },
79979
- [R]
79981
+ [A]
79980
79982
  );
79981
79983
  let V;
79982
- const _ = Xe(() => {
79983
- const Q = Qs(), L = h.current;
79984
- if (L < 0 || L >= l.length) {
79984
+ const I = Xe(() => {
79985
+ const Q = Qs(), _ = h.current;
79986
+ if (_ < 0 || _ >= l.length) {
79985
79987
  g.current && cancelAnimationFrame(g.current), g.current = null;
79986
79988
  return;
79987
79989
  }
79988
- const B = l[L], H = T(B);
79990
+ const B = l[_], H = T(B);
79989
79991
  if (!H) {
79990
79992
  g.current && cancelAnimationFrame(g.current), g.current = null;
79991
79993
  return;
@@ -79993,8 +79995,8 @@ function Vme({
79993
79995
  const $ = H.displayDuration ?? 1 / 0, j = H.responseTimeLimit ?? 1 / 0, G = H.allowedKeys ?? !1, ne = G === !1 || Array.isArray(G) && G.length === 0;
79994
79996
  let Y = !1;
79995
79997
  const oe = Q - c.current + (x.current !== null ? x.current * 0.5 : 0);
79996
- d.current && $ !== 1 / 0 && oe >= $ && (A(), (ne || j === 1 / 0) && (Y = !0)), !Y && j !== 1 / 0 && oe >= j && (Y = !0, d.current && $ !== 1 / 0 && oe < $ && A()), Y ? V() : d.current && $ !== 1 / 0 && oe < $ || j !== 1 / 0 && oe < j ? g.current = requestAnimationFrame(_) : (g.current && cancelAnimationFrame(g.current), g.current = null);
79997
- }, [l, T, A]), N = Xe(() => {
79998
+ d.current && $ !== 1 / 0 && oe >= $ && (L(), (ne || j === 1 / 0) && (Y = !0)), !Y && j !== 1 / 0 && oe >= j && (Y = !0, d.current && $ !== 1 / 0 && oe < $ && L()), Y ? V() : d.current && $ !== 1 / 0 && oe < $ || j !== 1 / 0 && oe < j ? g.current = requestAnimationFrame(I) : (g.current && cancelAnimationFrame(g.current), g.current = null);
79999
+ }, [l, T, L]), M = Xe(() => {
79998
80000
  g.current && cancelAnimationFrame(g.current), g.current = null;
79999
80001
  const Q = Yn(
80000
80002
  { instructions: l, markers: u },
@@ -80013,20 +80015,20 @@ function Vme({
80013
80015
  console.error("Canvas element not found during control flow.");
80014
80016
  return;
80015
80017
  }
80016
- const L = T(l[Q]);
80017
- if (L) {
80018
- D(L);
80019
- const B = L.displayDuration ?? 1 / 0, H = L.responseTimeLimit ?? 1 / 0;
80020
- (B !== 1 / 0 || H !== 1 / 0) && (g.current = requestAnimationFrame(_));
80018
+ const _ = T(l[Q]);
80019
+ if (_) {
80020
+ D(_);
80021
+ const B = _.displayDuration ?? 1 / 0, H = _.responseTimeLimit ?? 1 / 0;
80022
+ (B !== 1 / 0 || H !== 1 / 0) && (g.current = requestAnimationFrame(I));
80021
80023
  } else
80022
- console.error("Failed to resolve slide content during control flow:", l[Q]), h.current++, N();
80023
- }, [l, u, T, D, _, i]);
80024
+ console.error("Failed to resolve slide content during control flow:", l[Q]), h.current++, M();
80025
+ }, [l, u, T, D, I, i]);
80024
80026
  V = Xe(() => {
80025
- const Q = f.current, L = Qs();
80027
+ const Q = f.current, _ = Qs();
80026
80028
  g.current && cancelAnimationFrame(g.current), g.current = null;
80027
80029
  const B = h.current;
80028
80030
  if (B >= l.length || l[B].type !== "ExecuteContent") {
80029
- h.current++, N();
80031
+ h.current++, M();
80030
80032
  return;
80031
80033
  }
80032
80034
  const H = l[B], $ = T(H);
@@ -80035,39 +80037,39 @@ function Vme({
80035
80037
  index: h.current,
80036
80038
  trialNumber: b.current - 1,
80037
80039
  start: c.current,
80038
- end: L,
80039
- duration: L - c.current,
80040
+ end: _,
80041
+ duration: _ - c.current,
80040
80042
  key: Q ? Q.key : null,
80041
80043
  reactionTime: Q ? Q.reactionTime : null
80042
80044
  };
80043
80045
  j = Sd(j, $, v.current, m.current), v.current.push(j);
80044
80046
  }
80045
- h.current++, f.current = null, N();
80046
- }, [l, T, N]);
80047
+ h.current++, f.current = null, M();
80048
+ }, [l, T, M]);
80047
80049
  const q = Xe(
80048
80050
  (Q) => {
80049
- const L = Qs(), B = h.current;
80051
+ const _ = Qs(), B = h.current;
80050
80052
  if (B >= l.length || !d.current) return;
80051
80053
  const H = l[B];
80052
80054
  if (H.type !== "ExecuteContent") return;
80053
80055
  const $ = T(H);
80054
80056
  if (!$) return;
80055
- const j = $.responseTimeLimit ?? 1 / 0, G = L - c.current < j, ne = $.allowedKeys ?? !1;
80057
+ const j = $.responseTimeLimit ?? 1 / 0, G = _ - c.current < j, ne = $.allowedKeys ?? !1;
80056
80058
  if ((ne === !0 || Array.isArray(ne) && ne.includes(Q.key)) && G) {
80057
80059
  const oe = $.endSlideOnResponse ?? !0, re = $.hideOnResponse ?? !1, ue = $.ignoreData ?? !1;
80058
80060
  (!f.current || !oe) && (!f.current && !ue && (f.current = {
80059
80061
  key: Q.key,
80060
- time: L,
80061
- reactionTime: L - c.current
80062
- }), re && A(), oe && V());
80062
+ time: _,
80063
+ reactionTime: _ - c.current
80064
+ }), re && L(), oe && V());
80063
80065
  }
80064
80066
  },
80065
- [l, T, V, A]
80067
+ [l, T, V, L]
80066
80068
  );
80067
80069
  return lt(() => {
80068
80070
  const Q = y.current;
80069
80071
  if (!Q) return;
80070
- const L = Ul() ? window.screen.width : window.innerWidth, B = Ul() ? window.screen.height : window.innerHeight;
80072
+ const _ = Ul() ? window.screen.width : window.innerWidth, B = Ul() ? window.screen.height : window.innerHeight;
80071
80073
  let H, $;
80072
80074
  const j = (te, we) => {
80073
80075
  if (typeof te == "number")
@@ -80079,7 +80081,7 @@ function Vme({
80079
80081
  }
80080
80082
  return null;
80081
80083
  };
80082
- let G = j(s, L), ne = j(r, B);
80084
+ let G = j(s, _), ne = j(r, B);
80083
80085
  const Y = typeof s == "string" && /^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(s), oe = typeof r == "string" && /^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(r);
80084
80086
  if (G !== null && ne !== null)
80085
80087
  H = G, $ = ne;
@@ -80088,12 +80090,12 @@ function Vme({
80088
80090
  else if (ne !== null && G === null && !Y)
80089
80091
  $ = ne, H = ne;
80090
80092
  else if (G === null && ne === null && !Y && !oe) {
80091
- const te = Math.min(L, B);
80093
+ const te = Math.min(_, B);
80092
80094
  H = te, $ = te;
80093
80095
  } else {
80094
80096
  let te = G, we = ne;
80095
- if (oe && te === null && (te = we ?? B), Y && we === null && (we = te ?? L), te === null && we === null) {
80096
- const et = Math.min(L, B);
80097
+ if (oe && te === null && (te = we ?? B), Y && we === null && (we = te ?? _), te === null && we === null) {
80098
+ const et = Math.min(_, B);
80097
80099
  te = et, we = et;
80098
80100
  } else te === null ? te = we : we === null && (we = te);
80099
80101
  H = te, $ = we ?? 0;
@@ -80121,12 +80123,12 @@ function Vme({
80121
80123
  const we = r.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);
80122
80124
  we ? $ = H / parseFloat(we[1]) * parseFloat(we[2]) : $ = H;
80123
80125
  } else {
80124
- const we = Math.min(L, B);
80126
+ const we = Math.min(_, B);
80125
80127
  H = we, $ = we;
80126
80128
  }
80127
80129
  } catch (te) {
80128
80130
  console.error("Error parsing ratios:", te);
80129
- const we = Math.min(L, B);
80131
+ const we = Math.min(_, B);
80130
80132
  H = we, $ = we;
80131
80133
  }
80132
80134
  }
@@ -80139,14 +80141,14 @@ function Vme({
80139
80141
  } catch (te) {
80140
80142
  console.error("Error during canvas initialization:", te);
80141
80143
  }
80142
- return window.addEventListener("keydown", q), N(), () => {
80144
+ return window.addEventListener("keydown", q), M(), () => {
80143
80145
  window.removeEventListener("keydown", q), g.current && cancelAnimationFrame(g.current);
80144
80146
  };
80145
- }, [t, s, r, q, N]), /* @__PURE__ */ I.jsx(
80147
+ }, [t, s, r, q, M]), /* @__PURE__ */ R.jsx(
80146
80148
  "div",
80147
80149
  {
80148
80150
  style: { display: "flex", justifyContent: "center", alignItems: "center", height: "100vh" },
80149
- children: /* @__PURE__ */ I.jsx("canvas", { ref: y })
80151
+ children: /* @__PURE__ */ R.jsx("canvas", { ref: y })
80150
80152
  }
80151
80153
  );
80152
80154
  }
@@ -80213,7 +80215,7 @@ vi("CheckDevice", (i, e, t, s) => {
80213
80215
  }, {});
80214
80216
  function Sme({
80215
80217
  check: i,
80216
- content: e = /* @__PURE__ */ I.jsx("div", { children: "Your device doesn't meet the requirements for this experiment." }),
80218
+ content: e = /* @__PURE__ */ R.jsx("div", { children: "Your device doesn't meet the requirements for this experiment." }),
80217
80219
  data: t,
80218
80220
  store: s,
80219
80221
  updateStore: r,
@@ -80228,24 +80230,24 @@ function Sme({
80228
80230
  let v = "Unknown", m = "Unknown";
80229
80231
  if (y.indexOf("Chrome") > -1) {
80230
80232
  v = "Chrome";
80231
- const _ = y.match(/Chrome\/(\d+\.\d+)/);
80232
- m = _ ? _[1] : "Unknown";
80233
+ const I = y.match(/Chrome\/(\d+\.\d+)/);
80234
+ m = I ? I[1] : "Unknown";
80233
80235
  } else if (y.indexOf("Firefox") > -1) {
80234
80236
  v = "Firefox";
80235
- const _ = y.match(/Firefox\/(\d+\.\d+)/);
80236
- m = _ ? _[1] : "Unknown";
80237
+ const I = y.match(/Firefox\/(\d+\.\d+)/);
80238
+ m = I ? I[1] : "Unknown";
80237
80239
  } else if (y.indexOf("Safari") > -1) {
80238
80240
  v = "Safari";
80239
- const _ = y.match(/Version\/(\d+\.\d+)/);
80240
- m = _ ? _[1] : "Unknown";
80241
+ const I = y.match(/Version\/(\d+\.\d+)/);
80242
+ m = I ? I[1] : "Unknown";
80241
80243
  } else if (y.indexOf("Edge") > -1) {
80242
80244
  v = "Edge";
80243
- const _ = y.match(/Edge\/(\d+\.\d+)/);
80244
- m = _ ? _[1] : "Unknown";
80245
+ const I = y.match(/Edge\/(\d+\.\d+)/);
80246
+ m = I ? I[1] : "Unknown";
80245
80247
  } else if (y.indexOf("MSIE") > -1 || y.indexOf("Trident/") > -1) {
80246
80248
  v = "Internet Explorer";
80247
- const _ = y.match(/(?:MSIE |rv:)(\d+\.\d+)/);
80248
- m = _ ? _[1] : "Unknown";
80249
+ const I = y.match(/(?:MSIE |rv:)(\d+\.\d+)/);
80250
+ m = I ? I[1] : "Unknown";
80249
80251
  }
80250
80252
  const g = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
80251
80253
  y
@@ -80253,12 +80255,12 @@ function Sme({
80253
80255
  let b = "Unknown";
80254
80256
  /Windows/.test(y) ? b = "Windows" : /Macintosh|Mac OS X/.test(y) ? b = "MacOS" : /Linux/.test(y) ? b = "Linux" : /Android/.test(y) ? b = "Android" : /iOS|iPhone|iPad|iPod/.test(y) && (b = "iOS");
80255
80257
  const x = !!(window.AudioContext || window.webkitAudioContext || window.mozAudioContext || window.oAudioContext || window.msAudioContext), T = !!(document.exitFullscreen || document.webkitExitFullscreen || document.mozCancelFullScreen || document.msExitFullscreen || document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled || document.msFullscreenEnabled);
80256
- let R = !1, A = !1;
80258
+ let A = !1, L = !1;
80257
80259
  try {
80258
- const _ = await navigator.mediaDevices.enumerateDevices();
80259
- R = _.some((N) => N.kind === "videoinput"), A = _.some((N) => N.kind === "audioinput");
80260
- } catch (_) {
80261
- console.error("Error checking media devices:", _);
80260
+ const I = await navigator.mediaDevices.enumerateDevices();
80261
+ A = I.some((M) => M.kind === "videoinput"), L = I.some((M) => M.kind === "audioinput");
80262
+ } catch (I) {
80263
+ console.error("Error checking media devices:", I);
80262
80264
  }
80263
80265
  const D = {
80264
80266
  windowWidth: h,
@@ -80271,12 +80273,12 @@ function Sme({
80271
80273
  operatingSystem: b,
80272
80274
  hasWebAudio: x,
80273
80275
  hasFullscreen: T,
80274
- hasWebcam: R,
80275
- hasMicrophone: A
80276
+ hasWebcam: A,
80277
+ hasMicrophone: L
80276
80278
  };
80277
80279
  r({ _reactiveDeviceInfo: D }), (i ? i(D, t, s) : !0) && !l.current ? (l.current = !0, n(D)) : o(!0);
80278
80280
  })();
80279
- }, [i, t, r, n]), a ? /* @__PURE__ */ I.jsx("div", { className: "max-w-prose mx-auto mt-20 mb-20 px-4", children: /* @__PURE__ */ I.jsx("article", { className: "prose prose-2xl prose-slate text-xl prose-a:text-blue-600 prose-a:underline prose-h1:text-4xl prose-h1:mb-10 prose-h1:font-bold prose-p:mb-4 prose-strong:font-bold text-black leading-relaxed", children: e }) }) : null;
80281
+ }, [i, t, r, n]), a ? /* @__PURE__ */ R.jsx("div", { className: "max-w-prose mx-auto mt-20 mb-20 px-4", children: /* @__PURE__ */ R.jsx("article", { className: "prose prose-2xl prose-slate text-xl prose-a:text-blue-600 prose-a:underline prose-h1:text-4xl prose-h1:mb-10 prose-h1:font-bold prose-p:mb-4 prose-strong:font-bold text-black leading-relaxed", children: e }) }) : null;
80280
80282
  }
80281
80283
  Ai("StoreUI", "storeui");
80282
80284
  function u7(i, e) {
@@ -80353,29 +80355,29 @@ function Tme({
80353
80355
  n.forEach((x) => {
80354
80356
  const T = o[x.storeKey];
80355
80357
  if (x.type === "integer" || x.type === "float" ? T == null || T === "" ? b[x.storeKey] = "This field is required" : x.min !== void 0 && T < x.min ? b[x.storeKey] = `Value must be at least ${x.min}` : x.max !== void 0 && T > x.max && (b[x.storeKey] = `Value must be at most ${x.max}`) : x.type === "string" && (x.minLength !== void 0 && T.length < x.minLength ? b[x.storeKey] = `Must be at least ${x.minLength} characters` : x.maxLength !== void 0 && T.length > x.maxLength && (b[x.storeKey] = `Must be at most ${x.maxLength} characters`)), x.validate && !b[x.storeKey]) {
80356
- const R = x.validate(T);
80357
- R !== !0 && R !== "" && (b[x.storeKey] = typeof R == "string" ? R : "Invalid value");
80358
+ const A = x.validate(T);
80359
+ A !== !0 && A !== "" && (b[x.storeKey] = typeof A == "string" ? A : "Invalid value");
80358
80360
  }
80359
80361
  }), h(b), Object.keys(b).length === 0 && (e(o), i(o));
80360
80362
  }, m = Object.keys(u).length > 0;
80361
- return /* @__PURE__ */ I.jsxs("div", { className: "max-w-prose mx-auto mt-20 mb-20 px-4", children: [
80362
- /* @__PURE__ */ I.jsx("h1", { className: "text-4xl font-bold mb-6", children: s }),
80363
- r && /* @__PURE__ */ I.jsx("article", { className: "prose prose-lg mb-10", children: r }),
80364
- /* @__PURE__ */ I.jsx("div", { className: "mt-12 space-y-12", children: n.map((g) => /* @__PURE__ */ I.jsxs("div", { className: "space-y-2", children: [
80365
- /* @__PURE__ */ I.jsxs("label", { className: "block text-xl font-medium text-gray-900", children: [
80363
+ return /* @__PURE__ */ R.jsxs("div", { className: "max-w-prose mx-auto mt-20 mb-20 px-4", children: [
80364
+ /* @__PURE__ */ R.jsx("h1", { className: "text-4xl font-bold mb-6", children: s }),
80365
+ r && /* @__PURE__ */ R.jsx("article", { className: "prose prose-lg mb-10", children: r }),
80366
+ /* @__PURE__ */ R.jsx("div", { className: "mt-12 space-y-12", children: n.map((g) => /* @__PURE__ */ R.jsxs("div", { className: "space-y-2", children: [
80367
+ /* @__PURE__ */ R.jsxs("label", { className: "block text-xl font-medium text-gray-900", children: [
80366
80368
  g.label,
80367
80369
  g.type === "integer" && g.min !== void 0 && g.max !== void 0 && ` (${g.min}-${g.max})`,
80368
80370
  g.type === "float" && g.min !== void 0 && g.max !== void 0 && ` (${g.min}-${g.max})`
80369
80371
  ] }),
80370
- g.prompt && /* @__PURE__ */ I.jsx("p", { className: "mb-4 text-base text-gray-700 mb-2", children: g.prompt }),
80371
- g.type === "boolean" && /* @__PURE__ */ I.jsxs("div", { className: "flex items-center", children: [
80372
- /* @__PURE__ */ I.jsxs(
80372
+ g.prompt && /* @__PURE__ */ R.jsx("p", { className: "mb-4 text-base text-gray-700 mb-2", children: g.prompt }),
80373
+ g.type === "boolean" && /* @__PURE__ */ R.jsxs("div", { className: "flex items-center", children: [
80374
+ /* @__PURE__ */ R.jsxs(
80373
80375
  "div",
80374
80376
  {
80375
80377
  className: `relative cursor-pointer w-10 h-10 flex items-center justify-center border-2 border-black rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none ${o[g.storeKey] ? "bg-blue-600 text-white" : "bg-white"}`,
80376
80378
  onClick: () => y(g.storeKey, !o[g.storeKey]),
80377
80379
  children: [
80378
- /* @__PURE__ */ I.jsx(
80380
+ /* @__PURE__ */ R.jsx(
80379
80381
  "input",
80380
80382
  {
80381
80383
  type: "checkbox",
@@ -80384,14 +80386,14 @@ function Tme({
80384
80386
  className: "absolute opacity-0 h-0 w-0"
80385
80387
  }
80386
80388
  ),
80387
- o[g.storeKey] && /* @__PURE__ */ I.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: "h-6 w-6", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ I.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M5 13l4 4L19 7" }) })
80389
+ o[g.storeKey] && /* @__PURE__ */ R.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: "h-6 w-6", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ R.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M5 13l4 4L19 7" }) })
80388
80390
  ]
80389
80391
  }
80390
80392
  ),
80391
- /* @__PURE__ */ I.jsx("span", { className: "ml-3 text-lg", children: "Enabled" })
80393
+ /* @__PURE__ */ R.jsx("span", { className: "ml-3 text-lg", children: "Enabled" })
80392
80394
  ] }),
80393
- (g.type === "integer" || g.type === "float") && /* @__PURE__ */ I.jsxs("div", { className: "flex items-center space-x-4", children: [
80394
- g.min !== void 0 && g.max !== void 0 && /* @__PURE__ */ I.jsx(
80395
+ (g.type === "integer" || g.type === "float") && /* @__PURE__ */ R.jsxs("div", { className: "flex items-center space-x-4", children: [
80396
+ g.min !== void 0 && g.max !== void 0 && /* @__PURE__ */ R.jsx(
80395
80397
  "button",
80396
80398
  {
80397
80399
  onClick: () => y(
@@ -80405,7 +80407,7 @@ function Tme({
80405
80407
  children: "-"
80406
80408
  }
80407
80409
  ),
80408
- /* @__PURE__ */ I.jsx(
80410
+ /* @__PURE__ */ R.jsx(
80409
80411
  "input",
80410
80412
  {
80411
80413
  type: "text",
@@ -80421,7 +80423,7 @@ function Tme({
80421
80423
  className: "w-24 px-4 py-2 text-center border-2 border-black rounded-xl text-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
80422
80424
  }
80423
80425
  ),
80424
- g.min !== void 0 && g.max !== void 0 && /* @__PURE__ */ I.jsx(
80426
+ g.min !== void 0 && g.max !== void 0 && /* @__PURE__ */ R.jsx(
80425
80427
  "button",
80426
80428
  {
80427
80429
  onClick: () => y(
@@ -80436,7 +80438,7 @@ function Tme({
80436
80438
  }
80437
80439
  )
80438
80440
  ] }),
80439
- g.type === "string" && /* @__PURE__ */ I.jsx(
80441
+ g.type === "string" && /* @__PURE__ */ R.jsx(
80440
80442
  "input",
80441
80443
  {
80442
80444
  type: "text",
@@ -80445,10 +80447,10 @@ function Tme({
80445
80447
  className: "w-full px-4 py-2 border-2 border-black rounded-xl text-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
80446
80448
  }
80447
80449
  ),
80448
- u[g.storeKey] && c[g.storeKey] && /* @__PURE__ */ I.jsx("div", { className: "text-red-500 text-sm mt-1", children: u[g.storeKey] }),
80449
- g.component && /* @__PURE__ */ I.jsx("div", { className: "mt-4", children: Ze.createElement(g.component, { value: o[g.storeKey] }) })
80450
+ u[g.storeKey] && c[g.storeKey] && /* @__PURE__ */ R.jsx("div", { className: "text-red-500 text-sm mt-1", children: u[g.storeKey] }),
80451
+ g.component && /* @__PURE__ */ R.jsx("div", { className: "mt-4", children: Ze.createElement(g.component, { value: o[g.storeKey] }) })
80450
80452
  ] }, g.storeKey)) }),
80451
- /* @__PURE__ */ I.jsx("div", { className: "mt-12 flex justify-center", children: /* @__PURE__ */ I.jsx(
80453
+ /* @__PURE__ */ R.jsx("div", { className: "mt-12 flex justify-center", children: /* @__PURE__ */ R.jsx(
80452
80454
  "button",
80453
80455
  {
80454
80456
  onClick: v,
@@ -80639,8 +80641,8 @@ function S7(i, e) {
80639
80641
  t = !0, s = !0, r.isProcessing || i(v);
80640
80642
  };
80641
80643
  return { schedule: $h.reduce((x, T) => {
80642
- const R = a[T];
80643
- return x[T] = (A, D = !1, V = !1) => (t || m(), R.schedule(A, D, V)), x;
80644
+ const A = a[T];
80645
+ return x[T] = (L, D = !1, V = !1) => (t || m(), A.schedule(L, D, V)), x;
80644
80646
  }, {}), cancel: (x) => {
80645
80647
  for (let T = 0; T < $h.length; T++)
80646
80648
  a[$h[T]].cancel(x);
@@ -81003,53 +81005,53 @@ function Uc(i = Jt.visualDuration, e = Jt.bounce) {
81003
81005
  velocity: -/* @__PURE__ */ Hi(t.velocity || 0)
81004
81006
  }), y = d || 0, v = u / (2 * Math.sqrt(l * h)), m = a - n, g = /* @__PURE__ */ Hi(Math.sqrt(l / h)), b = Math.abs(m) < 5;
81005
81007
  s || (s = b ? Jt.restSpeed.granular : Jt.restSpeed.default), r || (r = b ? Jt.restDelta.granular : Jt.restDelta.default);
81006
- let x, T, R, A, D, V;
81008
+ let x, T, A, L, D, V;
81007
81009
  if (v < 1)
81008
- R = ng(g, v), A = (y + v * g * m) / R, x = (N) => {
81009
- const q = Math.exp(-v * g * N);
81010
- return a - q * (A * Math.sin(R * N) + m * Math.cos(R * N));
81011
- }, D = v * g * A + m * R, V = v * g * m - A * R, T = (N) => Math.exp(-v * g * N) * (D * Math.sin(R * N) + V * Math.cos(R * N));
81010
+ A = ng(g, v), L = (y + v * g * m) / A, x = (M) => {
81011
+ const q = Math.exp(-v * g * M);
81012
+ return a - q * (L * Math.sin(A * M) + m * Math.cos(A * M));
81013
+ }, D = v * g * L + m * A, V = v * g * m - L * A, T = (M) => Math.exp(-v * g * M) * (D * Math.sin(A * M) + V * Math.cos(A * M));
81012
81014
  else if (v === 1) {
81013
81015
  x = (q) => a - Math.exp(-g * q) * (m + (y + g * m) * q);
81014
- const N = y + g * m;
81015
- T = (q) => Math.exp(-g * q) * (g * N * q - y);
81016
+ const M = y + g * m;
81017
+ T = (q) => Math.exp(-g * q) * (g * M * q - y);
81016
81018
  } else {
81017
- const N = g * Math.sqrt(v * v - 1);
81019
+ const M = g * Math.sqrt(v * v - 1);
81018
81020
  x = (B) => {
81019
- const H = Math.exp(-v * g * B), $ = Math.min(N * B, 300);
81020
- return a - H * ((y + v * g * m) * Math.sinh($) + N * m * Math.cosh($)) / N;
81021
+ const H = Math.exp(-v * g * B), $ = Math.min(M * B, 300);
81022
+ return a - H * ((y + v * g * m) * Math.sinh($) + M * m * Math.cosh($)) / M;
81021
81023
  };
81022
- const q = (y + v * g * m) / N, Q = v * g * q - m * N, L = v * g * m - q * N;
81024
+ const q = (y + v * g * m) / M, Q = v * g * q - m * M, _ = v * g * m - q * M;
81023
81025
  T = (B) => {
81024
- const H = Math.exp(-v * g * B), $ = Math.min(N * B, 300);
81025
- return H * (Q * Math.sinh($) + L * Math.cosh($));
81026
+ const H = Math.exp(-v * g * B), $ = Math.min(M * B, 300);
81027
+ return H * (Q * Math.sinh($) + _ * Math.cosh($));
81026
81028
  };
81027
81029
  }
81028
- const _ = {
81030
+ const I = {
81029
81031
  calculatedDuration: f && c || null,
81030
- velocity: (N) => /* @__PURE__ */ mi(T(N)),
81031
- next: (N) => {
81032
+ velocity: (M) => /* @__PURE__ */ mi(T(M)),
81033
+ next: (M) => {
81032
81034
  if (!f && v < 1) {
81033
- const Q = Math.exp(-v * g * N), L = Math.sin(R * N), B = Math.cos(R * N), H = a - Q * (A * L + m * B), $ = /* @__PURE__ */ mi(Q * (D * L + V * B));
81035
+ const Q = Math.exp(-v * g * M), _ = Math.sin(A * M), B = Math.cos(A * M), H = a - Q * (L * _ + m * B), $ = /* @__PURE__ */ mi(Q * (D * _ + V * B));
81034
81036
  return o.done = Math.abs($) <= s && Math.abs(a - H) <= r, o.value = o.done ? a : H, o;
81035
81037
  }
81036
- const q = x(N);
81038
+ const q = x(M);
81037
81039
  if (f)
81038
- o.done = N >= c;
81040
+ o.done = M >= c;
81039
81041
  else {
81040
- const Q = /* @__PURE__ */ mi(T(N));
81042
+ const Q = /* @__PURE__ */ mi(T(M));
81041
81043
  o.done = Math.abs(Q) <= s && Math.abs(a - q) <= r;
81042
81044
  }
81043
81045
  return o.value = o.done ? a : q, o;
81044
81046
  },
81045
81047
  toString: () => {
81046
- const N = Math.min(C0(_), Qc), q = k7((Q) => _.next(N * Q).value, N, 30);
81047
- return N + "ms " + q;
81048
+ const M = Math.min(C0(I), Qc), q = k7((Q) => I.next(M * Q).value, M, 30);
81049
+ return M + "ms " + q;
81048
81050
  },
81049
81051
  toTransition: () => {
81050
81052
  }
81051
81053
  };
81052
- return _;
81054
+ return I;
81053
81055
  }
81054
81056
  Uc.applyToOptions = (i) => {
81055
81057
  const e = dge(i, 100, Uc);
@@ -81069,12 +81071,12 @@ function ag({ keyframes: i, velocity: e = 0, power: t = 0.8, timeConstant: s = 3
81069
81071
  const m = c + v, g = a === void 0 ? m : a(m);
81070
81072
  g !== m && (v = g - c);
81071
81073
  const b = (V) => -v * Math.exp(-V / s), x = (V) => g + b(V), T = (V) => {
81072
- const _ = b(V), N = x(V);
81073
- d.done = Math.abs(_) <= u, d.value = d.done ? g : N;
81074
+ const I = b(V), M = x(V);
81075
+ d.done = Math.abs(I) <= u, d.value = d.done ? g : M;
81074
81076
  };
81075
- let R, A;
81077
+ let A, L;
81076
81078
  const D = (V) => {
81077
- f(d.value) && (R = V, A = Uc({
81079
+ f(d.value) && (A = V, L = Uc({
81078
81080
  keyframes: [d.value, y(d.value)],
81079
81081
  velocity: O7(x, V, d.value),
81080
81082
  // TODO: This should be passing * 1000
@@ -81087,8 +81089,8 @@ function ag({ keyframes: i, velocity: e = 0, power: t = 0.8, timeConstant: s = 3
81087
81089
  return D(0), {
81088
81090
  calculatedDuration: null,
81089
81091
  next: (V) => {
81090
- let _ = !1;
81091
- return !A && R === void 0 && (_ = !0, T(V), D(V)), R !== void 0 && V >= R ? A.next(V - R) : (!_ && T(V), d);
81092
+ let I = !1;
81093
+ return !L && A === void 0 && (I = !0, T(V), D(V)), A !== void 0 && V >= A ? L.next(V - A) : (!I && T(V), d);
81092
81094
  }
81093
81095
  };
81094
81096
  }
@@ -81240,15 +81242,15 @@ class zc extends b0 {
81240
81242
  let x = this.currentTime, T = s;
81241
81243
  if (c) {
81242
81244
  const V = Math.min(this.currentTime, r) / o;
81243
- let _ = Math.floor(V), N = V % 1;
81244
- !N && V >= 1 && (N = 1), N === 1 && _--, _ = Math.min(_, c + 1), !!(_ % 2) && (d === "reverse" ? (N = 1 - N, f && (N -= f / o)) : d === "mirror" && (T = a)), x = qr(0, 1, N) * o;
81245
+ let I = Math.floor(V), M = V % 1;
81246
+ !M && V >= 1 && (M = 1), M === 1 && I--, I = Math.min(I, c + 1), !!(I % 2) && (d === "reverse" ? (M = 1 - M, f && (M -= f / o)) : d === "mirror" && (T = a)), x = qr(0, 1, M) * o;
81245
81247
  }
81246
- let R;
81247
- b ? (this.delayState.value = h[0], R = this.delayState) : R = T.next(x), n && !b && (R.value = n(R.value));
81248
- let { done: A } = R;
81249
- !b && l !== null && (A = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
81250
- const D = this.holdTime === null && (this.state === "finished" || this.state === "running" && A);
81251
- return D && y !== ag && (R.value = ip(h, this.options, m, this.speed)), v && v(R.value), D && this.finish(), R;
81248
+ let A;
81249
+ b ? (this.delayState.value = h[0], A = this.delayState) : A = T.next(x), n && !b && (A.value = n(A.value));
81250
+ let { done: L } = A;
81251
+ !b && l !== null && (L = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
81252
+ const D = this.holdTime === null && (this.state === "finished" || this.state === "running" && L);
81253
+ return D && y !== ag && (A.value = ip(h, this.options, m, this.speed)), v && v(A.value), D && this.finish(), A;
81252
81254
  }
81253
81255
  /**
81254
81256
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -82273,8 +82275,8 @@ function X7(i, e, { delay: t = 0, transitionOverride: s, type: r } = {}) {
82273
82275
  if (window.MotionHandoffAnimation) {
82274
82276
  const T = Y7(i);
82275
82277
  if (T) {
82276
- const R = window.MotionHandoffAnimation(T, d, Rt);
82277
- R !== null && (v.startTime = R, g = !0);
82278
+ const A = window.MotionHandoffAnimation(T, d, Rt);
82279
+ A !== null && (v.startTime = A, g = !0);
82278
82280
  }
82279
82281
  }
82280
82282
  gg(i, d);
@@ -83445,15 +83447,15 @@ function V0e(i) {
83445
83447
  const { props: h } = i, c = V4(i.parent) || {}, d = [], f = /* @__PURE__ */ new Set();
83446
83448
  let y = {}, v = 1 / 0;
83447
83449
  for (let g = 0; g < x0e; g++) {
83448
- const b = w0e[g], x = t[b], T = h[b] !== void 0 ? h[b] : c[b], R = ou(T), A = b === u ? x.isActive : null;
83449
- A === !1 && (v = g);
83450
- let D = T === c[b] && T !== h[b] && R;
83450
+ const b = w0e[g], x = t[b], T = h[b] !== void 0 ? h[b] : c[b], A = ou(T), L = b === u ? x.isActive : null;
83451
+ L === !1 && (v = g);
83452
+ let D = T === c[b] && T !== h[b] && A;
83451
83453
  if (D && (s || r) && i.manuallyAnimateOnMount && (D = !1), x.protectedKeys = { ...y }, // If it isn't active and hasn't *just* been set as inactive
83452
- !x.isActive && A === null || // If we didn't and don't have any defined prop for this animation type
83454
+ !x.isActive && L === null || // If we didn't and don't have any defined prop for this animation type
83453
83455
  !T && !x.prevProp || // Or if the prop doesn't define an animation
83454
83456
  rp(T) || typeof T == "boolean")
83455
83457
  continue;
83456
- if (b === "exit" && x.isActive && A !== !0) {
83458
+ if (b === "exit" && x.isActive && L !== !0) {
83457
83459
  x.prevResolvedValues && (y = {
83458
83460
  ...y,
83459
83461
  ...x.prevResolvedValues
@@ -83461,30 +83463,30 @@ function V0e(i) {
83461
83463
  continue;
83462
83464
  }
83463
83465
  const V = S0e(x.prevProp, T);
83464
- let _ = V || // If we're making this variant active, we want to always make it active
83465
- b === u && x.isActive && !D && R || // If we removed a higher-priority variant (i is in reverse order)
83466
- g > v && R, N = !1;
83466
+ let I = V || // If we're making this variant active, we want to always make it active
83467
+ b === u && x.isActive && !D && A || // If we removed a higher-priority variant (i is in reverse order)
83468
+ g > v && A, M = !1;
83467
83469
  const q = Array.isArray(T) ? T : [T];
83468
83470
  let Q = q.reduce(n(b), {});
83469
- A === !1 && (Q = {});
83470
- const { prevResolvedValues: L = {} } = x, B = {
83471
- ...L,
83471
+ L === !1 && (Q = {});
83472
+ const { prevResolvedValues: _ = {} } = x, B = {
83473
+ ..._,
83472
83474
  ...Q
83473
83475
  }, H = (G) => {
83474
- _ = !0, f.has(G) && (N = !0, f.delete(G)), x.needsAnimating[G] = !0;
83476
+ I = !0, f.has(G) && (M = !0, f.delete(G)), x.needsAnimating[G] = !0;
83475
83477
  const ne = i.getValue(G);
83476
83478
  ne && (ne.liveStyle = !1);
83477
83479
  };
83478
83480
  for (const G in B) {
83479
- const ne = Q[G], Y = L[G];
83481
+ const ne = Q[G], Y = _[G];
83480
83482
  if (y.hasOwnProperty(G))
83481
83483
  continue;
83482
83484
  let oe = !1;
83483
83485
  mg(ne) && mg(Y) ? oe = !S4(ne, Y) : oe = ne !== Y, oe ? ne != null ? H(G) : f.add(G) : ne !== void 0 && f.has(G) ? H(G) : x.protectedKeys[G] = !0;
83484
83486
  }
83485
- x.prevProp = T, x.prevResolvedValues = Q, x.isActive && (y = { ...y, ...Q }), (s || r) && i.blockInitialAnimation && (_ = !1);
83487
+ x.prevProp = T, x.prevResolvedValues = Q, x.isActive && (y = { ...y, ...Q }), (s || r) && i.blockInitialAnimation && (I = !1);
83486
83488
  const $ = D && V;
83487
- _ && (!$ || N) && d.push(...q.map((G) => {
83489
+ I && (!$ || M) && d.push(...q.map((G) => {
83488
83490
  const ne = { type: b };
83489
83491
  if (typeof G == "string" && (s || r) && !$ && i.manuallyAnimateOnMount && i.parent) {
83490
83492
  const { parent: Y } = i, oe = Oa(Y, G);
@@ -84097,8 +84099,8 @@ function D4({ attachResizeListener: i, defaultParent: e, measureScroll: t, check
84097
84099
  this.animationProgress = 0;
84098
84100
  let x;
84099
84101
  this.mixTargetDelta = (T) => {
84100
- const R = T / 1e3;
84101
- nx(c.x, a.x, R), nx(c.y, a.y, R), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Gc(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), a1e(this.relativeTarget, this.relativeTargetOrigin, d, R), x && O0e(this.relativeTarget, x) && (this.isProjectionDirty = !1), x || (x = xs()), tr(x, this.relativeTarget)), v && (this.animationValues = h, F0e(h, u, this.latestValues, R, b, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = R;
84102
+ const A = T / 1e3;
84103
+ nx(c.x, a.x, A), nx(c.y, a.y, A), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Gc(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), a1e(this.relativeTarget, this.relativeTargetOrigin, d, A), x && O0e(this.relativeTarget, x) && (this.isProjectionDirty = !1), x || (x = xs()), tr(x, this.relativeTarget)), v && (this.animationValues = h, F0e(h, u, this.latestValues, A, b, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = A;
84102
84104
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
84103
84105
  }
84104
84106
  startAnimation(a) {
@@ -84469,10 +84471,10 @@ function g1e({ children: i, isPresent: e, anchorX: t, anchorY: s, root: r, pop:
84469
84471
  return;
84470
84472
  const x = t === "left" ? `left: ${m}` : `right: ${g}`, T = s === "bottom" ? `bottom: ${b}` : `top: ${v}`;
84471
84473
  o.current.dataset.motionPopId = a;
84472
- const R = document.createElement("style");
84473
- u && (R.nonce = u);
84474
- const A = r ?? document.head;
84475
- return A.appendChild(R), R.sheet && R.sheet.insertRule(`
84474
+ const A = document.createElement("style");
84475
+ u && (A.nonce = u);
84476
+ const L = r ?? document.head;
84477
+ return L.appendChild(A), A.sheet && A.sheet.insertRule(`
84476
84478
  [data-motion-pop-id="${a}"] {
84477
84479
  position: absolute !important;
84478
84480
  width: ${f}px !important;
@@ -84482,9 +84484,9 @@ function g1e({ children: i, isPresent: e, anchorX: t, anchorY: s, root: r, pop:
84482
84484
  }
84483
84485
  `), () => {
84484
84486
  var D;
84485
- (D = o.current) == null || D.removeAttribute("data-motion-pop-id"), A.contains(R) && A.removeChild(R);
84487
+ (D = o.current) == null || D.removeAttribute("data-motion-pop-id"), L.contains(A) && L.removeChild(A);
84486
84488
  };
84487
- }, [e]), I.jsx(m1e, { isPresent: e, childRef: o, sizeRef: l, pop: n, children: n === !1 ? i : p.cloneElement(i, { ref: c }) });
84489
+ }, [e]), R.jsx(m1e, { isPresent: e, childRef: o, sizeRef: l, pop: n, children: n === !1 ? i : p.cloneElement(i, { ref: c }) });
84488
84490
  }
84489
84491
  const v1e = ({ children: i, initial: e, isPresent: t, onExitComplete: s, custom: r, presenceAffectsLayout: n, mode: a, anchorX: o, anchorY: l, root: u }) => {
84490
84492
  const h = l0(y1e), c = Ig();
@@ -84506,7 +84508,7 @@ const v1e = ({ children: i, initial: e, isPresent: t, onExitComplete: s, custom:
84506
84508
  h.forEach((y, v) => h.set(v, !1));
84507
84509
  }, [t]), p.useEffect(() => {
84508
84510
  !t && !h.size && s && s();
84509
- }, [t]), i = I.jsx(g1e, { pop: a === "popLayout", isPresent: t, anchorX: o, anchorY: l, root: u, children: i }), I.jsx(sp.Provider, { value: f, children: i });
84511
+ }, [t]), i = R.jsx(g1e, { pop: a === "popLayout", isPresent: t, anchorX: o, anchorY: l, root: u, children: i }), R.jsx(sp.Provider, { value: f, children: i });
84510
84512
  };
84511
84513
  function y1e() {
84512
84514
  return /* @__PURE__ */ new Map();
@@ -84531,39 +84533,39 @@ function dx(i) {
84531
84533
  }), e;
84532
84534
  }
84533
84535
  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 }) => {
84534
- 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] = rt(d), [T, R] = rt(d);
84536
+ 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] = rt(d), [T, A] = rt(d);
84535
84537
  u0(() => {
84536
84538
  y.current = !1, v.current = d;
84537
84539
  for (let V = 0; V < T.length; V++) {
84538
- const _ = Qh(T[V]);
84539
- f.includes(_) ? (m.delete(_), g.current.delete(_)) : m.get(_) !== !0 && m.set(_, !1);
84540
+ const I = Qh(T[V]);
84541
+ f.includes(I) ? (m.delete(I), g.current.delete(I)) : m.get(I) !== !0 && m.set(I, !1);
84540
84542
  }
84541
84543
  }, [T, f.length, f.join("-")]);
84542
- const A = [];
84544
+ const L = [];
84543
84545
  if (d !== b) {
84544
84546
  let V = [...d];
84545
- for (let _ = 0; _ < T.length; _++) {
84546
- const N = T[_], q = Qh(N);
84547
- f.includes(q) || (V.splice(_, 0, N), A.push(N));
84547
+ for (let I = 0; I < T.length; I++) {
84548
+ const M = T[I], q = Qh(M);
84549
+ f.includes(q) || (V.splice(I, 0, M), L.push(M));
84548
84550
  }
84549
- return n === "wait" && A.length && (V = A), R(dx(V)), x(d), null;
84551
+ return n === "wait" && L.length && (V = L), A(dx(V)), x(d), null;
84550
84552
  }
84551
84553
  process.env.NODE_ENV !== "production" && n === "wait" && T.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
84552
84554
  const { forceRender: D } = fs(ru);
84553
- return I.jsx(I.Fragment, { children: T.map((V) => {
84554
- const _ = Qh(V), N = a && !h ? !1 : d === T || f.includes(_), q = () => {
84555
- if (g.current.has(_))
84555
+ return R.jsx(R.Fragment, { children: T.map((V) => {
84556
+ const I = Qh(V), M = a && !h ? !1 : d === T || f.includes(I), q = () => {
84557
+ if (g.current.has(I))
84556
84558
  return;
84557
- if (m.has(_))
84558
- g.current.add(_), m.set(_, !0);
84559
+ if (m.has(I))
84560
+ g.current.add(I), m.set(I, !0);
84559
84561
  else
84560
84562
  return;
84561
84563
  let Q = !0;
84562
- m.forEach((L) => {
84563
- L || (Q = !1);
84564
- }), Q && (D == null || D(), R(v.current), a && (c == null || c()), s && s());
84564
+ m.forEach((_) => {
84565
+ _ || (Q = !1);
84566
+ }), Q && (D == null || D(), A(v.current), a && (c == null || c()), s && s());
84565
84567
  };
84566
- return I.jsx(v1e, { isPresent: N, initial: !y.current || t ? void 0 : !1, custom: e, presenceAffectsLayout: r, mode: n, root: u, onExitComplete: N ? void 0 : q, anchorX: o, anchorY: l, children: V }, _);
84568
+ return R.jsx(v1e, { isPresent: M, initial: !y.current || t ? void 0 : !1, custom: e, presenceAffectsLayout: r, mode: n, root: u, onExitComplete: M ? void 0 : q, anchorX: o, anchorY: l, children: V }, I);
84567
84569
  }) });
84568
84570
  }, b1e = fn(null);
84569
84571
  function w1e() {
@@ -84585,7 +84587,7 @@ const N4 = (i) => i === !0, E1e = (i) => N4(i === !0) || i === "id", V1e = ({ ch
84585
84587
  group: N4(t) && s.group || hx()
84586
84588
  });
84587
84589
  const u = di(() => ({ ...o.current, forceRender: n }), [a]);
84588
- return I.jsx(ru.Provider, { value: u, children: i });
84590
+ return R.jsx(ru.Provider, { value: u, children: i });
84589
84591
  }, F4 = fn({ strict: !1 }), px = {
84590
84592
  animation: [
84591
84593
  "animate",
@@ -84888,8 +84890,8 @@ function U1e(i, e, t, s, r, n) {
84888
84890
  f.current = !0, y && (m.current = !0, window.MotionIsMounted = !0, y.updateFeatures(), y.scheduleRenderMicrotask(), b.current && y.animationState && y.animationState.animateChanges());
84889
84891
  }), lt(() => {
84890
84892
  y && (!b.current && y.animationState && y.animationState.animateChanges(), b.current && (queueMicrotask(() => {
84891
- var R;
84892
- (R = window.MotionHandoffMarkAsComplete) == null || R.call(window, g);
84893
+ var A;
84894
+ (A = window.MotionHandoffMarkAsComplete) == null || A.call(window, g);
84893
84895
  }), b.current = !1), y.enteringChildren = void 0);
84894
84896
  }), y;
84895
84897
  }
@@ -84934,7 +84936,7 @@ function Gf(i, { forwardMotionProps: e = !1, type: t } = {}, s, r) {
84934
84936
  const m = G1e(d);
84935
84937
  c = m.MeasureLayout, y.visualElement = U1e(i, v, d, r, m.ProjectionNode, n);
84936
84938
  }
84937
- return I.jsxs(ap.Provider, { value: y, children: [c && y.visualElement ? I.jsx(c, { visualElement: y.visualElement, ...d }) : null, N1e(i, u, Q1e(v, y.visualElement, h), v, f, e, n)] });
84939
+ return R.jsxs(ap.Provider, { value: y, children: [c && y.visualElement ? R.jsx(c, { visualElement: y.visualElement, ...d }) : null, N1e(i, u, Q1e(v, y.visualElement, h), v, f, e, n)] });
84938
84940
  }
84939
84941
  o.displayName = `motion.${typeof i == "string" ? i : `create(${i.displayName ?? i.name ?? ""})`}`;
84940
84942
  const l = $x(o);
@@ -85598,7 +85600,7 @@ class vye extends RP {
85598
85600
  }
85599
85601
  function K4(i) {
85600
85602
  const [e, t] = M4(), s = fs(ru);
85601
- return I.jsx(vye, { ...i, layoutGroup: s, switchLayoutGroup: fs(U4), isPresent: e, safeToRemove: t });
85603
+ return R.jsx(vye, { ...i, layoutGroup: s, switchLayoutGroup: fs(U4), isPresent: e, safeToRemove: t });
85602
85604
  }
85603
85605
  const yye = {
85604
85606
  pan: {
@@ -85790,55 +85792,56 @@ const Z4 = fn({
85790
85792
  fadeDuration: t = 0.3,
85791
85793
  finishText: s = "Start",
85792
85794
  containerClass: r,
85793
- nextKey: n = "ArrowRight",
85794
- backKey: a = "ArrowLeft",
85795
- theme: o = "light"
85795
+ animate: n = !1,
85796
+ nextKey: a = "ArrowRight",
85797
+ backKey: o = "ArrowLeft",
85798
+ theme: l = "light"
85796
85799
  }) => {
85797
- const [l, u] = rt(0), [h, c] = rt({}), d = fe(), f = fe({}), y = h[l] !== !1, v = fe(y), [m, g] = rt(!1);
85800
+ const [u, h] = rt(0), [c, d] = rt({}), f = fe(), y = fe({}), v = c[u] !== !1, m = fe(v), [g, b] = rt(!1);
85798
85801
  lt(() => {
85799
- if (y && !v.current) {
85800
- g(!0);
85801
- const V = setTimeout(() => g(!1), 300);
85802
- return () => clearTimeout(V);
85803
- }
85804
- v.current = y;
85805
- }, [y]);
85806
- const b = Xe(
85807
- (V) => {
85808
- c((_) => ({ ..._, [l]: V }));
85802
+ if (v && !m.current) {
85803
+ b(!0);
85804
+ const I = setTimeout(() => b(!1), 300);
85805
+ return () => clearTimeout(I);
85806
+ }
85807
+ m.current = v;
85808
+ }, [v]);
85809
+ const x = Xe(
85810
+ (I) => {
85811
+ d((M) => ({ ...M, [u]: I }));
85809
85812
  },
85810
- [l]
85811
- ), x = Xe(
85812
- (V) => {
85813
- f.current[l] = { ...f.current[l], ...V };
85813
+ [u]
85814
+ ), T = Xe(
85815
+ (I) => {
85816
+ y.current[u] = { ...y.current[u], ...I };
85814
85817
  },
85815
- [l]
85816
- ), T = Xe(() => {
85817
- l === e.length - 1 ? i({ slides: f.current }) : u((V) => V + 1);
85818
- }, [l, e.length, i]), R = Xe(() => {
85819
- y && T();
85820
- }, [y, T]), A = Xe(
85821
- (V = 0) => {
85822
- d.current && clearTimeout(d.current), d.current = setTimeout(() => T(), V);
85818
+ [u]
85819
+ ), A = Xe(() => {
85820
+ u === e.length - 1 ? i({ slides: y.current }) : h((I) => I + 1);
85821
+ }, [u, e.length, i]), L = Xe(() => {
85822
+ v && A();
85823
+ }, [v, A]), D = Xe(
85824
+ (I = 0) => {
85825
+ f.current && clearTimeout(f.current), f.current = setTimeout(() => A(), I);
85823
85826
  },
85824
- [T]
85827
+ [A]
85825
85828
  );
85826
85829
  lt(() => () => {
85827
- d.current && clearTimeout(d.current);
85830
+ f.current && clearTimeout(f.current);
85828
85831
  }, []);
85829
- const D = Xe(() => {
85830
- l > 0 && u((V) => V - 1);
85831
- }, [l]);
85832
+ const V = Xe(() => {
85833
+ u > 0 && h((I) => I - 1);
85834
+ }, [u]);
85832
85835
  return lt(() => {
85833
- if (n === !1 && a === !1) return;
85834
- const V = (_) => {
85835
- n && _.key === n && R(), a && _.key === a && D();
85836
+ if (a === !1 && o === !1) return;
85837
+ const I = (M) => {
85838
+ a && M.key === a && L(), o && M.key === o && V();
85836
85839
  };
85837
- return window.addEventListener("keydown", V), () => window.removeEventListener("keydown", V);
85838
- }, [n, a, R, D]), /* @__PURE__ */ I.jsx(V1e, { children: /* @__PURE__ */ I.jsxs(
85840
+ return window.addEventListener("keydown", I), () => window.removeEventListener("keydown", I);
85841
+ }, [a, o, L, V]), /* @__PURE__ */ R.jsx(V1e, { children: /* @__PURE__ */ R.jsxs(
85839
85842
  "div",
85840
85843
  {
85841
- className: r,
85844
+ className: `${r ?? ""} ${n ? "animate-slide-down opacity-0" : ""}`,
85842
85845
  style: {
85843
85846
  width: "100vw",
85844
85847
  height: "100vh",
@@ -85847,7 +85850,7 @@ const Z4 = fn({
85847
85850
  overflow: "hidden"
85848
85851
  },
85849
85852
  children: [
85850
- /* @__PURE__ */ I.jsx("div", { style: { flex: 1, position: "relative" }, children: /* @__PURE__ */ I.jsx(C1e, { mode: "popLayout", children: /* @__PURE__ */ I.jsx(
85853
+ /* @__PURE__ */ R.jsx("div", { style: { flex: 1, position: "relative" }, children: /* @__PURE__ */ R.jsx(C1e, { mode: "popLayout", children: /* @__PURE__ */ R.jsx(
85851
85854
  Tx.div,
85852
85855
  {
85853
85856
  initial: { opacity: 0 },
@@ -85861,11 +85864,11 @@ const Z4 = fn({
85861
85864
  alignItems: "center",
85862
85865
  justifyContent: "center"
85863
85866
  },
85864
- children: /* @__PURE__ */ I.jsx(Z4.Provider, { value: { setCanProgress: b, autoAdvance: A, setSlideData: x }, children: e[l] })
85867
+ children: /* @__PURE__ */ R.jsx(Z4.Provider, { value: { setCanProgress: x, autoAdvance: D, setSlideData: T }, children: e[u] })
85865
85868
  },
85866
- l
85869
+ u
85867
85870
  ) }) }),
85868
- /* @__PURE__ */ I.jsxs(
85871
+ /* @__PURE__ */ R.jsxs(
85869
85872
  "div",
85870
85873
  {
85871
85874
  style: {
@@ -85875,44 +85878,44 @@ const Z4 = fn({
85875
85878
  alignItems: "center"
85876
85879
  },
85877
85880
  children: [
85878
- /* @__PURE__ */ I.jsx("div", { style: { justifySelf: "end", marginRight: "1rem" }, children: /* @__PURE__ */ I.jsx(
85881
+ /* @__PURE__ */ R.jsx("div", { style: { justifySelf: "end", marginRight: "1rem" }, children: /* @__PURE__ */ R.jsx(
85879
85882
  "button",
85880
85883
  {
85881
- onClick: D,
85884
+ onClick: V,
85882
85885
  className: Px,
85883
85886
  tabIndex: -1,
85884
- onKeyDown: (V) => {
85885
- (V.key === " " || V.key === "Enter") && V.preventDefault();
85887
+ onKeyDown: (I) => {
85888
+ (I.key === " " || I.key === "Enter") && I.preventDefault();
85886
85889
  },
85887
- style: { visibility: l > 0 ? "visible" : "hidden" },
85890
+ style: { visibility: u > 0 ? "visible" : "hidden" },
85888
85891
  children: "←"
85889
85892
  }
85890
85893
  ) }),
85891
- /* @__PURE__ */ I.jsx("div", { style: { display: "flex", gap: 6 }, children: e.map((V, _) => /* @__PURE__ */ I.jsx(
85894
+ /* @__PURE__ */ R.jsx("div", { style: { display: "flex", gap: 6 }, children: e.map((I, M) => /* @__PURE__ */ R.jsx(
85892
85895
  "div",
85893
85896
  {
85894
85897
  style: {
85895
85898
  width: 8,
85896
85899
  height: 8,
85897
85900
  borderRadius: "50%",
85898
- backgroundColor: _ === l ? o === "dark" ? "#fff" : "#000" : o === "dark" ? "rgba(255,255,255,0.3)" : "rgba(0,0,0,0.2)",
85901
+ backgroundColor: M === u ? l === "dark" ? "#fff" : "#000" : l === "dark" ? "rgba(255,255,255,0.3)" : "rgba(0,0,0,0.2)",
85899
85902
  transition: "background-color 0.2s"
85900
85903
  }
85901
85904
  },
85902
- _
85905
+ M
85903
85906
  )) }),
85904
- /* @__PURE__ */ I.jsx("div", { style: { justifySelf: "start", marginLeft: "1rem" }, children: /* @__PURE__ */ I.jsx(
85907
+ /* @__PURE__ */ R.jsx("div", { style: { justifySelf: "start", marginLeft: "1rem" }, children: /* @__PURE__ */ R.jsx(
85905
85908
  Tx.button,
85906
85909
  {
85907
- onClick: R,
85910
+ onClick: L,
85908
85911
  tabIndex: -1,
85909
- onKeyDown: (V) => {
85910
- (V.key === " " || V.key === "Enter") && V.preventDefault();
85912
+ onKeyDown: (I) => {
85913
+ (I.key === " " || I.key === "Enter") && I.preventDefault();
85911
85914
  },
85912
- animate: { scale: m ? 1.2 : 1 },
85915
+ animate: { scale: g ? 1.2 : 1 },
85913
85916
  transition: { type: "spring", stiffness: 500, damping: 15 },
85914
- className: (y ? Px : _ye) + (l === e.length - 1 ? " px-8" : ""),
85915
- children: l === e.length - 1 ? s : "→"
85917
+ className: (v ? Px : _ye) + (u === e.length - 1 ? " px-8" : ""),
85918
+ children: u === e.length - 1 ? s : "→"
85916
85919
  }
85917
85920
  ) })
85918
85921
  ]
@@ -86015,9 +86018,9 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
86015
86018
  if (u !== void 0 && h !== void 0) {
86016
86019
  const c = u * u + h * h;
86017
86020
  if (c > 1e-10) {
86018
- const d = Math.sqrt(c), f = u / d, y = h / d, v = l.x - s, m = l.y - r, g = n * n, b = a * a, x = f * f / g + y * y / b, T = v * f / g + m * y / b, R = v * v / g + m * m / b - 1, A = T * T - x * R;
86019
- if (A >= 0) {
86020
- const D = (T + Math.sqrt(A)) / x;
86021
+ const d = Math.sqrt(c), f = u / d, y = h / d, v = l.x - s, m = l.y - r, g = n * n, b = a * a, x = f * f / g + y * y / b, T = v * f / g + m * y / b, A = v * v / g + m * m / b - 1, L = T * T - x * A;
86022
+ if (L >= 0) {
86023
+ const D = (T + Math.sqrt(L)) / x;
86021
86024
  if (D > 0 && Number.isFinite(D))
86022
86025
  return [l.x - f * D, l.y - y * D];
86023
86026
  }
@@ -86063,8 +86066,8 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
86063
86066
  const c = Math.sqrt(u * u + h * h);
86064
86067
  if (c < 1e-10)
86065
86068
  return this.getOppositePositionSimple(l);
86066
- const d = -u / c, f = -h / c, y = s - n, v = s + n, m = r - a, g = r + a, b = d !== 0 ? (y - l.x) / d : -1 / 0, x = d !== 0 ? (v - l.x) / d : -1 / 0, T = f !== 0 ? (m - l.y) / f : -1 / 0, R = f !== 0 ? (g - l.y) / f : -1 / 0, A = Math.max(Math.min(b, x), Math.min(T, R)), D = Math.min(Math.max(b, x), Math.max(T, R));
86067
- return D > 0 && A <= D && Number.isFinite(D) ? [l.x + d * D, l.y + f * D] : this.getOppositePositionSimple(l);
86069
+ const d = -u / c, f = -h / c, y = s - n, v = s + n, m = r - a, g = r + a, b = d !== 0 ? (y - l.x) / d : -1 / 0, x = d !== 0 ? (v - l.x) / d : -1 / 0, T = f !== 0 ? (m - l.y) / f : -1 / 0, A = f !== 0 ? (g - l.y) / f : -1 / 0, L = Math.max(Math.min(b, x), Math.min(T, A)), D = Math.min(Math.max(b, x), Math.max(T, A));
86070
+ return D > 0 && L <= D && Number.isFinite(D) ? [l.x + d * D, l.y + f * D] : this.getOppositePositionSimple(l);
86068
86071
  },
86069
86072
  getOppositePositionSimple(l) {
86070
86073
  const u = s - n, h = s + n, c = r - a, d = r + a;
@@ -86161,15 +86164,15 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
86161
86164
  apertureWidth: b,
86162
86165
  apertureHeight: x,
86163
86166
  apertureCenterX: T,
86164
- apertureCenterY: R,
86165
- reinsertMode: A,
86167
+ apertureCenterY: A,
86168
+ reinsertMode: L,
86166
86169
  noiseMovement: D,
86167
86170
  reassignEveryMs: V,
86168
- showFixation: _,
86169
- fixationWidth: N,
86171
+ showFixation: I,
86172
+ fixationWidth: M,
86170
86173
  fixationHeight: q,
86171
86174
  fixationColor: Q,
86172
- fixationThickness: L,
86175
+ fixationThickness: _,
86173
86176
  showBorder: B,
86174
86177
  borderWidth: H,
86175
86178
  borderColor: $,
@@ -86177,7 +86180,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
86177
86180
  initialRefreshRate: G,
86178
86181
  style: ne,
86179
86182
  className: Y
86180
- } = { ...xr, ...i }, oe = fe(null), re = fe(), ue = fe(), Ie = fe(), ge = fe(0), te = fe(0), we = fe([]), et = fe(null), Yt = fe(!1), Gt = T ?? t / 2, Is = R ?? s / 2, Et = di(
86183
+ } = { ...xr, ...i }, oe = fe(null), re = fe(), ue = fe(), Ie = fe(), ge = fe(0), te = fe(0), we = fe([]), et = fe(null), Yt = fe(!1), Gt = T ?? t / 2, Is = A ?? s / 2, Et = di(
86181
86184
  () => Mye(
86182
86185
  g,
86183
86186
  b,
@@ -86221,19 +86224,19 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
86221
86224
  [y, v, d, f]
86222
86225
  ), Mt = Xe(
86223
86226
  (_e, Ge, Te) => {
86224
- _ && (_e.fillStyle = Q, _e.fillRect(
86225
- Ge - N,
86226
- Te - L / 2,
86227
- N * 2,
86228
- L
86227
+ I && (_e.fillStyle = Q, _e.fillRect(
86228
+ Ge - M,
86229
+ Te - _ / 2,
86230
+ M * 2,
86231
+ _
86229
86232
  ), _e.fillRect(
86230
- Ge - L / 2,
86233
+ Ge - _ / 2,
86231
86234
  Te - q,
86232
- L,
86235
+ _,
86233
86236
  q * 2
86234
86237
  ));
86235
86238
  },
86236
- [_, Q, L, N, q]
86239
+ [I, Q, _, M, q]
86237
86240
  ), zt = Xe(
86238
86241
  (_e) => {
86239
86242
  B && Et.drawBorder(_e, $, H);
@@ -86275,7 +86278,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
86275
86278
  ws,
86276
86279
  h,
86277
86280
  Et,
86278
- A,
86281
+ L,
86279
86282
  d,
86280
86283
  cs,
86281
86284
  Di == null ? void 0 : Di[se]
@@ -86298,7 +86301,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
86298
86301
  u,
86299
86302
  h,
86300
86303
  Et,
86301
- A,
86304
+ L,
86302
86305
  n,
86303
86306
  d,
86304
86307
  cs,
@@ -86318,7 +86321,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
86318
86321
  _e.width = t * Ge, _e.height = s * Ge, _e.style.width = `${t}px`, _e.style.height = `${s}px`;
86319
86322
  const Te = _e.getContext("2d");
86320
86323
  Te && Te.scale(Ge, Ge);
86321
- }, [t, s]), /* @__PURE__ */ I.jsx(
86324
+ }, [t, s]), /* @__PURE__ */ R.jsx(
86322
86325
  "canvas",
86323
86326
  {
86324
86327
  ref: oe,
@@ -86349,15 +86352,15 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
86349
86352
  speed: b,
86350
86353
  dotLifetime: x,
86351
86354
  dotRadius: T,
86352
- dotColor: R,
86353
- backgroundColor: A,
86355
+ dotColor: A,
86356
+ backgroundColor: L,
86354
86357
  apertureShape: D,
86355
86358
  apertureWidth: V,
86356
- apertureHeight: _,
86357
- reinsertMode: N,
86359
+ apertureHeight: I,
86360
+ reinsertMode: M,
86358
86361
  noiseMovement: q,
86359
86362
  showFixation: Q,
86360
- fixationTime: L,
86363
+ fixationTime: _,
86361
86364
  fixationWidth: B,
86362
86365
  fixationHeight: H,
86363
86366
  fixationColor: $,
@@ -86367,7 +86370,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
86367
86370
  borderColor: Y
86368
86371
  } = { ...xr, ...i }, oe = fe(i);
86369
86372
  oe.current = i;
86370
- const re = fe(null), ue = fe(performance.now()), Ie = fe(!1), ge = fe(null), te = fe(null), [we, et] = rt(null), [Yt, Gt] = rt(L <= 0), [Is, Et] = rt(!0), cs = e == null ? void 0 : e._reactiveScreenRefreshRate, rs = Xe((Le, st) => {
86373
+ const re = fe(null), ue = fe(performance.now()), Ie = fe(!1), ge = fe(null), te = fe(null), [we, et] = rt(null), [Yt, Gt] = rt(_ <= 0), [Is, Et] = rt(!0), cs = e == null ? void 0 : e._reactiveScreenRefreshRate, rs = Xe((Le, st) => {
86371
86374
  var bs;
86372
86375
  if (Ie.current) return;
86373
86376
  Ie.current = !0;
@@ -86383,21 +86386,21 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
86383
86386
  });
86384
86387
  }, []);
86385
86388
  return lt(() => {
86386
- if (L <= 0) return;
86387
- const Le = setTimeout(() => Gt(!0), L);
86389
+ if (_ <= 0) return;
86390
+ const Le = setTimeout(() => Gt(!0), _);
86388
86391
  return () => clearTimeout(Le);
86389
- }, [L]), lt(() => {
86392
+ }, [_]), lt(() => {
86390
86393
  const Le = t ?? c;
86391
86394
  if (Le <= 0) return;
86392
- const st = setTimeout(() => Et(!1), L + Le);
86395
+ const st = setTimeout(() => Et(!1), _ + Le);
86393
86396
  return () => clearTimeout(st);
86394
- }, [L, t, c]), lt(() => {
86397
+ }, [_, t, c]), lt(() => {
86395
86398
  if (c <= 0) return;
86396
86399
  const Le = setTimeout(() => {
86397
86400
  rs(ge.current, te.current);
86398
- }, L + c);
86401
+ }, _ + c);
86399
86402
  return () => clearTimeout(Le);
86400
- }, [L, c, rs]), lt(() => {
86403
+ }, [_, c, rs]), lt(() => {
86401
86404
  const Le = (st) => {
86402
86405
  if (Ie.current || ge.current) return;
86403
86406
  const Mt = st.key.toLowerCase(), zt = h.length > 0 ? h.map((Ct) => Ct.toLowerCase()) : null;
@@ -86407,8 +86410,8 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
86407
86410
  }
86408
86411
  };
86409
86412
  return window.addEventListener("keydown", Le), () => window.removeEventListener("keydown", Le);
86410
- }, [h, d, rs]), /* @__PURE__ */ I.jsxs("div", { style: { width: "100vw", height: "100vh", overflow: "hidden", margin: 0, padding: 0, backgroundColor: A }, children: [
86411
- /* @__PURE__ */ I.jsx(
86413
+ }, [h, d, rs]), /* @__PURE__ */ R.jsxs("div", { style: { width: "100vw", height: "100vh", overflow: "hidden", margin: 0, padding: 0, backgroundColor: L }, children: [
86414
+ /* @__PURE__ */ R.jsx(
86412
86415
  qye,
86413
86416
  {
86414
86417
  ref: re,
@@ -86426,15 +86429,15 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
86426
86429
  updateRate: s,
86427
86430
  dotRadius: T,
86428
86431
  dotCharacter: r,
86429
- dotColor: R,
86432
+ dotColor: A,
86430
86433
  coherentDotColor: n,
86431
- backgroundColor: A,
86434
+ backgroundColor: L,
86432
86435
  apertureShape: D,
86433
86436
  apertureWidth: V,
86434
- apertureHeight: _,
86437
+ apertureHeight: I,
86435
86438
  apertureCenterX: a,
86436
86439
  apertureCenterY: o,
86437
- reinsertMode: N,
86440
+ reinsertMode: M,
86438
86441
  noiseMovement: q,
86439
86442
  reassignEveryMs: l,
86440
86443
  showFixation: Q,
@@ -86447,7 +86450,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
86447
86450
  borderColor: Y
86448
86451
  }
86449
86452
  ),
86450
- u && !Is && !we && /* @__PURE__ */ I.jsx(
86453
+ u && !Is && !we && /* @__PURE__ */ R.jsx(
86451
86454
  "div",
86452
86455
  {
86453
86456
  style: {
@@ -86496,7 +86499,7 @@ function pCe({
86496
86499
  const q = {}, Q = new URLSearchParams(window.location.search);
86497
86500
  for (const [$, j] of Q.entries())
86498
86501
  q[$] = j;
86499
- const L = Cc.getRegistry() || [], B = {};
86502
+ const _ = Cc.getRegistry() || [], B = {};
86500
86503
  for (const [$, j] of Object.entries(q))
86501
86504
  B[$] = {
86502
86505
  value: j,
@@ -86505,7 +86508,7 @@ function pCe({
86505
86508
  type: void 0,
86506
86509
  description: void 0
86507
86510
  };
86508
- for (const $ of L)
86511
+ for (const $ of _)
86509
86512
  B[$.name] = {
86510
86513
  value: $.value !== void 0 ? $.value : q[$.name],
86511
86514
  registered: !0,
@@ -86546,8 +86549,8 @@ function pCe({
86546
86549
  function T(q) {
86547
86550
  c.current = { ...c.current, ...q };
86548
86551
  }
86549
- function R(q, Q, L) {
86550
- const B = Qs(), H = a.instructions[d], $ = Q !== void 0 ? Q : h.current, j = L !== void 0 ? L : B;
86552
+ function A(q, Q, _) {
86553
+ const B = Qs(), H = a.instructions[d], $ = Q !== void 0 ? Q : h.current, j = _ !== void 0 ? _ : B;
86551
86554
  if ((H == null ? void 0 : H.type) === "ExecuteContent") {
86552
86555
  const ne = H.content;
86553
86556
  if (Xf(ne)) {
@@ -86578,34 +86581,34 @@ function pCe({
86578
86581
  );
86579
86582
  G < a.instructions.length && (h.current = Qs()), f(G);
86580
86583
  }
86581
- const A = Xe((q) => {
86584
+ const L = Xe((q) => {
86582
86585
  let Q = 0;
86583
- const L = Qs(), B = 2e4;
86584
- let H, $ = L;
86586
+ const _ = Qs(), B = 2e4;
86587
+ let H, $ = _;
86585
86588
  const j = 1e3, G = () => {
86586
- const re = Qs() - L;
86589
+ const re = Qs() - _;
86587
86590
  return re > 0 ? Math.round(Q * 1e3 / re) : null;
86588
86591
  }, ne = () => {
86589
86592
  H && cancelAnimationFrame(H);
86590
86593
  }, Y = (oe) => {
86591
86594
  Q++;
86592
- const re = oe - L;
86595
+ const re = oe - _;
86593
86596
  oe - $ >= j && (q(G()), $ = oe), re < B ? H = requestAnimationFrame(Y) : (ne(), q(G()));
86594
86597
  };
86595
86598
  return H = requestAnimationFrame(Y), ne;
86596
86599
  }, []), D = ({ children: q, collectRefreshRate: Q }) => {
86597
- const L = fe(null), B = fe(null);
86600
+ const _ = fe(null), B = fe(null);
86598
86601
  lt(() => {
86599
- if (L.current = Qs(), Q)
86600
- return A((j) => {
86602
+ if (_.current = Qs(), Q)
86603
+ return L((j) => {
86601
86604
  B.current = j, T({ _reactiveScreenRefreshRate: j });
86602
86605
  });
86603
86606
  }, []);
86604
86607
  const H = Ze.Children.map(q, ($) => {
86605
86608
  if (Ze.isValidElement($)) {
86606
86609
  const j = (G, ne, Y) => {
86607
- const oe = Qs(), re = ne !== void 0 ? ne : L.current;
86608
- R(G, re ?? void 0, (Y !== void 0 ? Y : oe) ?? void 0);
86610
+ const oe = Qs(), re = ne !== void 0 ? ne : _.current;
86611
+ A(G, re ?? void 0, (Y !== void 0 ? Y : oe) ?? void 0);
86609
86612
  };
86610
86613
  return Ze.cloneElement($, {
86611
86614
  ...$.props,
@@ -86614,56 +86617,56 @@ function pCe({
86614
86617
  }
86615
86618
  return $;
86616
86619
  });
86617
- return /* @__PURE__ */ I.jsx(I.Fragment, { children: H });
86618
- }, V = a.instructions[d], _ = di(() => {
86620
+ return /* @__PURE__ */ R.jsx(R.Fragment, { children: H });
86621
+ }, V = a.instructions[d], I = di(() => {
86619
86622
  if (y === "none" || (V == null ? void 0 : V.type) !== "ExecuteContent") return !1;
86620
86623
  const q = V.content;
86621
86624
  return !Xf(q) || q.simulate === !1 ? !1 : !!q.simulate || !!q.simulators;
86622
86625
  }, [d, y, V]);
86623
86626
  lt(() => {
86624
- _ && m.current !== d && (m.current = d, (async () => {
86625
- const q = V.content, { trialProps: Q, simulateFn: L, simulators: B } = wV(q, o.current, c.current), H = await L(
86627
+ I && m.current !== d && (m.current = d, (async () => {
86628
+ const q = V.content, { trialProps: Q, simulateFn: _, simulators: B } = wV(q, o.current, c.current), H = await _(
86626
86629
  Q,
86627
86630
  { data: o.current, store: c.current },
86628
86631
  B,
86629
86632
  v.current
86630
86633
  );
86631
- v.current = H.participantState, H.storeUpdates && T(H.storeUpdates), R(H.responseData);
86634
+ v.current = H.participantState, H.storeUpdates && T(H.storeUpdates), A(H.responseData);
86632
86635
  })());
86633
- }, [_, d]);
86634
- let N = null;
86635
- if ((V == null ? void 0 : V.type) === "ExecuteContent" && !_) {
86636
+ }, [I, d]);
86637
+ let M = null;
86638
+ if ((V == null ? void 0 : V.type) === "ExecuteContent" && !I) {
86636
86639
  const q = V.content;
86637
86640
  if (Xf(q)) {
86638
86641
  const Q = g[q.type];
86639
86642
  if (Q) {
86640
- const L = typeof q.props == "function" ? q.props(o.current, c.current) : q.props || {};
86641
- N = /* @__PURE__ */ I.jsx(D, { collectRefreshRate: q.collectRefreshRate, children: /* @__PURE__ */ I.jsx(
86643
+ const _ = typeof q.props == "function" ? q.props(o.current, c.current) : q.props || {};
86644
+ M = /* @__PURE__ */ R.jsx(D, { collectRefreshRate: q.collectRefreshRate, children: /* @__PURE__ */ R.jsx(
86642
86645
  Q,
86643
86646
  {
86644
- next: R,
86647
+ next: A,
86645
86648
  updateStore: T,
86646
86649
  store: c.current,
86647
86650
  data: o.current,
86648
86651
  ...q.type === "Quest" ? { customQuestions: b } : {},
86649
- ...L
86652
+ ..._
86650
86653
  }
86651
86654
  ) }, d);
86652
86655
  } else
86653
- console.error(`No component found for type: ${q.type}`), N = /* @__PURE__ */ I.jsxs("div", { children: [
86656
+ console.error(`No component found for type: ${q.type}`), M = /* @__PURE__ */ R.jsxs("div", { children: [
86654
86657
  'Error: Component type "',
86655
86658
  q.type,
86656
86659
  '" not found.'
86657
86660
  ] });
86658
86661
  } else
86659
- console.warn("ExecuteContent instruction does not contain standard component data:", q), N = /* @__PURE__ */ I.jsx("div", { children: "Non-component content encountered." });
86660
- } else d >= a.instructions.length && (N = /* @__PURE__ */ I.jsx(I.Fragment, {}));
86661
- return /* @__PURE__ */ I.jsxs("div", { className: "w-full h-full", children: [
86662
- /* @__PURE__ */ I.jsx(
86662
+ console.warn("ExecuteContent instruction does not contain standard component data:", q), M = /* @__PURE__ */ R.jsx("div", { children: "Non-component content encountered." });
86663
+ } else d >= a.instructions.length && (M = /* @__PURE__ */ R.jsx(R.Fragment, {}));
86664
+ return /* @__PURE__ */ R.jsxs("div", { className: "w-full h-full", children: [
86665
+ /* @__PURE__ */ R.jsx(
86663
86666
  "div",
86664
86667
  {
86665
86668
  className: ` ${e.showProgressBar ? "" : "hidden "} px-4 mt-4 sm:mt-12 max-w-2xl mx-auto`,
86666
- children: /* @__PURE__ */ I.jsx("div", { className: "flex-1 h-6 bg-gray-200 rounded-full overflow-hidden", children: /* @__PURE__ */ I.jsx(
86669
+ children: /* @__PURE__ */ R.jsx("div", { className: "flex-1 h-6 bg-gray-200 rounded-full overflow-hidden", children: /* @__PURE__ */ R.jsx(
86667
86670
  "div",
86668
86671
  {
86669
86672
  className: `h-full bg-gray-200 rounded-full duration-300 ${x > 0 ? " border-black border-2" : ""}`,
@@ -86678,7 +86681,7 @@ function pCe({
86678
86681
  ) })
86679
86682
  }
86680
86683
  ),
86681
- N
86684
+ M
86682
86685
  ] });
86683
86686
  }
86684
86687
  export {