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