react-virtuoso 4.18.15 → 4.18.16

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/index.mjs CHANGED
@@ -39,7 +39,7 @@ function st(...t) {
39
39
  function X(t, e) {
40
40
  return t(Wt, e);
41
41
  }
42
- function A(t, e) {
42
+ function M(t, e) {
43
43
  t(we, e);
44
44
  }
45
45
  function De(t) {
@@ -48,7 +48,7 @@ function De(t) {
48
48
  function lt(t) {
49
49
  return t(Pn);
50
50
  }
51
- function O(t, e) {
51
+ function L(t, e) {
52
52
  return X(t, So(e, we));
53
53
  }
54
54
  function bt(t, e) {
@@ -79,10 +79,10 @@ function W(t) {
79
79
  t(n) && e(n);
80
80
  };
81
81
  }
82
- function B(t) {
82
+ function k(t) {
83
83
  return (e) => re(e, t);
84
84
  }
85
- function Bt(t) {
85
+ function kt(t) {
86
86
  return (e) => () => {
87
87
  e(t);
88
88
  };
@@ -99,7 +99,7 @@ function S(t, ...e) {
99
99
  }
100
100
  });
101
101
  }
102
- function kt(t, e) {
102
+ function Bt(t, e) {
103
103
  return (n) => (o) => {
104
104
  n(e = t(e, o));
105
105
  };
@@ -169,7 +169,7 @@ function w(t) {
169
169
  });
170
170
  }
171
171
  function gt(t, e) {
172
- return ye(w(e), (n) => O(t, n));
172
+ return ye(w(e), (n) => L(t, n));
173
173
  }
174
174
  function K() {
175
175
  const t = [];
@@ -192,7 +192,7 @@ function K() {
192
192
  });
193
193
  }
194
194
  function Ct(t) {
195
- return ye(K(), (e) => O(t, e));
195
+ return ye(K(), (e) => L(t, e));
196
196
  }
197
197
  const wo = { singleton: !0 };
198
198
  function Z(t, e = [], n = wo) {
@@ -221,7 +221,7 @@ function at(...t) {
221
221
  return t.forEach((s, i) => {
222
222
  const l = 2 ** i;
223
223
  X(s, (c) => {
224
- n[i] = c, o |= l, o === r && A(e, n);
224
+ n[i] = c, o |= l, o === r && M(e, n);
225
225
  });
226
226
  }), function(s, i) {
227
227
  switch (s) {
@@ -294,7 +294,7 @@ function _t(t, e) {
294
294
  function gn(t, e) {
295
295
  return Gn(t) ? -e : e;
296
296
  }
297
- function Lt(t, e, n) {
297
+ function Ot(t, e, n) {
298
298
  return $e(t, e, n).callbackRef;
299
299
  }
300
300
  function $e(t, e, n) {
@@ -312,10 +312,10 @@ function $e(t, e, n) {
312
312
  i && e ? (s?.observe(i), o.current = i) : (o.current && s?.unobserve(o.current), o.current = null);
313
313
  }, { callbackRef: r, ref: o };
314
314
  }
315
- function Mn(t, e, n, o, r, s, i, l, c) {
315
+ function An(t, e, n, o, r, s, i, l, c) {
316
316
  const d = E.useCallback(
317
317
  (f) => {
318
- const v = Bo(f.children, e, l ? "offsetWidth" : "offsetHeight", r);
318
+ const v = ko(f.children, e, l ? "offsetWidth" : "offsetHeight", r);
319
319
  let m = f.parentElement;
320
320
  for (; m.dataset.virtuosoScroller === void 0; )
321
321
  m = m.parentElement;
@@ -335,7 +335,7 @@ function Mn(t, e, n, o, r, s, i, l, c) {
335
335
  );
336
336
  return $e(d, n, c);
337
337
  }
338
- function Bo(t, e, n, o) {
338
+ function ko(t, e, n, o) {
339
339
  const r = t.length;
340
340
  if (r === 0)
341
341
  return null;
@@ -401,19 +401,19 @@ function Ue(t, e, n) {
401
401
  const St = Z(
402
402
  () => {
403
403
  const t = K(), e = K(), n = w(0), o = K(), r = K(), s = w(0), i = K(), l = K(), c = w(0), d = w(0), f = w(0), v = w(0), m = K(), h = K(), y = w(!1), R = w(!1), I = w(!1);
404
- return O(
404
+ return L(
405
405
  S(
406
406
  t,
407
- B(({ scrollTop: g }) => g)
407
+ k(({ scrollTop: g }) => g)
408
408
  ),
409
409
  e
410
- ), O(
410
+ ), L(
411
411
  S(
412
412
  t,
413
- B(({ scrollHeight: g }) => g)
413
+ k(({ scrollHeight: g }) => g)
414
414
  ),
415
415
  l
416
- ), O(e, s), {
416
+ ), L(e, s), {
417
417
  deviation: n,
418
418
  deviationCommitted: o,
419
419
  fixedFooterHeight: f,
@@ -439,7 +439,7 @@ const St = Z(
439
439
  [],
440
440
  { singleton: !0 }
441
441
  ), se = { lvl: 0 };
442
- function An(t, e) {
442
+ function Mn(t, e) {
443
443
  const n = t.length;
444
444
  if (n === 0)
445
445
  return [];
@@ -479,7 +479,7 @@ function Zt(t, e, n) {
479
479
  if (tt(t))
480
480
  return [];
481
481
  const o = Rt(t, e)[0];
482
- return ko(We(t, o, n));
482
+ return Bo(We(t, o, n));
483
483
  }
484
484
  function Pe(t, e) {
485
485
  if (tt(t))
@@ -510,7 +510,7 @@ function xe(t) {
510
510
  if (o.lvl >= n - 1 && e.lvl >= n - 1)
511
511
  return t;
512
512
  if (n > o.lvl + 1) {
513
- if (ke(e))
513
+ if (Be(e))
514
514
  return $n(ft(t, { lvl: n - 1 }));
515
515
  if (!tt(e) && !tt(e.r))
516
516
  return ft(e.r, {
@@ -523,10 +523,10 @@ function xe(t) {
523
523
  });
524
524
  throw new Error("Unexpected empty nodes");
525
525
  }
526
- if (ke(t))
526
+ if (Be(t))
527
527
  return Ge(ft(t, { lvl: n - 1 }));
528
528
  if (!tt(o) && !tt(o.l)) {
529
- const r = o.l, s = ke(r) ? o.lvl - 1 : o.lvl;
529
+ const r = o.l, s = Be(r) ? o.lvl - 1 : o.lvl;
530
530
  return ft(r, {
531
531
  l: ft(t, {
532
532
  lvl: n - 1,
@@ -550,7 +550,7 @@ function ft(t, e) {
550
550
  function _n(t) {
551
551
  return tt(t.r) ? t.l : xe(ft(t, { r: _n(t.r) }));
552
552
  }
553
- function ke(t) {
553
+ function Be(t) {
554
554
  return tt(t) || t.lvl > t.r.lvl;
555
555
  }
556
556
  function Nn(t) {
@@ -570,8 +570,8 @@ function Ge(t) {
570
570
  const { lvl: e, r: n } = t;
571
571
  return !tt(n) && !tt(n.r) && n.lvl === e && n.r.lvl === e ? ft(n, { l: ft(t, { r: n.l }), lvl: e + 1 }) : t;
572
572
  }
573
- function ko(t) {
574
- return An(t, ({ k: e, v: n }) => ({ index: e, value: n }));
573
+ function Bo(t) {
574
+ return Mn(t, ({ k: e, v: n }) => ({ index: e, value: n }));
575
575
  }
576
576
  function Un(t, e) {
577
577
  return !!(t && t.startIndex === e.startIndex && t.endIndex === e.endIndex);
@@ -605,7 +605,7 @@ function Te(t, e, n, o = 0) {
605
605
  }
606
606
  throw new Error(`Failed binary finding record in array - ${t.join(",")}, searched for ${e}`);
607
607
  }
608
- function Lo(t, e, n, o) {
608
+ function Oo(t, e, n, o) {
609
609
  const r = Te(t, e, o), s = Te(t, n, o, r);
610
610
  return t.slice(r, s + 1);
611
611
  }
@@ -618,7 +618,7 @@ function Re(t) {
618
618
  function je({ index: t }, e) {
619
619
  return e === t ? 0 : e < t ? -1 : 1;
620
620
  }
621
- function Oo() {
621
+ function Lo() {
622
622
  return {
623
623
  groupIndices: [],
624
624
  groupOffsetTree: Yt(),
@@ -638,7 +638,7 @@ function zo(t, e) {
638
638
  continue;
639
639
  }
640
640
  const l = Zt(t, i - 1, r + 1);
641
- if (l.some(Ao(o)))
641
+ if (l.some(Mo(o)))
642
642
  continue;
643
643
  let c = !1, d = !1;
644
644
  for (const { end: f, start: v, value: m } of l)
@@ -675,7 +675,7 @@ function qn(t, e, n) {
675
675
  return r = Math.max(0, Math.min(n, r)), r;
676
676
  }
677
677
  function Po(t, e, n, o = 0) {
678
- return o > 0 && (e = Math.max(e, Kn(t, o, je).offset)), An(Lo(t, e, n, Vo), Mo);
678
+ return o > 0 && (e = Math.max(e, Kn(t, o, je).offset)), Mn(Oo(t, e, n, Vo), Ao);
679
679
  }
680
680
  function Wo(t, [e, n, o, r]) {
681
681
  e.length > 0 && o("received item sizes", e, mt.DEBUG);
@@ -688,7 +688,7 @@ function Wo(t, [e, n, o, r]) {
688
688
  [i, l] = zo(i, e);
689
689
  if (i === s)
690
690
  return t;
691
- const { lastIndex: c, lastOffset: d, lastSize: f, offsetTree: v } = Me(t.offsetTree, l, i, r);
691
+ const { lastIndex: c, lastOffset: d, lastSize: f, offsetTree: v } = Ae(t.offsetTree, l, i, r);
692
692
  return {
693
693
  groupIndices: n,
694
694
  groupOffsetTree: n.reduce((m, h) => vt(m, h, ce(h, v, r)), Yt()),
@@ -711,7 +711,7 @@ function xn(t, e) {
711
711
  n += e[o + 1] - e[o] - 1, o++;
712
712
  return o - (n === t ? 0 : 1);
713
713
  }
714
- function Me(t, e, n, o) {
714
+ function Ae(t, e, n, o) {
715
715
  let r = t, s = 0, i = 0, l = 0, c = 0;
716
716
  if (e === 0)
717
717
  r = [];
@@ -735,40 +735,40 @@ function Me(t, e, n, o) {
735
735
  offsetTree: r
736
736
  };
737
737
  }
738
- function Mo(t) {
738
+ function Ao(t) {
739
739
  return { index: t.index, value: t };
740
740
  }
741
- function Ao(t) {
741
+ function Mo(t) {
742
742
  const { endIndex: e, size: n, startIndex: o } = t;
743
743
  return (r) => r.start === o && (r.end === e || r.end === 1 / 0) && r.value === n;
744
744
  }
745
745
  const _o = {
746
746
  offsetHeight: "height",
747
747
  offsetWidth: "width"
748
- }, Ot = Z(
748
+ }, Lt = Z(
749
749
  ([{ log: t }, { recalcInProgress: e }]) => {
750
- const n = K(), o = K(), r = gt(o, 0), s = K(), i = K(), l = w(0), c = w([]), d = w(void 0), f = w(void 0), v = w(void 0), m = w(void 0), h = w((u, p) => Ht(u, _o[p])), y = w(void 0), R = w(0), I = Oo(), g = gt(
751
- S(n, D(c, t, R), kt(Wo, I), ot()),
750
+ const n = K(), o = K(), r = gt(o, 0), s = K(), i = K(), l = w(0), c = w([]), d = w(void 0), f = w(void 0), v = w(void 0), m = w(void 0), h = w((u, p) => Ht(u, _o[p])), y = w(void 0), R = w(0), I = Lo(), g = gt(
751
+ S(n, D(c, t, R), Bt(Wo, I), ot()),
752
752
  I
753
753
  ), a = gt(
754
754
  S(
755
755
  c,
756
756
  ot(),
757
- kt((u, p) => ({ current: p, prev: u.current }), {
757
+ Bt((u, p) => ({ current: p, prev: u.current }), {
758
758
  current: [],
759
759
  prev: []
760
760
  }),
761
- B(({ prev: u }) => u)
761
+ k(({ prev: u }) => u)
762
762
  ),
763
763
  []
764
764
  );
765
- O(
765
+ L(
766
766
  S(
767
767
  c,
768
768
  W((u) => u.length > 0),
769
769
  D(g, R),
770
- B(([u, p, b]) => {
771
- const z = u.reduce((F, L, V) => vt(F, L, ce(L, p.offsetTree, b) || V), Yt());
770
+ k(([u, p, b]) => {
771
+ const z = u.reduce((F, O, V) => vt(F, O, ce(O, p.offsetTree, b) || V), Yt());
772
772
  return {
773
773
  ...p,
774
774
  groupIndices: u,
@@ -777,12 +777,12 @@ const _o = {
777
777
  })
778
778
  ),
779
779
  g
780
- ), O(
780
+ ), L(
781
781
  S(
782
782
  o,
783
783
  D(g),
784
784
  W(([u, { lastIndex: p }]) => u < p),
785
- B(([u, { lastIndex: p, lastSize: b }]) => [
785
+ k(([u, { lastIndex: p, lastSize: b }]) => [
786
786
  {
787
787
  endIndex: p,
788
788
  size: b,
@@ -791,19 +791,19 @@ const _o = {
791
791
  ])
792
792
  ),
793
793
  n
794
- ), O(d, f);
794
+ ), L(d, f);
795
795
  const T = gt(
796
796
  S(
797
797
  d,
798
- B((u) => u === void 0)
798
+ k((u) => u === void 0)
799
799
  ),
800
800
  !0
801
801
  );
802
- O(
802
+ L(
803
803
  S(
804
804
  f,
805
805
  W((u) => u !== void 0 && tt(lt(g).sizeTree)),
806
- B((u) => {
806
+ k((u) => {
807
807
  const p = lt(v), b = lt(c).length > 0;
808
808
  return p !== void 0 && p !== 0 ? b ? [
809
809
  { endIndex: 0, size: p, startIndex: 0 },
@@ -812,20 +812,20 @@ const _o = {
812
812
  })
813
813
  ),
814
814
  n
815
- ), O(
815
+ ), L(
816
816
  S(
817
817
  m,
818
818
  W((u) => u !== void 0 && u.length > 0 && tt(lt(g).sizeTree)),
819
- B((u) => {
819
+ k((u) => {
820
820
  const p = [];
821
821
  let b = u[0], z = 0;
822
822
  for (let F = 1; F < u.length; F++) {
823
- const L = u[F];
824
- L !== b && (p.push({
823
+ const O = u[F];
824
+ O !== b && (p.push({
825
825
  endIndex: F - 1,
826
826
  size: b,
827
827
  startIndex: z
828
- }), b = L, z = F);
828
+ }), b = O, z = F);
829
829
  }
830
830
  return p.push({
831
831
  endIndex: u.length - 1,
@@ -835,21 +835,21 @@ const _o = {
835
835
  })
836
836
  ),
837
837
  n
838
- ), O(
838
+ ), L(
839
839
  S(
840
840
  c,
841
841
  D(v, f),
842
842
  W(([, u, p]) => u !== void 0 && p !== void 0),
843
- B(([u, p, b]) => {
843
+ k(([u, p, b]) => {
844
844
  const z = [];
845
845
  for (let F = 0; F < u.length; F++) {
846
- const L = u[F], V = u[F + 1];
846
+ const O = u[F], V = u[F + 1];
847
847
  z.push({
848
- startIndex: L,
849
- endIndex: L,
848
+ startIndex: O,
849
+ endIndex: O,
850
850
  size: p
851
851
  }), V !== void 0 && z.push({
852
- startIndex: L + 1,
852
+ startIndex: O + 1,
853
853
  endIndex: V - 1,
854
854
  size: b
855
855
  });
@@ -863,32 +863,32 @@ const _o = {
863
863
  S(
864
864
  n,
865
865
  D(g),
866
- kt(
866
+ Bt(
867
867
  ({ sizes: u }, [p, b]) => ({
868
868
  changed: b !== u,
869
869
  sizes: b
870
870
  }),
871
871
  { changed: !1, sizes: I }
872
872
  ),
873
- B((u) => u.changed)
873
+ k((u) => u.changed)
874
874
  )
875
875
  );
876
876
  X(
877
877
  S(
878
878
  l,
879
- kt(
879
+ Bt(
880
880
  (u, p) => ({ diff: u.prev - p, prev: p }),
881
881
  { diff: 0, prev: 0 }
882
882
  ),
883
- B((u) => u.diff)
883
+ k((u) => u.diff)
884
884
  ),
885
885
  (u) => {
886
886
  const { groupIndices: p } = lt(g);
887
887
  if (u > 0)
888
- A(e, !0), A(s, u + xn(u, p));
888
+ M(e, !0), M(s, u + xn(u, p));
889
889
  else if (u < 0) {
890
890
  const b = lt(a);
891
- b.length > 0 && (u -= xn(-u, b)), A(i, u);
891
+ b.length > 0 && (u -= xn(-u, b)), M(i, u);
892
892
  }
893
893
  }
894
894
  ), X(S(l, D(t)), ([u, p]) => {
@@ -899,20 +899,20 @@ const _o = {
899
899
  );
900
900
  });
901
901
  const C = Ct(s);
902
- O(
902
+ L(
903
903
  S(
904
904
  s,
905
905
  D(g),
906
- B(([u, p]) => {
906
+ k(([u, p]) => {
907
907
  const b = p.groupIndices.length > 0, z = [], F = p.lastSize;
908
908
  if (b) {
909
- const L = ie(p.sizeTree, 0);
909
+ const O = ie(p.sizeTree, 0);
910
910
  let V = 0, U = 0;
911
911
  for (; V < u; ) {
912
912
  const j = p.groupIndices[U], J = p.groupIndices.length === U + 1 ? 1 / 0 : p.groupIndices[U + 1] - j - 1;
913
913
  z.push({
914
914
  endIndex: j,
915
- size: L,
915
+ size: O,
916
916
  startIndex: j
917
917
  }), z.push({
918
918
  endIndex: j + 1 + J - 1,
@@ -945,10 +945,10 @@ const _o = {
945
945
  ).ranges;
946
946
  }
947
947
  return Nt(p.sizeTree).reduce(
948
- (L, { k: V, v: U }) => ({
948
+ (O, { k: V, v: U }) => ({
949
949
  prevIndex: V + u,
950
950
  prevSize: U,
951
- ranges: [...L.ranges, { endIndex: V + u - 1, size: L.prevSize, startIndex: L.prevIndex }]
951
+ ranges: [...O.ranges, { endIndex: V + u - 1, size: O.prevSize, startIndex: O.prevIndex }]
952
952
  }),
953
953
  {
954
954
  prevIndex: 0,
@@ -960,25 +960,25 @@ const _o = {
960
960
  ),
961
961
  n
962
962
  );
963
- const k = Ct(
963
+ const B = Ct(
964
964
  S(
965
965
  i,
966
966
  D(g, R),
967
- B(([u, { offsetTree: p }, b]) => {
967
+ k(([u, { offsetTree: p }, b]) => {
968
968
  const z = -u;
969
969
  return ce(z, p, b);
970
970
  })
971
971
  )
972
972
  );
973
- return O(
973
+ return L(
974
974
  S(
975
975
  i,
976
976
  D(g, R),
977
- B(([u, p, b]) => {
977
+ k(([u, p, b]) => {
978
978
  if (p.groupIndices.length > 0) {
979
979
  if (tt(p.sizeTree))
980
980
  return p;
981
- let L = Yt();
981
+ let O = Yt();
982
982
  const V = lt(a);
983
983
  let U = 0, q = 0, $ = 0;
984
984
  for (; U < -u; ) {
@@ -986,23 +986,23 @@ const _o = {
986
986
  const J = V[q + 1] - $ - 1;
987
987
  q++, U += J + 1;
988
988
  }
989
- if (L = Nt(p.sizeTree).reduce((J, { k: dt, v: pt }) => vt(J, Math.max(0, dt + u), pt), L), U !== -u) {
989
+ if (O = Nt(p.sizeTree).reduce((J, { k: dt, v: pt }) => vt(J, Math.max(0, dt + u), pt), O), U !== -u) {
990
990
  const J = ie(p.sizeTree, $);
991
- L = vt(L, 0, J);
991
+ O = vt(O, 0, J);
992
992
  const dt = Rt(p.sizeTree, -u + 1)[1];
993
- L = vt(L, 1, dt);
993
+ O = vt(O, 1, dt);
994
994
  }
995
995
  return {
996
996
  ...p,
997
- sizeTree: L,
998
- ...Me(p.offsetTree, 0, L, b)
997
+ sizeTree: O,
998
+ ...Ae(p.offsetTree, 0, O, b)
999
999
  };
1000
1000
  }
1001
- const F = Nt(p.sizeTree).reduce((L, { k: V, v: U }) => vt(L, Math.max(0, V + u), U), Yt());
1001
+ const F = Nt(p.sizeTree).reduce((O, { k: V, v: U }) => vt(O, Math.max(0, V + u), U), Yt());
1002
1002
  return {
1003
1003
  ...p,
1004
1004
  sizeTree: F,
1005
- ...Me(p.offsetTree, 0, F, b)
1005
+ ...Ae(p.offsetTree, 0, F, b)
1006
1006
  };
1007
1007
  })
1008
1008
  ),
@@ -1021,7 +1021,7 @@ const _o = {
1021
1021
  itemSize: h,
1022
1022
  listRefresh: x,
1023
1023
  shiftWith: i,
1024
- shiftWithOffset: k,
1024
+ shiftWithOffset: B,
1025
1025
  sizeRanges: n,
1026
1026
  // output
1027
1027
  sizes: g,
@@ -1045,32 +1045,32 @@ function No(t) {
1045
1045
  }
1046
1046
  const Yn = Z(
1047
1047
  ([{ groupIndices: t, sizes: e, totalCount: n }, { headerHeight: o, scrollTop: r }]) => {
1048
- const s = K(), i = K(), l = Ct(S(s, B(No)));
1049
- return O(
1048
+ const s = K(), i = K(), l = Ct(S(s, k(No)));
1049
+ return L(
1050
1050
  S(
1051
1051
  l,
1052
- B((c) => c.totalCount)
1052
+ k((c) => c.totalCount)
1053
1053
  ),
1054
1054
  n
1055
- ), O(
1055
+ ), L(
1056
1056
  S(
1057
1057
  l,
1058
- B((c) => c.groupIndices)
1058
+ k((c) => c.groupIndices)
1059
1059
  ),
1060
1060
  t
1061
- ), O(
1061
+ ), L(
1062
1062
  S(
1063
1063
  at(r, e, o),
1064
1064
  W(([c, d]) => Re(d)),
1065
- B(([c, d, f]) => Rt(d.groupOffsetTree, Math.max(c - f, 0), "v")[0]),
1065
+ k(([c, d, f]) => Rt(d.groupOffsetTree, Math.max(c - f, 0), "v")[0]),
1066
1066
  ot(),
1067
- B((c) => [c])
1067
+ k((c) => [c])
1068
1068
  ),
1069
1069
  i
1070
1070
  ), { groupCounts: s, topItemsIndexes: i };
1071
1071
  },
1072
- st(Ot, St)
1073
- ), Mt = Z(
1072
+ st(Lt, St)
1073
+ ), At = Z(
1074
1074
  ([{ log: t }]) => {
1075
1075
  const e = w(!1), n = Ct(
1076
1076
  S(
@@ -1108,25 +1108,25 @@ const fe = Z(
1108
1108
  const h = K(), y = K(), R = w(0);
1109
1109
  let I = null, g = null, a = null;
1110
1110
  function T() {
1111
- I !== null && (I(), I = null), a !== null && (a(), a = null), g && (clearTimeout(g), g = null), A(c, !1);
1111
+ I !== null && (I(), I = null), a !== null && (a(), a = null), g && (clearTimeout(g), g = null), M(c, !1);
1112
1112
  }
1113
- return O(
1113
+ return L(
1114
1114
  S(
1115
1115
  h,
1116
1116
  D(n, v, o, R, l, i, m),
1117
1117
  D(t, s, r),
1118
- B(
1118
+ k(
1119
1119
  ([
1120
- [x, C, k, u, p, b, z, F],
1121
- L,
1120
+ [x, C, B, u, p, b, z, F],
1121
+ O,
1122
1122
  V,
1123
1123
  U
1124
1124
  ]) => {
1125
1125
  const q = Zn(x), { align: $, behavior: j, offset: J } = q, dt = u - 1, pt = qn(q, C, dt);
1126
- let It = ce(pt, C.offsetTree, L) + b;
1127
- $ === "end" ? (It += V + Rt(C.sizeTree, pt)[1] - k + U, pt === dt && (It += z)) : $ === "center" ? It += (V + Rt(C.sizeTree, pt)[1] - k + U) / 2 : It -= p, J !== void 0 && J !== 0 && (It += J);
1126
+ let It = ce(pt, C.offsetTree, O) + b;
1127
+ $ === "end" ? (It += V + Rt(C.sizeTree, pt)[1] - B + U, pt === dt && (It += z)) : $ === "center" ? It += (V + Rt(C.sizeTree, pt)[1] - B + U) / 2 : It -= p, J !== void 0 && J !== 0 && (It += J);
1128
1128
  const Ft = (ht) => {
1129
- T(), ht ? (F("retrying to scroll to", { location: x }, mt.DEBUG), A(h, x)) : (A(y, !0), F("list did not change, scroll successful", {}, mt.DEBUG));
1129
+ T(), ht ? (F("retrying to scroll to", { location: x }, mt.DEBUG), M(h, x)) : (M(y, !0), F("list did not change, scroll successful", {}, mt.DEBUG));
1130
1130
  };
1131
1131
  if (T(), j === "smooth") {
1132
1132
  let ht = !1;
@@ -1139,7 +1139,7 @@ const fe = Z(
1139
1139
  I = bt(S(e, $o(150)), Ft);
1140
1140
  return g = setTimeout(() => {
1141
1141
  T();
1142
- }, 1200), A(c, !0), F("scrolling from index to", { behavior: j, index: pt, top: It }, mt.DEBUG), { behavior: j, top: It };
1142
+ }, 1200), M(c, !0), F("scrolling from index to", { behavior: j, index: pt, top: It }, mt.DEBUG), { behavior: j, top: It };
1143
1143
  }
1144
1144
  )
1145
1145
  ),
@@ -1150,7 +1150,7 @@ const fe = Z(
1150
1150
  topListHeight: R
1151
1151
  };
1152
1152
  },
1153
- st(Ot, St, Gt),
1153
+ st(Lt, St, Gt),
1154
1154
  { singleton: !0 }
1155
1155
  );
1156
1156
  function $o(t) {
@@ -1174,26 +1174,26 @@ function Ye(t, e) {
1174
1174
  const n = e - 1, o = typeof t == "number" ? t : t.index === "LAST" ? n : t.index;
1175
1175
  return Math.max(0, Math.min(o, n));
1176
1176
  }
1177
- function Ae(t) {
1177
+ function Me(t) {
1178
1178
  return t === void 0 ? !0 : typeof t == "number" ? t === 0 : t.index === 0 && (t.align === void 0 || t.align === "start") && (t.offset === void 0 || t.offset === 0);
1179
1179
  }
1180
1180
  const me = Z(
1181
1181
  ([{ defaultItemSize: t, listRefresh: e, sizes: n }, { scrollTop: o }, { scrollTargetReached: r, scrollToIndex: s }, { didMount: i }]) => {
1182
1182
  const l = w(!0), c = w(0), d = w(!0);
1183
- return O(
1183
+ return L(
1184
1184
  S(
1185
1185
  i,
1186
1186
  D(c),
1187
- W(([f, v]) => !Ae(v)),
1188
- Bt(!1)
1187
+ W(([f, v]) => !Me(v)),
1188
+ kt(!1)
1189
1189
  ),
1190
1190
  l
1191
- ), O(
1191
+ ), L(
1192
1192
  S(
1193
1193
  i,
1194
1194
  D(c),
1195
- W(([f, v]) => !Ae(v)),
1196
- Bt(!1)
1195
+ W(([f, v]) => !Me(v)),
1196
+ kt(!1)
1197
1197
  ),
1198
1198
  d
1199
1199
  ), X(
@@ -1205,15 +1205,15 @@ const me = Z(
1205
1205
  ),
1206
1206
  ([, f]) => {
1207
1207
  if (f === void 0) {
1208
- A(l, !0), A(d, !0);
1208
+ M(l, !0), M(d, !0);
1209
1209
  return;
1210
1210
  }
1211
1211
  bt(r, () => {
1212
- A(d, !0);
1212
+ M(d, !0);
1213
1213
  }), qe(4, () => {
1214
1214
  bt(o, () => {
1215
- A(l, !0);
1216
- }), A(s, f);
1215
+ M(l, !0);
1216
+ }), M(s, f);
1217
1217
  });
1218
1218
  }
1219
1219
  ), {
@@ -1222,7 +1222,7 @@ const me = Z(
1222
1222
  scrolledToInitialItem: l
1223
1223
  };
1224
1224
  },
1225
- st(Ot, St, fe, Mt),
1225
+ st(Lt, St, fe, At),
1226
1226
  { singleton: !0 }
1227
1227
  );
1228
1228
  function Xn(t, e) {
@@ -1240,36 +1240,36 @@ const ue = "up", ne = "down", Uo = "none", Ko = {
1240
1240
  }, jo = 0, pe = Z(([{ footerHeight: t, headerHeight: e, scrollBy: n, scrollContainerState: o, scrollTop: r, viewportHeight: s }]) => {
1241
1241
  const i = w(!1), l = w(!0), c = K(), d = K(), f = w(4), v = w(jo), m = gt(
1242
1242
  S(
1243
- Ve(S(P(r), Ut(1), Bt(!0)), S(P(r), Ut(1), Bt(!1), hn(100))),
1243
+ Ve(S(P(r), Ut(1), kt(!0)), S(P(r), Ut(1), kt(!1), hn(100))),
1244
1244
  ot()
1245
1245
  ),
1246
1246
  !1
1247
1247
  ), h = gt(
1248
- S(Ve(S(n, Bt(!0)), S(n, Bt(!1), hn(200))), ot()),
1248
+ S(Ve(S(n, kt(!0)), S(n, kt(!1), hn(200))), ot()),
1249
1249
  !1
1250
1250
  );
1251
- O(
1251
+ L(
1252
1252
  S(
1253
1253
  at(P(r), P(v)),
1254
- B(([a, T]) => a <= T),
1254
+ k(([a, T]) => a <= T),
1255
1255
  ot()
1256
1256
  ),
1257
1257
  l
1258
- ), O(S(l, zt(50)), d);
1258
+ ), L(S(l, zt(50)), d);
1259
1259
  const y = Ct(
1260
1260
  S(
1261
1261
  at(o, P(s), P(e), P(t), P(f)),
1262
- kt((a, [{ scrollHeight: T, scrollTop: x }, C, k, u, p]) => {
1262
+ Bt((a, [{ scrollHeight: T, scrollTop: x }, C, B, u, p]) => {
1263
1263
  const b = x + C - T > -p, z = {
1264
1264
  scrollHeight: T,
1265
1265
  scrollTop: x,
1266
1266
  viewportHeight: C
1267
1267
  };
1268
1268
  if (b) {
1269
- let L, V;
1270
- return x > a.state.scrollTop ? (L = "SCROLLED_DOWN", V = a.state.scrollTop - x) : (L = "SIZE_DECREASED", V = a.state.scrollTop - x || a.scrollTopDelta), {
1269
+ let O, V;
1270
+ return x > a.state.scrollTop ? (O = "SCROLLED_DOWN", V = a.state.scrollTop - x) : (O = "SIZE_DECREASED", V = a.state.scrollTop - x || a.scrollTopDelta), {
1271
1271
  atBottom: !0,
1272
- atBottomBecause: L,
1272
+ atBottomBecause: O,
1273
1273
  scrollTopDelta: V,
1274
1274
  state: z
1275
1275
  };
@@ -1286,11 +1286,11 @@ const ue = "up", ne = "down", Uo = "none", Ko = {
1286
1286
  ), R = gt(
1287
1287
  S(
1288
1288
  o,
1289
- kt(
1289
+ Bt(
1290
1290
  (a, { scrollHeight: T, scrollTop: x, viewportHeight: C }) => {
1291
1291
  if (!Xn(a.scrollHeight, T)) {
1292
- const k = T - (x + C) < 1;
1293
- return a.scrollTop !== x && k ? {
1292
+ const B = T - (x + C) < 1;
1293
+ return a.scrollTop !== x && B ? {
1294
1294
  changed: !0,
1295
1295
  jump: a.scrollTop - x,
1296
1296
  scrollHeight: T,
@@ -1312,47 +1312,47 @@ const ue = "up", ne = "down", Uo = "none", Ko = {
1312
1312
  { changed: !1, jump: 0, scrollHeight: 0, scrollTop: 0 }
1313
1313
  ),
1314
1314
  W((a) => a.changed),
1315
- B((a) => a.jump)
1315
+ k((a) => a.jump)
1316
1316
  ),
1317
1317
  0
1318
1318
  );
1319
- O(
1319
+ L(
1320
1320
  S(
1321
1321
  y,
1322
- B((a) => a.atBottom)
1322
+ k((a) => a.atBottom)
1323
1323
  ),
1324
1324
  i
1325
- ), O(S(i, zt(50)), c);
1325
+ ), L(S(i, zt(50)), c);
1326
1326
  const I = w(ne);
1327
- O(
1327
+ L(
1328
1328
  S(
1329
1329
  o,
1330
- B(({ scrollTop: a }) => a),
1330
+ k(({ scrollTop: a }) => a),
1331
1331
  ot(),
1332
- kt(
1332
+ Bt(
1333
1333
  (a, T) => lt(h) ? { direction: a.direction, prevScrollTop: T } : { direction: T < a.prevScrollTop ? ue : ne, prevScrollTop: T },
1334
1334
  { direction: ne, prevScrollTop: 0 }
1335
1335
  ),
1336
- B((a) => a.direction)
1336
+ k((a) => a.direction)
1337
1337
  ),
1338
1338
  I
1339
- ), O(S(o, zt(50), Bt(Uo)), I);
1339
+ ), L(S(o, zt(50), kt(Uo)), I);
1340
1340
  const g = w(0);
1341
- return O(
1341
+ return L(
1342
1342
  S(
1343
1343
  m,
1344
1344
  W((a) => !a),
1345
- Bt(0)
1345
+ kt(0)
1346
1346
  ),
1347
1347
  g
1348
- ), O(
1348
+ ), L(
1349
1349
  S(
1350
1350
  r,
1351
1351
  zt(100),
1352
1352
  D(m),
1353
1353
  W(([a, T]) => T),
1354
- kt(([a, T], [x]) => [T, x], [0, 0]),
1355
- B(([a, T]) => T - a)
1354
+ Bt(([a, T], [x]) => [T, x], [0, 0]),
1355
+ k(([a, T]) => T - a)
1356
1356
  ),
1357
1357
  g
1358
1358
  ), {
@@ -1390,7 +1390,7 @@ const Ze = Z(
1390
1390
  P(t),
1391
1391
  P(l)
1392
1392
  ),
1393
- B(
1393
+ k(
1394
1394
  ([
1395
1395
  f,
1396
1396
  v,
@@ -1402,12 +1402,12 @@ const Ze = Z(
1402
1402
  a,
1403
1403
  T
1404
1404
  ]) => {
1405
- const x = f - a, C = I + g, k = Math.max(m - x, 0);
1405
+ const x = f - a, C = I + g, B = Math.max(m - x, 0);
1406
1406
  let u = vn;
1407
1407
  const p = Cn(T, ae), b = Cn(T, de);
1408
- return h -= a, h += m + g, y += m + g, y -= a, h > f + C - p && (u = ue), y < f - k + v + b && (u = ne), u !== vn ? [
1408
+ return h -= a, h += m + g, y += m + g, y -= a, h > f + C - p && (u = ue), y < f - B + v + b && (u = ne), u !== vn ? [
1409
1409
  Math.max(x - m - Tn(R, ae, u) - p, 0),
1410
- x - k - g + v + Tn(R, de, u) + b
1410
+ x - B - g + v + Tn(R, de, u) + b
1411
1411
  ] : null;
1412
1412
  }
1413
1413
  ),
@@ -1439,7 +1439,7 @@ function qo(t, e, n) {
1439
1439
  }
1440
1440
  return [{ data: n?.[0], index: t, offset: 0, size: 0 }];
1441
1441
  }
1442
- const Le = {
1442
+ const Oe = {
1443
1443
  bottom: 0,
1444
1444
  firstItemIndex: 0,
1445
1445
  items: [],
@@ -1528,7 +1528,7 @@ const Kt = Z(
1528
1528
  { recalcInProgress: y }
1529
1529
  ]) => {
1530
1530
  const R = w([]), I = w(0), g = K(), a = w(0);
1531
- O(s.topItemsIndexes, R);
1531
+ L(s.topItemsIndexes, R);
1532
1532
  const T = gt(
1533
1533
  S(
1534
1534
  at(
@@ -1550,7 +1550,7 @@ const Kt = Z(
1550
1550
  const F = z !== void 0 && z.length !== b;
1551
1551
  return u && !p && !F;
1552
1552
  }),
1553
- B(
1553
+ k(
1554
1554
  ([
1555
1555
  ,
1556
1556
  ,
@@ -1558,7 +1558,7 @@ const Kt = Z(
1558
1558
  b,
1559
1559
  z,
1560
1560
  F,
1561
- L,
1561
+ O,
1562
1562
  V,
1563
1563
  U,
1564
1564
  q,
@@ -1568,9 +1568,9 @@ const Kt = Z(
1568
1568
  ]) => {
1569
1569
  const dt = z, { offsetTree: pt, sizeTree: It } = dt;
1570
1570
  if (b === 0)
1571
- return { ...Le, totalCount: b };
1571
+ return { ...Oe, totalCount: b };
1572
1572
  if (u === 0 && p === 0)
1573
- return J === 0 ? { ...Le, totalCount: b } : Jn(J, F, z, U, q, j);
1573
+ return J === 0 ? { ...Oe, totalCount: b } : Jn(J, F, z, U, q, j);
1574
1574
  if (tt(It))
1575
1575
  return J > 0 ? null : ve(
1576
1576
  qo(Ye(F, b), dt, j),
@@ -1590,7 +1590,7 @@ const Kt = Z(
1590
1590
  Ft.push({ data: j?.[ut], index: ut, offset: it, size: Q }), it += Q;
1591
1591
  }
1592
1592
  }
1593
- if (!L)
1593
+ if (!O)
1594
1594
  return ve([], Ft, b, q, dt, U);
1595
1595
  const ht = V.length > 0 ? V[V.length - 1] + 1 : 0, jt = Po(pt, u, p, ht);
1596
1596
  if (jt.length === 0)
@@ -1638,31 +1638,31 @@ const Kt = Z(
1638
1638
  W((u) => u !== null),
1639
1639
  ot()
1640
1640
  ),
1641
- Le
1641
+ Oe
1642
1642
  );
1643
- O(
1643
+ L(
1644
1644
  S(
1645
1645
  t,
1646
1646
  W(Ne),
1647
- B((u) => u?.length)
1647
+ k((u) => u?.length)
1648
1648
  ),
1649
1649
  r
1650
- ), O(
1650
+ ), L(
1651
1651
  S(
1652
1652
  T,
1653
- B((u) => u.topListHeight)
1653
+ k((u) => u.topListHeight)
1654
1654
  ),
1655
1655
  v
1656
- ), O(v, l), O(
1656
+ ), L(v, l), L(
1657
1657
  S(
1658
1658
  T,
1659
- B((u) => [u.top, u.bottom])
1659
+ k((u) => [u.top, u.bottom])
1660
1660
  ),
1661
1661
  i
1662
- ), O(
1662
+ ), L(
1663
1663
  S(
1664
1664
  T,
1665
- B((u) => u.items)
1665
+ k((u) => u.items)
1666
1666
  ),
1667
1667
  g
1668
1668
  );
@@ -1672,24 +1672,24 @@ const Kt = Z(
1672
1672
  W(({ items: u }) => u.length > 0),
1673
1673
  D(r, t),
1674
1674
  W(([{ items: u }, p]) => u[u.length - 1].originalIndex === p - 1),
1675
- B(([, u, p]) => [u - 1, p]),
1675
+ k(([, u, p]) => [u - 1, p]),
1676
1676
  ot(le),
1677
- B(([u]) => u)
1677
+ k(([u]) => u)
1678
1678
  )
1679
1679
  ), C = Ct(
1680
1680
  S(
1681
1681
  T,
1682
1682
  zt(200),
1683
1683
  W(({ items: u, topItems: p }) => u.length > 0 && u[0].originalIndex === p.length),
1684
- B(({ items: u }) => u[0].index),
1684
+ k(({ items: u }) => u[0].index),
1685
1685
  ot()
1686
1686
  )
1687
- ), k = Ct(
1687
+ ), B = Ct(
1688
1688
  S(
1689
1689
  T,
1690
1690
  W(({ items: u }) => u.length > 0),
1691
1691
  // oxlint-disable-next-line array-callback-return -- callback always returns after trimming group sentinels
1692
- B(({ items: u }) => {
1692
+ k(({ items: u }) => {
1693
1693
  let p = 0, b = u.length - 1;
1694
1694
  for (; u[p].type === "group" && p < b; )
1695
1695
  p++;
@@ -1709,20 +1709,20 @@ const Kt = Z(
1709
1709
  itemsRendered: g,
1710
1710
  listState: T,
1711
1711
  minOverscanItemCount: a,
1712
- rangeChanged: k,
1712
+ rangeChanged: B,
1713
1713
  startReached: C,
1714
1714
  topItemsIndexes: R,
1715
1715
  ...m
1716
1716
  };
1717
1717
  },
1718
1718
  st(
1719
- Ot,
1719
+ Lt,
1720
1720
  Yn,
1721
1721
  Ze,
1722
1722
  me,
1723
1723
  fe,
1724
1724
  pe,
1725
- Mt,
1725
+ At,
1726
1726
  Ke
1727
1727
  ),
1728
1728
  { singleton: !0 }
@@ -1731,11 +1731,11 @@ const Kt = Z(
1731
1731
  const s = K(), i = gt(
1732
1732
  S(
1733
1733
  at(n, t, o, e, r),
1734
- B(([l, c, d, f, v]) => l + c + d + f + v.offsetBottom + v.bottom)
1734
+ k(([l, c, d, f, v]) => l + c + d + f + v.offsetBottom + v.bottom)
1735
1735
  ),
1736
1736
  0
1737
1737
  );
1738
- return O(P(i), s), { totalListHeight: i, totalListHeightChanged: s };
1738
+ return L(P(i), s), { totalListHeight: i, totalListHeightChanged: s };
1739
1739
  },
1740
1740
  st(St, Kt),
1741
1741
  { singleton: !0 }
@@ -1745,7 +1745,7 @@ const Kt = Z(
1745
1745
  S(
1746
1746
  at(n, t, e),
1747
1747
  W(([r]) => r),
1748
- B(([, r, s]) => Math.max(0, r - s)),
1748
+ k(([, r, s]) => Math.max(0, r - s)),
1749
1749
  zt(0),
1750
1750
  ot()
1751
1751
  ),
@@ -1770,20 +1770,20 @@ const Kt = Z(
1770
1770
  { scrollToIndex: d }
1771
1771
  ]) => {
1772
1772
  const f = K();
1773
- return O(
1773
+ return L(
1774
1774
  S(
1775
1775
  f,
1776
1776
  D(e, c, n, s, r, o, l),
1777
1777
  D(t),
1778
- B(([[v, m, h, y, R, I, g, a], T]) => {
1779
- const { calculateViewLocation: x = Zo, done: C, ...k } = v, u = qn(v, m, y - 1), p = ce(u, m.offsetTree, T) + R + I, b = p + Rt(m.sizeTree, u)[1], z = a + I, F = a + h - g, L = x({
1778
+ k(([[v, m, h, y, R, I, g, a], T]) => {
1779
+ const { calculateViewLocation: x = Zo, done: C, ...B } = v, u = qn(v, m, y - 1), p = ce(u, m.offsetTree, T) + R + I, b = p + Rt(m.sizeTree, u)[1], z = a + I, F = a + h - g, O = x({
1780
1780
  itemBottom: b,
1781
1781
  itemTop: p,
1782
- locationParams: k,
1782
+ locationParams: B,
1783
1783
  viewportBottom: F,
1784
1784
  viewportTop: z
1785
1785
  });
1786
- return L === null ? C?.() : C && bt(
1786
+ return O === null ? C?.() : C && bt(
1787
1787
  S(
1788
1788
  i,
1789
1789
  W((V) => !V),
@@ -1792,7 +1792,7 @@ const Kt = Z(
1792
1792
  Ut(lt(i) ? 1 : 2)
1793
1793
  ),
1794
1794
  C
1795
- ), L;
1795
+ ), O;
1796
1796
  }),
1797
1797
  W((v) => v !== null)
1798
1798
  ),
@@ -1801,7 +1801,7 @@ const Kt = Z(
1801
1801
  scrollIntoView: f
1802
1802
  };
1803
1803
  },
1804
- st(Ot, St, fe, Kt, Gt),
1804
+ st(Lt, St, fe, Kt, Gt),
1805
1805
  { singleton: !0 }
1806
1806
  );
1807
1807
  function bn(t) {
@@ -1822,7 +1822,7 @@ const Xo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), Jo = Z(
1822
1822
  const y = w(!1), R = K();
1823
1823
  let I = null;
1824
1824
  function g(C) {
1825
- A(i, {
1825
+ M(i, {
1826
1826
  align: "end",
1827
1827
  behavior: C,
1828
1828
  index: "LAST"
@@ -1832,32 +1832,32 @@ const Xo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), Jo = Z(
1832
1832
  S(
1833
1833
  at(S(P(e), Ut(1)), c),
1834
1834
  D(P(y), s, l, v),
1835
- B(([[C, k], u, p, b, z]) => {
1836
- let F = k && b, L = "auto";
1837
- return F && (L = Xo(u, p || z), F = F && L !== !1), { followOutputBehavior: L, shouldFollow: F, totalCount: C };
1835
+ k(([[C, B], u, p, b, z]) => {
1836
+ let F = B && b, O = "auto";
1837
+ return F && (O = Xo(u, p || z), F = F && O !== !1), { followOutputBehavior: O, shouldFollow: F, totalCount: C };
1838
1838
  }),
1839
1839
  W(({ shouldFollow: C }) => C)
1840
1840
  ),
1841
- ({ followOutputBehavior: C, totalCount: k }) => {
1841
+ ({ followOutputBehavior: C, totalCount: B }) => {
1842
1842
  I !== null && (I(), I = null), lt(n) === void 0 ? I = bt(t, () => {
1843
- lt(f)("following output to ", { totalCount: k }, mt.DEBUG), g(C), I = null;
1843
+ lt(f)("following output to ", { totalCount: B }, mt.DEBUG), g(C), I = null;
1844
1844
  }) : requestAnimationFrame(() => {
1845
- lt(f)("following output to ", { totalCount: k }, mt.DEBUG), g(C);
1845
+ lt(f)("following output to ", { totalCount: B }, mt.DEBUG), g(C);
1846
1846
  });
1847
1847
  }
1848
1848
  );
1849
1849
  function a(C) {
1850
- const k = bt(r, (u) => {
1850
+ const B = bt(r, (u) => {
1851
1851
  C && !u.atBottom && u.notAtBottomBecause === "SIZE_INCREASED" && I === null && (lt(f)("scrolling to bottom due to increased size", {}, mt.DEBUG), g("auto"));
1852
1852
  });
1853
- setTimeout(k, 100);
1853
+ setTimeout(B, 100);
1854
1854
  }
1855
1855
  X(
1856
1856
  S(
1857
1857
  at(P(y), e, d),
1858
- W(([C, , k]) => C !== !1 && k),
1859
- kt(
1860
- ({ value: C }, [, k]) => ({ refreshed: C === k, value: k }),
1858
+ W(([C, , B]) => C !== !1 && B),
1859
+ Bt(
1860
+ ({ value: C }, [, B]) => ({ refreshed: C === B, value: B }),
1861
1861
  { refreshed: !1, value: 0 }
1862
1862
  ),
1863
1863
  W(({ refreshed: C }) => C),
@@ -1868,15 +1868,15 @@ const Xo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), Jo = Z(
1868
1868
  }
1869
1869
  ), X(R, () => {
1870
1870
  a(lt(y) !== !1);
1871
- }), X(at(P(y), r), ([C, k]) => {
1872
- C !== !1 && !k.atBottom && k.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && g("auto");
1871
+ }), X(at(P(y), r), ([C, B]) => {
1872
+ C !== !1 && !B.atBottom && B.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && g("auto");
1873
1873
  });
1874
1874
  const T = w(null), x = K();
1875
- return O(
1875
+ return L(
1876
1876
  Ve(
1877
1877
  S(
1878
1878
  P(o),
1879
- B((C) => C?.length ?? 0)
1879
+ k((C) => C?.length ?? 0)
1880
1880
  ),
1881
1881
  S(P(e))
1882
1882
  ),
@@ -1885,42 +1885,42 @@ const Xo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), Jo = Z(
1885
1885
  S(
1886
1886
  at(S(x, Ut(1)), c),
1887
1887
  D(P(T), l, v, m),
1888
- B(([[C, k], u, p, b, z]) => k && p && u?.({ context: z, totalCount: C, scrollingInProgress: b })),
1888
+ k(([[C, B], u, p, b, z]) => B && p && u?.({ context: z, totalCount: C, scrollingInProgress: b })),
1889
1889
  W((C) => !!C),
1890
1890
  zt(0)
1891
1891
  ),
1892
1892
  (C) => {
1893
1893
  I !== null && (I(), I = null), lt(n) === void 0 ? I = bt(t, () => {
1894
- lt(f)("scrolling into view", {}), A(h, C), I = null;
1894
+ lt(f)("scrolling into view", {}), M(h, C), I = null;
1895
1895
  }) : requestAnimationFrame(() => {
1896
- lt(f)("scrolling into view", {}), A(h, C);
1896
+ lt(f)("scrolling into view", {}), M(h, C);
1897
1897
  });
1898
1898
  }
1899
1899
  ), { autoscrollToBottom: R, followOutput: y, scrollIntoViewOnChange: T };
1900
1900
  },
1901
1901
  st(
1902
- Ot,
1902
+ Lt,
1903
1903
  pe,
1904
1904
  fe,
1905
1905
  me,
1906
- Mt,
1906
+ At,
1907
1907
  Gt,
1908
1908
  St,
1909
1909
  to,
1910
1910
  eo
1911
1911
  )
1912
1912
  ), Qo = Z(
1913
- ([{ data: t, firstItemIndex: e, gap: n, sizes: o }, { initialTopMostItemIndex: r }, { initialItemCount: s, listState: i }, { didMount: l }]) => (O(
1913
+ ([{ data: t, firstItemIndex: e, gap: n, sizes: o }, { initialTopMostItemIndex: r }, { initialItemCount: s, listState: i }, { didMount: l }]) => (L(
1914
1914
  S(
1915
1915
  l,
1916
1916
  D(s),
1917
1917
  W(([, c]) => c !== 0),
1918
1918
  D(r, o, e, n, t),
1919
- B(([[, c], d, f, v, m, h]) => Jn(c, d, f, v, m, h))
1919
+ k(([[, c], d, f, v, m, h]) => Jn(c, d, f, v, m, h))
1920
1920
  ),
1921
1921
  i
1922
1922
  ), {}),
1923
- st(Ot, me, Kt, Mt),
1923
+ st(Lt, me, Kt, At),
1924
1924
  { singleton: !0 }
1925
1925
  ), tr = Z(
1926
1926
  ([{ didMount: t }, { scrollTo: e }, { listState: n }]) => {
@@ -1930,7 +1930,7 @@ const Xo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), Jo = Z(
1930
1930
  t,
1931
1931
  D(o),
1932
1932
  W(([, r]) => r !== 0),
1933
- B(([, r]) => ({ top: r }))
1933
+ k(([, r]) => ({ top: r }))
1934
1934
  ),
1935
1935
  (r) => {
1936
1936
  bt(
@@ -1941,7 +1941,7 @@ const Xo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), Jo = Z(
1941
1941
  ),
1942
1942
  () => {
1943
1943
  requestAnimationFrame(() => {
1944
- A(e, r);
1944
+ M(e, r);
1945
1945
  });
1946
1946
  }
1947
1947
  );
@@ -1950,17 +1950,17 @@ const Xo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), Jo = Z(
1950
1950
  initialScrollTop: o
1951
1951
  };
1952
1952
  },
1953
- st(Mt, St, Kt),
1953
+ st(At, St, Kt),
1954
1954
  { singleton: !0 }
1955
1955
  ), no = Z(
1956
1956
  ([{ scrollVelocity: t }]) => {
1957
1957
  const e = w(!1), n = K(), o = w(!1);
1958
- return O(
1958
+ return L(
1959
1959
  S(
1960
1960
  t,
1961
1961
  D(o, e, n),
1962
1962
  W(([r, s]) => s !== !1 && s !== void 0),
1963
- B(([r, s, i, l]) => {
1963
+ k(([r, s, i, l]) => {
1964
1964
  const { enter: c, exit: d } = s;
1965
1965
  if (i) {
1966
1966
  if (d(r, l))
@@ -1983,21 +1983,21 @@ const Xo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), Jo = Z(
1983
1983
  { singleton: !0 }
1984
1984
  ), Xe = Z(([{ scrollContainerState: t, scrollTo: e }]) => {
1985
1985
  const n = K(), o = K(), r = K(), s = w(!1), i = w(void 0);
1986
- return O(
1986
+ return L(
1987
1987
  S(
1988
1988
  at(n, o),
1989
- B(([{ scrollTop: l, viewportHeight: c }, { offsetTop: d, listHeight: f }]) => ({
1989
+ k(([{ scrollTop: l, viewportHeight: c }, { offsetTop: d, listHeight: f }]) => ({
1990
1990
  scrollHeight: f,
1991
1991
  scrollTop: Math.max(0, l - d),
1992
1992
  viewportHeight: c
1993
1993
  }))
1994
1994
  ),
1995
1995
  t
1996
- ), O(
1996
+ ), L(
1997
1997
  S(
1998
1998
  e,
1999
1999
  D(o),
2000
- B(([l, { offsetTop: c }]) => ({
2000
+ k(([l, { offsetTop: c }]) => ({
2001
2001
  ...l,
2002
2002
  top: l.top + c
2003
2003
  }))
@@ -2022,7 +2022,7 @@ const Xo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), Jo = Z(
2022
2022
  { useWindowScroll: i, windowScrollContainerState: l, windowViewportRect: c }
2023
2023
  ]) => {
2024
2024
  const d = K(), f = w(void 0), v = w(null), m = w(null);
2025
- return O(l, v), O(c, m), X(
2025
+ return L(l, v), L(c, m), X(
2026
2026
  S(
2027
2027
  d,
2028
2028
  D(e, o, i, v, m, n)
@@ -2031,13 +2031,13 @@ const Xo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), Jo = Z(
2031
2031
  const x = Go(y.sizeTree);
2032
2032
  I && g !== null && a !== null && (R = g.scrollTop - a.offsetTop), R -= T, h({ ranges: x, scrollTop: R });
2033
2033
  }
2034
- ), O(S(f, W(Ne), B(nr)), r), O(
2034
+ ), L(S(f, W(Ne), k(nr)), r), L(
2035
2035
  S(
2036
2036
  s,
2037
2037
  D(f),
2038
2038
  W(([, h]) => h !== void 0),
2039
2039
  ot(),
2040
- B(([, h]) => h.ranges)
2040
+ k(([, h]) => h.ranges)
2041
2041
  ),
2042
2042
  t
2043
2043
  ), {
@@ -2045,18 +2045,18 @@ const Xo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), Jo = Z(
2045
2045
  restoreStateFrom: f
2046
2046
  };
2047
2047
  },
2048
- st(Ot, St, me, Mt, Xe)
2048
+ st(Lt, St, me, At, Xe)
2049
2049
  );
2050
2050
  function nr(t) {
2051
2051
  return { align: "start", index: 0, offset: t.scrollTop };
2052
2052
  }
2053
2053
  const or = Z(([{ topItemsIndexes: t }]) => {
2054
2054
  const e = w(0);
2055
- return O(
2055
+ return L(
2056
2056
  S(
2057
2057
  e,
2058
2058
  W((n) => n >= 0),
2059
- B((n) => Array.from({ length: n }).map((o, r) => r))
2059
+ k((n) => Array.from({ length: n }).map((o, r) => r))
2060
2060
  ),
2061
2061
  t
2062
2062
  ), { topItemCount: e };
@@ -2078,37 +2078,37 @@ const rr = oo(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2078
2078
  S(
2079
2079
  d,
2080
2080
  D(l),
2081
- kt(
2082
- ([, x, C, k], [{ bottom: u, items: p, offsetBottom: b, totalCount: z }, F]) => {
2083
- const L = u + b;
2081
+ Bt(
2082
+ ([, x, C, B], [{ bottom: u, items: p, offsetBottom: b, totalCount: z }, F]) => {
2083
+ const O = u + b;
2084
2084
  let V = 0;
2085
- return C === z && x.length > 0 && p.length > 0 && (p[0].originalIndex === 0 && x[0].originalIndex === 0 || (V = L - k, V !== 0 && (V += F))), [V, p, z, L];
2085
+ return C === z && x.length > 0 && p.length > 0 && (p[0].originalIndex === 0 && x[0].originalIndex === 0 || (V = O - B, V !== 0 && (V += F))), [V, p, z, O];
2086
2086
  },
2087
2087
  [0, [], 0, 0]
2088
2088
  ),
2089
2089
  W(([x]) => x !== 0),
2090
2090
  D(r, c, o, s, y, R),
2091
- W(([, x, C, k, , , u]) => !u && !k && x !== 0 && C === ue),
2092
- B(([[x], , , , , C]) => (C("Upward scrolling compensation", { amount: x }, mt.DEBUG), x))
2091
+ W(([, x, C, B, , , u]) => !u && !B && x !== 0 && C === ue),
2092
+ k(([[x], , , , , C]) => (C("Upward scrolling compensation", { amount: x }, mt.DEBUG), x))
2093
2093
  )
2094
2094
  );
2095
2095
  function g(x) {
2096
- x > 0 ? (A(n, { behavior: "auto", top: -x }), A(t, 0)) : (A(t, 0), A(n, { behavior: "auto", top: -x }));
2096
+ x > 0 ? (M(n, { behavior: "auto", top: -x }), M(t, 0)) : (M(t, 0), M(n, { behavior: "auto", top: -x }));
2097
2097
  }
2098
- X(S(I, D(t, i)), ([x, C, k]) => {
2099
- k && rr() ? A(t, C - x) : g(-x);
2098
+ X(S(I, D(t, i)), ([x, C, B]) => {
2099
+ B && rr() ? M(t, C - x) : g(-x);
2100
2100
  }), X(
2101
2101
  S(
2102
2102
  at(gt(i, !1), t, R),
2103
- W(([x, C, k]) => !x && !k && C !== 0),
2104
- B(([x, C]) => C),
2103
+ W(([x, C, B]) => !x && !B && C !== 0),
2104
+ k(([x, C]) => C),
2105
2105
  zt(1)
2106
2106
  ),
2107
2107
  g
2108
- ), O(
2108
+ ), L(
2109
2109
  S(
2110
2110
  m,
2111
- B((x) => ({ top: -x }))
2111
+ k((x) => ({ top: -x }))
2112
2112
  ),
2113
2113
  n
2114
2114
  );
@@ -2117,8 +2117,8 @@ const rr = oo(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2117
2117
  if (a === null)
2118
2118
  return;
2119
2119
  const { offset: x } = a;
2120
- a = null, A(n, { top: x }), requestAnimationFrame(() => {
2121
- A(t, 0), A(R, !1);
2120
+ a = null, M(n, { top: x }), requestAnimationFrame(() => {
2121
+ M(t, 0), M(R, !1);
2122
2122
  });
2123
2123
  }
2124
2124
  return X(e, (x) => {
@@ -2127,29 +2127,29 @@ const rr = oo(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2127
2127
  S(
2128
2128
  f,
2129
2129
  D(h, v),
2130
- B(([x, { groupIndices: C, lastSize: k, sizeTree: u }, p]) => {
2130
+ k(([x, { groupIndices: C, lastSize: B, sizeTree: u }, p]) => {
2131
2131
  function b(U) {
2132
- return U * (k + p);
2132
+ return U * (B + p);
2133
2133
  }
2134
2134
  if (C.length === 0)
2135
2135
  return b(x);
2136
2136
  let z = 0;
2137
2137
  const F = ie(u, 0);
2138
- let L = 0, V = 0;
2139
- for (; L < x; ) {
2140
- L++, z += F;
2138
+ let O = 0, V = 0;
2139
+ for (; O < x; ) {
2140
+ O++, z += F;
2141
2141
  let U = C.length === V + 1 ? 1 / 0 : C[V + 1] - C[V] - 1;
2142
- L + U > x && (z -= F, U = x - L + 1), L += U, z += b(U), V++;
2142
+ O + U > x && (z -= F, U = x - O + 1), O += U, z += b(U), V++;
2143
2143
  }
2144
2144
  return z;
2145
2145
  })
2146
2146
  ),
2147
2147
  (x) => {
2148
- a = { acknowledgeable: lt(t) !== x, offset: x }, A(t, x), requestAnimationFrame(T);
2148
+ a = { acknowledgeable: lt(t) !== x, offset: x }, M(t, x), requestAnimationFrame(T);
2149
2149
  }
2150
2150
  ), { deviation: t };
2151
2151
  },
2152
- st(St, pe, Kt, Ot, Gt, Ke)
2152
+ st(St, pe, Kt, Lt, Gt, Ke)
2153
2153
  ), ir = Z(
2154
2154
  ([
2155
2155
  t,
@@ -2179,7 +2179,7 @@ const rr = oo(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2179
2179
  st(
2180
2180
  Ze,
2181
2181
  Qo,
2182
- Mt,
2182
+ At,
2183
2183
  no,
2184
2184
  Qn,
2185
2185
  tr,
@@ -2213,18 +2213,18 @@ const rr = oo(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2213
2213
  T,
2214
2214
  x,
2215
2215
  { scrollToIndex: C },
2216
- k,
2216
+ B,
2217
2217
  { topItemCount: u },
2218
2218
  { groupCounts: p },
2219
2219
  b
2220
2220
  ]) => {
2221
- const { listState: z, minOverscanItemCount: F, topItemsIndexes: L, rangeChanged: V, ...U } = x;
2222
- return O(V, b.scrollSeekRangeChanged), O(
2221
+ const { listState: z, minOverscanItemCount: F, topItemsIndexes: O, rangeChanged: V, ...U } = x;
2222
+ return L(V, b.scrollSeekRangeChanged), L(
2223
2223
  S(
2224
2224
  at(b.windowViewportRect, g.headerHeight, g.fixedHeaderHeight),
2225
2225
  // Keep a measurement range active when a window-scrolling list starts below the viewport.
2226
2226
  // One content pixel beyond the headers is enough to render the probe item and estimate the full list height.
2227
- B(([q, $, j]) => Math.max($ + j + 1, q.visibleHeight))
2227
+ k(([q, $, j]) => Math.max($ + j + 1, q.visibleHeight))
2228
2228
  ),
2229
2229
  g.viewportHeight
2230
2230
  ), {
@@ -2241,7 +2241,7 @@ const rr = oo(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2241
2241
  scrolledToInitialItem: I,
2242
2242
  sizeRanges: d,
2243
2243
  topItemCount: u,
2244
- topItemsIndexes: L,
2244
+ topItemsIndexes: O,
2245
2245
  // input
2246
2246
  totalCount: m,
2247
2247
  ...T,
@@ -2264,7 +2264,7 @@ const rr = oo(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2264
2264
  };
2265
2265
  },
2266
2266
  st(
2267
- Ot,
2267
+ Lt,
2268
2268
  me,
2269
2269
  St,
2270
2270
  er,
@@ -2291,47 +2291,47 @@ const Ie = typeof document > "u" ? E.useEffect : E.useLayoutEffect;
2291
2291
  function Je(t, e, n) {
2292
2292
  const o = Object.keys(e.required || {}), r = Object.keys(e.optional || {}), s = Object.keys(e.methods || {}), i = Object.keys(e.events || {}), l = E.createContext({});
2293
2293
  function c(g, a) {
2294
- g.propsReady !== void 0 && A(g.propsReady, !1);
2294
+ g.propsReady !== void 0 && M(g.propsReady, !1);
2295
2295
  for (const T of o) {
2296
2296
  const x = g[e.required[T]];
2297
- A(x, a[T]);
2297
+ M(x, a[T]);
2298
2298
  }
2299
2299
  for (const T of r)
2300
2300
  if (T in a) {
2301
2301
  const x = g[e.optional[T]];
2302
- A(x, a[T]);
2302
+ M(x, a[T]);
2303
2303
  }
2304
- g.propsReady !== void 0 && A(g.propsReady, !0);
2304
+ g.propsReady !== void 0 && M(g.propsReady, !0);
2305
2305
  }
2306
2306
  function d(g) {
2307
2307
  return s.reduce((a, T) => (a[T] = (x) => {
2308
2308
  const C = g[e.methods[T]];
2309
- A(C, x);
2309
+ M(C, x);
2310
2310
  }, a), {});
2311
2311
  }
2312
2312
  function f(g) {
2313
2313
  return i.reduce((a, T) => (a[T] = Co(g[e.events[T]]), a), {});
2314
2314
  }
2315
2315
  const v = E.forwardRef(function(a, T) {
2316
- const { children: x, ...C } = a, [k] = E.useState(() => ye(bo(t), (b) => {
2316
+ const { children: x, ...C } = a, [B] = E.useState(() => ye(bo(t), (b) => {
2317
2317
  c(b, C);
2318
- })), [u] = E.useState(pn(f, k));
2318
+ })), [u] = E.useState(pn(f, B));
2319
2319
  Ie(() => {
2320
2320
  for (const b of i)
2321
2321
  b in C && X(u[b], C[b]);
2322
2322
  return () => {
2323
2323
  Object.values(u).map(De);
2324
2324
  };
2325
- }, [C, u, k]), Ie(() => {
2326
- c(k, C);
2327
- }), E.useImperativeHandle(T, mn(d(k)));
2325
+ }, [C, u, B]), Ie(() => {
2326
+ c(B, C);
2327
+ }), E.useImperativeHandle(T, mn(d(B)));
2328
2328
  const p = n;
2329
- return /* @__PURE__ */ G(l.Provider, { value: k, children: n === void 0 ? x : /* @__PURE__ */ G(p, { ...lr([...o, ...r, ...i], C), children: x }) });
2329
+ return /* @__PURE__ */ G(l.Provider, { value: B, children: n === void 0 ? x : /* @__PURE__ */ G(p, { ...lr([...o, ...r, ...i], C), children: x }) });
2330
2330
  }), m = (g) => {
2331
2331
  const a = E.useContext(l);
2332
2332
  return E.useCallback(
2333
2333
  (T) => {
2334
- A(a[g], T);
2334
+ M(a[g], T);
2335
2335
  },
2336
2336
  [a, g]
2337
2337
  );
@@ -2348,8 +2348,8 @@ function Je(t, e, n) {
2348
2348
  }, y = (g) => {
2349
2349
  const T = E.useContext(l)[g], [x, C] = E.useState(pn(lt, T));
2350
2350
  return Ie(
2351
- () => X(T, (k) => {
2352
- k !== x && C(mn(k));
2351
+ () => X(T, (B) => {
2352
+ B !== x && C(mn(B));
2353
2353
  }),
2354
2354
  [T, x]
2355
2355
  ), x;
@@ -2364,11 +2364,11 @@ function Je(t, e, n) {
2364
2364
  usePublisher: m
2365
2365
  };
2366
2366
  }
2367
- const He = E.createContext(void 0), so = E.createContext(void 0), Oe = "-webkit-sticky", Rn = "sticky", Qe = oo(() => {
2367
+ const He = E.createContext(void 0), so = E.createContext(void 0), Le = "-webkit-sticky", Rn = "sticky", Qe = oo(() => {
2368
2368
  if (typeof document > "u")
2369
2369
  return Rn;
2370
2370
  const t = document.createElement("div");
2371
- return t.style.position = Oe, t.style.position === Oe ? Oe : Rn;
2371
+ return t.style.position = Le, t.style.position === Le ? Le : Rn;
2372
2372
  });
2373
2373
  function ze(t) {
2374
2374
  return "self" in t;
@@ -2447,7 +2447,7 @@ const ur = /* @__PURE__ */ Z(() => {
2447
2447
  const t = w((l) => `Item ${l}`), e = w((l) => `Group ${l}`), n = w({}), o = w(tn), r = w("div"), s = w(Jt), i = (l, c = null) => gt(
2448
2448
  S(
2449
2449
  n,
2450
- B((d) => d[l]),
2450
+ k((d) => d[l]),
2451
2451
  ot()
2452
2452
  ),
2453
2453
  c
@@ -2473,7 +2473,7 @@ const ur = /* @__PURE__ */ Z(() => {
2473
2473
  ([t, e]) => ({ ...t, ...e }),
2474
2474
  st(ro, ur)
2475
2475
  ), dr = ({ height: t }) => /* @__PURE__ */ G("div", { style: { height: t } }), fr = { overflowAnchor: "none", position: Qe(), zIndex: 1 }, lo = { overflowAnchor: "none" }, mr = { ...lo, display: "inline-block", height: "100%" }, Hn = /* @__PURE__ */ E.memo(function({ showTopList: e = !1 }) {
2476
- const n = M("listState"), o = Tt("sizeRanges"), r = M("useWindowScroll"), s = M("customScrollParent"), i = Tt("windowScrollContainerState"), l = Tt("scrollContainerState"), c = s || r ? i : l, d = M("itemContent"), f = M("context"), v = M("groupContent"), m = M("trackItemSizes"), h = M("itemSize"), y = M("log"), R = Tt("gap"), I = M("horizontalDirection"), { callbackRef: g } = Mn(
2476
+ const n = A("listState"), o = Tt("sizeRanges"), r = A("useWindowScroll"), s = A("customScrollParent"), i = Tt("windowScrollContainerState"), l = Tt("scrollContainerState"), c = s || r ? i : l, d = A("itemContent"), f = A("context"), v = A("groupContent"), m = A("trackItemSizes"), h = A("itemSize"), y = A("log"), R = Tt("gap"), I = A("horizontalDirection"), { callbackRef: g } = An(
2477
2477
  o,
2478
2478
  h,
2479
2479
  m,
@@ -2482,7 +2482,7 @@ const ur = /* @__PURE__ */ Z(() => {
2482
2482
  R,
2483
2483
  s,
2484
2484
  I,
2485
- M("skipAnimationFrameInResizeObserver")
2485
+ A("skipAnimationFrameInResizeObserver")
2486
2486
  ), [a, T] = E.useState(0);
2487
2487
  rn("deviation", ($) => {
2488
2488
  a !== $ && T($);
@@ -2491,7 +2491,7 @@ const ur = /* @__PURE__ */ Z(() => {
2491
2491
  be(() => {
2492
2492
  x(a);
2493
2493
  }, [a, x]);
2494
- const C = M("EmptyPlaceholder"), k = M("ScrollSeekPlaceholder") ?? dr, u = M("ListComponent"), p = M("ItemComponent"), b = M("GroupComponent"), z = M("computeItemKey"), F = M("isSeeking"), L = M("groupIndices").length > 0, V = M("alignToBottom"), U = M("initialItemFinalLocationReached"), q = e ? {} : {
2494
+ const C = A("EmptyPlaceholder"), B = A("ScrollSeekPlaceholder") ?? dr, u = A("ListComponent"), p = A("ItemComponent"), b = A("GroupComponent"), z = A("computeItemKey"), F = A("isSeeking"), O = A("groupIndices").length > 0, V = A("alignToBottom"), U = A("initialItemFinalLocationReached"), q = e ? {} : {
2495
2495
  boxSizing: "border-box",
2496
2496
  ...I ? {
2497
2497
  display: "inline-block",
@@ -2517,9 +2517,9 @@ const ur = /* @__PURE__ */ Z(() => {
2517
2517
  children: (e ? n.topItems : n.items).map(($) => {
2518
2518
  const j = $.originalIndex, J = z(j + n.firstItemIndex, $.data, f);
2519
2519
  return F ? /* @__PURE__ */ Dt(
2520
- k,
2520
+ B,
2521
2521
  {
2522
- ...rt(k, f),
2522
+ ...rt(B, f),
2523
2523
  height: $.size,
2524
2524
  index: $.index,
2525
2525
  key: J,
@@ -2549,7 +2549,7 @@ const ur = /* @__PURE__ */ Z(() => {
2549
2549
  key: J,
2550
2550
  style: I ? mr : lo
2551
2551
  },
2552
- L ? d($.index, $.groupIndex, $.data, f) : d($.index, $.data, f)
2552
+ O ? d($.index, $.groupIndex, $.data, f) : d($.index, $.data, f)
2553
2553
  );
2554
2554
  })
2555
2555
  }
@@ -2588,7 +2588,7 @@ function co(t, e) {
2588
2588
  return { item: typeof t == "string" ? void 0 : e };
2589
2589
  }
2590
2590
  const Ir = /* @__PURE__ */ E.memo(function() {
2591
- const e = M("HeaderComponent"), n = Tt("headerHeight"), o = M("HeaderFooterTag"), r = Lt(
2591
+ const e = A("HeaderComponent"), n = Tt("headerHeight"), o = A("HeaderFooterTag"), r = Ot(
2592
2592
  E.useMemo(
2593
2593
  () => (i) => {
2594
2594
  n(Ht(i, "height"));
@@ -2596,11 +2596,11 @@ const Ir = /* @__PURE__ */ E.memo(function() {
2596
2596
  [n]
2597
2597
  ),
2598
2598
  !0,
2599
- M("skipAnimationFrameInResizeObserver")
2600
- ), s = M("context");
2599
+ A("skipAnimationFrameInResizeObserver")
2600
+ ), s = A("context");
2601
2601
  return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...rt(e, s) }) }) : null;
2602
2602
  }), Sr = /* @__PURE__ */ E.memo(function() {
2603
- const e = M("FooterComponent"), n = Tt("footerHeight"), o = M("HeaderFooterTag"), r = Lt(
2603
+ const e = A("FooterComponent"), n = Tt("footerHeight"), o = A("HeaderFooterTag"), r = Ot(
2604
2604
  E.useMemo(
2605
2605
  () => (i) => {
2606
2606
  n(Ht(i, "height"));
@@ -2608,8 +2608,8 @@ const Ir = /* @__PURE__ */ E.memo(function() {
2608
2608
  [n]
2609
2609
  ),
2610
2610
  !0,
2611
- M("skipAnimationFrameInResizeObserver")
2612
- ), s = M("context");
2611
+ A("skipAnimationFrameInResizeObserver")
2612
+ ), s = A("context");
2613
2613
  return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...rt(e, s) }) }) : null;
2614
2614
  });
2615
2615
  function nn({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
@@ -2662,27 +2662,27 @@ function on({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2662
2662
  });
2663
2663
  }
2664
2664
  const xr = ({ children: t }) => {
2665
- const e = E.useContext(He), n = Tt("viewportHeight"), o = Tt("fixedItemHeight"), r = M("alignToBottom"), s = M("horizontalDirection"), i = E.useMemo(
2665
+ const e = E.useContext(He), n = Tt("viewportHeight"), o = Tt("fixedItemHeight"), r = A("alignToBottom"), s = A("horizontalDirection"), i = E.useMemo(
2666
2666
  () => re(n, (c) => Ht(c, s ? "width" : "height")),
2667
2667
  [n, s]
2668
- ), l = Lt(i, !0, M("skipAnimationFrameInResizeObserver"));
2668
+ ), l = Ot(i, !0, A("skipAnimationFrameInResizeObserver"));
2669
2669
  return E.useEffect(() => {
2670
2670
  e && (n(e.viewportHeight), o(e.itemHeight));
2671
2671
  }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "element", ref: l, style: Ee(r), children: t });
2672
2672
  }, vr = ({ children: t }) => {
2673
- const e = E.useContext(He), n = Tt("windowViewportRect"), o = Tt("fixedItemHeight"), r = M("customScrollParent"), s = M("useWindowScroll"), i = M("topListHeight"), l = Ue(
2673
+ const e = E.useContext(He), n = Tt("windowViewportRect"), o = Tt("fixedItemHeight"), r = A("customScrollParent"), s = A("useWindowScroll"), i = A("topListHeight"), l = Ue(
2674
2674
  n,
2675
2675
  r,
2676
- M("skipAnimationFrameInResizeObserver")
2677
- ), c = M("alignToBottom");
2676
+ A("skipAnimationFrameInResizeObserver")
2677
+ ), c = A("alignToBottom");
2678
2678
  return E.useEffect(() => {
2679
2679
  e && (o(e.itemHeight), n({ listHeight: 0, offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: 100 }));
2680
2680
  }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "window", ref: l, style: en(c, s, i), children: t });
2681
2681
  }, Tr = ({ children: t }) => {
2682
- const e = M("TopItemListComponent") ?? "div", n = M("headerHeight"), o = { ...gr, marginTop: `${n}px` }, r = M("context");
2682
+ const e = A("TopItemListComponent") ?? "div", n = A("headerHeight"), o = { ...gr, marginTop: `${n}px` }, r = A("context");
2683
2683
  return /* @__PURE__ */ G(e, { style: o, ...rt(e, r), children: t });
2684
2684
  }, Cr = /* @__PURE__ */ E.memo(function(e) {
2685
- const n = M("useWindowScroll"), o = M("topItemsIndexes").length > 0, r = M("customScrollParent"), s = M("context");
2685
+ const n = A("useWindowScroll"), o = A("topItemsIndexes").length > 0, r = A("customScrollParent"), s = A("context");
2686
2686
  return /* @__PURE__ */ $t(r || n ? yr : wr, { ...e, context: s, children: [
2687
2687
  o && /* @__PURE__ */ G(Tr, { children: /* @__PURE__ */ G(Hn, { showTopList: !0 }) }),
2688
2688
  /* @__PURE__ */ $t(r || n ? vr : xr, { children: [
@@ -2694,7 +2694,7 @@ const xr = ({ children: t }) => {
2694
2694
  }), {
2695
2695
  Component: uo,
2696
2696
  useEmitter: rn,
2697
- useEmitterValue: M,
2697
+ useEmitterValue: A,
2698
2698
  usePublisher: Tt
2699
2699
  } = /* @__PURE__ */ Je(
2700
2700
  ar,
@@ -2758,7 +2758,7 @@ const xr = ({ children: t }) => {
2758
2758
  }
2759
2759
  },
2760
2760
  Cr
2761
- ), wr = /* @__PURE__ */ nn({ useEmitter: rn, useEmitterValue: M, usePublisher: Tt }), yr = /* @__PURE__ */ on({ useEmitter: rn, useEmitterValue: M, usePublisher: Tt }), es = uo, ns = uo, br = /* @__PURE__ */ Z(() => {
2761
+ ), wr = /* @__PURE__ */ nn({ useEmitter: rn, useEmitterValue: A, usePublisher: Tt }), yr = /* @__PURE__ */ on({ useEmitter: rn, useEmitterValue: A, usePublisher: Tt }), es = uo, ns = uo, br = /* @__PURE__ */ Z(() => {
2762
2762
  const t = w((d) => /* @__PURE__ */ $t("td", { children: [
2763
2763
  "Item $",
2764
2764
  d
@@ -2768,7 +2768,7 @@ const xr = ({ children: t }) => {
2768
2768
  ] })), o = w(null), r = w(null), s = w({}), i = w(tn), l = w(Jt), c = (d, f = null) => gt(
2769
2769
  S(
2770
2770
  s,
2771
- B((v) => v[d]),
2771
+ k((v) => v[d]),
2772
2772
  ot()
2773
2773
  ),
2774
2774
  f
@@ -2796,7 +2796,7 @@ const xr = ({ children: t }) => {
2796
2796
  }), Rr = /* @__PURE__ */ Z(
2797
2797
  ([t, e]) => ({ ...t, ...e }),
2798
2798
  st(ro, br)
2799
- ), Hr = ({ height: t }) => /* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", { style: { height: t } }) }), Er = ({ height: t }) => /* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", { style: { border: 0, height: t, padding: 0 } }) }), Br = { overflowAnchor: "none" }, En = { position: Qe(), zIndex: 2, overflowAnchor: "none" }, Bn = /* @__PURE__ */ E.memo(function({ showTopList: e = !1 }) {
2799
+ ), Hr = ({ height: t }) => /* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", { style: { height: t } }) }), Er = ({ height: t }) => /* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", { style: { border: 0, height: t, padding: 0 } }) }), kr = { overflowAnchor: "none" }, En = { position: Qe(), zIndex: 2, overflowAnchor: "none" }, kn = /* @__PURE__ */ E.memo(function({ showTopList: e = !1 }) {
2800
2800
  const n = _("listState"), o = _("computeItemKey"), r = _("firstItemIndex"), s = _("context"), i = _("isSeeking"), l = _("fixedHeaderHeight"), c = _("groupIndices").length > 0, d = _("itemContent"), f = _("groupContent"), v = _("ScrollSeekPlaceholder") ?? Hr, m = _("GroupComponent"), h = _("TableRowComponent"), y = (e ? n.topItems : []).reduce((I, g, a) => (a === 0 ? I.push(g.size) : I.push(I[a - 1] + g.size), I), []);
2801
2801
  return (e ? n.topItems : n.items).map((I) => {
2802
2802
  const g = I.originalIndex, a = o(g + r, I.data, s), T = e ? g === 0 ? 0 : y[g - 1] : 0;
@@ -2833,13 +2833,13 @@ const xr = ({ children: t }) => {
2833
2833
  "data-known-size": I.size,
2834
2834
  "data-item-group-index": I.groupIndex,
2835
2835
  key: a,
2836
- style: e ? { ...En, top: l + T } : Br
2836
+ style: e ? { ...En, top: l + T } : kr
2837
2837
  },
2838
2838
  c ? d(I.index, I.groupIndex, I.data, s) : d(I.index, I.data, s)
2839
2839
  );
2840
2840
  });
2841
- }), kr = /* @__PURE__ */ E.memo(function() {
2842
- const e = _("listState"), n = _("topItemsIndexes").length > 0, o = wt("sizeRanges"), r = _("useWindowScroll"), s = _("customScrollParent"), i = wt("windowScrollContainerState"), l = wt("scrollContainerState"), c = s || r ? i : l, d = _("trackItemSizes"), f = _("itemSize"), v = _("log"), { callbackRef: m, ref: h } = Mn(
2841
+ }), Br = /* @__PURE__ */ E.memo(function() {
2842
+ const e = _("listState"), n = _("topItemsIndexes").length > 0, o = wt("sizeRanges"), r = _("useWindowScroll"), s = _("customScrollParent"), i = wt("windowScrollContainerState"), l = wt("scrollContainerState"), c = s || r ? i : l, d = _("trackItemSizes"), f = _("itemSize"), v = _("log"), { callbackRef: m, ref: h } = An(
2843
2843
  o,
2844
2844
  f,
2845
2845
  d,
@@ -2850,25 +2850,25 @@ const xr = ({ children: t }) => {
2850
2850
  !1,
2851
2851
  _("skipAnimationFrameInResizeObserver")
2852
2852
  ), [y, R] = E.useState(0);
2853
- sn("deviation", (L) => {
2854
- y !== L && (h.current.style.marginTop = `${L}px`, R(L));
2853
+ sn("deviation", (O) => {
2854
+ y !== O && (h.current.style.marginTop = `${O}px`, R(O));
2855
2855
  });
2856
2856
  const I = wt("deviationCommitted");
2857
2857
  be(() => {
2858
2858
  I(y);
2859
2859
  }, [y, I]);
2860
- const g = _("EmptyPlaceholder"), a = _("FillerRow") ?? Er, T = _("TableBodyComponent"), x = _("paddingTopAddition"), C = _("statefulTotalCount"), k = _("context");
2860
+ const g = _("EmptyPlaceholder"), a = _("FillerRow") ?? Er, T = _("TableBodyComponent"), x = _("paddingTopAddition"), C = _("statefulTotalCount"), B = _("context");
2861
2861
  if (C === 0 && g !== null && g !== void 0)
2862
- return /* @__PURE__ */ G(g, { ...rt(g, k) });
2863
- const u = (n ? e.topItems : []).reduce((L, V) => L + V.size, 0), p = e.offsetTop + x + y - u, b = e.offsetBottom, z = p > 0 ? /* @__PURE__ */ G(a, { context: k, height: p }, "padding-top") : null, F = b > 0 ? /* @__PURE__ */ G(a, { context: k, height: b }, "padding-bottom") : null;
2864
- return /* @__PURE__ */ $t(T, { "data-testid": "virtuoso-item-list", ref: m, ...rt(T, k), children: [
2862
+ return /* @__PURE__ */ G(g, { ...rt(g, B) });
2863
+ const u = (n ? e.topItems : []).reduce((O, V) => O + V.size, 0), p = e.offsetTop + x + y - u, b = e.offsetBottom, z = p > 0 ? /* @__PURE__ */ G(a, { context: B, height: p }, "padding-top") : null, F = b > 0 ? /* @__PURE__ */ G(a, { context: B, height: b }, "padding-bottom") : null;
2864
+ return /* @__PURE__ */ $t(T, { "data-testid": "virtuoso-item-list", ref: m, ...rt(T, B), children: [
2865
2865
  z,
2866
- n && /* @__PURE__ */ G(Bn, { showTopList: !0 }),
2867
- /* @__PURE__ */ G(Bn, {}),
2866
+ n && /* @__PURE__ */ G(kn, { showTopList: !0 }),
2867
+ /* @__PURE__ */ G(kn, {}),
2868
2868
  F
2869
2869
  ] });
2870
- }), Lr = ({ children: t }) => {
2871
- const e = E.useContext(He), n = wt("viewportHeight"), o = wt("fixedItemHeight"), r = Lt(
2870
+ }), Or = ({ children: t }) => {
2871
+ const e = E.useContext(He), n = wt("viewportHeight"), o = wt("fixedItemHeight"), r = Ot(
2872
2872
  E.useMemo(() => re(n, (s) => Ht(s, "height")), [n]),
2873
2873
  !0,
2874
2874
  _("skipAnimationFrameInResizeObserver")
@@ -2876,7 +2876,7 @@ const xr = ({ children: t }) => {
2876
2876
  return E.useEffect(() => {
2877
2877
  e && (n(e.viewportHeight), o(e.itemHeight));
2878
2878
  }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "element", ref: r, style: Ee(!1), children: t });
2879
- }, Or = ({ children: t }) => {
2879
+ }, Lr = ({ children: t }) => {
2880
2880
  const e = E.useContext(He), n = wt("windowViewportRect"), o = wt("fixedItemHeight"), r = _("customScrollParent"), s = _("useWindowScroll"), i = Ue(
2881
2881
  n,
2882
2882
  r,
@@ -2886,15 +2886,15 @@ const xr = ({ children: t }) => {
2886
2886
  e && (o(e.itemHeight), n({ listHeight: 0, offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: 100 }));
2887
2887
  }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "window", ref: i, style: en(!1, s), children: t });
2888
2888
  }, zr = /* @__PURE__ */ E.memo(function(e) {
2889
- const n = _("useWindowScroll"), o = _("customScrollParent"), r = wt("fixedHeaderHeight"), s = wt("fixedFooterHeight"), i = _("fixedHeaderContent"), l = _("fixedFooterContent"), c = _("context"), d = Lt(
2889
+ const n = _("useWindowScroll"), o = _("customScrollParent"), r = wt("fixedHeaderHeight"), s = wt("fixedFooterHeight"), i = _("fixedHeaderContent"), l = _("fixedFooterContent"), c = _("context"), d = Ot(
2890
2890
  E.useMemo(() => re(r, (a) => Ht(a, "height")), [r]),
2891
2891
  !0,
2892
2892
  _("skipAnimationFrameInResizeObserver")
2893
- ), f = Lt(
2893
+ ), f = Ot(
2894
2894
  E.useMemo(() => re(s, (a) => Ht(a, "height")), [s]),
2895
2895
  !0,
2896
2896
  _("skipAnimationFrameInResizeObserver")
2897
- ), v = o || n ? Vr : Fr, m = o || n ? Or : Lr, h = _("TableComponent"), y = _("TableHeadComponent"), R = _("TableFooterComponent"), I = i ? /* @__PURE__ */ G(
2897
+ ), v = o || n ? Vr : Fr, m = o || n ? Lr : Or, h = _("TableComponent"), y = _("TableHeadComponent"), R = _("TableFooterComponent"), I = i ? /* @__PURE__ */ G(
2898
2898
  y,
2899
2899
  {
2900
2900
  ref: d,
@@ -2915,7 +2915,7 @@ const xr = ({ children: t }) => {
2915
2915
  ) : null;
2916
2916
  return /* @__PURE__ */ G(v, { ...e, ...rt(v, c), children: /* @__PURE__ */ G(m, { children: /* @__PURE__ */ $t(h, { style: { borderSpacing: 0, overflowAnchor: "none" }, ...rt(h, c), children: [
2917
2917
  I,
2918
- /* @__PURE__ */ G(kr, {}, "TableBody"),
2918
+ /* @__PURE__ */ G(Br, {}, "TableBody"),
2919
2919
  g
2920
2920
  ] }) }) });
2921
2921
  }), {
@@ -2959,7 +2959,8 @@ const xr = ({ children: t }) => {
2959
2959
  useWindowScroll: "useWindowScroll",
2960
2960
  customScrollParent: "customScrollParent",
2961
2961
  scrollerRef: "scrollerRef",
2962
- logLevel: "logLevel"
2962
+ logLevel: "logLevel",
2963
+ skipAnimationFrameInResizeObserver: "skipAnimationFrameInResizeObserver"
2963
2964
  },
2964
2965
  methods: {
2965
2966
  scrollToIndex: "scrollToIndex",
@@ -2981,7 +2982,7 @@ const xr = ({ children: t }) => {
2981
2982
  }
2982
2983
  },
2983
2984
  zr
2984
- ), Fr = /* @__PURE__ */ nn({ useEmitter: sn, useEmitterValue: _, usePublisher: wt }), Vr = /* @__PURE__ */ on({ useEmitter: sn, useEmitterValue: _, usePublisher: wt }), os = ao, rs = ao, kn = {
2985
+ ), Fr = /* @__PURE__ */ nn({ useEmitter: sn, useEmitterValue: _, usePublisher: wt }), Vr = /* @__PURE__ */ on({ useEmitter: sn, useEmitterValue: _, usePublisher: wt }), os = ao, rs = ao, Bn = {
2985
2986
  bottom: 0,
2986
2987
  itemHeight: 0,
2987
2988
  items: [],
@@ -2997,7 +2998,7 @@ const xr = ({ children: t }) => {
2997
2998
  offsetBottom: 0,
2998
2999
  offsetTop: 0,
2999
3000
  top: 0
3000
- }, { ceil: Ln, floor: Ce, max: oe, min: Fe, round: On } = Math;
3001
+ }, { ceil: On, floor: Ce, max: oe, min: Fe, round: Ln } = Math;
3001
3002
  function zn(t, e, n) {
3002
3003
  return Array.from({ length: e - t + 1 }).map((o, r) => ({ data: n === null ? null : n[r + t], index: r + t }));
3003
3004
  }
@@ -3013,7 +3014,7 @@ function Se(t, e) {
3013
3014
  function Gr(t, e) {
3014
3015
  return t !== void 0 && t.column === e.column && t.row === e.row;
3015
3016
  }
3016
- const Mr = /* @__PURE__ */ Z(
3017
+ const Ar = /* @__PURE__ */ Z(
3017
3018
  ([
3018
3019
  { increaseViewportBy: t, listBoundary: e, overscan: n, visibleRange: o },
3019
3020
  { footerHeight: r, headerHeight: s, scrollBy: i, scrollContainerState: l, scrollTo: c, scrollTop: d, smoothScrollTargetReached: f, viewportHeight: v },
@@ -3023,15 +3024,15 @@ const Mr = /* @__PURE__ */ Z(
3023
3024
  { customScrollParent: I, useWindowScroll: g, windowScrollContainerState: a, windowScrollTo: T, windowViewportRect: x },
3024
3025
  C
3025
3026
  ]) => {
3026
- const k = w(0), u = w(0), p = w(kn), b = w({ height: 0, width: 0 }), z = w({ height: 0, width: 0 }), F = K(), L = K(), V = w(0), U = w(null), q = w({ column: 0, row: 0 }), $ = K(), j = K(), J = w(!1), dt = w(0), pt = w(!0), It = w(!1), Ft = w(!1);
3027
+ const B = w(0), u = w(0), p = w(Bn), b = w({ height: 0, width: 0 }), z = w({ height: 0, width: 0 }), F = K(), O = K(), V = w(0), U = w(null), q = w({ column: 0, row: 0 }), $ = K(), j = K(), J = w(!1), dt = w(0), pt = w(!0), It = w(!1), Ft = w(!1);
3027
3028
  X(
3028
3029
  S(
3029
3030
  y,
3030
3031
  D(dt),
3031
- W(([H, N]) => !Ae(N))
3032
+ W(([H, N]) => !Me(N))
3032
3033
  ),
3033
3034
  () => {
3034
- A(pt, !1);
3035
+ M(pt, !1);
3035
3036
  }
3036
3037
  ), X(
3037
3038
  S(
@@ -3040,20 +3041,20 @@ const Mr = /* @__PURE__ */ Z(
3040
3041
  ),
3041
3042
  ([, , , , H]) => {
3042
3043
  if (H === void 0) {
3043
- A(pt, !0);
3044
+ M(pt, !0);
3044
3045
  return;
3045
3046
  }
3046
- A(It, !0), qe(1, () => {
3047
- A(F, H);
3047
+ M(It, !0), qe(1, () => {
3048
+ M(F, H);
3048
3049
  }), bt(S(d), () => {
3049
- A(e, [0, 0]), A(pt, !0);
3050
+ M(e, [0, 0]), M(pt, !0);
3050
3051
  });
3051
3052
  }
3052
- ), O(
3053
+ ), L(
3053
3054
  S(
3054
3055
  j,
3055
3056
  W((H) => H != null && H.scrollTop > 0),
3056
- Bt(0)
3057
+ kt(0)
3057
3058
  ),
3058
3059
  u
3059
3060
  ), X(
@@ -3063,17 +3064,17 @@ const Mr = /* @__PURE__ */ Z(
3063
3064
  W(([, H]) => H != null)
3064
3065
  ),
3065
3066
  ([, H]) => {
3066
- H && (A(b, H.viewport), A(z, H.item), A(q, H.gap), H.scrollTop > 0 && (A(J, !0), bt(S(d, Ut(1)), (N) => {
3067
- A(J, !1);
3068
- }), A(c, { top: H.scrollTop })));
3067
+ H && (M(b, H.viewport), M(z, H.item), M(q, H.gap), H.scrollTop > 0 && (M(J, !0), bt(S(d, Ut(1)), (N) => {
3068
+ M(J, !1);
3069
+ }), M(c, { top: H.scrollTop })));
3069
3070
  }
3070
- ), O(
3071
+ ), L(
3071
3072
  S(
3072
3073
  b,
3073
- B(({ height: H }) => H)
3074
+ k(({ height: H }) => H)
3074
3075
  ),
3075
3076
  v
3076
- ), O(
3077
+ ), L(
3077
3078
  S(
3078
3079
  at(
3079
3080
  P(b, Se),
@@ -3081,7 +3082,7 @@ const Mr = /* @__PURE__ */ Z(
3081
3082
  P(q, (H, N) => H !== void 0 && H.column === N.column && H.row === N.row),
3082
3083
  P(d)
3083
3084
  ),
3084
- B(([H, N, Y, it]) => ({
3085
+ k(([H, N, Y, it]) => ({
3085
3086
  gap: Y,
3086
3087
  item: N,
3087
3088
  scrollTop: it,
@@ -3089,10 +3090,10 @@ const Mr = /* @__PURE__ */ Z(
3089
3090
  }))
3090
3091
  ),
3091
3092
  $
3092
- ), O(
3093
+ ), L(
3093
3094
  S(
3094
3095
  at(
3095
- P(k),
3096
+ P(B),
3096
3097
  o,
3097
3098
  P(q, Gr),
3098
3099
  P(z, Se),
@@ -3104,7 +3105,7 @@ const Mr = /* @__PURE__ */ Z(
3104
3105
  P(dt)
3105
3106
  ),
3106
3107
  W(([, , , , , , , H]) => !H),
3107
- B(
3108
+ k(
3108
3109
  ([
3109
3110
  H,
3110
3111
  [N, Y],
@@ -3117,34 +3118,34 @@ const Mr = /* @__PURE__ */ Z(
3117
3118
  ut,
3118
3119
  Vt
3119
3120
  ]) => {
3120
- const { column: Pt, row: ee } = it, { height: he, width: Be } = et, { width: ln } = Q;
3121
+ const { column: Pt, row: ee } = it, { height: he, width: ke } = et, { width: ln } = Q;
3121
3122
  if (xt === 0 && (H === 0 || ln === 0))
3122
- return kn;
3123
- if (Be === 0) {
3123
+ return Bn;
3124
+ if (ke === 0) {
3124
3125
  const fn = Ye(Vt, H), ho = fn + Math.max(xt - 1, 0);
3125
3126
  return Wr(zn(fn, ho, ct));
3126
3127
  }
3127
- const ge = fo(ln, Be, Pt);
3128
- let qt, At;
3129
- ut ? N === 0 && Y === 0 && xt > 0 ? (qt = 0, At = xt - 1) : (qt = ge * Ce((N + ee) / (he + ee)), At = ge * Ln((Y + ee) / (he + ee)) - 1, At = Fe(H - 1, oe(At, ge - 1)), qt = Fe(At, oe(0, qt))) : (qt = 0, At = -1);
3130
- const cn = zn(qt, At, ct), { bottom: un, top: an } = Fn(Q, it, et, cn), dn = Ln(H / ge), po = dn * he + (dn - 1) * ee - un;
3131
- return { bottom: un, itemHeight: he, items: cn, itemWidth: Be, offsetBottom: po, offsetTop: an, top: an };
3128
+ const ge = fo(ln, ke, Pt);
3129
+ let qt, Mt;
3130
+ ut ? N === 0 && Y === 0 && xt > 0 ? (qt = 0, Mt = xt - 1) : (qt = ge * Ce((N + ee) / (he + ee)), Mt = ge * On((Y + ee) / (he + ee)) - 1, Mt = Fe(H - 1, oe(Mt, ge - 1)), qt = Fe(Mt, oe(0, qt))) : (qt = 0, Mt = -1);
3131
+ const cn = zn(qt, Mt, ct), { bottom: un, top: an } = Fn(Q, it, et, cn), dn = On(H / ge), po = dn * he + (dn - 1) * ee - un;
3132
+ return { bottom: un, itemHeight: he, items: cn, itemWidth: ke, offsetBottom: po, offsetTop: an, top: an };
3132
3133
  }
3133
3134
  )
3134
3135
  ),
3135
3136
  p
3136
- ), O(
3137
+ ), L(
3137
3138
  S(
3138
3139
  U,
3139
3140
  W((H) => H !== null),
3140
- B((H) => H.length)
3141
+ k((H) => H.length)
3141
3142
  ),
3142
- k
3143
- ), O(
3143
+ B
3144
+ ), L(
3144
3145
  S(
3145
3146
  at(b, z, p, q),
3146
3147
  W(([H, N, { items: Y }]) => Y.length > 0 && N.height !== 0 && H.height !== 0),
3147
- B(([H, N, { items: Y }, it]) => {
3148
+ k(([H, N, { items: Y }, it]) => {
3148
3149
  const { bottom: et, top: Q } = Fn(H, it, N, Y);
3149
3150
  return [Q, et];
3150
3151
  }),
@@ -3153,31 +3154,31 @@ const Mr = /* @__PURE__ */ Z(
3153
3154
  e
3154
3155
  );
3155
3156
  const ht = w(!1);
3156
- O(
3157
+ L(
3157
3158
  S(
3158
3159
  d,
3159
3160
  D(ht),
3160
- B(([H, N]) => N || H !== 0)
3161
+ k(([H, N]) => N || H !== 0)
3161
3162
  ),
3162
3163
  ht
3163
3164
  );
3164
3165
  const jt = Ct(
3165
3166
  S(
3166
- at(p, k),
3167
+ at(p, B),
3167
3168
  W(([{ items: H }]) => H.length > 0),
3168
3169
  D(ht),
3169
3170
  W(([[H, N], Y]) => {
3170
3171
  const et = H.items[H.items.length - 1].index === N - 1;
3171
3172
  return (Y || H.bottom > 0 && H.itemHeight > 0 && H.offsetBottom === 0 && H.items.length === N) && et;
3172
3173
  }),
3173
- B(([[, H]]) => H - 1),
3174
+ k(([[, H]]) => H - 1),
3174
3175
  ot()
3175
3176
  )
3176
3177
  ), Qt = Ct(
3177
3178
  S(
3178
3179
  P(p),
3179
3180
  W(({ items: H }) => H.length > 0 && H[0].index === 0),
3180
- Bt(0),
3181
+ kt(0),
3181
3182
  ot()
3182
3183
  )
3183
3184
  ), Et = Ct(
@@ -3185,7 +3186,7 @@ const Mr = /* @__PURE__ */ Z(
3185
3186
  P(p),
3186
3187
  D(J),
3187
3188
  W(([{ items: H }, N]) => H.length > 0 && !N),
3188
- B(([{ items: H }]) => ({
3189
+ k(([{ items: H }]) => ({
3189
3190
  endIndex: H[H.length - 1].index,
3190
3191
  startIndex: H[0].index
3191
3192
  })),
@@ -3193,16 +3194,16 @@ const Mr = /* @__PURE__ */ Z(
3193
3194
  zt(0)
3194
3195
  )
3195
3196
  );
3196
- O(Et, h.scrollSeekRangeChanged), O(
3197
+ L(Et, h.scrollSeekRangeChanged), L(
3197
3198
  S(
3198
3199
  F,
3199
- D(b, z, k, q),
3200
- B(([H, N, Y, it, et]) => {
3200
+ D(b, z, B, q),
3201
+ k(([H, N, Y, it, et]) => {
3201
3202
  const Q = Zn(H), { align: ct, behavior: xt, offset: ut } = Q;
3202
3203
  let Vt = Q.index;
3203
3204
  Vt === "LAST" && (Vt = it - 1), Vt = oe(0, Vt, Fe(it - 1, Vt));
3204
3205
  let Pt = _e(N, et, Y, Vt);
3205
- return ct === "end" ? Pt = On(Pt - N.height + Y.height) : ct === "center" && (Pt = On(Pt - N.height / 2 + Y.height / 2)), ut !== void 0 && ut !== 0 && (Pt += ut), { behavior: xt, top: Pt };
3206
+ return ct === "end" ? Pt = Ln(Pt - N.height + Y.height) : ct === "center" && (Pt = Ln(Pt - N.height / 2 + Y.height / 2)), ut !== void 0 && ut !== 0 && (Pt += ut), { behavior: xt, top: Pt };
3206
3207
  })
3207
3208
  ),
3208
3209
  c
@@ -3210,14 +3211,14 @@ const Mr = /* @__PURE__ */ Z(
3210
3211
  const te = gt(
3211
3212
  S(
3212
3213
  p,
3213
- B((H) => H.offsetBottom + H.bottom)
3214
+ k((H) => H.offsetBottom + H.bottom)
3214
3215
  ),
3215
3216
  0
3216
3217
  );
3217
- return O(
3218
+ return L(
3218
3219
  S(
3219
3220
  x,
3220
- B((H) => ({ height: H.visibleHeight, width: H.visibleWidth }))
3221
+ k((H) => ({ height: H.visibleHeight, width: H.visibleWidth }))
3221
3222
  ),
3222
3223
  b
3223
3224
  ), {
@@ -3235,12 +3236,12 @@ const Mr = /* @__PURE__ */ Z(
3235
3236
  restoreStateFrom: j,
3236
3237
  scrollBy: i,
3237
3238
  scrollContainerState: l,
3238
- scrollHeight: L,
3239
+ scrollHeight: O,
3239
3240
  scrollTo: c,
3240
3241
  scrollToIndex: F,
3241
3242
  scrollTop: d,
3242
3243
  smoothScrollTargetReached: f,
3243
- totalCount: k,
3244
+ totalCount: B,
3244
3245
  useWindowScroll: g,
3245
3246
  viewportDimensions: b,
3246
3247
  windowScrollContainerState: a,
@@ -3262,7 +3263,7 @@ const Mr = /* @__PURE__ */ Z(
3262
3263
  ...C
3263
3264
  };
3264
3265
  },
3265
- st(Ze, St, pe, no, Mt, Xe, Gt)
3266
+ st(Ze, St, pe, no, At, Xe, Gt)
3266
3267
  );
3267
3268
  function fo(t, e, n) {
3268
3269
  return oe(1, Ce((t + n) / (Ce(e) + n)));
@@ -3278,16 +3279,16 @@ function _e(t, e, n, o) {
3278
3279
  const r = fo(t.width, n.width, e.column), s = Ce(o / r), i = s * n.height + oe(0, s - 1) * e.row;
3279
3280
  return i > 0 ? i + e.row : i;
3280
3281
  }
3281
- const Ar = /* @__PURE__ */ Z(() => {
3282
+ const Mr = /* @__PURE__ */ Z(() => {
3282
3283
  const t = w((v) => `Item ${v}`), e = w({}), n = w(null), o = w("virtuoso-grid-item"), r = w("virtuoso-grid-list"), s = w(tn), i = w("div"), l = w(Jt), c = (v, m = null) => gt(
3283
3284
  S(
3284
3285
  e,
3285
- B((h) => h[v]),
3286
+ k((h) => h[v]),
3286
3287
  ot()
3287
3288
  ),
3288
3289
  m
3289
3290
  ), d = w(!1), f = w(!1);
3290
- return O(P(f), d), {
3291
+ return L(P(f), d), {
3291
3292
  components: e,
3292
3293
  computeItemKey: s,
3293
3294
  context: n,
@@ -3307,17 +3308,17 @@ const Ar = /* @__PURE__ */ Z(() => {
3307
3308
  };
3308
3309
  }), _r = /* @__PURE__ */ Z(
3309
3310
  ([t, e]) => ({ ...t, ...e }),
3310
- st(Mr, Ar)
3311
+ st(Ar, Mr)
3311
3312
  ), Nr = /* @__PURE__ */ E.memo(function() {
3312
- const e = nt("gridState"), n = nt("listClassName"), o = nt("itemClassName"), r = nt("itemContent"), s = nt("computeItemKey"), i = nt("isSeeking"), l = yt("scrollHeight"), c = nt("ItemComponent"), d = nt("ListComponent"), f = nt("ScrollSeekPlaceholder"), v = nt("context"), m = yt("itemDimensions"), h = yt("gap"), y = nt("log"), R = nt("stateRestoreInProgress"), I = yt("reportReadyState"), g = Lt(
3313
+ const e = nt("gridState"), n = nt("listClassName"), o = nt("itemClassName"), r = nt("itemContent"), s = nt("computeItemKey"), i = nt("isSeeking"), l = yt("scrollHeight"), c = nt("ItemComponent"), d = nt("ListComponent"), f = nt("ScrollSeekPlaceholder"), v = nt("context"), m = yt("itemDimensions"), h = yt("gap"), y = nt("log"), R = nt("stateRestoreInProgress"), I = yt("reportReadyState"), g = Ot(
3313
3314
  E.useMemo(
3314
3315
  () => (a) => {
3315
3316
  const T = a.parentElement.parentElement.scrollHeight;
3316
3317
  l(T);
3317
3318
  const x = a.firstChild;
3318
3319
  if (x !== null) {
3319
- const { height: C, width: k } = x.getBoundingClientRect();
3320
- m({ height: C, width: k });
3320
+ const { height: C, width: B } = x.getBoundingClientRect();
3321
+ m({ height: C, width: B });
3321
3322
  }
3322
3323
  h({
3323
3324
  column: Vn("column-gap", getComputedStyle(a).columnGap, y),
@@ -3364,7 +3365,7 @@ const Ar = /* @__PURE__ */ Z(() => {
3364
3365
  }
3365
3366
  );
3366
3367
  }), Dr = E.memo(function() {
3367
- const e = nt("HeaderComponent"), n = yt("headerHeight"), o = nt("headerFooterTag"), r = Lt(
3368
+ const e = nt("HeaderComponent"), n = yt("headerHeight"), o = nt("headerFooterTag"), r = Ot(
3368
3369
  E.useMemo(
3369
3370
  () => (i) => {
3370
3371
  n(Ht(i, "height"));
@@ -3376,7 +3377,7 @@ const Ar = /* @__PURE__ */ Z(() => {
3376
3377
  ), s = nt("context");
3377
3378
  return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...rt(e, s) }) }) : null;
3378
3379
  }), $r = E.memo(function() {
3379
- const e = nt("FooterComponent"), n = yt("footerHeight"), o = nt("headerFooterTag"), r = Lt(
3380
+ const e = nt("FooterComponent"), n = yt("footerHeight"), o = nt("headerFooterTag"), r = Ot(
3380
3381
  E.useMemo(
3381
3382
  () => (i) => {
3382
3383
  n(Ht(i, "height"));
@@ -3388,7 +3389,7 @@ const Ar = /* @__PURE__ */ Z(() => {
3388
3389
  ), s = nt("context");
3389
3390
  return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...rt(e, s) }) }) : null;
3390
3391
  }), Ur = ({ children: t }) => {
3391
- const e = E.useContext(so), n = yt("itemDimensions"), o = yt("viewportDimensions"), r = Lt(
3392
+ const e = E.useContext(so), n = yt("itemDimensions"), o = yt("viewportDimensions"), r = Ot(
3392
3393
  E.useMemo(
3393
3394
  () => (s) => {
3394
3395
  o(s.getBoundingClientRect());