@carto/ps-react-ui 2.1.2 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,11 +1,6 @@
1
- import qe, { useState as Ge, useMemo as me, useRef as Y, useCallback as pe, useEffect as B } from "react";
2
- import { Box as $, Typography as ge, List as xr, ListItemButton as _r, ListItemText as Rr, Button as Tr, styled as Ze, Tabs as Cr } from "@mui/material";
3
- import jr from "@deck.gl/react";
4
- import { Map as Sr } from "react-map-gl";
5
- import wr from "maplibre-gl";
6
- import { useJsApiLoader as Or } from "@react-google-maps/api";
7
- import { GoogleMapsOverlay as Pr } from "@deck.gl/google-maps";
8
- var ve = { exports: {} }, q = {};
1
+ import Fe, { useState as pr, useMemo as hr, useRef as z, useEffect as je, useCallback as Oe } from "react";
2
+ import { Box as D, Typography as ne, List as gr, ListItemButton as yr, ListItemText as mr, Button as br, styled as De, Tabs as Er } from "@mui/material";
3
+ var te = { exports: {} }, L = {};
9
4
  /**
10
5
  * @license React
11
6
  * react-jsx-runtime.production.min.js
@@ -15,25 +10,25 @@ var ve = { exports: {} }, q = {};
15
10
  * This source code is licensed under the MIT license found in the
16
11
  * LICENSE file in the root directory of this source tree.
17
12
  */
18
- var Ye;
19
- function kr() {
20
- if (Ye)
21
- return q;
22
- Ye = 1;
23
- var t = qe, a = Symbol.for("react.element"), l = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, y = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
24
- function S(x, p, g) {
25
- var h, w = {}, m = null, R = null;
26
- g !== void 0 && (m = "" + g), p.key !== void 0 && (m = "" + p.key), p.ref !== void 0 && (R = p.ref);
27
- for (h in p)
28
- i.call(p, h) && !v.hasOwnProperty(h) && (w[h] = p[h]);
29
- if (x && x.defaultProps)
30
- for (h in p = x.defaultProps, p)
31
- w[h] === void 0 && (w[h] = p[h]);
32
- return { $$typeof: a, type: x, key: m, ref: R, props: w, _owner: y.current };
13
+ var Pe;
14
+ function Rr() {
15
+ if (Pe)
16
+ return L;
17
+ Pe = 1;
18
+ var n = Fe, o = Symbol.for("react.element"), f = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, x = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, T = { key: !0, ref: !0, __self: !0, __source: !0 };
19
+ function C(b, d, m) {
20
+ var g, S = {}, h = null, _ = null;
21
+ m !== void 0 && (h = "" + m), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (_ = d.ref);
22
+ for (g in d)
23
+ u.call(d, g) && !T.hasOwnProperty(g) && (S[g] = d[g]);
24
+ if (b && b.defaultProps)
25
+ for (g in d = b.defaultProps, d)
26
+ S[g] === void 0 && (S[g] = d[g]);
27
+ return { $$typeof: o, type: b, key: h, ref: _, props: S, _owner: x.current };
33
28
  }
34
- return q.Fragment = l, q.jsx = S, q.jsxs = S, q;
29
+ return L.Fragment = f, L.jsx = C, L.jsxs = C, L;
35
30
  }
36
- var G = {};
31
+ var Y = {};
37
32
  /**
38
33
  * @license React
39
34
  * react-jsx-runtime.development.js
@@ -43,91 +38,91 @@ var G = {};
43
38
  * This source code is licensed under the MIT license found in the
44
39
  * LICENSE file in the root directory of this source tree.
45
40
  */
46
- var Be;
47
- function Dr() {
48
- return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
49
- var t = qe, a = Symbol.for("react.element"), l = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), x = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), O = Symbol.iterator, j = "@@iterator";
50
- function b(e) {
41
+ var ke;
42
+ function _r() {
43
+ return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
44
+ var n = Fe, o = Symbol.for("react.element"), f = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), b = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), O = Symbol.iterator, w = "@@iterator";
45
+ function J(e) {
51
46
  if (e === null || typeof e != "object")
52
47
  return null;
53
- var r = O && e[O] || e[j];
48
+ var r = O && e[O] || e[w];
54
49
  return typeof r == "function" ? r : null;
55
50
  }
56
- var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
57
- function T(e) {
51
+ var A = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
+ function E(e) {
58
53
  {
59
- for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
60
- n[o - 1] = arguments[o];
61
- L("error", e, n);
54
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
55
+ t[a - 1] = arguments[a];
56
+ Ie("error", e, t);
62
57
  }
63
58
  }
64
- function L(e, r, n) {
59
+ function Ie(e, r, t) {
65
60
  {
66
- var o = D.ReactDebugCurrentFrame, c = o.getStackAddendum();
67
- c !== "" && (r += "%s", n = n.concat([c]));
68
- var f = n.map(function(u) {
69
- return String(u);
61
+ var a = A.ReactDebugCurrentFrame, l = a.getStackAddendum();
62
+ l !== "" && (r += "%s", t = t.concat([l]));
63
+ var c = t.map(function(s) {
64
+ return String(s);
70
65
  });
71
- f.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, f);
66
+ c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
72
67
  }
73
68
  }
74
- var te = !1, ne = !1, Z = !1, J = !1, N = !1, z;
75
- z = Symbol.for("react.module.reference");
76
- function ae(e) {
77
- return !!(typeof e == "string" || typeof e == "function" || e === i || e === v || N || e === y || e === g || e === h || J || e === R || te || ne || Z || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === w || e.$$typeof === S || e.$$typeof === x || e.$$typeof === p || // This needs to include all possible module reference object
69
+ var $e = !1, We = !1, Me = !1, Le = !1, Ye = !1, ae;
70
+ ae = Symbol.for("react.module.reference");
71
+ function Ve(e) {
72
+ return !!(typeof e == "string" || typeof e == "function" || e === u || e === T || Ye || e === x || e === m || e === g || Le || e === _ || $e || We || Me || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === S || e.$$typeof === C || e.$$typeof === b || e.$$typeof === d || // This needs to include all possible module reference object
78
73
  // types supported by any Flight configuration anywhere since
79
74
  // we don't know which Flight build this will end up being used
80
75
  // with.
81
- e.$$typeof === z || e.getModuleId !== void 0));
76
+ e.$$typeof === ae || e.getModuleId !== void 0));
82
77
  }
83
- function K(e, r, n) {
84
- var o = e.displayName;
85
- if (o)
86
- return o;
87
- var c = r.displayName || r.name || "";
88
- return c !== "" ? n + "(" + c + ")" : n;
78
+ function Ne(e, r, t) {
79
+ var a = e.displayName;
80
+ if (a)
81
+ return a;
82
+ var l = r.displayName || r.name || "";
83
+ return l !== "" ? t + "(" + l + ")" : t;
89
84
  }
90
- function I(e) {
85
+ function oe(e) {
91
86
  return e.displayName || "Context";
92
87
  }
93
- function C(e) {
88
+ function P(e) {
94
89
  if (e == null)
95
90
  return null;
96
- if (typeof e.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
+ if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
97
92
  return e.displayName || e.name || null;
98
93
  if (typeof e == "string")
99
94
  return e;
100
95
  switch (e) {
101
- case i:
96
+ case u:
102
97
  return "Fragment";
103
- case l:
98
+ case f:
104
99
  return "Portal";
105
- case v:
100
+ case T:
106
101
  return "Profiler";
107
- case y:
102
+ case x:
108
103
  return "StrictMode";
109
- case g:
104
+ case m:
110
105
  return "Suspense";
111
- case h:
106
+ case g:
112
107
  return "SuspenseList";
113
108
  }
114
109
  if (typeof e == "object")
115
110
  switch (e.$$typeof) {
116
- case x:
111
+ case b:
117
112
  var r = e;
118
- return I(r) + ".Consumer";
113
+ return oe(r) + ".Consumer";
114
+ case C:
115
+ var t = e;
116
+ return oe(t._context) + ".Provider";
117
+ case d:
118
+ return Ne(e, e.render, "ForwardRef");
119
119
  case S:
120
- var n = e;
121
- return I(n._context) + ".Provider";
122
- case p:
123
- return K(e, e.render, "ForwardRef");
124
- case w:
125
- var o = e.displayName || null;
126
- return o !== null ? o : C(e.type) || "Memo";
127
- case m: {
128
- var c = e, f = c._payload, u = c._init;
120
+ var a = e.displayName || null;
121
+ return a !== null ? a : P(e.type) || "Memo";
122
+ case h: {
123
+ var l = e, c = l._payload, s = l._init;
129
124
  try {
130
- return C(u(f));
125
+ return P(s(c));
131
126
  } catch {
132
127
  return null;
133
128
  }
@@ -135,18 +130,18 @@ function Dr() {
135
130
  }
136
131
  return null;
137
132
  }
138
- var F = Object.assign, k = 0, be, Ee, xe, _e, Re, Te, Ce;
139
- function je() {
133
+ var F = Object.assign, W = 0, ie, se, ue, le, ce, fe, de;
134
+ function ve() {
140
135
  }
141
- je.__reactDisabledLog = !0;
142
- function Ke() {
136
+ ve.__reactDisabledLog = !0;
137
+ function Be() {
143
138
  {
144
- if (k === 0) {
145
- be = console.log, Ee = console.info, xe = console.warn, _e = console.error, Re = console.group, Te = console.groupCollapsed, Ce = console.groupEnd;
139
+ if (W === 0) {
140
+ ie = console.log, se = console.info, ue = console.warn, le = console.error, ce = console.group, fe = console.groupCollapsed, de = console.groupEnd;
146
141
  var e = {
147
142
  configurable: !0,
148
143
  enumerable: !0,
149
- value: je,
144
+ value: ve,
150
145
  writable: !0
151
146
  };
152
147
  Object.defineProperties(console, {
@@ -159,12 +154,12 @@ function Dr() {
159
154
  groupEnd: e
160
155
  });
161
156
  }
162
- k++;
157
+ W++;
163
158
  }
164
159
  }
165
- function He() {
160
+ function Ue() {
166
161
  {
167
- if (k--, k === 0) {
162
+ if (W--, W === 0) {
168
163
  var e = {
169
164
  configurable: !0,
170
165
  enumerable: !0,
@@ -172,323 +167,323 @@ function Dr() {
172
167
  };
173
168
  Object.defineProperties(console, {
174
169
  log: F({}, e, {
175
- value: be
170
+ value: ie
176
171
  }),
177
172
  info: F({}, e, {
178
- value: Ee
173
+ value: se
179
174
  }),
180
175
  warn: F({}, e, {
181
- value: xe
176
+ value: ue
182
177
  }),
183
178
  error: F({}, e, {
184
- value: _e
179
+ value: le
185
180
  }),
186
181
  group: F({}, e, {
187
- value: Re
182
+ value: ce
188
183
  }),
189
184
  groupCollapsed: F({}, e, {
190
- value: Te
185
+ value: fe
191
186
  }),
192
187
  groupEnd: F({}, e, {
193
- value: Ce
188
+ value: de
194
189
  })
195
190
  });
196
191
  }
197
- k < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
+ W < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
198
193
  }
199
194
  }
200
- var oe = D.ReactCurrentDispatcher, ie;
201
- function H(e, r, n) {
195
+ var G = A.ReactCurrentDispatcher, K;
196
+ function V(e, r, t) {
202
197
  {
203
- if (ie === void 0)
198
+ if (K === void 0)
204
199
  try {
205
200
  throw Error();
206
- } catch (c) {
207
- var o = c.stack.trim().match(/\n( *(at )?)/);
208
- ie = o && o[1] || "";
201
+ } catch (l) {
202
+ var a = l.stack.trim().match(/\n( *(at )?)/);
203
+ K = a && a[1] || "";
209
204
  }
210
205
  return `
211
- ` + ie + e;
206
+ ` + K + e;
212
207
  }
213
208
  }
214
- var se = !1, X;
209
+ var X = !1, N;
215
210
  {
216
- var Xe = typeof WeakMap == "function" ? WeakMap : Map;
217
- X = new Xe();
211
+ var qe = typeof WeakMap == "function" ? WeakMap : Map;
212
+ N = new qe();
218
213
  }
219
- function Se(e, r) {
220
- if (!e || se)
214
+ function pe(e, r) {
215
+ if (!e || X)
221
216
  return "";
222
217
  {
223
- var n = X.get(e);
224
- if (n !== void 0)
225
- return n;
218
+ var t = N.get(e);
219
+ if (t !== void 0)
220
+ return t;
226
221
  }
227
- var o;
228
- se = !0;
229
- var c = Error.prepareStackTrace;
222
+ var a;
223
+ X = !0;
224
+ var l = Error.prepareStackTrace;
230
225
  Error.prepareStackTrace = void 0;
231
- var f;
232
- f = oe.current, oe.current = null, Ke();
226
+ var c;
227
+ c = G.current, G.current = null, Be();
233
228
  try {
234
229
  if (r) {
235
- var u = function() {
230
+ var s = function() {
236
231
  throw Error();
237
232
  };
238
- if (Object.defineProperty(u.prototype, "props", {
233
+ if (Object.defineProperty(s.prototype, "props", {
239
234
  set: function() {
240
235
  throw Error();
241
236
  }
242
237
  }), typeof Reflect == "object" && Reflect.construct) {
243
238
  try {
244
- Reflect.construct(u, []);
245
- } catch (M) {
246
- o = M;
239
+ Reflect.construct(s, []);
240
+ } catch (k) {
241
+ a = k;
247
242
  }
248
- Reflect.construct(e, [], u);
243
+ Reflect.construct(e, [], s);
249
244
  } else {
250
245
  try {
251
- u.call();
252
- } catch (M) {
253
- o = M;
246
+ s.call();
247
+ } catch (k) {
248
+ a = k;
254
249
  }
255
- e.call(u.prototype);
250
+ e.call(s.prototype);
256
251
  }
257
252
  } else {
258
253
  try {
259
254
  throw Error();
260
- } catch (M) {
261
- o = M;
255
+ } catch (k) {
256
+ a = k;
262
257
  }
263
258
  e();
264
259
  }
265
- } catch (M) {
266
- if (M && o && typeof M.stack == "string") {
267
- for (var s = M.stack.split(`
268
- `), P = o.stack.split(`
269
- `), E = s.length - 1, _ = P.length - 1; E >= 1 && _ >= 0 && s[E] !== P[_]; )
270
- _--;
271
- for (; E >= 1 && _ >= 0; E--, _--)
272
- if (s[E] !== P[_]) {
273
- if (E !== 1 || _ !== 1)
260
+ } catch (k) {
261
+ if (k && a && typeof k.stack == "string") {
262
+ for (var i = k.stack.split(`
263
+ `), R = a.stack.split(`
264
+ `), v = i.length - 1, p = R.length - 1; v >= 1 && p >= 0 && i[v] !== R[p]; )
265
+ p--;
266
+ for (; v >= 1 && p >= 0; v--, p--)
267
+ if (i[v] !== R[p]) {
268
+ if (v !== 1 || p !== 1)
274
269
  do
275
- if (E--, _--, _ < 0 || s[E] !== P[_]) {
276
- var A = `
277
- ` + s[E].replace(" at new ", " at ");
278
- return e.displayName && A.includes("<anonymous>") && (A = A.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, A), A;
270
+ if (v--, p--, p < 0 || i[v] !== R[p]) {
271
+ var j = `
272
+ ` + i[v].replace(" at new ", " at ");
273
+ return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, j), j;
279
274
  }
280
- while (E >= 1 && _ >= 0);
275
+ while (v >= 1 && p >= 0);
281
276
  break;
282
277
  }
283
278
  }
284
279
  } finally {
285
- se = !1, oe.current = f, He(), Error.prepareStackTrace = c;
280
+ X = !1, G.current = c, Ue(), Error.prepareStackTrace = l;
286
281
  }
287
- var W = e ? e.displayName || e.name : "", We = W ? H(W) : "";
288
- return typeof e == "function" && X.set(e, We), We;
282
+ var $ = e ? e.displayName || e.name : "", we = $ ? V($) : "";
283
+ return typeof e == "function" && N.set(e, we), we;
289
284
  }
290
- function Qe(e, r, n) {
291
- return Se(e, !1);
285
+ function ze(e, r, t) {
286
+ return pe(e, !1);
292
287
  }
293
- function er(e) {
288
+ function Je(e) {
294
289
  var r = e.prototype;
295
290
  return !!(r && r.isReactComponent);
296
291
  }
297
- function Q(e, r, n) {
292
+ function B(e, r, t) {
298
293
  if (e == null)
299
294
  return "";
300
295
  if (typeof e == "function")
301
- return Se(e, er(e));
296
+ return pe(e, Je(e));
302
297
  if (typeof e == "string")
303
- return H(e);
298
+ return V(e);
304
299
  switch (e) {
300
+ case m:
301
+ return V("Suspense");
305
302
  case g:
306
- return H("Suspense");
307
- case h:
308
- return H("SuspenseList");
303
+ return V("SuspenseList");
309
304
  }
310
305
  if (typeof e == "object")
311
306
  switch (e.$$typeof) {
312
- case p:
313
- return Qe(e.render);
314
- case w:
315
- return Q(e.type, r, n);
316
- case m: {
317
- var o = e, c = o._payload, f = o._init;
307
+ case d:
308
+ return ze(e.render);
309
+ case S:
310
+ return B(e.type, r, t);
311
+ case h: {
312
+ var a = e, l = a._payload, c = a._init;
318
313
  try {
319
- return Q(f(c), r, n);
314
+ return B(c(l), r, t);
320
315
  } catch {
321
316
  }
322
317
  }
323
318
  }
324
319
  return "";
325
320
  }
326
- var ee = Object.prototype.hasOwnProperty, we = {}, Oe = D.ReactDebugCurrentFrame;
327
- function re(e) {
321
+ var U = Object.prototype.hasOwnProperty, he = {}, ge = A.ReactDebugCurrentFrame;
322
+ function q(e) {
328
323
  if (e) {
329
- var r = e._owner, n = Q(e.type, e._source, r ? r.type : null);
330
- Oe.setExtraStackFrame(n);
324
+ var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
325
+ ge.setExtraStackFrame(t);
331
326
  } else
332
- Oe.setExtraStackFrame(null);
327
+ ge.setExtraStackFrame(null);
333
328
  }
334
- function rr(e, r, n, o, c) {
329
+ function Ge(e, r, t, a, l) {
335
330
  {
336
- var f = Function.call.bind(ee);
337
- for (var u in e)
338
- if (f(e, u)) {
339
- var s = void 0;
331
+ var c = Function.call.bind(U);
332
+ for (var s in e)
333
+ if (c(e, s)) {
334
+ var i = void 0;
340
335
  try {
341
- if (typeof e[u] != "function") {
342
- var P = Error((o || "React class") + ": " + n + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
343
- throw P.name = "Invariant Violation", P;
336
+ if (typeof e[s] != "function") {
337
+ var R = Error((a || "React class") + ": " + t + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
+ throw R.name = "Invariant Violation", R;
344
339
  }
345
- s = e[u](r, u, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
346
- } catch (E) {
347
- s = E;
340
+ i = e[s](r, s, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
+ } catch (v) {
342
+ i = v;
348
343
  }
349
- s && !(s instanceof Error) && (re(c), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", n, u, typeof s), re(null)), s instanceof Error && !(s.message in we) && (we[s.message] = !0, re(c), T("Failed %s type: %s", n, s.message), re(null));
344
+ i && !(i instanceof Error) && (q(l), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", t, s, typeof i), q(null)), i instanceof Error && !(i.message in he) && (he[i.message] = !0, q(l), E("Failed %s type: %s", t, i.message), q(null));
350
345
  }
351
346
  }
352
347
  }
353
- var tr = Array.isArray;
354
- function ue(e) {
355
- return tr(e);
348
+ var Ke = Array.isArray;
349
+ function H(e) {
350
+ return Ke(e);
356
351
  }
357
- function nr(e) {
352
+ function Xe(e) {
358
353
  {
359
- var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
360
- return n;
354
+ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
355
+ return t;
361
356
  }
362
357
  }
363
- function ar(e) {
358
+ function He(e) {
364
359
  try {
365
- return Pe(e), !1;
360
+ return ye(e), !1;
366
361
  } catch {
367
362
  return !0;
368
363
  }
369
364
  }
370
- function Pe(e) {
365
+ function ye(e) {
371
366
  return "" + e;
372
367
  }
373
- function ke(e) {
374
- if (ar(e))
375
- return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)), Pe(e);
368
+ function me(e) {
369
+ if (He(e))
370
+ return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), ye(e);
376
371
  }
377
- var U = D.ReactCurrentOwner, or = {
372
+ var M = A.ReactCurrentOwner, Ze = {
378
373
  key: !0,
379
374
  ref: !0,
380
375
  __self: !0,
381
376
  __source: !0
382
- }, De, Ie, le;
383
- le = {};
384
- function ir(e) {
385
- if (ee.call(e, "ref")) {
377
+ }, be, Ee, Z;
378
+ Z = {};
379
+ function Qe(e) {
380
+ if (U.call(e, "ref")) {
386
381
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
387
382
  if (r && r.isReactWarning)
388
383
  return !1;
389
384
  }
390
385
  return e.ref !== void 0;
391
386
  }
392
- function sr(e) {
393
- if (ee.call(e, "key")) {
387
+ function er(e) {
388
+ if (U.call(e, "key")) {
394
389
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
395
390
  if (r && r.isReactWarning)
396
391
  return !1;
397
392
  }
398
393
  return e.key !== void 0;
399
394
  }
400
- function ur(e, r) {
401
- if (typeof e.ref == "string" && U.current && r && U.current.stateNode !== r) {
402
- var n = C(U.current.type);
403
- le[n] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(U.current.type), e.ref), le[n] = !0);
395
+ function rr(e, r) {
396
+ if (typeof e.ref == "string" && M.current && r && M.current.stateNode !== r) {
397
+ var t = P(M.current.type);
398
+ Z[t] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(M.current.type), e.ref), Z[t] = !0);
404
399
  }
405
400
  }
406
- function lr(e, r) {
401
+ function tr(e, r) {
407
402
  {
408
- var n = function() {
409
- De || (De = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
403
+ var t = function() {
404
+ be || (be = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
410
405
  };
411
- n.isReactWarning = !0, Object.defineProperty(e, "key", {
412
- get: n,
406
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
407
+ get: t,
413
408
  configurable: !0
414
409
  });
415
410
  }
416
411
  }
417
- function cr(e, r) {
412
+ function nr(e, r) {
418
413
  {
419
- var n = function() {
420
- Ie || (Ie = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
414
+ var t = function() {
415
+ Ee || (Ee = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
421
416
  };
422
- n.isReactWarning = !0, Object.defineProperty(e, "ref", {
423
- get: n,
417
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
418
+ get: t,
424
419
  configurable: !0
425
420
  });
426
421
  }
427
422
  }
428
- var fr = function(e, r, n, o, c, f, u) {
429
- var s = {
423
+ var ar = function(e, r, t, a, l, c, s) {
424
+ var i = {
430
425
  // This tag allows us to uniquely identify this as a React Element
431
- $$typeof: a,
426
+ $$typeof: o,
432
427
  // Built-in properties that belong on the element
433
428
  type: e,
434
429
  key: r,
435
- ref: n,
436
- props: u,
430
+ ref: t,
431
+ props: s,
437
432
  // Record the component responsible for creating this element.
438
- _owner: f
433
+ _owner: c
439
434
  };
440
- return s._store = {}, Object.defineProperty(s._store, "validated", {
435
+ return i._store = {}, Object.defineProperty(i._store, "validated", {
441
436
  configurable: !1,
442
437
  enumerable: !1,
443
438
  writable: !0,
444
439
  value: !1
445
- }), Object.defineProperty(s, "_self", {
440
+ }), Object.defineProperty(i, "_self", {
446
441
  configurable: !1,
447
442
  enumerable: !1,
448
443
  writable: !1,
449
- value: o
450
- }), Object.defineProperty(s, "_source", {
444
+ value: a
445
+ }), Object.defineProperty(i, "_source", {
451
446
  configurable: !1,
452
447
  enumerable: !1,
453
448
  writable: !1,
454
- value: c
455
- }), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
449
+ value: l
450
+ }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
456
451
  };
457
- function dr(e, r, n, o, c) {
452
+ function or(e, r, t, a, l) {
458
453
  {
459
- var f, u = {}, s = null, P = null;
460
- n !== void 0 && (ke(n), s = "" + n), sr(r) && (ke(r.key), s = "" + r.key), ir(r) && (P = r.ref, ur(r, c));
461
- for (f in r)
462
- ee.call(r, f) && !or.hasOwnProperty(f) && (u[f] = r[f]);
454
+ var c, s = {}, i = null, R = null;
455
+ t !== void 0 && (me(t), i = "" + t), er(r) && (me(r.key), i = "" + r.key), Qe(r) && (R = r.ref, rr(r, l));
456
+ for (c in r)
457
+ U.call(r, c) && !Ze.hasOwnProperty(c) && (s[c] = r[c]);
463
458
  if (e && e.defaultProps) {
464
- var E = e.defaultProps;
465
- for (f in E)
466
- u[f] === void 0 && (u[f] = E[f]);
459
+ var v = e.defaultProps;
460
+ for (c in v)
461
+ s[c] === void 0 && (s[c] = v[c]);
467
462
  }
468
- if (s || P) {
469
- var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
470
- s && lr(u, _), P && cr(u, _);
463
+ if (i || R) {
464
+ var p = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
465
+ i && tr(s, p), R && nr(s, p);
471
466
  }
472
- return fr(e, s, P, c, o, U.current, u);
467
+ return ar(e, i, R, l, a, M.current, s);
473
468
  }
474
469
  }
475
- var ce = D.ReactCurrentOwner, Ae = D.ReactDebugCurrentFrame;
476
- function V(e) {
470
+ var Q = A.ReactCurrentOwner, Re = A.ReactDebugCurrentFrame;
471
+ function I(e) {
477
472
  if (e) {
478
- var r = e._owner, n = Q(e.type, e._source, r ? r.type : null);
479
- Ae.setExtraStackFrame(n);
473
+ var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
474
+ Re.setExtraStackFrame(t);
480
475
  } else
481
- Ae.setExtraStackFrame(null);
476
+ Re.setExtraStackFrame(null);
482
477
  }
483
- var fe;
484
- fe = !1;
485
- function de(e) {
486
- return typeof e == "object" && e !== null && e.$$typeof === a;
478
+ var ee;
479
+ ee = !1;
480
+ function re(e) {
481
+ return typeof e == "object" && e !== null && e.$$typeof === o;
487
482
  }
488
- function Fe() {
483
+ function _e() {
489
484
  {
490
- if (ce.current) {
491
- var e = C(ce.current.type);
485
+ if (Q.current) {
486
+ var e = P(Q.current.type);
492
487
  if (e)
493
488
  return `
494
489
 
@@ -497,431 +492,247 @@ Check the render method of \`` + e + "`.";
497
492
  return "";
498
493
  }
499
494
  }
500
- function pr(e) {
495
+ function ir(e) {
501
496
  {
502
497
  if (e !== void 0) {
503
- var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
498
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
504
499
  return `
505
500
 
506
- Check your code at ` + r + ":" + n + ".";
501
+ Check your code at ` + r + ":" + t + ".";
507
502
  }
508
503
  return "";
509
504
  }
510
505
  }
511
- var Me = {};
512
- function vr(e) {
506
+ var xe = {};
507
+ function sr(e) {
513
508
  {
514
- var r = Fe();
509
+ var r = _e();
515
510
  if (!r) {
516
- var n = typeof e == "string" ? e : e.displayName || e.name;
517
- n && (r = `
511
+ var t = typeof e == "string" ? e : e.displayName || e.name;
512
+ t && (r = `
518
513
 
519
- Check the top-level render call using <` + n + ">.");
514
+ Check the top-level render call using <` + t + ">.");
520
515
  }
521
516
  return r;
522
517
  }
523
518
  }
524
- function Le(e, r) {
519
+ function Te(e, r) {
525
520
  {
526
521
  if (!e._store || e._store.validated || e.key != null)
527
522
  return;
528
523
  e._store.validated = !0;
529
- var n = vr(r);
530
- if (Me[n])
524
+ var t = sr(r);
525
+ if (xe[t])
531
526
  return;
532
- Me[n] = !0;
533
- var o = "";
534
- e && e._owner && e._owner !== ce.current && (o = " It was passed a child from " + C(e._owner.type) + "."), V(e), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), V(null);
527
+ xe[t] = !0;
528
+ var a = "";
529
+ e && e._owner && e._owner !== Q.current && (a = " It was passed a child from " + P(e._owner.type) + "."), I(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), I(null);
535
530
  }
536
531
  }
537
- function $e(e, r) {
532
+ function Ce(e, r) {
538
533
  {
539
534
  if (typeof e != "object")
540
535
  return;
541
- if (ue(e))
542
- for (var n = 0; n < e.length; n++) {
543
- var o = e[n];
544
- de(o) && Le(o, r);
536
+ if (H(e))
537
+ for (var t = 0; t < e.length; t++) {
538
+ var a = e[t];
539
+ re(a) && Te(a, r);
545
540
  }
546
- else if (de(e))
541
+ else if (re(e))
547
542
  e._store && (e._store.validated = !0);
548
543
  else if (e) {
549
- var c = b(e);
550
- if (typeof c == "function" && c !== e.entries)
551
- for (var f = c.call(e), u; !(u = f.next()).done; )
552
- de(u.value) && Le(u.value, r);
544
+ var l = J(e);
545
+ if (typeof l == "function" && l !== e.entries)
546
+ for (var c = l.call(e), s; !(s = c.next()).done; )
547
+ re(s.value) && Te(s.value, r);
553
548
  }
554
549
  }
555
550
  }
556
- function mr(e) {
551
+ function ur(e) {
557
552
  {
558
553
  var r = e.type;
559
554
  if (r == null || typeof r == "string")
560
555
  return;
561
- var n;
556
+ var t;
562
557
  if (typeof r == "function")
563
- n = r.propTypes;
564
- else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
558
+ t = r.propTypes;
559
+ else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
565
560
  // Inner props are checked in the reconciler.
566
- r.$$typeof === w))
567
- n = r.propTypes;
561
+ r.$$typeof === S))
562
+ t = r.propTypes;
568
563
  else
569
564
  return;
570
- if (n) {
571
- var o = C(r);
572
- rr(n, e.props, "prop", o, e);
573
- } else if (r.PropTypes !== void 0 && !fe) {
574
- fe = !0;
575
- var c = C(r);
576
- T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", c || "Unknown");
565
+ if (t) {
566
+ var a = P(r);
567
+ Ge(t, e.props, "prop", a, e);
568
+ } else if (r.PropTypes !== void 0 && !ee) {
569
+ ee = !0;
570
+ var l = P(r);
571
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
577
572
  }
578
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
579
574
  }
580
575
  }
581
- function gr(e) {
576
+ function lr(e) {
582
577
  {
583
- for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
584
- var o = r[n];
585
- if (o !== "children" && o !== "key") {
586
- V(e), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), V(null);
578
+ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
579
+ var a = r[t];
580
+ if (a !== "children" && a !== "key") {
581
+ I(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), I(null);
587
582
  break;
588
583
  }
589
584
  }
590
- e.ref !== null && (V(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
585
+ e.ref !== null && (I(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), I(null));
591
586
  }
592
587
  }
593
- function Ve(e, r, n, o, c, f) {
588
+ function Se(e, r, t, a, l, c) {
594
589
  {
595
- var u = ae(e);
596
- if (!u) {
597
- var s = "";
598
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
599
- var P = pr(c);
600
- P ? s += P : s += Fe();
601
- var E;
602
- e === null ? E = "null" : ue(e) ? E = "array" : e !== void 0 && e.$$typeof === a ? (E = "<" + (C(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, s);
590
+ var s = Ve(e);
591
+ if (!s) {
592
+ var i = "";
593
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
594
+ var R = ir(l);
595
+ R ? i += R : i += _e();
596
+ var v;
597
+ e === null ? v = "null" : H(e) ? v = "array" : e !== void 0 && e.$$typeof === o ? (v = "<" + (P(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : v = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", v, i);
603
598
  }
604
- var _ = dr(e, r, n, c, f);
605
- if (_ == null)
606
- return _;
607
- if (u) {
608
- var A = r.children;
609
- if (A !== void 0)
610
- if (o)
611
- if (ue(A)) {
612
- for (var W = 0; W < A.length; W++)
613
- $e(A[W], e);
614
- Object.freeze && Object.freeze(A);
599
+ var p = or(e, r, t, l, c);
600
+ if (p == null)
601
+ return p;
602
+ if (s) {
603
+ var j = r.children;
604
+ if (j !== void 0)
605
+ if (a)
606
+ if (H(j)) {
607
+ for (var $ = 0; $ < j.length; $++)
608
+ Ce(j[$], e);
609
+ Object.freeze && Object.freeze(j);
615
610
  } else
616
- T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
611
+ E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
617
612
  else
618
- $e(A, e);
613
+ Ce(j, e);
619
614
  }
620
- return e === i ? gr(_) : mr(_), _;
615
+ return e === u ? lr(p) : ur(p), p;
621
616
  }
622
617
  }
623
- function hr(e, r, n) {
624
- return Ve(e, r, n, !0);
618
+ function cr(e, r, t) {
619
+ return Se(e, r, t, !0);
625
620
  }
626
- function yr(e, r, n) {
627
- return Ve(e, r, n, !1);
621
+ function fr(e, r, t) {
622
+ return Se(e, r, t, !1);
628
623
  }
629
- var br = yr, Er = hr;
630
- G.Fragment = i, G.jsx = br, G.jsxs = Er;
631
- }()), G;
624
+ var dr = fr, vr = cr;
625
+ Y.Fragment = u, Y.jsx = dr, Y.jsxs = vr;
626
+ }()), Y;
632
627
  }
633
- process.env.NODE_ENV === "production" ? ve.exports = kr() : ve.exports = Dr();
634
- var d = ve.exports;
635
- const Ir = {
628
+ process.env.NODE_ENV === "production" ? te.exports = Rr() : te.exports = _r();
629
+ var y = te.exports;
630
+ const xr = {
636
631
  box: {
637
- marginLeft: ({ spacing: t }) => t(1)
632
+ marginLeft: ({ spacing: n }) => n(1)
638
633
  }
639
634
  };
640
- function et({
641
- items: t,
642
- itemsToShow: a = 10,
643
- label: l,
644
- ListProps: i,
645
- texts: { showMore: y = "View all", showLess: v = "Collapse list" } = {},
646
- unit: S,
647
- formatter: x,
648
- onRowClick: p
635
+ function Dr({
636
+ items: n,
637
+ itemsToShow: o = 10,
638
+ label: f,
639
+ ListProps: u,
640
+ texts: { showMore: x = "View all", showLess: T = "Collapse list" } = {},
641
+ unit: C,
642
+ formatter: b,
643
+ onRowClick: d
649
644
  }) {
650
- const [g, h] = Ge(!0), w = () => {
651
- h(!g);
652
- }, m = (j) => x ? x(j) : j, R = me(() => {
653
- const j = g ? a : t.length;
654
- return t.slice(0, j);
655
- }, [t, a, g]), O = t.length > a;
656
- return /* @__PURE__ */ d.jsxs($, { width: "100%", height: "auto", children: [
657
- l && /* @__PURE__ */ d.jsx(ge, { variant: "caption", color: "textSecondary", gutterBottom: !0, children: l }),
658
- /* @__PURE__ */ d.jsx(xr, { ...i, component: "ul", children: R.map((j) => /* @__PURE__ */ d.jsxs(
659
- _r,
645
+ const [m, g] = pr(!0), S = () => {
646
+ g(!m);
647
+ }, h = (w) => b ? b(w) : w, _ = hr(() => {
648
+ const w = m ? o : n.length;
649
+ return n.slice(0, w);
650
+ }, [n, o, m]), O = n.length > o;
651
+ return /* @__PURE__ */ y.jsxs(D, { width: "100%", height: "auto", children: [
652
+ f && /* @__PURE__ */ y.jsx(ne, { variant: "caption", color: "textSecondary", gutterBottom: !0, children: f }),
653
+ /* @__PURE__ */ y.jsx(gr, { ...u, component: "ul", children: _.map((w) => /* @__PURE__ */ y.jsxs(
654
+ yr,
660
655
  {
661
656
  divider: !0,
662
- onClick: (b) => p?.(b, j),
657
+ onClick: (J) => d?.(J, w),
663
658
  children: [
664
- /* @__PURE__ */ d.jsx(Rr, { primary: j.name }),
665
- /* @__PURE__ */ d.jsx(Ar, { value: m(j.value), unit: S })
659
+ /* @__PURE__ */ y.jsx(mr, { primary: w.name }),
660
+ /* @__PURE__ */ y.jsx(Tr, { value: h(w.value), unit: C })
666
661
  ]
667
662
  },
668
- j.id
663
+ w.id
669
664
  )) }),
670
- O && /* @__PURE__ */ d.jsx(
671
- Tr,
665
+ O && /* @__PURE__ */ y.jsx(
666
+ br,
672
667
  {
673
668
  variant: "text",
674
669
  color: "primary",
675
670
  size: "small",
676
- onClick: w,
677
- children: g ? y : v
671
+ onClick: S,
672
+ children: m ? x : T
678
673
  }
679
674
  )
680
675
  ] });
681
676
  }
682
- function Ar({
683
- value: t,
684
- unit: a
677
+ function Tr({
678
+ value: n,
679
+ unit: o
685
680
  }) {
686
- return /* @__PURE__ */ d.jsx($, { sx: Ir.box, children: /* @__PURE__ */ d.jsxs(ge, { variant: "body2", align: "right", noWrap: !0, children: [
687
- a,
681
+ return /* @__PURE__ */ y.jsx(D, { sx: xr.box, children: /* @__PURE__ */ y.jsxs(ne, { variant: "body2", align: "right", noWrap: !0, children: [
682
+ o,
688
683
  " ",
689
- t
684
+ n
690
685
  ] }) });
691
686
  }
692
- var he = /* @__PURE__ */ ((t) => (t.Roadmap = "roadmap", t.Satellite = "satellite", t.Terrain = "terrain", t))(he || {}), ye = /* @__PURE__ */ ((t) => (t.DarkMatter = "dark-matter", t.Positron = "positron", t.Voyager = "voyager", t))(ye || {});
693
- const Fr = {
694
- positron: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
695
- voyager: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
696
- [
697
- "dark-matter"
698
- /* DarkMatter */
699
- ]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
700
- };
701
- function Mr({
702
- basemap: t,
703
- instanceRef: a,
704
- layers: l,
705
- overlayRef: i,
706
- viewState: y,
707
- height: v = "100%",
708
- id: S = "deck-gl-map",
709
- style: x = {},
710
- width: p = "100%",
711
- getCursor: g,
712
- getTooltip: h,
713
- onClick: w,
714
- onDrag: m,
715
- onDragEnd: R,
716
- onDragStart: O,
717
- onHover: j,
718
- onResize: b,
719
- onViewStateChange: D
720
- }) {
721
- if (!Object.values(ye).includes(
722
- t
723
- ))
724
- return /* @__PURE__ */ d.jsx("div", { children: "Invalid basemap" });
725
- const L = Fr[t];
726
- return /* @__PURE__ */ d.jsx(
727
- jr,
728
- {
729
- ref: i,
730
- viewState: { ...y },
731
- controller: !0,
732
- layers: l,
733
- onViewStateChange: D,
734
- onResize: b,
735
- onHover: j,
736
- onDrag: m,
737
- onClick: w,
738
- onDragStart: O,
739
- onDragEnd: R,
740
- getCursor: g,
741
- id: S,
742
- height: v,
743
- width: p,
744
- style: x,
745
- getTooltip: h,
746
- children: /* @__PURE__ */ d.jsx(
747
- Sr,
748
- {
749
- ref: a,
750
- reuseMaps: !0,
751
- mapStyle: L,
752
- mapLib: wr
753
- }
754
- )
755
- }
756
- );
757
- }
758
- function Lr(t) {
759
- let a = null;
760
- return Object.values(he).includes(
761
- t?.basemap
762
- ) || (a = "Invalid basemap"), t?.apiKey || (a = "Google Maps API key is required"), a ? /* @__PURE__ */ d.jsx("div", { children: a }) : /* @__PURE__ */ d.jsx($r, { ...t });
763
- }
764
- function $r({
765
- apiKey: t,
766
- basemap: a,
767
- instanceRef: l,
768
- layers: i,
769
- overlayRef: y,
770
- viewState: v,
771
- height: S = "100%",
772
- id: x = "google-map-script",
773
- language: p = "en",
774
- mapOptions: g,
775
- style: h = {},
776
- version: w,
777
- width: m = "100%",
778
- getTooltip: R,
779
- onResize: O,
780
- onViewStateChange: j
781
- }) {
782
- const b = l, D = Y(null), T = Y(), [L, te] = Ge(v), ne = {
783
- position: "absolute",
784
- zIndex: 0,
785
- left: 0,
786
- top: 0,
787
- width: m,
788
- height: S,
789
- ...h
790
- }, Z = v.maxZoom ?? 24, J = v.minZoom ?? 0, N = me(
791
- () => ({
792
- mapTypeControl: !1,
793
- fullscreenControl: !1,
794
- zoomControl: !1,
795
- streetViewControl: !1,
796
- mapTypeId: a,
797
- maxZoom: Z,
798
- minZoom: J,
799
- ...g
800
- }),
801
- [a, Z, J, g]
802
- ), { isLoaded: z } = Or({
803
- id: x,
804
- googleMapsApiKey: t,
805
- language: p,
806
- version: w
807
- }), ae = () => {
808
- const I = Ue(b?.current), C = {
809
- zoom: Ne(b?.current),
810
- longitude: I.lng,
811
- latitude: I.lat
812
- };
813
- Wr(T.current, C) && (T.current = C, typeof j == "function" && j({ viewState: C }));
814
- }, K = pe(() => {
815
- if (!D.current)
816
- return;
817
- const I = ze(v), C = {
818
- lat: v.latitude,
819
- lng: v.longitude
820
- }, F = { zoom: I, center: C, ...N }, k = new google.maps.Map(D.current, F);
821
- y?.current && (y.current = new Pr({
822
- layers: i,
823
- getTooltip: R
824
- })), k.addListener("bounds_changed", ae), k.addListener("resize", () => {
825
- typeof O == "function" && O({
826
- height: k.getDiv().offsetHeight,
827
- width: k.getDiv().offsetWidth
828
- });
829
- }), b?.current && (b.current = k);
830
- }, []);
831
- return B(() => {
832
- if (z)
833
- return K(), () => {
834
- b?.current && google.maps.event.clearInstanceListeners(b.current), y?.current && y.current.finalize();
835
- };
836
- }, [z, K, b, y]), B(() => {
837
- b?.current?.setOptions(N);
838
- }, [N, i, R, a, b]), B(() => {
839
- const I = setTimeout(() => {
840
- te(v);
841
- }, 300);
842
- return () => {
843
- clearTimeout(I);
844
- };
845
- }, [v]), B(() => {
846
- if (b?.current) {
847
- const I = ze(L), C = {
848
- lat: L.latitude,
849
- lng: L.longitude
850
- }, F = Ne(b?.current), k = Ue(b?.current);
851
- I !== F && b?.current.setZoom(I), (k.lng !== C.lng || k.lat !== C.lat) && b?.current.setCenter(C);
852
- }
853
- }, [L, b]), /* @__PURE__ */ d.jsx("div", { ref: D, style: ne });
854
- }
855
- const Vr = ["longitude", "latitude", "zoom"];
856
- function Wr(t, a) {
857
- return t ? Vr.some((l) => t[l] !== a[l]) : !0;
858
- }
859
- function Ne(t) {
860
- return t?.getZoom() - 1;
861
- }
862
- function ze(t) {
863
- return t.zoom + 1;
864
- }
865
- function Ue(t) {
866
- const a = t?.getCenter();
867
- return {
868
- lat: a?.lat(),
869
- lng: a?.lng()
870
- };
871
- }
872
- function rt(t) {
873
- const a = me(() => Object.values(ye).includes(t?.basemap) ? Mr : Object.values(he).includes(t?.basemap) ? Lr : null, [t?.basemap]);
874
- return a ? /* @__PURE__ */ d.jsx(a, { ...t }) : /* @__PURE__ */ d.jsx("div", { children: "MapComponent: Invalid basemap" });
875
- }
876
- const Yr = {
687
+ const Cr = {
877
688
  contentBox: {
878
689
  paddingBottom: 2,
879
690
  paddingX: 2
880
691
  }
881
- }, Br = Ze($, {
882
- shouldForwardProp: (t) => t !== "scrollMarginTop"
883
- })(({ scrollMarginTop: t }) => ({
692
+ }, Sr = De(D, {
693
+ shouldForwardProp: (n) => n !== "scrollMarginTop"
694
+ })(({ scrollMarginTop: n }) => ({
884
695
  height: "auto",
885
- scrollMarginTop: t,
696
+ scrollMarginTop: n,
886
697
  width: "100%"
887
- })), Nr = Ze($, {
888
- shouldForwardProp: (t) => t !== "scrollMarginTop"
889
- })(({ scrollMarginTop: t, theme: { spacing: a, palette: l } }) => ({
698
+ })), wr = De(D, {
699
+ shouldForwardProp: (n) => n !== "scrollMarginTop"
700
+ })(({ scrollMarginTop: n, theme: { spacing: o, palette: f } }) => ({
890
701
  alignItems: "center",
891
- backgroundColor: l.grey[100],
702
+ backgroundColor: f.grey[100],
892
703
  display: "flex",
893
- height: a(3),
704
+ height: o(3),
894
705
  justifyContent: "center",
895
706
  position: "sticky",
896
- top: t,
707
+ top: n,
897
708
  width: "100%",
898
709
  zIndex: 1
899
710
  }));
900
- function tt({
901
- title: t,
902
- id: a,
903
- anchor: l = !1,
904
- scrollMarginTop: i = 0,
905
- children: y,
906
- BoxProps: v
711
+ function Ar({
712
+ title: n,
713
+ id: o,
714
+ anchor: f = !1,
715
+ scrollMarginTop: u = 0,
716
+ children: x,
717
+ BoxProps: T
907
718
  }) {
908
- return /* @__PURE__ */ d.jsxs(
909
- Br,
719
+ return /* @__PURE__ */ y.jsxs(
720
+ Sr,
910
721
  {
911
- scrollMarginTop: i,
912
- id: a,
913
- "data-anchor": l,
914
- ...v,
722
+ scrollMarginTop: u,
723
+ id: o,
724
+ "data-anchor": f,
725
+ ...T,
915
726
  children: [
916
- /* @__PURE__ */ d.jsx(Nr, { scrollMarginTop: i, children: /* @__PURE__ */ d.jsx(ge, { variant: "caption", children: t }) }),
917
- /* @__PURE__ */ d.jsx($, { sx: Yr.contentBox, children: /* @__PURE__ */ d.jsx(d.Fragment, { children: y }) })
727
+ /* @__PURE__ */ y.jsx(wr, { scrollMarginTop: u, children: /* @__PURE__ */ y.jsx(ne, { variant: "caption", children: n }) }),
728
+ /* @__PURE__ */ y.jsx(D, { sx: Cr.contentBox, children: /* @__PURE__ */ y.jsx(y.Fragment, { children: x }) })
918
729
  ]
919
730
  }
920
731
  );
921
732
  }
922
- const zr = {
733
+ const jr = {
923
734
  tabsWrapper: {
924
- backgroundColor: ({ palette: t }) => t.background.paper,
735
+ backgroundColor: ({ palette: n }) => n.background.paper,
925
736
  left: 0,
926
737
  position: "sticky",
927
738
  top: 0,
@@ -931,143 +742,137 @@ const zr = {
931
742
  marginRight: 0
932
743
  },
933
744
  "& .MuiTab-textColorPrimary": {
934
- color: ({ palette: t }) => t.text.primary,
745
+ color: ({ palette: n }) => n.text.primary,
935
746
  "&.Mui-selected": {
936
- color: ({ palette: t }) => t.primary.main
747
+ color: ({ palette: n }) => n.primary.main
937
748
  }
938
749
  },
939
750
  "& .MuiTabs-indicator.colorPrimary": {
940
- backgroundColor: ({ palette: t }) => t.primary.main
751
+ backgroundColor: ({ palette: n }) => n.primary.main
941
752
  }
942
753
  }
943
754
  };
944
- function nt({
945
- children: t,
946
- anchor: a,
947
- TabsProps: l,
948
- variant: i = "standard",
949
- onChange: y
755
+ function Ir({
756
+ children: n,
757
+ anchor: o,
758
+ TabsProps: f,
759
+ variant: u = "standard",
760
+ onChange: x
950
761
  }) {
951
- const v = (S, x) => {
952
- S.preventDefault(), y?.(x);
762
+ const T = (C, b) => {
763
+ C.preventDefault(), x?.(b);
953
764
  };
954
- return /* @__PURE__ */ d.jsx($, { sx: zr.tabsWrapper, children: /* @__PURE__ */ d.jsx(
955
- Cr,
765
+ return /* @__PURE__ */ y.jsx(D, { sx: jr.tabsWrapper, children: /* @__PURE__ */ y.jsx(
766
+ Er,
956
767
  {
957
768
  indicatorColor: "primary",
958
769
  textColor: "primary",
959
770
  "aria-label": "Explore sections",
960
- ...l,
961
- value: a,
962
- variant: i,
963
- onChange: v,
964
- children: t
771
+ ...f,
772
+ value: o,
773
+ variant: u,
774
+ onChange: T,
775
+ children: n
965
776
  }
966
777
  ) });
967
778
  }
968
- function Je(t) {
969
- var a, l, i = "";
970
- if (typeof t == "string" || typeof t == "number")
971
- i += t;
972
- else if (typeof t == "object")
973
- if (Array.isArray(t))
974
- for (a = 0; a < t.length; a++)
975
- t[a] && (l = Je(t[a])) && (i && (i += " "), i += l);
779
+ function Ae(n) {
780
+ var o, f, u = "";
781
+ if (typeof n == "string" || typeof n == "number")
782
+ u += n;
783
+ else if (typeof n == "object")
784
+ if (Array.isArray(n))
785
+ for (o = 0; o < n.length; o++)
786
+ n[o] && (f = Ae(n[o])) && (u && (u += " "), u += f);
976
787
  else
977
- for (a in t)
978
- t[a] && (i && (i += " "), i += a);
979
- return i;
788
+ for (o in n)
789
+ n[o] && (u && (u += " "), u += o);
790
+ return u;
980
791
  }
981
- function Ur() {
982
- for (var t, a, l = 0, i = ""; l < arguments.length; )
983
- (t = arguments[l++]) && (a = Je(t)) && (i && (i += " "), i += a);
984
- return i;
792
+ function Or() {
793
+ for (var n, o, f = 0, u = ""; f < arguments.length; )
794
+ (n = arguments[f++]) && (o = Ae(n)) && (u && (u += " "), u += o);
795
+ return u;
985
796
  }
986
- const qr = {
797
+ const Pr = {
987
798
  box: {
988
- borderRadius: ({ spacing: t }) => `0 0 ${t(0.5)} ${t(0.5)}`,
799
+ borderRadius: ({ spacing: n }) => `0 0 ${n(0.5)} ${n(0.5)}`,
989
800
  flex: 1,
990
801
  height: "100%",
991
802
  margin: "0 auto",
992
- maxWidth: ({ breakpoints: t }) => t.values.lg,
803
+ maxWidth: ({ breakpoints: n }) => n.values.lg,
993
804
  overflow: "auto",
994
805
  position: "relative",
995
806
  width: "100%"
996
807
  }
997
808
  };
998
- function at({
999
- children: t,
1000
- currentAnchor: a,
1001
- BoxProps: l,
1002
- className: i,
1003
- timeout: y = 50,
1004
- onChange: v
809
+ function $r({
810
+ children: n,
811
+ currentAnchor: o,
812
+ BoxProps: f,
813
+ className: u,
814
+ timeout: x = 50,
815
+ onChange: T
1005
816
  }) {
1006
- const S = Y(null), x = Y([]), p = Y(0), g = Y(a);
1007
- B(() => {
1008
- const m = Array.from(
1009
- S.current?.querySelectorAll('[data-anchor="true"]') || []
817
+ const C = z(null), b = z([]), d = z(0), m = z(o);
818
+ je(() => {
819
+ const h = Array.from(
820
+ C.current?.querySelectorAll('[data-anchor="true"]') || []
1010
821
  );
1011
- if (x.current = [...m].reverse(), !x.current.length)
822
+ if (b.current = [...h].reverse(), !b.current.length)
1012
823
  throw new Error(
1013
824
  'initialization of ScrollToAnchor: Missing sections with data-anchor="true" attribute.'
1014
825
  );
1015
- }, []), B(() => {
1016
- const m = (R) => {
1017
- const O = S.current?.querySelector(`#${R}`);
826
+ }, []), je(() => {
827
+ const h = (_) => {
828
+ const O = C.current?.querySelector(`#${_}`);
1018
829
  if (!O) {
1019
830
  console.warn(
1020
- `Warning: navigation of ScrollToAnchor: the section you want to navigate to does not exist. To create it add the #${R} id property to an element.`
831
+ `Warning: navigation of ScrollToAnchor: the section you want to navigate to does not exist. To create it add the #${_} id property to an element.`
1021
832
  );
1022
833
  return;
1023
834
  }
1024
835
  if (O) {
1025
836
  O.scrollIntoView({ behavior: "smooth" });
1026
- const j = setInterval(() => {
1027
- O.offsetTop === p.current && (g.current = R, clearInterval(j));
1028
- }, y);
837
+ const w = setInterval(() => {
838
+ O.offsetTop === d.current && (m.current = _, clearInterval(w));
839
+ }, x);
1029
840
  }
1030
841
  };
1031
- a !== g.current && m(a);
1032
- }, [a, y]);
1033
- const h = pe(() => {
1034
- const R = x.current.find((O) => p.current >= O.offsetTop)?.id || "";
1035
- g.current !== R && (g.current = R, v(R));
1036
- }, [v]), w = pe(
1037
- (m) => {
1038
- m.stopPropagation(), p.current = m.currentTarget.scrollTop, a === g.current && requestAnimationFrame(() => h());
842
+ o !== m.current && h(o);
843
+ }, [o, x]);
844
+ const g = Oe(() => {
845
+ const _ = b.current.find((O) => d.current >= O.offsetTop)?.id || "";
846
+ m.current !== _ && (m.current = _, T(_));
847
+ }, [T]), S = Oe(
848
+ (h) => {
849
+ h.stopPropagation(), d.current = h.currentTarget.scrollTop, o === m.current && requestAnimationFrame(() => g());
1039
850
  },
1040
- [a, h]
851
+ [o, g]
1041
852
  );
1042
- return /* @__PURE__ */ d.jsx(
1043
- $,
853
+ return /* @__PURE__ */ y.jsx(
854
+ D,
1044
855
  {
1045
- ref: S,
1046
- sx: qr.box,
1047
- ...l,
1048
- className: Ur(i),
856
+ ref: C,
857
+ sx: Pr.box,
858
+ ...f,
859
+ className: Or(u),
1049
860
  "data-scroller": !0,
1050
- onScroll: (m) => w(m),
1051
- children: t
861
+ onScroll: (h) => S(h),
862
+ children: n
1052
863
  }
1053
864
  );
1054
865
  }
1055
- function ot(t) {
1056
- return t.map((a) => {
1057
- const l = a, i = String(a);
1058
- return { value: l, label: i };
866
+ function Wr(n) {
867
+ return n.map((o) => {
868
+ const f = o, u = String(o);
869
+ return { value: f, label: u };
1059
870
  });
1060
871
  }
1061
872
  export {
1062
- Fr as CartoBasemapURL,
1063
- ye as CartoBasemapsNames,
1064
- Mr as DeckGLMapsComponent,
1065
- he as GMapsBasemap,
1066
- Lr as GoogleMapsComponent,
1067
- et as ListData,
1068
- rt as MapComponent,
1069
- at as ScrollToAnchor,
1070
- tt as SectionContainer,
1071
- nt as TabsToAnchor,
1072
- ot as createSelectOptionsFromArray
873
+ Dr as ListData,
874
+ $r as ScrollToAnchor,
875
+ Ar as SectionContainer,
876
+ Ir as TabsToAnchor,
877
+ Wr as createSelectOptionsFromArray
1073
878
  };