@carto/ps-react-maps 1.1.1 → 1.1.2-alpha.1

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