@carto/ps-react-maps 1.3.1-alpha.0 → 1.3.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,42 @@
1
- import Ie, { createContext as se, useContext as ue, useReducer as Sr, useRef as Fe, useCallback as I } from "react";
2
- var oe = /* @__PURE__ */ ((t) => (t.Roadmap = "roadmap", t.Satellite = "satellite", t.Hybrid = "hybrid", t))(oe || {}), wr = /* @__PURE__ */ ((t) => (t.DarkMatter = "dark-matter", t.Positron = "positron", t.Voyager = "voyager", t))(wr || {});
3
- const Nr = {
1
+ import Ne, { createContext as ue, useContext as ce, useReducer as wr, useRef as Ae, useCallback as I } from "react";
2
+ var ie = /* @__PURE__ */ ((r) => (r.Roadmap = "roadmap", r.Satellite = "satellite", r.Hybrid = "hybrid", r))(ie || {}), Tr = /* @__PURE__ */ ((r) => (r.DarkMatter = "dark-matter", r.Positron = "positron", r.Voyager = "voyager", r))(Tr || {});
3
+ const ae = {
4
4
  positron: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
5
5
  voyager: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
6
6
  "dark-matter": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
7
+ };
8
+ var Cr = /* @__PURE__ */ ((r) => (r.Maplibre = "maplibre", r.GoogleMaps = "google-maps", r))(Cr || {});
9
+ const Vr = {
10
+ positron: {
11
+ url: ae.positron,
12
+ type: "maplibre"
13
+ /* Maplibre */
14
+ },
15
+ voyager: {
16
+ url: ae.voyager,
17
+ type: "maplibre"
18
+ /* Maplibre */
19
+ },
20
+ "dark-matter": {
21
+ url: ae[
22
+ "dark-matter"
23
+ /* DarkMatter */
24
+ ],
25
+ type: "maplibre"
26
+ /* Maplibre */
27
+ },
28
+ roadmap: {
29
+ type: "google-maps"
30
+ /* GoogleMaps */
31
+ },
32
+ satellite: {
33
+ type: "google-maps"
34
+ /* GoogleMaps */
35
+ },
36
+ hybrid: {
37
+ type: "google-maps"
38
+ /* GoogleMaps */
39
+ }
7
40
  }, V = () => {
8
41
  throw new Error("You forgot to wrap your component in <MapProvider>.");
9
42
  }, B = {
@@ -22,126 +55,126 @@ const Nr = {
22
55
  setZoom: V,
23
56
  setLoaded: V
24
57
  }
25
- }, Ne = se(
58
+ }, Ue = ue(
26
59
  B.state
27
- ), Ue = se(B.references), Ve = se(
60
+ ), Ve = ue(B.references), Ye = ue(
28
61
  B.actions
29
62
  );
30
- var k = /* @__PURE__ */ ((t) => (t.SetViewState = "SetViewState", t.SetBasemap = "SetBasemap", t.SetResize = "SetResize", t.SetZoom = "SetZoom", t.SetLoaded = "SetLoaded", t))(k || {});
31
- function Tr(t, { type: s, payload: d }) {
63
+ var D = /* @__PURE__ */ ((r) => (r.SetViewState = "SetViewState", r.SetBasemap = "SetBasemap", r.SetResize = "SetResize", r.SetZoom = "SetZoom", r.SetLoaded = "SetLoaded", r))(D || {});
64
+ function Or(r, { type: s, payload: d }) {
32
65
  return {
33
66
  SetViewState: () => {
34
- const { id: o, viewState: g } = d, l = { ...t.maps };
67
+ const { id: o, viewState: g } = d, l = { ...r.maps };
35
68
  return l[o] = {
36
- ...t.maps[o],
69
+ ...r.maps[o],
37
70
  viewState: g
38
71
  }, {
39
- ...t,
72
+ ...r,
40
73
  maps: l
41
74
  };
42
75
  },
43
76
  SetResize: () => {
44
- const { id: o, width: g, height: l } = d, b = { ...t.maps };
45
- return b[o] = {
46
- ...t.maps[o],
77
+ const { id: o, width: g, height: l } = d, E = { ...r.maps };
78
+ return E[o] = {
79
+ ...r.maps[o],
47
80
  viewState: {
48
- ...t.maps[o].viewState,
81
+ ...r.maps[o].viewState,
49
82
  width: g,
50
83
  height: l
51
84
  }
52
85
  }, {
53
- ...t,
54
- maps: b
86
+ ...r,
87
+ maps: E
55
88
  };
56
89
  },
57
90
  SetBasemap: () => {
58
- const { id: o, basemap: g } = d, l = { ...t.maps }, { basemap: b } = l[o], u = Object.values(oe).includes(
59
- b
60
- ), R = Object.values(oe).includes(
91
+ const { id: o, basemap: g } = d, l = { ...r.maps }, { basemap: E } = l[o], u = Object.values(ie).includes(
92
+ E
93
+ ), R = Object.values(ie).includes(
61
94
  g
62
95
  ), y = u === R;
63
96
  return l[o] = {
64
- ...t.maps[o],
97
+ ...r.maps[o],
65
98
  basemap: g,
66
99
  isLoaded: y
67
100
  }, {
68
- ...t,
101
+ ...r,
69
102
  maps: l
70
103
  };
71
104
  },
72
105
  SetZoom: () => {
73
- const { id: o, zoom: g } = d, l = { ...t.maps };
106
+ const { id: o, zoom: g } = d, l = { ...r.maps };
74
107
  return l[o] = {
75
- ...t.maps[o],
108
+ ...r.maps[o],
76
109
  viewState: {
77
- ...t.maps[o].viewState,
110
+ ...r.maps[o].viewState,
78
111
  zoom: g
79
112
  }
80
113
  }, {
81
- ...t,
114
+ ...r,
82
115
  maps: l
83
116
  };
84
117
  },
85
118
  SetLoaded: () => {
86
- const { id: o, value: g } = d, l = { ...t.maps };
119
+ const { id: o, value: g } = d, l = { ...r.maps };
87
120
  return l[o] = {
88
- ...t.maps[o],
121
+ ...r.maps[o],
89
122
  isLoaded: g
90
123
  }, {
91
- ...t,
124
+ ...r,
92
125
  maps: l
93
126
  };
94
127
  }
95
- }[s]?.() ?? t;
128
+ }[s]?.() ?? r;
96
129
  }
97
- function Cr(t) {
98
- return ue(Ne).maps[t];
130
+ function Pr(r) {
131
+ return ce(Ue).maps[r];
99
132
  }
100
- function Ye(t) {
101
- const s = ue(Ue), { instanceRef: d, overlayRef: _ } = s.current[t], o = () => {
133
+ function $e(r) {
134
+ const s = ce(Ve), { instanceRef: d, overlayRef: _ } = s.current[r], o = () => {
102
135
  const R = d?.current;
103
136
  return R?.deck || R?._deck;
104
- }, g = () => _?.current, l = () => o()._getViewState(), b = (R) => o()?.getViewports(R);
137
+ }, g = () => _?.current, l = () => o()._getViewState(), E = (R) => o()?.getViewports(R);
105
138
  return {
106
139
  instanceRef: d,
107
140
  overlayRef: _,
108
141
  getDeckInstance: o,
109
142
  getOverlayInstance: g,
110
143
  getViewState: l,
111
- getViewport: (R = 0, y) => b(y)?.[R],
112
- getViewports: b
144
+ getViewport: (R = 0, y) => E(y)?.[R],
145
+ getViewports: E
113
146
  };
114
147
  }
115
- function Or(t) {
116
- const { setBasemap: s, setResize: d, setViewState: _, setZoom: o, setLoaded: g } = ue(Ve), { getViewport: l } = Ye(t);
148
+ function xr(r) {
149
+ const { setBasemap: s, setResize: d, setViewState: _, setZoom: o, setLoaded: g } = ce(Ye), { getViewport: l } = $e(r);
117
150
  return {
118
- setBasemap: (u) => s(u, t),
119
- setResize: (u) => d(u, t),
120
- setViewState: (u) => _(u, t),
121
- setZoom: (u) => o(u, t),
122
- setLoaded: (u) => g(u, t),
151
+ setBasemap: (u) => s(u, r),
152
+ setResize: (u) => d(u, r),
153
+ setViewState: (u) => _(u, r),
154
+ setZoom: (u) => o(u, r),
155
+ setLoaded: (u) => g(u, r),
123
156
  fitBounds: (u, {
124
157
  boundsOptions: R,
125
158
  viewStateOptions: y
126
159
  } = {}) => {
127
- const w = l(), { latitude: C, longitude: v, zoom: p } = w.fitBounds(
160
+ const w = l(), { latitude: C, longitude: p, zoom: v } = w.fitBounds(
128
161
  u,
129
162
  R
130
163
  );
131
- _({ ...y, latitude: C, longitude: v, zoom: p }, t);
164
+ _({ ...y, latitude: C, longitude: p, zoom: v }, r);
132
165
  }
133
166
  };
134
167
  }
135
- function Ur(t) {
136
- return Cr(t);
168
+ function Yr(r) {
169
+ return Pr(r);
137
170
  }
138
- function Vr(t) {
139
- return Ye(t);
171
+ function $r(r) {
172
+ return $e(r);
140
173
  }
141
- function Yr(t) {
142
- return Or(t);
174
+ function Br(r) {
175
+ return xr(r);
143
176
  }
144
- var ie = { exports: {} }, Y = {};
177
+ var se = { exports: {} }, Y = {};
145
178
  /**
146
179
  * @license React
147
180
  * react-jsx-runtime.development.js
@@ -151,54 +184,54 @@ var ie = { exports: {} }, Y = {};
151
184
  * This source code is licensed under the MIT license found in the
152
185
  * LICENSE file in the root directory of this source tree.
153
186
  */
154
- var Ae;
155
- function xr() {
156
- return Ae || (Ae = 1, process.env.NODE_ENV !== "production" && function() {
157
- var t = Ie, s = Symbol.for("react.element"), d = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), b = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), p = Symbol.iterator, j = "@@iterator";
187
+ var Me;
188
+ function jr() {
189
+ return Me || (Me = 1, process.env.NODE_ENV !== "production" && function() {
190
+ var r = Ne, s = Symbol.for("react.element"), d = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), E = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), v = Symbol.iterator, j = "@@iterator";
158
191
  function W(e) {
159
192
  if (e === null || typeof e != "object")
160
193
  return null;
161
- var r = p && e[p] || e[j];
162
- return typeof r == "function" ? r : null;
194
+ var t = v && e[v] || e[j];
195
+ return typeof t == "function" ? t : null;
163
196
  }
164
- var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
197
+ var k = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
165
198
  function S(e) {
166
199
  {
167
- for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
200
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
168
201
  n[a - 1] = arguments[a];
169
- We("error", e, n);
202
+ ze("error", e, n);
170
203
  }
171
204
  }
172
- function We(e, r, n) {
205
+ function ze(e, t, n) {
173
206
  {
174
- var a = D.ReactDebugCurrentFrame, f = a.getStackAddendum();
175
- f !== "" && (r += "%s", n = n.concat([f]));
207
+ var a = k.ReactDebugCurrentFrame, f = a.getStackAddendum();
208
+ f !== "" && (t += "%s", n = n.concat([f]));
176
209
  var m = n.map(function(c) {
177
210
  return String(c);
178
211
  });
179
- m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
212
+ m.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, m);
180
213
  }
181
214
  }
182
- var ze = !1, Ze = !1, qe = !1, He = !1, Je = !1, ce;
183
- ce = Symbol.for("react.module.reference");
184
- function Ge(e) {
185
- return !!(typeof e == "string" || typeof e == "function" || e === _ || e === g || Je || e === o || e === R || e === y || He || e === v || ze || Ze || qe || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === w || e.$$typeof === l || e.$$typeof === b || e.$$typeof === u || // This needs to include all possible module reference object
215
+ var Ze = !1, qe = !1, He = !1, Ge = !1, Je = !1, le;
216
+ le = Symbol.for("react.module.reference");
217
+ function Ke(e) {
218
+ return !!(typeof e == "string" || typeof e == "function" || e === _ || e === g || Je || e === o || e === R || e === y || Ge || e === p || Ze || qe || He || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === w || e.$$typeof === l || e.$$typeof === E || e.$$typeof === u || // This needs to include all possible module reference object
186
219
  // types supported by any Flight configuration anywhere since
187
220
  // we don't know which Flight build this will end up being used
188
221
  // with.
189
- e.$$typeof === ce || e.getModuleId !== void 0));
222
+ e.$$typeof === le || e.getModuleId !== void 0));
190
223
  }
191
- function Ke(e, r, n) {
224
+ function Xe(e, t, n) {
192
225
  var a = e.displayName;
193
226
  if (a)
194
227
  return a;
195
- var f = r.displayName || r.name || "";
228
+ var f = t.displayName || t.name || "";
196
229
  return f !== "" ? n + "(" + f + ")" : n;
197
230
  }
198
- function le(e) {
231
+ function fe(e) {
199
232
  return e.displayName || "Context";
200
233
  }
201
- function x(e) {
234
+ function P(e) {
202
235
  if (e == null)
203
236
  return null;
204
237
  if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
@@ -221,21 +254,21 @@ function xr() {
221
254
  }
222
255
  if (typeof e == "object")
223
256
  switch (e.$$typeof) {
224
- case b:
225
- var r = e;
226
- return le(r) + ".Consumer";
257
+ case E:
258
+ var t = e;
259
+ return fe(t) + ".Consumer";
227
260
  case l:
228
261
  var n = e;
229
- return le(n._context) + ".Provider";
262
+ return fe(n._context) + ".Provider";
230
263
  case u:
231
- return Ke(e, e.render, "ForwardRef");
264
+ return Xe(e, e.render, "ForwardRef");
232
265
  case w:
233
266
  var a = e.displayName || null;
234
- return a !== null ? a : x(e.type) || "Memo";
267
+ return a !== null ? a : P(e.type) || "Memo";
235
268
  case C: {
236
269
  var f = e, m = f._payload, c = f._init;
237
270
  try {
238
- return x(c(m));
271
+ return P(c(m));
239
272
  } catch {
240
273
  return null;
241
274
  }
@@ -243,18 +276,18 @@ function xr() {
243
276
  }
244
277
  return null;
245
278
  }
246
- var A = Object.assign, N = 0, fe, de, ve, pe, me, ge, ye;
247
- function Re() {
279
+ var A = Object.assign, N = 0, de, pe, ve, me, ge, ye, Re;
280
+ function be() {
248
281
  }
249
- Re.__reactDisabledLog = !0;
250
- function Xe() {
282
+ be.__reactDisabledLog = !0;
283
+ function Qe() {
251
284
  {
252
285
  if (N === 0) {
253
- fe = console.log, de = console.info, ve = console.warn, pe = console.error, me = console.group, ge = console.groupCollapsed, ye = console.groupEnd;
286
+ de = console.log, pe = console.info, ve = console.warn, me = console.error, ge = console.group, ye = console.groupCollapsed, Re = console.groupEnd;
254
287
  var e = {
255
288
  configurable: !0,
256
289
  enumerable: !0,
257
- value: Re,
290
+ value: be,
258
291
  writable: !0
259
292
  };
260
293
  Object.defineProperties(console, {
@@ -270,7 +303,7 @@ function xr() {
270
303
  N++;
271
304
  }
272
305
  }
273
- function Qe() {
306
+ function er() {
274
307
  {
275
308
  if (N--, N === 0) {
276
309
  var e = {
@@ -280,33 +313,33 @@ function xr() {
280
313
  };
281
314
  Object.defineProperties(console, {
282
315
  log: A({}, e, {
283
- value: fe
316
+ value: de
284
317
  }),
285
318
  info: A({}, e, {
286
- value: de
319
+ value: pe
287
320
  }),
288
321
  warn: A({}, e, {
289
322
  value: ve
290
323
  }),
291
324
  error: A({}, e, {
292
- value: pe
325
+ value: me
293
326
  }),
294
327
  group: A({}, e, {
295
- value: me
328
+ value: ge
296
329
  }),
297
330
  groupCollapsed: A({}, e, {
298
- value: ge
331
+ value: ye
299
332
  }),
300
333
  groupEnd: A({}, e, {
301
- value: ye
334
+ value: Re
302
335
  })
303
336
  });
304
337
  }
305
338
  N < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
306
339
  }
307
340
  }
308
- var G = D.ReactCurrentDispatcher, K;
309
- function z(e, r, n) {
341
+ var J = k.ReactCurrentDispatcher, K;
342
+ function z(e, t, n) {
310
343
  {
311
344
  if (K === void 0)
312
345
  try {
@@ -321,10 +354,10 @@ function xr() {
321
354
  }
322
355
  var X = !1, Z;
323
356
  {
324
- var er = typeof WeakMap == "function" ? WeakMap : Map;
325
- Z = new er();
357
+ var rr = typeof WeakMap == "function" ? WeakMap : Map;
358
+ Z = new rr();
326
359
  }
327
- function Ee(e, r) {
360
+ function Ee(e, t) {
328
361
  if (!e || X)
329
362
  return "";
330
363
  {
@@ -337,9 +370,9 @@ function xr() {
337
370
  var f = Error.prepareStackTrace;
338
371
  Error.prepareStackTrace = void 0;
339
372
  var m;
340
- m = G.current, G.current = null, Xe();
373
+ m = J.current, J.current = null, Qe();
341
374
  try {
342
- if (r) {
375
+ if (t) {
343
376
  var c = function() {
344
377
  throw Error();
345
378
  };
@@ -350,63 +383,63 @@ function xr() {
350
383
  }), typeof Reflect == "object" && Reflect.construct) {
351
384
  try {
352
385
  Reflect.construct(c, []);
353
- } catch (P) {
354
- a = P;
386
+ } catch (x) {
387
+ a = x;
355
388
  }
356
389
  Reflect.construct(e, [], c);
357
390
  } else {
358
391
  try {
359
392
  c.call();
360
- } catch (P) {
361
- a = P;
393
+ } catch (x) {
394
+ a = x;
362
395
  }
363
396
  e.call(c.prototype);
364
397
  }
365
398
  } else {
366
399
  try {
367
400
  throw Error();
368
- } catch (P) {
369
- a = P;
401
+ } catch (x) {
402
+ a = x;
370
403
  }
371
404
  e();
372
405
  }
373
- } catch (P) {
374
- if (P && a && typeof P.stack == "string") {
375
- for (var i = P.stack.split(`
406
+ } catch (x) {
407
+ if (x && a && typeof x.stack == "string") {
408
+ for (var i = x.stack.split(`
376
409
  `), T = a.stack.split(`
377
- `), E = i.length - 1, h = T.length - 1; E >= 1 && h >= 0 && i[E] !== T[h]; )
410
+ `), b = i.length - 1, h = T.length - 1; b >= 1 && h >= 0 && i[b] !== T[h]; )
378
411
  h--;
379
- for (; E >= 1 && h >= 0; E--, h--)
380
- if (i[E] !== T[h]) {
381
- if (E !== 1 || h !== 1)
412
+ for (; b >= 1 && h >= 0; b--, h--)
413
+ if (i[b] !== T[h]) {
414
+ if (b !== 1 || h !== 1)
382
415
  do
383
- if (E--, h--, h < 0 || i[E] !== T[h]) {
416
+ if (b--, h--, h < 0 || i[b] !== T[h]) {
384
417
  var O = `
385
- ` + i[E].replace(" at new ", " at ");
418
+ ` + i[b].replace(" at new ", " at ");
386
419
  return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && Z.set(e, O), O;
387
420
  }
388
- while (E >= 1 && h >= 0);
421
+ while (b >= 1 && h >= 0);
389
422
  break;
390
423
  }
391
424
  }
392
425
  } finally {
393
- X = !1, G.current = m, Qe(), Error.prepareStackTrace = f;
426
+ X = !1, J.current = m, er(), Error.prepareStackTrace = f;
394
427
  }
395
- var M = e ? e.displayName || e.name : "", ke = M ? z(M) : "";
396
- return typeof e == "function" && Z.set(e, ke), ke;
428
+ var L = e ? e.displayName || e.name : "", Fe = L ? z(L) : "";
429
+ return typeof e == "function" && Z.set(e, Fe), Fe;
397
430
  }
398
- function rr(e, r, n) {
431
+ function tr(e, t, n) {
399
432
  return Ee(e, !1);
400
433
  }
401
- function tr(e) {
402
- var r = e.prototype;
403
- return !!(r && r.isReactComponent);
434
+ function nr(e) {
435
+ var t = e.prototype;
436
+ return !!(t && t.isReactComponent);
404
437
  }
405
- function q(e, r, n) {
438
+ function q(e, t, n) {
406
439
  if (e == null)
407
440
  return "";
408
441
  if (typeof e == "function")
409
- return Ee(e, tr(e));
442
+ return Ee(e, nr(e));
410
443
  if (typeof e == "string")
411
444
  return z(e);
412
445
  switch (e) {
@@ -418,28 +451,28 @@ function xr() {
418
451
  if (typeof e == "object")
419
452
  switch (e.$$typeof) {
420
453
  case u:
421
- return rr(e.render);
454
+ return tr(e.render);
422
455
  case w:
423
- return q(e.type, r, n);
456
+ return q(e.type, t, n);
424
457
  case C: {
425
458
  var a = e, f = a._payload, m = a._init;
426
459
  try {
427
- return q(m(f), r, n);
460
+ return q(m(f), t, n);
428
461
  } catch {
429
462
  }
430
463
  }
431
464
  }
432
465
  return "";
433
466
  }
434
- var H = Object.prototype.hasOwnProperty, be = {}, he = D.ReactDebugCurrentFrame;
435
- function J(e) {
467
+ var H = Object.prototype.hasOwnProperty, he = {}, _e = k.ReactDebugCurrentFrame;
468
+ function G(e) {
436
469
  if (e) {
437
- var r = e._owner, n = q(e.type, e._source, r ? r.type : null);
438
- he.setExtraStackFrame(n);
470
+ var t = e._owner, n = q(e.type, e._source, t ? t.type : null);
471
+ _e.setExtraStackFrame(n);
439
472
  } else
440
- he.setExtraStackFrame(null);
473
+ _e.setExtraStackFrame(null);
441
474
  }
442
- function nr(e, r, n, a, f) {
475
+ function ar(e, t, n, a, f) {
443
476
  {
444
477
  var m = Function.call.bind(H);
445
478
  for (var c in e)
@@ -450,71 +483,71 @@ function xr() {
450
483
  var T = Error((a || "React class") + ": " + n + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
451
484
  throw T.name = "Invariant Violation", T;
452
485
  }
453
- i = e[c](r, c, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
454
- } catch (E) {
455
- i = E;
486
+ i = e[c](t, c, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
487
+ } catch (b) {
488
+ i = b;
456
489
  }
457
- i && !(i instanceof Error) && (J(f), S("%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", n, c, typeof i), J(null)), i instanceof Error && !(i.message in be) && (be[i.message] = !0, J(f), S("Failed %s type: %s", n, i.message), J(null));
490
+ i && !(i instanceof Error) && (G(f), S("%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", n, c, typeof i), G(null)), i instanceof Error && !(i.message in he) && (he[i.message] = !0, G(f), S("Failed %s type: %s", n, i.message), G(null));
458
491
  }
459
492
  }
460
493
  }
461
- var ar = Array.isArray;
494
+ var or = Array.isArray;
462
495
  function Q(e) {
463
- return ar(e);
496
+ return or(e);
464
497
  }
465
- function or(e) {
498
+ function ir(e) {
466
499
  {
467
- var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
500
+ var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
468
501
  return n;
469
502
  }
470
503
  }
471
- function ir(e) {
504
+ function sr(e) {
472
505
  try {
473
- return _e(e), !1;
506
+ return Se(e), !1;
474
507
  } catch {
475
508
  return !0;
476
509
  }
477
510
  }
478
- function _e(e) {
511
+ function Se(e) {
479
512
  return "" + e;
480
513
  }
481
- function Se(e) {
482
- if (ir(e))
483
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", or(e)), _e(e);
514
+ function we(e) {
515
+ if (sr(e))
516
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ir(e)), Se(e);
484
517
  }
485
- var U = D.ReactCurrentOwner, sr = {
518
+ var U = k.ReactCurrentOwner, ur = {
486
519
  key: !0,
487
520
  ref: !0,
488
521
  __self: !0,
489
522
  __source: !0
490
- }, we, Te, ee;
523
+ }, Te, Ce, ee;
491
524
  ee = {};
492
- function ur(e) {
525
+ function cr(e) {
493
526
  if (H.call(e, "ref")) {
494
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
495
- if (r && r.isReactWarning)
527
+ var t = Object.getOwnPropertyDescriptor(e, "ref").get;
528
+ if (t && t.isReactWarning)
496
529
  return !1;
497
530
  }
498
531
  return e.ref !== void 0;
499
532
  }
500
- function cr(e) {
533
+ function lr(e) {
501
534
  if (H.call(e, "key")) {
502
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
503
- if (r && r.isReactWarning)
535
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
536
+ if (t && t.isReactWarning)
504
537
  return !1;
505
538
  }
506
539
  return e.key !== void 0;
507
540
  }
508
- function lr(e, r) {
509
- if (typeof e.ref == "string" && U.current && r && U.current.stateNode !== r) {
510
- var n = x(U.current.type);
511
- ee[n] || (S('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', x(U.current.type), e.ref), ee[n] = !0);
541
+ function fr(e, t) {
542
+ if (typeof e.ref == "string" && U.current && t && U.current.stateNode !== t) {
543
+ var n = P(U.current.type);
544
+ ee[n] || (S('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(U.current.type), e.ref), ee[n] = !0);
512
545
  }
513
546
  }
514
- function fr(e, r) {
547
+ function dr(e, t) {
515
548
  {
516
549
  var n = function() {
517
- we || (we = !0, S("%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));
550
+ Te || (Te = !0, S("%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)", t));
518
551
  };
519
552
  n.isReactWarning = !0, Object.defineProperty(e, "key", {
520
553
  get: n,
@@ -522,10 +555,10 @@ function xr() {
522
555
  });
523
556
  }
524
557
  }
525
- function dr(e, r) {
558
+ function pr(e, t) {
526
559
  {
527
560
  var n = function() {
528
- Te || (Te = !0, S("%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));
561
+ Ce || (Ce = !0, S("%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)", t));
529
562
  };
530
563
  n.isReactWarning = !0, Object.defineProperty(e, "ref", {
531
564
  get: n,
@@ -533,13 +566,13 @@ function xr() {
533
566
  });
534
567
  }
535
568
  }
536
- var vr = function(e, r, n, a, f, m, c) {
569
+ var vr = function(e, t, n, a, f, m, c) {
537
570
  var i = {
538
571
  // This tag allows us to uniquely identify this as a React Element
539
572
  $$typeof: s,
540
573
  // Built-in properties that belong on the element
541
574
  type: e,
542
- key: r,
575
+ key: t,
543
576
  ref: n,
544
577
  props: c,
545
578
  // Record the component responsible for creating this element.
@@ -562,41 +595,41 @@ function xr() {
562
595
  value: f
563
596
  }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
564
597
  };
565
- function pr(e, r, n, a, f) {
598
+ function mr(e, t, n, a, f) {
566
599
  {
567
600
  var m, c = {}, i = null, T = null;
568
- n !== void 0 && (Se(n), i = "" + n), cr(r) && (Se(r.key), i = "" + r.key), ur(r) && (T = r.ref, lr(r, f));
569
- for (m in r)
570
- H.call(r, m) && !sr.hasOwnProperty(m) && (c[m] = r[m]);
601
+ n !== void 0 && (we(n), i = "" + n), lr(t) && (we(t.key), i = "" + t.key), cr(t) && (T = t.ref, fr(t, f));
602
+ for (m in t)
603
+ H.call(t, m) && !ur.hasOwnProperty(m) && (c[m] = t[m]);
571
604
  if (e && e.defaultProps) {
572
- var E = e.defaultProps;
573
- for (m in E)
574
- c[m] === void 0 && (c[m] = E[m]);
605
+ var b = e.defaultProps;
606
+ for (m in b)
607
+ c[m] === void 0 && (c[m] = b[m]);
575
608
  }
576
609
  if (i || T) {
577
610
  var h = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
578
- i && fr(c, h), T && dr(c, h);
611
+ i && dr(c, h), T && pr(c, h);
579
612
  }
580
613
  return vr(e, i, T, f, a, U.current, c);
581
614
  }
582
615
  }
583
- var re = D.ReactCurrentOwner, Ce = D.ReactDebugCurrentFrame;
584
- function L(e) {
616
+ var re = k.ReactCurrentOwner, Oe = k.ReactDebugCurrentFrame;
617
+ function M(e) {
585
618
  if (e) {
586
- var r = e._owner, n = q(e.type, e._source, r ? r.type : null);
587
- Ce.setExtraStackFrame(n);
619
+ var t = e._owner, n = q(e.type, e._source, t ? t.type : null);
620
+ Oe.setExtraStackFrame(n);
588
621
  } else
589
- Ce.setExtraStackFrame(null);
622
+ Oe.setExtraStackFrame(null);
590
623
  }
591
624
  var te;
592
625
  te = !1;
593
626
  function ne(e) {
594
627
  return typeof e == "object" && e !== null && e.$$typeof === s;
595
628
  }
596
- function Oe() {
629
+ function Pe() {
597
630
  {
598
631
  if (re.current) {
599
- var e = x(re.current.type);
632
+ var e = P(re.current.type);
600
633
  if (e)
601
634
  return `
602
635
 
@@ -605,51 +638,51 @@ Check the render method of \`` + e + "`.";
605
638
  return "";
606
639
  }
607
640
  }
608
- function mr(e) {
641
+ function gr(e) {
609
642
  {
610
643
  if (e !== void 0) {
611
- var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
644
+ var t = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
612
645
  return `
613
646
 
614
- Check your code at ` + r + ":" + n + ".";
647
+ Check your code at ` + t + ":" + n + ".";
615
648
  }
616
649
  return "";
617
650
  }
618
651
  }
619
652
  var xe = {};
620
- function gr(e) {
653
+ function yr(e) {
621
654
  {
622
- var r = Oe();
623
- if (!r) {
655
+ var t = Pe();
656
+ if (!t) {
624
657
  var n = typeof e == "string" ? e : e.displayName || e.name;
625
- n && (r = `
658
+ n && (t = `
626
659
 
627
660
  Check the top-level render call using <` + n + ">.");
628
661
  }
629
- return r;
662
+ return t;
630
663
  }
631
664
  }
632
- function Pe(e, r) {
665
+ function je(e, t) {
633
666
  {
634
667
  if (!e._store || e._store.validated || e.key != null)
635
668
  return;
636
669
  e._store.validated = !0;
637
- var n = gr(r);
670
+ var n = yr(t);
638
671
  if (xe[n])
639
672
  return;
640
673
  xe[n] = !0;
641
674
  var a = "";
642
- e && e._owner && e._owner !== re.current && (a = " It was passed a child from " + x(e._owner.type) + "."), L(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, a), L(null);
675
+ e && e._owner && e._owner !== re.current && (a = " It was passed a child from " + P(e._owner.type) + "."), M(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, a), M(null);
643
676
  }
644
677
  }
645
- function je(e, r) {
678
+ function ke(e, t) {
646
679
  {
647
680
  if (typeof e != "object")
648
681
  return;
649
682
  if (Q(e))
650
683
  for (var n = 0; n < e.length; n++) {
651
684
  var a = e[n];
652
- ne(a) && Pe(a, r);
685
+ ne(a) && je(a, t);
653
686
  }
654
687
  else if (ne(e))
655
688
  e._store && (e._store.validated = !0);
@@ -657,85 +690,85 @@ Check the top-level render call using <` + n + ">.");
657
690
  var f = W(e);
658
691
  if (typeof f == "function" && f !== e.entries)
659
692
  for (var m = f.call(e), c; !(c = m.next()).done; )
660
- ne(c.value) && Pe(c.value, r);
693
+ ne(c.value) && je(c.value, t);
661
694
  }
662
695
  }
663
696
  }
664
- function yr(e) {
697
+ function Rr(e) {
665
698
  {
666
- var r = e.type;
667
- if (r == null || typeof r == "string")
699
+ var t = e.type;
700
+ if (t == null || typeof t == "string")
668
701
  return;
669
702
  var n;
670
- if (typeof r == "function")
671
- n = r.propTypes;
672
- else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
703
+ if (typeof t == "function")
704
+ n = t.propTypes;
705
+ else if (typeof t == "object" && (t.$$typeof === u || // Note: Memo only checks outer props here.
673
706
  // Inner props are checked in the reconciler.
674
- r.$$typeof === w))
675
- n = r.propTypes;
707
+ t.$$typeof === w))
708
+ n = t.propTypes;
676
709
  else
677
710
  return;
678
711
  if (n) {
679
- var a = x(r);
680
- nr(n, e.props, "prop", a, e);
681
- } else if (r.PropTypes !== void 0 && !te) {
712
+ var a = P(t);
713
+ ar(n, e.props, "prop", a, e);
714
+ } else if (t.PropTypes !== void 0 && !te) {
682
715
  te = !0;
683
- var f = x(r);
716
+ var f = P(t);
684
717
  S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", f || "Unknown");
685
718
  }
686
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
719
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
687
720
  }
688
721
  }
689
- function Rr(e) {
722
+ function br(e) {
690
723
  {
691
- for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
692
- var a = r[n];
724
+ for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
725
+ var a = t[n];
693
726
  if (a !== "children" && a !== "key") {
694
- L(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), L(null);
727
+ M(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), M(null);
695
728
  break;
696
729
  }
697
730
  }
698
- e.ref !== null && (L(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
731
+ e.ref !== null && (M(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
699
732
  }
700
733
  }
701
- function De(e, r, n, a, f, m) {
734
+ function De(e, t, n, a, f, m) {
702
735
  {
703
- var c = Ge(e);
736
+ var c = Ke(e);
704
737
  if (!c) {
705
738
  var i = "";
706
739
  (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.");
707
- var T = mr(f);
708
- T ? i += T : i += Oe();
709
- var E;
710
- e === null ? E = "null" : Q(e) ? E = "array" : e !== void 0 && e.$$typeof === s ? (E = "<" + (x(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, i);
740
+ var T = gr(f);
741
+ T ? i += T : i += Pe();
742
+ var b;
743
+ e === null ? b = "null" : Q(e) ? b = "array" : e !== void 0 && e.$$typeof === s ? (b = "<" + (P(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, i);
711
744
  }
712
- var h = pr(e, r, n, f, m);
745
+ var h = mr(e, t, n, f, m);
713
746
  if (h == null)
714
747
  return h;
715
748
  if (c) {
716
- var O = r.children;
749
+ var O = t.children;
717
750
  if (O !== void 0)
718
751
  if (a)
719
752
  if (Q(O)) {
720
- for (var M = 0; M < O.length; M++)
721
- je(O[M], e);
753
+ for (var L = 0; L < O.length; L++)
754
+ ke(O[L], e);
722
755
  Object.freeze && Object.freeze(O);
723
756
  } else
724
757
  S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
725
758
  else
726
- je(O, e);
759
+ ke(O, e);
727
760
  }
728
- return e === _ ? Rr(h) : yr(h), h;
761
+ return e === _ ? br(h) : Rr(h), h;
729
762
  }
730
763
  }
731
- function Er(e, r, n) {
732
- return De(e, r, n, !0);
764
+ function Er(e, t, n) {
765
+ return De(e, t, n, !0);
733
766
  }
734
- function br(e, r, n) {
735
- return De(e, r, n, !1);
767
+ function hr(e, t, n) {
768
+ return De(e, t, n, !1);
736
769
  }
737
- var hr = br, _r = Er;
738
- Y.Fragment = _, Y.jsx = hr, Y.jsxs = _r;
770
+ var _r = hr, Sr = Er;
771
+ Y.Fragment = _, Y.jsx = _r, Y.jsxs = Sr;
739
772
  }()), Y;
740
773
  }
741
774
  var $ = {};
@@ -749,119 +782,119 @@ var $ = {};
749
782
  * LICENSE file in the root directory of this source tree.
750
783
  */
751
784
  var Le;
752
- function Pr() {
785
+ function kr() {
753
786
  if (Le)
754
787
  return $;
755
788
  Le = 1;
756
- var t = Ie, s = Symbol.for("react.element"), d = Symbol.for("react.fragment"), _ = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
757
- function l(b, u, R) {
758
- var y, w = {}, C = null, v = null;
759
- R !== void 0 && (C = "" + R), u.key !== void 0 && (C = "" + u.key), u.ref !== void 0 && (v = u.ref);
789
+ var r = Ne, s = Symbol.for("react.element"), d = Symbol.for("react.fragment"), _ = Object.prototype.hasOwnProperty, o = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
790
+ function l(E, u, R) {
791
+ var y, w = {}, C = null, p = null;
792
+ R !== void 0 && (C = "" + R), u.key !== void 0 && (C = "" + u.key), u.ref !== void 0 && (p = u.ref);
760
793
  for (y in u)
761
794
  _.call(u, y) && !g.hasOwnProperty(y) && (w[y] = u[y]);
762
- if (b && b.defaultProps)
763
- for (y in u = b.defaultProps, u)
795
+ if (E && E.defaultProps)
796
+ for (y in u = E.defaultProps, u)
764
797
  w[y] === void 0 && (w[y] = u[y]);
765
- return { $$typeof: s, type: b, key: C, ref: v, props: w, _owner: o.current };
798
+ return { $$typeof: s, type: E, key: C, ref: p, props: w, _owner: o.current };
766
799
  }
767
800
  return $.Fragment = d, $.jsx = l, $.jsxs = l, $;
768
801
  }
769
- process.env.NODE_ENV === "production" ? ie.exports = Pr() : ie.exports = xr();
770
- var ae = ie.exports;
771
- function $r({
772
- children: t,
802
+ process.env.NODE_ENV === "production" ? se.exports = kr() : se.exports = jr();
803
+ var oe = se.exports;
804
+ function Wr({
805
+ children: r,
773
806
  maps: s,
774
807
  externalSync: d
775
808
  }) {
776
- const [_, o] = Sr(Tr, {
809
+ const [_, o] = wr(Or, {
777
810
  ...B.state,
778
- maps: s.reduce((v, p) => (v[p.id] = {
779
- ...p,
811
+ maps: s.reduce((p, v) => (p[v.id] = {
812
+ ...v,
780
813
  isLoaded: !1
781
- }, v), B.state.maps)
782
- }), g = Fe(
783
- s.reduce((v, p) => (v[p.id] = {
814
+ }, p), B.state.maps)
815
+ }), g = Ae(
816
+ s.reduce((p, v) => (p[v.id] = {
784
817
  instanceRef: {
785
818
  current: null
786
819
  },
787
820
  overlayRef: {
788
821
  current: null
789
822
  }
790
- }, v), {})
823
+ }, p), {})
791
824
  ), l = I(
792
- (v, p, j) => {
793
- s[0].id === v && d?.({
794
- type: p,
825
+ (p, v, j) => {
826
+ s[0].id === p && d?.({
827
+ type: v,
795
828
  payload: j
796
829
  });
797
830
  },
798
831
  [d, s]
799
- ), b = I(
800
- (v, p) => {
832
+ ), E = I(
833
+ (p, v) => {
801
834
  o({
802
- type: k.SetViewState,
835
+ type: D.SetViewState,
803
836
  payload: {
804
- id: p,
805
- viewState: v
837
+ id: v,
838
+ viewState: p
806
839
  }
807
- }), l(p, k.SetViewState, v);
840
+ }), l(v, D.SetViewState, p);
808
841
  },
809
842
  [o, l]
810
843
  ), u = I(
811
- ({ height: v, width: p }, j) => {
844
+ ({ height: p, width: v }, j) => {
812
845
  o({
813
- type: k.SetResize,
846
+ type: D.SetResize,
814
847
  payload: {
815
848
  id: j,
816
- height: v,
817
- width: p
849
+ height: p,
850
+ width: v
818
851
  }
819
- }), l(j, k.SetResize, { height: v, width: p });
852
+ }), l(j, D.SetResize, { height: p, width: v });
820
853
  },
821
854
  [o, l]
822
855
  ), R = I(
823
- (v, p) => {
856
+ (p, v) => {
824
857
  o({
825
- type: k.SetBasemap,
858
+ type: D.SetBasemap,
826
859
  payload: {
827
- id: p,
828
- basemap: v
860
+ id: v,
861
+ basemap: p
829
862
  }
830
863
  });
831
864
  },
832
865
  [o]
833
866
  ), y = I(
834
- (v, p) => {
867
+ (p, v) => {
835
868
  o({
836
- type: k.SetZoom,
869
+ type: D.SetZoom,
837
870
  payload: {
838
- id: p,
839
- zoom: v
871
+ id: v,
872
+ zoom: p
840
873
  }
841
874
  });
842
875
  },
843
876
  [o]
844
877
  ), w = I(
845
- (v, p) => {
878
+ (p, v) => {
846
879
  o({
847
- type: k.SetLoaded,
880
+ type: D.SetLoaded,
848
881
  payload: {
849
- id: p,
850
- value: v
882
+ id: v,
883
+ value: p
851
884
  }
852
885
  });
853
886
  },
854
887
  [o]
855
- ), C = Fe({
856
- setViewState: b,
888
+ ), C = Ae({
889
+ setViewState: E,
857
890
  setBasemap: R,
858
891
  setResize: u,
859
892
  setZoom: y,
860
893
  setLoaded: w
861
894
  });
862
- return /* @__PURE__ */ ae.jsx(Ve.Provider, { value: C.current, children: /* @__PURE__ */ ae.jsx(Ue.Provider, { value: g, children: /* @__PURE__ */ ae.jsx(Ne.Provider, { value: _, children: t }) }) });
895
+ return /* @__PURE__ */ oe.jsx(Ye.Provider, { value: C.current, children: /* @__PURE__ */ oe.jsx(Ve.Provider, { value: g, children: /* @__PURE__ */ oe.jsx(Ue.Provider, { value: _, children: r }) }) });
863
896
  }
864
- const $e = {
897
+ const Be = {
865
898
  NUMBER: {
866
899
  style: "decimal",
867
900
  maximumFractionDigits: 1,
@@ -883,82 +916,85 @@ const $e = {
883
916
  day: "2-digit"
884
917
  }
885
918
  };
886
- function Be(t, s, d) {
887
- return Intl.NumberFormat(s, d).format(t);
919
+ function We(r, s, d) {
920
+ return Intl.NumberFormat(s, d).format(r);
888
921
  }
889
- function jr(t, s, d = {}) {
890
- return Be(t, s, { ...$e.NUMBER, ...d });
922
+ function Dr(r, s, d = {}) {
923
+ return We(r, s, { ...Be.NUMBER, ...d });
891
924
  }
892
- function Dr(t, s, d = {}) {
893
- return Be(t, s, { ...$e.CURRENCY, ...d });
925
+ function Fr(r, s, d = {}) {
926
+ return We(r, s, { ...Be.CURRENCY, ...d });
894
927
  }
895
- var F = /* @__PURE__ */ ((t) => (t.CURRENCY = "CURRENCY", t.DEFAULT = "DEFAULT", t.NUMBER = "NUMBER", t))(F || {});
896
- const Me = {
928
+ var F = /* @__PURE__ */ ((r) => (r.CURRENCY = "CURRENCY", r.DEFAULT = "DEFAULT", r.NUMBER = "NUMBER", r))(F || {});
929
+ const Ie = {
897
930
  [F.CURRENCY]: {
898
931
  type: F.CURRENCY,
899
- format: (t, s) => Dr(t, s)
932
+ format: (r, s) => Fr(r, s)
900
933
  },
901
934
  [F.NUMBER]: {
902
935
  type: F.NUMBER,
903
- format: (t, s) => jr(t, s)
936
+ format: (r, s) => Dr(r, s)
904
937
  },
905
938
  [F.DEFAULT]: {
906
939
  type: F.DEFAULT,
907
- format: (t) => t.toLocaleString()
940
+ format: (r) => r.toLocaleString()
908
941
  }
909
942
  };
910
- function Br({
911
- properties: t,
943
+ function zr({
944
+ properties: r,
912
945
  formatters: s = {},
913
- includeColumns: d = Object.keys(t),
946
+ includeColumns: d = Object.keys(r),
914
947
  locale: _ = "en-US",
915
948
  showColumnName: o = !0,
916
949
  title: g,
917
- getColumnName: l = Mr,
918
- getFieldHtml: b = Fr,
919
- getTitle: u = kr,
920
- getValue: R = Ar
950
+ getColumnName: l = Nr,
951
+ getFieldHtml: E = Mr,
952
+ getTitle: u = Ar,
953
+ getValue: R = Lr
921
954
  }) {
922
- const y = g ? u(g) : "", C = d.reduce((v, p) => {
923
- const j = s[p], W = t[p], D = R(W, _, j), S = o ? l(p) : "";
924
- return v + b(S, D);
955
+ const y = g ? u(g) : "", C = d.reduce((p, v) => {
956
+ const j = s[v], W = r[v], k = R(W, _, j), S = o ? l(v) : "";
957
+ return p + E(S, k);
925
958
  }, "");
926
959
  return y + C;
927
960
  }
928
- function kr(t) {
929
- return `<h3 style="margin: 0"><strong>${t}</strong></h3></br>`;
961
+ function Ar(r) {
962
+ return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
930
963
  }
931
- function Fr(t, s) {
932
- return `${t}${s}</br>`;
964
+ function Mr(r, s) {
965
+ return `${r}${s}</br>`;
933
966
  }
934
- function Ar(t, s, d) {
967
+ function Lr(r, s, d) {
935
968
  try {
936
- return Lr(d)(t, s);
969
+ return Ir(d)(r, s);
937
970
  } catch {
938
- return t;
971
+ return r;
939
972
  }
940
973
  }
941
- function Lr(t) {
942
- return typeof t == "function" ? t : (t && Me[t] || Me[F.DEFAULT]).format;
974
+ function Ir(r) {
975
+ return typeof r == "function" ? r : (r && Ie[r] || Ie[F.DEFAULT]).format;
943
976
  }
944
- function Mr(t) {
945
- return `<strong>${t}</strong>: `;
977
+ function Nr(r) {
978
+ return `<strong>${r}</strong>: `;
946
979
  }
947
980
  export {
948
- Nr as CartoBasemapURL,
949
- wr as CartoBasemapsNames,
981
+ ae as CartoBasemapURL,
982
+ Tr as CartoBasemapsNames,
950
983
  F as FormatterTypes,
951
- oe as GMapsBasemap,
952
- B as INITIAL_STATE,
953
- Ve as MapActionsContext,
954
- Ne as MapContext,
955
- $r as MapProvider,
956
- Br as objectToHtml,
957
- Tr as reducer,
958
- Cr as useMap,
959
- Or as useMapActions,
960
- Yr as useMapActionsByID,
961
- Ur as useMapByID,
962
- Ye as useMapRefences,
963
- Vr as useMapReferencesByID
984
+ ie as GMapsBasemap,
985
+ Vr as MAPS_BASEMAP,
986
+ D as MapActions,
987
+ Ye as MapActionsContext,
988
+ Ue as MapContext,
989
+ Wr as MapProvider,
990
+ Ve as MapReferencesContext,
991
+ Cr as MapsTypes,
992
+ zr as objectToHtml,
993
+ Or as reducer,
994
+ Pr as useMap,
995
+ xr as useMapActions,
996
+ Br as useMapActionsByID,
997
+ Yr as useMapByID,
998
+ $e as useMapRefences,
999
+ $r as useMapReferencesByID
964
1000
  };