@cagatayfdn/flora-components 0.0.151 → 0.0.153

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.
@@ -4,7 +4,7 @@ import { c as wt } from "./index-BHf7G3IG.js";
4
4
  import "./hooks/useAauth.js";
5
5
  import Wo from "./hooks/useNiceModal.js";
6
6
  import "./components/Drawer/Provider.js";
7
- import Se from "./components/Icon/index.js";
7
+ import ye from "./components/Icon/index.js";
8
8
  import { N as No } from "./index-H7XbDVmH.js";
9
9
  import "./assets/images/500_error_2x.gif";
10
10
  import et, { t as pt } from "./locales/i18n.js";
@@ -33,9 +33,9 @@ import { S as Hn } from "./Select-nhp2PiJK.js";
33
33
  import kn from "./components/StatusTag/StatusTag.js";
34
34
  import "./components/Switch/Switch.js";
35
35
  import "./components/Textarea/Textarea.js";
36
- import { AppearanceButton as ho, NotificationAppearanceType as _n } from "./enums/appearance.js";
36
+ import { AppearanceButton as ho, NotificationAppearanceType as Rn } from "./enums/appearance.js";
37
37
  import go from "./components/Button/Button.js";
38
- import { Notification as Rn } from "./components/Notification/Notification.js";
38
+ import { Notification as _n } from "./components/Notification/Notification.js";
39
39
  import './ReactToastify.css';import './ErrorLogModal.css';/* empty css */
40
40
  import { u as En } from "./useTranslation-CnCPcxVj.js";
41
41
  import { T as zn } from "./Trans-B4ILpbwK.js";
@@ -44,7 +44,7 @@ const Bn = "_realTimeLogModalStyle_ew0yg_1", Ln = "_modalLeft_ew0yg_30", jn = "_
44
44
  modalLeft: Ln,
45
45
  buttonGroup: jn,
46
46
  iosIcon: Mn
47
- }, _t = 0, Fe = 1, nt = 2, Oo = 4;
47
+ }, Rt = 0, Ge = 1, nt = 2, Oo = 4;
48
48
  function po(e) {
49
49
  return () => e;
50
50
  }
@@ -70,7 +70,7 @@ function An(...e) {
70
70
  }
71
71
  function mt() {
72
72
  }
73
- function Rt(e, t) {
73
+ function _t(e, t) {
74
74
  return t(e), e;
75
75
  }
76
76
  function On(e, t) {
@@ -79,11 +79,11 @@ function On(e, t) {
79
79
  function se(...e) {
80
80
  return e;
81
81
  }
82
- function J(e, t) {
83
- return e(Fe, t);
82
+ function Q(e, t) {
83
+ return e(Ge, t);
84
84
  }
85
- function G(e, t) {
86
- e(_t, t);
85
+ function F(e, t) {
86
+ e(Rt, t);
87
87
  }
88
88
  function Kt(e) {
89
89
  e(nt);
@@ -92,10 +92,10 @@ function ce(e) {
92
92
  return e(Oo);
93
93
  }
94
94
  function M(e, t) {
95
- return J(e, Nn(t, _t));
95
+ return Q(e, Nn(t, Rt));
96
96
  }
97
- function je(e, t) {
98
- const o = e(Fe, (n) => {
97
+ function Me(e, t) {
98
+ const o = e(Ge, (n) => {
99
99
  o(), t(n);
100
100
  });
101
101
  return o;
@@ -117,7 +117,7 @@ function ie(e = Do) {
117
117
  e(t, n) || (t = n, o(n));
118
118
  };
119
119
  }
120
- function P(e) {
120
+ function D(e) {
121
121
  return (t) => (o) => {
122
122
  e(o) && t(o);
123
123
  };
@@ -137,8 +137,8 @@ function x(e, ...t) {
137
137
  case nt:
138
138
  Kt(e);
139
139
  return;
140
- case Fe:
141
- return J(e, o(r));
140
+ case Ge:
141
+ return Q(e, o(r));
142
142
  }
143
143
  };
144
144
  }
@@ -160,13 +160,13 @@ function De(e) {
160
160
  }, e));
161
161
  };
162
162
  }
163
- function F(...e) {
163
+ function G(...e) {
164
164
  const t = new Array(e.length);
165
165
  let o = 0, n = null;
166
166
  const r = Math.pow(2, e.length) - 1;
167
167
  return e.forEach((i, s) => {
168
168
  const l = Math.pow(2, s);
169
- J(i, (c) => {
169
+ Q(i, (c) => {
170
170
  const a = o;
171
171
  o = o | l, t[s] = c, a !== r && o === r && n && (n(), n = null);
172
172
  });
@@ -185,8 +185,8 @@ function Dn(e) {
185
185
  const n = () => t == null ? void 0 : t();
186
186
  return function(r, i) {
187
187
  switch (r) {
188
- case Fe:
189
- return i ? o === i ? void 0 : (n(), o = i, t = J(e, i), t) : (n(), mt);
188
+ case Ge:
189
+ return i ? o === i ? void 0 : (n(), o = i, t = Q(e, i), t) : (n(), mt);
190
190
  case nt:
191
191
  n(), o = null;
192
192
  return;
@@ -198,10 +198,10 @@ function H(e) {
198
198
  const o = U();
199
199
  return (n, r) => {
200
200
  switch (n) {
201
- case _t:
201
+ case Rt:
202
202
  t = r;
203
203
  break;
204
- case Fe: {
204
+ case Ge: {
205
205
  r(t);
206
206
  break;
207
207
  }
@@ -212,13 +212,13 @@ function H(e) {
212
212
  };
213
213
  }
214
214
  function pe(e, t) {
215
- return Rt(H(t), (o) => M(e, o));
215
+ return _t(H(t), (o) => M(e, o));
216
216
  }
217
217
  function U() {
218
218
  const e = [];
219
219
  return (t, o) => {
220
220
  switch (t) {
221
- case _t:
221
+ case Rt:
222
222
  e.slice().forEach((n) => {
223
223
  n(o);
224
224
  });
@@ -226,7 +226,7 @@ function U() {
226
226
  case nt:
227
227
  e.splice(0, e.length);
228
228
  return;
229
- case Fe:
229
+ case Ge:
230
230
  return e.push(o), () => {
231
231
  const n = e.indexOf(o);
232
232
  n > -1 && e.splice(n, 1);
@@ -234,10 +234,10 @@ function U() {
234
234
  }
235
235
  };
236
236
  }
237
- function be(e) {
238
- return Rt(U(), (t) => M(e, t));
237
+ function He(e) {
238
+ return _t(U(), (t) => M(e, t));
239
239
  }
240
- function Q(e, t = [], { singleton: o } = { singleton: !0 }) {
240
+ function ee(e, t = [], { singleton: o } = { singleton: !0 }) {
241
241
  return {
242
242
  constructor: e,
243
243
  dependencies: t,
@@ -246,7 +246,7 @@ function Q(e, t = [], { singleton: o } = { singleton: !0 }) {
246
246
  };
247
247
  }
248
248
  const Vn = () => Symbol();
249
- function Gn(e) {
249
+ function Fn(e) {
250
250
  const t = /* @__PURE__ */ new Map(), o = ({ constructor: n, dependencies: r, id: i, singleton: s }) => {
251
251
  if (s && t.has(i))
252
252
  return t.get(i);
@@ -255,14 +255,14 @@ function Gn(e) {
255
255
  };
256
256
  return o(e);
257
257
  }
258
- function ae(...e) {
258
+ function ue(...e) {
259
259
  const t = U(), o = new Array(e.length);
260
260
  let n = 0;
261
261
  const r = Math.pow(2, e.length) - 1;
262
262
  return e.forEach((i, s) => {
263
263
  const l = Math.pow(2, s);
264
- J(i, (c) => {
265
- o[s] = c, n = n | l, n === r && G(t, o);
264
+ Q(i, (c) => {
265
+ o[s] = c, n = n | l, n === r && F(t, o);
266
266
  });
267
267
  }), function(i, s) {
268
268
  switch (i) {
@@ -270,12 +270,12 @@ function ae(...e) {
270
270
  Kt(t);
271
271
  return;
272
272
  }
273
- case Fe:
274
- return n === r && s(o), J(t, s);
273
+ case Ge:
274
+ return n === r && s(o), Q(t, s);
275
275
  }
276
276
  };
277
277
  }
278
- function A(e, t = Do) {
278
+ function O(e, t = Do) {
279
279
  return x(e, ie(t));
280
280
  }
281
281
  function Dt(...e) {
@@ -283,18 +283,18 @@ function Dt(...e) {
283
283
  switch (t) {
284
284
  case nt:
285
285
  return;
286
- case Fe:
287
- return An(...e.map((n) => J(n, o)));
286
+ case Ge:
287
+ return An(...e.map((n) => Q(n, o)));
288
288
  }
289
289
  };
290
290
  }
291
291
  var Ie = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(Ie || {});
292
- const Fn = {
292
+ const Gn = {
293
293
  0: "debug",
294
294
  3: "error",
295
295
  1: "log",
296
296
  2: "warn"
297
- }, $n = () => typeof globalThis > "u" ? window : globalThis, $e = Q(
297
+ }, $n = () => typeof globalThis > "u" ? window : globalThis, $e = ee(
298
298
  () => {
299
299
  const e = H(
300
300
  3
@@ -304,7 +304,7 @@ const Fn = {
304
304
  log: H((t, o, n = 1) => {
305
305
  var r;
306
306
  const i = (r = $n().VIRTUOSO_LOG_LEVEL) != null ? r : ce(e);
307
- n >= i && console[Fn[n]](
307
+ n >= i && console[Gn[n]](
308
308
  "%creact-virtuoso: %c%s %o",
309
309
  "color: #0253b3; font-weight: bold",
310
310
  "color: initial",
@@ -422,7 +422,7 @@ function Vo(e, t, o) {
422
422
  }
423
423
  }, [l, t, s]), i;
424
424
  }
425
- const xe = Q(
425
+ const xe = ee(
426
426
  () => {
427
427
  const e = U(), t = U(), o = H(0), n = U(), r = H(0), i = U(), s = U(), l = H(0), c = H(0), a = H(0), h = H(0), w = U(), g = U(), v = H(!1), S = H(!1), k = H(!1);
428
428
  return M(
@@ -462,7 +462,7 @@ const xe = Q(
462
462
  [],
463
463
  { singleton: !0 }
464
464
  ), lt = { lvl: 0 };
465
- function Go(e, t) {
465
+ function Fo(e, t) {
466
466
  const o = e.length;
467
467
  if (o === 0)
468
468
  return [];
@@ -481,19 +481,19 @@ function ct(e, t) {
481
481
  if (!ne(e))
482
482
  return t === e.k ? e.v : t < e.k ? ct(e.l, t) : ct(e.r, t);
483
483
  }
484
- function Me(e, t, o = "k") {
484
+ function We(e, t, o = "k") {
485
485
  if (ne(e))
486
486
  return [-1 / 0, void 0];
487
487
  if (Number(e[o]) === t)
488
488
  return [e.k, e.v];
489
489
  if (Number(e[o]) < t) {
490
- const n = Me(e.r, t, o);
490
+ const n = We(e.r, t, o);
491
491
  return n[0] === -1 / 0 ? [e.k, e.v] : n;
492
492
  }
493
- return Me(e.l, t, o);
493
+ return We(e.l, t, o);
494
494
  }
495
- function ye(e, t, o) {
496
- return ne(e) ? qo(t, o, 1) : t === e.k ? de(e, { k: t, v: o }) : t < e.k ? To(de(e, { l: ye(e.l, t, o) })) : To(de(e, { r: ye(e.r, t, o) }));
495
+ function be(e, t, o) {
496
+ return ne(e) ? qo(t, o, 1) : t === e.k ? me(e, { k: t, v: o }) : t < e.k ? To(me(e, { l: be(e.l, t, o) })) : To(me(e, { r: be(e.r, t, o) }));
497
497
  }
498
498
  function ot() {
499
499
  return lt;
@@ -501,8 +501,8 @@ function ot() {
501
501
  function Et(e, t, o) {
502
502
  if (ne(e))
503
503
  return [];
504
- const n = Me(e, t)[0];
505
- return Kn(Gt(e, n, o));
504
+ const n = We(e, t)[0];
505
+ return Kn(Ft(e, n, o));
506
506
  }
507
507
  function Vt(e, t) {
508
508
  if (ne(e))
@@ -515,20 +515,20 @@ function Vt(e, t) {
515
515
  return n;
516
516
  {
517
517
  const [i, s] = $o(n);
518
- return Ct(de(e, { k: i, l: Fo(n), v: s }));
518
+ return Ct(me(e, { k: i, l: Go(n), v: s }));
519
519
  }
520
520
  } else
521
- return t < o ? Ct(de(e, { l: Vt(n, t) })) : Ct(de(e, { r: Vt(r, t) }));
521
+ return t < o ? Ct(me(e, { l: Vt(n, t) })) : Ct(me(e, { r: Vt(r, t) }));
522
522
  }
523
523
  function Ke(e) {
524
524
  return ne(e) ? [] : [...Ke(e.l), { k: e.k, v: e.v }, ...Ke(e.r)];
525
525
  }
526
- function Gt(e, t, o) {
526
+ function Ft(e, t, o) {
527
527
  if (ne(e))
528
528
  return [];
529
529
  const { k: n, l: r, r: i, v: s } = e;
530
530
  let l = [];
531
- return n > t && (l = l.concat(Gt(r, t, o))), n >= t && n <= o && l.push({ k: n, v: s }), n <= o && (l = l.concat(Gt(i, t, o))), l;
531
+ return n > t && (l = l.concat(Ft(r, t, o))), n >= t && n <= o && l.push({ k: n, v: s }), n <= o && (l = l.concat(Ft(i, t, o))), l;
532
532
  }
533
533
  function Ct(e) {
534
534
  const { l: t, lvl: o, r: n } = e;
@@ -536,12 +536,12 @@ function Ct(e) {
536
536
  return e;
537
537
  if (o > n.lvl + 1) {
538
538
  if (Mt(t))
539
- return Uo(de(e, { lvl: o - 1 }));
539
+ return Uo(me(e, { lvl: o - 1 }));
540
540
  if (!ne(t) && !ne(t.r))
541
- return de(t.r, {
542
- l: de(t, { r: t.r.l }),
541
+ return me(t.r, {
542
+ l: me(t, { r: t.r.l }),
543
543
  lvl: o,
544
- r: de(e, {
544
+ r: me(e, {
545
545
  l: t.r.r,
546
546
  lvl: o - 1
547
547
  })
@@ -549,22 +549,22 @@ function Ct(e) {
549
549
  throw new Error("Unexpected empty nodes");
550
550
  } else {
551
551
  if (Mt(e))
552
- return Ft(de(e, { lvl: o - 1 }));
552
+ return Gt(me(e, { lvl: o - 1 }));
553
553
  if (!ne(n) && !ne(n.l)) {
554
554
  const r = n.l, i = Mt(r) ? n.lvl - 1 : n.lvl;
555
- return de(r, {
556
- l: de(e, {
555
+ return me(r, {
556
+ l: me(e, {
557
557
  lvl: o - 1,
558
558
  r: r.l
559
559
  }),
560
560
  lvl: r.lvl + 1,
561
- r: Ft(de(n, { l: r.r, lvl: i }))
561
+ r: Gt(me(n, { l: r.r, lvl: i }))
562
562
  });
563
563
  } else
564
564
  throw new Error("Unexpected empty nodes");
565
565
  }
566
566
  }
567
- function de(e, t) {
567
+ function me(e, t) {
568
568
  return qo(
569
569
  t.k !== void 0 ? t.k : e.k,
570
570
  t.v !== void 0 ? t.v : e.v,
@@ -573,8 +573,8 @@ function de(e, t) {
573
573
  t.r !== void 0 ? t.r : e.r
574
574
  );
575
575
  }
576
- function Fo(e) {
577
- return ne(e.r) ? e.l : Ct(de(e, { r: Fo(e.r) }));
576
+ function Go(e) {
577
+ return ne(e.r) ? e.l : Ct(me(e, { r: Go(e.r) }));
578
578
  }
579
579
  function Mt(e) {
580
580
  return ne(e) || e.lvl > e.r.lvl;
@@ -586,18 +586,18 @@ function qo(e, t, o, n = lt, r = lt) {
586
586
  return { k: e, l: n, lvl: o, r, v: t };
587
587
  }
588
588
  function To(e) {
589
- return Ft(Uo(e));
589
+ return Gt(Uo(e));
590
590
  }
591
591
  function Uo(e) {
592
592
  const { l: t } = e;
593
- return !ne(t) && t.lvl === e.lvl ? de(t, { r: de(e, { l: t.r }) }) : e;
593
+ return !ne(t) && t.lvl === e.lvl ? me(t, { r: me(e, { l: t.r }) }) : e;
594
594
  }
595
- function Ft(e) {
595
+ function Gt(e) {
596
596
  const { lvl: t, r: o } = e;
597
- return !ne(o) && !ne(o.r) && o.lvl === t && o.r.lvl === t ? de(o, { l: de(e, { r: o.l }), lvl: t + 1 }) : e;
597
+ return !ne(o) && !ne(o.r) && o.lvl === t && o.r.lvl === t ? me(o, { l: me(e, { r: o.l }), lvl: t + 1 }) : e;
598
598
  }
599
599
  function Kn(e) {
600
- return Go(e, ({ k: t, v: o }) => ({ index: t, value: o }));
600
+ return Fo(e, ({ k: t, v: o }) => ({ index: t, value: o }));
601
601
  }
602
602
  function Ko(e, t) {
603
603
  return !!(e && e.startIndex === t.startIndex && e.endIndex === t.endIndex);
@@ -605,7 +605,7 @@ function Ko(e, t) {
605
605
  function at(e, t) {
606
606
  return !!(e && e[0] === t[0] && e[1] === t[1]);
607
607
  }
608
- const Xt = Q(
608
+ const Xt = ee(
609
609
  () => ({ recalcInProgress: H(!1) }),
610
610
  [],
611
611
  { singleton: !0 }
@@ -635,7 +635,7 @@ function Yn(e, t, o, n) {
635
635
  const r = yt(e, t, n), i = yt(e, o, n, r);
636
636
  return e.slice(r, i + 1);
637
637
  }
638
- function Ge(e, t) {
638
+ function Fe(e, t) {
639
639
  return Math.round(e.getBoundingClientRect()[t]);
640
640
  }
641
641
  function zt(e) {
@@ -660,7 +660,7 @@ function Zn(e, t) {
660
660
  for (const n of t) {
661
661
  const { endIndex: r, size: i, startIndex: s } = n;
662
662
  if (o = Math.min(o, s), ne(e)) {
663
- e = ye(e, 0, i);
663
+ e = be(e, 0, i);
664
664
  continue;
665
665
  }
666
666
  const l = Et(e, s - 1, r + 1);
@@ -668,8 +668,8 @@ function Zn(e, t) {
668
668
  continue;
669
669
  let c = !1, a = !1;
670
670
  for (const { end: h, start: w, value: g } of l)
671
- c ? (r >= w || i === g) && (e = Vt(e, w)) : (a = g !== i, c = !0), h > r && r >= w && g !== i && (e = ye(e, r + 1, g));
672
- a && (e = ye(e, s, i));
671
+ c ? (r >= w || i === g) && (e = Vt(e, w)) : (a = g !== i, c = !0), h > r && r >= w && g !== i && (e = be(e, r + 1, g));
672
+ a && (e = be(e, s, i));
673
673
  }
674
674
  return [e, o];
675
675
  }
@@ -703,7 +703,7 @@ function Zo(e, t, o) {
703
703
  }
704
704
  }
705
705
  function er(e, t, o, n = 0) {
706
- return n > 0 && (t = Math.max(t, Yo(e, n, Zt).offset)), Go(Yn(e, t, o, Qn), nr);
706
+ return n > 0 && (t = Math.max(t, Yo(e, n, Zt).offset)), Fo(Yn(e, t, o, Qn), nr);
707
707
  }
708
708
  function tr(e, [t, o, n, r]) {
709
709
  t.length > 0 && n("received item sizes", t, Ie.DEBUG);
@@ -711,7 +711,7 @@ function tr(e, [t, o, n, r]) {
711
711
  let s = i, l = 0;
712
712
  if (o.length > 0 && ne(i) && t.length === 2) {
713
713
  const g = t[0].size, v = t[1].size;
714
- s = o.reduce((S, k) => ye(ye(S, k, g), k + 1, v), s);
714
+ s = o.reduce((S, k) => be(be(S, k, g), k + 1, v), s);
715
715
  } else
716
716
  [s, l] = Zn(s, t);
717
717
  if (s === i)
@@ -719,7 +719,7 @@ function tr(e, [t, o, n, r]) {
719
719
  const { lastIndex: c, lastOffset: a, lastSize: h, offsetTree: w } = $t(e.offsetTree, l, s, r);
720
720
  return {
721
721
  groupIndices: o,
722
- groupOffsetTree: o.reduce((g, v) => ye(g, v, ut(v, w, r)), ot()),
722
+ groupOffsetTree: o.reduce((g, v) => be(g, v, ut(v, w, r)), ot()),
723
723
  lastIndex: c,
724
724
  lastOffset: a,
725
725
  lastSize: h,
@@ -743,8 +743,8 @@ function $t(e, t, o, n) {
743
743
  let r = e, i = 0, s = 0, l = 0, c = 0;
744
744
  if (t !== 0) {
745
745
  c = yt(r, t - 1, Zt), l = r[c].offset;
746
- const a = Me(o, t - 1);
747
- i = a[0], s = a[1], r.length && r[c].size === Me(o, t)[1] && (c -= 1), r = r.slice(0, c + 1);
746
+ const a = We(o, t - 1);
747
+ i = a[0], s = a[1], r.length && r[c].size === We(o, t)[1] && (c -= 1), r = r.slice(0, c + 1);
748
748
  } else
749
749
  r = [];
750
750
  for (const { start: a, value: h } of Et(o, t, 1 / 0)) {
@@ -772,10 +772,10 @@ function rr(e) {
772
772
  const ir = {
773
773
  offsetHeight: "height",
774
774
  offsetWidth: "width"
775
- }, Oe = Q(
775
+ }, Oe = ee(
776
776
  ([{ log: e }, { recalcInProgress: t }]) => {
777
- const o = U(), n = U(), r = pe(n, 0), i = U(), s = U(), l = H(0), c = H([]), a = H(void 0), h = H(void 0), w = H((m, u) => Ge(m, ir[u])), g = H(void 0), v = H(0), S = Xn(), k = pe(
778
- x(o, F(c, e, v), Ae(tr, S), ie()),
777
+ const o = U(), n = U(), r = pe(n, 0), i = U(), s = U(), l = H(0), c = H([]), a = H(void 0), h = H(void 0), w = H((m, u) => Fe(m, ir[u])), g = H(void 0), v = H(0), S = Xn(), k = pe(
778
+ x(o, G(c, e, v), Ae(tr, S), ie()),
779
779
  S
780
780
  ), p = pe(
781
781
  x(
@@ -792,14 +792,14 @@ const ir = {
792
792
  M(
793
793
  x(
794
794
  c,
795
- P((m) => m.length > 0),
796
- F(k, v),
795
+ D((m) => m.length > 0),
796
+ G(k, v),
797
797
  E(([m, u, y]) => {
798
- const _ = m.reduce((j, z, N) => ye(j, z, ut(z, u.offsetTree, y) || N), ot());
798
+ const R = m.reduce((j, z, A) => be(j, z, ut(z, u.offsetTree, y) || A), ot());
799
799
  return {
800
800
  ...u,
801
801
  groupIndices: m,
802
- groupOffsetTree: _
802
+ groupOffsetTree: R
803
803
  };
804
804
  })
805
805
  ),
@@ -807,8 +807,8 @@ const ir = {
807
807
  ), M(
808
808
  x(
809
809
  n,
810
- F(k),
811
- P(([m, { lastIndex: u }]) => m < u),
810
+ G(k),
811
+ D(([m, { lastIndex: u }]) => m < u),
812
812
  E(([m, { lastIndex: u, lastSize: y }]) => [
813
813
  {
814
814
  endIndex: u,
@@ -829,15 +829,15 @@ const ir = {
829
829
  M(
830
830
  x(
831
831
  h,
832
- P((m) => m !== void 0 && ne(ce(k).sizeTree)),
832
+ D((m) => m !== void 0 && ne(ce(k).sizeTree)),
833
833
  E((m) => [{ endIndex: 0, size: m, startIndex: 0 }])
834
834
  ),
835
835
  o
836
836
  );
837
- const d = be(
837
+ const d = He(
838
838
  x(
839
839
  o,
840
- F(k),
840
+ G(k),
841
841
  Ae(
842
842
  ({ sizes: m }, [u, y]) => ({
843
843
  changed: y !== m,
@@ -848,7 +848,7 @@ const ir = {
848
848
  E((m) => m.changed)
849
849
  )
850
850
  );
851
- J(
851
+ Q(
852
852
  x(
853
853
  l,
854
854
  Ae(
@@ -860,70 +860,70 @@ const ir = {
860
860
  (m) => {
861
861
  const { groupIndices: u } = ce(k);
862
862
  if (m > 0)
863
- G(t, !0), G(i, m + wo(m, u));
863
+ F(t, !0), F(i, m + wo(m, u));
864
864
  else if (m < 0) {
865
865
  const y = ce(p);
866
- y.length > 0 && (m -= wo(-m, y)), G(s, m);
866
+ y.length > 0 && (m -= wo(-m, y)), F(s, m);
867
867
  }
868
868
  }
869
- ), J(x(l, F(e)), ([m, u]) => {
869
+ ), Q(x(l, G(e)), ([m, u]) => {
870
870
  m < 0 && u(
871
871
  "`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
872
872
  { firstItemIndex: l },
873
873
  Ie.ERROR
874
874
  );
875
875
  });
876
- const b = be(i);
876
+ const b = He(i);
877
877
  M(
878
878
  x(
879
879
  i,
880
- F(k),
880
+ G(k),
881
881
  E(([m, u]) => {
882
- const y = u.groupIndices.length > 0, _ = [], j = u.lastSize;
882
+ const y = u.groupIndices.length > 0, R = [], j = u.lastSize;
883
883
  if (y) {
884
884
  const z = ct(u.sizeTree, 0);
885
- let N = 0, $ = 0;
886
- for (; N < m; ) {
887
- const B = u.groupIndices[$], K = u.groupIndices.length === $ + 1 ? 1 / 0 : u.groupIndices[$ + 1] - B - 1;
888
- _.push({
885
+ let A = 0, $ = 0;
886
+ for (; A < m; ) {
887
+ const B = u.groupIndices[$], Y = u.groupIndices.length === $ + 1 ? 1 / 0 : u.groupIndices[$ + 1] - B - 1;
888
+ R.push({
889
889
  endIndex: B,
890
890
  size: z,
891
891
  startIndex: B
892
- }), _.push({
893
- endIndex: B + 1 + K - 1,
892
+ }), R.push({
893
+ endIndex: B + 1 + Y - 1,
894
894
  size: j,
895
895
  startIndex: B + 1
896
- }), $++, N += K + 1;
896
+ }), $++, A += Y + 1;
897
897
  }
898
- const ee = Ke(u.sizeTree);
899
- return N !== m && ee.shift(), ee.reduce(
900
- (B, { k: K, v: Y }) => {
898
+ const te = Ke(u.sizeTree);
899
+ return A !== m && te.shift(), te.reduce(
900
+ (B, { k: Y, v: X }) => {
901
901
  let ve = B.ranges;
902
902
  return B.prevSize !== 0 && (ve = [
903
903
  ...B.ranges,
904
904
  {
905
- endIndex: K + m - 1,
905
+ endIndex: Y + m - 1,
906
906
  size: B.prevSize,
907
907
  startIndex: B.prevIndex
908
908
  }
909
909
  ]), {
910
- prevIndex: K + m,
911
- prevSize: Y,
910
+ prevIndex: Y + m,
911
+ prevSize: X,
912
912
  ranges: ve
913
913
  };
914
914
  },
915
915
  {
916
916
  prevIndex: m,
917
917
  prevSize: 0,
918
- ranges: _
918
+ ranges: R
919
919
  }
920
920
  ).ranges;
921
921
  }
922
922
  return Ke(u.sizeTree).reduce(
923
- (z, { k: N, v: $ }) => ({
924
- prevIndex: N + m,
923
+ (z, { k: A, v: $ }) => ({
924
+ prevIndex: A + m,
925
925
  prevSize: $,
926
- ranges: [...z.ranges, { endIndex: N + m - 1, size: z.prevSize, startIndex: z.prevIndex }]
926
+ ranges: [...z.ranges, { endIndex: A + m - 1, size: z.prevSize, startIndex: z.prevIndex }]
927
927
  }),
928
928
  {
929
929
  prevIndex: 0,
@@ -935,49 +935,49 @@ const ir = {
935
935
  ),
936
936
  o
937
937
  );
938
- const R = be(
938
+ const _ = He(
939
939
  x(
940
940
  s,
941
- F(k, v),
941
+ G(k, v),
942
942
  E(([m, { offsetTree: u }, y]) => {
943
- const _ = -m;
944
- return ut(_, u, y);
943
+ const R = -m;
944
+ return ut(R, u, y);
945
945
  })
946
946
  )
947
947
  );
948
948
  return M(
949
949
  x(
950
950
  s,
951
- F(k, v),
951
+ G(k, v),
952
952
  E(([m, u, y]) => {
953
953
  if (u.groupIndices.length > 0) {
954
954
  if (ne(u.sizeTree))
955
955
  return u;
956
- let _ = ot();
956
+ let R = ot();
957
957
  const j = ce(p);
958
- let z = 0, N = 0, $ = 0;
958
+ let z = 0, A = 0, $ = 0;
959
959
  for (; z < -m; ) {
960
- $ = j[N];
961
- const ee = j[N + 1] - $ - 1;
962
- N++, z += ee + 1;
960
+ $ = j[A];
961
+ const te = j[A + 1] - $ - 1;
962
+ A++, z += te + 1;
963
963
  }
964
- if (_ = Ke(u.sizeTree).reduce((ee, { k: B, v: K }) => ye(ee, Math.max(0, B + m), K), _), z !== -m) {
965
- const ee = ct(u.sizeTree, $);
966
- _ = ye(_, 0, ee);
967
- const B = Me(u.sizeTree, -m + 1)[1];
968
- _ = ye(_, 1, B);
964
+ if (R = Ke(u.sizeTree).reduce((te, { k: B, v: Y }) => be(te, Math.max(0, B + m), Y), R), z !== -m) {
965
+ const te = ct(u.sizeTree, $);
966
+ R = be(R, 0, te);
967
+ const B = We(u.sizeTree, -m + 1)[1];
968
+ R = be(R, 1, B);
969
969
  }
970
970
  return {
971
971
  ...u,
972
- sizeTree: _,
973
- ...$t(u.offsetTree, 0, _, y)
972
+ sizeTree: R,
973
+ ...$t(u.offsetTree, 0, R, y)
974
974
  };
975
975
  } else {
976
- const _ = Ke(u.sizeTree).reduce((j, { k: z, v: N }) => ye(j, Math.max(0, z + m), N), ot());
976
+ const R = Ke(u.sizeTree).reduce((j, { k: z, v: A }) => be(j, Math.max(0, z + m), A), ot());
977
977
  return {
978
978
  ...u,
979
- sizeTree: _,
980
- ...$t(u.offsetTree, 0, _, y)
979
+ sizeTree: R,
980
+ ...$t(u.offsetTree, 0, R, y)
981
981
  };
982
982
  }
983
983
  })
@@ -995,7 +995,7 @@ const ir = {
995
995
  itemSize: w,
996
996
  listRefresh: d,
997
997
  shiftWith: s,
998
- shiftWithOffset: R,
998
+ shiftWithOffset: _,
999
999
  sizeRanges: o,
1000
1000
  // output
1001
1001
  sizes: k,
@@ -1017,9 +1017,9 @@ function sr(e) {
1017
1017
  }
1018
1018
  );
1019
1019
  }
1020
- const Jo = Q(
1020
+ const Jo = ee(
1021
1021
  ([{ groupIndices: e, sizes: t, totalCount: o }, { headerHeight: n, scrollTop: r }]) => {
1022
- const i = U(), s = U(), l = be(x(i, E(sr)));
1022
+ const i = U(), s = U(), l = He(x(i, E(sr)));
1023
1023
  return M(
1024
1024
  x(
1025
1025
  l,
@@ -1034,9 +1034,9 @@ const Jo = Q(
1034
1034
  e
1035
1035
  ), M(
1036
1036
  x(
1037
- ae(r, t, n),
1038
- P(([c, a]) => zt(a)),
1039
- E(([c, a, h]) => Me(a.groupOffsetTree, Math.max(c - h, 0), "v")[0]),
1037
+ ue(r, t, n),
1038
+ D(([c, a]) => zt(a)),
1039
+ E(([c, a, h]) => We(a.groupOffsetTree, Math.max(c - h, 0), "v")[0]),
1040
1040
  ie(),
1041
1041
  E((c) => [c])
1042
1042
  ),
@@ -1044,16 +1044,16 @@ const Jo = Q(
1044
1044
  ), { groupCounts: i, topItemsIndexes: s };
1045
1045
  },
1046
1046
  se(Oe, xe)
1047
- ), qe = Q(
1047
+ ), qe = ee(
1048
1048
  ([{ log: e }]) => {
1049
- const t = H(!1), o = be(
1049
+ const t = H(!1), o = He(
1050
1050
  x(
1051
1051
  t,
1052
- P((n) => n),
1052
+ D((n) => n),
1053
1053
  ie()
1054
1054
  )
1055
1055
  );
1056
- return J(t, (n) => {
1056
+ return Q(t, (n) => {
1057
1057
  n && ce(e)("props updated", {}, Ie.DEBUG);
1058
1058
  }), { didMount: o, propsReady: t };
1059
1059
  },
@@ -1064,7 +1064,7 @@ function Qo(e) {
1064
1064
  const t = typeof e == "number" ? { index: e } : e;
1065
1065
  return t.align || (t.align = "start"), (!t.behavior || !lr) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
1066
1066
  }
1067
- const ft = Q(
1067
+ const ft = ee(
1068
1068
  ([
1069
1069
  { gap: e, listRefresh: t, sizes: o, totalCount: n },
1070
1070
  {
@@ -1082,38 +1082,38 @@ const ft = Q(
1082
1082
  const v = U(), S = U(), k = H(0);
1083
1083
  let p = null, f = null, d = null;
1084
1084
  function b() {
1085
- p && (p(), p = null), d && (d(), d = null), f && (clearTimeout(f), f = null), G(c, !1);
1085
+ p && (p(), p = null), d && (d(), d = null), f && (clearTimeout(f), f = null), F(c, !1);
1086
1086
  }
1087
1087
  return M(
1088
1088
  x(
1089
1089
  v,
1090
- F(o, w, n, k, l, s, g),
1091
- F(e, i, r),
1090
+ G(o, w, n, k, l, s, g),
1091
+ G(e, i, r),
1092
1092
  E(
1093
1093
  ([
1094
- [R, m, u, y, _, j, z, N],
1094
+ [_, m, u, y, R, j, z, A],
1095
1095
  $,
1096
- ee,
1096
+ te,
1097
1097
  B
1098
1098
  ]) => {
1099
- const K = Qo(R), { align: Y, behavior: ve, offset: Te } = K, we = y - 1, fe = Zo(K, m, we);
1100
- let me = ut(fe, m.offsetTree, $) + j;
1101
- Y === "end" ? (me += ee + Me(m.sizeTree, fe)[1] - u + B, fe === we && (me += z)) : Y === "center" ? me += (ee + Me(m.sizeTree, fe)[1] - u + B) / 2 : me -= _, Te && (me += Te);
1102
- const Be = (Ce) => {
1103
- b(), Ce ? (N("retrying to scroll to", { location: R }, Ie.DEBUG), G(v, R)) : (G(S, !0), N("list did not change, scroll successful", {}, Ie.DEBUG));
1099
+ const Y = Qo(_), { align: X, behavior: ve, offset: Te } = Y, we = y - 1, he = Zo(Y, m, we);
1100
+ let fe = ut(he, m.offsetTree, $) + j;
1101
+ X === "end" ? (fe += te + We(m.sizeTree, he)[1] - u + B, he === we && (fe += z)) : X === "center" ? fe += (te + We(m.sizeTree, he)[1] - u + B) / 2 : fe -= R, Te && (fe += Te);
1102
+ const Le = (Ce) => {
1103
+ b(), Ce ? (A("retrying to scroll to", { location: _ }, Ie.DEBUG), F(v, _)) : (F(S, !0), A("list did not change, scroll successful", {}, Ie.DEBUG));
1104
1104
  };
1105
1105
  if (b(), ve === "smooth") {
1106
1106
  let Ce = !1;
1107
- d = J(t, (Ve) => {
1107
+ d = Q(t, (Ve) => {
1108
1108
  Ce = Ce || Ve;
1109
- }), p = je(h, () => {
1110
- Be(Ce);
1109
+ }), p = Me(h, () => {
1110
+ Le(Ce);
1111
1111
  });
1112
1112
  } else
1113
- p = je(x(t, cr(150)), Be);
1113
+ p = Me(x(t, cr(150)), Le);
1114
1114
  return f = setTimeout(() => {
1115
1115
  b();
1116
- }, 1200), G(c, !0), N("scrolling from index to", { behavior: ve, index: fe, top: me }, Ie.DEBUG), { behavior: ve, top: me };
1116
+ }, 1200), F(c, !0), A("scrolling from index to", { behavior: ve, index: he, top: fe }, Ie.DEBUG), { behavior: ve, top: fe };
1117
1117
  }
1118
1118
  )
1119
1119
  ),
@@ -1146,39 +1146,39 @@ function Qt(e, t) {
1146
1146
  const o = t - 1;
1147
1147
  return typeof e == "number" ? e : e.index === "LAST" ? o : e.index;
1148
1148
  }
1149
- const ht = Q(
1149
+ const ht = ee(
1150
1150
  ([{ defaultItemSize: e, listRefresh: t, sizes: o }, { scrollTop: n }, { scrollTargetReached: r, scrollToIndex: i }, { didMount: s }]) => {
1151
1151
  const l = H(!0), c = H(0), a = H(!0);
1152
1152
  return M(
1153
1153
  x(
1154
1154
  s,
1155
- F(c),
1156
- P(([h, w]) => !!w),
1155
+ G(c),
1156
+ D(([h, w]) => !!w),
1157
1157
  Ne(!1)
1158
1158
  ),
1159
1159
  l
1160
1160
  ), M(
1161
1161
  x(
1162
1162
  s,
1163
- F(c),
1164
- P(([h, w]) => !!w),
1163
+ G(c),
1164
+ D(([h, w]) => !!w),
1165
1165
  Ne(!1)
1166
1166
  ),
1167
1167
  a
1168
- ), J(
1168
+ ), Q(
1169
1169
  x(
1170
- ae(t, s),
1171
- F(l, o, e, a),
1172
- P(([[, h], w, { sizeTree: g }, v, S]) => h && (!ne(g) || Ut(v)) && !w && !S),
1173
- F(c)
1170
+ ue(t, s),
1171
+ G(l, o, e, a),
1172
+ D(([[, h], w, { sizeTree: g }, v, S]) => h && (!ne(g) || Ut(v)) && !w && !S),
1173
+ G(c)
1174
1174
  ),
1175
1175
  ([, h]) => {
1176
- je(r, () => {
1177
- G(a, !0);
1176
+ Me(r, () => {
1177
+ F(a, !0);
1178
1178
  }), Jt(4, () => {
1179
- je(n, () => {
1180
- G(l, !0);
1181
- }), G(i, h);
1179
+ Me(n, () => {
1180
+ F(l, !0);
1181
+ }), F(i, h);
1182
1182
  });
1183
1183
  }
1184
1184
  ), {
@@ -1202,10 +1202,10 @@ const dt = "up", it = "down", ar = "none", ur = {
1202
1202
  scrollTop: 0,
1203
1203
  viewportHeight: 0
1204
1204
  }
1205
- }, dr = 0, gt = Q(([{ footerHeight: e, headerHeight: t, scrollBy: o, scrollContainerState: n, scrollTop: r, viewportHeight: i }]) => {
1205
+ }, dr = 0, gt = ee(([{ footerHeight: e, headerHeight: t, scrollBy: o, scrollContainerState: n, scrollTop: r, viewportHeight: i }]) => {
1206
1206
  const s = H(!1), l = H(!0), c = U(), a = U(), h = H(4), w = H(dr), g = pe(
1207
1207
  x(
1208
- Dt(x(A(r), Ye(1), Ne(!0)), x(A(r), Ye(1), Ne(!1), vo(100))),
1208
+ Dt(x(O(r), Ye(1), Ne(!0)), x(O(r), Ye(1), Ne(!1), vo(100))),
1209
1209
  ie()
1210
1210
  ),
1211
1211
  !1
@@ -1215,34 +1215,34 @@ const dt = "up", it = "down", ar = "none", ur = {
1215
1215
  );
1216
1216
  M(
1217
1217
  x(
1218
- ae(A(r), A(w)),
1218
+ ue(O(r), O(w)),
1219
1219
  E(([d, b]) => d <= b),
1220
1220
  ie()
1221
1221
  ),
1222
1222
  l
1223
1223
  ), M(x(l, De(50)), a);
1224
- const S = be(
1224
+ const S = He(
1225
1225
  x(
1226
- ae(n, A(i), A(t), A(e), A(h)),
1227
- Ae((d, [{ scrollHeight: b, scrollTop: R }, m, u, y, _]) => {
1228
- const j = R + m - b > -_, z = {
1226
+ ue(n, O(i), O(t), O(e), O(h)),
1227
+ Ae((d, [{ scrollHeight: b, scrollTop: _ }, m, u, y, R]) => {
1228
+ const j = _ + m - b > -R, z = {
1229
1229
  scrollHeight: b,
1230
- scrollTop: R,
1230
+ scrollTop: _,
1231
1231
  viewportHeight: m
1232
1232
  };
1233
1233
  if (j) {
1234
- let $, ee;
1235
- return R > d.state.scrollTop ? ($ = "SCROLLED_DOWN", ee = d.state.scrollTop - R) : ($ = "SIZE_DECREASED", ee = d.state.scrollTop - R || d.scrollTopDelta), {
1234
+ let $, te;
1235
+ return _ > d.state.scrollTop ? ($ = "SCROLLED_DOWN", te = d.state.scrollTop - _) : ($ = "SIZE_DECREASED", te = d.state.scrollTop - _ || d.scrollTopDelta), {
1236
1236
  atBottom: !0,
1237
1237
  atBottomBecause: $,
1238
- scrollTopDelta: ee,
1238
+ scrollTopDelta: te,
1239
1239
  state: z
1240
1240
  };
1241
1241
  }
1242
- let N;
1243
- return z.scrollHeight > d.state.scrollHeight ? N = "SIZE_INCREASED" : m < d.state.viewportHeight ? N = "VIEWPORT_HEIGHT_DECREASING" : R < d.state.scrollTop ? N = "SCROLLING_UPWARDS" : N = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
1242
+ let A;
1243
+ return z.scrollHeight > d.state.scrollHeight ? A = "SIZE_INCREASED" : m < d.state.viewportHeight ? A = "VIEWPORT_HEIGHT_DECREASING" : _ < d.state.scrollTop ? A = "SCROLLING_UPWARDS" : A = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
1244
1244
  atBottom: !1,
1245
- notAtBottomBecause: N,
1245
+ notAtBottomBecause: A,
1246
1246
  state: z
1247
1247
  };
1248
1248
  }, ur),
@@ -1252,32 +1252,32 @@ const dt = "up", it = "down", ar = "none", ur = {
1252
1252
  x(
1253
1253
  n,
1254
1254
  Ae(
1255
- (d, { scrollHeight: b, scrollTop: R, viewportHeight: m }) => {
1255
+ (d, { scrollHeight: b, scrollTop: _, viewportHeight: m }) => {
1256
1256
  if (en(d.scrollHeight, b))
1257
1257
  return {
1258
1258
  changed: !1,
1259
1259
  jump: 0,
1260
1260
  scrollHeight: b,
1261
- scrollTop: R
1261
+ scrollTop: _
1262
1262
  };
1263
1263
  {
1264
- const u = b - (R + m) < 1;
1265
- return d.scrollTop !== R && u ? {
1264
+ const u = b - (_ + m) < 1;
1265
+ return d.scrollTop !== _ && u ? {
1266
1266
  changed: !0,
1267
- jump: d.scrollTop - R,
1267
+ jump: d.scrollTop - _,
1268
1268
  scrollHeight: b,
1269
- scrollTop: R
1269
+ scrollTop: _
1270
1270
  } : {
1271
1271
  changed: !0,
1272
1272
  jump: 0,
1273
1273
  scrollHeight: b,
1274
- scrollTop: R
1274
+ scrollTop: _
1275
1275
  };
1276
1276
  }
1277
1277
  },
1278
1278
  { changed: !1, jump: 0, scrollHeight: 0, scrollTop: 0 }
1279
1279
  ),
1280
- P((d) => d.changed),
1280
+ D((d) => d.changed),
1281
1281
  E((d) => d.jump)
1282
1282
  ),
1283
1283
  0
@@ -1307,7 +1307,7 @@ const dt = "up", it = "down", ar = "none", ur = {
1307
1307
  return M(
1308
1308
  x(
1309
1309
  g,
1310
- P((d) => !d),
1310
+ D((d) => !d),
1311
1311
  Ne(0)
1312
1312
  ),
1313
1313
  f
@@ -1315,9 +1315,9 @@ const dt = "up", it = "down", ar = "none", ur = {
1315
1315
  x(
1316
1316
  r,
1317
1317
  De(100),
1318
- F(g),
1319
- P(([d, b]) => !!b),
1320
- Ae(([d, b], [R]) => [b, R], [0, 0]),
1318
+ G(g),
1319
+ D(([d, b]) => !!b),
1320
+ Ae(([d, b], [_]) => [b, _], [0, 0]),
1321
1321
  E(([d, b]) => b - d)
1322
1322
  ),
1323
1323
  f
@@ -1342,20 +1342,20 @@ function yo(e, t) {
1342
1342
  var o;
1343
1343
  return typeof e == "number" ? e : (o = e[t]) != null ? o : 0;
1344
1344
  }
1345
- const eo = Q(
1345
+ const eo = ee(
1346
1346
  ([{ deviation: e, fixedHeaderHeight: t, headerHeight: o, scrollTop: n, viewportHeight: r }]) => {
1347
1347
  const i = U(), s = H(0), l = H(0), c = H(0), a = pe(
1348
1348
  x(
1349
- ae(
1350
- A(n),
1351
- A(r),
1352
- A(o),
1353
- A(i, at),
1354
- A(c),
1355
- A(s),
1356
- A(t),
1357
- A(e),
1358
- A(l)
1349
+ ue(
1350
+ O(n),
1351
+ O(r),
1352
+ O(o),
1353
+ O(i, at),
1354
+ O(c),
1355
+ O(s),
1356
+ O(t),
1357
+ O(e),
1358
+ O(l)
1359
1359
  ),
1360
1360
  E(
1361
1361
  ([
@@ -1369,16 +1369,16 @@ const eo = Q(
1369
1369
  d,
1370
1370
  b
1371
1371
  ]) => {
1372
- const R = h - d, m = p + f, u = Math.max(g - R, 0);
1372
+ const _ = h - d, m = p + f, u = Math.max(g - _, 0);
1373
1373
  let y = Co;
1374
- const _ = yo(b, bt), j = yo(b, Ht);
1375
- return v -= d, v += g + f, S += g + f, S -= d, v > h + m - _ && (y = dt), S < h - u + w + j && (y = it), y !== Co ? [
1376
- Math.max(R - g - So(k, bt, y) - _, 0),
1377
- R - u - f + w + So(k, Ht, y) + j
1374
+ const R = yo(b, bt), j = yo(b, Ht);
1375
+ return v -= d, v += g + f, S += g + f, S -= d, v > h + m - R && (y = dt), S < h - u + w + j && (y = it), y !== Co ? [
1376
+ Math.max(_ - g - So(k, bt, y) - R, 0),
1377
+ _ - u - f + w + So(k, Ht, y) + j
1378
1378
  ] : null;
1379
1379
  }
1380
1380
  ),
1381
- P((h) => h != null),
1381
+ D((h) => h != null),
1382
1382
  ie(at)
1383
1383
  ),
1384
1384
  [0, 0]
@@ -1400,7 +1400,7 @@ function mr(e, t, o) {
1400
1400
  if (zt(t)) {
1401
1401
  const n = Xo(e, t);
1402
1402
  return [
1403
- { index: Me(t.groupOffsetTree, n)[0], offset: 0, size: 0 },
1403
+ { index: We(t.groupOffsetTree, n)[0], offset: 0, size: 0 },
1404
1404
  { data: o == null ? void 0 : o[0], index: n, offset: 0, size: 0 }
1405
1405
  ];
1406
1406
  }
@@ -1480,7 +1480,7 @@ function bo(e, t, o) {
1480
1480
  }
1481
1481
  return i;
1482
1482
  }
1483
- const Ze = Q(
1483
+ const Ze = ee(
1484
1484
  ([
1485
1485
  { data: e, firstItemIndex: t, gap: o, sizes: n, totalCount: r },
1486
1486
  i,
@@ -1495,21 +1495,21 @@ const Ze = Q(
1495
1495
  M(i.topItemsIndexes, k);
1496
1496
  const d = pe(
1497
1497
  x(
1498
- ae(
1498
+ ue(
1499
1499
  v,
1500
1500
  S,
1501
- A(c, at),
1502
- A(r),
1503
- A(n),
1504
- A(a),
1501
+ O(c, at),
1502
+ O(r),
1503
+ O(n),
1504
+ O(a),
1505
1505
  h,
1506
- A(k),
1507
- A(t),
1508
- A(o),
1506
+ O(k),
1507
+ O(t),
1508
+ O(o),
1509
1509
  e
1510
1510
  ),
1511
- P(([u, y, , _, , , , , , , j]) => {
1512
- const z = j && j.length !== _;
1511
+ D(([u, y, , R, , , , , , , j]) => {
1512
+ const z = j && j.length !== R;
1513
1513
  return u && !y && !z;
1514
1514
  }),
1515
1515
  E(
@@ -1517,65 +1517,65 @@ const Ze = Q(
1517
1517
  ,
1518
1518
  ,
1519
1519
  [u, y],
1520
- _,
1520
+ R,
1521
1521
  j,
1522
1522
  z,
1523
- N,
1523
+ A,
1524
1524
  $,
1525
- ee,
1525
+ te,
1526
1526
  B,
1527
- K
1527
+ Y
1528
1528
  ]) => {
1529
- const Y = j, { offsetTree: ve, sizeTree: Te } = Y, we = ce(p);
1530
- if (_ === 0)
1531
- return { ...Wt, totalCount: _ };
1529
+ const X = j, { offsetTree: ve, sizeTree: Te } = X, we = ce(p);
1530
+ if (R === 0)
1531
+ return { ...Wt, totalCount: R };
1532
1532
  if (u === 0 && y === 0)
1533
- return we === 0 ? { ...Wt, totalCount: _ } : tn(we, z, j, ee, B, K || []);
1533
+ return we === 0 ? { ...Wt, totalCount: R } : tn(we, z, j, te, B, Y || []);
1534
1534
  if (ne(Te))
1535
1535
  return we > 0 ? null : St(
1536
- mr(Qt(z, _), Y, K),
1536
+ mr(Qt(z, R), X, Y),
1537
1537
  [],
1538
- _,
1538
+ R,
1539
1539
  B,
1540
- Y,
1541
- ee
1540
+ X,
1541
+ te
1542
1542
  );
1543
- const fe = [];
1543
+ const he = [];
1544
1544
  if ($.length > 0) {
1545
- const Le = $[0], He = $[$.length - 1];
1546
- let ke = 0;
1547
- for (const T of Et(Te, Le, He)) {
1548
- const O = T.value, te = Math.max(T.start, Le), ue = Math.min(T.end, He);
1549
- for (let C = te; C <= ue; C++)
1550
- fe.push({ data: K == null ? void 0 : K[C], index: C, offset: ke, size: O }), ke += O;
1545
+ const je = $[0], ke = $[$.length - 1];
1546
+ let Re = 0;
1547
+ for (const T of Et(Te, je, ke)) {
1548
+ const P = T.value, oe = Math.max(T.start, je), de = Math.min(T.end, ke);
1549
+ for (let C = oe; C <= de; C++)
1550
+ he.push({ data: Y == null ? void 0 : Y[C], index: C, offset: Re, size: P }), Re += P;
1551
1551
  }
1552
1552
  }
1553
- if (!N)
1554
- return St([], fe, _, B, Y, ee);
1555
- const me = $.length > 0 ? $[$.length - 1] + 1 : 0, Be = er(ve, u, y, me);
1556
- if (Be.length === 0)
1553
+ if (!A)
1554
+ return St([], he, R, B, X, te);
1555
+ const fe = $.length > 0 ? $[$.length - 1] + 1 : 0, Le = er(ve, u, y, fe);
1556
+ if (Le.length === 0)
1557
1557
  return null;
1558
- const Ce = _ - 1, Ve = Rt([], (Le) => {
1559
- for (const He of Be) {
1560
- const ke = He.value;
1561
- let T = ke.offset, O = He.start;
1562
- const te = ke.size;
1563
- if (ke.offset < u) {
1564
- O += Math.floor((u - ke.offset + B) / (te + B));
1565
- const C = O - He.start;
1566
- T += C * te + C * B;
1558
+ const Ce = R - 1, Ve = _t([], (je) => {
1559
+ for (const ke of Le) {
1560
+ const Re = ke.value;
1561
+ let T = Re.offset, P = ke.start;
1562
+ const oe = Re.size;
1563
+ if (Re.offset < u) {
1564
+ P += Math.floor((u - Re.offset + B) / (oe + B));
1565
+ const C = P - ke.start;
1566
+ T += C * oe + C * B;
1567
1567
  }
1568
- O < me && (T += (me - O) * te, O = me);
1569
- const ue = Math.min(He.end, Ce);
1570
- for (let C = O; C <= ue && !(T >= y); C++)
1571
- Le.push({ data: K == null ? void 0 : K[C], index: C, offset: T, size: te }), T += te + B;
1568
+ P < fe && (T += (fe - P) * oe, P = fe);
1569
+ const de = Math.min(ke.end, Ce);
1570
+ for (let C = P; C <= de && !(T >= y); C++)
1571
+ je.push({ data: Y == null ? void 0 : Y[C], index: C, offset: T, size: oe }), T += oe + B;
1572
1572
  }
1573
1573
  });
1574
- return St(Ve, fe, _, B, Y, ee);
1574
+ return St(Ve, he, R, B, X, te);
1575
1575
  }
1576
1576
  ),
1577
1577
  //@ts-expect-error filter needs to be fixed
1578
- P((u) => u !== null),
1578
+ D((u) => u !== null),
1579
1579
  ie()
1580
1580
  ),
1581
1581
  Wt
@@ -1583,7 +1583,7 @@ const Ze = Q(
1583
1583
  M(
1584
1584
  x(
1585
1585
  e,
1586
- P(Ut),
1586
+ D(Ut),
1587
1587
  E((u) => u == null ? void 0 : u.length)
1588
1588
  ),
1589
1589
  r
@@ -1606,43 +1606,43 @@ const Ze = Q(
1606
1606
  ),
1607
1607
  f
1608
1608
  );
1609
- const b = be(
1609
+ const b = He(
1610
1610
  x(
1611
1611
  d,
1612
- P(({ items: u }) => u.length > 0),
1613
- F(r, e),
1614
- P(([{ items: u }, y]) => u[u.length - 1].originalIndex === y - 1),
1612
+ D(({ items: u }) => u.length > 0),
1613
+ G(r, e),
1614
+ D(([{ items: u }, y]) => u[u.length - 1].originalIndex === y - 1),
1615
1615
  E(([, u, y]) => [u - 1, y]),
1616
1616
  ie(at),
1617
1617
  E(([u]) => u)
1618
1618
  )
1619
- ), R = be(
1619
+ ), _ = He(
1620
1620
  x(
1621
1621
  d,
1622
1622
  De(200),
1623
- P(({ items: u, topItems: y }) => u.length > 0 && u[0].originalIndex === y.length),
1623
+ D(({ items: u, topItems: y }) => u.length > 0 && u[0].originalIndex === y.length),
1624
1624
  E(({ items: u }) => u[0].index),
1625
1625
  ie()
1626
1626
  )
1627
- ), m = be(
1627
+ ), m = He(
1628
1628
  x(
1629
1629
  d,
1630
- P(({ items: u }) => u.length > 0),
1630
+ D(({ items: u }) => u.length > 0),
1631
1631
  E(({ items: u }) => {
1632
- let y = 0, _ = u.length - 1;
1633
- for (; u[y].type === "group" && y < _; )
1632
+ let y = 0, R = u.length - 1;
1633
+ for (; u[y].type === "group" && y < R; )
1634
1634
  y++;
1635
- for (; u[_].type === "group" && _ > y; )
1636
- _--;
1635
+ for (; u[R].type === "group" && R > y; )
1636
+ R--;
1637
1637
  return {
1638
- endIndex: u[_].index,
1638
+ endIndex: u[R].index,
1639
1639
  startIndex: u[y].index
1640
1640
  };
1641
1641
  }),
1642
1642
  ie(Ko)
1643
1643
  )
1644
1644
  );
1645
- return { endReached: b, initialItemCount: p, itemsRendered: f, listState: d, rangeChanged: m, startReached: R, topItemsIndexes: k, ...g };
1645
+ return { endReached: b, initialItemCount: p, itemsRendered: f, listState: d, rangeChanged: m, startReached: _, topItemsIndexes: k, ...g };
1646
1646
  },
1647
1647
  se(
1648
1648
  Oe,
@@ -1655,25 +1655,25 @@ const Ze = Q(
1655
1655
  Xt
1656
1656
  ),
1657
1657
  { singleton: !0 }
1658
- ), on = Q(
1658
+ ), on = ee(
1659
1659
  ([{ fixedFooterHeight: e, fixedHeaderHeight: t, footerHeight: o, headerHeight: n }, { listState: r }]) => {
1660
1660
  const i = U(), s = pe(
1661
1661
  x(
1662
- ae(o, e, n, t, r),
1662
+ ue(o, e, n, t, r),
1663
1663
  E(([l, c, a, h, w]) => l + c + a + h + w.offsetBottom + w.bottom)
1664
1664
  ),
1665
1665
  0
1666
1666
  );
1667
- return M(A(s), i), { totalListHeight: s, totalListHeightChanged: i };
1667
+ return M(O(s), i), { totalListHeight: s, totalListHeightChanged: i };
1668
1668
  },
1669
1669
  se(xe, Ze),
1670
1670
  { singleton: !0 }
1671
- ), fr = Q(
1671
+ ), fr = ee(
1672
1672
  ([{ viewportHeight: e }, { totalListHeight: t }]) => {
1673
1673
  const o = H(!1), n = pe(
1674
1674
  x(
1675
- ae(o, e, t),
1676
- P(([r]) => r),
1675
+ ue(o, e, t),
1676
+ D(([r]) => r),
1677
1677
  E(([, r, i]) => Math.max(0, r - i)),
1678
1678
  De(0),
1679
1679
  ie()
@@ -1684,7 +1684,7 @@ const Ze = Q(
1684
1684
  },
1685
1685
  se(xe, on),
1686
1686
  { singleton: !0 }
1687
- ), nn = Q(() => ({
1687
+ ), nn = ee(() => ({
1688
1688
  context: H(null)
1689
1689
  })), hr = ({
1690
1690
  itemBottom: e,
@@ -1692,7 +1692,7 @@ const Ze = Q(
1692
1692
  locationParams: { align: o, behavior: n, ...r },
1693
1693
  viewportBottom: i,
1694
1694
  viewportTop: s
1695
- }) => t < s ? { ...r, align: o ?? "start", behavior: n } : e > i ? { ...r, align: o ?? "end", behavior: n } : null, rn = Q(
1695
+ }) => t < s ? { ...r, align: o ?? "start", behavior: n } : e > i ? { ...r, align: o ?? "end", behavior: n } : null, rn = ee(
1696
1696
  ([
1697
1697
  { gap: e, sizes: t, totalCount: o },
1698
1698
  { fixedFooterHeight: n, fixedHeaderHeight: r, headerHeight: i, scrollingInProgress: s, scrollTop: l, viewportHeight: c },
@@ -1702,20 +1702,20 @@ const Ze = Q(
1702
1702
  return M(
1703
1703
  x(
1704
1704
  h,
1705
- F(t, c, o, i, r, n, l),
1706
- F(e),
1705
+ G(t, c, o, i, r, n, l),
1706
+ G(e),
1707
1707
  E(([[w, g, v, S, k, p, f, d], b]) => {
1708
- const { align: R, behavior: m, calculateViewLocation: u = hr, done: y, ..._ } = w, j = Zo(w, g, S - 1), z = ut(j, g.offsetTree, b) + k + p, N = z + Me(g.sizeTree, j)[1], $ = d + p, ee = d + v - f, B = u({
1709
- itemBottom: N,
1708
+ const { align: _, behavior: m, calculateViewLocation: u = hr, done: y, ...R } = w, j = Zo(w, g, S - 1), z = ut(j, g.offsetTree, b) + k + p, A = z + We(g.sizeTree, j)[1], $ = d + p, te = d + v - f, B = u({
1709
+ itemBottom: A,
1710
1710
  itemTop: z,
1711
- locationParams: { align: R, behavior: m, ..._ },
1712
- viewportBottom: ee,
1711
+ locationParams: { align: _, behavior: m, ...R },
1712
+ viewportBottom: te,
1713
1713
  viewportTop: $
1714
1714
  });
1715
- return B ? y && je(
1715
+ return B ? y && Me(
1716
1716
  x(
1717
1717
  s,
1718
- P((K) => !K),
1718
+ D((Y) => !Y),
1719
1719
  // skips the initial publish of false, and the cleanup call.
1720
1720
  // but if scrollingInProgress is true, we skip the initial publish.
1721
1721
  Ye(ce(s) ? 1 : 2)
@@ -1723,7 +1723,7 @@ const Ze = Q(
1723
1723
  y
1724
1724
  ) : y && y(), B;
1725
1725
  }),
1726
- P((w) => w !== null)
1726
+ D((w) => w !== null)
1727
1727
  ),
1728
1728
  a
1729
1729
  ), {
@@ -1736,7 +1736,7 @@ const Ze = Q(
1736
1736
  function Ho(e) {
1737
1737
  return e ? e === "smooth" ? "smooth" : "auto" : !1;
1738
1738
  }
1739
- const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1739
+ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
1740
1740
  ([
1741
1741
  { listRefresh: e, totalCount: t, fixedItemSize: o, data: n },
1742
1742
  { atBottomState: r, isAtBottom: i },
@@ -1751,81 +1751,81 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1751
1751
  const S = H(!1), k = U();
1752
1752
  let p = null;
1753
1753
  function f(m) {
1754
- G(s, {
1754
+ F(s, {
1755
1755
  align: "end",
1756
1756
  behavior: m,
1757
1757
  index: "LAST"
1758
1758
  });
1759
1759
  }
1760
- J(
1760
+ Q(
1761
1761
  x(
1762
- ae(x(A(t), Ye(1)), c),
1763
- F(A(S), i, l, w),
1764
- E(([[m, u], y, _, j, z]) => {
1765
- let N = u && j, $ = "auto";
1766
- return N && ($ = gr(y, _ || z), N = N && !!$), { followOutputBehavior: $, shouldFollow: N, totalCount: m };
1762
+ ue(x(O(t), Ye(1)), c),
1763
+ G(O(S), i, l, w),
1764
+ E(([[m, u], y, R, j, z]) => {
1765
+ let A = u && j, $ = "auto";
1766
+ return A && ($ = gr(y, R || z), A = A && !!$), { followOutputBehavior: $, shouldFollow: A, totalCount: m };
1767
1767
  }),
1768
- P(({ shouldFollow: m }) => m)
1768
+ D(({ shouldFollow: m }) => m)
1769
1769
  ),
1770
1770
  ({ followOutputBehavior: m, totalCount: u }) => {
1771
1771
  p && (p(), p = null), ce(o) ? requestAnimationFrame(() => {
1772
1772
  ce(h)("following output to ", { totalCount: u }, Ie.DEBUG), f(m);
1773
- }) : p = je(e, () => {
1773
+ }) : p = Me(e, () => {
1774
1774
  ce(h)("following output to ", { totalCount: u }, Ie.DEBUG), f(m), p = null;
1775
1775
  });
1776
1776
  }
1777
1777
  );
1778
1778
  function d(m) {
1779
- const u = je(r, (y) => {
1779
+ const u = Me(r, (y) => {
1780
1780
  m && !y.atBottom && y.notAtBottomBecause === "SIZE_INCREASED" && !p && (ce(h)("scrolling to bottom due to increased size", {}, Ie.DEBUG), f("auto"));
1781
1781
  });
1782
1782
  setTimeout(u, 100);
1783
1783
  }
1784
- J(
1784
+ Q(
1785
1785
  x(
1786
- ae(A(S), t, a),
1787
- P(([m, , u]) => m && u),
1786
+ ue(O(S), t, a),
1787
+ D(([m, , u]) => m && u),
1788
1788
  Ae(
1789
1789
  ({ value: m }, [, u]) => ({ refreshed: m === u, value: u }),
1790
1790
  { refreshed: !1, value: 0 }
1791
1791
  ),
1792
- P(({ refreshed: m }) => m),
1793
- F(S, t)
1792
+ D(({ refreshed: m }) => m),
1793
+ G(S, t)
1794
1794
  ),
1795
1795
  ([, m]) => {
1796
1796
  ce(l) && d(m !== !1);
1797
1797
  }
1798
- ), J(k, () => {
1798
+ ), Q(k, () => {
1799
1799
  d(ce(S) !== !1);
1800
- }), J(ae(A(S), r), ([m, u]) => {
1800
+ }), Q(ue(O(S), r), ([m, u]) => {
1801
1801
  m && !u.atBottom && u.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && f("auto");
1802
1802
  });
1803
- const b = H(null), R = U();
1803
+ const b = H(null), _ = U();
1804
1804
  return M(
1805
1805
  Dt(
1806
1806
  x(
1807
- A(n),
1807
+ O(n),
1808
1808
  E((m) => {
1809
1809
  var u;
1810
1810
  return (u = m == null ? void 0 : m.length) != null ? u : 0;
1811
1811
  })
1812
1812
  ),
1813
- x(A(t))
1813
+ x(O(t))
1814
1814
  ),
1815
- R
1816
- ), J(
1815
+ _
1816
+ ), Q(
1817
1817
  x(
1818
- ae(x(R, Ye(1)), c),
1819
- F(A(b), l, w, g),
1820
- E(([[m, u], y, _, j, z]) => u && _ && (y == null ? void 0 : y({ context: z, totalCount: m, scrollingInProgress: j }))),
1821
- P((m) => !!m),
1818
+ ue(x(_, Ye(1)), c),
1819
+ G(O(b), l, w, g),
1820
+ E(([[m, u], y, R, j, z]) => u && R && (y == null ? void 0 : y({ context: z, totalCount: m, scrollingInProgress: j }))),
1821
+ D((m) => !!m),
1822
1822
  De(0)
1823
1823
  ),
1824
1824
  (m) => {
1825
1825
  p && (p(), p = null), ce(o) ? requestAnimationFrame(() => {
1826
- ce(h)("scrolling into view", {}), G(v, m);
1827
- }) : p = je(e, () => {
1828
- ce(h)("scrolling into view", {}), G(v, m), p = null;
1826
+ ce(h)("scrolling into view", {}), F(v, m);
1827
+ }) : p = Me(e, () => {
1828
+ ce(h)("scrolling into view", {}), F(v, m), p = null;
1829
1829
  });
1830
1830
  }
1831
1831
  ), { autoscrollToBottom: k, followOutput: S, scrollIntoViewOnChange: b };
@@ -1841,39 +1841,39 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1841
1841
  nn,
1842
1842
  rn
1843
1843
  )
1844
- ), xr = Q(
1844
+ ), xr = ee(
1845
1845
  ([{ data: e, firstItemIndex: t, gap: o, sizes: n }, { initialTopMostItemIndex: r }, { initialItemCount: i, listState: s }, { didMount: l }]) => (M(
1846
1846
  x(
1847
1847
  l,
1848
- F(i),
1849
- P(([, c]) => c !== 0),
1850
- F(r, n, t, o, e),
1848
+ G(i),
1849
+ D(([, c]) => c !== 0),
1850
+ G(r, n, t, o, e),
1851
1851
  E(([[, c], a, h, w, g, v = []]) => tn(c, a, h, w, g, v))
1852
1852
  ),
1853
1853
  s
1854
1854
  ), {}),
1855
1855
  se(Oe, ht, Ze, qe),
1856
1856
  { singleton: !0 }
1857
- ), vr = Q(
1857
+ ), vr = ee(
1858
1858
  ([{ didMount: e }, { scrollTo: t }, { listState: o }]) => {
1859
1859
  const n = H(0);
1860
- return J(
1860
+ return Q(
1861
1861
  x(
1862
1862
  e,
1863
- F(n),
1864
- P(([, r]) => r !== 0),
1863
+ G(n),
1864
+ D(([, r]) => r !== 0),
1865
1865
  E(([, r]) => ({ top: r }))
1866
1866
  ),
1867
1867
  (r) => {
1868
- je(
1868
+ Me(
1869
1869
  x(
1870
1870
  o,
1871
1871
  Ye(1),
1872
- P((i) => i.items.length > 1)
1872
+ D((i) => i.items.length > 1)
1873
1873
  ),
1874
1874
  () => {
1875
1875
  requestAnimationFrame(() => {
1876
- G(t, r);
1876
+ F(t, r);
1877
1877
  });
1878
1878
  }
1879
1879
  );
@@ -1884,14 +1884,14 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1884
1884
  },
1885
1885
  se(qe, xe, Ze),
1886
1886
  { singleton: !0 }
1887
- ), sn = Q(
1887
+ ), sn = ee(
1888
1888
  ([{ scrollVelocity: e }]) => {
1889
1889
  const t = H(!1), o = U(), n = H(!1);
1890
1890
  return M(
1891
1891
  x(
1892
1892
  e,
1893
- F(n, t, o),
1894
- P(([r, i]) => !!i),
1893
+ G(n, t, o),
1894
+ D(([r, i]) => !!i),
1895
1895
  E(([r, i, s, l]) => {
1896
1896
  const { enter: c, exit: a } = i;
1897
1897
  if (s) {
@@ -1904,8 +1904,8 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1904
1904
  ie()
1905
1905
  ),
1906
1906
  t
1907
- ), J(
1908
- x(ae(t, e, o), F(n)),
1907
+ ), Q(
1908
+ x(ue(t, e, o), G(n)),
1909
1909
  ([[r, i, s], l]) => {
1910
1910
  r && l && l.change && l.change(i, s);
1911
1911
  }
@@ -1913,11 +1913,11 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1913
1913
  },
1914
1914
  se(gt),
1915
1915
  { singleton: !0 }
1916
- ), to = Q(([{ scrollContainerState: e, scrollTo: t }]) => {
1916
+ ), to = ee(([{ scrollContainerState: e, scrollTo: t }]) => {
1917
1917
  const o = U(), n = U(), r = U(), i = H(!1), s = H(void 0);
1918
1918
  return M(
1919
1919
  x(
1920
- ae(o, n),
1920
+ ue(o, n),
1921
1921
  E(([{ scrollHeight: l, scrollTop: c, viewportHeight: a }, { offsetTop: h }]) => ({
1922
1922
  scrollHeight: l,
1923
1923
  scrollTop: Math.max(0, c - h),
@@ -1928,7 +1928,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1928
1928
  ), M(
1929
1929
  x(
1930
1930
  t,
1931
- F(n),
1931
+ G(n),
1932
1932
  E(([l, { offsetTop: c }]) => ({
1933
1933
  ...l,
1934
1934
  top: l.top + c
@@ -1945,7 +1945,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1945
1945
  windowScrollTo: r,
1946
1946
  windowViewportRect: n
1947
1947
  };
1948
- }, se(xe)), Ir = Q(
1948
+ }, se(xe)), Ir = ee(
1949
1949
  ([
1950
1950
  { sizeRanges: e, sizes: t },
1951
1951
  { headerHeight: o, scrollTop: n },
@@ -1954,20 +1954,20 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1954
1954
  { useWindowScroll: s, windowScrollContainerState: l, windowViewportRect: c }
1955
1955
  ]) => {
1956
1956
  const a = U(), h = H(void 0), w = H(null), g = H(null);
1957
- return M(l, w), M(c, g), J(
1957
+ return M(l, w), M(c, g), Q(
1958
1958
  x(
1959
1959
  a,
1960
- F(t, n, s, w, g, o)
1960
+ G(t, n, s, w, g, o)
1961
1961
  ),
1962
1962
  ([v, S, k, p, f, d, b]) => {
1963
- const R = or(S.sizeTree);
1964
- p && f !== null && d !== null && (k = f.scrollTop - d.offsetTop), k -= b, v({ ranges: R, scrollTop: k });
1963
+ const _ = or(S.sizeTree);
1964
+ p && f !== null && d !== null && (k = f.scrollTop - d.offsetTop), k -= b, v({ ranges: _, scrollTop: k });
1965
1965
  }
1966
- ), M(x(h, P(Ut), E(Tr)), r), M(
1966
+ ), M(x(h, D(Ut), E(Tr)), r), M(
1967
1967
  x(
1968
1968
  i,
1969
- F(h),
1970
- P(([, v]) => v !== void 0),
1969
+ G(h),
1970
+ D(([, v]) => v !== void 0),
1971
1971
  ie(),
1972
1972
  E(([, v]) => v.ranges)
1973
1973
  ),
@@ -1982,12 +1982,12 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
1982
1982
  function Tr(e) {
1983
1983
  return { align: "start", index: 0, offset: e.scrollTop };
1984
1984
  }
1985
- const wr = Q(([{ topItemsIndexes: e }]) => {
1985
+ const wr = ee(([{ topItemsIndexes: e }]) => {
1986
1986
  const t = H(0);
1987
1987
  return M(
1988
1988
  x(
1989
1989
  t,
1990
- P((o) => o >= 0),
1990
+ D((o) => o >= 0),
1991
1991
  E((o) => Array.from({ length: o }).map((n, r) => r))
1992
1992
  ),
1993
1993
  e
@@ -1997,7 +1997,7 @@ function ln(e) {
1997
1997
  let t = !1, o;
1998
1998
  return () => (t || (t = !0, o = e()), o);
1999
1999
  }
2000
- const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Sr = Q(
2000
+ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Sr = ee(
2001
2001
  ([
2002
2002
  { deviation: e, scrollBy: t, scrollingInProgress: o, scrollTop: n },
2003
2003
  { isAtBottom: r, isScrolling: i, lastJumpDueToItemResize: s, scrollDirection: l },
@@ -2006,33 +2006,33 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2006
2006
  { log: v },
2007
2007
  { recalcInProgress: S }
2008
2008
  ]) => {
2009
- const k = be(
2009
+ const k = He(
2010
2010
  x(
2011
2011
  c,
2012
- F(s),
2012
+ G(s),
2013
2013
  Ae(
2014
- ([, f, d, b], [{ bottom: R, items: m, offsetBottom: u, totalCount: y }, _]) => {
2015
- const j = R + u;
2014
+ ([, f, d, b], [{ bottom: _, items: m, offsetBottom: u, totalCount: y }, R]) => {
2015
+ const j = _ + u;
2016
2016
  let z = 0;
2017
- return d === y && f.length > 0 && m.length > 0 && (m[0].originalIndex === 0 && f[0].originalIndex === 0 || (z = j - b, z !== 0 && (z += _))), [z, m, y, j];
2017
+ return d === y && f.length > 0 && m.length > 0 && (m[0].originalIndex === 0 && f[0].originalIndex === 0 || (z = j - b, z !== 0 && (z += R))), [z, m, y, j];
2018
2018
  },
2019
2019
  [0, [], 0, 0]
2020
2020
  ),
2021
- P(([f]) => f !== 0),
2022
- F(n, l, o, r, v, S),
2023
- P(([, f, d, b, , , R]) => !R && !b && f !== 0 && d === dt),
2021
+ D(([f]) => f !== 0),
2022
+ G(n, l, o, r, v, S),
2023
+ D(([, f, d, b, , , _]) => !_ && !b && f !== 0 && d === dt),
2024
2024
  E(([[f], , , , , d]) => (d("Upward scrolling compensation", { amount: f }, Ie.DEBUG), f))
2025
2025
  )
2026
2026
  );
2027
2027
  function p(f) {
2028
- f > 0 ? (G(t, { behavior: "auto", top: -f }), G(e, 0)) : (G(e, 0), G(t, { behavior: "auto", top: -f }));
2028
+ f > 0 ? (F(t, { behavior: "auto", top: -f }), F(e, 0)) : (F(e, 0), F(t, { behavior: "auto", top: -f }));
2029
2029
  }
2030
- return J(x(k, F(e, i)), ([f, d, b]) => {
2031
- b && Cr() ? G(e, d - f) : p(-f);
2032
- }), J(
2030
+ return Q(x(k, G(e, i)), ([f, d, b]) => {
2031
+ b && Cr() ? F(e, d - f) : p(-f);
2032
+ }), Q(
2033
2033
  x(
2034
- ae(pe(i, !1), e, S),
2035
- P(([f, d, b]) => !f && !b && d !== 0),
2034
+ ue(pe(i, !1), e, S),
2035
+ D(([f, d, b]) => !f && !b && d !== 0),
2036
2036
  E(([f, d]) => d),
2037
2037
  De(1)
2038
2038
  ),
@@ -2043,11 +2043,11 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2043
2043
  E((f) => ({ top: -f }))
2044
2044
  ),
2045
2045
  t
2046
- ), J(
2046
+ ), Q(
2047
2047
  x(
2048
2048
  a,
2049
- F(g, h),
2050
- E(([f, { groupIndices: d, lastSize: b, sizeTree: R }, m]) => {
2049
+ G(g, h),
2050
+ E(([f, { groupIndices: d, lastSize: b, sizeTree: _ }, m]) => {
2051
2051
  function u(y) {
2052
2052
  return y * (b + m);
2053
2053
  }
@@ -2055,28 +2055,28 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2055
2055
  return u(f);
2056
2056
  {
2057
2057
  let y = 0;
2058
- const _ = ct(R, 0);
2058
+ const R = ct(_, 0);
2059
2059
  let j = 0, z = 0;
2060
2060
  for (; j < f; ) {
2061
- j++, y += _;
2062
- let N = d.length === z + 1 ? 1 / 0 : d[z + 1] - d[z] - 1;
2063
- j + N > f && (y -= _, N = f - j + 1), j += N, y += u(N), z++;
2061
+ j++, y += R;
2062
+ let A = d.length === z + 1 ? 1 / 0 : d[z + 1] - d[z] - 1;
2063
+ j + A > f && (y -= R, A = f - j + 1), j += A, y += u(A), z++;
2064
2064
  }
2065
2065
  return y;
2066
2066
  }
2067
2067
  })
2068
2068
  ),
2069
2069
  (f) => {
2070
- G(e, f), requestAnimationFrame(() => {
2071
- G(t, { top: f }), requestAnimationFrame(() => {
2072
- G(e, 0), G(S, !1);
2070
+ F(e, f), requestAnimationFrame(() => {
2071
+ F(t, { top: f }), requestAnimationFrame(() => {
2072
+ F(e, 0), F(S, !1);
2073
2073
  });
2074
2074
  });
2075
2075
  }
2076
2076
  ), { deviation: e };
2077
2077
  },
2078
2078
  se(xe, gt, Ze, Oe, $e, Xt)
2079
- ), yr = Q(
2079
+ ), yr = ee(
2080
2080
  ([
2081
2081
  e,
2082
2082
  t,
@@ -2115,7 +2115,7 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2115
2115
  $e,
2116
2116
  nn
2117
2117
  )
2118
- ), br = Q(
2118
+ ), br = ee(
2119
2119
  ([
2120
2120
  {
2121
2121
  data: e,
@@ -2135,13 +2135,13 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2135
2135
  k,
2136
2136
  p,
2137
2137
  f,
2138
- { listState: d, topItemsIndexes: b, ...R },
2138
+ { listState: d, topItemsIndexes: b, ..._ },
2139
2139
  { scrollToIndex: m },
2140
2140
  u,
2141
2141
  { topItemCount: y },
2142
- { groupCounts: _ },
2142
+ { groupCounts: R },
2143
2143
  j
2144
- ]) => (M(R.rangeChanged, j.scrollSeekRangeChanged), M(
2144
+ ]) => (M(_.rangeChanged, j.scrollSeekRangeChanged), M(
2145
2145
  x(
2146
2146
  j.windowViewportRect,
2147
2147
  E((z) => z.visibleHeight)
@@ -2153,7 +2153,7 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2153
2153
  firstItemIndex: o,
2154
2154
  fixedItemHeight: n,
2155
2155
  gap: r,
2156
- groupCounts: _,
2156
+ groupCounts: R,
2157
2157
  initialItemFinalLocationReached: g,
2158
2158
  initialTopMostItemIndex: v,
2159
2159
  scrolledToInitialItem: S,
@@ -2171,7 +2171,7 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2171
2171
  statefulTotalCount: a,
2172
2172
  trackItemSizes: w,
2173
2173
  // exported from stateFlagsSystem
2174
- ...R,
2174
+ ..._,
2175
2175
  // the bag of IO from featureGroup1System
2176
2176
  ...j,
2177
2177
  ...k,
@@ -2206,53 +2206,53 @@ const vt = typeof document < "u" ? L.useLayoutEffect : L.useEffect;
2206
2206
  function cn(e, t, o) {
2207
2207
  const n = Object.keys(t.required || {}), r = Object.keys(t.optional || {}), i = Object.keys(t.methods || {}), s = Object.keys(t.events || {}), l = L.createContext({});
2208
2208
  function c(p, f) {
2209
- p.propsReady && G(p.propsReady, !1);
2209
+ p.propsReady && F(p.propsReady, !1);
2210
2210
  for (const d of n) {
2211
2211
  const b = p[t.required[d]];
2212
- G(b, f[d]);
2212
+ F(b, f[d]);
2213
2213
  }
2214
2214
  for (const d of r)
2215
2215
  if (d in f) {
2216
2216
  const b = p[t.optional[d]];
2217
- G(b, f[d]);
2217
+ F(b, f[d]);
2218
2218
  }
2219
- p.propsReady && G(p.propsReady, !0);
2219
+ p.propsReady && F(p.propsReady, !0);
2220
2220
  }
2221
2221
  function a(p) {
2222
2222
  return i.reduce((f, d) => (f[d] = (b) => {
2223
- const R = p[t.methods[d]];
2224
- G(R, b);
2223
+ const _ = p[t.methods[d]];
2224
+ F(_, b);
2225
2225
  }, f), {});
2226
2226
  }
2227
2227
  function h(p) {
2228
2228
  return s.reduce((f, d) => (f[d] = Dn(p[t.events[d]]), f), {});
2229
2229
  }
2230
2230
  const w = L.forwardRef((p, f) => {
2231
- const { children: d, ...b } = p, [R] = L.useState(() => Rt(Gn(e), (y) => {
2231
+ const { children: d, ...b } = p, [_] = L.useState(() => _t(Fn(e), (y) => {
2232
2232
  c(y, b);
2233
- })), [m] = L.useState(xo(h, R));
2233
+ })), [m] = L.useState(xo(h, _));
2234
2234
  vt(() => {
2235
2235
  for (const y of s)
2236
- y in b && J(m[y], b[y]);
2236
+ y in b && Q(m[y], b[y]);
2237
2237
  return () => {
2238
2238
  Object.values(m).map(Kt);
2239
2239
  };
2240
- }, [b, m, R]), vt(() => {
2241
- c(R, b);
2242
- }), L.useImperativeHandle(f, po(a(R)));
2240
+ }, [b, m, _]), vt(() => {
2241
+ c(_, b);
2242
+ }), L.useImperativeHandle(f, po(a(_)));
2243
2243
  const u = o;
2244
- return /* @__PURE__ */ I.jsx(l.Provider, { value: R, children: o ? /* @__PURE__ */ I.jsx(u, { ...Hr([...n, ...r, ...s], b), children: d }) : d });
2244
+ return /* @__PURE__ */ I.jsx(l.Provider, { value: _, children: o ? /* @__PURE__ */ I.jsx(u, { ...Hr([...n, ...r, ...s], b), children: d }) : d });
2245
2245
  }), g = (p) => {
2246
2246
  const f = L.useContext(l);
2247
2247
  return L.useCallback(
2248
2248
  (d) => {
2249
- G(f[p], d);
2249
+ F(f[p], d);
2250
2250
  },
2251
2251
  [f, p]
2252
2252
  );
2253
2253
  }, v = (p) => {
2254
2254
  const f = L.useContext(l)[p], d = L.useCallback(
2255
- (b) => J(f, b),
2255
+ (b) => Q(f, b),
2256
2256
  [f]
2257
2257
  );
2258
2258
  return L.useSyncExternalStore(
@@ -2263,8 +2263,8 @@ function cn(e, t, o) {
2263
2263
  }, S = (p) => {
2264
2264
  const f = L.useContext(l)[p], [d, b] = L.useState(xo(ce, f));
2265
2265
  return vt(
2266
- () => J(f, (R) => {
2267
- R !== d && b(po(R));
2266
+ () => Q(f, (_) => {
2267
+ _ !== d && b(po(_));
2268
2268
  }),
2269
2269
  [f, d]
2270
2270
  ), d;
@@ -2273,7 +2273,7 @@ function cn(e, t, o) {
2273
2273
  Component: w,
2274
2274
  useEmitter: (p, f) => {
2275
2275
  const d = L.useContext(l)[p];
2276
- vt(() => J(d, f), [f, d]);
2276
+ vt(() => Q(d, f), [f, d]);
2277
2277
  },
2278
2278
  useEmitterValue: k,
2279
2279
  usePublisher: g
@@ -2320,9 +2320,9 @@ function mn(e, t, o, n = mt, r, i) {
2320
2320
  const S = g.behavior === "smooth";
2321
2321
  let k, p, f;
2322
2322
  Nt(v) ? (p = Math.max(
2323
- Ge(v.document.documentElement, i ? "width" : "height"),
2323
+ Fe(v.document.documentElement, i ? "width" : "height"),
2324
2324
  i ? v.document.documentElement.scrollWidth : v.document.documentElement.scrollHeight
2325
- ), k = i ? v.innerWidth : v.innerHeight, f = i ? window.scrollX : window.scrollY) : (p = v[i ? "scrollWidth" : "scrollHeight"], k = Ge(v, i ? "width" : "height"), f = v[i ? "scrollLeft" : "scrollTop"]);
2325
+ ), k = i ? v.innerWidth : v.innerHeight, f = i ? window.scrollX : window.scrollY) : (p = v[i ? "scrollWidth" : "scrollHeight"], k = Fe(v, i ? "width" : "height"), f = v[i ? "scrollLeft" : "scrollTop"]);
2326
2326
  const d = p - k;
2327
2327
  if (g.top = Math.ceil(Math.max(Math.min(d, g.top), 0)), en(k, p) || g.top === f) {
2328
2328
  e({ scrollHeight: p, scrollTop: f, viewportHeight: k }), S && t(!0);
@@ -2346,7 +2346,7 @@ const At = "-webkit-sticky", ko = "sticky", oo = ln(() => {
2346
2346
  function fn(e) {
2347
2347
  return e;
2348
2348
  }
2349
- const _r = /* @__PURE__ */ Q(() => {
2349
+ const Rr = /* @__PURE__ */ ee(() => {
2350
2350
  const e = H((l) => `Item ${l}`), t = H((l) => `Group ${l}`), o = H({}), n = H(fn), r = H("div"), i = H(mt), s = (l, c = null) => pe(
2351
2351
  x(
2352
2352
  o,
@@ -2372,11 +2372,11 @@ const _r = /* @__PURE__ */ Q(() => {
2372
2372
  ScrollSeekPlaceholder: s("ScrollSeekPlaceholder"),
2373
2373
  TopItemListComponent: s("TopItemList")
2374
2374
  };
2375
- }), Rr = /* @__PURE__ */ Q(
2375
+ }), _r = /* @__PURE__ */ ee(
2376
2376
  ([e, t]) => ({ ...e, ...t }),
2377
- se(br, _r)
2378
- ), Er = ({ height: e }) => /* @__PURE__ */ I.jsx("div", { style: { height: e } }), zr = { overflowAnchor: "none", position: oo(), zIndex: 1 }, hn = { overflowAnchor: "none" }, Br = { ...hn, display: "inline-block", height: "100%" }, _o = /* @__PURE__ */ L.memo(function({ showTopList: e = !1 }) {
2379
- const t = V("listState"), o = Ee("sizeRanges"), n = V("useWindowScroll"), r = V("customScrollParent"), i = Ee("windowScrollContainerState"), s = Ee("scrollContainerState"), l = r || n ? i : s, c = V("itemContent"), a = V("context"), h = V("groupContent"), w = V("trackItemSizes"), g = V("itemSize"), v = V("log"), S = Ee("gap"), k = V("horizontalDirection"), { callbackRef: p } = qn(
2377
+ se(br, Rr)
2378
+ ), Er = ({ height: e }) => /* @__PURE__ */ I.jsx("div", { style: { height: e } }), zr = { overflowAnchor: "none", position: oo(), zIndex: 1 }, hn = { overflowAnchor: "none" }, Br = { ...hn, display: "inline-block", height: "100%" }, Ro = /* @__PURE__ */ L.memo(function({ showTopList: e = !1 }) {
2379
+ const t = V("listState"), o = ze("sizeRanges"), n = V("useWindowScroll"), r = V("customScrollParent"), i = ze("windowScrollContainerState"), s = ze("scrollContainerState"), l = r || n ? i : s, c = V("itemContent"), a = V("context"), h = V("groupContent"), w = V("trackItemSizes"), g = V("itemSize"), v = V("log"), S = ze("gap"), k = V("horizontalDirection"), { callbackRef: p } = qn(
2380
2380
  o,
2381
2381
  g,
2382
2382
  w,
@@ -2390,62 +2390,62 @@ const _r = /* @__PURE__ */ Q(() => {
2390
2390
  no("deviation", (B) => {
2391
2391
  f !== B && d(B);
2392
2392
  });
2393
- const b = V("EmptyPlaceholder"), R = V("ScrollSeekPlaceholder") || Er, m = V("ListComponent"), u = V("ItemComponent"), y = V("GroupComponent"), _ = V("computeItemKey"), j = V("isSeeking"), z = V("groupIndices").length > 0, N = V("alignToBottom"), $ = V("initialItemFinalLocationReached"), ee = e ? {} : {
2393
+ const b = V("EmptyPlaceholder"), _ = V("ScrollSeekPlaceholder") || Er, m = V("ListComponent"), u = V("ItemComponent"), y = V("GroupComponent"), R = V("computeItemKey"), j = V("isSeeking"), z = V("groupIndices").length > 0, A = V("alignToBottom"), $ = V("initialItemFinalLocationReached"), te = e ? {} : {
2394
2394
  boxSizing: "border-box",
2395
2395
  ...k ? {
2396
2396
  display: "inline-block",
2397
2397
  height: "100%",
2398
- marginLeft: f !== 0 ? f : N ? "auto" : 0,
2398
+ marginLeft: f !== 0 ? f : A ? "auto" : 0,
2399
2399
  paddingLeft: t.offsetTop,
2400
2400
  paddingRight: t.offsetBottom,
2401
2401
  whiteSpace: "nowrap"
2402
2402
  } : {
2403
- marginTop: f !== 0 ? f : N ? "auto" : 0,
2403
+ marginTop: f !== 0 ? f : A ? "auto" : 0,
2404
2404
  paddingBottom: t.offsetBottom,
2405
2405
  paddingTop: t.offsetTop
2406
2406
  },
2407
2407
  ...$ ? {} : { visibility: "hidden" }
2408
2408
  };
2409
- return !e && t.totalCount === 0 && b ? /* @__PURE__ */ I.jsx(b, { ...he(b, a) }) : /* @__PURE__ */ I.jsx(
2409
+ return !e && t.totalCount === 0 && b ? /* @__PURE__ */ I.jsx(b, { ...ge(b, a) }) : /* @__PURE__ */ I.jsx(
2410
2410
  m,
2411
2411
  {
2412
- ...he(m, a),
2412
+ ...ge(m, a),
2413
2413
  "data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list",
2414
2414
  ref: p,
2415
- style: ee,
2415
+ style: te,
2416
2416
  children: (e ? t.topItems : t.items).map((B) => {
2417
- const K = B.originalIndex, Y = _(K + t.firstItemIndex, B.data, a);
2417
+ const Y = B.originalIndex, X = R(Y + t.firstItemIndex, B.data, a);
2418
2418
  return j ? /* @__PURE__ */ Tt(
2419
- R,
2419
+ _,
2420
2420
  {
2421
- ...he(R, a),
2421
+ ...ge(_, a),
2422
2422
  height: B.size,
2423
2423
  index: B.index,
2424
- key: Y,
2424
+ key: X,
2425
2425
  type: B.type || "item",
2426
2426
  ...B.type === "group" ? {} : { groupIndex: B.groupIndex }
2427
2427
  }
2428
2428
  ) : B.type === "group" ? /* @__PURE__ */ Tt(
2429
2429
  y,
2430
2430
  {
2431
- ...he(y, a),
2432
- "data-index": K,
2431
+ ...ge(y, a),
2432
+ "data-index": Y,
2433
2433
  "data-item-index": B.index,
2434
2434
  "data-known-size": B.size,
2435
- key: Y,
2435
+ key: X,
2436
2436
  style: zr
2437
2437
  },
2438
2438
  h(B.index, a)
2439
2439
  ) : /* @__PURE__ */ Tt(
2440
2440
  u,
2441
2441
  {
2442
- ...he(u, a),
2442
+ ...ge(u, a),
2443
2443
  ...Wr(u, B.data),
2444
- "data-index": K,
2444
+ "data-index": Y,
2445
2445
  "data-item-group-index": B.groupIndex,
2446
2446
  "data-item-index": B.index,
2447
2447
  "data-known-size": B.size,
2448
- key: Y,
2448
+ key: X,
2449
2449
  style: k ? Br : hn
2450
2450
  },
2451
2451
  z ? c(B.index, B.groupIndex, B.data, a) : c(B.index, B.data, a)
@@ -2475,7 +2475,7 @@ const _r = /* @__PURE__ */ Q(() => {
2475
2475
  width: "100%",
2476
2476
  zIndex: 1
2477
2477
  };
2478
- function he(e, t) {
2478
+ function ge(e, t) {
2479
2479
  if (typeof e != "string")
2480
2480
  return { context: t };
2481
2481
  }
@@ -2483,29 +2483,29 @@ function Wr(e, t) {
2483
2483
  return { item: typeof e == "string" ? void 0 : t };
2484
2484
  }
2485
2485
  const Nr = /* @__PURE__ */ L.memo(function() {
2486
- const e = V("HeaderComponent"), t = Ee("headerHeight"), o = V("HeaderFooterTag"), n = Xe(
2486
+ const e = V("HeaderComponent"), t = ze("headerHeight"), o = V("HeaderFooterTag"), n = Xe(
2487
2487
  L.useMemo(
2488
2488
  () => (i) => {
2489
- t(Ge(i, "height"));
2489
+ t(Fe(i, "height"));
2490
2490
  },
2491
2491
  [t]
2492
2492
  ),
2493
2493
  !0,
2494
2494
  V("skipAnimationFrameInResizeObserver")
2495
2495
  ), r = V("context");
2496
- return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...he(e, r) }) }) : null;
2496
+ return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
2497
2497
  }), Ar = /* @__PURE__ */ L.memo(function() {
2498
- const e = V("FooterComponent"), t = Ee("footerHeight"), o = V("HeaderFooterTag"), n = Xe(
2498
+ const e = V("FooterComponent"), t = ze("footerHeight"), o = V("HeaderFooterTag"), n = Xe(
2499
2499
  L.useMemo(
2500
2500
  () => (i) => {
2501
- t(Ge(i, "height"));
2501
+ t(Fe(i, "height"));
2502
2502
  },
2503
2503
  [t]
2504
2504
  ),
2505
2505
  !0,
2506
2506
  V("skipAnimationFrameInResizeObserver")
2507
2507
  ), r = V("context");
2508
- return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...he(e, r) }) }) : null;
2508
+ return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
2509
2509
  });
2510
2510
  function gn({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
2511
2511
  return L.memo(function({ children: n, style: r, context: i, ...s }) {
@@ -2526,7 +2526,7 @@ function gn({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
2526
2526
  style: { ...w ? jr : Lr, ...r },
2527
2527
  tabIndex: 0,
2528
2528
  ...s,
2529
- ...he(c, i),
2529
+ ...ge(c, i),
2530
2530
  children: n
2531
2531
  }
2532
2532
  );
@@ -2553,22 +2553,22 @@ function pn({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
2553
2553
  "data-virtuoso-scroller": !0,
2554
2554
  style: { position: "relative", ...r, ...h !== 0 ? { height: h + w } : {} },
2555
2555
  ...s,
2556
- ...he(c, i),
2556
+ ...ge(c, i),
2557
2557
  children: n
2558
2558
  }
2559
2559
  );
2560
2560
  });
2561
2561
  }
2562
2562
  const Or = ({ children: e }) => {
2563
- const t = L.useContext(an), o = Ee("viewportHeight"), n = Ee("fixedItemHeight"), r = V("alignToBottom"), i = V("horizontalDirection"), s = L.useMemo(
2564
- () => Po(o, (c) => Ge(c, i ? "width" : "height")),
2563
+ const t = L.useContext(an), o = ze("viewportHeight"), n = ze("fixedItemHeight"), r = V("alignToBottom"), i = V("horizontalDirection"), s = L.useMemo(
2564
+ () => Po(o, (c) => Fe(c, i ? "width" : "height")),
2565
2565
  [o, i]
2566
2566
  ), l = Xe(s, !0, V("skipAnimationFrameInResizeObserver"));
2567
2567
  return L.useEffect(() => {
2568
2568
  t && (o(t.viewportHeight), n(t.itemHeight));
2569
2569
  }, [t, o, n]), /* @__PURE__ */ I.jsx("div", { "data-viewport-type": "element", ref: l, style: Bt(r), children: e });
2570
2570
  }, Pr = ({ children: e }) => {
2571
- const t = L.useContext(an), o = Ee("windowViewportRect"), n = Ee("fixedItemHeight"), r = V("customScrollParent"), i = Vo(
2571
+ const t = L.useContext(an), o = ze("windowViewportRect"), n = ze("fixedItemHeight"), r = V("customScrollParent"), i = Vo(
2572
2572
  o,
2573
2573
  r,
2574
2574
  V("skipAnimationFrameInResizeObserver")
@@ -2578,24 +2578,24 @@ const Or = ({ children: e }) => {
2578
2578
  }, [t, o, n]), /* @__PURE__ */ I.jsx("div", { "data-viewport-type": "window", ref: i, style: Bt(s), children: e });
2579
2579
  }, Dr = ({ children: e }) => {
2580
2580
  const t = V("TopItemListComponent") || "div", o = V("headerHeight"), n = { ...Mr, marginTop: `${o}px` }, r = V("context");
2581
- return /* @__PURE__ */ I.jsx(t, { style: n, ...he(t, r), children: e });
2581
+ return /* @__PURE__ */ I.jsx(t, { style: n, ...ge(t, r), children: e });
2582
2582
  }, Vr = /* @__PURE__ */ L.memo(function(e) {
2583
2583
  const t = V("useWindowScroll"), o = V("topItemsIndexes").length > 0, n = V("customScrollParent"), r = V("context");
2584
- return /* @__PURE__ */ I.jsxs(n || t ? $r : Fr, { ...e, context: r, children: [
2585
- o && /* @__PURE__ */ I.jsx(Dr, { children: /* @__PURE__ */ I.jsx(_o, { showTopList: !0 }) }),
2584
+ return /* @__PURE__ */ I.jsxs(n || t ? $r : Gr, { ...e, context: r, children: [
2585
+ o && /* @__PURE__ */ I.jsx(Dr, { children: /* @__PURE__ */ I.jsx(Ro, { showTopList: !0 }) }),
2586
2586
  /* @__PURE__ */ I.jsxs(n || t ? Pr : Or, { children: [
2587
2587
  /* @__PURE__ */ I.jsx(Nr, {}),
2588
- /* @__PURE__ */ I.jsx(_o, {}),
2588
+ /* @__PURE__ */ I.jsx(Ro, {}),
2589
2589
  /* @__PURE__ */ I.jsx(Ar, {})
2590
2590
  ] })
2591
2591
  ] });
2592
2592
  }), {
2593
- Component: Gr,
2593
+ Component: Fr,
2594
2594
  useEmitter: no,
2595
2595
  useEmitterValue: V,
2596
- usePublisher: Ee
2596
+ usePublisher: ze
2597
2597
  } = /* @__PURE__ */ cn(
2598
- Rr,
2598
+ _r,
2599
2599
  {
2600
2600
  required: {},
2601
2601
  optional: {
@@ -2653,9 +2653,9 @@ const Or = ({ children: e }) => {
2653
2653
  }
2654
2654
  },
2655
2655
  Vr
2656
- ), Fr = /* @__PURE__ */ gn({ useEmitter: no, useEmitterValue: V, usePublisher: Ee }), $r = /* @__PURE__ */ pn({ useEmitter: no, useEmitterValue: V, usePublisher: Ee }), qr = Gr;
2656
+ ), Gr = /* @__PURE__ */ gn({ useEmitter: no, useEmitterValue: V, usePublisher: ze }), $r = /* @__PURE__ */ pn({ useEmitter: no, useEmitterValue: V, usePublisher: ze }), qr = Fr;
2657
2657
  oo();
2658
- const Ro = {
2658
+ const _o = {
2659
2659
  bottom: 0,
2660
2660
  itemHeight: 0,
2661
2661
  items: [],
@@ -2687,55 +2687,55 @@ function It(e, t) {
2687
2687
  function Yr(e, t) {
2688
2688
  return e && e.column === t.column && e.row === t.row;
2689
2689
  }
2690
- const Xr = /* @__PURE__ */ Q(
2690
+ const Xr = /* @__PURE__ */ ee(
2691
2691
  ([
2692
2692
  { increaseViewportBy: e, listBoundary: t, overscan: o, visibleRange: n },
2693
2693
  { footerHeight: r, headerHeight: i, scrollBy: s, scrollContainerState: l, scrollTo: c, scrollTop: a, smoothScrollTargetReached: h, viewportHeight: w },
2694
2694
  g,
2695
2695
  v,
2696
2696
  { didMount: S, propsReady: k },
2697
- { customScrollParent: p, useWindowScroll: f, windowScrollContainerState: d, windowScrollTo: b, windowViewportRect: R },
2697
+ { customScrollParent: p, useWindowScroll: f, windowScrollContainerState: d, windowScrollTo: b, windowViewportRect: _ },
2698
2698
  m
2699
2699
  ]) => {
2700
- const u = H(0), y = H(0), _ = H(Ro), j = H({ height: 0, width: 0 }), z = H({ height: 0, width: 0 }), N = U(), $ = U(), ee = H(0), B = H(null), K = H({ column: 0, row: 0 }), Y = U(), ve = U(), Te = H(!1), we = H(0), fe = H(!0), me = H(!1), Be = H(!1);
2701
- J(
2700
+ const u = H(0), y = H(0), R = H(_o), j = H({ height: 0, width: 0 }), z = H({ height: 0, width: 0 }), A = U(), $ = U(), te = H(0), B = H(null), Y = H({ column: 0, row: 0 }), X = U(), ve = U(), Te = H(!1), we = H(0), he = H(!0), fe = H(!1), Le = H(!1);
2701
+ Q(
2702
2702
  x(
2703
2703
  S,
2704
- F(we),
2705
- P(([T, O]) => !!O)
2704
+ G(we),
2705
+ D(([T, P]) => !!P)
2706
2706
  ),
2707
2707
  () => {
2708
- G(fe, !1);
2708
+ F(he, !1);
2709
2709
  }
2710
- ), J(
2710
+ ), Q(
2711
2711
  x(
2712
- ae(S, fe, z, j, we, me),
2713
- P(([T, O, te, ue, , C]) => T && !O && te.height !== 0 && ue.height !== 0 && !C)
2712
+ ue(S, he, z, j, we, fe),
2713
+ D(([T, P, oe, de, , C]) => T && !P && oe.height !== 0 && de.height !== 0 && !C)
2714
2714
  ),
2715
2715
  ([, , , , T]) => {
2716
- G(me, !0), Jt(1, () => {
2717
- G(N, T);
2718
- }), je(x(a), () => {
2719
- G(t, [0, 0]), G(fe, !0);
2716
+ F(fe, !0), Jt(1, () => {
2717
+ F(A, T);
2718
+ }), Me(x(a), () => {
2719
+ F(t, [0, 0]), F(he, !0);
2720
2720
  });
2721
2721
  }
2722
2722
  ), M(
2723
2723
  x(
2724
2724
  ve,
2725
- P((T) => T != null && T.scrollTop > 0),
2725
+ D((T) => T != null && T.scrollTop > 0),
2726
2726
  Ne(0)
2727
2727
  ),
2728
2728
  y
2729
- ), J(
2729
+ ), Q(
2730
2730
  x(
2731
2731
  S,
2732
- F(ve),
2733
- P(([, T]) => T != null)
2732
+ G(ve),
2733
+ D(([, T]) => T != null)
2734
2734
  ),
2735
2735
  ([, T]) => {
2736
- T && (G(j, T.viewport), G(z, T.item), G(K, T.gap), T.scrollTop > 0 && (G(Te, !0), je(x(a, Ye(1)), (O) => {
2737
- G(Te, !1);
2738
- }), G(c, { top: T.scrollTop })));
2736
+ T && (F(j, T.viewport), F(z, T.item), F(Y, T.gap), T.scrollTop > 0 && (F(Te, !0), Me(x(a, Ye(1)), (P) => {
2737
+ F(Te, !1);
2738
+ }), F(c, { top: T.scrollTop })));
2739
2739
  }
2740
2740
  ), M(
2741
2741
  x(
@@ -2745,77 +2745,77 @@ const Xr = /* @__PURE__ */ Q(
2745
2745
  w
2746
2746
  ), M(
2747
2747
  x(
2748
- ae(
2749
- A(j, It),
2750
- A(z, It),
2751
- A(K, (T, O) => T && T.column === O.column && T.row === O.row),
2752
- A(a)
2748
+ ue(
2749
+ O(j, It),
2750
+ O(z, It),
2751
+ O(Y, (T, P) => T && T.column === P.column && T.row === P.row),
2752
+ O(a)
2753
2753
  ),
2754
- E(([T, O, te, ue]) => ({
2755
- gap: te,
2756
- item: O,
2757
- scrollTop: ue,
2754
+ E(([T, P, oe, de]) => ({
2755
+ gap: oe,
2756
+ item: P,
2757
+ scrollTop: de,
2758
2758
  viewport: T
2759
2759
  }))
2760
2760
  ),
2761
- Y
2761
+ X
2762
2762
  ), M(
2763
2763
  x(
2764
- ae(
2765
- A(u),
2764
+ ue(
2765
+ O(u),
2766
2766
  n,
2767
- A(K, Yr),
2768
- A(z, It),
2769
- A(j, It),
2770
- A(B),
2771
- A(y),
2772
- A(Te),
2773
- A(fe),
2774
- A(we)
2767
+ O(Y, Yr),
2768
+ O(z, It),
2769
+ O(j, It),
2770
+ O(B),
2771
+ O(y),
2772
+ O(Te),
2773
+ O(he),
2774
+ O(we)
2775
2775
  ),
2776
- P(([, , , , , , , T]) => !T),
2776
+ D(([, , , , , , , T]) => !T),
2777
2777
  E(
2778
2778
  ([
2779
2779
  T,
2780
- [O, te],
2781
- ue,
2780
+ [P, oe],
2781
+ de,
2782
2782
  C,
2783
2783
  W,
2784
- X,
2785
- D,
2784
+ K,
2785
+ N,
2786
2786
  ,
2787
2787
  q,
2788
- oe
2788
+ J
2789
2789
  ]) => {
2790
- const { column: Z, row: ge } = ue, { height: We, width: Pe } = C, { width: _e } = W;
2791
- if (D === 0 && (T === 0 || _e === 0))
2792
- return Ro;
2790
+ const { column: Z, row: ae } = de, { height: Se, width: Pe } = C, { width: _e } = W;
2791
+ if (N === 0 && (T === 0 || _e === 0))
2792
+ return _o;
2793
2793
  if (Pe === 0) {
2794
- const co = Qt(oe, T), Tn = co + Math.max(D - 1, 0);
2795
- return Kr(Bo(co, Tn, X));
2794
+ const co = Qt(J, T), Tn = co + Math.max(N - 1, 0);
2795
+ return Kr(Bo(co, Tn, K));
2796
2796
  }
2797
- const Re = xn(_e, Pe, Z);
2797
+ const Ee = xn(_e, Pe, Z);
2798
2798
  let Je, Ue;
2799
- q ? O === 0 && te === 0 && D > 0 ? (Je = 0, Ue = D - 1) : (Je = Re * kt((O + ge) / (We + ge)), Ue = Re * Eo((te + ge) / (We + ge)) - 1, Ue = Ot(T - 1, st(Ue, Re - 1)), Je = Ot(Ue, st(0, Je))) : (Je = 0, Ue = -1);
2800
- const ro = Bo(Je, Ue, X), { bottom: io, top: so } = Lo(W, ue, C, ro), lo = Eo(T / Re), In = lo * We + (lo - 1) * ge - io;
2801
- return { bottom: io, itemHeight: We, items: ro, itemWidth: Pe, offsetBottom: In, offsetTop: so, top: so };
2799
+ q ? P === 0 && oe === 0 && N > 0 ? (Je = 0, Ue = N - 1) : (Je = Ee * kt((P + ae) / (Se + ae)), Ue = Ee * Eo((oe + ae) / (Se + ae)) - 1, Ue = Ot(T - 1, st(Ue, Ee - 1)), Je = Ot(Ue, st(0, Je))) : (Je = 0, Ue = -1);
2800
+ const ro = Bo(Je, Ue, K), { bottom: io, top: so } = Lo(W, de, C, ro), lo = Eo(T / Ee), In = lo * Se + (lo - 1) * ae - io;
2801
+ return { bottom: io, itemHeight: Se, items: ro, itemWidth: Pe, offsetBottom: In, offsetTop: so, top: so };
2802
2802
  }
2803
2803
  )
2804
2804
  ),
2805
- _
2805
+ R
2806
2806
  ), M(
2807
2807
  x(
2808
2808
  B,
2809
- P((T) => T !== null),
2809
+ D((T) => T !== null),
2810
2810
  E((T) => T.length)
2811
2811
  ),
2812
2812
  u
2813
2813
  ), M(
2814
2814
  x(
2815
- ae(j, z, _, K),
2816
- P(([T, O, { items: te }]) => te.length > 0 && O.height !== 0 && T.height !== 0),
2817
- E(([T, O, { items: te }, ue]) => {
2818
- const { bottom: C, top: W } = Lo(T, ue, O, te);
2815
+ ue(j, z, R, Y),
2816
+ D(([T, P, { items: oe }]) => oe.length > 0 && P.height !== 0 && T.height !== 0),
2817
+ E(([T, P, { items: oe }, de]) => {
2818
+ const { bottom: C, top: W } = Lo(T, de, P, oe);
2819
2819
  return [W, C];
2820
2820
  }),
2821
2821
  ie(at)
@@ -2826,35 +2826,35 @@ const Xr = /* @__PURE__ */ Q(
2826
2826
  M(
2827
2827
  x(
2828
2828
  a,
2829
- F(Ce),
2830
- E(([T, O]) => O || T !== 0)
2829
+ G(Ce),
2830
+ E(([T, P]) => P || T !== 0)
2831
2831
  ),
2832
2832
  Ce
2833
2833
  );
2834
- const Ve = be(
2834
+ const Ve = He(
2835
2835
  x(
2836
- ae(_, u),
2837
- P(([{ items: T }]) => T.length > 0),
2838
- F(Ce),
2839
- P(([[T, O], te]) => {
2840
- const ue = T.items[T.items.length - 1].index === O - 1;
2841
- return (te || T.bottom > 0 && T.itemHeight > 0 && T.offsetBottom === 0 && T.items.length === O) && ue;
2836
+ ue(R, u),
2837
+ D(([{ items: T }]) => T.length > 0),
2838
+ G(Ce),
2839
+ D(([[T, P], oe]) => {
2840
+ const de = T.items[T.items.length - 1].index === P - 1;
2841
+ return (oe || T.bottom > 0 && T.itemHeight > 0 && T.offsetBottom === 0 && T.items.length === P) && de;
2842
2842
  }),
2843
2843
  E(([[, T]]) => T - 1),
2844
2844
  ie()
2845
2845
  )
2846
- ), Le = be(
2846
+ ), je = He(
2847
2847
  x(
2848
- A(_),
2849
- P(({ items: T }) => T.length > 0 && T[0].index === 0),
2848
+ O(R),
2849
+ D(({ items: T }) => T.length > 0 && T[0].index === 0),
2850
2850
  Ne(0),
2851
2851
  ie()
2852
2852
  )
2853
- ), He = be(
2853
+ ), ke = He(
2854
2854
  x(
2855
- A(_),
2856
- F(Te),
2857
- P(([{ items: T }, O]) => T.length > 0 && !O),
2855
+ O(R),
2856
+ G(Te),
2857
+ D(([{ items: T }, P]) => T.length > 0 && !P),
2858
2858
  E(([{ items: T }]) => ({
2859
2859
  endIndex: T[T.length - 1].index,
2860
2860
  startIndex: T[0].index
@@ -2863,30 +2863,30 @@ const Xr = /* @__PURE__ */ Q(
2863
2863
  De(0)
2864
2864
  )
2865
2865
  );
2866
- M(He, v.scrollSeekRangeChanged), M(
2866
+ M(ke, v.scrollSeekRangeChanged), M(
2867
2867
  x(
2868
- N,
2869
- F(j, z, u, K),
2870
- E(([T, O, te, ue, C]) => {
2871
- const W = Qo(T), { align: X, behavior: D, offset: q } = W;
2872
- let oe = W.index;
2873
- oe === "LAST" && (oe = ue - 1), oe = st(0, oe, Ot(ue - 1, oe));
2874
- let Z = qt(O, C, te, oe);
2875
- return X === "end" ? Z = zo(Z - O.height + te.height) : X === "center" && (Z = zo(Z - O.height / 2 + te.height / 2)), q && (Z += q), { behavior: D, top: Z };
2868
+ A,
2869
+ G(j, z, u, Y),
2870
+ E(([T, P, oe, de, C]) => {
2871
+ const W = Qo(T), { align: K, behavior: N, offset: q } = W;
2872
+ let J = W.index;
2873
+ J === "LAST" && (J = de - 1), J = st(0, J, Ot(de - 1, J));
2874
+ let Z = qt(P, C, oe, J);
2875
+ return K === "end" ? Z = zo(Z - P.height + oe.height) : K === "center" && (Z = zo(Z - P.height / 2 + oe.height / 2)), q && (Z += q), { behavior: N, top: Z };
2876
2876
  })
2877
2877
  ),
2878
2878
  c
2879
2879
  );
2880
- const ke = pe(
2880
+ const Re = pe(
2881
2881
  x(
2882
- _,
2882
+ R,
2883
2883
  E((T) => T.offsetBottom + T.bottom)
2884
2884
  ),
2885
2885
  0
2886
2886
  );
2887
2887
  return M(
2888
2888
  x(
2889
- R,
2889
+ _,
2890
2890
  E((T) => ({ height: T.visibleHeight, width: T.visibleWidth }))
2891
2891
  ),
2892
2892
  j
@@ -2894,9 +2894,9 @@ const Xr = /* @__PURE__ */ Q(
2894
2894
  customScrollParent: p,
2895
2895
  // input
2896
2896
  data: B,
2897
- deviation: ee,
2897
+ deviation: te,
2898
2898
  footerHeight: r,
2899
- gap: K,
2899
+ gap: Y,
2900
2900
  headerHeight: i,
2901
2901
  increaseViewportBy: e,
2902
2902
  initialItemCount: y,
@@ -2907,7 +2907,7 @@ const Xr = /* @__PURE__ */ Q(
2907
2907
  scrollContainerState: l,
2908
2908
  scrollHeight: $,
2909
2909
  scrollTo: c,
2910
- scrollToIndex: N,
2910
+ scrollToIndex: A,
2911
2911
  scrollTop: a,
2912
2912
  smoothScrollTargetReached: h,
2913
2913
  totalCount: u,
@@ -2915,19 +2915,19 @@ const Xr = /* @__PURE__ */ Q(
2915
2915
  viewportDimensions: j,
2916
2916
  windowScrollContainerState: d,
2917
2917
  windowScrollTo: b,
2918
- windowViewportRect: R,
2918
+ windowViewportRect: _,
2919
2919
  ...v,
2920
2920
  // output
2921
- gridState: _,
2922
- horizontalDirection: Be,
2921
+ gridState: R,
2922
+ horizontalDirection: Le,
2923
2923
  initialTopMostItemIndex: we,
2924
- totalListHeight: ke,
2924
+ totalListHeight: Re,
2925
2925
  ...g,
2926
2926
  endReached: Ve,
2927
2927
  propsReady: k,
2928
- rangeChanged: He,
2929
- startReached: Le,
2930
- stateChanged: Y,
2928
+ rangeChanged: ke,
2929
+ startReached: je,
2930
+ stateChanged: X,
2931
2931
  stateRestoreInProgress: Te,
2932
2932
  ...m
2933
2933
  };
@@ -2948,7 +2948,7 @@ function qt(e, t, o, n) {
2948
2948
  const r = xn(e.width, o.width, t.column), i = kt(n / r), s = i * o.height + st(0, i - 1) * t.row;
2949
2949
  return s > 0 ? s + t.row : s;
2950
2950
  }
2951
- const Zr = /* @__PURE__ */ Q(() => {
2951
+ const Zr = /* @__PURE__ */ ee(() => {
2952
2952
  const e = H((w) => `Item ${w}`), t = H({}), o = H(null), n = H("virtuoso-grid-item"), r = H("virtuoso-grid-list"), i = H(fn), s = H("div"), l = H(mt), c = (w, g = null) => pe(
2953
2953
  x(
2954
2954
  t,
@@ -2957,7 +2957,7 @@ const Zr = /* @__PURE__ */ Q(() => {
2957
2957
  ),
2958
2958
  g
2959
2959
  ), a = H(!1), h = H(!1);
2960
- return M(A(h), a), {
2960
+ return M(O(h), a), {
2961
2961
  components: t,
2962
2962
  computeItemKey: i,
2963
2963
  context: o,
@@ -2975,19 +2975,19 @@ const Zr = /* @__PURE__ */ Q(() => {
2975
2975
  scrollerRef: l,
2976
2976
  ScrollSeekPlaceholder: c("ScrollSeekPlaceholder", "div")
2977
2977
  };
2978
- }), Jr = /* @__PURE__ */ Q(
2978
+ }), Jr = /* @__PURE__ */ ee(
2979
2979
  ([e, t]) => ({ ...e, ...t }),
2980
2980
  se(Xr, Zr)
2981
2981
  ), Qr = /* @__PURE__ */ L.memo(function() {
2982
- const e = re("gridState"), t = re("listClassName"), o = re("itemClassName"), n = re("itemContent"), r = re("computeItemKey"), i = re("isSeeking"), s = ze("scrollHeight"), l = re("ItemComponent"), c = re("ListComponent"), a = re("ScrollSeekPlaceholder"), h = re("context"), w = ze("itemDimensions"), g = ze("gap"), v = re("log"), S = re("stateRestoreInProgress"), k = ze("reportReadyState"), p = Xe(
2982
+ const e = re("gridState"), t = re("listClassName"), o = re("itemClassName"), n = re("itemContent"), r = re("computeItemKey"), i = re("isSeeking"), s = Be("scrollHeight"), l = re("ItemComponent"), c = re("ListComponent"), a = re("ScrollSeekPlaceholder"), h = re("context"), w = Be("itemDimensions"), g = Be("gap"), v = re("log"), S = re("stateRestoreInProgress"), k = Be("reportReadyState"), p = Xe(
2983
2983
  L.useMemo(
2984
2984
  () => (f) => {
2985
2985
  const d = f.parentElement.parentElement.scrollHeight;
2986
2986
  s(d);
2987
2987
  const b = f.firstChild;
2988
2988
  if (b) {
2989
- const { height: R, width: m } = b.getBoundingClientRect();
2990
- w({ height: R, width: m });
2989
+ const { height: _, width: m } = b.getBoundingClientRect();
2990
+ w({ height: _, width: m });
2991
2991
  }
2992
2992
  g({
2993
2993
  column: jo("column-gap", getComputedStyle(f).columnGap, v),
@@ -3006,7 +3006,7 @@ const Zr = /* @__PURE__ */ Q(() => {
3006
3006
  {
3007
3007
  className: t,
3008
3008
  ref: p,
3009
- ...he(c, h),
3009
+ ...ge(c, h),
3010
3010
  "data-testid": "virtuoso-item-list",
3011
3011
  style: { paddingBottom: e.offsetBottom, paddingTop: e.offsetTop },
3012
3012
  children: e.items.map((f) => {
@@ -3014,7 +3014,7 @@ const Zr = /* @__PURE__ */ Q(() => {
3014
3014
  return i ? /* @__PURE__ */ I.jsx(
3015
3015
  a,
3016
3016
  {
3017
- ...he(a, h),
3017
+ ...ge(a, h),
3018
3018
  height: e.itemHeight,
3019
3019
  index: f.index,
3020
3020
  width: e.itemWidth
@@ -3023,7 +3023,7 @@ const Zr = /* @__PURE__ */ Q(() => {
3023
3023
  ) : /* @__PURE__ */ Tt(
3024
3024
  l,
3025
3025
  {
3026
- ...he(l, h),
3026
+ ...ge(l, h),
3027
3027
  className: o,
3028
3028
  "data-index": f.index,
3029
3029
  key: d
@@ -3034,31 +3034,31 @@ const Zr = /* @__PURE__ */ Q(() => {
3034
3034
  }
3035
3035
  );
3036
3036
  }), ei = L.memo(function() {
3037
- const e = re("HeaderComponent"), t = ze("headerHeight"), o = re("headerFooterTag"), n = Xe(
3037
+ const e = re("HeaderComponent"), t = Be("headerHeight"), o = re("headerFooterTag"), n = Xe(
3038
3038
  L.useMemo(
3039
3039
  () => (i) => {
3040
- t(Ge(i, "height"));
3040
+ t(Fe(i, "height"));
3041
3041
  },
3042
3042
  [t]
3043
3043
  ),
3044
3044
  !0,
3045
3045
  !1
3046
3046
  ), r = re("context");
3047
- return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...he(e, r) }) }) : null;
3047
+ return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
3048
3048
  }), ti = L.memo(function() {
3049
- const e = re("FooterComponent"), t = ze("footerHeight"), o = re("headerFooterTag"), n = Xe(
3049
+ const e = re("FooterComponent"), t = Be("footerHeight"), o = re("headerFooterTag"), n = Xe(
3050
3050
  L.useMemo(
3051
3051
  () => (i) => {
3052
- t(Ge(i, "height"));
3052
+ t(Fe(i, "height"));
3053
3053
  },
3054
3054
  [t]
3055
3055
  ),
3056
3056
  !0,
3057
3057
  !1
3058
3058
  ), r = re("context");
3059
- return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...he(e, r) }) }) : null;
3059
+ return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
3060
3060
  }), oi = ({ children: e }) => {
3061
- const t = L.useContext(un), o = ze("itemDimensions"), n = ze("viewportDimensions"), r = Xe(
3061
+ const t = L.useContext(un), o = Be("itemDimensions"), n = Be("viewportDimensions"), r = Xe(
3062
3062
  L.useMemo(
3063
3063
  () => (i) => {
3064
3064
  n(i.getBoundingClientRect());
@@ -3072,13 +3072,13 @@ const Zr = /* @__PURE__ */ Q(() => {
3072
3072
  t && (n({ height: t.viewportHeight, width: t.viewportWidth }), o({ height: t.itemHeight, width: t.itemWidth }));
3073
3073
  }, [t, n, o]), /* @__PURE__ */ I.jsx("div", { ref: r, style: Bt(!1), children: e });
3074
3074
  }, ni = ({ children: e }) => {
3075
- const t = L.useContext(un), o = ze("windowViewportRect"), n = ze("itemDimensions"), r = re("customScrollParent"), i = Vo(o, r, !1);
3075
+ const t = L.useContext(un), o = Be("windowViewportRect"), n = Be("itemDimensions"), r = re("customScrollParent"), i = Vo(o, r, !1);
3076
3076
  return L.useEffect(() => {
3077
3077
  t && (n({ height: t.itemHeight, width: t.itemWidth }), o({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
3078
3078
  }, [t, o, n]), /* @__PURE__ */ I.jsx("div", { ref: i, style: Bt(!1), children: e });
3079
3079
  }, ri = /* @__PURE__ */ L.memo(function({ ...e }) {
3080
3080
  const t = re("useWindowScroll"), o = re("customScrollParent"), n = o || t ? si : ii, r = o || t ? ni : oi, i = re("context");
3081
- return /* @__PURE__ */ I.jsx(n, { ...e, ...he(n, i), children: /* @__PURE__ */ I.jsxs(r, { children: [
3081
+ return /* @__PURE__ */ I.jsx(n, { ...e, ...ge(n, i), children: /* @__PURE__ */ I.jsxs(r, { children: [
3082
3082
  /* @__PURE__ */ I.jsx(ei, {}),
3083
3083
  /* @__PURE__ */ I.jsx(Qr, {}),
3084
3084
  /* @__PURE__ */ I.jsx(ti, {})
@@ -3087,7 +3087,7 @@ const Zr = /* @__PURE__ */ Q(() => {
3087
3087
  Component: ws,
3088
3088
  useEmitter: vn,
3089
3089
  useEmitterValue: re,
3090
- usePublisher: ze
3090
+ usePublisher: Be
3091
3091
  } = /* @__PURE__ */ cn(
3092
3092
  Jr,
3093
3093
  {
@@ -3129,11 +3129,11 @@ const Zr = /* @__PURE__ */ Q(() => {
3129
3129
  }
3130
3130
  },
3131
3131
  ri
3132
- ), ii = /* @__PURE__ */ gn({ useEmitter: vn, useEmitterValue: re, usePublisher: ze }), si = /* @__PURE__ */ pn({ useEmitter: vn, useEmitterValue: re, usePublisher: ze });
3132
+ ), ii = /* @__PURE__ */ gn({ useEmitter: vn, useEmitterValue: re, usePublisher: Be }), si = /* @__PURE__ */ pn({ useEmitter: vn, useEmitterValue: re, usePublisher: Be });
3133
3133
  function jo(e, t, o) {
3134
3134
  return t !== "normal" && !(t != null && t.endsWith("px")) && o(`${e} was not resolved to pixel value correctly`, t, Ie.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
3135
3135
  }
3136
- const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai = "_modalHeader_1f0fd_18", ui = "_modalLeft_1f0fd_38", di = "_buttonGroup_1f0fd_45", mi = "_iosIcon_1f0fd_56", fi = "_modalLoader_1f0fd_86", hi = "_dash_1f0fd_90", gi = "_searchWrapper_1f0fd_95", pi = "_chevronIcons_1f0fd_101", xi = "_logInput_1f0fd_123", vi = "_searchResult_1f0fd_130", Ii = "_loadingWrap_1f0fd_140", Ti = "_modalRight_1f0fd_151", wi = "_inputsWrapper_1f0fd_155", Ci = "_search_1f0fd_95", Si = "_cliCommand_1f0fd_172", yi = "_buttonsWrapper_1f0fd_198", bi = "_downloadIconBtn_1f0fd_204", Hi = "_downloadIconBtn__disabled_1f0fd_228", ki = "_copyIconBtn_1f0fd_238", _i = "_copyIconBtn__disabled_1f0fd_262", Ri = "_iconGroup_1f0fd_272", Ei = "_activeIcon_1f0fd_284", le = {
3136
+ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai = "_modalHeader_1f0fd_18", ui = "_modalLeft_1f0fd_38", di = "_buttonGroup_1f0fd_45", mi = "_iosIcon_1f0fd_56", fi = "_modalLoader_1f0fd_86", hi = "_dash_1f0fd_90", gi = "_searchWrapper_1f0fd_95", pi = "_chevronIcons_1f0fd_101", xi = "_logInput_1f0fd_123", vi = "_searchResult_1f0fd_130", Ii = "_loadingWrap_1f0fd_140", Ti = "_modalRight_1f0fd_151", wi = "_inputsWrapper_1f0fd_155", Ci = "_search_1f0fd_95", Si = "_cliCommand_1f0fd_172", yi = "_buttonsWrapper_1f0fd_198", bi = "_downloadIconBtn_1f0fd_204", Hi = "_downloadIconBtn__disabled_1f0fd_228", ki = "_copyIconBtn_1f0fd_238", Ri = "_copyIconBtn__disabled_1f0fd_262", _i = "_iconGroup_1f0fd_272", Ei = "_activeIcon_1f0fd_284", le = {
3137
3137
  realTimeLogModalStyle: li,
3138
3138
  customHeader: ci,
3139
3139
  modalHeader: ai,
@@ -3155,8 +3155,8 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3155
3155
  downloadIconBtn: bi,
3156
3156
  downloadIconBtn__disabled: Hi,
3157
3157
  copyIconBtn: ki,
3158
- copyIconBtn__disabled: _i,
3159
- iconGroup: Ri,
3158
+ copyIconBtn__disabled: Ri,
3159
+ iconGroup: _i,
3160
3160
  activeIcon: Ei
3161
3161
  }, Cs = {
3162
3162
  status: (e) => ({
@@ -3206,78 +3206,79 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3206
3206
  onFetchLogs: w,
3207
3207
  onClearLogs: g,
3208
3208
  withoutPermission: v
3209
- } = e, S = Lt(null), [, k] = Wo(e.id), [p, f] = Qe(!1), [d, b] = Qe(), [R, m] = Qe(""), [u, y] = Qe(), [_, j] = Qe(0), z = s || [], N = c === void 0, $ = (C, W, X, D) => {
3209
+ } = e, S = Lt(null), [, k] = Wo(e.id), [p, f] = Qe(!1), [d, b] = Qe(), [_, m] = Qe(""), [u, y] = Qe(), [R, j] = Qe(0), z = s || [], A = c === void 0, $ = (C, W, K, N) => {
3210
3210
  const q = {
3211
3211
  applications: [W || i[0].value],
3212
3212
  scroll_mode: C || void 0
3213
3213
  };
3214
- w({ projectPk: o, appPk: r, applications: q.applications, scroll_mode: q.scroll_mode, withoutPermission: v }).then(
3215
- (oe) => {
3216
- if (Object.prototype.hasOwnProperty.call(oe, "error")) {
3217
- D && D();
3214
+ console.group("getLogs called with params:"), console.log("direction", C), console.log("selectedApp", W), console.log("onSuccess", K), console.log("onError", N), console.log("body", q), console.groupEnd(), w({ projectPk: o, appPk: r, applications: q.applications, scroll_mode: q.scroll_mode, withoutPermission: v }).then(
3215
+ (J) => {
3216
+ var Z, ae, Se;
3217
+ if (J && ((Se = (ae = (Z = Object == null ? void 0 : Object.prototype) == null ? void 0 : Z.hasOwnProperty) == null ? void 0 : ae.call) != null && Se.call(ae, J, "error"))) {
3218
+ console.log("onError", J, N), N && N();
3218
3219
  return;
3219
3220
  }
3220
- X && X();
3221
+ K && K();
3221
3222
  }
3222
3223
  );
3223
3224
  };
3224
- function ee(C) {
3225
+ function te(C) {
3225
3226
  let W = 0;
3226
- const X = {};
3227
- return C.forEach((D, q) => {
3228
- const oe = D.message.match(/<mark\b[^>]*>/g);
3229
- W += oe ? oe.length : 0, oe && (X[q] = oe);
3230
- }), { total: W, filteredLogs: X };
3227
+ const K = {};
3228
+ return C.forEach((N, q) => {
3229
+ const J = N.message.match(/<mark\b[^>]*>/g);
3230
+ W += J ? J.length : 0, J && (K[q] = J);
3231
+ }), { total: W, filteredLogs: K };
3231
3232
  }
3232
- const B = bn($, n * 1e3), K = Lt(), Y = Lt(B), ve = (C, W, X, D) => {
3233
+ const B = bn($, n * 1e3), Y = Lt(), X = Lt(B), ve = (C, W, K, N) => {
3233
3234
  if (!W || W.length < 1)
3234
3235
  return C;
3235
3236
  let q = C;
3236
- if (D.group)
3237
- if (D.regex) {
3237
+ if (N.group)
3238
+ if (N.regex) {
3238
3239
  let Z;
3239
3240
  try {
3240
3241
  Z = new RegExp(
3241
3242
  W,
3242
- D.caseSensitive ? "g" : "gi"
3243
+ N.caseSensitive ? "g" : "gi"
3243
3244
  );
3244
3245
  } catch {
3245
3246
  return C;
3246
3247
  }
3247
- q = C.filter((ge) => Z.test(ge.message));
3248
+ q = C.filter((ae) => Z.test(ae.message));
3248
3249
  } else
3249
- D.caseSensitive ? q = C.filter(
3250
+ N.caseSensitive ? q = C.filter(
3250
3251
  (Z) => Z.message.includes(W)
3251
3252
  ) : q = C.filter(
3252
3253
  (Z) => Z.message.toLocaleLowerCase().includes(W.toLocaleLowerCase())
3253
3254
  );
3254
- return q.map((Z, ge) => ({
3255
+ return q.map((Z, ae) => ({
3255
3256
  ...Z,
3256
- message: Te(Z.message, W, D, ge) + `
3257
+ message: Te(Z.message, W, N, ae) + `
3257
3258
  `
3258
3259
  }));
3259
- }, Te = (C, W, X, D) => {
3260
+ }, Te = (C, W, K, N) => {
3260
3261
  if (!W)
3261
3262
  return C;
3262
3263
  try {
3263
- if (X.regex) {
3264
+ if (K.regex) {
3264
3265
  let q;
3265
- const oe = W.match(/^\/(.+)\/([gimsuy]*)$/);
3266
- return oe ? q = new RegExp(oe[1], oe[2]) : q = new RegExp(
3266
+ const J = W.match(/^\/(.+)\/([gimsuy]*)$/);
3267
+ return J ? q = new RegExp(J[1], J[2]) : q = new RegExp(
3267
3268
  W,
3268
- X.caseSensitive ? "g" : "gi"
3269
+ K.caseSensitive ? "g" : "gi"
3269
3270
  ), C.replace(
3270
3271
  q,
3271
- (Z) => `<mark data-mark-index="${D}">${Z}</mark>`
3272
+ (Z) => `<mark data-mark-index="${N}">${Z}</mark>`
3272
3273
  );
3273
3274
  } else {
3274
- if (X.caseSensitive)
3275
- return C.split(W).join(`<mark data-mark-index="${D}">${W}</mark>`);
3275
+ if (K.caseSensitive)
3276
+ return C.split(W).join(`<mark data-mark-index="${N}">${W}</mark>`);
3276
3277
  {
3277
3278
  const q = new RegExp(W, "gi");
3278
3279
  return C.replace(
3279
3280
  q,
3280
- (oe) => `<mark data-mark-index="${D}">${oe}</mark>`
3281
+ (J) => `<mark data-mark-index="${N}">${J}</mark>`
3281
3282
  );
3282
3283
  }
3283
3284
  }
@@ -3286,105 +3287,105 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3286
3287
  }
3287
3288
  }, we = () => {
3288
3289
  m("");
3289
- }, fe = () => {
3290
+ }, he = () => {
3290
3291
  f(!p);
3291
- }, me = () => {
3292
+ }, fe = () => {
3292
3293
  let C = "";
3293
3294
  z.forEach((W) => {
3294
3295
  C += W.message;
3295
- }), Rn({
3296
- type: _n.SUCCESS,
3296
+ }), _n({
3297
+ type: Rn.SUCCESS,
3297
3298
  message: pt("text.copied"),
3298
3299
  closeTime: 3e3
3299
3300
  }), navigator.clipboard.writeText(C);
3300
- }, Be = (C, W) => {
3301
+ }, Le = (C, W) => {
3301
3302
  C.currentTarget.classList.toggle(le.activeIcon), y({
3302
3303
  ...u,
3303
3304
  [W]: !(u != null && u[W])
3304
3305
  });
3305
3306
  }, Ce = (C) => {
3306
- var W, X;
3307
- b(C), clearTimeout(K.current), (W = Y.current) == null || W.stopInterval(), (X = Y.current) == null || X.fetch(void 0, C), jt(() => {
3308
- var D;
3309
- (D = S.current) == null || D.scrollToIndex({ index: "LAST" });
3307
+ var W, K;
3308
+ b(C), clearTimeout(Y.current), (W = X.current) == null || W.stopInterval(), (K = X.current) == null || K.fetch(void 0, C), jt(() => {
3309
+ var N;
3310
+ (N = S.current) == null || N.scrollToIndex({ index: "LAST" });
3310
3311
  }, 300)();
3311
3312
  }, Ve = (C) => {
3312
3313
  C.classList.add(le.selectedMark);
3313
- }, Le = (C) => {
3314
+ }, je = (C) => {
3314
3315
  Array.from(C).forEach(
3315
3316
  (W) => W.classList.remove(le.selectedMark)
3316
3317
  );
3317
- }, He = (C, W, X) => {
3318
- var oe;
3319
- let D = C - 1;
3320
- D < 1 && (D = W), j(D);
3318
+ }, ke = (C, W, K) => {
3319
+ var J;
3320
+ let N = C - 1;
3321
+ N < 1 && (N = W), j(N);
3321
3322
  let q = 0;
3322
- for (const Z in X) {
3323
- const ge = X[Z];
3324
- if (q + ge.length >= D) {
3325
- const We = D - q - 1;
3326
- (oe = S.current) == null || oe.scrollToIndex({ index: Number(Z) });
3323
+ for (const Z in K) {
3324
+ const ae = K[Z];
3325
+ if (q + ae.length >= N) {
3326
+ const Se = N - q - 1;
3327
+ (J = S.current) == null || J.scrollToIndex({ index: Number(Z) });
3327
3328
  const Pe = document.querySelector(
3328
3329
  `[data-index="${Number(Z) + 1}"]`
3329
3330
  );
3330
3331
  if (Pe) {
3331
3332
  const _e = Pe.getElementsByTagName("mark");
3332
- Le(_e);
3333
+ je(_e);
3333
3334
  }
3334
3335
  jt(() => {
3335
3336
  const _e = document.querySelector(
3336
3337
  `[data-index="${Z}"]`
3337
3338
  );
3338
3339
  if (_e) {
3339
- const Re = _e.getElementsByTagName("mark");
3340
- Re[We] && (Le(Re), Ve(Re[We]));
3340
+ const Ee = _e.getElementsByTagName("mark");
3341
+ Ee[Se] && (je(Ee), Ve(Ee[Se]));
3341
3342
  }
3342
3343
  }, 300)();
3343
3344
  break;
3344
3345
  } else
3345
- q += ge.length;
3346
+ q += ae.length;
3346
3347
  }
3347
- }, ke = (C, W, X) => {
3348
- var oe;
3349
- let D = C + 1;
3350
- D > W && (D = 1), j(D);
3348
+ }, Re = (C, W, K) => {
3349
+ var J;
3350
+ let N = C + 1;
3351
+ N > W && (N = 1), j(N);
3351
3352
  let q = 0;
3352
- for (const Z in X) {
3353
- const ge = X[Z];
3354
- if (q + ge.length >= D) {
3355
- const We = D - q - 1;
3356
- (oe = S.current) == null || oe.scrollToIndex({ index: Number(Z) });
3353
+ for (const Z in K) {
3354
+ const ae = K[Z];
3355
+ if (q + ae.length >= N) {
3356
+ const Se = N - q - 1;
3357
+ (J = S.current) == null || J.scrollToIndex({ index: Number(Z) });
3357
3358
  const Pe = document.querySelector(
3358
3359
  `[data-index="${Number(Z) - 1}"]`
3359
3360
  );
3360
3361
  if (Pe) {
3361
3362
  const _e = Pe.getElementsByTagName("mark");
3362
- Le(_e);
3363
+ je(_e);
3363
3364
  }
3364
3365
  jt(() => {
3365
3366
  const _e = document.querySelector(
3366
3367
  `[data-index="${Z}"]`
3367
3368
  );
3368
3369
  if (_e) {
3369
- const Re = _e.getElementsByTagName("mark");
3370
- Re[We] && (Le(Re), Ve(Re[We]));
3370
+ const Ee = _e.getElementsByTagName("mark");
3371
+ Ee[Se] && (je(Ee), Ve(Ee[Se]));
3371
3372
  }
3372
3373
  }, 300)();
3373
3374
  break;
3374
3375
  } else
3375
- q += ge.length;
3376
+ q += ae.length;
3376
3377
  }
3377
- }, T = ve(z, R, Y, {
3378
+ }, T = ve(z, _, X, {
3378
3379
  regex: u == null ? void 0 : u.regex,
3379
3380
  caseSensitive: u == null ? void 0 : u.caseSensitive,
3380
3381
  group: u == null ? void 0 : u.group
3381
- }), O = ee(T), te = (C) => {
3382
- C.key === "Enter" && ke(
3383
- _,
3384
- O.total,
3385
- O.filteredLogs
3382
+ }), P = te(T), oe = (C) => {
3383
+ C.key === "Enter" && Re(
3384
+ R,
3385
+ P.total,
3386
+ P.filteredLogs
3386
3387
  );
3387
- }, ue = (C, W) => /* @__PURE__ */ I.jsx(
3388
+ }, de = (C, W) => /* @__PURE__ */ I.jsx(
3388
3389
  "div",
3389
3390
  {
3390
3391
  "data-index": C,
@@ -3392,13 +3393,20 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3392
3393
  }
3393
3394
  );
3394
3395
  return ao(() => {
3395
- var C, W;
3396
- return (C = Y.current) == null || C.fetch(void 0, d), (W = Y.current) == null || W.startInterval("newer", d), () => {
3397
- clearTimeout(K.current), Y.current.stopInterval(), g();
3396
+ var K;
3397
+ const C = () => {
3398
+ var N;
3399
+ console.log("onSuccessFirstRequest"), (N = X.current) == null || N.startInterval("newer", d);
3400
+ }, W = () => {
3401
+ var N;
3402
+ console.log("onErrorFirstRequest"), (N = X.current) == null || N.startInterval(void 0, d);
3403
+ };
3404
+ return (K = X.current) == null || K.fetch(void 0, d, C, W), () => {
3405
+ clearTimeout(Y.current), X.current.stopInterval(), g();
3398
3406
  };
3399
- }, []), ao(() => (window.removeEventListener("keydown", te), window.addEventListener("keydown", te), () => {
3400
- window.removeEventListener("keydown", te);
3401
- }), [_, O.total, O.filteredLogs]), /* @__PURE__ */ I.jsx(
3407
+ }, []), ao(() => (window.removeEventListener("keydown", oe), window.addEventListener("keydown", oe), () => {
3408
+ window.removeEventListener("keydown", oe);
3409
+ }), [R, P.total, P.filteredLogs]), /* @__PURE__ */ I.jsx(
3402
3410
  Ao,
3403
3411
  {
3404
3412
  visible: !0,
@@ -3420,10 +3428,10 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3420
3428
  onClick: () => {
3421
3429
  t && t(), k();
3422
3430
  },
3423
- children: /* @__PURE__ */ I.jsx(Se, { name: "close-window" })
3431
+ children: /* @__PURE__ */ I.jsx(ye, { name: "close-window" })
3424
3432
  }
3425
3433
  ),
3426
- /* @__PURE__ */ I.jsx("div", { className: le.iosIcon, onClick: fe, children: /* @__PURE__ */ I.jsx(Se, { name: "expand-window" }) })
3434
+ /* @__PURE__ */ I.jsx("div", { className: le.iosIcon, onClick: he, children: /* @__PURE__ */ I.jsx(ye, { name: "expand-window" }) })
3427
3435
  ] }),
3428
3436
  /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(
3429
3437
  Hn,
@@ -3449,76 +3457,76 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3449
3457
  type: "text",
3450
3458
  placeholder: pt("placeholder.search"),
3451
3459
  isFormGroup: !1,
3452
- value: R,
3460
+ value: _,
3453
3461
  className: le.logInput,
3454
3462
  prefixClickable: !0,
3455
3463
  suffixClickable: !0,
3456
3464
  onChange: (C) => {
3457
3465
  var W;
3458
- m(C.target.value), C.target.value.length > 1 && ((W = Y.current) == null || W.stopInterval()), j(0);
3466
+ m(C.target.value), C.target.value.length > 1 && ((W = X.current) == null || W.stopInterval()), j(0);
3459
3467
  },
3460
3468
  prefix: /* @__PURE__ */ I.jsxs("div", { className: le.iconGroup, children: [
3461
3469
  /* @__PURE__ */ I.jsx(
3462
- Se,
3470
+ ye,
3463
3471
  {
3464
3472
  name: "group",
3465
3473
  onClick: (C) => {
3466
- Be(C, "group");
3474
+ Le(C, "group");
3467
3475
  }
3468
3476
  }
3469
3477
  ),
3470
3478
  /* @__PURE__ */ I.jsx(
3471
- Se,
3479
+ ye,
3472
3480
  {
3473
3481
  name: "case-sensitive",
3474
3482
  onClick: (C) => {
3475
- Be(C, "caseSensitive");
3483
+ Le(C, "caseSensitive");
3476
3484
  }
3477
3485
  }
3478
3486
  ),
3479
3487
  /* @__PURE__ */ I.jsx(
3480
- Se,
3488
+ ye,
3481
3489
  {
3482
3490
  name: "regex",
3483
3491
  onClick: (C) => {
3484
- Be(C, "regex");
3492
+ Le(C, "regex");
3485
3493
  }
3486
3494
  }
3487
3495
  )
3488
3496
  ] }),
3489
- suffix: R.length > 0 ? /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(Se, { onClick: we, name: "close" }) }) : /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(Se, { name: "search" }) })
3497
+ suffix: _.length > 0 ? /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(ye, { onClick: we, name: "close" }) }) : /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(ye, { name: "search" }) })
3490
3498
  }
3491
3499
  ),
3492
3500
  /* @__PURE__ */ I.jsxs("div", { className: le.searchResult, children: [
3493
- R.length > 0 ? _ : 0,
3501
+ _.length > 0 ? R : 0,
3494
3502
  /* @__PURE__ */ I.jsxs("span", { children: [
3495
3503
  "/",
3496
- R.length > 0 ? O.total : 0
3504
+ _.length > 0 ? P.total : 0
3497
3505
  ] })
3498
3506
  ] }),
3499
3507
  /* @__PURE__ */ I.jsxs("div", { className: le.chevronIcons, children: [
3500
3508
  /* @__PURE__ */ I.jsx(
3501
- Se,
3509
+ ye,
3502
3510
  {
3503
3511
  name: "chevron-left",
3504
3512
  onClick: () => {
3505
- ke(
3506
- _,
3507
- O.total,
3508
- O.filteredLogs
3513
+ Re(
3514
+ R,
3515
+ P.total,
3516
+ P.filteredLogs
3509
3517
  );
3510
3518
  }
3511
3519
  }
3512
3520
  ),
3513
3521
  /* @__PURE__ */ I.jsx(
3514
- Se,
3522
+ ye,
3515
3523
  {
3516
3524
  name: "chevron-left",
3517
3525
  onClick: () => {
3518
- He(
3519
- _,
3520
- O.total,
3521
- O.filteredLogs
3526
+ ke(
3527
+ R,
3528
+ P.total,
3529
+ P.filteredLogs
3522
3530
  );
3523
3531
  }
3524
3532
  }
@@ -3549,7 +3557,7 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3549
3557
  !0
3550
3558
  );
3551
3559
  },
3552
- children: /* @__PURE__ */ I.jsx(Se, { name: tt.Download })
3560
+ children: /* @__PURE__ */ I.jsx(ye, { name: tt.Download })
3553
3561
  }
3554
3562
  ),
3555
3563
  /* @__PURE__ */ I.jsx(
@@ -3559,8 +3567,8 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3559
3567
  className: wt(le.copyIconBtn, {
3560
3568
  [le.copyIconBtn__disabled]: z.length === 0
3561
3569
  }),
3562
- onClick: me,
3563
- children: /* @__PURE__ */ I.jsx(Se, { name: tt.Copy })
3570
+ onClick: fe,
3571
+ children: /* @__PURE__ */ I.jsx(ye, { name: tt.Copy })
3564
3572
  }
3565
3573
  )
3566
3574
  ] }) })
@@ -3576,56 +3584,56 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3576
3584
  data: T,
3577
3585
  initialTopMostItemIndex: T.length - 1 || 0,
3578
3586
  totalCount: T.length,
3579
- itemContent: ue,
3587
+ itemContent: de,
3580
3588
  onScroll: (C) => {
3581
- C.currentTarget.scrollHeight - C.currentTarget.scrollTop <= C.currentTarget.clientHeight + Mo || Y.current.stopInterval();
3589
+ C.currentTarget.scrollHeight - C.currentTarget.scrollTop <= C.currentTarget.clientHeight + Mo || X.current.stopInterval();
3582
3590
  },
3583
3591
  atTopThreshold: zi,
3584
3592
  atTopStateChange: (C) => {
3585
- var D;
3586
- if (console.log("atTop, filteredLogs.length, responseCount, minLineLimit, atTop", T.length, c, l, C), R.length > 0 || N)
3593
+ var N;
3594
+ if (console.log("atTop, filteredLogs.length, responseCount, minLineLimit, atTop", T.length, c, l, C), _.length > 0 || A)
3587
3595
  return;
3588
- const W = () => T.length - a < 30 || a === 0 ? 10 : a, X = () => {
3596
+ const W = () => T.length - a < 30 || a === 0 ? 10 : a, K = () => {
3589
3597
  var q;
3590
3598
  (q = S.current) == null || q.scrollToIndex({
3591
3599
  index: W()
3592
3600
  });
3593
3601
  };
3594
- C && !N && ((D = Y.current) == null || D.fetch(
3602
+ C && !A && ((N = X.current) == null || N.fetch(
3595
3603
  "older",
3596
3604
  d,
3597
- X
3605
+ K
3598
3606
  ));
3599
3607
  },
3600
3608
  atBottomThreshold: Mo,
3601
3609
  atBottomStateChange: (C) => {
3602
- if (console.log("atBottom, filteredLogs.length, responseCount, minLineLimit, atBottom", T.length, c, l, C), T.length <= 0 || R.length > 0 || N)
3610
+ if (console.log("atBottom, filteredLogs.length, responseCount, minLineLimit, atBottom", T.length, c, l, C), T.length <= 0 || _.length > 0 || A)
3603
3611
  return;
3604
3612
  const W = () => {
3605
- var D, q;
3606
- if (console.log("onNewerSuccess ,first", T.length), (D = S.current) == null || D.scrollToIndex({
3613
+ var N, q;
3614
+ if (console.log("onNewerSuccess ,first", T.length), (N = S.current) == null || N.scrollToIndex({
3607
3615
  index: T.length - 50
3608
3616
  }), c < l) {
3609
- Y.current.stopInterval(), console.log(
3617
+ X.current.stopInterval(), console.log(
3610
3618
  "onNewerSuccess minLineLimit",
3611
3619
  c,
3612
3620
  l
3613
3621
  ), (q = S.current) == null || q.scrollToIndex({
3614
3622
  index: T.length - 1
3615
- }), Y.current.startInterval("newer", d);
3623
+ }), X.current.startInterval("newer", d);
3616
3624
  return;
3617
3625
  }
3618
- }, X = () => {
3619
- var D;
3620
- console.log("Error fetching newer logs"), Y.current.stopInterval(), (D = S.current) == null || D.scrollToIndex({
3626
+ }, K = () => {
3627
+ var N;
3628
+ console.log("Error fetching newer logs"), X.current.stopInterval(), (N = S.current) == null || N.scrollToIndex({
3621
3629
  index: T.length - 10
3622
- }), Y.current.startInterval("newer", d);
3630
+ }), X.current.startInterval("newer", d);
3623
3631
  };
3624
- C && Y.current.fetch(
3632
+ C && X.current.fetch(
3625
3633
  "newer",
3626
3634
  d,
3627
3635
  W,
3628
- X
3636
+ K
3629
3637
  );
3630
3638
  }
3631
3639
  }
@@ -3658,10 +3666,10 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3658
3666
  onClick: () => {
3659
3667
  l && l(), s();
3660
3668
  },
3661
- children: /* @__PURE__ */ I.jsx(Se, { name: "close-window" })
3669
+ children: /* @__PURE__ */ I.jsx(ye, { name: "close-window" })
3662
3670
  }
3663
3671
  ),
3664
- /* @__PURE__ */ I.jsx("div", { className: rt.iosIcon, onClick: c, children: /* @__PURE__ */ I.jsx(Se, { name: "expand-window" }) })
3672
+ /* @__PURE__ */ I.jsx("div", { className: rt.iosIcon, onClick: c, children: /* @__PURE__ */ I.jsx(ye, { name: "expand-window" }) })
3665
3673
  ] }) }),
3666
3674
  /* @__PURE__ */ I.jsx("div", { children: n("title.error_log") })
3667
3675
  ] }),