@carto/ps-react-maps 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,28 +1,28 @@
1
- import et, { createContext as Q, useContext as ee, useCallback as O, useReducer as tt, useRef as se, useMemo as Zt, useEffect as rt } from "react";
2
- import { EditableGeoJsonLayer as Jt } from "@nebula.gl/layers";
3
- import { MeasureDistanceMode as Kt } from "@nebula.gl/edit-modes";
4
- import { EventManager as Xt } from "mjolnir.js";
1
+ import Qe, { createContext as K, useContext as X, useCallback as M, useReducer as et, useRef as ie, useMemo as Zt, useEffect as tt } from "react";
2
+ import { EventManager as Jt } from "mjolnir.js";
3
+ import { EditableGeoJsonLayer as Kt } from "@nebula.gl/layers";
4
+ import { MeasureDistanceMode as Xt } from "@nebula.gl/edit-modes";
5
5
  import Qt from "convert-units";
6
6
  var er = /* @__PURE__ */ ((t) => (t.Roadmap = "roadmap", t.Satellite = "satellite", t.Hybrid = "hybrid", t))(er || {}), tr = /* @__PURE__ */ ((t) => (t.DarkMatter = "dark-matter", t.Positron = "positron", t.Voyager = "voyager", t))(tr || {});
7
- const ye = {
7
+ const ge = {
8
8
  positron: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
9
9
  voyager: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
10
10
  "dark-matter": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
11
11
  };
12
- var nt = /* @__PURE__ */ ((t) => (t.Maplibre = "maplibre", t.GoogleMaps = "google-maps", t))(nt || {});
13
- const he = {
12
+ var rt = /* @__PURE__ */ ((t) => (t.Maplibre = "maplibre", t.GoogleMaps = "google-maps", t))(rt || {});
13
+ const ye = {
14
14
  positron: {
15
- url: ye.positron,
15
+ url: ge.positron,
16
16
  type: "maplibre"
17
17
  /* Maplibre */
18
18
  },
19
19
  voyager: {
20
- url: ye.voyager,
20
+ url: ge.voyager,
21
21
  type: "maplibre"
22
22
  /* Maplibre */
23
23
  },
24
24
  "dark-matter": {
25
- url: ye[
25
+ url: ge[
26
26
  "dark-matter"
27
27
  /* DarkMatter */
28
28
  ],
@@ -41,9 +41,9 @@ const he = {
41
41
  type: "google-maps"
42
42
  /* GoogleMaps */
43
43
  }
44
- }, z = () => {
44
+ }, W = () => {
45
45
  throw new Error("You forgot to wrap your component in <MapProvider>.");
46
- }, K = {
46
+ }, Z = {
47
47
  state: {
48
48
  maps: {}
49
49
  // sync: false,
@@ -53,137 +53,137 @@ const he = {
53
53
  },
54
54
  actions: {
55
55
  // toggleSync: stub,
56
- setViewState: z,
57
- setBasemap: z,
58
- setResize: z,
59
- setZoom: z,
60
- setLoaded: z
56
+ setViewState: W,
57
+ setBasemap: W,
58
+ setResize: W,
59
+ setZoom: W,
60
+ setLoaded: W
61
61
  }
62
- }, at = Q(
63
- K.state
64
- ), ot = Q(K.references), it = Q(
65
- K.actions
62
+ }, nt = K(
63
+ Z.state
64
+ ), at = K(Z.references), ot = K(
65
+ Z.actions
66
66
  );
67
- var F = /* @__PURE__ */ ((t) => (t.SetViewState = "SetViewState", t.SetBasemap = "SetBasemap", t.SetResize = "SetResize", t.SetZoom = "SetZoom", t.SetLoaded = "SetLoaded", t))(F || {});
67
+ var L = /* @__PURE__ */ ((t) => (t.SetViewState = "SetViewState", t.SetBasemap = "SetBasemap", t.SetResize = "SetResize", t.SetZoom = "SetZoom", t.SetLoaded = "SetLoaded", t))(L || {});
68
68
  function rr(t, { type: r, payload: a }) {
69
69
  return {
70
70
  SetViewState: () => {
71
- const { id: o, viewState: f } = a, l = { ...t.maps };
72
- return l[o] = {
71
+ const { id: o, viewState: l } = a, f = { ...t.maps };
72
+ return f[o] = {
73
73
  ...t.maps[o],
74
- viewState: f
74
+ viewState: l
75
75
  }, {
76
76
  ...t,
77
- maps: l
77
+ maps: f
78
78
  };
79
79
  },
80
80
  SetResize: () => {
81
- const { id: o, width: f, height: l } = a, g = { ...t.maps };
82
- return g[o] = {
81
+ const { id: o, width: l, height: f } = a, y = { ...t.maps };
82
+ return y[o] = {
83
83
  ...t.maps[o],
84
84
  viewState: {
85
85
  ...t.maps[o].viewState,
86
- width: f,
87
- height: l
86
+ width: l,
87
+ height: f
88
88
  }
89
89
  }, {
90
90
  ...t,
91
- maps: g
91
+ maps: y
92
92
  };
93
93
  },
94
94
  SetBasemap: () => {
95
- const { id: o, basemap: f } = a, l = { ...t.maps }, { basemap: g } = l[o], c = he[g]?.type, y = he[f]?.type, h = c === y;
96
- return l[o] = {
95
+ const { id: o, basemap: l } = a, f = { ...t.maps }, { basemap: y } = f[o], c = ye[y]?.type, E = ye[l]?.type, p = c === E;
96
+ return f[o] = {
97
97
  ...t.maps[o],
98
- basemap: f,
99
- isLoaded: h
98
+ basemap: l,
99
+ isLoaded: p
100
100
  }, {
101
101
  ...t,
102
- maps: l
102
+ maps: f
103
103
  };
104
104
  },
105
105
  SetZoom: () => {
106
- const { id: o, zoom: f } = a, l = { ...t.maps };
107
- return l[o] = {
106
+ const { id: o, zoom: l } = a, f = { ...t.maps };
107
+ return f[o] = {
108
108
  ...t.maps[o],
109
109
  viewState: {
110
110
  ...t.maps[o].viewState,
111
- zoom: f
111
+ zoom: l
112
112
  }
113
113
  }, {
114
114
  ...t,
115
- maps: l
115
+ maps: f
116
116
  };
117
117
  },
118
118
  SetLoaded: () => {
119
- const { id: o, value: f } = a, l = { ...t.maps };
120
- return l[o] = {
119
+ const { id: o, value: l } = a, f = { ...t.maps };
120
+ return f[o] = {
121
121
  ...t.maps[o],
122
- isLoaded: f
122
+ isLoaded: l
123
123
  }, {
124
124
  ...t,
125
- maps: l
125
+ maps: f
126
126
  };
127
127
  }
128
128
  }[r]?.() ?? t;
129
129
  }
130
- function st(t) {
131
- return ee(at).maps[t];
130
+ function be(t) {
131
+ return X(nt).maps[t];
132
132
  }
133
133
  function _e(t) {
134
- const r = ee(ot), { instanceRef: a, overlayRef: s } = r.current[t], o = O(() => {
135
- const y = a?.current;
136
- return y?.deck || y?._deck;
137
- }, [a]), f = O(() => s?.current, [s]), l = O(() => o()?._getViewState(), [o]), g = O(
138
- (y) => o()?.getViewports(y),
134
+ const r = X(at), { instanceRef: a, overlayRef: s } = r.current[t], o = M(() => {
135
+ const E = a?.current;
136
+ return E?.deck || E?._deck;
137
+ }, [a]), l = M(() => s?.current, [s]), f = M(() => o()?._getViewState(), [o]), y = M(
138
+ (E) => o()?.getViewports(E),
139
139
  [o]
140
- ), c = O(
141
- (y = 0, h) => g(h)?.[y],
142
- [g]
140
+ ), c = M(
141
+ (E = 0, p) => y(p)?.[E],
142
+ [y]
143
143
  );
144
144
  return {
145
145
  instanceRef: a,
146
146
  overlayRef: s,
147
147
  getDeckInstance: o,
148
- getOverlayInstance: f,
149
- getViewState: l,
148
+ getOverlayInstance: l,
149
+ getViewState: f,
150
150
  getViewport: c,
151
- getViewports: g
151
+ getViewports: y
152
152
  };
153
153
  }
154
154
  function nr(t) {
155
- const { setBasemap: r, setResize: a, setViewState: s, setZoom: o, setLoaded: f } = ee(it), { getViewport: l } = _e(t);
155
+ const { setBasemap: r, setResize: a, setViewState: s, setZoom: o, setLoaded: l } = X(ot), { getViewport: f } = _e(t);
156
156
  return {
157
157
  setBasemap: (c) => r(c, t),
158
158
  setResize: (c) => a(c, t),
159
159
  setViewState: (c) => s(c, t),
160
160
  setZoom: (c) => o(c, t),
161
- setLoaded: (c) => f(c, t),
161
+ setLoaded: (c) => l(c, t),
162
162
  fitBounds: (c, {
163
- boundsOptions: y,
164
- viewStateOptions: h
163
+ boundsOptions: E,
164
+ viewStateOptions: p
165
165
  } = {}) => {
166
- const b = l(), { latitude: M, longitude: v, zoom: E } = b.fitBounds(
166
+ const b = f(), { latitude: O, longitude: g, zoom: h } = b.fitBounds(
167
167
  c,
168
- y
168
+ E
169
169
  );
170
- s({ ...h, latitude: M, longitude: v, zoom: E }, t);
170
+ s({ ...p, latitude: O, longitude: g, zoom: h }, t);
171
171
  }
172
172
  };
173
173
  }
174
- function zr(t) {
175
- return st(t);
176
- }
177
174
  function qr(t) {
178
- return _e(t);
175
+ return be(t);
179
176
  }
180
177
  function Gr(t) {
178
+ return _e(t);
179
+ }
180
+ function Zr(t) {
181
181
  return nr(t);
182
182
  }
183
183
  function ar(t) {
184
184
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
185
185
  }
186
- var Ee = { exports: {} }, q = {};
186
+ var he = { exports: {} }, H = {};
187
187
  /**
188
188
  * @license React
189
189
  * react-jsx-runtime.production.min.js
@@ -193,25 +193,25 @@ var Ee = { exports: {} }, q = {};
193
193
  * This source code is licensed under the MIT license found in the
194
194
  * LICENSE file in the root directory of this source tree.
195
195
  */
196
- var Ge;
196
+ var qe;
197
197
  function or() {
198
- if (Ge)
199
- return q;
200
- Ge = 1;
201
- var t = et, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
202
- function l(g, c, y) {
203
- var h, b = {}, M = null, v = null;
204
- y !== void 0 && (M = "" + y), c.key !== void 0 && (M = "" + c.key), c.ref !== void 0 && (v = c.ref);
205
- for (h in c)
206
- s.call(c, h) && !f.hasOwnProperty(h) && (b[h] = c[h]);
207
- if (g && g.defaultProps)
208
- for (h in c = g.defaultProps, c)
209
- b[h] === void 0 && (b[h] = c[h]);
210
- return { $$typeof: r, type: g, key: M, ref: v, props: b, _owner: o.current };
198
+ if (qe)
199
+ return H;
200
+ qe = 1;
201
+ var t = Qe, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
202
+ function f(y, c, E) {
203
+ var p, b = {}, O = null, g = null;
204
+ E !== void 0 && (O = "" + E), c.key !== void 0 && (O = "" + c.key), c.ref !== void 0 && (g = c.ref);
205
+ for (p in c)
206
+ s.call(c, p) && !l.hasOwnProperty(p) && (b[p] = c[p]);
207
+ if (y && y.defaultProps)
208
+ for (p in c = y.defaultProps, c)
209
+ b[p] === void 0 && (b[p] = c[p]);
210
+ return { $$typeof: r, type: y, key: O, ref: g, props: b, _owner: o.current };
211
211
  }
212
- return q.Fragment = a, q.jsx = l, q.jsxs = l, q;
212
+ return H.Fragment = a, H.jsx = f, H.jsxs = f, H;
213
213
  }
214
- var G = {};
214
+ var z = {};
215
215
  /**
216
216
  * @license React
217
217
  * react-jsx-runtime.development.js
@@ -221,57 +221,57 @@ var G = {};
221
221
  * This source code is licensed under the MIT license found in the
222
222
  * LICENSE file in the root directory of this source tree.
223
223
  */
224
- var Ze;
224
+ var Ge;
225
225
  function ir() {
226
- return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
227
- var t = et, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), g = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), E = Symbol.iterator, x = "@@iterator";
228
- function I(e) {
226
+ return Ge || (Ge = 1, process.env.NODE_ENV !== "production" && function() {
227
+ var t = Qe, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), y = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = Symbol.iterator, x = "@@iterator";
228
+ function F(e) {
229
229
  if (e === null || typeof e != "object")
230
230
  return null;
231
- var n = E && e[E] || e[x];
231
+ var n = h && e[h] || e[x];
232
232
  return typeof n == "function" ? n : null;
233
233
  }
234
234
  var j = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
235
- function S(e) {
235
+ function T(e) {
236
236
  {
237
237
  for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), u = 1; u < n; u++)
238
238
  i[u - 1] = arguments[u];
239
- Re("error", e, i);
239
+ Q("error", e, i);
240
240
  }
241
241
  }
242
- function Re(e, n, i) {
242
+ function Q(e, n, i) {
243
243
  {
244
- var u = j.ReactDebugCurrentFrame, p = u.getStackAddendum();
245
- p !== "" && (n += "%s", i = i.concat([p]));
244
+ var u = j.ReactDebugCurrentFrame, v = u.getStackAddendum();
245
+ v !== "" && (n += "%s", i = i.concat([v]));
246
246
  var _ = i.map(function(m) {
247
247
  return String(m);
248
248
  });
249
249
  _.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, _);
250
250
  }
251
251
  }
252
- var Y = !1, B = !1, Et = !1, bt = !1, _t = !1, Te;
253
- Te = Symbol.for("react.module.reference");
252
+ var yt = !1, ht = !1, Et = !1, bt = !1, _t = !1, Re;
253
+ Re = Symbol.for("react.module.reference");
254
254
  function St(e) {
255
- return !!(typeof e == "string" || typeof e == "function" || e === s || e === f || _t || e === o || e === y || e === h || bt || e === v || Y || B || Et || typeof e == "object" && e !== null && (e.$$typeof === M || e.$$typeof === b || e.$$typeof === l || e.$$typeof === g || e.$$typeof === c || // This needs to include all possible module reference object
255
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === l || _t || e === o || e === E || e === p || bt || e === g || yt || ht || Et || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === b || e.$$typeof === f || e.$$typeof === y || e.$$typeof === c || // This needs to include all possible module reference object
256
256
  // types supported by any Flight configuration anywhere since
257
257
  // we don't know which Flight build this will end up being used
258
258
  // with.
259
- e.$$typeof === Te || e.getModuleId !== void 0));
259
+ e.$$typeof === Re || e.getModuleId !== void 0));
260
260
  }
261
261
  function Rt(e, n, i) {
262
262
  var u = e.displayName;
263
263
  if (u)
264
264
  return u;
265
- var p = n.displayName || n.name || "";
266
- return p !== "" ? i + "(" + p + ")" : i;
265
+ var v = n.displayName || n.name || "";
266
+ return v !== "" ? i + "(" + v + ")" : i;
267
267
  }
268
- function Me(e) {
268
+ function Te(e) {
269
269
  return e.displayName || "Context";
270
270
  }
271
271
  function A(e) {
272
272
  if (e == null)
273
273
  return null;
274
- 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")
274
+ 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")
275
275
  return e.displayName || e.name || null;
276
276
  if (typeof e == "string")
277
277
  return e;
@@ -280,30 +280,30 @@ function ir() {
280
280
  return "Fragment";
281
281
  case a:
282
282
  return "Portal";
283
- case f:
283
+ case l:
284
284
  return "Profiler";
285
285
  case o:
286
286
  return "StrictMode";
287
- case y:
287
+ case E:
288
288
  return "Suspense";
289
- case h:
289
+ case p:
290
290
  return "SuspenseList";
291
291
  }
292
292
  if (typeof e == "object")
293
293
  switch (e.$$typeof) {
294
- case g:
294
+ case y:
295
295
  var n = e;
296
- return Me(n) + ".Consumer";
297
- case l:
296
+ return Te(n) + ".Consumer";
297
+ case f:
298
298
  var i = e;
299
- return Me(i._context) + ".Provider";
299
+ return Te(i._context) + ".Provider";
300
300
  case c:
301
301
  return Rt(e, e.render, "ForwardRef");
302
302
  case b:
303
303
  var u = e.displayName || null;
304
304
  return u !== null ? u : A(e.type) || "Memo";
305
- case M: {
306
- var p = e, _ = p._payload, m = p._init;
305
+ case O: {
306
+ var v = e, _ = v._payload, m = v._init;
307
307
  try {
308
308
  return A(m(_));
309
309
  } catch {
@@ -313,18 +313,18 @@ function ir() {
313
313
  }
314
314
  return null;
315
315
  }
316
- var L = Object.assign, W = 0, Oe, Pe, Ce, we, xe, je, Ae;
317
- function De() {
316
+ var I = Object.assign, Y = 0, Me, Oe, Pe, Ce, we, xe, je;
317
+ function Ae() {
318
318
  }
319
- De.__reactDisabledLog = !0;
319
+ Ae.__reactDisabledLog = !0;
320
320
  function Tt() {
321
321
  {
322
- if (W === 0) {
323
- Oe = console.log, Pe = console.info, Ce = console.warn, we = console.error, xe = console.group, je = console.groupCollapsed, Ae = console.groupEnd;
322
+ if (Y === 0) {
323
+ Me = console.log, Oe = console.info, Pe = console.warn, Ce = console.error, we = console.group, xe = console.groupCollapsed, je = console.groupEnd;
324
324
  var e = {
325
325
  configurable: !0,
326
326
  enumerable: !0,
327
- value: De,
327
+ value: Ae,
328
328
  writable: !0
329
329
  };
330
330
  Object.defineProperties(console, {
@@ -337,77 +337,77 @@ function ir() {
337
337
  groupEnd: e
338
338
  });
339
339
  }
340
- W++;
340
+ Y++;
341
341
  }
342
342
  }
343
343
  function Mt() {
344
344
  {
345
- if (W--, W === 0) {
345
+ if (Y--, Y === 0) {
346
346
  var e = {
347
347
  configurable: !0,
348
348
  enumerable: !0,
349
349
  writable: !0
350
350
  };
351
351
  Object.defineProperties(console, {
352
- log: L({}, e, {
352
+ log: I({}, e, {
353
+ value: Me
354
+ }),
355
+ info: I({}, e, {
353
356
  value: Oe
354
357
  }),
355
- info: L({}, e, {
358
+ warn: I({}, e, {
356
359
  value: Pe
357
360
  }),
358
- warn: L({}, e, {
361
+ error: I({}, e, {
359
362
  value: Ce
360
363
  }),
361
- error: L({}, e, {
364
+ group: I({}, e, {
362
365
  value: we
363
366
  }),
364
- group: L({}, e, {
367
+ groupCollapsed: I({}, e, {
365
368
  value: xe
366
369
  }),
367
- groupCollapsed: L({}, e, {
370
+ groupEnd: I({}, e, {
368
371
  value: je
369
- }),
370
- groupEnd: L({}, e, {
371
- value: Ae
372
372
  })
373
373
  });
374
374
  }
375
- W < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
375
+ Y < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
376
376
  }
377
377
  }
378
- var ue = j.ReactCurrentDispatcher, le;
379
- function te(e, n, i) {
378
+ var ce = j.ReactCurrentDispatcher, ue;
379
+ function ee(e, n, i) {
380
380
  {
381
- if (le === void 0)
381
+ if (ue === void 0)
382
382
  try {
383
383
  throw Error();
384
- } catch (p) {
385
- var u = p.stack.trim().match(/\n( *(at )?)/);
386
- le = u && u[1] || "";
384
+ } catch (v) {
385
+ var u = v.stack.trim().match(/\n( *(at )?)/);
386
+ ue = u && u[1] || "";
387
387
  }
388
388
  return `
389
- ` + le + e;
389
+ ` + ue + e;
390
390
  }
391
391
  }
392
- var fe = !1, re;
392
+ var le = !1, te;
393
393
  {
394
394
  var Ot = typeof WeakMap == "function" ? WeakMap : Map;
395
- re = new Ot();
395
+ te = new Ot();
396
396
  }
397
- function Fe(e, n) {
398
- if (!e || fe)
397
+ function De(e, n) {
398
+ if (!e || le)
399
399
  return "";
400
400
  {
401
- var i = re.get(e);
401
+ var i = te.get(e);
402
402
  if (i !== void 0)
403
403
  return i;
404
404
  }
405
405
  var u;
406
- fe = !0;
407
- var p = Error.prepareStackTrace;
406
+ le = !0;
407
+ var v = Error.prepareStackTrace;
408
408
  Error.prepareStackTrace = void 0;
409
409
  var _;
410
- _ = ue.current, ue.current = null, Tt();
410
+ _ = ce.current, ce.current = null, Tt();
411
411
  try {
412
412
  if (n) {
413
413
  var m = function() {
@@ -444,74 +444,74 @@ function ir() {
444
444
  if (D && u && typeof D.stack == "string") {
445
445
  for (var d = D.stack.split(`
446
446
  `), P = u.stack.split(`
447
- `), R = d.length - 1, T = P.length - 1; R >= 1 && T >= 0 && d[R] !== P[T]; )
448
- T--;
449
- for (; R >= 1 && T >= 0; R--, T--)
450
- if (d[R] !== P[T]) {
451
- if (R !== 1 || T !== 1)
447
+ `), S = d.length - 1, R = P.length - 1; S >= 1 && R >= 0 && d[S] !== P[R]; )
448
+ R--;
449
+ for (; S >= 1 && R >= 0; S--, R--)
450
+ if (d[S] !== P[R]) {
451
+ if (S !== 1 || R !== 1)
452
452
  do
453
- if (R--, T--, T < 0 || d[R] !== P[T]) {
453
+ if (S--, R--, R < 0 || d[S] !== P[R]) {
454
454
  var w = `
455
- ` + d[R].replace(" at new ", " at ");
456
- return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && re.set(e, w), w;
455
+ ` + d[S].replace(" at new ", " at ");
456
+ return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && te.set(e, w), w;
457
457
  }
458
- while (R >= 1 && T >= 0);
458
+ while (S >= 1 && R >= 0);
459
459
  break;
460
460
  }
461
461
  }
462
462
  } finally {
463
- fe = !1, ue.current = _, Mt(), Error.prepareStackTrace = p;
463
+ le = !1, ce.current = _, Mt(), Error.prepareStackTrace = v;
464
464
  }
465
- var U = e ? e.displayName || e.name : "", qe = U ? te(U) : "";
466
- return typeof e == "function" && re.set(e, qe), qe;
465
+ var U = e ? e.displayName || e.name : "", ze = U ? ee(U) : "";
466
+ return typeof e == "function" && te.set(e, ze), ze;
467
467
  }
468
468
  function Pt(e, n, i) {
469
- return Fe(e, !1);
469
+ return De(e, !1);
470
470
  }
471
471
  function Ct(e) {
472
472
  var n = e.prototype;
473
473
  return !!(n && n.isReactComponent);
474
474
  }
475
- function ne(e, n, i) {
475
+ function re(e, n, i) {
476
476
  if (e == null)
477
477
  return "";
478
478
  if (typeof e == "function")
479
- return Fe(e, Ct(e));
479
+ return De(e, Ct(e));
480
480
  if (typeof e == "string")
481
- return te(e);
481
+ return ee(e);
482
482
  switch (e) {
483
- case y:
484
- return te("Suspense");
485
- case h:
486
- return te("SuspenseList");
483
+ case E:
484
+ return ee("Suspense");
485
+ case p:
486
+ return ee("SuspenseList");
487
487
  }
488
488
  if (typeof e == "object")
489
489
  switch (e.$$typeof) {
490
490
  case c:
491
491
  return Pt(e.render);
492
492
  case b:
493
- return ne(e.type, n, i);
494
- case M: {
495
- var u = e, p = u._payload, _ = u._init;
493
+ return re(e.type, n, i);
494
+ case O: {
495
+ var u = e, v = u._payload, _ = u._init;
496
496
  try {
497
- return ne(_(p), n, i);
497
+ return re(_(v), n, i);
498
498
  } catch {
499
499
  }
500
500
  }
501
501
  }
502
502
  return "";
503
503
  }
504
- var ae = Object.prototype.hasOwnProperty, ke = {}, Le = j.ReactDebugCurrentFrame;
505
- function oe(e) {
504
+ var ne = Object.prototype.hasOwnProperty, Fe = {}, Le = j.ReactDebugCurrentFrame;
505
+ function ae(e) {
506
506
  if (e) {
507
- var n = e._owner, i = ne(e.type, e._source, n ? n.type : null);
507
+ var n = e._owner, i = re(e.type, e._source, n ? n.type : null);
508
508
  Le.setExtraStackFrame(i);
509
509
  } else
510
510
  Le.setExtraStackFrame(null);
511
511
  }
512
- function wt(e, n, i, u, p) {
512
+ function wt(e, n, i, u, v) {
513
513
  {
514
- var _ = Function.call.bind(ae);
514
+ var _ = Function.call.bind(ne);
515
515
  for (var m in e)
516
516
  if (_(e, m)) {
517
517
  var d = void 0;
@@ -521,15 +521,15 @@ function ir() {
521
521
  throw P.name = "Invariant Violation", P;
522
522
  }
523
523
  d = e[m](n, m, u, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
524
- } catch (R) {
525
- d = R;
524
+ } catch (S) {
525
+ d = S;
526
526
  }
527
- d && !(d instanceof Error) && (oe(p), 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).", u || "React class", i, m, typeof d), oe(null)), d instanceof Error && !(d.message in ke) && (ke[d.message] = !0, oe(p), S("Failed %s type: %s", i, d.message), oe(null));
527
+ d && !(d instanceof Error) && (ae(v), 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).", u || "React class", i, m, typeof d), ae(null)), d instanceof Error && !(d.message in Fe) && (Fe[d.message] = !0, ae(v), T("Failed %s type: %s", i, d.message), ae(null));
528
528
  }
529
529
  }
530
530
  }
531
531
  var xt = Array.isArray;
532
- function de(e) {
532
+ function fe(e) {
533
533
  return xt(e);
534
534
  }
535
535
  function jt(e) {
@@ -540,51 +540,51 @@ function ir() {
540
540
  }
541
541
  function At(e) {
542
542
  try {
543
- return Ie(e), !1;
543
+ return ke(e), !1;
544
544
  } catch {
545
545
  return !0;
546
546
  }
547
547
  }
548
- function Ie(e) {
548
+ function ke(e) {
549
549
  return "" + e;
550
550
  }
551
- function Ne(e) {
551
+ function Ie(e) {
552
552
  if (At(e))
553
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jt(e)), Ie(e);
553
+ return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jt(e)), ke(e);
554
554
  }
555
- var H = j.ReactCurrentOwner, Dt = {
555
+ var B = j.ReactCurrentOwner, Dt = {
556
556
  key: !0,
557
557
  ref: !0,
558
558
  __self: !0,
559
559
  __source: !0
560
- }, Ue, Ve, me;
561
- me = {};
560
+ }, Ne, Ue, de;
561
+ de = {};
562
562
  function Ft(e) {
563
- if (ae.call(e, "ref")) {
563
+ if (ne.call(e, "ref")) {
564
564
  var n = Object.getOwnPropertyDescriptor(e, "ref").get;
565
565
  if (n && n.isReactWarning)
566
566
  return !1;
567
567
  }
568
568
  return e.ref !== void 0;
569
569
  }
570
- function kt(e) {
571
- if (ae.call(e, "key")) {
570
+ function Lt(e) {
571
+ if (ne.call(e, "key")) {
572
572
  var n = Object.getOwnPropertyDescriptor(e, "key").get;
573
573
  if (n && n.isReactWarning)
574
574
  return !1;
575
575
  }
576
576
  return e.key !== void 0;
577
577
  }
578
- function Lt(e, n) {
579
- if (typeof e.ref == "string" && H.current && n && H.current.stateNode !== n) {
580
- var i = A(H.current.type);
581
- me[i] || (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', A(H.current.type), e.ref), me[i] = !0);
578
+ function kt(e, n) {
579
+ if (typeof e.ref == "string" && B.current && n && B.current.stateNode !== n) {
580
+ var i = A(B.current.type);
581
+ de[i] || (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', A(B.current.type), e.ref), de[i] = !0);
582
582
  }
583
583
  }
584
584
  function It(e, n) {
585
585
  {
586
586
  var i = function() {
587
- Ue || (Ue = !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)", n));
587
+ Ne || (Ne = !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)", n));
588
588
  };
589
589
  i.isReactWarning = !0, Object.defineProperty(e, "key", {
590
590
  get: i,
@@ -595,7 +595,7 @@ function ir() {
595
595
  function Nt(e, n) {
596
596
  {
597
597
  var i = function() {
598
- Ve || (Ve = !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)", n));
598
+ Ue || (Ue = !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)", n));
599
599
  };
600
600
  i.isReactWarning = !0, Object.defineProperty(e, "ref", {
601
601
  get: i,
@@ -603,7 +603,7 @@ function ir() {
603
603
  });
604
604
  }
605
605
  }
606
- var Ut = function(e, n, i, u, p, _, m) {
606
+ var Ut = function(e, n, i, u, v, _, m) {
607
607
  var d = {
608
608
  // This tag allows us to uniquely identify this as a React Element
609
609
  $$typeof: r,
@@ -629,44 +629,44 @@ function ir() {
629
629
  configurable: !1,
630
630
  enumerable: !1,
631
631
  writable: !1,
632
- value: p
632
+ value: v
633
633
  }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
634
634
  };
635
- function Vt(e, n, i, u, p) {
635
+ function Vt(e, n, i, u, v) {
636
636
  {
637
637
  var _, m = {}, d = null, P = null;
638
- i !== void 0 && (Ne(i), d = "" + i), kt(n) && (Ne(n.key), d = "" + n.key), Ft(n) && (P = n.ref, Lt(n, p));
638
+ i !== void 0 && (Ie(i), d = "" + i), Lt(n) && (Ie(n.key), d = "" + n.key), Ft(n) && (P = n.ref, kt(n, v));
639
639
  for (_ in n)
640
- ae.call(n, _) && !Dt.hasOwnProperty(_) && (m[_] = n[_]);
640
+ ne.call(n, _) && !Dt.hasOwnProperty(_) && (m[_] = n[_]);
641
641
  if (e && e.defaultProps) {
642
- var R = e.defaultProps;
643
- for (_ in R)
644
- m[_] === void 0 && (m[_] = R[_]);
642
+ var S = e.defaultProps;
643
+ for (_ in S)
644
+ m[_] === void 0 && (m[_] = S[_]);
645
645
  }
646
646
  if (d || P) {
647
- var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
648
- d && It(m, T), P && Nt(m, T);
647
+ var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
648
+ d && It(m, R), P && Nt(m, R);
649
649
  }
650
- return Ut(e, d, P, p, u, H.current, m);
650
+ return Ut(e, d, P, v, u, B.current, m);
651
651
  }
652
652
  }
653
- var pe = j.ReactCurrentOwner, $e = j.ReactDebugCurrentFrame;
653
+ var me = j.ReactCurrentOwner, Ve = j.ReactDebugCurrentFrame;
654
654
  function N(e) {
655
655
  if (e) {
656
- var n = e._owner, i = ne(e.type, e._source, n ? n.type : null);
657
- $e.setExtraStackFrame(i);
656
+ var n = e._owner, i = re(e.type, e._source, n ? n.type : null);
657
+ Ve.setExtraStackFrame(i);
658
658
  } else
659
- $e.setExtraStackFrame(null);
659
+ Ve.setExtraStackFrame(null);
660
660
  }
661
- var ve;
662
- ve = !1;
663
- function ge(e) {
661
+ var pe;
662
+ pe = !1;
663
+ function ve(e) {
664
664
  return typeof e == "object" && e !== null && e.$$typeof === r;
665
665
  }
666
- function Ye() {
666
+ function $e() {
667
667
  {
668
- if (pe.current) {
669
- var e = A(pe.current.type);
668
+ if (me.current) {
669
+ var e = A(me.current.type);
670
670
  if (e)
671
671
  return `
672
672
 
@@ -686,10 +686,10 @@ Check your code at ` + n + ":" + i + ".";
686
686
  return "";
687
687
  }
688
688
  }
689
- var Be = {};
689
+ var Ye = {};
690
690
  function Yt(e) {
691
691
  {
692
- var n = Ye();
692
+ var n = $e();
693
693
  if (!n) {
694
694
  var i = typeof e == "string" ? e : e.displayName || e.name;
695
695
  i && (n = `
@@ -699,35 +699,35 @@ Check the top-level render call using <` + i + ">.");
699
699
  return n;
700
700
  }
701
701
  }
702
- function We(e, n) {
702
+ function Be(e, n) {
703
703
  {
704
704
  if (!e._store || e._store.validated || e.key != null)
705
705
  return;
706
706
  e._store.validated = !0;
707
707
  var i = Yt(n);
708
- if (Be[i])
708
+ if (Ye[i])
709
709
  return;
710
- Be[i] = !0;
710
+ Ye[i] = !0;
711
711
  var u = "";
712
- e && e._owner && e._owner !== pe.current && (u = " It was passed a child from " + A(e._owner.type) + "."), N(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.', i, u), N(null);
712
+ e && e._owner && e._owner !== me.current && (u = " It was passed a child from " + A(e._owner.type) + "."), N(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.', i, u), N(null);
713
713
  }
714
714
  }
715
- function He(e, n) {
715
+ function We(e, n) {
716
716
  {
717
717
  if (typeof e != "object")
718
718
  return;
719
- if (de(e))
719
+ if (fe(e))
720
720
  for (var i = 0; i < e.length; i++) {
721
721
  var u = e[i];
722
- ge(u) && We(u, n);
722
+ ve(u) && Be(u, n);
723
723
  }
724
- else if (ge(e))
724
+ else if (ve(e))
725
725
  e._store && (e._store.validated = !0);
726
726
  else if (e) {
727
- var p = I(e);
728
- if (typeof p == "function" && p !== e.entries)
729
- for (var _ = p.call(e), m; !(m = _.next()).done; )
730
- ge(m.value) && We(m.value, n);
727
+ var v = F(e);
728
+ if (typeof v == "function" && v !== e.entries)
729
+ for (var _ = v.call(e), m; !(m = _.next()).done; )
730
+ ve(m.value) && Be(m.value, n);
731
731
  }
732
732
  }
733
733
  }
@@ -748,12 +748,12 @@ Check the top-level render call using <` + i + ">.");
748
748
  if (i) {
749
749
  var u = A(n);
750
750
  wt(i, e.props, "prop", u, e);
751
- } else if (n.PropTypes !== void 0 && !ve) {
752
- ve = !0;
753
- var p = A(n);
754
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
751
+ } else if (n.PropTypes !== void 0 && !pe) {
752
+ pe = !0;
753
+ var v = A(n);
754
+ T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
755
755
  }
756
- typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
756
+ typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
757
757
  }
758
758
  }
759
759
  function Wt(e) {
@@ -761,149 +761,247 @@ Check the top-level render call using <` + i + ">.");
761
761
  for (var n = Object.keys(e.props), i = 0; i < n.length; i++) {
762
762
  var u = n[i];
763
763
  if (u !== "children" && u !== "key") {
764
- N(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), N(null);
764
+ N(e), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), N(null);
765
765
  break;
766
766
  }
767
767
  }
768
- e.ref !== null && (N(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), N(null));
768
+ e.ref !== null && (N(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), N(null));
769
769
  }
770
770
  }
771
- function ze(e, n, i, u, p, _) {
771
+ function He(e, n, i, u, v, _) {
772
772
  {
773
773
  var m = St(e);
774
774
  if (!m) {
775
775
  var d = "";
776
776
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (d += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
777
- var P = $t(p);
778
- P ? d += P : d += Ye();
779
- var R;
780
- e === null ? R = "null" : de(e) ? R = "array" : e !== void 0 && e.$$typeof === r ? (R = "<" + (A(e.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : R = 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", R, d);
777
+ var P = $t(v);
778
+ P ? d += P : d += $e();
779
+ var S;
780
+ e === null ? S = "null" : fe(e) ? S = "array" : e !== void 0 && e.$$typeof === r ? (S = "<" + (A(e.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : S = 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", S, d);
781
781
  }
782
- var T = Vt(e, n, i, p, _);
783
- if (T == null)
784
- return T;
782
+ var R = Vt(e, n, i, v, _);
783
+ if (R == null)
784
+ return R;
785
785
  if (m) {
786
786
  var w = n.children;
787
787
  if (w !== void 0)
788
788
  if (u)
789
- if (de(w)) {
789
+ if (fe(w)) {
790
790
  for (var U = 0; U < w.length; U++)
791
- He(w[U], e);
791
+ We(w[U], e);
792
792
  Object.freeze && Object.freeze(w);
793
793
  } else
794
- 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.");
794
+ 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.");
795
795
  else
796
- He(w, e);
796
+ We(w, e);
797
797
  }
798
- return e === s ? Wt(T) : Bt(T), T;
798
+ return e === s ? Wt(R) : Bt(R), R;
799
799
  }
800
800
  }
801
801
  function Ht(e, n, i) {
802
- return ze(e, n, i, !0);
802
+ return He(e, n, i, !0);
803
803
  }
804
804
  function zt(e, n, i) {
805
- return ze(e, n, i, !1);
805
+ return He(e, n, i, !1);
806
806
  }
807
807
  var qt = zt, Gt = Ht;
808
- G.Fragment = s, G.jsx = qt, G.jsxs = Gt;
809
- }()), G;
808
+ z.Fragment = s, z.jsx = qt, z.jsxs = Gt;
809
+ }()), z;
810
810
  }
811
- process.env.NODE_ENV === "production" ? Ee.exports = or() : Ee.exports = ir();
812
- var J = Ee.exports;
813
- function Zr({
811
+ process.env.NODE_ENV === "production" ? he.exports = or() : he.exports = ir();
812
+ var G = he.exports;
813
+ function Jr({
814
814
  children: t,
815
815
  maps: r,
816
816
  externalSync: a
817
817
  }) {
818
- const [s, o] = tt(rr, {
819
- ...K.state,
820
- maps: r.reduce((v, E) => (v[E.id] = {
821
- ...E,
818
+ const [s, o] = et(rr, {
819
+ ...Z.state,
820
+ maps: r.reduce((g, h) => (g[h.id] = {
821
+ ...h,
822
822
  isLoaded: !1
823
- }, v), K.state.maps)
824
- }), f = se(
825
- r.reduce((v, E) => (v[E.id] = {
823
+ }, g), Z.state.maps)
824
+ }), l = ie(
825
+ r.reduce((g, h) => (g[h.id] = {
826
826
  instanceRef: {
827
827
  current: null
828
828
  },
829
829
  overlayRef: {
830
830
  current: null
831
831
  }
832
- }, v), {})
833
- ), l = O(
834
- (v, E, x) => {
835
- r[0].id === v && a?.({
836
- type: E,
832
+ }, g), {})
833
+ ), f = M(
834
+ (g, h, x) => {
835
+ r[0].id === g && a?.({
836
+ type: h,
837
837
  payload: x
838
838
  });
839
839
  },
840
840
  [a, r]
841
- ), g = O(
842
- (v, E) => {
841
+ ), y = M(
842
+ (g, h) => {
843
843
  o({
844
- type: F.SetViewState,
844
+ type: L.SetViewState,
845
845
  payload: {
846
- id: E,
847
- viewState: v
846
+ id: h,
847
+ viewState: g
848
848
  }
849
- }), l(E, F.SetViewState, v);
849
+ }), f(h, L.SetViewState, g);
850
850
  },
851
- [o, l]
852
- ), c = O(
853
- ({ height: v, width: E }, x) => {
851
+ [o, f]
852
+ ), c = M(
853
+ ({ height: g, width: h }, x) => {
854
854
  o({
855
- type: F.SetResize,
855
+ type: L.SetResize,
856
856
  payload: {
857
857
  id: x,
858
- height: v,
859
- width: E
858
+ height: g,
859
+ width: h
860
860
  }
861
- }), l(x, F.SetResize, { height: v, width: E });
861
+ }), f(x, L.SetResize, { height: g, width: h });
862
862
  },
863
- [o, l]
864
- ), y = O(
865
- (v, E) => {
863
+ [o, f]
864
+ ), E = M(
865
+ (g, h) => {
866
866
  o({
867
- type: F.SetBasemap,
867
+ type: L.SetBasemap,
868
868
  payload: {
869
- id: E,
870
- basemap: v
869
+ id: h,
870
+ basemap: g
871
871
  }
872
872
  });
873
873
  },
874
874
  [o]
875
- ), h = O(
876
- (v, E) => {
875
+ ), p = M(
876
+ (g, h) => {
877
877
  o({
878
- type: F.SetZoom,
878
+ type: L.SetZoom,
879
879
  payload: {
880
- id: E,
881
- zoom: v
880
+ id: h,
881
+ zoom: g
882
882
  }
883
883
  });
884
884
  },
885
885
  [o]
886
- ), b = O(
887
- (v, E) => {
886
+ ), b = M(
887
+ (g, h) => {
888
888
  o({
889
- type: F.SetLoaded,
889
+ type: L.SetLoaded,
890
890
  payload: {
891
- id: E,
892
- value: v
891
+ id: h,
892
+ value: g
893
893
  }
894
894
  });
895
895
  },
896
896
  [o]
897
- ), M = se({
898
- setViewState: g,
899
- setBasemap: y,
897
+ ), O = ie({
898
+ setViewState: y,
899
+ setBasemap: E,
900
900
  setResize: c,
901
- setZoom: h,
901
+ setZoom: p,
902
902
  setLoaded: b
903
903
  });
904
- return /* @__PURE__ */ J.jsx(it.Provider, { value: M.current, children: /* @__PURE__ */ J.jsx(ot.Provider, { value: f, children: /* @__PURE__ */ J.jsx(at.Provider, { value: s, children: t }) }) });
904
+ return /* @__PURE__ */ G.jsx(ot.Provider, { value: O.current, children: /* @__PURE__ */ G.jsx(at.Provider, { value: l, children: /* @__PURE__ */ G.jsx(nt.Provider, { value: s, children: t }) }) });
905
+ }
906
+ const it = {
907
+ NUMBER: {
908
+ style: "decimal",
909
+ maximumFractionDigits: 1,
910
+ minimumFractionDigits: 0,
911
+ notation: "compact",
912
+ compactDisplay: "short"
913
+ },
914
+ CURRENCY: {
915
+ style: "currency",
916
+ currency: "USD",
917
+ maximumFractionDigits: 2,
918
+ minimumFractionDigits: 2,
919
+ notation: "compact",
920
+ compactDisplay: "short"
921
+ },
922
+ DATE: {
923
+ year: "numeric",
924
+ month: "2-digit",
925
+ day: "2-digit"
926
+ }
927
+ };
928
+ function st(t, r, a) {
929
+ return Intl.NumberFormat(r, a).format(t);
930
+ }
931
+ function ct(t, r, a = {}) {
932
+ return st(t, r, { ...it.NUMBER, ...a });
933
+ }
934
+ function sr(t, r, a = {}) {
935
+ return st(t, r, { ...it.CURRENCY, ...a });
936
+ }
937
+ var k = /* @__PURE__ */ ((t) => (t.CURRENCY = "CURRENCY", t.DEFAULT = "DEFAULT", t.NUMBER = "NUMBER", t))(k || {});
938
+ const Ze = {
939
+ [k.CURRENCY]: {
940
+ type: k.CURRENCY,
941
+ format: (t, r) => sr(t, r)
942
+ },
943
+ [k.NUMBER]: {
944
+ type: k.NUMBER,
945
+ format: (t, r) => ct(t, r)
946
+ },
947
+ [k.DEFAULT]: {
948
+ type: k.DEFAULT,
949
+ format: (t) => t.toLocaleString()
950
+ }
951
+ };
952
+ function Kr({
953
+ properties: t,
954
+ formatters: r = {},
955
+ includeColumns: a = Object.keys(t),
956
+ locale: s = "en-US",
957
+ showColumnName: o = !0,
958
+ title: l,
959
+ getColumnName: f = dr,
960
+ getFieldHtml: y = ur,
961
+ getTitle: c = cr,
962
+ getValue: E = lr
963
+ }) {
964
+ const p = l ? c(l) : "", O = a.reduce((g, h) => {
965
+ const x = r[h], F = t[h], j = E(F, s, x), T = o ? f(h) : "";
966
+ return g + y(T, j);
967
+ }, "");
968
+ return p + O;
969
+ }
970
+ function cr(t) {
971
+ return `<h3 style="margin: 0"><strong>${t}</strong></h3></br>`;
972
+ }
973
+ function ur(t, r) {
974
+ return `${t}${r}</br>`;
975
+ }
976
+ function lr(t, r, a) {
977
+ try {
978
+ return fr(a)(t, r);
979
+ } catch {
980
+ return t;
981
+ }
982
+ }
983
+ function fr(t) {
984
+ return typeof t == "function" ? t : (t && Ze[t] || Ze[k.DEFAULT]).format;
985
+ }
986
+ function dr(t) {
987
+ return `<strong>${t}</strong>: `;
988
+ }
989
+ function mr(t) {
990
+ return ye[t]?.type;
905
991
  }
906
- var C = /* @__PURE__ */ ((t) => (t.milimeter = "milimeter", t.centimeter = "centimeter", t.meter = "meter", t.kilometer = "kilometer", t.mile = "mile", t.feet = "feet", t))(C || {}), ct = /* @__PURE__ */ ((t) => (t.meters = "meters", t.kilometer = "kilometers", t.mile = "miles", t))(ct || {}), ce = /* @__PURE__ */ ((t) => (t.AddPosition = "addPosition", t.Finish = "finish", t))(ce || {});
992
+ function pr(t) {
993
+ return mr(t) === rt.GoogleMaps;
994
+ }
995
+ function vr({ mapId: t }) {
996
+ const { isLoaded: r, basemap: a } = be(t), { getOverlayInstance: s } = _e(t);
997
+ return Zt(() => {
998
+ if (!r || !pr(a))
999
+ return null;
1000
+ const l = s()?.getDiv();
1001
+ return new Jt(l, {});
1002
+ }, [r, s, a]);
1003
+ }
1004
+ var C = /* @__PURE__ */ ((t) => (t.milimeter = "milimeter", t.centimeter = "centimeter", t.meter = "meter", t.kilometer = "kilometer", t.mile = "mile", t.feet = "feet", t))(C || {}), ut = /* @__PURE__ */ ((t) => (t.meters = "meters", t.kilometer = "kilometers", t.mile = "miles", t))(ut || {}), se = /* @__PURE__ */ ((t) => (t.AddPosition = "addPosition", t.Finish = "finish", t))(se || {});
907
1005
  const Je = [
908
1006
  "anyclick",
909
1007
  "pointermove",
@@ -911,8 +1009,8 @@ const Je = [
911
1009
  "panmove",
912
1010
  "panend",
913
1011
  "keyup"
914
- ], sr = "mapMeasureLayer", cr = {
915
- id: sr,
1012
+ ], gr = "mapMeasureLayer", yr = {
1013
+ id: gr,
916
1014
  pickable: !1,
917
1015
  billboard: !1,
918
1016
  editHandlePointRadiusUnits: "pixels",
@@ -937,14 +1035,14 @@ const Je = [
937
1035
  getLineWidth: 2
938
1036
  }
939
1037
  }
940
- }, be = {
1038
+ }, Ee = {
941
1039
  editing: [71, 219, 153, 255],
942
1040
  finished: [49, 153, 107, 255]
943
- }, ur = {
1041
+ }, hr = {
944
1042
  styles: {
945
1043
  colors: {
946
- editing: be.editing,
947
- finished: be.finished
1044
+ editing: Ee.editing,
1045
+ finished: Ee.finished
948
1046
  }
949
1047
  }
950
1048
  }, Ke = {
@@ -954,7 +1052,7 @@ const Je = [
954
1052
  [C.mile]: "mi",
955
1053
  [C.meter]: "m",
956
1054
  [C.feet]: "ft"
957
- }, lr = {
1055
+ }, Er = {
958
1056
  [C.kilometer]: "kilometer",
959
1057
  [C.centimeter]: "centimeter",
960
1058
  [C.milimeter]: "millimeter",
@@ -962,7 +1060,7 @@ const Je = [
962
1060
  [C.meter]: "meter",
963
1061
  [C.feet]: "foot"
964
1062
  };
965
- class fr extends Jt {
1063
+ class br extends Kt {
966
1064
  eventManager;
967
1065
  constructor(r) {
968
1066
  super(r), this.eventManager = r.eventManager;
@@ -985,12 +1083,12 @@ class fr extends Jt {
985
1083
  this.context.deck.eventManager;
986
1084
  }
987
1085
  }
988
- class dr extends Kt {
1086
+ class _r extends Xt {
989
1087
  handleClick(r, a) {
990
1088
  super.handleClick(r, a), a.onEdit({
991
1089
  // data is the same
992
1090
  updatedData: a.data,
993
- editType: ce.AddPosition,
1091
+ editType: se.AddPosition,
994
1092
  editContext: {
995
1093
  distance: this._currentDistance,
996
1094
  finished: this._isMeasuringSessionFinished
@@ -1007,7 +1105,7 @@ class dr extends Kt {
1007
1105
  case "Escape":
1008
1106
  this._isMeasuringSessionFinished = !0, o === 1 && (this.resetClickSequence(), this._currentTooltips = []), a.onUpdateCursor("cell"), a.onEdit({
1009
1107
  updatedData: a.data,
1010
- editType: ce.Finish,
1108
+ editType: se.Finish,
1011
1109
  editContext: {
1012
1110
  finished: this._isMeasuringSessionFinished
1013
1111
  }
@@ -1016,73 +1114,67 @@ class dr extends Kt {
1016
1114
  }
1017
1115
  }
1018
1116
  }
1019
- function mr(t) {
1020
- return he[t]?.type;
1021
- }
1022
- function pr(t) {
1023
- return mr(t) === nt.GoogleMaps;
1024
- }
1025
- var vr = function(r) {
1026
- return gr(r) && !yr(r);
1117
+ var Sr = function(r) {
1118
+ return Rr(r) && !Tr(r);
1027
1119
  };
1028
- function gr(t) {
1120
+ function Rr(t) {
1029
1121
  return !!t && typeof t == "object";
1030
1122
  }
1031
- function yr(t) {
1123
+ function Tr(t) {
1032
1124
  var r = Object.prototype.toString.call(t);
1033
- return r === "[object RegExp]" || r === "[object Date]" || br(t);
1125
+ return r === "[object RegExp]" || r === "[object Date]" || Pr(t);
1034
1126
  }
1035
- var hr = typeof Symbol == "function" && Symbol.for, Er = hr ? Symbol.for("react.element") : 60103;
1036
- function br(t) {
1037
- return t.$$typeof === Er;
1127
+ var Mr = typeof Symbol == "function" && Symbol.for, Or = Mr ? Symbol.for("react.element") : 60103;
1128
+ function Pr(t) {
1129
+ return t.$$typeof === Or;
1038
1130
  }
1039
- function _r(t) {
1131
+ function Cr(t) {
1040
1132
  return Array.isArray(t) ? [] : {};
1041
1133
  }
1042
- function X(t, r) {
1043
- return r.clone !== !1 && r.isMergeableObject(t) ? $(_r(t), t, r) : t;
1134
+ function J(t, r) {
1135
+ return r.clone !== !1 && r.isMergeableObject(t) ? $(Cr(t), t, r) : t;
1044
1136
  }
1045
- function Sr(t, r, a) {
1137
+ function wr(t, r, a) {
1046
1138
  return t.concat(r).map(function(s) {
1047
- return X(s, a);
1139
+ return J(s, a);
1048
1140
  });
1049
1141
  }
1050
- function Rr(t, r) {
1142
+ function xr(t, r) {
1051
1143
  if (!r.customMerge)
1052
1144
  return $;
1053
1145
  var a = r.customMerge(t);
1054
1146
  return typeof a == "function" ? a : $;
1055
1147
  }
1056
- function Tr(t) {
1148
+ function jr(t) {
1057
1149
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(r) {
1058
1150
  return Object.propertyIsEnumerable.call(t, r);
1059
1151
  }) : [];
1060
1152
  }
1061
1153
  function Xe(t) {
1062
- return Object.keys(t).concat(Tr(t));
1154
+ return Object.keys(t).concat(jr(t));
1063
1155
  }
1064
- function ut(t, r) {
1156
+ function lt(t, r) {
1065
1157
  try {
1066
1158
  return r in t;
1067
1159
  } catch {
1068
1160
  return !1;
1069
1161
  }
1070
1162
  }
1071
- function Mr(t, r) {
1072
- return ut(t, r) && !(Object.hasOwnProperty.call(t, r) && Object.propertyIsEnumerable.call(t, r));
1163
+ function Ar(t, r) {
1164
+ return lt(t, r) && !(Object.hasOwnProperty.call(t, r) && Object.propertyIsEnumerable.call(t, r));
1073
1165
  }
1074
- function Or(t, r, a) {
1166
+ function Dr(t, r, a) {
1075
1167
  var s = {};
1076
1168
  return a.isMergeableObject(t) && Xe(t).forEach(function(o) {
1077
- s[o] = X(t[o], a);
1169
+ s[o] = J(t[o], a);
1078
1170
  }), Xe(r).forEach(function(o) {
1079
- Mr(t, o) || (ut(t, o) && a.isMergeableObject(r[o]) ? s[o] = Rr(o, a)(t[o], r[o], a) : s[o] = X(r[o], a));
1171
+ Ar(t, o) || (lt(t, o) && a.isMergeableObject(r[o]) ? s[o] = xr(o, a)(t[o], r[o], a) : s[o] = J(r[o], a));
1080
1172
  }), s;
1081
1173
  }
1082
1174
  function $(t, r, a) {
1083
- a = a || {}, a.arrayMerge = a.arrayMerge || Sr, a.isMergeableObject = a.isMergeableObject || vr, a.cloneUnlessOtherwiseSpecified = X;
1084
- var s = Array.isArray(r), o = Array.isArray(t), f = s === o;
1085
- return f ? s ? a.arrayMerge(t, r, a) : Or(t, r, a) : X(r, a);
1175
+ a = a || {}, a.arrayMerge = a.arrayMerge || wr, a.isMergeableObject = a.isMergeableObject || Sr, a.cloneUnlessOtherwiseSpecified = J;
1176
+ var s = Array.isArray(r), o = Array.isArray(t), l = s === o;
1177
+ return l ? s ? a.arrayMerge(t, r, a) : Dr(t, r, a) : J(r, a);
1086
1178
  }
1087
1179
  $.all = function(r, a) {
1088
1180
  if (!Array.isArray(r))
@@ -1091,8 +1183,8 @@ $.all = function(r, a) {
1091
1183
  return $(s, o, a);
1092
1184
  }, {});
1093
1185
  };
1094
- var Pr = $, Cr = Pr;
1095
- const ie = /* @__PURE__ */ ar(Cr), Z = () => {
1186
+ var Fr = $, Lr = Fr;
1187
+ const oe = /* @__PURE__ */ ar(Lr), q = () => {
1096
1188
  throw new Error(
1097
1189
  "You forgot to wrap your component in <MeasurementToolsProvider>."
1098
1190
  );
@@ -1105,55 +1197,24 @@ const ie = /* @__PURE__ */ ar(Cr), Z = () => {
1105
1197
  unit: C.kilometer
1106
1198
  },
1107
1199
  actions: {
1108
- setEnable: Z,
1109
- setFinished: Z,
1110
- setUnit: Z,
1111
- setDistance: Z,
1112
- setLocale: Z
1200
+ setEnable: q,
1201
+ setFinished: q,
1202
+ setUnit: q,
1203
+ setDistance: q,
1204
+ setLocale: q
1113
1205
  }
1114
- }, lt = Q(Se.state), ft = Q(Se.actions);
1115
- function dt() {
1116
- return ee(
1117
- lt
1118
- );
1119
- }
1206
+ }, ft = K(Se.state), dt = K(Se.actions);
1120
1207
  function mt() {
1121
- return ee(
1208
+ return X(
1122
1209
  ft
1123
1210
  );
1124
1211
  }
1125
- const pt = {
1126
- NUMBER: {
1127
- style: "decimal",
1128
- maximumFractionDigits: 1,
1129
- minimumFractionDigits: 0,
1130
- notation: "compact",
1131
- compactDisplay: "short"
1132
- },
1133
- CURRENCY: {
1134
- style: "currency",
1135
- currency: "USD",
1136
- maximumFractionDigits: 2,
1137
- minimumFractionDigits: 2,
1138
- notation: "compact",
1139
- compactDisplay: "short"
1140
- },
1141
- DATE: {
1142
- year: "numeric",
1143
- month: "2-digit",
1144
- day: "2-digit"
1145
- }
1146
- };
1147
- function vt(t, r, a) {
1148
- return Intl.NumberFormat(r, a).format(t);
1149
- }
1150
- function gt(t, r, a = {}) {
1151
- return vt(t, r, { ...pt.NUMBER, ...a });
1152
- }
1153
- function wr(t, r, a = {}) {
1154
- return vt(t, r, { ...pt.CURRENCY, ...a });
1212
+ function pt() {
1213
+ return X(
1214
+ dt
1215
+ );
1155
1216
  }
1156
- const xr = {
1217
+ const kr = {
1157
1218
  nm: {
1158
1219
  name: {
1159
1220
  singular: "Nanometer",
@@ -1196,7 +1257,7 @@ const xr = {
1196
1257
  },
1197
1258
  to_anchor: 1e3
1198
1259
  }
1199
- }, jr = {
1260
+ }, Ir = {
1200
1261
  mil: {
1201
1262
  name: {
1202
1263
  singular: "Mil",
@@ -1253,10 +1314,10 @@ const xr = {
1253
1314
  },
1254
1315
  to_anchor: 6076.12
1255
1316
  }
1256
- }, Ar = {
1317
+ }, Nr = {
1257
1318
  systems: {
1258
- metric: xr,
1259
- imperial: jr
1319
+ metric: kr,
1320
+ imperial: Ir
1260
1321
  },
1261
1322
  anchors: {
1262
1323
  metric: {
@@ -1270,76 +1331,71 @@ const xr = {
1270
1331
  }
1271
1332
  }
1272
1333
  }
1273
- }, Dr = Qt({
1274
- length: Ar
1334
+ }, Ur = Qt({
1335
+ length: Nr
1275
1336
  });
1276
- function yt(t, r) {
1277
- return Dr(t).from(Ke[C.meter]).to(Ke[r]);
1337
+ function vt(t, r) {
1338
+ return Ur(t).from(Ke[C.meter]).to(Ke[r]);
1278
1339
  }
1279
- function ht({
1340
+ function gt({
1280
1341
  meters: t,
1281
1342
  unit: r,
1282
1343
  locale: a
1283
1344
  }) {
1284
- return `${gt(yt(t, r), a, {
1345
+ return `${ct(vt(t, r), a, {
1285
1346
  style: "unit",
1286
- unit: lr[r],
1347
+ unit: Er[r],
1287
1348
  unitDisplay: "short"
1288
1349
  })}`;
1289
1350
  }
1290
- function Jr(t, {
1351
+ function Xr(t, {
1291
1352
  hasDoubleClickZoom: r
1292
1353
  }) {
1293
1354
  return typeof t == "boolean" ? { doubleClickZoom: r } : { ...t, doubleClickZoom: r };
1294
1355
  }
1295
- function Kr({
1356
+ function Qr({
1296
1357
  mapId: t,
1297
- defaultProps: { styles: r = ur.styles } = {},
1358
+ defaultProps: { styles: r = hr.styles } = {},
1298
1359
  layerProps: a = {}
1299
1360
  }) {
1300
- const { enable: s, unit: o, finished: f, locale: l } = dt(), { setDistance: g, setFinished: c } = mt(), { isLoaded: y, basemap: h } = st(t), { getOverlayInstance: b } = _e(t), M = se(), v = Zt(() => {
1301
- if (!y || !pr(h))
1302
- return null;
1303
- const Y = b()?.getDiv();
1304
- return new Xt(Y, {});
1305
- }, [y, b, h]), E = f ? r.colors?.finished : r.colors?.editing, x = O(
1306
- ({ editType: Y, editContext: B }) => {
1307
- Y === ce.AddPosition && g(B.distance), c(B.finished);
1361
+ const { enable: s, unit: o, finished: l, locale: f } = mt(), { setDistance: y, setFinished: c } = pt(), { isLoaded: E } = be(t), p = ie(), b = vr({ mapId: t }), O = l ? r.colors?.finished : r.colors?.editing, g = M(
1362
+ ({ editType: T, editContext: Q }) => {
1363
+ T === se.AddPosition && y(Q.distance), c(Q.finished);
1308
1364
  },
1309
- [g, c]
1365
+ [y, c]
1310
1366
  );
1311
- if (rt(() => {
1312
- s || (M.current = void 0);
1313
- }, [s]), !s || !y)
1367
+ if (tt(() => {
1368
+ s || (p.current = void 0);
1369
+ }, [s]), !s || !E)
1314
1370
  return null;
1315
- const { pickable: I, onHover: j, ...S } = Fr(
1371
+ const { pickable: h, onHover: x, ...F } = Vr(
1316
1372
  a,
1317
- l,
1373
+ f,
1318
1374
  o,
1319
- x,
1320
- E || be.guide
1375
+ g,
1376
+ O || Ee.guide
1321
1377
  );
1322
- return !M.current && !S.mode && (M.current = new dr()), new fr({
1323
- ...S,
1324
- pickable: I || !f,
1325
- onHover: f ? j : void 0,
1326
- mode: S?.mode || M.current,
1327
- eventManager: v
1378
+ return !p.current && !F.mode && (p.current = new _r()), new br({
1379
+ ...F,
1380
+ pickable: h || !l,
1381
+ onHover: l ? x : void 0,
1382
+ mode: F?.mode || p.current,
1383
+ eventManager: b
1328
1384
  });
1329
1385
  }
1330
- function Fr(t, r, a, s, o) {
1331
- const f = ie(t, {
1386
+ function Vr(t, r, a, s, o) {
1387
+ const l = oe(t, {
1332
1388
  modeConfig: {
1333
1389
  // We force distance due to conversion is addressed at feature getText level
1334
1390
  formatTooltip: (c) => c,
1335
1391
  turfOptions: {
1336
- units: ct.meters
1392
+ units: ut.meters
1337
1393
  }
1338
1394
  },
1339
1395
  onEdit: s,
1340
1396
  _subLayerProps: {
1341
1397
  tooltips: {
1342
- getText: (c) => ht({
1398
+ getText: (c) => gt({
1343
1399
  ...c,
1344
1400
  meters: c.text,
1345
1401
  locale: r,
@@ -1350,7 +1406,7 @@ function Fr(t, r, a, s, o) {
1350
1406
  }
1351
1407
  }
1352
1408
  }
1353
- }), l = ie(cr, {
1409
+ }), f = oe(yr, {
1354
1410
  _subLayerProps: {
1355
1411
  guides: {
1356
1412
  getLineColor: o,
@@ -1360,23 +1416,23 @@ function Fr(t, r, a, s, o) {
1360
1416
  getEditHandlePointColor: o,
1361
1417
  getEditHandlePointOutlineColor: o
1362
1418
  });
1363
- return ie(l, f);
1419
+ return oe(f, l);
1364
1420
  }
1365
- function Xr({ children: t }) {
1366
- const { distance: r, enable: a, unit: s, locale: o } = dt(), { setDistance: f, setEnable: l } = mt(), g = yt(r, s), c = () => {
1367
- f(0), l(!a);
1421
+ function en({ children: t }) {
1422
+ const { distance: r, enable: a, unit: s, locale: o } = mt(), { setDistance: l, setEnable: f } = pt(), y = vt(r, s), c = () => {
1423
+ l(0), f(!a);
1368
1424
  };
1369
1425
  return t({
1370
1426
  enable: a,
1371
1427
  meters: r,
1372
- text: ht({ meters: r, unit: s, locale: o }),
1373
- distance: g,
1428
+ text: gt({ meters: r, unit: s, locale: o }),
1429
+ distance: y,
1374
1430
  unit: s,
1375
1431
  onToggleButton: c
1376
1432
  });
1377
1433
  }
1378
1434
  var V = /* @__PURE__ */ ((t) => (t.SetEnable = "SET_ENABLE", t.SetFinished = "SET_FINISHED", t.SetDistance = "SET_DISTANCE", t.SetUnit = "SET_UNIT", t.SetLocale = "SET_LOCALE", t))(V || {});
1379
- function kr(t, { type: r, payload: a }) {
1435
+ function $r(t, { type: r, payload: a }) {
1380
1436
  return {
1381
1437
  SET_ENABLE: () => ({
1382
1438
  ...t,
@@ -1401,145 +1457,94 @@ function kr(t, { type: r, payload: a }) {
1401
1457
  })
1402
1458
  }[r]?.() ?? t;
1403
1459
  }
1404
- function Qr({
1460
+ function tn({
1405
1461
  children: t,
1406
1462
  defaultProps: r = {},
1407
1463
  locale: a
1408
1464
  }) {
1409
- const [s, o] = tt(
1410
- kr,
1411
- ie(Se.state, r)
1412
- ), f = O(
1465
+ const [s, o] = et(
1466
+ $r,
1467
+ oe(Se.state, r)
1468
+ ), l = M(
1413
1469
  (b) => {
1414
1470
  o({ type: V.SetLocale, payload: b });
1415
1471
  },
1416
1472
  [o]
1417
1473
  );
1418
- rt(() => {
1419
- a && f(a);
1420
- }, [a, f]);
1421
- const l = O(
1474
+ tt(() => {
1475
+ a && l(a);
1476
+ }, [a, l]);
1477
+ const f = M(
1422
1478
  (b) => {
1423
1479
  o({ type: V.SetEnable, payload: b });
1424
1480
  },
1425
1481
  [o]
1426
- ), g = O(
1482
+ ), y = M(
1427
1483
  (b) => {
1428
1484
  o({ type: V.SetFinished, payload: b });
1429
1485
  },
1430
1486
  [o]
1431
- ), c = O(
1487
+ ), c = M(
1432
1488
  (b) => {
1433
1489
  o({ type: V.SetDistance, payload: b });
1434
1490
  },
1435
1491
  [o]
1436
- ), y = O(
1492
+ ), E = M(
1437
1493
  (b) => {
1438
1494
  o({ type: V.SetUnit, payload: b });
1439
1495
  },
1440
1496
  [o]
1441
- ), h = se({
1442
- setEnable: l,
1443
- setFinished: g,
1497
+ ), p = ie({
1498
+ setEnable: f,
1499
+ setFinished: y,
1444
1500
  setDistance: c,
1445
- setUnit: y,
1446
- setLocale: f
1501
+ setUnit: E,
1502
+ setLocale: l
1447
1503
  });
1448
- return /* @__PURE__ */ J.jsx(ft.Provider, { value: h.current, children: /* @__PURE__ */ J.jsx(lt.Provider, { value: s, children: t }) });
1449
- }
1450
- var k = /* @__PURE__ */ ((t) => (t.CURRENCY = "CURRENCY", t.DEFAULT = "DEFAULT", t.NUMBER = "NUMBER", t))(k || {});
1451
- const Qe = {
1452
- [k.CURRENCY]: {
1453
- type: k.CURRENCY,
1454
- format: (t, r) => wr(t, r)
1455
- },
1456
- [k.NUMBER]: {
1457
- type: k.NUMBER,
1458
- format: (t, r) => gt(t, r)
1459
- },
1460
- [k.DEFAULT]: {
1461
- type: k.DEFAULT,
1462
- format: (t) => t.toLocaleString()
1463
- }
1464
- };
1465
- function en({
1466
- properties: t,
1467
- formatters: r = {},
1468
- includeColumns: a = Object.keys(t),
1469
- locale: s = "en-US",
1470
- showColumnName: o = !0,
1471
- title: f,
1472
- getColumnName: l = Vr,
1473
- getFieldHtml: g = Ir,
1474
- getTitle: c = Lr,
1475
- getValue: y = Nr
1476
- }) {
1477
- const h = f ? c(f) : "", M = a.reduce((v, E) => {
1478
- const x = r[E], I = t[E], j = y(I, s, x), S = o ? l(E) : "";
1479
- return v + g(S, j);
1480
- }, "");
1481
- return h + M;
1482
- }
1483
- function Lr(t) {
1484
- return `<h3 style="margin: 0"><strong>${t}</strong></h3></br>`;
1485
- }
1486
- function Ir(t, r) {
1487
- return `${t}${r}</br>`;
1488
- }
1489
- function Nr(t, r, a) {
1490
- try {
1491
- return Ur(a)(t, r);
1492
- } catch {
1493
- return t;
1494
- }
1495
- }
1496
- function Ur(t) {
1497
- return typeof t == "function" ? t : (t && Qe[t] || Qe[k.DEFAULT]).format;
1498
- }
1499
- function Vr(t) {
1500
- return `<strong>${t}</strong>: `;
1504
+ return /* @__PURE__ */ G.jsx(dt.Provider, { value: p.current, children: /* @__PURE__ */ G.jsx(ft.Provider, { value: s, children: t }) });
1501
1505
  }
1502
1506
  export {
1503
1507
  Ke as CONVERSIONS_UNITS,
1504
- ye as CartoBasemapURL,
1508
+ ge as CartoBasemapURL,
1505
1509
  tr as CartoBasemapsNames,
1506
- fr as CustomEditableGeojsonLayer,
1507
- dr as CustomMeasureDistanceMode,
1508
- be as DEFAULT_COLORS,
1509
- cr as DEFAULT_LAYER_PROPS,
1510
- ur as DEFAULT_PROPS,
1510
+ br as CustomEditableGeojsonLayer,
1511
+ _r as CustomMeasureDistanceMode,
1512
+ Ee as DEFAULT_COLORS,
1513
+ yr as DEFAULT_LAYER_PROPS,
1514
+ hr as DEFAULT_PROPS,
1511
1515
  Je as EVENT_MANAGER_EVENT_TYPES,
1512
- ce as EditType,
1516
+ se as EditType,
1513
1517
  k as FormatterTypes,
1514
1518
  er as GMapsBasemap,
1515
- lr as INTL_UNITS,
1516
- he as MAPS_BASEMAP,
1517
- sr as MAP_MEASURE_LAYER_ID,
1518
- F as MapActions,
1519
- it as MapActionsContext,
1520
- at as MapContext,
1521
- Xr as MapMeasurementTools,
1522
- Kr as MapMeasurementToolsLayer,
1523
- Qr as MapMeasurementToolsProvider,
1519
+ Er as INTL_UNITS,
1520
+ ye as MAPS_BASEMAP,
1521
+ gr as MAP_MEASURE_LAYER_ID,
1522
+ L as MapActions,
1523
+ ot as MapActionsContext,
1524
+ nt as MapContext,
1525
+ en as MapMeasurementTools,
1526
+ Qr as MapMeasurementToolsLayer,
1527
+ tn as MapMeasurementToolsProvider,
1524
1528
  C as MapMeasurementUnit,
1525
- ct as MapMeasurementUnitTurf,
1526
- Zr as MapProvider,
1527
- ot as MapReferencesContext,
1528
- nt as MapsTypes,
1529
- yt as convertMetersTo,
1530
- Jr as getDeckController,
1529
+ ut as MapMeasurementUnitTurf,
1530
+ Jr as MapProvider,
1531
+ at as MapReferencesContext,
1532
+ rt as MapsTypes,
1533
+ vt as convertMetersTo,
1534
+ Xr as getDeckController,
1531
1535
  mr as getMapType,
1532
- ht as getTextLayerFormattedDistance,
1536
+ gt as getTextLayerFormattedDistance,
1533
1537
  pr as isGmaps,
1534
- en as objectToHtml,
1538
+ Kr as objectToHtml,
1535
1539
  rr as reducer,
1536
- st as useMap,
1540
+ vr as useEventManager,
1541
+ be as useMap,
1537
1542
  nr as useMapActions,
1538
- Gr as useMapActionsByID,
1539
- zr as useMapByID,
1540
- dt as useMapMeasurementTools,
1541
- mt as useMapMeasurementToolsActions,
1543
+ Zr as useMapActionsByID,
1544
+ qr as useMapByID,
1545
+ mt as useMapMeasurementTools,
1546
+ pt as useMapMeasurementToolsActions,
1542
1547
  _e as useMapRefences,
1543
1548
  _e as useMapReferences,
1544
- qr as useMapReferencesByID
1549
+ Gr as useMapReferencesByID
1545
1550
  };