react-virtuoso 4.14.0 → 4.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -68,7 +68,7 @@ function dn(t) {
68
68
  function Fn(t, e) {
69
69
  return t === e;
70
70
  }
71
- function Z(t = Fn) {
71
+ function Y(t = Fn) {
72
72
  let e;
73
73
  return (n) => (o) => {
74
74
  t(e, o) || (e = o, n(o));
@@ -87,7 +87,7 @@ function Rt(t) {
87
87
  e(t);
88
88
  };
89
89
  }
90
- function x(t, ...e) {
90
+ function S(t, ...e) {
91
91
  const n = go(...e);
92
92
  return (o, r) => {
93
93
  switch (o) {
@@ -150,7 +150,7 @@ function Io(t) {
150
150
  }
151
151
  };
152
152
  }
153
- function C(t) {
153
+ function w(t) {
154
154
  let e = t;
155
155
  const n = $();
156
156
  return (o, r) => {
@@ -169,7 +169,7 @@ function C(t) {
169
169
  };
170
170
  }
171
171
  function ct(t, e) {
172
- return ve(C(e), (n) => O(t, n));
172
+ return ve(w(e), (n) => O(t, n));
173
173
  }
174
174
  function $() {
175
175
  const t = [];
@@ -233,7 +233,7 @@ function rt(...t) {
233
233
  };
234
234
  }
235
235
  function V(t, e = Fn) {
236
- return x(t, Z(e));
236
+ return S(t, Y(e));
237
237
  }
238
238
  function Le(...t) {
239
239
  return function(e, n) {
@@ -253,12 +253,12 @@ const To = {
253
253
  2: "warn"
254
254
  }, Co = () => typeof globalThis > "u" ? window : globalThis, Vt = U(
255
255
  () => {
256
- const t = C(
256
+ const t = w(
257
257
  3
258
258
  /* ERROR */
259
259
  );
260
260
  return {
261
- log: C((n, o, r = 1) => {
261
+ log: w((n, o, r = 1) => {
262
262
  var i;
263
263
  const s = (i = Co().VIRTUOSO_LOG_LEVEL) != null ? i : ot(t);
264
264
  r >= s && console[To[r]](
@@ -296,21 +296,21 @@ function _e(t, e, n) {
296
296
  function On(t, e, n, o, r, s, i, l, c) {
297
297
  const a = H.useCallback(
298
298
  (m) => {
299
- const S = wo(m.children, e, l ? "offsetWidth" : "offsetHeight", r);
300
- let g = m.parentElement;
301
- for (; !g.dataset.virtuosoScroller; )
302
- g = g.parentElement;
303
- const I = g.lastElementChild.dataset.viewportType === "window";
304
- let w;
305
- I && (w = g.ownerDocument.defaultView);
306
- const v = i ? l ? i.scrollLeft : i.scrollTop : I ? l ? w.scrollX || w.document.documentElement.scrollLeft : w.scrollY || w.document.documentElement.scrollTop : l ? g.scrollLeft : g.scrollTop, h = i ? l ? i.scrollWidth : i.scrollHeight : I ? l ? w.document.documentElement.scrollWidth : w.document.documentElement.scrollHeight : l ? g.scrollWidth : g.scrollHeight, p = i ? l ? i.offsetWidth : i.offsetHeight : I ? l ? w.innerWidth : w.innerHeight : l ? g.offsetWidth : g.offsetHeight;
299
+ const x = wo(m.children, e, l ? "offsetWidth" : "offsetHeight", r);
300
+ let h = m.parentElement;
301
+ for (; !h.dataset.virtuosoScroller; )
302
+ h = h.parentElement;
303
+ const I = h.lastElementChild.dataset.viewportType === "window";
304
+ let C;
305
+ I && (C = h.ownerDocument.defaultView);
306
+ const v = i ? l ? i.scrollLeft : i.scrollTop : I ? l ? C.scrollX || C.document.documentElement.scrollLeft : C.scrollY || C.document.documentElement.scrollTop : l ? h.scrollLeft : h.scrollTop, g = i ? l ? i.scrollWidth : i.scrollHeight : I ? l ? C.document.documentElement.scrollWidth : C.document.documentElement.scrollHeight : l ? h.scrollWidth : h.scrollHeight, p = i ? l ? i.offsetWidth : i.offsetHeight : I ? l ? C.innerWidth : C.innerHeight : l ? h.offsetWidth : h.offsetHeight;
307
307
  o({
308
- scrollHeight: h,
308
+ scrollHeight: g,
309
309
  scrollTop: Math.max(v, 0),
310
310
  viewportHeight: p
311
311
  }), s == null || s(
312
312
  l ? fn("column-gap", getComputedStyle(m).columnGap, r) : fn("row-gap", getComputedStyle(m).rowGap, r)
313
- ), S !== null && t(S);
313
+ ), x !== null && t(x);
314
314
  },
315
315
  [t, e, r, s, i, o, l]
316
316
  );
@@ -328,8 +328,8 @@ function wo(t, e, n, o) {
328
328
  const c = parseInt(l.dataset.index), a = parseFloat(l.dataset.knownSize), m = e(l, n);
329
329
  if (m === 0 && o("Zero-sized element, this should not happen", { child: l }, mt.ERROR), m === a)
330
330
  continue;
331
- const S = s[s.length - 1];
332
- s.length === 0 || S.size !== m || S.endIndex !== c - 1 ? s.push({ endIndex: c, size: m, startIndex: c }) : s[s.length - 1].endIndex++;
331
+ const x = s[s.length - 1];
332
+ s.length === 0 || x.size !== m || x.endIndex !== c - 1 ? s.push({ endIndex: c, size: m, startIndex: c }) : s[s.length - 1].endIndex++;
333
333
  }
334
334
  return s;
335
335
  }
@@ -342,17 +342,17 @@ function Ne(t, e, n) {
342
342
  if (!(c != null && c.offsetParent))
343
343
  return;
344
344
  const a = c.getBoundingClientRect(), m = a.width;
345
- let S, g;
345
+ let x, h;
346
346
  if (e) {
347
- const I = e.getBoundingClientRect(), w = a.top - I.top;
348
- g = I.height - Math.max(0, w), S = w + e.scrollTop;
347
+ const I = e.getBoundingClientRect(), C = a.top - I.top;
348
+ h = I.height - Math.max(0, C), x = C + e.scrollTop;
349
349
  } else {
350
350
  const I = i.current.ownerDocument.defaultView;
351
- g = I.innerHeight - Math.max(0, a.top), S = a.top + I.scrollY;
351
+ h = I.innerHeight - Math.max(0, a.top), x = a.top + I.scrollY;
352
352
  }
353
353
  o.current = {
354
- offsetTop: S,
355
- visibleHeight: g,
354
+ offsetTop: x,
355
+ visibleHeight: h,
356
356
  visibleWidth: m
357
357
  }, t(o.current);
358
358
  },
@@ -381,17 +381,17 @@ function Ne(t, e, n) {
381
381
  }
382
382
  const at = U(
383
383
  () => {
384
- const t = $(), e = $(), n = C(0), o = $(), r = C(0), s = $(), i = $(), l = C(0), c = C(0), a = C(0), m = C(0), S = $(), g = $(), I = C(!1), w = C(!1), v = C(!1);
384
+ const t = $(), e = $(), n = w(0), o = $(), r = w(0), s = $(), i = $(), l = w(0), c = w(0), a = w(0), m = w(0), x = $(), h = $(), I = w(!1), C = w(!1), v = w(!1);
385
385
  return O(
386
- x(
386
+ S(
387
387
  t,
388
- E(({ scrollTop: h }) => h)
388
+ E(({ scrollTop: g }) => g)
389
389
  ),
390
390
  e
391
391
  ), O(
392
- x(
392
+ S(
393
393
  t,
394
- E(({ scrollHeight: h }) => h)
394
+ E(({ scrollHeight: g }) => g)
395
395
  ),
396
396
  i
397
397
  ), O(e, r), {
@@ -400,14 +400,14 @@ const at = U(
400
400
  fixedHeaderHeight: c,
401
401
  footerHeight: m,
402
402
  headerHeight: l,
403
- horizontalDirection: w,
404
- scrollBy: g,
403
+ horizontalDirection: C,
404
+ scrollBy: h,
405
405
  // input
406
406
  scrollContainerState: t,
407
407
  scrollHeight: i,
408
408
  scrollingInProgress: I,
409
409
  // signals
410
- scrollTo: S,
410
+ scrollTo: x,
411
411
  scrollTop: e,
412
412
  skipAnimationFrameInResizeObserver: v,
413
413
  smoothScrollTargetReached: o,
@@ -561,7 +561,7 @@ function se(t, e) {
561
561
  return !!(t && t[0] === e[0] && t[1] === e[1]);
562
562
  }
563
563
  const De = U(
564
- () => ({ recalcInProgress: C(!1) }),
564
+ () => ({ recalcInProgress: w(!1) }),
565
565
  [],
566
566
  { singleton: !0 }
567
567
  );
@@ -622,8 +622,8 @@ function bo(t, e) {
622
622
  if (l.some(Lo(o)))
623
623
  continue;
624
624
  let c = !1, a = !1;
625
- for (const { end: m, start: S, value: g } of l)
626
- c ? (r >= S || s === g) && (t = ze(t, S)) : (a = g !== s, c = !0), m > r && r >= S && g !== s && (t = pt(t, r + 1, g));
625
+ for (const { end: m, start: x, value: h } of l)
626
+ c ? (r >= x || s === h) && (t = ze(t, x)) : (a = h !== s, c = !0), m > r && r >= x && h !== s && (t = pt(t, r + 1, h));
627
627
  a && (t = pt(t, i, s));
628
628
  }
629
629
  return [t, n];
@@ -665,20 +665,20 @@ function ko(t, [e, n, o, r]) {
665
665
  const s = t.sizeTree;
666
666
  let i = s, l = 0;
667
667
  if (n.length > 0 && j(s) && e.length === 2) {
668
- const g = e[0].size, I = e[1].size;
669
- i = n.reduce((w, v) => pt(pt(w, v, g), v + 1, I), i);
668
+ const h = e[0].size, I = e[1].size;
669
+ i = n.reduce((C, v) => pt(pt(C, v, h), v + 1, I), i);
670
670
  } else
671
671
  [i, l] = bo(i, e);
672
672
  if (i === s)
673
673
  return t;
674
- const { lastIndex: c, lastOffset: a, lastSize: m, offsetTree: S } = Ae(t.offsetTree, l, i, r);
674
+ const { lastIndex: c, lastOffset: a, lastSize: m, offsetTree: x } = Ae(t.offsetTree, l, i, r);
675
675
  return {
676
676
  groupIndices: n,
677
- groupOffsetTree: n.reduce((g, I) => pt(g, I, ie(I, S, r)), jt()),
677
+ groupOffsetTree: n.reduce((h, I) => pt(h, I, ie(I, x, r)), jt()),
678
678
  lastIndex: c,
679
679
  lastOffset: a,
680
680
  lastSize: m,
681
- offsetTree: S,
681
+ offsetTree: x,
682
682
  sizeTree: i
683
683
  };
684
684
  }
@@ -703,12 +703,12 @@ function Ae(t, e, n, o) {
703
703
  } else
704
704
  r = [];
705
705
  for (const { start: a, value: m } of ye(n, e, 1 / 0)) {
706
- const S = a - s, g = S * i + l + S * o;
706
+ const x = a - s, h = x * i + l + x * o;
707
707
  r.push({
708
708
  index: a,
709
- offset: g,
709
+ offset: h,
710
710
  size: m
711
- }), s = a, l = g, i = m;
711
+ }), s = a, l = h, i = m;
712
712
  }
713
713
  return {
714
714
  lastIndex: s,
@@ -729,13 +729,13 @@ const zo = {
729
729
  offsetWidth: "width"
730
730
  }, Et = U(
731
731
  ([{ log: t }, { recalcInProgress: e }]) => {
732
- const n = $(), o = $(), r = ct(o, 0), s = $(), i = $(), l = C(0), c = C([]), a = C(void 0), m = C(void 0), S = C((f, d) => vt(f, zo[d])), g = C(void 0), I = C(0), w = Ro(), v = ct(
733
- x(n, N(c, t, I), bt(ko, w), Z()),
734
- w
735
- ), h = ct(
736
- x(
732
+ const n = $(), o = $(), r = ct(o, 0), s = $(), i = $(), l = w(0), c = w([]), a = w(void 0), m = w(void 0), x = w((f, d) => vt(f, zo[d])), h = w(void 0), I = w(0), C = Ro(), v = ct(
733
+ S(n, N(c, t, I), bt(ko, C), Y()),
734
+ C
735
+ ), g = ct(
736
+ S(
737
737
  c,
738
- Z(),
738
+ Y(),
739
739
  bt((f, d) => ({ current: d, prev: f.current }), {
740
740
  current: [],
741
741
  prev: []
@@ -745,7 +745,7 @@ const zo = {
745
745
  []
746
746
  );
747
747
  O(
748
- x(
748
+ S(
749
749
  c,
750
750
  A((f) => f.length > 0),
751
751
  N(v, I),
@@ -760,7 +760,7 @@ const zo = {
760
760
  ),
761
761
  v
762
762
  ), O(
763
- x(
763
+ S(
764
764
  o,
765
765
  N(v),
766
766
  A(([f, { lastIndex: d }]) => f < d),
@@ -775,14 +775,14 @@ const zo = {
775
775
  n
776
776
  ), O(a, m);
777
777
  const p = ct(
778
- x(
778
+ S(
779
779
  a,
780
780
  E((f) => f === void 0)
781
781
  ),
782
782
  !0
783
783
  );
784
784
  O(
785
- x(
785
+ S(
786
786
  m,
787
787
  A((f) => f !== void 0 && j(ot(v).sizeTree)),
788
788
  E((f) => [{ endIndex: 0, size: f, startIndex: 0 }])
@@ -790,7 +790,7 @@ const zo = {
790
790
  n
791
791
  );
792
792
  const u = ht(
793
- x(
793
+ S(
794
794
  n,
795
795
  N(v),
796
796
  bt(
@@ -798,13 +798,13 @@ const zo = {
798
798
  changed: y !== f,
799
799
  sizes: y
800
800
  }),
801
- { changed: !1, sizes: w }
801
+ { changed: !1, sizes: C }
802
802
  ),
803
803
  E((f) => f.changed)
804
804
  )
805
805
  );
806
806
  K(
807
- x(
807
+ S(
808
808
  l,
809
809
  bt(
810
810
  (f, d) => ({ diff: f.prev - d, prev: d }),
@@ -817,11 +817,11 @@ const zo = {
817
817
  if (f > 0)
818
818
  G(e, !0), G(s, f + pn(f, d));
819
819
  else if (f < 0) {
820
- const y = ot(h);
820
+ const y = ot(g);
821
821
  y.length > 0 && (f -= pn(-f, y)), G(i, f);
822
822
  }
823
823
  }
824
- ), K(x(l, N(t)), ([f, d]) => {
824
+ ), K(S(l, N(t)), ([f, d]) => {
825
825
  f < 0 && d(
826
826
  "`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
827
827
  { firstItemIndex: l },
@@ -830,7 +830,7 @@ const zo = {
830
830
  });
831
831
  const T = ht(s);
832
832
  O(
833
- x(
833
+ S(
834
834
  s,
835
835
  N(v),
836
836
  E(([f, d]) => {
@@ -839,30 +839,30 @@ const zo = {
839
839
  const L = re(d.sizeTree, 0);
840
840
  let z = 0, _ = 0;
841
841
  for (; z < f; ) {
842
- const F = d.groupIndices[_], Y = d.groupIndices.length === _ + 1 ? 1 / 0 : d.groupIndices[_ + 1] - F - 1;
842
+ const F = d.groupIndices[_], q = d.groupIndices.length === _ + 1 ? 1 / 0 : d.groupIndices[_ + 1] - F - 1;
843
843
  B.push({
844
844
  endIndex: F,
845
845
  size: L,
846
846
  startIndex: F
847
847
  }), B.push({
848
- endIndex: F + 1 + Y - 1,
848
+ endIndex: F + 1 + q - 1,
849
849
  size: k,
850
850
  startIndex: F + 1
851
- }), _++, z += Y + 1;
851
+ }), _++, z += q + 1;
852
852
  }
853
853
  const J = Gt(d.sizeTree);
854
854
  return z !== f && J.shift(), J.reduce(
855
- (F, { k: Y, v: it }) => {
855
+ (F, { k: q, v: it }) => {
856
856
  let dt = F.ranges;
857
857
  return F.prevSize !== 0 && (dt = [
858
858
  ...F.ranges,
859
859
  {
860
- endIndex: Y + f - 1,
860
+ endIndex: q + f - 1,
861
861
  size: F.prevSize,
862
862
  startIndex: F.prevIndex
863
863
  }
864
864
  ]), {
865
- prevIndex: Y + f,
865
+ prevIndex: q + f,
866
866
  prevSize: it,
867
867
  ranges: dt
868
868
  };
@@ -891,7 +891,7 @@ const zo = {
891
891
  n
892
892
  );
893
893
  const b = ht(
894
- x(
894
+ S(
895
895
  i,
896
896
  N(v, I),
897
897
  E(([f, { offsetTree: d }, y]) => {
@@ -901,7 +901,7 @@ const zo = {
901
901
  )
902
902
  );
903
903
  return O(
904
- x(
904
+ S(
905
905
  i,
906
906
  N(v, I),
907
907
  E(([f, d, y]) => {
@@ -909,18 +909,18 @@ const zo = {
909
909
  if (j(d.sizeTree))
910
910
  return d;
911
911
  let k = jt();
912
- const L = ot(h);
912
+ const L = ot(g);
913
913
  let z = 0, _ = 0, J = 0;
914
914
  for (; z < -f; ) {
915
915
  J = L[_];
916
916
  const F = L[_ + 1] - J - 1;
917
917
  _++, z += F + 1;
918
918
  }
919
- if (k = Gt(d.sizeTree).reduce((F, { k: Y, v: it }) => pt(F, Math.max(0, Y + f), it), k), z !== -f) {
919
+ if (k = Gt(d.sizeTree).reduce((F, { k: q, v: it }) => pt(F, Math.max(0, q + f), it), k), z !== -f) {
920
920
  const F = re(d.sizeTree, J);
921
921
  k = pt(k, 0, F);
922
- const Y = wt(d.sizeTree, -f + 1)[1];
923
- k = pt(k, 1, Y);
922
+ const q = wt(d.sizeTree, -f + 1)[1];
923
+ k = pt(k, 1, q);
924
924
  }
925
925
  return {
926
926
  ...d,
@@ -941,13 +941,13 @@ const zo = {
941
941
  ), {
942
942
  beforeUnshiftWith: T,
943
943
  // input
944
- data: g,
944
+ data: h,
945
945
  defaultItemSize: m,
946
946
  firstItemIndex: l,
947
947
  fixedItemSize: a,
948
948
  gap: I,
949
949
  groupIndices: c,
950
- itemSize: S,
950
+ itemSize: x,
951
951
  listRefresh: u,
952
952
  shiftWith: i,
953
953
  shiftWithOffset: b,
@@ -974,25 +974,25 @@ function Vo(t) {
974
974
  }
975
975
  const Nn = U(
976
976
  ([{ groupIndices: t, sizes: e, totalCount: n }, { headerHeight: o, scrollTop: r }]) => {
977
- const s = $(), i = $(), l = ht(x(s, E(Vo)));
977
+ const s = $(), i = $(), l = ht(S(s, E(Vo)));
978
978
  return O(
979
- x(
979
+ S(
980
980
  l,
981
981
  E((c) => c.totalCount)
982
982
  ),
983
983
  n
984
984
  ), O(
985
- x(
985
+ S(
986
986
  l,
987
987
  E((c) => c.groupIndices)
988
988
  ),
989
989
  t
990
990
  ), O(
991
- x(
991
+ S(
992
992
  rt(r, e, o),
993
993
  A(([c, a]) => Re(a)),
994
994
  E(([c, a, m]) => wt(a.groupOffsetTree, Math.max(c - m, 0), "v")[0]),
995
- Z(),
995
+ Y(),
996
996
  E((c) => [c])
997
997
  ),
998
998
  i
@@ -1001,11 +1001,11 @@ const Nn = U(
1001
1001
  X(Et, at)
1002
1002
  ), Pt = U(
1003
1003
  ([{ log: t }]) => {
1004
- const e = C(!1), n = ht(
1005
- x(
1004
+ const e = w(!1), n = ht(
1005
+ S(
1006
1006
  e,
1007
1007
  A((o) => o),
1008
- Z()
1008
+ Y()
1009
1009
  )
1010
1010
  );
1011
1011
  return K(e, (o) => {
@@ -1030,19 +1030,19 @@ const ce = U(
1030
1030
  scrollingInProgress: c,
1031
1031
  scrollTo: a,
1032
1032
  smoothScrollTargetReached: m,
1033
- viewportHeight: S
1033
+ viewportHeight: x
1034
1034
  },
1035
- { log: g }
1035
+ { log: h }
1036
1036
  ]) => {
1037
- const I = $(), w = $(), v = C(0);
1038
- let h = null, p = null, u = null;
1037
+ const I = $(), C = $(), v = w(0);
1038
+ let g = null, p = null, u = null;
1039
1039
  function T() {
1040
- h && (h(), h = null), u && (u(), u = null), p && (clearTimeout(p), p = null), G(c, !1);
1040
+ g && (g(), g = null), u && (u(), u = null), p && (clearTimeout(p), p = null), G(c, !1);
1041
1041
  }
1042
1042
  return O(
1043
- x(
1043
+ S(
1044
1044
  I,
1045
- N(n, S, o, v, l, i, g),
1045
+ N(n, x, o, v, l, i, h),
1046
1046
  N(t, s, r),
1047
1047
  E(
1048
1048
  ([
@@ -1051,21 +1051,21 @@ const ce = U(
1051
1051
  J,
1052
1052
  nt
1053
1053
  ]) => {
1054
- const F = Dn(b), { align: Y, behavior: it, offset: dt } = F, St = y - 1, ft = _n(F, f, St);
1054
+ const F = Dn(b), { align: q, behavior: it, offset: dt } = F, St = y - 1, ft = _n(F, f, St);
1055
1055
  let ut = ie(ft, f.offsetTree, _) + k;
1056
- Y === "end" ? (ut += J + wt(f.sizeTree, ft)[1] - d + nt, ft === St && (ut += L)) : Y === "center" ? ut += (J + wt(f.sizeTree, ft)[1] - d + nt) / 2 : ut -= B, dt && (ut += dt);
1056
+ q === "end" ? (ut += J + wt(f.sizeTree, ft)[1] - d + nt, ft === St && (ut += L)) : q === "center" ? ut += (J + wt(f.sizeTree, ft)[1] - d + nt) / 2 : ut -= B, dt && (ut += dt);
1057
1057
  const At = (xt) => {
1058
- T(), xt ? (z("retrying to scroll to", { location: b }, mt.DEBUG), G(I, b)) : (G(w, !0), z("list did not change, scroll successful", {}, mt.DEBUG));
1058
+ T(), xt ? (z("retrying to scroll to", { location: b }, mt.DEBUG), G(I, b)) : (G(C, !0), z("list did not change, scroll successful", {}, mt.DEBUG));
1059
1059
  };
1060
1060
  if (T(), it === "smooth") {
1061
1061
  let xt = !1;
1062
1062
  u = K(e, (Xt) => {
1063
1063
  xt = xt || Xt;
1064
- }), h = Tt(m, () => {
1064
+ }), g = Tt(m, () => {
1065
1065
  At(xt);
1066
1066
  });
1067
1067
  } else
1068
- h = Tt(x(e, Ao(150)), At);
1068
+ g = Tt(S(e, Ao(150)), At);
1069
1069
  return p = setTimeout(() => {
1070
1070
  T();
1071
1071
  }, 1200), G(c, !0), z("scrolling from index to", { behavior: it, index: ft, top: ut }, mt.DEBUG), { behavior: it, top: ut };
@@ -1074,7 +1074,7 @@ const ce = U(
1074
1074
  ),
1075
1075
  a
1076
1076
  ), {
1077
- scrollTargetReached: w,
1077
+ scrollTargetReached: C,
1078
1078
  scrollToIndex: I,
1079
1079
  topListHeight: v
1080
1080
  };
@@ -1103,28 +1103,28 @@ function Ke(t, e) {
1103
1103
  }
1104
1104
  const ue = U(
1105
1105
  ([{ defaultItemSize: t, listRefresh: e, sizes: n }, { scrollTop: o }, { scrollTargetReached: r, scrollToIndex: s }, { didMount: i }]) => {
1106
- const l = C(!0), c = C(0), a = C(!0);
1106
+ const l = w(!0), c = w(0), a = w(!0);
1107
1107
  return O(
1108
- x(
1108
+ S(
1109
1109
  i,
1110
1110
  N(c),
1111
- A(([m, S]) => !!S),
1111
+ A(([m, x]) => !!x),
1112
1112
  Rt(!1)
1113
1113
  ),
1114
1114
  l
1115
1115
  ), O(
1116
- x(
1116
+ S(
1117
1117
  i,
1118
1118
  N(c),
1119
- A(([m, S]) => !!S),
1119
+ A(([m, x]) => !!x),
1120
1120
  Rt(!1)
1121
1121
  ),
1122
1122
  a
1123
1123
  ), K(
1124
- x(
1124
+ S(
1125
1125
  rt(e, i),
1126
1126
  N(l, n, t, a),
1127
- A(([[, m], S, { sizeTree: g }, I, w]) => m && (!j(g) || We(I)) && !S && !w),
1127
+ A(([[, m], x, { sizeTree: h }, I, C]) => m && (!j(h) || We(I)) && !x && !C),
1128
1128
  N(c)
1129
1129
  ),
1130
1130
  ([, m]) => {
@@ -1158,26 +1158,26 @@ const le = "up", te = "down", Mo = "none", Wo = {
1158
1158
  viewportHeight: 0
1159
1159
  }
1160
1160
  }, Go = 0, ae = U(([{ footerHeight: t, headerHeight: e, scrollBy: n, scrollContainerState: o, scrollTop: r, viewportHeight: s }]) => {
1161
- const i = C(!1), l = C(!0), c = $(), a = $(), m = C(4), S = C(Go), g = ct(
1162
- x(
1163
- Le(x(V(r), Dt(1), Rt(!0)), x(V(r), Dt(1), Rt(!1), dn(100))),
1164
- Z()
1161
+ const i = w(!1), l = w(!0), c = $(), a = $(), m = w(4), x = w(Go), h = ct(
1162
+ S(
1163
+ Le(S(V(r), Dt(1), Rt(!0)), S(V(r), Dt(1), Rt(!1), dn(100))),
1164
+ Y()
1165
1165
  ),
1166
1166
  !1
1167
1167
  ), I = ct(
1168
- x(Le(x(n, Rt(!0)), x(n, Rt(!1), dn(200))), Z()),
1168
+ S(Le(S(n, Rt(!0)), S(n, Rt(!1), dn(200))), Y()),
1169
1169
  !1
1170
1170
  );
1171
1171
  O(
1172
- x(
1173
- rt(V(r), V(S)),
1172
+ S(
1173
+ rt(V(r), V(x)),
1174
1174
  E(([u, T]) => u <= T),
1175
- Z()
1175
+ Y()
1176
1176
  ),
1177
1177
  l
1178
- ), O(x(l, kt(50)), a);
1179
- const w = ht(
1180
- x(
1178
+ ), O(S(l, kt(50)), a);
1179
+ const C = ht(
1180
+ S(
1181
1181
  rt(o, V(s), V(e), V(t), V(m)),
1182
1182
  bt((u, [{ scrollHeight: T, scrollTop: b }, f, d, y, B]) => {
1183
1183
  const k = b + f - T > -B, L = {
@@ -1201,10 +1201,10 @@ const le = "up", te = "down", Mo = "none", Wo = {
1201
1201
  state: L
1202
1202
  };
1203
1203
  }, Wo),
1204
- Z((u, T) => u && u.atBottom === T.atBottom)
1204
+ Y((u, T) => u && u.atBottom === T.atBottom)
1205
1205
  )
1206
1206
  ), v = ct(
1207
- x(
1207
+ S(
1208
1208
  o,
1209
1209
  bt(
1210
1210
  (u, { scrollHeight: T, scrollTop: b, viewportHeight: f }) => {
@@ -1238,55 +1238,55 @@ const le = "up", te = "down", Mo = "none", Wo = {
1238
1238
  0
1239
1239
  );
1240
1240
  O(
1241
- x(
1242
- w,
1241
+ S(
1242
+ C,
1243
1243
  E((u) => u.atBottom)
1244
1244
  ),
1245
1245
  i
1246
- ), O(x(i, kt(50)), c);
1247
- const h = C(te);
1246
+ ), O(S(i, kt(50)), c);
1247
+ const g = w(te);
1248
1248
  O(
1249
- x(
1249
+ S(
1250
1250
  o,
1251
1251
  E(({ scrollTop: u }) => u),
1252
- Z(),
1252
+ Y(),
1253
1253
  bt(
1254
1254
  (u, T) => ot(I) ? { direction: u.direction, prevScrollTop: T } : { direction: T < u.prevScrollTop ? le : te, prevScrollTop: T },
1255
1255
  { direction: te, prevScrollTop: 0 }
1256
1256
  ),
1257
1257
  E((u) => u.direction)
1258
1258
  ),
1259
- h
1260
- ), O(x(o, kt(50), Rt(Mo)), h);
1261
- const p = C(0);
1259
+ g
1260
+ ), O(S(o, kt(50), Rt(Mo)), g);
1261
+ const p = w(0);
1262
1262
  return O(
1263
- x(
1264
- g,
1263
+ S(
1264
+ h,
1265
1265
  A((u) => !u),
1266
1266
  Rt(0)
1267
1267
  ),
1268
1268
  p
1269
1269
  ), O(
1270
- x(
1270
+ S(
1271
1271
  r,
1272
1272
  kt(100),
1273
- N(g),
1273
+ N(h),
1274
1274
  A(([u, T]) => !!T),
1275
1275
  bt(([u, T], [b]) => [T, b], [0, 0]),
1276
1276
  E(([u, T]) => T - u)
1277
1277
  ),
1278
1278
  p
1279
1279
  ), {
1280
- atBottomState: w,
1280
+ atBottomState: C,
1281
1281
  atBottomStateChange: c,
1282
1282
  atBottomThreshold: m,
1283
1283
  atTopStateChange: a,
1284
- atTopThreshold: S,
1284
+ atTopThreshold: x,
1285
1285
  isAtBottom: i,
1286
1286
  isAtTop: l,
1287
- isScrolling: g,
1287
+ isScrolling: h,
1288
1288
  lastJumpDueToItemResize: v,
1289
- scrollDirection: h,
1289
+ scrollDirection: g,
1290
1290
  scrollVelocity: p
1291
1291
  };
1292
1292
  }, X(at)), xe = "top", Te = "bottom", hn = "none";
@@ -1299,8 +1299,8 @@ function In(t, e) {
1299
1299
  }
1300
1300
  const je = U(
1301
1301
  ([{ deviation: t, fixedHeaderHeight: e, headerHeight: n, scrollTop: o, viewportHeight: r }]) => {
1302
- const s = $(), i = C(0), l = C(0), c = C(0), a = ct(
1303
- x(
1302
+ const s = $(), i = w(0), l = w(0), c = w(0), a = ct(
1303
+ S(
1304
1304
  rt(
1305
1305
  V(o),
1306
1306
  V(r),
@@ -1315,26 +1315,26 @@ const je = U(
1315
1315
  E(
1316
1316
  ([
1317
1317
  m,
1318
- S,
1319
- g,
1320
- [I, w],
1321
- v,
1318
+ x,
1322
1319
  h,
1320
+ [I, C],
1321
+ v,
1322
+ g,
1323
1323
  p,
1324
1324
  u,
1325
1325
  T
1326
1326
  ]) => {
1327
- const b = m - u, f = h + p, d = Math.max(g - b, 0);
1327
+ const b = m - u, f = g + p, d = Math.max(h - b, 0);
1328
1328
  let y = hn;
1329
1329
  const B = In(T, xe), k = In(T, Te);
1330
- return I -= u, I += g + p, w += g + p, w -= u, I > m + f - B && (y = le), w < m - d + S + k && (y = te), y !== hn ? [
1331
- Math.max(b - g - gn(v, xe, y) - B, 0),
1332
- b - d - p + S + gn(v, Te, y) + k
1330
+ return I -= u, I += h + p, C += h + p, C -= u, I > m + f - B && (y = le), C < m - d + x + k && (y = te), y !== hn ? [
1331
+ Math.max(b - h - gn(v, xe, y) - B, 0),
1332
+ b - d - p + x + gn(v, Te, y) + k
1333
1333
  ] : null;
1334
1334
  }
1335
1335
  ),
1336
1336
  A((m) => m != null),
1337
- Z(se)
1337
+ Y(se)
1338
1338
  ),
1339
1339
  [0, 0]
1340
1340
  );
@@ -1380,16 +1380,16 @@ function Ie(t, e, n, o, r, s) {
1380
1380
  const v = t[t.length - 1];
1381
1381
  m = v.offset + v.size;
1382
1382
  }
1383
- const S = n - i, g = l + S * c + (S - 1) * o, I = a, w = g - m;
1383
+ const x = n - i, h = l + x * c + (x - 1) * o, I = a, C = h - m;
1384
1384
  return {
1385
1385
  bottom: m,
1386
1386
  firstItemIndex: s,
1387
1387
  items: Sn(t, r, s),
1388
- offsetBottom: w,
1388
+ offsetBottom: C,
1389
1389
  offsetTop: a,
1390
1390
  top: I,
1391
1391
  topItems: Sn(e, r, s),
1392
- topListHeight: e.reduce((v, h) => h.size + v, 0),
1392
+ topListHeight: e.reduce((v, g) => g.size + v, 0),
1393
1393
  totalCount: n
1394
1394
  };
1395
1395
  }
@@ -1401,9 +1401,9 @@ function Un(t, e, n, o, r, s) {
1401
1401
  break;
1402
1402
  i++;
1403
1403
  }
1404
- const l = t + i, c = Ke(e, l), a = Array.from({ length: l }).map((m, S) => ({
1405
- data: s[S + c],
1406
- index: S + c,
1404
+ const l = t + i, c = Ke(e, l), a = Array.from({ length: l }).map((m, x) => ({
1405
+ data: s[x + c],
1406
+ index: x + c,
1407
1407
  offset: 0,
1408
1408
  size: 0
1409
1409
  }));
@@ -1441,18 +1441,18 @@ const $t = U(
1441
1441
  s,
1442
1442
  { listBoundary: i, topListHeight: l, visibleRange: c },
1443
1443
  { initialTopMostItemIndex: a, scrolledToInitialItem: m },
1444
- { topListHeight: S },
1445
- g,
1444
+ { topListHeight: x },
1445
+ h,
1446
1446
  { didMount: I },
1447
- { recalcInProgress: w }
1447
+ { recalcInProgress: C }
1448
1448
  ]) => {
1449
- const v = C([]), h = C(0), p = $();
1449
+ const v = w([]), g = w(0), p = $();
1450
1450
  O(s.topItemsIndexes, v);
1451
1451
  const u = ct(
1452
- x(
1452
+ S(
1453
1453
  rt(
1454
1454
  I,
1455
- w,
1455
+ C,
1456
1456
  V(c, se),
1457
1457
  V(r),
1458
1458
  V(o),
@@ -1481,18 +1481,18 @@ const $t = U(
1481
1481
  nt,
1482
1482
  F
1483
1483
  ]) => {
1484
- const Y = k, { offsetTree: it, sizeTree: dt } = Y, St = ot(h);
1484
+ const q = k, { offsetTree: it, sizeTree: dt } = q, St = ot(g);
1485
1485
  if (B === 0)
1486
1486
  return { ...Be, totalCount: B };
1487
1487
  if (d === 0 && y === 0)
1488
1488
  return St === 0 ? { ...Be, totalCount: B } : Un(St, L, k, J, nt, F || []);
1489
1489
  if (j(dt))
1490
1490
  return St > 0 ? null : Ie(
1491
- _o(Ke(L, B), Y, F),
1491
+ _o(Ke(L, B), q, F),
1492
1492
  [],
1493
1493
  B,
1494
1494
  nt,
1495
- Y,
1495
+ q,
1496
1496
  J
1497
1497
  );
1498
1498
  const ft = [];
@@ -1506,7 +1506,7 @@ const $t = U(
1506
1506
  }
1507
1507
  }
1508
1508
  if (!z)
1509
- return Ie([], ft, B, nt, Y, J);
1509
+ return Ie([], ft, B, nt, q, J);
1510
1510
  const ut = _.length > 0 ? _[_.length - 1] + 1 : 0, At = Bo(it, d, y, ut);
1511
1511
  if (At.length === 0)
1512
1512
  return null;
@@ -1526,61 +1526,61 @@ const $t = U(
1526
1526
  Mt.push({ data: F == null ? void 0 : F[tt], index: tt, offset: R, size: Q }), R += Q + nt;
1527
1527
  }
1528
1528
  });
1529
- return Ie(Xt, ft, B, nt, Y, J);
1529
+ return Ie(Xt, ft, B, nt, q, J);
1530
1530
  }
1531
1531
  ),
1532
1532
  //@ts-expect-error filter needs to be fixed
1533
1533
  A((d) => d !== null),
1534
- Z()
1534
+ Y()
1535
1535
  ),
1536
1536
  Be
1537
1537
  );
1538
1538
  O(
1539
- x(
1539
+ S(
1540
1540
  t,
1541
1541
  A(We),
1542
1542
  E((d) => d == null ? void 0 : d.length)
1543
1543
  ),
1544
1544
  r
1545
1545
  ), O(
1546
- x(
1546
+ S(
1547
1547
  u,
1548
1548
  E((d) => d.topListHeight)
1549
1549
  ),
1550
- S
1551
- ), O(S, l), O(
1552
- x(
1550
+ x
1551
+ ), O(x, l), O(
1552
+ S(
1553
1553
  u,
1554
1554
  E((d) => [d.top, d.bottom])
1555
1555
  ),
1556
1556
  i
1557
1557
  ), O(
1558
- x(
1558
+ S(
1559
1559
  u,
1560
1560
  E((d) => d.items)
1561
1561
  ),
1562
1562
  p
1563
1563
  );
1564
1564
  const T = ht(
1565
- x(
1565
+ S(
1566
1566
  u,
1567
1567
  A(({ items: d }) => d.length > 0),
1568
1568
  N(r, t),
1569
1569
  A(([{ items: d }, y]) => d[d.length - 1].originalIndex === y - 1),
1570
1570
  E(([, d, y]) => [d - 1, y]),
1571
- Z(se),
1571
+ Y(se),
1572
1572
  E(([d]) => d)
1573
1573
  )
1574
1574
  ), b = ht(
1575
- x(
1575
+ S(
1576
1576
  u,
1577
1577
  kt(200),
1578
1578
  A(({ items: d, topItems: y }) => d.length > 0 && d[0].originalIndex === y.length),
1579
1579
  E(({ items: d }) => d[0].index),
1580
- Z()
1580
+ Y()
1581
1581
  )
1582
1582
  ), f = ht(
1583
- x(
1583
+ S(
1584
1584
  u,
1585
1585
  A(({ items: d }) => d.length > 0),
1586
1586
  E(({ items: d }) => {
@@ -1594,10 +1594,10 @@ const $t = U(
1594
1594
  startIndex: d[y].index
1595
1595
  };
1596
1596
  }),
1597
- Z(Mn)
1597
+ Y(Mn)
1598
1598
  )
1599
1599
  );
1600
- return { endReached: T, initialItemCount: h, itemsRendered: p, listState: u, rangeChanged: f, startReached: b, topItemsIndexes: v, ...g };
1600
+ return { endReached: T, initialItemCount: g, itemsRendered: p, listState: u, rangeChanged: f, startReached: b, topItemsIndexes: v, ...h };
1601
1601
  },
1602
1602
  X(
1603
1603
  Et,
@@ -1613,9 +1613,9 @@ const $t = U(
1613
1613
  ), Kn = U(
1614
1614
  ([{ fixedFooterHeight: t, fixedHeaderHeight: e, footerHeight: n, headerHeight: o }, { listState: r }]) => {
1615
1615
  const s = $(), i = ct(
1616
- x(
1616
+ S(
1617
1617
  rt(n, t, o, e, r),
1618
- E(([l, c, a, m, S]) => l + c + a + m + S.offsetBottom + S.bottom)
1618
+ E(([l, c, a, m, x]) => l + c + a + m + x.offsetBottom + x.bottom)
1619
1619
  ),
1620
1620
  0
1621
1621
  );
@@ -1625,13 +1625,13 @@ const $t = U(
1625
1625
  { singleton: !0 }
1626
1626
  ), No = U(
1627
1627
  ([{ viewportHeight: t }, { totalListHeight: e }]) => {
1628
- const n = C(!1), o = ct(
1629
- x(
1628
+ const n = w(!1), o = ct(
1629
+ S(
1630
1630
  rt(n, t, e),
1631
1631
  A(([r]) => r),
1632
1632
  E(([, r, s]) => Math.max(0, r - s)),
1633
1633
  kt(0),
1634
- Z()
1634
+ Y()
1635
1635
  ),
1636
1636
  0
1637
1637
  );
@@ -1640,7 +1640,7 @@ const $t = U(
1640
1640
  X(at, Kn),
1641
1641
  { singleton: !0 }
1642
1642
  ), jn = U(() => ({
1643
- context: C(null)
1643
+ context: w(null)
1644
1644
  })), Do = ({
1645
1645
  itemBottom: t,
1646
1646
  itemTop: e,
@@ -1655,12 +1655,12 @@ const $t = U(
1655
1655
  ]) => {
1656
1656
  const m = $();
1657
1657
  return O(
1658
- x(
1658
+ S(
1659
1659
  m,
1660
1660
  N(e, c, n, s, r, o, l),
1661
1661
  N(t),
1662
- E(([[S, g, I, w, v, h, p, u], T]) => {
1663
- const { align: b, behavior: f, calculateViewLocation: d = Do, done: y, ...B } = S, k = _n(S, g, w - 1), L = ie(k, g.offsetTree, T) + v + h, z = L + wt(g.sizeTree, k)[1], _ = u + h, J = u + I - p, nt = d({
1662
+ E(([[x, h, I, C, v, g, p, u], T]) => {
1663
+ const { align: b, behavior: f, calculateViewLocation: d = Do, done: y, ...B } = x, k = _n(x, h, C - 1), L = ie(k, h.offsetTree, T) + v + g, z = L + wt(h.sizeTree, k)[1], _ = u + g, J = u + I - p, nt = d({
1664
1664
  itemBottom: z,
1665
1665
  itemTop: L,
1666
1666
  locationParams: { align: b, behavior: f, ...B },
@@ -1668,7 +1668,7 @@ const $t = U(
1668
1668
  viewportTop: _
1669
1669
  });
1670
1670
  return nt ? y && Tt(
1671
- x(
1671
+ S(
1672
1672
  i,
1673
1673
  A((F) => !F),
1674
1674
  // skips the initial publish of false, and the cleanup call.
@@ -1678,7 +1678,7 @@ const $t = U(
1678
1678
  y
1679
1679
  ) : y && y(), nt;
1680
1680
  }),
1681
- A((S) => S !== null)
1681
+ A((x) => x !== null)
1682
1682
  ),
1683
1683
  a
1684
1684
  ), {
@@ -1699,12 +1699,12 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1699
1699
  { scrolledToInitialItem: l },
1700
1700
  { didMount: c, propsReady: a },
1701
1701
  { log: m },
1702
- { scrollingInProgress: S },
1703
- { context: g },
1702
+ { scrollingInProgress: x },
1703
+ { context: h },
1704
1704
  { scrollIntoView: I }
1705
1705
  ]) => {
1706
- const w = C(!1), v = $();
1707
- let h = null;
1706
+ const C = w(!1), v = $();
1707
+ let g = null;
1708
1708
  function p(f) {
1709
1709
  G(i, {
1710
1710
  align: "end",
@@ -1713,9 +1713,9 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1713
1713
  });
1714
1714
  }
1715
1715
  K(
1716
- x(
1717
- rt(x(V(e), Dt(1)), c),
1718
- N(V(w), s, l, S),
1716
+ S(
1717
+ rt(S(V(e), Dt(1)), c),
1718
+ N(V(C), s, l, x),
1719
1719
  E(([[f, d], y, B, k, L]) => {
1720
1720
  let z = d && k, _ = "auto";
1721
1721
  return z && (_ = $o(y, B || L), z = z && !!_), { followOutputBehavior: _, shouldFollow: z, totalCount: f };
@@ -1723,67 +1723,67 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1723
1723
  A(({ shouldFollow: f }) => f)
1724
1724
  ),
1725
1725
  ({ followOutputBehavior: f, totalCount: d }) => {
1726
- h && (h(), h = null), ot(n) ? requestAnimationFrame(() => {
1726
+ g && (g(), g = null), ot(n) ? requestAnimationFrame(() => {
1727
1727
  ot(m)("following output to ", { totalCount: d }, mt.DEBUG), p(f);
1728
- }) : h = Tt(t, () => {
1729
- ot(m)("following output to ", { totalCount: d }, mt.DEBUG), p(f), h = null;
1728
+ }) : g = Tt(t, () => {
1729
+ ot(m)("following output to ", { totalCount: d }, mt.DEBUG), p(f), g = null;
1730
1730
  });
1731
1731
  }
1732
1732
  );
1733
1733
  function u(f) {
1734
1734
  const d = Tt(r, (y) => {
1735
- f && !y.atBottom && y.notAtBottomBecause === "SIZE_INCREASED" && !h && (ot(m)("scrolling to bottom due to increased size", {}, mt.DEBUG), p("auto"));
1735
+ f && !y.atBottom && y.notAtBottomBecause === "SIZE_INCREASED" && !g && (ot(m)("scrolling to bottom due to increased size", {}, mt.DEBUG), p("auto"));
1736
1736
  });
1737
1737
  setTimeout(d, 100);
1738
1738
  }
1739
1739
  K(
1740
- x(
1741
- rt(V(w), e, a),
1740
+ S(
1741
+ rt(V(C), e, a),
1742
1742
  A(([f, , d]) => f && d),
1743
1743
  bt(
1744
1744
  ({ value: f }, [, d]) => ({ refreshed: f === d, value: d }),
1745
1745
  { refreshed: !1, value: 0 }
1746
1746
  ),
1747
1747
  A(({ refreshed: f }) => f),
1748
- N(w, e)
1748
+ N(C, e)
1749
1749
  ),
1750
1750
  ([, f]) => {
1751
1751
  ot(l) && u(f !== !1);
1752
1752
  }
1753
1753
  ), K(v, () => {
1754
- u(ot(w) !== !1);
1755
- }), K(rt(V(w), r), ([f, d]) => {
1754
+ u(ot(C) !== !1);
1755
+ }), K(rt(V(C), r), ([f, d]) => {
1756
1756
  f && !d.atBottom && d.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && p("auto");
1757
1757
  });
1758
- const T = C(null), b = $();
1758
+ const T = w(null), b = $();
1759
1759
  return O(
1760
1760
  Le(
1761
- x(
1761
+ S(
1762
1762
  V(o),
1763
1763
  E((f) => {
1764
1764
  var d;
1765
1765
  return (d = f == null ? void 0 : f.length) != null ? d : 0;
1766
1766
  })
1767
1767
  ),
1768
- x(V(e))
1768
+ S(V(e))
1769
1769
  ),
1770
1770
  b
1771
1771
  ), K(
1772
- x(
1773
- rt(x(b, Dt(1)), c),
1774
- N(V(T), l, S, g),
1772
+ S(
1773
+ rt(S(b, Dt(1)), c),
1774
+ N(V(T), l, x, h),
1775
1775
  E(([[f, d], y, B, k, L]) => d && B && (y == null ? void 0 : y({ context: L, totalCount: f, scrollingInProgress: k }))),
1776
1776
  A((f) => !!f),
1777
1777
  kt(0)
1778
1778
  ),
1779
1779
  (f) => {
1780
- h && (h(), h = null), ot(n) ? requestAnimationFrame(() => {
1780
+ g && (g(), g = null), ot(n) ? requestAnimationFrame(() => {
1781
1781
  ot(m)("scrolling into view", {}), G(I, f);
1782
- }) : h = Tt(t, () => {
1783
- ot(m)("scrolling into view", {}), G(I, f), h = null;
1782
+ }) : g = Tt(t, () => {
1783
+ ot(m)("scrolling into view", {}), G(I, f), g = null;
1784
1784
  });
1785
1785
  }
1786
- ), { autoscrollToBottom: v, followOutput: w, scrollIntoViewOnChange: T };
1786
+ ), { autoscrollToBottom: v, followOutput: C, scrollIntoViewOnChange: T };
1787
1787
  },
1788
1788
  X(
1789
1789
  Et,
@@ -1798,12 +1798,12 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1798
1798
  )
1799
1799
  ), Ko = U(
1800
1800
  ([{ data: t, firstItemIndex: e, gap: n, sizes: o }, { initialTopMostItemIndex: r }, { initialItemCount: s, listState: i }, { didMount: l }]) => (O(
1801
- x(
1801
+ S(
1802
1802
  l,
1803
1803
  N(s),
1804
1804
  A(([, c]) => c !== 0),
1805
1805
  N(r, o, e, n, t),
1806
- E(([[, c], a, m, S, g, I = []]) => Un(c, a, m, S, g, I))
1806
+ E(([[, c], a, m, x, h, I = []]) => Un(c, a, m, x, h, I))
1807
1807
  ),
1808
1808
  i
1809
1809
  ), {}),
@@ -1811,9 +1811,9 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1811
1811
  { singleton: !0 }
1812
1812
  ), jo = U(
1813
1813
  ([{ didMount: t }, { scrollTo: e }, { listState: n }]) => {
1814
- const o = C(0);
1814
+ const o = w(0);
1815
1815
  return K(
1816
- x(
1816
+ S(
1817
1817
  t,
1818
1818
  N(o),
1819
1819
  A(([, r]) => r !== 0),
@@ -1821,7 +1821,7 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1821
1821
  ),
1822
1822
  (r) => {
1823
1823
  Tt(
1824
- x(
1824
+ S(
1825
1825
  n,
1826
1826
  Dt(1),
1827
1827
  A((s) => s.items.length > 1)
@@ -1841,9 +1841,9 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1841
1841
  { singleton: !0 }
1842
1842
  ), Yn = U(
1843
1843
  ([{ scrollVelocity: t }]) => {
1844
- const e = C(!1), n = $(), o = C(!1);
1844
+ const e = w(!1), n = $(), o = w(!1);
1845
1845
  return O(
1846
- x(
1846
+ S(
1847
1847
  t,
1848
1848
  N(o, e, n),
1849
1849
  A(([r, s]) => !!s),
@@ -1856,11 +1856,11 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1856
1856
  return !0;
1857
1857
  return i;
1858
1858
  }),
1859
- Z()
1859
+ Y()
1860
1860
  ),
1861
1861
  e
1862
1862
  ), K(
1863
- x(rt(e, t, n), N(o)),
1863
+ S(rt(e, t, n), N(o)),
1864
1864
  ([[r, s, i], l]) => {
1865
1865
  r && l && l.change && l.change(s, i);
1866
1866
  }
@@ -1869,9 +1869,9 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1869
1869
  X(ae),
1870
1870
  { singleton: !0 }
1871
1871
  ), qe = U(([{ scrollContainerState: t, scrollTo: e }]) => {
1872
- const n = $(), o = $(), r = $(), s = C(!1), i = C(void 0);
1872
+ const n = $(), o = $(), r = $(), s = w(!1), i = w(void 0);
1873
1873
  return O(
1874
- x(
1874
+ S(
1875
1875
  rt(n, o),
1876
1876
  E(([{ scrollHeight: l, scrollTop: c, viewportHeight: a }, { offsetTop: m }]) => ({
1877
1877
  scrollHeight: l,
@@ -1881,7 +1881,7 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1881
1881
  ),
1882
1882
  t
1883
1883
  ), O(
1884
- x(
1884
+ S(
1885
1885
  e,
1886
1886
  N(o),
1887
1887
  E(([l, { offsetTop: c }]) => ({
@@ -1908,22 +1908,22 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1908
1908
  { didMount: s },
1909
1909
  { useWindowScroll: i, windowScrollContainerState: l, windowViewportRect: c }
1910
1910
  ]) => {
1911
- const a = $(), m = C(void 0), S = C(null), g = C(null);
1912
- return O(l, S), O(c, g), K(
1913
- x(
1911
+ const a = $(), m = w(void 0), x = w(null), h = w(null);
1912
+ return O(l, x), O(c, h), K(
1913
+ S(
1914
1914
  a,
1915
- N(e, o, i, S, g, n)
1915
+ N(e, o, i, x, h, n)
1916
1916
  ),
1917
- ([I, w, v, h, p, u, T]) => {
1918
- const b = Fo(w.sizeTree);
1919
- h && p !== null && u !== null && (v = p.scrollTop - u.offsetTop), v -= T, I({ ranges: b, scrollTop: v });
1917
+ ([I, C, v, g, p, u, T]) => {
1918
+ const b = Fo(C.sizeTree);
1919
+ g && p !== null && u !== null && (v = p.scrollTop - u.offsetTop), v -= T, I({ ranges: b, scrollTop: v });
1920
1920
  }
1921
- ), O(x(m, A(We), E(Yo)), r), O(
1922
- x(
1921
+ ), O(S(m, A(We), E(Yo)), r), O(
1922
+ S(
1923
1923
  s,
1924
1924
  N(m),
1925
1925
  A(([, I]) => I !== void 0),
1926
- Z(),
1926
+ Y(),
1927
1927
  E(([, I]) => I.ranges)
1928
1928
  ),
1929
1929
  t
@@ -1938,9 +1938,9 @@ function Yo(t) {
1938
1938
  return { align: "start", index: 0, offset: t.scrollTop };
1939
1939
  }
1940
1940
  const Zo = U(([{ topItemsIndexes: t }]) => {
1941
- const e = C(0);
1941
+ const e = w(0);
1942
1942
  return O(
1943
- x(
1943
+ S(
1944
1944
  e,
1945
1945
  A((n) => n >= 0),
1946
1946
  E((n) => Array.from({ length: n }).map((o, r) => r))
@@ -1957,12 +1957,12 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
1957
1957
  { deviation: t, scrollBy: e, scrollingInProgress: n, scrollTop: o },
1958
1958
  { isAtBottom: r, isScrolling: s, lastJumpDueToItemResize: i, scrollDirection: l },
1959
1959
  { listState: c },
1960
- { beforeUnshiftWith: a, gap: m, shiftWithOffset: S, sizes: g },
1960
+ { beforeUnshiftWith: a, gap: m, shiftWithOffset: x, sizes: h },
1961
1961
  { log: I },
1962
- { recalcInProgress: w }
1962
+ { recalcInProgress: C }
1963
1963
  ]) => {
1964
1964
  const v = ht(
1965
- x(
1965
+ S(
1966
1966
  c,
1967
1967
  N(i),
1968
1968
  bt(
@@ -1974,34 +1974,34 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
1974
1974
  [0, [], 0, 0]
1975
1975
  ),
1976
1976
  A(([p]) => p !== 0),
1977
- N(o, l, n, r, I, w),
1977
+ N(o, l, n, r, I, C),
1978
1978
  A(([, p, u, T, , , b]) => !b && !T && p !== 0 && u === le),
1979
1979
  E(([[p], , , , , u]) => (u("Upward scrolling compensation", { amount: p }, mt.DEBUG), p))
1980
1980
  )
1981
1981
  );
1982
- function h(p) {
1982
+ function g(p) {
1983
1983
  p > 0 ? (G(e, { behavior: "auto", top: -p }), G(t, 0)) : (G(t, 0), G(e, { behavior: "auto", top: -p }));
1984
1984
  }
1985
- return K(x(v, N(t, s)), ([p, u, T]) => {
1986
- T && Xo() ? G(t, u - p) : h(-p);
1985
+ return K(S(v, N(t, s)), ([p, u, T]) => {
1986
+ T && Xo() ? G(t, u - p) : g(-p);
1987
1987
  }), K(
1988
- x(
1989
- rt(ct(s, !1), t, w),
1988
+ S(
1989
+ rt(ct(s, !1), t, C),
1990
1990
  A(([p, u, T]) => !p && !T && u !== 0),
1991
1991
  E(([p, u]) => u),
1992
1992
  kt(1)
1993
1993
  ),
1994
- h
1994
+ g
1995
1995
  ), O(
1996
- x(
1997
- S,
1996
+ S(
1997
+ x,
1998
1998
  E((p) => ({ top: -p }))
1999
1999
  ),
2000
2000
  e
2001
2001
  ), K(
2002
- x(
2002
+ S(
2003
2003
  a,
2004
- N(g, m),
2004
+ N(h, m),
2005
2005
  E(([p, { groupIndices: u, lastSize: T, sizeTree: b }, f]) => {
2006
2006
  function d(y) {
2007
2007
  return y * (T + f);
@@ -2024,7 +2024,7 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2024
2024
  (p) => {
2025
2025
  G(t, p), requestAnimationFrame(() => {
2026
2026
  G(e, { top: p }), requestAnimationFrame(() => {
2027
- G(t, 0), G(w, !1);
2027
+ G(t, 0), G(C, !1);
2028
2028
  });
2029
2029
  });
2030
2030
  }
@@ -2084,11 +2084,11 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2084
2084
  sizes: c,
2085
2085
  statefulTotalCount: a,
2086
2086
  totalCount: m,
2087
- trackItemSizes: S
2087
+ trackItemSizes: x
2088
2088
  },
2089
- { initialItemFinalLocationReached: g, initialTopMostItemIndex: I, scrolledToInitialItem: w },
2089
+ { initialItemFinalLocationReached: h, initialTopMostItemIndex: I, scrolledToInitialItem: C },
2090
2090
  v,
2091
- h,
2091
+ g,
2092
2092
  p,
2093
2093
  { listState: u, topItemsIndexes: T, ...b },
2094
2094
  { scrollToIndex: f },
@@ -2097,7 +2097,7 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2097
2097
  { groupCounts: B },
2098
2098
  k
2099
2099
  ]) => (O(b.rangeChanged, k.scrollSeekRangeChanged), O(
2100
- x(
2100
+ S(
2101
2101
  k.windowViewportRect,
2102
2102
  E((L) => L.visibleHeight)
2103
2103
  ),
@@ -2109,9 +2109,9 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2109
2109
  fixedItemHeight: o,
2110
2110
  gap: r,
2111
2111
  groupCounts: B,
2112
- initialItemFinalLocationReached: g,
2112
+ initialItemFinalLocationReached: h,
2113
2113
  initialTopMostItemIndex: I,
2114
- scrolledToInitialItem: w,
2114
+ scrolledToInitialItem: C,
2115
2115
  sizeRanges: l,
2116
2116
  topItemCount: y,
2117
2117
  topItemsIndexes: T,
@@ -2124,14 +2124,14 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2124
2124
  scrollToIndex: f,
2125
2125
  // output
2126
2126
  statefulTotalCount: a,
2127
- trackItemSizes: S,
2127
+ trackItemSizes: x,
2128
2128
  // exported from stateFlagsSystem
2129
2129
  ...b,
2130
2130
  // the bag of IO from featureGroup1System
2131
2131
  ...k,
2132
2132
  ...v,
2133
2133
  sizes: c,
2134
- ...h
2134
+ ...g
2135
2135
  }),
2136
2136
  X(
2137
2137
  Et,
@@ -2182,7 +2182,7 @@ function Ye(t, e, n) {
2182
2182
  function m(p) {
2183
2183
  return i.reduce((u, T) => (u[T] = Io(p[e.events[T]]), u), {});
2184
2184
  }
2185
- const S = H.forwardRef((p, u) => {
2185
+ const x = H.forwardRef((p, u) => {
2186
2186
  const { children: T, ...b } = p, [f] = H.useState(() => ve(xo(t), (B) => {
2187
2187
  c(B, b);
2188
2188
  })), [d] = H.useState(an(m, f));
@@ -2197,7 +2197,7 @@ function Ye(t, e, n) {
2197
2197
  }), H.useImperativeHandle(u, un(a(f)));
2198
2198
  const y = n;
2199
2199
  return /* @__PURE__ */ P(l.Provider, { value: f, children: n ? /* @__PURE__ */ P(y, { ...tr([...o, ...r, ...i], b), children: T }) : T });
2200
- }), g = (p) => {
2200
+ }), h = (p) => {
2201
2201
  const u = H.useContext(l);
2202
2202
  return H.useCallback(
2203
2203
  (T) => {
@@ -2215,7 +2215,7 @@ function Ye(t, e, n) {
2215
2215
  () => ot(T),
2216
2216
  () => ot(T)
2217
2217
  );
2218
- }, w = (p) => {
2218
+ }, C = (p) => {
2219
2219
  const T = H.useContext(l)[p], [b, f] = H.useState(an(ot, T));
2220
2220
  return pe(
2221
2221
  () => K(T, (d) => {
@@ -2223,15 +2223,15 @@ function Ye(t, e, n) {
2223
2223
  }),
2224
2224
  [T, b]
2225
2225
  ), b;
2226
- }, v = H.version.startsWith("18") ? I : w;
2226
+ }, v = H.version.startsWith("18") ? I : C;
2227
2227
  return {
2228
- Component: S,
2228
+ Component: x,
2229
2229
  useEmitter: (p, u) => {
2230
2230
  const b = H.useContext(l)[p];
2231
2231
  pe(() => K(b, u), [u, b]);
2232
2232
  },
2233
2233
  useEmitterValue: v,
2234
- usePublisher: g
2234
+ usePublisher: h
2235
2235
  };
2236
2236
  }
2237
2237
  const be = H.createContext(void 0), Jn = H.createContext(void 0), Qn = typeof document < "u" ? H.useLayoutEffect : H.useEffect;
@@ -2243,54 +2243,54 @@ function er(t) {
2243
2243
  }
2244
2244
  function to(t, e, n, o = Yt, r, s) {
2245
2245
  const i = H.useRef(null), l = H.useRef(null), c = H.useRef(null), a = H.useCallback(
2246
- (g) => {
2247
- let I, w, v;
2248
- const h = g.target;
2249
- if (er(h) || ke(h)) {
2250
- const u = ke(h) ? h : h.defaultView;
2251
- v = s ? u.scrollX : u.scrollY, I = s ? u.document.documentElement.scrollWidth : u.document.documentElement.scrollHeight, w = s ? u.innerWidth : u.innerHeight;
2246
+ (h) => {
2247
+ let I, C, v;
2248
+ const g = h.target;
2249
+ if (er(g) || ke(g)) {
2250
+ const u = ke(g) ? g : g.defaultView;
2251
+ v = s ? u.scrollX : u.scrollY, I = s ? u.document.documentElement.scrollWidth : u.document.documentElement.scrollHeight, C = s ? u.innerWidth : u.innerHeight;
2252
2252
  } else
2253
- v = s ? h.scrollLeft : h.scrollTop, I = s ? h.scrollWidth : h.scrollHeight, w = s ? h.offsetWidth : h.offsetHeight;
2253
+ v = s ? g.scrollLeft : g.scrollTop, I = s ? g.scrollWidth : g.scrollHeight, C = s ? g.offsetWidth : g.offsetHeight;
2254
2254
  const p = () => {
2255
2255
  t({
2256
2256
  scrollHeight: I,
2257
2257
  scrollTop: Math.max(v, 0),
2258
- viewportHeight: w
2258
+ viewportHeight: C
2259
2259
  });
2260
2260
  };
2261
- g.suppressFlushSync ? p() : ao.flushSync(p), l.current !== null && (v === l.current || v <= 0 || v === I - w) && (l.current = null, e(!0), c.current && (clearTimeout(c.current), c.current = null));
2261
+ h.suppressFlushSync ? p() : ao.flushSync(p), l.current !== null && (v === l.current || v <= 0 || v === I - C) && (l.current = null, e(!0), c.current && (clearTimeout(c.current), c.current = null));
2262
2262
  },
2263
2263
  [t, e, s]
2264
2264
  );
2265
2265
  H.useEffect(() => {
2266
- const g = r || i.current;
2267
- return o(r || i.current), a({ suppressFlushSync: !0, target: g }), g.addEventListener("scroll", a, { passive: !0 }), () => {
2268
- o(null), g.removeEventListener("scroll", a);
2266
+ const h = r || i.current;
2267
+ return o(r || i.current), a({ suppressFlushSync: !0, target: h }), h.addEventListener("scroll", a, { passive: !0 }), () => {
2268
+ o(null), h.removeEventListener("scroll", a);
2269
2269
  };
2270
2270
  }, [i, a, n, o, r]);
2271
- function m(g) {
2271
+ function m(h) {
2272
2272
  const I = i.current;
2273
2273
  if (!I || (s ? "offsetWidth" in I && I.offsetWidth === 0 : "offsetHeight" in I && I.offsetHeight === 0))
2274
2274
  return;
2275
- const w = g.behavior === "smooth";
2276
- let v, h, p;
2277
- ke(I) ? (h = Math.max(
2275
+ const C = h.behavior === "smooth";
2276
+ let v, g, p;
2277
+ ke(I) ? (g = Math.max(
2278
2278
  vt(I.document.documentElement, s ? "width" : "height"),
2279
2279
  s ? I.document.documentElement.scrollWidth : I.document.documentElement.scrollHeight
2280
- ), v = s ? I.innerWidth : I.innerHeight, p = s ? window.scrollX : window.scrollY) : (h = I[s ? "scrollWidth" : "scrollHeight"], v = vt(I, s ? "width" : "height"), p = I[s ? "scrollLeft" : "scrollTop"]);
2281
- const u = h - v;
2282
- if (g.top = Math.ceil(Math.max(Math.min(u, g.top), 0)), $n(v, h) || g.top === p) {
2283
- t({ scrollHeight: h, scrollTop: p, viewportHeight: v }), w && e(!0);
2280
+ ), v = s ? I.innerWidth : I.innerHeight, p = s ? window.scrollX : window.scrollY) : (g = I[s ? "scrollWidth" : "scrollHeight"], v = vt(I, s ? "width" : "height"), p = I[s ? "scrollLeft" : "scrollTop"]);
2281
+ const u = g - v;
2282
+ if (h.top = Math.ceil(Math.max(Math.min(u, h.top), 0)), $n(v, g) || h.top === p) {
2283
+ t({ scrollHeight: g, scrollTop: p, viewportHeight: v }), C && e(!0);
2284
2284
  return;
2285
2285
  }
2286
- w ? (l.current = g.top, c.current && clearTimeout(c.current), c.current = setTimeout(() => {
2286
+ C ? (l.current = h.top, c.current && clearTimeout(c.current), c.current = setTimeout(() => {
2287
2287
  c.current = null, l.current = null, e(!0);
2288
- }, 1e3)) : l.current = null, s && (g = { behavior: g.behavior, left: g.top }), I.scrollTo(g);
2288
+ }, 1e3)) : l.current = null, s && (h = { behavior: h.behavior, left: h.top }), I.scrollTo(h);
2289
2289
  }
2290
- function S(g) {
2291
- s && (g = { behavior: g.behavior, left: g.top }), i.current.scrollBy(g);
2290
+ function x(h) {
2291
+ s && (h = { behavior: h.behavior, left: h.top }), i.current.scrollBy(h);
2292
2292
  }
2293
- return { scrollByCallback: S, scrollerRef: i, scrollToCallback: m };
2293
+ return { scrollByCallback: x, scrollerRef: i, scrollToCallback: m };
2294
2294
  }
2295
2295
  const Fe = "-webkit-sticky", Tn = "sticky", Ze = Zn(() => {
2296
2296
  if (typeof document > "u")
@@ -2302,11 +2302,11 @@ function Xe(t) {
2302
2302
  return t;
2303
2303
  }
2304
2304
  const nr = /* @__PURE__ */ U(() => {
2305
- const t = C((l) => `Item ${l}`), e = C((l) => `Group ${l}`), n = C({}), o = C(Xe), r = C("div"), s = C(Yt), i = (l, c = null) => ct(
2306
- x(
2305
+ const t = w((l) => `Item ${l}`), e = w((l) => `Group ${l}`), n = w({}), o = w(Xe), r = w("div"), s = w(Yt), i = (l, c = null) => ct(
2306
+ S(
2307
2307
  n,
2308
2308
  E((a) => a[l]),
2309
- Z()
2309
+ Y()
2310
2310
  ),
2311
2311
  c
2312
2312
  );
@@ -2331,15 +2331,15 @@ const nr = /* @__PURE__ */ U(() => {
2331
2331
  ([t, e]) => ({ ...t, ...e }),
2332
2332
  X(Xn, nr)
2333
2333
  ), rr = ({ height: t }) => /* @__PURE__ */ P("div", { style: { height: t } }), sr = { overflowAnchor: "none", position: Ze(), zIndex: 1 }, eo = { overflowAnchor: "none" }, ir = { ...eo, display: "inline-block", height: "100%" }, Cn = /* @__PURE__ */ H.memo(function({ showTopList: e = !1 }) {
2334
- const n = M("listState"), o = gt("sizeRanges"), r = M("useWindowScroll"), s = M("customScrollParent"), i = gt("windowScrollContainerState"), l = gt("scrollContainerState"), c = s || r ? i : l, a = M("itemContent"), m = M("context"), S = M("groupContent"), g = M("trackItemSizes"), I = M("itemSize"), w = M("log"), v = gt("gap"), h = M("horizontalDirection"), { callbackRef: p } = On(
2334
+ const n = M("listState"), o = gt("sizeRanges"), r = M("useWindowScroll"), s = M("customScrollParent"), i = gt("windowScrollContainerState"), l = gt("scrollContainerState"), c = s || r ? i : l, a = M("itemContent"), m = M("context"), x = M("groupContent"), h = M("trackItemSizes"), I = M("itemSize"), C = M("log"), v = gt("gap"), g = M("horizontalDirection"), { callbackRef: p } = On(
2335
2335
  o,
2336
2336
  I,
2337
- g,
2337
+ h,
2338
2338
  e ? Yt : c,
2339
- w,
2339
+ C,
2340
2340
  v,
2341
2341
  s,
2342
- h,
2342
+ g,
2343
2343
  M("skipAnimationFrameInResizeObserver")
2344
2344
  ), [u, T] = H.useState(0);
2345
2345
  tn("deviation", (F) => {
@@ -2347,7 +2347,7 @@ const nr = /* @__PURE__ */ U(() => {
2347
2347
  });
2348
2348
  const b = M("EmptyPlaceholder"), f = M("ScrollSeekPlaceholder") || rr, d = M("ListComponent"), y = M("ItemComponent"), B = M("GroupComponent"), k = M("computeItemKey"), L = M("isSeeking"), z = M("groupIndices").length > 0, _ = M("alignToBottom"), J = M("initialItemFinalLocationReached"), nt = e ? {} : {
2349
2349
  boxSizing: "border-box",
2350
- ...h ? {
2350
+ ...g ? {
2351
2351
  display: "inline-block",
2352
2352
  height: "100%",
2353
2353
  marginLeft: u !== 0 ? u : _ ? "auto" : 0,
@@ -2361,19 +2361,19 @@ const nr = /* @__PURE__ */ U(() => {
2361
2361
  },
2362
2362
  ...J ? {} : { visibility: "hidden" }
2363
2363
  };
2364
- return !e && n.totalCount === 0 && b ? /* @__PURE__ */ P(b, { ...q(b, m) }) : /* @__PURE__ */ P(
2364
+ return !e && n.totalCount === 0 && b ? /* @__PURE__ */ P(b, { ...Z(b, m) }) : /* @__PURE__ */ P(
2365
2365
  d,
2366
2366
  {
2367
- ...q(d, m),
2367
+ ...Z(d, m),
2368
2368
  "data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list",
2369
2369
  ref: p,
2370
2370
  style: nt,
2371
2371
  children: (e ? n.topItems : n.items).map((F) => {
2372
- const Y = F.originalIndex, it = k(Y + n.firstItemIndex, F.data, m);
2372
+ const q = F.originalIndex, it = k(q + n.firstItemIndex, F.data, m);
2373
2373
  return L ? /* @__PURE__ */ _t(
2374
2374
  f,
2375
2375
  {
2376
- ...q(f, m),
2376
+ ...Z(f, m),
2377
2377
  height: F.size,
2378
2378
  index: F.index,
2379
2379
  key: it,
@@ -2383,25 +2383,25 @@ const nr = /* @__PURE__ */ U(() => {
2383
2383
  ) : F.type === "group" ? /* @__PURE__ */ _t(
2384
2384
  B,
2385
2385
  {
2386
- ...q(B, m),
2387
- "data-index": Y,
2386
+ ...Z(B, m),
2387
+ "data-index": q,
2388
2388
  "data-item-index": F.index,
2389
2389
  "data-known-size": F.size,
2390
2390
  key: it,
2391
2391
  style: sr
2392
2392
  },
2393
- S(F.index, m)
2393
+ x(F.index, m)
2394
2394
  ) : /* @__PURE__ */ _t(
2395
2395
  y,
2396
2396
  {
2397
- ...q(y, m),
2397
+ ...Z(y, m),
2398
2398
  ...no(y, F.data),
2399
- "data-index": Y,
2399
+ "data-index": q,
2400
2400
  "data-item-group-index": F.groupIndex,
2401
2401
  "data-item-index": F.index,
2402
2402
  "data-known-size": F.size,
2403
2403
  key: it,
2404
- style: h ? ir : eo
2404
+ style: g ? ir : eo
2405
2405
  },
2406
2406
  z ? a(F.index, F.groupIndex, F.data, m) : a(F.index, F.data, m)
2407
2407
  );
@@ -2430,7 +2430,7 @@ const nr = /* @__PURE__ */ U(() => {
2430
2430
  width: "100%",
2431
2431
  zIndex: 1
2432
2432
  };
2433
- function q(t, e) {
2433
+ function Z(t, e) {
2434
2434
  if (typeof t != "string")
2435
2435
  return { context: e };
2436
2436
  }
@@ -2448,7 +2448,7 @@ const ar = /* @__PURE__ */ H.memo(function() {
2448
2448
  !0,
2449
2449
  M("skipAnimationFrameInResizeObserver")
2450
2450
  ), s = M("context");
2451
- return e ? /* @__PURE__ */ P(o, { ref: r, children: /* @__PURE__ */ P(e, { ...q(e, s) }) }) : null;
2451
+ return e ? /* @__PURE__ */ P(o, { ref: r, children: /* @__PURE__ */ P(e, { ...Z(e, s) }) }) : null;
2452
2452
  }), dr = /* @__PURE__ */ H.memo(function() {
2453
2453
  const e = M("FooterComponent"), n = gt("footerHeight"), o = M("HeaderFooterTag"), r = Ht(
2454
2454
  H.useMemo(
@@ -2460,55 +2460,55 @@ const ar = /* @__PURE__ */ H.memo(function() {
2460
2460
  !0,
2461
2461
  M("skipAnimationFrameInResizeObserver")
2462
2462
  ), s = M("context");
2463
- return e ? /* @__PURE__ */ P(o, { ref: r, children: /* @__PURE__ */ P(e, { ...q(e, s) }) }) : null;
2463
+ return e ? /* @__PURE__ */ P(o, { ref: r, children: /* @__PURE__ */ P(e, { ...Z(e, s) }) }) : null;
2464
2464
  });
2465
2465
  function Je({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2466
- return H.memo(function({ children: s, style: i, ...l }) {
2467
- const c = n("scrollContainerState"), a = e("ScrollerComponent"), m = n("smoothScrollTargetReached"), S = e("scrollerRef"), g = e("context"), I = e("horizontalDirection") || !1, { scrollByCallback: w, scrollerRef: v, scrollToCallback: h } = to(
2468
- c,
2469
- m,
2466
+ return H.memo(function({ children: s, style: i, context: l, ...c }) {
2467
+ const a = n("scrollContainerState"), m = e("ScrollerComponent"), x = n("smoothScrollTargetReached"), h = e("scrollerRef"), I = e("horizontalDirection") || !1, { scrollByCallback: C, scrollerRef: v, scrollToCallback: g } = to(
2470
2468
  a,
2471
- S,
2469
+ x,
2470
+ m,
2471
+ h,
2472
2472
  void 0,
2473
2473
  I
2474
2474
  );
2475
- return t("scrollTo", h), t("scrollBy", w), /* @__PURE__ */ P(
2476
- a,
2475
+ return t("scrollTo", g), t("scrollBy", C), /* @__PURE__ */ P(
2476
+ m,
2477
2477
  {
2478
2478
  "data-testid": "virtuoso-scroller",
2479
2479
  "data-virtuoso-scroller": !0,
2480
2480
  ref: v,
2481
2481
  style: { ...I ? cr : lr, ...i },
2482
2482
  tabIndex: 0,
2483
- ...l,
2484
- ...q(a, g),
2483
+ ...c,
2484
+ ...Z(m, l),
2485
2485
  children: s
2486
2486
  }
2487
2487
  );
2488
2488
  });
2489
2489
  }
2490
2490
  function Qe({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2491
- return H.memo(function({ children: s, style: i, ...l }) {
2492
- const c = n("windowScrollContainerState"), a = e("ScrollerComponent"), m = n("smoothScrollTargetReached"), S = e("totalListHeight"), g = e("deviation"), I = e("customScrollParent"), w = e("context"), v = H.useRef(null), h = e("scrollerRef"), { scrollByCallback: p, scrollerRef: u, scrollToCallback: T } = to(
2493
- c,
2494
- m,
2491
+ return H.memo(function({ children: s, style: i, context: l, ...c }) {
2492
+ const a = n("windowScrollContainerState"), m = e("ScrollerComponent"), x = n("smoothScrollTargetReached"), h = e("totalListHeight"), I = e("deviation"), C = e("customScrollParent"), v = H.useRef(null), g = e("scrollerRef"), { scrollByCallback: p, scrollerRef: u, scrollToCallback: T } = to(
2495
2493
  a,
2496
- h,
2497
- I
2494
+ x,
2495
+ m,
2496
+ g,
2497
+ C
2498
2498
  );
2499
2499
  return Qn(() => {
2500
2500
  var b;
2501
- return u.current = I || ((b = v.current) == null ? void 0 : b.ownerDocument.defaultView), () => {
2501
+ return u.current = C || ((b = v.current) == null ? void 0 : b.ownerDocument.defaultView), () => {
2502
2502
  u.current = null;
2503
2503
  };
2504
- }, [u, I]), t("windowScrollTo", T), t("scrollBy", p), /* @__PURE__ */ P(
2505
- a,
2504
+ }, [u, C]), t("windowScrollTo", T), t("scrollBy", p), /* @__PURE__ */ P(
2505
+ m,
2506
2506
  {
2507
2507
  ref: v,
2508
2508
  "data-virtuoso-scroller": !0,
2509
- style: { position: "relative", ...i, ...S !== 0 ? { height: S + g } : {} },
2510
- ...l,
2511
- ...q(a, w),
2509
+ style: { position: "relative", ...i, ...h !== 0 ? { height: h + I } : {} },
2510
+ ...c,
2511
+ ...Z(m, l),
2512
2512
  children: s
2513
2513
  }
2514
2514
  );
@@ -2533,12 +2533,12 @@ const fr = ({ children: t }) => {
2533
2533
  }, [e, n, o]), /* @__PURE__ */ P("div", { "data-viewport-type": "window", ref: s, style: Zt(i), children: t });
2534
2534
  }, pr = ({ children: t }) => {
2535
2535
  const e = M("TopItemListComponent") || "div", n = M("headerHeight"), o = { ...ur, marginTop: `${n}px` }, r = M("context");
2536
- return /* @__PURE__ */ P(e, { style: o, ...q(e, r), children: t });
2536
+ return /* @__PURE__ */ P(e, { style: o, ...Z(e, r), children: t });
2537
2537
  }, hr = /* @__PURE__ */ H.memo(function(e) {
2538
- const n = M("useWindowScroll"), o = M("topItemsIndexes").length > 0, r = M("customScrollParent"), s = M("context"), i = r || n ? Ir : gr, l = r || n ? mr : fr;
2539
- return /* @__PURE__ */ Nt(i, { ...e, ...q(i, s), children: [
2538
+ const n = M("useWindowScroll"), o = M("topItemsIndexes").length > 0, r = M("customScrollParent"), s = M("context");
2539
+ return /* @__PURE__ */ Nt(r || n ? Ir : gr, { ...e, context: s, children: [
2540
2540
  o && /* @__PURE__ */ P(pr, { children: /* @__PURE__ */ P(Cn, { showTopList: !0 }) }),
2541
- /* @__PURE__ */ Nt(l, { children: [
2541
+ /* @__PURE__ */ Nt(r || n ? mr : fr, { children: [
2542
2542
  /* @__PURE__ */ P(ar, {}),
2543
2543
  /* @__PURE__ */ P(Cn, {}),
2544
2544
  /* @__PURE__ */ P(dr, {})
@@ -2609,17 +2609,17 @@ const fr = ({ children: t }) => {
2609
2609
  },
2610
2610
  hr
2611
2611
  ), gr = /* @__PURE__ */ Je({ useEmitter: tn, useEmitterValue: M, usePublisher: gt }), Ir = /* @__PURE__ */ Qe({ useEmitter: tn, useEmitterValue: M, usePublisher: gt }), qr = oo, Yr = oo, Sr = /* @__PURE__ */ U(() => {
2612
- const t = C((a) => /* @__PURE__ */ Nt("td", { children: [
2612
+ const t = w((a) => /* @__PURE__ */ Nt("td", { children: [
2613
2613
  "Item $",
2614
2614
  a
2615
- ] })), e = C(null), n = C((a) => /* @__PURE__ */ Nt("td", { colSpan: 1e3, children: [
2615
+ ] })), e = w(null), n = w((a) => /* @__PURE__ */ Nt("td", { colSpan: 1e3, children: [
2616
2616
  "Group ",
2617
2617
  a
2618
- ] })), o = C(null), r = C(null), s = C({}), i = C(Xe), l = C(Yt), c = (a, m = null) => ct(
2619
- x(
2618
+ ] })), o = w(null), r = w(null), s = w({}), i = w(Xe), l = w(Yt), c = (a, m = null) => ct(
2619
+ S(
2620
2620
  s,
2621
- E((S) => S[a]),
2622
- Z()
2621
+ E((x) => x[a]),
2622
+ Y()
2623
2623
  ),
2624
2624
  m
2625
2625
  );
@@ -2647,67 +2647,67 @@ const fr = ({ children: t }) => {
2647
2647
  ([t, e]) => ({ ...t, ...e }),
2648
2648
  X(Xn, Sr)
2649
2649
  ), Tr = ({ height: t }) => /* @__PURE__ */ P("tr", { children: /* @__PURE__ */ P("td", { style: { height: t } }) }), Cr = ({ height: t }) => /* @__PURE__ */ P("tr", { children: /* @__PURE__ */ P("td", { style: { border: 0, height: t, padding: 0 } }) }), wr = { overflowAnchor: "none" }, wn = { position: Ze(), zIndex: 2, overflowAnchor: "none" }, vn = /* @__PURE__ */ H.memo(function({ showTopList: e = !1 }) {
2650
- const n = W("listState"), o = W("computeItemKey"), r = W("firstItemIndex"), s = W("context"), i = W("isSeeking"), l = W("fixedHeaderHeight"), c = W("groupIndices").length > 0, a = W("itemContent"), m = W("groupContent"), S = W("ScrollSeekPlaceholder") || Tr, g = W("GroupComponent"), I = W("TableRowComponent"), w = (e ? n.topItems : []).reduce((h, p, u) => (u === 0 ? h.push(p.size) : h.push(h[u - 1] + p.size), h), []), v = (e ? n.topItems : n.items).map((h) => {
2651
- const p = h.originalIndex, u = o(p + r, h.data, s), T = e ? p === 0 ? 0 : w[p - 1] : 0;
2650
+ const n = W("listState"), o = W("computeItemKey"), r = W("firstItemIndex"), s = W("context"), i = W("isSeeking"), l = W("fixedHeaderHeight"), c = W("groupIndices").length > 0, a = W("itemContent"), m = W("groupContent"), x = W("ScrollSeekPlaceholder") || Tr, h = W("GroupComponent"), I = W("TableRowComponent"), C = (e ? n.topItems : []).reduce((g, p, u) => (u === 0 ? g.push(p.size) : g.push(g[u - 1] + p.size), g), []), v = (e ? n.topItems : n.items).map((g) => {
2651
+ const p = g.originalIndex, u = o(p + r, g.data, s), T = e ? p === 0 ? 0 : C[p - 1] : 0;
2652
2652
  return i ? /* @__PURE__ */ _t(
2653
- S,
2653
+ x,
2654
2654
  {
2655
- ...q(S, s),
2656
- height: h.size,
2657
- index: h.index,
2655
+ ...Z(x, s),
2656
+ height: g.size,
2657
+ index: g.index,
2658
2658
  key: u,
2659
- type: h.type || "item"
2659
+ type: g.type || "item"
2660
2660
  }
2661
- ) : h.type === "group" ? /* @__PURE__ */ _t(
2662
- g,
2661
+ ) : g.type === "group" ? /* @__PURE__ */ _t(
2662
+ h,
2663
2663
  {
2664
- ...q(g, s),
2664
+ ...Z(h, s),
2665
2665
  "data-index": p,
2666
- "data-item-index": h.index,
2667
- "data-known-size": h.size,
2666
+ "data-item-index": g.index,
2667
+ "data-known-size": g.size,
2668
2668
  key: u,
2669
2669
  style: {
2670
2670
  ...wn,
2671
2671
  top: l
2672
2672
  }
2673
2673
  },
2674
- m(h.index, s)
2674
+ m(g.index, s)
2675
2675
  ) : /* @__PURE__ */ _t(
2676
2676
  I,
2677
2677
  {
2678
- ...q(I, s),
2679
- ...no(I, h.data),
2678
+ ...Z(I, s),
2679
+ ...no(I, g.data),
2680
2680
  "data-index": p,
2681
- "data-item-index": h.index,
2682
- "data-known-size": h.size,
2683
- "data-item-group-index": h.groupIndex,
2681
+ "data-item-index": g.index,
2682
+ "data-known-size": g.size,
2683
+ "data-item-group-index": g.groupIndex,
2684
2684
  key: u,
2685
2685
  style: e ? { ...wn, top: l + T } : wr
2686
2686
  },
2687
- c ? a(h.index, h.groupIndex, h.data, s) : a(h.index, h.data, s)
2687
+ c ? a(g.index, g.groupIndex, g.data, s) : a(g.index, g.data, s)
2688
2688
  );
2689
2689
  });
2690
2690
  return /* @__PURE__ */ P(uo, { children: v });
2691
2691
  }), vr = /* @__PURE__ */ H.memo(function() {
2692
- const e = W("listState"), n = W("topItemsIndexes").length > 0, o = Ct("sizeRanges"), r = W("useWindowScroll"), s = W("customScrollParent"), i = Ct("windowScrollContainerState"), l = Ct("scrollContainerState"), c = s || r ? i : l, a = W("trackItemSizes"), m = W("itemSize"), S = W("log"), { callbackRef: g, ref: I } = On(
2692
+ const e = W("listState"), n = W("topItemsIndexes").length > 0, o = Ct("sizeRanges"), r = W("useWindowScroll"), s = W("customScrollParent"), i = Ct("windowScrollContainerState"), l = Ct("scrollContainerState"), c = s || r ? i : l, a = W("trackItemSizes"), m = W("itemSize"), x = W("log"), { callbackRef: h, ref: I } = On(
2693
2693
  o,
2694
2694
  m,
2695
2695
  a,
2696
2696
  c,
2697
- S,
2697
+ x,
2698
2698
  void 0,
2699
2699
  s,
2700
2700
  !1,
2701
2701
  W("skipAnimationFrameInResizeObserver")
2702
- ), [w, v] = H.useState(0);
2702
+ ), [C, v] = H.useState(0);
2703
2703
  en("deviation", (z) => {
2704
- w !== z && (I.current.style.marginTop = `${z}px`, v(z));
2704
+ C !== z && (I.current.style.marginTop = `${z}px`, v(z));
2705
2705
  });
2706
- const h = W("EmptyPlaceholder"), p = W("FillerRow") || Cr, u = W("TableBodyComponent"), T = W("paddingTopAddition"), b = W("statefulTotalCount"), f = W("context");
2707
- if (b === 0 && h)
2708
- return /* @__PURE__ */ P(h, { ...q(h, f) });
2709
- const d = (n ? e.topItems : []).reduce((z, _) => z + _.size, 0), y = e.offsetTop + T + w - d, B = e.offsetBottom, k = y > 0 ? /* @__PURE__ */ P(p, { context: f, height: y }, "padding-top") : null, L = B > 0 ? /* @__PURE__ */ P(p, { context: f, height: B }, "padding-bottom") : null;
2710
- return /* @__PURE__ */ Nt(u, { "data-testid": "virtuoso-item-list", ref: g, ...q(u, f), children: [
2706
+ const g = W("EmptyPlaceholder"), p = W("FillerRow") || Cr, u = W("TableBodyComponent"), T = W("paddingTopAddition"), b = W("statefulTotalCount"), f = W("context");
2707
+ if (b === 0 && g)
2708
+ return /* @__PURE__ */ P(g, { ...Z(g, f) });
2709
+ const d = (n ? e.topItems : []).reduce((z, _) => z + _.size, 0), y = e.offsetTop + T + C - d, B = e.offsetBottom, k = y > 0 ? /* @__PURE__ */ P(p, { context: f, height: y }, "padding-top") : null, L = B > 0 ? /* @__PURE__ */ P(p, { context: f, height: B }, "padding-bottom") : null;
2710
+ return /* @__PURE__ */ Nt(u, { "data-testid": "virtuoso-item-list", ref: h, ...Z(u, f), children: [
2711
2711
  k,
2712
2712
  n && /* @__PURE__ */ P(vn, { showTopList: !0 }),
2713
2713
  /* @__PURE__ */ P(vn, {}),
@@ -2740,12 +2740,12 @@ const fr = ({ children: t }) => {
2740
2740
  H.useMemo(() => ne(s, (u) => vt(u, "height")), [s]),
2741
2741
  !0,
2742
2742
  W("skipAnimationFrameInResizeObserver")
2743
- ), S = o || n ? Er : Hr, g = o || n ? Rr : yr, I = W("TableComponent"), w = W("TableHeadComponent"), v = W("TableFooterComponent"), h = i ? /* @__PURE__ */ P(
2744
- w,
2743
+ ), x = o || n ? Er : Hr, h = o || n ? Rr : yr, I = W("TableComponent"), C = W("TableHeadComponent"), v = W("TableFooterComponent"), g = i ? /* @__PURE__ */ P(
2744
+ C,
2745
2745
  {
2746
2746
  ref: a,
2747
2747
  style: { position: "sticky", top: 0, zIndex: 2 },
2748
- ...q(w, c),
2748
+ ...Z(C, c),
2749
2749
  children: i()
2750
2750
  },
2751
2751
  "TableHead"
@@ -2754,13 +2754,13 @@ const fr = ({ children: t }) => {
2754
2754
  {
2755
2755
  ref: m,
2756
2756
  style: { bottom: 0, position: "sticky", zIndex: 1 },
2757
- ...q(v, c),
2757
+ ...Z(v, c),
2758
2758
  children: l()
2759
2759
  },
2760
2760
  "TableFoot"
2761
2761
  ) : null;
2762
- return /* @__PURE__ */ P(S, { ...e, ...q(S, c), children: /* @__PURE__ */ P(g, { children: /* @__PURE__ */ Nt(I, { style: { borderSpacing: 0, overflowAnchor: "none" }, ...q(I, c), children: [
2763
- h,
2762
+ return /* @__PURE__ */ P(x, { ...e, ...Z(x, c), children: /* @__PURE__ */ P(h, { children: /* @__PURE__ */ Nt(I, { style: { borderSpacing: 0, overflowAnchor: "none" }, ...Z(I, c), children: [
2763
+ g,
2764
2764
  /* @__PURE__ */ P(vr, {}, "TableBody"),
2765
2765
  p
2766
2766
  ] }) }) });
@@ -2860,17 +2860,17 @@ function Fr(t, e) {
2860
2860
  const Or = /* @__PURE__ */ U(
2861
2861
  ([
2862
2862
  { increaseViewportBy: t, listBoundary: e, overscan: n, visibleRange: o },
2863
- { footerHeight: r, headerHeight: s, scrollBy: i, scrollContainerState: l, scrollTo: c, scrollTop: a, smoothScrollTargetReached: m, viewportHeight: S },
2864
- g,
2863
+ { footerHeight: r, headerHeight: s, scrollBy: i, scrollContainerState: l, scrollTo: c, scrollTop: a, smoothScrollTargetReached: m, viewportHeight: x },
2864
+ h,
2865
2865
  I,
2866
- { didMount: w, propsReady: v },
2867
- { customScrollParent: h, useWindowScroll: p, windowScrollContainerState: u, windowScrollTo: T, windowViewportRect: b },
2866
+ { didMount: C, propsReady: v },
2867
+ { customScrollParent: g, useWindowScroll: p, windowScrollContainerState: u, windowScrollTo: T, windowViewportRect: b },
2868
2868
  f
2869
2869
  ]) => {
2870
- const d = C(0), y = C(0), B = C(yn), k = C({ height: 0, width: 0 }), L = C({ height: 0, width: 0 }), z = $(), _ = $(), J = C(0), nt = C(null), F = C({ column: 0, row: 0 }), Y = $(), it = $(), dt = C(!1), St = C(0), ft = C(!0), ut = C(!1), At = C(!1);
2870
+ const d = w(0), y = w(0), B = w(yn), k = w({ height: 0, width: 0 }), L = w({ height: 0, width: 0 }), z = $(), _ = $(), J = w(0), nt = w(null), F = w({ column: 0, row: 0 }), q = $(), it = $(), dt = w(!1), St = w(0), ft = w(!0), ut = w(!1), At = w(!1);
2871
2871
  K(
2872
- x(
2873
- w,
2872
+ S(
2873
+ C,
2874
2874
  N(St),
2875
2875
  A(([R, D]) => !!D)
2876
2876
  ),
@@ -2878,43 +2878,43 @@ const Or = /* @__PURE__ */ U(
2878
2878
  G(ft, !1);
2879
2879
  }
2880
2880
  ), K(
2881
- x(
2882
- rt(w, ft, L, k, St, ut),
2881
+ S(
2882
+ rt(C, ft, L, k, St, ut),
2883
2883
  A(([R, D, Q, lt, , tt]) => R && !D && Q.height !== 0 && lt.height !== 0 && !tt)
2884
2884
  ),
2885
2885
  ([, , , , R]) => {
2886
2886
  G(ut, !0), Ue(1, () => {
2887
2887
  G(z, R);
2888
- }), Tt(x(a), () => {
2888
+ }), Tt(S(a), () => {
2889
2889
  G(e, [0, 0]), G(ft, !0);
2890
2890
  });
2891
2891
  }
2892
2892
  ), O(
2893
- x(
2893
+ S(
2894
2894
  it,
2895
2895
  A((R) => R != null && R.scrollTop > 0),
2896
2896
  Rt(0)
2897
2897
  ),
2898
2898
  y
2899
2899
  ), K(
2900
- x(
2901
- w,
2900
+ S(
2901
+ C,
2902
2902
  N(it),
2903
2903
  A(([, R]) => R != null)
2904
2904
  ),
2905
2905
  ([, R]) => {
2906
- R && (G(k, R.viewport), G(L, R.item), G(F, R.gap), R.scrollTop > 0 && (G(dt, !0), Tt(x(a, Dt(1)), (D) => {
2906
+ R && (G(k, R.viewport), G(L, R.item), G(F, R.gap), R.scrollTop > 0 && (G(dt, !0), Tt(S(a, Dt(1)), (D) => {
2907
2907
  G(dt, !1);
2908
2908
  }), G(c, { top: R.scrollTop })));
2909
2909
  }
2910
2910
  ), O(
2911
- x(
2911
+ S(
2912
2912
  k,
2913
2913
  E(({ height: R }) => R)
2914
2914
  ),
2915
- S
2915
+ x
2916
2916
  ), O(
2917
- x(
2917
+ S(
2918
2918
  rt(
2919
2919
  V(k, he),
2920
2920
  V(L, he),
@@ -2928,9 +2928,9 @@ const Or = /* @__PURE__ */ U(
2928
2928
  viewport: R
2929
2929
  }))
2930
2930
  ),
2931
- Y
2931
+ q
2932
2932
  ), O(
2933
- x(
2933
+ S(
2934
2934
  rt(
2935
2935
  V(d),
2936
2936
  o,
@@ -2974,27 +2974,27 @@ const Or = /* @__PURE__ */ U(
2974
2974
  ),
2975
2975
  B
2976
2976
  ), O(
2977
- x(
2977
+ S(
2978
2978
  nt,
2979
2979
  A((R) => R !== null),
2980
2980
  E((R) => R.length)
2981
2981
  ),
2982
2982
  d
2983
2983
  ), O(
2984
- x(
2984
+ S(
2985
2985
  rt(k, L, B, F),
2986
2986
  A(([R, D, { items: Q }]) => Q.length > 0 && D.height !== 0 && R.height !== 0),
2987
2987
  E(([R, D, { items: Q }, lt]) => {
2988
2988
  const { bottom: tt, top: Ft } = En(R, lt, D, Q);
2989
2989
  return [Ft, tt];
2990
2990
  }),
2991
- Z(se)
2991
+ Y(se)
2992
2992
  ),
2993
2993
  e
2994
2994
  );
2995
- const xt = C(!1);
2995
+ const xt = w(!1);
2996
2996
  O(
2997
- x(
2997
+ S(
2998
2998
  a,
2999
2999
  N(xt),
3000
3000
  E(([R, D]) => D || R !== 0)
@@ -3002,7 +3002,7 @@ const Or = /* @__PURE__ */ U(
3002
3002
  xt
3003
3003
  );
3004
3004
  const Xt = ht(
3005
- x(
3005
+ S(
3006
3006
  rt(B, d),
3007
3007
  A(([{ items: R }]) => R.length > 0),
3008
3008
  N(xt),
@@ -3011,17 +3011,17 @@ const Or = /* @__PURE__ */ U(
3011
3011
  return (Q || R.bottom > 0 && R.itemHeight > 0 && R.offsetBottom === 0 && R.items.length === D) && tt;
3012
3012
  }),
3013
3013
  E(([[, R]]) => R - 1),
3014
- Z()
3014
+ Y()
3015
3015
  )
3016
3016
  ), Mt = ht(
3017
- x(
3017
+ S(
3018
3018
  V(B),
3019
3019
  A(({ items: R }) => R.length > 0 && R[0].index === 0),
3020
3020
  Rt(0),
3021
- Z()
3021
+ Y()
3022
3022
  )
3023
3023
  ), yt = ht(
3024
- x(
3024
+ S(
3025
3025
  V(B),
3026
3026
  N(dt),
3027
3027
  A(([{ items: R }, D]) => R.length > 0 && !D),
@@ -3029,12 +3029,12 @@ const Or = /* @__PURE__ */ U(
3029
3029
  endIndex: R[R.length - 1].index,
3030
3030
  startIndex: R[0].index
3031
3031
  })),
3032
- Z(Mn),
3032
+ Y(Mn),
3033
3033
  kt(0)
3034
3034
  )
3035
3035
  );
3036
3036
  O(yt, I.scrollSeekRangeChanged), O(
3037
- x(
3037
+ S(
3038
3038
  z,
3039
3039
  N(k, L, d, F),
3040
3040
  E(([R, D, Q, lt, tt]) => {
@@ -3048,20 +3048,20 @@ const Or = /* @__PURE__ */ U(
3048
3048
  c
3049
3049
  );
3050
3050
  const Bt = ct(
3051
- x(
3051
+ S(
3052
3052
  B,
3053
3053
  E((R) => R.offsetBottom + R.bottom)
3054
3054
  ),
3055
3055
  0
3056
3056
  );
3057
3057
  return O(
3058
- x(
3058
+ S(
3059
3059
  b,
3060
3060
  E((R) => ({ height: R.visibleHeight, width: R.visibleWidth }))
3061
3061
  ),
3062
3062
  k
3063
3063
  ), {
3064
- customScrollParent: h,
3064
+ customScrollParent: g,
3065
3065
  // input
3066
3066
  data: nt,
3067
3067
  deviation: J,
@@ -3092,12 +3092,12 @@ const Or = /* @__PURE__ */ U(
3092
3092
  horizontalDirection: At,
3093
3093
  initialTopMostItemIndex: St,
3094
3094
  totalListHeight: Bt,
3095
- ...g,
3095
+ ...h,
3096
3096
  endReached: Xt,
3097
3097
  propsReady: v,
3098
3098
  rangeChanged: yt,
3099
3099
  startReached: Mt,
3100
- stateChanged: Y,
3100
+ stateChanged: q,
3101
3101
  stateRestoreInProgress: dt,
3102
3102
  ...f
3103
3103
  };
@@ -3119,14 +3119,14 @@ function Me(t, e, n, o) {
3119
3119
  return i > 0 ? i + e.row : i;
3120
3120
  }
3121
3121
  const Lr = /* @__PURE__ */ U(() => {
3122
- const t = C((S) => `Item ${S}`), e = C({}), n = C(null), o = C("virtuoso-grid-item"), r = C("virtuoso-grid-list"), s = C(Xe), i = C("div"), l = C(Yt), c = (S, g = null) => ct(
3123
- x(
3122
+ const t = w((x) => `Item ${x}`), e = w({}), n = w(null), o = w("virtuoso-grid-item"), r = w("virtuoso-grid-list"), s = w(Xe), i = w("div"), l = w(Yt), c = (x, h = null) => ct(
3123
+ S(
3124
3124
  e,
3125
- E((I) => I[S]),
3126
- Z()
3125
+ E((I) => I[x]),
3126
+ Y()
3127
3127
  ),
3128
- g
3129
- ), a = C(!1), m = C(!1);
3128
+ h
3129
+ ), a = w(!1), m = w(!1);
3130
3130
  return O(V(m), a), {
3131
3131
  components: e,
3132
3132
  computeItemKey: s,
@@ -3149,7 +3149,7 @@ const Lr = /* @__PURE__ */ U(() => {
3149
3149
  ([t, e]) => ({ ...t, ...e }),
3150
3150
  X(Or, Lr)
3151
3151
  ), Vr = /* @__PURE__ */ H.memo(function() {
3152
- const e = et("gridState"), n = et("listClassName"), o = et("itemClassName"), r = et("itemContent"), s = et("computeItemKey"), i = et("isSeeking"), l = It("scrollHeight"), c = et("ItemComponent"), a = et("ListComponent"), m = et("ScrollSeekPlaceholder"), S = et("context"), g = It("itemDimensions"), I = It("gap"), w = et("log"), v = et("stateRestoreInProgress"), h = It("reportReadyState"), p = Ht(
3152
+ const e = et("gridState"), n = et("listClassName"), o = et("itemClassName"), r = et("itemContent"), s = et("computeItemKey"), i = et("isSeeking"), l = It("scrollHeight"), c = et("ItemComponent"), a = et("ListComponent"), m = et("ScrollSeekPlaceholder"), x = et("context"), h = It("itemDimensions"), I = It("gap"), C = et("log"), v = et("stateRestoreInProgress"), g = It("reportReadyState"), p = Ht(
3153
3153
  H.useMemo(
3154
3154
  () => (u) => {
3155
3155
  const T = u.parentElement.parentElement.scrollHeight;
@@ -3157,34 +3157,34 @@ const Lr = /* @__PURE__ */ U(() => {
3157
3157
  const b = u.firstChild;
3158
3158
  if (b) {
3159
3159
  const { height: f, width: d } = b.getBoundingClientRect();
3160
- g({ height: f, width: d });
3160
+ h({ height: f, width: d });
3161
3161
  }
3162
3162
  I({
3163
- column: Bn("column-gap", getComputedStyle(u).columnGap, w),
3164
- row: Bn("row-gap", getComputedStyle(u).rowGap, w)
3163
+ column: Bn("column-gap", getComputedStyle(u).columnGap, C),
3164
+ row: Bn("row-gap", getComputedStyle(u).rowGap, C)
3165
3165
  });
3166
3166
  },
3167
- [l, g, I, w]
3167
+ [l, h, I, C]
3168
3168
  ),
3169
3169
  !0,
3170
3170
  !1
3171
3171
  );
3172
3172
  return Qn(() => {
3173
- e.itemHeight > 0 && e.itemWidth > 0 && h(!0);
3173
+ e.itemHeight > 0 && e.itemWidth > 0 && g(!0);
3174
3174
  }, [e]), v ? null : /* @__PURE__ */ P(
3175
3175
  a,
3176
3176
  {
3177
3177
  className: n,
3178
3178
  ref: p,
3179
- ...q(a, S),
3179
+ ...Z(a, x),
3180
3180
  "data-testid": "virtuoso-item-list",
3181
3181
  style: { paddingBottom: e.offsetBottom, paddingTop: e.offsetTop },
3182
3182
  children: e.items.map((u) => {
3183
- const T = s(u.index, u.data, S);
3183
+ const T = s(u.index, u.data, x);
3184
3184
  return i ? /* @__PURE__ */ P(
3185
3185
  m,
3186
3186
  {
3187
- ...q(m, S),
3187
+ ...Z(m, x),
3188
3188
  height: e.itemHeight,
3189
3189
  index: u.index,
3190
3190
  width: e.itemWidth
@@ -3193,12 +3193,12 @@ const Lr = /* @__PURE__ */ U(() => {
3193
3193
  ) : /* @__PURE__ */ _t(
3194
3194
  c,
3195
3195
  {
3196
- ...q(c, S),
3196
+ ...Z(c, x),
3197
3197
  className: o,
3198
3198
  "data-index": u.index,
3199
3199
  key: T
3200
3200
  },
3201
- r(u.index, u.data, S)
3201
+ r(u.index, u.data, x)
3202
3202
  );
3203
3203
  })
3204
3204
  }
@@ -3214,7 +3214,7 @@ const Lr = /* @__PURE__ */ U(() => {
3214
3214
  !0,
3215
3215
  !1
3216
3216
  ), s = et("context");
3217
- return e ? /* @__PURE__ */ P(o, { ref: r, children: /* @__PURE__ */ P(e, { ...q(e, s) }) }) : null;
3217
+ return e ? /* @__PURE__ */ P(o, { ref: r, children: /* @__PURE__ */ P(e, { ...Z(e, s) }) }) : null;
3218
3218
  }), Ar = H.memo(function() {
3219
3219
  const e = et("FooterComponent"), n = It("footerHeight"), o = et("headerFooterTag"), r = Ht(
3220
3220
  H.useMemo(
@@ -3226,7 +3226,7 @@ const Lr = /* @__PURE__ */ U(() => {
3226
3226
  !0,
3227
3227
  !1
3228
3228
  ), s = et("context");
3229
- return e ? /* @__PURE__ */ P(o, { ref: r, children: /* @__PURE__ */ P(e, { ...q(e, s) }) }) : null;
3229
+ return e ? /* @__PURE__ */ P(o, { ref: r, children: /* @__PURE__ */ P(e, { ...Z(e, s) }) }) : null;
3230
3230
  }), Mr = ({ children: t }) => {
3231
3231
  const e = H.useContext(Jn), n = It("itemDimensions"), o = It("viewportDimensions"), r = Ht(
3232
3232
  H.useMemo(
@@ -3248,7 +3248,7 @@ const Lr = /* @__PURE__ */ U(() => {
3248
3248
  }, [e, n, o]), /* @__PURE__ */ P("div", { ref: s, style: Zt(!1), children: t });
3249
3249
  }, Gr = /* @__PURE__ */ H.memo(function({ ...e }) {
3250
3250
  const n = et("useWindowScroll"), o = et("customScrollParent"), r = o || n ? Dr : Nr, s = o || n ? Wr : Mr, i = et("context");
3251
- return /* @__PURE__ */ P(r, { ...e, ...q(r, i), children: /* @__PURE__ */ Nt(s, { children: [
3251
+ return /* @__PURE__ */ P(r, { ...e, ...Z(r, i), children: /* @__PURE__ */ Nt(s, { children: [
3252
3252
  /* @__PURE__ */ P(Pr, {}),
3253
3253
  /* @__PURE__ */ P(Vr, {}),
3254
3254
  /* @__PURE__ */ P(Ar, {})