@micjanic/recursive-grid 1.0.6 → 1.0.8

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.
@@ -2,11 +2,11 @@ var Jr = Object.defineProperty;
2
2
  var Xr = (e, t, r) => t in e ? Jr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var B = (e, t, r) => Xr(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import * as cr from "react";
5
- import Zr, { useEffect as Te, useLayoutEffect as Kr, useState as Fe, useRef as W, forwardRef as en, useCallback as tn, useMemo as me, useContext as dr, createContext as rn } from "react";
5
+ import Zr, { useEffect as ue, useLayoutEffect as Kr, useState as Fe, useRef as L, forwardRef as en, useCallback as tn, useMemo as pe, useContext as dr, createContext as rn } from "react";
6
6
  import { useApplication as nn, useTick as sn, extend as an, Application as on } from "@pixi/react";
7
7
  import { Graphics as fr, Particle as hr, Sprite as un, Container as ln, Texture as cn, ParticleContainer as dn } from "pixi.js";
8
8
  import { unstable_batchedUpdates as fn } from "react-dom";
9
- var Oe = { exports: {} }, le = {};
9
+ var Oe = { exports: {} }, ce = {};
10
10
  /**
11
11
  * @license React
12
12
  * react-jsx-runtime.production.js
@@ -18,7 +18,7 @@ var Oe = { exports: {} }, le = {};
18
18
  */
19
19
  var Ft;
20
20
  function hn() {
21
- if (Ft) return le;
21
+ if (Ft) return ce;
22
22
  Ft = 1;
23
23
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
24
24
  function r(n, s, i) {
@@ -36,9 +36,9 @@ function hn() {
36
36
  props: i
37
37
  };
38
38
  }
39
- return le.Fragment = t, le.jsx = r, le.jsxs = r, le;
39
+ return ce.Fragment = t, ce.jsx = r, ce.jsxs = r, ce;
40
40
  }
41
- var ce = {};
41
+ var de = {};
42
42
  /**
43
43
  * @license React
44
44
  * react-jsx-runtime.development.js
@@ -63,7 +63,7 @@ function mn() {
63
63
  return "Profiler";
64
64
  case g:
65
65
  return "StrictMode";
66
- case Q:
66
+ case G:
67
67
  return "Suspense";
68
68
  case I:
69
69
  return "SuspenseList";
@@ -133,7 +133,7 @@ function mn() {
133
133
  return Error("react-stack-top-frame");
134
134
  }
135
135
  function a(o) {
136
- if (G.call(o, "key")) {
136
+ if (Y.call(o, "key")) {
137
137
  var S = Object.getOwnPropertyDescriptor(o, "key").get;
138
138
  if (S && S.isReactWarning) return !1;
139
139
  }
@@ -151,7 +151,7 @@ function mn() {
151
151
  configurable: !0
152
152
  });
153
153
  }
154
- function d() {
154
+ function f() {
155
155
  var o = e(this.type);
156
156
  return Ct[o] || (Ct[o] = !0, console.error(
157
157
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
@@ -167,7 +167,7 @@ function mn() {
167
167
  _owner: T
168
168
  }, (k !== void 0 ? k : null) !== null ? Object.defineProperty(o, "ref", {
169
169
  enumerable: !1,
170
- get: d
170
+ get: f
171
171
  }) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
172
172
  configurable: !1,
173
173
  enumerable: !1,
@@ -190,20 +190,20 @@ function mn() {
190
190
  value: Xe
191
191
  }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
192
192
  }
193
- function m(o, S, E, T, Ie, Xe) {
193
+ function p(o, S, E, T, Ie, Xe) {
194
194
  var k = S.children;
195
195
  if (k !== void 0)
196
196
  if (T)
197
197
  if (He(k)) {
198
198
  for (T = 0; T < k.length; T++)
199
- f(k[T]);
199
+ h(k[T]);
200
200
  Object.freeze && Object.freeze(k);
201
201
  } else
202
202
  console.error(
203
203
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
204
204
  );
205
- else f(k);
206
- if (G.call(S, "key")) {
205
+ else h(k);
206
+ if (Y.call(S, "key")) {
207
207
  k = e(o);
208
208
  var ne = Object.keys(S).filter(function(Hr) {
209
209
  return Hr !== "key";
@@ -238,27 +238,27 @@ React keys must be passed directly to JSX without using spread:
238
238
  Xe
239
239
  );
240
240
  }
241
- function f(o) {
242
- h(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === C && (o._payload.status === "fulfilled" ? h(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
243
- }
244
241
  function h(o) {
242
+ d(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === C && (o._payload.status === "fulfilled" ? d(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
243
+ }
244
+ function d(o) {
245
245
  return typeof o == "object" && o !== null && o.$$typeof === _;
246
246
  }
247
- var p = Zr, _ = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), A = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), Q = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), K = Symbol.for("react.activity"), j = Symbol.for("react.client.reference"), M = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, He = Array.isArray, Je = console.createTask ? console.createTask : function() {
247
+ var m = Zr, _ = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), A = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), K = Symbol.for("react.activity"), j = Symbol.for("react.client.reference"), M = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, He = Array.isArray, Je = console.createTask ? console.createTask : function() {
248
248
  return null;
249
249
  };
250
- p = {
250
+ m = {
251
251
  react_stack_bottom_frame: function(o) {
252
252
  return o();
253
253
  }
254
254
  };
255
- var kt, Ct = {}, It = p.react_stack_bottom_frame.bind(
256
- p,
255
+ var kt, Ct = {}, It = m.react_stack_bottom_frame.bind(
256
+ m,
257
257
  i
258
258
  )(), Ot = Je(n(i)), jt = {};
259
- ce.Fragment = w, ce.jsx = function(o, S, E) {
259
+ de.Fragment = w, de.jsx = function(o, S, E) {
260
260
  var T = 1e4 > M.recentlyCreatedOwnerStacks++;
261
- return m(
261
+ return p(
262
262
  o,
263
263
  S,
264
264
  E,
@@ -266,9 +266,9 @@ React keys must be passed directly to JSX without using spread:
266
266
  T ? Error("react-stack-top-frame") : It,
267
267
  T ? Je(n(o)) : Ot
268
268
  );
269
- }, ce.jsxs = function(o, S, E) {
269
+ }, de.jsxs = function(o, S, E) {
270
270
  var T = 1e4 > M.recentlyCreatedOwnerStacks++;
271
- return m(
271
+ return p(
272
272
  o,
273
273
  S,
274
274
  E,
@@ -277,7 +277,7 @@ React keys must be passed directly to JSX without using spread:
277
277
  T ? Je(n(o)) : Ot
278
278
  );
279
279
  };
280
- })()), ce;
280
+ })()), de;
281
281
  }
282
282
  var Nt;
283
283
  function pn() {
@@ -405,7 +405,7 @@ var _n = (e, t, r) => Object.defineProperty(e, t, { value: r, writable: !0, conf
405
405
  num: (e) => typeof e == "number",
406
406
  und: (e) => e === void 0
407
407
  };
408
- function Y(e, t) {
408
+ function W(e, t) {
409
409
  if (c.arr(e)) {
410
410
  if (!c.arr(t) || e.length !== t.length) return !1;
411
411
  for (let r = 0; r < e.length; r++)
@@ -415,7 +415,7 @@ function Y(e, t) {
415
415
  return e === t;
416
416
  }
417
417
  var x = (e, t) => e.forEach(t);
418
- function L(e, t, r) {
418
+ function Q(e, t, r) {
419
419
  if (c.arr(e)) {
420
420
  for (let n = 0; n < e.length; n++)
421
421
  t.call(r, e[n], `${n}`);
@@ -425,21 +425,21 @@ function L(e, t, r) {
425
425
  e.hasOwnProperty(n) && t.call(r, e[n], n);
426
426
  }
427
427
  var F = (e) => c.und(e) ? [] : c.arr(e) ? e : [e];
428
- function ge(e, t) {
428
+ function ve(e, t) {
429
429
  if (e.size) {
430
430
  const r = Array.from(e);
431
431
  e.clear(), x(r, t);
432
432
  }
433
433
  }
434
- var pe = (e, ...t) => ge(e, (r) => r(...t)), bt = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), wt, _r, Z = null, br = !1, Rt = at, bn = (e) => {
434
+ var ge = (e, ...t) => ve(e, (r) => r(...t)), bt = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), wt, _r, Z = null, br = !1, Rt = at, bn = (e) => {
435
435
  e.to && (_r = e.to), e.now && (b.now = e.now), e.colors !== void 0 && (Z = e.colors), e.skipAnimation != null && (br = e.skipAnimation), e.createStringInterpolator && (wt = e.createStringInterpolator), e.requestAnimationFrame && b.use(e.requestAnimationFrame), e.batchedUpdates && (b.batchedUpdates = e.batchedUpdates), e.willAdvance && (Rt = e.willAdvance), e.frameLoop && (b.frameLoop = e.frameLoop);
436
- }, ve = /* @__PURE__ */ new Set(), N = [], Ke = [], $e = 0, ze = {
436
+ }, ye = /* @__PURE__ */ new Set(), N = [], Ke = [], $e = 0, ze = {
437
437
  get idle() {
438
- return !ve.size && !N.length;
438
+ return !ye.size && !N.length;
439
439
  },
440
440
  /** Advance the given animation on every frame until idle. */
441
441
  start(e) {
442
- $e > e.priority ? (ve.add(e), b.onStart(wn)) : (wr(e), b(ot));
442
+ $e > e.priority ? (ye.add(e), b.onStart(wn)) : (wr(e), b(ot));
443
443
  },
444
444
  /** Advance all animations by the given time. */
445
445
  advance: ot,
@@ -458,11 +458,11 @@ var pe = (e, ...t) => ge(e, (r) => r(...t)), bt = () => typeof window > "u" || !
458
458
  * ☠️ Never call this from within the frameloop.
459
459
  */
460
460
  clear() {
461
- N = [], ve.clear();
461
+ N = [], ye.clear();
462
462
  }
463
463
  };
464
464
  function wn() {
465
- ve.forEach(wr), ve.clear(), b(ot);
465
+ ye.forEach(wr), ye.clear(), b(ot);
466
466
  }
467
467
  function wr(e) {
468
468
  N.includes(e) || Rr(e);
@@ -715,35 +715,35 @@ function qt(e) {
715
715
  const r = (t & 4278190080) >>> 24, n = (t & 16711680) >>> 16, s = (t & 65280) >>> 8, i = (t & 255) / 255;
716
716
  return `rgba(${r}, ${n}, ${s}, ${i})`;
717
717
  }
718
- var be = (e, t, r) => {
718
+ var we = (e, t, r) => {
719
719
  if (c.fun(e))
720
720
  return e;
721
721
  if (c.arr(e))
722
- return be({
722
+ return we({
723
723
  range: e,
724
724
  output: t,
725
725
  extrapolate: r
726
726
  });
727
727
  if (c.str(e.output[0]))
728
728
  return wt(e);
729
- const n = e, s = n.output, i = n.range || [0, 1], a = n.extrapolateLeft || n.extrapolate || "extend", u = n.extrapolateRight || n.extrapolate || "extend", d = n.easing || ((l) => l);
729
+ const n = e, s = n.output, i = n.range || [0, 1], a = n.extrapolateLeft || n.extrapolate || "extend", u = n.extrapolateRight || n.extrapolate || "extend", f = n.easing || ((l) => l);
730
730
  return (l) => {
731
- const m = Fn(l, i);
731
+ const p = Fn(l, i);
732
732
  return jn(
733
733
  l,
734
- i[m],
735
- i[m + 1],
736
- s[m],
737
- s[m + 1],
738
- d,
734
+ i[p],
735
+ i[p + 1],
736
+ s[p],
737
+ s[p + 1],
738
+ f,
739
739
  a,
740
740
  u,
741
741
  n.map
742
742
  );
743
743
  };
744
744
  };
745
- function jn(e, t, r, n, s, i, a, u, d) {
746
- let l = d ? d(e) : e;
745
+ function jn(e, t, r, n, s, i, a, u, f) {
746
+ let l = f ? f(e) : e;
747
747
  if (l < t) {
748
748
  if (a === "identity") return l;
749
749
  a === "clamp" && (l = t);
@@ -761,11 +761,11 @@ function Fn(e, t) {
761
761
  }
762
762
  var Vn = {
763
763
  linear: (e) => e
764
- }, we = Symbol.for("FluidValue.get"), oe = Symbol.for("FluidValue.observers"), V = (e) => !!(e && e[we]), O = (e) => e && e[we] ? e[we]() : e, Mt = (e) => e[oe] || null;
764
+ }, Re = Symbol.for("FluidValue.get"), oe = Symbol.for("FluidValue.observers"), V = (e) => !!(e && e[Re]), O = (e) => e && e[Re] ? e[Re]() : e, Mt = (e) => e[oe] || null;
765
765
  function Nn(e, t) {
766
766
  e.eventObserved ? e.eventObserved(t) : e(t);
767
767
  }
768
- function Re(e, t) {
768
+ function Se(e, t) {
769
769
  const r = e[oe];
770
770
  r && r.forEach((n) => {
771
771
  Nn(n, t);
@@ -777,15 +777,15 @@ var Sr = class {
777
777
  throw Error("Unknown getter");
778
778
  $n(this, e);
779
779
  }
780
- }, $n = (e, t) => xr(e, we, t);
781
- function ue(e, t) {
782
- if (e[we]) {
780
+ }, $n = (e, t) => xr(e, Re, t);
781
+ function le(e, t) {
782
+ if (e[Re]) {
783
783
  let r = e[oe];
784
784
  r || xr(e, oe, r = /* @__PURE__ */ new Set()), r.has(t) || (r.add(t), e.observerAdded && e.observerAdded(r.size, t));
785
785
  }
786
786
  return t;
787
787
  }
788
- function Se(e, t) {
788
+ function xe(e, t) {
789
789
  const r = e[oe];
790
790
  if (r && r.has(t)) {
791
791
  const n = r.size - 1;
@@ -833,11 +833,11 @@ var xr = (e, t, r) => Object.defineProperty(e, t, {
833
833
  return u[a];
834
834
  })
835
835
  ).map(
836
- (i) => be({ ...e, output: i })
836
+ (i) => we({ ...e, output: i })
837
837
  );
838
838
  return (i) => {
839
- var d;
840
- const a = !zt.test(t[0]) && ((d = t.find((l) => zt.test(l))) == null ? void 0 : d.replace(Ve, ""));
839
+ var f;
840
+ const a = !zt.test(t[0]) && ((f = t.find((l) => zt.test(l))) == null ? void 0 : f.replace(Ve, ""));
841
841
  let u = 0;
842
842
  return t[0].replace(
843
843
  Ve,
@@ -868,8 +868,8 @@ function Ge(e) {
868
868
  return c.str(e) && (e[0] == "#" || /\d/.test(e) || // Do not identify a CSS variable as an AnimatedString if its SSR
869
869
  !bt() && Qe.test(e) || e in (Z || {}));
870
870
  }
871
- var xt = bt() ? Te : Kr, Yn = () => {
872
- const e = W(!1);
871
+ var xt = bt() ? ue : Kr, Yn = () => {
872
+ const e = L(!1);
873
873
  return xt(() => (e.current = !0, () => {
874
874
  e.current = !1;
875
875
  }), []), e;
@@ -880,14 +880,14 @@ function Tr() {
880
880
  t.current && e(Math.random());
881
881
  };
882
882
  }
883
- var kr = (e) => Te(e, Wn), Wn = [];
883
+ var kr = (e) => ue(e, Wn), Wn = [];
884
884
  function Lt(e) {
885
- const t = W(void 0);
886
- return Te(() => {
885
+ const t = L(void 0);
886
+ return ue(() => {
887
887
  t.current = e;
888
888
  }), t.current;
889
889
  }
890
- var xe = Symbol.for("Animated:node"), Bn = (e) => !!e && e[xe] === e, z = (e) => e && e[xe], At = (e, t) => _n(e, xe, t), Ye = (e) => e && e[xe] && e[xe].getPayload(), Cr = class {
890
+ var Ae = Symbol.for("Animated:node"), Bn = (e) => !!e && e[Ae] === e, z = (e) => e && e[Ae], At = (e, t) => _n(e, Ae, t), Ye = (e) => e && e[Ae] && e[Ae].getPayload(), Cr = class {
891
891
  constructor() {
892
892
  At(this, this);
893
893
  }
@@ -918,7 +918,7 @@ var xe = Symbol.for("Animated:node"), Bn = (e) => !!e && e[xe] === e, z = (e) =>
918
918
  }
919
919
  }, Ue = class Or extends We {
920
920
  constructor(t) {
921
- super(0), this._string = null, this._toString = be({
921
+ super(0), this._string = null, this._toString = we({
922
922
  output: [t, t]
923
923
  });
924
924
  }
@@ -942,7 +942,7 @@ var xe = Symbol.for("Animated:node"), Bn = (e) => !!e && e[xe] === e, z = (e) =>
942
942
  return !0;
943
943
  }
944
944
  reset(t) {
945
- t && (this._toString = be({
945
+ t && (this._toString = we({
946
946
  output: [this.getValue(), t]
947
947
  })), this._value = 0, super.reset();
948
948
  }
@@ -952,7 +952,7 @@ var xe = Symbol.for("Animated:node"), Bn = (e) => !!e && e[xe] === e, z = (e) =>
952
952
  }
953
953
  getValue(e) {
954
954
  const t = {};
955
- return L(this.source, (r, n) => {
955
+ return Q(this.source, (r, n) => {
956
956
  Bn(r) ? t[n] = r.getValue(e) : V(r) ? t[n] = O(r) : e || (t[n] = r);
957
957
  }), t;
958
958
  }
@@ -967,7 +967,7 @@ var xe = Symbol.for("Animated:node"), Bn = (e) => !!e && e[xe] === e, z = (e) =>
967
967
  _makePayload(e) {
968
968
  if (e) {
969
969
  const t = /* @__PURE__ */ new Set();
970
- return L(e, this._addToPayload, t), Array.from(t);
970
+ return Q(e, this._addToPayload, t), Array.from(t);
971
971
  }
972
972
  }
973
973
  /** Add to a payload set. */
@@ -1006,29 +1006,29 @@ var Qt = (e, t) => {
1006
1006
  !c.fun(e) || e.prototype && e.prototype.isReactComponent
1007
1007
  );
1008
1008
  return en((n, s) => {
1009
- const i = W(null), a = r && // eslint-disable-next-line react-hooks/rules-of-hooks
1009
+ const i = L(null), a = r && // eslint-disable-next-line react-hooks/rules-of-hooks
1010
1010
  tn(
1011
1011
  (_) => {
1012
1012
  i.current = Kn(s, _);
1013
1013
  },
1014
1014
  [s]
1015
- ), [u, d] = Zn(n, t), l = Tr(), m = () => {
1015
+ ), [u, f] = Zn(n, t), l = Tr(), p = () => {
1016
1016
  const _ = i.current;
1017
1017
  if (r && !_)
1018
1018
  return;
1019
1019
  (_ ? t.applyAnimatedValues(_, u.getValue(!0)) : !1) === !1 && l();
1020
- }, f = new Xn(m, d), h = W(void 0);
1021
- xt(() => (h.current = f, x(d, (_) => ue(_, f)), () => {
1022
- h.current && (x(
1023
- h.current.deps,
1024
- (_) => Se(_, h.current)
1025
- ), b.cancel(h.current.update));
1026
- })), Te(m, []), kr(() => () => {
1027
- const _ = h.current;
1028
- x(_.deps, (v) => Se(v, _));
1020
+ }, h = new Xn(p, f), d = L(void 0);
1021
+ xt(() => (d.current = h, x(f, (_) => le(_, h)), () => {
1022
+ d.current && (x(
1023
+ d.current.deps,
1024
+ (_) => xe(_, d.current)
1025
+ ), b.cancel(d.current.update));
1026
+ })), ue(p, []), kr(() => () => {
1027
+ const _ = d.current;
1028
+ x(_.deps, (v) => xe(v, _));
1029
1029
  });
1030
- const p = t.getComponentProps(u.getValue());
1031
- return /* @__PURE__ */ cr.createElement(e, { ...p, ref: a });
1030
+ const m = t.getComponentProps(u.getValue());
1031
+ return /* @__PURE__ */ cr.createElement(e, { ...m, ref: a });
1032
1032
  });
1033
1033
  }, Xn = class {
1034
1034
  constructor(e, t) {
@@ -1061,7 +1061,7 @@ var Gt = Symbol.for("AnimatedComponent"), es = (e, {
1061
1061
  const u = Yt(a) || "Anonymous";
1062
1062
  return c.str(a) ? a = i[a] || (i[a] = Qt(a, s)) : a = a[Gt] || (a[Gt] = Qt(a, s)), a.displayName = `Animated(${u})`, a;
1063
1063
  };
1064
- return L(e, (a, u) => {
1064
+ return Q(e, (a, u) => {
1065
1065
  c.arr(e) && (u = Yt(a)), i[u] = i(a);
1066
1066
  }), {
1067
1067
  animated: i
@@ -1070,7 +1070,7 @@ var Gt = Symbol.for("AnimatedComponent"), es = (e, {
1070
1070
  function ee(e, ...t) {
1071
1071
  return c.fun(e) ? e(...t) : e;
1072
1072
  }
1073
- var ye = (e, t) => e === !0 || !!(t && e && (c.fun(e) ? e(t) : F(e).includes(t))), Fr = (e, t) => c.obj(e) ? t && e[t] : e, Vr = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, ts = (e) => e, Pt = (e, t = ts) => {
1073
+ var _e = (e, t) => e === !0 || !!(t && e && (c.fun(e) ? e(t) : F(e).includes(t))), Fr = (e, t) => c.obj(e) ? t && e[t] : e, Vr = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, ts = (e) => e, Pt = (e, t = ts) => {
1074
1074
  let r = rs;
1075
1075
  e.default && e.default !== !0 && (e = e.default, r = Object.keys(e));
1076
1076
  const n = {};
@@ -1126,7 +1126,7 @@ var ye = (e, t) => e === !0 || !!(t && e && (c.fun(e) ? e(t) : F(e).includes(t))
1126
1126
  function ss(e) {
1127
1127
  const t = {};
1128
1128
  let r = 0;
1129
- if (L(e, (n, s) => {
1129
+ if (Q(e, (n, s) => {
1130
1130
  ns[s] || (t[s] = n, r++);
1131
1131
  }), r)
1132
1132
  return t;
@@ -1135,12 +1135,12 @@ function Nr(e) {
1135
1135
  const t = ss(e);
1136
1136
  if (t) {
1137
1137
  const r = { to: t };
1138
- return L(e, (n, s) => s in t || (r[s] = n)), r;
1138
+ return Q(e, (n, s) => s in t || (r[s] = n)), r;
1139
1139
  }
1140
1140
  return { ...e };
1141
1141
  }
1142
- function Ae(e) {
1143
- return e = O(e), c.arr(e) ? e.map(Ae) : Ge(e) ? q.createStringInterpolator({
1142
+ function Pe(e) {
1143
+ return e = O(e), c.arr(e) ? e.map(Pe) : Ge(e) ? q.createStringInterpolator({
1144
1144
  range: [0, 1],
1145
1145
  output: [e, e]
1146
1146
  })(1) : e;
@@ -1196,24 +1196,24 @@ var Bt = [], ds = class {
1196
1196
  };
1197
1197
  function $r(e, { key: t, props: r, defaultProps: n, state: s, actions: i }) {
1198
1198
  return new Promise((a, u) => {
1199
- let d, l, m = ye(r.cancel ?? (n == null ? void 0 : n.cancel), t);
1200
- if (m)
1201
- p();
1199
+ let f, l, p = _e(r.cancel ?? (n == null ? void 0 : n.cancel), t);
1200
+ if (p)
1201
+ m();
1202
1202
  else {
1203
- c.und(r.pause) || (s.paused = ye(r.pause, t));
1203
+ c.und(r.pause) || (s.paused = _e(r.pause, t));
1204
1204
  let _ = n == null ? void 0 : n.pause;
1205
- _ !== !0 && (_ = s.paused || ye(_, t)), d = ee(r.delay || 0, t), _ ? (s.resumeQueue.add(h), i.pause()) : (i.resume(), h());
1206
- }
1207
- function f() {
1208
- s.resumeQueue.add(h), s.timeouts.delete(l), l.cancel(), d = l.time - b.now();
1205
+ _ !== !0 && (_ = s.paused || _e(_, t)), f = ee(r.delay || 0, t), _ ? (s.resumeQueue.add(d), i.pause()) : (i.resume(), d());
1209
1206
  }
1210
1207
  function h() {
1211
- d > 0 && !q.skipAnimation ? (s.delayed = !0, l = b.setTimeout(p, d), s.pauseQueue.add(f), s.timeouts.add(l)) : p();
1208
+ s.resumeQueue.add(d), s.timeouts.delete(l), l.cancel(), f = l.time - b.now();
1209
+ }
1210
+ function d() {
1211
+ f > 0 && !q.skipAnimation ? (s.delayed = !0, l = b.setTimeout(m, f), s.pauseQueue.add(h), s.timeouts.add(l)) : m();
1212
1212
  }
1213
- function p() {
1214
- s.delayed && (s.delayed = !1), s.pauseQueue.delete(f), s.timeouts.delete(l), e <= (s.cancelId || 0) && (m = !0);
1213
+ function m() {
1214
+ s.delayed && (s.delayed = !1), s.pauseQueue.delete(h), s.timeouts.delete(l), e <= (s.cancelId || 0) && (p = !0);
1215
1215
  try {
1216
- i.start({ ...r, callId: e, cancel: m }, a);
1216
+ i.start({ ...r, callId: e, cancel: p }, a);
1217
1217
  } catch (_) {
1218
1218
  u(_);
1219
1219
  }
@@ -1238,8 +1238,8 @@ var Et = (e, t) => t.length == 1 ? t[0] : t.some((r) => r.cancelled) ? ae(e.get(
1238
1238
  finished: !1
1239
1239
  });
1240
1240
  function Ur(e, t, r, n) {
1241
- const { callId: s, parentId: i, onRest: a } = t, { asyncTo: u, promise: d } = r;
1242
- return !i && e === u && !t.reset ? d : r.promise = (async () => {
1241
+ const { callId: s, parentId: i, onRest: a } = t, { asyncTo: u, promise: f } = r;
1242
+ return !i && e === u && !t.reset ? f : r.promise = (async () => {
1243
1243
  r.asyncId = s, r.asyncTo = e;
1244
1244
  const l = Pt(
1245
1245
  t,
@@ -1248,42 +1248,42 @@ function Ur(e, t, r, n) {
1248
1248
  g === "onRest" ? void 0 : w
1249
1249
  )
1250
1250
  );
1251
- let m, f;
1252
- const h = new Promise(
1253
- (w, g) => (m = w, f = g)
1254
- ), p = (w) => {
1251
+ let p, h;
1252
+ const d = new Promise(
1253
+ (w, g) => (p = w, h = g)
1254
+ ), m = (w) => {
1255
1255
  const g = (
1256
1256
  // The `cancel` prop or `stop` method was used.
1257
1257
  s <= (r.cancelId || 0) && ae(n) || // The async `to` prop was replaced.
1258
1258
  s !== r.asyncId && $(n, !1)
1259
1259
  );
1260
1260
  if (g)
1261
- throw w.result = g, f(w), w;
1261
+ throw w.result = g, h(w), w;
1262
1262
  }, _ = (w, g) => {
1263
1263
  const R = new Ht(), y = new Jt();
1264
1264
  return (async () => {
1265
1265
  if (q.skipAnimation)
1266
- throw Pe(r), y.result = $(n, !1), f(y), y;
1267
- p(R);
1266
+ throw Ee(r), y.result = $(n, !1), h(y), y;
1267
+ m(R);
1268
1268
  const A = c.obj(w) ? { ...w } : { ...g, to: w };
1269
- A.parentId = s, L(l, (Q, I) => {
1270
- c.und(A[I]) && (A[I] = Q);
1269
+ A.parentId = s, Q(l, (G, I) => {
1270
+ c.und(A[I]) && (A[I] = G);
1271
1271
  });
1272
1272
  const P = await n.start(A);
1273
- return p(R), r.paused && await new Promise((Q) => {
1274
- r.resumeQueue.add(Q);
1273
+ return m(R), r.paused && await new Promise((G) => {
1274
+ r.resumeQueue.add(G);
1275
1275
  }), P;
1276
1276
  })();
1277
1277
  };
1278
1278
  let v;
1279
1279
  if (q.skipAnimation)
1280
- return Pe(r), $(n, !1);
1280
+ return Ee(r), $(n, !1);
1281
1281
  try {
1282
1282
  let w;
1283
1283
  c.arr(e) ? w = (async (g) => {
1284
1284
  for (const R of g)
1285
1285
  await _(R);
1286
- })(e) : w = Promise.resolve(e(_, n.stop.bind(n))), await Promise.all([w.then(m), h]), v = $(n.get(), !0, !1);
1286
+ })(e) : w = Promise.resolve(e(_, n.stop.bind(n))), await Promise.all([w.then(p), d]), v = $(n.get(), !0, !1);
1287
1287
  } catch (w) {
1288
1288
  if (w instanceof Ht)
1289
1289
  v = w.result;
@@ -1292,15 +1292,15 @@ function Ur(e, t, r, n) {
1292
1292
  else
1293
1293
  throw w;
1294
1294
  } finally {
1295
- s == r.asyncId && (r.asyncId = i, r.asyncTo = i ? u : void 0, r.promise = i ? d : void 0);
1295
+ s == r.asyncId && (r.asyncId = i, r.asyncTo = i ? u : void 0, r.promise = i ? f : void 0);
1296
1296
  }
1297
1297
  return c.fun(a) && b.batchedUpdates(() => {
1298
1298
  a(v, n, n.item);
1299
1299
  }), v;
1300
1300
  })();
1301
1301
  }
1302
- function Pe(e, t) {
1303
- ge(e.timeouts, (r) => r.cancel()), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t);
1302
+ function Ee(e, t) {
1303
+ ve(e.timeouts, (r) => r.cancel()), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t);
1304
1304
  }
1305
1305
  var Ht = class extends Error {
1306
1306
  constructor() {
@@ -1352,7 +1352,7 @@ var Ht = class extends Error {
1352
1352
  }
1353
1353
  /** Tell our children about our new value */
1354
1354
  _onChange(e, t = !1) {
1355
- Re(this, {
1355
+ Se(this, {
1356
1356
  type: "change",
1357
1357
  parent: this,
1358
1358
  value: e,
@@ -1361,13 +1361,13 @@ var Ht = class extends Error {
1361
1361
  }
1362
1362
  /** Tell our children about our new priority */
1363
1363
  _onPriorityChange(e) {
1364
- this.idle || ze.sort(this), Re(this, {
1364
+ this.idle || ze.sort(this), Se(this, {
1365
1365
  type: "priority",
1366
1366
  parent: this,
1367
1367
  priority: e
1368
1368
  });
1369
1369
  }
1370
- }, te = Symbol.for("SpringPhase"), qr = 1, ft = 2, ht = 4, rt = (e) => (e[te] & qr) > 0, H = (e) => (e[te] & ft) > 0, de = (e) => (e[te] & ht) > 0, Xt = (e, t) => t ? e[te] |= ft | qr : e[te] &= ~ft, Zt = (e, t) => t ? e[te] |= ht : e[te] &= ~ht, hs = class extends Tt {
1370
+ }, te = Symbol.for("SpringPhase"), qr = 1, ft = 2, ht = 4, rt = (e) => (e[te] & qr) > 0, H = (e) => (e[te] & ft) > 0, fe = (e) => (e[te] & ht) > 0, Xt = (e, t) => t ? e[te] |= ft | qr : e[te] &= ~ft, Zt = (e, t) => t ? e[te] |= ht : e[te] &= ~ht, hs = class extends Tt {
1371
1371
  constructor(e, t) {
1372
1372
  if (super(), this.animation = new ds(), this.defaultProps = {}, this._state = {
1373
1373
  paused: !1,
@@ -1382,7 +1382,7 @@ var Ht = class extends Error {
1382
1382
  }
1383
1383
  /** Equals true when not advancing on each frame. */
1384
1384
  get idle() {
1385
- return !(H(this) || this._state.asyncTo) || de(this);
1385
+ return !(H(this) || this._state.asyncTo) || fe(this);
1386
1386
  }
1387
1387
  get goal() {
1388
1388
  return O(this.animation.to);
@@ -1408,7 +1408,7 @@ var Ht = class extends Error {
1408
1408
  * When true, all current and future animations are paused.
1409
1409
  */
1410
1410
  get isPaused() {
1411
- return de(this);
1411
+ return fe(this);
1412
1412
  }
1413
1413
  /**
1414
1414
  *
@@ -1423,50 +1423,50 @@ var Ht = class extends Error {
1423
1423
  const n = this.animation;
1424
1424
  let { toValues: s } = n;
1425
1425
  const { config: i } = n, a = Ye(n.to);
1426
- !a && V(n.to) && (s = F(O(n.to))), n.values.forEach((l, m) => {
1426
+ !a && V(n.to) && (s = F(O(n.to))), n.values.forEach((l, p) => {
1427
1427
  if (l.done) return;
1428
- const f = (
1428
+ const h = (
1429
1429
  // Animated strings always go from 0 to 1.
1430
- l.constructor == Ue ? 1 : a ? a[m].lastPosition : s[m]
1430
+ l.constructor == Ue ? 1 : a ? a[p].lastPosition : s[p]
1431
1431
  );
1432
- let h = n.immediate, p = f;
1433
- if (!h) {
1434
- if (p = l.lastPosition, i.tension <= 0) {
1432
+ let d = n.immediate, m = h;
1433
+ if (!d) {
1434
+ if (m = l.lastPosition, i.tension <= 0) {
1435
1435
  l.done = !0;
1436
1436
  return;
1437
1437
  }
1438
1438
  let _ = l.elapsedTime += e;
1439
- const v = n.fromValues[m], w = l.v0 != null ? l.v0 : l.v0 = c.arr(i.velocity) ? i.velocity[m] : i.velocity;
1439
+ const v = n.fromValues[p], w = l.v0 != null ? l.v0 : l.v0 = c.arr(i.velocity) ? i.velocity[p] : i.velocity;
1440
1440
  let g;
1441
- const R = i.precision || (v == f ? 5e-3 : Math.min(1, Math.abs(f - v) * 1e-3));
1441
+ const R = i.precision || (v == h ? 5e-3 : Math.min(1, Math.abs(h - v) * 1e-3));
1442
1442
  if (c.und(i.duration))
1443
1443
  if (i.decay) {
1444
1444
  const y = i.decay === !0 ? 0.998 : i.decay, A = Math.exp(-(1 - y) * _);
1445
- p = v + w / (1 - y) * (1 - A), h = Math.abs(l.lastPosition - p) <= R, g = w * A;
1445
+ m = v + w / (1 - y) * (1 - A), d = Math.abs(l.lastPosition - m) <= R, g = w * A;
1446
1446
  } else {
1447
1447
  g = l.lastVelocity == null ? w : l.lastVelocity;
1448
- const y = i.restVelocity || R / 10, A = i.clamp ? 0 : i.bounce, P = !c.und(A), Q = v == f ? l.v0 > 0 : v < f;
1448
+ const y = i.restVelocity || R / 10, A = i.clamp ? 0 : i.bounce, P = !c.und(A), G = v == h ? l.v0 > 0 : v < h;
1449
1449
  let I, re = !1;
1450
1450
  const C = 1, K = Math.ceil(e / C);
1451
- for (let j = 0; j < K && (I = Math.abs(g) > y, !(!I && (h = Math.abs(f - p) <= R, h))); ++j) {
1452
- P && (re = p == f || p > f == Q, re && (g = -g * A, p = f));
1453
- const M = -i.tension * 1e-6 * (p - f), G = -i.friction * 1e-3 * g, He = (M + G) / i.mass;
1454
- g = g + He * C, p = p + g * C;
1451
+ for (let j = 0; j < K && (I = Math.abs(g) > y, !(!I && (d = Math.abs(h - m) <= R, d))); ++j) {
1452
+ P && (re = m == h || m > h == G, re && (g = -g * A, m = h));
1453
+ const M = -i.tension * 1e-6 * (m - h), Y = -i.friction * 1e-3 * g, He = (M + Y) / i.mass;
1454
+ g = g + He * C, m = m + g * C;
1455
1455
  }
1456
1456
  }
1457
1457
  else {
1458
1458
  let y = 1;
1459
- i.duration > 0 && (this._memoizedDuration !== i.duration && (this._memoizedDuration = i.duration, l.durationProgress > 0 && (l.elapsedTime = i.duration * l.durationProgress, _ = l.elapsedTime += e)), y = (i.progress || 0) + _ / this._memoizedDuration, y = y > 1 ? 1 : y < 0 ? 0 : y, l.durationProgress = y), p = v + i.easing(y) * (f - v), g = (p - l.lastPosition) / e, h = y == 1;
1459
+ i.duration > 0 && (this._memoizedDuration !== i.duration && (this._memoizedDuration = i.duration, l.durationProgress > 0 && (l.elapsedTime = i.duration * l.durationProgress, _ = l.elapsedTime += e)), y = (i.progress || 0) + _ / this._memoizedDuration, y = y > 1 ? 1 : y < 0 ? 0 : y, l.durationProgress = y), m = v + i.easing(y) * (h - v), g = (m - l.lastPosition) / e, d = y == 1;
1460
1460
  }
1461
- l.lastVelocity = g, Number.isNaN(p) && (console.warn("Got NaN while animating:", this), h = !0);
1461
+ l.lastVelocity = g, Number.isNaN(m) && (console.warn("Got NaN while animating:", this), d = !0);
1462
1462
  }
1463
- a && !a[m].done && (h = !1), h ? l.done = !0 : t = !1, l.setValue(p, i.round) && (r = !0);
1463
+ a && !a[p].done && (d = !1), d ? l.done = !0 : t = !1, l.setValue(m, i.round) && (r = !0);
1464
1464
  });
1465
- const u = z(this), d = u.getValue();
1465
+ const u = z(this), f = u.getValue();
1466
1466
  if (t) {
1467
1467
  const l = O(n.to);
1468
- (d !== l || r) && !i.decay ? (u.setValue(l), this._onChange(l)) : r && i.decay && this._onChange(d), this._stop();
1469
- } else r && this._onChange(d);
1468
+ (f !== l || r) && !i.decay ? (u.setValue(l), this._onChange(l)) : r && i.decay && this._onChange(f), this._stop();
1469
+ } else r && this._onChange(f);
1470
1470
  }
1471
1471
  /** Set the current value, while stopping the current animation */
1472
1472
  set(e) {
@@ -1512,7 +1512,7 @@ var Ht = class extends Error {
1512
1512
  */
1513
1513
  stop(e) {
1514
1514
  const { to: t } = this.animation;
1515
- return this._focus(this.get()), Pe(this._state, e && this._lastCallId), b.batchedUpdates(() => this._stop(t, e)), this;
1515
+ return this._focus(this.get()), Ee(this._state, e && this._lastCallId), b.batchedUpdates(() => this._stop(t, e)), this;
1516
1516
  }
1517
1517
  /** Restart the animation. */
1518
1518
  reset() {
@@ -1544,7 +1544,7 @@ var Ht = class extends Error {
1544
1544
  e,
1545
1545
  (a, u) => /^on/.test(u) ? Fr(a, r) : a
1546
1546
  )
1547
- ), er(this, e, "onProps"), he(this, "onProps", e, this);
1547
+ ), er(this, e, "onProps"), me(this, "onProps", e, this);
1548
1548
  const s = this._prepareNode(e);
1549
1549
  if (Object.isFrozen(this))
1550
1550
  throw Error(
@@ -1558,18 +1558,18 @@ var Ht = class extends Error {
1558
1558
  state: i,
1559
1559
  actions: {
1560
1560
  pause: () => {
1561
- de(this) || (Zt(this, !0), pe(i.pauseQueue), he(
1561
+ fe(this) || (Zt(this, !0), ge(i.pauseQueue), me(
1562
1562
  this,
1563
1563
  "onPause",
1564
- $(this, fe(this, this.animation.to)),
1564
+ $(this, he(this, this.animation.to)),
1565
1565
  this
1566
1566
  ));
1567
1567
  },
1568
1568
  resume: () => {
1569
- de(this) && (Zt(this, !1), H(this) && this._resume(), pe(i.resumeQueue), he(
1569
+ fe(this) && (Zt(this, !1), H(this) && this._resume(), ge(i.resumeQueue), me(
1570
1570
  this,
1571
1571
  "onResume",
1572
- $(this, fe(this, this.animation.to)),
1572
+ $(this, he(this, this.animation.to)),
1573
1573
  this
1574
1574
  ));
1575
1575
  },
@@ -1594,13 +1594,13 @@ var Ht = class extends Error {
1594
1594
  this._lastToId = t.callId;
1595
1595
  else
1596
1596
  return r(ae(this));
1597
- const { key: i, defaultProps: a, animation: u } = this, { to: d, from: l } = u;
1598
- let { to: m = d, from: f = l } = e;
1599
- s && !n && (!t.default || c.und(m)) && (m = f), t.reverse && ([m, f] = [f, m]);
1600
- const h = !Y(f, l);
1601
- h && (u.from = f), f = O(f);
1602
- const p = !Y(m, d);
1603
- p && this._focus(m);
1597
+ const { key: i, defaultProps: a, animation: u } = this, { to: f, from: l } = u;
1598
+ let { to: p = f, from: h = l } = e;
1599
+ s && !n && (!t.default || c.und(p)) && (p = h), t.reverse && ([p, h] = [h, p]);
1600
+ const d = !W(h, l);
1601
+ d && (u.from = h), h = O(h);
1602
+ const m = !W(p, f);
1603
+ m && this._focus(p);
1604
1604
  const _ = lt(t.to), { config: v } = u, { decay: w, velocity: g } = v;
1605
1605
  (n || s) && (v.velocity = 0), t.config && !_ && cs(
1606
1606
  v,
@@ -1609,16 +1609,16 @@ var Ht = class extends Error {
1609
1609
  t.config !== a.config ? ee(a.config, i) : void 0
1610
1610
  );
1611
1611
  let R = z(this);
1612
- if (!R || c.und(m))
1612
+ if (!R || c.und(p))
1613
1613
  return r($(this, !0));
1614
1614
  const y = (
1615
1615
  // When `reset` is undefined, the `from` prop implies `reset: true`,
1616
1616
  // except for declarative updates. When `reset` is defined, there
1617
1617
  // must exist a value to animate from.
1618
- c.und(t.reset) ? s && !t.default : !c.und(f) && ye(t.reset, i)
1619
- ), A = y ? f : this.get(), P = Ae(m), Q = c.num(P) || c.arr(P) || Ge(P), I = !_ && (!Q || ye(a.immediate || t.immediate, i));
1620
- if (p) {
1621
- const j = ut(m);
1618
+ c.und(t.reset) ? s && !t.default : !c.und(h) && _e(t.reset, i)
1619
+ ), A = y ? h : this.get(), P = Pe(p), G = c.num(P) || c.arr(P) || Ge(P), I = !_ && (!G || _e(a.immediate || t.immediate, i));
1620
+ if (m) {
1621
+ const j = ut(p);
1622
1622
  if (j !== R.constructor)
1623
1623
  if (I)
1624
1624
  R = this._set(P);
@@ -1628,21 +1628,21 @@ var Ht = class extends Error {
1628
1628
  );
1629
1629
  }
1630
1630
  const re = R.constructor;
1631
- let C = V(m), K = !1;
1631
+ let C = V(p), K = !1;
1632
1632
  if (!C) {
1633
- const j = y || !rt(this) && h;
1634
- (p || j) && (K = Y(Ae(A), P), C = !K), (!Y(u.immediate, I) && !I || !Y(v.decay, w) || !Y(v.velocity, g)) && (C = !0);
1633
+ const j = y || !rt(this) && d;
1634
+ (m || j) && (K = W(Pe(A), P), C = !K), (!W(u.immediate, I) && !I || !W(v.decay, w) || !W(v.velocity, g)) && (C = !0);
1635
1635
  }
1636
- if (K && H(this) && (u.changed && !y ? C = !0 : C || this._stop(d)), !_ && ((C || V(d)) && (u.values = R.getPayload(), u.toValues = V(m) ? null : re == Ue ? [1] : F(P)), u.immediate != I && (u.immediate = I, !I && !y && this._set(d)), C)) {
1636
+ if (K && H(this) && (u.changed && !y ? C = !0 : C || this._stop(f)), !_ && ((C || V(f)) && (u.values = R.getPayload(), u.toValues = V(p) ? null : re == Ue ? [1] : F(P)), u.immediate != I && (u.immediate = I, !I && !y && this._set(f)), C)) {
1637
1637
  const { onRest: j } = u;
1638
- x(ps, (G) => er(this, t, G));
1639
- const M = $(this, fe(this, d));
1640
- pe(this._pendingCalls, M), this._pendingCalls.add(r), u.changed && b.batchedUpdates(() => {
1641
- var G;
1642
- u.changed = !y, j == null || j(M, this), y ? ee(a.onRest, M) : (G = u.onStart) == null || G.call(u, M, this);
1638
+ x(ps, (Y) => er(this, t, Y));
1639
+ const M = $(this, he(this, f));
1640
+ ge(this._pendingCalls, M), this._pendingCalls.add(r), u.changed && b.batchedUpdates(() => {
1641
+ var Y;
1642
+ u.changed = !y, j == null || j(M, this), y ? ee(a.onRest, M) : (Y = u.onStart) == null || Y.call(u, M, this);
1643
1643
  });
1644
1644
  }
1645
- y && this._set(A), _ ? r(Ur(t.to, t, this._state, this)) : C ? this._start() : H(this) && !p ? this._pendingCalls.add(r) : r(Dr(A));
1645
+ y && this._set(A), _ ? r(Ur(t.to, t, this._state, this)) : C ? this._start() : H(this) && !m ? this._pendingCalls.add(r) : r(Dr(A));
1646
1646
  }
1647
1647
  /** Update the `animation.to` value, which might be a `FluidValue` */
1648
1648
  _focus(e) {
@@ -1652,11 +1652,11 @@ var Ht = class extends Error {
1652
1652
  _attach() {
1653
1653
  let e = 0;
1654
1654
  const { to: t } = this.animation;
1655
- V(t) && (ue(t, this), dt(t) && (e = t.priority + 1)), this.priority = e;
1655
+ V(t) && (le(t, this), dt(t) && (e = t.priority + 1)), this.priority = e;
1656
1656
  }
1657
1657
  _detach() {
1658
1658
  const { to: e } = this.animation;
1659
- V(e) && Se(e, this);
1659
+ V(e) && xe(e, this);
1660
1660
  }
1661
1661
  /**
1662
1662
  * Update the current value from outside the frameloop,
@@ -1666,7 +1666,7 @@ var Ht = class extends Error {
1666
1666
  const r = O(e);
1667
1667
  if (!c.und(r)) {
1668
1668
  const n = z(this);
1669
- if (!n || !Y(r, n.getValue())) {
1669
+ if (!n || !W(r, n.getValue())) {
1670
1670
  const s = ut(r);
1671
1671
  !n || n.constructor != s ? At(this, s.create(r)) : n.setValue(r), n && b.batchedUpdates(() => {
1672
1672
  this._onChange(r, t);
@@ -1677,10 +1677,10 @@ var Ht = class extends Error {
1677
1677
  }
1678
1678
  _onStart() {
1679
1679
  const e = this.animation;
1680
- e.changed || (e.changed = !0, he(
1680
+ e.changed || (e.changed = !0, me(
1681
1681
  this,
1682
1682
  "onStart",
1683
- $(this, fe(this, e.to)),
1683
+ $(this, he(this, e.to)),
1684
1684
  this
1685
1685
  ));
1686
1686
  }
@@ -1692,7 +1692,7 @@ var Ht = class extends Error {
1692
1692
  // is added to the frameloop.
1693
1693
  _start() {
1694
1694
  const e = this.animation;
1695
- z(this).reset(O(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), H(this) || (Xt(this, !0), de(this) || this._resume());
1695
+ z(this).reset(O(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), H(this) || (Xt(this, !0), fe(this) || this._resume());
1696
1696
  }
1697
1697
  _resume() {
1698
1698
  q.skipAnimation ? this.finish() : ze.start(this);
@@ -1708,24 +1708,24 @@ var Ht = class extends Error {
1708
1708
  const r = this.animation;
1709
1709
  x(r.values, (s) => {
1710
1710
  s.done = !0;
1711
- }), r.toValues && (r.onChange = r.onPause = r.onResume = void 0), Re(this, {
1711
+ }), r.toValues && (r.onChange = r.onPause = r.onResume = void 0), Se(this, {
1712
1712
  type: "idle",
1713
1713
  parent: this
1714
1714
  });
1715
- const n = t ? ae(this.get()) : $(this.get(), fe(this, e ?? r.to));
1716
- pe(this._pendingCalls, n), r.changed && (r.changed = !1, he(this, "onRest", n, this));
1715
+ const n = t ? ae(this.get()) : $(this.get(), he(this, e ?? r.to));
1716
+ ge(this._pendingCalls, n), r.changed && (r.changed = !1, me(this, "onRest", n, this));
1717
1717
  }
1718
1718
  }
1719
1719
  };
1720
- function fe(e, t) {
1721
- const r = Ae(t), n = Ae(e.get());
1722
- return Y(n, r);
1720
+ function he(e, t) {
1721
+ const r = Pe(t), n = Pe(e.get());
1722
+ return W(n, r);
1723
1723
  }
1724
1724
  function Mr(e, t = e.loop, r = e.to) {
1725
1725
  const n = ee(t);
1726
1726
  if (n) {
1727
1727
  const s = n !== !0 && Nr(n), i = (s || e).reverse, a = !s || s.reset;
1728
- return Ee({
1728
+ return Te({
1729
1729
  ...e,
1730
1730
  loop: t,
1731
1731
  // Avoid updating default props when looping.
@@ -1745,16 +1745,16 @@ function Mr(e, t = e.loop, r = e.to) {
1745
1745
  });
1746
1746
  }
1747
1747
  }
1748
- function Ee(e) {
1748
+ function Te(e) {
1749
1749
  const { to: t, from: r } = e = Nr(e), n = /* @__PURE__ */ new Set();
1750
1750
  return c.obj(t) && Kt(t, n), c.obj(r) && Kt(r, n), e.keys = n.size ? Array.from(n) : null, e;
1751
1751
  }
1752
1752
  function ms(e) {
1753
- const t = Ee(e);
1753
+ const t = Te(e);
1754
1754
  return c.und(t.default) && (t.default = Pt(t)), t;
1755
1755
  }
1756
1756
  function Kt(e, t) {
1757
- L(e, (r, n) => r != null && t.add(n));
1757
+ Q(e, (r, n) => r != null && t.add(n));
1758
1758
  }
1759
1759
  var ps = [
1760
1760
  "onStart",
@@ -1766,7 +1766,7 @@ var ps = [
1766
1766
  function er(e, t, r) {
1767
1767
  e.animation[r] = t[r] !== Vr(t, r) ? Fr(t[r], e.key) : void 0;
1768
1768
  }
1769
- function he(e, t, ...r) {
1769
+ function me(e, t, ...r) {
1770
1770
  var n, s, i, a;
1771
1771
  (s = (n = e.animation)[t]) == null || s.call(n, ...r), (a = (i = e.defaultProps)[t]) == null || a.call(i, ...r);
1772
1772
  }
@@ -1810,7 +1810,7 @@ var gs = ["onStart", "onChange", "onRest"], vs = 1, ys = class {
1810
1810
  }
1811
1811
  /** Push an update onto the queue of each value. */
1812
1812
  update(e) {
1813
- return e && this.queue.push(Ee(e)), this;
1813
+ return e && this.queue.push(Te(e)), this;
1814
1814
  }
1815
1815
  /**
1816
1816
  * Start the queued animations for every spring, and resolve the returned
@@ -1821,7 +1821,7 @@ var gs = ["onStart", "onChange", "onRest"], vs = 1, ys = class {
1821
1821
  */
1822
1822
  start(e) {
1823
1823
  let { queue: t } = this;
1824
- return e ? t = F(e).map(Ee) : this.queue = [], this._flush ? this._flush(this, t) : (Yr(this, t), mt(this, t));
1824
+ return e ? t = F(e).map(Te) : this.queue = [], this._flush ? this._flush(this, t) : (Yr(this, t), mt(this, t));
1825
1825
  }
1826
1826
  /** @internal */
1827
1827
  stop(e, t) {
@@ -1829,7 +1829,7 @@ var gs = ["onStart", "onChange", "onRest"], vs = 1, ys = class {
1829
1829
  const r = this.springs;
1830
1830
  x(F(t), (n) => r[n].stop(!!e));
1831
1831
  } else
1832
- Pe(this._state, this._lastAsyncId), this.each((r) => r.stop(!!e));
1832
+ Ee(this._state, this._lastAsyncId), this.each((r) => r.stop(!!e));
1833
1833
  return this;
1834
1834
  }
1835
1835
  /** Freeze the active animation in time */
@@ -1854,19 +1854,19 @@ var gs = ["onStart", "onChange", "onRest"], vs = 1, ys = class {
1854
1854
  }
1855
1855
  /** Call a function once per spring value */
1856
1856
  each(e) {
1857
- L(this.springs, e);
1857
+ Q(this.springs, e);
1858
1858
  }
1859
1859
  /** @internal Called at the end of every animation frame */
1860
1860
  _onFrame() {
1861
1861
  const { onStart: e, onChange: t, onRest: r } = this._events, n = this._active.size > 0, s = this._changed.size > 0;
1862
- (n && !this._started || s && !this._started) && (this._started = !0, ge(e, ([u, d]) => {
1863
- d.value = this.get(), u(d, this, this._item);
1862
+ (n && !this._started || s && !this._started) && (this._started = !0, ve(e, ([u, f]) => {
1863
+ f.value = this.get(), u(f, this, this._item);
1864
1864
  }));
1865
1865
  const i = !n && this._started, a = s || i && r.size ? this.get() : null;
1866
- s && t.size && ge(t, ([u, d]) => {
1867
- d.value = a, u(d, this, this._item);
1868
- }), i && (this._started = !1, ge(r, ([u, d]) => {
1869
- d.value = a, u(d, this, this._item);
1866
+ s && t.size && ve(t, ([u, f]) => {
1867
+ f.value = a, u(f, this, this._item);
1868
+ }), i && (this._started = !1, ve(r, ([u, f]) => {
1869
+ f.value = a, u(f, this, this._item);
1870
1870
  }));
1871
1871
  }
1872
1872
  /** @internal */
@@ -1885,10 +1885,10 @@ function mt(e, t) {
1885
1885
  );
1886
1886
  }
1887
1887
  async function zr(e, t, r) {
1888
- const { keys: n, to: s, from: i, loop: a, onRest: u, onResolve: d } = t, l = c.obj(t.default) && t.default;
1888
+ const { keys: n, to: s, from: i, loop: a, onRest: u, onResolve: f } = t, l = c.obj(t.default) && t.default;
1889
1889
  a && (t.loop = !1), s === !1 && (t.to = null), i === !1 && (t.from = null);
1890
- const m = c.arr(s) || c.fun(s) ? s : void 0;
1891
- m ? (t.to = void 0, t.onRest = void 0, l && (l.onRest = void 0)) : x(gs, (v) => {
1890
+ const p = c.arr(s) || c.fun(s) ? s : void 0;
1891
+ p ? (t.to = void 0, t.onRest = void 0, l && (l.onRest = void 0)) : x(gs, (v) => {
1892
1892
  const w = t[v];
1893
1893
  if (c.fun(w)) {
1894
1894
  const g = e._events[v];
@@ -1902,55 +1902,55 @@ async function zr(e, t, r) {
1902
1902
  }, l && (l[v] = t[v]);
1903
1903
  }
1904
1904
  });
1905
- const f = e._state;
1906
- t.pause === !f.paused ? (f.paused = t.pause, pe(t.pause ? f.pauseQueue : f.resumeQueue)) : f.paused && (t.pause = !0);
1907
- const h = (n || Object.keys(e.springs)).map(
1905
+ const h = e._state;
1906
+ t.pause === !h.paused ? (h.paused = t.pause, ge(t.pause ? h.pauseQueue : h.resumeQueue)) : h.paused && (t.pause = !0);
1907
+ const d = (n || Object.keys(e.springs)).map(
1908
1908
  (v) => e.springs[v].start(t)
1909
- ), p = t.cancel === !0 || Vr(t, "cancel") === !0;
1910
- (m || p && f.asyncId) && h.push(
1909
+ ), m = t.cancel === !0 || Vr(t, "cancel") === !0;
1910
+ (p || m && h.asyncId) && d.push(
1911
1911
  $r(++e._lastAsyncId, {
1912
1912
  props: t,
1913
- state: f,
1913
+ state: h,
1914
1914
  actions: {
1915
1915
  pause: at,
1916
1916
  resume: at,
1917
1917
  start(v, w) {
1918
- p ? (Pe(f, e._lastAsyncId), w(ae(e))) : (v.onRest = u, w(
1918
+ m ? (Ee(h, e._lastAsyncId), w(ae(e))) : (v.onRest = u, w(
1919
1919
  Ur(
1920
- m,
1920
+ p,
1921
1921
  v,
1922
- f,
1922
+ h,
1923
1923
  e
1924
1924
  )
1925
1925
  ));
1926
1926
  }
1927
1927
  }
1928
1928
  })
1929
- ), f.paused && await new Promise((v) => {
1930
- f.resumeQueue.add(v);
1929
+ ), h.paused && await new Promise((v) => {
1930
+ h.resumeQueue.add(v);
1931
1931
  });
1932
- const _ = Et(e, await Promise.all(h));
1932
+ const _ = Et(e, await Promise.all(d));
1933
1933
  if (a && _.finished && !(r && _.noop)) {
1934
1934
  const v = Mr(t, a, s);
1935
1935
  if (v)
1936
1936
  return Yr(e, [v]), zr(e, v, !0);
1937
1937
  }
1938
- return d && b.batchedUpdates(() => d(_, e, e.item)), _;
1938
+ return f && b.batchedUpdates(() => f(_, e, e.item)), _;
1939
1939
  }
1940
1940
  function tr(e, t) {
1941
1941
  const r = { ...e.springs };
1942
1942
  return t && x(F(t), (n) => {
1943
- c.und(n.keys) && (n = Ee(n)), c.obj(n.to) || (n = { ...n, to: void 0 }), Gr(r, n, (s) => Qr(s));
1943
+ c.und(n.keys) && (n = Te(n)), c.obj(n.to) || (n = { ...n, to: void 0 }), Gr(r, n, (s) => Qr(s));
1944
1944
  }), Lr(e, r), r;
1945
1945
  }
1946
1946
  function Lr(e, t) {
1947
- L(t, (r, n) => {
1948
- e.springs[n] || (e.springs[n] = r, ue(r, e));
1947
+ Q(t, (r, n) => {
1948
+ e.springs[n] || (e.springs[n] = r, le(r, e));
1949
1949
  });
1950
1950
  }
1951
1951
  function Qr(e, t) {
1952
1952
  const r = new hs();
1953
- return r.key = e, t && ue(r, t), r;
1953
+ return r.key = e, t && le(r, t), r;
1954
1954
  }
1955
1955
  function Gr(e, t, r) {
1956
1956
  t.keys && x(t.keys, (n) => {
@@ -2015,10 +2015,10 @@ var _s = cr.createContext({
2015
2015
  function ws(e, t, r) {
2016
2016
  const n = c.fun(t) && t;
2017
2017
  n && !r && (r = []);
2018
- const s = me(
2018
+ const s = pe(
2019
2019
  () => n || arguments.length == 3 ? bs() : void 0,
2020
2020
  []
2021
- ), i = W(0), a = Tr(), u = me(
2021
+ ), i = L(0), a = Tr(), u = pe(
2022
2022
  () => ({
2023
2023
  ctrls: [],
2024
2024
  queue: [],
@@ -2032,35 +2032,35 @@ function ws(e, t, r) {
2032
2032
  }
2033
2033
  }),
2034
2034
  []
2035
- ), d = W([...u.ctrls]), l = W([]), m = Lt(e) || 0;
2036
- me(() => {
2037
- x(d.current.slice(e, m), (g) => {
2035
+ ), f = L([...u.ctrls]), l = L([]), p = Lt(e) || 0;
2036
+ pe(() => {
2037
+ x(f.current.slice(e, p), (g) => {
2038
2038
  as(g, s), g.stop(!0);
2039
- }), d.current.length = e, f(m, e);
2040
- }, [e]), me(() => {
2041
- f(0, Math.min(m, e));
2039
+ }), f.current.length = e, h(p, e);
2040
+ }, [e]), pe(() => {
2041
+ h(0, Math.min(p, e));
2042
2042
  }, r);
2043
- function f(g, R) {
2043
+ function h(g, R) {
2044
2044
  for (let y = g; y < R; y++) {
2045
- const A = d.current[y] || (d.current[y] = new ys(null, u.flush)), P = n ? n(y, A) : t[y];
2045
+ const A = f.current[y] || (f.current[y] = new ys(null, u.flush)), P = n ? n(y, A) : t[y];
2046
2046
  P && (l.current[y] = ms(P));
2047
2047
  }
2048
2048
  }
2049
- const h = d.current.map(
2049
+ const d = f.current.map(
2050
2050
  (g, R) => tr(g, l.current[R])
2051
- ), p = dr(_s), _ = Lt(p), v = p !== _ && is(p);
2051
+ ), m = dr(_s), _ = Lt(m), v = m !== _ && is(m);
2052
2052
  xt(() => {
2053
- i.current++, u.ctrls = d.current;
2053
+ i.current++, u.ctrls = f.current;
2054
2054
  const { queue: g } = u;
2055
- g.length && (u.queue = [], x(g, (R) => R())), x(d.current, (R, y) => {
2056
- s == null || s.add(R), v && R.start({ default: p });
2055
+ g.length && (u.queue = [], x(g, (R) => R())), x(f.current, (R, y) => {
2056
+ s == null || s.add(R), v && R.start({ default: m });
2057
2057
  const A = l.current[y];
2058
2058
  A && (os(R, A.ref), R.ref ? R.queue.push(A) : R.start(A));
2059
2059
  });
2060
2060
  }), kr(() => () => {
2061
2061
  x(u.ctrls, (g) => g.stop(!0));
2062
2062
  });
2063
- const w = h.map((g) => ({ ...g }));
2063
+ const w = d.map((g) => ({ ...g }));
2064
2064
  return s ? [w, s] : w;
2065
2065
  }
2066
2066
  function rr(e, t) {
@@ -2073,13 +2073,13 @@ function rr(e, t) {
2073
2073
  }
2074
2074
  var Rs = class extends Tt {
2075
2075
  constructor(e, t) {
2076
- super(), this.source = e, this.idle = !0, this._active = /* @__PURE__ */ new Set(), this.calc = be(...t);
2076
+ super(), this.source = e, this.idle = !0, this._active = /* @__PURE__ */ new Set(), this.calc = we(...t);
2077
2077
  const r = this._get(), n = ut(r);
2078
2078
  At(this, n.create(r));
2079
2079
  }
2080
2080
  advance(e) {
2081
2081
  const t = this._get(), r = this.get();
2082
- Y(t, r) || (z(this).setValue(t), this._onChange(t, this.idle)), !this.idle && nr(this._active) && nt(this);
2082
+ W(t, r) || (z(this).setValue(t), this._onChange(t, this.idle)), !this.idle && nr(this._active) && nt(this);
2083
2083
  }
2084
2084
  _get() {
2085
2085
  const e = c.arr(this.source) ? this.source.map(O) : F(O(this.source));
@@ -2094,13 +2094,13 @@ var Rs = class extends Tt {
2094
2094
  _attach() {
2095
2095
  let e = 1;
2096
2096
  x(F(this.source), (t) => {
2097
- V(t) && ue(t, this), dt(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1));
2097
+ V(t) && le(t, this), dt(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1));
2098
2098
  }), this.priority = e, this._start();
2099
2099
  }
2100
2100
  // Stop observing our sources once we have no observers.
2101
2101
  _detach() {
2102
2102
  x(F(this.source), (e) => {
2103
- V(e) && Se(e, this);
2103
+ V(e) && xe(e, this);
2104
2104
  }), this._active.clear(), nt(this);
2105
2105
  }
2106
2106
  /** @internal */
@@ -2120,7 +2120,7 @@ function nr(e) {
2120
2120
  function nt(e) {
2121
2121
  e.idle || (e.idle = !0, x(Ye(e), (t) => {
2122
2122
  t.done = !0;
2123
- }), Re(e, {
2123
+ }), Se(e, {
2124
2124
  type: "idle",
2125
2125
  parent: e
2126
2126
  }));
@@ -2131,7 +2131,7 @@ q.assign({
2131
2131
  });
2132
2132
  var Wr = /^--/;
2133
2133
  function xs(e, t) {
2134
- return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !Wr.test(e) && !(_e.hasOwnProperty(e) && _e[e]) ? t + "px" : ("" + t).trim();
2134
+ return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !Wr.test(e) && !(be.hasOwnProperty(e) && be[e]) ? t + "px" : ("" + t).trim();
2135
2135
  }
2136
2136
  var sr = {};
2137
2137
  function As(e, t) {
@@ -2143,26 +2143,26 @@ function As(e, t) {
2143
2143
  children: i,
2144
2144
  scrollTop: a,
2145
2145
  scrollLeft: u,
2146
- viewBox: d,
2146
+ viewBox: f,
2147
2147
  ...l
2148
- } = t, m = Object.values(l), f = Object.keys(l).map(
2149
- (h) => r || e.hasAttribute(h) ? h : sr[h] || (sr[h] = h.replace(
2148
+ } = t, p = Object.values(l), h = Object.keys(l).map(
2149
+ (d) => r || e.hasAttribute(d) ? d : sr[d] || (sr[d] = d.replace(
2150
2150
  /([A-Z])/g,
2151
2151
  // Attributes are written in dash case
2152
- (p) => "-" + p.toLowerCase()
2152
+ (m) => "-" + m.toLowerCase()
2153
2153
  ))
2154
2154
  );
2155
2155
  i !== void 0 && (e.textContent = i);
2156
- for (const h in s)
2157
- if (s.hasOwnProperty(h)) {
2158
- const p = xs(h, s[h]);
2159
- Wr.test(h) ? e.style.setProperty(h, p) : e.style[h] = p;
2156
+ for (const d in s)
2157
+ if (s.hasOwnProperty(d)) {
2158
+ const m = xs(d, s[d]);
2159
+ Wr.test(d) ? e.style.setProperty(d, m) : e.style[d] = m;
2160
2160
  }
2161
- f.forEach((h, p) => {
2162
- e.setAttribute(h, m[p]);
2163
- }), n !== void 0 && (e.className = n), a !== void 0 && (e.scrollTop = a), u !== void 0 && (e.scrollLeft = u), d !== void 0 && e.setAttribute("viewBox", d);
2161
+ h.forEach((d, m) => {
2162
+ e.setAttribute(d, p[m]);
2163
+ }), n !== void 0 && (e.className = n), a !== void 0 && (e.scrollTop = a), u !== void 0 && (e.scrollLeft = u), f !== void 0 && e.setAttribute("viewBox", f);
2164
2164
  }
2165
- var _e = {
2165
+ var be = {
2166
2166
  animationIterationCount: !0,
2167
2167
  borderImageOutset: !0,
2168
2168
  borderImageSlice: !0,
@@ -2206,7 +2206,7 @@ var _e = {
2206
2206
  strokeOpacity: !0,
2207
2207
  strokeWidth: !0
2208
2208
  }, Ps = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1), Es = ["Webkit", "Ms", "Moz", "O"];
2209
- _e = Object.keys(_e).reduce((e, t) => (Es.forEach((r) => e[Ps(r, t)] = e[t]), e), _e);
2209
+ be = Object.keys(be).reduce((e, t) => (Es.forEach((r) => e[Ps(r, t)] = e[t]), e), be);
2210
2210
  var Ts = /^(matrix|translate|scale|rotate|skew)/, ks = /^(translate)/, Cs = /^(rotate|skew)/, st = (e, t) => c.num(e) && e !== 0 ? e + t : e, Ne = (e, t) => c.arr(e) ? e.every((r) => Ne(r, t)) : c.num(e) ? e === t : parseFloat(e) === t, Is = class extends Be {
2211
2211
  constructor({ x: e, y: t, z: r, ...n }) {
2212
2212
  const s = [], i = [];
@@ -2214,18 +2214,18 @@ var Ts = /^(matrix|translate|scale|rotate|skew)/, ks = /^(translate)/, Cs = /^(r
2214
2214
  `translate3d(${a.map((u) => st(u, "px")).join(",")})`,
2215
2215
  // prettier-ignore
2216
2216
  Ne(a, 0)
2217
- ])), L(n, (a, u) => {
2217
+ ])), Q(n, (a, u) => {
2218
2218
  if (u === "transform")
2219
- s.push([a || ""]), i.push((d) => [d, d === ""]);
2219
+ s.push([a || ""]), i.push((f) => [f, f === ""]);
2220
2220
  else if (Ts.test(u)) {
2221
2221
  if (delete n[u], c.und(a)) return;
2222
- const d = ks.test(u) ? "px" : Cs.test(u) ? "deg" : "";
2222
+ const f = ks.test(u) ? "px" : Cs.test(u) ? "deg" : "";
2223
2223
  s.push(F(a)), i.push(
2224
- u === "rotate3d" ? ([l, m, f, h]) => [
2225
- `rotate3d(${l},${m},${f},${st(h, d)})`,
2226
- Ne(h, 0)
2224
+ u === "rotate3d" ? ([l, p, h, d]) => [
2225
+ `rotate3d(${l},${p},${h},${st(d, f)})`,
2226
+ Ne(d, 0)
2227
2227
  ] : (l) => [
2228
- `${u}(${l.map((m) => st(m, d)).join(",")})`,
2228
+ `${u}(${l.map((p) => st(p, f)).join(",")})`,
2229
2229
  Ne(l, u.startsWith("scale") ? 1 : 0)
2230
2230
  ]
2231
2231
  );
@@ -2254,7 +2254,7 @@ var Ts = /^(matrix|translate|scale|rotate|skew)/, ks = /^(translate)/, Cs = /^(r
2254
2254
  this.inputs,
2255
2255
  (t) => x(
2256
2256
  t,
2257
- (r) => V(r) && ue(r, this)
2257
+ (r) => V(r) && le(r, this)
2258
2258
  )
2259
2259
  );
2260
2260
  }
@@ -2264,12 +2264,12 @@ var Ts = /^(matrix|translate|scale|rotate|skew)/, ks = /^(translate)/, Cs = /^(r
2264
2264
  this.inputs,
2265
2265
  (t) => x(
2266
2266
  t,
2267
- (r) => V(r) && Se(r, this)
2267
+ (r) => V(r) && xe(r, this)
2268
2268
  )
2269
2269
  );
2270
2270
  }
2271
2271
  eventObserved(e) {
2272
- e.type == "change" && (this._value = null), Re(this, e);
2272
+ e.type == "change" && (this._value = null), Se(this, e);
2273
2273
  }
2274
2274
  }, js = [
2275
2275
  "a",
@@ -2419,7 +2419,7 @@ var Fs = es(js, {
2419
2419
  getComponentProps: ({ scrollTop: e, scrollLeft: t, ...r }) => r
2420
2420
  }), ir = Fs.animated;
2421
2421
  const Br = rn({}), Vs = ({ children: e }) => {
2422
- const { app: t } = nn(), r = me(() => {
2422
+ const { app: t } = nn(), r = pe(() => {
2423
2423
  if (!t || !t.renderer) return null;
2424
2424
  const n = new fr();
2425
2425
  n.setFillStyle({
@@ -2471,12 +2471,12 @@ const Ds = ({
2471
2471
  cellHeight: n,
2472
2472
  gridDepth: s
2473
2473
  }) => {
2474
- const i = dr(Br), a = W(null), u = W(null);
2475
- Te(() => {
2474
+ const i = dr(Br), a = L(null), u = L(null);
2475
+ ue(() => {
2476
2476
  a.current && (u.current = new $s(
2477
2477
  i,
2478
2478
  a.current
2479
- ), d(
2479
+ ), f(
2480
2480
  0,
2481
2481
  0,
2482
2482
  r,
@@ -2490,23 +2490,23 @@ const Ds = ({
2490
2490
  var l;
2491
2491
  (l = u.current) == null || l.updateAll();
2492
2492
  });
2493
- const d = (l, m, f, h, p, _, v, w) => {
2493
+ const f = (l, p, h, d, m, _, v, w) => {
2494
2494
  var g;
2495
2495
  for (let R = 0; R < _; R++)
2496
- for (let y = 0; y < p; y++) {
2497
- const A = l + y * f, P = m + R * h;
2496
+ for (let y = 0; y < m; y++) {
2497
+ const A = l + y * h, P = p + R * d;
2498
2498
  v <= 0 || Math.random() > 0.7 && v < s ? Math.random() > 0.1 && ((g = u.current) == null || g.add(
2499
2499
  A,
2500
2500
  P,
2501
- f - 1,
2502
2501
  h - 1,
2502
+ d - 1,
2503
2503
  v
2504
- )) : d(
2504
+ )) : f(
2505
2505
  A,
2506
2506
  P,
2507
- f / p,
2508
- h / _,
2509
- p,
2507
+ h / m,
2508
+ d / _,
2509
+ m,
2510
2510
  _,
2511
2511
  v - 1
2512
2512
  );
@@ -2559,28 +2559,36 @@ const Ds = ({
2559
2559
  );
2560
2560
  an({ ParticleContainer: dn, Particle: hr, Texture: cn, Container: ln, Sprite: un, Graphics: fr });
2561
2561
  const ar = 2, or = 2, ur = 225, lr = 225, Ms = 5, Ws = () => {
2562
- const [e, t] = Fe(!1), [r, n] = Fe(0), [s, i] = Fe(0), a = rr({
2562
+ const e = L(null), [t, r] = Fe(!1), [n, s] = Fe(0), [i, a] = Fe(0), u = rr({
2563
2563
  from: { rotate: 0 },
2564
- to: { rotate: s * -360 },
2565
- config: { duration: 500, easing: (f) => 1 - Math.pow(1 - f, 3) }
2566
- // 1 second linear spin
2567
- }), u = rr({
2568
- opacity: e ? 1 : 0,
2569
- scale: e ? 1 : 0.5,
2564
+ to: { rotate: i * -360 },
2565
+ config: { duration: 500, easing: (d) => 1 - Math.pow(1 - d, 3) }
2566
+ }), f = rr({
2567
+ opacity: t ? 1 : 0,
2568
+ scale: t ? 1 : 0.5,
2570
2569
  config: { tension: 150, friction: 14 }
2571
- }), d = ir(qs), l = ir("button"), m = () => {
2572
- n((f) => f + 1), i((f) => f + 1);
2570
+ }), l = ir(qs), p = ir("button"), h = () => {
2571
+ s((d) => d + 1), a((d) => d + 1);
2573
2572
  };
2574
- return /* @__PURE__ */ D.jsxs("div", { className: "flex flex-col items-center justify-center w-full h-full", children: [
2573
+ return ue(() => () => {
2574
+ var m;
2575
+ const d = (m = e.current) == null ? void 0 : m.app;
2576
+ d && !d.destroyed && d.destroy(!0, {
2577
+ children: !0,
2578
+ texture: !0,
2579
+ baseTexture: !0
2580
+ });
2581
+ }, []), /* @__PURE__ */ D.jsxs("div", { className: "flex flex-col items-center justify-center w-full h-full", children: [
2575
2582
  /* @__PURE__ */ D.jsx(
2576
2583
  on,
2577
2584
  {
2585
+ ref: e,
2578
2586
  antialias: !1,
2579
2587
  width: ur * ar,
2580
2588
  height: lr * or,
2581
2589
  className: "transition-all image-pixelated md:w-full max-w-max w-72 mb-8",
2582
2590
  backgroundAlpha: 0,
2583
- onInit: () => t(!0),
2591
+ onInit: () => r(!0),
2584
2592
  children: /* @__PURE__ */ D.jsx(
2585
2593
  Us,
2586
2594
  {
@@ -2590,24 +2598,24 @@ const ar = 2, or = 2, ur = 225, lr = 225, Ms = 5, Ws = () => {
2590
2598
  cellHeight: lr,
2591
2599
  gridDepth: Ms
2592
2600
  },
2593
- r
2601
+ n
2594
2602
  )
2595
2603
  }
2596
2604
  ),
2597
- e && /* @__PURE__ */ D.jsx(
2598
- l,
2605
+ t && /* @__PURE__ */ D.jsx(
2606
+ p,
2599
2607
  {
2600
- style: u,
2608
+ style: f,
2601
2609
  className: "p-4",
2602
- onClick: m,
2610
+ onClick: h,
2603
2611
  children: /* @__PURE__ */ D.jsx(
2604
- d,
2612
+ l,
2605
2613
  {
2606
2614
  width: 36,
2607
2615
  height: 36,
2608
2616
  className: "hover:opacity-100 opacity-25",
2609
2617
  style: {
2610
- rotate: a.rotate.to((f) => `${f}deg`)
2618
+ rotate: u.rotate.to((d) => `${d}deg`)
2611
2619
  }
2612
2620
  }
2613
2621
  )