@markind-gg/tanks 0.1.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -484,7 +484,7 @@ var Mp = { exports: {} }, xi = {}, Ap = { exports: {} }, _p = {};
484
484
  p = !0, E || (E = !0, z());
485
485
  else {
486
486
  var N = n(s);
487
- N !== null && I(k, N.startTime - R);
487
+ N !== null && O(k, N.startTime - R);
488
488
  }
489
489
  }
490
490
  var E = !1, A = -1, w = 5, L = -1;
@@ -520,7 +520,7 @@ var Mp = { exports: {} }, xi = {}, Ap = { exports: {} }, _p = {};
520
520
  if (f !== null) N = !0;
521
521
  else {
522
522
  var Z = n(s);
523
- Z !== null && I(
523
+ Z !== null && O(
524
524
  k,
525
525
  Z.startTime - R
526
526
  ), N = !1;
@@ -551,7 +551,7 @@ var Mp = { exports: {} }, xi = {}, Ap = { exports: {} }, _p = {};
551
551
  z = function() {
552
552
  y(D, 0);
553
553
  };
554
- function I(R, N) {
554
+ function O(R, N) {
555
555
  A = y(function() {
556
556
  R(t.unstable_now());
557
557
  }, N);
@@ -626,7 +626,7 @@ var Mp = { exports: {} }, xi = {}, Ap = { exports: {} }, _p = {};
626
626
  startTime: C,
627
627
  expirationTime: F,
628
628
  sortIndex: -1
629
- }, C > q ? (R.sortIndex = C, e(s, R), n(c) === null && R === n(s) && (g ? (m(A), A = -1) : g = !0, I(k, C - q))) : (R.sortIndex = F, e(c, R), p || h || (p = !0, E || (E = !0, z()))), R;
629
+ }, C > q ? (R.sortIndex = C, e(s, R), n(c) === null && R === n(s) && (g ? (m(A), A = -1) : g = !0, O(k, C - q))) : (R.sortIndex = F, e(c, R), p || h || (p = !0, E || (E = !0, z()))), R;
630
630
  }, t.unstable_shouldYield = T, t.unstable_wrapCallback = function(R) {
631
631
  var N = d;
632
632
  return function() {
@@ -812,7 +812,7 @@ var gb = Tp.exports;
812
812
  * LICENSE file in the root directory of this source tree.
813
813
  */
814
814
  var Xt = hb, wp = M, bb = gb;
815
- function O(t) {
815
+ function I(t) {
816
816
  var e = "https://react.dev/errors/" + t;
817
817
  if (1 < arguments.length) {
818
818
  e += "?args[]=" + encodeURIComponent(arguments[1]);
@@ -821,10 +821,10 @@ function O(t) {
821
821
  }
822
822
  return "Minified React error #" + t + "; visit " + e + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
823
823
  }
824
- function Op(t) {
824
+ function Ip(t) {
825
825
  return !(!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11);
826
826
  }
827
- function Oo(t) {
827
+ function Io(t) {
828
828
  var e = t, n = t;
829
829
  if (t.alternate) for (; e.return; ) e = e.return;
830
830
  else {
@@ -835,7 +835,7 @@ function Oo(t) {
835
835
  }
836
836
  return e.tag === 3 ? n : null;
837
837
  }
838
- function Ip(t) {
838
+ function Op(t) {
839
839
  if (t.tag === 13) {
840
840
  var e = t.memoizedState;
841
841
  if (e === null && (t = t.alternate, t !== null && (e = t.memoizedState)), e !== null) return e.dehydrated;
@@ -850,13 +850,13 @@ function Np(t) {
850
850
  return null;
851
851
  }
852
852
  function Gf(t) {
853
- if (Oo(t) !== t)
854
- throw Error(O(188));
853
+ if (Io(t) !== t)
854
+ throw Error(I(188));
855
855
  }
856
856
  function vb(t) {
857
857
  var e = t.alternate;
858
858
  if (!e) {
859
- if (e = Oo(t), e === null) throw Error(O(188));
859
+ if (e = Io(t), e === null) throw Error(I(188));
860
860
  return e !== t ? null : t;
861
861
  }
862
862
  for (var n = t, a = e; ; ) {
@@ -876,7 +876,7 @@ function vb(t) {
876
876
  if (o === a) return Gf(l), e;
877
877
  o = o.sibling;
878
878
  }
879
- throw Error(O(188));
879
+ throw Error(I(188));
880
880
  }
881
881
  if (n.return !== a.return) n = l, a = o;
882
882
  else {
@@ -903,12 +903,12 @@ function vb(t) {
903
903
  }
904
904
  i = i.sibling;
905
905
  }
906
- if (!r) throw Error(O(189));
906
+ if (!r) throw Error(I(189));
907
907
  }
908
908
  }
909
- if (n.alternate !== a) throw Error(O(190));
909
+ if (n.alternate !== a) throw Error(I(190));
910
910
  }
911
- if (n.tag !== 3) throw Error(O(188));
911
+ if (n.tag !== 3) throw Error(I(188));
912
912
  return n.stateNode.current === n ? t : e;
913
913
  }
914
914
  function Cp(t) {
@@ -1158,17 +1158,17 @@ Error generating stack: ` + a.message + `
1158
1158
  ` + a.stack;
1159
1159
  }
1160
1160
  }
1161
- var fs = Object.prototype.hasOwnProperty, ku = Xt.unstable_scheduleCallback, $i = Xt.unstable_cancelCallback, Ab = Xt.unstable_shouldYield, _b = Xt.unstable_requestPaint, ve = Xt.unstable_now, Tb = Xt.unstable_getCurrentPriorityLevel, Lp = Xt.unstable_ImmediatePriority, Bp = Xt.unstable_UserBlockingPriority, jr = Xt.unstable_NormalPriority, Rb = Xt.unstable_LowPriority, jp = Xt.unstable_IdlePriority, Eb = Xt.log, wb = Xt.unstable_setDisableYieldValue, Io = null, xe = null;
1161
+ var fs = Object.prototype.hasOwnProperty, ku = Xt.unstable_scheduleCallback, $i = Xt.unstable_cancelCallback, Ab = Xt.unstable_shouldYield, _b = Xt.unstable_requestPaint, ve = Xt.unstable_now, Tb = Xt.unstable_getCurrentPriorityLevel, Lp = Xt.unstable_ImmediatePriority, Bp = Xt.unstable_UserBlockingPriority, jr = Xt.unstable_NormalPriority, Rb = Xt.unstable_LowPriority, jp = Xt.unstable_IdlePriority, Eb = Xt.log, wb = Xt.unstable_setDisableYieldValue, Oo = null, xe = null;
1162
1162
  function Rn(t) {
1163
1163
  if (typeof Eb == "function" && wb(t), xe && typeof xe.setStrictMode == "function")
1164
1164
  try {
1165
- xe.setStrictMode(Io, t);
1165
+ xe.setStrictMode(Oo, t);
1166
1166
  } catch {
1167
1167
  }
1168
1168
  }
1169
- var ke = Math.clz32 ? Math.clz32 : Nb, Ob = Math.log, Ib = Math.LN2;
1169
+ var ke = Math.clz32 ? Math.clz32 : Nb, Ib = Math.log, Ob = Math.LN2;
1170
1170
  function Nb(t) {
1171
- return t >>>= 0, t === 0 ? 32 : 31 - (Ob(t) / Ib | 0) | 0;
1171
+ return t >>>= 0, t === 0 ? 32 : 31 - (Ib(t) / Ob | 0) | 0;
1172
1172
  }
1173
1173
  var Po = 256, Jo = 262144, tr = 4194304;
1174
1174
  function aa(t) {
@@ -1407,7 +1407,7 @@ function vl(t) {
1407
1407
  function Xl(t) {
1408
1408
  var e = t.tag;
1409
1409
  if (e === 5 || e === 26 || e === 27 || e === 6) return t.stateNode;
1410
- throw Error(O(33));
1410
+ throw Error(I(33));
1411
1411
  }
1412
1412
  function $a(t) {
1413
1413
  var e = t[$f];
@@ -1604,9 +1604,9 @@ function $p(t, e, n) {
1604
1604
  function Wp(t, e, n, a) {
1605
1605
  if (e == null) {
1606
1606
  if (a != null) {
1607
- if (n != null) throw Error(O(92));
1607
+ if (n != null) throw Error(I(92));
1608
1608
  if (Ul(a)) {
1609
- if (1 < a.length) throw Error(O(93));
1609
+ if (1 < a.length) throw Error(I(93));
1610
1610
  a = a[0];
1611
1611
  }
1612
1612
  n = a;
@@ -1636,7 +1636,7 @@ function Pf(t, e, n) {
1636
1636
  }
1637
1637
  function Fp(t, e, n) {
1638
1638
  if (e != null && typeof e != "object")
1639
- throw Error(O(62));
1639
+ throw Error(I(62));
1640
1640
  if (t = t.style, n != null) {
1641
1641
  for (var a in n)
1642
1642
  !n.hasOwnProperty(a) || e != null && e.hasOwnProperty(a) || (a.indexOf("--") === 0 ? t.setProperty(a, "") : a === "float" ? t.cssFloat = "" : t[a] = "");
@@ -1777,7 +1777,7 @@ function Jf(t) {
1777
1777
  var a = n[e];
1778
1778
  if (a !== t && a.form === t.form) {
1779
1779
  var l = a[fe] || null;
1780
- if (!l) throw Error(O(90));
1780
+ if (!l) throw Error(I(90));
1781
1781
  ps(
1782
1782
  a,
1783
1783
  l.value,
@@ -1840,7 +1840,7 @@ function uo(t, e) {
1840
1840
  if (t) return null;
1841
1841
  if (n && typeof n != "function")
1842
1842
  throw Error(
1843
- O(231, e, typeof n)
1843
+ I(231, e, typeof n)
1844
1844
  );
1845
1845
  return n;
1846
1846
  }
@@ -1906,7 +1906,7 @@ var xa = {
1906
1906
  },
1907
1907
  defaultPrevented: 0,
1908
1908
  isTrusted: 0
1909
- }, Mi = de(xa), zo = Mt({}, xa, { view: 0, detail: 0 }), Gb = de(zo), Pi, Ji, Ol, Ai = Mt({}, zo, {
1909
+ }, Mi = de(xa), zo = Mt({}, xa, { view: 0, detail: 0 }), Gb = de(zo), Pi, Ji, Il, Ai = Mt({}, zo, {
1910
1910
  screenX: 0,
1911
1911
  screenY: 0,
1912
1912
  clientX: 0,
@@ -1924,7 +1924,7 @@ var xa = {
1924
1924
  return t.relatedTarget === void 0 ? t.fromElement === t.srcElement ? t.toElement : t.fromElement : t.relatedTarget;
1925
1925
  },
1926
1926
  movementX: function(t) {
1927
- return "movementX" in t ? t.movementX : (t !== Ol && (Ol && t.type === "mousemove" ? (Pi = t.screenX - Ol.screenX, Ji = t.screenY - Ol.screenY) : Ji = Pi = 0, Ol = t), Pi);
1927
+ return "movementX" in t ? t.movementX : (t !== Il && (Il && t.type === "mousemove" ? (Pi = t.screenX - Il.screenX, Ji = t.screenY - Il.screenY) : Ji = Pi = 0, Il = t), Pi);
1928
1928
  },
1929
1929
  movementY: function(t) {
1930
1930
  return "movementY" in t ? t.movementY : Ji;
@@ -2256,14 +2256,14 @@ function im(t) {
2256
2256
  }
2257
2257
  return e;
2258
2258
  }
2259
- function Ou(t) {
2259
+ function Iu(t) {
2260
2260
  var e = t && t.nodeName && t.nodeName.toLowerCase();
2261
2261
  return e && (e === "input" && (t.type === "text" || t.type === "search" || t.type === "tel" || t.type === "url" || t.type === "password") || e === "textarea" || t.contentEditable === "true");
2262
2262
  }
2263
2263
  var _v = dn && "documentMode" in document && 11 >= document.documentMode, Ya = null, bs = null, Fl = null, vs = !1;
2264
2264
  function dd(t, e, n) {
2265
2265
  var a = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
2266
- vs || Ya == null || Ya !== Hr(a) || (a = Ya, "selectionStart" in a && Ou(a) ? a = { start: a.selectionStart, end: a.selectionEnd } : (a = (a.ownerDocument && a.ownerDocument.defaultView || window).getSelection(), a = {
2266
+ vs || Ya == null || Ya !== Hr(a) || (a = Ya, "selectionStart" in a && Iu(a) ? a = { start: a.selectionStart, end: a.selectionEnd } : (a = (a.ownerDocument && a.ownerDocument.defaultView || window).getSelection(), a = {
2267
2267
  anchorNode: a.anchorNode,
2268
2268
  anchorOffset: a.anchorOffset,
2269
2269
  focusNode: a.focusNode,
@@ -2320,9 +2320,9 @@ var Yr = typeof reportError == "function" ? reportError : function(t) {
2320
2320
  return;
2321
2321
  }
2322
2322
  console.error(t);
2323
- }, _e = [], Xa = 0, Iu = 0;
2323
+ }, _e = [], Xa = 0, Ou = 0;
2324
2324
  function Ti() {
2325
- for (var t = Xa, e = Iu = Xa = 0; e < t; ) {
2325
+ for (var t = Xa, e = Ou = Xa = 0; e < t; ) {
2326
2326
  var n = _e[e];
2327
2327
  _e[e++] = null;
2328
2328
  var a = _e[e];
@@ -2338,7 +2338,7 @@ function Ti() {
2338
2338
  }
2339
2339
  }
2340
2340
  function Ri(t, e, n, a) {
2341
- _e[Xa++] = t, _e[Xa++] = e, _e[Xa++] = n, _e[Xa++] = a, Iu |= a, t.lanes |= a, t = t.alternate, t !== null && (t.lanes |= a);
2341
+ _e[Xa++] = t, _e[Xa++] = e, _e[Xa++] = n, _e[Xa++] = a, Ou |= a, t.lanes |= a, t = t.alternate, t !== null && (t.lanes |= a);
2342
2342
  }
2343
2343
  function Nu(t, e, n, a) {
2344
2344
  return Ri(t, e, n, a), Ur(t);
@@ -2356,7 +2356,7 @@ function pm(t, e, n) {
2356
2356
  }
2357
2357
  function Ur(t) {
2358
2358
  if (50 < ro)
2359
- throw ro = 0, Us = null, Error(O(185));
2359
+ throw ro = 0, Us = null, Error(I(185));
2360
2360
  for (var e = t.return; e !== null; )
2361
2361
  t = e, e = t.return;
2362
2362
  return t.tag === 3 ? t.stateNode : null;
@@ -2432,7 +2432,7 @@ function Ar(t, e, n, a, l, o) {
2432
2432
  break t;
2433
2433
  }
2434
2434
  r = 29, n = Error(
2435
- O(130, t === null ? "null" : typeof t, "")
2435
+ I(130, t === null ? "null" : typeof t, "")
2436
2436
  ), a = null;
2437
2437
  }
2438
2438
  return e = ge(r, n, e, l), e.elementType = t, e.type = a, e.lanes = o, e;
@@ -2460,7 +2460,7 @@ function oc(t, e, n) {
2460
2460
  }, e;
2461
2461
  }
2462
2462
  var hd = /* @__PURE__ */ new WeakMap();
2463
- function Oe(t, e) {
2463
+ function Ie(t, e) {
2464
2464
  if (typeof t == "object" && t !== null) {
2465
2465
  var n = hd.get(t);
2466
2466
  return n !== void 0 ? n : (e = {
@@ -2504,16 +2504,16 @@ function zu(t) {
2504
2504
  function bm(t, e) {
2505
2505
  Re[Ee++] = qe, Re[Ee++] = Ge, Re[Ee++] = Gn, qe = e.id, Ge = e.overflow, Gn = t;
2506
2506
  }
2507
- var Wt = null, kt = null, lt = !1, Dn = null, Ie = !1, ks = Error(O(519));
2507
+ var Wt = null, kt = null, lt = !1, Dn = null, Oe = !1, ks = Error(I(519));
2508
2508
  function Vn(t) {
2509
2509
  var e = Error(
2510
- O(
2510
+ I(
2511
2511
  418,
2512
2512
  1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML",
2513
2513
  ""
2514
2514
  )
2515
2515
  );
2516
- throw mo(Oe(e, t)), ks;
2516
+ throw mo(Ie(e, t)), ks;
2517
2517
  }
2518
2518
  function pd(t) {
2519
2519
  var e = t.stateNode, n = t.type, a = t.memoizedProps;
@@ -2568,11 +2568,11 @@ function md(t) {
2568
2568
  case 5:
2569
2569
  case 31:
2570
2570
  case 13:
2571
- Ie = !1;
2571
+ Oe = !1;
2572
2572
  return;
2573
2573
  case 27:
2574
2574
  case 3:
2575
- Ie = !0;
2575
+ Oe = !0;
2576
2576
  return;
2577
2577
  default:
2578
2578
  Wt = Wt.return;
@@ -2583,10 +2583,10 @@ function _a(t) {
2583
2583
  if (!lt) return md(t), lt = !0, !1;
2584
2584
  var e = t.tag, n;
2585
2585
  if ((n = e !== 3 && e !== 27) && ((n = e === 5) && (n = t.type, n = !(n !== "form" && n !== "button") || Zs(t.type, t.memoizedProps)), n = !n), n && kt && Vn(t), md(t), e === 13) {
2586
- if (t = t.memoizedState, t = t !== null ? t.dehydrated : null, !t) throw Error(O(317));
2586
+ if (t = t.memoizedState, t = t !== null ? t.dehydrated : null, !t) throw Error(I(317));
2587
2587
  kt = e0(t);
2588
2588
  } else if (e === 31) {
2589
- if (t = t.memoizedState, t = t !== null ? t.dehydrated : null, !t) throw Error(O(317));
2589
+ if (t = t.memoizedState, t = t !== null ? t.dehydrated : null, !t) throw Error(I(317));
2590
2590
  kt = e0(t);
2591
2591
  } else
2592
2592
  e === 27 ? (e = kt, Jn(t.type) ? (t = Ws, Ws = null, kt = t) : kt = e) : kt = Wt ? Ce(t.stateNode.nextSibling) : null;
@@ -2641,7 +2641,7 @@ function As(t, e, n, a) {
2641
2641
  o = i.next;
2642
2642
  }
2643
2643
  } else if (l.tag === 18) {
2644
- if (r = l.return, r === null) throw Error(O(341));
2644
+ if (r = l.return, r === null) throw Error(I(341));
2645
2645
  r.lanes |= n, o = r.alternate, o !== null && (o.lanes |= n), Ms(r, n, t), r = null;
2646
2646
  } else r = l.child;
2647
2647
  if (r !== null) r.return = l;
@@ -2669,13 +2669,13 @@ function xl(t, e, n, a) {
2669
2669
  }
2670
2670
  if (l.tag === 10) {
2671
2671
  var r = l.alternate;
2672
- if (r === null) throw Error(O(387));
2672
+ if (r === null) throw Error(I(387));
2673
2673
  if (r = r.memoizedProps, r !== null) {
2674
2674
  var i = l.type;
2675
2675
  Me(l.pendingProps.value, r.value) || (t !== null ? t.push(i) : t = [i]);
2676
2676
  }
2677
2677
  } else if (l === zr.current) {
2678
- if (r = l.alternate, r === null) throw Error(O(387));
2678
+ if (r = l.alternate, r === null) throw Error(I(387));
2679
2679
  r.memoizedState.memoizedState !== l.memoizedState.memoizedState && (t !== null ? t.push(ko) : t = [ko]);
2680
2680
  }
2681
2681
  l = l.return;
@@ -2710,12 +2710,12 @@ function ar(t, e) {
2710
2710
  function vm(t, e) {
2711
2711
  var n = e._currentValue;
2712
2712
  if (e = { context: e, memoizedValue: n, next: null }, cn === null) {
2713
- if (t === null) throw Error(O(308));
2713
+ if (t === null) throw Error(I(308));
2714
2714
  cn = e, t.dependencies = { lanes: 0, firstContext: e }, t.flags |= 524288;
2715
2715
  } else cn = cn.next = e;
2716
2716
  return n;
2717
2717
  }
2718
- var Ov = typeof AbortController < "u" ? AbortController : function() {
2718
+ var Iv = typeof AbortController < "u" ? AbortController : function() {
2719
2719
  var t = [], e = this.signal = {
2720
2720
  aborted: !1,
2721
2721
  addEventListener: function(n, a) {
@@ -2727,7 +2727,7 @@ var Ov = typeof AbortController < "u" ? AbortController : function() {
2727
2727
  return n();
2728
2728
  });
2729
2729
  };
2730
- }, Iv = Xt.unstable_scheduleCallback, Nv = Xt.unstable_NormalPriority, Ht = {
2730
+ }, Ov = Xt.unstable_scheduleCallback, Nv = Xt.unstable_NormalPriority, Ht = {
2731
2731
  $$typeof: on,
2732
2732
  Consumer: null,
2733
2733
  Provider: null,
@@ -2737,13 +2737,13 @@ var Ov = typeof AbortController < "u" ? AbortController : function() {
2737
2737
  };
2738
2738
  function Lu() {
2739
2739
  return {
2740
- controller: new Ov(),
2740
+ controller: new Iv(),
2741
2741
  data: /* @__PURE__ */ new Map(),
2742
2742
  refCount: 0
2743
2743
  };
2744
2744
  }
2745
2745
  function Lo(t) {
2746
- t.refCount--, t.refCount === 0 && Iv(Nv, function() {
2746
+ t.refCount--, t.refCount === 0 && Ov(Nv, function() {
2747
2747
  t.controller.abort();
2748
2748
  });
2749
2749
  }
@@ -2805,7 +2805,7 @@ function xm() {
2805
2805
  var t = Bu();
2806
2806
  return t === null ? null : { parent: Ht._currentValue, pool: t };
2807
2807
  }
2808
- var kl = Error(O(460)), ju = Error(O(474)), Ei = Error(O(542)), Gr = { then: function() {
2808
+ var kl = Error(I(460)), ju = Error(I(474)), Ei = Error(I(542)), Gr = { then: function() {
2809
2809
  } };
2810
2810
  function bd(t) {
2811
2811
  return t = t.status, t === "fulfilled" || t === "rejected";
@@ -2820,7 +2820,7 @@ function km(t, e, n) {
2820
2820
  if (typeof e.status == "string") e.then(rn, rn);
2821
2821
  else {
2822
2822
  if (t = mt, t !== null && 100 < t.shellSuspendCounter)
2823
- throw Error(O(482));
2823
+ throw Error(I(482));
2824
2824
  t = e, t.status = "pending", t.then(
2825
2825
  function(a) {
2826
2826
  if (e.status === "pending") {
@@ -2855,25 +2855,25 @@ function la(t) {
2855
2855
  }
2856
2856
  var ua = null;
2857
2857
  function vd() {
2858
- if (ua === null) throw Error(O(459));
2858
+ if (ua === null) throw Error(I(459));
2859
2859
  var t = ua;
2860
2860
  return ua = null, t;
2861
2861
  }
2862
2862
  function xd(t) {
2863
2863
  if (t === kl || t === Ei)
2864
- throw Error(O(483));
2864
+ throw Error(I(483));
2865
2865
  }
2866
2866
  var Ja = null, yo = 0;
2867
2867
  function lr(t) {
2868
2868
  var e = yo;
2869
2869
  return yo += 1, Ja === null && (Ja = []), km(Ja, t, e);
2870
2870
  }
2871
- function Il(t, e) {
2871
+ function Ol(t, e) {
2872
2872
  e = e.props.ref, t.ref = e !== void 0 ? e : null;
2873
2873
  }
2874
2874
  function or(t, e) {
2875
- throw e.$$typeof === xb ? Error(O(525)) : (t = Object.prototype.toString.call(e), Error(
2876
- O(
2875
+ throw e.$$typeof === xb ? Error(I(525)) : (t = Object.prototype.toString.call(e), Error(
2876
+ I(
2877
2877
  31,
2878
2878
  t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t
2879
2879
  )
@@ -2917,14 +2917,14 @@ function Sm(t) {
2917
2917
  b.props.children,
2918
2918
  x,
2919
2919
  b.key
2920
- ) : m !== null && (m.elementType === k || typeof k == "object" && k !== null && k.$$typeof === kn && la(k) === m.type) ? (m = l(m, b.props), Il(m, b), m.return = y, m) : (m = Ar(
2920
+ ) : m !== null && (m.elementType === k || typeof k == "object" && k !== null && k.$$typeof === kn && la(k) === m.type) ? (m = l(m, b.props), Ol(m, b), m.return = y, m) : (m = Ar(
2921
2921
  b.type,
2922
2922
  b.key,
2923
2923
  b.props,
2924
2924
  null,
2925
2925
  y.mode,
2926
2926
  x
2927
- ), Il(m, b), m.return = y, m);
2927
+ ), Ol(m, b), m.return = y, m);
2928
2928
  }
2929
2929
  function s(y, m, b, x) {
2930
2930
  return m === null || m.tag !== 4 || m.stateNode.containerInfo !== b.containerInfo || m.stateNode.implementation !== b.implementation ? (m = oc(b, y.mode, x), m.return = y, m) : (m = l(m, b.children || []), m.return = y, m);
@@ -2954,7 +2954,7 @@ function Sm(t) {
2954
2954
  null,
2955
2955
  y.mode,
2956
2956
  b
2957
- ), Il(b, m), b.return = y, b;
2957
+ ), Ol(b, m), b.return = y, b;
2958
2958
  case Yl:
2959
2959
  return m = oc(
2960
2960
  m,
@@ -3105,7 +3105,7 @@ function Sm(t) {
3105
3105
  }), lt && an(y, w), k;
3106
3106
  }
3107
3107
  function g(y, m, b, x) {
3108
- if (b == null) throw Error(O(151));
3108
+ if (b == null) throw Error(I(151));
3109
3109
  for (var k = null, E = null, A = m, w = m = 0, L = null, T = b.next(); A !== null && !T.done; w++, T = b.next()) {
3110
3110
  A.index > w ? (L = A, A = null) : L = A.sibling;
3111
3111
  var D = d(y, A, T.value, x);
@@ -3150,7 +3150,7 @@ function Sm(t) {
3150
3150
  n(
3151
3151
  y,
3152
3152
  m.sibling
3153
- ), x = l(m, b.props), Il(x, b), x.return = y, y = x;
3153
+ ), x = l(m, b.props), Ol(x, b), x.return = y, y = x;
3154
3154
  break t;
3155
3155
  }
3156
3156
  n(y, m);
@@ -3170,7 +3170,7 @@ function Sm(t) {
3170
3170
  null,
3171
3171
  y.mode,
3172
3172
  x
3173
- ), Il(x, b), x.return = y, y = x);
3173
+ ), Ol(x, b), x.return = y, y = x);
3174
3174
  }
3175
3175
  return r(y);
3176
3176
  case Yl:
@@ -3209,7 +3209,7 @@ function Sm(t) {
3209
3209
  x
3210
3210
  );
3211
3211
  if (El(b)) {
3212
- if (k = El(b), typeof k != "function") throw Error(O(150));
3212
+ if (k = El(b), typeof k != "function") throw Error(I(150));
3213
3213
  return b = k.call(b), g(
3214
3214
  y,
3215
3215
  m,
@@ -3392,7 +3392,7 @@ function eo(t, e, n, a) {
3392
3392
  }
3393
3393
  function Am(t, e) {
3394
3394
  if (typeof t != "function")
3395
- throw Error(O(191, t));
3395
+ throw Error(I(191, t));
3396
3396
  t.call(e);
3397
3397
  }
3398
3398
  function _m(t, e) {
@@ -3451,8 +3451,8 @@ function Zr(t) {
3451
3451
  return null;
3452
3452
  }
3453
3453
  var hn = 0, W = null, ht = null, Bt = null, Kr = !1, tl = !1, ma = !1, Qr = 0, go = 0, el = null, zv = 0;
3454
- function Ot() {
3455
- throw Error(O(321));
3454
+ function It() {
3455
+ throw Error(I(321));
3456
3456
  }
3457
3457
  function Uu(t, e) {
3458
3458
  if (e === null) return !1;
@@ -3471,14 +3471,14 @@ function Xu(t, e, n, a, l, o) {
3471
3471
  function Rm(t) {
3472
3472
  K.H = bo;
3473
3473
  var e = ht !== null && ht.next !== null;
3474
- if (hn = 0, Bt = ht = W = null, Kr = !1, go = 0, el = null, e) throw Error(O(300));
3474
+ if (hn = 0, Bt = ht = W = null, Kr = !1, go = 0, el = null, e) throw Error(I(300));
3475
3475
  t === null || Yt || (t = t.dependencies, t !== null && qr(t) && (Yt = !0));
3476
3476
  }
3477
3477
  function Em(t, e, n, a) {
3478
3478
  W = t;
3479
3479
  var l = 0;
3480
3480
  do {
3481
- if (tl && (el = null), go = 0, tl = !1, 25 <= l) throw Error(O(301));
3481
+ if (tl && (el = null), go = 0, tl = !1, 25 <= l) throw Error(I(301));
3482
3482
  if (l += 1, Bt = ht = null, t.updateQueue != null) {
3483
3483
  var o = t.updateQueue;
3484
3484
  o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);
@@ -3528,7 +3528,7 @@ function Dt() {
3528
3528
  Bt = e, ht = t;
3529
3529
  else {
3530
3530
  if (t === null)
3531
- throw W.alternate === null ? Error(O(467)) : Error(O(310));
3531
+ throw W.alternate === null ? Error(I(467)) : Error(I(310));
3532
3532
  ht = t, t = {
3533
3533
  memoizedState: ht.memoizedState,
3534
3534
  baseState: ht.baseState,
@@ -3546,12 +3546,12 @@ function Bo(t) {
3546
3546
  var e = go;
3547
3547
  return go += 1, el === null && (el = []), t = km(el, t, e), e = W, (Bt === null ? e.memoizedState : Bt.next) === null && (e = e.alternate, K.H = e === null || e.memoizedState === null ? ay : Ju), t;
3548
3548
  }
3549
- function Oi(t) {
3549
+ function Ii(t) {
3550
3550
  if (t !== null && typeof t == "object") {
3551
3551
  if (typeof t.then == "function") return Bo(t);
3552
3552
  if (t.$$typeof === on) return Ft(t);
3553
3553
  }
3554
- throw Error(O(438, String(t)));
3554
+ throw Error(I(438, String(t)));
3555
3555
  }
3556
3556
  function Zu(t) {
3557
3557
  var e = null, n = W.updateQueue;
@@ -3578,7 +3578,7 @@ function Tr(t) {
3578
3578
  }
3579
3579
  function Ku(t, e, n) {
3580
3580
  var a = t.queue;
3581
- if (a === null) throw Error(O(311));
3581
+ if (a === null) throw Error(I(311));
3582
3582
  a.lastRenderedReducer = n;
3583
3583
  var l = t.baseQueue, o = a.pending;
3584
3584
  if (o !== null) {
@@ -3640,7 +3640,7 @@ function Ku(t, e, n) {
3640
3640
  }
3641
3641
  function cc(t) {
3642
3642
  var e = Dt(), n = e.queue;
3643
- if (n === null) throw Error(O(311));
3643
+ if (n === null) throw Error(I(311));
3644
3644
  n.lastRenderedReducer = t;
3645
3645
  var a = n.dispatch, l = n.pending, o = e.memoizedState;
3646
3646
  if (l !== null) {
@@ -3656,7 +3656,7 @@ function cc(t) {
3656
3656
  function wm(t, e, n) {
3657
3657
  var a = W, l = Dt(), o = lt;
3658
3658
  if (o) {
3659
- if (n === void 0) throw Error(O(407));
3659
+ if (n === void 0) throw Error(I(407));
3660
3660
  n = n();
3661
3661
  } else n = e();
3662
3662
  var r = !Me(
@@ -3669,7 +3669,7 @@ function wm(t, e, n) {
3669
3669
  if (a.flags |= 2048, cl(
3670
3670
  9,
3671
3671
  { destroy: void 0 },
3672
- Im.bind(
3672
+ Om.bind(
3673
3673
  null,
3674
3674
  a,
3675
3675
  l,
@@ -3677,15 +3677,15 @@ function wm(t, e, n) {
3677
3677
  e
3678
3678
  ),
3679
3679
  null
3680
- ), mt === null) throw Error(O(349));
3681
- o || hn & 127 || Om(a, e, n);
3680
+ ), mt === null) throw Error(I(349));
3681
+ o || hn & 127 || Im(a, e, n);
3682
3682
  }
3683
3683
  return n;
3684
3684
  }
3685
- function Om(t, e, n) {
3685
+ function Im(t, e, n) {
3686
3686
  t.flags |= 16384, t = { getSnapshot: e, value: n }, e = W.updateQueue, e === null ? (e = wi(), W.updateQueue = e, e.stores = [t]) : (n = e.stores, n === null ? e.stores = [t] : n.push(t));
3687
3687
  }
3688
- function Im(t, e, n, a) {
3688
+ function Om(t, e, n, a) {
3689
3689
  e.value = n, e.getSnapshot = a, Cm(e) && Dm(t);
3690
3690
  }
3691
3691
  function Nm(t, e, n) {
@@ -3707,7 +3707,7 @@ function Dm(t) {
3707
3707
  var e = Sa(t, 2);
3708
3708
  e !== null && ue(e, t, 2);
3709
3709
  }
3710
- function Os(t) {
3710
+ function Is(t) {
3711
3711
  var e = ne();
3712
3712
  if (typeof t == "function") {
3713
3713
  var n = t;
@@ -3736,7 +3736,7 @@ function zm(t, e, n, a) {
3736
3736
  );
3737
3737
  }
3738
3738
  function Bv(t, e, n, a, l) {
3739
- if (Ni(t)) throw Error(O(485));
3739
+ if (Ni(t)) throw Error(I(485));
3740
3740
  if (t = e.action, t !== null) {
3741
3741
  var o = {
3742
3742
  payload: l,
@@ -3763,7 +3763,7 @@ function Lm(t, e) {
3763
3763
  var i = n(l, a), c = K.S;
3764
3764
  c !== null && c(r, i), Sd(t, e, i);
3765
3765
  } catch (s) {
3766
- Is(t, e, s);
3766
+ Os(t, e, s);
3767
3767
  } finally {
3768
3768
  o !== null && r.types !== null && (o.types = r.types), K.T = o;
3769
3769
  }
@@ -3771,7 +3771,7 @@ function Lm(t, e) {
3771
3771
  try {
3772
3772
  o = n(l, a), Sd(t, e, o);
3773
3773
  } catch (s) {
3774
- Is(t, e, s);
3774
+ Os(t, e, s);
3775
3775
  }
3776
3776
  }
3777
3777
  function Sd(t, e, n) {
@@ -3780,14 +3780,14 @@ function Sd(t, e, n) {
3780
3780
  Md(t, e, a);
3781
3781
  },
3782
3782
  function(a) {
3783
- return Is(t, e, a);
3783
+ return Os(t, e, a);
3784
3784
  }
3785
3785
  ) : Md(t, e, n);
3786
3786
  }
3787
3787
  function Md(t, e, n) {
3788
3788
  e.status = "fulfilled", e.value = n, Bm(e), t.state = n, e = t.pending, e !== null && (n = e.next, n === e ? t.pending = null : (n = n.next, e.next = n, Lm(t, n)));
3789
3789
  }
3790
- function Is(t, e, n) {
3790
+ function Os(t, e, n) {
3791
3791
  var a = t.pending;
3792
3792
  if (t.pending = null, a !== null) {
3793
3793
  a = a.next;
@@ -3813,7 +3813,7 @@ function Ad(t, e) {
3813
3813
  if (lt) {
3814
3814
  if (kt) {
3815
3815
  e: {
3816
- for (var l = kt, o = Ie; l.nodeType !== 8; ) {
3816
+ for (var l = kt, o = Oe; l.nodeType !== 8; ) {
3817
3817
  if (!o) {
3818
3818
  l = null;
3819
3819
  break e;
@@ -3851,7 +3851,7 @@ function Ad(t, e) {
3851
3851
  null,
3852
3852
  W,
3853
3853
  a
3854
- ), a.dispatch = n, a = Os(!1), o = Pu.bind(
3854
+ ), a.dispatch = n, a = Is(!1), o = Pu.bind(
3855
3855
  null,
3856
3856
  W,
3857
3857
  !1,
@@ -3920,7 +3920,7 @@ function Rr(t, e, n, a) {
3920
3920
  a === void 0 ? null : a
3921
3921
  );
3922
3922
  }
3923
- function Ii(t, e, n, a) {
3923
+ function Oi(t, e, n, a) {
3924
3924
  var l = Dt();
3925
3925
  a = a === void 0 ? null : a;
3926
3926
  var o = l.memoizedState.inst;
@@ -3935,7 +3935,7 @@ function Rd(t, e) {
3935
3935
  Rr(8390656, 8, t, e);
3936
3936
  }
3937
3937
  function Qu(t, e) {
3938
- Ii(2048, 8, t, e);
3938
+ Oi(2048, 8, t, e);
3939
3939
  }
3940
3940
  function Hv(t) {
3941
3941
  W.flags |= 4;
@@ -3950,15 +3950,15 @@ function Hv(t) {
3950
3950
  function Um(t) {
3951
3951
  var e = Dt().memoizedState;
3952
3952
  return Hv({ ref: e, nextImpl: t }), function() {
3953
- if (ct & 2) throw Error(O(440));
3953
+ if (ct & 2) throw Error(I(440));
3954
3954
  return e.impl.apply(void 0, arguments);
3955
3955
  };
3956
3956
  }
3957
3957
  function Xm(t, e) {
3958
- return Ii(4, 2, t, e);
3958
+ return Oi(4, 2, t, e);
3959
3959
  }
3960
3960
  function qm(t, e) {
3961
- return Ii(4, 4, t, e);
3961
+ return Oi(4, 4, t, e);
3962
3962
  }
3963
3963
  function Gm(t, e) {
3964
3964
  if (typeof e == "function") {
@@ -3974,7 +3974,7 @@ function Gm(t, e) {
3974
3974
  };
3975
3975
  }
3976
3976
  function Vm(t, e, n) {
3977
- n = n != null ? n.concat([t]) : null, Ii(4, 4, Gm.bind(null, e, t), n);
3977
+ n = n != null ? n.concat([t]) : null, Oi(4, 4, Gm.bind(null, e, t), n);
3978
3978
  }
3979
3979
  function $u() {
3980
3980
  }
@@ -4046,7 +4046,7 @@ function $m(t, e, n, a, l) {
4046
4046
  function Yv() {
4047
4047
  }
4048
4048
  function Ns(t, e, n, a) {
4049
- if (t.tag !== 5) throw Error(O(476));
4049
+ if (t.tag !== 5) throw Error(I(476));
4050
4050
  var l = Wm(t).queue;
4051
4051
  $m(
4052
4052
  t,
@@ -4173,7 +4173,7 @@ function Pu(t, e, n, a) {
4173
4173
  eagerState: null,
4174
4174
  next: null
4175
4175
  }, Ni(t)) {
4176
- if (e) throw Error(O(479));
4176
+ if (e) throw Error(I(479));
4177
4177
  } else
4178
4178
  e = Nu(
4179
4179
  t,
@@ -4199,33 +4199,33 @@ function ny(t, e, n) {
4199
4199
  }
4200
4200
  var bo = {
4201
4201
  readContext: Ft,
4202
- use: Oi,
4203
- useCallback: Ot,
4204
- useContext: Ot,
4205
- useEffect: Ot,
4206
- useImperativeHandle: Ot,
4207
- useLayoutEffect: Ot,
4208
- useInsertionEffect: Ot,
4209
- useMemo: Ot,
4210
- useReducer: Ot,
4211
- useRef: Ot,
4212
- useState: Ot,
4213
- useDebugValue: Ot,
4214
- useDeferredValue: Ot,
4215
- useTransition: Ot,
4216
- useSyncExternalStore: Ot,
4217
- useId: Ot,
4218
- useHostTransitionStatus: Ot,
4219
- useFormState: Ot,
4220
- useActionState: Ot,
4221
- useOptimistic: Ot,
4222
- useMemoCache: Ot,
4223
- useCacheRefresh: Ot
4202
+ use: Ii,
4203
+ useCallback: It,
4204
+ useContext: It,
4205
+ useEffect: It,
4206
+ useImperativeHandle: It,
4207
+ useLayoutEffect: It,
4208
+ useInsertionEffect: It,
4209
+ useMemo: It,
4210
+ useReducer: It,
4211
+ useRef: It,
4212
+ useState: It,
4213
+ useDebugValue: It,
4214
+ useDeferredValue: It,
4215
+ useTransition: It,
4216
+ useSyncExternalStore: It,
4217
+ useId: It,
4218
+ useHostTransitionStatus: It,
4219
+ useFormState: It,
4220
+ useActionState: It,
4221
+ useOptimistic: It,
4222
+ useMemoCache: It,
4223
+ useCacheRefresh: It
4224
4224
  };
4225
- bo.useEffectEvent = Ot;
4225
+ bo.useEffectEvent = It;
4226
4226
  var ay = {
4227
4227
  readContext: Ft,
4228
- use: Oi,
4228
+ use: Ii,
4229
4229
  useCallback: function(t, e) {
4230
4230
  return ne().memoizedState = [
4231
4231
  t,
@@ -4292,7 +4292,7 @@ var ay = {
4292
4292
  return t = { current: t }, e.memoizedState = t;
4293
4293
  },
4294
4294
  useState: function(t) {
4295
- t = Os(t);
4295
+ t = Is(t);
4296
4296
  var e = t.queue, n = ty.bind(null, W, e);
4297
4297
  return e.dispatch = n, [t.memoizedState, n];
4298
4298
  },
@@ -4302,7 +4302,7 @@ var ay = {
4302
4302
  return Wu(n, t, e);
4303
4303
  },
4304
4304
  useTransition: function() {
4305
- var t = Os(!1);
4305
+ var t = Is(!1);
4306
4306
  return t = $m.bind(
4307
4307
  null,
4308
4308
  W,
@@ -4315,12 +4315,12 @@ var ay = {
4315
4315
  var a = W, l = ne();
4316
4316
  if (lt) {
4317
4317
  if (n === void 0)
4318
- throw Error(O(407));
4318
+ throw Error(I(407));
4319
4319
  n = n();
4320
4320
  } else {
4321
4321
  if (n = e(), mt === null)
4322
- throw Error(O(349));
4323
- et & 127 || Om(a, e, n);
4322
+ throw Error(I(349));
4323
+ et & 127 || Im(a, e, n);
4324
4324
  }
4325
4325
  l.memoizedState = n;
4326
4326
  var o = { value: n, getSnapshot: e };
@@ -4329,7 +4329,7 @@ var ay = {
4329
4329
  ]), a.flags |= 2048, cl(
4330
4330
  9,
4331
4331
  { destroy: void 0 },
4332
- Im.bind(
4332
+ Om.bind(
4333
4333
  null,
4334
4334
  a,
4335
4335
  o,
@@ -4379,13 +4379,13 @@ var ay = {
4379
4379
  var e = ne(), n = { impl: t };
4380
4380
  return e.memoizedState = n, function() {
4381
4381
  if (ct & 2)
4382
- throw Error(O(440));
4382
+ throw Error(I(440));
4383
4383
  return n.impl.apply(void 0, arguments);
4384
4384
  };
4385
4385
  }
4386
4386
  }, Ju = {
4387
4387
  readContext: Ft,
4388
- use: Oi,
4388
+ use: Ii,
4389
4389
  useCallback: Zm,
4390
4390
  useContext: Ft,
4391
4391
  useEffect: Qu,
@@ -4430,7 +4430,7 @@ var ay = {
4430
4430
  Ju.useEffectEvent = Um;
4431
4431
  var ly = {
4432
4432
  readContext: Ft,
4433
- use: Oi,
4433
+ use: Ii,
4434
4434
  useCallback: Zm,
4435
4435
  useContext: Ft,
4436
4436
  useEffect: Qu,
@@ -4532,7 +4532,7 @@ function $r(t, e) {
4532
4532
  });
4533
4533
  }
4534
4534
  }
4535
- function Od(t, e, n) {
4535
+ function Id(t, e, n) {
4536
4536
  try {
4537
4537
  var a = t.onCaughtError;
4538
4538
  a(n.value, {
@@ -4560,12 +4560,12 @@ function sy(t, e, n, a) {
4560
4560
  t.payload = function() {
4561
4561
  return l(o);
4562
4562
  }, t.callback = function() {
4563
- Od(e, n, a);
4563
+ Id(e, n, a);
4564
4564
  };
4565
4565
  }
4566
4566
  var r = n.stateNode;
4567
4567
  r !== null && typeof r.componentDidCatch == "function" && (t.callback = function() {
4568
- Od(e, n, a), typeof l != "function" && (Bn === null ? Bn = /* @__PURE__ */ new Set([this]) : Bn.add(this));
4568
+ Id(e, n, a), typeof l != "function" && (Bn === null ? Bn = /* @__PURE__ */ new Set([this]) : Bn.add(this));
4569
4569
  var i = a.stack;
4570
4570
  this.componentDidCatch(a.value, {
4571
4571
  componentStack: i !== null ? i : ""
@@ -4583,7 +4583,7 @@ function qv(t, e, n, a, l) {
4583
4583
  switch (n.tag) {
4584
4584
  case 31:
4585
4585
  case 13:
4586
- return Ne === null ? ti() : n.alternate === null && It === 0 && (It = 3), n.flags &= -257, n.flags |= 65536, n.lanes = l, a === Gr ? n.flags |= 16384 : (e = n.updateQueue, e === null ? n.updateQueue = /* @__PURE__ */ new Set([a]) : e.add(a), xc(t, a, l)), !1;
4586
+ return Ne === null ? ti() : n.alternate === null && Ot === 0 && (Ot = 3), n.flags &= -257, n.flags |= 65536, n.lanes = l, a === Gr ? n.flags |= 16384 : (e = n.updateQueue, e === null ? n.updateQueue = /* @__PURE__ */ new Set([a]) : e.add(a), xc(t, a, l)), !1;
4587
4587
  case 22:
4588
4588
  return n.flags |= 65536, a === Gr ? n.flags |= 16384 : (e = n.updateQueue, e === null ? (e = {
4589
4589
  transitions: null,
@@ -4591,23 +4591,23 @@ function qv(t, e, n, a, l) {
4591
4591
  retryQueue: /* @__PURE__ */ new Set([a])
4592
4592
  }, n.updateQueue = e) : (n = e.retryQueue, n === null ? e.retryQueue = /* @__PURE__ */ new Set([a]) : n.add(a)), xc(t, a, l)), !1;
4593
4593
  }
4594
- throw Error(O(435, n.tag));
4594
+ throw Error(I(435, n.tag));
4595
4595
  }
4596
4596
  return xc(t, a, l), ti(), !1;
4597
4597
  }
4598
4598
  if (lt)
4599
- return e = Ae.current, e !== null ? (!(e.flags & 65536) && (e.flags |= 256), e.flags |= 65536, e.lanes = l, a !== ks && (t = Error(O(422), { cause: a }), mo(Oe(t, n)))) : (a !== ks && (e = Error(O(423), {
4599
+ return e = Ae.current, e !== null ? (!(e.flags & 65536) && (e.flags |= 256), e.flags |= 65536, e.lanes = l, a !== ks && (t = Error(I(422), { cause: a }), mo(Ie(t, n)))) : (a !== ks && (e = Error(I(423), {
4600
4600
  cause: a
4601
4601
  }), mo(
4602
- Oe(e, n)
4603
- )), t = t.current.alternate, t.flags |= 65536, l &= -l, t.lanes |= l, a = Oe(a, n), l = Ds(
4602
+ Ie(e, n)
4603
+ )), t = t.current.alternate, t.flags |= 65536, l &= -l, t.lanes |= l, a = Ie(a, n), l = Ds(
4604
4604
  t.stateNode,
4605
4605
  a,
4606
4606
  l
4607
- ), ic(t, l), It !== 4 && (It = 2)), !1;
4608
- var o = Error(O(520), { cause: a });
4609
- if (o = Oe(o, n), oo === null ? oo = [o] : oo.push(o), It !== 4 && (It = 2), e === null) return !0;
4610
- a = Oe(a, n), n = e;
4607
+ ), ic(t, l), Ot !== 4 && (Ot = 2)), !1;
4608
+ var o = Error(I(520), { cause: a });
4609
+ if (o = Ie(o, n), oo === null ? oo = [o] : oo.push(o), Ot !== 4 && (Ot = 2), e === null) return !0;
4610
+ a = Ie(a, n), n = e;
4611
4611
  do {
4612
4612
  switch (n.tag) {
4613
4613
  case 3:
@@ -4625,7 +4625,7 @@ function qv(t, e, n, a, l) {
4625
4625
  } while (n !== null);
4626
4626
  return !1;
4627
4627
  }
4628
- var tf = Error(O(461)), Yt = !1;
4628
+ var tf = Error(I(461)), Yt = !1;
4629
4629
  function Qt(t, e, n, a) {
4630
4630
  e.child = t === null ? Mm(e, null, n, a) : pa(
4631
4631
  e,
@@ -4634,7 +4634,7 @@ function Qt(t, e, n, a) {
4634
4634
  a
4635
4635
  );
4636
4636
  }
4637
- function Id(t, e, n, a, l) {
4637
+ function Od(t, e, n, a, l) {
4638
4638
  n = n.render;
4639
4639
  var o = e.ref;
4640
4640
  if ("ref" in a) {
@@ -4764,7 +4764,7 @@ function Gv(t, e, n) {
4764
4764
  return t = Er(e, a), e.lanes = 536870912, ql(null, t);
4765
4765
  if (ws(e), (t = kt) ? (t = ag(
4766
4766
  t,
4767
- Ie
4767
+ Oe
4768
4768
  ), t = t !== null && t.data === "&" ? t : null, t !== null && (e.memoizedState = {
4769
4769
  dehydrated: t,
4770
4770
  treeContext: Gn !== null ? { id: qe, overflow: Ge } : null,
@@ -4787,7 +4787,7 @@ function Gv(t, e, n) {
4787
4787
  );
4788
4788
  else if (e.memoizedState !== null)
4789
4789
  e.child = t.child, e.flags |= 128, e = null;
4790
- else throw Error(O(558));
4790
+ else throw Error(I(558));
4791
4791
  else if (Yt || xl(t, e, n, !1), l = (n & t.childLanes) !== 0, Yt || l) {
4792
4792
  if (a = mt, a !== null && (r = Xp(a, n), r !== 0 && r !== o.retryLane))
4793
4793
  throw o.retryLane = r, Sa(t, r), ue(a, t, r), tf;
@@ -4797,7 +4797,7 @@ function Gv(t, e, n) {
4797
4797
  n
4798
4798
  );
4799
4799
  } else
4800
- t = o.treeContext, kt = Ce(r.nextSibling), Wt = e, lt = !0, Dn = null, Ie = !1, t !== null && bm(e, t), e = Er(e, a), e.flags |= 4096;
4800
+ t = o.treeContext, kt = Ce(r.nextSibling), Wt = e, lt = !0, Dn = null, Oe = !1, t !== null && bm(e, t), e = Er(e, a), e.flags |= 4096;
4801
4801
  return e;
4802
4802
  }
4803
4803
  return t = sn(t.child, {
@@ -4811,7 +4811,7 @@ function wr(t, e) {
4811
4811
  t !== null && t.ref !== null && (e.flags |= 4194816);
4812
4812
  else {
4813
4813
  if (typeof n != "function" && typeof n != "object")
4814
- throw Error(O(284));
4814
+ throw Error(I(284));
4815
4815
  (t === null || t.ref !== n) && (e.flags |= 4194816);
4816
4816
  }
4817
4817
  }
@@ -4934,7 +4934,7 @@ function dy(t, e, n) {
4934
4934
  if (lt) {
4935
4935
  if (l ? An(e) : _n(), (t = kt) ? (t = ag(
4936
4936
  t,
4937
- Ie
4937
+ Oe
4938
4938
  ), t = t !== null && t.data !== "&" ? t : null, t !== null && (e.memoizedState = {
4939
4939
  dehydrated: t,
4940
4940
  treeContext: Gn !== null ? { id: qe, overflow: Ge } : null,
@@ -4985,7 +4985,7 @@ function dy(t, e, n) {
4985
4985
  ), e.memoizedState = uc, e = ql(null, a));
4986
4986
  else if (An(e), $s(i)) {
4987
4987
  if (r = i.nextSibling && i.nextSibling.dataset, r) var s = r.dgst;
4988
- r = s, a = Error(O(419)), a.stack = "", a.digest = r, mo({ value: a, source: null, stack: null }), e = hc(
4988
+ r = s, a = Error(I(419)), a.stack = "", a.digest = r, mo({ value: a, source: null, stack: null }), e = hc(
4989
4989
  t,
4990
4990
  e,
4991
4991
  n
@@ -5001,7 +5001,7 @@ function dy(t, e, n) {
5001
5001
  } else
5002
5002
  Qs(i) ? (e.flags |= 192, e.child = t.child, e = null) : (t = c.treeContext, kt = Ce(
5003
5003
  i.nextSibling
5004
- ), Wt = e, lt = !0, Dn = null, Ie = !1, t !== null && bm(e, t), e = Ls(
5004
+ ), Wt = e, lt = !0, Dn = null, Oe = !1, t !== null && bm(e, t), e = Ls(
5005
5005
  e,
5006
5006
  a.children
5007
5007
  ), e.flags |= 4096);
@@ -5142,7 +5142,7 @@ function mn(t, e, n) {
5142
5142
  return null;
5143
5143
  } else return null;
5144
5144
  if (t !== null && e.child !== t.child)
5145
- throw Error(O(153));
5145
+ throw Error(I(153));
5146
5146
  if (e.child !== null) {
5147
5147
  for (t = e.child, n = sn(t, t.pendingProps), e.child = n, n.return = e; t.sibling !== null; )
5148
5148
  t = t.sibling, n = n.sibling = sn(t, t.pendingProps), n.return = e;
@@ -5253,7 +5253,7 @@ function py(t, e, n) {
5253
5253
  if (t != null) {
5254
5254
  var l = t.$$typeof;
5255
5255
  if (l === vu) {
5256
- e.tag = 11, e = Id(
5256
+ e.tag = 11, e = Od(
5257
5257
  null,
5258
5258
  e,
5259
5259
  t,
@@ -5272,7 +5272,7 @@ function py(t, e, n) {
5272
5272
  break t;
5273
5273
  }
5274
5274
  }
5275
- throw e = cs(t) || t, Error(O(306, e, ""));
5275
+ throw e = cs(t) || t, Error(I(306, e, ""));
5276
5276
  }
5277
5277
  }
5278
5278
  return e;
@@ -5300,7 +5300,7 @@ function py(t, e, n) {
5300
5300
  if (Lr(
5301
5301
  e,
5302
5302
  e.stateNode.containerInfo
5303
- ), t === null) throw Error(O(387));
5303
+ ), t === null) throw Error(I(387));
5304
5304
  a = e.pendingProps;
5305
5305
  var o = e.memoizedState;
5306
5306
  l = o.element, Ts(t, e), eo(e, a, null, n);
@@ -5324,8 +5324,8 @@ function py(t, e, n) {
5324
5324
  );
5325
5325
  break t;
5326
5326
  } else if (a !== l) {
5327
- l = Oe(
5328
- Error(O(424)),
5327
+ l = Ie(
5328
+ Error(I(424)),
5329
5329
  e
5330
5330
  ), mo(l), e = Bd(
5331
5331
  t,
@@ -5342,7 +5342,7 @@ function py(t, e, n) {
5342
5342
  default:
5343
5343
  t = t.nodeName === "HTML" ? t.ownerDocument.body : t;
5344
5344
  }
5345
- for (kt = Ce(t.firstChild), Wt = e, lt = !0, Dn = null, Ie = !0, n = Mm(
5345
+ for (kt = Ce(t.firstChild), Wt = e, lt = !0, Dn = null, Oe = !0, n = Mm(
5346
5346
  e,
5347
5347
  null,
5348
5348
  a,
@@ -5383,7 +5383,7 @@ function py(t, e, n) {
5383
5383
  e.type,
5384
5384
  e.pendingProps,
5385
5385
  Cn.current
5386
- ), Wt = e, Ie = !0, l = kt, Jn(e.type) ? (Ws = l, kt = Ce(a.firstChild)) : kt = l), Qt(
5386
+ ), Wt = e, Oe = !0, l = kt, Jn(e.type) ? (Ws = l, kt = Ce(a.firstChild)) : kt = l), Qt(
5387
5387
  t,
5388
5388
  e,
5389
5389
  e.pendingProps.children,
@@ -5394,8 +5394,8 @@ function py(t, e, n) {
5394
5394
  a,
5395
5395
  e.type,
5396
5396
  e.pendingProps,
5397
- Ie
5398
- ), a !== null ? (e.stateNode = a, Wt = e, kt = Ce(a.firstChild), Ie = !1, l = !0) : l = !1), l || Vn(e)), us(e), l = e.type, o = e.pendingProps, r = t !== null ? t.memoizedProps : null, a = o.children, Zs(l, o) ? a = null : r !== null && Zs(l, r) && (e.flags |= 32), e.memoizedState !== null && (l = Xu(
5397
+ Oe
5398
+ ), a !== null ? (e.stateNode = a, Wt = e, kt = Ce(a.firstChild), Oe = !1, l = !0) : l = !1), l || Vn(e)), us(e), l = e.type, o = e.pendingProps, r = t !== null ? t.memoizedProps : null, a = o.children, Zs(l, o) ? a = null : r !== null && Zs(l, r) && (e.flags |= 32), e.memoizedState !== null && (l = Xu(
5399
5399
  t,
5400
5400
  e,
5401
5401
  Lv,
@@ -5407,7 +5407,7 @@ function py(t, e, n) {
5407
5407
  return t === null && lt && ((t = n = kt) && (n = Sx(
5408
5408
  n,
5409
5409
  e.pendingProps,
5410
- Ie
5410
+ Oe
5411
5411
  ), n !== null ? (e.stateNode = n, Wt = e, kt = null, t = !0) : t = !1), t || Vn(e)), null;
5412
5412
  case 13:
5413
5413
  return dy(t, e, n);
@@ -5422,7 +5422,7 @@ function py(t, e, n) {
5422
5422
  n
5423
5423
  ) : Qt(t, e, a, n), e.child;
5424
5424
  case 11:
5425
- return Id(
5425
+ return Od(
5426
5426
  t,
5427
5427
  e,
5428
5428
  e.type,
@@ -5496,7 +5496,7 @@ function py(t, e, n) {
5496
5496
  case 29:
5497
5497
  throw e.pendingProps;
5498
5498
  }
5499
- throw Error(O(156, e.tag));
5499
+ throw Error(I(156, e.tag));
5500
5500
  }
5501
5501
  function Pe(t) {
5502
5502
  t.flags |= 4;
@@ -5585,7 +5585,7 @@ function Zv(t, e, n) {
5585
5585
  else {
5586
5586
  if (!a) {
5587
5587
  if (e.stateNode === null)
5588
- throw Error(O(166));
5588
+ throw Error(I(166));
5589
5589
  return xt(e), null;
5590
5590
  }
5591
5591
  t = Ze.current, _a(e) ? pd(e) : (t = lg(l, a, n), e.stateNode = t, Pe(e));
@@ -5597,7 +5597,7 @@ function Zv(t, e, n) {
5597
5597
  else {
5598
5598
  if (!a) {
5599
5599
  if (e.stateNode === null)
5600
- throw Error(O(166));
5600
+ throw Error(I(166));
5601
5601
  return xt(e), null;
5602
5602
  }
5603
5603
  if (o = Ze.current, _a(e))
@@ -5692,7 +5692,7 @@ function Zv(t, e, n) {
5692
5692
  t.memoizedProps !== a && Pe(e);
5693
5693
  else {
5694
5694
  if (typeof a != "string" && e.stateNode === null)
5695
- throw Error(O(166));
5695
+ throw Error(I(166));
5696
5696
  if (t = Cn.current, _a(e)) {
5697
5697
  if (t = e.stateNode, n = e.memoizedProps, a = null, l = Wt, l !== null)
5698
5698
  switch (l.tag) {
@@ -5711,8 +5711,8 @@ function Zv(t, e, n) {
5711
5711
  if (n = e.memoizedState, t === null || t.memoizedState !== null) {
5712
5712
  if (a = _a(e), n !== null) {
5713
5713
  if (t === null) {
5714
- if (!a) throw Error(O(318));
5715
- if (t = e.memoizedState, t = t !== null ? t.dehydrated : null, !t) throw Error(O(557));
5714
+ if (!a) throw Error(I(318));
5715
+ if (t = e.memoizedState, t = t !== null ? t.dehydrated : null, !t) throw Error(I(557));
5716
5716
  t[$t] = e;
5717
5717
  } else
5718
5718
  da(), !(e.flags & 128) && (e.memoizedState = null), e.flags |= 4;
@@ -5722,15 +5722,15 @@ function Zv(t, e, n) {
5722
5722
  if (!t)
5723
5723
  return e.flags & 256 ? (ye(e), e) : (ye(e), null);
5724
5724
  if (e.flags & 128)
5725
- throw Error(O(558));
5725
+ throw Error(I(558));
5726
5726
  }
5727
5727
  return xt(e), null;
5728
5728
  case 13:
5729
5729
  if (a = e.memoizedState, t === null || t.memoizedState !== null && t.memoizedState.dehydrated !== null) {
5730
5730
  if (l = _a(e), a !== null && a.dehydrated !== null) {
5731
5731
  if (t === null) {
5732
- if (!l) throw Error(O(318));
5733
- if (l = e.memoizedState, l = l !== null ? l.dehydrated : null, !l) throw Error(O(317));
5732
+ if (!l) throw Error(I(318));
5733
+ if (l = e.memoizedState, l = l !== null ? l.dehydrated : null, !l) throw Error(I(317));
5734
5734
  l[$t] = e;
5735
5735
  } else
5736
5736
  da(), !(e.flags & 128) && (e.memoizedState = null), e.flags |= 4;
@@ -5750,7 +5750,7 @@ function Zv(t, e, n) {
5750
5750
  if (l = (e.flags & 128) !== 0, o = a.rendering, o === null)
5751
5751
  if (l) Nl(a, !1);
5752
5752
  else {
5753
- if (It !== 0 || t !== null && t.flags & 128)
5753
+ if (Ot !== 0 || t !== null && t.flags & 128)
5754
5754
  for (t = e.child; t !== null; ) {
5755
5755
  if (o = Zr(t), o !== null) {
5756
5756
  for (e.flags |= 128, Nl(a, !1), t = o.updateQueue, e.updateQueue = t, rr(e, t), e.subtreeFlags = 0, t = n, n = e.child; n !== null; )
@@ -5787,7 +5787,7 @@ function Zv(t, e, n) {
5787
5787
  case 30:
5788
5788
  return null;
5789
5789
  }
5790
- throw Error(O(156, e.tag));
5790
+ throw Error(I(156, e.tag));
5791
5791
  }
5792
5792
  function Kv(t, e) {
5793
5793
  switch (zu(e), e.tag) {
@@ -5802,14 +5802,14 @@ function Kv(t, e) {
5802
5802
  case 31:
5803
5803
  if (e.memoizedState !== null) {
5804
5804
  if (ye(e), e.alternate === null)
5805
- throw Error(O(340));
5805
+ throw Error(I(340));
5806
5806
  da();
5807
5807
  }
5808
5808
  return t = e.flags, t & 65536 ? (e.flags = t & -65537 | 128, e) : null;
5809
5809
  case 13:
5810
5810
  if (ye(e), t = e.memoizedState, t !== null && t.dehydrated !== null) {
5811
5811
  if (e.alternate === null)
5812
- throw Error(O(340));
5812
+ throw Error(I(340));
5813
5813
  da();
5814
5814
  }
5815
5815
  return t = e.flags, t & 65536 ? (e.flags = t & -65537 | 128, e) : null;
@@ -6044,7 +6044,7 @@ function xy(t) {
6044
6044
  }
6045
6045
  var ln = !1, jt = !1, bc = !1, Yd = typeof WeakSet == "function" ? WeakSet : Set, Gt = null;
6046
6046
  function Qv(t, e) {
6047
- if (t = t.containerInfo, Gs = ci, t = im(t), Ou(t)) {
6047
+ if (t = t.containerInfo, Gs = ci, t = im(t), Iu(t)) {
6048
6048
  if ("selectionStart" in t)
6049
6049
  var n = {
6050
6050
  start: t.selectionStart,
@@ -6139,7 +6139,7 @@ function Qv(t, e) {
6139
6139
  case 17:
6140
6140
  break;
6141
6141
  default:
6142
- if (t & 1024) throw Error(O(163));
6142
+ if (t & 1024) throw Error(I(163));
6143
6143
  }
6144
6144
  if (t = e.sibling, t !== null) {
6145
6145
  t.return = e.return, Gt = t;
@@ -6251,7 +6251,7 @@ function Je(t, e, n) {
6251
6251
  function My(t, e, n) {
6252
6252
  if (xe && typeof xe.onCommitFiberUnmount == "function")
6253
6253
  try {
6254
- xe.onCommitFiberUnmount(Io, n);
6254
+ xe.onCommitFiberUnmount(Oo, n);
6255
6255
  } catch {
6256
6256
  }
6257
6257
  switch (n.tag) {
@@ -6384,7 +6384,7 @@ function $v(t) {
6384
6384
  case 22:
6385
6385
  return t = t.stateNode, e = t._retryCache, e === null && (e = t._retryCache = new Yd()), e;
6386
6386
  default:
6387
- throw Error(O(435, t.tag));
6387
+ throw Error(I(435, t.tag));
6388
6388
  }
6389
6389
  }
6390
6390
  function ir(t, e) {
@@ -6420,7 +6420,7 @@ function re(t, e) {
6420
6420
  }
6421
6421
  i = i.return;
6422
6422
  }
6423
- if (_t === null) throw Error(O(160));
6423
+ if (_t === null) throw Error(I(160));
6424
6424
  My(o, r, l), _t = null, ce = !1, o = l.alternate, o !== null && (o.return = null), l.return = null;
6425
6425
  }
6426
6426
  if (e.subtreeFlags & 13886)
@@ -6486,7 +6486,7 @@ function Ty(t, e) {
6486
6486
  o = l.createElement(a), Jt(o, a, n), l.head.appendChild(o);
6487
6487
  break;
6488
6488
  default:
6489
- throw Error(O(468, a));
6489
+ throw Error(I(468, a));
6490
6490
  }
6491
6491
  o[$t] = t, Vt(o), a = o;
6492
6492
  }
@@ -6544,7 +6544,7 @@ function Ty(t, e) {
6544
6544
  case 6:
6545
6545
  if (re(e, t), ie(t), a & 4) {
6546
6546
  if (t.stateNode === null)
6547
- throw Error(O(162));
6547
+ throw Error(I(162));
6548
6548
  a = t.memoizedProps, n = t.stateNode;
6549
6549
  try {
6550
6550
  n.nodeValue = a;
@@ -6650,7 +6650,7 @@ function ie(t) {
6650
6650
  }
6651
6651
  a = a.return;
6652
6652
  }
6653
- if (n == null) throw Error(O(160));
6653
+ if (n == null) throw Error(I(160));
6654
6654
  switch (n.tag) {
6655
6655
  case 27:
6656
6656
  var l = n.stateNode, o = gc(t);
@@ -6672,7 +6672,7 @@ function ie(t) {
6672
6672
  );
6673
6673
  break;
6674
6674
  default:
6675
- throw Error(O(161));
6675
+ throw Error(I(161));
6676
6676
  }
6677
6677
  } catch (u) {
6678
6678
  ft(t, t.return, u);
@@ -7083,7 +7083,7 @@ function wy(t, e, n) {
7083
7083
  );
7084
7084
  }
7085
7085
  }
7086
- function Oy(t) {
7086
+ function Iy(t) {
7087
7087
  var e = t.alternate;
7088
7088
  if (e !== null && (t = e.child, t !== null)) {
7089
7089
  e.child = null;
@@ -7103,13 +7103,13 @@ function Cl(t) {
7103
7103
  t
7104
7104
  );
7105
7105
  }
7106
- Oy(t);
7106
+ Iy(t);
7107
7107
  }
7108
7108
  if (t.subtreeFlags & 10256)
7109
7109
  for (t = t.child; t !== null; )
7110
- Iy(t), t = t.sibling;
7110
+ Oy(t), t = t.sibling;
7111
7111
  }
7112
- function Iy(t) {
7112
+ function Oy(t) {
7113
7113
  switch (t.tag) {
7114
7114
  case 0:
7115
7115
  case 11:
@@ -7124,13 +7124,13 @@ function Iy(t) {
7124
7124
  break;
7125
7125
  case 22:
7126
7126
  var e = t.stateNode;
7127
- t.memoizedState !== null && e._visibility & 2 && (t.return === null || t.return.tag !== 13) ? (e._visibility &= -3, Or(t)) : Cl(t);
7127
+ t.memoizedState !== null && e._visibility & 2 && (t.return === null || t.return.tag !== 13) ? (e._visibility &= -3, Ir(t)) : Cl(t);
7128
7128
  break;
7129
7129
  default:
7130
7130
  Cl(t);
7131
7131
  }
7132
7132
  }
7133
- function Or(t) {
7133
+ function Ir(t) {
7134
7134
  var e = t.deletions;
7135
7135
  if (t.flags & 16) {
7136
7136
  if (e !== null)
@@ -7141,20 +7141,20 @@ function Or(t) {
7141
7141
  t
7142
7142
  );
7143
7143
  }
7144
- Oy(t);
7144
+ Iy(t);
7145
7145
  }
7146
7146
  for (t = t.child; t !== null; ) {
7147
7147
  switch (e = t, e.tag) {
7148
7148
  case 0:
7149
7149
  case 11:
7150
7150
  case 15:
7151
- Zn(8, e, e.return), Or(e);
7151
+ Zn(8, e, e.return), Ir(e);
7152
7152
  break;
7153
7153
  case 22:
7154
- n = e.stateNode, n._visibility & 2 && (n._visibility &= -3, Or(e));
7154
+ n = e.stateNode, n._visibility & 2 && (n._visibility &= -3, Ir(e));
7155
7155
  break;
7156
7156
  default:
7157
- Or(e);
7157
+ Ir(e);
7158
7158
  }
7159
7159
  t = t.sibling;
7160
7160
  }
@@ -7203,7 +7203,7 @@ var Wv = {
7203
7203
  cacheSignal: function() {
7204
7204
  return Ft(Ht).controller.signal;
7205
7205
  }
7206
- }, Fv = typeof WeakMap == "function" ? WeakMap : Map, ct = 0, mt = null, tt = null, et = 0, ut = 0, me = null, wn = !1, Sl = !1, lf = !1, yn = 0, It = 0, Kn = 0, fa = 0, of = 0, be = 0, sl = 0, oo = null, se = null, js = !1, Ci = 0, Cy = 0, Pr = 1 / 0, Jr = null, Bn = null, Ut = 0, jn = null, ul = null, fn = 0, Hs = 0, Ys = null, Dy = null, ro = 0, Us = null;
7206
+ }, Fv = typeof WeakMap == "function" ? WeakMap : Map, ct = 0, mt = null, tt = null, et = 0, ut = 0, me = null, wn = !1, Sl = !1, lf = !1, yn = 0, Ot = 0, Kn = 0, fa = 0, of = 0, be = 0, sl = 0, oo = null, se = null, js = !1, Ci = 0, Cy = 0, Pr = 1 / 0, Jr = null, Bn = null, Ut = 0, jn = null, ul = null, fn = 0, Hs = 0, Ys = null, Dy = null, ro = 0, Us = null;
7207
7207
  function Se() {
7208
7208
  return ct & 2 && et !== 0 ? et & -et : K.T !== null ? cf() : qp();
7209
7209
  }
@@ -7216,12 +7216,12 @@ function zy() {
7216
7216
  return t = Ae.current, t !== null && (t.flags |= 32), be;
7217
7217
  }
7218
7218
  function ue(t, e, n) {
7219
- (t === mt && (ut === 2 || ut === 9) || t.cancelPendingCommit !== null) && (fl(t, 0), On(
7219
+ (t === mt && (ut === 2 || ut === 9) || t.cancelPendingCommit !== null) && (fl(t, 0), In(
7220
7220
  t,
7221
7221
  et,
7222
7222
  be,
7223
7223
  !1
7224
- )), Co(t, n), (!(ct & 2) || t !== mt) && (t === mt && (!(ct & 2) && (fa |= n), It === 4 && On(
7224
+ )), Co(t, n), (!(ct & 2) || t !== mt) && (t === mt && (!(ct & 2) && (fa |= n), Ot === 4 && In(
7225
7225
  t,
7226
7226
  et,
7227
7227
  be,
@@ -7229,11 +7229,11 @@ function ue(t, e, n) {
7229
7229
  )), $e(t));
7230
7230
  }
7231
7231
  function Ly(t, e, n) {
7232
- if (ct & 6) throw Error(O(327));
7232
+ if (ct & 6) throw Error(I(327));
7233
7233
  var a = !n && (e & 127) === 0 && (e & t.expiredLanes) === 0 || No(t, e), l = a ? tx(t, e) : vc(t, e, !0), o = a;
7234
7234
  do {
7235
7235
  if (l === 0) {
7236
- Sl && !a && On(t, e, 0, !1);
7236
+ Sl && !a && In(t, e, 0, !1);
7237
7237
  break;
7238
7238
  } else {
7239
7239
  if (n = t.current.alternate, o && !Pv(n)) {
@@ -7271,18 +7271,18 @@ function Ly(t, e, n) {
7271
7271
  }
7272
7272
  }
7273
7273
  if (l === 1) {
7274
- fl(t, 0), On(t, e, 0, !0);
7274
+ fl(t, 0), In(t, e, 0, !0);
7275
7275
  break;
7276
7276
  }
7277
7277
  t: {
7278
7278
  switch (a = t, o = l, o) {
7279
7279
  case 0:
7280
7280
  case 1:
7281
- throw Error(O(345));
7281
+ throw Error(I(345));
7282
7282
  case 4:
7283
7283
  if ((e & 4194048) !== e) break;
7284
7284
  case 6:
7285
- On(
7285
+ In(
7286
7286
  a,
7287
7287
  e,
7288
7288
  be,
@@ -7296,10 +7296,10 @@ function Ly(t, e, n) {
7296
7296
  case 5:
7297
7297
  break;
7298
7298
  default:
7299
- throw Error(O(329));
7299
+ throw Error(I(329));
7300
7300
  }
7301
7301
  if ((e & 62914560) === e && (l = Ci + 300 - ve(), 10 < l)) {
7302
- if (On(
7302
+ if (In(
7303
7303
  a,
7304
7304
  e,
7305
7305
  be,
@@ -7388,7 +7388,7 @@ function Ud(t, e, n, a, l, o, r, i, c, s, u, f, d, h) {
7388
7388
  d,
7389
7389
  h
7390
7390
  )
7391
- ), On(t, o, r, !s);
7391
+ ), In(t, o, r, !s);
7392
7392
  return;
7393
7393
  }
7394
7394
  }
@@ -7430,7 +7430,7 @@ function Pv(t) {
7430
7430
  }
7431
7431
  return !0;
7432
7432
  }
7433
- function On(t, e, n, a) {
7433
+ function In(t, e, n, a) {
7434
7434
  e &= ~of, e &= ~fa, t.suspendedLanes |= e, t.pingedLanes &= ~e, a && (t.warmLanes |= e), a = t.expirationTimes;
7435
7435
  for (var l = e; 0 < l; ) {
7436
7436
  var o = 31 - ke(l), r = 1 << o;
@@ -7454,7 +7454,7 @@ function rf() {
7454
7454
  }
7455
7455
  function fl(t, e) {
7456
7456
  var n = t.timeoutHandle;
7457
- n !== -1 && (t.timeoutHandle = -1, bx(n)), n = t.cancelPendingCommit, n !== null && (t.cancelPendingCommit = null, n()), fn = 0, rf(), mt = t, tt = n = sn(t.current, null), et = e, ut = 0, me = null, wn = !1, Sl = No(t, e), lf = !1, sl = be = of = fa = Kn = It = 0, se = oo = null, js = !1, e & 8 && (e |= e & 32);
7457
+ n !== -1 && (t.timeoutHandle = -1, bx(n)), n = t.cancelPendingCommit, n !== null && (t.cancelPendingCommit = null, n()), fn = 0, rf(), mt = t, tt = n = sn(t.current, null), et = e, ut = 0, me = null, wn = !1, Sl = No(t, e), lf = !1, sl = be = of = fa = Kn = Ot = 0, se = oo = null, js = !1, e & 8 && (e |= e & 32);
7458
7458
  var a = t.entangledLanes;
7459
7459
  if (a !== 0)
7460
7460
  for (t = t.entanglements, a &= e; 0 < a; ) {
@@ -7464,9 +7464,9 @@ function fl(t, e) {
7464
7464
  return yn = e, Ti(), n;
7465
7465
  }
7466
7466
  function By(t, e) {
7467
- W = null, K.H = bo, e === kl || e === Ei ? (e = vd(), ut = 3) : e === ju ? (e = vd(), ut = 4) : ut = e === tf ? 8 : e !== null && typeof e == "object" && typeof e.then == "function" ? 6 : 1, me = e, tt === null && (It = 1, $r(
7467
+ W = null, K.H = bo, e === kl || e === Ei ? (e = vd(), ut = 3) : e === ju ? (e = vd(), ut = 4) : ut = e === tf ? 8 : e !== null && typeof e == "object" && typeof e.then == "function" ? 6 : 1, me = e, tt === null && (Ot = 1, $r(
7468
7468
  t,
7469
- Oe(e, t.current)
7469
+ Ie(e, t.current)
7470
7470
  ));
7471
7471
  }
7472
7472
  function jy() {
@@ -7482,7 +7482,7 @@ function Yy() {
7482
7482
  return K.A = Wv, t;
7483
7483
  }
7484
7484
  function ti() {
7485
- It = 4, wn || (et & 4194048) !== et && Ae.current !== null || (Sl = !0), !(Kn & 134217727) && !(fa & 134217727) || mt === null || On(
7485
+ Ot = 4, wn || (et & 4194048) !== et && Ae.current !== null || (Sl = !0), !(Kn & 134217727) && !(fa & 134217727) || mt === null || In(
7486
7486
  mt,
7487
7487
  et,
7488
7488
  be,
@@ -7494,7 +7494,7 @@ function vc(t, e, n) {
7494
7494
  ct |= 2;
7495
7495
  var l = Hy(), o = Yy();
7496
7496
  (mt !== t || et !== e) && (Jr = null, fl(t, e)), e = !1;
7497
- var r = It;
7497
+ var r = Ot;
7498
7498
  t: do
7499
7499
  try {
7500
7500
  if (ut !== 0 && tt !== null) {
@@ -7518,7 +7518,7 @@ function vc(t, e, n) {
7518
7518
  s = ut, ut = 0, me = null, Za(t, i, c, s);
7519
7519
  }
7520
7520
  }
7521
- Jv(), r = It;
7521
+ Jv(), r = Ot;
7522
7522
  break;
7523
7523
  } catch (u) {
7524
7524
  By(t, u);
@@ -7590,10 +7590,10 @@ function tx(t, e) {
7590
7590
  ut = 0, me = null, Za(t, e, o, 6);
7591
7591
  break;
7592
7592
  case 8:
7593
- rf(), It = 6;
7593
+ rf(), Ot = 6;
7594
7594
  break t;
7595
7595
  default:
7596
- throw Error(O(462));
7596
+ throw Error(I(462));
7597
7597
  }
7598
7598
  }
7599
7599
  ex();
@@ -7602,7 +7602,7 @@ function tx(t, e) {
7602
7602
  By(t, u);
7603
7603
  }
7604
7604
  while (!0);
7605
- return cn = Ma = null, K.H = a, K.A = l, ct = n, tt !== null ? 0 : (mt = null, et = 0, Ti(), It);
7605
+ return cn = Ma = null, K.H = a, K.A = l, ct = n, tt !== null ? 0 : (mt = null, et = 0, Ti(), Ot);
7606
7606
  }
7607
7607
  function ex() {
7608
7608
  for (; tt !== null && !Ab(); )
@@ -7654,17 +7654,17 @@ function Za(t, e, n, a) {
7654
7654
  n,
7655
7655
  et
7656
7656
  )) {
7657
- It = 1, $r(
7657
+ Ot = 1, $r(
7658
7658
  t,
7659
- Oe(n, t.current)
7659
+ Ie(n, t.current)
7660
7660
  ), tt = null;
7661
7661
  return;
7662
7662
  }
7663
7663
  } catch (o) {
7664
7664
  if (l !== null) throw tt = l, o;
7665
- It = 1, $r(
7665
+ Ot = 1, $r(
7666
7666
  t,
7667
- Oe(n, t.current)
7667
+ Ie(n, t.current)
7668
7668
  ), tt = null;
7669
7669
  return;
7670
7670
  }
@@ -7696,7 +7696,7 @@ function zi(t) {
7696
7696
  }
7697
7697
  tt = e = t;
7698
7698
  } while (e !== null);
7699
- It === 0 && (It = 5);
7699
+ Ot === 0 && (Ot = 5);
7700
7700
  }
7701
7701
  function Xy(t, e) {
7702
7702
  do {
@@ -7711,17 +7711,17 @@ function Xy(t, e) {
7711
7711
  }
7712
7712
  tt = t = n;
7713
7713
  } while (t !== null);
7714
- It = 6, tt = null;
7714
+ Ot = 6, tt = null;
7715
7715
  }
7716
7716
  function qd(t, e, n, a, l, o, r, i, c) {
7717
7717
  t.cancelPendingCommit = null;
7718
7718
  do
7719
7719
  Li();
7720
7720
  while (Ut !== 0);
7721
- if (ct & 6) throw Error(O(327));
7721
+ if (ct & 6) throw Error(I(327));
7722
7722
  if (e !== null) {
7723
- if (e === t.current) throw Error(O(177));
7724
- if (o = e.lanes | e.childLanes, o |= Iu, Db(
7723
+ if (e === t.current) throw Error(I(177));
7724
+ if (o = e.lanes | e.childLanes, o |= Ou, Db(
7725
7725
  t,
7726
7726
  n,
7727
7727
  o,
@@ -7758,7 +7758,7 @@ function qy() {
7758
7758
  i.ownerDocument.documentElement,
7759
7759
  i
7760
7760
  )) {
7761
- if (c !== null && Ou(i)) {
7761
+ if (c !== null && Iu(i)) {
7762
7762
  var s = c.start, u = c.end;
7763
7763
  if (u === void 0 && (u = s), "selectionStart" in i)
7764
7764
  i.selectionStart = s, i.selectionEnd = Math.min(
@@ -7831,7 +7831,7 @@ function Vy() {
7831
7831
  if (l === 0 && (Bn = null), Mu(n), e = e.stateNode, xe && typeof xe.onCommitFiberRoot == "function")
7832
7832
  try {
7833
7833
  xe.onCommitFiberRoot(
7834
- Io,
7834
+ Oo,
7835
7835
  e,
7836
7836
  void 0,
7837
7837
  (e.current.flags & 128) === 128
@@ -7868,16 +7868,16 @@ function Ky() {
7868
7868
  try {
7869
7869
  st.p = 32 > n ? 32 : n, K.T = null, n = Ys, Ys = null;
7870
7870
  var o = jn, r = fn;
7871
- if (Ut = 0, ul = jn = null, fn = 0, ct & 6) throw Error(O(331));
7871
+ if (Ut = 0, ul = jn = null, fn = 0, ct & 6) throw Error(I(331));
7872
7872
  var i = ct;
7873
- if (ct |= 4, Iy(o.current), Ey(
7873
+ if (ct |= 4, Oy(o.current), Ey(
7874
7874
  o,
7875
7875
  o.current,
7876
7876
  r,
7877
7877
  n
7878
7878
  ), ct = i, Ho(0, !1), xe && typeof xe.onPostCommitFiberRoot == "function")
7879
7879
  try {
7880
- xe.onPostCommitFiberRoot(Io, o);
7880
+ xe.onPostCommitFiberRoot(Oo, o);
7881
7881
  } catch {
7882
7882
  }
7883
7883
  return !0;
@@ -7886,7 +7886,7 @@ function Ky() {
7886
7886
  }
7887
7887
  }
7888
7888
  function Gd(t, e, n) {
7889
- e = Oe(n, e), e = Ds(t.stateNode, e, 2), t = Ln(t, e, 2), t !== null && (Co(t, 2), $e(t));
7889
+ e = Ie(n, e), e = Ds(t.stateNode, e, 2), t = Ln(t, e, 2), t !== null && (Co(t, 2), $e(t));
7890
7890
  }
7891
7891
  function ft(t, e, n) {
7892
7892
  if (t.tag === 3)
@@ -7903,7 +7903,7 @@ function ft(t, e, n) {
7903
7903
  } else if (e.tag === 1) {
7904
7904
  var a = e.stateNode;
7905
7905
  if (typeof e.type.getDerivedStateFromError == "function" || typeof a.componentDidCatch == "function" && (Bn === null || !Bn.has(a))) {
7906
- t = Oe(n, t), n = cy(2), a = Ln(e, n, 2), a !== null && (sy(
7906
+ t = Ie(n, t), n = cy(2), a = Ln(e, n, 2), a !== null && (sy(
7907
7907
  n,
7908
7908
  a,
7909
7909
  e,
@@ -7927,7 +7927,7 @@ function xc(t, e, n) {
7927
7927
  }
7928
7928
  function nx(t, e, n) {
7929
7929
  var a = t.pingCache;
7930
- a !== null && a.delete(e), t.pingedLanes |= t.suspendedLanes & n, t.warmLanes &= ~n, mt === t && (et & n) === n && (It === 4 || It === 3 && (et & 62914560) === et && 300 > ve() - Ci ? !(ct & 2) && fl(t, 0) : of |= n, sl === et && (sl = 0)), $e(t);
7930
+ a !== null && a.delete(e), t.pingedLanes |= t.suspendedLanes & n, t.warmLanes &= ~n, mt === t && (et & n) === n && (Ot === 4 || Ot === 3 && (et & 62914560) === et && 300 > ve() - Ci ? !(ct & 2) && fl(t, 0) : of |= n, sl === et && (sl = 0)), $e(t);
7931
7931
  }
7932
7932
  function Qy(t, e) {
7933
7933
  e === 0 && (e = Hp()), t = Sa(t, e), t !== null && (Co(t, e), $e(t));
@@ -7951,14 +7951,14 @@ function lx(t, e) {
7951
7951
  a = t.stateNode._retryCache;
7952
7952
  break;
7953
7953
  default:
7954
- throw Error(O(314));
7954
+ throw Error(I(314));
7955
7955
  }
7956
7956
  a !== null && a.delete(e), Qy(t, n);
7957
7957
  }
7958
7958
  function ox(t, e) {
7959
7959
  return ku(t, e);
7960
7960
  }
7961
- var ei = null, Da = null, Xs = !1, ni = !1, kc = !1, In = 0;
7961
+ var ei = null, Da = null, Xs = !1, ni = !1, kc = !1, On = 0;
7962
7962
  function $e(t) {
7963
7963
  t !== Da && t.next === null && (Da === null ? ei = Da = t : Da = Da.next = t), ni = !0, Xs || (Xs = !0, ix());
7964
7964
  }
@@ -7993,12 +7993,12 @@ function rx() {
7993
7993
  function $y() {
7994
7994
  ni = Xs = !1;
7995
7995
  var t = 0;
7996
- In !== 0 && gx() && (t = In);
7996
+ On !== 0 && gx() && (t = On);
7997
7997
  for (var e = ve(), n = null, a = ei; a !== null; ) {
7998
7998
  var l = a.next, o = Wy(a, e);
7999
7999
  o === 0 ? (a.next = null, n === null ? ei = l : n.next = l, l === null && (Da = n)) : (n = a, (t !== 0 || o & 3) && (ni = !0)), a = l;
8000
8000
  }
8001
- Ut !== 0 && Ut !== 5 || Ho(t), In !== 0 && (In = 0);
8001
+ Ut !== 0 && Ut !== 5 || Ho(t), On !== 0 && (On = 0);
8002
8002
  }
8003
8003
  function Wy(t, e) {
8004
8004
  for (var n = t.suspendedLanes, a = t.pingedLanes, l = t.expirationTimes, o = t.pendingLanes & -62914561; 0 < o; ) {
@@ -8057,11 +8057,11 @@ function ix() {
8057
8057
  });
8058
8058
  }
8059
8059
  function cf() {
8060
- if (In === 0) {
8060
+ if (On === 0) {
8061
8061
  var t = rl;
8062
- t === 0 && (t = Po, Po <<= 1, !(Po & 261888) && (Po = 256)), In = t;
8062
+ t === 0 && (t = Po, Po <<= 1, !(Po & 261888) && (Po = 256)), On = t;
8063
8063
  }
8064
- return In;
8064
+ return On;
8065
8065
  }
8066
8066
  function Zd(t) {
8067
8067
  return t == null || typeof t == "symbol" || typeof t == "boolean" ? null : typeof t == "function" ? t : kr("" + t);
@@ -8090,7 +8090,7 @@ function cx(t, e, n, a, l) {
8090
8090
  instance: null,
8091
8091
  listener: function() {
8092
8092
  if (a.defaultPrevented) {
8093
- if (In !== 0) {
8093
+ if (On !== 0) {
8094
8094
  var c = r ? Kd(l, r) : new FormData(l);
8095
8095
  Ns(
8096
8096
  n,
@@ -8394,7 +8394,7 @@ function _c(t, e, n, a, l) {
8394
8394
  t: {
8395
8395
  if (d = t === "mouseover" || t === "pointerover", h = t === "mouseout" || t === "pointerout", d && n !== ys && (p = n.relatedTarget || n.fromElement) && (Ba(p) || p[bl]))
8396
8396
  break t;
8397
- if ((h || d) && (d = u.window === u ? u : (d = u.ownerDocument) ? d.defaultView || d.parentWindow : window, h ? (p = n.relatedTarget || n.toElement, h = s, p = p ? Ba(p) : null, p !== null && (v = Oo(p), g = p.tag, p !== v || g !== 5 && g !== 27 && g !== 6) && (p = null)) : (h = null, p = s), h !== p)) {
8397
+ if ((h || d) && (d = u.window === u ? u : (d = u.ownerDocument) ? d.defaultView || d.parentWindow : window, h ? (p = n.relatedTarget || n.toElement, h = s, p = p ? Ba(p) : null, p !== null && (v = Io(p), g = p.tag, p !== v || g !== 5 && g !== 27 && g !== 6) && (p = null)) : (h = null, p = s), h !== p)) {
8398
8398
  if (g = ed, x = "onMouseLeave", y = "onMouseEnter", m = "mouse", (t === "pointerout" || t === "pointerover") && (g = ad, x = "onPointerLeave", y = "onPointerEnter", m = "pointer"), v = h == null ? d : Xl(h), b = p == null ? d : Xl(p), d = new g(
8399
8399
  x,
8400
8400
  m + "leave",
@@ -8664,9 +8664,9 @@ function dt(t, e, n, a, l, o) {
8664
8664
  case "dangerouslySetInnerHTML":
8665
8665
  if (a != null) {
8666
8666
  if (typeof a != "object" || !("__html" in a))
8667
- throw Error(O(61));
8667
+ throw Error(I(61));
8668
8668
  if (n = a.__html, n != null) {
8669
- if (l.children != null) throw Error(O(60));
8669
+ if (l.children != null) throw Error(I(60));
8670
8670
  t.innerHTML = n;
8671
8671
  }
8672
8672
  }
@@ -8839,9 +8839,9 @@ function qs(t, e, n, a, l, o) {
8839
8839
  case "dangerouslySetInnerHTML":
8840
8840
  if (a != null) {
8841
8841
  if (typeof a != "object" || !("__html" in a))
8842
- throw Error(O(61));
8842
+ throw Error(I(61));
8843
8843
  if (n = a.__html, n != null) {
8844
- if (l.children != null) throw Error(O(60));
8844
+ if (l.children != null) throw Error(I(60));
8845
8845
  t.innerHTML = n;
8846
8846
  }
8847
8847
  }
@@ -8904,7 +8904,7 @@ function Jt(t, e, n) {
8904
8904
  break;
8905
8905
  case "children":
8906
8906
  case "dangerouslySetInnerHTML":
8907
- throw Error(O(137, e));
8907
+ throw Error(I(137, e));
8908
8908
  default:
8909
8909
  dt(t, e, o, r, n, null);
8910
8910
  }
@@ -8940,7 +8940,7 @@ function Jt(t, e, n) {
8940
8940
  case "children":
8941
8941
  case "dangerouslySetInnerHTML":
8942
8942
  if (u != null)
8943
- throw Error(O(137, e));
8943
+ throw Error(I(137, e));
8944
8944
  break;
8945
8945
  default:
8946
8946
  dt(t, e, a, u, n, null);
@@ -8990,7 +8990,7 @@ function Jt(t, e, n) {
8990
8990
  o = i;
8991
8991
  break;
8992
8992
  case "dangerouslySetInnerHTML":
8993
- if (i != null) throw Error(O(91));
8993
+ if (i != null) throw Error(I(91));
8994
8994
  break;
8995
8995
  default:
8996
8996
  dt(t, e, r, i, n, null);
@@ -9046,7 +9046,7 @@ function Jt(t, e, n) {
9046
9046
  switch (s) {
9047
9047
  case "children":
9048
9048
  case "dangerouslySetInnerHTML":
9049
- throw Error(O(137, e));
9049
+ throw Error(I(137, e));
9050
9050
  default:
9051
9051
  dt(t, e, s, a, n, null);
9052
9052
  }
@@ -9120,7 +9120,7 @@ function mx(t, e, n, a) {
9120
9120
  case "children":
9121
9121
  case "dangerouslySetInnerHTML":
9122
9122
  if (h != null)
9123
- throw Error(O(137, e));
9123
+ throw Error(I(137, e));
9124
9124
  break;
9125
9125
  default:
9126
9126
  h !== f && dt(
@@ -9210,7 +9210,7 @@ function mx(t, e, n, a) {
9210
9210
  case "children":
9211
9211
  break;
9212
9212
  case "dangerouslySetInnerHTML":
9213
- if (l != null) throw Error(O(91));
9213
+ if (l != null) throw Error(I(91));
9214
9214
  break;
9215
9215
  default:
9216
9216
  l !== o && dt(t, e, r, l, a, o);
@@ -9274,7 +9274,7 @@ function mx(t, e, n, a) {
9274
9274
  case "children":
9275
9275
  case "dangerouslySetInnerHTML":
9276
9276
  if (d != null)
9277
- throw Error(O(137, e));
9277
+ throw Error(I(137, e));
9278
9278
  break;
9279
9279
  default:
9280
9280
  dt(
@@ -9564,16 +9564,16 @@ function n0(t) {
9564
9564
  function lg(t, e, n) {
9565
9565
  switch (e = li(n), t) {
9566
9566
  case "html":
9567
- if (t = e.documentElement, !t) throw Error(O(452));
9567
+ if (t = e.documentElement, !t) throw Error(I(452));
9568
9568
  return t;
9569
9569
  case "head":
9570
- if (t = e.head, !t) throw Error(O(453));
9570
+ if (t = e.head, !t) throw Error(I(453));
9571
9571
  return t;
9572
9572
  case "body":
9573
- if (t = e.body, !t) throw Error(O(454));
9573
+ if (t = e.body, !t) throw Error(I(454));
9574
9574
  return t;
9575
9575
  default:
9576
- throw Error(O(451));
9576
+ throw Error(I(451));
9577
9577
  }
9578
9578
  }
9579
9579
  function io(t) {
@@ -9593,8 +9593,8 @@ st.d = {
9593
9593
  C: Rx,
9594
9594
  L: Ex,
9595
9595
  m: wx,
9596
- X: Ix,
9597
- S: Ox,
9596
+ X: Ox,
9597
+ S: Ix,
9598
9598
  M: Nx
9599
9599
  };
9600
9600
  function Ax() {
@@ -9676,7 +9676,7 @@ function wx(t, e) {
9676
9676
  }
9677
9677
  }
9678
9678
  }
9679
- function Ox(t, e, n) {
9679
+ function Ix(t, e, n) {
9680
9680
  gn.S(t, e, n);
9681
9681
  var a = Ml;
9682
9682
  if (a && t) {
@@ -9701,7 +9701,7 @@ function Ox(t, e, n) {
9701
9701
  i.loading |= 1;
9702
9702
  }), c.addEventListener("error", function() {
9703
9703
  i.loading |= 2;
9704
- }), i.loading |= 4, Ir(r, e, a);
9704
+ }), i.loading |= 4, Or(r, e, a);
9705
9705
  }
9706
9706
  r = {
9707
9707
  type: "stylesheet",
@@ -9712,7 +9712,7 @@ function Ox(t, e, n) {
9712
9712
  }
9713
9713
  }
9714
9714
  }
9715
- function Ix(t, e) {
9715
+ function Ox(t, e) {
9716
9716
  gn.X(t, e);
9717
9717
  var n = Ml;
9718
9718
  if (n && t) {
@@ -9740,7 +9740,7 @@ function Nx(t, e) {
9740
9740
  }
9741
9741
  function l0(t, e, n, a) {
9742
9742
  var l = (l = Cn.current) ? oi(l) : null;
9743
- if (!l) throw Error(O(446));
9743
+ if (!l) throw Error(I(446));
9744
9744
  switch (t) {
9745
9745
  case "meta":
9746
9746
  case "title":
@@ -9782,11 +9782,11 @@ function l0(t, e, n, a) {
9782
9782
  n,
9783
9783
  r.state
9784
9784
  ))), e && a === null)
9785
- throw Error(O(528, ""));
9785
+ throw Error(I(528, ""));
9786
9786
  return r;
9787
9787
  }
9788
9788
  if (e && a !== null)
9789
- throw Error(O(529, ""));
9789
+ throw Error(I(529, ""));
9790
9790
  return null;
9791
9791
  case "script":
9792
9792
  return e = n.async, n = n.src, typeof n == "string" && e && typeof e != "function" && typeof e != "symbol" ? (e = Al(n), n = $a(
@@ -9798,7 +9798,7 @@ function l0(t, e, n, a) {
9798
9798
  state: null
9799
9799
  }, n.set(e, a)), a) : { type: "void", instance: null, count: 0, state: null };
9800
9800
  default:
9801
- throw Error(O(444, t));
9801
+ throw Error(I(444, t));
9802
9802
  }
9803
9803
  }
9804
9804
  function dl(t) {
@@ -9843,7 +9843,7 @@ function o0(t, e, n) {
9843
9843
  });
9844
9844
  return a = (t.ownerDocument || t).createElement(
9845
9845
  "style"
9846
- ), Vt(a), Jt(a, "style", l), Ir(a, n.precedence, t), e.instance = a;
9846
+ ), Vt(a), Jt(a, "style", l), Or(a, n.precedence, t), e.instance = a;
9847
9847
  case "stylesheet":
9848
9848
  l = dl(n.href);
9849
9849
  var o = t.querySelector(
@@ -9855,7 +9855,7 @@ function o0(t, e, n) {
9855
9855
  var r = o;
9856
9856
  return r._p = new Promise(function(i, c) {
9857
9857
  r.onload = i, r.onerror = c;
9858
- }), Jt(o, "link", a), e.state.loading |= 4, Ir(o, n.precedence, t), e.instance = o;
9858
+ }), Jt(o, "link", a), e.state.loading |= 4, Or(o, n.precedence, t), e.instance = o;
9859
9859
  case "script":
9860
9860
  return o = Al(n.src), (l = t.querySelector(
9861
9861
  Uo(o)
@@ -9863,13 +9863,13 @@ function o0(t, e, n) {
9863
9863
  case "void":
9864
9864
  return null;
9865
9865
  default:
9866
- throw Error(O(443, e.type));
9866
+ throw Error(I(443, e.type));
9867
9867
  }
9868
9868
  else
9869
- e.type === "stylesheet" && !(e.state.loading & 4) && (a = e.instance, e.state.loading |= 4, Ir(a, n.precedence, t));
9869
+ e.type === "stylesheet" && !(e.state.loading & 4) && (a = e.instance, e.state.loading |= 4, Or(a, n.precedence, t));
9870
9870
  return e.instance;
9871
9871
  }
9872
- function Ir(t, e, n) {
9872
+ function Or(t, e, n) {
9873
9873
  for (var a = n.querySelectorAll(
9874
9874
  'link[rel="stylesheet"][data-precedence],style[data-precedence]'
9875
9875
  ), l = a.length ? a[a.length - 1] : null, o = l, r = 0; r < a.length; r++) {
@@ -10156,12 +10156,12 @@ function Fs(t) {
10156
10156
  var si = null;
10157
10157
  function pf(t) {
10158
10158
  if (si = null, t = Ba(t), t !== null) {
10159
- var e = Oo(t);
10159
+ var e = Io(t);
10160
10160
  if (e === null) t = null;
10161
10161
  else {
10162
10162
  var n = e.tag;
10163
10163
  if (n === 13) {
10164
- if (t = Ip(e), t !== null) return t;
10164
+ if (t = Op(e), t !== null) return t;
10165
10165
  t = null;
10166
10166
  } else if (n === 31) {
10167
10167
  if (t = Np(e), t !== null) return t;
@@ -10363,10 +10363,10 @@ function Xx(t, e, n, a, l) {
10363
10363
  function hg(t) {
10364
10364
  var e = Ba(t.target);
10365
10365
  if (e !== null) {
10366
- var n = Oo(e);
10366
+ var n = Io(e);
10367
10367
  if (n !== null) {
10368
10368
  if (e = n.tag, e === 13) {
10369
- if (e = Ip(n), e !== null) {
10369
+ if (e = Op(n), e !== null) {
10370
10370
  t.blockedOn = e, Qf(t.priority, function() {
10371
10371
  s0(n);
10372
10372
  });
@@ -10509,7 +10509,7 @@ function mf(t) {
10509
10509
  }
10510
10510
  Bi.prototype.render = mf.prototype.render = function(t) {
10511
10511
  var e = this._internalRoot;
10512
- if (e === null) throw Error(O(409));
10512
+ if (e === null) throw Error(I(409));
10513
10513
  var n = e.current, a = Se();
10514
10514
  ug(n, a, t, e, null, null);
10515
10515
  };
@@ -10535,7 +10535,7 @@ Bi.prototype.unstable_scheduleHydration = function(t) {
10535
10535
  var h0 = wp.version;
10536
10536
  if (h0 !== "19.2.7")
10537
10537
  throw Error(
10538
- O(
10538
+ I(
10539
10539
  527,
10540
10540
  h0,
10541
10541
  "19.2.7"
@@ -10544,7 +10544,7 @@ if (h0 !== "19.2.7")
10544
10544
  st.findDOMNode = function(t) {
10545
10545
  var e = t._reactInternals;
10546
10546
  if (e === void 0)
10547
- throw typeof t.render == "function" ? Error(O(188)) : (t = Object.keys(t).join(","), Error(O(268, t)));
10547
+ throw typeof t.render == "function" ? Error(I(188)) : (t = Object.keys(t).join(","), Error(I(268, t)));
10548
10548
  return t = vb(e), t = t !== null ? Cp(t) : null, t = t === null ? null : t.stateNode, t;
10549
10549
  };
10550
10550
  var Gx = {
@@ -10558,14 +10558,14 @@ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
10558
10558
  var fr = __REACT_DEVTOOLS_GLOBAL_HOOK__;
10559
10559
  if (!fr.isDisabled && fr.supportsFiber)
10560
10560
  try {
10561
- Io = fr.inject(
10561
+ Oo = fr.inject(
10562
10562
  Gx
10563
10563
  ), xe = fr;
10564
10564
  } catch {
10565
10565
  }
10566
10566
  }
10567
10567
  xi.createRoot = function(t, e) {
10568
- if (!Op(t)) throw Error(O(299));
10568
+ if (!Ip(t)) throw Error(I(299));
10569
10569
  var n = !1, a = "", l = oy, o = ry, r = iy;
10570
10570
  return e != null && (e.unstable_strictMode === !0 && (n = !0), e.identifierPrefix !== void 0 && (a = e.identifierPrefix), e.onUncaughtError !== void 0 && (l = e.onUncaughtError), e.onCaughtError !== void 0 && (o = e.onCaughtError), e.onRecoverableError !== void 0 && (r = e.onRecoverableError)), e = cg(
10571
10571
  t,
@@ -10583,7 +10583,7 @@ xi.createRoot = function(t, e) {
10583
10583
  ), t[bl] = e.current, sf(t), new mf(e);
10584
10584
  };
10585
10585
  xi.hydrateRoot = function(t, e, n) {
10586
- if (!Op(t)) throw Error(O(299));
10586
+ if (!Ip(t)) throw Error(I(299));
10587
10587
  var a = !1, l = "", o = oy, r = ry, i = iy, c = null;
10588
10588
  return n != null && (n.unstable_strictMode === !0 && (a = !0), n.identifierPrefix !== void 0 && (l = n.identifierPrefix), n.onUncaughtError !== void 0 && (o = n.onUncaughtError), n.onCaughtError !== void 0 && (r = n.onCaughtError), n.onRecoverableError !== void 0 && (i = n.onRecoverableError), n.formState !== void 0 && (c = n.formState)), e = cg(
10589
10589
  t,
@@ -10915,7 +10915,7 @@ function wg(t) {
10915
10915
  function M2() {
10916
10916
  return { kills: 0, deaths: 0, dealt: 0, taken: 0 };
10917
10917
  }
10918
- function Og(t, e, n) {
10918
+ function Ig(t, e, n) {
10919
10919
  const a = {};
10920
10920
  for (const [o, r] of Object.entries(t ?? {})) a[o] = { ...r };
10921
10921
  const l = (o) => a[o] ?? (a[o] = M2());
@@ -10985,11 +10985,11 @@ function w2(t, e) {
10985
10985
  }
10986
10986
  } : t;
10987
10987
  }
10988
- function O2(t, e) {
10988
+ function I2(t, e) {
10989
10989
  const n = t.tanks[e.playerId];
10990
10990
  return n ? { ...t, tanks: { ...t.tanks, [e.playerId]: { ...n, aimAngle: e.aimAngle } } } : t;
10991
10991
  }
10992
- function I2(t, e) {
10992
+ function O2(t, e) {
10993
10993
  var c;
10994
10994
  const n = (c = t.sandbox) == null ? void 0 : c.invincible, a = { ...t.tanks }, l = [...t.eliminated], o = { ...t.respawnTokens ?? {} }, r = [];
10995
10995
  for (const s of e.hits) {
@@ -11002,7 +11002,7 @@ function I2(t, e) {
11002
11002
  a[s.playerId] = { ...u, hp: s.hp }, s.hp <= 0 && wg({ playerId: s.playerId, tanks: a, respawnTokens: o, eliminated: l, players: t.players, mode: t.mode });
11003
11003
  }
11004
11004
  }
11005
- const i = Og(t.stats, r, e.attackerId);
11005
+ const i = Ig(t.stats, r, e.attackerId);
11006
11006
  return { ...t, tanks: a, eliminated: l, respawnTokens: o, stats: i };
11007
11007
  }
11008
11008
  function N2(t, e) {
@@ -11084,10 +11084,10 @@ function q2(t, e) {
11084
11084
  const n = { ...t.tanks }, a = [...t.eliminated], l = { ...t.respawnTokens ?? {} }, o = [];
11085
11085
  for (const i of Object.values(t.tanks))
11086
11086
  i.alive && i.y >= e.level && (o.push({ victimId: i.playerId, oldHp: i.hp, newHp: 0, wasAlive: !0 }), wg({ playerId: i.playerId, tanks: n, respawnTokens: l, eliminated: a, players: t.players, mode: t.mode }));
11087
- const r = Og(t.stats, o, void 0);
11087
+ const r = Ig(t.stats, o, void 0);
11088
11088
  return { ...t, waterLevel: e.level, tanks: n, eliminated: a, respawnTokens: l, stats: r };
11089
11089
  }
11090
- function Ig() {
11090
+ function Og() {
11091
11091
  return {
11092
11092
  status: "picking",
11093
11093
  mode: "ffa",
@@ -11123,7 +11123,7 @@ function Ig() {
11123
11123
  function G2(t, e) {
11124
11124
  switch (e.type) {
11125
11125
  case "INIT":
11126
- return { ...Ig(), players: e.players, mode: e.mode, hostId: e.hostId, seed: e.seed, mapId: e.mapId ?? "random", sandbox: e.sandbox, status: "picking" };
11126
+ return { ...Og(), players: e.players, mode: e.mode, hostId: e.hostId, seed: e.seed, mapId: e.mapId ?? "random", sandbox: e.sandbox, status: "picking" };
11127
11127
  case "TANK_PICK":
11128
11128
  return t.players.some((n) => n.id === e.playerId) ? { ...t, picks: { ...t.picks, [e.playerId]: e.model } } : t;
11129
11129
  case "PICKS_DONE":
@@ -11139,9 +11139,9 @@ function G2(t, e) {
11139
11139
  case "TANK_POS":
11140
11140
  return w2(t, e);
11141
11141
  case "TANK_AIM":
11142
- return O2(t, e);
11143
- case "APPLY_DAMAGE":
11144
11142
  return I2(t, e);
11143
+ case "APPLY_DAMAGE":
11144
+ return O2(t, e);
11145
11145
  case "CRATE_SPAWN":
11146
11146
  return j2(t, e);
11147
11147
  case "CRATE_TAKEN":
@@ -11497,7 +11497,7 @@ function Ek(t) {
11497
11497
  function wk(t) {
11498
11498
  return t === "easy" || t === "medium" || t === "hard" ? t : "medium";
11499
11499
  }
11500
- function Ok(t, e = 0) {
11500
+ function Ik(t, e = 0) {
11501
11501
  const n = t.gameState, a = n.selectedModeId === "teamvs" ? "teamvs" : "ffa", l = n.teamAssignments ?? {}, o = n.aiPlayers ?? [], r = t.players.map((u) => ({
11502
11502
  id: u.id,
11503
11503
  name: u.name,
@@ -11545,7 +11545,7 @@ function qg(t) {
11545
11545
  for (let d = f; d < n; d++)
11546
11546
  s[d * e + u] = 1;
11547
11547
  }
11548
- for (const u of i) Ik(s, e, n, u);
11548
+ for (const u of i) Ok(s, e, n, u);
11549
11549
  for (const u of c) Nk(s, e, n, u.x, u.y, u.w, u.h);
11550
11550
  for (const u of o) {
11551
11551
  const f = Math.round(u.x), d = Math.round(u.y), h = Math.round(u.r);
@@ -11560,7 +11560,7 @@ function qg(t) {
11560
11560
  }
11561
11561
  return Ck(s, e, n);
11562
11562
  }
11563
- function Ik(t, e, n, a) {
11563
+ function Ok(t, e, n, a) {
11564
11564
  const l = Math.round(a.x), o = Math.round(a.y), r = Math.round(a.w), i = Math.round(a.h);
11565
11565
  if (r <= 0 || i <= 0) return;
11566
11566
  const c = r / 2, s = l + c;
@@ -11698,7 +11698,7 @@ function Hi(t, e) {
11698
11698
  }
11699
11699
  return n;
11700
11700
  }
11701
- const He = new URL("data:video/mp2t;base64,aW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0Jw0KaW1wb3J0IHsgY3JlYXRlUm9vdCB9IGZyb20gJ3JlYWN0LWRvbS9jbGllbnQnDQppbXBvcnQgdHlwZSB7IE1vdW50Rm4gfSBmcm9tICdAcGxhdGZvcm0vZ2FtZS1zZGsnDQppbXBvcnQgeyBUYW5rcyB9IGZyb20gJy4vY29tcG9uZW50cy9UYW5rcycNCmltcG9ydCB0YW5rc0NzcyBmcm9tICcuL3N0eWxlcy90YW5rcy5jc3M/aW5saW5lJw0KDQpjb25zdCBTVFlMRV9JRCA9ICd0YW5rcy1zdHlsZXMnDQoNCmZ1bmN0aW9uIGluamVjdFN0eWxlcygpOiBIVE1MU3R5bGVFbGVtZW50IHsNCiAgY29uc3QgZXhpc3RpbmcgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZChTVFlMRV9JRCkgYXMgSFRNTFN0eWxlRWxlbWVudCB8IG51bGwNCiAgaWYgKGV4aXN0aW5nKSByZXR1cm4gZXhpc3RpbmcNCiAgY29uc3QgZWwgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdzdHlsZScpDQogIGVsLmlkID0gU1RZTEVfSUQNCiAgZWwudGV4dENvbnRlbnQgPSB0YW5rc0Nzcw0KICBkb2N1bWVudC5oZWFkLmFwcGVuZENoaWxkKGVsKQ0KICByZXR1cm4gZWwNCn0NCg0KZXhwb3J0IGNvbnN0IG1vdW50OiBNb3VudEZuID0gKGNvbnRhaW5lcklkLCBzZGspID0+IHsNCiAgY29uc3QgY29udGFpbmVyID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoY29udGFpbmVySWQpDQogIGlmICghY29udGFpbmVyKSB0aHJvdyBuZXcgRXJyb3IoYHRhbmtzIG1vdW50OiBjb250YWluZXIgIyR7Y29udGFpbmVySWR9IG5vdCBmb3VuZGApDQoNCiAgY29uc3Qgc3R5bGVFbCA9IGluamVjdFN0eWxlcygpDQoNCiAgY29uc3Qgcm9vdCA9IGNyZWF0ZVJvb3QoY29udGFpbmVyKQ0KICByb290LnJlbmRlcihSZWFjdC5jcmVhdGVFbGVtZW50KFRhbmtzLCB7IHNkayB9KSkNCg0KICByZXR1cm4gKCkgPT4gew0KICAgIHJvb3QudW5tb3VudCgpDQogICAgY29udGFpbmVyLmlubmVySFRNTCA9ICcnDQogICAgc3R5bGVFbC5yZW1vdmUoKQ0KICB9DQp9DQo=", import.meta.url).href.replace(/\/+$/, ""), Ea = `${He}/assets/tiles`, wa = `${He}/assets/backgrounds`, Yi = {
11701
+ const He = new URL("data:video/mp2t;base64,aW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JwppbXBvcnQgeyBjcmVhdGVSb290IH0gZnJvbSAncmVhY3QtZG9tL2NsaWVudCcKaW1wb3J0IHR5cGUgeyBNb3VudEZuIH0gZnJvbSAnQHBsYXRmb3JtL2dhbWUtc2RrJwppbXBvcnQgeyBUYW5rcyB9IGZyb20gJy4vY29tcG9uZW50cy9UYW5rcycKaW1wb3J0IHRhbmtzQ3NzIGZyb20gJy4vc3R5bGVzL3RhbmtzLmNzcz9pbmxpbmUnCgpjb25zdCBTVFlMRV9JRCA9ICd0YW5rcy1zdHlsZXMnCgpmdW5jdGlvbiBpbmplY3RTdHlsZXMoKTogSFRNTFN0eWxlRWxlbWVudCB7CiAgY29uc3QgZXhpc3RpbmcgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZChTVFlMRV9JRCkgYXMgSFRNTFN0eWxlRWxlbWVudCB8IG51bGwKICBpZiAoZXhpc3RpbmcpIHJldHVybiBleGlzdGluZwogIGNvbnN0IGVsID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnc3R5bGUnKQogIGVsLmlkID0gU1RZTEVfSUQKICBlbC50ZXh0Q29udGVudCA9IHRhbmtzQ3NzCiAgZG9jdW1lbnQuaGVhZC5hcHBlbmRDaGlsZChlbCkKICByZXR1cm4gZWwKfQoKZXhwb3J0IGNvbnN0IG1vdW50OiBNb3VudEZuID0gKGNvbnRhaW5lcklkLCBzZGspID0+IHsKICBjb25zdCBjb250YWluZXIgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZChjb250YWluZXJJZCkKICBpZiAoIWNvbnRhaW5lcikgdGhyb3cgbmV3IEVycm9yKGB0YW5rcyBtb3VudDogY29udGFpbmVyICMke2NvbnRhaW5lcklkfSBub3QgZm91bmRgKQoKICBjb25zdCBzdHlsZUVsID0gaW5qZWN0U3R5bGVzKCkKCiAgY29uc3Qgcm9vdCA9IGNyZWF0ZVJvb3QoY29udGFpbmVyKQogIHJvb3QucmVuZGVyKFJlYWN0LmNyZWF0ZUVsZW1lbnQoVGFua3MsIHsgc2RrIH0pKQoKICByZXR1cm4gKCkgPT4gewogICAgcm9vdC51bm1vdW50KCkKICAgIGNvbnRhaW5lci5pbm5lckhUTUwgPSAnJwogICAgc3R5bGVFbC5yZW1vdmUoKQogIH0KfQo=", import.meta.url).href.replace(/\/+$/, ""), Ea = `${He}/assets/tiles`, wa = `${He}/assets/backgrounds`, Yi = {
11702
11702
  meadow: {
11703
11703
  tileset: `${Ea}/tileset_01.png`,
11704
11704
  background: `${wa}/background_01.png`,
@@ -11929,7 +11929,7 @@ function Qk(t) {
11929
11929
  return "rgba(255,100,30,1)";
11930
11930
  }
11931
11931
  }
11932
- const Oc = 5, $k = 180;
11932
+ const Ic = 5, $k = 180;
11933
11933
  function au(t, e, n) {
11934
11934
  return Math.min(n, Math.max(e, t));
11935
11935
  }
@@ -11937,7 +11937,7 @@ function Wk(t) {
11937
11937
  return au(t, 0, 1);
11938
11938
  }
11939
11939
  function Fk(t) {
11940
- const e = Number.isFinite(t) ? t : Oc, n = Wk((e - Oc) / ($k - Oc)), a = Math.max(0, e) * 2.4;
11940
+ const e = Number.isFinite(t) ? t : Ic, n = Wk((e - Ic) / ($k - Ic)), a = Math.max(0, e) * 2.4;
11941
11941
  return {
11942
11942
  count: au(Math.round(Math.max(0, e) / 5), 4, 22),
11943
11943
  particleSize: au(a * 0.45, 18, 110),
@@ -12095,7 +12095,7 @@ function en(t, e) {
12095
12095
  return { width: t, height: e };
12096
12096
  }
12097
12097
  }
12098
- function Ic(t, e, n, a) {
12098
+ function Oc(t, e, n, a) {
12099
12099
  const l = _l(e, n);
12100
12100
  if (!l) return t;
12101
12101
  const o = l.getContext("2d");
@@ -12139,15 +12139,15 @@ const bS = 52, Qg = 7, vS = -16, R0 = -24, E0 = Qg / 2, w0 = {
12139
12139
  purple: { name: "#d8b4fe", from: "#c084fc", to: "#9333ea" },
12140
12140
  black: { name: "#e2e8f0", from: "#64748b", to: "#1e293b" }
12141
12141
  };
12142
- function O0(t, e, n, a, l, o) {
12142
+ function I0(t, e, n, a, l, o) {
12143
12143
  const r = Math.min(o, a / 2, l / 2);
12144
12144
  t.beginPath(), t.moveTo(e + r, n), t.arcTo(e + a, n, e + a, n + l, r), t.arcTo(e + a, n + l, e, n + l, r), t.arcTo(e, n + l, e, n, r), t.arcTo(e, n, e + a, n, r), t.closePath();
12145
12145
  }
12146
12146
  function xS(t, e, n, a, l, o, r) {
12147
12147
  const i = Math.max(0.75, Math.min(r, 1.6)), c = bS * i, s = Qg * i, u = e - c / 2, f = n + vS * i, d = Math.max(0, Math.min(1, l));
12148
- if (t.save(), O0(t, u, f, c, s, E0 * i), t.fillStyle = "rgba(2,6,23,0.55)", t.fill(), t.lineWidth = Math.max(1, i), t.strokeStyle = "rgba(255,255,255,0.35)", t.stroke(), d > 0) {
12148
+ if (t.save(), I0(t, u, f, c, s, E0 * i), t.fillStyle = "rgba(2,6,23,0.55)", t.fill(), t.lineWidth = Math.max(1, i), t.strokeStyle = "rgba(255,255,255,0.35)", t.stroke(), d > 0) {
12149
12149
  const h = c * d;
12150
- O0(t, u, f, h, s, E0 * i);
12150
+ I0(t, u, f, h, s, E0 * i);
12151
12151
  const p = w0[o];
12152
12152
  let g = p.from, v = p.to;
12153
12153
  d <= 0.25 ? (g = "#f87171", v = "#dc2626") : d <= 0.5 && (g = "#fbbf24", v = "#d97706");
@@ -12171,9 +12171,9 @@ function RS(t, e, n, a, l, o, r) {
12171
12171
  }
12172
12172
  t.restore();
12173
12173
  }
12174
- const ES = 28, I0 = 36, N0 = 4, wS = 110;
12175
- function OS(t, e, n, a, l, o) {
12176
- const r = Math.floor(o / wS) % N0, i = e.weaponFrame("magnet", r, N0), c = ES * l, s = n.x + Math.cos(a) * I0 * l, u = n.y + Math.sin(a) * I0 * l;
12174
+ const ES = 28, O0 = 36, N0 = 4, wS = 110;
12175
+ function IS(t, e, n, a, l, o) {
12176
+ const r = Math.floor(o / wS) % N0, i = e.weaponFrame("magnet", r, N0), c = ES * l, s = n.x + Math.cos(a) * O0 * l, u = n.y + Math.sin(a) * O0 * l;
12177
12177
  t.save(), t.translate(s, u), t.rotate(a);
12178
12178
  try {
12179
12179
  t.drawImage(i, -c / 2, -c / 2, c, c);
@@ -12181,7 +12181,7 @@ function OS(t, e, n, a, l, o) {
12181
12181
  }
12182
12182
  t.restore();
12183
12183
  }
12184
- const IS = 24, NS = 12, CS = 34 / 144, DS = 0.9, C0 = 4.5, zS = 7e-3, LS = 0.01, BS = 12, jS = 26, D0 = 8, HS = 32, YS = 40, US = 18;
12184
+ const OS = 24, NS = 12, CS = 34 / 144, DS = 0.9, C0 = 4.5, zS = 7e-3, LS = 0.01, BS = 12, jS = 26, D0 = 8, HS = 32, YS = 40, US = 18;
12185
12185
  function $g(t) {
12186
12186
  let e = 0;
12187
12187
  for (let n = 0; n < t.length; n++) e = e * 31 + t.charCodeAt(n) | 0;
@@ -12199,7 +12199,7 @@ function XS(t, e, n, a, l, o, r, i, c, s) {
12199
12199
  }
12200
12200
  t.restore();
12201
12201
  }
12202
- const L = u.hull.w * h, T = L * Xo, D = T / h / u.hull.h, z = u.barrelMount, j = l.facing * (z.x - u.hull.w / 2) * h, B = (z.y - u.hull.h / 2) * h * D, I = Math.cos(E), R = Math.sin(E), N = k.x + j * I - B * R, C = k.y + j * R + B * I, q = Math.atan2(Math.sin(l.aimAngle), Math.cos(l.aimAngle) * l.facing);
12202
+ const L = u.hull.w * h, T = L * Xo, D = T / h / u.hull.h, z = u.barrelMount, j = l.facing * (z.x - u.hull.w / 2) * h, B = (z.y - u.hull.h / 2) * h * D, O = Math.cos(E), R = Math.sin(E), N = k.x + j * O - B * R, C = k.y + j * R + B * O, q = Math.atan2(Math.sin(l.aimAngle), Math.cos(l.aimAngle) * l.facing);
12203
12203
  t.save(), t.translate(N, C), t.rotate(q);
12204
12204
  try {
12205
12205
  const Tt = e.barrel(u.barrelIndex, f), bt = Wn * h, te = Wn * CS * h;
@@ -12213,20 +12213,20 @@ function XS(t, e, n, a, l, o, r, i, c, s) {
12213
12213
  } catch {
12214
12214
  }
12215
12215
  }
12216
- l.drilling && RS(t, e, k, (l.rot ?? 0) + (l.facing === 1 ? 0 : Math.PI), h, o, u.hull.w), l.magnetizing && OS(t, e, k, l.facing === 1 ? 0 : Math.PI, h, o), t.save(), t.translate(k.x, k.y), t.rotate(l.drilling ? l.rot ?? 0 : E), l.facing === 1 && t.scale(-1, 1);
12216
+ l.drilling && RS(t, e, k, (l.rot ?? 0) + (l.facing === 1 ? 0 : Math.PI), h, o, u.hull.w), l.magnetizing && IS(t, e, k, l.facing === 1 ? 0 : Math.PI, h, o), t.save(), t.translate(k.x, k.y), t.rotate(l.drilling ? l.rot ?? 0 : E), l.facing === 1 && t.scale(-1, 1);
12217
12217
  try {
12218
12218
  const Tt = e.tankFrame(l.model, A, f);
12219
12219
  t.drawImage(Tt, -L / 2, -T / 2, L, T);
12220
12220
  } catch {
12221
12221
  }
12222
- const F = u.decalAnchor, Z = 0, G = (F.y - u.hull.h / 2) * h * D, X = IS * h;
12222
+ const F = u.decalAnchor, Z = 0, G = (F.y - u.hull.h / 2) * h * D, X = OS * h;
12223
12223
  try {
12224
12224
  const Tt = e.roundel(l.emoji);
12225
12225
  t.drawImage(Tt, Z - X / 2, G - X / 2, X, X);
12226
12226
  } catch {
12227
12227
  }
12228
12228
  t.restore();
12229
- const nt = d.y - T / 2 * I - L / 2 * Math.abs(R) - NS * h, zt = l.hp / u.hp;
12229
+ const nt = d.y - T / 2 * O - L / 2 * Math.abs(R) - NS * h, zt = l.hp / u.hp;
12230
12230
  xS(t, d.x, nt, l.name, zt, f, h);
12231
12231
  }
12232
12232
  const z0 = 9, L0 = 6.5;
@@ -12499,11 +12499,11 @@ function _M(t, e, n, a, l, o, r, i, c, s, u, f) {
12499
12499
  }
12500
12500
  yM(t, a, l, n.nukeCinematic, performance.now()), n.aimPreview && n.aimPreview.length > 1 && (n.aimBeam ? xk(t, a, l, n.aimPreview, performance.now()) : bk(t, a, l, n.aimPreview, n.aimBlastRadius ?? 0, performance.now())), n.aimTarget && Tk(t, a, l, n.aimTarget, performance.now()), cM(t, e, n, a, l, r), o.draw(t, a, l, n.waterLevel);
12501
12501
  }
12502
- const TM = `${He}/assets/backgrounds/water_tiles_animation.png`, he = 256, lu = 4, RM = 0.4, EM = 0, wM = 64, OM = 1, IM = 1 / 80, NM = "rgba(123,207,255,0.75)", CM = "rgba(30,100,200,0.35)";
12502
+ const TM = `${He}/assets/backgrounds/water_tiles_animation.png`, he = 256, lu = 4, RM = 0.4, EM = 0, wM = 64, IM = 1, OM = 1 / 80, NM = "rgba(123,207,255,0.75)", CM = "rgba(30,100,200,0.35)";
12503
12503
  function DM(t, e, n) {
12504
- const a = (t.offset + n * OM * e) % he;
12504
+ const a = (t.offset + n * IM * e) % he;
12505
12505
  return {
12506
- time: t.time + e * (1 + Math.abs(n) * IM),
12506
+ time: t.time + e * (1 + Math.abs(n) * OM),
12507
12507
  offset: a < 0 ? a + he : a
12508
12508
  };
12509
12509
  }
@@ -12746,13 +12746,13 @@ function uA(t) {
12746
12746
  }
12747
12747
  };
12748
12748
  }
12749
- const J0 = 0.6, fA = 38, dA = "drop-shadow(0 0 7px rgba(90,170,255,0.55)) brightness(1.15) saturate(1.1)", hA = (t) => 1 - Math.pow(1 - t, 3), th = (t) => t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2, Oa = (t) => Math.max(0, Math.min(1, t));
12749
+ const J0 = 0.6, fA = 38, dA = "drop-shadow(0 0 7px rgba(90,170,255,0.55)) brightness(1.15) saturate(1.1)", hA = (t) => 1 - Math.pow(1 - t, 3), th = (t) => t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2, Ia = (t) => Math.max(0, Math.min(1, t));
12750
12750
  function pA(t) {
12751
12751
  const e = [];
12752
12752
  function n(a, l, o, r, i, c, s, u) {
12753
12753
  if (u <= 0 || c <= 0) return;
12754
12754
  const f = l.width / 2, d = l.height;
12755
- a.save(), a.globalAlpha = Oa(u), a.filter = dA, a.translate(r, i), a.rotate(s);
12755
+ a.save(), a.globalAlpha = Ia(u), a.filter = dA, a.translate(r, i), a.rotate(s);
12756
12756
  try {
12757
12757
  a.drawImage(l, o * f, 0, f, d, -c / 2, -c / 2, c, c);
12758
12758
  } catch {
@@ -12775,12 +12775,12 @@ function pA(t) {
12775
12775
  continue;
12776
12776
  }
12777
12777
  if (s.age < s.delay || !i) continue;
12778
- const u = Oa((s.age - s.delay) / J0), f = it(l, o, { x: s.x, y: s.y }), d = fA * 2 * l.zoom;
12778
+ const u = Ia((s.age - s.delay) / J0), f = it(l, o, { x: s.x, y: s.y }), d = fA * 2 * l.zoom;
12779
12779
  if (s.kind === "depart") {
12780
- const h = 0.5 + hA(Oa(u / 0.18)) * 0.6, p = th(Oa((u - 0.18) / 0.82)), g = h * (1 - p * 0.97), v = u * Math.PI * 3.2, y = u > 0.9 ? 1 - (u - 0.9) / 0.1 : 1, m = Oa(u / 0.5), b = d * g;
12780
+ const h = 0.5 + hA(Ia(u / 0.18)) * 0.6, p = th(Ia((u - 0.18) / 0.82)), g = h * (1 - p * 0.97), v = u * Math.PI * 3.2, y = u > 0.9 ? 1 - (u - 0.9) / 0.1 : 1, m = Ia(u / 0.5), b = d * g;
12781
12781
  n(a, i, 0, f.x, f.y, b, v, (1 - m) * y), n(a, i, 1, f.x, f.y, b, v, m * y);
12782
12782
  } else {
12783
- const p = 0.04 + th(Oa(u / 0.6)) * 1.06, g = u * Math.PI * 3.2, v = u > 0.6 ? 1 - (u - 0.6) / 0.4 : 1, y = d * p;
12783
+ const p = 0.04 + th(Ia(u / 0.6)) * 1.06, g = u * Math.PI * 3.2, v = u > 0.6 ? 1 - (u - 0.6) / 0.4 : 1, y = d * p;
12784
12784
  n(a, i, 1, f.x, f.y, y, g, v), n(a, i, 0, f.x, f.y, y * 1.25, -g * 0.6, 0.35 * v);
12785
12785
  }
12786
12786
  }
@@ -12862,10 +12862,10 @@ function TA(t) {
12862
12862
  };
12863
12863
  }
12864
12864
  const RA = 250, EA = 7, wA = 0.5;
12865
- function OA(t) {
12865
+ function IA(t) {
12866
12866
  return t <= 0 || t >= 1 ? 0 : Math.sin(t * Math.PI) ** 0.6;
12867
12867
  }
12868
- function IA() {
12868
+ function OA() {
12869
12869
  const t = /* @__PURE__ */ new Map();
12870
12870
  return {
12871
12871
  add(e, n, a, l, o, r = 0) {
@@ -12877,7 +12877,7 @@ function IA() {
12877
12877
  if (!a || a.length === 0) return { dx: 0, dy: 0 };
12878
12878
  let l = 0, o = 0, r = 0;
12879
12879
  for (const i of a) {
12880
- const c = OA((n - i.start) / RA);
12880
+ const c = IA((n - i.start) / RA);
12881
12881
  if ((n < i.start || c > 0) && (a[r++] = i), c === 0) continue;
12882
12882
  const s = EA * i.mag * c;
12883
12883
  l += -Math.cos(i.angle) * i.facing * s, o += wA * s;
@@ -12939,25 +12939,25 @@ const UA = ["background", "terrain", "entities", "effects"];
12939
12939
  function XA(t, e, n, a) {
12940
12940
  const l = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
12941
12941
  for (const B of UA) {
12942
- const I = document.createElement("canvas");
12943
- I.style.position = "absolute", I.style.inset = "0", t.appendChild(I), l.set(B, I), o.set(B, I.getContext("2d"));
12942
+ const O = document.createElement("canvas");
12943
+ O.style.position = "absolute", O.style.inset = "0", t.appendChild(O), l.set(B, O), o.set(B, O.getContext("2d"));
12944
12944
  }
12945
12945
  let r = [], i = !0;
12946
- const c = Kk(e), s = JM(), u = iA(e), f = uA(e), d = pA(e), h = TA(e), p = LA(e), g = 0.12, v = aS(), y = IA(), m = YA(), b = lS(), x = new Image();
12946
+ const c = Kk(e), s = JM(), u = iA(e), f = uA(e), d = pA(e), h = TA(e), p = LA(e), g = 0.12, v = aS(), y = OA(), m = YA(), b = lS(), x = new Image();
12947
12947
  x.src = Yi[a.themeId].background;
12948
12948
  const k = LM(), E = PM(), A = GM();
12949
- function w(B, I) {
12949
+ function w(B, O) {
12950
12950
  for (const R of l.values())
12951
- R.width = B, R.height = I;
12951
+ R.width = B, R.height = O;
12952
12952
  i = !0;
12953
12953
  }
12954
12954
  function L(B) {
12955
12955
  return o.get(B) ?? null;
12956
12956
  }
12957
- function T(B, I) {
12957
+ function T(B, O) {
12958
12958
  const R = L("background");
12959
12959
  if (!R) return;
12960
- const { w: N, h: C } = I;
12960
+ const { w: N, h: C } = O;
12961
12961
  if (R.clearRect(0, 0, N, C), x.complete && x.naturalWidth > 0) {
12962
12962
  const { dx: q, dy: F, dw: Z, dh: G } = BM(
12963
12963
  B,
@@ -12971,12 +12971,12 @@ function XA(t, e, n, a) {
12971
12971
  }
12972
12972
  } else
12973
12973
  R.fillStyle = "#87ceeb", R.fillRect(0, 0, N, C);
12974
- E.draw(R, B, I);
12974
+ E.draw(R, B, O);
12975
12975
  }
12976
- function D(B, I, R) {
12976
+ function D(B, O, R) {
12977
12977
  const N = L("terrain");
12978
12978
  if (!N) return;
12979
- const { w: C, h: q } = I;
12979
+ const { w: C, h: q } = O;
12980
12980
  if (i)
12981
12981
  n.paintFull(), i = !1, r = [];
12982
12982
  else {
@@ -12992,21 +12992,21 @@ function XA(t, e, n, a) {
12992
12992
  N.restore(), A.draw(N, B, { w: C, h: q }, a.obstacles, a.heights, R);
12993
12993
  }
12994
12994
  }
12995
- function z(B, I, R, N, C) {
12995
+ function z(B, O, R, N, C) {
12996
12996
  const q = L("entities");
12997
- q && (_M(q, e, B, I, R, k, N, v, C, b, y, m), p.render(q, I, R, N));
12997
+ q && (_M(q, e, B, O, R, k, N, v, C, b, y, m), p.render(q, O, R, N));
12998
12998
  }
12999
- function j(B, I, R) {
12999
+ function j(B, O, R) {
13000
13000
  const N = L("effects");
13001
- N && (N.clearRect(0, 0, R.w, R.h), c.update(B), c.render(N, I, R), s.render(N, I, R, B), u.render(N, I, R, B), f.render(N, I, R, B), d.render(N, I, R, B), h.render(N, I, R, B));
13001
+ N && (N.clearRect(0, 0, R.w, R.h), c.update(B), c.render(N, O, R), s.render(N, O, R, B), u.render(N, O, R, B), f.render(N, O, R, B), d.render(N, O, R, B), h.render(N, O, R, B));
13002
13002
  }
13003
13003
  return {
13004
13004
  resize: w,
13005
- render(B, I, R, N = 0) {
13005
+ render(B, O, R, N = 0) {
13006
13006
  const C = l.get("background");
13007
13007
  if (!C) return;
13008
13008
  const q = { w: C.width, h: C.height }, F = performance.now();
13009
- k.update(R, B.wind), E.update(R, B.wind), T(I, q), D(I, q, B.destroyedObstacleIds), z(B, I, q, F, R), j(R, I, q);
13009
+ k.update(R, B.wind), E.update(R, B.wind), T(O, q), D(O, q, B.destroyedObstacleIds), z(B, O, q, F, R), j(R, O, q);
13010
13010
  },
13011
13011
  markTerrainDirty(B) {
13012
13012
  i || r.push(B);
@@ -13014,35 +13014,35 @@ function XA(t, e, n, a) {
13014
13014
  repaintTerrain() {
13015
13015
  i = !0;
13016
13016
  },
13017
- impact(B, I, R, N) {
13017
+ impact(B, O, R, N) {
13018
13018
  if (N) {
13019
- c.emit({ type: "splash", x: B, y: I, count: 12 });
13019
+ c.emit({ type: "splash", x: B, y: O, count: 12 });
13020
13020
  return;
13021
13021
  }
13022
13022
  const C = Fk(R);
13023
- c.emit({ type: "explosion", x: B, y: I, count: C.count, life: C.lifetime, size: C.particleSize, spread: C.spread }), c.emit({ type: "smoke", x: B, y: I, count: Math.min(14, Math.max(6, Math.round(R / 12))), delay: C.lifetime * 0.75 });
13023
+ c.emit({ type: "explosion", x: B, y: O, count: C.count, life: C.lifetime, size: C.particleSize, spread: C.spread }), c.emit({ type: "smoke", x: B, y: O, count: Math.min(14, Math.max(6, Math.round(R / 12))), delay: C.lifetime * 0.75 });
13024
13024
  },
13025
- beam(B, I, R, N) {
13026
- s.add(B, I, R, N);
13025
+ beam(B, O, R, N) {
13026
+ s.add(B, O, R, N);
13027
13027
  },
13028
- punch(B, I, R, N) {
13029
- u.add(B, I, R, N);
13028
+ punch(B, O, R, N) {
13029
+ u.add(B, O, R, N);
13030
13030
  },
13031
- muzzleFlash(B, I, R, N, C, q = 0) {
13032
- f.add(B, I, R, N, C, q / 1e3);
13031
+ muzzleFlash(B, O, R, N, C, q = 0) {
13032
+ f.add(B, O, R, N, C, q / 1e3);
13033
13033
  },
13034
- teleportFx(B, I, R, N) {
13035
- d.add(B, I, "depart"), d.add(R, N, "arrive", g);
13034
+ teleportFx(B, O, R, N) {
13035
+ d.add(B, O, "depart"), d.add(R, N, "arrive", g);
13036
13036
  },
13037
- crateGrab(B, I, R, N, C) {
13038
- h.add(B, I, R, N, C);
13037
+ crateGrab(B, O, R, N, C) {
13038
+ h.add(B, O, R, N, C);
13039
13039
  },
13040
- recoil(B, I, R, N, C = 0) {
13041
- y.add(B, I, R, N, performance.now(), C);
13040
+ recoil(B, O, R, N, C = 0) {
13041
+ y.add(B, O, R, N, performance.now(), C);
13042
13042
  },
13043
- minePlant(B, I, R, N) {
13043
+ minePlant(B, O, R, N) {
13044
13044
  const C = performance.now();
13045
- p.add(B, I, R, C), m.add(N, C);
13045
+ p.add(B, O, R, C), m.add(N, C);
13046
13046
  },
13047
13047
  dispose() {
13048
13048
  c.clear();
@@ -13112,7 +13112,7 @@ function qA(t) {
13112
13112
  if (f) return f;
13113
13113
  const d = t.tanks.get(i);
13114
13114
  if (!d) return en(16, 16);
13115
- const h = d.width / _0, p = Ic(d, h, d.height, c % _0), g = fS(p, s);
13115
+ const h = d.width / _0, p = Oc(d, h, d.height, c % _0), g = fS(p, s);
13116
13116
  return g instanceof OffscreenCanvas && e.set(u, g), g;
13117
13117
  },
13118
13118
  barrel(i, c) {
@@ -13141,7 +13141,7 @@ function qA(t) {
13141
13141
  if (s <= 1) return u;
13142
13142
  const f = (c % s + s) % s, d = `${i}_${f}_${s}`, h = a.get(d);
13143
13143
  if (h) return h;
13144
- const p = Ic(u, u.width / s, u.height, f);
13144
+ const p = Oc(u, u.width / s, u.height, f);
13145
13145
  return p instanceof OffscreenCanvas && a.set(d, p), p;
13146
13146
  },
13147
13147
  explosionFrame(i) {
@@ -13155,7 +13155,7 @@ function qA(t) {
13155
13155
  if (!c) return en(16, 16);
13156
13156
  const s = (i % Vl + Vl) % Vl, u = o.get(s);
13157
13157
  if (u) return u;
13158
- const f = c.width / Vl, d = Ic(c, f, c.height, s);
13158
+ const f = c.width / Vl, d = Oc(c, f, c.height, s);
13159
13159
  return typeof OffscreenCanvas < "u" && d instanceof OffscreenCanvas && o.set(s, d), d;
13160
13160
  },
13161
13161
  muzzleSheet() {
@@ -13593,7 +13593,7 @@ function r1(t) {
13593
13593
  mines: t.mines,
13594
13594
  spawns: t.spawns
13595
13595
  });
13596
- return O_(e).toString(16);
13596
+ return I_(e).toString(16);
13597
13597
  }
13598
13598
  function i1(t, e, n) {
13599
13599
  return {
@@ -13643,13 +13643,13 @@ function w_(t) {
13643
13643
  const r = o.map((i) => i.part.chunk).join("");
13644
13644
  return JSON.parse(r);
13645
13645
  }
13646
- function O_(t) {
13646
+ function I_(t) {
13647
13647
  let e = 2166136261;
13648
13648
  for (let n = 0; n < t.length; n++)
13649
13649
  e ^= t.charCodeAt(n), e = Math.imul(e, 16777619);
13650
13650
  return e >>> 0;
13651
13651
  }
13652
- const I_ = 40, N_ = 0.6, C_ = 2.5, D_ = /* @__PURE__ */ new Set([
13652
+ const O_ = 40, N_ = 0.6, C_ = 2.5, D_ = /* @__PURE__ */ new Set([
13653
13653
  "arc",
13654
13654
  "hitscan",
13655
13655
  "cluster",
@@ -13659,7 +13659,7 @@ const I_ = 40, N_ = 0.6, C_ = 2.5, D_ = /* @__PURE__ */ new Set([
13659
13659
  "scatter"
13660
13660
  ]);
13661
13661
  function z_(t) {
13662
- const e = Math.sqrt(Math.max(0, t) / I_);
13662
+ const e = Math.sqrt(Math.max(0, t) / O_);
13663
13663
  return Math.min(C_, Math.max(N_, e));
13664
13664
  }
13665
13665
  function L_(t) {
@@ -14238,7 +14238,7 @@ function y1(t, e, n, a, l, o) {
14238
14238
  return { x: r, y: u, grounded: s };
14239
14239
  }
14240
14240
  const g1 = pt * 2.5, b1 = Pt * 4;
14241
- function OT(t, e, n, a, l = g1) {
14241
+ function IT(t, e, n, a, l = g1) {
14242
14242
  let o = null, r = l;
14243
14243
  for (const i of n) {
14244
14244
  if (!i.alive || i.playerId === a) continue;
@@ -14247,7 +14247,7 @@ function OT(t, e, n, a, l = g1) {
14247
14247
  }
14248
14248
  return o;
14249
14249
  }
14250
- function IT(t, e, n, a = g1) {
14250
+ function OT(t, e, n, a = g1) {
14251
14251
  let l = null, o = a;
14252
14252
  for (const r of n) {
14253
14253
  if (!r.landed) continue;
@@ -14327,7 +14327,7 @@ const YT = 8, hh = 8;
14327
14327
  function UT(t) {
14328
14328
  const { authority: e, terrain: n, state: a, cmd: l, shooterId: o } = t, r = l.strikeTarget, i = a.tanks[o];
14329
14329
  if (!r || !i) return !1;
14330
- const c = OT(r.x, r.y, Object.values(a.tanks), o), s = IT(r.x, r.y, a.crates ?? []), u = c ? a.tanks[c] : void 0, f = s ? (a.crates ?? []).find((g) => g.id === s) : void 0, d = (g, v) => Math.hypot(g - r.x, v - r.y);
14330
+ const c = IT(r.x, r.y, Object.values(a.tanks), o), s = OT(r.x, r.y, a.crates ?? []), u = c ? a.tanks[c] : void 0, f = s ? (a.crates ?? []).find((g) => g.id === s) : void 0, d = (g, v) => Math.hypot(g - r.x, v - r.y);
14331
14331
  if (!!f && (!u || d(f.x, f.y) < d(u.x, u.y)) && f) {
14332
14332
  const g = CT(i.x, i.y, f.x, (v, y) => n.isSolid(v, y), n.width, n.height);
14333
14333
  if (Math.hypot(g.x - f.x, g.y - f.y) < hh) return !1;
@@ -14539,7 +14539,7 @@ function sR(t, e, n, a, l, o) {
14539
14539
  r.current = l;
14540
14540
  const i = M.useRef(e);
14541
14541
  i.current = e;
14542
- const c = M.useCallback(() => i.current, []), s = M.useRef(null), u = M.useRef(lk()), f = M.useRef(a_()), d = M.useRef(d_()), h = M.useRef(v_()), p = M.useRef(0), g = M.useRef(/* @__PURE__ */ new Map()), v = M.useRef(x_()), y = M.useRef(null), m = M.useRef(mM()), b = M.useRef(null), x = M.useRef(tR(o)).current, k = M.useRef(lR()), E = M.useRef([]), A = M.useRef(null), w = M.useRef(t.me.id), L = M.useRef(null), T = M.useRef(null), D = M.useRef([]), z = M.useRef("arc_shell"), j = M.useRef("arc_shell"), B = M.useRef(""), I = M.useRef(""), R = M.useRef(null), N = M.useRef(null), C = M.useRef(null), q = M.useRef(0), F = M.useRef(0), Z = M.useRef(0), G = M.useRef("cannon"), X = M.useRef(!1), nt = M.useRef([]), zt = M.useRef(0), Tt = M.useRef({ standings: [], draw: !1 }), [, bt] = M.useReducer((V) => V + 1, 0), te = M.useCallback(() => bt(), []), Ye = M.useRef(null);
14542
+ const c = M.useCallback(() => i.current, []), s = M.useRef(null), u = M.useRef(lk()), f = M.useRef(a_()), d = M.useRef(d_()), h = M.useRef(v_()), p = M.useRef(0), g = M.useRef(/* @__PURE__ */ new Map()), v = M.useRef(x_()), y = M.useRef(null), m = M.useRef(mM()), b = M.useRef(null), x = M.useRef(tR(o)).current, k = M.useRef(lR()), E = M.useRef([]), A = M.useRef(null), w = M.useRef(t.me.id), L = M.useRef(null), T = M.useRef(null), D = M.useRef([]), z = M.useRef("arc_shell"), j = M.useRef("arc_shell"), B = M.useRef(""), O = M.useRef(""), R = M.useRef(null), N = M.useRef(null), C = M.useRef(null), q = M.useRef(0), F = M.useRef(0), Z = M.useRef(0), G = M.useRef("cannon"), X = M.useRef(!1), nt = M.useRef([]), zt = M.useRef(0), Tt = M.useRef({ standings: [], draw: !1 }), [, bt] = M.useReducer((V) => V + 1, 0), te = M.useCallback(() => bt(), []), Ye = M.useRef(null);
14543
14543
  Ye.current || (Ye.current = $A(t));
14544
14544
  const We = Ye.current, Ue = M.useCallback((V) => {
14545
14545
  var Q;
@@ -14683,7 +14683,7 @@ function sR(t, e, n, a, l, o) {
14683
14683
  selectedWeaponRef: z,
14684
14684
  selectedCannonRef: j,
14685
14685
  selectedOrdnanceRef: B,
14686
- selectedToolRef: I,
14686
+ selectedToolRef: O,
14687
14687
  cannonAimRef: F,
14688
14688
  ordnanceAimRef: Z,
14689
14689
  engagedSourceRef: G,
@@ -14740,8 +14740,8 @@ function mR({ sdk: t, w: e, setup: n, dispatch: a, canControlRef: l, driveVecRef
14740
14740
  }, [r, e.wire, a]), s = M.useCallback(() => {
14741
14741
  const T = i(), D = e.stateRef.current.tanks[T], z = n.bitmapRef.current;
14742
14742
  if (!D || !z) return;
14743
- const j = rt(e.selectedWeaponRef.current), B = To(gt[D.model], D, e.aimAngleRef.current, D.facing), I = { weaponId: j.id, angle: e.aimAngleRef.current, originX: B.x, originY: B.y, facing: D.facing }, R = Object.values(e.stateRef.current.tanks);
14744
- e.aimPreviewRef.current = dR(I, j, z, e.stateRef.current.wind, 120, R, T);
14743
+ const j = rt(e.selectedWeaponRef.current), B = To(gt[D.model], D, e.aimAngleRef.current, D.facing), O = { weaponId: j.id, angle: e.aimAngleRef.current, originX: B.x, originY: B.y, facing: D.facing }, R = Object.values(e.stateRef.current.tanks);
14744
+ e.aimPreviewRef.current = dR(O, j, z, e.stateRef.current.wind, 120, R, T);
14745
14745
  }, [e, n]), u = M.useCallback((T) => {
14746
14746
  const D = i();
14747
14747
  if (!e.stateRef.current.tanks[D] || rt(e.selectedWeaponRef.current).mechanic === "melee") return;
@@ -14756,7 +14756,7 @@ function mR({ sdk: t, w: e, setup: n, dispatch: a, canControlRef: l, driveVecRef
14756
14756
  }, [l, o]), p = M.useCallback((T) => {
14757
14757
  o.current = l.current ? T : { x: 0, y: 0 };
14758
14758
  }, [l, o]), g = M.useCallback(() => {
14759
- var I;
14759
+ var O;
14760
14760
  const T = e.stateRef.current.tanks[i()];
14761
14761
  if (!T || !l.current) return;
14762
14762
  const D = e.selectedWeaponRef.current;
@@ -14773,7 +14773,7 @@ function mR({ sdk: t, w: e, setup: n, dispatch: a, canControlRef: l, driveVecRef
14773
14773
  if (R && !jg(R, T.x, T.y)) return;
14774
14774
  }
14775
14775
  if (j.mechanic === "strike") {
14776
- e.placementRef.current = ((I = e.placementRef.current) == null ? void 0 : I.weaponId) === D ? null : { source: "weapon", weaponId: D }, e.forceRender();
14776
+ e.placementRef.current = ((O = e.placementRef.current) == null ? void 0 : O.weaponId) === D ? null : { source: "weapon", weaponId: D }, e.forceRender();
14777
14777
  return;
14778
14778
  }
14779
14779
  const B = pR.has(j.mechanic) ? To(gt[T.model], T, e.aimAngleRef.current, T.facing) : { x: T.x, y: T.y };
@@ -14787,7 +14787,7 @@ function mR({ sdk: t, w: e, setup: n, dispatch: a, canControlRef: l, driveVecRef
14787
14787
  facing: T.facing
14788
14788
  }), e.strikeTargetRef.current = null;
14789
14789
  }, [e, l, n]), v = M.useCallback(() => {
14790
- var I;
14790
+ var O;
14791
14791
  const T = i(), D = e.stateRef.current.tanks[T];
14792
14792
  if (!D || !l.current) return;
14793
14793
  const z = e.selectedToolRef.current;
@@ -14809,7 +14809,7 @@ function mR({ sdk: t, w: e, setup: n, dispatch: a, canControlRef: l, driveVecRef
14809
14809
  R && (a({ type: "AMMO_CONSUMED", playerId: T, weaponId: z }), e.wire.send({ type: "ammo_consumed", playerId: T, weaponId: z, seq: Y() })), B("drill", R);
14810
14810
  return;
14811
14811
  }
14812
- e.placementRef.current = ((I = e.placementRef.current) == null ? void 0 : I.weaponId) === z ? null : { source: "tool", weaponId: z }, e.forceRender();
14812
+ e.placementRef.current = ((O = e.placementRef.current) == null ? void 0 : O.weaponId) === z ? null : { source: "tool", weaponId: z }, e.forceRender();
14813
14813
  }, [e, l, a]), y = M.useCallback((T, D) => {
14814
14814
  const z = e.placementRef.current, j = e.stateRef.current.tanks[i()];
14815
14815
  !z || !j || !l.current || (e.strikeTargetRef.current = { x: T, y: D }, e.fire({
@@ -15014,7 +15014,7 @@ function TR(t) {
15014
15014
  }, []);
15015
15015
  }
15016
15016
  const RR = 300, ER = 24, wR = 12;
15017
- function OR() {
15017
+ function IR() {
15018
15018
  const t = /* @__PURE__ */ new Map();
15019
15019
  let e = null, n = !1, a = null, l = 0, o = 0, r = !1;
15020
15020
  function i() {
@@ -15088,7 +15088,7 @@ function Ll(t, e) {
15088
15088
  const n = t.x - e.x, a = t.y - e.y;
15089
15089
  return Math.sqrt(n * n + a * a);
15090
15090
  }
15091
- function IR() {
15091
+ function OR() {
15092
15092
  return { driveDir: 0, aimUp: !1, aimDown: !1, charging: !1, leftHeld: !1, rightHeld: !1, lastDrive: null };
15093
15093
  }
15094
15094
  function yh(t, e) {
@@ -15131,7 +15131,7 @@ function CR(t) {
15131
15131
  e.current = t, M.useEffect(() => {
15132
15132
  const n = e.current.containerRef.current;
15133
15133
  if (!n) return;
15134
- const a = n, l = OR();
15134
+ const a = n, l = IR();
15135
15135
  let o = null;
15136
15136
  const r = (v) => {
15137
15137
  const y = a.getBoundingClientRect();
@@ -15183,7 +15183,7 @@ function CR(t) {
15183
15183
  a.removeEventListener("pointerdown", f), a.removeEventListener("pointermove", d), a.removeEventListener("pointerup", h), a.removeEventListener("pointercancel", p), a.removeEventListener("wheel", u), a.removeEventListener("contextmenu", g), l.reset();
15184
15184
  };
15185
15185
  }, [t.attachKey]), M.useEffect(() => {
15186
- let n = IR();
15186
+ let n = OR();
15187
15187
  const a = (r) => {
15188
15188
  const i = e.current;
15189
15189
  if (!i.ctx().canControl) {
@@ -15557,10 +15557,10 @@ function uE(t, e, n) {
15557
15557
  return fE(a, e, n);
15558
15558
  }
15559
15559
  function fE(t, e, n) {
15560
- const a = qR(t.height, t.ruggedness, P, n), l = t.groundIslands > 0 ? sE(a) : [], o = rE(Ia(n, t.floaters), a, n), r = M1(a, Ia(n, t.caverns), n), i = A1(a, Ia(n, t.platforms), n), c = _1(e, a, r, o, t.spawnOnFloaters, n), { barrels: s, mines: u, obstacles: f } = T1(a, c, {
15561
- obstacles: Ia(n, t.obstacles),
15562
- mines: Ia(n, t.mines),
15563
- barrels: Ia(n, t.barrels)
15560
+ const a = qR(t.height, t.ruggedness, P, n), l = t.groundIslands > 0 ? sE(a) : [], o = rE(Oa(n, t.floaters), a, n), r = M1(a, Oa(n, t.caverns), n), i = A1(a, Oa(n, t.platforms), n), c = _1(e, a, r, o, t.spawnOnFloaters, n), { barrels: s, mines: u, obstacles: f } = T1(a, c, {
15561
+ obstacles: Oa(n, t.obstacles),
15562
+ mines: Oa(n, t.mines),
15563
+ barrels: Oa(n, t.barrels)
15564
15564
  }, n);
15565
15565
  return {
15566
15566
  width: P,
@@ -15600,7 +15600,7 @@ function dE(t, e) {
15600
15600
  bridges: []
15601
15601
  };
15602
15602
  }
15603
- function Ia(t, e) {
15603
+ function Oa(t, e) {
15604
15604
  return t.int(e[0], e[1] + 1);
15605
15605
  }
15606
15606
  function gi(t) {
@@ -15864,7 +15864,7 @@ function TE(t) {
15864
15864
  const G = gi(n());
15865
15865
  return G.over ? (g.ready(r()) && (b = !0, m = !0, e.sendAndApply({ type: "game_over", standings: G.standings, draw: G.draw, seq: Y() })), !0) : !1;
15866
15866
  }
15867
- function I() {
15867
+ function O() {
15868
15868
  var zt;
15869
15869
  if (m) return;
15870
15870
  y = !0;
@@ -15926,7 +15926,7 @@ function TE(t) {
15926
15926
  };
15927
15927
  }
15928
15928
  return {
15929
- start: I,
15929
+ start: O,
15930
15930
  stop: R,
15931
15931
  notifyTurnDone: N,
15932
15932
  windowOpen: F,
@@ -16065,8 +16065,8 @@ function Ef(t, e, n, a, l, o, r, i, c, s, u, f) {
16065
16065
  }
16066
16066
  return { bestAngle: d, bestDist: h };
16067
16067
  }
16068
- const wf = -Math.PI * 0.95, Of = Math.PI * 0.15;
16069
- function OE(t, e, n, a, l, o, r, i) {
16068
+ const wf = -Math.PI * 0.95, If = Math.PI * 0.15;
16069
+ function IE(t, e, n, a, l, o, r, i) {
16070
16070
  return Ef(
16071
16071
  t,
16072
16072
  e,
@@ -16077,13 +16077,13 @@ function OE(t, e, n, a, l, o, r, i) {
16077
16077
  r,
16078
16078
  i,
16079
16079
  wf,
16080
- Of,
16080
+ If,
16081
16081
  120,
16082
16082
  { bestAngle: Math.atan2(a - e, Math.abs(n - t)), bestDist: 1 / 0 }
16083
16083
  );
16084
16084
  }
16085
- function IE(t, e, n, a, l, o, r, i, c) {
16086
- const s = (Of - wf) / 120 * 2;
16085
+ function OE(t, e, n, a, l, o, r, i, c) {
16086
+ const s = (If - wf) / 120 * 2;
16087
16087
  return Ef(
16088
16088
  t,
16089
16089
  e,
@@ -16100,7 +16100,7 @@ function IE(t, e, n, a, l, o, r, i, c) {
16100
16100
  );
16101
16101
  }
16102
16102
  function NE(t, e, n, a, l, o, r, i, c) {
16103
- const s = (Of - wf) / 120 * 2 / 3;
16103
+ const s = (If - wf) / 120 * 2 / 3;
16104
16104
  return Ef(
16105
16105
  t,
16106
16106
  e,
@@ -16120,10 +16120,10 @@ function Uc(t) {
16120
16120
  return { angle: t.bestAngle, predictedMissPx: t.bestDist };
16121
16121
  }
16122
16122
  function wh(t, e, n, a, l, o) {
16123
- const { x: r, y: i } = t, { x: c, y: s } = e, u = OE(r, i, c, s, n, a, l, o);
16123
+ const { x: r, y: i } = t, { x: c, y: s } = e, u = IE(r, i, c, s, n, a, l, o);
16124
16124
  if (u.bestDist === 1 / 0) return null;
16125
16125
  if (u.bestDist > 600) return Uc(u);
16126
- const f = IE(r, i, c, s, n, a, l, o, u);
16126
+ const f = OE(r, i, c, s, n, a, l, o, u);
16127
16127
  if (f.bestDist > 200) return Uc(f);
16128
16128
  const d = NE(r, i, c, s, n, a, l, o, f);
16129
16129
  return Uc(d);
@@ -16202,7 +16202,7 @@ function XE(t, e, n) {
16202
16202
  return a;
16203
16203
  }
16204
16204
  const w1 = 200, qE = 2;
16205
- function O1(t, e, n, a, l = _o) {
16205
+ function I1(t, e, n, a, l = _o) {
16206
16206
  if (a === 0) return 1;
16207
16207
  const o = ee(n), r = e + a * l, i = qo(t, r, o, Ao, vg);
16208
16208
  if (i === null)
@@ -16212,12 +16212,12 @@ function O1(t, e, n, a, l = _o) {
16212
16212
  }
16213
16213
  function GE(t, e, n, a, l, o = Pt) {
16214
16214
  if (e === 0) return;
16215
- const r = w1 * n * l, i = ee(t.y), c = O1(a, t.x, t.y, e), s = t.x + e * r * c;
16216
- if (Oh(t, s, i, a, o)) return;
16215
+ const r = w1 * n * l, i = ee(t.y), c = I1(a, t.x, t.y, e), s = t.x + e * r * c;
16216
+ if (Ih(t, s, i, a, o)) return;
16217
16217
  const u = Math.abs(s - t.x), f = Math.min(qE, u);
16218
- f < u && Oh(t, t.x + e * f, i, a, o);
16218
+ f < u && Ih(t, t.x + e * f, i, a, o);
16219
16219
  }
16220
- function Oh(t, e, n, a, l) {
16220
+ function Ih(t, e, n, a, l) {
16221
16221
  if (ik(a, t.x, e, n)) return !1;
16222
16222
  const o = qo(a, e, n, Ao, vg);
16223
16223
  if (o === null)
@@ -16225,7 +16225,7 @@ function Oh(t, e, n, a, l) {
16225
16225
  const r = n - o;
16226
16226
  return r > Ao || a.isSolid(Math.round(e), Math.round(o - ok)) ? !1 : r < 0 && l > Pt && a.isSolid(Math.round(e - l), Math.round(n)) && a.isSolid(Math.round(e + l), Math.round(n)) ? (t.x = e, !0) : (t.x = e, t.y = o - pt, !0);
16227
16227
  }
16228
- function I1(t, e, n, a, l = Pt) {
16228
+ function O1(t, e, n, a, l = Pt) {
16229
16229
  if (t.grounded) {
16230
16230
  if (ba(e, t.x, ee(t.y), l))
16231
16231
  return { fallDamage: 0, drowned: !1 };
@@ -16239,7 +16239,7 @@ function I1(t, e, n, a, l = Pt) {
16239
16239
  }
16240
16240
  return ee(o) >= n ? (t.y = o, { fallDamage: 0, drowned: !0 }) : (t.y = o, { fallDamage: 0, drowned: !1 });
16241
16241
  }
16242
- const Ih = 150, VE = 600, ZE = 60, Nh = 120;
16242
+ const Oh = 150, VE = 600, ZE = 60, Nh = 120;
16243
16243
  function KE(t, e, n) {
16244
16244
  const a = t.tanks[e].model;
16245
16245
  return w1 * gt[a].speedFactor * (n.moveBudgetMs / 1e3);
@@ -16284,8 +16284,8 @@ function $E(t, e, n, a, l, o, r) {
16284
16284
  }
16285
16285
  if (u) {
16286
16286
  const f = Math.abs(u.x - i.x), d = !Fn(a, i.x, i.y, u.x, u.y);
16287
- if ((d || f > VE || f < Ih) && o.next() < l.repositionAggression) {
16288
- const p = u.x >= i.x ? 1 : -1, g = f < Ih && !d ? -p : p;
16287
+ if ((d || f > VE || f < Oh) && o.next() < l.repositionAggression) {
16288
+ const p = u.x >= i.x ? 1 : -1, g = f < Oh && !d ? -p : p;
16289
16289
  return { kind: "reposition", destX: gr(i.x, i.x + g * c, c) };
16290
16290
  }
16291
16291
  }
@@ -16461,8 +16461,8 @@ function E5(t, e, n, a, l, o, r, i, c, s) {
16461
16461
  function w5(t, e) {
16462
16462
  return Object.values(e.tanks).filter((n) => n.alive && yl(e, t, n.playerId)).map((n) => ({ x: n.x, y: n.y }));
16463
16463
  }
16464
- const O5 = 1e6;
16465
- function I5(t) {
16464
+ const I5 = 1e6;
16465
+ function O5(t) {
16466
16466
  return (t.mapId && t.mapId !== "random" ? t.mapId : void 0) ?? (t.sandbox ? "sandbox" : "random");
16467
16467
  }
16468
16468
  function N5(t) {
@@ -16470,7 +16470,7 @@ function N5(t) {
16470
16470
  console.info("TANKS: startMatchAsHost", { hasAuth: !!t.authority(), players: t.getState().players.map((o) => ({ id: o.id, isBot: o.isBot })) });
16471
16471
  const e = t.authority();
16472
16472
  if (!e) return;
16473
- const n = t.getState(), a = uE(I5(n), n.players.length, ga(n.seed));
16473
+ const n = t.getState(), a = uE(O5(n), n.players.length, ga(n.seed));
16474
16474
  t.specRef.current = a, t.dispatch({ type: "PICKS_DONE" });
16475
16475
  const l = t.getState();
16476
16476
  for (const o of LR(l.players, a.spawns, l.mode))
@@ -16505,7 +16505,7 @@ function D1(t) {
16505
16505
  authority: e,
16506
16506
  getMatch: t.getState,
16507
16507
  selfId: t.sdk.me.id,
16508
- rng: ga((t.getState().seed ^ O5) >>> 0),
16508
+ rng: ga((t.getState().seed ^ I5) >>> 0),
16509
16509
  runAiTurn: async (l) => C5(t, l),
16510
16510
  nowMs: () => performance.now(),
16511
16511
  carveLog: t.carveLog,
@@ -16544,9 +16544,9 @@ function D5({ state: t, selfId: e, setup: n, w: a, startedRef: l }) {
16544
16544
  }
16545
16545
  function z1(t, e, n, a, l, o, r) {
16546
16546
  const i = gt[n].hull.w / 2;
16547
- return GE(t, e, gt[n].speedFactor * (a ? 2 : 1), l, r, i), { drowned: I1(t, l, o, r, i).drowned };
16547
+ return GE(t, e, gt[n].speedFactor * (a ? 2 : 1), l, r, i), { drowned: O1(t, l, o, r, i).drowned };
16548
16548
  }
16549
- function If(t, e, n = Sg) {
16549
+ function Of(t, e, n = Sg) {
16550
16550
  const a = n * n;
16551
16551
  return e.filter((l) => {
16552
16552
  if (!l.landed) return !1;
@@ -16623,10 +16623,10 @@ function H5(t, e, n, a, l, o, r = () => {
16623
16623
  o(f.x, f.y, d), h.push({ x: f.x, y: f.y, r: d });
16624
16624
  const B = i();
16625
16625
  if (B.length > 0) {
16626
- const I = Hi({ x: f.x, y: f.y, r: d }, B).filter((R) => !g.has(R));
16627
- if (I.length > 0) {
16628
- for (const R of I) g.add(R);
16629
- l({ type: "obstacle_destroyed", ids: I, seq: Y() }), a({ type: "OBSTACLE_DESTROYED", ids: I }), r(I);
16626
+ const O = Hi({ x: f.x, y: f.y, r: d }, B).filter((R) => !g.has(R));
16627
+ if (O.length > 0) {
16628
+ for (const R of O) g.add(R);
16629
+ l({ type: "obstacle_destroyed", ids: O, seq: Y() }), a({ type: "OBSTACLE_DESTROYED", ids: O }), r(O);
16630
16630
  }
16631
16631
  }
16632
16632
  }
@@ -16644,7 +16644,7 @@ function H5(t, e, n, a, l, o, r = () => {
16644
16644
  const D = L !== void 0 && L !== (k.rot ?? 0);
16645
16645
  if (!(f.x !== k.x || f.y !== k.y || w !== k.facing || D)) return !1;
16646
16646
  a({ type: "TANK_POS", playerId: x, x: f.x, y: f.y, facing: w, ...L !== void 0 ? { rot: L } : {} }), b - u >= j5 && (u = b, l({ type: "tank_pos", playerId: x, x: f.x, y: f.y, facing: w, ...L !== void 0 ? { rot: L } : {} }), h.length > 0 && (l({ type: "carve", circles: h, seq: Y() }), h = []));
16647
- for (const j of If({ x: f.x, y: f.y }, y.crates))
16647
+ for (const j of Of({ x: f.x, y: f.y }, y.crates))
16648
16648
  p.has(j.id) || (p.add(j.id), l({ type: "crate_taken", crateId: j.id, byId: x, seq: Y() }), a({ type: "CRATE_TAKEN", crateId: j.id, byId: x }));
16649
16649
  return !0;
16650
16650
  }
@@ -16672,7 +16672,7 @@ function U5(t) {
16672
16672
  if (g)
16673
16673
  return Nf(t, l, e.x, e.y, d), { arrived: !1, blocked: !1, drowned: !0 };
16674
16674
  (e.x !== s.x || e.y !== s.y || d !== s.facing) && (t.dispatch({ type: "TANK_POS", playerId: l, x: e.x, y: e.y, facing: d }), c - n.ms >= Y5 && (n.ms = c, t.send({ type: "tank_pos", playerId: l, x: e.x, y: e.y, facing: d })));
16675
- for (const y of If({ x: e.x, y: e.y }, r.crates))
16675
+ for (const y of Of({ x: e.x, y: e.y }, r.crates))
16676
16676
  a.has(y.id) || (a.add(y.id), t.send({ type: "crate_taken", crateId: y.id, byId: l, seq: Y() }), t.dispatch({ type: "CRATE_TAKEN", crateId: y.id, byId: l }));
16677
16677
  return { arrived: h, blocked: p, drowned: g };
16678
16678
  }
@@ -16811,7 +16811,7 @@ function K5(t) {
16811
16811
  }
16812
16812
  const w = k !== (h.rot ?? 0);
16813
16813
  (e.x !== h.x || e.y !== h.y || x !== h.facing || w) && (t.dispatch({ type: "TANK_POS", playerId: i, x: e.x, y: e.y, facing: x, rot: k }), d - n.ms >= V5 && (n.ms = d, t.send({ type: "tank_pos", playerId: i, x: e.x, y: e.y, facing: x, rot: k }), l.length > 0 && (t.send({ type: "carve", circles: l, seq: Y() }), l = [])));
16814
- for (const D of If({ x: e.x, y: e.y }, u.crates))
16814
+ for (const D of Of({ x: e.x, y: e.y }, u.crates))
16815
16815
  o.has(D.id) || (o.add(D.id), t.send({ type: "crate_taken", crateId: D.id, byId: i, seq: Y() }), t.dispatch({ type: "CRATE_TAKEN", crateId: D.id, byId: i }));
16816
16816
  const L = Math.abs(c - e.x) <= g && y === 0, T = b && e.x === E && e.y === A;
16817
16817
  return { arrived: L, blocked: T, drowned: !1 };
@@ -16853,7 +16853,7 @@ function P5(t, e, n = () => null) {
16853
16853
  if (!u.alive || u.playerId === c || u.playerId === s) continue;
16854
16854
  let f = a.get(u.playerId);
16855
16855
  f || (f = { x: u.x, y: u.y, vx: 0, vy: 0, grounded: !0, fallStartY: null }, a.set(u.playerId, f)), f.x = u.x, f.y = u.y;
16856
- const d = I1(f, i, o.waterLevel, r, gt[u.model].hull.w / 2);
16856
+ const d = O1(f, i, o.waterLevel, r, gt[u.model].hull.w / 2);
16857
16857
  f.y !== u.y && e({ type: "TANK_POS", playerId: u.playerId, x: f.x, y: f.y, facing: u.facing }), d.drowned && !l.has(u.playerId) && (l.add(u.playerId), e({ type: "APPLY_DAMAGE", hits: [{ playerId: u.playerId, hp: 0, vx: 0, vy: 0, drowned: !0 }] }));
16858
16858
  }
16859
16859
  }
@@ -16991,8 +16991,8 @@ function Xh(t, e) {
16991
16991
  }
16992
16992
  function bw(t, e = dw, n) {
16993
16993
  var Lf;
16994
- const a = M.useRef(Ok(t, e.matchNo)).current, [l, o] = M.useReducer(G2, void 0, () => ({
16995
- ...Ig(),
16994
+ const a = M.useRef(Ik(t, e.matchNo)).current, [l, o] = M.useReducer(G2, void 0, () => ({
16995
+ ...Og(),
16996
16996
  players: a.players,
16997
16997
  mode: a.mode,
16998
16998
  hostId: a.hostId,
@@ -17142,7 +17142,7 @@ function bw(t, e = dw, n) {
17142
17142
  () => r.bitmapRef.current,
17143
17143
  o,
17144
17144
  () => i.getState().sandbox ? i.controlledIdRef.current : null
17145
- )).current, z = M.useRef(tw(() => r.bitmapRef.current, o)).current, j = M.useRef(cw()).current, B = M.useRef({ past: [], future: [] }), { pickTank: I, setAim: R, drive: N, setDriveVec: C, refreshAimPreview: q, recomputeAimPreview: F, fireSelected: Z, activateTool: G, commitPlacement: X, skipTurn: nt, forceSkipTurn: zt, sandboxSetTank: Tt, sandboxSetBot: bt, sandboxSetVulnerable: te, sandboxDropCrate: Ye, sandboxDropNuke: We, sandboxSetWind: Ue } = mR({ sdk: t, w: i, setup: r, dispatch: o, canControlRef: v, driveVecRef: y }), bn = M.useCallback(() => ({
17145
+ )).current, z = M.useRef(tw(() => r.bitmapRef.current, o)).current, j = M.useRef(cw()).current, B = M.useRef({ past: [], future: [] }), { pickTank: O, setAim: R, drive: N, setDriveVec: C, refreshAimPreview: q, recomputeAimPreview: F, fireSelected: Z, activateTool: G, commitPlacement: X, skipTurn: nt, forceSkipTurn: zt, sandboxSetTank: Tt, sandboxSetBot: bt, sandboxSetVulnerable: te, sandboxDropCrate: Ye, sandboxDropNuke: We, sandboxSetWind: Ue } = mR({ sdk: t, w: i, setup: r, dispatch: o, canControlRef: v, driveVecRef: y }), bn = M.useCallback(() => ({
17146
17146
  match: i.getState(),
17147
17147
  carveLog: [...i.carveLogRef.current]
17148
17148
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -17340,7 +17340,7 @@ function bw(t, e = dw, n) {
17340
17340
  controlledId: p,
17341
17341
  canControl: g,
17342
17342
  sandboxSetControl: E,
17343
- pickTank: I,
17343
+ pickTank: O,
17344
17344
  fire: i.fire,
17345
17345
  fireSelected: Z,
17346
17346
  activateTool: G,
@@ -17478,10 +17478,10 @@ function Mw(t) {
17478
17478
  }
17479
17479
  }
17480
17480
  const Aw = 70, _w = 4.5, Tw = 0.9, Rw = 7e-3, Ew = 34 / 144, ww = 22;
17481
- function Ow(t) {
17481
+ function Iw(t) {
17482
17482
  return Math.floor(t / Aw) % 8;
17483
17483
  }
17484
- function Iw(t, e) {
17484
+ function Ow(t, e) {
17485
17485
  const n = t / 1e3, a = 2 * Math.PI * _w;
17486
17486
  return {
17487
17487
  bobPx: Math.sin(n * a + e) * Tw,
@@ -17489,7 +17489,7 @@ function Iw(t, e) {
17489
17489
  };
17490
17490
  }
17491
17491
  function Nw(t, e, n, a, l, o, r) {
17492
- const { spec: i, colorId: c, emoji: s } = n, u = n.facing ?? 1, f = n.animated ? Ow(r) : 0, d = n.animated ? Iw(r, $g(i.id)) : { bobPx: 0, rockRad: 0 }, h = l + d.bobPx * o, p = d.rockRad, g = i.hull.w * o, v = g * Xo, y = v / o / i.hull.h, m = i.barrelMount, b = u * (m.x - i.hull.w / 2) * o, x = (m.y - i.hull.h / 2) * o * y, k = Math.cos(p), E = Math.sin(p), A = a + b * k - x * E, w = h + b * E + x * k, L = u === 1 ? 0 : Math.PI;
17492
+ const { spec: i, colorId: c, emoji: s } = n, u = n.facing ?? 1, f = n.animated ? Iw(r) : 0, d = n.animated ? Ow(r, $g(i.id)) : { bobPx: 0, rockRad: 0 }, h = l + d.bobPx * o, p = d.rockRad, g = i.hull.w * o, v = g * Xo, y = v / o / i.hull.h, m = i.barrelMount, b = u * (m.x - i.hull.w / 2) * o, x = (m.y - i.hull.h / 2) * o * y, k = Math.cos(p), E = Math.sin(p), A = a + b * k - x * E, w = h + b * E + x * k, L = u === 1 ? 0 : Math.PI;
17493
17493
  t.save(), t.translate(A, w), t.rotate(L);
17494
17494
  try {
17495
17495
  const T = Wn * o, D = Wn * Ew * o;
@@ -17623,7 +17623,7 @@ function Bw({
17623
17623
  const q = C - d.current;
17624
17624
  d.current = null, h.current = !1, q <= -Vh ? k() : q >= Vh && x();
17625
17625
  }
17626
- function I(C) {
17626
+ function O(C) {
17627
17627
  B(C.clientX);
17628
17628
  }
17629
17629
  function R() {
@@ -17642,7 +17642,7 @@ function Bw({
17642
17642
  onKeyDown: D,
17643
17643
  onPointerDown: z,
17644
17644
  onPointerMove: j,
17645
- onPointerUp: I,
17645
+ onPointerUp: O,
17646
17646
  onPointerCancel: R,
17647
17647
  onWheel: N,
17648
17648
  children: [
@@ -18222,7 +18222,7 @@ function Jh(t) {
18222
18222
  const Z = z.current;
18223
18223
  Z && window.clearTimeout(Z.timer);
18224
18224
  }, []);
18225
- function I(Z) {
18225
+ function O(Z) {
18226
18226
  var G, X;
18227
18227
  if (!b) {
18228
18228
  if ((X = (G = Z.target).setPointerCapture) == null || X.call(G, Z.pointerId), a === "aimed")
@@ -18320,7 +18320,7 @@ function Jh(t) {
18320
18320
  "data-testid": `tk-${x}-button`,
18321
18321
  className: `tk-${x}-button${b ? " is-empty" : ""}${k ? " is-charging" : ""}${o ? " is-armed" : ""}${A ? " is-cancel" : ""}${n ? " is-locked" : ""}`,
18322
18322
  "aria-disabled": n,
18323
- onPointerDown: I,
18323
+ onPointerDown: O,
18324
18324
  onPointerMove: R,
18325
18325
  onPointerUp: N,
18326
18326
  onPointerCancel: C,
@@ -18631,22 +18631,22 @@ function w3({ engine: t, meTank: e, canAct: n, alive: a, sandboxInfinite: l }) {
18631
18631
  const [o, r] = M.useState("none"), [i, c] = M.useState(!1), s = () => r("none");
18632
18632
  M.useEffect(() => {
18633
18633
  if (!e) return;
18634
- const I = t.selectedWeaponId, R = e.ammo[I];
18634
+ const O = t.selectedWeaponId, R = e.ammo[O];
18635
18635
  if (R === Number.POSITIVE_INFINITY || (R ?? 0) > 0) return;
18636
- const N = Ag(e.ammo, I, tu(e.ammo));
18637
- N !== I && t.selectWeapon(N);
18636
+ const N = Ag(e.ammo, O, tu(e.ammo));
18637
+ N !== O && t.selectWeapon(N);
18638
18638
  }, [e, t]), M.useEffect(() => {
18639
18639
  if (!e) return;
18640
- const I = t.selectedOrdnanceId, R = _g(e.ammo, I);
18641
- R !== I && t.selectOrdnance(R);
18640
+ const O = t.selectedOrdnanceId, R = _g(e.ammo, O);
18641
+ R !== O && t.selectOrdnance(R);
18642
18642
  }, [e, t]), M.useEffect(() => {
18643
18643
  if (!e) return;
18644
- const I = t.selectedToolId, R = g2(e.ammo, I);
18645
- R !== I && t.selectTool(R);
18644
+ const O = t.selectedToolId, R = g2(e.ammo, O);
18645
+ R !== O && t.selectTool(R);
18646
18646
  }, [e, t]), M.useEffect(() => {
18647
- O3();
18647
+ I3();
18648
18648
  }, []);
18649
- const u = (e == null ? void 0 : e.ammo) ?? {}, f = y2(e ? tu(u) : "arc_shell", l, u), d = f.find((I) => I.category === "cannon"), h = f.filter((I) => I.category === "bombs" || I.category === "strikes"), p = h.flatMap((I) => I.weapons), g = f.find((I) => I.category === "tools"), v = rt(t.selectedWeaponId), y = tp(v.mechanic), m = {
18649
+ const u = (e == null ? void 0 : e.ammo) ?? {}, f = y2(e ? tu(u) : "arc_shell", l, u), d = f.find((O) => O.category === "cannon"), h = f.filter((O) => O.category === "bombs" || O.category === "strikes"), p = h.flatMap((O) => O.weapons), g = f.find((O) => O.category === "tools"), v = rt(t.selectedWeaponId), y = tp(v.mechanic), m = {
18650
18650
  kind: "fire",
18651
18651
  disabled: !n,
18652
18652
  mode: y,
@@ -18671,7 +18671,7 @@ function w3({ engine: t, meTank: e, canAct: n, alive: a, sandboxInfinite: l }) {
18671
18671
  t.setAiming(!1), c(!1);
18672
18672
  },
18673
18673
  onAimDrag: t.adjustAim,
18674
- onOpenPicker: () => r((I) => I === "cannon" ? "none" : "cannon"),
18674
+ onOpenPicker: () => r((O) => O === "cannon" ? "none" : "cannon"),
18675
18675
  pickerHandle: o === "cannon" ? "category" : "none"
18676
18676
  }, b = t.selectedOrdnanceId === "", x = b ? null : rt(t.selectedOrdnanceId), k = x ? tp(x.mechanic) : "placed", E = {
18677
18677
  kind: "ordnance",
@@ -18698,7 +18698,7 @@ function w3({ engine: t, meTank: e, canAct: n, alive: a, sandboxInfinite: l }) {
18698
18698
  t.setAiming(!1), c(!1);
18699
18699
  },
18700
18700
  onAimDrag: t.adjustAim,
18701
- onOpenPicker: () => r((I) => I === "ordnance" ? "none" : "ordnance"),
18701
+ onOpenPicker: () => r((O) => O === "ordnance" ? "none" : "ordnance"),
18702
18702
  pickerHandle: o === "ordnance" ? "category" : "none"
18703
18703
  // single-level: ▲ closed / ▼ open
18704
18704
  }, A = t.selectedToolId ? rt(t.selectedToolId) : null, w = (A == null ? void 0 : A.mechanic) === "teleport" || (A == null ? void 0 : A.mechanic) === "reel" ? "placement" : "mode", L = {
@@ -18715,19 +18715,19 @@ function w3({ engine: t, meTank: e, canAct: n, alive: a, sandboxInfinite: l }) {
18715
18715
  } : () => r("tool"),
18716
18716
  onPlacementAim: t.aimPlacementScreen,
18717
18717
  onPlacementCommit: t.commitPlacementScreen,
18718
- onOpenPicker: () => r((I) => I === "tool" ? "none" : "tool"),
18718
+ onOpenPicker: () => r((O) => O === "tool" ? "none" : "tool"),
18719
18719
  pickerOpen: o === "tool"
18720
- }, T = a && o === "cannon" && d ? /* @__PURE__ */ S.jsx(Jc, { testid: "weapon-picker", items: Pc(d, u, t.selectedWeaponId), accent: M3, accentTo: A3, onPick: (I) => {
18721
- t.selectWeapon(I), s();
18722
- }, onClose: s }) : null, D = h.map((I) => ({ label: p3[I.category], items: Pc(I, u, t.selectedOrdnanceId) })).filter((I) => I.items.length > 0), z = a && o === "ordnance" && D.length > 0 ? /* @__PURE__ */ S.jsx(Jc, { testid: "ordnance-picker", items: [], tierGroups: D, accent: _3, accentTo: T3, onPick: (I) => {
18723
- t.selectOrdnance(I), s();
18724
- }, onClose: s }) : null, j = g ? Pc(g, u, t.selectedToolId) : [], B = a && o === "tool" && j.length > 0 ? /* @__PURE__ */ S.jsx(Jc, { testid: "tool-picker", items: j, accent: R3, accentTo: E3, arcStart: 0.75 * Math.PI, arcEnd: 1.75 * Math.PI, onPick: (I) => {
18725
- t.selectTool(I), t.activateTool(), s();
18720
+ }, T = a && o === "cannon" && d ? /* @__PURE__ */ S.jsx(Jc, { testid: "weapon-picker", items: Pc(d, u, t.selectedWeaponId), accent: M3, accentTo: A3, onPick: (O) => {
18721
+ t.selectWeapon(O), s();
18722
+ }, onClose: s }) : null, D = h.map((O) => ({ label: p3[O.category], items: Pc(O, u, t.selectedOrdnanceId) })).filter((O) => O.items.length > 0), z = a && o === "ordnance" && D.length > 0 ? /* @__PURE__ */ S.jsx(Jc, { testid: "ordnance-picker", items: [], tierGroups: D, accent: _3, accentTo: T3, onPick: (O) => {
18723
+ t.selectOrdnance(O), s();
18724
+ }, onClose: s }) : null, j = g ? Pc(g, u, t.selectedToolId) : [], B = a && o === "tool" && j.length > 0 ? /* @__PURE__ */ S.jsx(Jc, { testid: "tool-picker", items: j, accent: R3, accentTo: E3, arcStart: 0.75 * Math.PI, arcEnd: 1.75 * Math.PI, onPick: (O) => {
18725
+ t.selectTool(O), t.activateTool(), s();
18726
18726
  }, onClose: s }) : null;
18727
18727
  return { aiming: i, fireProps: m, ordnanceProps: E, toolProps: L, firePickerEl: T, ordnancePickerEl: z, toolPickerEl: B };
18728
18728
  }
18729
18729
  let sp = !1;
18730
- function O3() {
18730
+ function I3() {
18731
18731
  var t;
18732
18732
  if (!(sp || typeof Image > "u")) {
18733
18733
  sp = !0;
@@ -18744,12 +18744,12 @@ const up = { shown: [], overflow: 0 };
18744
18744
  function ts(t) {
18745
18745
  return { peek: t.shown, overflow: t.overflow };
18746
18746
  }
18747
- const I3 = 1800;
18747
+ const O3 = 1800;
18748
18748
  function N3({ turnKey: t, label: e, isMine: n }) {
18749
18749
  const [a, l] = M.useState(!0);
18750
18750
  return M.useEffect(() => {
18751
18751
  l(!0);
18752
- const o = window.setTimeout(() => l(!1), I3);
18752
+ const o = window.setTimeout(() => l(!1), O3);
18753
18753
  return () => window.clearTimeout(o);
18754
18754
  }, [t]), a ? /* @__PURE__ */ S.jsx("div", { className: `tk-turn-toast ${n ? "is-mine" : ""}`, "data-testid": "tk-turn-toast", children: n ? "Your turn!" : e }) : null;
18755
18755
  }
@@ -18896,7 +18896,7 @@ function U3({ engine: t, sdk: e }) {
18896
18896
  const v = window.setInterval(() => n((y) => y + 1), 250);
18897
18897
  return () => window.clearInterval(v);
18898
18898
  }, []);
18899
- const o = t.state, r = o.order[o.turnIdx], i = t.debugSnapshot(), c = i.orch, s = o.tanks[e.me.id], u = t.bitmap(), f = s ? gt[s.model].speedFactor : 0, d = s && u ? O1(u, s.x, s.y, s.facing) : 1, h = f * (s != null && s.boosted ? 2 : 1) * d, p = d > 1.01 ? " ↓" : d < 0.99 ? " ↑" : "", g = ({ k: v, v: y, tid: m }) => /* @__PURE__ */ S.jsxs("div", { className: "tk-dbg-row", children: [
18899
+ const o = t.state, r = o.order[o.turnIdx], i = t.debugSnapshot(), c = i.orch, s = o.tanks[e.me.id], u = t.bitmap(), f = s ? gt[s.model].speedFactor : 0, d = s && u ? I1(u, s.x, s.y, s.facing) : 1, h = f * (s != null && s.boosted ? 2 : 1) * d, p = d > 1.01 ? " ↓" : d < 0.99 ? " ↑" : "", g = ({ k: v, v: y, tid: m }) => /* @__PURE__ */ S.jsxs("div", { className: "tk-dbg-row", children: [
18900
18900
  /* @__PURE__ */ S.jsx("span", { className: "tk-dbg-k", children: v }),
18901
18901
  /* @__PURE__ */ S.jsx("span", { className: "tk-dbg-v", "data-testid": m, children: y })
18902
18902
  ] });