@carto/ps-react-ui 4.9.1 → 4.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/dist/category-Dnd2_j0x.js +719 -0
  2. package/dist/category-Dnd2_j0x.js.map +1 -0
  3. package/dist/change-column-BiuuHCDN.js +1156 -0
  4. package/dist/change-column-BiuuHCDN.js.map +1 -0
  5. package/dist/chat.js +1507 -0
  6. package/dist/chat.js.map +1 -0
  7. package/dist/components.js +122 -120
  8. package/dist/components.js.map +1 -1
  9. package/dist/copy-button-DGL1tyli.js +26 -0
  10. package/dist/copy-button-DGL1tyli.js.map +1 -0
  11. package/dist/{data-zoom-layout-0QSptXG_.js → data-zoom-layout--YiY6ko_.js} +4 -3
  12. package/dist/{data-zoom-layout-0QSptXG_.js.map → data-zoom-layout--YiY6ko_.js.map} +1 -1
  13. package/dist/{download-config-CzmjOT2T.js → download-config-oJIFZ2WC.js} +9 -8
  14. package/dist/{download-config-CzmjOT2T.js.map → download-config-oJIFZ2WC.js.map} +1 -1
  15. package/dist/{spread-Y9R1f5dm.js → spread-CPis22AE.js} +4 -3
  16. package/dist/{spread-Y9R1f5dm.js.map → spread-CPis22AE.js.map} +1 -1
  17. package/dist/types/chat/bubbles/chat-error-message.d.ts +2 -0
  18. package/dist/types/chat/bubbles/chat-suggestion-button.d.ts +2 -0
  19. package/dist/types/chat/bubbles/chat-user-message.d.ts +2 -0
  20. package/dist/types/chat/bubbles/index.d.ts +4 -0
  21. package/dist/types/chat/const.d.ts +4 -0
  22. package/dist/types/chat/containers/chat-content.d.ts +2 -0
  23. package/dist/types/chat/containers/chat-footer.d.ts +2 -0
  24. package/dist/types/chat/containers/chat-header.d.ts +2 -0
  25. package/dist/types/chat/containers/chat-starter.d.ts +2 -0
  26. package/dist/types/chat/containers/index.d.ts +4 -0
  27. package/dist/types/chat/containers/styles.d.ts +93 -0
  28. package/dist/types/chat/feedback/chat-loader.d.ts +2 -0
  29. package/dist/types/chat/feedback/chat-rating-action.d.ts +2 -0
  30. package/dist/types/chat/feedback/chat-thinking.d.ts +2 -0
  31. package/dist/types/chat/feedback/chat-tool-code-area.d.ts +2 -0
  32. package/dist/types/chat/feedback/chat-tool-full-view-dialog.d.ts +2 -0
  33. package/dist/types/chat/feedback/chat-tool-group.d.ts +2 -0
  34. package/dist/types/chat/feedback/chat-tool-trace.d.ts +3 -0
  35. package/dist/types/chat/feedback/get-tool-label.d.ts +2 -0
  36. package/dist/types/chat/feedback/index.d.ts +8 -0
  37. package/dist/types/chat/feedback/styles.d.ts +211 -0
  38. package/dist/types/chat/index.d.ts +20 -0
  39. package/dist/types/chat/types.d.ts +184 -0
  40. package/dist/types/chat/use-typewriter.d.ts +30 -0
  41. package/dist/types/components/copy-button/copy-button.d.ts +2 -0
  42. package/dist/types/components/copy-button/types.d.ts +6 -0
  43. package/dist/types/components/index.d.ts +2 -0
  44. package/dist/types/widgets/actions/brush-toggle/style.d.ts +1 -1
  45. package/dist/types/widgets/actions/shared/styles.d.ts +1 -1
  46. package/dist/types/widgets/actions/zoom-toggle/style.d.ts +1 -1
  47. package/dist/types/widgets/echart/types.d.ts +1 -1
  48. package/dist/types/widgets/toolbar-actions/styles.d.ts +1 -1
  49. package/dist/types/widgets-v2/actions/brush-toggle/style.d.ts +1 -1
  50. package/dist/types/widgets-v2/actions/change-column/style.d.ts +1 -1
  51. package/dist/types/widgets-v2/actions/fullscreen/style.d.ts +1 -1
  52. package/dist/types/widgets-v2/actions/index.d.ts +1 -0
  53. package/dist/types/widgets-v2/actions/lock-selection/style.d.ts +1 -1
  54. package/dist/types/widgets-v2/actions/relative-data/style.d.ts +1 -1
  55. package/dist/types/widgets-v2/actions/searcher/style.d.ts +1 -1
  56. package/dist/types/widgets-v2/actions/show-all/index.d.ts +2 -0
  57. package/dist/types/widgets-v2/actions/show-all/labels.d.ts +5 -0
  58. package/dist/types/widgets-v2/actions/show-all/show-all.d.ts +33 -0
  59. package/dist/types/widgets-v2/actions/show-all/style.d.ts +8 -0
  60. package/dist/types/widgets-v2/actions/stack-toggle/style.d.ts +1 -1
  61. package/dist/types/widgets-v2/actions/zoom-toggle/style.d.ts +1 -1
  62. package/dist/types/widgets-v2/category/category-ui.d.ts +9 -2
  63. package/dist/types/widgets-v2/category/category.d.ts +9 -2
  64. package/dist/types/widgets-v2/category/components/category-row-other.d.ts +19 -6
  65. package/dist/types/widgets-v2/category/style.d.ts +21 -2
  66. package/dist/types/widgets-v2/category/types.d.ts +2 -0
  67. package/dist/types/widgets-v2/index.d.ts +3 -2
  68. package/dist/types/widgets-v2/selection-summary/labels.d.ts +7 -2
  69. package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +13 -6
  70. package/dist/types/widgets-v2/selection-summary/style.d.ts +15 -0
  71. package/dist/widgets/actions.js +115 -114
  72. package/dist/widgets/actions.js.map +1 -1
  73. package/dist/widgets/bar.js +1 -1
  74. package/dist/widgets/category.js +9 -8
  75. package/dist/widgets/category.js.map +1 -1
  76. package/dist/widgets/formula.js +11 -10
  77. package/dist/widgets/formula.js.map +1 -1
  78. package/dist/widgets/histogram.js +7 -6
  79. package/dist/widgets/histogram.js.map +1 -1
  80. package/dist/widgets/markdown.js +9 -8
  81. package/dist/widgets/markdown.js.map +1 -1
  82. package/dist/widgets/pie.js +1 -1
  83. package/dist/widgets/scatterplot.js +1 -1
  84. package/dist/widgets/spread.js +9 -8
  85. package/dist/widgets/spread.js.map +1 -1
  86. package/dist/widgets/table.js +17 -16
  87. package/dist/widgets/table.js.map +1 -1
  88. package/dist/widgets/timeseries.js +1 -1
  89. package/dist/widgets/utils.js +1 -1
  90. package/dist/widgets/wrapper.js +3 -2
  91. package/dist/widgets/wrapper.js.map +1 -1
  92. package/dist/widgets-v2/actions.js +41 -37
  93. package/dist/widgets-v2/bar.js +8 -7
  94. package/dist/widgets-v2/bar.js.map +1 -1
  95. package/dist/widgets-v2/category.js +22 -21
  96. package/dist/widgets-v2/category.js.map +1 -1
  97. package/dist/widgets-v2/formula.js +23 -22
  98. package/dist/widgets-v2/formula.js.map +1 -1
  99. package/dist/widgets-v2/histogram.js +10 -9
  100. package/dist/widgets-v2/histogram.js.map +1 -1
  101. package/dist/widgets-v2/markdown.js +9 -8
  102. package/dist/widgets-v2/markdown.js.map +1 -1
  103. package/dist/widgets-v2/pie.js +7 -6
  104. package/dist/widgets-v2/pie.js.map +1 -1
  105. package/dist/widgets-v2/scatterplot.js +9 -8
  106. package/dist/widgets-v2/scatterplot.js.map +1 -1
  107. package/dist/widgets-v2/spread.js +9 -8
  108. package/dist/widgets-v2/spread.js.map +1 -1
  109. package/dist/widgets-v2/table.js +16 -15
  110. package/dist/widgets-v2/table.js.map +1 -1
  111. package/dist/widgets-v2/timeseries.js +8 -7
  112. package/dist/widgets-v2/timeseries.js.map +1 -1
  113. package/dist/widgets-v2/utils.js +1 -1
  114. package/dist/widgets-v2.js +276 -271
  115. package/dist/widgets-v2.js.map +1 -1
  116. package/package.json +7 -3
  117. package/src/chat/bubbles/chat-agent-message.test.tsx +30 -0
  118. package/src/chat/bubbles/chat-agent-message.tsx +11 -0
  119. package/src/chat/bubbles/chat-error-message.test.tsx +40 -0
  120. package/src/chat/bubbles/chat-error-message.tsx +47 -0
  121. package/src/chat/bubbles/chat-suggestion-button.test.tsx +24 -0
  122. package/src/chat/bubbles/chat-suggestion-button.tsx +27 -0
  123. package/src/chat/bubbles/chat-user-message.test.tsx +27 -0
  124. package/src/chat/bubbles/chat-user-message.tsx +27 -0
  125. package/src/chat/bubbles/index.ts +4 -0
  126. package/src/chat/bubbles/styles.ts +148 -0
  127. package/src/chat/const.ts +4 -0
  128. package/src/chat/containers/chat-content.test.tsx +269 -0
  129. package/src/chat/containers/chat-content.tsx +142 -0
  130. package/src/chat/containers/chat-footer.test.tsx +34 -0
  131. package/src/chat/containers/chat-footer.tsx +78 -0
  132. package/src/chat/containers/chat-header.test.tsx +28 -0
  133. package/src/chat/containers/chat-header.tsx +29 -0
  134. package/src/chat/containers/chat-starter.test.tsx +32 -0
  135. package/src/chat/containers/chat-starter.tsx +75 -0
  136. package/src/chat/containers/index.ts +4 -0
  137. package/src/chat/containers/styles.ts +96 -0
  138. package/src/chat/feedback/chat-actions-container.test.tsx +64 -0
  139. package/src/chat/feedback/chat-actions-container.tsx +7 -0
  140. package/src/chat/feedback/chat-loader.test.tsx +10 -0
  141. package/src/chat/feedback/chat-loader.tsx +31 -0
  142. package/src/chat/feedback/chat-rating-action.tsx +43 -0
  143. package/src/chat/feedback/chat-thinking.test.tsx +15 -0
  144. package/src/chat/feedback/chat-thinking.tsx +23 -0
  145. package/src/chat/feedback/chat-tool-code-area.test.tsx +23 -0
  146. package/src/chat/feedback/chat-tool-code-area.tsx +71 -0
  147. package/src/chat/feedback/chat-tool-full-view-dialog.test.tsx +39 -0
  148. package/src/chat/feedback/chat-tool-full-view-dialog.tsx +121 -0
  149. package/src/chat/feedback/chat-tool-group.test.tsx +84 -0
  150. package/src/chat/feedback/chat-tool-group.tsx +156 -0
  151. package/src/chat/feedback/chat-tool-trace.test.tsx +81 -0
  152. package/src/chat/feedback/chat-tool-trace.tsx +192 -0
  153. package/src/chat/feedback/get-tool-label.test.tsx +91 -0
  154. package/src/chat/feedback/get-tool-label.ts +13 -0
  155. package/src/chat/feedback/index.ts +8 -0
  156. package/src/chat/feedback/styles.ts +229 -0
  157. package/src/chat/index.ts +59 -0
  158. package/src/chat/types.ts +215 -0
  159. package/src/chat/use-typewriter.test.tsx +38 -0
  160. package/src/chat/use-typewriter.ts +82 -0
  161. package/src/components/copy-button/copy-button.test.tsx +41 -0
  162. package/src/components/copy-button/copy-button.tsx +31 -0
  163. package/src/components/copy-button/types.ts +10 -0
  164. package/src/components/index.ts +3 -0
  165. package/src/widgets/echart/types.ts +1 -1
  166. package/src/widgets-v2/actions/index.ts +8 -0
  167. package/src/widgets-v2/actions/show-all/index.ts +7 -0
  168. package/src/widgets-v2/actions/show-all/labels.ts +8 -0
  169. package/src/widgets-v2/actions/show-all/show-all.test.tsx +50 -0
  170. package/src/widgets-v2/actions/show-all/show-all.tsx +72 -0
  171. package/src/widgets-v2/actions/show-all/style.ts +8 -0
  172. package/src/widgets-v2/category/category-ui.test.tsx +26 -10
  173. package/src/widgets-v2/category/category-ui.tsx +13 -3
  174. package/src/widgets-v2/category/category.test.tsx +4 -4
  175. package/src/widgets-v2/category/category.tsx +10 -1
  176. package/src/widgets-v2/category/components/category-row-other.test.tsx +36 -7
  177. package/src/widgets-v2/category/components/category-row-other.tsx +64 -13
  178. package/src/widgets-v2/category/style.ts +35 -4
  179. package/src/widgets-v2/category/types.ts +2 -0
  180. package/src/widgets-v2/index.ts +3 -0
  181. package/src/widgets-v2/selection-summary/labels.ts +8 -4
  182. package/src/widgets-v2/selection-summary/selection-summary.test.tsx +15 -9
  183. package/src/widgets-v2/selection-summary/selection-summary.tsx +42 -22
  184. package/src/widgets-v2/selection-summary/style.ts +15 -0
  185. package/dist/category-DwaeYjpX.js +0 -656
  186. package/dist/category-DwaeYjpX.js.map +0 -1
  187. package/dist/change-column-B4IT0rh6.js +0 -1110
  188. package/dist/change-column-B4IT0rh6.js.map +0 -1
@@ -1,14 +1,15 @@
1
- import { s as be, L as $e, a as re } from "./lasso-tool-CDFj4zKY.js";
1
+ import { s as be, L as Be, a as re } from "./lasso-tool-CDFj4zKY.js";
2
2
  import { D as co, b as mo, c as uo, d as po, e as fo, f as ho, S as go } from "./lasso-tool-CDFj4zKY.js";
3
3
  import { jsxs as E, Fragment as J, jsx as o } from "react/jsx-runtime";
4
4
  import { c as F } from "react/compiler-runtime";
5
- import { Divider as ue, Box as Y, ToggleButton as ve, SvgIcon as De, ToggleButtonGroup as Ie, Typography as Q, Button as ye, alpha as Be, Paper as Se, MenuItem as Me, ListItemIcon as Ue, ListItemText as xe, IconButton as ie, Menu as Ve, DialogTitle as Ze, FormControlLabel as We, Radio as je, RadioGroup as Fe, FormControl as Ne, DialogContent as Ge, DialogActions as ze, Dialog as He, CircularProgress as Ye, Grid as pe, Skeleton as _e, Alert as Xe, ListItem as qe, List as Ke, Drawer as Qe, Popover as Je, useTheme as et, useMediaQuery as tt } from "@mui/material";
5
+ import { Divider as ue, Box as Y, ToggleButton as ve, SvgIcon as De, ToggleButtonGroup as Ie, Typography as Q, Button as ye, alpha as $e, Paper as Se, MenuItem as Me, ListItemIcon as Ue, ListItemText as xe, IconButton as ie, Menu as Ve, DialogTitle as Ze, FormControlLabel as We, Radio as je, RadioGroup as Fe, FormControl as Ne, DialogContent as Ge, DialogActions as ze, Dialog as He, CircularProgress as Ye, Grid as pe, Skeleton as Ce, Alert as Xe, ListItem as qe, List as Ke, Drawer as Qe, Popover as Je, useTheme as et, useMediaQuery as tt } from "@mui/material";
6
6
  import { useState as se, useRef as Le, useReducer as ot, useEffect as Pe } from "react";
7
7
  import { d as we } from "./cjs-D4KH3azB.js";
8
8
  import { T as fe } from "./tooltip-BDnrRKrp.js";
9
9
  import { s as vo } from "./tooltip-BDnrRKrp.js";
10
10
  import { ArrowDropDown as lt, Close as Oe, MyLocationOutlined as nt, LocationDisabledOutlined as it, CropFreeOutlined as st, AddOutlined as rt, RemoveOutlined as at } from "@mui/icons-material";
11
11
  import { S as ct } from "./smart-tooltip-D4vwQpFf.js";
12
+ import { C as xo } from "./copy-button-DGL1tyli.js";
12
13
  const dt = [], mt = {};
13
14
  function to(t) {
14
15
  const e = F(55), {
@@ -31,9 +32,9 @@ function to(t) {
31
32
  sx: M,
32
33
  ...L
33
34
  } = g, e[0] = g, e[1] = L, e[2] = M) : (L = e[1], M = e[2]);
34
- let _;
35
- e[3] !== i || e[4] !== a ? (_ = we(i, a), e[3] = i, e[4] = a, e[5] = _) : _ = e[5];
36
- const y = _;
35
+ let C;
36
+ e[3] !== i || e[4] !== a ? (C = we(i, a), e[3] = i, e[4] = a, e[5] = C) : C = e[5];
37
+ const y = C;
37
38
  let x, k;
38
39
  e[6] !== y ? ({
39
40
  edit: k,
@@ -41,7 +42,7 @@ function to(t) {
41
42
  } = y, e[6] = y, e[7] = x, e[8] = k) : (x = e[7], k = e[8]);
42
43
  let b;
43
44
  e[9] !== u ? (b = (q) => u(q), e[9] = u, e[10] = b) : b = e[10];
44
- const C = b;
45
+ const _ = b;
45
46
  let T;
46
47
  e[11] !== f ? (T = (q, le) => {
47
48
  q.preventDefault(), f?.(le);
@@ -58,39 +59,39 @@ function to(t) {
58
59
  const R = r?.options, V = D?.value, Z = r?.options;
59
60
  let A;
60
61
  e[17] !== U || e[18] !== Z ? (A = /* @__PURE__ */ o(Te, { labels: Z, data: U }), e[17] = U, e[18] = Z, e[19] = A) : A = e[19];
61
- let $;
62
- e[20] !== k || e[21] !== r?.options || e[22] !== h.length ? ($ = !!k && /* @__PURE__ */ E(J, { children: [
62
+ let B;
63
+ e[20] !== k || e[21] !== r?.options || e[22] !== h.length ? (B = !!k && /* @__PURE__ */ E(J, { children: [
63
64
  /* @__PURE__ */ o(ue, { orientation: "vertical" }),
64
65
  /* @__PURE__ */ o(Te, { labels: r?.options, data: [{
65
66
  ...k,
66
67
  disabled: !h.length
67
68
  }] })
68
- ] }), e[20] = k, e[21] = r?.options, e[22] = h.length, e[23] = $) : $ = e[23];
69
+ ] }), e[20] = k, e[21] = r?.options, e[22] = h.length, e[23] = B) : B = e[23];
69
70
  let W;
70
- e[24] !== S || e[25] !== V || e[26] !== A || e[27] !== $ ? (W = /* @__PURE__ */ E(Ie, { value: V, exclusive: !0, className: "inline", sx: be.options.menu, onChange: S, children: [
71
+ e[24] !== S || e[25] !== V || e[26] !== A || e[27] !== B ? (W = /* @__PURE__ */ E(Ie, { value: V, exclusive: !0, className: "inline", sx: be.options.menu, onChange: S, children: [
71
72
  A,
72
- $
73
- ] }), e[24] = S, e[25] = V, e[26] = A, e[27] = $, e[28] = W) : W = e[28];
73
+ B
74
+ ] }), e[24] = S, e[25] = V, e[26] = A, e[27] = B, e[28] = W) : W = e[28];
74
75
  let G;
75
76
  e[29] !== U || e[30] !== W || e[31] !== R ? (G = /* @__PURE__ */ o(ut, { data: U, labels: R, children: W }), e[29] = U, e[30] = W, e[31] = R, e[32] = G) : G = e[32];
76
77
  let N;
77
78
  e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ o(ue, { flexItem: !0 }), e[33] = N) : N = e[33];
78
79
  const j = !!h.length, z = r?.noData;
79
- let B;
80
- e[34] !== j || e[35] !== z ? (B = /* @__PURE__ */ o(pt, { hasValues: j, labels: z }), e[34] = j, e[35] = z, e[36] = B) : B = e[36];
80
+ let $;
81
+ e[34] !== j || e[35] !== z ? ($ = /* @__PURE__ */ o(pt, { hasValues: j, labels: z }), e[34] = j, e[35] = z, e[36] = $) : $ = e[36];
81
82
  let H;
82
- e[37] !== n || e[38] !== C || e[39] !== r?.chip || e[40] !== d || e[41] !== h ? (H = !!h.length && /* @__PURE__ */ o(Y, { sx: be.chip.container, className: "inline", children: h.map((q) => /* @__PURE__ */ o($e, { value: q, labels: r?.chip, chipProps: n, onDelete: C, onChipToggle: d }, q.id)) }), e[37] = n, e[38] = C, e[39] = r?.chip, e[40] = d, e[41] = h, e[42] = H) : H = e[42];
83
+ e[37] !== n || e[38] !== _ || e[39] !== r?.chip || e[40] !== d || e[41] !== h ? (H = !!h.length && /* @__PURE__ */ o(Y, { sx: be.chip.container, className: "inline", children: h.map((q) => /* @__PURE__ */ o(Be, { value: q, labels: r?.chip, chipProps: n, onDelete: _, onChipToggle: d }, q.id)) }), e[37] = n, e[38] = _, e[39] = r?.chip, e[40] = d, e[41] = h, e[42] = H) : H = e[42];
83
84
  const ee = r?.actions;
84
85
  let X;
85
86
  e[43] !== v || e[44] !== w || e[45] !== ee || e[46] !== h ? (X = /* @__PURE__ */ o(ft, { values: h, labels: ee, onAllChipToggle: v, onAllDelete: w }), e[43] = v, e[44] = w, e[45] = ee, e[46] = h, e[47] = X) : X = e[47];
86
87
  let te;
87
- return e[48] !== L || e[49] !== G || e[50] !== B || e[51] !== H || e[52] !== X || e[53] !== P ? (te = /* @__PURE__ */ E(Y, { sx: P, ...L, className: "inline", children: [
88
+ return e[48] !== L || e[49] !== G || e[50] !== $ || e[51] !== H || e[52] !== X || e[53] !== P ? (te = /* @__PURE__ */ E(Y, { sx: P, ...L, className: "inline", children: [
88
89
  G,
89
90
  N,
90
- B,
91
+ $,
91
92
  H,
92
93
  X
93
- ] }), e[48] = L, e[49] = G, e[50] = B, e[51] = H, e[52] = X, e[53] = P, e[54] = te) : te = e[54], te;
94
+ ] }), e[48] = L, e[49] = G, e[50] = $, e[51] = H, e[52] = X, e[53] = P, e[54] = te) : te = e[54], te;
94
95
  }
95
96
  function ut(t) {
96
97
  const e = F(5), {
@@ -343,7 +344,7 @@ const oe = {
343
344
  }) => t.primary.main,
344
345
  backgroundColor: ({
345
346
  palette: t
346
- }) => Be(t.primary.main, 0.08)
347
+ }) => $e(t.primary.main, 0.08)
347
348
  },
348
349
  modal: {
349
350
  toggle: {
@@ -419,20 +420,20 @@ function oo(t) {
419
420
  onChangeMode: v,
420
421
  onChangeUnit: w
421
422
  } = t, h = n === void 0 ? oe : n, g = i === void 0 ? xt : i, L = a === void 0 ? yt : a, M = m === void 0 ? St : m;
422
- let _, y;
423
+ let C, y;
423
424
  e[0] !== M ? ({
424
425
  sx: y,
425
- ..._
426
- } = M, e[0] = M, e[1] = _, e[2] = y) : (_ = e[1], y = e[2]);
426
+ ...C
427
+ } = M, e[0] = M, e[1] = C, e[2] = y) : (C = e[1], y = e[2]);
427
428
  let x;
428
- e[3] !== f ? (x = (B) => f(!!B), e[3] = f, e[4] = x) : x = e[4];
429
+ e[3] !== f ? (x = ($) => f(!!$), e[3] = f, e[4] = x) : x = e[4];
429
430
  const k = x;
430
431
  let b;
431
432
  e[5] !== r || e[6] !== g ? (b = we(r, g), e[5] = r, e[6] = g, e[7] = b) : b = e[7];
432
- const C = b, T = (c ?? "") in C;
433
+ const _ = b, T = (c ?? "") in _;
433
434
  let S;
434
- e[8] !== C || e[9] !== T || e[10] !== c ? (S = T ? c : Object.keys(C)[0], e[8] = C, e[9] = T, e[10] = c, e[11] = S) : S = e[11];
435
- const p = S, I = C[p], D = d[p];
435
+ e[8] !== _ || e[9] !== T || e[10] !== c ? (S = T ? c : Object.keys(_)[0], e[8] = _, e[9] = T, e[10] = c, e[11] = S) : S = e[11];
436
+ const p = S, I = _[p], D = d[p];
436
437
  let O;
437
438
  e[12] !== p || e[13] !== D || e[14] !== d ? (O = Object.keys(d).length >= 1 ? d : {
438
439
  [p]: D.slice(0, 1)
@@ -440,11 +441,11 @@ function oo(t) {
440
441
  const P = O[p];
441
442
  let R;
442
443
  if (e[16] !== P || e[17] !== L) {
443
- let B;
444
- e[19] !== L ? (B = (H) => ({
444
+ let $;
445
+ e[19] !== L ? ($ = (H) => ({
445
446
  ...H,
446
447
  ...L[H.value]
447
- }), e[19] = L, e[20] = B) : B = e[20], R = P.map(B), e[16] = P, e[17] = L, e[18] = R;
448
+ }), e[19] = L, e[20] = $) : $ = e[20], R = P.map($), e[16] = P, e[17] = L, e[18] = R;
448
449
  } else
449
450
  R = e[18];
450
451
  const V = R;
@@ -453,21 +454,21 @@ function oo(t) {
453
454
  ...K.container,
454
455
  ...y
455
456
  }, e[21] = y, e[22] = Z) : Z = e[22];
456
- const A = h?.action, $ = I?.icon;
457
+ const A = h?.action, B = I?.icon;
457
458
  let W;
458
- e[23] !== l || e[24] !== s || e[25] !== k || e[26] !== A || e[27] !== $ ? (W = /* @__PURE__ */ o(_t, { actionProps: l, labels: A, enabled: s, onActionToggle: k, children: $ }), e[23] = l, e[24] = s, e[25] = k, e[26] = A, e[27] = $, e[28] = W) : W = e[28];
459
+ e[23] !== l || e[24] !== s || e[25] !== k || e[26] !== A || e[27] !== B ? (W = /* @__PURE__ */ o(Ct, { actionProps: l, labels: A, enabled: s, onActionToggle: k, children: B }), e[23] = l, e[24] = s, e[25] = k, e[26] = A, e[27] = B, e[28] = W) : W = e[28];
459
460
  const G = h?.options;
460
461
  let N;
461
- e[29] !== V || e[30] !== C || e[31] !== p || e[32] !== v || e[33] !== w || e[34] !== G || e[35] !== u ? (N = /* @__PURE__ */ o(Ct, { labels: G, modes: C, modeSelected: p, units: V, unitSelected: u, onChangeMode: v, onChangeUnit: w }), e[29] = V, e[30] = C, e[31] = p, e[32] = v, e[33] = w, e[34] = G, e[35] = u, e[36] = N) : N = e[36];
462
+ e[29] !== V || e[30] !== _ || e[31] !== p || e[32] !== v || e[33] !== w || e[34] !== G || e[35] !== u ? (N = /* @__PURE__ */ o(_t, { labels: G, modes: _, modeSelected: p, units: V, unitSelected: u, onChangeMode: v, onChangeUnit: w }), e[29] = V, e[30] = _, e[31] = p, e[32] = v, e[33] = w, e[34] = G, e[35] = u, e[36] = N) : N = e[36];
462
463
  let j;
463
464
  e[37] !== W || e[38] !== N ? (j = /* @__PURE__ */ E(Y, { children: [
464
465
  W,
465
466
  N
466
467
  ] }), e[37] = W, e[38] = N, e[39] = j) : j = e[39];
467
468
  let z;
468
- return e[40] !== _ || e[41] !== Z || e[42] !== j ? (z = /* @__PURE__ */ o(Se, { sx: Z, ..._, children: j }), e[40] = _, e[41] = Z, e[42] = j, e[43] = z) : z = e[43], z;
469
+ return e[40] !== C || e[41] !== Z || e[42] !== j ? (z = /* @__PURE__ */ o(Se, { sx: Z, ...C, children: j }), e[40] = C, e[41] = Z, e[42] = j, e[43] = z) : z = e[43], z;
469
470
  }
470
- function _t(t) {
471
+ function Ct(t) {
471
472
  const e = F(12), {
472
473
  actionProps: s,
473
474
  labels: l,
@@ -482,7 +483,7 @@ function _t(t) {
482
483
  let f;
483
484
  return e[8] !== c || e[9] !== m || e[10] !== u ? (f = /* @__PURE__ */ o(fe, { title: c, placement: "right", ...m, children: u }), e[8] = c, e[9] = m, e[10] = u, e[11] = f) : f = e[11], f;
484
485
  }
485
- function Ct(t) {
486
+ function _t(t) {
486
487
  const e = F(41), {
487
488
  modes: s,
488
489
  modeSelected: l,
@@ -501,21 +502,21 @@ function Ct(t) {
501
502
  if (!(w.length > 1 || g.length > 1))
502
503
  return null;
503
504
  const M = !!m;
504
- let _;
505
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (B) => {
506
- d(B.currentTarget);
507
- }, e[4] = _) : _ = e[4];
508
- const y = _;
505
+ let C;
506
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = ($) => {
507
+ d($.currentTarget);
508
+ }, e[4] = C) : C = e[4];
509
+ const y = C;
509
510
  let x;
510
511
  e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = () => {
511
512
  d(null);
512
513
  }, e[5] = x) : x = e[5];
513
514
  const k = x;
514
515
  let b;
515
- e[6] !== a ? (b = (B, H) => {
516
- B.preventDefault(), a(H.value), k();
516
+ e[6] !== a ? (b = ($, H) => {
517
+ $.preventDefault(), a(H.value), k();
517
518
  }, e[6] = a, e[7] = b) : b = e[7];
518
- const C = b;
519
+ const _ = b;
519
520
  let T;
520
521
  e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = () => {
521
522
  f(!0);
@@ -527,31 +528,31 @@ function Ct(t) {
527
528
  }, e[9] = p) : p = e[9];
528
529
  const I = p;
529
530
  let D;
530
- e[10] !== c ? (D = (B) => {
531
- I(), c(B);
531
+ e[10] !== c ? (D = ($) => {
532
+ I(), c($);
532
533
  }, e[10] = c, e[11] = D) : D = e[11];
533
534
  const O = D, U = i?.mode?.title ?? oe.options.mode.title, P = i?.units?.title ?? oe.options.units.title, R = w.length > 1 && g.length > 1;
534
535
  let V;
535
- e[12] !== r || e[13] !== n ? (V = n.find((B) => B.value === r) ?? n[0], e[12] = r, e[13] = n, e[14] = V) : V = e[14];
536
+ e[12] !== r || e[13] !== n ? (V = n.find(($) => $.value === r) ?? n[0], e[12] = r, e[13] = n, e[14] = V) : V = e[14];
536
537
  const Z = V;
537
538
  let A;
538
539
  e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ o(ie, { sx: K.options.icon, onClick: y, children: /* @__PURE__ */ o(lt, {}) }), e[15] = A) : A = e[15];
539
- let $;
540
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = {
540
+ let B;
541
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
541
542
  "aria-labelledby": "basic-button",
542
543
  sx: K.options.menu
543
- }, e[16] = $) : $ = e[16];
544
+ }, e[16] = B) : B = e[16];
544
545
  let W;
545
- e[17] !== C || e[18] !== i?.mode?.options || e[19] !== l || e[20] !== U || e[21] !== w ? (W = w.length > 1 && /* @__PURE__ */ E(J, { children: [
546
+ e[17] !== _ || e[18] !== i?.mode?.options || e[19] !== l || e[20] !== U || e[21] !== w ? (W = w.length > 1 && /* @__PURE__ */ E(J, { children: [
546
547
  /* @__PURE__ */ o(Q, { variant: "subtitle2", color: "text.secondary", sx: K.options.title, children: U }),
547
- w.map((B) => {
548
- const ee = (i?.mode?.options ?? oe.options.mode.options)[B.value];
549
- return /* @__PURE__ */ E(Me, { onClick: (X) => C(X, B), selected: B.value === l, children: [
550
- /* @__PURE__ */ o(Ue, { sx: K.options.icons, children: /* @__PURE__ */ o(De, { children: B.icon }) }),
548
+ w.map(($) => {
549
+ const ee = (i?.mode?.options ?? oe.options.mode.options)[$.value];
550
+ return /* @__PURE__ */ E(Me, { onClick: (X) => _(X, $), selected: $.value === l, children: [
551
+ /* @__PURE__ */ o(Ue, { sx: K.options.icons, children: /* @__PURE__ */ o(De, { children: $.icon }) }),
551
552
  /* @__PURE__ */ o(xe, { children: ee })
552
- ] }, B.value);
553
+ ] }, $.value);
553
554
  })
554
- ] }), e[17] = C, e[18] = i?.mode?.options, e[19] = l, e[20] = U, e[21] = w, e[22] = W) : W = e[22];
555
+ ] }), e[17] = _, e[18] = i?.mode?.options, e[19] = l, e[20] = U, e[21] = w, e[22] = W) : W = e[22];
555
556
  let G;
556
557
  e[23] !== R ? (G = R && /* @__PURE__ */ o(ue, {}), e[23] = R, e[24] = G) : G = e[24];
557
558
  let N;
@@ -571,7 +572,7 @@ function Ct(t) {
571
572
  let z;
572
573
  return e[37] !== m || e[38] !== M || e[39] !== j ? (z = /* @__PURE__ */ E(J, { children: [
573
574
  A,
574
- /* @__PURE__ */ o(Ve, { id: "measurement-menu", anchorEl: m, open: M, onClose: k, MenuListProps: $, children: j })
575
+ /* @__PURE__ */ o(Ve, { id: "measurement-menu", anchorEl: m, open: M, onClose: k, MenuListProps: B, children: j })
575
576
  ] }), e[37] = m, e[38] = M, e[39] = j, e[40] = z) : z = e[40], z;
576
577
  }
577
578
  function wt(t) {
@@ -586,22 +587,22 @@ function wt(t) {
586
587
  let d;
587
588
  if (e[0] !== c || e[1] !== n) {
588
589
  let A;
589
- e[3] !== c ? (A = ($) => $.system === c, e[3] = c, e[4] = A) : A = e[4], d = n.filter(A), e[0] = c, e[1] = n, e[2] = d;
590
+ e[3] !== c ? (A = (B) => B.system === c, e[3] = c, e[4] = A) : A = e[4], d = n.filter(A), e[0] = c, e[1] = n, e[2] = d;
590
591
  } else
591
592
  d = e[2];
592
593
  const u = d;
593
594
  let f;
594
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (A, $) => {
595
- m($);
595
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (A, B) => {
596
+ m(B);
596
597
  }, e[5] = f) : f = e[5];
597
- const v = f, w = l?.units?.modal?.options ?? oe.options.units.modal.options, h = w[c].options, g = l?.units?.modal?.title ?? oe.options.units.modal.title, L = l?.units?.modal?.subtitle ?? oe.options.units.modal.subtitle, M = l?.units?.modal?.apply ?? oe.options.units.modal.apply, _ = r.system === c ? r : u[0];
598
+ const v = f, w = l?.units?.modal?.options ?? oe.options.units.modal.options, h = w[c].options, g = l?.units?.modal?.title ?? oe.options.units.modal.title, L = l?.units?.modal?.subtitle ?? oe.options.units.modal.subtitle, M = l?.units?.modal?.apply ?? oe.options.units.modal.apply, C = r.system === c ? r : u[0];
598
599
  let y;
599
600
  e[6] !== a ? (y = {
600
601
  component: "form",
601
602
  onSubmit: (A) => {
602
603
  A.preventDefault();
603
- const $ = new FormData(A.currentTarget);
604
- a($.get("unit-value"));
604
+ const B = new FormData(A.currentTarget);
605
+ a(B.get("unit-value"));
605
606
  }
606
607
  }, e[6] = a, e[7] = y) : y = e[7];
607
608
  let x;
@@ -613,8 +614,8 @@ function wt(t) {
613
614
  g,
614
615
  k
615
616
  ] }), e[11] = g, e[12] = k, e[13] = b) : b = e[13];
616
- let C;
617
- e[14] !== L ? (C = /* @__PURE__ */ o(Q, { sx: K.options.modal.subtitle, children: L }), e[14] = L, e[15] = C) : C = e[15];
617
+ let _;
618
+ e[14] !== L ? (_ = /* @__PURE__ */ o(Q, { sx: K.options.modal.subtitle, children: L }), e[14] = L, e[15] = _) : _ = e[15];
618
619
  let T;
619
620
  e[16] !== w.metric.title ? (T = /* @__PURE__ */ o(ve, { value: "metric", children: w.metric.title }), e[16] = w.metric.title, e[17] = T) : T = e[17];
620
621
  let S;
@@ -624,13 +625,13 @@ function wt(t) {
624
625
  T,
625
626
  S
626
627
  ] }), e[20] = c, e[21] = T, e[22] = S, e[23] = p) : p = e[23];
627
- const I = _?.value, D = _?.value;
628
+ const I = C?.value, D = C?.value;
628
629
  let O;
629
630
  if (e[24] !== u || e[25] !== h) {
630
631
  let A;
631
- e[27] !== h ? (A = ($) => {
632
- const W = h[$.value];
633
- return /* @__PURE__ */ o(We, { value: $.value, control: /* @__PURE__ */ o(je, {}), label: W }, $.value);
632
+ e[27] !== h ? (A = (B) => {
633
+ const W = h[B.value];
634
+ return /* @__PURE__ */ o(We, { value: B.value, control: /* @__PURE__ */ o(je, {}), label: W }, B.value);
634
635
  }, e[27] = h, e[28] = A) : A = e[28], O = u.map(A), e[24] = u, e[25] = h, e[26] = O;
635
636
  } else
636
637
  O = e[26];
@@ -639,11 +640,11 @@ function wt(t) {
639
640
  let P;
640
641
  e[32] !== I || e[33] !== U ? (P = /* @__PURE__ */ o(Ne, { children: U }, I), e[32] = I, e[33] = U, e[34] = P) : P = e[34];
641
642
  let R;
642
- e[35] !== p || e[36] !== P || e[37] !== C ? (R = /* @__PURE__ */ E(Ge, { sx: K.options.modal.content, children: [
643
- C,
643
+ e[35] !== p || e[36] !== P || e[37] !== _ ? (R = /* @__PURE__ */ E(Ge, { sx: K.options.modal.content, children: [
644
+ _,
644
645
  p,
645
646
  P
646
- ] }), e[35] = p, e[36] = P, e[37] = C, e[38] = R) : R = e[38];
647
+ ] }), e[35] = p, e[36] = P, e[37] = _, e[38] = R) : R = e[38];
647
648
  let V;
648
649
  e[39] !== M ? (V = /* @__PURE__ */ o(ze, { sx: K.options.modal.actions, children: /* @__PURE__ */ o(ye, { variant: "contained", type: "submit", children: M }) }), e[39] = M, e[40] = V) : V = e[40];
649
650
  let Z;
@@ -689,19 +690,19 @@ function lo(t) {
689
690
  f("denied"), c?.(D);
690
691
  }, e[5] = c, e[6] = L) : L = e[6];
691
692
  const M = L;
692
- let _;
693
- e[7] !== M || e[8] !== g || e[9] !== i ? (_ = () => {
693
+ let C;
694
+ e[7] !== M || e[8] !== g || e[9] !== i ? (C = () => {
694
695
  if (m.current && navigator.geolocation.clearWatch(m.current), i) {
695
696
  m.current = navigator.geolocation.watchPosition(g, M);
696
697
  return;
697
698
  }
698
699
  navigator.geolocation.getCurrentPosition(g, M);
699
- }, e[7] = M, e[8] = g, e[9] = i, e[10] = _) : _ = e[10];
700
- const y = _, k = (l?.tooltip ?? Mt)[u ? "enabled" : "disabled"], b = l?.ariaLabel ?? Tt, C = !d || s;
700
+ }, e[7] = M, e[8] = g, e[9] = i, e[10] = C) : C = e[10];
701
+ const y = C, k = (l?.tooltip ?? Mt)[u ? "enabled" : "disabled"], b = l?.ariaLabel ?? Tt, _ = !d || s;
701
702
  let T;
702
703
  e[11] !== u ? (T = u ? /* @__PURE__ */ o(nt, {}) : /* @__PURE__ */ o(it, {}), e[11] = u, e[12] = T) : T = e[12];
703
704
  let S;
704
- e[13] !== y || e[14] !== b || e[15] !== C || e[16] !== T ? (S = /* @__PURE__ */ o(ie, { onClick: y, "aria-label": b, disabled: C, children: T }), e[13] = y, e[14] = b, e[15] = C, e[16] = T, e[17] = S) : S = e[17];
705
+ e[13] !== y || e[14] !== b || e[15] !== _ || e[16] !== T ? (S = /* @__PURE__ */ o(ie, { onClick: y, "aria-label": b, disabled: _, children: T }), e[13] = y, e[14] = b, e[15] = _, e[16] = T, e[17] = S) : S = e[17];
705
706
  let p;
706
707
  e[18] !== r || e[19] !== S || e[20] !== k ? (p = /* @__PURE__ */ o(fe, { arrow: !0, placement: "right", title: k, ...r, children: S }), e[18] = r, e[19] = S, e[20] = k, e[21] = p) : p = e[21];
707
708
  let I;
@@ -710,7 +711,7 @@ function lo(t) {
710
711
  function At(t, e) {
711
712
  return e === "granted";
712
713
  }
713
- const Ce = {
714
+ const _e = {
714
715
  zoom: {
715
716
  position: "relative",
716
717
  height: ({
@@ -761,31 +762,31 @@ function no(t) {
761
762
  e[0] !== d ? (M = d === void 0 ? {
762
763
  Icon: st
763
764
  } : d, e[0] = d, e[1] = M) : M = e[1];
764
- const _ = M, y = u === void 0 ? !0 : u;
765
+ const C = M, y = u === void 0 ? !0 : u;
765
766
  let x;
766
767
  e[2] !== g || e[3] !== f || e[4] !== s ? (x = () => {
767
- const $ = Math.min(g, s + 1);
768
- f($);
768
+ const B = Math.min(g, s + 1);
769
+ f(B);
769
770
  }, e[2] = g, e[3] = f, e[4] = s, e[5] = x) : x = e[5];
770
771
  const k = x;
771
772
  let b;
772
773
  e[6] !== L || e[7] !== f || e[8] !== s ? (b = () => {
773
- const $ = Math.max(L, s - 1);
774
- f($);
774
+ const B = Math.max(L, s - 1);
775
+ f(B);
775
776
  }, e[6] = L, e[7] = f, e[8] = s, e[9] = b) : b = e[9];
776
- const C = b, T = Math.floor(s), S = w === "vertical" ? "horizontal" : "vertical";
777
+ const _ = b, T = Math.floor(s), S = w === "vertical" ? "horizontal" : "vertical";
777
778
  let p = w === "vertical" ? "column" : "row";
778
779
  h && (p = p + "-reverse");
779
780
  let I;
780
781
  e[10] !== p ? (I = {
781
- ...Ce.paper,
782
+ ..._e.paper,
782
783
  flexDirection: p
783
784
  }, e[10] = p, e[11] = I) : I = e[11];
784
785
  let D;
785
- e[12] !== _ || e[13] !== l || e[14] !== S || e[15] !== v ? (D = v && /* @__PURE__ */ E(J, { children: [
786
- /* @__PURE__ */ o(ie, { onClick: v, "aria-label": "Reset action", disabled: l, children: /* @__PURE__ */ o(_.Icon, {}) }),
786
+ e[12] !== C || e[13] !== l || e[14] !== S || e[15] !== v ? (D = v && /* @__PURE__ */ E(J, { children: [
787
+ /* @__PURE__ */ o(ie, { onClick: v, "aria-label": "Reset action", disabled: l, children: /* @__PURE__ */ o(C.Icon, {}) }),
787
788
  /* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 })
788
- ] }), e[12] = _, e[13] = l, e[14] = S, e[15] = v, e[16] = D) : D = e[16];
789
+ ] }), e[12] = C, e[13] = l, e[14] = S, e[15] = v, e[16] = D) : D = e[16];
789
790
  let O;
790
791
  e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ o(rt, {}), e[17] = O) : O = e[17];
791
792
  let U;
@@ -794,16 +795,16 @@ function no(t) {
794
795
  e[21] !== S ? (P = /* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 }), e[21] = S, e[22] = P) : P = e[22];
795
796
  let R;
796
797
  e[23] !== T || e[24] !== S || e[25] !== i || e[26] !== y ? (R = y && /* @__PURE__ */ E(J, { children: [
797
- /* @__PURE__ */ E(Y, { sx: Ce.zoom, children: [
798
+ /* @__PURE__ */ E(Y, { sx: _e.zoom, children: [
798
799
  /* @__PURE__ */ o(Q, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: T }),
799
- i && /* @__PURE__ */ o(Ye, { sx: Ce.circularProgress, variant: "indeterminate", size: 24 })
800
+ i && /* @__PURE__ */ o(Ye, { sx: _e.circularProgress, variant: "indeterminate", size: 24 })
800
801
  ] }),
801
802
  /* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 })
802
803
  ] }), e[23] = T, e[24] = S, e[25] = i, e[26] = y, e[27] = R) : R = e[27];
803
804
  let V;
804
805
  e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ o(at, {}), e[28] = V) : V = e[28];
805
806
  let Z;
806
- e[29] !== C || e[30] !== l ? (Z = /* @__PURE__ */ o(ie, { onClick: C, "aria-label": "Decrease zoom", disabled: l, children: V }), e[29] = C, e[30] = l, e[31] = Z) : Z = e[31];
807
+ e[29] !== _ || e[30] !== l ? (Z = /* @__PURE__ */ o(ie, { onClick: _, "aria-label": "Decrease zoom", disabled: l, children: V }), e[29] = _, e[30] = l, e[31] = Z) : Z = e[31];
807
808
  let A;
808
809
  return e[32] !== m || e[33] !== I || e[34] !== D || e[35] !== U || e[36] !== P || e[37] !== R || e[38] !== Z ? (A = /* @__PURE__ */ E(Se, { sx: I, ...m, children: [
809
810
  D,
@@ -825,10 +826,10 @@ function kt(t) {
825
826
  function Dt(t, e) {
826
827
  return /* @__PURE__ */ E(pe, { container: !0, spacing: 1, children: [
827
828
  /* @__PURE__ */ E(pe, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
828
- /* @__PURE__ */ o(_e, { width: Ot(e) ? 72 : 48, height: 20 }),
829
- /* @__PURE__ */ o(_e, { width: 48, height: 8 })
829
+ /* @__PURE__ */ o(Ce, { width: Ot(e) ? 72 : 48, height: 20 }),
830
+ /* @__PURE__ */ o(Ce, { width: 48, height: 8 })
830
831
  ] }),
831
- /* @__PURE__ */ o(_e, { sx: {
832
+ /* @__PURE__ */ o(Ce, { sx: {
832
833
  height: Pt,
833
834
  marginTop: Lt,
834
835
  marginBottom: It,
@@ -941,10 +942,10 @@ const ke = {
941
942
  opacity: 0.5,
942
943
  pointerEvents: "none"
943
944
  }
944
- }, $t = {
945
+ }, Bt = {
945
946
  showMore: "Show More",
946
947
  showLess: "Show Less"
947
- }, Bt = [];
948
+ }, $t = [];
948
949
  function io(t) {
949
950
  const e = F(32), {
950
951
  data: s,
@@ -956,10 +957,10 @@ function io(t) {
956
957
  tooltipProps: c,
957
958
  onExpand: m,
958
959
  onItemClick: d
959
- } = t, u = s === void 0 ? Bt : s, f = l === void 0 ? !1 : l, v = n === void 0 ? 5 : n, w = r === void 0 ? $t : r, h = i === void 0 ? !0 : i, [g, L] = se(!1), M = Rt(f);
960
- let _;
961
- e[0] !== u || e[1] !== v || e[2] !== g ? (_ = g ? u : u.slice(0, v), e[0] = u, e[1] = v, e[2] = g, e[3] = _) : _ = e[3];
962
- const y = _;
960
+ } = t, u = s === void 0 ? $t : s, f = l === void 0 ? !1 : l, v = n === void 0 ? 5 : n, w = r === void 0 ? Bt : r, h = i === void 0 ? !0 : i, [g, L] = se(!1), M = Rt(f);
961
+ let C;
962
+ e[0] !== u || e[1] !== v || e[2] !== g ? (C = g ? u : u.slice(0, v), e[0] = u, e[1] = v, e[2] = g, e[3] = C) : C = e[3];
963
+ const y = C;
963
964
  let x;
964
965
  e[4] !== m || e[5] !== g ? (x = () => {
965
966
  L(!g), m?.(g);
@@ -994,15 +995,15 @@ function io(t) {
994
995
  } }, I.id), e[16] = d, e[17] = a, e[18] = h, e[19] = c, e[20] = p) : p = e[20], b = y.map(p), e[10] = y, e[11] = d, e[12] = a, e[13] = h, e[14] = c, e[15] = b;
995
996
  } else
996
997
  b = e[15];
997
- let C;
998
- e[21] !== b ? (C = /* @__PURE__ */ o(Ke, { id: "expandable-list", role: "list", children: b }), e[21] = b, e[22] = C) : C = e[22];
998
+ let _;
999
+ e[21] !== b ? (_ = /* @__PURE__ */ o(Ke, { id: "expandable-list", role: "list", children: b }), e[21] = b, e[22] = _) : _ = e[22];
999
1000
  let T;
1000
1001
  e[23] !== u.length || e[24] !== k || e[25] !== w || e[26] !== v || e[27] !== g ? (T = u.length > v && /* @__PURE__ */ o(Y, { my: 2, children: /* @__PURE__ */ o(ye, { onClick: k, variant: "text", color: "primary", "aria-expanded": g, "aria-controls": "expandable-list", children: g ? w.showLess : w.showMore }) }), e[23] = u.length, e[24] = k, e[25] = w, e[26] = v, e[27] = g, e[28] = T) : T = e[28];
1001
1002
  let S;
1002
- return e[29] !== T || e[30] !== C ? (S = /* @__PURE__ */ E(J, { children: [
1003
- C,
1003
+ return e[29] !== T || e[30] !== _ ? (S = /* @__PURE__ */ E(J, { children: [
1004
+ _,
1004
1005
  T
1005
- ] }), e[29] = T, e[30] = C, e[31] = S) : S = e[31], S;
1006
+ ] }), e[29] = T, e[30] = _, e[31] = S) : S = e[31], S;
1006
1007
  }
1007
1008
  const Ut = 288, ae = {
1008
1009
  root: {
@@ -1200,8 +1201,8 @@ function Ft(t) {
1200
1201
  vertical: g,
1201
1202
  horizontal: L
1202
1203
  }, e[9] = g, e[10] = L, e[11] = M) : M = e[11];
1203
- let _;
1204
- return e[12] !== l || e[13] !== s || e[14] !== c || e[15] !== a || e[16] !== u || e[17] !== f || e[18] !== h || e[19] !== M ? (_ = /* @__PURE__ */ o(Je, { sx: a, anchorEl: s, open: u, onClose: f, anchorOrigin: h, transformOrigin: M, slotProps: c, children: l }), e[12] = l, e[13] = s, e[14] = c, e[15] = a, e[16] = u, e[17] = f, e[18] = h, e[19] = M, e[20] = _) : _ = e[20], _;
1204
+ let C;
1205
+ return e[12] !== l || e[13] !== s || e[14] !== c || e[15] !== a || e[16] !== u || e[17] !== f || e[18] !== h || e[19] !== M ? (C = /* @__PURE__ */ o(Je, { sx: a, anchorEl: s, open: u, onClose: f, anchorOrigin: h, transformOrigin: M, slotProps: c, children: l }), e[12] = l, e[13] = s, e[14] = c, e[15] = a, e[16] = u, e[17] = f, e[18] = h, e[19] = M, e[20] = C) : C = e[20], C;
1205
1206
  }
1206
1207
  const Nt = [];
1207
1208
  function so(t) {
@@ -1213,21 +1214,21 @@ function so(t) {
1213
1214
  onChange: i,
1214
1215
  TooltipProps: a
1215
1216
  } = t, c = s === void 0 ? Nt : s, m = n === void 0 ? "bottom-right" : n, d = r === void 0 ? null : r, [u, f] = se(null), [v, w] = se(!1), h = Le(null), [g, L] = se(null), M = et();
1216
- let _;
1217
- e[0] !== M.breakpoints ? (_ = M.breakpoints.down("sm"), e[0] = M.breakpoints, e[1] = _) : _ = e[1];
1218
- const y = tt(_);
1217
+ let C;
1218
+ e[0] !== M.breakpoints ? (C = M.breakpoints.down("sm"), e[0] = M.breakpoints, e[1] = C) : C = e[1];
1219
+ const y = tt(C);
1219
1220
  let x;
1220
1221
  e[2] !== l ? (x = l ?? {}, e[2] = l, e[3] = x) : x = e[3];
1221
1222
  let k;
1222
1223
  e[4] !== x ? (k = we(Vt, x), e[4] = x, e[5] = k) : k = e[5];
1223
1224
  const b = k;
1224
- let C;
1225
+ let _;
1225
1226
  if (e[6] !== c || e[7] !== d) {
1226
1227
  let ne;
1227
- e[9] !== d ? (ne = (ge) => ge.id === d, e[9] = d, e[10] = ne) : ne = e[10], C = c.find(ne), e[6] = c, e[7] = d, e[8] = C;
1228
+ e[9] !== d ? (ne = (ge) => ge.id === d, e[9] = d, e[10] = ne) : ne = e[10], _ = c.find(ne), e[6] = c, e[7] = d, e[8] = _;
1228
1229
  } else
1229
- C = e[8];
1230
- const T = C;
1230
+ _ = e[8];
1231
+ const T = _;
1231
1232
  let S;
1232
1233
  e[11] !== c ? (S = Object.groupBy(c, Gt), e[11] = c, e[12] = S) : S = e[12];
1233
1234
  const p = S;
@@ -1257,7 +1258,7 @@ function so(t) {
1257
1258
  e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = () => {
1258
1259
  L(400);
1259
1260
  }, e[20] = A) : A = e[20];
1260
- const $ = A;
1261
+ const B = A;
1261
1262
  let W;
1262
1263
  e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = (ne) => {
1263
1264
  f(ne.currentTarget), w(!0);
@@ -1267,18 +1268,18 @@ function so(t) {
1267
1268
  e[22] !== G || e[23] !== N ? (j = /* @__PURE__ */ o(ie, { sx: ae.toggle, onClick: W, children: /* @__PURE__ */ o("img", { src: G, alt: N }) }), e[22] = G, e[23] = N, e[24] = j) : j = e[24];
1268
1269
  let z;
1269
1270
  e[25] !== a || e[26] !== b.toggle.title || e[27] !== j ? (z = /* @__PURE__ */ o(fe, { title: b.toggle.title, placement: "right", ...a, children: j }), e[25] = a, e[26] = b.toggle.title, e[27] = j, e[28] = z) : z = e[28];
1270
- const B = `translate3d(${m.endsWith("right") ? "-8px" : "8px"}, ${m.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
1271
+ const $ = `translate3d(${m.endsWith("right") ? "-8px" : "8px"}, ${m.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
1271
1272
  let H;
1272
- e[29] !== B ? (H = {
1273
+ e[29] !== $ ? (H = {
1273
1274
  paper: {
1274
1275
  sx: {
1275
1276
  ...ae.root,
1276
- transform: B
1277
+ transform: $
1277
1278
  },
1278
1279
  onMouseOver: Z,
1279
- onMouseLeave: $
1280
+ onMouseLeave: B
1280
1281
  }
1281
- }, e[29] = B, e[30] = H) : H = e[30];
1282
+ }, e[29] = $, e[30] = H) : H = e[30];
1282
1283
  const ee = !v;
1283
1284
  let X;
1284
1285
  e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = () => U(), e[31] = X) : X = e[31];
@@ -1313,6 +1314,7 @@ export {
1313
1314
  vt as AreaIcon,
1314
1315
  so as BasemapsUI,
1315
1316
  bt as BufferIcon,
1317
+ xo as CopyButton,
1316
1318
  co as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1317
1319
  oe as DEFAULT_MEASUREMENT_TOOLS_LABELS,
1318
1320
  xt as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,