@carto/ps-react-ui 4.17.1 → 4.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/legend.js CHANGED
@@ -1,18 +1,18 @@
1
- import { jsx as d, jsxs as z, Fragment as he } from "react/jsx-runtime";
1
+ import { jsx as d, jsxs as M, Fragment as he } from "react/jsx-runtime";
2
2
  import { c as T } from "react/compiler-runtime";
3
3
  import { createContext as me, useContext as be, useState as J, useLayoutEffect as Ge, Children as ut, isValidElement as pt, useEffect as ft, useRef as Te, useId as ht } from "react";
4
- import { L as gt, h as yt, g as X, a as mt, m as bt, r as xt, u as vt, n as N, o as Z, p as U, b as ke, i as re, f as Lt, e as De, s as Me, j as xe, l as Ee } from "./legend-store-registry-Bo8U_qWM.js";
5
- import { Box as P, IconButton as ve, Typography as E, Collapse as He, createSvgIcon as St, Menu as $e, CircularProgress as Re, MenuItem as q, Divider as Ct, Slider as wt, InputAdornment as It, OutlinedInput as kt, ButtonBase as $t } from "@mui/material";
6
- import { DragIndicator as Ot, ExpandMore as Ve, VisibilityOffOutlined as _t, VisibilityOutlined as Be, MoreVert as Gt, ChecklistOutlined as Mt, Close as Pt, ArrowDropDown as zt, ErrorOutline as At } from "@mui/icons-material";
4
+ import { L as gt, h as yt, g as X, a as mt, m as bt, r as xt, u as vt, n as N, o as Z, p as U, b as ke, i as re, f as Lt, e as De, s as Pe, j as xe, l as Ee } from "./legend-store-registry-Bo8U_qWM.js";
5
+ import { Box as A, IconButton as ve, Typography as E, Collapse as He, createSvgIcon as wt, Menu as $e, CircularProgress as Re, MenuItem as q, Divider as St, Slider as Ct, InputAdornment as It, OutlinedInput as kt, ButtonBase as $t } from "@mui/material";
6
+ import { DragIndicator as Ot, ExpandMore as Ve, VisibilityOffOutlined as _t, VisibilityOutlined as Be, MoreVert as Gt, ChecklistOutlined as Pt, Close as At, ArrowDropDown as Mt, ErrorOutline as zt } from "@mui/icons-material";
7
7
  import { useSortable as Tt, SortableContext as We, verticalListSortingStrategy as Ne } from "@dnd-kit/sortable";
8
- import { S as Fe } from "./smart-tooltip-D4vwQpFf.js";
8
+ import { S as Fe } from "./smart-tooltip-DFV6GD8R.js";
9
9
  import { CSS as Dt } from "@dnd-kit/utilities";
10
10
  import { T as ie } from "./tooltip-BDnrRKrp.js";
11
11
  import "zustand";
12
12
  import "zustand/vanilla";
13
13
  import "zustand/middleware";
14
14
  import "zustand/react/shallow";
15
- import { useSensors as Et, useSensor as Pe, PointerSensor as Ht, KeyboardSensor as Rt, DndContext as Vt, closestCenter as Bt, DragOverlay as Wt } from "@dnd-kit/core";
15
+ import { useSensors as Et, useSensor as Ae, PointerSensor as Ht, KeyboardSensor as Rt, DndContext as Vt, closestCenter as Bt, DragOverlay as Wt } from "@dnd-kit/core";
16
16
  const ge = {
17
17
  expandLayer: "Expand layer",
18
18
  collapseLayer: "Collapse layer",
@@ -65,11 +65,11 @@ function Nt(t) {
65
65
  e[0] !== l || e[1] !== o || e[2] !== r ? (c = () => {
66
66
  if (yt(o))
67
67
  return X(o);
68
- const w = mt(o, {
68
+ const C = mt(o, {
69
69
  layers: r,
70
70
  groups: l
71
71
  });
72
- return bt(o, w), w;
72
+ return bt(o, C), C;
73
73
  }, e[0] = l, e[1] = o, e[2] = r, e[3] = c) : c = e[3];
74
74
  const [p] = J(c);
75
75
  let f, u;
@@ -92,10 +92,10 @@ function Nt(t) {
92
92
  labels: g
93
93
  }, e[16] = g, e[17] = v) : v = e[17];
94
94
  const b = v;
95
- let C;
96
- e[18] !== a || e[19] !== b ? (C = /* @__PURE__ */ d(Ue.Provider, { value: b, children: a }), e[18] = a, e[19] = b, e[20] = C) : C = e[20];
95
+ let S;
96
+ e[18] !== a || e[19] !== b ? (S = /* @__PURE__ */ d(Ue.Provider, { value: b, children: a }), e[18] = a, e[19] = b, e[20] = S) : S = e[20];
97
97
  let L;
98
- return e[21] !== o || e[22] !== C ? (L = /* @__PURE__ */ d(gt.Provider, { value: o, children: C }), e[21] = o, e[22] = C, e[23] = L) : L = e[23], L;
98
+ return e[21] !== o || e[22] !== S ? (L = /* @__PURE__ */ d(gt.Provider, { value: o, children: S }), e[21] = o, e[22] = S, e[23] = L) : L = e[23], L;
99
99
  }
100
100
  function je(t) {
101
101
  return (e) => {
@@ -126,7 +126,7 @@ function Qe(t) {
126
126
  children: o
127
127
  } = t, l = Q() !== null ? "PsLegend-rowFade" : "PsLegend-groupFade";
128
128
  let i;
129
- return e[0] !== o || e[1] !== l ? (i = /* @__PURE__ */ d(P, { className: l, sx: Ft.fadeGroup, children: o }), e[0] = o, e[1] = l, e[2] = i) : i = e[2], i;
129
+ return e[0] !== o || e[1] !== l ? (i = /* @__PURE__ */ d(A, { className: l, sx: Ft.fadeGroup, children: o }), e[0] = o, e[1] = l, e[2] = i) : i = e[2], i;
130
130
  }
131
131
  function Ye(t) {
132
132
  const e = [], o = [];
@@ -144,7 +144,7 @@ const Je = me(!1);
144
144
  function et() {
145
145
  return be(Je);
146
146
  }
147
- const Se = (t, e) => `${t}:${e}`;
147
+ const we = (t, e) => `${t}:${e}`;
148
148
  function de(t) {
149
149
  const e = t.indexOf(":");
150
150
  if (e === -1) return null;
@@ -219,7 +219,7 @@ function tt(t) {
219
219
  labels: i
220
220
  } = B();
221
221
  let n;
222
- e[0] !== r || e[1] !== o ? (n = Se(o, r), e[0] = r, e[1] = o, e[2] = n) : n = e[2];
222
+ e[0] !== r || e[1] !== o ? (n = we(o, r), e[0] = r, e[1] = o, e[2] = n) : n = e[2];
223
223
  let a;
224
224
  e[3] !== n ? (a = {
225
225
  id: n
@@ -241,21 +241,21 @@ function tt(t) {
241
241
  x: 0
242
242
  } : null),
243
243
  transition: y
244
- }, b = `PsLegend-dragHandle-${o}`, C = o === "group" ? le.handleSlotGroup : le.handleSlotLayer;
244
+ }, b = `PsLegend-dragHandle-${o}`, S = o === "group" ? le.handleSlotGroup : le.handleSlotLayer;
245
245
  let L;
246
- e[16] !== C ? (L = [le.handleSlot, C], e[16] = C, e[17] = L) : L = e[17];
247
- let w;
248
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ d(Ot, {}), e[18] = w) : w = e[18];
246
+ e[16] !== S ? (L = [le.handleSlot, S], e[16] = S, e[17] = L) : L = e[17];
247
+ let C;
248
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ d(Ot, {}), e[18] = C) : C = e[18];
249
249
  let x;
250
- e[19] !== s || e[20] !== i.reorder || e[21] !== c || e[22] !== f ? (x = /* @__PURE__ */ d(ve, { ref: f, size: "xsmall", "aria-label": i.reorder, ...s, ...c, sx: le.handle, children: w }), e[19] = s, e[20] = i.reorder, e[21] = c, e[22] = f, e[23] = x) : x = e[23];
250
+ e[19] !== s || e[20] !== i.reorder || e[21] !== c || e[22] !== f ? (x = /* @__PURE__ */ d(ve, { ref: f, size: "xsmall", "aria-label": i.reorder, ...s, ...c, sx: le.handle, children: C }), e[19] = s, e[20] = i.reorder, e[21] = c, e[22] = f, e[23] = x) : x = e[23];
251
251
  let I;
252
252
  e[24] !== i.reorder || e[25] !== x ? (I = /* @__PURE__ */ d(ie, { title: i.reorder, children: x }), e[24] = i.reorder, e[25] = x, e[26] = I) : I = e[26];
253
- let S;
254
- e[27] !== b || e[28] !== L || e[29] !== I ? (S = /* @__PURE__ */ d(P, { component: "span", className: b, sx: L, children: I }), e[27] = b, e[28] = L, e[29] = I, e[30] = S) : S = e[30], g = l({
253
+ let w;
254
+ e[27] !== b || e[28] !== L || e[29] !== I ? (w = /* @__PURE__ */ d(A, { component: "span", className: b, sx: L, children: I }), e[27] = b, e[28] = L, e[29] = I, e[30] = w) : w = e[30], g = l({
255
255
  rootRef: p,
256
256
  rootStyle: v,
257
257
  dragging: h,
258
- handle: S
258
+ handle: w
259
259
  }), e[5] = s, e[6] = h, e[7] = o, e[8] = i.reorder, e[9] = c, e[10] = l, e[11] = f, e[12] = p, e[13] = u, e[14] = y, e[15] = g;
260
260
  } else
261
261
  g = e[15];
@@ -293,6 +293,29 @@ const ot = 48, Y = {
293
293
  "&:hover .PsLegend-groupFade > *, &:focus-within .PsLegend-groupFade > *": {
294
294
  opacity: 1
295
295
  },
296
+ // Faded actions don't reserve flex space on fine-pointer devices — the
297
+ // label grows to the trailing edge. Hover/focus-within restores the slot
298
+ // so the label reflows with the buttons; a dirty `.active` child keeps
299
+ // the slot open even outside hover.
300
+ "@media (hover: hover)": {
301
+ "& .PsLegend-groupActions:not(:has(.active))": {
302
+ width: 0,
303
+ minWidth: 0,
304
+ overflow: "hidden",
305
+ // Cancel the header gap so nothing is left behind the label.
306
+ marginInlineStart: ({
307
+ spacing: t
308
+ }) => `calc(-1 * ${t(1)})`,
309
+ pointerEvents: "none"
310
+ }
311
+ },
312
+ "&:hover .PsLegend-groupActions, &:focus-within .PsLegend-groupActions": {
313
+ width: "auto",
314
+ minWidth: 0,
315
+ overflow: "visible",
316
+ marginInlineStart: 0,
317
+ pointerEvents: "auto"
318
+ },
296
319
  // Drag handle (Legend.Sortable): absolutely positioned (no reserved flex
297
320
  // slot, so it never shifts the title/icon); the button inside fades in
298
321
  // on hover/focus and is always visible on touch devices.
@@ -360,6 +383,7 @@ const ot = 48, Y = {
360
383
  color: "text.secondary"
361
384
  },
362
385
  label: {
386
+ flex: 1,
363
387
  minWidth: 0,
364
388
  overflow: "hidden",
365
389
  textOverflow: "ellipsis",
@@ -420,30 +444,30 @@ function jt(t) {
420
444
  let v;
421
445
  e[8] !== n.collapsed || e[9] !== o || e[10] !== a ? (v = () => a(o, !n.collapsed), e[8] = n.collapsed, e[9] = o, e[10] = a, e[11] = v) : v = e[11];
422
446
  const b = v;
423
- let C;
424
- e[12] !== h || e[13] !== g || e[14] !== n.collapsed || e[15] !== n.icon || e[16] !== n.label || e[17] !== o || e[18] !== c || e[19] !== u || e[20] !== p || e[21] !== b ? (C = (x) => /* @__PURE__ */ d(Ke.Provider, { value: o, children: /* @__PURE__ */ z(P, { ref: x?.rootRef, style: x?.rootStyle, sx: [Y.group, x?.dragging === !0 && Y.groupDragging], children: [
425
- /* @__PURE__ */ z(P, { sx: Y.header, children: [
447
+ let S;
448
+ e[12] !== h || e[13] !== g || e[14] !== n.collapsed || e[15] !== n.icon || e[16] !== n.label || e[17] !== o || e[18] !== c || e[19] !== u || e[20] !== p || e[21] !== b ? (S = (x) => /* @__PURE__ */ d(Ke.Provider, { value: o, children: /* @__PURE__ */ M(A, { ref: x?.rootRef, style: x?.rootStyle, sx: [Y.group, x?.dragging === !0 && Y.groupDragging], children: [
449
+ /* @__PURE__ */ M(A, { sx: Y.header, children: [
426
450
  x?.handle,
427
- /* @__PURE__ */ z(P, { sx: Y.titleArea, role: "button", tabIndex: 0, "aria-expanded": !n.collapsed, onClick: b, onKeyDown: je(b), children: [
428
- n.icon != null && /* @__PURE__ */ d(P, { sx: Y.groupIcon, children: n.icon }),
451
+ /* @__PURE__ */ M(A, { sx: Y.titleArea, role: "button", tabIndex: 0, "aria-expanded": !n.collapsed, onClick: b, onKeyDown: je(b), children: [
452
+ n.icon != null && /* @__PURE__ */ d(A, { sx: Y.groupIcon, children: n.icon }),
429
453
  /* @__PURE__ */ d(Fe, { title: n.label, dependencies: [n.label], children: (I) => {
430
454
  const {
431
- ref: S
455
+ ref: w
432
456
  } = I;
433
- return /* @__PURE__ */ d(E, { ref: S, variant: "button", fontWeight: "bold", color: c ? "text.disabled" : "text.primary", sx: Y.label, children: n.label });
457
+ return /* @__PURE__ */ d(E, { ref: w, variant: "button", fontWeight: "bold", color: c ? "text.disabled" : "text.primary", sx: Y.label, children: n.label });
434
458
  } }),
435
459
  /* @__PURE__ */ d(Ve, { sx: [Y.chevron, n.collapsed && Y.chevronCollapsed] })
436
460
  ] }),
437
- /* @__PURE__ */ d(P, { sx: Y.actions, children: h })
461
+ /* @__PURE__ */ d(A, { className: "PsLegend-groupActions", sx: Y.actions, children: h })
438
462
  ] }),
439
463
  /* @__PURE__ */ d(He, { in: !n.collapsed, children: p ? /* @__PURE__ */ d(We, { items: u, strategy: Ne, children: g }) : g })
440
- ] }) }), e[12] = h, e[13] = g, e[14] = n.collapsed, e[15] = n.icon, e[16] = n.label, e[17] = o, e[18] = c, e[19] = u, e[20] = p, e[21] = b, e[22] = C) : C = e[22];
441
- const L = C;
442
- let w;
443
- return e[23] !== o || e[24] !== L || e[25] !== p ? (w = p ? /* @__PURE__ */ d(tt, { kind: "group", id: o, render: L }) : L(), e[23] = o, e[24] = L, e[25] = p, e[26] = w) : w = e[26], w;
464
+ ] }) }), e[12] = h, e[13] = g, e[14] = n.collapsed, e[15] = n.icon, e[16] = n.label, e[17] = o, e[18] = c, e[19] = u, e[20] = p, e[21] = b, e[22] = S) : S = e[22];
465
+ const L = S;
466
+ let C;
467
+ return e[23] !== o || e[24] !== L || e[25] !== p ? (C = p ? /* @__PURE__ */ d(tt, { kind: "group", id: o, render: L }) : L(), e[23] = o, e[24] = L, e[25] = p, e[26] = C) : C = e[26], C;
444
468
  }
445
469
  function Zt(t) {
446
- return Se("layer", t.id);
470
+ return we("layer", t.id);
447
471
  }
448
472
  function Kt(t) {
449
473
  return t.setGroupCollapsed;
@@ -463,7 +487,9 @@ const j = {
463
487
  // `.PsLegend-rowFade` are hidden on fine-pointer devices and fade in when
464
488
  // the row is hovered or holds focus; a control carrying `.active` (dirty
465
489
  // state — hidden layer, open menu, opacity ≠ 1) stays visible. Coarse-
466
- // pointer (touch) devices always show them. The collapse chevron sits
490
+ // pointer (touch) devices always show them. The actions slot itself also
491
+ // collapses to zero width while faded (see `PsLegend-rowActions` below)
492
+ // so the title can grow to the trailing edge. The collapse chevron sits
467
493
  // outside the fade group and never fades.
468
494
  "& .PsLegend-rowFade > *": {
469
495
  opacity: 1,
@@ -483,6 +509,29 @@ const j = {
483
509
  "&:hover .PsLegend-rowFade > *, &:focus-within .PsLegend-rowFade > *": {
484
510
  opacity: 1
485
511
  },
512
+ // Faded actions don't reserve flex space on fine-pointer devices — the
513
+ // title grows to the trailing edge. Hover/focus-within restores the slot
514
+ // so the title reflows with the buttons; a dirty `.active` child keeps
515
+ // the slot open even outside hover.
516
+ "@media (hover: hover)": {
517
+ "& .PsLegend-rowActions:not(:has(.active))": {
518
+ width: 0,
519
+ minWidth: 0,
520
+ overflow: "hidden",
521
+ // Cancel the header gap so nothing is left behind the title.
522
+ marginInlineStart: ({
523
+ spacing: t
524
+ }) => `calc(-1 * ${t(0.5)})`,
525
+ pointerEvents: "none"
526
+ }
527
+ },
528
+ "&:hover .PsLegend-rowActions, &:focus-within .PsLegend-rowActions": {
529
+ width: "auto",
530
+ minWidth: 0,
531
+ overflow: "visible",
532
+ marginInlineStart: 0,
533
+ pointerEvents: "auto"
534
+ },
486
535
  // Hovering anywhere in the row also reveals the category/icon values
487
536
  // (the renderers keep their own list-scoped rule for standalone usage).
488
537
  "&:hover .PsLegend-value, &:focus-within .PsLegend-value": {
@@ -558,6 +607,7 @@ const j = {
558
607
  gap: 0.5
559
608
  },
560
609
  title: {
610
+ flex: 1,
561
611
  minWidth: 0,
562
612
  overflow: "hidden",
563
613
  textOverflow: "ellipsis",
@@ -637,49 +687,49 @@ function Xt(t) {
637
687
  const b = v;
638
688
  if (!n)
639
689
  return null;
640
- let C;
641
- e[7] !== r ? (C = Ye(r), e[7] = r, e[8] = C) : C = e[8];
690
+ let S;
691
+ e[7] !== r ? (S = Ye(r), e[7] = r, e[8] = S) : S = e[8];
642
692
  const {
643
693
  actions: L,
644
- body: w
645
- } = C, x = !n.visible || n.collapsed, I = p ? ot : 0, S = n.visible && c;
694
+ body: C
695
+ } = S, x = !n.visible || n.collapsed, I = p ? ot : 0, w = n.visible && c;
646
696
  let O;
647
697
  e[9] !== n.collapsed || e[10] !== o || e[11] !== a ? (O = () => a(o, !n.collapsed), e[9] = n.collapsed, e[10] = o, e[11] = a, e[12] = O) : O = e[12];
648
698
  const k = O;
649
699
  let $;
650
- e[13] !== L || e[14] !== w || e[15] !== S || e[16] !== x || e[17] !== n.collapsed || e[18] !== n.helperText || e[19] !== n.name || e[20] !== n.subtitle || e[21] !== n.visible || e[22] !== b || e[23] !== I || e[24] !== k ? ($ = (m) => /* @__PURE__ */ d(Ze.Provider, { value: b, children: /* @__PURE__ */ z(P, { ref: m?.rootRef, style: m?.rootStyle, sx: [j.row, m?.dragging === !0 && j.rowDragging], children: [
651
- /* @__PURE__ */ z(P, { sx: j.header, style: {
700
+ e[13] !== L || e[14] !== C || e[15] !== w || e[16] !== x || e[17] !== n.collapsed || e[18] !== n.helperText || e[19] !== n.name || e[20] !== n.subtitle || e[21] !== n.visible || e[22] !== b || e[23] !== I || e[24] !== k ? ($ = (m) => /* @__PURE__ */ d(Ze.Provider, { value: b, children: /* @__PURE__ */ M(A, { ref: m?.rootRef, style: m?.rootStyle, sx: [j.row, m?.dragging === !0 && j.rowDragging], children: [
701
+ /* @__PURE__ */ M(A, { sx: j.header, style: {
652
702
  top: I
653
703
  }, children: [
654
704
  m?.handle,
655
- /* @__PURE__ */ z(P, { sx: [j.titleBox, S && j.titleBoxInteractive], ...S && {
705
+ /* @__PURE__ */ M(A, { sx: [j.titleBox, w && j.titleBoxInteractive], ...w && {
656
706
  role: "button",
657
707
  tabIndex: 0,
658
708
  "aria-expanded": !n.collapsed,
659
709
  onClick: k,
660
710
  onKeyDown: je(k)
661
711
  }, children: [
662
- /* @__PURE__ */ z(P, { sx: j.titleLine, children: [
663
- /* @__PURE__ */ d(Fe, { title: n.name, dependencies: [n.name], children: (M) => {
712
+ /* @__PURE__ */ M(A, { sx: j.titleLine, children: [
713
+ /* @__PURE__ */ d(Fe, { title: n.name, dependencies: [n.name], children: (P) => {
664
714
  const {
665
- ref: A
666
- } = M;
667
- return /* @__PURE__ */ d(E, { ref: A, variant: "button", color: n.visible ? "text.primary" : "text.disabled", sx: j.title, children: n.name });
715
+ ref: z
716
+ } = P;
717
+ return /* @__PURE__ */ d(E, { ref: z, variant: "button", color: n.visible ? "text.primary" : "text.disabled", sx: j.title, children: n.name });
668
718
  } }),
669
- S && /* @__PURE__ */ d(Ve, { sx: [j.chevron, n.collapsed && j.chevronCollapsed] })
719
+ w && /* @__PURE__ */ d(Ve, { sx: [j.chevron, n.collapsed && j.chevronCollapsed] })
670
720
  ] }),
671
721
  n.subtitle && !x && /* @__PURE__ */ d(E, { variant: "caption", color: "text.secondary", children: n.subtitle })
672
722
  ] }),
673
- /* @__PURE__ */ d(P, { sx: j.actions, children: L })
723
+ /* @__PURE__ */ d(A, { className: "PsLegend-rowActions", sx: j.actions, children: L })
674
724
  ] }),
675
- /* @__PURE__ */ z(He, { in: !x, children: [
676
- /* @__PURE__ */ d(P, { sx: n.visible ? j.content : {
725
+ /* @__PURE__ */ M(He, { in: !x, children: [
726
+ /* @__PURE__ */ d(A, { sx: n.visible ? j.content : {
677
727
  ...j.content,
678
728
  ...j.dimmed
679
- }, children: w }),
680
- n.helperText && /* @__PURE__ */ d(P, { sx: j.footer, children: typeof n.helperText == "string" ? /* @__PURE__ */ d(E, { variant: "caption", color: "text.secondary", children: n.helperText }) : n.helperText })
729
+ }, children: C }),
730
+ n.helperText && /* @__PURE__ */ d(A, { sx: j.footer, children: typeof n.helperText == "string" ? /* @__PURE__ */ d(E, { variant: "caption", color: "text.secondary", children: n.helperText }) : n.helperText })
681
731
  ] })
682
- ] }) }), e[13] = L, e[14] = w, e[15] = S, e[16] = x, e[17] = n.collapsed, e[18] = n.helperText, e[19] = n.name, e[20] = n.subtitle, e[21] = n.visible, e[22] = b, e[23] = I, e[24] = k, e[25] = $) : $ = e[25];
732
+ ] }) }), e[13] = L, e[14] = C, e[15] = w, e[16] = x, e[17] = n.collapsed, e[18] = n.helperText, e[19] = n.name, e[20] = n.subtitle, e[21] = n.visible, e[22] = b, e[23] = I, e[24] = k, e[25] = $) : $ = e[25];
683
733
  const _ = $;
684
734
  let G;
685
735
  return e[26] !== o || e[27] !== _ || e[28] !== f ? (G = f ? /* @__PURE__ */ d(tt, { kind: "layer", id: o, render: _ }) : _(), e[26] = o, e[27] = _, e[28] = f, e[29] = G) : G = e[29], G;
@@ -687,7 +737,7 @@ function Xt(t) {
687
737
  function qt(t) {
688
738
  return t.setCollapsed;
689
739
  }
690
- const Qt = St(/* @__PURE__ */ z("g", { transform: "translate(12 12) scale(1.33333) translate(-184 -24)", children: [
740
+ const Qt = wt(/* @__PURE__ */ M("g", { transform: "translate(12 12) scale(1.33333) translate(-184 -24)", children: [
691
741
  /* @__PURE__ */ d("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M184.901 29.5794L185.217 29.5415C185.803 29.4604 186.372 29.3216 186.918 29.1319L187 29.1007L187 29.1033L187.208 29.0255L187.536 28.8904C187.722 28.8088 187.906 28.721 188.086 28.6272L188.366 28.4747C188.381 28.4663 188.395 28.4578 188.41 28.4493C188.418 28.4451 188.425 28.4408 188.432 28.4365C188.455 28.4234 188.478 28.4102 188.5 28.3969C188.551 28.3668 188.601 28.3362 188.652 28.3052L188.912 28.1374C189.598 27.6788 190.217 27.1271 190.75 26.5002L190.751 26.4954C190.989 26.2164 191.21 25.9226 191.413 25.6152C191.488 25.5007 191.561 25.3843 191.631 25.2662L191.757 25.0445L191.878 24.8189L192.021 24.5306L192.15 24.2443L192.25 24C190.98 20.7776 187.885 18.4747 184.239 18.3782L184 18.375L183.716 18.3795L183.637 18.3823L183.373 18.3967L183.103 18.4198L182.838 18.4506L182.666 18.4749L182.426 18.5146C182.19 18.557 181.957 18.6087 181.728 18.6684L181.55 18.7175L181.271 18.8039L182.508 20.04L182.801 19.9854C183.194 19.9182 183.592 19.875 184 19.875C186.842 19.875 189.378 21.4725 190.615 24C190.172 24.915 189.55 25.7025 188.807 26.34L188.811 26.3446C188.71 26.4323 188.606 26.5172 188.5 26.5991C188.455 26.6337 188.41 26.6679 188.364 26.7015C188.108 26.8897 187.84 27.0611 187.562 27.2145C187.088 27.4755 186.585 27.6844 186.058 27.836L186.062 27.84L185.778 27.9125C185.707 27.9293 185.635 27.9452 185.563 27.9602C185.297 28.0173 185.025 28.06 184.75 28.0876V28.0866C184.503 28.1118 184.253 28.125 184 28.125C181.158 28.125 178.622 26.5275 177.385 24C177.91 22.9275 178.675 22.0425 179.582 21.3525L180.895 22.665L180.826 22.844C180.697 23.2065 180.625 23.595 180.625 24C180.625 25.86 182.14 27.375 184 27.375C184.258 27.375 184.509 27.3459 184.75 27.2915C185.462 27.129 186.09 26.7397 186.553 26.2048L179.79 19.4389C179.339 19.6833 178.912 19.9656 178.512 20.2817L178.517 20.2875L178.271 20.4884C177.704 20.9671 177.197 21.516 176.766 22.1227C176.404 22.6333 176.095 23.1838 175.845 23.7662L175.75 24C177.048 27.2925 180.25 29.625 184 29.625L184.285 29.6205L184.492 29.6116L184.628 29.6025L184.901 29.5794ZM182.133 23.9025L184.09 25.86L184.045 25.8703L184 25.875C182.965 25.875 182.125 25.035 182.125 24L182.133 23.9025Z" }),
692
742
  /* @__PURE__ */ d("path", { d: "M187.368 23.9925C187.375 22.1325 185.86 20.625 184 20.625C183.722 20.625 183.46 20.6625 183.198 20.73L184.75 22.2825L184.889 22.3507C185.252 22.5477 185.543 22.8625 185.71 23.2425L187.263 24.795L187.304 24.6011C187.342 24.4045 187.368 24.2006 187.368 23.9925Z" })
693
743
  ] }), "VisibilityIndeterminate"), Yt = {
@@ -713,32 +763,32 @@ function Jt(t) {
713
763
  e[7] !== c || e[8] !== a || e[9] !== n ? (v = () => {
714
764
  !c && !n && !a && console.warn("Legend.VisibilityToggle needs `visibility`/`onToggle` props or a Legend.Row / Legend.Group context.");
715
765
  }, b = [c, n, a], e[7] = c, e[8] = a, e[9] = n, e[10] = v, e[11] = b) : (v = e[10], b = e[11]), ft(v, b);
716
- let C, L, w = l;
766
+ let S, L, C = l;
717
767
  if (c) {
718
- C = o;
768
+ S = o;
719
769
  let m;
720
770
  e[12] !== r || e[13] !== o ? (m = () => r(o === "hidden"), e[12] = r, e[13] = o, e[14] = m) : m = e[14], L = m;
721
771
  } else if (n) {
722
- C = f ? "visible" : "hidden";
772
+ S = f ? "visible" : "hidden";
723
773
  let m;
724
774
  e[15] !== f || e[16] !== n || e[17] !== h ? (m = () => h(n.layerId, !f), e[15] = f, e[16] = n, e[17] = h, e[18] = m) : m = e[18], L = m;
725
775
  } else if (a) {
726
- C = y;
776
+ S = y;
727
777
  let m;
728
778
  e[19] !== a || e[20] !== y || e[21] !== g ? (m = () => g(a, y === "hidden"), e[19] = a, e[20] = y, e[21] = g, e[22] = m) : m = e[22], L = m;
729
- let M;
730
- e[23] !== s || e[24] !== l ? (M = l ?? {
779
+ let P;
780
+ e[23] !== s || e[24] !== l ? (P = l ?? {
731
781
  hideLayer: s.hideGroup,
732
782
  showLayer: s.showGroup
733
- }, e[23] = s, e[24] = l, e[25] = M) : M = e[25], w = M;
783
+ }, e[23] = s, e[24] = l, e[25] = P) : P = e[25], C = P;
734
784
  } else
735
785
  return null;
736
786
  const {
737
787
  hideLayer: x,
738
788
  showLayer: I
739
- } = w ?? s, S = Yt[C], O = C === "hidden" ? I : x, k = C === "visible" ? void 0 : "active";
789
+ } = C ?? s, w = Yt[S], O = S === "hidden" ? I : x, k = S === "visible" ? void 0 : "active";
740
790
  let $;
741
- e[26] !== S ? ($ = /* @__PURE__ */ d(S, { fontSize: "small" }), e[26] = S, e[27] = $) : $ = e[27];
791
+ e[26] !== w ? ($ = /* @__PURE__ */ d(w, { fontSize: "small" }), e[26] = w, e[27] = $) : $ = e[27];
742
792
  let _;
743
793
  e[28] !== L || e[29] !== O || e[30] !== k || e[31] !== $ ? (_ = /* @__PURE__ */ d(ve, { size: "small", className: k, onClick: L, "aria-label": O, children: $ }), e[28] = L, e[29] = O, e[30] = k, e[31] = $, e[32] = _) : _ = e[32];
744
794
  let G;
@@ -766,23 +816,23 @@ function Oe(t) {
766
816
  e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = (V) => {
767
817
  u.current = V, f(V);
768
818
  }, e[1] = b) : b = e[1];
769
- const C = b;
819
+ const S = b;
770
820
  let L;
771
821
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = () => u.current, e[2] = L) : L = e[2];
772
- const w = L;
822
+ const C = L;
773
823
  let x;
774
824
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = () => {
775
825
  u.current || v();
776
826
  }, e[3] = x) : x = e[3];
777
827
  const I = x;
778
- let S;
779
- e[4] !== p ? (S = {
828
+ let w;
829
+ e[4] !== p ? (w = {
780
830
  busy: p,
781
- isBusy: w,
782
- setBusy: C,
831
+ isBusy: C,
832
+ setBusy: S,
783
833
  close: v
784
- }, e[4] = p, e[5] = S) : S = e[5];
785
- const O = S;
834
+ }, e[4] = p, e[5] = w) : w = e[5];
835
+ const O = w;
786
836
  if (!n || !o)
787
837
  return null;
788
838
  let k;
@@ -794,15 +844,15 @@ function Oe(t) {
794
844
  e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ d(Gt, { fontSize: "small" }), e[7] = G) : G = e[7];
795
845
  let m;
796
846
  e[8] !== l || e[9] !== y || e[10] !== _ ? (m = /* @__PURE__ */ d(ve, { size: "small", className: _, onClick: $, "aria-label": l, "aria-haspopup": "menu", "aria-expanded": y, children: G }), e[8] = l, e[9] = y, e[10] = _, e[11] = m) : m = e[11];
797
- let M;
798
- e[12] !== h.moreOptions || e[13] !== m ? (M = /* @__PURE__ */ d(ie, { title: h.moreOptions, children: m }), e[12] = h.moreOptions, e[13] = m, e[14] = M) : M = e[14];
799
- let A;
800
- e[15] !== s || e[16] !== o || e[17] !== y ? (A = /* @__PURE__ */ d($e, { anchorEl: s, open: y, onClose: I, onClick: I, children: o }), e[15] = s, e[16] = o, e[17] = y, e[18] = A) : A = e[18];
847
+ let P;
848
+ e[12] !== h.moreOptions || e[13] !== m ? (P = /* @__PURE__ */ d(ie, { title: h.moreOptions, children: m }), e[12] = h.moreOptions, e[13] = m, e[14] = P) : P = e[14];
849
+ let z;
850
+ e[15] !== s || e[16] !== o || e[17] !== y ? (z = /* @__PURE__ */ d($e, { anchorEl: s, open: y, onClose: I, onClick: I, children: o }), e[15] = s, e[16] = o, e[17] = y, e[18] = z) : z = e[18];
801
851
  let D;
802
- return e[19] !== O || e[20] !== M || e[21] !== A ? (D = /* @__PURE__ */ z(Xe.Provider, { value: O, children: [
803
- M,
804
- A
805
- ] }), e[19] = O, e[20] = M, e[21] = A, e[22] = D) : D = e[22], D;
852
+ return e[19] !== O || e[20] !== P || e[21] !== z ? (D = /* @__PURE__ */ M(Xe.Provider, { value: O, children: [
853
+ P,
854
+ z
855
+ ] }), e[19] = O, e[20] = P, e[21] = z, e[22] = D) : D = e[22], D;
806
856
  }
807
857
  function oo(t) {
808
858
  const e = T(5), {
@@ -846,7 +896,7 @@ function no(t) {
846
896
  } }), e[6] = c, e[7] = u) : u = e[7];
847
897
  const y = c ? s.loading : s.zoomTo;
848
898
  let h;
849
- return e[8] !== c || e[9] !== f || e[10] !== u || e[11] !== y ? (h = /* @__PURE__ */ z(q, { disabled: c, onClick: f, children: [
899
+ return e[8] !== c || e[9] !== f || e[10] !== u || e[11] !== y ? (h = /* @__PURE__ */ M(q, { disabled: c, onClick: f, children: [
850
900
  u,
851
901
  y
852
902
  ] }), e[8] = c, e[9] = f, e[10] = u, e[11] = y, e[12] = h) : h = e[12], h;
@@ -933,14 +983,14 @@ function ao() {
933
983
  return t[2] !== r.showAllGroups || t[3] !== i ? (n = /* @__PURE__ */ d(q, { onClick: i, children: r.showAllGroups }), t[2] = r.showAllGroups, t[3] = i, t[4] = n) : n = t[4], n;
934
984
  }
935
985
  function co() {
936
- const t = T(5), e = N(), o = U(e, De), r = U(e, Me), {
986
+ const t = T(5), e = N(), o = U(e, De), r = U(e, Pe), {
937
987
  labels: l
938
988
  } = B();
939
989
  if (!o)
940
990
  return null;
941
991
  let i;
942
992
  t[0] !== e ? (i = () => {
943
- const c = X(e).getState(), p = Me(c);
993
+ const c = X(e).getState(), p = Pe(c);
944
994
  for (const f of xe(c))
945
995
  c.setGroupCollapsed(f.id, !p);
946
996
  }, t[0] = e, t[1] = i) : i = t[1];
@@ -971,7 +1021,7 @@ function uo(t) {
971
1021
  } }), e[6] = c, e[7] = u) : u = e[7];
972
1022
  const y = c ? s.loading : s.zoomToGroup;
973
1023
  let h;
974
- return e[8] !== c || e[9] !== f || e[10] !== u || e[11] !== y ? (h = /* @__PURE__ */ z(q, { disabled: c, onClick: f, children: [
1024
+ return e[8] !== c || e[9] !== f || e[10] !== u || e[11] !== y ? (h = /* @__PURE__ */ M(q, { disabled: c, onClick: f, children: [
975
1025
  u,
976
1026
  y
977
1027
  ] }), e[8] = c, e[9] = f, e[10] = u, e[11] = y, e[12] = h) : h = e[12], h;
@@ -1060,40 +1110,40 @@ function ho() {
1060
1110
  t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = () => r(null), t[1] = f) : f = t[1];
1061
1111
  const u = f, y = s ? "active" : void 0, h = a === 0;
1062
1112
  let g;
1063
- t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ d(Mt, { fontSize: "small" }), t[2] = g) : g = t[2];
1113
+ t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ d(Pt, { fontSize: "small" }), t[2] = g) : g = t[2];
1064
1114
  let v;
1065
- t[3] !== n.enabledLayers || t[4] !== s || t[5] !== y || t[6] !== h ? (v = /* @__PURE__ */ d(P, { component: "span", sx: ee.triggerWrap, children: /* @__PURE__ */ d(ve, { size: "small", className: y, disabled: h, onClick: p, "aria-label": n.enabledLayers, "aria-haspopup": "menu", "aria-expanded": s, children: g }) }), t[3] = n.enabledLayers, t[4] = s, t[5] = y, t[6] = h, t[7] = v) : v = t[7];
1115
+ t[3] !== n.enabledLayers || t[4] !== s || t[5] !== y || t[6] !== h ? (v = /* @__PURE__ */ d(A, { component: "span", sx: ee.triggerWrap, children: /* @__PURE__ */ d(ve, { size: "small", className: y, disabled: h, onClick: p, "aria-label": n.enabledLayers, "aria-haspopup": "menu", "aria-expanded": s, children: g }) }), t[3] = n.enabledLayers, t[4] = s, t[5] = y, t[6] = h, t[7] = v) : v = t[7];
1066
1116
  let b;
1067
1117
  t[8] !== n.toggleEnabledLayers || t[9] !== v ? (b = /* @__PURE__ */ d(ie, { title: n.toggleEnabledLayers, children: v }), t[8] = n.toggleEnabledLayers, t[9] = v, t[10] = b) : b = t[10];
1068
- const C = $e;
1118
+ const S = $e;
1069
1119
  let L;
1070
1120
  t[11] !== u ? (L = {
1071
1121
  onExited: u
1072
1122
  }, t[11] = u, t[12] = L) : L = t[12];
1073
- let w, x;
1074
- t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
1123
+ let C, x;
1124
+ t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
1075
1125
  disablePadding: !0
1076
1126
  }, x = {
1077
1127
  paper: {
1078
1128
  sx: ee.paper
1079
1129
  }
1080
- }, t[13] = w, t[14] = x) : (w = t[13], x = t[14]);
1130
+ }, t[13] = C, t[14] = x) : (C = t[13], x = t[14]);
1081
1131
  const I = `${n.enabledLayers} (${a})`;
1082
- let S;
1083
- t[15] !== I ? (S = /* @__PURE__ */ d(E, { component: "div", variant: "caption", color: "text.primary", sx: ee.stickyHeader, children: I }), t[15] = I, t[16] = S) : S = t[16];
1132
+ let w;
1133
+ t[15] !== I ? (w = /* @__PURE__ */ d(E, { component: "div", variant: "caption", color: "text.primary", sx: ee.stickyHeader, children: I }), t[15] = I, t[16] = w) : w = t[16];
1084
1134
  let O;
1085
- t[17] !== n.hideLayer || t[18] !== i ? (O = (G, m) => [m > 0 ? /* @__PURE__ */ d(Ct, { sx: ee.divider }, `divider-${G.group?.id ?? "ungrouped"}`) : null, G.group ? /* @__PURE__ */ d(E, { variant: "caption", fontWeight: "medium", color: "text.secondary", sx: ee.groupCaption, children: G.group.label }, `caption-${G.group.id}`) : null, ...G.layers.map((M) => /* @__PURE__ */ z(q, { disableRipple: !0, sx: ee.item, onClick: () => i(M.id, !1), children: [
1086
- /* @__PURE__ */ d(E, { variant: "body2", sx: ee.itemName, children: M.name }),
1135
+ t[17] !== n.hideLayer || t[18] !== i ? (O = (G, m) => [m > 0 ? /* @__PURE__ */ d(St, { sx: ee.divider }, `divider-${G.group?.id ?? "ungrouped"}`) : null, G.group ? /* @__PURE__ */ d(E, { variant: "caption", fontWeight: "medium", color: "text.secondary", sx: ee.groupCaption, children: G.group.label }, `caption-${G.group.id}`) : null, ...G.layers.map((P) => /* @__PURE__ */ M(q, { disableRipple: !0, sx: ee.item, onClick: () => i(P.id, !1), children: [
1136
+ /* @__PURE__ */ d(E, { variant: "body2", sx: ee.itemName, children: P.name }),
1087
1137
  /* @__PURE__ */ d(ie, { title: n.hideLayer, children: /* @__PURE__ */ d(Be, { sx: ee.eye }) })
1088
- ] }, M.id))], t[17] = n.hideLayer, t[18] = i, t[19] = O) : O = t[19];
1138
+ ] }, P.id))], t[17] = n.hideLayer, t[18] = i, t[19] = O) : O = t[19];
1089
1139
  const k = l.flatMap(O);
1090
1140
  let $;
1091
- t[20] !== C || t[21] !== o || t[22] !== u || t[23] !== s || t[24] !== S || t[25] !== k || t[26] !== L || t[27] !== w || t[28] !== x ? ($ = /* @__PURE__ */ z(C, { anchorEl: o, open: s, onClose: u, TransitionProps: L, MenuListProps: w, slotProps: x, children: [
1092
- S,
1141
+ t[20] !== S || t[21] !== o || t[22] !== u || t[23] !== s || t[24] !== w || t[25] !== k || t[26] !== L || t[27] !== C || t[28] !== x ? ($ = /* @__PURE__ */ M(S, { anchorEl: o, open: s, onClose: u, TransitionProps: L, MenuListProps: C, slotProps: x, children: [
1142
+ w,
1093
1143
  k
1094
- ] }), t[20] = C, t[21] = o, t[22] = u, t[23] = s, t[24] = S, t[25] = k, t[26] = L, t[27] = w, t[28] = x, t[29] = $) : $ = t[29];
1144
+ ] }), t[20] = S, t[21] = o, t[22] = u, t[23] = s, t[24] = w, t[25] = k, t[26] = L, t[27] = C, t[28] = x, t[29] = $) : $ = t[29];
1095
1145
  let _;
1096
- return t[30] !== $ || t[31] !== b ? (_ = /* @__PURE__ */ z(he, { children: [
1146
+ return t[30] !== $ || t[31] !== b ? (_ = /* @__PURE__ */ M(he, { children: [
1097
1147
  b,
1098
1148
  $
1099
1149
  ] }), t[30] = $, t[31] = b, t[32] = _) : _ = t[32], _;
@@ -1134,14 +1184,14 @@ function vo(t) {
1134
1184
  } = $, {
1135
1185
  active: G,
1136
1186
  collisionRect: m,
1137
- droppableRects: M,
1138
- droppableContainers: A
1187
+ droppableRects: P,
1188
+ droppableContainers: z
1139
1189
  } = _;
1140
1190
  if (!G || !m || k.code !== "ArrowDown" && k.code !== "ArrowUp")
1141
1191
  return;
1142
1192
  k.preventDefault();
1143
- const D = k.code === "ArrowDown", W = A.getEnabled().filter((R) => R.id !== G.id && c(String(G.id), String(R.id))).flatMap((R) => {
1144
- const H = M.get(R.id);
1193
+ const D = k.code === "ArrowDown", W = z.getEnabled().filter((R) => R.id !== G.id && c(String(G.id), String(R.id))).flatMap((R) => {
1194
+ const H = P.get(R.id);
1145
1195
  return H ? [H] : [];
1146
1196
  }).filter((R) => D ? R.top > m.top : R.top < m.top).sort((R, H) => D ? R.top - H.top : H.top - R.top)[0];
1147
1197
  return W ? {
@@ -1154,7 +1204,7 @@ function vo(t) {
1154
1204
  e[4] !== f ? (u = {
1155
1205
  coordinateGetter: f
1156
1206
  }, e[4] = f, e[5] = u) : u = e[5];
1157
- const y = Et(Pe(Ht), Pe(Rt, u));
1207
+ const y = Et(Ae(Ht), Ae(Rt, u));
1158
1208
  let h;
1159
1209
  e[6] !== c ? (h = (k) => {
1160
1210
  const $ = k.droppableContainers.filter((_) => c(String(k.active.id), String(_.id)));
@@ -1172,8 +1222,8 @@ function vo(t) {
1172
1222
  n.current = _?.kind === "layer" ? X(r).getState().layers[_.id]?.groupId : void 0;
1173
1223
  }, e[8] = r, e[9] = v) : v = e[9];
1174
1224
  const b = v;
1175
- let C;
1176
- e[10] !== r ? (C = (k) => {
1225
+ let S;
1226
+ e[10] !== r ? (S = (k) => {
1177
1227
  i(null);
1178
1228
  const {
1179
1229
  active: $,
@@ -1184,43 +1234,43 @@ function vo(t) {
1184
1234
  const G = de(String($.id)), m = de(String(_.id));
1185
1235
  if (!G || G.kind !== m?.kind)
1186
1236
  return;
1187
- const M = X(r).getState();
1237
+ const P = X(r).getState();
1188
1238
  if (G.kind === "group") {
1189
- const R = xe(M).findIndex((H) => H.id === m.id);
1190
- R !== -1 && M.moveGroup(G.id, R);
1239
+ const R = xe(P).findIndex((H) => H.id === m.id);
1240
+ R !== -1 && P.moveGroup(G.id, R);
1191
1241
  return;
1192
1242
  }
1193
- const A = M.layers[G.id], D = M.layers[m.id];
1194
- if (!A || !D || A.groupId !== D.groupId)
1243
+ const z = P.layers[G.id], D = P.layers[m.id];
1244
+ if (!z || !D || z.groupId !== D.groupId)
1195
1245
  return;
1196
- const W = re(M, A.groupId).findIndex((R) => R.id === m.id);
1197
- W !== -1 && M.moveLayer(G.id, W);
1198
- }, e[10] = r, e[11] = C) : C = e[11];
1199
- const L = C;
1200
- let w;
1201
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = () => i(null), e[12] = w) : w = e[12];
1246
+ const W = re(P, z.groupId).findIndex((R) => R.id === m.id);
1247
+ W !== -1 && P.moveLayer(G.id, W);
1248
+ }, e[10] = r, e[11] = S) : S = e[11];
1249
+ const L = S;
1250
+ let C;
1251
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = () => i(null), e[12] = C) : C = e[12];
1202
1252
  let x;
1203
1253
  e[13] !== o || e[14] !== a ? (x = /* @__PURE__ */ d(We, { items: a, strategy: Ne, children: o }), e[13] = o, e[14] = a, e[15] = x) : x = e[15];
1204
1254
  let I;
1205
- e[16] !== l ? (I = l && /* @__PURE__ */ d(wo, { activeId: l }), e[16] = l, e[17] = I) : I = e[17];
1206
- let S;
1207
- e[18] !== I ? (S = /* @__PURE__ */ d(Wt, { children: I }), e[18] = I, e[19] = S) : S = e[19];
1255
+ e[16] !== l ? (I = l && /* @__PURE__ */ d(Co, { activeId: l }), e[16] = l, e[17] = I) : I = e[17];
1256
+ let w;
1257
+ e[18] !== I ? (w = /* @__PURE__ */ d(Wt, { children: I }), e[18] = I, e[19] = w) : w = e[19];
1208
1258
  let O;
1209
- return e[20] !== g || e[21] !== L || e[22] !== b || e[23] !== y || e[24] !== S || e[25] !== x ? (O = /* @__PURE__ */ d(Je.Provider, { value: !0, children: /* @__PURE__ */ z(Vt, { sensors: y, collisionDetection: g, onDragStart: b, onDragEnd: L, onDragCancel: w, children: [
1259
+ return e[20] !== g || e[21] !== L || e[22] !== b || e[23] !== y || e[24] !== w || e[25] !== x ? (O = /* @__PURE__ */ d(Je.Provider, { value: !0, children: /* @__PURE__ */ M(Vt, { sensors: y, collisionDetection: g, onDragStart: b, onDragEnd: L, onDragCancel: C, children: [
1210
1260
  x,
1211
- S
1212
- ] }) }), e[20] = g, e[21] = L, e[22] = b, e[23] = y, e[24] = S, e[25] = x, e[26] = O) : O = e[26], O;
1261
+ w
1262
+ ] }) }), e[20] = g, e[21] = L, e[22] = b, e[23] = y, e[24] = w, e[25] = x, e[26] = O) : O = e[26], O;
1213
1263
  }
1214
1264
  function Lo(t) {
1215
- return [...xe(t).map(Co), ...re(t, void 0).map(So)];
1265
+ return [...xe(t).map(So), ...re(t, void 0).map(wo)];
1266
+ }
1267
+ function wo(t) {
1268
+ return we("layer", t.id);
1216
1269
  }
1217
1270
  function So(t) {
1218
- return Se("layer", t.id);
1271
+ return we("group", t.id);
1219
1272
  }
1220
1273
  function Co(t) {
1221
- return Se("group", t.id);
1222
- }
1223
- function wo(t) {
1224
1274
  const e = T(15), {
1225
1275
  activeId: o
1226
1276
  } = t, r = N();
@@ -1236,12 +1286,12 @@ function wo(t) {
1236
1286
  if (!i || a === void 0)
1237
1287
  return null;
1238
1288
  let p;
1239
- e[6] !== c || e[7] !== i.kind ? (p = i.kind === "group" && c != null && /* @__PURE__ */ d(P, { sx: le.overlayIcon, children: c }), e[6] = c, e[7] = i.kind, e[8] = p) : p = e[8];
1289
+ e[6] !== c || e[7] !== i.kind ? (p = i.kind === "group" && c != null && /* @__PURE__ */ d(A, { sx: le.overlayIcon, children: c }), e[6] = c, e[7] = i.kind, e[8] = p) : p = e[8];
1240
1290
  const f = i.kind === "group" ? "bold" : void 0;
1241
1291
  let u;
1242
1292
  e[9] !== a || e[10] !== f ? (u = /* @__PURE__ */ d(E, { variant: "button", fontWeight: f, color: "text.primary", sx: le.overlayLabel, children: a }), e[9] = a, e[10] = f, e[11] = u) : u = e[11];
1243
1293
  let y;
1244
- return e[12] !== p || e[13] !== u ? (y = /* @__PURE__ */ z(P, { sx: le.overlay, children: [
1294
+ return e[12] !== p || e[13] !== u ? (y = /* @__PURE__ */ M(A, { sx: le.overlay, children: [
1245
1295
  p,
1246
1296
  u
1247
1297
  ] }), e[12] = p, e[13] = u, e[14] = y) : y = e[14], y;
@@ -1276,7 +1326,7 @@ const pe = {
1276
1326
  textAlign: "right"
1277
1327
  }
1278
1328
  }
1279
- }, ze = (t) => Math.min(100, Math.max(0, Math.round(t)));
1329
+ }, Me = (t) => Math.min(100, Math.max(0, Math.round(t)));
1280
1330
  function Io() {
1281
1331
  const t = T(10), e = N(), o = Q();
1282
1332
  let r;
@@ -1308,11 +1358,11 @@ function $o() {
1308
1358
  if (!o || !r || !o.opacityOpen)
1309
1359
  return null;
1310
1360
  let u;
1311
- t[2] !== s || t[3] !== i ? (u = s ?? ze(i * 100), t[2] = s, t[3] = i, t[4] = u) : u = t[4];
1361
+ t[2] !== s || t[3] !== i ? (u = s ?? Me(i * 100), t[2] = s, t[3] = i, t[4] = u) : u = t[4];
1312
1362
  const y = u;
1313
1363
  let h;
1314
1364
  t[5] !== r || t[6] !== n ? (h = (H) => {
1315
- const F = ze(H);
1365
+ const F = Me(H);
1316
1366
  return n(r, F / 100), F;
1317
1367
  }, t[5] = r, t[6] = n, t[7] = h) : h = t[7];
1318
1368
  const g = h;
@@ -1327,24 +1377,24 @@ function $o() {
1327
1377
  se !== F && f(String(se));
1328
1378
  }, t[8] = g, t[9] = v) : v = t[9];
1329
1379
  const b = v;
1330
- let C;
1331
- t[10] !== o ? (C = () => {
1380
+ let S;
1381
+ t[10] !== o ? (S = () => {
1332
1382
  o.setOpacityOpen(!1), f(null), c(null);
1333
- }, t[10] = o, t[11] = C) : C = t[11];
1334
- const L = C;
1335
- let w;
1336
- t[12] !== a.opacity ? (w = /* @__PURE__ */ d(E, { variant: "caption", fontWeight: "medium", color: "text.primary", children: a.opacity }), t[12] = a.opacity, t[13] = w) : w = t[13];
1383
+ }, t[10] = o, t[11] = S) : S = t[11];
1384
+ const L = S;
1385
+ let C;
1386
+ t[12] !== a.opacity ? (C = /* @__PURE__ */ d(E, { variant: "caption", fontWeight: "medium", color: "text.primary", children: a.opacity }), t[12] = a.opacity, t[13] = C) : C = t[13];
1337
1387
  let x;
1338
- t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ d(Pt, { fontSize: "small" }), t[14] = x) : x = t[14];
1388
+ t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ d(At, { fontSize: "small" }), t[14] = x) : x = t[14];
1339
1389
  let I;
1340
1390
  t[15] !== L || t[16] !== a.close ? (I = /* @__PURE__ */ d(ve, { size: "small", onClick: L, "aria-label": a.close, children: x }), t[15] = L, t[16] = a.close, t[17] = I) : I = t[17];
1341
- let S;
1342
- t[18] !== a.close || t[19] !== I ? (S = /* @__PURE__ */ d(ie, { title: a.close, children: I }), t[18] = a.close, t[19] = I, t[20] = S) : S = t[20];
1391
+ let w;
1392
+ t[18] !== a.close || t[19] !== I ? (w = /* @__PURE__ */ d(ie, { title: a.close, children: I }), t[18] = a.close, t[19] = I, t[20] = w) : w = t[20];
1343
1393
  let O;
1344
- t[21] !== w || t[22] !== S ? (O = /* @__PURE__ */ z(P, { sx: pe.inlineHeader, children: [
1345
- w,
1346
- S
1347
- ] }), t[21] = w, t[22] = S, t[23] = O) : O = t[23];
1394
+ t[21] !== C || t[22] !== w ? (O = /* @__PURE__ */ M(A, { sx: pe.inlineHeader, children: [
1395
+ C,
1396
+ w
1397
+ ] }), t[21] = C, t[22] = w, t[23] = O) : O = t[23];
1348
1398
  let k;
1349
1399
  t[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (H, F) => {
1350
1400
  c(F), f(null);
@@ -1354,28 +1404,28 @@ function $o() {
1354
1404
  g(F), c(null);
1355
1405
  }, t[25] = g, t[26] = $) : $ = t[26];
1356
1406
  let _;
1357
- t[27] !== a.opacity || t[28] !== y || t[29] !== $ ? (_ = /* @__PURE__ */ d(wt, { size: "small", min: 0, max: 100, step: 1, value: y, onChange: k, onChangeCommitted: $, "aria-label": a.opacity, sx: pe.slider }), t[27] = a.opacity, t[28] = y, t[29] = $, t[30] = _) : _ = t[30];
1407
+ t[27] !== a.opacity || t[28] !== y || t[29] !== $ ? (_ = /* @__PURE__ */ d(Ct, { size: "small", min: 0, max: 100, step: 1, value: y, onChange: k, onChangeCommitted: $, "aria-label": a.opacity, sx: pe.slider }), t[27] = a.opacity, t[28] = y, t[29] = $, t[30] = _) : _ = t[30];
1358
1408
  const G = p ?? String(y);
1359
1409
  let m;
1360
1410
  t[31] !== b ? (m = (H) => b(H.target.value), t[31] = b, t[32] = m) : m = t[32];
1361
- let M;
1362
- t[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = () => f(null), t[33] = M) : M = t[33];
1363
- let A;
1364
- t[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ d(It, { position: "end", children: "%" }), t[34] = A) : A = t[34];
1411
+ let P;
1412
+ t[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = () => f(null), t[33] = P) : P = t[33];
1413
+ let z;
1414
+ t[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ d(It, { position: "end", children: "%" }), t[34] = z) : z = t[34];
1365
1415
  let D;
1366
1416
  t[35] !== a.opacity ? (D = {
1367
1417
  inputMode: "numeric",
1368
1418
  "aria-label": a.opacity
1369
1419
  }, t[35] = a.opacity, t[36] = D) : D = t[36];
1370
1420
  let V;
1371
- t[37] !== G || t[38] !== m || t[39] !== D ? (V = /* @__PURE__ */ d(kt, { size: "small", value: G, onChange: m, onBlur: M, onKeyDown: Oo, endAdornment: A, inputProps: D, sx: pe.input }), t[37] = G, t[38] = m, t[39] = D, t[40] = V) : V = t[40];
1421
+ t[37] !== G || t[38] !== m || t[39] !== D ? (V = /* @__PURE__ */ d(kt, { size: "small", value: G, onChange: m, onBlur: P, onKeyDown: Oo, endAdornment: z, inputProps: D, sx: pe.input }), t[37] = G, t[38] = m, t[39] = D, t[40] = V) : V = t[40];
1372
1422
  let W;
1373
- t[41] !== _ || t[42] !== V ? (W = /* @__PURE__ */ z(P, { sx: pe.inlineControls, children: [
1423
+ t[41] !== _ || t[42] !== V ? (W = /* @__PURE__ */ M(A, { sx: pe.inlineControls, children: [
1374
1424
  _,
1375
1425
  V
1376
1426
  ] }), t[41] = _, t[42] = V, t[43] = W) : W = t[43];
1377
1427
  let R;
1378
- return t[44] !== W || t[45] !== O ? (R = /* @__PURE__ */ z(P, { sx: pe.inline, children: [
1428
+ return t[44] !== W || t[45] !== O ? (R = /* @__PURE__ */ M(A, { sx: pe.inline, children: [
1379
1429
  O,
1380
1430
  W
1381
1431
  ] }), t[44] = W, t[45] = O, t[46] = R) : R = t[46], R;
@@ -1441,11 +1491,11 @@ const Go = {
1441
1491
  }
1442
1492
  }
1443
1493
  };
1444
- function Mo() {
1494
+ function Po() {
1445
1495
  const t = T(34), e = N(), r = Q()?.layerId;
1446
1496
  let l;
1447
1497
  t[0] !== r ? (l = (O) => r ? O.layers[r]?.sections : void 0, t[0] = r, t[1] = l) : l = t[1];
1448
- const i = Z(e, l), n = Z(e, Po), {
1498
+ const i = Z(e, l), n = Z(e, Ao), {
1449
1499
  labels: a
1450
1500
  } = B(), [s, c] = J(null), p = !!s;
1451
1501
  if (!r || !i || i.length === 0)
@@ -1461,23 +1511,23 @@ function Mo() {
1461
1511
  ...ne.chevronOpen
1462
1512
  } : ne.chevron, t[5] = p, t[6] = g) : g = t[6];
1463
1513
  let v;
1464
- t[7] !== g ? (v = /* @__PURE__ */ d(zt, { fontSize: "small", sx: g }), t[7] = g, t[8] = v) : v = t[8];
1514
+ t[7] !== g ? (v = /* @__PURE__ */ d(Mt, { fontSize: "small", sx: g }), t[7] = g, t[8] = v) : v = t[8];
1465
1515
  let b;
1466
- t[9] !== a.attribute || t[10] !== p || t[11] !== h || t[12] !== v ? (b = /* @__PURE__ */ z($t, { sx: ne.trigger, onClick: y, "aria-label": a.attribute, "aria-haspopup": "listbox", "aria-expanded": p, children: [
1516
+ t[9] !== a.attribute || t[10] !== p || t[11] !== h || t[12] !== v ? (b = /* @__PURE__ */ M($t, { sx: ne.trigger, onClick: y, "aria-label": a.attribute, "aria-haspopup": "listbox", "aria-expanded": p, children: [
1467
1517
  h,
1468
1518
  v
1469
1519
  ] }), t[9] = a.attribute, t[10] = p, t[11] = h, t[12] = v, t[13] = b) : b = t[13];
1470
- let C;
1471
- t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = () => c(null), t[14] = C) : C = t[14];
1520
+ let S;
1521
+ t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = () => c(null), t[14] = S) : S = t[14];
1472
1522
  const L = s?.clientWidth;
1473
- let w;
1474
- t[15] !== L ? (w = {
1523
+ let C;
1524
+ t[15] !== L ? (C = {
1475
1525
  paper: {
1476
1526
  sx: {
1477
1527
  width: L
1478
1528
  }
1479
1529
  }
1480
- }, t[15] = L, t[16] = w) : w = t[16];
1530
+ }, t[15] = L, t[16] = C) : C = t[16];
1481
1531
  let x;
1482
1532
  if (t[17] !== r || t[18] !== i || t[19] !== n || t[20] !== u) {
1483
1533
  let O;
@@ -1487,14 +1537,14 @@ function Mo() {
1487
1537
  } else
1488
1538
  x = t[21];
1489
1539
  let I;
1490
- t[26] !== s || t[27] !== p || t[28] !== w || t[29] !== x ? (I = /* @__PURE__ */ d($e, { anchorEl: s, open: p, onClose: C, slotProps: w, children: x }), t[26] = s, t[27] = p, t[28] = w, t[29] = x, t[30] = I) : I = t[30];
1491
- let S;
1492
- return t[31] !== I || t[32] !== b ? (S = /* @__PURE__ */ z(he, { children: [
1540
+ t[26] !== s || t[27] !== p || t[28] !== C || t[29] !== x ? (I = /* @__PURE__ */ d($e, { anchorEl: s, open: p, onClose: S, slotProps: C, children: x }), t[26] = s, t[27] = p, t[28] = C, t[29] = x, t[30] = I) : I = t[30];
1541
+ let w;
1542
+ return t[31] !== I || t[32] !== b ? (w = /* @__PURE__ */ M(he, { children: [
1493
1543
  b,
1494
1544
  I
1495
- ] }), t[31] = I, t[32] = b, t[33] = S) : S = t[33], S;
1545
+ ] }), t[31] = I, t[32] = b, t[33] = w) : w = t[33], w;
1496
1546
  }
1497
- function Po(t) {
1547
+ function Ao(t) {
1498
1548
  return t.setSectionValue;
1499
1549
  }
1500
1550
  const te = {
@@ -1557,8 +1607,8 @@ const te = {
1557
1607
  overflow: "visible",
1558
1608
  textOverflow: "clip"
1559
1609
  }
1560
- }, _e = 12, ye = 1.5, lt = 2, zo = 1;
1561
- function Ao(t) {
1610
+ }, _e = 12, ye = 1.5, lt = 2, Mo = 1;
1611
+ function zo(t) {
1562
1612
  switch (t) {
1563
1613
  case "dashed":
1564
1614
  return {
@@ -1659,46 +1709,46 @@ function it(t) {
1659
1709
  display: "block",
1660
1710
  overflow: "visible"
1661
1711
  }, e[2] = F) : F = e[2];
1662
- const se = u / 2, Ce = u / 2, we = R ? "round" : "butt";
1712
+ const se = u / 2, Se = u / 2, Ce = R ? "round" : "butt";
1663
1713
  let ae;
1664
- e[3] !== r || e[4] !== W || e[5] !== u || e[6] !== Ce || e[7] !== we || e[8] !== se ? (ae = /* @__PURE__ */ d("line", { x1: 0, y1: se, x2: u, y2: Ce, stroke: r, strokeWidth: lt, strokeDasharray: W, strokeLinecap: we }), e[3] = r, e[4] = W, e[5] = u, e[6] = Ce, e[7] = we, e[8] = se, e[9] = ae) : ae = e[9];
1714
+ e[3] !== r || e[4] !== W || e[5] !== u || e[6] !== Se || e[7] !== Ce || e[8] !== se ? (ae = /* @__PURE__ */ d("line", { x1: 0, y1: se, x2: u, y2: Se, stroke: r, strokeWidth: lt, strokeDasharray: W, strokeLinecap: Ce }), e[3] = r, e[4] = W, e[5] = u, e[6] = Se, e[7] = Ce, e[8] = se, e[9] = ae) : ae = e[9];
1665
1715
  let Le;
1666
1716
  return e[10] !== u || e[11] !== ae || e[12] !== H ? (Le = /* @__PURE__ */ d("svg", { width: u, height: u, viewBox: H, "aria-hidden": !0, "data-shape": "line", style: F, children: ae }), e[10] = u, e[11] = ae, e[12] = H, e[13] = Le) : Le = e[13], Le;
1667
1717
  }
1668
1718
  const h = c ? ye / 2 : 0, g = !c && p !== "solid";
1669
1719
  let v;
1670
1720
  e[14] !== r || e[15] !== p || e[16] !== g ? (v = g ? Do(p, r) : null, e[14] = r, e[15] = p, e[16] = g, e[17] = v) : v = e[17];
1671
- const b = v, C = c && f === "corners" && s === "square";
1721
+ const b = v, S = c && f === "corners" && s === "square";
1672
1722
  let L;
1673
- e[18] !== c || e[19] !== f ? (L = c ? Ao(f) : {
1723
+ e[18] !== c || e[19] !== f ? (L = c ? zo(f) : {
1674
1724
  dash: void 0,
1675
1725
  round: !1
1676
1726
  }, e[18] = c, e[19] = f, e[20] = L) : L = e[20];
1677
1727
  const {
1678
- dash: w,
1728
+ dash: C,
1679
1729
  round: x
1680
- } = L, I = c ? ye : zo, S = c ? w : void 0, O = x ? "round" : "butt";
1730
+ } = L, I = c ? ye : Mo, w = c ? C : void 0, O = x ? "round" : "butt";
1681
1731
  let k;
1682
- e[21] !== r || e[22] !== O || e[23] !== I || e[24] !== S ? (k = {
1732
+ e[21] !== r || e[22] !== O || e[23] !== I || e[24] !== w ? (k = {
1683
1733
  stroke: r,
1684
1734
  strokeWidth: I,
1685
- strokeDasharray: S,
1735
+ strokeDasharray: w,
1686
1736
  strokeLinecap: O
1687
- }, e[21] = r, e[22] = O, e[23] = I, e[24] = S, e[25] = k) : k = e[25];
1737
+ }, e[21] = r, e[22] = O, e[23] = I, e[24] = w, e[25] = k) : k = e[25];
1688
1738
  const $ = k, _ = c ? "none" : g ? `url(#${y})` : r, G = `0 0 ${u} ${u}`;
1689
1739
  let m;
1690
1740
  e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
1691
1741
  display: "block"
1692
1742
  }, e[26] = m) : m = e[26];
1693
- let M;
1694
- e[27] !== y || e[28] !== b ? (M = b && /* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("pattern", { id: y, patternUnits: "userSpaceOnUse", width: b.size, height: b.size, children: b.content }) }), e[27] = y, e[28] = b, e[29] = M) : M = e[29];
1695
- let A;
1696
- e[30] !== r || e[31] !== $ || e[32] !== _ || e[33] !== h || e[34] !== C || e[35] !== c || e[36] !== s || e[37] !== u || e[38] !== g ? (A = C ? /* @__PURE__ */ d(Eo, { size: u, color: r }) : s === "circle" ? /* @__PURE__ */ d("circle", { cx: u / 2, cy: u / 2, r: u / 2 - h, fill: _, ...$, stroke: c || g ? r : "none" }) : /* @__PURE__ */ d("rect", { x: h, y: h, width: u - h * 2, height: u - h * 2, fill: _, ...$, stroke: c || g ? r : "none" }), e[30] = r, e[31] = $, e[32] = _, e[33] = h, e[34] = C, e[35] = c, e[36] = s, e[37] = u, e[38] = g, e[39] = A) : A = e[39];
1743
+ let P;
1744
+ e[27] !== y || e[28] !== b ? (P = b && /* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("pattern", { id: y, patternUnits: "userSpaceOnUse", width: b.size, height: b.size, children: b.content }) }), e[27] = y, e[28] = b, e[29] = P) : P = e[29];
1745
+ let z;
1746
+ e[30] !== r || e[31] !== $ || e[32] !== _ || e[33] !== h || e[34] !== S || e[35] !== c || e[36] !== s || e[37] !== u || e[38] !== g ? (z = S ? /* @__PURE__ */ d(Eo, { size: u, color: r }) : s === "circle" ? /* @__PURE__ */ d("circle", { cx: u / 2, cy: u / 2, r: u / 2 - h, fill: _, ...$, stroke: c || g ? r : "none" }) : /* @__PURE__ */ d("rect", { x: h, y: h, width: u - h * 2, height: u - h * 2, fill: _, ...$, stroke: c || g ? r : "none" }), e[30] = r, e[31] = $, e[32] = _, e[33] = h, e[34] = S, e[35] = c, e[36] = s, e[37] = u, e[38] = g, e[39] = z) : z = e[39];
1697
1747
  let D;
1698
- return e[40] !== s || e[41] !== u || e[42] !== G || e[43] !== M || e[44] !== A ? (D = /* @__PURE__ */ z("svg", { width: u, height: u, viewBox: G, "aria-hidden": !0, "data-shape": s, style: m, children: [
1699
- M,
1700
- A
1701
- ] }), e[40] = s, e[41] = u, e[42] = G, e[43] = M, e[44] = A, e[45] = D) : D = e[45], D;
1748
+ return e[40] !== s || e[41] !== u || e[42] !== G || e[43] !== P || e[44] !== z ? (D = /* @__PURE__ */ M("svg", { width: u, height: u, viewBox: G, "aria-hidden": !0, "data-shape": s, style: m, children: [
1749
+ P,
1750
+ z
1751
+ ] }), e[40] = s, e[41] = u, e[42] = G, e[43] = P, e[44] = z, e[45] = D) : D = e[45], D;
1702
1752
  }
1703
1753
  function Eo(t) {
1704
1754
  const e = T(19), {
@@ -1724,7 +1774,7 @@ function Eo(t) {
1724
1774
  let v;
1725
1775
  e[11] !== s || e[12] !== g ? (v = /* @__PURE__ */ d("path", { d: g, ...s }), e[11] = s, e[12] = g, e[13] = v) : v = e[13];
1726
1776
  let b;
1727
- return e[14] !== p || e[15] !== u || e[16] !== h || e[17] !== v ? (b = /* @__PURE__ */ z(he, { children: [
1777
+ return e[14] !== p || e[15] !== u || e[16] !== h || e[17] !== v ? (b = /* @__PURE__ */ M(he, { children: [
1728
1778
  p,
1729
1779
  u,
1730
1780
  h,
@@ -1745,33 +1795,33 @@ function rt(t) {
1745
1795
  } = o, c = l === void 0 ? "circle" : l, p = i === void 0 ? !1 : i, f = n === void 0 ? "solid" : n, u = a === void 0 ? "solid" : a, y = s === void 0 ? "vertical" : s, h = y === "horizontal";
1746
1796
  let g;
1747
1797
  e[0] !== r ? (g = r.reduce(Ro, 0), e[0] = r, e[1] = g) : g = e[1];
1748
- const b = Math.max(Ho, g), C = h ? te.listHorizontal : null;
1798
+ const b = Math.max(Ho, g), S = h ? te.listHorizontal : null;
1749
1799
  let L;
1750
- e[2] !== C ? (L = {
1800
+ e[2] !== S ? (L = {
1751
1801
  ...te.list,
1752
- ...C
1753
- }, e[2] = C, e[3] = L) : L = e[3];
1754
- let w;
1802
+ ...S
1803
+ }, e[2] = S, e[3] = L) : L = e[3];
1804
+ let C;
1755
1805
  if (e[4] !== f || e[5] !== b || e[6] !== h || e[7] !== p || e[8] !== r || e[9] !== c || e[10] !== u) {
1756
1806
  let I;
1757
- e[12] !== f || e[13] !== b || e[14] !== h || e[15] !== p || e[16] !== c || e[17] !== u ? (I = (S, O) => /* @__PURE__ */ z(P, { sx: {
1807
+ e[12] !== f || e[13] !== b || e[14] !== h || e[15] !== p || e[16] !== c || e[17] !== u ? (I = (w, O) => /* @__PURE__ */ M(A, { sx: {
1758
1808
  ...te.item,
1759
1809
  ...h ? te.itemHorizontal : null
1760
1810
  }, children: [
1761
- /* @__PURE__ */ d(P, { sx: {
1811
+ /* @__PURE__ */ d(A, { sx: {
1762
1812
  ...te.gutter,
1763
1813
  width: h ? void 0 : b
1764
- }, children: /* @__PURE__ */ d(it, { shape: S.shape ?? c, color: S.color, isStrokeColor: S.isStrokeColor ?? p, fillPattern: S.fillPattern ?? f, strokeStyle: S.strokeStyle ?? u, size: S.size ?? _e }) }),
1814
+ }, children: /* @__PURE__ */ d(it, { shape: w.shape ?? c, color: w.color, isStrokeColor: w.isStrokeColor ?? p, fillPattern: w.fillPattern ?? f, strokeStyle: w.strokeStyle ?? u, size: w.size ?? _e }) }),
1765
1815
  /* @__PURE__ */ d(E, { variant: "caption", color: "text.primary", sx: {
1766
1816
  ...te.label,
1767
1817
  ...h ? te.labelHorizontal : null
1768
- }, children: S.label }),
1769
- S.value != null && /* @__PURE__ */ d(E, { className: "PsLegend-value", variant: "caption", color: "text.secondary", sx: te.value, children: S.value })
1770
- ] }, `${S.label}-${O}`), e[12] = f, e[13] = b, e[14] = h, e[15] = p, e[16] = c, e[17] = u, e[18] = I) : I = e[18], w = r.map(I), e[4] = f, e[5] = b, e[6] = h, e[7] = p, e[8] = r, e[9] = c, e[10] = u, e[11] = w;
1818
+ }, children: w.label }),
1819
+ w.value != null && /* @__PURE__ */ d(E, { className: "PsLegend-value", variant: "caption", color: "text.secondary", sx: te.value, children: w.value })
1820
+ ] }, `${w.label}-${O}`), e[12] = f, e[13] = b, e[14] = h, e[15] = p, e[16] = c, e[17] = u, e[18] = I) : I = e[18], C = r.map(I), e[4] = f, e[5] = b, e[6] = h, e[7] = p, e[8] = r, e[9] = c, e[10] = u, e[11] = C;
1771
1821
  } else
1772
- w = e[11];
1822
+ C = e[11];
1773
1823
  let x;
1774
- return e[19] !== y || e[20] !== L || e[21] !== w ? (x = /* @__PURE__ */ d(P, { "data-orientation": y, sx: L, children: w }), e[19] = y, e[20] = L, e[21] = w, e[22] = x) : x = e[22], x;
1824
+ return e[19] !== y || e[20] !== L || e[21] !== C ? (x = /* @__PURE__ */ d(A, { "data-orientation": y, sx: L, children: C }), e[19] = y, e[20] = L, e[21] = C, e[22] = x) : x = e[22], x;
1775
1825
  }
1776
1826
  function Ro(t, e) {
1777
1827
  return Math.max(t, e.size ?? _e);
@@ -1863,64 +1913,64 @@ function st(t) {
1863
1913
  const u = f, y = n[0], h = n[n.length - 1];
1864
1914
  let g;
1865
1915
  e[2] !== i ? (g = i.join(", "), e[2] = i, e[3] = g) : g = e[3];
1866
- const v = `linear-gradient(90deg, ${g})`, b = !a && n.length === i.length + 1, C = !a && !b;
1916
+ const v = `linear-gradient(90deg, ${g})`, b = !a && n.length === i.length + 1, S = !a && !b;
1867
1917
  let L;
1868
1918
  e[4] !== n ? (L = (m) => `${n[m]?.label ?? ""} – ${n[m + 1]?.label ?? ""}`, e[4] = n, e[5] = L) : L = e[5];
1869
- const w = L;
1919
+ const C = L;
1870
1920
  let x;
1871
- e[6] !== s || e[7] !== l ? (x = s && /* @__PURE__ */ z(P, { sx: K.attribute, children: [
1921
+ e[6] !== s || e[7] !== l ? (x = s && /* @__PURE__ */ M(A, { sx: K.attribute, children: [
1872
1922
  /* @__PURE__ */ d(E, { variant: "overline", color: "text.secondary", children: l.colorBasedOn }),
1873
1923
  /* @__PURE__ */ d(E, { variant: "caption", color: "text.primary", children: s })
1874
1924
  ] }), e[6] = s, e[7] = l, e[8] = x) : x = e[8];
1875
1925
  const I = x;
1876
- if (C) {
1926
+ if (S) {
1877
1927
  let m;
1878
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ d(At, { fontSize: "small" }), e[9] = m) : m = e[9];
1879
- const M = `Discrete ramp needs ${i.length + 1} stops (one per color boundary) but got ${n.length}.`;
1880
- let A;
1881
- e[10] !== M ? (A = /* @__PURE__ */ z(P, { sx: K.error, children: [
1928
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ d(zt, { fontSize: "small" }), e[9] = m) : m = e[9];
1929
+ const P = `Discrete ramp needs ${i.length + 1} stops (one per color boundary) but got ${n.length}.`;
1930
+ let z;
1931
+ e[10] !== P ? (z = /* @__PURE__ */ M(A, { sx: K.error, children: [
1882
1932
  m,
1883
- /* @__PURE__ */ d(E, { variant: "caption", color: "error", children: M })
1884
- ] }), e[10] = M, e[11] = A) : A = e[11];
1933
+ /* @__PURE__ */ d(E, { variant: "caption", color: "error", children: P })
1934
+ ] }), e[10] = P, e[11] = z) : z = e[11];
1885
1935
  let D;
1886
- return e[12] !== I || e[13] !== A ? (D = /* @__PURE__ */ z(P, { sx: K.container, children: [
1936
+ return e[12] !== I || e[13] !== z ? (D = /* @__PURE__ */ M(A, { sx: K.container, children: [
1887
1937
  I,
1888
- A
1889
- ] }), e[12] = I, e[13] = A, e[14] = D) : D = e[14], D;
1938
+ z
1939
+ ] }), e[12] = I, e[13] = z, e[14] = D) : D = e[14], D;
1890
1940
  }
1891
- let S;
1892
- e[15] !== i || e[16] !== v || e[17] !== a || e[18] !== l || e[19] !== w ? (S = a ? /* @__PURE__ */ d(P, { role: "img", "aria-label": l.colorGradient, sx: {
1941
+ let w;
1942
+ e[15] !== i || e[16] !== v || e[17] !== a || e[18] !== l || e[19] !== C ? (w = a ? /* @__PURE__ */ d(A, { role: "img", "aria-label": l.colorGradient, sx: {
1893
1943
  width: "100%",
1894
1944
  height: "100%",
1895
1945
  background: v
1896
- } }) : i.map((m, M) => /* @__PURE__ */ d(P, { role: "img", "aria-label": w(M), sx: {
1946
+ } }) : i.map((m, P) => /* @__PURE__ */ d(A, { role: "img", "aria-label": C(P), sx: {
1897
1947
  ...K.step,
1898
1948
  backgroundColor: m
1899
- } }, M)), e[15] = i, e[16] = v, e[17] = a, e[18] = l, e[19] = w, e[20] = S) : S = e[20];
1949
+ } }, P)), e[15] = i, e[16] = v, e[17] = a, e[18] = l, e[19] = C, e[20] = w) : w = e[20];
1900
1950
  let O;
1901
- e[21] !== S ? (O = /* @__PURE__ */ d(P, { sx: K.bar, children: S }), e[21] = S, e[22] = O) : O = e[22];
1951
+ e[21] !== w ? (O = /* @__PURE__ */ d(A, { sx: K.bar, children: w }), e[21] = w, e[22] = O) : O = e[22];
1902
1952
  let k;
1903
- e[23] !== u || e[24] !== o.avg || e[25] !== p ? (k = u != null && o.avg != null && /* @__PURE__ */ d(ie, { title: p(o.avg), placement: "top", arrow: !0, children: /* @__PURE__ */ d(P, { sx: K.avgLine, style: {
1953
+ e[23] !== u || e[24] !== o.avg || e[25] !== p ? (k = u != null && o.avg != null && /* @__PURE__ */ d(ie, { title: p(o.avg), placement: "top", arrow: !0, children: /* @__PURE__ */ d(A, { sx: K.avgLine, style: {
1904
1954
  left: `${u}%`
1905
1955
  } }) }), e[23] = u, e[24] = o.avg, e[25] = p, e[26] = k) : k = e[26];
1906
1956
  let $;
1907
- e[27] !== O || e[28] !== k ? ($ = /* @__PURE__ */ z(P, { sx: K.barWrap, children: [
1957
+ e[27] !== O || e[28] !== k ? ($ = /* @__PURE__ */ M(A, { sx: K.barWrap, children: [
1908
1958
  O,
1909
1959
  k
1910
1960
  ] }), e[27] = O, e[28] = k, e[29] = $) : $ = e[29];
1911
1961
  let _;
1912
- e[30] !== i.length || e[31] !== y?.label || e[32] !== b || e[33] !== h?.label || e[34] !== n ? (_ = b ? /* @__PURE__ */ d(P, { sx: K.boundaryLabels, children: n.map((m, M) => {
1913
- const A = M === n.length - 1, D = M === 0 ? void 0 : A ? "translateX(-100%)" : "translateX(-50%)";
1962
+ e[30] !== i.length || e[31] !== y?.label || e[32] !== b || e[33] !== h?.label || e[34] !== n ? (_ = b ? /* @__PURE__ */ d(A, { sx: K.boundaryLabels, children: n.map((m, P) => {
1963
+ const z = P === n.length - 1, D = P === 0 ? void 0 : z ? "translateX(-100%)" : "translateX(-50%)";
1914
1964
  return /* @__PURE__ */ d(E, { variant: "overline", color: "text.secondary", sx: K.boundaryLabel, style: {
1915
- left: `${M / i.length * 100}%`,
1965
+ left: `${P / i.length * 100}%`,
1916
1966
  transform: D
1917
- }, children: m.label }, `${m.label}-${M}`);
1918
- }) }) : /* @__PURE__ */ z(P, { sx: K.labels, children: [
1967
+ }, children: m.label }, `${m.label}-${P}`);
1968
+ }) }) : /* @__PURE__ */ M(A, { sx: K.labels, children: [
1919
1969
  /* @__PURE__ */ d(E, { variant: "overline", color: "text.secondary", children: y?.label }),
1920
1970
  /* @__PURE__ */ d(E, { variant: "overline", color: "text.secondary", children: h?.label })
1921
1971
  ] }), e[30] = i.length, e[31] = y?.label, e[32] = b, e[33] = h?.label, e[34] = n, e[35] = _) : _ = e[35];
1922
1972
  let G;
1923
- return e[36] !== I || e[37] !== $ || e[38] !== _ ? (G = /* @__PURE__ */ z(P, { sx: K.container, children: [
1973
+ return e[36] !== I || e[37] !== $ || e[38] !== _ ? (G = /* @__PURE__ */ M(A, { sx: K.container, children: [
1924
1974
  I,
1925
1975
  $,
1926
1976
  _
@@ -1966,17 +2016,17 @@ const ce = {
1966
2016
  flexDirection: "column",
1967
2017
  justifyContent: "space-between"
1968
2018
  }
1969
- }, fe = 72, Bo = 0.3, Ae = 2, Ie = 4;
2019
+ }, fe = 72, Bo = 0.3, ze = 2, Ie = 4;
1970
2020
  function Wo(t) {
1971
2021
  const e = (t.stops ?? []).filter((i) => Number.isFinite(i));
1972
- if (e.length >= Ae)
2022
+ if (e.length >= ze)
1973
2023
  return e.sort((i, n) => n - i).slice(0, Ie);
1974
2024
  const {
1975
2025
  min: o,
1976
2026
  max: r
1977
2027
  } = t;
1978
2028
  if (o === r) return [r];
1979
- const l = Math.min(Ie, Math.max(Ae, t.steps ?? Ie));
2029
+ const l = Math.min(Ie, Math.max(ze, t.steps ?? Ie));
1980
2030
  return Array.from({
1981
2031
  length: l
1982
2032
  }, (i, n) => r - (r - o) * n / (l - 1));
@@ -1996,23 +2046,23 @@ function at(t) {
1996
2046
  } = o, a = n === void 0 ? String : n;
1997
2047
  let s, c, p, f, u, y, h, g, v;
1998
2048
  if (e[0] !== i || e[1] !== o || e[2] !== a || e[3] !== l) {
1999
- const w = Wo(o), x = w.length;
2049
+ const C = Wo(o), x = C.length;
2000
2050
  let I;
2001
2051
  e[13] !== a || e[14] !== l || e[15] !== x ? (I = (_, G) => {
2002
2052
  const m = a(_);
2003
- return x <= 1 ? m : G === 0 ? /* @__PURE__ */ z(he, { children: [
2053
+ return x <= 1 ? m : G === 0 ? /* @__PURE__ */ M(he, { children: [
2004
2054
  l.maxPrefix,
2005
2055
  m
2006
- ] }) : G === x - 1 ? /* @__PURE__ */ z(he, { children: [
2056
+ ] }) : G === x - 1 ? /* @__PURE__ */ M(he, { children: [
2007
2057
  l.minPrefix,
2008
2058
  m
2009
2059
  ] }) : m;
2010
2060
  }, e[13] = a, e[14] = l, e[15] = x, e[16] = I) : I = e[16];
2011
- const S = I;
2012
- p = P, g = ce.root, e[17] !== i || e[18] !== l ? (v = i && /* @__PURE__ */ z(P, { sx: ce.attribute, children: [
2061
+ const w = I;
2062
+ p = A, g = ce.root, e[17] !== i || e[18] !== l ? (v = i && /* @__PURE__ */ M(A, { sx: ce.attribute, children: [
2013
2063
  /* @__PURE__ */ d(E, { variant: "overline", color: "text.secondary", children: l.radiusRangeBy }),
2014
2064
  /* @__PURE__ */ d(E, { variant: "caption", color: "text.primary", children: i })
2015
- ] }), e[17] = i, e[18] = l, e[19] = v) : v = e[19], c = P, y = ce.body;
2065
+ ] }), e[17] = i, e[18] = l, e[19] = v) : v = e[19], c = A, y = ce.body;
2016
2066
  let O;
2017
2067
  e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = {
2018
2068
  ...ce.circles,
@@ -2022,31 +2072,31 @@ function at(t) {
2022
2072
  let k;
2023
2073
  e[21] !== x ? (k = (_, G) => {
2024
2074
  const m = No(G, x);
2025
- return /* @__PURE__ */ d(P, { "aria-hidden": !0, sx: {
2075
+ return /* @__PURE__ */ d(A, { "aria-hidden": !0, sx: {
2026
2076
  ...ce.circle,
2027
2077
  width: m,
2028
2078
  height: m
2029
2079
  } }, G);
2030
- }, e[21] = x, e[22] = k) : k = e[22], h = /* @__PURE__ */ d(P, { sx: O, children: w.map(k) }), s = P, e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
2080
+ }, e[21] = x, e[22] = k) : k = e[22], h = /* @__PURE__ */ d(A, { sx: O, children: C.map(k) }), s = A, e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
2031
2081
  ...ce.labels,
2032
2082
  height: fe
2033
2083
  }, e[23] = f) : f = e[23];
2034
2084
  let $;
2035
- e[24] !== S ? ($ = (_, G) => /* @__PURE__ */ d(E, { variant: "caption", color: "text.secondary", children: S(_, G) }, G), e[24] = S, e[25] = $) : $ = e[25], u = w.map($), e[0] = i, e[1] = o, e[2] = a, e[3] = l, e[4] = s, e[5] = c, e[6] = p, e[7] = f, e[8] = u, e[9] = y, e[10] = h, e[11] = g, e[12] = v;
2085
+ e[24] !== w ? ($ = (_, G) => /* @__PURE__ */ d(E, { variant: "caption", color: "text.secondary", children: w(_, G) }, G), e[24] = w, e[25] = $) : $ = e[25], u = C.map($), e[0] = i, e[1] = o, e[2] = a, e[3] = l, e[4] = s, e[5] = c, e[6] = p, e[7] = f, e[8] = u, e[9] = y, e[10] = h, e[11] = g, e[12] = v;
2036
2086
  } else
2037
2087
  s = e[4], c = e[5], p = e[6], f = e[7], u = e[8], y = e[9], h = e[10], g = e[11], v = e[12];
2038
2088
  let b;
2039
2089
  e[26] !== s || e[27] !== f || e[28] !== u ? (b = /* @__PURE__ */ d(s, { sx: f, children: u }), e[26] = s, e[27] = f, e[28] = u, e[29] = b) : b = e[29];
2040
- let C;
2041
- e[30] !== c || e[31] !== y || e[32] !== h || e[33] !== b ? (C = /* @__PURE__ */ z(c, { sx: y, children: [
2090
+ let S;
2091
+ e[30] !== c || e[31] !== y || e[32] !== h || e[33] !== b ? (S = /* @__PURE__ */ M(c, { sx: y, children: [
2042
2092
  h,
2043
2093
  b
2044
- ] }), e[30] = c, e[31] = y, e[32] = h, e[33] = b, e[34] = C) : C = e[34];
2094
+ ] }), e[30] = c, e[31] = y, e[32] = h, e[33] = b, e[34] = S) : S = e[34];
2045
2095
  let L;
2046
- return e[35] !== p || e[36] !== C || e[37] !== g || e[38] !== v ? (L = /* @__PURE__ */ z(p, { sx: g, children: [
2096
+ return e[35] !== p || e[36] !== S || e[37] !== g || e[38] !== v ? (L = /* @__PURE__ */ M(p, { sx: g, children: [
2047
2097
  v,
2048
- C
2049
- ] }), e[35] = p, e[36] = C, e[37] = g, e[38] = v, e[39] = L) : L = e[39], L;
2098
+ S
2099
+ ] }), e[35] = p, e[36] = S, e[37] = g, e[38] = v, e[39] = L) : L = e[39], L;
2050
2100
  }
2051
2101
  const oe = {
2052
2102
  list: {
@@ -2116,11 +2166,11 @@ function ct(t) {
2116
2166
  let a;
2117
2167
  if (e[2] !== o.items || e[3] !== l) {
2118
2168
  let c;
2119
- e[5] !== l ? (c = (p, f) => /* @__PURE__ */ z(P, { sx: {
2169
+ e[5] !== l ? (c = (p, f) => /* @__PURE__ */ M(A, { sx: {
2120
2170
  ...oe.item,
2121
2171
  ...l ? oe.itemHorizontal : null
2122
2172
  }, children: [
2123
- /* @__PURE__ */ d(P, { component: "img", src: p.icon, alt: "", sx: oe.icon }),
2173
+ /* @__PURE__ */ d(A, { component: "img", src: p.icon, alt: "", sx: oe.icon }),
2124
2174
  /* @__PURE__ */ d(E, { variant: "caption", color: "text.primary", sx: {
2125
2175
  ...oe.label,
2126
2176
  ...l ? oe.labelHorizontal : null
@@ -2130,7 +2180,7 @@ function ct(t) {
2130
2180
  } else
2131
2181
  a = e[4];
2132
2182
  let s;
2133
- return e[7] !== r || e[8] !== n || e[9] !== a ? (s = /* @__PURE__ */ d(P, { "data-orientation": r, sx: n, children: a }), e[7] = r, e[8] = n, e[9] = a, e[10] = s) : s = e[10], s;
2183
+ return e[7] !== r || e[8] !== n || e[9] !== a ? (s = /* @__PURE__ */ d(A, { "data-orientation": r, sx: n, children: a }), e[7] = r, e[8] = n, e[9] = a, e[10] = s) : s = e[10], s;
2134
2184
  }
2135
2185
  function dt(t) {
2136
2186
  const e = T(10), {
@@ -2183,7 +2233,7 @@ function Uo() {
2183
2233
  } else
2184
2234
  n = t[4];
2185
2235
  let a;
2186
- return t[7] !== n ? (a = /* @__PURE__ */ d(P, { sx: Fo.stack, children: n }), t[7] = n, t[8] = a) : a = t[8], a;
2236
+ return t[7] !== n ? (a = /* @__PURE__ */ d(A, { sx: Fo.stack, children: n }), t[7] = n, t[8] = a) : a = t[8], a;
2187
2237
  }
2188
2238
  const an = {
2189
2239
  // Composition shell
@@ -2206,7 +2256,7 @@ const an = {
2206
2256
  PanelMenu: po,
2207
2257
  VisibleLayers: ho,
2208
2258
  Opacity: Go,
2209
- ConfigSelect: Mo,
2259
+ ConfigSelect: Po,
2210
2260
  Item: Uo,
2211
2261
  // Pure UI
2212
2262
  ItemUI: dt,