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