@vokril/ui-solid 0.32.0 → 0.33.0

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +65 -0
  3. package/dist/{StatusBarNotificationBell-CgsYrrpj.js → StatusBarNotificationBell-DKDoWK71.js} +1557 -1545
  4. package/dist/StatusBarNotificationBell-wO16mjon.cjs +50 -0
  5. package/dist/_internal/contract/browser/workspace.d.cts +15 -0
  6. package/dist/_internal/contract/browser/workspace.d.ts +15 -0
  7. package/dist/_internal/contract/menuDensity.d.cts +8 -0
  8. package/dist/_internal/contract/menuDensity.d.ts +8 -0
  9. package/dist/_internal/platform/settings/settingsTypes.d.cts +2 -2
  10. package/dist/_internal/platform/settings/settingsTypes.d.ts +2 -2
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.js +3 -3
  13. package/dist/{server/useSettingsSubscription-DLEk4k4j.js → menuDensity-6x_EqCGb.js} +7 -5
  14. package/dist/{server/useSettingsSubscription-DKjCwmRd.cjs → menuDensity-Cf74__OQ.cjs} +1 -1
  15. package/dist/notifications/index.cjs +1 -1
  16. package/dist/notifications/index.js +2 -2
  17. package/dist/notifications/notificationOverlaySnapshot.d.cts +35 -6
  18. package/dist/notifications/notificationOverlaySnapshot.d.ts +35 -6
  19. package/dist/overlay/Modal.d.cts +7 -6
  20. package/dist/overlay/Modal.d.ts +7 -6
  21. package/dist/overlay/modalViewport.d.cts +2 -1
  22. package/dist/overlay/modalViewport.d.ts +2 -1
  23. package/dist/rowSource-D8gyHbEE.cjs +1 -0
  24. package/dist/{rowSource-BRGZHclZ.js → rowSource-_4IuosKj.js} +5 -0
  25. package/dist/server/{StatusBarNotificationBell-Cxs_bVKX.cjs → StatusBarNotificationBell-DEp4eEUv.cjs} +19 -19
  26. package/dist/server/{StatusBarNotificationBell-CJJFE4rf.js → StatusBarNotificationBell-kOm2ZNkl.js} +1519 -1507
  27. package/dist/server/index.cjs +1 -1
  28. package/dist/server/index.js +3 -3
  29. package/dist/{useSettingsSubscription-DLEk4k4j.js → server/menuDensity-6x_EqCGb.js} +7 -5
  30. package/dist/{useSettingsSubscription-DKjCwmRd.cjs → server/menuDensity-Cf74__OQ.cjs} +1 -1
  31. package/dist/server/notifications/index.cjs +1 -1
  32. package/dist/server/notifications/index.js +2 -2
  33. package/dist/server/{rowSource-CoeHYNsV.js → rowSource-BSa7rgYJ.js} +188 -183
  34. package/dist/server/rowSource-Yw-xtlih.cjs +1 -0
  35. package/dist/server/settings/index.cjs +1 -1
  36. package/dist/server/settings/index.js +26 -25
  37. package/dist/server/tree/index.cjs +1 -1
  38. package/dist/server/tree/index.js +1 -1
  39. package/dist/settings/index.cjs +1 -1
  40. package/dist/settings/index.js +26 -25
  41. package/dist/solid/_internal/contract/menuDensity.js +1 -0
  42. package/dist/solid/_internal/platform/settings/settingsTypes.js +1 -0
  43. package/dist/solid/notifications/NotificationHost.jsx +3 -16
  44. package/dist/solid/notifications/notificationOverlaySnapshot.js +26 -0
  45. package/dist/solid/tree/TreeRow.jsx +3 -1
  46. package/dist/style.css +1 -1
  47. package/dist/tree/TreeRow.d.cts +5 -4
  48. package/dist/tree/TreeRow.d.ts +5 -4
  49. package/dist/tree/descriptor.d.cts +13 -3
  50. package/dist/tree/descriptor.d.ts +13 -3
  51. package/dist/tree/index.cjs +1 -1
  52. package/dist/tree/index.js +1 -1
  53. package/dist/ui.css +1 -1
  54. package/package.json +1 -1
  55. package/dist/StatusBarNotificationBell-CNs_obmZ.cjs +0 -50
  56. package/dist/rowSource-C3zlzAtR.cjs +0 -1
  57. package/dist/server/rowSource-C1F4l0xZ.cjs +0 -1
@@ -1,11 +1,11 @@
1
- import { createComponent as b, ssr as E, ssrAttribute as M, escape as f, ssrElement as he, mergeProps as fe, memo as j, ssrStyleProperty as U } from "solid-js/web";
2
- import { createMemo as _, Show as G, For as xe, createEffect as q, Index as ge, createSelector as ke, createSignal as W, onCleanup as Ce, useContext as be, untrack as Ie, on as Re } from "solid-js";
1
+ import { createComponent as b, ssr as p, ssrAttribute as M, escape as f, ssrElement as he, mergeProps as fe, memo as j, ssrStyleProperty as U } from "solid-js/web";
2
+ import { createMemo as _, Show as G, For as ke, createEffect as q, Index as ge, createSelector as xe, createSignal as W, onCleanup as Ce, useContext as be, untrack as Ie, on as Re } from "solid-js";
3
3
  import { O as Ae } from "./OverlayScrollArea-h6G3yk6U.js";
4
4
  import { t as Te } from "./i18n-CBlUGOyu.js";
5
5
  import { c as _e } from "./errorHandler-BvPGW-Nm.js";
6
6
  import { V as Me } from "./VpLoader2-DO0zkwpY.js";
7
- import { V as pe } from "./VpChevronRight-CwRCE60O.js";
8
- import { a as Ee } from "./useListCommands-BO_XrRHj.js";
7
+ import { V as Ee } from "./VpChevronRight-CwRCE60O.js";
8
+ import { a as pe } from "./useListCommands-BO_XrRHj.js";
9
9
  import { a as De } from "./builtins-XOM9gfIx.js";
10
10
  import { V as Ke } from "./VpSearch-CzVlR0ue.js";
11
11
  import { S as re, c as $e } from "./createVirtualWindow-CGPw2jm_.js";
@@ -24,27 +24,27 @@ function we(e, t) {
24
24
  return `${e}-row-${t}`;
25
25
  }
26
26
  function Le(e) {
27
- const { treeId: t, label: o, multiSelectable: r, focusMode: n, cursorKey: c } = e;
27
+ const { treeId: t, label: o, multiSelectable: r, focusMode: n, cursorKey: a } = e;
28
28
  return {
29
29
  role: e.flat === !0 ? "listbox" : "tree",
30
30
  // With roving tabindex the container yields its tab stop to the cursor row
31
31
  // once there is one; with active-descendant the container IS the tab stop.
32
- tabIndex: n === "active-descendant" || c === null ? 0 : -1,
32
+ tabIndex: n === "active-descendant" || a === null ? 0 : -1,
33
33
  "aria-label": o,
34
34
  "aria-multiselectable": r ? !0 : void 0,
35
- "aria-activedescendant": n === "active-descendant" && c !== null ? we(t, c) : void 0
35
+ "aria-activedescendant": n === "active-descendant" && a !== null ? we(t, a) : void 0
36
36
  };
37
37
  }
38
38
  function Fe(e) {
39
- const { treeId: t, rows: o, index: r } = e, n = o.at(r), c = e.flat === !0, { posInSet: l, setSize: y } = o.siblingPosition(r);
39
+ const { treeId: t, rows: o, index: r } = e, n = o.at(r), a = e.flat === !0, { posInSet: l, setSize: y } = o.siblingPosition(r);
40
40
  return {
41
- role: c ? "option" : "treeitem",
41
+ role: a ? "option" : "treeitem",
42
42
  id: we(t, n.key),
43
43
  // A listbox option has no level, and no expanded state to advertise.
44
- "aria-level": c ? void 0 : n.depth + 1,
44
+ "aria-level": a ? void 0 : n.depth + 1,
45
45
  "aria-setsize": y,
46
46
  "aria-posinset": l,
47
- "aria-expanded": !c && n.expandable ? n.expanded : void 0,
47
+ "aria-expanded": !a && n.expandable ? n.expanded : void 0,
48
48
  // Announced while the row is fetching its children — silence is what a
49
49
  // screen-reader user got before, for as long as the query took.
50
50
  "aria-busy": n.busy === !0 ? !0 : void 0
@@ -82,18 +82,18 @@ function Ve(e, t) {
82
82
  function Ue(e, t, o) {
83
83
  if (o === 0) return [{ text: e, match: !1 }];
84
84
  const r = e.toLowerCase(), n = [];
85
- let c = 0;
86
- for (; c <= e.length; ) {
87
- const l = r.indexOf(t, c);
85
+ let a = 0;
86
+ for (; a <= e.length; ) {
87
+ const l = r.indexOf(t, a);
88
88
  if (l === -1) {
89
- c < e.length && n.push({ text: e.slice(c), match: !1 });
89
+ a < e.length && n.push({ text: e.slice(a), match: !1 });
90
90
  break;
91
91
  }
92
- l > c && n.push({ text: e.slice(c, l), match: !1 }), n.push({ text: e.slice(l, l + o), match: !0 }), c = l + o;
92
+ l > a && n.push({ text: e.slice(a, l), match: !1 }), n.push({ text: e.slice(l, l + o), match: !0 }), a = l + o;
93
93
  }
94
94
  return n.length > 0 ? n : [{ text: e, match: !1 }];
95
95
  }
96
- const Qe = "vk_treeStickyHost_6aT7a", We = "vk_treeViewport_Ku3yB", Ye = "vk_treeContainer_iMrOQ", qe = "vk_treeSlice_homAf", ze = "vk_treeRow_Hh9r0", Xe = "vk_treeRowCursor_QlUrp", je = "vk_treeRowSelected_UdZj-", Ze = "vk_treeIndentGuides_W4J04", Je = "vk_treeIndentGuideActive_9m4l3", et = "vk_treeRowChevron_6WMjE", tt = "vk_treeRowChevronSpacer_Jbp-q", nt = "vk_treeRowChevronIcon_KP24Y", rt = "vk_treeRowChevronIconOpen_fRKNn", ot = "vk_treeRowContent_RR7pP", ct = "vk_treeRowActions_LYQUv", at = "vk_treeEmpty_s8RQ-", lt = "vk_treeRowChevronBusy_lZT8a", st = "vk_treeSpeedSearchBadge_9GHNi", ut = "vk_treeSpeedSearchIcon_48Ae2", it = "vk_treeSpeedSearchText_F4SZ8", dt = "vk_treeMatchHighlight_NY75y", C = {
96
+ const Qe = "vk_treeStickyHost_6aT7a", We = "vk_treeViewport_Ku3yB", Ye = "vk_treeContainer_iMrOQ", qe = "vk_treeSlice_homAf", ze = "vk_treeRow_Hh9r0", Xe = "vk_treeRowCursor_QlUrp", je = "vk_treeRowSelected_UdZj-", Ze = "vk_treeIndentGuides_W4J04", Je = "vk_treeIndentGuideActive_9m4l3", et = "vk_treeRowChevron_6WMjE", tt = "vk_treeRowChevronSpacer_Jbp-q", nt = "vk_treeRowChevronIcon_KP24Y", rt = "vk_treeRowChevronIconOpen_fRKNn", ot = "vk_treeRowContent_RR7pP", at = "vk_treeRowActions_LYQUv", ct = "vk_treeEmpty_s8RQ-", lt = "vk_treeRowChevronBusy_lZT8a", st = "vk_treeSpeedSearchBadge_9GHNi", ut = "vk_treeSpeedSearchIcon_48Ae2", it = "vk_treeSpeedSearchText_F4SZ8", dt = "vk_treeMatchHighlight_NY75y", C = {
97
97
  treeStickyHost: Qe,
98
98
  treeViewport: We,
99
99
  treeContainer: Ye,
@@ -108,8 +108,8 @@ const Qe = "vk_treeStickyHost_6aT7a", We = "vk_treeViewport_Ku3yB", Ye = "vk_tre
108
108
  treeRowChevronIcon: nt,
109
109
  treeRowChevronIconOpen: rt,
110
110
  treeRowContent: ot,
111
- treeRowActions: ct,
112
- treeEmpty: at,
111
+ treeRowActions: at,
112
+ treeEmpty: ct,
113
113
  treeRowChevronBusy: lt,
114
114
  treeSpeedSearchBadge: st,
115
115
  treeSpeedSearchIcon: ut,
@@ -127,15 +127,15 @@ function me(e) {
127
127
  return t().expandable;
128
128
  },
129
129
  get fallback() {
130
- return E(oe, M("class", f(C.treeRowChevronSpacer, !0), !1));
130
+ return p(oe, M("class", f(C.treeRowChevronSpacer, !0), !1));
131
131
  },
132
132
  get children() {
133
- return E(ht, M("class", f(C.treeRowChevron, !0), !1), f(b(G, {
133
+ return p(ht, M("class", f(C.treeRowChevron, !0), !1), f(b(G, {
134
134
  get when() {
135
135
  return t().busy;
136
136
  },
137
137
  get fallback() {
138
- return b(pe, {
138
+ return b(Ee, {
139
139
  get class() {
140
140
  return `${C.treeRowChevronIcon} ${t().expanded ? C.treeRowChevronIconOpen : ""}`;
141
141
  }
@@ -180,6 +180,11 @@ function me(e) {
180
180
  return ((n = e.dom) == null ? void 0 : n.title) !== void 0 ? {
181
181
  title: e.dom.title
182
182
  } : {};
183
+ }, () => {
184
+ var n;
185
+ return e.sticky !== !0 && ((n = e.dom) != null && n.ariaLabel) ? {
186
+ "aria-label": e.dom.ariaLabel
187
+ } : {};
183
188
  }, () => {
184
189
  var n;
185
190
  return ((n = e.dom) == null ? void 0 : n.draggable) !== void 0 ? {
@@ -225,14 +230,14 @@ function me(e) {
225
230
  return j(() => e.indentGuide !== "none")() && t().depth > 0;
226
231
  },
227
232
  get children() {
228
- return E(oe, M("class", f(C.treeIndentGuides, !0), !1));
233
+ return p(oe, M("class", f(C.treeIndentGuides, !0), !1));
229
234
  }
230
235
  })), f(b(G, {
231
236
  get when() {
232
237
  return j(() => e.indentGuide === "active" && e.activeGuideDepth >= 0)() && t().depth > e.activeGuideDepth;
233
238
  },
234
239
  get children() {
235
- return E(ft, M("class", f(C.treeIndentGuideActive, !0), !1), U("--tree-active-col:", `${f(e.activeGuideDepth, !0)}`));
240
+ return p(ft, M("class", f(C.treeIndentGuideActive, !0), !1), U("--tree-active-col:", `${f(e.activeGuideDepth, !0)}`));
236
241
  }
237
242
  })), f(b(G, {
238
243
  get when() {
@@ -241,12 +246,12 @@ function me(e) {
241
246
  get children() {
242
247
  return r();
243
248
  }
244
- })), E(gt, M("class", f(C.treeRowContent, !0), !1), f(e.content)), f(b(G, {
249
+ })), p(gt, M("class", f(C.treeRowContent, !0), !1), f(e.content)), f(b(G, {
245
250
  get when() {
246
251
  return e.actions;
247
252
  },
248
253
  get children() {
249
- return E(yt, M("class", f(C.treeRowActions, !0), !1), f(e.actions));
254
+ return p(yt, M("class", f(C.treeRowActions, !0), !1), f(e.actions));
250
255
  }
251
256
  }))], !1);
252
257
  }
@@ -265,7 +270,7 @@ function hn(e) {
265
270
  return e.text;
266
271
  },
267
272
  get children() {
268
- return b(xe, {
273
+ return b(ke, {
269
274
  get each() {
270
275
  return o();
271
276
  },
@@ -277,24 +282,24 @@ function hn(e) {
277
282
  return r.text;
278
283
  },
279
284
  get children() {
280
- return E(wt, M("class", f(e.class ?? C.treeMatchHighlight, !0), !1), f(r.text));
285
+ return p(wt, M("class", f(e.class ?? C.treeMatchHighlight, !0), !1), f(r.text));
281
286
  }
282
287
  })
283
288
  });
284
289
  }
285
290
  });
286
291
  }
287
- const mt = "vk_treeStickyWidget_Q-8QQ", vt = "vk_treeStickyRow_7gWG2", ce = {
292
+ const mt = "vk_treeStickyWidget_Q-8QQ", vt = "vk_treeStickyRow_7gWG2", ae = {
288
293
  treeStickyWidget: mt,
289
294
  treeStickyRow: vt
290
295
  };
291
- var St = ["<div", ' role="list"', ' style="', '">', "</div>"], xt = ["<div", ' role="listitem" style="', '">', "</div>"];
292
- function kt(e) {
293
- return E(St, M("class", f(ce.treeStickyWidget, !0), !1), M("aria-label", f(e.label, !0), !1), U("height:", `${f(e.height, !0)}px`), f(b(ge, {
296
+ var St = ["<div", ' role="list"', ' style="', '">', "</div>"], kt = ["<div", ' role="listitem" style="', '">', "</div>"];
297
+ function xt(e) {
298
+ return p(St, M("class", f(ae.treeStickyWidget, !0), !1), M("aria-label", f(e.label, !0), !1), U("height:", `${f(e.height, !0)}px`), f(b(ge, {
294
299
  get each() {
295
300
  return e.rows;
296
301
  },
297
- children: (t, o) => E(xt, M("class", f(ce.treeStickyRow, !0), !1), U("top:", `${f(t().top, !0)}px`) + U(";z-index:", `${f(e.rows.length, !0) - f(o, !0)}`), f(b(me, {
302
+ children: (t, o) => p(kt, M("class", f(ae.treeStickyRow, !0), !1), U("top:", `${f(t().top, !0)}px`) + U(";z-index:", `${f(e.rows.length, !0) - f(o, !0)}`), f(b(me, {
298
303
  sticky: !0,
299
304
  get row() {
300
305
  return t().row;
@@ -349,29 +354,29 @@ function kt(e) {
349
354
  })));
350
355
  }
351
356
  var Ct = ["<div", ' role="status" aria-live="polite" aria-atomic="true">', "<span", ">", "</span></div>"], bt = ["<div", ' style="', '">', "</div>"], It = ["<p", ">", "</p>"], Rt = ["<div", ' style="', '">', "", "", "</div>"];
352
- const ae = "roving-tabindex";
357
+ const ce = "roving-tabindex";
353
358
  function fn(e) {
354
359
  const t = _(() => e.surface), o = () => t().descriptor, r = () => t().controller;
355
360
  let n;
356
- const c = _(() => ({
361
+ const a = _(() => ({
357
362
  ...ye,
358
363
  ...o().capabilities
359
- })), l = () => c().canExpand && (o().chevronGutter ?? !0), y = _(() => {
364
+ })), l = () => a().canExpand && (o().chevronGutter ?? !0), y = _(() => {
360
365
  if ((o().indentGuide ?? "none") !== "active") return -1;
361
366
  const d = t().cursorRow();
362
367
  return d ? d.depth - 1 : -1;
363
368
  }), w = _(() => {
364
369
  const {
365
370
  start: d,
366
- end: k
371
+ end: x
367
372
  } = t().scroller.range();
368
373
  return Array.from({
369
- length: k - d
374
+ length: x - d
370
375
  }, (R, A) => d + A);
371
- }), m = ke(() => r().cursorIndex());
372
- Ee({
376
+ }), m = xe(() => r().cursorIndex());
377
+ pe({
373
378
  container: () => n,
374
- supportsMultiselect: () => c().canMultiSelect,
379
+ supportsMultiselect: () => a().canMultiSelect,
375
380
  verbs: {
376
381
  selectAll: () => r().selectAll()
377
382
  }
@@ -379,29 +384,29 @@ function fn(e) {
379
384
  const s = _(() => Le({
380
385
  treeId: o().id,
381
386
  label: o().ariaLabel,
382
- multiSelectable: c().canMultiSelect,
383
- focusMode: ae,
387
+ multiSelectable: a().canMultiSelect,
388
+ focusMode: ce,
384
389
  cursorKey: r().cursorKey(),
385
- flat: !c().canExpand
386
- })), g = () => n !== void 0, v = (d, k) => {
387
- r().selectIndex(d, k);
388
- }, I = (d, k, R) => {
390
+ flat: !a().canExpand
391
+ })), g = () => n !== void 0, v = (d, x) => {
392
+ r().selectIndex(d, x);
393
+ }, I = (d, x, R) => {
389
394
  var A, F;
390
- (F = (A = o()).onActivate) == null || F.call(A, d, k, R);
391
- }, x = (d, k) => {
395
+ (F = (A = o()).onActivate) == null || F.call(A, d, x, R);
396
+ }, k = (d, x) => {
392
397
  t().openMenu(d, {
393
- x: k.clientX,
394
- y: k.clientY
395
- }, k);
398
+ x: x.clientX,
399
+ y: x.clientY
400
+ }, x);
396
401
  }, H = (d) => {
397
402
  t().scroller.scrollToIndex(d, "auto", t().stickyInsetFor(d));
398
403
  };
399
- return E(Rt, M("class", f(C.treeStickyHost, !0), !1), U("--tree-indent-base:", `${f(o().indentBaseRem ?? 0, !0)}rem`), f(b(G, {
404
+ return p(Rt, M("class", f(C.treeStickyHost, !0), !1), U("--tree-indent-base:", `${f(o().indentBaseRem ?? 0, !0)}rem`), f(b(G, {
400
405
  get when() {
401
406
  return r().typeAheadQuery().length > 0;
402
407
  },
403
408
  get children() {
404
- return E(Ct, M("class", f(C.treeSpeedSearchBadge, !0), !1), f(b(Ke, {
409
+ return p(Ct, M("class", f(C.treeSpeedSearchBadge, !0), !1), f(b(Ke, {
405
410
  get class() {
406
411
  return C.treeSpeedSearchIcon;
407
412
  }
@@ -409,8 +414,8 @@ function fn(e) {
409
414
  }
410
415
  })), f(b(Ae, {
411
416
  viewportRef: (d) => {
412
- var k;
413
- t().scroller.containerRef(d), (k = e.viewportRef) == null || k.call(e, d);
417
+ var x;
418
+ t().scroller.containerRef(d), (x = e.viewportRef) == null || x.call(e, d);
414
419
  },
415
420
  get viewportClass() {
416
421
  return `${C.treeViewport} ${e.viewportClass ?? ""}`.trim();
@@ -425,20 +430,20 @@ function fn(e) {
425
430
  height: `${t().scroller.totalHeight()}px`
426
431
  };
427
432
  }
428
- }), E(bt, M("class", f(C.treeSlice, !0), !1), U("transform:", `translate3d(0, ${f(t().scroller.offsetY(), !0)}px, 0)`), f(b(ge, {
433
+ }), p(bt, M("class", f(C.treeSlice, !0), !1), U("transform:", `translate3d(0, ${f(t().scroller.offsetY(), !0)}px, 0)`), f(b(ge, {
429
434
  get each() {
430
435
  return w();
431
436
  },
432
437
  children: (d) => {
433
- const k = _(() => t().source().at(d())), R = () => m(d()), A = () => r().selectedKeys().has(k().key), F = _(() => Fe({
438
+ const x = _(() => t().source().at(d())), R = () => m(d()), A = () => r().selectedKeys().has(x().key), F = _(() => Fe({
434
439
  treeId: o().id,
435
440
  rows: t().source(),
436
441
  index: d(),
437
- flat: !c().canExpand
442
+ flat: !a().canExpand
438
443
  }));
439
444
  return b(me, {
440
445
  get row() {
441
- return k();
446
+ return x();
442
447
  },
443
448
  get index() {
444
449
  return d();
@@ -446,7 +451,7 @@ function fn(e) {
446
451
  get aria() {
447
452
  return Pe({
448
453
  structure: F(),
449
- focusMode: ae,
454
+ focusMode: ce,
450
455
  isCursor: R(),
451
456
  isSelected: A()
452
457
  });
@@ -472,14 +477,14 @@ function fn(e) {
472
477
  },
473
478
  get dom() {
474
479
  var D, $;
475
- return ($ = (D = o()).rowProps) == null ? void 0 : $.call(D, k());
480
+ return ($ = (D = o()).rowProps) == null ? void 0 : $.call(D, x());
476
481
  },
477
482
  get content() {
478
- return o().renderContent(k());
483
+ return o().renderContent(x());
479
484
  },
480
485
  get actions() {
481
486
  var D, $;
482
- return ($ = (D = o()).renderActions) == null ? void 0 : $.call(D, k());
487
+ return ($ = (D = o()).renderActions) == null ? void 0 : $.call(D, x());
483
488
  },
484
489
  onSelect: v,
485
490
  onFocusRow: (D) => r().focusIndex(D),
@@ -488,7 +493,7 @@ function fn(e) {
488
493
  return (Q = ($ = o()).onToggle) == null ? void 0 : Q.call($, D);
489
494
  },
490
495
  onActivateClick: I,
491
- onOpenMenu: x
496
+ onOpenMenu: k
492
497
  });
493
498
  }
494
499
  }))), !1), b(G, {
@@ -496,7 +501,7 @@ function fn(e) {
496
501
  return j(() => t().source().length === 0)() && o().emptyLabel;
497
502
  },
498
503
  get children() {
499
- return E(It, M("class", f(C.treeEmpty, !0), !1), f(o().emptyLabel));
504
+ return p(It, M("class", f(C.treeEmpty, !0), !1), f(o().emptyLabel));
500
505
  }
501
506
  })];
502
507
  }
@@ -505,7 +510,7 @@ function fn(e) {
505
510
  return t().stickyState().rows.length > 0;
506
511
  },
507
512
  get children() {
508
- return b(kt, {
513
+ return b(xt, {
509
514
  get rows() {
510
515
  return t().stickyState().rows;
511
516
  },
@@ -532,11 +537,11 @@ function fn(e) {
532
537
  onSelect: v,
533
538
  onFocusRow: (d) => r().focusIndex(d),
534
539
  onToggle: (d) => {
535
- var k, R;
536
- return (R = (k = o()).onToggle) == null ? void 0 : R.call(k, d);
540
+ var x, R;
541
+ return (R = (x = o()).onToggle) == null ? void 0 : R.call(x, d);
537
542
  },
538
543
  onReveal: H,
539
- onOpenMenu: x
544
+ onOpenMenu: k
540
545
  });
541
546
  }
542
547
  })));
@@ -548,12 +553,12 @@ function At(e) {
548
553
  function Tt(e, t) {
549
554
  const { index: o, rowCount: r, capabilities: n } = t;
550
555
  if (r === 0) return null;
551
- const c = o < 0 ? -1 : o;
556
+ const a = o < 0 ? -1 : o;
552
557
  switch (Oe(e)) {
553
558
  case "ArrowDown":
554
- return e.shiftKey && n.canMultiSelect ? { type: "extend", to: V(c + 1, r) } : { type: "move", to: V(c + 1, r) };
559
+ return e.shiftKey && n.canMultiSelect ? { type: "extend", to: V(a + 1, r) } : { type: "move", to: V(a + 1, r) };
555
560
  case "ArrowUp":
556
- return c < 0 ? { type: "move", to: r - 1 } : e.shiftKey && n.canMultiSelect ? { type: "extend", to: V(c - 1, r) } : { type: "move", to: V(c - 1, r) };
561
+ return a < 0 ? { type: "move", to: r - 1 } : e.shiftKey && n.canMultiSelect ? { type: "extend", to: V(a - 1, r) } : { type: "move", to: V(a - 1, r) };
557
562
  case "Home":
558
563
  return { type: "move", to: 0 };
559
564
  case "End":
@@ -561,12 +566,12 @@ function Tt(e, t) {
561
566
  case "PageDown":
562
567
  return {
563
568
  type: "move",
564
- to: V(Math.max(c, 0) + le, r)
569
+ to: V(Math.max(a, 0) + le, r)
565
570
  };
566
571
  case "PageUp":
567
572
  return {
568
573
  type: "move",
569
- to: V(Math.max(c, 0) - le, r)
574
+ to: V(Math.max(a, 0) - le, r)
570
575
  };
571
576
  case "ArrowRight":
572
577
  return n.canExpand ? { type: "expandOrDescend" } : { type: "flatNavigate", direction: "in" };
@@ -584,21 +589,21 @@ function Tt(e, t) {
584
589
  function _t(e, t, o, r = !1) {
585
590
  const n = o.toLowerCase();
586
591
  if (n.length === 0) return -1;
587
- const c = e.length;
588
- if (c === 0) return -1;
592
+ const a = e.length;
593
+ if (a === 0) return -1;
589
594
  const l = r ? 0 : 1;
590
- for (let y = l; y <= c; y++) {
591
- const w = (t + y + c) % c;
595
+ for (let y = l; y <= a; y++) {
596
+ const w = (t + y + a) % a;
592
597
  if (e.at(w).label.toLowerCase().startsWith(n)) return w;
593
598
  }
594
- for (let y = l; y <= c; y++) {
595
- const w = (t + y + c) % c;
599
+ for (let y = l; y <= a; y++) {
600
+ const w = (t + y + a) % a;
596
601
  if (e.at(w).label.toLowerCase().includes(n)) return w;
597
602
  }
598
603
  return -1;
599
604
  }
600
605
  function Mt(e, t, o) {
601
- const r = [...o].filter((m) => e.indexOfKey(m) >= 0), n = pt(e, t, r), c = Et(e, n), l = (m) => m.selectable !== !1 && (c === void 0 || m.kind === c), y = new Set(r);
606
+ const r = [...o].filter((m) => e.indexOfKey(m) >= 0), n = Et(e, t, r), a = pt(e, n), l = (m) => m.selectable !== !1 && (a === void 0 || m.kind === a), y = new Set(r);
602
607
  let w = n < 0 ? -1 : e.parentIndex(n);
603
608
  for (; ; ) {
604
609
  const m = Dt(e, w, l);
@@ -611,13 +616,13 @@ function Mt(e, t, o) {
611
616
  w = e.parentIndex(w);
612
617
  }
613
618
  }
614
- function pt(e, t, o) {
619
+ function Et(e, t, o) {
615
620
  const r = t >= 0 && t < e.length ? e.at(t).key : void 0;
616
621
  if (r !== void 0 && !o.includes(r)) return t;
617
622
  const n = o[0];
618
623
  return n === void 0 ? -1 : e.indexOfKey(n);
619
624
  }
620
- function Et(e, t) {
625
+ function pt(e, t) {
621
626
  if (t >= 0) {
622
627
  const r = e.at(t);
623
628
  if (r.selectable !== !1) return r.kind;
@@ -629,12 +634,12 @@ function Et(e, t) {
629
634
  }
630
635
  }
631
636
  function Dt(e, t, o) {
632
- const r = t < 0 ? 0 : t + 1, n = t < 0 ? e.length - 1 : e.subtreeEnd(t), c = [];
637
+ const r = t < 0 ? 0 : t + 1, n = t < 0 ? e.length - 1 : e.subtreeEnd(t), a = [];
633
638
  for (let l = r; l <= n; l++) {
634
639
  const y = e.at(l);
635
- o(y) && c.push(y.key);
640
+ o(y) && a.push(y.key);
636
641
  }
637
- return c;
642
+ return a;
638
643
  }
639
644
  const se = 1e3;
640
645
  function X(e, t) {
@@ -660,90 +665,90 @@ function Kt(e) {
660
665
  ...ye,
661
666
  ...e.capabilities,
662
667
  expandAll: !1
663
- }), [o, r] = W(null), [n, c] = W(
668
+ }), [o, r] = W(null), [n, a] = W(
664
669
  /* @__PURE__ */ new Set()
665
670
  ), [l, y] = W(null), w = _(
666
671
  () => ue(e.rows(), o())
667
672
  ), m = () => ue(e.rows(), l()), s = _(() => {
668
- const a = w();
669
- return a < 0 ? null : e.rows().at(a).key;
673
+ const c = w();
674
+ return c < 0 ? null : e.rows().at(c).key;
670
675
  });
671
676
  q(() => {
672
- const a = o(), u = w();
673
- if (a === null || u < 0) return;
677
+ const c = o(), u = w();
678
+ if (c === null || u < 0) return;
674
679
  const i = e.rows(), h = i.at(u).key;
675
- if (h === a.key) {
676
- u !== a.index && r(X(i, u));
680
+ if (h === c.key) {
681
+ u !== c.index && r(X(i, u));
677
682
  return;
678
683
  }
679
- a.ancestors.includes(h) && r(X(i, u));
684
+ c.ancestors.includes(h) && r(X(i, u));
680
685
  });
681
686
  const [g, v] = W("");
682
- let I = 0, x;
687
+ let I = 0, k;
683
688
  const H = () => {
684
- x !== void 0 && (clearTimeout(x), x = void 0), g().length > 0 && v("");
689
+ k !== void 0 && (clearTimeout(k), k = void 0), g().length > 0 && v("");
685
690
  }, d = () => {
686
- x !== void 0 && (clearTimeout(x), x = void 0), x = setTimeout(() => {
687
- v(""), x = void 0;
691
+ k !== void 0 && (clearTimeout(k), k = void 0), k = setTimeout(() => {
692
+ v(""), k = void 0;
688
693
  }, se);
689
694
  };
690
695
  Ce(() => {
691
- x !== void 0 && (clearTimeout(x), x = void 0);
696
+ k !== void 0 && (clearTimeout(k), k = void 0);
692
697
  });
693
- const k = (a) => {
698
+ const x = (c) => {
694
699
  const u = e.rows();
695
- return a >= 0 && a < u.length ? u.at(a) : void 0;
696
- }, R = (a, u) => {
700
+ return c >= 0 && c < u.length ? u.at(c) : void 0;
701
+ }, R = (c, u) => {
697
702
  var h;
698
- const i = X(e.rows(), a);
699
- r(i), u && y(i), (h = e.onScrollToIndex) == null || h.call(e, a);
700
- }, A = (a) => {
703
+ const i = X(e.rows(), c);
704
+ r(i), u && y(i), (h = e.onScrollToIndex) == null || h.call(e, c);
705
+ }, A = (c) => {
701
706
  const u = e.rows();
702
- a < 0 || a >= u.length || a === w() || R(a, !0);
703
- }, F = (a) => {
707
+ c < 0 || c >= u.length || c === w() || R(c, !0);
708
+ }, F = (c) => {
704
709
  var i;
705
- const u = e.rows().indexOfKey(a);
710
+ const u = e.rows().indexOfKey(c);
706
711
  u < 0 || (u === w() ? (i = e.onScrollToIndex) == null || i.call(e, u) : A(u));
707
- }, D = (a, u) => {
712
+ }, D = (c, u) => {
708
713
  var L;
709
- const i = e.rows(), h = (L = k(a)) == null ? void 0 : L.kind, [S, T] = a <= u ? [a, u] : [u, a], p = /* @__PURE__ */ new Set();
714
+ const i = e.rows(), h = (L = x(c)) == null ? void 0 : L.kind, [S, T] = c <= u ? [c, u] : [u, c], E = /* @__PURE__ */ new Set();
710
715
  for (let P = Math.max(S, 0); P <= Math.min(T, i.length - 1); P++) {
711
716
  const B = i.at(P);
712
- B.selectable !== !1 && (h !== void 0 && B.kind !== h || p.add(B.key));
717
+ B.selectable !== !1 && (h !== void 0 && B.kind !== h || E.add(B.key));
713
718
  }
714
- return p;
715
- }, $ = (a, u) => {
719
+ return E;
720
+ }, $ = (c, u) => {
716
721
  H();
717
- const i = k(a);
722
+ const i = x(c);
718
723
  if (i) {
719
724
  if (i.selectable === !1 && u !== "range") {
720
- A(a);
725
+ A(c);
721
726
  return;
722
727
  }
723
728
  if (u === "toggle" && t().canMultiSelect) {
724
729
  const h = new Set(n());
725
- h.has(i.key) ? h.delete(i.key) : h.add(i.key), c(h), R(a, !0);
730
+ h.has(i.key) ? h.delete(i.key) : h.add(i.key), a(h), R(c, !0);
726
731
  return;
727
732
  }
728
733
  if (u === "range" && t().canMultiSelect) {
729
734
  const h = m();
730
- c(D(h >= 0 ? h : a, a)), R(a, !1);
735
+ a(D(h >= 0 ? h : c, c)), R(c, !1);
731
736
  return;
732
737
  }
733
- c(/* @__PURE__ */ new Set([i.key])), R(a, !0);
738
+ a(/* @__PURE__ */ new Set([i.key])), R(c, !0);
734
739
  }
735
- }, Q = (a, u) => {
736
- const i = e.rows().indexOfKey(a);
740
+ }, Q = (c, u) => {
741
+ const i = e.rows().indexOfKey(c);
737
742
  i >= 0 && $(i, u);
738
743
  }, Se = () => {
739
- H(), n().size > 0 && c(/* @__PURE__ */ new Set());
740
- }, J = (a, u) => {
741
- const i = e.rows(), h = k(a);
744
+ H(), n().size > 0 && a(/* @__PURE__ */ new Set());
745
+ }, J = (c, u) => {
746
+ const i = e.rows(), h = x(c);
742
747
  if (!h) return;
743
- const S = h.depth + 1, T = i.subtreeEnd(a);
744
- for (let p = a + 1; p <= T; p = i.subtreeEnd(p) + 1) {
745
- const L = i.at(p);
746
- L.depth === S && u(L, p);
748
+ const S = h.depth + 1, T = i.subtreeEnd(c);
749
+ for (let E = c + 1; E <= T; E = i.subtreeEnd(E) + 1) {
750
+ const L = i.at(E);
751
+ L.depth === S && u(L, E);
747
752
  }
748
753
  };
749
754
  return {
@@ -759,26 +764,26 @@ function Kt(e) {
759
764
  selectIndex: $,
760
765
  selectKey: Q,
761
766
  clearSelection: Se,
762
- selectChildren: (a) => {
767
+ selectChildren: (c) => {
763
768
  const u = /* @__PURE__ */ new Set();
764
769
  let i, h = !1, S = -1;
765
- J(a, (T, p) => {
770
+ J(c, (T, E) => {
766
771
  if (T.selectable !== !1) {
767
772
  if (!h)
768
- i = T.kind, S = p, h = !0;
773
+ i = T.kind, S = E, h = !0;
769
774
  else if (i !== void 0 && T.kind !== i) return;
770
775
  u.add(T.key);
771
776
  }
772
- }), u.size !== 0 && (c(u), S >= 0 && R(S, !0));
777
+ }), u.size !== 0 && (a(u), S >= 0 && R(S, !0));
773
778
  },
774
779
  selectAll: () => {
775
- t().canMultiSelect && c(
780
+ t().canMultiSelect && a(
776
781
  new Set(Mt(e.rows(), w(), n()))
777
782
  );
778
783
  },
779
- childKindsHomogeneous: (a) => {
784
+ childKindsHomogeneous: (c) => {
780
785
  let u, i = !1, h = 0, S = 0;
781
- return J(a, (T) => {
786
+ return J(c, (T) => {
782
787
  T.selectable !== !1 && (h++, i ? (u === void 0 || T.kind === u) && S++ : (u = T.kind, i = !0, S++));
783
788
  }), {
784
789
  homogeneous: h > 0 && h === S,
@@ -786,32 +791,32 @@ function Kt(e) {
786
791
  selectable: S
787
792
  };
788
793
  },
789
- handleKeyDown: (a) => {
790
- var T, p, L, P, B, ee, te;
791
- if (He(a, "Escape") && g().length > 0) {
792
- a.preventDefault(), a.stopPropagation(), H();
794
+ handleKeyDown: (c) => {
795
+ var T, E, L, P, B, ee, te;
796
+ if (He(c, "Escape") && g().length > 0) {
797
+ c.preventDefault(), c.stopPropagation(), H();
793
798
  return;
794
799
  }
795
- const u = e.rows(), i = w(), h = Tt(a, {
800
+ const u = e.rows(), i = w(), h = Tt(c, {
796
801
  index: i,
797
802
  rowCount: u.length,
798
803
  capabilities: t()
799
804
  });
800
805
  if (!h) return;
801
- const S = k(i);
806
+ const S = x(i);
802
807
  switch (h.type) {
803
808
  case "move":
804
- a.preventDefault(), A(h.to);
809
+ c.preventDefault(), A(h.to);
805
810
  return;
806
811
  case "extend": {
807
- a.preventDefault();
812
+ c.preventDefault();
808
813
  const K = m();
809
- c(D(K >= 0 ? K : i, h.to)), R(h.to, !1);
814
+ a(D(K >= 0 ? K : i, h.to)), R(h.to, !1);
810
815
  return;
811
816
  }
812
817
  case "expandOrDescend":
813
818
  if (!S) return;
814
- if (a.preventDefault(), S.expandable && !S.expanded) {
819
+ if (c.preventDefault(), S.expandable && !S.expanded) {
815
820
  (T = e.onToggle) == null || T.call(e, S);
816
821
  return;
817
822
  }
@@ -819,8 +824,8 @@ function Kt(e) {
819
824
  return;
820
825
  case "collapseOrAscend": {
821
826
  if (!S) return;
822
- if (a.preventDefault(), S.expandable && S.expanded) {
823
- (p = e.onToggle) == null || p.call(e, S);
827
+ if (c.preventDefault(), S.expandable && S.expanded) {
828
+ (E = e.onToggle) == null || E.call(e, S);
824
829
  return;
825
830
  }
826
831
  const K = u.parentIndex(i);
@@ -829,19 +834,19 @@ function Kt(e) {
829
834
  }
830
835
  case "toggle":
831
836
  if (!(S != null && S.expandable)) return;
832
- a.preventDefault(), (L = e.onToggle) == null || L.call(e, S);
837
+ c.preventDefault(), (L = e.onToggle) == null || L.call(e, S);
833
838
  return;
834
839
  case "flatNavigate":
835
- a.preventDefault(), (P = e.onFlatNavigate) == null || P.call(e, h.direction, S);
840
+ c.preventDefault(), (P = e.onFlatNavigate) == null || P.call(e, h.direction, S);
836
841
  return;
837
842
  case "activate":
838
843
  if (!S) return;
839
- a.preventDefault(), (B = e.onActivate) == null || B.call(e, S);
844
+ c.preventDefault(), (B = e.onActivate) == null || B.call(e, S);
840
845
  return;
841
846
  case "openMenu": {
842
847
  if (!S) return;
843
- a.preventDefault();
844
- const K = a.target, O = K == null ? void 0 : K.getBoundingClientRect();
848
+ c.preventDefault();
849
+ const K = c.target, O = K == null ? void 0 : K.getBoundingClientRect();
845
850
  (ee = e.onOpenMenu) == null || ee.call(e, S, {
846
851
  x: Math.round((O == null ? void 0 : O.left) ?? 0),
847
852
  y: Math.round((O == null ? void 0 : O.bottom) ?? 0)
@@ -859,14 +864,14 @@ function Kt(e) {
859
864
  v(N), N.length > 0 ? d() : H();
860
865
  return;
861
866
  }
862
- v(z), d(), a.preventDefault(), A(ne);
867
+ v(z), d(), c.preventDefault(), A(ne);
863
868
  return;
864
869
  }
865
870
  }
866
871
  },
867
- openMenuAt: (a, u) => {
872
+ openMenuAt: (c, u) => {
868
873
  var h;
869
- const i = k(a);
874
+ const i = x(c);
870
875
  i && ((h = e.onOpenMenu) == null || h.call(e, i, u));
871
876
  }
872
877
  };
@@ -890,13 +895,13 @@ function Ht(e, t, o, r) {
890
895
  n = e.slice(0, l);
891
896
  break;
892
897
  }
893
- const c = n[n.length - 1];
894
- return c ? { rows: n, height: c.top + r } : { rows: [], height: 0 };
898
+ const a = n[n.length - 1];
899
+ return a ? { rows: n, height: a.top + r } : { rows: [], height: 0 };
895
900
  }
896
901
  function Lt(e) {
897
902
  const { rows: t, scrollTop: o, rowHeight: r, viewportHeight: n } = e;
898
903
  if (t.length === 0 || r <= 0) return Gt;
899
- const c = ve(e.maxCount), l = [];
904
+ const a = ve(e.maxCount), l = [];
900
905
  let y = 0, w = -1;
901
906
  for (; ; ) {
902
907
  const m = Math.floor((o + y) / r);
@@ -905,12 +910,12 @@ function Lt(e) {
905
910
  if (s === -1) break;
906
911
  const g = t.subtreeEnd(s);
907
912
  if (g === s || s === m && o === s * r - y) break;
908
- const v = (g + 1) * r - o, I = y, x = I + r > v && I <= v ? v - r : I;
909
- if (l.push({ index: s, row: t.at(s), top: x }), y = x + r, w = s, l.length >= c) break;
913
+ const v = (g + 1) * r - o, I = y, k = I + r > v && I <= v ? v - r : I;
914
+ if (l.push({ index: s, row: t.at(s), top: k }), y = k + r, w = s, l.length >= a) break;
910
915
  }
911
916
  return Ht(
912
917
  l,
913
- c,
918
+ a,
914
919
  n * $t,
915
920
  r
916
921
  );
@@ -918,10 +923,10 @@ function Lt(e) {
918
923
  function Ft(e, t, o, r) {
919
924
  if (t < 0 || t >= e.length) return 0;
920
925
  const n = ve(r);
921
- let c = 0, l = e.parentIndex(t);
922
- for (; l !== -1 && (c++, c !== n); )
926
+ let a = 0, l = e.parentIndex(t);
927
+ for (; l !== -1 && (a++, a !== n); )
923
928
  l = e.parentIndex(l);
924
- return c * o;
929
+ return a * o;
925
930
  }
926
931
  function ie(e, t, o) {
927
932
  if (t <= 0 || e.length === 0 || o <= 0) return null;
@@ -937,8 +942,8 @@ function Pt(e, t, o, r) {
937
942
  return null;
938
943
  const n = e.indexOfKey(t.key);
939
944
  if (n < 0) return null;
940
- const c = n * r + t.offset;
941
- return Math.abs(c - t.contentTop) >= re ? c : null;
945
+ const a = n * r + t.offset;
946
+ return Math.abs(a - t.contentTop) >= re ? a : null;
942
947
  }
943
948
  const Bt = 8, de = 7, Nt = { rows: [], height: 0 };
944
949
  function gn(e) {
@@ -952,7 +957,7 @@ function gn(e) {
952
957
  rowHeight: e.rowHeight,
953
958
  viewportHeight: r.viewportHeight(),
954
959
  maxCount: e.stickyScrollMaxCount ?? de
955
- })), c = (s) => e.stickyScroll === !0 ? Ft(
960
+ })), a = (s) => e.stickyScroll === !0 ? Ft(
956
961
  o(),
957
962
  s,
958
963
  e.rowHeight,
@@ -998,7 +1003,7 @@ function gn(e) {
998
1003
  // a parent would walk the cursor into a row nobody can see. Every scroll the
999
1004
  // controller does — focus, the three selects, select-children, extend —
1000
1005
  // comes through this one call, so this is the only place it has to be said.
1001
- onScrollToIndex: (s) => r.scrollToIndex(s, "auto", c(s))
1006
+ onScrollToIndex: (s) => r.scrollToIndex(s, "auto", a(s))
1002
1007
  }), y = () => {
1003
1008
  const s = l.cursorIndex();
1004
1009
  return s < 0 ? void 0 : o().at(s);
@@ -1052,7 +1057,7 @@ function gn(e) {
1052
1057
  source: o,
1053
1058
  cursorRow: y,
1054
1059
  stickyState: n,
1055
- stickyInsetFor: c,
1060
+ stickyInsetFor: a,
1056
1061
  openMenu: m
1057
1062
  };
1058
1063
  }
@@ -1064,20 +1069,20 @@ function Y(e, t) {
1064
1069
  );
1065
1070
  }
1066
1071
  function Vt(e) {
1067
- const t = e.length, o = new Int32Array(t), r = new Int32Array(t), n = new Int32Array(t), c = new Int32Array(t), l = [], y = [], w = [], m = [];
1072
+ const t = e.length, o = new Int32Array(t), r = new Int32Array(t), n = new Int32Array(t), a = new Int32Array(t), l = [], y = [], w = [], m = [];
1068
1073
  let s = -1, g = -1;
1069
1074
  for (let v = 0; v < t; v++) {
1070
1075
  const I = e[v].depth;
1071
1076
  for (; y.length > 0 && e[y[y.length - 1]].depth >= I; )
1072
1077
  r[y.pop()] = v - 1, w.pop(), m.pop();
1073
- const x = y.length - 1;
1074
- o[v] = x < 0 ? -1 : y[x];
1075
- const H = x < 0 ? s : w[x];
1076
- let d = x < 0 ? g : m[x];
1077
- H !== I && (d = l.length, l.push(0), x < 0 ? (s = I, g = d) : (w[x] = I, m[x] = d)), l[d] = l[d] + 1, c[v] = d, n[v] = l[d], y.push(v), w.push(-1), m.push(-1);
1078
+ const k = y.length - 1;
1079
+ o[v] = k < 0 ? -1 : y[k];
1080
+ const H = k < 0 ? s : w[k];
1081
+ let d = k < 0 ? g : m[k];
1082
+ H !== I && (d = l.length, l.push(0), k < 0 ? (s = I, g = d) : (w[k] = I, m[k] = d)), l[d] = l[d] + 1, a[v] = d, n[v] = l[d], y.push(v), w.push(-1), m.push(-1);
1078
1083
  }
1079
1084
  for (const v of y) r[v] = t - 1;
1080
- return { parent: o, subtreeEnd: r, posInSet: n, group: c, groupSizes: l };
1085
+ return { parent: o, subtreeEnd: r, posInSet: n, group: a, groupSizes: l };
1081
1086
  }
1082
1087
  function Ut(e) {
1083
1088
  const t = /* @__PURE__ */ new Map();
@@ -1094,14 +1099,14 @@ function Ut(e) {
1094
1099
  function wn(e) {
1095
1100
  const t = e.slice(), o = Vt(t), r = Ut(t), n = {
1096
1101
  length: t.length,
1097
- at: (c) => (Y(n, c), t[c]),
1098
- parentIndex: (c) => (Y(n, c), o.parent[c]),
1099
- subtreeEnd: (c) => (Y(n, c), o.subtreeEnd[c]),
1100
- siblingPosition: (c) => (Y(n, c), {
1101
- posInSet: o.posInSet[c],
1102
- setSize: o.groupSizes[o.group[c]]
1102
+ at: (a) => (Y(n, a), t[a]),
1103
+ parentIndex: (a) => (Y(n, a), o.parent[a]),
1104
+ subtreeEnd: (a) => (Y(n, a), o.subtreeEnd[a]),
1105
+ siblingPosition: (a) => (Y(n, a), {
1106
+ posInSet: o.posInSet[a],
1107
+ setSize: o.groupSizes[o.group[a]]
1103
1108
  }),
1104
- indexOfKey: (c) => r.get(c) ?? -1
1109
+ indexOfKey: (a) => r.get(a) ?? -1
1105
1110
  };
1106
1111
  return n;
1107
1112
  }