@carto/ps-react-maps 3.8.0 → 3.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +646 -624
- package/dist/index.js.map +1 -1
- package/dist/types/providers/map/types.d.ts +9 -1
- package/dist/types/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var ee = (r, e, t) => Dt(r, typeof e != "symbol" ? e + "" : e, t);
|
|
|
4
4
|
import { jsx as N, jsxs as ft } from "react/jsx-runtime";
|
|
5
5
|
import { c as D } from "react/compiler-runtime";
|
|
6
6
|
import { useEffect as z, useImperativeHandle as Ne, useMemo as re, useCallback as Q, useState as oe, createContext as He, useContext as Ge, useRef as Me } from "react";
|
|
7
|
-
import { MapProvider as Rt, Map as
|
|
7
|
+
import { MapProvider as Rt, Map as $t, useMap as Ut } from "react-map-gl/maplibre";
|
|
8
8
|
import xt from "@deck.gl/react";
|
|
9
9
|
import { useMap as pt, APIProvider as Bt, Map as jt } from "@vis.gl/react-google-maps";
|
|
10
10
|
import { GoogleMapsOverlay as qt } from "@deck.gl/google-maps";
|
|
@@ -31,7 +31,7 @@ const Re = {
|
|
|
31
31
|
darkMatter: "darkMatter",
|
|
32
32
|
positron: "positron",
|
|
33
33
|
voyager: "voyager"
|
|
34
|
-
},
|
|
34
|
+
}, $e = {
|
|
35
35
|
[J.positron]: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
|
|
36
36
|
[J.voyager]: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
|
|
37
37
|
[J.darkMatter]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
@@ -40,15 +40,15 @@ const Re = {
|
|
|
40
40
|
googleMaps: "google-maps"
|
|
41
41
|
}, ye = {
|
|
42
42
|
[J.positron]: {
|
|
43
|
-
url:
|
|
43
|
+
url: $e[J.positron],
|
|
44
44
|
type: te.maplibre
|
|
45
45
|
},
|
|
46
46
|
[J.voyager]: {
|
|
47
|
-
url:
|
|
47
|
+
url: $e[J.voyager],
|
|
48
48
|
type: te.maplibre
|
|
49
49
|
},
|
|
50
50
|
[J.darkMatter]: {
|
|
51
|
-
url:
|
|
51
|
+
url: $e[J.darkMatter],
|
|
52
52
|
type: te.maplibre,
|
|
53
53
|
dark: !0
|
|
54
54
|
},
|
|
@@ -79,7 +79,7 @@ function vs(r) {
|
|
|
79
79
|
}
|
|
80
80
|
function Ss(r) {
|
|
81
81
|
const e = D(42);
|
|
82
|
-
let t, s, n, o, i, a, l, c,
|
|
82
|
+
let t, s, n, o, i, a, l, c, g, p, m, d;
|
|
83
83
|
e[0] !== r ? ({
|
|
84
84
|
instanceRef: i,
|
|
85
85
|
overlayRef: p,
|
|
@@ -87,15 +87,15 @@ function Ss(r) {
|
|
|
87
87
|
id: o,
|
|
88
88
|
layers: a,
|
|
89
89
|
mapStyle: l,
|
|
90
|
-
parameters:
|
|
90
|
+
parameters: m,
|
|
91
91
|
getCursor: s,
|
|
92
92
|
getTooltip: n,
|
|
93
93
|
onLoad: c,
|
|
94
|
-
onViewStateChange:
|
|
94
|
+
onViewStateChange: g,
|
|
95
95
|
...d
|
|
96
|
-
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] =
|
|
97
|
-
let
|
|
98
|
-
e[13] !== c ? (
|
|
96
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = g, e[10] = p, e[11] = m, e[12] = d) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], g = e[9], p = e[10], m = e[11], d = e[12]);
|
|
97
|
+
let h, y;
|
|
98
|
+
e[13] !== c ? (h = () => {
|
|
99
99
|
c({
|
|
100
100
|
type: "load",
|
|
101
101
|
value: !1
|
|
@@ -103,20 +103,20 @@ function Ss(r) {
|
|
|
103
103
|
type: "deckgl",
|
|
104
104
|
value: !1
|
|
105
105
|
});
|
|
106
|
-
},
|
|
107
|
-
let
|
|
108
|
-
e[16] !== a ? (f = a.filter(Es).map(Ts), e[16] = a, e[17] = f) : f = e[17],
|
|
109
|
-
const
|
|
106
|
+
}, y = [c], e[13] = c, e[14] = h, e[15] = y) : (h = e[14], y = e[15]), z(h, y);
|
|
107
|
+
let T, f;
|
|
108
|
+
e[16] !== a ? (f = a.filter(Es).map(Ts), e[16] = a, e[17] = f) : f = e[17], T = f;
|
|
109
|
+
const b = T, S = i;
|
|
110
110
|
let E;
|
|
111
111
|
e[18] !== c ? (E = () => c({
|
|
112
112
|
type: "deckgl",
|
|
113
113
|
value: !0
|
|
114
114
|
}), e[18] = c, e[19] = E) : E = e[19];
|
|
115
|
-
let
|
|
116
|
-
e[20] !==
|
|
115
|
+
let w;
|
|
116
|
+
e[20] !== m ? (w = {
|
|
117
117
|
depthTest: !1,
|
|
118
|
-
...
|
|
119
|
-
}, e[20] =
|
|
118
|
+
...m
|
|
119
|
+
}, e[20] = m, e[21] = w) : w = e[21];
|
|
120
120
|
let _;
|
|
121
121
|
e[22] !== p ? (_ = /* @__PURE__ */ N(_s, { overlayRef: p }), e[22] = p, e[23] = _) : _ = e[23];
|
|
122
122
|
let k;
|
|
@@ -124,13 +124,13 @@ function Ss(r) {
|
|
|
124
124
|
type: "load",
|
|
125
125
|
value: !0
|
|
126
126
|
}), e[24] = c, e[25] = k) : k = e[25];
|
|
127
|
-
let
|
|
128
|
-
e[26] !== l || e[27] !== k ? (
|
|
127
|
+
let U;
|
|
128
|
+
e[26] !== l || e[27] !== k ? (U = /* @__PURE__ */ N($t, { reuseMaps: !0, mapStyle: l, onLoad: k, onRender: ws }), e[26] = l, e[27] = k, e[28] = U) : U = e[28];
|
|
129
129
|
let C;
|
|
130
|
-
return e[29] !==
|
|
130
|
+
return e[29] !== b || e[30] !== t || e[31] !== s || e[32] !== n || e[33] !== o || e[34] !== g || e[35] !== d || e[36] !== U || e[37] !== S || e[38] !== E || e[39] !== w || e[40] !== _ ? (C = /* @__PURE__ */ N(Rt, { children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(xt, { controller: t, id: o, ref: S, layers: b, getCursor: s, getTooltip: n, onLoad: E, onViewStateChange: g, parameters: w, ...d, children: [
|
|
131
131
|
_,
|
|
132
|
-
|
|
133
|
-
] }) }) }), e[29] =
|
|
132
|
+
U
|
|
133
|
+
] }) }) }), e[29] = b, e[30] = t, e[31] = s, e[32] = n, e[33] = o, e[34] = g, e[35] = d, e[36] = U, e[37] = S, e[38] = E, e[39] = w, e[40] = _, e[41] = C) : C = e[41], C;
|
|
134
134
|
}
|
|
135
135
|
function ws() {
|
|
136
136
|
const r = document.querySelector(".maplibregl-compact-show");
|
|
@@ -151,7 +151,7 @@ function _s(r) {
|
|
|
151
151
|
overlayRef: t
|
|
152
152
|
} = r, {
|
|
153
153
|
default: s
|
|
154
|
-
} =
|
|
154
|
+
} = Ut();
|
|
155
155
|
let n, o;
|
|
156
156
|
return e[0] !== s ? (n = () => s, o = [s], e[0] = s, e[1] = n, e[2] = o) : (n = e[1], o = e[2]), Ne(t, n, o), null;
|
|
157
157
|
}
|
|
@@ -168,10 +168,10 @@ const Ms = (r) => {
|
|
|
168
168
|
e[3] !== o ? (l = () => (n.setMap(o), () => {
|
|
169
169
|
n.finalize();
|
|
170
170
|
}), c = [n, o], e[3] = o, e[4] = l, e[5] = c) : (l = e[4], c = e[5]), z(l, c);
|
|
171
|
-
let
|
|
172
|
-
return e[6] !== r ? (
|
|
171
|
+
let g, p;
|
|
172
|
+
return e[6] !== r ? (g = () => {
|
|
173
173
|
n.setProps(r);
|
|
174
|
-
}, p = [n, r], e[6] = r, e[7] =
|
|
174
|
+
}, p = [n, r], e[6] = r, e[7] = g, e[8] = p) : (g = e[7], p = e[8]), z(g, p), null;
|
|
175
175
|
};
|
|
176
176
|
function Ps({
|
|
177
177
|
id: r,
|
|
@@ -188,10 +188,10 @@ function Ps({
|
|
|
188
188
|
overlayRef: a,
|
|
189
189
|
parameters: l,
|
|
190
190
|
onLoad: c,
|
|
191
|
-
onViewStateChange:
|
|
191
|
+
onViewStateChange: g,
|
|
192
192
|
...p
|
|
193
193
|
}) {
|
|
194
|
-
var
|
|
194
|
+
var y, T, f, b, S;
|
|
195
195
|
z(() => {
|
|
196
196
|
c({
|
|
197
197
|
type: "load",
|
|
@@ -201,28 +201,28 @@ function Ps({
|
|
|
201
201
|
value: !1
|
|
202
202
|
});
|
|
203
203
|
}, [c]);
|
|
204
|
-
const
|
|
204
|
+
const m = re(() => s.filter((E) => !!(E != null && E.type)).map(({
|
|
205
205
|
type: E,
|
|
206
|
-
props:
|
|
207
|
-
}) => new E(
|
|
206
|
+
props: w
|
|
207
|
+
}) => new E(w)), [s]), d = Q(({
|
|
208
208
|
detail: {
|
|
209
209
|
center: E,
|
|
210
|
-
zoom:
|
|
210
|
+
zoom: w,
|
|
211
211
|
heading: _,
|
|
212
212
|
tilt: k
|
|
213
213
|
}
|
|
214
214
|
}) => ({
|
|
215
215
|
latitude: E.lat,
|
|
216
216
|
longitude: E.lng,
|
|
217
|
-
zoom:
|
|
217
|
+
zoom: w - 1,
|
|
218
218
|
bearing: _,
|
|
219
219
|
pitch: k
|
|
220
|
-
}), []),
|
|
221
|
-
const
|
|
220
|
+
}), []), h = Q((E) => {
|
|
221
|
+
const w = e == null ? void 0 : e.current, _ = w == null ? void 0 : w._deck, k = {
|
|
222
222
|
// @ts-expect-error accessing protected props
|
|
223
223
|
..._ == null ? void 0 : _.viewState,
|
|
224
224
|
...E
|
|
225
|
-
},
|
|
225
|
+
}, U = {
|
|
226
226
|
latitude: k.latitude,
|
|
227
227
|
longitude: k.longitude,
|
|
228
228
|
zoom: k.zoom,
|
|
@@ -232,24 +232,24 @@ function Ps({
|
|
|
232
232
|
width: _ == null ? void 0 : _.width,
|
|
233
233
|
height: _ == null ? void 0 : _.height
|
|
234
234
|
};
|
|
235
|
-
|
|
236
|
-
viewState:
|
|
235
|
+
g == null || g({
|
|
236
|
+
viewState: U,
|
|
237
237
|
interactionState: {
|
|
238
238
|
isZooming: !0
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
|
-
}, [e,
|
|
241
|
+
}, [e, g]);
|
|
242
242
|
return /* @__PURE__ */ N(Bt, { apiKey: n, ...o, children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(jt, { id: r, mapTypeId: t, disableDefaultUI: !0, gestureHandling: "greedy", ...i, center: {
|
|
243
|
-
lat: ((
|
|
244
|
-
lng: ((
|
|
245
|
-
}, zoom: (((f = p.initialViewState) == null ? void 0 : f.zoom) ?? 0) + 1, tilt: (
|
|
243
|
+
lat: ((y = p.initialViewState) == null ? void 0 : y.latitude) ?? 0,
|
|
244
|
+
lng: ((T = p.initialViewState) == null ? void 0 : T.longitude) ?? 0
|
|
245
|
+
}, zoom: (((f = p.initialViewState) == null ? void 0 : f.zoom) ?? 0) + 1, tilt: (b = p.initialViewState) == null ? void 0 : b.pitch, heading: (S = p.initialViewState) == null ? void 0 : S.bearing, onTilesLoaded: () => {
|
|
246
246
|
c({
|
|
247
247
|
type: "load",
|
|
248
248
|
value: !0
|
|
249
|
-
}),
|
|
250
|
-
}, onBoundsChanged: (E) =>
|
|
249
|
+
}), h(p.initialViewState);
|
|
250
|
+
}, onBoundsChanged: (E) => h(d(E)), onZoomChanged: (E) => h(d(E)), children: [
|
|
251
251
|
/* @__PURE__ */ N(Ls, { id: r, overlayRef: a }),
|
|
252
|
-
/* @__PURE__ */ N(Ms, { id: r, instanceRef: e, layers:
|
|
252
|
+
/* @__PURE__ */ N(Ms, { id: r, instanceRef: e, layers: m, onLoad: () => {
|
|
253
253
|
c({
|
|
254
254
|
type: "deckgl",
|
|
255
255
|
value: !0
|
|
@@ -271,38 +271,38 @@ function Ls(r) {
|
|
|
271
271
|
}
|
|
272
272
|
function Os(r) {
|
|
273
273
|
const e = D(46);
|
|
274
|
-
let t, s, n, o, i, a, l, c,
|
|
274
|
+
let t, s, n, o, i, a, l, c, g, p, m, d;
|
|
275
275
|
e[0] !== r ? ({
|
|
276
276
|
instanceRef: s,
|
|
277
277
|
overlayRef: o,
|
|
278
278
|
basemap: a,
|
|
279
279
|
controller: l,
|
|
280
280
|
id: c,
|
|
281
|
-
layers:
|
|
281
|
+
layers: g,
|
|
282
282
|
gmapsProps: t,
|
|
283
283
|
getCursor: p,
|
|
284
|
-
getTooltip:
|
|
284
|
+
getTooltip: m,
|
|
285
285
|
onLoad: n,
|
|
286
286
|
onViewStateChange: d,
|
|
287
287
|
...i
|
|
288
|
-
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] =
|
|
289
|
-
const
|
|
288
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = g, e[10] = p, e[11] = m, e[12] = d) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], g = e[9], p = e[10], m = e[11], d = e[12]);
|
|
289
|
+
const h = a === void 0 ? J.positron : a, y = l === void 0 ? !0 : l, T = c === void 0 ? "deck-gl-map" : c;
|
|
290
290
|
let f;
|
|
291
|
-
e[13] !==
|
|
292
|
-
const
|
|
291
|
+
e[13] !== g ? (f = g === void 0 ? [] : g, e[13] = g, e[14] = f) : f = e[14];
|
|
292
|
+
const b = f, S = p === void 0 ? bs : p, E = m === void 0 ? vs : m, w = d === void 0 ? ks : d;
|
|
293
293
|
let _;
|
|
294
294
|
e[15] === Symbol.for("react.memo_cache_sentinel") ? (_ = [!1, !1], e[15] = _) : _ = e[15];
|
|
295
|
-
const [k,
|
|
295
|
+
const [k, U] = oe(_);
|
|
296
296
|
let C;
|
|
297
297
|
e[16] !== k ? (C = k.every(Fs), e[16] = k, e[17] = C) : C = e[17];
|
|
298
298
|
const j = C, {
|
|
299
299
|
url: B,
|
|
300
300
|
type: x
|
|
301
|
-
} = ye[
|
|
301
|
+
} = ye[h], M = x === te.googleMaps;
|
|
302
302
|
let F;
|
|
303
303
|
e[18] === Symbol.for("react.memo_cache_sentinel") ? (F = (L) => {
|
|
304
304
|
const O = L.type === "deckgl" ? 0 : 1;
|
|
305
|
-
|
|
305
|
+
U((H) => H.map((W, K) => K === O ? L.value : W));
|
|
306
306
|
}, e[18] = F) : F = e[18];
|
|
307
307
|
const u = F;
|
|
308
308
|
let v, P;
|
|
@@ -310,10 +310,10 @@ function Os(r) {
|
|
|
310
310
|
n == null || n(j);
|
|
311
311
|
}, P = [j, n], e[19] = j, e[20] = n, e[21] = v, e[22] = P) : (v = e[21], P = e[22]), z(v, P), M) {
|
|
312
312
|
let L;
|
|
313
|
-
return e[23] !==
|
|
313
|
+
return e[23] !== h || e[24] !== y || e[25] !== S || e[26] !== E || e[27] !== t || e[28] !== T || e[29] !== s || e[30] !== b || e[31] !== w || e[32] !== o || e[33] !== i ? (L = /* @__PURE__ */ N(Ps, { instanceRef: s, overlayRef: o, controller: y, id: T, basemap: h, layers: b, gmapsProps: t, getCursor: S, getTooltip: E, onLoad: u, onViewStateChange: w, ...i }), e[23] = h, e[24] = y, e[25] = S, e[26] = E, e[27] = t, e[28] = T, e[29] = s, e[30] = b, e[31] = w, e[32] = o, e[33] = i, e[34] = L) : L = e[34], L;
|
|
314
314
|
}
|
|
315
315
|
let A;
|
|
316
|
-
return e[35] !==
|
|
316
|
+
return e[35] !== y || e[36] !== S || e[37] !== E || e[38] !== T || e[39] !== s || e[40] !== b || e[41] !== B || e[42] !== w || e[43] !== o || e[44] !== i ? (A = /* @__PURE__ */ N(Ss, { instanceRef: s, overlayRef: o, controller: y, id: T, layers: b, mapStyle: B, getCursor: S, getTooltip: E, onLoad: u, onViewStateChange: w, ...i }), e[35] = y, e[36] = S, e[37] = E, e[38] = T, e[39] = s, e[40] = b, e[41] = B, e[42] = w, e[43] = o, e[44] = i, e[45] = A) : A = e[45], A;
|
|
317
317
|
}
|
|
318
318
|
function Fs(r) {
|
|
319
319
|
return r;
|
|
@@ -347,12 +347,12 @@ const As = {
|
|
|
347
347
|
return (t, s) => ({
|
|
348
348
|
maps: e,
|
|
349
349
|
setBasemap: (n, o) => t((i) => {
|
|
350
|
-
var
|
|
350
|
+
var g;
|
|
351
351
|
const {
|
|
352
352
|
type: a
|
|
353
353
|
} = ye[i.maps[n].basemap], {
|
|
354
354
|
type: l
|
|
355
|
-
} = ye[o], c = a === l && !!((
|
|
355
|
+
} = ye[o], c = a === l && !!((g = i.maps[n]) != null && g.isLoaded);
|
|
356
356
|
return {
|
|
357
357
|
maps: {
|
|
358
358
|
...i.maps,
|
|
@@ -399,10 +399,10 @@ const As = {
|
|
|
399
399
|
return (c = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : c[o];
|
|
400
400
|
},
|
|
401
401
|
addLayers: (n, o) => t((i) => {
|
|
402
|
-
var
|
|
402
|
+
var g;
|
|
403
403
|
const a = {
|
|
404
404
|
...i.maps
|
|
405
|
-
}, l = ((
|
|
405
|
+
}, l = ((g = a[n]) == null ? void 0 : g.layers) ?? [], c = /* @__PURE__ */ new Set([...l, ...o]);
|
|
406
406
|
return a[n] = {
|
|
407
407
|
...a[n],
|
|
408
408
|
layers: [...c]
|
|
@@ -417,7 +417,7 @@ const As = {
|
|
|
417
417
|
}, l = ((c = a[n]) == null ? void 0 : c.layers) ?? [];
|
|
418
418
|
return a[n] = {
|
|
419
419
|
...a[n],
|
|
420
|
-
layers: l.filter((
|
|
420
|
+
layers: l.filter((g) => !o.includes(g))
|
|
421
421
|
}, {
|
|
422
422
|
maps: a
|
|
423
423
|
};
|
|
@@ -440,12 +440,17 @@ const As = {
|
|
|
440
440
|
}))
|
|
441
441
|
});
|
|
442
442
|
}, Rs = (r) => {
|
|
443
|
-
const e = r.reduce((t, s) =>
|
|
443
|
+
const e = r.reduce((t, s) => {
|
|
444
|
+
const n = s.initialViewState ?? s.viewState;
|
|
445
|
+
return t.initialViewStates[s.id] = n, t.viewStates[s.id] = n, t.viewports[s.id] = null, t;
|
|
446
|
+
}, {
|
|
444
447
|
viewStates: {},
|
|
445
|
-
viewports: {}
|
|
448
|
+
viewports: {},
|
|
449
|
+
initialViewStates: {}
|
|
446
450
|
});
|
|
447
451
|
return (t, s) => ({
|
|
448
452
|
viewports: e.viewports,
|
|
453
|
+
initialViewStates: e.initialViewStates,
|
|
449
454
|
updateViewPort: (n) => {
|
|
450
455
|
var a;
|
|
451
456
|
const o = s();
|
|
@@ -468,6 +473,12 @@ const As = {
|
|
|
468
473
|
}
|
|
469
474
|
}
|
|
470
475
|
})),
|
|
476
|
+
setInitialViewState: (n, o) => t((i) => ({
|
|
477
|
+
initialViewStates: {
|
|
478
|
+
...i.initialViewStates,
|
|
479
|
+
[n]: o
|
|
480
|
+
}
|
|
481
|
+
})),
|
|
471
482
|
setZoom: (n, o) => t((i) => ({
|
|
472
483
|
viewStates: {
|
|
473
484
|
...i.viewStates,
|
|
@@ -496,7 +507,7 @@ const As = {
|
|
|
496
507
|
}
|
|
497
508
|
}))
|
|
498
509
|
});
|
|
499
|
-
},
|
|
510
|
+
}, $s = (r, e) => ({
|
|
500
511
|
fitBounds: (t, s, n) => {
|
|
501
512
|
const o = e(), i = o.getViewport(t);
|
|
502
513
|
if (!i) return;
|
|
@@ -517,8 +528,12 @@ const As = {
|
|
|
517
528
|
...a
|
|
518
529
|
};
|
|
519
530
|
o.setViewState(t, l), o.updateViewPort(t);
|
|
531
|
+
},
|
|
532
|
+
resetViewState: (t) => {
|
|
533
|
+
const s = e(), n = s.initialViewStates;
|
|
534
|
+
n[t] && s.flyTo(t, n[t]);
|
|
520
535
|
}
|
|
521
|
-
}),
|
|
536
|
+
}), Us = (r) => {
|
|
522
537
|
const e = r.reduce((t, s) => (t[s.id] = s.spatialFilter ?? {}, t), {});
|
|
523
538
|
return (t) => ({
|
|
524
539
|
spatialFilter: e,
|
|
@@ -538,8 +553,8 @@ const As = {
|
|
|
538
553
|
...Cs(r)(...e),
|
|
539
554
|
...Ds(r)(...e),
|
|
540
555
|
...Rs(r)(...e),
|
|
541
|
-
|
|
542
|
-
|
|
556
|
+
...Us(r)(...e),
|
|
557
|
+
...$s(...e)
|
|
543
558
|
})), St = He({});
|
|
544
559
|
function Bs(r) {
|
|
545
560
|
const e = D(5), {
|
|
@@ -552,24 +567,24 @@ function Bs(r) {
|
|
|
552
567
|
let i;
|
|
553
568
|
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(St.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
554
569
|
}
|
|
555
|
-
function
|
|
570
|
+
function $(r) {
|
|
556
571
|
const e = Ge(St);
|
|
557
572
|
if (!Object.keys(e).length)
|
|
558
573
|
throw new Error("Missing MapProvider in the tree");
|
|
559
574
|
return Qe(e, r);
|
|
560
575
|
}
|
|
561
|
-
function
|
|
576
|
+
function zr(r) {
|
|
562
577
|
const e = D(9), {
|
|
563
578
|
children: t,
|
|
564
579
|
mapId: s
|
|
565
580
|
} = r;
|
|
566
581
|
let n;
|
|
567
|
-
e[0] !== s ? (n = (
|
|
582
|
+
e[0] !== s ? (n = (g) => g.maps[s], e[0] = s, e[1] = n) : n = e[1];
|
|
568
583
|
const {
|
|
569
584
|
basemap: o
|
|
570
|
-
} =
|
|
585
|
+
} = $(n), i = $(js);
|
|
571
586
|
let a;
|
|
572
|
-
e[2] !== s || e[3] !== i ? (a = (
|
|
587
|
+
e[2] !== s || e[3] !== i ? (a = (g) => i(s, g), e[2] = s, e[3] = i, e[4] = a) : a = e[4];
|
|
573
588
|
const l = a;
|
|
574
589
|
let c;
|
|
575
590
|
return e[5] !== o || e[6] !== t || e[7] !== l ? (c = t({
|
|
@@ -623,7 +638,7 @@ const ce = "lassoLayer", Le = "maskLayer", Vs = {
|
|
|
623
638
|
border: [71, 219, 153, 255],
|
|
624
639
|
fill: [71, 219, 153, 0]
|
|
625
640
|
}
|
|
626
|
-
},
|
|
641
|
+
}, Ue = {
|
|
627
642
|
styles: {
|
|
628
643
|
colors: {
|
|
629
644
|
editing: Je.editing,
|
|
@@ -677,7 +692,7 @@ const ce = "lassoLayer", Le = "maskLayer", Vs = {
|
|
|
677
692
|
const o = n[e] ?? {
|
|
678
693
|
type: null,
|
|
679
694
|
props: {}
|
|
680
|
-
}, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((
|
|
695
|
+
}, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((g, p) => (g.some((m) => m.equals(p)) || g.push(p), g), []), a = o.legend || t.legend ? {
|
|
681
696
|
...o.legend,
|
|
682
697
|
...t.legend
|
|
683
698
|
} : void 0;
|
|
@@ -716,15 +731,15 @@ var Be, et;
|
|
|
716
731
|
function Ns() {
|
|
717
732
|
if (et) return Be;
|
|
718
733
|
et = 1;
|
|
719
|
-
var r = function(
|
|
720
|
-
return e(
|
|
734
|
+
var r = function(b) {
|
|
735
|
+
return e(b) && !t(b);
|
|
721
736
|
};
|
|
722
737
|
function e(f) {
|
|
723
738
|
return !!f && typeof f == "object";
|
|
724
739
|
}
|
|
725
740
|
function t(f) {
|
|
726
|
-
var
|
|
727
|
-
return
|
|
741
|
+
var b = Object.prototype.toString.call(f);
|
|
742
|
+
return b === "[object RegExp]" || b === "[object Date]" || o(f);
|
|
728
743
|
}
|
|
729
744
|
var s = typeof Symbol == "function" && Symbol.for, n = s ? Symbol.for("react.element") : 60103;
|
|
730
745
|
function o(f) {
|
|
@@ -733,60 +748,60 @@ function Ns() {
|
|
|
733
748
|
function i(f) {
|
|
734
749
|
return Array.isArray(f) ? [] : {};
|
|
735
750
|
}
|
|
736
|
-
function a(f,
|
|
737
|
-
return
|
|
751
|
+
function a(f, b) {
|
|
752
|
+
return b.clone !== !1 && b.isMergeableObject(f) ? y(i(f), f, b) : f;
|
|
738
753
|
}
|
|
739
|
-
function l(f,
|
|
740
|
-
return f.concat(
|
|
741
|
-
return a(E,
|
|
754
|
+
function l(f, b, S) {
|
|
755
|
+
return f.concat(b).map(function(E) {
|
|
756
|
+
return a(E, S);
|
|
742
757
|
});
|
|
743
758
|
}
|
|
744
|
-
function c(f,
|
|
745
|
-
if (!
|
|
746
|
-
return
|
|
747
|
-
var
|
|
748
|
-
return typeof
|
|
759
|
+
function c(f, b) {
|
|
760
|
+
if (!b.customMerge)
|
|
761
|
+
return y;
|
|
762
|
+
var S = b.customMerge(f);
|
|
763
|
+
return typeof S == "function" ? S : y;
|
|
749
764
|
}
|
|
750
|
-
function
|
|
751
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(
|
|
752
|
-
return Object.propertyIsEnumerable.call(f,
|
|
765
|
+
function g(f) {
|
|
766
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(b) {
|
|
767
|
+
return Object.propertyIsEnumerable.call(f, b);
|
|
753
768
|
}) : [];
|
|
754
769
|
}
|
|
755
770
|
function p(f) {
|
|
756
|
-
return Object.keys(f).concat(
|
|
771
|
+
return Object.keys(f).concat(g(f));
|
|
757
772
|
}
|
|
758
|
-
function
|
|
773
|
+
function m(f, b) {
|
|
759
774
|
try {
|
|
760
|
-
return
|
|
775
|
+
return b in f;
|
|
761
776
|
} catch {
|
|
762
777
|
return !1;
|
|
763
778
|
}
|
|
764
779
|
}
|
|
765
|
-
function d(f,
|
|
766
|
-
return
|
|
780
|
+
function d(f, b) {
|
|
781
|
+
return m(f, b) && !(Object.hasOwnProperty.call(f, b) && Object.propertyIsEnumerable.call(f, b));
|
|
767
782
|
}
|
|
768
|
-
function
|
|
783
|
+
function h(f, b, S) {
|
|
769
784
|
var E = {};
|
|
770
|
-
return
|
|
771
|
-
E[
|
|
772
|
-
}), p(
|
|
773
|
-
d(f,
|
|
785
|
+
return S.isMergeableObject(f) && p(f).forEach(function(w) {
|
|
786
|
+
E[w] = a(f[w], S);
|
|
787
|
+
}), p(b).forEach(function(w) {
|
|
788
|
+
d(f, w) || (m(f, w) && S.isMergeableObject(b[w]) ? E[w] = c(w, S)(f[w], b[w], S) : E[w] = a(b[w], S));
|
|
774
789
|
}), E;
|
|
775
790
|
}
|
|
776
|
-
function
|
|
777
|
-
|
|
778
|
-
var E = Array.isArray(
|
|
779
|
-
return _ ? E ?
|
|
791
|
+
function y(f, b, S) {
|
|
792
|
+
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
793
|
+
var E = Array.isArray(b), w = Array.isArray(f), _ = E === w;
|
|
794
|
+
return _ ? E ? S.arrayMerge(f, b, S) : h(f, b, S) : a(b, S);
|
|
780
795
|
}
|
|
781
|
-
|
|
782
|
-
if (!Array.isArray(
|
|
796
|
+
y.all = function(b, S) {
|
|
797
|
+
if (!Array.isArray(b))
|
|
783
798
|
throw new Error("first argument should be an array");
|
|
784
|
-
return
|
|
785
|
-
return
|
|
799
|
+
return b.reduce(function(E, w) {
|
|
800
|
+
return y(E, w, S);
|
|
786
801
|
}, {});
|
|
787
802
|
};
|
|
788
|
-
var
|
|
789
|
-
return Be =
|
|
803
|
+
var T = y;
|
|
804
|
+
return Be = T, Be;
|
|
790
805
|
}
|
|
791
806
|
var Hs = Ns();
|
|
792
807
|
const ue = /* @__PURE__ */ wt(Hs), tt = ["anyclick", "pointermove", "panstart", "panmove", "panend", "keyup"];
|
|
@@ -874,14 +889,14 @@ const Qs = (r) => ze()((e) => ({
|
|
|
874
889
|
modeInstance: a = new xe.polygon.mode(),
|
|
875
890
|
modes: l = xe,
|
|
876
891
|
modeSelected: c = xe.polygon.value,
|
|
877
|
-
values:
|
|
892
|
+
values: g = {}
|
|
878
893
|
} = n;
|
|
879
894
|
return s[i] = {
|
|
880
895
|
enabled: o,
|
|
881
896
|
modeInstance: a,
|
|
882
897
|
modes: l,
|
|
883
898
|
modeSelected: c,
|
|
884
|
-
values:
|
|
899
|
+
values: g
|
|
885
900
|
}, s;
|
|
886
901
|
}, {}),
|
|
887
902
|
setEnabled: (s, n) => {
|
|
@@ -982,42 +997,42 @@ function Ks({
|
|
|
982
997
|
children: e
|
|
983
998
|
}) {
|
|
984
999
|
const t = G((d) => {
|
|
985
|
-
var
|
|
986
|
-
return (
|
|
1000
|
+
var h;
|
|
1001
|
+
return (h = d.data[r]) == null ? void 0 : h.enabled;
|
|
987
1002
|
}), s = G((d) => d.setEnabled), n = G((d) => {
|
|
988
|
-
var
|
|
989
|
-
return (
|
|
1003
|
+
var h;
|
|
1004
|
+
return (h = d.data[r]) == null ? void 0 : h.values;
|
|
990
1005
|
}), o = G((d) => d.setValue), i = G((d) => d.setVisibility), a = G((d) => {
|
|
991
|
-
var
|
|
992
|
-
return (
|
|
1006
|
+
var h;
|
|
1007
|
+
return (h = d.data[r]) == null ? void 0 : h.modeSelected;
|
|
993
1008
|
}), l = G((d) => d.setModeSelected), c = G((d) => {
|
|
994
|
-
var
|
|
995
|
-
return (
|
|
996
|
-
}),
|
|
1009
|
+
var h;
|
|
1010
|
+
return (h = d.data[r]) == null ? void 0 : h.modes;
|
|
1011
|
+
}), g = G((d) => d.setModeInstance);
|
|
997
1012
|
z(() => {
|
|
998
1013
|
const d = c[a];
|
|
999
1014
|
if (d && t) {
|
|
1000
|
-
const
|
|
1001
|
-
|
|
1015
|
+
const h = d.mode;
|
|
1016
|
+
g(r, new h());
|
|
1002
1017
|
}
|
|
1003
|
-
}, [t, r, a, c,
|
|
1018
|
+
}, [t, r, a, c, g]);
|
|
1004
1019
|
const [
|
|
1005
1020
|
p
|
|
1006
1021
|
// , draw
|
|
1007
1022
|
] = re(() => {
|
|
1008
|
-
const d = (
|
|
1023
|
+
const d = (T) => {
|
|
1009
1024
|
var f;
|
|
1010
1025
|
return {
|
|
1011
|
-
id:
|
|
1012
|
-
visible:
|
|
1013
|
-
label: (f =
|
|
1026
|
+
id: T.id,
|
|
1027
|
+
visible: T.properties.visible,
|
|
1028
|
+
label: (f = T.properties) == null ? void 0 : f.label
|
|
1014
1029
|
};
|
|
1015
1030
|
};
|
|
1016
1031
|
return [
|
|
1017
|
-
Object.values(n).filter((
|
|
1032
|
+
Object.values(n).filter((T) => T.type === "mask").map(d)
|
|
1018
1033
|
// , draw
|
|
1019
1034
|
];
|
|
1020
|
-
}, [n]),
|
|
1035
|
+
}, [n]), m = Q((d) => {
|
|
1021
1036
|
s(r, !!d), l(r, d);
|
|
1022
1037
|
}, [r, s, l]);
|
|
1023
1038
|
return e({
|
|
@@ -1031,8 +1046,8 @@ function Ks({
|
|
|
1031
1046
|
},
|
|
1032
1047
|
setValue: Q((d) => o(r, d), [r, o]),
|
|
1033
1048
|
setEnabled: Q((d) => s(r, d), [r, s]),
|
|
1034
|
-
setVisibility: Q((d,
|
|
1035
|
-
setModeSelected:
|
|
1049
|
+
setVisibility: Q((d, h) => i(r, d, h), [r, i]),
|
|
1050
|
+
setModeSelected: m
|
|
1036
1051
|
});
|
|
1037
1052
|
}
|
|
1038
1053
|
function _t({
|
|
@@ -1061,9 +1076,9 @@ function Oe({
|
|
|
1061
1076
|
const o = e === Ie["m-km"], i = e === Ie["ft-mi"], a = o || i;
|
|
1062
1077
|
let l, c;
|
|
1063
1078
|
if (a) {
|
|
1064
|
-
const
|
|
1065
|
-
let p =
|
|
1066
|
-
l =
|
|
1079
|
+
const g = r < (s ?? nt);
|
|
1080
|
+
let p = g ? V.meter : V.kilometer;
|
|
1081
|
+
l = g ? me.meter : me.kilometer, i && (l = g ? me.feet : me.mile, p = g ? V.feet : V.mile), c = st(r, p);
|
|
1067
1082
|
} else
|
|
1068
1083
|
l = me[e], c = st(r, e);
|
|
1069
1084
|
return `${bt(c, t, {
|
|
@@ -1076,7 +1091,7 @@ function Oe({
|
|
|
1076
1091
|
...n
|
|
1077
1092
|
})}`;
|
|
1078
1093
|
}
|
|
1079
|
-
function
|
|
1094
|
+
function Qr(r, {
|
|
1080
1095
|
hasDoubleClickZoom: e
|
|
1081
1096
|
}) {
|
|
1082
1097
|
return typeof r == "boolean" ? {
|
|
@@ -1492,32 +1507,32 @@ function Lt(r) {
|
|
|
1492
1507
|
layerId: s
|
|
1493
1508
|
} = r;
|
|
1494
1509
|
let n;
|
|
1495
|
-
e[0] !== t ? (n = (
|
|
1496
|
-
var
|
|
1497
|
-
return (
|
|
1510
|
+
e[0] !== t ? (n = (h) => {
|
|
1511
|
+
var y;
|
|
1512
|
+
return (y = h.maps[t]) == null ? void 0 : y.basemap;
|
|
1498
1513
|
}, e[0] = t, e[1] = n) : n = e[1];
|
|
1499
|
-
const o =
|
|
1514
|
+
const o = $(n);
|
|
1500
1515
|
let i;
|
|
1501
|
-
e[2] !== t ? (i = (
|
|
1502
|
-
var
|
|
1503
|
-
return (
|
|
1516
|
+
e[2] !== t ? (i = (h) => {
|
|
1517
|
+
var y;
|
|
1518
|
+
return (y = h.maps[t]) == null ? void 0 : y.isLoaded;
|
|
1504
1519
|
}, e[2] = t, e[3] = i) : i = e[3];
|
|
1505
|
-
const a =
|
|
1506
|
-
type:
|
|
1507
|
-
} = ye[o], p =
|
|
1508
|
-
let
|
|
1509
|
-
e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (
|
|
1510
|
-
let
|
|
1520
|
+
const a = $(i), l = $(on), c = pe(rn), {
|
|
1521
|
+
type: g
|
|
1522
|
+
} = ye[o], p = g === te.googleMaps;
|
|
1523
|
+
let m, d;
|
|
1524
|
+
e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (m = () => {
|
|
1525
|
+
let h = null;
|
|
1511
1526
|
if (p && a) {
|
|
1512
|
-
const
|
|
1513
|
-
|
|
1527
|
+
const y = l(t);
|
|
1528
|
+
h = new ss(y.getDiv(), {});
|
|
1514
1529
|
}
|
|
1515
1530
|
c(s, {
|
|
1516
1531
|
props: {
|
|
1517
|
-
eventManager:
|
|
1532
|
+
eventManager: h
|
|
1518
1533
|
}
|
|
1519
1534
|
});
|
|
1520
|
-
}, d = [l, p, a, s, t, c], e[4] = l, e[5] = p, e[6] = a, e[7] = s, e[8] = t, e[9] = c, e[10] =
|
|
1535
|
+
}, d = [l, p, a, s, t, c], e[4] = l, e[5] = p, e[6] = a, e[7] = s, e[8] = t, e[9] = c, e[10] = m, e[11] = d) : (m = e[10], d = e[11]), z(m, d);
|
|
1521
1536
|
}
|
|
1522
1537
|
function rn(r) {
|
|
1523
1538
|
return r.setLayer;
|
|
@@ -1530,11 +1545,11 @@ function ln({
|
|
|
1530
1545
|
children: r,
|
|
1531
1546
|
mapId: e,
|
|
1532
1547
|
defaultProps: {
|
|
1533
|
-
styles: t =
|
|
1548
|
+
styles: t = Ue.styles,
|
|
1534
1549
|
labels: s
|
|
1535
1550
|
} = {
|
|
1536
|
-
styles:
|
|
1537
|
-
labels:
|
|
1551
|
+
styles: Ue.styles,
|
|
1552
|
+
labels: Ue.labels
|
|
1538
1553
|
},
|
|
1539
1554
|
layerProps: n = {},
|
|
1540
1555
|
defaultType: o = "mask"
|
|
@@ -1545,49 +1560,49 @@ function ln({
|
|
|
1545
1560
|
}), a = G((M) => M.setEnabled), l = G((M) => {
|
|
1546
1561
|
var F;
|
|
1547
1562
|
return (F = M.data[e]) == null ? void 0 : F.values;
|
|
1548
|
-
}), c = G((M) => M.setValue),
|
|
1563
|
+
}), c = G((M) => M.setValue), g = G((M) => {
|
|
1549
1564
|
var F;
|
|
1550
1565
|
return (F = M.data[e]) == null ? void 0 : F.modeInstance;
|
|
1551
1566
|
}), p = G((M) => {
|
|
1552
1567
|
var F;
|
|
1553
1568
|
return (F = M.data[e]) == null ? void 0 : F.modeSelected;
|
|
1554
|
-
}),
|
|
1569
|
+
}), m = pe((M) => M.setLayer), d = $((M) => M.addLayers), h = $((M) => M.removeLayers), y = $(ht((M) => {
|
|
1555
1570
|
var F;
|
|
1556
1571
|
return (F = M.maps[e]) == null ? void 0 : F.layers.filter((u) => !an.includes(u));
|
|
1557
|
-
})),
|
|
1572
|
+
})), T = $((M) => M.getDeckInstance), f = Me({});
|
|
1558
1573
|
Lt({
|
|
1559
1574
|
mapId: e,
|
|
1560
1575
|
layerId: ce
|
|
1561
1576
|
});
|
|
1562
|
-
const
|
|
1577
|
+
const b = re(() => _t({
|
|
1563
1578
|
values: l
|
|
1564
|
-
}), [l]),
|
|
1579
|
+
}), [l]), S = re(() => ({
|
|
1565
1580
|
type: "FeatureCollection",
|
|
1566
|
-
features:
|
|
1581
|
+
features: b.map((M) => ({
|
|
1567
1582
|
type: "Feature",
|
|
1568
1583
|
geometry: M.geometry,
|
|
1569
1584
|
properties: M.properties,
|
|
1570
1585
|
id: M.id
|
|
1571
1586
|
}))
|
|
1572
|
-
}), [
|
|
1587
|
+
}), [b]), E = re(() => b.filter((M) => M.properties.visible).map((M) => M.id), [b]), [w, _] = oe(S), [k, U] = oe([]), C = Q(() => {
|
|
1573
1588
|
const M = {
|
|
1574
|
-
...
|
|
1575
|
-
features:
|
|
1589
|
+
...S,
|
|
1590
|
+
features: S.features.filter((F) => {
|
|
1576
1591
|
var u;
|
|
1577
1592
|
return (u = F.properties) == null ? void 0 : u.visible;
|
|
1578
1593
|
})
|
|
1579
1594
|
};
|
|
1580
1595
|
_(M);
|
|
1581
|
-
}, [
|
|
1596
|
+
}, [S]);
|
|
1582
1597
|
z(() => {
|
|
1583
1598
|
C();
|
|
1584
1599
|
}, [C]);
|
|
1585
|
-
const j = Me(
|
|
1600
|
+
const j = Me(b.length);
|
|
1586
1601
|
z(() => (d(e, [ce]), () => {
|
|
1587
|
-
|
|
1588
|
-
}), [d, e,
|
|
1602
|
+
h(e, [ce]);
|
|
1603
|
+
}), [d, e, h]);
|
|
1589
1604
|
const B = Q(() => {
|
|
1590
|
-
C(),
|
|
1605
|
+
C(), U([]), a(e, !1);
|
|
1591
1606
|
}, [e, C, a]), x = Q(({
|
|
1592
1607
|
editType: M,
|
|
1593
1608
|
updatedData: F
|
|
@@ -1620,14 +1635,14 @@ function ln({
|
|
|
1620
1635
|
layerProps: {
|
|
1621
1636
|
...n.mask,
|
|
1622
1637
|
pickable: M,
|
|
1623
|
-
data:
|
|
1638
|
+
data: w,
|
|
1624
1639
|
selectedFeatureIndexes: k,
|
|
1625
1640
|
updateTriggers: {
|
|
1626
1641
|
getFilterValue: E
|
|
1627
1642
|
},
|
|
1628
1643
|
onClick: (O) => {
|
|
1629
1644
|
const H = O;
|
|
1630
|
-
H.isGuide ||
|
|
1645
|
+
H.isGuide || U([H.index]);
|
|
1631
1646
|
}
|
|
1632
1647
|
},
|
|
1633
1648
|
getLineColor: (O) => k[0] === O.properties.index ? F : P,
|
|
@@ -1637,31 +1652,31 @@ function ln({
|
|
|
1637
1652
|
outline: F
|
|
1638
1653
|
},
|
|
1639
1654
|
onEdit: x,
|
|
1640
|
-
mode: M ?
|
|
1655
|
+
mode: M ? g : new Jt()
|
|
1641
1656
|
});
|
|
1642
|
-
|
|
1643
|
-
}, [
|
|
1657
|
+
m(ce, L);
|
|
1658
|
+
}, [w, i, n.mask, E, g, x, k, m, t.colors.editing, t.colors.finished]), z(() => {
|
|
1644
1659
|
const M = {
|
|
1645
1660
|
...Te,
|
|
1646
|
-
data:
|
|
1661
|
+
data: S,
|
|
1647
1662
|
getFilterValue: (F) => Number(E.includes(F.id)),
|
|
1648
1663
|
updateTriggers: {
|
|
1649
1664
|
getFilterValue: E
|
|
1650
1665
|
}
|
|
1651
1666
|
};
|
|
1652
|
-
return
|
|
1667
|
+
return m(Te.id, {
|
|
1653
1668
|
type: ns,
|
|
1654
1669
|
props: M
|
|
1655
1670
|
}), d(e, [Te.id]), () => {
|
|
1656
|
-
|
|
1671
|
+
h(e, [Te.id]);
|
|
1657
1672
|
};
|
|
1658
|
-
}, [d, e,
|
|
1659
|
-
|
|
1673
|
+
}, [d, e, S, E, h, m]), z(() => {
|
|
1674
|
+
y == null || y.forEach((M) => {
|
|
1660
1675
|
var v;
|
|
1661
|
-
const F = (v =
|
|
1676
|
+
const F = (v = T(e)) == null ? void 0 : v.props.layers.find((P) => P.props.id === M);
|
|
1662
1677
|
i && (f.current[M] = F == null ? void 0 : F.props.pickable);
|
|
1663
1678
|
const u = !i && (f.current[M] ?? (F == null ? void 0 : F.props.pickable));
|
|
1664
|
-
|
|
1679
|
+
m(M, {
|
|
1665
1680
|
props: {
|
|
1666
1681
|
pickable: u,
|
|
1667
1682
|
extensions: [new ts()],
|
|
@@ -1669,7 +1684,7 @@ function ln({
|
|
|
1669
1684
|
}
|
|
1670
1685
|
});
|
|
1671
1686
|
});
|
|
1672
|
-
}, [i,
|
|
1687
|
+
}, [i, T, e, y, E.length, m]), r;
|
|
1673
1688
|
}
|
|
1674
1689
|
ln.Controls = Ks;
|
|
1675
1690
|
function cn({
|
|
@@ -1705,7 +1720,7 @@ function un({
|
|
|
1705
1720
|
pickable: s,
|
|
1706
1721
|
modeConfig: {
|
|
1707
1722
|
// We force distance due to conversion is addressed at feature getText level
|
|
1708
|
-
formatTooltip: (
|
|
1723
|
+
formatTooltip: (m) => m,
|
|
1709
1724
|
turfOptions: {
|
|
1710
1725
|
units: en.meters
|
|
1711
1726
|
}
|
|
@@ -1722,10 +1737,10 @@ function un({
|
|
|
1722
1737
|
// needed for the outlineWidth and outlineColor attributes to be effective
|
|
1723
1738
|
smoothing: 0.2
|
|
1724
1739
|
},
|
|
1725
|
-
getText: (
|
|
1740
|
+
getText: (m) => {
|
|
1726
1741
|
var d;
|
|
1727
1742
|
return (d = r == null ? void 0 : r.getTooltipText) == null ? void 0 : d.call(r, {
|
|
1728
|
-
meters:
|
|
1743
|
+
meters: m.text,
|
|
1729
1744
|
locale: t,
|
|
1730
1745
|
unit: n,
|
|
1731
1746
|
options: l
|
|
@@ -1736,7 +1751,7 @@ function un({
|
|
|
1736
1751
|
}
|
|
1737
1752
|
}
|
|
1738
1753
|
}
|
|
1739
|
-
}),
|
|
1754
|
+
}), g = ue(Js, {
|
|
1740
1755
|
_subLayerProps: {
|
|
1741
1756
|
guides: {
|
|
1742
1757
|
getLineColor: i,
|
|
@@ -1746,7 +1761,7 @@ function un({
|
|
|
1746
1761
|
getEditHandlePointColor: a,
|
|
1747
1762
|
getEditHandlePointOutlineColor: i
|
|
1748
1763
|
});
|
|
1749
|
-
return ue(
|
|
1764
|
+
return ue(g, c);
|
|
1750
1765
|
}
|
|
1751
1766
|
const dn = (r) => ze()((e) => ({
|
|
1752
1767
|
measurements: r.reduce((s, n) => {
|
|
@@ -1756,24 +1771,24 @@ const dn = (r) => ze()((e) => ({
|
|
|
1756
1771
|
modes: a = sn,
|
|
1757
1772
|
units: l = nn,
|
|
1758
1773
|
distance: c = 0,
|
|
1759
|
-
finished:
|
|
1774
|
+
finished: g = !1,
|
|
1760
1775
|
locale: p = "en",
|
|
1761
|
-
positions:
|
|
1776
|
+
positions: m = [],
|
|
1762
1777
|
clearLayerOnStart: d = !1,
|
|
1763
|
-
unit:
|
|
1764
|
-
enabled:
|
|
1778
|
+
unit: h = Ie["m-km"],
|
|
1779
|
+
enabled: y = !1
|
|
1765
1780
|
} = n;
|
|
1766
1781
|
return s[o] = {
|
|
1767
1782
|
modes: a,
|
|
1768
1783
|
units: l,
|
|
1769
1784
|
modeSelected: i,
|
|
1770
1785
|
distance: c,
|
|
1771
|
-
finished:
|
|
1786
|
+
finished: g,
|
|
1772
1787
|
locale: p,
|
|
1773
|
-
positions:
|
|
1774
|
-
unit:
|
|
1788
|
+
positions: m,
|
|
1789
|
+
unit: h,
|
|
1775
1790
|
clearLayerOnStart: d,
|
|
1776
|
-
enabled:
|
|
1791
|
+
enabled: y
|
|
1777
1792
|
}, s;
|
|
1778
1793
|
}, {}),
|
|
1779
1794
|
mode: Pt,
|
|
@@ -1896,29 +1911,29 @@ function Ft(r) {
|
|
|
1896
1911
|
let a;
|
|
1897
1912
|
e[4] !== t ? (a = (R) => R.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1898
1913
|
const l = I(a), c = I(Sn);
|
|
1899
|
-
let b;
|
|
1900
|
-
e[6] !== c || e[7] !== t ? (b = (R) => c(t, R), e[6] = c, e[7] = t, e[8] = b) : b = e[8];
|
|
1901
|
-
const p = b;
|
|
1902
|
-
let y;
|
|
1903
|
-
e[9] !== t ? (y = (R) => R.measurements[t].clearLayerOnStart, e[9] = t, e[10] = y) : y = e[10];
|
|
1904
|
-
const d = I(y);
|
|
1905
1914
|
let g;
|
|
1906
|
-
e[
|
|
1907
|
-
const
|
|
1915
|
+
e[6] !== c || e[7] !== t ? (g = (R) => c(t, R), e[6] = c, e[7] = t, e[8] = g) : g = e[8];
|
|
1916
|
+
const p = g;
|
|
1917
|
+
let m;
|
|
1918
|
+
e[9] !== t ? (m = (R) => R.measurements[t].clearLayerOnStart, e[9] = t, e[10] = m) : m = e[10];
|
|
1919
|
+
const d = I(m);
|
|
1920
|
+
let h;
|
|
1921
|
+
e[11] !== t ? (h = (R) => R.measurements[t].enabled, e[11] = t, e[12] = h) : h = e[12];
|
|
1922
|
+
const y = I(h), T = I(vn);
|
|
1908
1923
|
let f;
|
|
1909
|
-
e[13] !==
|
|
1910
|
-
const
|
|
1911
|
-
let
|
|
1912
|
-
e[16] !== t ? (
|
|
1913
|
-
const E = I(
|
|
1924
|
+
e[13] !== T || e[14] !== t ? (f = (R) => T(t, R), e[13] = T, e[14] = t, e[15] = f) : f = e[15];
|
|
1925
|
+
const b = f;
|
|
1926
|
+
let S;
|
|
1927
|
+
e[16] !== t ? (S = (R) => R.measurements[t].modeSelected, e[16] = t, e[17] = S) : S = e[17];
|
|
1928
|
+
const E = I(S), w = I(bn);
|
|
1914
1929
|
let _;
|
|
1915
|
-
e[18] !==
|
|
1916
|
-
|
|
1917
|
-
}, e[18] =
|
|
1930
|
+
e[18] !== w || e[19] !== t || e[20] !== b ? (_ = (R) => {
|
|
1931
|
+
b(!!R), w(t, R);
|
|
1932
|
+
}, e[18] = w, e[19] = t, e[20] = b, e[21] = _) : _ = e[21];
|
|
1918
1933
|
const k = _;
|
|
1919
|
-
let
|
|
1920
|
-
e[22] !== t ? (
|
|
1921
|
-
const C = I(
|
|
1934
|
+
let U;
|
|
1935
|
+
e[22] !== t ? (U = (R) => R.measurements[t].finished, e[22] = t, e[23] = U) : U = e[23];
|
|
1936
|
+
const C = I(U), j = I(gn);
|
|
1922
1937
|
let B;
|
|
1923
1938
|
e[24] !== j || e[25] !== t ? (B = (R) => j(t, R), e[24] = j, e[25] = t, e[26] = B) : B = e[26];
|
|
1924
1939
|
const x = B;
|
|
@@ -1952,18 +1967,18 @@ function Ft(r) {
|
|
|
1952
1967
|
}, e[47] = L, e[48] = fe, e[49] = ve) : ve = e[49];
|
|
1953
1968
|
const Ce = ve;
|
|
1954
1969
|
let Se;
|
|
1955
|
-
e[50] !==
|
|
1956
|
-
|
|
1957
|
-
}, e[50] =
|
|
1970
|
+
e[50] !== b ? (Se = (R) => {
|
|
1971
|
+
b(R);
|
|
1972
|
+
}, e[50] = b, e[51] = Se) : Se = e[51];
|
|
1958
1973
|
const De = Se;
|
|
1959
1974
|
let we;
|
|
1960
|
-
return e[52] !== Ce || e[53] !== d || e[54] !== l || e[55] !==
|
|
1975
|
+
return e[52] !== Ce || e[53] !== d || e[54] !== l || e[55] !== y || e[56] !== C || e[57] !== F || e[58] !== L || e[59] !== E || e[60] !== n || e[61] !== q || e[62] !== p || e[63] !== b || e[64] !== x || e[65] !== P || e[66] !== W || e[67] !== k || e[68] !== fe || e[69] !== Ae || e[70] !== De || e[71] !== Fe || e[72] !== i ? (we = {
|
|
1961
1976
|
modes: n,
|
|
1962
1977
|
units: i,
|
|
1963
1978
|
distance: l,
|
|
1964
1979
|
clearLayerOnStart: d,
|
|
1965
1980
|
modeSelected: E,
|
|
1966
|
-
enabled:
|
|
1981
|
+
enabled: y,
|
|
1967
1982
|
finished: C,
|
|
1968
1983
|
locale: F,
|
|
1969
1984
|
modeInstance: L,
|
|
@@ -1975,11 +1990,11 @@ function Ft(r) {
|
|
|
1975
1990
|
setLocale: P,
|
|
1976
1991
|
setPositions: fe,
|
|
1977
1992
|
setUnit: Ae,
|
|
1978
|
-
setEnabled:
|
|
1993
|
+
setEnabled: b,
|
|
1979
1994
|
toggleLayer: De,
|
|
1980
1995
|
clearLayer: Ce,
|
|
1981
1996
|
setModeInstance: W
|
|
1982
|
-
}, e[52] = Ce, e[53] = d, e[54] = l, e[55] =
|
|
1997
|
+
}, e[52] = Ce, e[53] = d, e[54] = l, e[55] = y, e[56] = C, e[57] = F, e[58] = L, e[59] = E, e[60] = n, e[61] = q, e[62] = p, e[63] = b, e[64] = x, e[65] = P, e[66] = W, e[67] = k, e[68] = fe, e[69] = Ae, e[70] = De, e[71] = Fe, e[72] = i, e[73] = we) : we = e[73], we;
|
|
1983
1998
|
}
|
|
1984
1999
|
function pn(r) {
|
|
1985
2000
|
return r.setUnit;
|
|
@@ -2020,21 +2035,21 @@ function wn(r) {
|
|
|
2020
2035
|
units: a,
|
|
2021
2036
|
distance: l,
|
|
2022
2037
|
setDistance: c,
|
|
2023
|
-
clearLayerOnStart:
|
|
2038
|
+
clearLayerOnStart: g,
|
|
2024
2039
|
modeSelected: p,
|
|
2025
|
-
setModeSelected:
|
|
2040
|
+
setModeSelected: m,
|
|
2026
2041
|
enabled: d,
|
|
2027
|
-
setEnabled:
|
|
2028
|
-
finished:
|
|
2029
|
-
setFinished:
|
|
2042
|
+
setEnabled: h,
|
|
2043
|
+
finished: y,
|
|
2044
|
+
setFinished: T,
|
|
2030
2045
|
locale: f,
|
|
2031
|
-
setLocale:
|
|
2032
|
-
modeInstance:
|
|
2046
|
+
setLocale: b,
|
|
2047
|
+
modeInstance: S,
|
|
2033
2048
|
setModeInstance: E,
|
|
2034
|
-
positions:
|
|
2049
|
+
positions: w,
|
|
2035
2050
|
setPositions: _,
|
|
2036
2051
|
unit: k,
|
|
2037
|
-
setUnit:
|
|
2052
|
+
setUnit: U,
|
|
2038
2053
|
clearLayer: C,
|
|
2039
2054
|
toggleLayer: j
|
|
2040
2055
|
} = Ft(o);
|
|
@@ -2049,20 +2064,20 @@ function wn(r) {
|
|
|
2049
2064
|
};
|
|
2050
2065
|
}, e[2] = p, e[3] = i, e[4] = E, e[5] = _, e[6] = B) : B = e[6];
|
|
2051
2066
|
let x;
|
|
2052
|
-
e[7] !== p || e[8] !== i || e[9] !==
|
|
2067
|
+
e[7] !== p || e[8] !== i || e[9] !== h || e[10] !== E || e[11] !== _ ? (x = [i, p, _, E, h], e[7] = p, e[8] = i, e[9] = h, e[10] = E, e[11] = _, e[12] = x) : x = e[12], z(B, x);
|
|
2053
2068
|
let M;
|
|
2054
|
-
e[13] !== j || e[14] !== C || e[15] !==
|
|
2055
|
-
P && (
|
|
2056
|
-
}, e[13] = j, e[14] = C, e[15] =
|
|
2057
|
-
const F = M, u = !!
|
|
2069
|
+
e[13] !== j || e[14] !== C || e[15] !== g || e[16] !== y ? (M = (P) => {
|
|
2070
|
+
P && (g || !y) && C(), j(P);
|
|
2071
|
+
}, e[13] = j, e[14] = C, e[15] = g, e[16] = y, e[17] = M) : M = e[17];
|
|
2072
|
+
const F = M, u = !!g;
|
|
2058
2073
|
let v;
|
|
2059
|
-
return e[18] !== n || e[19] !== C || e[20] !== l || e[21] !== d || e[22] !==
|
|
2074
|
+
return e[18] !== n || e[19] !== C || e[20] !== l || e[21] !== d || e[22] !== y || e[23] !== f || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== w || e[29] !== c || e[30] !== h || e[31] !== T || e[32] !== b || e[33] !== m || e[34] !== _ || e[35] !== U || e[36] !== u || e[37] !== s || e[38] !== F || e[39] !== k || e[40] !== a ? (v = n({
|
|
2060
2075
|
mapId: t,
|
|
2061
2076
|
distance: l,
|
|
2062
2077
|
enabled: d,
|
|
2063
|
-
finished:
|
|
2078
|
+
finished: y,
|
|
2064
2079
|
locale: f,
|
|
2065
|
-
positions:
|
|
2080
|
+
positions: w,
|
|
2066
2081
|
unit: k,
|
|
2067
2082
|
clearLayerOnStart: u,
|
|
2068
2083
|
modeSelected: p,
|
|
@@ -2074,17 +2089,17 @@ function wn(r) {
|
|
|
2074
2089
|
locale: f,
|
|
2075
2090
|
options: s
|
|
2076
2091
|
}),
|
|
2077
|
-
modeInstance:
|
|
2078
|
-
setModeSelected:
|
|
2092
|
+
modeInstance: S,
|
|
2093
|
+
setModeSelected: m,
|
|
2079
2094
|
setDistance: c,
|
|
2080
|
-
setFinished:
|
|
2081
|
-
setLocale:
|
|
2095
|
+
setFinished: T,
|
|
2096
|
+
setLocale: b,
|
|
2082
2097
|
setPositions: _,
|
|
2083
|
-
setUnit:
|
|
2084
|
-
setEnabled:
|
|
2098
|
+
setUnit: U,
|
|
2099
|
+
setEnabled: h,
|
|
2085
2100
|
toggleLayer: F,
|
|
2086
2101
|
clearLayer: C
|
|
2087
|
-
}), e[18] = n, e[19] = C, e[20] = l, e[21] = d, e[22] =
|
|
2102
|
+
}), e[18] = n, e[19] = C, e[20] = l, e[21] = d, e[22] = y, e[23] = f, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = w, e[29] = c, e[30] = h, e[31] = T, e[32] = b, e[33] = m, e[34] = _, e[35] = U, e[36] = u, e[37] = s, e[38] = F, e[39] = k, e[40] = a, e[41] = v) : v = e[41], v;
|
|
2088
2103
|
}
|
|
2089
2104
|
const Tn = [ne];
|
|
2090
2105
|
function En({
|
|
@@ -2104,63 +2119,63 @@ function En({
|
|
|
2104
2119
|
enabled: a,
|
|
2105
2120
|
finished: l,
|
|
2106
2121
|
setFinished: c,
|
|
2107
|
-
locale:
|
|
2122
|
+
locale: g,
|
|
2108
2123
|
setPositions: p,
|
|
2109
|
-
unit:
|
|
2124
|
+
unit: m,
|
|
2110
2125
|
modeInstance: d
|
|
2111
2126
|
} = Ft({
|
|
2112
2127
|
mapId: e
|
|
2113
|
-
}),
|
|
2128
|
+
}), h = pe((w) => w.setLayer), y = $((w) => w.addLayers), T = $((w) => w.removeLayers), f = $(ht((w) => {
|
|
2114
2129
|
var _;
|
|
2115
|
-
return (_ =
|
|
2116
|
-
})),
|
|
2130
|
+
return (_ = w.maps[e]) == null ? void 0 : _.layers.filter((k) => !Tn.includes(k));
|
|
2131
|
+
})), b = $((w) => w.getDeckInstance), S = Me({});
|
|
2117
2132
|
Lt({
|
|
2118
2133
|
mapId: e,
|
|
2119
2134
|
layerId: ne
|
|
2120
|
-
}), z(() => (a &&
|
|
2121
|
-
|
|
2122
|
-
}), [
|
|
2123
|
-
f == null || f.forEach((
|
|
2124
|
-
var
|
|
2125
|
-
const _ = (
|
|
2126
|
-
a && (
|
|
2127
|
-
const k = !a && (
|
|
2128
|
-
|
|
2135
|
+
}), z(() => (a && y(e, [ne]), () => {
|
|
2136
|
+
T(e, [ne]);
|
|
2137
|
+
}), [y, i, e, T, a]), z(() => {
|
|
2138
|
+
f == null || f.forEach((w) => {
|
|
2139
|
+
var U;
|
|
2140
|
+
const _ = (U = b(e)) == null ? void 0 : U.props.layers.find((C) => C.props.id === w);
|
|
2141
|
+
a && (S.current[w] = _ == null ? void 0 : _.props.pickable);
|
|
2142
|
+
const k = !a && (S.current[w] ?? (_ == null ? void 0 : _.props.pickable));
|
|
2143
|
+
h(w, {
|
|
2129
2144
|
props: {
|
|
2130
2145
|
pickable: k
|
|
2131
2146
|
}
|
|
2132
2147
|
});
|
|
2133
2148
|
});
|
|
2134
|
-
}, [a,
|
|
2149
|
+
}, [a, b, e, f, h]);
|
|
2135
2150
|
const E = Q(({
|
|
2136
|
-
editType:
|
|
2151
|
+
editType: w,
|
|
2137
2152
|
editContext: _
|
|
2138
2153
|
}) => {
|
|
2139
|
-
if (
|
|
2154
|
+
if (w === Y.cancel) {
|
|
2140
2155
|
d.resetClickSequence();
|
|
2141
2156
|
return;
|
|
2142
2157
|
}
|
|
2143
|
-
|
|
2158
|
+
w === Y.addPosition && o(_.distance), c(!!_.finished);
|
|
2144
2159
|
const k = _.positions;
|
|
2145
2160
|
k != null && k.length && p(k);
|
|
2146
2161
|
}, [d, o, c, p]);
|
|
2147
2162
|
return z(() => {
|
|
2148
|
-
const
|
|
2163
|
+
const w = l ? t.colors.finished : t.colors.editing, _ = l ? t.colors.finished : t.colors.point, k = cn({
|
|
2149
2164
|
layerProps: {
|
|
2150
2165
|
...s,
|
|
2151
2166
|
pickable: s.pickable ?? !l
|
|
2152
2167
|
},
|
|
2153
2168
|
enabled: a,
|
|
2154
|
-
guideColor:
|
|
2169
|
+
guideColor: w,
|
|
2155
2170
|
pointColor: _,
|
|
2156
|
-
locale:
|
|
2171
|
+
locale: g,
|
|
2157
2172
|
onEdit: E,
|
|
2158
|
-
unit:
|
|
2173
|
+
unit: m,
|
|
2159
2174
|
mode: d,
|
|
2160
2175
|
textOptions: n
|
|
2161
2176
|
});
|
|
2162
|
-
|
|
2163
|
-
}, [l, d, s,
|
|
2177
|
+
h(ne, k);
|
|
2178
|
+
}, [l, d, s, g, E, h, t.colors.editing, t.colors.finished, t.colors.point, n, m, a]), r;
|
|
2164
2179
|
}
|
|
2165
2180
|
En.Controls = wn;
|
|
2166
2181
|
function _n(r) {
|
|
@@ -2171,11 +2186,11 @@ function _n(r) {
|
|
|
2171
2186
|
e[0] !== t ? (s = (c) => c.maps[t], e[0] = t, e[1] = s) : s = e[1];
|
|
2172
2187
|
const {
|
|
2173
2188
|
layers: n
|
|
2174
|
-
} =
|
|
2189
|
+
} = $(s), o = pe(Pn);
|
|
2175
2190
|
let i, a;
|
|
2176
2191
|
if (e[2] !== o || e[3] !== n) {
|
|
2177
2192
|
let c;
|
|
2178
|
-
e[5] !== o ? (c = (
|
|
2193
|
+
e[5] !== o ? (c = (g) => o[g], e[5] = o, e[6] = c) : c = e[6], a = n.map(c).filter(Mn), e[2] = o, e[3] = n, e[4] = a;
|
|
2179
2194
|
} else
|
|
2180
2195
|
a = e[4];
|
|
2181
2196
|
return i = a, i;
|
|
@@ -2192,7 +2207,7 @@ function kt(r) {
|
|
|
2192
2207
|
return [...e, ...t];
|
|
2193
2208
|
}
|
|
2194
2209
|
const Ln = 200;
|
|
2195
|
-
function
|
|
2210
|
+
function Wr(r) {
|
|
2196
2211
|
const e = D(48);
|
|
2197
2212
|
let t, s, n, o;
|
|
2198
2213
|
e[0] !== r ? ({
|
|
@@ -2203,56 +2218,56 @@ function Qr(r) {
|
|
|
2203
2218
|
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o) : (t = e[1], s = e[2], n = e[3], o = e[4]);
|
|
2204
2219
|
let i;
|
|
2205
2220
|
e[5] !== t ? (i = (L) => L.maps[t].basemap, e[5] = t, e[6] = i) : i = e[6];
|
|
2206
|
-
const a =
|
|
2221
|
+
const a = $(i);
|
|
2207
2222
|
let l;
|
|
2208
2223
|
e[7] !== t ? (l = (L) => L.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
|
|
2209
|
-
const c =
|
|
2210
|
-
let
|
|
2211
|
-
e[9] !== t ? (
|
|
2212
|
-
const p =
|
|
2224
|
+
const c = $(l);
|
|
2225
|
+
let g;
|
|
2226
|
+
e[9] !== t ? (g = (L) => L.maps[t].overlayRef, e[9] = t, e[10] = g) : g = e[10];
|
|
2227
|
+
const p = $(g), m = Me(null);
|
|
2213
2228
|
let d;
|
|
2214
2229
|
e[11] !== t ? (d = (L) => L.viewStates[t], e[11] = t, e[12] = d) : d = e[12];
|
|
2215
|
-
const
|
|
2230
|
+
const h = $(d), y = $(Dn), T = $(Cn), f = $(An), b = $(kn), S = $(Fn);
|
|
2216
2231
|
let E;
|
|
2217
2232
|
e[13] !== t ? (E = {
|
|
2218
2233
|
mapId: t
|
|
2219
2234
|
}, e[13] = t, e[14] = E) : E = e[14];
|
|
2220
|
-
const
|
|
2235
|
+
const w = _n(E);
|
|
2221
2236
|
let _, k;
|
|
2222
|
-
e[15] !==
|
|
2223
|
-
const
|
|
2237
|
+
e[15] !== w ? (k = kt(w), e[15] = w, e[16] = k) : k = e[16], _ = k;
|
|
2238
|
+
const U = _;
|
|
2224
2239
|
let C;
|
|
2225
|
-
e[17] !== t || e[18] !== n || e[19] !==
|
|
2226
|
-
const O =
|
|
2227
|
-
if (
|
|
2228
|
-
|
|
2240
|
+
e[17] !== t || e[18] !== n || e[19] !== T || e[20] !== S ? (C = (L) => {
|
|
2241
|
+
const O = T;
|
|
2242
|
+
if (m.current && clearInterval(m.current), m.current = setTimeout(() => {
|
|
2243
|
+
S(t);
|
|
2229
2244
|
}, Ln), n) {
|
|
2230
2245
|
n(L, O);
|
|
2231
2246
|
return;
|
|
2232
2247
|
}
|
|
2233
2248
|
O(t, L.viewState);
|
|
2234
|
-
}, e[17] = t, e[18] = n, e[19] =
|
|
2249
|
+
}, e[17] = t, e[18] = n, e[19] = T, e[20] = S, e[21] = C) : C = e[21];
|
|
2235
2250
|
const j = C;
|
|
2236
2251
|
let B;
|
|
2237
|
-
e[22] !== t || e[23] !== s || e[24] !== f || e[25] !==
|
|
2238
|
-
f(t, L), s == null || s(L),
|
|
2239
|
-
}, e[22] = t, e[23] = s, e[24] = f, e[25] =
|
|
2252
|
+
e[22] !== t || e[23] !== s || e[24] !== f || e[25] !== S ? (B = (L) => {
|
|
2253
|
+
f(t, L), s == null || s(L), S(t);
|
|
2254
|
+
}, e[22] = t, e[23] = s, e[24] = f, e[25] = S, e[26] = B) : B = e[26];
|
|
2240
2255
|
const x = B;
|
|
2241
2256
|
let M;
|
|
2242
|
-
e[27] !==
|
|
2257
|
+
e[27] !== y || e[28] !== t || e[29] !== o || e[30] !== b ? (M = (L) => {
|
|
2243
2258
|
var W, K;
|
|
2244
|
-
const O = (W =
|
|
2245
|
-
|
|
2246
|
-
}, e[27] =
|
|
2259
|
+
const O = (W = y(t)) == null ? void 0 : W.props.layers, H = !!(O != null && O.every(On));
|
|
2260
|
+
b(t, H), (K = o.onAfterRender) == null || K.call(o, L);
|
|
2261
|
+
}, e[27] = y, e[28] = t, e[29] = o, e[30] = b, e[31] = M) : M = e[31];
|
|
2247
2262
|
const F = M, u = o.onDragEnd;
|
|
2248
2263
|
let v;
|
|
2249
|
-
e[32] !== u || e[33] !== t || e[34] !==
|
|
2264
|
+
e[32] !== u || e[33] !== t || e[34] !== S ? (v = (...L) => {
|
|
2250
2265
|
const O = L;
|
|
2251
|
-
|
|
2252
|
-
}, e[32] = u, e[33] = t, e[34] =
|
|
2266
|
+
S(t), u && u(...O);
|
|
2267
|
+
}, e[32] = u, e[33] = t, e[34] = S, e[35] = v) : v = e[35];
|
|
2253
2268
|
const P = v;
|
|
2254
2269
|
let A;
|
|
2255
|
-
return e[36] !== a || e[37] !==
|
|
2270
|
+
return e[36] !== a || e[37] !== U || e[38] !== F || e[39] !== P || e[40] !== x || e[41] !== j || e[42] !== t || e[43] !== c || e[44] !== p || e[45] !== o || e[46] !== h ? (A = /* @__PURE__ */ N(Os, { ...o, id: t, layers: U, instanceRef: c, overlayRef: p, basemap: a, initialViewState: h, onLoad: x, onViewStateChange: j, onAfterRender: F, onDragEnd: P }), e[36] = a, e[37] = U, e[38] = F, e[39] = P, e[40] = x, e[41] = j, e[42] = t, e[43] = c, e[44] = p, e[45] = o, e[46] = h, e[47] = A) : A = e[47], A;
|
|
2256
2271
|
}
|
|
2257
2272
|
function On(r) {
|
|
2258
2273
|
return r == null ? void 0 : r.isLoaded;
|
|
@@ -2301,7 +2316,7 @@ function Rn() {
|
|
|
2301
2316
|
return u && DataView.prototype.isPrototypeOf(u);
|
|
2302
2317
|
}
|
|
2303
2318
|
if (l.arrayBuffer)
|
|
2304
|
-
var
|
|
2319
|
+
var g = [
|
|
2305
2320
|
"[object Int8Array]",
|
|
2306
2321
|
"[object Uint8Array]",
|
|
2307
2322
|
"[object Uint8ClampedArray]",
|
|
@@ -2312,9 +2327,9 @@ function Rn() {
|
|
|
2312
2327
|
"[object Float32Array]",
|
|
2313
2328
|
"[object Float64Array]"
|
|
2314
2329
|
], p = ArrayBuffer.isView || function(u) {
|
|
2315
|
-
return u &&
|
|
2330
|
+
return u && g.indexOf(Object.prototype.toString.call(u)) > -1;
|
|
2316
2331
|
};
|
|
2317
|
-
function
|
|
2332
|
+
function m(u) {
|
|
2318
2333
|
if (typeof u != "string" && (u = String(u)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(u) || u === "")
|
|
2319
2334
|
throw new TypeError('Invalid character in header field name: "' + u + '"');
|
|
2320
2335
|
return u.toLowerCase();
|
|
@@ -2322,7 +2337,7 @@ function Rn() {
|
|
|
2322
2337
|
function d(u) {
|
|
2323
2338
|
return typeof u != "string" && (u = String(u)), u;
|
|
2324
2339
|
}
|
|
2325
|
-
function
|
|
2340
|
+
function h(u) {
|
|
2326
2341
|
var v = {
|
|
2327
2342
|
next: function() {
|
|
2328
2343
|
var P = u.shift();
|
|
@@ -2333,8 +2348,8 @@ function Rn() {
|
|
|
2333
2348
|
return v;
|
|
2334
2349
|
}), v;
|
|
2335
2350
|
}
|
|
2336
|
-
function
|
|
2337
|
-
this.map = {}, u instanceof
|
|
2351
|
+
function y(u) {
|
|
2352
|
+
this.map = {}, u instanceof y ? u.forEach(function(v, P) {
|
|
2338
2353
|
this.append(P, v);
|
|
2339
2354
|
}, this) : Array.isArray(u) ? u.forEach(function(v) {
|
|
2340
2355
|
if (v.length != 2)
|
|
@@ -2344,38 +2359,38 @@ function Rn() {
|
|
|
2344
2359
|
this.append(v, u[v]);
|
|
2345
2360
|
}, this);
|
|
2346
2361
|
}
|
|
2347
|
-
|
|
2348
|
-
u =
|
|
2362
|
+
y.prototype.append = function(u, v) {
|
|
2363
|
+
u = m(u), v = d(v);
|
|
2349
2364
|
var P = this.map[u];
|
|
2350
2365
|
this.map[u] = P ? P + ", " + v : v;
|
|
2351
|
-
},
|
|
2352
|
-
delete this.map[
|
|
2353
|
-
},
|
|
2354
|
-
return u =
|
|
2355
|
-
},
|
|
2356
|
-
return this.map.hasOwnProperty(
|
|
2357
|
-
},
|
|
2358
|
-
this.map[
|
|
2359
|
-
},
|
|
2366
|
+
}, y.prototype.delete = function(u) {
|
|
2367
|
+
delete this.map[m(u)];
|
|
2368
|
+
}, y.prototype.get = function(u) {
|
|
2369
|
+
return u = m(u), this.has(u) ? this.map[u] : null;
|
|
2370
|
+
}, y.prototype.has = function(u) {
|
|
2371
|
+
return this.map.hasOwnProperty(m(u));
|
|
2372
|
+
}, y.prototype.set = function(u, v) {
|
|
2373
|
+
this.map[m(u)] = d(v);
|
|
2374
|
+
}, y.prototype.forEach = function(u, v) {
|
|
2360
2375
|
for (var P in this.map)
|
|
2361
2376
|
this.map.hasOwnProperty(P) && u.call(v, this.map[P], P, this);
|
|
2362
|
-
},
|
|
2377
|
+
}, y.prototype.keys = function() {
|
|
2363
2378
|
var u = [];
|
|
2364
2379
|
return this.forEach(function(v, P) {
|
|
2365
2380
|
u.push(P);
|
|
2366
|
-
}),
|
|
2367
|
-
},
|
|
2381
|
+
}), h(u);
|
|
2382
|
+
}, y.prototype.values = function() {
|
|
2368
2383
|
var u = [];
|
|
2369
2384
|
return this.forEach(function(v) {
|
|
2370
2385
|
u.push(v);
|
|
2371
|
-
}),
|
|
2372
|
-
},
|
|
2386
|
+
}), h(u);
|
|
2387
|
+
}, y.prototype.entries = function() {
|
|
2373
2388
|
var u = [];
|
|
2374
2389
|
return this.forEach(function(v, P) {
|
|
2375
2390
|
u.push([P, v]);
|
|
2376
|
-
}),
|
|
2377
|
-
}, l.iterable && (
|
|
2378
|
-
function
|
|
2391
|
+
}), h(u);
|
|
2392
|
+
}, l.iterable && (y.prototype[Symbol.iterator] = y.prototype.entries);
|
|
2393
|
+
function T(u) {
|
|
2379
2394
|
if (!u._noBody) {
|
|
2380
2395
|
if (u.bodyUsed)
|
|
2381
2396
|
return Promise.reject(new TypeError("Already read"));
|
|
@@ -2391,11 +2406,11 @@ function Rn() {
|
|
|
2391
2406
|
};
|
|
2392
2407
|
});
|
|
2393
2408
|
}
|
|
2394
|
-
function
|
|
2409
|
+
function b(u) {
|
|
2395
2410
|
var v = new FileReader(), P = f(v);
|
|
2396
2411
|
return v.readAsArrayBuffer(u), P;
|
|
2397
2412
|
}
|
|
2398
|
-
function
|
|
2413
|
+
function S(u) {
|
|
2399
2414
|
var v = new FileReader(), P = f(v), A = /charset=([A-Za-z0-9_-]+)/.exec(u.type), L = A ? A[1] : "utf-8";
|
|
2400
2415
|
return v.readAsText(u, L), P;
|
|
2401
2416
|
}
|
|
@@ -2404,7 +2419,7 @@ function Rn() {
|
|
|
2404
2419
|
P[A] = String.fromCharCode(v[A]);
|
|
2405
2420
|
return P.join("");
|
|
2406
2421
|
}
|
|
2407
|
-
function
|
|
2422
|
+
function w(u) {
|
|
2408
2423
|
if (u.slice)
|
|
2409
2424
|
return u.slice(0);
|
|
2410
2425
|
var v = new Uint8Array(u.byteLength);
|
|
@@ -2412,9 +2427,9 @@ function Rn() {
|
|
|
2412
2427
|
}
|
|
2413
2428
|
function _() {
|
|
2414
2429
|
return this.bodyUsed = !1, this._initBody = function(u) {
|
|
2415
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : l.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : l.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : l.arrayBuffer && l.blob && c(u) ? (this._bodyArrayBuffer =
|
|
2430
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : l.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : l.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : l.arrayBuffer && l.blob && c(u) ? (this._bodyArrayBuffer = w(u.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(u) || p(u)) ? this._bodyArrayBuffer = w(u) : this._bodyText = u = Object.prototype.toString.call(u) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof u == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2416
2431
|
}, l.blob && (this.blob = function() {
|
|
2417
|
-
var u =
|
|
2432
|
+
var u = T(this);
|
|
2418
2433
|
if (u)
|
|
2419
2434
|
return u;
|
|
2420
2435
|
if (this._bodyBlob)
|
|
@@ -2426,7 +2441,7 @@ function Rn() {
|
|
|
2426
2441
|
return Promise.resolve(new Blob([this._bodyText]));
|
|
2427
2442
|
}), this.arrayBuffer = function() {
|
|
2428
2443
|
if (this._bodyArrayBuffer) {
|
|
2429
|
-
var u =
|
|
2444
|
+
var u = T(this);
|
|
2430
2445
|
return u || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(
|
|
2431
2446
|
this._bodyArrayBuffer.buffer.slice(
|
|
2432
2447
|
this._bodyArrayBuffer.byteOffset,
|
|
@@ -2435,15 +2450,15 @@ function Rn() {
|
|
|
2435
2450
|
) : Promise.resolve(this._bodyArrayBuffer));
|
|
2436
2451
|
} else {
|
|
2437
2452
|
if (l.blob)
|
|
2438
|
-
return this.blob().then(
|
|
2453
|
+
return this.blob().then(b);
|
|
2439
2454
|
throw new Error("could not read as ArrayBuffer");
|
|
2440
2455
|
}
|
|
2441
2456
|
}, this.text = function() {
|
|
2442
|
-
var u =
|
|
2457
|
+
var u = T(this);
|
|
2443
2458
|
if (u)
|
|
2444
2459
|
return u;
|
|
2445
2460
|
if (this._bodyBlob)
|
|
2446
|
-
return
|
|
2461
|
+
return S(this._bodyBlob);
|
|
2447
2462
|
if (this._bodyArrayBuffer)
|
|
2448
2463
|
return Promise.resolve(E(this._bodyArrayBuffer));
|
|
2449
2464
|
if (this._bodyFormData)
|
|
@@ -2456,7 +2471,7 @@ function Rn() {
|
|
|
2456
2471
|
}, this;
|
|
2457
2472
|
}
|
|
2458
2473
|
var k = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
2459
|
-
function
|
|
2474
|
+
function U(u) {
|
|
2460
2475
|
var v = u.toUpperCase();
|
|
2461
2476
|
return k.indexOf(v) > -1 ? v : u;
|
|
2462
2477
|
}
|
|
@@ -2468,10 +2483,10 @@ function Rn() {
|
|
|
2468
2483
|
if (u instanceof C) {
|
|
2469
2484
|
if (u.bodyUsed)
|
|
2470
2485
|
throw new TypeError("Already read");
|
|
2471
|
-
this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new
|
|
2486
|
+
this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new y(u.headers)), this.method = u.method, this.mode = u.mode, this.signal = u.signal, !P && u._bodyInit != null && (P = u._bodyInit, u.bodyUsed = !0);
|
|
2472
2487
|
} else
|
|
2473
2488
|
this.url = String(u);
|
|
2474
|
-
if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new
|
|
2489
|
+
if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new y(v.headers)), this.method = U(v.method || this.method || "GET"), this.mode = v.mode || this.mode || null, this.signal = v.signal || this.signal || function() {
|
|
2475
2490
|
if ("AbortController" in a) {
|
|
2476
2491
|
var O = new AbortController();
|
|
2477
2492
|
return O.signal;
|
|
@@ -2501,7 +2516,7 @@ function Rn() {
|
|
|
2501
2516
|
}), v;
|
|
2502
2517
|
}
|
|
2503
2518
|
function B(u) {
|
|
2504
|
-
var v = new
|
|
2519
|
+
var v = new y(), P = u.replace(/\r?\n[\t ]+/g, " ");
|
|
2505
2520
|
return P.split("\r").map(function(A) {
|
|
2506
2521
|
return A.indexOf(`
|
|
2507
2522
|
`) === 0 ? A.substr(1, A.length) : A;
|
|
@@ -2523,13 +2538,13 @@ function Rn() {
|
|
|
2523
2538
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2524
2539
|
if (v || (v = {}), this.type = "default", this.status = v.status === void 0 ? 200 : v.status, this.status < 200 || this.status > 599)
|
|
2525
2540
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2526
|
-
this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new
|
|
2541
|
+
this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new y(v.headers), this.url = v.url || "", this._initBody(u);
|
|
2527
2542
|
}
|
|
2528
2543
|
_.call(x.prototype), x.prototype.clone = function() {
|
|
2529
2544
|
return new x(this._bodyInit, {
|
|
2530
2545
|
status: this.status,
|
|
2531
2546
|
statusText: this.statusText,
|
|
2532
|
-
headers: new
|
|
2547
|
+
headers: new y(this.headers),
|
|
2533
2548
|
url: this.url
|
|
2534
2549
|
});
|
|
2535
2550
|
}, x.error = function() {
|
|
@@ -2590,10 +2605,10 @@ function Rn() {
|
|
|
2590
2605
|
return q;
|
|
2591
2606
|
}
|
|
2592
2607
|
}
|
|
2593
|
-
if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof
|
|
2608
|
+
if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof y || a.Headers && v.headers instanceof a.Headers)) {
|
|
2594
2609
|
var K = [];
|
|
2595
2610
|
Object.getOwnPropertyNames(v.headers).forEach(function(q) {
|
|
2596
|
-
K.push(
|
|
2611
|
+
K.push(m(q)), O.setRequestHeader(q, d(v.headers[q]));
|
|
2597
2612
|
}), L.headers.forEach(function(q, X) {
|
|
2598
2613
|
K.indexOf(X) === -1 && O.setRequestHeader(X, q);
|
|
2599
2614
|
});
|
|
@@ -2606,15 +2621,15 @@ function Rn() {
|
|
|
2606
2621
|
}), O.send(typeof L._bodyInit > "u" ? null : L._bodyInit);
|
|
2607
2622
|
});
|
|
2608
2623
|
}
|
|
2609
|
-
return F.polyfill = !0, a.fetch || (a.fetch = F, a.Headers =
|
|
2624
|
+
return F.polyfill = !0, a.fetch || (a.fetch = F, a.Headers = y, a.Request = C, a.Response = x), i.Headers = y, i.Request = C, i.Response = x, i.fetch = F, i;
|
|
2610
2625
|
})({});
|
|
2611
2626
|
})(s), s.fetch.ponyfill = !0, delete s.fetch.polyfill;
|
|
2612
2627
|
var n = t.fetch ? t : s;
|
|
2613
2628
|
e = n.fetch, e.default = n.fetch, e.fetch = n.fetch, e.Headers = n.Headers, e.Request = n.Request, e.Response = n.Response, r.exports = e;
|
|
2614
2629
|
}(_e, _e.exports)), _e.exports;
|
|
2615
2630
|
}
|
|
2616
|
-
var
|
|
2617
|
-
const
|
|
2631
|
+
var $n = Rn();
|
|
2632
|
+
const Un = /* @__PURE__ */ wt($n), We = "https://gcp-us-east1.api.carto.com", Ke = "v3", xn = "ps", de = {
|
|
2618
2633
|
get: "GET",
|
|
2619
2634
|
post: "POST"
|
|
2620
2635
|
};
|
|
@@ -2643,8 +2658,8 @@ function Vn() {
|
|
|
2643
2658
|
return !!f && typeof f == "object";
|
|
2644
2659
|
}
|
|
2645
2660
|
function t(f) {
|
|
2646
|
-
var
|
|
2647
|
-
return
|
|
2661
|
+
var b = Object.prototype.toString.call(f);
|
|
2662
|
+
return b === "[object RegExp]" || b === "[object Date]" || o(f);
|
|
2648
2663
|
}
|
|
2649
2664
|
var s = typeof Symbol == "function" && Symbol.for, n = s ? Symbol.for("react.element") : 60103;
|
|
2650
2665
|
function o(f) {
|
|
@@ -2653,58 +2668,58 @@ function Vn() {
|
|
|
2653
2668
|
function i(f) {
|
|
2654
2669
|
return Array.isArray(f) ? [] : {};
|
|
2655
2670
|
}
|
|
2656
|
-
function a(f,
|
|
2657
|
-
return
|
|
2671
|
+
function a(f, b) {
|
|
2672
|
+
return b.clone !== !1 && b.isMergeableObject(f) ? y(i(f), f, b) : f;
|
|
2658
2673
|
}
|
|
2659
|
-
function l(f,
|
|
2660
|
-
return f.concat(
|
|
2661
|
-
return a(E,
|
|
2674
|
+
function l(f, b, S) {
|
|
2675
|
+
return f.concat(b).map(function(E) {
|
|
2676
|
+
return a(E, S);
|
|
2662
2677
|
});
|
|
2663
2678
|
}
|
|
2664
|
-
function c(f,
|
|
2665
|
-
if (!
|
|
2666
|
-
var
|
|
2667
|
-
return typeof
|
|
2679
|
+
function c(f, b) {
|
|
2680
|
+
if (!b.customMerge) return y;
|
|
2681
|
+
var S = b.customMerge(f);
|
|
2682
|
+
return typeof S == "function" ? S : y;
|
|
2668
2683
|
}
|
|
2669
|
-
function
|
|
2670
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(
|
|
2671
|
-
return Object.propertyIsEnumerable.call(f,
|
|
2684
|
+
function g(f) {
|
|
2685
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(b) {
|
|
2686
|
+
return Object.propertyIsEnumerable.call(f, b);
|
|
2672
2687
|
}) : [];
|
|
2673
2688
|
}
|
|
2674
2689
|
function p(f) {
|
|
2675
|
-
return Object.keys(f).concat(
|
|
2690
|
+
return Object.keys(f).concat(g(f));
|
|
2676
2691
|
}
|
|
2677
|
-
function
|
|
2692
|
+
function m(f, b) {
|
|
2678
2693
|
try {
|
|
2679
|
-
return
|
|
2694
|
+
return b in f;
|
|
2680
2695
|
} catch {
|
|
2681
2696
|
return !1;
|
|
2682
2697
|
}
|
|
2683
2698
|
}
|
|
2684
|
-
function d(f,
|
|
2685
|
-
return
|
|
2699
|
+
function d(f, b) {
|
|
2700
|
+
return m(f, b) && !(Object.hasOwnProperty.call(f, b) && Object.propertyIsEnumerable.call(f, b));
|
|
2686
2701
|
}
|
|
2687
|
-
function
|
|
2702
|
+
function h(f, b, S) {
|
|
2688
2703
|
var E = {};
|
|
2689
|
-
return
|
|
2690
|
-
E[
|
|
2691
|
-
}), p(
|
|
2692
|
-
d(f,
|
|
2704
|
+
return S.isMergeableObject(f) && p(f).forEach(function(w) {
|
|
2705
|
+
E[w] = a(f[w], S);
|
|
2706
|
+
}), p(b).forEach(function(w) {
|
|
2707
|
+
d(f, w) || (m(f, w) && S.isMergeableObject(b[w]) ? E[w] = c(w, S)(f[w], b[w], S) : E[w] = a(b[w], S));
|
|
2693
2708
|
}), E;
|
|
2694
2709
|
}
|
|
2695
|
-
function
|
|
2696
|
-
|
|
2697
|
-
var E = Array.isArray(
|
|
2698
|
-
return _ ? E ?
|
|
2710
|
+
function y(f, b, S) {
|
|
2711
|
+
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
2712
|
+
var E = Array.isArray(b), w = Array.isArray(f), _ = E === w;
|
|
2713
|
+
return _ ? E ? S.arrayMerge(f, b, S) : h(f, b, S) : a(b, S);
|
|
2699
2714
|
}
|
|
2700
|
-
|
|
2715
|
+
y.all = function(f, b) {
|
|
2701
2716
|
if (!Array.isArray(f)) throw new Error("first argument should be an array");
|
|
2702
|
-
return f.reduce(function(
|
|
2703
|
-
return
|
|
2717
|
+
return f.reduce(function(S, E) {
|
|
2718
|
+
return y(S, E, b);
|
|
2704
2719
|
}, {});
|
|
2705
2720
|
};
|
|
2706
|
-
var
|
|
2707
|
-
return qe =
|
|
2721
|
+
var T = y;
|
|
2722
|
+
return qe = T, qe;
|
|
2708
2723
|
}
|
|
2709
2724
|
var In = Vn();
|
|
2710
2725
|
const Ze = /* @__PURE__ */ qn(In);
|
|
@@ -2768,19 +2783,19 @@ async function At({
|
|
|
2768
2783
|
let c = jn({
|
|
2769
2784
|
url: i,
|
|
2770
2785
|
params: o
|
|
2771
|
-
}),
|
|
2772
|
-
n === de.get && c.length > a && (
|
|
2773
|
-
const
|
|
2774
|
-
body:
|
|
2786
|
+
}), g = e, p = n;
|
|
2787
|
+
n === de.get && c.length > a && (g = o, p = de.post, c = i);
|
|
2788
|
+
const m = Hn({
|
|
2789
|
+
body: g,
|
|
2775
2790
|
accessToken: t ?? (s == null ? void 0 : s.accessToken),
|
|
2776
2791
|
method: p,
|
|
2777
2792
|
...l
|
|
2778
2793
|
});
|
|
2779
|
-
r && (
|
|
2780
|
-
const d = await
|
|
2794
|
+
r && (m.signal = r);
|
|
2795
|
+
const d = await Un(c, m);
|
|
2781
2796
|
if (!d.ok) {
|
|
2782
|
-
const
|
|
2783
|
-
return Promise.reject(new Error(
|
|
2797
|
+
const h = await d.text();
|
|
2798
|
+
return Promise.reject(new Error(h));
|
|
2784
2799
|
}
|
|
2785
2800
|
return d.status === 204 ? Promise.resolve() : await d.json();
|
|
2786
2801
|
}
|
|
@@ -2800,17 +2815,17 @@ const Pe = mt()(hs((r) => ({
|
|
|
2800
2815
|
apiBaseUrl: a = We,
|
|
2801
2816
|
clientId: l = xn,
|
|
2802
2817
|
apiVersion: c = Ke,
|
|
2803
|
-
...
|
|
2818
|
+
...g
|
|
2804
2819
|
} = t, p = {
|
|
2805
2820
|
...i,
|
|
2806
|
-
...
|
|
2821
|
+
...g,
|
|
2807
2822
|
apiBaseUrl: a,
|
|
2808
2823
|
apiVersion: c,
|
|
2809
2824
|
clientId: l
|
|
2810
|
-
},
|
|
2825
|
+
}, m = Wn({
|
|
2811
2826
|
source: p
|
|
2812
2827
|
});
|
|
2813
|
-
return p.widgets =
|
|
2828
|
+
return p.widgets = m, n[e] = p, {
|
|
2814
2829
|
sources: n
|
|
2815
2830
|
};
|
|
2816
2831
|
}, void 0, "setSource"),
|
|
@@ -2868,7 +2883,7 @@ function Qn(r) {
|
|
|
2868
2883
|
let t;
|
|
2869
2884
|
return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1], Pe(t);
|
|
2870
2885
|
}
|
|
2871
|
-
function
|
|
2886
|
+
function Kr(r) {
|
|
2872
2887
|
const e = D(9);
|
|
2873
2888
|
let t;
|
|
2874
2889
|
e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
|
|
@@ -2892,7 +2907,7 @@ function Wr(r) {
|
|
|
2892
2907
|
}
|
|
2893
2908
|
return i;
|
|
2894
2909
|
}
|
|
2895
|
-
function
|
|
2910
|
+
function Zr(r, {
|
|
2896
2911
|
column: e,
|
|
2897
2912
|
type: t
|
|
2898
2913
|
}) {
|
|
@@ -2988,30 +3003,30 @@ function Zn(r) {
|
|
|
2988
3003
|
enabled: l,
|
|
2989
3004
|
...c
|
|
2990
3005
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
2991
|
-
const
|
|
3006
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
2992
3007
|
let d;
|
|
2993
3008
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["categories", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
2994
|
-
let
|
|
2995
|
-
e[10] !== p || e[11] !==
|
|
3009
|
+
let h;
|
|
3010
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
2996
3011
|
const {
|
|
2997
|
-
signal:
|
|
3012
|
+
signal: b
|
|
2998
3013
|
} = f;
|
|
2999
|
-
return
|
|
3014
|
+
return m == null ? void 0 : m.getCategories({
|
|
3000
3015
|
...n,
|
|
3001
3016
|
filters: p,
|
|
3002
|
-
signal:
|
|
3017
|
+
signal: b
|
|
3003
3018
|
});
|
|
3004
|
-
}, e[10] = p, e[11] =
|
|
3005
|
-
const
|
|
3006
|
-
let
|
|
3007
|
-
return e[14] !== d || e[15] !==
|
|
3019
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3020
|
+
const y = !!m && g;
|
|
3021
|
+
let T;
|
|
3022
|
+
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
3008
3023
|
queryKey: d,
|
|
3009
|
-
queryFn:
|
|
3010
|
-
enabled:
|
|
3024
|
+
queryFn: h,
|
|
3025
|
+
enabled: y,
|
|
3011
3026
|
...c
|
|
3012
|
-
}, e[14] = d, e[15] =
|
|
3027
|
+
}, e[14] = d, e[15] = h, e[16] = y, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3013
3028
|
}
|
|
3014
|
-
function
|
|
3029
|
+
function Yr(r) {
|
|
3015
3030
|
const e = D(6);
|
|
3016
3031
|
let t, s;
|
|
3017
3032
|
e[0] !== r ? ({
|
|
@@ -3037,30 +3052,30 @@ function Yn(r) {
|
|
|
3037
3052
|
enabled: l,
|
|
3038
3053
|
...c
|
|
3039
3054
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3040
|
-
const
|
|
3055
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3041
3056
|
let d;
|
|
3042
3057
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["features", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3043
|
-
let
|
|
3044
|
-
e[10] !== p || e[11] !==
|
|
3058
|
+
let h;
|
|
3059
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
3045
3060
|
const {
|
|
3046
|
-
signal:
|
|
3061
|
+
signal: b
|
|
3047
3062
|
} = f;
|
|
3048
|
-
return
|
|
3063
|
+
return m == null ? void 0 : m.getFeatures({
|
|
3049
3064
|
...n,
|
|
3050
3065
|
filters: p,
|
|
3051
|
-
signal:
|
|
3066
|
+
signal: b
|
|
3052
3067
|
});
|
|
3053
|
-
}, e[10] = p, e[11] =
|
|
3054
|
-
const
|
|
3055
|
-
let
|
|
3056
|
-
return e[14] !== d || e[15] !==
|
|
3068
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3069
|
+
const y = !!m && g;
|
|
3070
|
+
let T;
|
|
3071
|
+
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
3057
3072
|
queryKey: d,
|
|
3058
|
-
queryFn:
|
|
3059
|
-
enabled:
|
|
3073
|
+
queryFn: h,
|
|
3074
|
+
enabled: y,
|
|
3060
3075
|
...c
|
|
3061
|
-
}, e[14] = d, e[15] =
|
|
3076
|
+
}, e[14] = d, e[15] = h, e[16] = y, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3062
3077
|
}
|
|
3063
|
-
function
|
|
3078
|
+
function Xr(r) {
|
|
3064
3079
|
const e = D(6);
|
|
3065
3080
|
let t, s;
|
|
3066
3081
|
e[0] !== r ? ({
|
|
@@ -3086,30 +3101,30 @@ function Xn(r) {
|
|
|
3086
3101
|
enabled: l,
|
|
3087
3102
|
...c
|
|
3088
3103
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3089
|
-
const
|
|
3104
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3090
3105
|
let d;
|
|
3091
3106
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["formula", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3092
|
-
let
|
|
3093
|
-
e[10] !== p || e[11] !==
|
|
3107
|
+
let h;
|
|
3108
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
3094
3109
|
const {
|
|
3095
|
-
signal:
|
|
3110
|
+
signal: b
|
|
3096
3111
|
} = f;
|
|
3097
|
-
return
|
|
3112
|
+
return m == null ? void 0 : m.getFormula({
|
|
3098
3113
|
...n,
|
|
3099
3114
|
filters: p,
|
|
3100
|
-
signal:
|
|
3115
|
+
signal: b
|
|
3101
3116
|
});
|
|
3102
|
-
}, e[10] = p, e[11] =
|
|
3103
|
-
const
|
|
3104
|
-
let
|
|
3105
|
-
return e[14] !== d || e[15] !==
|
|
3117
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3118
|
+
const y = !!m && g;
|
|
3119
|
+
let T;
|
|
3120
|
+
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
3106
3121
|
queryKey: d,
|
|
3107
|
-
queryFn:
|
|
3108
|
-
enabled:
|
|
3122
|
+
queryFn: h,
|
|
3123
|
+
enabled: y,
|
|
3109
3124
|
...c
|
|
3110
|
-
}, e[14] = d, e[15] =
|
|
3125
|
+
}, e[14] = d, e[15] = h, e[16] = y, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3111
3126
|
}
|
|
3112
|
-
function
|
|
3127
|
+
function Jr(r) {
|
|
3113
3128
|
const e = D(6);
|
|
3114
3129
|
let t, s;
|
|
3115
3130
|
e[0] !== r ? ({
|
|
@@ -3135,30 +3150,30 @@ function Jn(r) {
|
|
|
3135
3150
|
enabled: l,
|
|
3136
3151
|
...c
|
|
3137
3152
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3138
|
-
const
|
|
3153
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3139
3154
|
let d;
|
|
3140
3155
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["histogram", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3141
|
-
let
|
|
3142
|
-
e[10] !== p || e[11] !==
|
|
3156
|
+
let h;
|
|
3157
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
3143
3158
|
const {
|
|
3144
|
-
signal:
|
|
3159
|
+
signal: b
|
|
3145
3160
|
} = f;
|
|
3146
|
-
return
|
|
3161
|
+
return m == null ? void 0 : m.getHistogram({
|
|
3147
3162
|
...n,
|
|
3148
3163
|
filters: p,
|
|
3149
|
-
signal:
|
|
3164
|
+
signal: b
|
|
3150
3165
|
});
|
|
3151
|
-
}, e[10] = p, e[11] =
|
|
3152
|
-
const
|
|
3153
|
-
let
|
|
3154
|
-
return e[14] !== d || e[15] !==
|
|
3166
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3167
|
+
const y = !!m && g;
|
|
3168
|
+
let T;
|
|
3169
|
+
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
3155
3170
|
queryKey: d,
|
|
3156
|
-
queryFn:
|
|
3157
|
-
enabled:
|
|
3171
|
+
queryFn: h,
|
|
3172
|
+
enabled: y,
|
|
3158
3173
|
...c
|
|
3159
|
-
}, e[14] = d, e[15] =
|
|
3174
|
+
}, e[14] = d, e[15] = h, e[16] = y, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3160
3175
|
}
|
|
3161
|
-
function
|
|
3176
|
+
function eo(r) {
|
|
3162
3177
|
const e = D(6);
|
|
3163
3178
|
let t, s;
|
|
3164
3179
|
e[0] !== r ? ({
|
|
@@ -3184,30 +3199,30 @@ function er(r) {
|
|
|
3184
3199
|
enabled: l,
|
|
3185
3200
|
...c
|
|
3186
3201
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3187
|
-
const
|
|
3202
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3188
3203
|
let d;
|
|
3189
3204
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["range", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3190
|
-
let
|
|
3191
|
-
e[10] !== p || e[11] !==
|
|
3205
|
+
let h;
|
|
3206
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
3192
3207
|
const {
|
|
3193
|
-
signal:
|
|
3208
|
+
signal: b
|
|
3194
3209
|
} = f;
|
|
3195
|
-
return
|
|
3210
|
+
return m == null ? void 0 : m.getRange({
|
|
3196
3211
|
...n,
|
|
3197
3212
|
filters: p,
|
|
3198
|
-
signal:
|
|
3213
|
+
signal: b
|
|
3199
3214
|
});
|
|
3200
|
-
}, e[10] = p, e[11] =
|
|
3201
|
-
const
|
|
3202
|
-
let
|
|
3203
|
-
return e[14] !== d || e[15] !==
|
|
3215
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3216
|
+
const y = !!m && g;
|
|
3217
|
+
let T;
|
|
3218
|
+
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
3204
3219
|
queryKey: d,
|
|
3205
|
-
queryFn:
|
|
3206
|
-
enabled:
|
|
3220
|
+
queryFn: h,
|
|
3221
|
+
enabled: y,
|
|
3207
3222
|
...c
|
|
3208
|
-
}, e[14] = d, e[15] =
|
|
3223
|
+
}, e[14] = d, e[15] = h, e[16] = y, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3209
3224
|
}
|
|
3210
|
-
function
|
|
3225
|
+
function to(r) {
|
|
3211
3226
|
const e = D(6);
|
|
3212
3227
|
let t, s;
|
|
3213
3228
|
e[0] !== r ? ({
|
|
@@ -3233,30 +3248,30 @@ function tr(r) {
|
|
|
3233
3248
|
enabled: l,
|
|
3234
3249
|
...c
|
|
3235
3250
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3236
|
-
const
|
|
3251
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3237
3252
|
let d;
|
|
3238
3253
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["scatter", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3239
|
-
let
|
|
3240
|
-
e[10] !== p || e[11] !==
|
|
3254
|
+
let h;
|
|
3255
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
3241
3256
|
const {
|
|
3242
|
-
signal:
|
|
3257
|
+
signal: b
|
|
3243
3258
|
} = f;
|
|
3244
|
-
return
|
|
3259
|
+
return m == null ? void 0 : m.getScatter({
|
|
3245
3260
|
...n,
|
|
3246
3261
|
filters: p,
|
|
3247
|
-
signal:
|
|
3262
|
+
signal: b
|
|
3248
3263
|
});
|
|
3249
|
-
}, e[10] = p, e[11] =
|
|
3250
|
-
const
|
|
3251
|
-
let
|
|
3252
|
-
return e[14] !== d || e[15] !==
|
|
3264
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3265
|
+
const y = !!m && g;
|
|
3266
|
+
let T;
|
|
3267
|
+
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
3253
3268
|
queryKey: d,
|
|
3254
|
-
queryFn:
|
|
3255
|
-
enabled:
|
|
3269
|
+
queryFn: h,
|
|
3270
|
+
enabled: y,
|
|
3256
3271
|
...c
|
|
3257
|
-
}, e[14] = d, e[15] =
|
|
3272
|
+
}, e[14] = d, e[15] = h, e[16] = y, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3258
3273
|
}
|
|
3259
|
-
function
|
|
3274
|
+
function so(r) {
|
|
3260
3275
|
const e = D(6);
|
|
3261
3276
|
let t, s;
|
|
3262
3277
|
e[0] !== r ? ({
|
|
@@ -3282,30 +3297,30 @@ function sr(r) {
|
|
|
3282
3297
|
enabled: l,
|
|
3283
3298
|
...c
|
|
3284
3299
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3285
|
-
const
|
|
3300
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3286
3301
|
let d;
|
|
3287
3302
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["table", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3288
|
-
let
|
|
3289
|
-
e[10] !== p || e[11] !==
|
|
3303
|
+
let h;
|
|
3304
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
3290
3305
|
const {
|
|
3291
|
-
signal:
|
|
3306
|
+
signal: b
|
|
3292
3307
|
} = f;
|
|
3293
|
-
return
|
|
3308
|
+
return m == null ? void 0 : m.getTable({
|
|
3294
3309
|
...n,
|
|
3295
3310
|
filters: p,
|
|
3296
|
-
signal:
|
|
3311
|
+
signal: b
|
|
3297
3312
|
});
|
|
3298
|
-
}, e[10] = p, e[11] =
|
|
3299
|
-
const
|
|
3300
|
-
let
|
|
3301
|
-
return e[14] !== d || e[15] !==
|
|
3313
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3314
|
+
const y = !!m && g;
|
|
3315
|
+
let T;
|
|
3316
|
+
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
3302
3317
|
queryKey: d,
|
|
3303
|
-
queryFn:
|
|
3304
|
-
enabled:
|
|
3318
|
+
queryFn: h,
|
|
3319
|
+
enabled: y,
|
|
3305
3320
|
...c
|
|
3306
|
-
}, e[14] = d, e[15] =
|
|
3321
|
+
}, e[14] = d, e[15] = h, e[16] = y, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3307
3322
|
}
|
|
3308
|
-
function
|
|
3323
|
+
function no(r) {
|
|
3309
3324
|
const e = D(6);
|
|
3310
3325
|
let t, s;
|
|
3311
3326
|
e[0] !== r ? ({
|
|
@@ -3331,30 +3346,30 @@ function nr(r) {
|
|
|
3331
3346
|
enabled: l,
|
|
3332
3347
|
...c
|
|
3333
3348
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3334
|
-
const
|
|
3349
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3335
3350
|
let d;
|
|
3336
3351
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["timeSeries", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3337
|
-
let
|
|
3338
|
-
e[10] !== p || e[11] !==
|
|
3352
|
+
let h;
|
|
3353
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
3339
3354
|
const {
|
|
3340
|
-
signal:
|
|
3355
|
+
signal: b
|
|
3341
3356
|
} = f;
|
|
3342
|
-
return
|
|
3357
|
+
return m == null ? void 0 : m.getTimeSeries({
|
|
3343
3358
|
...n,
|
|
3344
3359
|
filters: p,
|
|
3345
|
-
signal:
|
|
3360
|
+
signal: b
|
|
3346
3361
|
});
|
|
3347
|
-
}, e[10] = p, e[11] =
|
|
3348
|
-
const
|
|
3349
|
-
let
|
|
3350
|
-
return e[14] !== d || e[15] !==
|
|
3362
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3363
|
+
const y = !!m && g;
|
|
3364
|
+
let T;
|
|
3365
|
+
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
3351
3366
|
queryKey: d,
|
|
3352
|
-
queryFn:
|
|
3353
|
-
enabled:
|
|
3367
|
+
queryFn: h,
|
|
3368
|
+
enabled: y,
|
|
3354
3369
|
...c
|
|
3355
|
-
}, e[14] = d, e[15] =
|
|
3370
|
+
}, e[14] = d, e[15] = h, e[16] = y, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3356
3371
|
}
|
|
3357
|
-
function
|
|
3372
|
+
function ro(r) {
|
|
3358
3373
|
const e = D(6);
|
|
3359
3374
|
let t, s;
|
|
3360
3375
|
e[0] !== r ? ({
|
|
@@ -3365,8 +3380,8 @@ function no(r) {
|
|
|
3365
3380
|
let o;
|
|
3366
3381
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3367
3382
|
}
|
|
3368
|
-
const
|
|
3369
|
-
function
|
|
3383
|
+
const oo = "ps";
|
|
3384
|
+
function io(r) {
|
|
3370
3385
|
const e = D(13), {
|
|
3371
3386
|
children: t,
|
|
3372
3387
|
maps: s,
|
|
@@ -3379,41 +3394,41 @@ function oo(r) {
|
|
|
3379
3394
|
let l;
|
|
3380
3395
|
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
3381
3396
|
const c = l;
|
|
3382
|
-
let
|
|
3383
|
-
e[4] !== t || e[5] !== c ? (
|
|
3397
|
+
let g;
|
|
3398
|
+
e[4] !== t || e[5] !== c ? (g = /* @__PURE__ */ N(fn, { values: c, children: t }), e[4] = t, e[5] = c, e[6] = g) : g = e[6];
|
|
3384
3399
|
let p;
|
|
3385
|
-
e[7] !== a || e[8] !==
|
|
3386
|
-
let
|
|
3387
|
-
return e[10] !== s || e[11] !== p ? (
|
|
3400
|
+
e[7] !== a || e[8] !== g ? (p = /* @__PURE__ */ N(Ws, { values: a, children: g }), e[7] = a, e[8] = g, e[9] = p) : p = e[9];
|
|
3401
|
+
let m;
|
|
3402
|
+
return e[10] !== s || e[11] !== p ? (m = /* @__PURE__ */ N(Bs, { values: s, children: p }), e[10] = s, e[11] = p, e[12] = m) : m = e[12], m;
|
|
3388
3403
|
}
|
|
3389
|
-
function
|
|
3404
|
+
function ao(r, e) {
|
|
3390
3405
|
const t = pe((c) => c.layers), s = pe((c) => c.setLayer), n = re(() => kt(r.map((c) => t[c]).filter((c) => !!(c != null && c.legend))).toReversed(), [t, r]), o = re(() => n.map(e), [e, n]), i = Q(({
|
|
3391
3406
|
id: c,
|
|
3392
|
-
visible:
|
|
3407
|
+
visible: g,
|
|
3393
3408
|
...p
|
|
3394
3409
|
}) => {
|
|
3395
3410
|
s(c, {
|
|
3396
3411
|
props: {
|
|
3397
|
-
visible:
|
|
3412
|
+
visible: g
|
|
3398
3413
|
},
|
|
3399
3414
|
legend: p
|
|
3400
3415
|
});
|
|
3401
3416
|
}, [s]), a = Q(({
|
|
3402
3417
|
id: c,
|
|
3403
|
-
collapsed:
|
|
3418
|
+
collapsed: g
|
|
3404
3419
|
}) => {
|
|
3405
3420
|
s(c, {
|
|
3406
3421
|
legend: {
|
|
3407
|
-
collapsed:
|
|
3422
|
+
collapsed: g
|
|
3408
3423
|
}
|
|
3409
3424
|
});
|
|
3410
3425
|
}, [s]), l = Q(({
|
|
3411
3426
|
id: c,
|
|
3412
|
-
opacity:
|
|
3427
|
+
opacity: g
|
|
3413
3428
|
}) => {
|
|
3414
3429
|
s(c, {
|
|
3415
3430
|
props: {
|
|
3416
|
-
opacity:
|
|
3431
|
+
opacity: g
|
|
3417
3432
|
}
|
|
3418
3433
|
});
|
|
3419
3434
|
}, [s]);
|
|
@@ -3424,53 +3439,53 @@ function io(r, e) {
|
|
|
3424
3439
|
onChangeRowCollapse: a
|
|
3425
3440
|
};
|
|
3426
3441
|
}
|
|
3427
|
-
function
|
|
3442
|
+
function lo({
|
|
3428
3443
|
mapId: r
|
|
3429
3444
|
}) {
|
|
3430
|
-
const [e, t] = oe(void 0), [s, n] = oe(!1), o =
|
|
3431
|
-
var
|
|
3432
|
-
return (
|
|
3433
|
-
}), i =
|
|
3434
|
-
var
|
|
3435
|
-
return (
|
|
3445
|
+
const [e, t] = oe(void 0), [s, n] = oe(!1), o = $((y) => {
|
|
3446
|
+
var T;
|
|
3447
|
+
return (T = y.maps[r]) == null ? void 0 : T.basemap;
|
|
3448
|
+
}), i = $((y) => y.getDeckInstance), a = $((y) => y.getOverlayInstance), l = $((y) => y.areLayersLoaded[r]), g = $((y) => {
|
|
3449
|
+
var T;
|
|
3450
|
+
return (T = y.maps[r]) == null ? void 0 : T.isLoaded;
|
|
3436
3451
|
}) && l, {
|
|
3437
3452
|
type: p
|
|
3438
|
-
} = ye[o],
|
|
3439
|
-
const
|
|
3453
|
+
} = ye[o], m = p === te.googleMaps, d = Q(async () => {
|
|
3454
|
+
const y = i(r), T = a(r);
|
|
3440
3455
|
try {
|
|
3441
3456
|
const f = document.createElement("canvas");
|
|
3442
|
-
f.width =
|
|
3443
|
-
const
|
|
3444
|
-
if (
|
|
3445
|
-
const E =
|
|
3457
|
+
f.width = y.width ?? 0, f.height = y.height ?? 0;
|
|
3458
|
+
const b = f.getContext("2d");
|
|
3459
|
+
if (m) {
|
|
3460
|
+
const E = T;
|
|
3446
3461
|
if (E.getRenderingType() !== "RASTER")
|
|
3447
3462
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3448
|
-
const
|
|
3463
|
+
const w = await gs(E.getDiv(), {
|
|
3449
3464
|
useCORS: !0
|
|
3450
3465
|
});
|
|
3451
|
-
|
|
3466
|
+
b == null || b.drawImage(w, 0, 0, y.width, y.height);
|
|
3452
3467
|
} else {
|
|
3453
|
-
const E =
|
|
3454
|
-
E.redraw(),
|
|
3468
|
+
const E = T;
|
|
3469
|
+
E.redraw(), b == null || b.drawImage(E.getMap().getCanvas(), 0, 0, y.width, y.height);
|
|
3455
3470
|
}
|
|
3456
|
-
|
|
3457
|
-
const
|
|
3458
|
-
t(
|
|
3471
|
+
y == null || y.redraw("screenshot"), b == null || b.drawImage(y.getCanvas(), 0, 0, y.width, y.height);
|
|
3472
|
+
const S = f.toDataURL();
|
|
3473
|
+
t(S);
|
|
3459
3474
|
} catch (f) {
|
|
3460
3475
|
console.error(f);
|
|
3461
3476
|
} finally {
|
|
3462
3477
|
n(!1);
|
|
3463
3478
|
}
|
|
3464
|
-
}, [i,
|
|
3479
|
+
}, [i, m, r, a]);
|
|
3465
3480
|
return {
|
|
3466
3481
|
takeScreenshot: Q(() => {
|
|
3467
|
-
n(!0),
|
|
3468
|
-
}, [d,
|
|
3482
|
+
n(!0), g && d();
|
|
3483
|
+
}, [d, g]),
|
|
3469
3484
|
isLoading: s,
|
|
3470
3485
|
screenshot: e
|
|
3471
3486
|
};
|
|
3472
3487
|
}
|
|
3473
|
-
function
|
|
3488
|
+
function co(r) {
|
|
3474
3489
|
const e = D(11), {
|
|
3475
3490
|
mapId: t
|
|
3476
3491
|
} = r;
|
|
@@ -3489,13 +3504,13 @@ function lo(r) {
|
|
|
3489
3504
|
mapId: t
|
|
3490
3505
|
}, e[4] = t, e[5] = a) : a = e[5];
|
|
3491
3506
|
const l = lr(a), c = i ?? l ?? n;
|
|
3492
|
-
let
|
|
3493
|
-
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !== n ? (
|
|
3507
|
+
let g;
|
|
3508
|
+
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !== n ? (g = {
|
|
3494
3509
|
spatialFilter: c,
|
|
3495
3510
|
staticSpatialFilter: l,
|
|
3496
3511
|
lassoToolsSpatialFilter: i,
|
|
3497
3512
|
viewportSpatialFilter: n
|
|
3498
|
-
}, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] =
|
|
3513
|
+
}, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] = g) : g = e[10], g;
|
|
3499
3514
|
}
|
|
3500
3515
|
function rr(r) {
|
|
3501
3516
|
const e = D(4), {
|
|
@@ -3503,7 +3518,7 @@ function rr(r) {
|
|
|
3503
3518
|
} = r;
|
|
3504
3519
|
let s;
|
|
3505
3520
|
e[0] !== t ? (s = (i) => i.viewports[t], e[0] = t, e[1] = s) : s = e[1];
|
|
3506
|
-
const n =
|
|
3521
|
+
const n = $(s);
|
|
3507
3522
|
let o;
|
|
3508
3523
|
e: {
|
|
3509
3524
|
if (!n) {
|
|
@@ -3555,7 +3570,7 @@ function lr(r) {
|
|
|
3555
3570
|
} = r;
|
|
3556
3571
|
let s;
|
|
3557
3572
|
e[0] !== t ? (s = (i) => i.spatialFilter[t], e[0] = t, e[1] = s) : s = e[1];
|
|
3558
|
-
const n =
|
|
3573
|
+
const n = $(s);
|
|
3559
3574
|
let o;
|
|
3560
3575
|
e: {
|
|
3561
3576
|
if (!n || !Object.keys(n).length) {
|
|
@@ -3596,7 +3611,7 @@ const le = {
|
|
|
3596
3611
|
format: (r) => r.toLocaleString()
|
|
3597
3612
|
}
|
|
3598
3613
|
};
|
|
3599
|
-
function
|
|
3614
|
+
function uo({
|
|
3600
3615
|
properties: r,
|
|
3601
3616
|
formatters: e = {},
|
|
3602
3617
|
includeColumns: t = Object.keys(r),
|
|
@@ -3608,11 +3623,11 @@ function co({
|
|
|
3608
3623
|
getTitle: l = dr,
|
|
3609
3624
|
getValue: c = pr
|
|
3610
3625
|
}) {
|
|
3611
|
-
const
|
|
3612
|
-
const
|
|
3613
|
-
return d + a(
|
|
3626
|
+
const g = o ? l(o) : "", m = t.reduce((d, h) => {
|
|
3627
|
+
const y = e[h], T = r[h], f = c(T, s, y), b = n ? i(h) : "";
|
|
3628
|
+
return d + a(b, f);
|
|
3614
3629
|
}, "");
|
|
3615
|
-
return
|
|
3630
|
+
return g + m;
|
|
3616
3631
|
}
|
|
3617
3632
|
function dr(r) {
|
|
3618
3633
|
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
@@ -3633,7 +3648,7 @@ function mr(r) {
|
|
|
3633
3648
|
function yr(r) {
|
|
3634
3649
|
return `<strong>${r}</strong>: `;
|
|
3635
3650
|
}
|
|
3636
|
-
function
|
|
3651
|
+
function fo(r) {
|
|
3637
3652
|
var e, t, s, n, o, i, a, l;
|
|
3638
3653
|
return {
|
|
3639
3654
|
collapsed: (e = r.legend) == null ? void 0 : e.collapsed,
|
|
@@ -3650,44 +3665,51 @@ function uo(r) {
|
|
|
3650
3665
|
visible: r.props.visible ?? !0
|
|
3651
3666
|
};
|
|
3652
3667
|
}
|
|
3653
|
-
function
|
|
3654
|
-
const e = D(
|
|
3668
|
+
function po(r) {
|
|
3669
|
+
const e = D(22), {
|
|
3655
3670
|
children: t,
|
|
3656
3671
|
mapId: s
|
|
3657
3672
|
} = r;
|
|
3658
3673
|
let n;
|
|
3659
|
-
e[0] !== s ? (n = (
|
|
3674
|
+
e[0] !== s ? (n = (w) => w.viewStates[s], e[0] = s, e[1] = n) : n = e[1];
|
|
3660
3675
|
const {
|
|
3661
3676
|
zoom: o,
|
|
3662
3677
|
maxZoom: i,
|
|
3663
3678
|
minZoom: a
|
|
3664
|
-
} =
|
|
3679
|
+
} = $(n);
|
|
3665
3680
|
let l;
|
|
3666
|
-
e[2] !== s ? (l = (
|
|
3667
|
-
const c =
|
|
3668
|
-
let
|
|
3669
|
-
e[4] !== s || e[5] !==
|
|
3670
|
-
const
|
|
3671
|
-
let
|
|
3672
|
-
e[7] !== p || e[8] !== s ? (
|
|
3673
|
-
const
|
|
3674
|
-
let
|
|
3675
|
-
|
|
3681
|
+
e[2] !== s ? (l = (w) => w.areLayersLoaded[s], e[2] = s, e[3] = l) : l = e[3];
|
|
3682
|
+
const c = $(l), g = $(br), p = $(gr), m = $(hr), d = !c;
|
|
3683
|
+
let h;
|
|
3684
|
+
e[4] !== s || e[5] !== g ? (h = (w) => g(s, w), e[4] = s, e[5] = g, e[6] = h) : h = e[6];
|
|
3685
|
+
const y = h;
|
|
3686
|
+
let T;
|
|
3687
|
+
e[7] !== p || e[8] !== s ? (T = (w) => p(s, w), e[7] = p, e[8] = s, e[9] = T) : T = e[9];
|
|
3688
|
+
const f = T;
|
|
3689
|
+
let b;
|
|
3690
|
+
e[10] !== s || e[11] !== m ? (b = () => m(s), e[10] = s, e[11] = m, e[12] = b) : b = e[12];
|
|
3691
|
+
const S = b;
|
|
3692
|
+
let E;
|
|
3693
|
+
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== d || e[17] !== y || e[18] !== f || e[19] !== S || e[20] !== o ? (E = t({
|
|
3676
3694
|
zoom: o,
|
|
3677
3695
|
maxZoom: i,
|
|
3678
3696
|
minZoom: a,
|
|
3679
|
-
isLoading:
|
|
3680
|
-
setZoom:
|
|
3681
|
-
flyTo:
|
|
3682
|
-
|
|
3697
|
+
isLoading: d,
|
|
3698
|
+
setZoom: y,
|
|
3699
|
+
flyTo: f,
|
|
3700
|
+
resetViewState: S
|
|
3701
|
+
}), e[13] = t, e[14] = i, e[15] = a, e[16] = d, e[17] = y, e[18] = f, e[19] = S, e[20] = o, e[21] = E) : E = e[21], E;
|
|
3683
3702
|
}
|
|
3684
3703
|
function hr(r) {
|
|
3685
|
-
return r.
|
|
3704
|
+
return r.resetViewState;
|
|
3686
3705
|
}
|
|
3687
3706
|
function gr(r) {
|
|
3707
|
+
return r.flyTo;
|
|
3708
|
+
}
|
|
3709
|
+
function br(r) {
|
|
3688
3710
|
return r.setZoom;
|
|
3689
3711
|
}
|
|
3690
|
-
async function
|
|
3712
|
+
async function vr({
|
|
3691
3713
|
baseUrl: r = We,
|
|
3692
3714
|
connection: e,
|
|
3693
3715
|
accessToken: t,
|
|
@@ -3701,11 +3723,11 @@ async function br({
|
|
|
3701
3723
|
params: l,
|
|
3702
3724
|
apiVersion: c = Ke
|
|
3703
3725
|
}) {
|
|
3704
|
-
const
|
|
3726
|
+
const g = `${r}/${c}/stats/${e}/${n}`;
|
|
3705
3727
|
return At({
|
|
3706
3728
|
accessToken: t,
|
|
3707
3729
|
signal: o,
|
|
3708
|
-
url:
|
|
3730
|
+
url: g,
|
|
3709
3731
|
method: de.get,
|
|
3710
3732
|
params: {
|
|
3711
3733
|
q: s,
|
|
@@ -3715,7 +3737,7 @@ async function br({
|
|
|
3715
3737
|
...i
|
|
3716
3738
|
});
|
|
3717
3739
|
}
|
|
3718
|
-
async function
|
|
3740
|
+
async function Sr({
|
|
3719
3741
|
baseUrl: r = We,
|
|
3720
3742
|
connection: e,
|
|
3721
3743
|
accessToken: t,
|
|
@@ -3740,7 +3762,7 @@ async function vr({
|
|
|
3740
3762
|
...a
|
|
3741
3763
|
});
|
|
3742
3764
|
}
|
|
3743
|
-
function
|
|
3765
|
+
function mo(r) {
|
|
3744
3766
|
const e = D(20), {
|
|
3745
3767
|
source: t,
|
|
3746
3768
|
attribute: s,
|
|
@@ -3751,37 +3773,37 @@ function po(r) {
|
|
|
3751
3773
|
} = r;
|
|
3752
3774
|
let l;
|
|
3753
3775
|
e[0] !== a ? (l = a === void 0 ? {} : a, e[0] = a, e[1] = l) : l = e[1];
|
|
3754
|
-
let c,
|
|
3776
|
+
let c, g;
|
|
3755
3777
|
e[2] !== l ? ({
|
|
3756
3778
|
enabled: c,
|
|
3757
|
-
...
|
|
3758
|
-
} = l, e[2] = l, e[3] = c, e[4] =
|
|
3779
|
+
...g
|
|
3780
|
+
} = l, e[2] = l, e[3] = c, e[4] = g) : (c = e[3], g = e[4]);
|
|
3759
3781
|
const p = c === void 0 ? !0 : c;
|
|
3760
|
-
let
|
|
3761
|
-
e[5] !== s || e[6] !== t ? (
|
|
3782
|
+
let m;
|
|
3783
|
+
e[5] !== s || e[6] !== t ? (m = [t, s], e[5] = s, e[6] = t, e[7] = m) : m = e[7];
|
|
3762
3784
|
let d;
|
|
3763
|
-
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (d = () =>
|
|
3785
|
+
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (d = () => wr({
|
|
3764
3786
|
source: t,
|
|
3765
3787
|
params: o,
|
|
3766
3788
|
attribute: s,
|
|
3767
3789
|
accessToken: n,
|
|
3768
3790
|
fetcherOptions: i
|
|
3769
3791
|
}), e[8] = n, e[9] = s, e[10] = i, e[11] = o, e[12] = t, e[13] = d) : d = e[13];
|
|
3770
|
-
let
|
|
3771
|
-
return e[14] !== p || e[15] !== t || e[16] !==
|
|
3772
|
-
queryKey:
|
|
3792
|
+
let h;
|
|
3793
|
+
return e[14] !== p || e[15] !== t || e[16] !== m || e[17] !== d || e[18] !== g ? (h = {
|
|
3794
|
+
queryKey: m,
|
|
3773
3795
|
queryFn: d,
|
|
3774
|
-
select(
|
|
3796
|
+
select(y) {
|
|
3775
3797
|
return {
|
|
3776
|
-
...
|
|
3777
|
-
type:
|
|
3798
|
+
...y,
|
|
3799
|
+
type: y.type.toLowerCase()
|
|
3778
3800
|
};
|
|
3779
3801
|
},
|
|
3780
3802
|
enabled: !!t && p,
|
|
3781
|
-
...
|
|
3782
|
-
}, e[14] = p, e[15] = t, e[16] =
|
|
3803
|
+
...g
|
|
3804
|
+
}, e[14] = p, e[15] = t, e[16] = m, e[17] = d, e[18] = g, e[19] = h) : h = e[19], se(h);
|
|
3783
3805
|
}
|
|
3784
|
-
function
|
|
3806
|
+
function wr({
|
|
3785
3807
|
source: r,
|
|
3786
3808
|
params: e,
|
|
3787
3809
|
attribute: t,
|
|
@@ -3789,7 +3811,7 @@ function Sr({
|
|
|
3789
3811
|
fetcherOptions: n
|
|
3790
3812
|
}) {
|
|
3791
3813
|
if (r.type.startsWith("query"))
|
|
3792
|
-
return
|
|
3814
|
+
return vr({
|
|
3793
3815
|
connection: r.connectionName,
|
|
3794
3816
|
baseUrl: r.apiBaseUrl,
|
|
3795
3817
|
apiVersion: r.apiVersion,
|
|
@@ -3801,7 +3823,7 @@ function Sr({
|
|
|
3801
3823
|
fetcherOptions: n
|
|
3802
3824
|
});
|
|
3803
3825
|
if (r.type.startsWith("table"))
|
|
3804
|
-
return
|
|
3826
|
+
return Sr({
|
|
3805
3827
|
connection: r.connectionName,
|
|
3806
3828
|
baseUrl: r.apiBaseUrl,
|
|
3807
3829
|
apiVersion: r.apiVersion,
|
|
@@ -3812,7 +3834,7 @@ function Sr({
|
|
|
3812
3834
|
fetcherOptions: n
|
|
3813
3835
|
});
|
|
3814
3836
|
if (r.type.startsWith("tileset"))
|
|
3815
|
-
return
|
|
3837
|
+
return Tr({
|
|
3816
3838
|
source: r,
|
|
3817
3839
|
accessToken: s,
|
|
3818
3840
|
target: r.data,
|
|
@@ -3820,7 +3842,7 @@ function Sr({
|
|
|
3820
3842
|
});
|
|
3821
3843
|
throw new Error(`Unsupported source type: ${r.type}`);
|
|
3822
3844
|
}
|
|
3823
|
-
async function
|
|
3845
|
+
async function Tr({
|
|
3824
3846
|
source: r,
|
|
3825
3847
|
accessToken: e,
|
|
3826
3848
|
target: t,
|
|
@@ -3836,17 +3858,17 @@ async function wr({
|
|
|
3836
3858
|
});
|
|
3837
3859
|
if (!((c = (l = (a = n == null ? void 0 : n.tilestats) == null ? void 0 : a.layers) == null ? void 0 : l[0]) != null && c.attributes))
|
|
3838
3860
|
throw new Error(`${s} not found in tileset attributes`);
|
|
3839
|
-
const i = n.tilestats.layers[0].attributes.find((
|
|
3861
|
+
const i = n.tilestats.layers[0].attributes.find((g) => g.attribute === s);
|
|
3840
3862
|
if (!i)
|
|
3841
3863
|
throw new Error(`${s} not found in tileset attributes`);
|
|
3842
3864
|
return i;
|
|
3843
3865
|
}
|
|
3844
3866
|
export {
|
|
3845
|
-
|
|
3867
|
+
zr as BasemapsControls,
|
|
3846
3868
|
ot as CONVERSIONS_UNITS,
|
|
3847
|
-
|
|
3869
|
+
$e as CartoBasemapURL,
|
|
3848
3870
|
J as CartoBasemaps,
|
|
3849
|
-
|
|
3871
|
+
Yr as CategoriesModel,
|
|
3850
3872
|
qs as CustomCompositeEditMode,
|
|
3851
3873
|
Tt as CustomEditableGeojsonLayer,
|
|
3852
3874
|
Ys as CustomMeasureAreaMode,
|
|
@@ -3855,17 +3877,17 @@ export {
|
|
|
3855
3877
|
Je as DEFAULT_LASSO_TOOLS_COLORS,
|
|
3856
3878
|
Vs as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
3857
3879
|
xe as DEFAULT_LASSO_TOOLS_MODES,
|
|
3858
|
-
|
|
3880
|
+
Ue as DEFAULT_LASSO_TOOLS_PROPS,
|
|
3859
3881
|
Te as DEFAULT_MASK_LAYER_PROPS,
|
|
3860
3882
|
sn as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
3861
3883
|
nn as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
3862
3884
|
je as DEFAULT_MEASURE_COLORS,
|
|
3863
3885
|
Os as DeckGLComponent,
|
|
3864
3886
|
Y as EditableEditType,
|
|
3865
|
-
|
|
3866
|
-
|
|
3887
|
+
Xr as FeaturesModel,
|
|
3888
|
+
Jr as FormulaModel,
|
|
3867
3889
|
Re as GmapsBasemap,
|
|
3868
|
-
|
|
3890
|
+
eo as HistogramModel,
|
|
3869
3891
|
me as INTL_UNITS,
|
|
3870
3892
|
ln as LassoTools,
|
|
3871
3893
|
Ws as LassoToolsProvider,
|
|
@@ -3876,34 +3898,34 @@ export {
|
|
|
3876
3898
|
tn as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
3877
3899
|
it as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
3878
3900
|
Z as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
3879
|
-
|
|
3901
|
+
Wr as MapComponent,
|
|
3880
3902
|
Ie as MapMeasurementUnitAuto,
|
|
3881
3903
|
en as MapMeasurementUnitTurf,
|
|
3882
3904
|
Bs as MapProvider,
|
|
3883
|
-
|
|
3905
|
+
io as MapsProvider,
|
|
3884
3906
|
te as MapsTypes,
|
|
3885
3907
|
En as MeasurementTools,
|
|
3886
3908
|
fn as MeasurementToolsProvider,
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3909
|
+
to as RangeModel,
|
|
3910
|
+
so as ScatterModel,
|
|
3911
|
+
no as TableModel,
|
|
3912
|
+
ro as TimeSeriesModel,
|
|
3913
|
+
po as ZoomControls,
|
|
3914
|
+
oo as clientID,
|
|
3893
3915
|
st as convertMetersTo,
|
|
3894
3916
|
Qs as createLassoToolsStore,
|
|
3895
3917
|
xs as createMapStore,
|
|
3896
3918
|
dn as createMeasurementToolsStore,
|
|
3897
3919
|
le as formatterTypes,
|
|
3898
3920
|
bs as getCursorDefault,
|
|
3899
|
-
|
|
3900
|
-
|
|
3921
|
+
Qr as getDeckController,
|
|
3922
|
+
Zr as getFilterValues,
|
|
3901
3923
|
Gs as getLassoToolsLayer,
|
|
3902
3924
|
cn as getMeasurementToolsLayer,
|
|
3903
3925
|
Oe as getTextLayerFormattedDistance,
|
|
3904
3926
|
vs as getTooltipDefault,
|
|
3905
|
-
|
|
3906
|
-
|
|
3927
|
+
fo as mappingLegendMeridian,
|
|
3928
|
+
uo as objectToHtml,
|
|
3907
3929
|
kt as sortLayers,
|
|
3908
3930
|
As as transitionFlyConfig,
|
|
3909
3931
|
Zn as useCategories,
|
|
@@ -3916,17 +3938,17 @@ export {
|
|
|
3916
3938
|
G as useLassoToolsState,
|
|
3917
3939
|
pe as useLayerStore,
|
|
3918
3940
|
_n as useLayers,
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3941
|
+
ao as useLegend,
|
|
3942
|
+
lo as useMapScreenshot,
|
|
3943
|
+
$ as useMapStore,
|
|
3922
3944
|
I as useMeasurementToolsState,
|
|
3923
3945
|
er as useRange,
|
|
3924
3946
|
tr as useScatter,
|
|
3925
3947
|
zn as useSource,
|
|
3926
3948
|
Pe as useSourceStore,
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3949
|
+
Kr as useSourceWithFilters,
|
|
3950
|
+
co as useSpatialFilter,
|
|
3951
|
+
mo as useStats,
|
|
3930
3952
|
sr as useTable,
|
|
3931
3953
|
nr as useTimeSeries,
|
|
3932
3954
|
rr as useViewportSpatialFilter,
|