@carto/ps-react-ui 4.2.2 → 4.2.4

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.
@@ -1,15 +1,15 @@
1
- import { jsx as l, jsxs as L, Fragment as z } from "react/jsx-runtime";
1
+ import { jsx as l, jsxs as I, Fragment as K } from "react/jsx-runtime";
2
2
  import { c as E } from "react/compiler-runtime";
3
- import { ArrowDropDown as Pe, MoreVertOutlined as ze, Close as Be, MyLocationOutlined as Ne, LocationDisabledOutlined as Fe, CropFreeOutlined as He, AddOutlined as Xe, RemoveOutlined as qe } from "@mui/icons-material";
4
- import { Tooltip as Ke, Chip as Ye, Paper as ye, IconButton as se, Menu as $e, Box as X, Divider as ae, MenuItem as ge, ListItemIcon as je, SvgIcon as _e, ListItemText as be, ToggleButton as ve, Typography as Y, ToggleButtonGroup as Ze, Button as we, alpha as Qe, Dialog as Je, DialogTitle as et, DialogContent as tt, FormControl as ot, RadioGroup as lt, FormControlLabel as nt, Radio as it, DialogActions as rt, CircularProgress as st, Grid as me, Skeleton as Se, Alert as at, ListItem as ct, List as dt, Drawer as ut, Popover as ht, useTheme as pt, useMediaQuery as ft } from "@mui/material";
5
- import { useState as ne, useMemo as Ce, useRef as Oe, useEffect as De, useLayoutEffect as mt } from "react";
3
+ import { ArrowDropDown as $e, MoreVertOutlined as Fe, Close as je, MyLocationOutlined as He, LocationDisabledOutlined as Xe, CropFreeOutlined as qe, AddOutlined as Ie, RemoveOutlined as Le } from "@mui/icons-material";
4
+ import { Tooltip as Ke, Chip as Ye, Paper as ye, IconButton as se, Menu as Ze, Box as Y, Divider as ae, MenuItem as ge, ListItemIcon as Ve, SvgIcon as _e, ListItemText as be, ToggleButton as ve, Typography as J, ToggleButtonGroup as Ue, Button as we, alpha as Qe, Dialog as Je, DialogTitle as et, DialogContent as tt, FormControl as ot, RadioGroup as lt, FormControlLabel as nt, Radio as it, DialogActions as rt, CircularProgress as st, Grid as me, Skeleton as Se, Alert as at, ListItem as ct, List as dt, Drawer as ut, Popover as pt, useTheme as ft, useMediaQuery as ht } from "@mui/material";
5
+ import { useState as ie, useMemo as Ce, useRef as Oe, useEffect as De, useLayoutEffect as mt } from "react";
6
6
  function gt(t) {
7
7
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
8
8
  }
9
- var Te, Ie;
9
+ var Te, ke;
10
10
  function bt() {
11
- if (Ie) return Te;
12
- Ie = 1;
11
+ if (ke) return Te;
12
+ ke = 1;
13
13
  var t = function(m) {
14
14
  return e(m) && !n(m);
15
15
  };
@@ -28,63 +28,63 @@ function bt() {
28
28
  return Array.isArray(d) ? [] : {};
29
29
  }
30
30
  function s(d, m) {
31
- return m.clone !== !1 && m.isMergeableObject(d) ? b(r(d), d, m) : d;
31
+ return m.clone !== !1 && m.isMergeableObject(d) ? v(r(d), d, m) : d;
32
32
  }
33
- function c(d, m, g) {
33
+ function c(d, m, b) {
34
34
  return d.concat(m).map(function(C) {
35
- return s(C, g);
35
+ return s(C, b);
36
36
  });
37
37
  }
38
38
  function u(d, m) {
39
39
  if (!m.customMerge)
40
- return b;
41
- var g = m.customMerge(d);
42
- return typeof g == "function" ? g : b;
40
+ return v;
41
+ var b = m.customMerge(d);
42
+ return typeof b == "function" ? b : v;
43
43
  }
44
44
  function p(d) {
45
45
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(d).filter(function(m) {
46
46
  return Object.propertyIsEnumerable.call(d, m);
47
47
  }) : [];
48
48
  }
49
- function h(d) {
49
+ function f(d) {
50
50
  return Object.keys(d).concat(p(d));
51
51
  }
52
- function f(d, m) {
52
+ function h(d, m) {
53
53
  try {
54
54
  return m in d;
55
55
  } catch {
56
56
  return !1;
57
57
  }
58
58
  }
59
- function v(d, m) {
60
- return f(d, m) && !(Object.hasOwnProperty.call(d, m) && Object.propertyIsEnumerable.call(d, m));
59
+ function g(d, m) {
60
+ return h(d, m) && !(Object.hasOwnProperty.call(d, m) && Object.propertyIsEnumerable.call(d, m));
61
61
  }
62
- function y(d, m, g) {
62
+ function y(d, m, b) {
63
63
  var C = {};
64
- return g.isMergeableObject(d) && h(d).forEach(function(w) {
65
- C[w] = s(d[w], g);
66
- }), h(m).forEach(function(w) {
67
- v(d, w) || (f(d, w) && g.isMergeableObject(m[w]) ? C[w] = u(w, g)(d[w], m[w], g) : C[w] = s(m[w], g));
64
+ return b.isMergeableObject(d) && f(d).forEach(function(w) {
65
+ C[w] = s(d[w], b);
66
+ }), f(m).forEach(function(w) {
67
+ g(d, w) || (h(d, w) && b.isMergeableObject(m[w]) ? C[w] = u(w, b)(d[w], m[w], b) : C[w] = s(m[w], b));
68
68
  }), C;
69
69
  }
70
- function b(d, m, g) {
71
- g = g || {}, g.arrayMerge = g.arrayMerge || c, g.isMergeableObject = g.isMergeableObject || t, g.cloneUnlessOtherwiseSpecified = s;
70
+ function v(d, m, b) {
71
+ b = b || {}, b.arrayMerge = b.arrayMerge || c, b.isMergeableObject = b.isMergeableObject || t, b.cloneUnlessOtherwiseSpecified = s;
72
72
  var C = Array.isArray(m), w = Array.isArray(d), _ = C === w;
73
- return _ ? C ? g.arrayMerge(d, m, g) : y(d, m, g) : s(m, g);
73
+ return _ ? C ? b.arrayMerge(d, m, b) : y(d, m, b) : s(m, b);
74
74
  }
75
- b.all = function(m, g) {
75
+ v.all = function(m, b) {
76
76
  if (!Array.isArray(m))
77
77
  throw new Error("first argument should be an array");
78
78
  return m.reduce(function(C, w) {
79
- return b(C, w, g);
79
+ return v(C, w, b);
80
80
  }, {});
81
81
  };
82
- var x = b;
82
+ var x = v;
83
83
  return Te = x, Te;
84
84
  }
85
85
  var vt = bt();
86
86
  const xe = /* @__PURE__ */ gt(vt);
87
- let Ve = 500;
87
+ let We = 500;
88
88
  function de(t) {
89
89
  const e = E(10);
90
90
  let n, o, i, a;
@@ -94,12 +94,12 @@ function de(t) {
94
94
  enterNextDelay: i,
95
95
  ...o
96
96
  } = t, e[0] = t, e[1] = n, e[2] = o, e[3] = i, e[4] = a) : (n = e[1], o = e[2], i = e[3], a = e[4]);
97
- const r = i === void 0 ? Ve : i;
97
+ const r = i === void 0 ? We : i;
98
98
  let s;
99
99
  return e[5] !== n || e[6] !== r || e[7] !== o || e[8] !== a ? (s = /* @__PURE__ */ l(Ke, { title: a, enterNextDelay: r, ...o, children: n }), e[5] = n, e[6] = r, e[7] = o, e[8] = a, e[9] = s) : s = e[9], s;
100
100
  }
101
101
  function uo(t) {
102
- Ve = t;
102
+ We = t;
103
103
  }
104
104
  function yt(t) {
105
105
  const e = E(3);
@@ -136,7 +136,7 @@ function Mt(t) {
136
136
  let o;
137
137
  return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
138
138
  }
139
- const K = {
139
+ const Q = {
140
140
  action: {
141
141
  tooltip: {
142
142
  active: "Click on the map to draw your spatial filter",
@@ -172,7 +172,7 @@ const K = {
172
172
  },
173
173
  deleteAll: "Remove all"
174
174
  }
175
- }, ho = {
175
+ }, po = {
176
176
  polygon: {
177
177
  icon: yt
178
178
  },
@@ -188,7 +188,7 @@ const K = {
188
188
  edit: {
189
189
  icon: Mt
190
190
  }
191
- }, J = {
191
+ }, te = {
192
192
  container: {
193
193
  display: "flex",
194
194
  flexDirection: "row",
@@ -352,28 +352,28 @@ const K = {
352
352
  }
353
353
  }
354
354
  };
355
- function Ue(t) {
355
+ function ze(t) {
356
356
  const e = E(18), {
357
357
  chipProps: n,
358
358
  value: o,
359
359
  labels: i,
360
360
  onChipToggle: a,
361
361
  onDelete: r
362
- } = t, s = o.visible ? "active" : "inactive", c = i?.tooltip?.[s] ?? K.chip.tooltip[s], u = n?.TooltipProps;
362
+ } = t, s = o.visible ? "active" : "inactive", c = i?.tooltip?.[s] ?? Q.chip.tooltip[s], u = n?.TooltipProps;
363
363
  let p;
364
364
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (p = {
365
- ...J.chip.chip
365
+ ...te.chip.chip
366
366
  }, e[0] = p) : p = e[0];
367
- const h = o.visible ? "secondary" : "default";
368
- let f;
369
- e[1] !== r || e[2] !== o.id ? (f = () => r(o.id), e[1] = r, e[2] = o.id, e[3] = f) : f = e[3];
370
- let v;
371
- e[4] !== a || e[5] !== o.id || e[6] !== o.visible ? (v = () => a(o.id, !o.visible), e[4] = a, e[5] = o.id, e[6] = o.visible, e[7] = v) : v = e[7];
367
+ const f = o.visible ? "secondary" : "default";
368
+ let h;
369
+ e[1] !== r || e[2] !== o.id ? (h = () => r(o.id), e[1] = r, e[2] = o.id, e[3] = h) : h = e[3];
370
+ let g;
371
+ e[4] !== a || e[5] !== o.id || e[6] !== o.visible ? (g = () => a(o.id, !o.visible), e[4] = a, e[5] = o.id, e[6] = o.visible, e[7] = g) : g = e[7];
372
372
  const y = n?.ChipsProps;
373
- let b;
374
- e[8] !== h || e[9] !== f || e[10] !== v || e[11] !== y || e[12] !== o.label ? (b = /* @__PURE__ */ l(Ye, { sx: p, color: h, size: "small", onDelete: f, label: o.label, onClick: v, ...y }), e[8] = h, e[9] = f, e[10] = v, e[11] = y, e[12] = o.label, e[13] = b) : b = e[13];
373
+ let v;
374
+ e[8] !== f || e[9] !== h || e[10] !== g || e[11] !== y || e[12] !== o.label ? (v = /* @__PURE__ */ l(Ye, { sx: p, color: f, size: "small", onDelete: h, label: o.label, onClick: g, ...y }), e[8] = f, e[9] = h, e[10] = g, e[11] = y, e[12] = o.label, e[13] = v) : v = e[13];
375
375
  let x;
376
- return e[14] !== c || e[15] !== u || e[16] !== b ? (x = /* @__PURE__ */ l(de, { title: c, placement: "bottom", ...u, children: b }), e[14] = c, e[15] = u, e[16] = b, e[17] = x) : x = e[17], x;
376
+ return e[14] !== c || e[15] !== u || e[16] !== v ? (x = /* @__PURE__ */ l(de, { title: c, placement: "bottom", ...u, children: v }), e[14] = c, e[15] = u, e[16] = v, e[17] = x) : x = e[17], x;
377
377
  }
378
378
  function ce(t) {
379
379
  const e = E(44), {
@@ -386,15 +386,15 @@ function ce(t) {
386
386
  modesMapping: c,
387
387
  modeSelected: u,
388
388
  PaperProps: p,
389
- onActionToggle: h,
390
- onChipToggle: f,
391
- onDelete: v,
389
+ onActionToggle: f,
390
+ onChipToggle: h,
391
+ onDelete: g,
392
392
  onChangeMode: y,
393
- onAllChipToggle: b,
393
+ onAllChipToggle: v,
394
394
  onAllDelete: x,
395
395
  ChipsSlot: d,
396
396
  ActionSlot: m,
397
- SecondaryActionsSlot: g,
397
+ SecondaryActionsSlot: b,
398
398
  OptionsSlot: C
399
399
  } = t;
400
400
  let w;
@@ -407,9 +407,9 @@ function ce(t) {
407
407
  sx: T,
408
408
  ...S
409
409
  } = O, e[4] = O, e[5] = S, e[6] = T) : (S = e[5], T = e[6]);
410
- const I = d === void 0 ? ce.Chips : d, D = m === void 0 ? ce.Action : m, A = g === void 0 ? ce.SecondaryActions : g, M = C === void 0 ? ce.Options : C;
411
- let k;
412
- e[7] !== S || e[8] !== i || e[9] !== a || e[10] !== n || e[11] !== r || e[12] !== u || e[13] !== s || e[14] !== c || e[15] !== h || e[16] !== b || e[17] !== x || e[18] !== y || e[19] !== f || e[20] !== v || e[21] !== _ ? (k = {
410
+ const D = d === void 0 ? ce.Chips : d, L = m === void 0 ? ce.Action : m, A = b === void 0 ? ce.SecondaryActions : b, M = C === void 0 ? ce.Options : C;
411
+ let P;
412
+ e[7] !== S || e[8] !== i || e[9] !== a || e[10] !== n || e[11] !== r || e[12] !== u || e[13] !== s || e[14] !== c || e[15] !== f || e[16] !== v || e[17] !== x || e[18] !== y || e[19] !== h || e[20] !== g || e[21] !== _ ? (P = {
413
413
  enabled: n,
414
414
  values: _,
415
415
  actionProps: i,
@@ -419,34 +419,34 @@ function ce(t) {
419
419
  modesMapping: c,
420
420
  modeSelected: u,
421
421
  PaperProps: S,
422
- onActionToggle: h,
423
- onChipToggle: f,
424
- onDelete: v,
422
+ onActionToggle: f,
423
+ onChipToggle: h,
424
+ onDelete: g,
425
425
  onChangeMode: y,
426
- onAllChipToggle: b,
426
+ onAllChipToggle: v,
427
427
  onAllDelete: x
428
- }, e[7] = S, e[8] = i, e[9] = a, e[10] = n, e[11] = r, e[12] = u, e[13] = s, e[14] = c, e[15] = h, e[16] = b, e[17] = x, e[18] = y, e[19] = f, e[20] = v, e[21] = _, e[22] = k) : k = e[22];
429
- const R = k;
430
- let P;
431
- e[23] !== T ? (P = {
432
- ...J.container,
428
+ }, e[7] = S, e[8] = i, e[9] = a, e[10] = n, e[11] = r, e[12] = u, e[13] = s, e[14] = c, e[15] = f, e[16] = v, e[17] = x, e[18] = y, e[19] = h, e[20] = g, e[21] = _, e[22] = P) : P = e[22];
429
+ const k = P;
430
+ let R;
431
+ e[23] !== T ? (R = {
432
+ ...te.container,
433
433
  ...T
434
- }, e[23] = T, e[24] = P) : P = e[24];
435
- let j;
436
- e[25] !== D || e[26] !== R ? (j = !!D && /* @__PURE__ */ l(D, { ...R }), e[25] = D, e[26] = R, e[27] = j) : j = e[27];
437
- let $;
438
- e[28] !== M || e[29] !== R ? ($ = !!M && /* @__PURE__ */ l(We, { children: (G) => /* @__PURE__ */ l(M, { ...R, ...G }) }), e[28] = M, e[29] = R, e[30] = $) : $ = e[30];
434
+ }, e[23] = T, e[24] = R) : R = e[24];
435
+ let Z;
436
+ e[25] !== L || e[26] !== k ? (Z = !!L && /* @__PURE__ */ l(L, { ...k }), e[25] = L, e[26] = k, e[27] = Z) : Z = e[27];
437
+ let V;
438
+ e[28] !== M || e[29] !== k ? (V = !!M && /* @__PURE__ */ l(Ge, { children: (j) => /* @__PURE__ */ l(M, { ...k, ...j }) }), e[28] = M, e[29] = k, e[30] = V) : V = e[30];
439
439
  let B;
440
- e[31] !== I || e[32] !== R ? (B = !!I && /* @__PURE__ */ l(I, { ...R }), e[31] = I, e[32] = R, e[33] = B) : B = e[33];
440
+ e[31] !== D || e[32] !== k ? (B = !!D && /* @__PURE__ */ l(D, { ...k }), e[31] = D, e[32] = k, e[33] = B) : B = e[33];
441
+ let U;
442
+ e[34] !== A || e[35] !== k ? (U = !!A && /* @__PURE__ */ l(A, { ...k }), e[34] = A, e[35] = k, e[36] = U) : U = e[36];
441
443
  let N;
442
- e[34] !== A || e[35] !== R ? (N = !!A && /* @__PURE__ */ l(A, { ...R }), e[34] = A, e[35] = R, e[36] = N) : N = e[36];
443
- let W;
444
- return e[37] !== S || e[38] !== P || e[39] !== j || e[40] !== $ || e[41] !== B || e[42] !== N ? (W = /* @__PURE__ */ L(ye, { sx: P, ...S, children: [
445
- j,
446
- $,
444
+ return e[37] !== S || e[38] !== R || e[39] !== Z || e[40] !== V || e[41] !== B || e[42] !== U ? (N = /* @__PURE__ */ I(ye, { sx: R, ...S, children: [
445
+ Z,
446
+ V,
447
447
  B,
448
- N
449
- ] }), e[37] = S, e[38] = P, e[39] = j, e[40] = $, e[41] = B, e[42] = N, e[43] = W) : W = e[43], W;
448
+ U
449
+ ] }), e[37] = S, e[38] = R, e[39] = Z, e[40] = V, e[41] = B, e[42] = U, e[43] = N) : N = e[43], N;
450
450
  }
451
451
  function St(t) {
452
452
  const e = E(12), {
@@ -455,35 +455,35 @@ function St(t) {
455
455
  enabled: i,
456
456
  children: a,
457
457
  onActionToggle: r
458
- } = t, s = i ? "active" : "inactive", c = o?.tooltip?.[s] ?? K.action.tooltip[s], u = n?.TooltipProps;
458
+ } = t, s = i ? "active" : "inactive", c = o?.tooltip?.[s] ?? Q.action.tooltip[s], u = n?.TooltipProps;
459
459
  let p;
460
460
  e[0] !== i || e[1] !== r ? (p = () => r(!i), e[0] = i, e[1] = r, e[2] = p) : p = e[2];
461
- let h;
462
- e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== p ? (h = /* @__PURE__ */ l(ve, { value: "toggle", sx: J.actions.icon, onClick: p, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = p, e[7] = h) : h = e[7];
463
461
  let f;
464
- return e[8] !== c || e[9] !== u || e[10] !== h ? (f = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: h }), e[8] = c, e[9] = u, e[10] = h, e[11] = f) : f = e[11], f;
462
+ e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== p ? (f = /* @__PURE__ */ l(ve, { value: "toggle", sx: te.actions.icon, onClick: p, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = p, e[7] = f) : f = e[7];
463
+ let h;
464
+ return e[8] !== c || e[9] !== u || e[10] !== f ? (h = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: f }), e[8] = c, e[9] = u, e[10] = f, e[11] = h) : h = e[11], h;
465
465
  }
466
- function We({
466
+ function Ge({
467
467
  TriggerProps: {
468
- Icon: t = /* @__PURE__ */ l(Pe, {}),
468
+ Icon: t = /* @__PURE__ */ l($e, {}),
469
469
  sx: e
470
470
  } = {},
471
471
  MenuProps: n,
472
472
  children: o
473
473
  }) {
474
- const [i, a] = ne(null), r = !!i, s = (u) => {
474
+ const [i, a] = ie(null), r = !!i, s = (u) => {
475
475
  a(u.currentTarget);
476
476
  }, c = () => {
477
477
  a(null);
478
478
  };
479
- return /* @__PURE__ */ L(z, { children: [
479
+ return /* @__PURE__ */ I(K, { children: [
480
480
  /* @__PURE__ */ l(se, { sx: {
481
- ...J.options.icon,
481
+ ...te.options.icon,
482
482
  ...e
483
483
  }, onClick: s, children: t }),
484
- /* @__PURE__ */ l($e, { id: "lasso-menu", anchorEl: i, open: r, onClose: c, MenuListProps: {
484
+ /* @__PURE__ */ l(Ze, { id: "lasso-menu", anchorEl: i, open: r, onClose: c, MenuListProps: {
485
485
  "aria-labelledby": "lasso-button",
486
- sx: J.options.menu
486
+ sx: te.options.menu
487
487
  }, ...n, children: /* @__PURE__ */ l("div", { children: o({
488
488
  onClose: c
489
489
  }) }) })
@@ -497,16 +497,16 @@ function Tt(t) {
497
497
  } = t;
498
498
  if (n.length <= 1)
499
499
  return null;
500
- const a = o?.mode?.title ?? K.options.mode.title;
500
+ const a = o?.mode?.title ?? Q.options.mode.title;
501
501
  let r;
502
- e[0] !== a ? (r = /* @__PURE__ */ l(Y, { variant: "subtitle2", color: "text.secondary", sx: J.options.title, children: a }), e[0] = a, e[1] = r) : r = e[1];
502
+ e[0] !== a ? (r = /* @__PURE__ */ l(J, { variant: "subtitle2", color: "text.secondary", sx: te.options.title, children: a }), e[0] = a, e[1] = r) : r = e[1];
503
503
  let s;
504
- return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ L(z, { children: [
504
+ return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ I(K, { children: [
505
505
  r,
506
506
  i
507
507
  ] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
508
508
  }
509
- function Le({
509
+ function Re({
510
510
  data: t,
511
511
  modeSelected: e,
512
512
  labels: n,
@@ -517,9 +517,9 @@ function Le({
517
517
  r.preventDefault(), o?.(s), i();
518
518
  };
519
519
  return t.map((r) => {
520
- const c = (n?.mode?.options ?? K.options.mode.options)[r.value];
521
- return /* @__PURE__ */ L(ge, { disabled: !!r.disabled, onClick: (u) => a(u, r.value), selected: r.value === e, children: [
522
- /* @__PURE__ */ l(je, { sx: J.options.icons, children: /* @__PURE__ */ l(_e, { children: /* @__PURE__ */ l(r.icon, {}) }) }),
520
+ const c = (n?.mode?.options ?? Q.options.mode.options)[r.value];
521
+ return /* @__PURE__ */ I(ge, { disabled: !!r.disabled, onClick: (u) => a(u, r.value), selected: r.value === e, children: [
522
+ /* @__PURE__ */ l(Ve, { sx: te.options.icons, children: /* @__PURE__ */ l(_e, { children: /* @__PURE__ */ l(r.icon, {}) }) }),
523
523
  /* @__PURE__ */ l(be, { children: c })
524
524
  ] }, r.value);
525
525
  });
@@ -531,16 +531,16 @@ function At(t) {
531
531
  onAllChipToggle: i,
532
532
  onAllDelete: a
533
533
  } = t;
534
- if (n.length <= 1)
534
+ if (!n?.length || n.length <= 1)
535
535
  return null;
536
- const s = n.some(_t) ? o?.actions?.toggleAll?.active ?? K.actions.toggleAll.active : o?.actions?.toggleAll?.inactive ?? K.actions.toggleAll.inactive, c = o?.actions?.deleteAll ?? K.actions.deleteAll;
536
+ const s = n?.some(_t) ? o?.actions?.toggleAll?.active ?? Q.actions.toggleAll.active : o?.actions?.toggleAll?.inactive ?? Q.actions.toggleAll.inactive, c = o?.actions?.deleteAll ?? Q.actions.deleteAll;
537
537
  let u;
538
538
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ l(ae, { orientation: "vertical", flexItem: !0 }), e[0] = u) : u = e[0];
539
- let p, h;
539
+ let p, f;
540
540
  e[1] === Symbol.for("react.memo_cache_sentinel") ? (p = {
541
- Icon: /* @__PURE__ */ l(ze, {}),
542
- sx: J.options.more
543
- }, h = {
541
+ Icon: /* @__PURE__ */ l(Fe, {}),
542
+ sx: te.options.more
543
+ }, f = {
544
544
  anchorOrigin: {
545
545
  vertical: "bottom",
546
546
  horizontal: "right"
@@ -549,20 +549,20 @@ function At(t) {
549
549
  vertical: "top",
550
550
  horizontal: "right"
551
551
  }
552
- }, e[1] = p, e[2] = h) : (p = e[1], h = e[2]);
553
- let f;
554
- return e[3] !== c || e[4] !== i || e[5] !== a || e[6] !== s ? (f = /* @__PURE__ */ L(z, { children: [
552
+ }, e[1] = p, e[2] = f) : (p = e[1], f = e[2]);
553
+ let h;
554
+ return e[3] !== c || e[4] !== i || e[5] !== a || e[6] !== s ? (h = /* @__PURE__ */ I(K, { children: [
555
555
  u,
556
- /* @__PURE__ */ l(We, { TriggerProps: p, MenuProps: h, children: (v) => /* @__PURE__ */ L(z, { children: [
556
+ /* @__PURE__ */ l(Ge, { TriggerProps: p, MenuProps: f, children: (g) => /* @__PURE__ */ I(K, { children: [
557
557
  /* @__PURE__ */ l(ge, { color: "inherit", onClick: () => {
558
- i(), v.onClose();
558
+ i?.(), g.onClose();
559
559
  }, children: s }),
560
560
  /* @__PURE__ */ l(ae, {}),
561
561
  /* @__PURE__ */ l(ge, { color: "error", onClick: () => {
562
- a(), v.onClose();
563
- }, children: /* @__PURE__ */ l(Y, { variant: "body2", color: "error", children: c }) })
562
+ a?.(), g.onClose();
563
+ }, children: /* @__PURE__ */ l(J, { variant: "body2", color: "error", children: c }) })
564
564
  ] }) })
565
- ] }), e[3] = c, e[4] = i, e[5] = a, e[6] = s, e[7] = f) : f = e[7], f;
565
+ ] }), e[3] = c, e[4] = i, e[5] = a, e[6] = s, e[7] = h) : h = e[7], h;
566
566
  }
567
567
  function _t(t) {
568
568
  return t.visible;
@@ -576,8 +576,8 @@ ce.Action = function({
576
576
  labels: r,
577
577
  onActionToggle: s
578
578
  }) {
579
- const c = Ce(() => xe(e, n), [e, n]), u = (v) => s(v), h = (o ?? "") in e ? o : Object.keys(c)[0], f = c[h];
580
- return /* @__PURE__ */ l(St, { actionProps: i, labels: r?.action, enabled: a, onActionToggle: u, children: f?.icon && /* @__PURE__ */ l(f.icon, {}) });
579
+ const c = Ce(() => xe(e ?? {}, n ?? {}), [e, n]), u = (g) => s?.(g), f = (o ? o in (e ?? {}) : !1) ? o : Object.keys(c)[0], h = c[f];
580
+ return /* @__PURE__ */ l(St, { actionProps: i, labels: r?.action, enabled: a ?? !1, onActionToggle: u, children: h?.icon && /* @__PURE__ */ l(h.icon, {}) });
581
581
  };
582
582
  ce.Chips = function({
583
583
  values: e,
@@ -587,8 +587,8 @@ ce.Chips = function({
587
587
  onChipToggle: a,
588
588
  onActionToggle: r
589
589
  }) {
590
- const s = (c) => (r(!1), i(c));
591
- return !!e.length && /* @__PURE__ */ l(X, { sx: J.chip.container, children: e.map((c) => /* @__PURE__ */ l(Ue, { value: c, labels: n?.chip, chipProps: o, onDelete: s, onChipToggle: a }, c.id)) });
590
+ const s = (c) => (r?.(!1), i?.(c));
591
+ return !!e?.length && /* @__PURE__ */ l(Y, { sx: te.chip.container, children: e?.map((c) => /* @__PURE__ */ l(ze, { value: c, labels: n?.chip, chipProps: o, onDelete: s, onChipToggle: (u, p) => a?.(u, p) }, c.id)) });
592
592
  };
593
593
  ce.SecondaryActions = At;
594
594
  ce.Options = function({
@@ -600,22 +600,22 @@ ce.Options = function({
600
600
  onChangeMode: r,
601
601
  ...s
602
602
  }) {
603
- const c = Ce(() => xe(n, o), [n, o]), {
603
+ const c = Ce(() => xe(n ?? {}, o ?? {}), [n, o]), {
604
604
  edit: u,
605
605
  ...p
606
- } = c, f = (i ?? "") in n ? i : Object.keys(c)[0], v = Object.values(p), y = (b) => r?.(b);
607
- return /* @__PURE__ */ L(z, { children: [
608
- /* @__PURE__ */ l(Tt, { data: v, labels: a?.options, children: /* @__PURE__ */ l(Le, { ...s, labels: a?.options, data: v, modeSelected: f, onChangeMode: y }) }),
609
- !!u && /* @__PURE__ */ L(z, { children: [
606
+ } = c, h = (i ? i in (n ?? {}) : !1) ? i : Object.keys(c)[0], g = Object.values(p), y = (v) => r?.(v);
607
+ return /* @__PURE__ */ I(K, { children: [
608
+ /* @__PURE__ */ l(Tt, { data: g, labels: a?.options, children: /* @__PURE__ */ l(Re, { ...s, labels: a?.options, data: g, modeSelected: h, onChangeMode: y }) }),
609
+ !!u && /* @__PURE__ */ I(K, { children: [
610
610
  /* @__PURE__ */ l(ae, {}),
611
- /* @__PURE__ */ l(Le, { ...s, labels: a?.options, data: [{
611
+ /* @__PURE__ */ l(Re, { ...s, labels: a?.options, data: [{
612
612
  ...u,
613
- disabled: !e.length
614
- }], modeSelected: f, onChangeMode: y })
613
+ disabled: !e?.length
614
+ }], modeSelected: h, onChangeMode: y })
615
615
  ] })
616
616
  ] });
617
617
  };
618
- function po({
618
+ function fo({
619
619
  enabled: t,
620
620
  values: e = [],
621
621
  chipProps: n,
@@ -629,34 +629,34 @@ function po({
629
629
  } = {},
630
630
  onChipToggle: u,
631
631
  onDelete: p,
632
- onChangeMode: h,
633
- onAllChipToggle: f,
634
- onAllDelete: v
632
+ onChangeMode: f,
633
+ onAllChipToggle: h,
634
+ onAllDelete: g
635
635
  }) {
636
636
  const y = Ce(() => xe(i, a), [i, a]), {
637
- edit: b,
637
+ edit: v,
638
638
  ...x
639
639
  } = y, d = (O) => p(O), m = (O, S) => {
640
- O.preventDefault(), h?.(S);
640
+ O.preventDefault(), f?.(S);
641
641
  }, C = (r ?? "") in i ? r : Object.keys(y)[0], w = t ? y[C] : null, _ = Object.values(x);
642
- return /* @__PURE__ */ L(X, { sx: {
643
- ...J.container,
642
+ return /* @__PURE__ */ I(Y, { sx: {
643
+ ...te.container,
644
644
  ...s
645
645
  }, ...c, className: "inline", children: [
646
- /* @__PURE__ */ l(Ot, { data: _, labels: o?.options, children: /* @__PURE__ */ L(Ze, { value: w?.value, exclusive: !0, className: "inline", sx: J.options.menu, onChange: m, children: [
647
- /* @__PURE__ */ l(ke, { labels: o?.options, data: _ }),
648
- !!b && /* @__PURE__ */ L(z, { children: [
646
+ /* @__PURE__ */ l(Ot, { data: _, labels: o?.options, children: /* @__PURE__ */ I(Ue, { value: w?.value, exclusive: !0, className: "inline", sx: te.options.menu, onChange: m, children: [
647
+ /* @__PURE__ */ l(Ee, { labels: o?.options, data: _ }),
648
+ !!v && /* @__PURE__ */ I(K, { children: [
649
649
  /* @__PURE__ */ l(ae, { orientation: "vertical" }),
650
- /* @__PURE__ */ l(ke, { labels: o?.options, data: [{
651
- ...b,
650
+ /* @__PURE__ */ l(Ee, { labels: o?.options, data: [{
651
+ ...v,
652
652
  disabled: !e.length
653
653
  }] })
654
654
  ] })
655
655
  ] }) }),
656
656
  /* @__PURE__ */ l(ae, { flexItem: !0 }),
657
657
  /* @__PURE__ */ l(Dt, { hasValues: !!e.length, labels: o?.noData }),
658
- !!e.length && /* @__PURE__ */ l(X, { sx: J.chip.container, className: "inline", children: e.map((O) => /* @__PURE__ */ l(Ue, { value: O, labels: o?.chip, chipProps: n, onDelete: d, onChipToggle: u }, O.id)) }),
659
- /* @__PURE__ */ l(It, { values: e, labels: o?.actions, onAllChipToggle: f, onAllDelete: v })
658
+ !!e.length && /* @__PURE__ */ l(Y, { sx: te.chip.container, className: "inline", children: e.map((O) => /* @__PURE__ */ l(ze, { value: O, labels: o?.chip, chipProps: n, onDelete: d, onChipToggle: u }, O.id)) }),
659
+ /* @__PURE__ */ l(It, { values: e, labels: o?.actions, onAllChipToggle: h, onAllDelete: g })
660
660
  ] });
661
661
  }
662
662
  function Ot(t) {
@@ -667,21 +667,21 @@ function Ot(t) {
667
667
  } = t;
668
668
  if (n.length <= 1)
669
669
  return null;
670
- const a = o?.mode?.title ?? K.options.mode.title;
670
+ const a = o?.mode?.title ?? Q.options.mode.title;
671
671
  let r;
672
- e[0] !== a ? (r = /* @__PURE__ */ l(Y, { variant: "subtitle2", color: "text.secondary", sx: J.options.title, className: "inline", children: a }), e[0] = a, e[1] = r) : r = e[1];
672
+ e[0] !== a ? (r = /* @__PURE__ */ l(J, { variant: "subtitle2", color: "text.secondary", sx: te.options.title, className: "inline", children: a }), e[0] = a, e[1] = r) : r = e[1];
673
673
  let s;
674
- return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ L(z, { children: [
674
+ return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ I(K, { children: [
675
675
  r,
676
676
  i
677
677
  ] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
678
678
  }
679
- function ke({
679
+ function Ee({
680
680
  data: t,
681
681
  labels: e
682
682
  }) {
683
683
  return t.map((n) => {
684
- const i = (e?.mode?.options ?? K.options.mode.options)[n.value];
684
+ const i = (e?.mode?.options ?? Q.options.mode.options)[n.value];
685
685
  return /* @__PURE__ */ l(de, { title: i, placement: "bottom", children: /* @__PURE__ */ l(ve, { disabled: !!n.disabled, value: n.value, "aria-label": n.value, children: /* @__PURE__ */ l(_e, { children: /* @__PURE__ */ l(n.icon, {}) }) }) }, n.value);
686
686
  });
687
687
  }
@@ -692,13 +692,13 @@ function Dt(t) {
692
692
  } = t;
693
693
  if (n)
694
694
  return null;
695
- const i = o?.title ?? K.noData.title, a = o?.description ?? K.noData.description;
695
+ const i = o?.title ?? Q.noData.title, a = o?.description ?? Q.noData.description;
696
696
  let r;
697
- e[0] !== i ? (r = /* @__PURE__ */ l(Y, { variant: "body1", color: "textSecondary", children: i }), e[0] = i, e[1] = r) : r = e[1];
697
+ e[0] !== i ? (r = /* @__PURE__ */ l(J, { variant: "body1", color: "textSecondary", children: i }), e[0] = i, e[1] = r) : r = e[1];
698
698
  let s;
699
- e[2] !== a ? (s = /* @__PURE__ */ l(Y, { variant: "body2", color: "textSecondary", children: a }), e[2] = a, e[3] = s) : s = e[3];
699
+ e[2] !== a ? (s = /* @__PURE__ */ l(J, { variant: "body2", color: "textSecondary", children: a }), e[2] = a, e[3] = s) : s = e[3];
700
700
  let c;
701
- return e[4] !== r || e[5] !== s ? (c = /* @__PURE__ */ L(z, { children: [
701
+ return e[4] !== r || e[5] !== s ? (c = /* @__PURE__ */ I(K, { children: [
702
702
  r,
703
703
  s
704
704
  ] }), e[4] = r, e[5] = s, e[6] = c) : c = e[6], c;
@@ -712,20 +712,20 @@ function It(t) {
712
712
  } = t;
713
713
  if (n.length <= 1)
714
714
  return null;
715
- const s = n.some(Lt) ? o?.toggleAll?.active ?? K.actions.toggleAll.active : o?.toggleAll?.inactive ?? K.actions.toggleAll.inactive, c = o?.deleteAll ?? K.actions.deleteAll;
715
+ const s = n.some(Lt) ? o?.toggleAll?.active ?? Q.actions.toggleAll.active : o?.toggleAll?.inactive ?? Q.actions.toggleAll.inactive, c = o?.deleteAll ?? Q.actions.deleteAll;
716
716
  let u;
717
717
  e[0] !== i ? (u = () => i(), e[0] = i, e[1] = u) : u = e[1];
718
718
  let p;
719
719
  e[2] !== u || e[3] !== s ? (p = /* @__PURE__ */ l(we, { color: "inherit", onClick: u, children: s }), e[2] = u, e[3] = s, e[4] = p) : p = e[4];
720
- let h;
721
- e[5] !== a ? (h = () => a(), e[5] = a, e[6] = h) : h = e[6];
722
720
  let f;
723
- e[7] !== c || e[8] !== h ? (f = /* @__PURE__ */ l(we, { color: "error", onClick: h, children: c }), e[7] = c, e[8] = h, e[9] = f) : f = e[9];
724
- let v;
725
- return e[10] !== p || e[11] !== f ? (v = /* @__PURE__ */ L(X, { children: [
721
+ e[5] !== a ? (f = () => a(), e[5] = a, e[6] = f) : f = e[6];
722
+ let h;
723
+ e[7] !== c || e[8] !== f ? (h = /* @__PURE__ */ l(we, { color: "error", onClick: f, children: c }), e[7] = c, e[8] = f, e[9] = h) : h = e[9];
724
+ let g;
725
+ return e[10] !== p || e[11] !== h ? (g = /* @__PURE__ */ I(Y, { children: [
726
726
  p,
727
- f
728
- ] }), e[10] = p, e[11] = f, e[12] = v) : v = e[12], v;
727
+ h
728
+ ] }), e[10] = p, e[11] = h, e[12] = g) : g = e[12], g;
729
729
  }
730
730
  function Lt(t) {
731
731
  return t.visible;
@@ -749,7 +749,7 @@ function Et(t) {
749
749
  let n, o;
750
750
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 13.5v-9h9v9h-9Zm.75-8.25h7.5v7.5h-7.5v-7.5Z", clipRule: "evenodd" }), o = /* @__PURE__ */ l("path", { fill: "#2C3032", fillRule: "evenodd", d: "M1.5 3A1.5 1.5 0 0 1 3 1.5h12A1.5 1.5 0 0 1 16.5 3v12a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 15V3ZM3 3h12v12H3V3Z", clipRule: "evenodd" }), e[0] = n, e[1] = o) : (n = e[0], o = e[1]);
751
751
  let i;
752
- return e[2] !== t ? (i = /* @__PURE__ */ L("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
752
+ return e[2] !== t ? (i = /* @__PURE__ */ I("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
753
753
  n,
754
754
  o
755
755
  ] }), e[2] = t, e[3] = i) : i = e[3], i;
@@ -844,7 +844,7 @@ const re = {
844
844
  area: {
845
845
  icon: /* @__PURE__ */ l(Et, {})
846
846
  }
847
- }, Q = {
847
+ }, ee = {
848
848
  container: {
849
849
  display: "flex",
850
850
  flexDirection: "row",
@@ -976,7 +976,7 @@ const re = {
976
976
  }
977
977
  }
978
978
  };
979
- function fo(t) {
979
+ function ho(t) {
980
980
  const e = E(46), {
981
981
  enabled: n,
982
982
  actionProps: o,
@@ -987,63 +987,63 @@ function fo(t) {
987
987
  modeSelected: c,
988
988
  PaperProps: u,
989
989
  units: p,
990
- unitSelected: h,
991
- onActionToggle: f,
992
- onChangeMode: v,
990
+ unitSelected: f,
991
+ onActionToggle: h,
992
+ onChangeMode: g,
993
993
  onChangeUnit: y
994
- } = t, b = i === void 0 ? re : i, x = r === void 0 ? Bt : r, d = s === void 0 ? Pt : s;
994
+ } = t, v = i === void 0 ? re : i, x = r === void 0 ? Bt : r, d = s === void 0 ? Pt : s;
995
995
  let m;
996
996
  e[0] !== u ? (m = u === void 0 ? {} : u, e[0] = u, e[1] = m) : m = e[1];
997
- let g, C;
997
+ let b, C;
998
998
  e[2] !== m ? ({
999
999
  sx: C,
1000
- ...g
1001
- } = m, e[2] = m, e[3] = g, e[4] = C) : (g = e[3], C = e[4]);
1000
+ ...b
1001
+ } = m, e[2] = m, e[3] = b, e[4] = C) : (b = e[3], C = e[4]);
1002
1002
  let w;
1003
- e[5] !== f ? (w = (V) => f(!!V), e[5] = f, e[6] = w) : w = e[6];
1003
+ e[5] !== h ? (w = (G) => h(!!G), e[5] = h, e[6] = w) : w = e[6];
1004
1004
  const _ = w;
1005
1005
  let O, S;
1006
1006
  e[7] !== a || e[8] !== x ? (S = xe(a, x), e[7] = a, e[8] = x, e[9] = S) : S = e[9], O = S;
1007
- const T = O, I = (c ?? "") in T;
1008
- let D;
1009
- e[10] !== T || e[11] !== I || e[12] !== c ? (D = I ? c : Object.keys(T)[0], e[10] = T, e[11] = I, e[12] = c, e[13] = D) : D = e[13];
1010
- const A = D, M = T[A];
1011
- let k;
1012
- const R = p[A];
1007
+ const T = O, D = (c ?? "") in T;
1008
+ let L;
1009
+ e[10] !== T || e[11] !== D || e[12] !== c ? (L = D ? c : Object.keys(T)[0], e[10] = T, e[11] = D, e[12] = c, e[13] = L) : L = e[13];
1010
+ const A = L, M = T[A];
1013
1011
  let P;
1014
- e[14] !== A || e[15] !== R || e[16] !== p ? (P = Object.keys(p).length >= 1 ? p : {
1015
- [A]: R.slice(0, 1)
1016
- }, e[14] = A, e[15] = R, e[16] = p, e[17] = P) : P = e[17];
1017
- const $ = P[A];
1012
+ const k = p[A];
1013
+ let R;
1014
+ e[14] !== A || e[15] !== k || e[16] !== p ? (R = Object.keys(p).length >= 1 ? p : {
1015
+ [A]: k.slice(0, 1)
1016
+ }, e[14] = A, e[15] = k, e[16] = p, e[17] = R) : R = e[17];
1017
+ const V = R[A];
1018
1018
  let B;
1019
- if (e[18] !== $ || e[19] !== d) {
1020
- let V;
1021
- e[21] !== d ? (V = (te) => ({
1022
- ...te,
1023
- ...d[te.value]
1024
- }), e[21] = d, e[22] = V) : V = e[22], B = $.map(V), e[18] = $, e[19] = d, e[20] = B;
1019
+ if (e[18] !== V || e[19] !== d) {
1020
+ let G;
1021
+ e[21] !== d ? (G = (oe) => ({
1022
+ ...oe,
1023
+ ...d[oe.value]
1024
+ }), e[21] = d, e[22] = G) : G = e[22], B = V.map(G), e[18] = V, e[19] = d, e[20] = B;
1025
1025
  } else
1026
1026
  B = e[20];
1027
- k = B;
1028
- const N = k;
1029
- let W;
1030
- e[23] !== C ? (W = {
1031
- ...Q.container,
1027
+ P = B;
1028
+ const U = P;
1029
+ let N;
1030
+ e[23] !== C ? (N = {
1031
+ ...ee.container,
1032
1032
  ...C
1033
- }, e[23] = C, e[24] = W) : W = e[24];
1034
- const G = b?.action, ee = M?.icon;
1035
- let F;
1036
- e[25] !== o || e[26] !== n || e[27] !== _ || e[28] !== G || e[29] !== ee ? (F = /* @__PURE__ */ l($t, { actionProps: o, labels: G, enabled: n, onActionToggle: _, children: ee }), e[25] = o, e[26] = n, e[27] = _, e[28] = G, e[29] = ee, e[30] = F) : F = e[30];
1037
- const ie = b?.options;
1038
- let Z;
1039
- e[31] !== N || e[32] !== T || e[33] !== A || e[34] !== v || e[35] !== y || e[36] !== ie || e[37] !== h ? (Z = /* @__PURE__ */ l(jt, { labels: ie, modes: T, modeSelected: A, units: N, unitSelected: h, onChangeMode: v, onChangeUnit: y }), e[31] = N, e[32] = T, e[33] = A, e[34] = v, e[35] = y, e[36] = ie, e[37] = h, e[38] = Z) : Z = e[38];
1033
+ }, e[23] = C, e[24] = N) : N = e[24];
1034
+ const j = v?.action, F = M?.icon;
1035
+ let W;
1036
+ e[25] !== o || e[26] !== n || e[27] !== _ || e[28] !== j || e[29] !== F ? (W = /* @__PURE__ */ l($t, { actionProps: o, labels: j, enabled: n, onActionToggle: _, children: F }), e[25] = o, e[26] = n, e[27] = _, e[28] = j, e[29] = F, e[30] = W) : W = e[30];
1037
+ const q = v?.options;
1038
+ let $;
1039
+ e[31] !== U || e[32] !== T || e[33] !== A || e[34] !== g || e[35] !== y || e[36] !== q || e[37] !== f ? ($ = /* @__PURE__ */ l(jt, { labels: q, modes: T, modeSelected: A, units: U, unitSelected: f, onChangeMode: g, onChangeUnit: y }), e[31] = U, e[32] = T, e[33] = A, e[34] = g, e[35] = y, e[36] = q, e[37] = f, e[38] = $) : $ = e[38];
1040
+ let z;
1041
+ e[39] !== W || e[40] !== $ ? (z = /* @__PURE__ */ I(Y, { children: [
1042
+ W,
1043
+ $
1044
+ ] }), e[39] = W, e[40] = $, e[41] = z) : z = e[41];
1040
1045
  let H;
1041
- e[39] !== F || e[40] !== Z ? (H = /* @__PURE__ */ L(X, { children: [
1042
- F,
1043
- Z
1044
- ] }), e[39] = F, e[40] = Z, e[41] = H) : H = e[41];
1045
- let q;
1046
- return e[42] !== g || e[43] !== W || e[44] !== H ? (q = /* @__PURE__ */ l(ye, { sx: W, ...g, children: H }), e[42] = g, e[43] = W, e[44] = H, e[45] = q) : q = e[45], q;
1046
+ return e[42] !== b || e[43] !== N || e[44] !== z ? (H = /* @__PURE__ */ l(ye, { sx: N, ...b, children: z }), e[42] = b, e[43] = N, e[44] = z, e[45] = H) : H = e[45], H;
1047
1047
  }
1048
1048
  function $t(t) {
1049
1049
  const e = E(12), {
@@ -1055,10 +1055,10 @@ function $t(t) {
1055
1055
  } = t, s = i ? "active" : "inactive", c = o?.tooltip?.[s] ?? re.action.tooltip[s], u = n?.TooltipProps;
1056
1056
  let p;
1057
1057
  e[0] !== i || e[1] !== r ? (p = () => r(!i), e[0] = i, e[1] = r, e[2] = p) : p = e[2];
1058
- let h;
1059
- e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== p ? (h = /* @__PURE__ */ l(ve, { value: "toggle", sx: Q.actions.icon, onClick: p, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = p, e[7] = h) : h = e[7];
1060
1058
  let f;
1061
- return e[8] !== c || e[9] !== u || e[10] !== h ? (f = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: h }), e[8] = c, e[9] = u, e[10] = h, e[11] = f) : f = e[11], f;
1059
+ e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== p ? (f = /* @__PURE__ */ l(ve, { value: "toggle", sx: ee.actions.icon, onClick: p, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = p, e[7] = f) : f = e[7];
1060
+ let h;
1061
+ return e[8] !== c || e[9] !== u || e[10] !== f ? (h = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: f }), e[8] = c, e[9] = u, e[10] = f, e[11] = h) : h = e[11], h;
1062
1062
  }
1063
1063
  function jt(t) {
1064
1064
  const e = E(68), {
@@ -1069,90 +1069,90 @@ function jt(t) {
1069
1069
  labels: r,
1070
1070
  onChangeMode: s,
1071
1071
  onChangeUnit: c
1072
- } = t, [u, p] = ne(null), [h, f] = ne(!1);
1073
- let v, y, b, x, d, m, g, C, w, _, O, S, T, I, D, A;
1072
+ } = t, [u, p] = ie(null), [f, h] = ie(!1);
1073
+ let g, y, v, x, d, m, b, C, w, _, O, S, T, D, L, A;
1074
1074
  if (e[0] !== u || e[1] !== r?.mode?.options || e[2] !== r?.mode?.title || e[3] !== r?.units?.title || e[4] !== o || e[5] !== n || e[6] !== s || e[7] !== c || e[8] !== a || e[9] !== i) {
1075
1075
  T = Symbol.for("react.early_return_sentinel");
1076
1076
  e: {
1077
- const $ = Object.values(n);
1077
+ const V = Object.values(n);
1078
1078
  let B;
1079
- if (e[26] !== i ? (B = Object.values(i), e[26] = i, e[27] = B) : B = e[27], A = B, !($.length > 1 || A.length > 1)) {
1079
+ if (e[26] !== i ? (B = Object.values(i), e[26] = i, e[27] = B) : B = e[27], A = B, !(V.length > 1 || A.length > 1)) {
1080
1080
  T = null;
1081
1081
  break e;
1082
1082
  }
1083
- const W = !!u;
1084
- let G;
1085
- e[28] === Symbol.for("react.memo_cache_sentinel") ? (G = (U) => {
1086
- p(U.currentTarget);
1087
- }, e[28] = G) : G = e[28];
1088
- const ee = G;
1089
- let F;
1090
- e[29] === Symbol.for("react.memo_cache_sentinel") ? (F = () => {
1083
+ const N = !!u;
1084
+ let j;
1085
+ e[28] === Symbol.for("react.memo_cache_sentinel") ? (j = (X) => {
1086
+ p(X.currentTarget);
1087
+ }, e[28] = j) : j = e[28];
1088
+ const F = j;
1089
+ let W;
1090
+ e[29] === Symbol.for("react.memo_cache_sentinel") ? (W = () => {
1091
1091
  p(null);
1092
- }, e[29] = F) : F = e[29];
1093
- const ie = F;
1094
- let Z;
1095
- e[30] !== s ? (Z = (U, le) => {
1096
- U.preventDefault(), s(le.value), ie();
1097
- }, e[30] = s, e[31] = Z) : Z = e[31];
1098
- const H = Z;
1099
- let q;
1100
- e[32] === Symbol.for("react.memo_cache_sentinel") ? (q = () => {
1101
- f(!0);
1102
- }, e[32] = q) : q = e[32], b = q;
1103
- let V;
1104
- e[33] === Symbol.for("react.memo_cache_sentinel") ? (V = () => {
1105
- f(!1);
1106
- }, e[33] = V) : V = e[33], x = V;
1107
- let te;
1108
- e[34] !== c ? (te = (U) => {
1109
- x(), c(U);
1110
- }, e[34] = c, e[35] = te) : te = e[35], y = te;
1111
- const fe = r?.mode?.title ?? re.options.mode.title;
1112
- D = r?.units?.title ?? re.options.units.title, d = $.length > 1 && A.length > 1;
1092
+ }, e[29] = W) : W = e[29];
1093
+ const q = W;
1094
+ let $;
1095
+ e[30] !== s ? ($ = (X, ne) => {
1096
+ X.preventDefault(), s(ne.value), q();
1097
+ }, e[30] = s, e[31] = $) : $ = e[31];
1098
+ const z = $;
1099
+ let H;
1100
+ e[32] === Symbol.for("react.memo_cache_sentinel") ? (H = () => {
1101
+ h(!0);
1102
+ }, e[32] = H) : H = e[32], v = H;
1103
+ let G;
1104
+ e[33] === Symbol.for("react.memo_cache_sentinel") ? (G = () => {
1105
+ h(!1);
1106
+ }, e[33] = G) : G = e[33], x = G;
1113
1107
  let oe;
1114
- e[36] !== a || e[37] !== i ? (oe = i.find((U) => U.value === a) ?? i[0], e[36] = a, e[37] = i, e[38] = oe) : oe = e[38], I = oe, e[39] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ l(se, { sx: Q.options.icon, onClick: ee, children: /* @__PURE__ */ l(Pe, {}) }), e[39] = S) : S = e[39], v = $e, g = "measurement-menu", C = u, w = W, _ = ie, e[40] === Symbol.for("react.memo_cache_sentinel") ? (O = {
1108
+ e[34] !== c ? (oe = (X) => {
1109
+ x(), c(X);
1110
+ }, e[34] = c, e[35] = oe) : oe = e[35], y = oe;
1111
+ const he = r?.mode?.title ?? re.options.mode.title;
1112
+ L = r?.units?.title ?? re.options.units.title, d = V.length > 1 && A.length > 1;
1113
+ let le;
1114
+ e[36] !== a || e[37] !== i ? (le = i.find((X) => X.value === a) ?? i[0], e[36] = a, e[37] = i, e[38] = le) : le = e[38], D = le, e[39] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ l(se, { sx: ee.options.icon, onClick: F, children: /* @__PURE__ */ l($e, {}) }), e[39] = S) : S = e[39], g = Ze, b = "measurement-menu", C = u, w = N, _ = q, e[40] === Symbol.for("react.memo_cache_sentinel") ? (O = {
1115
1115
  "aria-labelledby": "basic-button",
1116
- sx: Q.options.menu
1117
- }, e[40] = O) : O = e[40], m = $.length > 1 && /* @__PURE__ */ L(z, { children: [
1118
- /* @__PURE__ */ l(Y, { variant: "subtitle2", color: "text.secondary", sx: Q.options.title, children: fe }),
1119
- $.map((U) => {
1120
- const he = (r?.mode?.options ?? re.options.mode.options)[U.value];
1121
- return /* @__PURE__ */ L(ge, { onClick: (Me) => H(Me, U), selected: U.value === o, children: [
1122
- /* @__PURE__ */ l(je, { sx: Q.options.icons, children: /* @__PURE__ */ l(_e, { children: U.icon }) }),
1123
- /* @__PURE__ */ l(be, { children: he })
1124
- ] }, U.value);
1116
+ sx: ee.options.menu
1117
+ }, e[40] = O) : O = e[40], m = V.length > 1 && /* @__PURE__ */ I(K, { children: [
1118
+ /* @__PURE__ */ l(J, { variant: "subtitle2", color: "text.secondary", sx: ee.options.title, children: he }),
1119
+ V.map((X) => {
1120
+ const pe = (r?.mode?.options ?? re.options.mode.options)[X.value];
1121
+ return /* @__PURE__ */ I(ge, { onClick: (Me) => z(Me, X), selected: X.value === o, children: [
1122
+ /* @__PURE__ */ l(Ve, { sx: ee.options.icons, children: /* @__PURE__ */ l(_e, { children: X.icon }) }),
1123
+ /* @__PURE__ */ l(be, { children: pe })
1124
+ ] }, X.value);
1125
1125
  })
1126
1126
  ] });
1127
1127
  }
1128
- e[0] = u, e[1] = r?.mode?.options, e[2] = r?.mode?.title, e[3] = r?.units?.title, e[4] = o, e[5] = n, e[6] = s, e[7] = c, e[8] = a, e[9] = i, e[10] = v, e[11] = y, e[12] = b, e[13] = x, e[14] = d, e[15] = m, e[16] = g, e[17] = C, e[18] = w, e[19] = _, e[20] = O, e[21] = S, e[22] = T, e[23] = I, e[24] = D, e[25] = A;
1128
+ e[0] = u, e[1] = r?.mode?.options, e[2] = r?.mode?.title, e[3] = r?.units?.title, e[4] = o, e[5] = n, e[6] = s, e[7] = c, e[8] = a, e[9] = i, e[10] = g, e[11] = y, e[12] = v, e[13] = x, e[14] = d, e[15] = m, e[16] = b, e[17] = C, e[18] = w, e[19] = _, e[20] = O, e[21] = S, e[22] = T, e[23] = D, e[24] = L, e[25] = A;
1129
1129
  } else
1130
- v = e[10], y = e[11], b = e[12], x = e[13], d = e[14], m = e[15], g = e[16], C = e[17], w = e[18], _ = e[19], O = e[20], S = e[21], T = e[22], I = e[23], D = e[24], A = e[25];
1130
+ g = e[10], y = e[11], v = e[12], x = e[13], d = e[14], m = e[15], b = e[16], C = e[17], w = e[18], _ = e[19], O = e[20], S = e[21], T = e[22], D = e[23], L = e[24], A = e[25];
1131
1131
  if (T !== Symbol.for("react.early_return_sentinel"))
1132
1132
  return T;
1133
1133
  let M;
1134
1134
  e[41] !== d ? (M = d && /* @__PURE__ */ l(ae, {}), e[41] = d, e[42] = M) : M = e[42];
1135
- let k;
1136
- e[43] !== y || e[44] !== b || e[45] !== x || e[46] !== r || e[47] !== h || e[48] !== I || e[49] !== D || e[50] !== i || e[51] !== A.length ? (k = A.length > 1 && /* @__PURE__ */ L(z, { children: [
1137
- /* @__PURE__ */ L(ge, { onClick: b, children: [
1138
- /* @__PURE__ */ l(be, { children: D }),
1139
- /* @__PURE__ */ l(Y, { variant: "caption", fontWeight: 500, sx: Q.options.tag, children: I.short })
1135
+ let P;
1136
+ e[43] !== y || e[44] !== v || e[45] !== x || e[46] !== r || e[47] !== f || e[48] !== D || e[49] !== L || e[50] !== i || e[51] !== A.length ? (P = A.length > 1 && /* @__PURE__ */ I(K, { children: [
1137
+ /* @__PURE__ */ I(ge, { onClick: v, children: [
1138
+ /* @__PURE__ */ l(be, { children: L }),
1139
+ /* @__PURE__ */ l(J, { variant: "caption", fontWeight: 500, sx: ee.options.tag, children: D.short })
1140
1140
  ] }),
1141
- /* @__PURE__ */ l(Zt, { open: h, labels: r, units: i, unitSelectedValue: I, onClose: x, onSubmit: y })
1142
- ] }), e[43] = y, e[44] = b, e[45] = x, e[46] = r, e[47] = h, e[48] = I, e[49] = D, e[50] = i, e[51] = A.length, e[52] = k) : k = e[52];
1143
- let R;
1144
- e[53] !== m || e[54] !== k || e[55] !== M ? (R = /* @__PURE__ */ L("div", { children: [
1141
+ /* @__PURE__ */ l(Zt, { open: f, labels: r, units: i, unitSelectedValue: D, onClose: x, onSubmit: y })
1142
+ ] }), e[43] = y, e[44] = v, e[45] = x, e[46] = r, e[47] = f, e[48] = D, e[49] = L, e[50] = i, e[51] = A.length, e[52] = P) : P = e[52];
1143
+ let k;
1144
+ e[53] !== m || e[54] !== P || e[55] !== M ? (k = /* @__PURE__ */ I("div", { children: [
1145
1145
  m,
1146
1146
  M,
1147
- k
1148
- ] }), e[53] = m, e[54] = k, e[55] = M, e[56] = R) : R = e[56];
1149
- let P;
1150
- e[57] !== v || e[58] !== R || e[59] !== g || e[60] !== C || e[61] !== w || e[62] !== _ || e[63] !== O ? (P = /* @__PURE__ */ l(v, { id: g, anchorEl: C, open: w, onClose: _, MenuListProps: O, children: R }), e[57] = v, e[58] = R, e[59] = g, e[60] = C, e[61] = w, e[62] = _, e[63] = O, e[64] = P) : P = e[64];
1151
- let j;
1152
- return e[65] !== P || e[66] !== S ? (j = /* @__PURE__ */ L(z, { children: [
1153
- S,
1154
1147
  P
1155
- ] }), e[65] = P, e[66] = S, e[67] = j) : j = e[67], j;
1148
+ ] }), e[53] = m, e[54] = P, e[55] = M, e[56] = k) : k = e[56];
1149
+ let R;
1150
+ e[57] !== g || e[58] !== k || e[59] !== b || e[60] !== C || e[61] !== w || e[62] !== _ || e[63] !== O ? (R = /* @__PURE__ */ l(g, { id: b, anchorEl: C, open: w, onClose: _, MenuListProps: O, children: k }), e[57] = g, e[58] = k, e[59] = b, e[60] = C, e[61] = w, e[62] = _, e[63] = O, e[64] = R) : R = e[64];
1151
+ let Z;
1152
+ return e[65] !== R || e[66] !== S ? (Z = /* @__PURE__ */ I(K, { children: [
1153
+ S,
1154
+ R
1155
+ ] }), e[65] = R, e[66] = S, e[67] = Z) : Z = e[67], Z;
1156
1156
  }
1157
1157
  function Zt({
1158
1158
  open: t,
@@ -1162,10 +1162,10 @@ function Zt({
1162
1162
  onClose: i,
1163
1163
  onSubmit: a
1164
1164
  }) {
1165
- const [r, s] = ne("metric"), c = Ce(() => n.filter((x) => x.system === r), [r, n]), u = (x, d) => {
1165
+ const [r, s] = ie("metric"), c = Ce(() => n.filter((x) => x.system === r), [r, n]), u = (x, d) => {
1166
1166
  s(d);
1167
- }, p = e?.units?.modal?.options ?? re.options.units.modal.options, h = p[r].options, f = e?.units?.modal?.title ?? re.options.units.modal.title, v = e?.units?.modal?.subtitle ?? re.options.units.modal.subtitle, y = e?.units?.modal?.apply ?? re.options.units.modal.apply, b = o.system === r ? o : c[0];
1168
- return /* @__PURE__ */ L(Je, { open: t, component: X, onClose: i, maxWidth: "xs", PaperProps: {
1167
+ }, p = e?.units?.modal?.options ?? re.options.units.modal.options, f = p[r].options, h = e?.units?.modal?.title ?? re.options.units.modal.title, g = e?.units?.modal?.subtitle ?? re.options.units.modal.subtitle, y = e?.units?.modal?.apply ?? re.options.units.modal.apply, v = o.system === r ? o : c[0];
1168
+ return /* @__PURE__ */ I(Je, { open: t, component: Y, onClose: i, maxWidth: "xs", PaperProps: {
1169
1169
  component: "form",
1170
1170
  onSubmit: (x) => {
1171
1171
  x.preventDefault();
@@ -1173,22 +1173,22 @@ function Zt({
1173
1173
  a(d.get("unit-value"));
1174
1174
  }
1175
1175
  }, children: [
1176
- /* @__PURE__ */ L(et, { sx: Q.options.modal.title, children: [
1177
- f,
1178
- /* @__PURE__ */ l(se, { onClick: i, children: /* @__PURE__ */ l(Be, {}) })
1176
+ /* @__PURE__ */ I(et, { sx: ee.options.modal.title, children: [
1177
+ h,
1178
+ /* @__PURE__ */ l(se, { onClick: i, children: /* @__PURE__ */ l(je, {}) })
1179
1179
  ] }),
1180
- /* @__PURE__ */ L(tt, { sx: Q.options.modal.content, children: [
1181
- /* @__PURE__ */ l(Y, { sx: Q.options.modal.subtitle, children: v }),
1182
- /* @__PURE__ */ L(Ze, { color: "primary", value: r, exclusive: !0, fullWidth: !0, onChange: u, "aria-label": "system", sx: Q.options.modal.toggle, children: [
1180
+ /* @__PURE__ */ I(tt, { sx: ee.options.modal.content, children: [
1181
+ /* @__PURE__ */ l(J, { sx: ee.options.modal.subtitle, children: g }),
1182
+ /* @__PURE__ */ I(Ue, { color: "primary", value: r, exclusive: !0, fullWidth: !0, onChange: u, "aria-label": "system", sx: ee.options.modal.toggle, children: [
1183
1183
  /* @__PURE__ */ l(ve, { value: "metric", children: p.metric.title }),
1184
1184
  /* @__PURE__ */ l(ve, { value: "imperial", children: p.imperial.title })
1185
1185
  ] }),
1186
- /* @__PURE__ */ l(ot, { children: /* @__PURE__ */ l(lt, { "aria-labelledby": "unit-value", defaultValue: b?.value, name: "unit-value", sx: Q.options.modal.optionsGroup, children: c.map((x) => {
1187
- const d = h[x.value];
1186
+ /* @__PURE__ */ l(ot, { children: /* @__PURE__ */ l(lt, { "aria-labelledby": "unit-value", defaultValue: v?.value, name: "unit-value", sx: ee.options.modal.optionsGroup, children: c.map((x) => {
1187
+ const d = f[x.value];
1188
1188
  return /* @__PURE__ */ l(nt, { value: x.value, control: /* @__PURE__ */ l(it, {}), label: d }, x.value);
1189
- }) }) }, b?.value)
1189
+ }) }) }, v?.value)
1190
1190
  ] }),
1191
- /* @__PURE__ */ l(rt, { sx: Q.options.modal.actions, children: /* @__PURE__ */ l(we, { variant: "contained", type: "submit", children: y }) })
1191
+ /* @__PURE__ */ l(rt, { sx: ee.options.modal.actions, children: /* @__PURE__ */ l(we, { variant: "contained", type: "submit", children: y }) })
1192
1192
  ] });
1193
1193
  }
1194
1194
  const Vt = {
@@ -1204,46 +1204,46 @@ function mo(t) {
1204
1204
  watch: r,
1205
1205
  onChange: s,
1206
1206
  onError: c
1207
- } = t, u = Oe(null), p = "geolocation" in navigator, [h, f] = ne(p);
1208
- let v, y;
1209
- e[0] !== c ? (v = () => (p && navigator.permissions.query({
1207
+ } = t, u = Oe(null), p = "geolocation" in navigator, [f, h] = ie(p);
1208
+ let g, y;
1209
+ e[0] !== c ? (g = () => (p && navigator.permissions.query({
1210
1210
  name: "geolocation"
1211
1211
  }).then((M) => {
1212
- f(M.state === "granted"), M.onchange = () => {
1213
- f(M.state === "granted");
1212
+ h(M.state === "granted"), M.onchange = () => {
1213
+ h(M.state === "granted");
1214
1214
  };
1215
1215
  }).catch((M) => {
1216
- f(!1), c?.(M);
1216
+ h(!1), c?.(M);
1217
1217
  }), () => {
1218
1218
  u.current && navigator.geolocation.clearWatch(u.current);
1219
- }), y = [p, c], e[0] = c, e[1] = v, e[2] = y) : (v = e[1], y = e[2]), De(v, y);
1220
- let b;
1221
- e[3] !== s ? (b = (M) => {
1219
+ }), y = [p, c], e[0] = c, e[1] = g, e[2] = y) : (g = e[1], y = e[2]), De(g, y);
1220
+ let v;
1221
+ e[3] !== s ? (v = (M) => {
1222
1222
  s(M.coords);
1223
- }, e[3] = s, e[4] = b) : b = e[4];
1224
- const x = b;
1223
+ }, e[3] = s, e[4] = v) : v = e[4];
1224
+ const x = v;
1225
1225
  let d;
1226
1226
  e[5] !== c ? (d = (M) => {
1227
- f(!1), c?.(M);
1227
+ h(!1), c?.(M);
1228
1228
  }, e[5] = c, e[6] = d) : d = e[6];
1229
1229
  const m = d;
1230
- let g;
1231
- e[7] !== m || e[8] !== x || e[9] !== r ? (g = () => {
1230
+ let b;
1231
+ e[7] !== m || e[8] !== x || e[9] !== r ? (b = () => {
1232
1232
  if (u.current && navigator.geolocation.clearWatch(u.current), r) {
1233
1233
  u.current = navigator.geolocation.watchPosition(x, m);
1234
1234
  return;
1235
1235
  }
1236
1236
  navigator.geolocation.getCurrentPosition(x, m);
1237
- }, e[7] = m, e[8] = x, e[9] = r, e[10] = g) : g = e[10];
1238
- const C = g, _ = (o?.tooltip ?? Vt)[h ? "enabled" : "disabled"], O = o?.ariaLabel ?? Ut, S = !p || n;
1237
+ }, e[7] = m, e[8] = x, e[9] = r, e[10] = b) : b = e[10];
1238
+ const C = b, _ = (o?.tooltip ?? Vt)[f ? "enabled" : "disabled"], O = o?.ariaLabel ?? Ut, S = !p || n;
1239
1239
  let T;
1240
- e[11] !== h ? (T = h ? /* @__PURE__ */ l(Ne, {}) : /* @__PURE__ */ l(Fe, {}), e[11] = h, e[12] = T) : T = e[12];
1241
- let I;
1242
- e[13] !== C || e[14] !== O || e[15] !== S || e[16] !== T ? (I = /* @__PURE__ */ l(se, { onClick: C, "aria-label": O, disabled: S, children: T }), e[13] = C, e[14] = O, e[15] = S, e[16] = T, e[17] = I) : I = e[17];
1240
+ e[11] !== f ? (T = f ? /* @__PURE__ */ l(He, {}) : /* @__PURE__ */ l(Xe, {}), e[11] = f, e[12] = T) : T = e[12];
1243
1241
  let D;
1244
- e[18] !== a || e[19] !== I || e[20] !== _ ? (D = /* @__PURE__ */ l(de, { arrow: !0, placement: "right", title: _, ...a, children: I }), e[18] = a, e[19] = I, e[20] = _, e[21] = D) : D = e[21];
1242
+ e[13] !== C || e[14] !== O || e[15] !== S || e[16] !== T ? (D = /* @__PURE__ */ l(se, { onClick: C, "aria-label": O, disabled: S, children: T }), e[13] = C, e[14] = O, e[15] = S, e[16] = T, e[17] = D) : D = e[17];
1243
+ let L;
1244
+ e[18] !== a || e[19] !== D || e[20] !== _ ? (L = /* @__PURE__ */ l(de, { arrow: !0, placement: "right", title: _, ...a, children: D }), e[18] = a, e[19] = D, e[20] = _, e[21] = L) : L = e[21];
1245
1245
  let A;
1246
- return e[22] !== i || e[23] !== D ? (A = /* @__PURE__ */ l(ye, { ...i, children: D }), e[22] = i, e[23] = D, e[24] = A) : A = e[24], A;
1246
+ return e[22] !== i || e[23] !== L ? (A = /* @__PURE__ */ l(ye, { ...i, children: L }), e[22] = i, e[23] = L, e[24] = A) : A = e[24], A;
1247
1247
  }
1248
1248
  const Ae = {
1249
1249
  zoom: {
@@ -1278,7 +1278,7 @@ const Ae = {
1278
1278
  }
1279
1279
  };
1280
1280
  function go(t) {
1281
- const e = E(40), {
1281
+ const e = E(57), {
1282
1282
  zoom: n,
1283
1283
  disabled: o,
1284
1284
  direction: i,
@@ -1288,87 +1288,119 @@ function go(t) {
1288
1288
  PaperProps: c,
1289
1289
  ResetViewProps: u,
1290
1290
  showZoom: p,
1291
- onChange: h,
1292
- onReset: f
1293
- } = t, v = i === void 0 ? "vertical" : i, y = r === void 0 ? 24 : r, b = s === void 0 ? 0 : s;
1291
+ onChange: f,
1292
+ onReset: h
1293
+ } = t, g = i === void 0 ? "vertical" : i, y = r === void 0 ? 24 : r, v = s === void 0 ? 0 : s;
1294
1294
  let x;
1295
1295
  e[0] !== u ? (x = u === void 0 ? {
1296
- Icon: He
1296
+ Icon: qe
1297
1297
  } : u, e[0] = u, e[1] = x) : x = e[1];
1298
1298
  const d = x, m = p === void 0 ? !0 : p;
1299
- let g;
1300
- e[2] !== y || e[3] !== h || e[4] !== n ? (g = () => {
1301
- const B = Math.min(y, n + 1);
1302
- h(B);
1303
- }, e[2] = y, e[3] = h, e[4] = n, e[5] = g) : g = e[5];
1304
- const C = g;
1299
+ let b;
1300
+ e[2] !== y || e[3] !== f || e[4] !== n ? (b = () => {
1301
+ const G = Math.min(y, n + 1);
1302
+ f(G);
1303
+ }, e[2] = y, e[3] = f, e[4] = n, e[5] = b) : b = e[5];
1304
+ const C = b;
1305
1305
  let w;
1306
- e[6] !== b || e[7] !== h || e[8] !== n ? (w = () => {
1307
- const B = Math.max(b, n - 1);
1308
- h(B);
1309
- }, e[6] = b, e[7] = h, e[8] = n, e[9] = w) : w = e[9];
1310
- const _ = w, O = Math.floor(n), S = v === "vertical" ? "horizontal" : "vertical", T = v === "vertical" ? "column" : "row";
1311
- let I;
1312
- e[10] !== T ? (I = {
1313
- ...Ae.paper,
1314
- flexDirection: T
1315
- }, e[10] = T, e[11] = I) : I = e[11];
1306
+ e[6] !== v || e[7] !== f || e[8] !== n ? (w = () => {
1307
+ const G = Math.max(v, n - 1);
1308
+ f(G);
1309
+ }, e[6] = v, e[7] = f, e[8] = n, e[9] = w) : w = e[9];
1310
+ const _ = w, O = Math.floor(n), S = g === "vertical" ? "horizontal" : "vertical";
1311
+ let T;
1312
+ e[10] !== o || e[11] !== C ? (T = {
1313
+ onClick: C,
1314
+ "aria-label": "Increase zoom",
1315
+ disabled: o
1316
+ }, e[10] = o, e[11] = C, e[12] = T) : T = e[12];
1316
1317
  let D;
1317
- e[12] !== d || e[13] !== o || e[14] !== S || e[15] !== f ? (D = f && /* @__PURE__ */ L(z, { children: [
1318
- /* @__PURE__ */ l(se, { onClick: f, "aria-label": "Reset action", disabled: o, children: /* @__PURE__ */ l(d.Icon, {}) }),
1319
- /* @__PURE__ */ l(ae, { orientation: S, flexItem: !0 })
1320
- ] }), e[12] = d, e[13] = o, e[14] = S, e[15] = f, e[16] = D) : D = e[16];
1321
- let A;
1322
- e[17] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ l(Xe, {}), e[17] = A) : A = e[17];
1318
+ e[13] !== _ || e[14] !== o ? (D = {
1319
+ onClick: _,
1320
+ "aria-label": "Decrease zoom",
1321
+ disabled: o
1322
+ }, e[13] = _, e[14] = o, e[15] = D) : D = e[15];
1323
+ let L;
1324
+ e[16] !== D || e[17] !== T ? (L = {
1325
+ zoomIn: T,
1326
+ zoomOut: D
1327
+ }, e[16] = D, e[17] = T, e[18] = L) : L = e[18];
1328
+ const A = L;
1323
1329
  let M;
1324
- e[18] !== o || e[19] !== C ? (M = /* @__PURE__ */ l(se, { onClick: C, "aria-label": "Increase zoom", disabled: o, children: A }), e[18] = o, e[19] = C, e[20] = M) : M = e[20];
1330
+ e[19] !== g ? (M = g === "vertical" ? /* @__PURE__ */ l(Ie, {}) : /* @__PURE__ */ l(Le, {}), e[19] = g, e[20] = M) : M = e[20];
1331
+ const P = g === "vertical" ? A.zoomIn : A.zoomOut;
1325
1332
  let k;
1326
- e[21] !== S ? (k = /* @__PURE__ */ l(ae, { orientation: S, flexItem: !0 }), e[21] = S, e[22] = k) : k = e[22];
1327
- let R;
1328
- e[23] !== O || e[24] !== S || e[25] !== a || e[26] !== m ? (R = m && /* @__PURE__ */ L(z, { children: [
1329
- /* @__PURE__ */ L(X, { sx: Ae.zoom, children: [
1330
- /* @__PURE__ */ l(Y, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: O }),
1333
+ e[21] !== M || e[22] !== P ? (k = {
1334
+ icon: M,
1335
+ props: P
1336
+ }, e[21] = M, e[22] = P, e[23] = k) : k = e[23];
1337
+ const R = k;
1338
+ let Z;
1339
+ e[24] !== g ? (Z = g === "vertical" ? /* @__PURE__ */ l(Le, {}) : /* @__PURE__ */ l(Ie, {}), e[24] = g, e[25] = Z) : Z = e[25];
1340
+ const V = g === "vertical" ? A.zoomOut : A.zoomIn;
1341
+ let B;
1342
+ e[26] !== Z || e[27] !== V ? (B = {
1343
+ icon: Z,
1344
+ props: V
1345
+ }, e[26] = Z, e[27] = V, e[28] = B) : B = e[28];
1346
+ const U = B, N = g === "vertical" ? "column" : "row";
1347
+ let j;
1348
+ e[29] !== N ? (j = {
1349
+ ...Ae.paper,
1350
+ flexDirection: N
1351
+ }, e[29] = N, e[30] = j) : j = e[30];
1352
+ let F;
1353
+ e[31] !== d || e[32] !== o || e[33] !== S || e[34] !== h ? (F = h && /* @__PURE__ */ I(K, { children: [
1354
+ /* @__PURE__ */ l(se, { onClick: h, "aria-label": "Reset action", disabled: o, children: /* @__PURE__ */ l(d.Icon, {}) }),
1355
+ /* @__PURE__ */ l(ae, { orientation: S, flexItem: !0 })
1356
+ ] }), e[31] = d, e[32] = o, e[33] = S, e[34] = h, e[35] = F) : F = e[35];
1357
+ let W;
1358
+ e[36] !== R.icon || e[37] !== R.props ? (W = /* @__PURE__ */ l(se, { ...R.props, children: R.icon }), e[36] = R.icon, e[37] = R.props, e[38] = W) : W = e[38];
1359
+ let q;
1360
+ e[39] !== S ? (q = /* @__PURE__ */ l(ae, { orientation: S, flexItem: !0 }), e[39] = S, e[40] = q) : q = e[40];
1361
+ let $;
1362
+ e[41] !== O || e[42] !== S || e[43] !== a || e[44] !== m ? ($ = m && /* @__PURE__ */ I(K, { children: [
1363
+ /* @__PURE__ */ I(Y, { sx: Ae.zoom, children: [
1364
+ /* @__PURE__ */ l(J, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: O }),
1331
1365
  a && /* @__PURE__ */ l(st, { sx: Ae.circularProgress, variant: "indeterminate", size: 24 })
1332
1366
  ] }),
1333
1367
  /* @__PURE__ */ l(ae, { orientation: S, flexItem: !0 })
1334
- ] }), e[23] = O, e[24] = S, e[25] = a, e[26] = m, e[27] = R) : R = e[27];
1335
- let P;
1336
- e[28] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ l(qe, {}), e[28] = P) : P = e[28];
1337
- let j;
1338
- e[29] !== _ || e[30] !== o ? (j = /* @__PURE__ */ l(se, { onClick: _, "aria-label": "Decrease zoom", disabled: o, children: P }), e[29] = _, e[30] = o, e[31] = j) : j = e[31];
1339
- let $;
1340
- return e[32] !== c || e[33] !== I || e[34] !== D || e[35] !== M || e[36] !== k || e[37] !== R || e[38] !== j ? ($ = /* @__PURE__ */ L(ye, { sx: I, ...c, children: [
1341
- D,
1342
- M,
1343
- k,
1344
- R,
1345
- j
1346
- ] }), e[32] = c, e[33] = I, e[34] = D, e[35] = M, e[36] = k, e[37] = R, e[38] = j, e[39] = $) : $ = e[39], $;
1368
+ ] }), e[41] = O, e[42] = S, e[43] = a, e[44] = m, e[45] = $) : $ = e[45];
1369
+ let z;
1370
+ e[46] !== U.icon || e[47] !== U.props ? (z = /* @__PURE__ */ l(se, { ...U.props, children: U.icon }), e[46] = U.icon, e[47] = U.props, e[48] = z) : z = e[48];
1371
+ let H;
1372
+ return e[49] !== c || e[50] !== j || e[51] !== F || e[52] !== W || e[53] !== q || e[54] !== $ || e[55] !== z ? (H = /* @__PURE__ */ I(ye, { sx: j, ...c, children: [
1373
+ F,
1374
+ W,
1375
+ q,
1376
+ $,
1377
+ z
1378
+ ] }), e[49] = c, e[50] = j, e[51] = F, e[52] = W, e[53] = q, e[54] = $, e[55] = z, e[56] = H) : H = e[56], H;
1347
1379
  }
1348
1380
  function Wt(t) {
1349
1381
  const e = E(4), {
1350
1382
  length: n
1351
1383
  } = t, o = n === void 0 ? 5 : n;
1352
1384
  let i;
1353
- e[0] !== o ? (i = new Array(o).fill(null).map(Gt), e[0] = o, e[1] = i) : i = e[1];
1385
+ e[0] !== o ? (i = new Array(o).fill(null).map(zt), e[0] = o, e[1] = i) : i = e[1];
1354
1386
  let a;
1355
- return e[2] !== i ? (a = /* @__PURE__ */ l(X, { "aria-label": "List Data skeleton", children: i }), e[2] = i, e[3] = a) : a = e[3], a;
1387
+ return e[2] !== i ? (a = /* @__PURE__ */ l(Y, { "aria-label": "List Data skeleton", children: i }), e[2] = i, e[3] = a) : a = e[3], a;
1356
1388
  }
1357
- function Gt(t, e) {
1358
- return /* @__PURE__ */ L(me, { container: !0, spacing: 1, children: [
1359
- /* @__PURE__ */ L(me, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
1389
+ function zt(t, e) {
1390
+ return /* @__PURE__ */ I(me, { container: !0, spacing: 1, children: [
1391
+ /* @__PURE__ */ I(me, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
1360
1392
  /* @__PURE__ */ l(Se, { width: Ht(e) ? 72 : 48, height: 20 }),
1361
1393
  /* @__PURE__ */ l(Se, { width: 48, height: 8 })
1362
1394
  ] }),
1363
1395
  /* @__PURE__ */ l(Se, { sx: {
1364
1396
  height: Ft,
1365
1397
  marginTop: Nt,
1366
- marginBottom: zt,
1398
+ marginBottom: Gt,
1367
1399
  width: "100%"
1368
1400
  } })
1369
1401
  ] }, e);
1370
1402
  }
1371
- function zt(t) {
1403
+ function Gt(t) {
1372
1404
  const {
1373
1405
  spacing: e
1374
1406
  } = t;
@@ -1397,21 +1429,21 @@ function Xt(t) {
1397
1429
  } = t, a = n === void 0 ? "No data available" : n, r = o === void 0 ? "There are no results for the combination of filters applied to your data. Try tweaking your filters, or zoom and pan the map to adjust the Map View." : o;
1398
1430
  if (i) {
1399
1431
  let p;
1400
- e[0] !== r ? (p = /* @__PURE__ */ l(Re, { children: r }), e[0] = r, e[1] = p) : p = e[1];
1401
- let h;
1402
- return e[2] !== i || e[3] !== p || e[4] !== a ? (h = /* @__PURE__ */ l(at, { title: a, severity: i, children: p }), e[2] = i, e[3] = p, e[4] = a, e[5] = h) : h = e[5], h;
1432
+ e[0] !== r ? (p = /* @__PURE__ */ l(Pe, { children: r }), e[0] = r, e[1] = p) : p = e[1];
1433
+ let f;
1434
+ return e[2] !== i || e[3] !== p || e[4] !== a ? (f = /* @__PURE__ */ l(at, { title: a, severity: i, children: p }), e[2] = i, e[3] = p, e[4] = a, e[5] = f) : f = e[5], f;
1403
1435
  }
1404
1436
  let s;
1405
- e[6] !== a ? (s = a && /* @__PURE__ */ l(Y, { variant: "body2", children: a }), e[6] = a, e[7] = s) : s = e[7];
1437
+ e[6] !== a ? (s = a && /* @__PURE__ */ l(J, { variant: "body2", children: a }), e[6] = a, e[7] = s) : s = e[7];
1406
1438
  let c;
1407
- e[8] !== r ? (c = /* @__PURE__ */ l(Re, { color: "textSecondary", children: r }), e[8] = r, e[9] = c) : c = e[9];
1439
+ e[8] !== r ? (c = /* @__PURE__ */ l(Pe, { color: "textSecondary", children: r }), e[8] = r, e[9] = c) : c = e[9];
1408
1440
  let u;
1409
- return e[10] !== s || e[11] !== c ? (u = /* @__PURE__ */ L(X, { children: [
1441
+ return e[10] !== s || e[11] !== c ? (u = /* @__PURE__ */ I(Y, { children: [
1410
1442
  s,
1411
1443
  c
1412
1444
  ] }), e[10] = s, e[11] = c, e[12] = u) : u = e[12], u;
1413
1445
  }
1414
- function Re(t) {
1446
+ function Pe(t) {
1415
1447
  const e = E(5), {
1416
1448
  color: n,
1417
1449
  children: o
@@ -1423,31 +1455,31 @@ function Re(t) {
1423
1455
  fontWeight: "normal"
1424
1456
  }, e[0] = r) : r = e[0];
1425
1457
  let s;
1426
- return e[1] !== o || e[2] !== a ? (s = /* @__PURE__ */ l(X, { mt: 0.5, children: /* @__PURE__ */ l(Y, { component: "div", variant: "caption", color: a, style: r, children: o }) }), e[1] = o, e[2] = a, e[3] = s) : s = e[3], s;
1458
+ return e[1] !== o || e[2] !== a ? (s = /* @__PURE__ */ l(Y, { mt: 0.5, children: /* @__PURE__ */ l(J, { component: "div", variant: "caption", color: a, style: r, children: o }) }), e[1] = o, e[2] = a, e[3] = s) : s = e[3], s;
1427
1459
  }
1428
1460
  let i;
1429
- return e[4] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l(X, { mt: -1 }), e[4] = i) : i = e[4], i;
1461
+ return e[4] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l(Y, { mt: -1 }), e[4] = i) : i = e[4], i;
1430
1462
  }
1431
1463
  function qt(t) {
1432
- const e = E(4), [n, o] = ne(!1), [i, a] = ne(!1);
1464
+ const e = E(4), [n, o] = ie(!1), [i, a] = ie(!1);
1433
1465
  let r, s;
1434
1466
  return e[0] !== i || e[1] !== t ? (r = () => {
1435
1467
  t && !i && (o(!0), a(!0)), t || o(!1);
1436
1468
  }, s = [t, i], e[0] = i, e[1] = t, e[2] = r, e[3] = s) : (r = e[2], s = e[3]), De(r, s), n;
1437
1469
  }
1438
- const Ee = {
1470
+ const Be = {
1439
1471
  overflow: "hidden",
1440
1472
  textOverflow: "ellipsis",
1441
1473
  whiteSpace: "nowrap"
1442
- }, pe = {
1474
+ }, fe = {
1443
1475
  label: {
1444
1476
  "& .MuiListItemText-primary": {
1445
- ...Ee
1477
+ ...Be
1446
1478
  }
1447
1479
  },
1448
1480
  value: {
1449
1481
  "& .MuiListItemText-primary": {
1450
- ...Ee,
1482
+ ...Be,
1451
1483
  textAlign: "right"
1452
1484
  }
1453
1485
  },
@@ -1481,7 +1513,7 @@ function Kt({
1481
1513
  TooltipProps: o,
1482
1514
  children: i
1483
1515
  }) {
1484
- const a = Oe(null), [r, s] = ne(!1);
1516
+ const a = Oe(null), [r, s] = ie(!1);
1485
1517
  return mt(() => {
1486
1518
  const c = setTimeout(() => {
1487
1519
  if (a.current) {
@@ -1510,18 +1542,18 @@ function bo(t) {
1510
1542
  onExpand: u,
1511
1543
  onItemClick: p
1512
1544
  } = t;
1513
- let h;
1514
- e[0] !== n ? (h = n === void 0 ? [] : n, e[0] = n, e[1] = h) : h = e[1];
1515
- const f = h, v = o === void 0 ? !1 : o, y = i === void 0 ? 5 : i, b = a === void 0 ? Yt : a, x = r === void 0 ? !0 : r, [d, m] = ne(!1), g = qt(v);
1545
+ let f;
1546
+ e[0] !== n ? (f = n === void 0 ? [] : n, e[0] = n, e[1] = f) : f = e[1];
1547
+ const h = f, g = o === void 0 ? !1 : o, y = i === void 0 ? 5 : i, v = a === void 0 ? Yt : a, x = r === void 0 ? !0 : r, [d, m] = ie(!1), b = qt(g);
1516
1548
  let C, w;
1517
- e[2] !== f || e[3] !== y || e[4] !== d ? (w = d ? f : f.slice(0, y), e[2] = f, e[3] = y, e[4] = d, e[5] = w) : w = e[5], C = w;
1549
+ e[2] !== h || e[3] !== y || e[4] !== d ? (w = d ? h : h.slice(0, y), e[2] = h, e[3] = y, e[4] = d, e[5] = w) : w = e[5], C = w;
1518
1550
  const _ = C;
1519
1551
  let O;
1520
1552
  e[6] !== u || e[7] !== d ? (O = () => {
1521
1553
  m(!d), u?.(d);
1522
1554
  }, e[6] = u, e[7] = d, e[8] = O) : O = e[8];
1523
1555
  const S = O;
1524
- if (g) {
1556
+ if (b) {
1525
1557
  let M;
1526
1558
  return e[9] !== y ? (M = /* @__PURE__ */ l(Wt, { length: y }), e[9] = y, e[10] = M) : M = e[10], M;
1527
1559
  }
@@ -1532,33 +1564,33 @@ function bo(t) {
1532
1564
  let T;
1533
1565
  if (e[12] !== _ || e[13] !== p || e[14] !== s || e[15] !== x || e[16] !== c) {
1534
1566
  let M;
1535
- e[18] !== p || e[19] !== s || e[20] !== x || e[21] !== c ? (M = (k, R) => /* @__PURE__ */ l(Kt, { followCursor: !1, placement: "top", arrow: !0, title: k.tooltipTitle, enterDelay: 10, ...c, children: (P) => {
1567
+ e[18] !== p || e[19] !== s || e[20] !== x || e[21] !== c ? (M = (P, k) => /* @__PURE__ */ l(Kt, { followCursor: !1, placement: "top", arrow: !0, title: P.tooltipTitle, enterDelay: 10, ...c, children: (R) => {
1536
1568
  const {
1537
- ref: j
1538
- } = P;
1539
- return /* @__PURE__ */ l(ct, { ref: j, role: "listitem", sx: {
1540
- ...x && pe.showDivider,
1541
- ...p && pe.clickable,
1542
- ...s === k.id && pe.selected,
1543
- ...k.disabled && pe.disabled
1569
+ ref: Z
1570
+ } = R;
1571
+ return /* @__PURE__ */ l(ct, { ref: Z, role: "listitem", sx: {
1572
+ ...x && fe.showDivider,
1573
+ ...p && fe.clickable,
1574
+ ...s === P.id && fe.selected,
1575
+ ...P.disabled && fe.disabled
1544
1576
  }, onClick: () => {
1545
- k.disabled || p?.(k);
1546
- }, children: /* @__PURE__ */ L(me, { container: !0, alignItems: "center", children: [
1547
- /* @__PURE__ */ l(me, { item: !0, xs: 8, children: /* @__PURE__ */ l(be, { primary: k.label, sx: pe.label }) }),
1548
- /* @__PURE__ */ l(me, { item: !0, xs: 4, children: /* @__PURE__ */ l(be, { primary: k.value, sx: pe.value }) })
1577
+ P.disabled || p?.(P);
1578
+ }, children: /* @__PURE__ */ I(me, { container: !0, alignItems: "center", children: [
1579
+ /* @__PURE__ */ l(me, { item: !0, xs: 8, children: /* @__PURE__ */ l(be, { primary: P.label, sx: fe.label }) }),
1580
+ /* @__PURE__ */ l(me, { item: !0, xs: 4, children: /* @__PURE__ */ l(be, { primary: P.value, sx: fe.value }) })
1549
1581
  ] }) });
1550
- } }, `list-item-${R}`), e[18] = p, e[19] = s, e[20] = x, e[21] = c, e[22] = M) : M = e[22], T = _.map(M), e[12] = _, e[13] = p, e[14] = s, e[15] = x, e[16] = c, e[17] = T;
1582
+ } }, `list-item-${k}`), e[18] = p, e[19] = s, e[20] = x, e[21] = c, e[22] = M) : M = e[22], T = _.map(M), e[12] = _, e[13] = p, e[14] = s, e[15] = x, e[16] = c, e[17] = T;
1551
1583
  } else
1552
1584
  T = e[17];
1553
- let I;
1554
- e[23] !== T ? (I = /* @__PURE__ */ l(dt, { id: "expandable-list", role: "list", children: T }), e[23] = T, e[24] = I) : I = e[24];
1555
1585
  let D;
1556
- e[25] !== f.length || e[26] !== S || e[27] !== b || e[28] !== y || e[29] !== d ? (D = f.length > y && /* @__PURE__ */ l(X, { my: 2, children: /* @__PURE__ */ l(we, { onClick: S, variant: "text", color: "primary", "aria-expanded": d, "aria-controls": "expandable-list", children: d ? b.showLess : b.showMore }) }), e[25] = f.length, e[26] = S, e[27] = b, e[28] = y, e[29] = d, e[30] = D) : D = e[30];
1586
+ e[23] !== T ? (D = /* @__PURE__ */ l(dt, { id: "expandable-list", role: "list", children: T }), e[23] = T, e[24] = D) : D = e[24];
1587
+ let L;
1588
+ e[25] !== h.length || e[26] !== S || e[27] !== v || e[28] !== y || e[29] !== d ? (L = h.length > y && /* @__PURE__ */ l(Y, { my: 2, children: /* @__PURE__ */ l(we, { onClick: S, variant: "text", color: "primary", "aria-expanded": d, "aria-controls": "expandable-list", children: d ? v.showLess : v.showMore }) }), e[25] = h.length, e[26] = S, e[27] = v, e[28] = y, e[29] = d, e[30] = L) : L = e[30];
1557
1589
  let A;
1558
- return e[31] !== I || e[32] !== D ? (A = /* @__PURE__ */ L(z, { children: [
1559
- I,
1560
- D
1561
- ] }), e[31] = I, e[32] = D, e[33] = A) : A = e[33], A;
1590
+ return e[31] !== D || e[32] !== L ? (A = /* @__PURE__ */ I(K, { children: [
1591
+ D,
1592
+ L
1593
+ ] }), e[31] = D, e[32] = L, e[33] = A) : A = e[33], A;
1562
1594
  }
1563
1595
  const Qt = 288, ue = {
1564
1596
  root: {
@@ -1680,12 +1712,12 @@ function eo(t) {
1680
1712
  onChangeCollapsed: i
1681
1713
  } = t, a = n === void 0 ? !1 : n;
1682
1714
  let r;
1683
- e[0] !== a || e[1] !== o || e[2] !== i ? (r = a && /* @__PURE__ */ L(z, { children: [
1684
- /* @__PURE__ */ l(Y, { variant: "caption", flexGrow: 1, children: o.title }),
1685
- /* @__PURE__ */ l(de, { title: o.actions.close, children: /* @__PURE__ */ l(se, { size: "small", onClick: i, "aria-label": o.actions.close, children: /* @__PURE__ */ l(Be, {}) }) })
1715
+ e[0] !== a || e[1] !== o || e[2] !== i ? (r = a && /* @__PURE__ */ I(K, { children: [
1716
+ /* @__PURE__ */ l(J, { variant: "caption", flexGrow: 1, children: o.title }),
1717
+ /* @__PURE__ */ l(de, { title: o.actions.close, children: /* @__PURE__ */ l(se, { size: "small", onClick: i, "aria-label": o.actions.close, children: /* @__PURE__ */ l(je, {}) }) })
1686
1718
  ] }), e[0] = a, e[1] = o, e[2] = i, e[3] = r) : r = e[3];
1687
1719
  let s;
1688
- return e[4] !== r ? (s = /* @__PURE__ */ l(X, { sx: ue.header, children: r }), e[4] = r, e[5] = s) : s = e[5], s;
1720
+ return e[4] !== r ? (s = /* @__PURE__ */ l(Y, { sx: ue.header, children: r }), e[4] = r, e[5] = s) : s = e[5], s;
1689
1721
  }
1690
1722
  function to(t) {
1691
1723
  const e = E(5), {
@@ -1696,9 +1728,9 @@ function to(t) {
1696
1728
  if (i === void 0 ? !1 : i)
1697
1729
  return o;
1698
1730
  let r;
1699
- e[0] !== n ? (r = /* @__PURE__ */ l(Y, { variant: "caption", color: "textSecondary", sx: ue.groupWrapper.content, children: n }), e[0] = n, e[1] = r) : r = e[1];
1731
+ e[0] !== n ? (r = /* @__PURE__ */ l(J, { variant: "caption", color: "textSecondary", sx: ue.groupWrapper.content, children: n }), e[0] = n, e[1] = r) : r = e[1];
1700
1732
  let s;
1701
- return e[2] !== o || e[3] !== r ? (s = /* @__PURE__ */ L(z, { children: [
1733
+ return e[2] !== o || e[3] !== r ? (s = /* @__PURE__ */ I(K, { children: [
1702
1734
  r,
1703
1735
  o
1704
1736
  ] }), e[2] = o, e[3] = r, e[4] = s) : s = e[4], s;
@@ -1714,9 +1746,9 @@ function oo(t) {
1714
1746
  let s;
1715
1747
  e[4] !== i || e[5] !== o ? (s = (c) => {
1716
1748
  const u = c.id === o;
1717
- return /* @__PURE__ */ L(X, { sx: ue.item.container, component: "button", "aria-label": c.label, onClick: () => i(c.id), children: [
1749
+ return /* @__PURE__ */ I(Y, { sx: ue.item.container, component: "button", "aria-label": c.label, onClick: () => i(c.id), children: [
1718
1750
  /* @__PURE__ */ l("img", { src: c.icon, "aria-label": c.label + " icon", "data-active": u }),
1719
- /* @__PURE__ */ l(Y, { variant: "caption", sx: {
1751
+ /* @__PURE__ */ l(J, { variant: "caption", sx: {
1720
1752
  ...u && ue.item.selected
1721
1753
  }, children: c.label })
1722
1754
  ] }, c.id);
@@ -1724,7 +1756,7 @@ function oo(t) {
1724
1756
  } else
1725
1757
  a = e[3];
1726
1758
  let r;
1727
- return e[7] !== a ? (r = /* @__PURE__ */ l(X, { sx: ue.group, children: a }), e[7] = a, e[8] = r) : r = e[8], r;
1759
+ return e[7] !== a ? (r = /* @__PURE__ */ l(Y, { sx: ue.group, children: a }), e[7] = a, e[8] = r) : r = e[8], r;
1728
1760
  }
1729
1761
  function lo(t) {
1730
1762
  const e = E(21), {
@@ -1742,23 +1774,23 @@ function lo(t) {
1742
1774
  let w;
1743
1775
  return e[0] !== o || e[1] !== u || e[2] !== C ? (w = /* @__PURE__ */ l(ut, { anchor: "bottom", open: C, onClose: u, children: o }), e[0] = o, e[1] = u, e[2] = C, e[3] = w) : w = e[3], w;
1744
1776
  }
1745
- const h = !i;
1746
- let f;
1747
- e[4] !== u ? (f = () => u(!0), e[4] = u, e[5] = f) : f = e[5];
1748
- const v = r.startsWith("bottom") ? "bottom" : "top", y = r.endsWith("right") ? "left" : "right";
1749
- let b;
1750
- e[6] !== v || e[7] !== y ? (b = {
1751
- vertical: v,
1777
+ const f = !i;
1778
+ let h;
1779
+ e[4] !== u ? (h = () => u(!0), e[4] = u, e[5] = h) : h = e[5];
1780
+ const g = r.startsWith("bottom") ? "bottom" : "top", y = r.endsWith("right") ? "left" : "right";
1781
+ let v;
1782
+ e[6] !== g || e[7] !== y ? (v = {
1783
+ vertical: g,
1752
1784
  horizontal: y
1753
- }, e[6] = v, e[7] = y, e[8] = b) : b = e[8];
1785
+ }, e[6] = g, e[7] = y, e[8] = v) : v = e[8];
1754
1786
  const x = r.startsWith("bottom") ? "bottom" : "top", d = r.endsWith("right") ? "right" : "left";
1755
1787
  let m;
1756
1788
  e[9] !== x || e[10] !== d ? (m = {
1757
1789
  vertical: x,
1758
1790
  horizontal: d
1759
1791
  }, e[9] = x, e[10] = d, e[11] = m) : m = e[11];
1760
- let g;
1761
- return e[12] !== o || e[13] !== n || e[14] !== c || e[15] !== s || e[16] !== h || e[17] !== f || e[18] !== b || e[19] !== m ? (g = /* @__PURE__ */ l(ht, { sx: s, anchorEl: n, open: h, onClose: f, anchorOrigin: b, transformOrigin: m, slotProps: c, children: o }), e[12] = o, e[13] = n, e[14] = c, e[15] = s, e[16] = h, e[17] = f, e[18] = b, e[19] = m, e[20] = g) : g = e[20], g;
1792
+ let b;
1793
+ return e[12] !== o || e[13] !== n || e[14] !== c || e[15] !== s || e[16] !== f || e[17] !== h || e[18] !== v || e[19] !== m ? (b = /* @__PURE__ */ l(pt, { sx: s, anchorEl: n, open: f, onClose: h, anchorOrigin: v, transformOrigin: m, slotProps: c, children: o }), e[12] = o, e[13] = n, e[14] = c, e[15] = s, e[16] = f, e[17] = h, e[18] = v, e[19] = m, e[20] = b) : b = e[20], b;
1762
1794
  }
1763
1795
  function vo(t) {
1764
1796
  const e = E(52), {
@@ -1771,86 +1803,86 @@ function vo(t) {
1771
1803
  } = t;
1772
1804
  let c;
1773
1805
  e[0] !== n ? (c = n === void 0 ? [] : n, e[0] = n, e[1] = c) : c = e[1];
1774
- const u = c, p = i === void 0 ? "bottom-right" : i, h = a === void 0 ? null : a, [f, v] = ne(null), y = Oe(null), [b, x] = ne(null), d = pt();
1806
+ const u = c, p = i === void 0 ? "bottom-right" : i, f = a === void 0 ? null : a, [h, g] = ie(null), y = Oe(null), [v, x] = ie(null), d = ft();
1775
1807
  let m;
1776
1808
  e[2] !== d.breakpoints ? (m = d.breakpoints.down("sm"), e[2] = d.breakpoints, e[3] = m) : m = e[3];
1777
- const g = ft(m);
1809
+ const b = ht(m);
1778
1810
  let C;
1779
1811
  e[4] !== o ? (C = o ?? {}, e[4] = o, e[5] = C) : C = e[5];
1780
1812
  let w;
1781
1813
  e[6] !== C ? (w = xe(Jt, C), e[6] = C, e[7] = w) : w = e[7];
1782
- const _ = w, O = !f;
1814
+ const _ = w, O = !h;
1783
1815
  let S;
1784
- if (e[8] !== u || e[9] !== h) {
1785
- let le;
1786
- e[11] !== h ? (le = (he) => he.id === h, e[11] = h, e[12] = le) : le = e[12], S = u.find(le), e[8] = u, e[9] = h, e[10] = S;
1816
+ if (e[8] !== u || e[9] !== f) {
1817
+ let ne;
1818
+ e[11] !== f ? (ne = (pe) => pe.id === f, e[11] = f, e[12] = ne) : ne = e[12], S = u.find(ne), e[8] = u, e[9] = f, e[10] = S;
1787
1819
  } else
1788
1820
  S = e[10];
1789
- const T = S, I = Object.groupBy(u, no), D = Object.keys(I).length;
1821
+ const T = S, D = Object.groupBy(u, no), L = Object.keys(D).length;
1790
1822
  let A, M;
1791
- e[13] !== b ? (M = () => {
1792
- if (y.current && clearTimeout(y.current), !!b)
1823
+ e[13] !== v ? (M = () => {
1824
+ if (y.current && clearTimeout(y.current), !!v)
1793
1825
  return y.current = setTimeout(() => {
1794
- v(null);
1795
- }, b), () => {
1826
+ g(null);
1827
+ }, v), () => {
1796
1828
  y.current && clearTimeout(y.current);
1797
1829
  };
1798
- }, A = [b], e[13] = b, e[14] = A, e[15] = M) : (A = e[14], M = e[15]), De(M, A);
1799
- let k;
1800
- e[16] === Symbol.for("react.memo_cache_sentinel") ? (k = () => {
1801
- x(null);
1802
- }, e[16] = k) : k = e[16];
1803
- const R = k;
1830
+ }, A = [v], e[13] = v, e[14] = A, e[15] = M) : (A = e[14], M = e[15]), De(M, A);
1804
1831
  let P;
1805
- e[17] === Symbol.for("react.memo_cache_sentinel") ? (P = () => {
1832
+ e[16] === Symbol.for("react.memo_cache_sentinel") ? (P = () => {
1833
+ x(null);
1834
+ }, e[16] = P) : P = e[16];
1835
+ const k = P;
1836
+ let R;
1837
+ e[17] === Symbol.for("react.memo_cache_sentinel") ? (R = () => {
1806
1838
  x(400);
1807
- }, e[17] = P) : P = e[17];
1808
- const j = P, $ = ye;
1839
+ }, e[17] = R) : R = e[17];
1840
+ const Z = R, V = ye;
1809
1841
  let B;
1810
- e[18] === Symbol.for("react.memo_cache_sentinel") ? (B = (le) => {
1811
- v(le.currentTarget);
1842
+ e[18] === Symbol.for("react.memo_cache_sentinel") ? (B = (ne) => {
1843
+ g(ne.currentTarget);
1812
1844
  }, e[18] = B) : B = e[18];
1813
- const N = T?.icon, W = T?.label ?? "Basemap";
1814
- let G;
1815
- e[19] !== N || e[20] !== W ? (G = /* @__PURE__ */ l(se, { sx: ue.toggle, onClick: B, children: /* @__PURE__ */ l("img", { src: N, alt: W }) }), e[19] = N, e[20] = W, e[21] = G) : G = e[21];
1816
- let ee;
1817
- e[22] !== s || e[23] !== _.toggle.title || e[24] !== G ? (ee = /* @__PURE__ */ l(de, { title: _.toggle.title, placement: "right", ...s, children: G }), e[22] = s, e[23] = _.toggle.title, e[24] = G, e[25] = ee) : ee = e[25];
1818
- const F = lo, ie = `translate3d(${p.endsWith("right") ? "-8px" : "8px"}, ${p.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
1819
- let Z;
1820
- e[26] !== ie ? (Z = {
1845
+ const U = T?.icon, N = T?.label ?? "Basemap";
1846
+ let j;
1847
+ e[19] !== U || e[20] !== N ? (j = /* @__PURE__ */ l(se, { sx: ue.toggle, onClick: B, children: /* @__PURE__ */ l("img", { src: U, alt: N }) }), e[19] = U, e[20] = N, e[21] = j) : j = e[21];
1848
+ let F;
1849
+ e[22] !== s || e[23] !== _.toggle.title || e[24] !== j ? (F = /* @__PURE__ */ l(de, { title: _.toggle.title, placement: "right", ...s, children: j }), e[22] = s, e[23] = _.toggle.title, e[24] = j, e[25] = F) : F = e[25];
1850
+ const W = lo, q = `translate3d(${p.endsWith("right") ? "-8px" : "8px"}, ${p.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
1851
+ let $;
1852
+ e[26] !== q ? ($ = {
1821
1853
  paper: {
1822
1854
  sx: {
1823
1855
  ...ue.root,
1824
- transform: ie
1856
+ transform: q
1825
1857
  },
1826
- onMouseOver: R,
1827
- onMouseLeave: j
1858
+ onMouseOver: k,
1859
+ onMouseLeave: Z
1828
1860
  }
1829
- }, e[26] = ie, e[27] = Z) : Z = e[27];
1861
+ }, e[26] = q, e[27] = $) : $ = e[27];
1862
+ let z;
1863
+ e[28] === Symbol.for("react.memo_cache_sentinel") ? (z = () => g(null), e[28] = z) : z = e[28];
1830
1864
  let H;
1831
- e[28] === Symbol.for("react.memo_cache_sentinel") ? (H = () => v(null), e[28] = H) : H = e[28];
1832
- let q;
1833
- e[29] === Symbol.for("react.memo_cache_sentinel") ? (q = () => v(null), e[29] = q) : q = e[29];
1834
- let V;
1835
- e[30] !== g || e[31] !== _.header ? (V = /* @__PURE__ */ l(eo, { isMobile: g, labels: _.header, onChangeCollapsed: q }), e[30] = g, e[31] = _.header, e[32] = V) : V = e[32];
1836
- let te;
1837
- e[33] !== D || e[34] !== _.header || e[35] !== r || e[36] !== h ? (te = (le) => {
1838
- const [he, Me] = le;
1839
- return /* @__PURE__ */ l(to, { title: he + " " + _.header.title, collapsed: D < 2, children: /* @__PURE__ */ l(oo, { values: Me, selected: h, onChange: (Ge) => {
1840
- v(null), r(Ge);
1841
- } }) }, he);
1842
- }, e[33] = D, e[34] = _.header, e[35] = r, e[36] = h, e[37] = te) : te = e[37];
1843
- const fe = Object.entries(I).map(te);
1865
+ e[29] === Symbol.for("react.memo_cache_sentinel") ? (H = () => g(null), e[29] = H) : H = e[29];
1866
+ let G;
1867
+ e[30] !== b || e[31] !== _.header ? (G = /* @__PURE__ */ l(eo, { isMobile: b, labels: _.header, onChangeCollapsed: H }), e[30] = b, e[31] = _.header, e[32] = G) : G = e[32];
1844
1868
  let oe;
1845
- e[38] !== F || e[39] !== O || e[40] !== g || e[41] !== p || e[42] !== Z || e[43] !== H || e[44] !== V || e[45] !== fe || e[46] !== f ? (oe = /* @__PURE__ */ L(F, { ref: f, slotProps: Z, collapsed: O, position: p, isMobile: g, onChangeCollapsed: H, children: [
1846
- V,
1847
- fe
1848
- ] }), e[38] = F, e[39] = O, e[40] = g, e[41] = p, e[42] = Z, e[43] = H, e[44] = V, e[45] = fe, e[46] = f, e[47] = oe) : oe = e[47];
1849
- let U;
1850
- return e[48] !== $ || e[49] !== ee || e[50] !== oe ? (U = /* @__PURE__ */ L($, { children: [
1851
- ee,
1852
- oe
1853
- ] }), e[48] = $, e[49] = ee, e[50] = oe, e[51] = U) : U = e[51], U;
1869
+ e[33] !== L || e[34] !== _.header || e[35] !== r || e[36] !== f ? (oe = (ne) => {
1870
+ const [pe, Me] = ne;
1871
+ return /* @__PURE__ */ l(to, { title: pe + " " + _.header.title, collapsed: L < 2, children: /* @__PURE__ */ l(oo, { values: Me, selected: f, onChange: (Ne) => {
1872
+ g(null), r(Ne);
1873
+ } }) }, pe);
1874
+ }, e[33] = L, e[34] = _.header, e[35] = r, e[36] = f, e[37] = oe) : oe = e[37];
1875
+ const he = Object.entries(D).map(oe);
1876
+ let le;
1877
+ e[38] !== W || e[39] !== O || e[40] !== b || e[41] !== p || e[42] !== $ || e[43] !== z || e[44] !== G || e[45] !== he || e[46] !== h ? (le = /* @__PURE__ */ I(W, { ref: h, slotProps: $, collapsed: O, position: p, isMobile: b, onChangeCollapsed: z, children: [
1878
+ G,
1879
+ he
1880
+ ] }), e[38] = W, e[39] = O, e[40] = b, e[41] = p, e[42] = $, e[43] = z, e[44] = G, e[45] = he, e[46] = h, e[47] = le) : le = e[47];
1881
+ let X;
1882
+ return e[48] !== V || e[49] !== F || e[50] !== le ? (X = /* @__PURE__ */ I(V, { children: [
1883
+ F,
1884
+ le
1885
+ ] }), e[48] = V, e[49] = F, e[50] = le, e[51] = X) : X = e[51], X;
1854
1886
  }
1855
1887
  function no(t) {
1856
1888
  return t.group ?? "default";
@@ -1859,7 +1891,7 @@ export {
1859
1891
  Et as AreaIcon,
1860
1892
  vo as BasemapsUI,
1861
1893
  Rt as BufferIcon,
1862
- ho as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1894
+ po as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1863
1895
  re as DEFAULT_MEASUREMENT_TOOLS_LABELS,
1864
1896
  Bt as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
1865
1897
  Pt as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
@@ -1868,11 +1900,11 @@ export {
1868
1900
  yt as DrawPolygonIcon,
1869
1901
  xt as DrawSquareIcon,
1870
1902
  mo as GeolocationControls,
1871
- K as LASSO_TOOLS_LABELS,
1872
- po as LassoToolsInlineUI,
1903
+ Q as LASSO_TOOLS_LABELS,
1904
+ fo as LassoToolsInlineUI,
1873
1905
  ce as LassoToolsUI,
1874
1906
  bo as ListDataUI,
1875
- fo as MeasurementToolsUI,
1907
+ ho as MeasurementToolsUI,
1876
1908
  kt as RulerIcon,
1877
1909
  Mt as SelectToolIcon,
1878
1910
  Kt as SmartTooltip,