@carto/ps-react-maps 4.2.3 → 4.2.5
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 +618 -620
- package/dist/index.js.map +1 -1
- package/dist/types/use-event-manager.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import { useQuery as _t } from "@tanstack/react-query";
|
|
|
21
21
|
import { removeFilter as mn, addFilter as Ge, WidgetRasterSource as yn, WidgetTilesetSource as hn, TileFormat as gn, WidgetTableSource as bn, WidgetQuerySource as Sn, createViewportSpatialFilter as vn, vectorTilesetSource as wn } from "@carto/api-client";
|
|
22
22
|
import { devtools as Mn } from "zustand/middleware";
|
|
23
23
|
import _n from "html2canvas";
|
|
24
|
-
const
|
|
24
|
+
const De = {
|
|
25
25
|
roadmap: "roadmap",
|
|
26
26
|
satellite: "satellite",
|
|
27
27
|
hybrid: "hybrid"
|
|
@@ -29,7 +29,7 @@ const Re = {
|
|
|
29
29
|
darkMatter: "darkMatter",
|
|
30
30
|
positron: "positron",
|
|
31
31
|
voyager: "voyager"
|
|
32
|
-
},
|
|
32
|
+
}, Re = {
|
|
33
33
|
[ae.positron]: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
|
|
34
34
|
[ae.voyager]: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
|
|
35
35
|
[ae.darkMatter]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
@@ -38,25 +38,25 @@ const Re = {
|
|
|
38
38
|
googleMaps: "google-maps"
|
|
39
39
|
}, we = {
|
|
40
40
|
[ae.positron]: {
|
|
41
|
-
url:
|
|
41
|
+
url: Re[ae.positron],
|
|
42
42
|
type: ce.maplibre
|
|
43
43
|
},
|
|
44
44
|
[ae.voyager]: {
|
|
45
|
-
url:
|
|
45
|
+
url: Re[ae.voyager],
|
|
46
46
|
type: ce.maplibre
|
|
47
47
|
},
|
|
48
48
|
[ae.darkMatter]: {
|
|
49
|
-
url:
|
|
49
|
+
url: Re[ae.darkMatter],
|
|
50
50
|
type: ce.maplibre,
|
|
51
51
|
dark: !0
|
|
52
52
|
},
|
|
53
|
-
[
|
|
53
|
+
[De.roadmap]: {
|
|
54
54
|
type: ce.googleMaps
|
|
55
55
|
},
|
|
56
|
-
[
|
|
56
|
+
[De.satellite]: {
|
|
57
57
|
type: ce.googleMaps
|
|
58
58
|
},
|
|
59
|
-
[
|
|
59
|
+
[De.hybrid]: {
|
|
60
60
|
type: ce.googleMaps
|
|
61
61
|
}
|
|
62
62
|
};
|
|
@@ -77,10 +77,10 @@ function Tn(s) {
|
|
|
77
77
|
}
|
|
78
78
|
function Ln(s) {
|
|
79
79
|
const e = B(39);
|
|
80
|
-
let t, n, r, o, i, a, l, d, m,
|
|
80
|
+
let t, n, r, o, i, a, l, d, m, g, b, f;
|
|
81
81
|
e[0] !== s ? ({
|
|
82
82
|
instanceRef: i,
|
|
83
|
-
overlayRef:
|
|
83
|
+
overlayRef: g,
|
|
84
84
|
controller: t,
|
|
85
85
|
id: o,
|
|
86
86
|
layers: a,
|
|
@@ -91,10 +91,10 @@ function Ln(s) {
|
|
|
91
91
|
onLoad: d,
|
|
92
92
|
onViewStateChange: m,
|
|
93
93
|
...f
|
|
94
|
-
} = s, e[0] = s, e[1] = t, e[2] = n, e[3] = r, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] =
|
|
95
|
-
let
|
|
96
|
-
e[13] !== a ? (
|
|
97
|
-
const S =
|
|
94
|
+
} = s, e[0] = s, e[1] = t, e[2] = n, e[3] = r, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] = g, e[11] = b, e[12] = f) : (t = e[1], n = e[2], r = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], m = e[9], g = e[10], b = e[11], f = e[12]);
|
|
95
|
+
let M;
|
|
96
|
+
e[13] !== a ? (M = a.filter(On).map(Cn), e[13] = a, e[14] = M) : M = e[14];
|
|
97
|
+
const S = M, L = i;
|
|
98
98
|
let u;
|
|
99
99
|
e[15] !== d ? (u = () => d({
|
|
100
100
|
type: "deckgl",
|
|
@@ -105,20 +105,20 @@ function Ln(s) {
|
|
|
105
105
|
depthTest: !1,
|
|
106
106
|
...b
|
|
107
107
|
}, e[17] = b, e[18] = p) : p = e[18];
|
|
108
|
-
let
|
|
109
|
-
e[19] !==
|
|
110
|
-
let
|
|
111
|
-
e[21] !== d ? (
|
|
108
|
+
let h;
|
|
109
|
+
e[19] !== g ? (h = /* @__PURE__ */ G(Pn, { overlayRef: g }), e[19] = g, e[20] = h) : h = e[20];
|
|
110
|
+
let w;
|
|
111
|
+
e[21] !== d ? (w = () => d({
|
|
112
112
|
type: "load",
|
|
113
113
|
value: !0
|
|
114
|
-
}), e[21] = d, e[22] =
|
|
114
|
+
}), e[21] = d, e[22] = w) : w = e[22];
|
|
115
115
|
let v;
|
|
116
|
-
e[23] !== l || e[24] !==
|
|
116
|
+
e[23] !== l || e[24] !== w ? (v = /* @__PURE__ */ G(Vt, { reuseMaps: !1, mapStyle: l, onLoad: w, onRender: kn }), e[23] = l, e[24] = w, e[25] = v) : v = e[25];
|
|
117
117
|
let k;
|
|
118
|
-
return e[26] !== S || e[27] !== t || e[28] !== n || e[29] !== r || e[30] !== o || e[31] !== m || e[32] !== f || e[33] !== L || e[34] !== u || e[35] !== p || e[36] !==
|
|
119
|
-
|
|
118
|
+
return e[26] !== S || e[27] !== t || e[28] !== n || e[29] !== r || e[30] !== o || e[31] !== m || e[32] !== f || e[33] !== L || e[34] !== u || e[35] !== p || e[36] !== h || e[37] !== v ? (k = /* @__PURE__ */ G(Ut, { children: /* @__PURE__ */ G("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(Bt, { controller: t, id: o, ref: L, layers: S, getCursor: n, getTooltip: r, onLoad: u, onViewStateChange: m, parameters: p, ...f, children: [
|
|
119
|
+
h,
|
|
120
120
|
v
|
|
121
|
-
] }) }) }), e[26] = S, e[27] = t, e[28] = n, e[29] = r, e[30] = o, e[31] = m, e[32] = f, e[33] = L, e[34] = u, e[35] = p, e[36] =
|
|
121
|
+
] }) }) }), e[26] = S, e[27] = t, e[28] = n, e[29] = r, e[30] = o, e[31] = m, e[32] = f, e[33] = L, e[34] = u, e[35] = p, e[36] = h, e[37] = v, e[38] = k) : k = e[38], k;
|
|
122
122
|
}
|
|
123
123
|
function kn() {
|
|
124
124
|
document.querySelector(".maplibregl-compact-show")?.classList.remove("maplibregl-compact-show");
|
|
@@ -130,10 +130,10 @@ function Cn(s) {
|
|
|
130
130
|
} = s;
|
|
131
131
|
return new e(t);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function On(s) {
|
|
134
134
|
return !!s?.type;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Pn(s) {
|
|
137
137
|
const e = B(3), {
|
|
138
138
|
overlayRef: t
|
|
139
139
|
} = s, {
|
|
@@ -162,7 +162,7 @@ const An = (s) => {
|
|
|
162
162
|
};
|
|
163
163
|
function Fn(s) {
|
|
164
164
|
const e = B(77);
|
|
165
|
-
let t, n, r, o, i, a, l, d, m,
|
|
165
|
+
let t, n, r, o, i, a, l, d, m, g, b;
|
|
166
166
|
e[0] !== s ? ({
|
|
167
167
|
id: r,
|
|
168
168
|
instanceRef: o,
|
|
@@ -174,18 +174,18 @@ function Fn(s) {
|
|
|
174
174
|
controller: n,
|
|
175
175
|
onLoad: a,
|
|
176
176
|
onViewStateChange: l,
|
|
177
|
-
...
|
|
178
|
-
} = s, e[0] = s, e[1] = t, e[2] = n, e[3] = r, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] =
|
|
177
|
+
...g
|
|
178
|
+
} = s, e[0] = s, e[1] = t, e[2] = n, e[3] = r, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] = g, e[11] = b) : (t = e[1], n = e[2], r = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], m = e[9], g = e[10], b = e[11]);
|
|
179
179
|
let f;
|
|
180
180
|
e[12] !== b ? (f = b === void 0 ? {
|
|
181
181
|
apiKey: ""
|
|
182
182
|
} : b, e[12] = b, e[13] = f) : f = e[13];
|
|
183
|
-
let
|
|
183
|
+
let M, S, L;
|
|
184
184
|
e[14] !== f ? ({
|
|
185
185
|
apiKey: L,
|
|
186
|
-
APIProviderProps:
|
|
186
|
+
APIProviderProps: M,
|
|
187
187
|
...S
|
|
188
|
-
} = f, e[14] = f, e[15] =
|
|
188
|
+
} = f, e[14] = f, e[15] = M, e[16] = S, e[17] = L) : (M = e[15], S = e[16], L = e[17]);
|
|
189
189
|
let u;
|
|
190
190
|
e: {
|
|
191
191
|
if (typeof n == "boolean") {
|
|
@@ -206,11 +206,11 @@ function Fn(s) {
|
|
|
206
206
|
}, e[20] = te, e[21] = Y, e[22] = W, e[23] = ee) : ee = e[23], u = ee;
|
|
207
207
|
}
|
|
208
208
|
const p = u;
|
|
209
|
-
let
|
|
210
|
-
e[24] !== i ? (
|
|
211
|
-
const
|
|
209
|
+
let h;
|
|
210
|
+
e[24] !== i ? (h = i.filter(Rn).map(Dn), e[24] = i, e[25] = h) : h = e[25];
|
|
211
|
+
const w = h;
|
|
212
212
|
let v;
|
|
213
|
-
e[26] !==
|
|
213
|
+
e[26] !== g.initialViewState?.maxZoom || e[27] !== g.initialViewState?.minZoom ? (v = (X) => {
|
|
214
214
|
const {
|
|
215
215
|
detail: te
|
|
216
216
|
} = X, {
|
|
@@ -220,15 +220,15 @@ function Fn(s) {
|
|
|
220
220
|
tilt: ie
|
|
221
221
|
} = te;
|
|
222
222
|
return {
|
|
223
|
-
maxZoom:
|
|
224
|
-
minZoom:
|
|
223
|
+
maxZoom: g.initialViewState?.maxZoom,
|
|
224
|
+
minZoom: g.initialViewState?.minZoom,
|
|
225
225
|
latitude: Y.lat,
|
|
226
226
|
longitude: Y.lng,
|
|
227
227
|
zoom: W - 1,
|
|
228
228
|
bearing: ee,
|
|
229
229
|
pitch: ie
|
|
230
230
|
};
|
|
231
|
-
}, e[26] =
|
|
231
|
+
}, e[26] = g.initialViewState?.maxZoom, e[27] = g.initialViewState?.minZoom, e[28] = v) : v = e[28], g.initialViewState?.maxZoom, g.initialViewState?.minZoom;
|
|
232
232
|
const k = v;
|
|
233
233
|
let F;
|
|
234
234
|
e[29] !== o || e[30] !== l ? (F = (X) => {
|
|
@@ -258,20 +258,20 @@ function Fn(s) {
|
|
|
258
258
|
const te = k(X);
|
|
259
259
|
V(te);
|
|
260
260
|
}, e[32] = V, e[33] = k, e[34] = A) : A = e[34];
|
|
261
|
-
const $ = A, q =
|
|
261
|
+
const $ = A, q = g.initialViewState?.latitude ?? 0, D = g.initialViewState?.longitude ?? 0;
|
|
262
262
|
let _;
|
|
263
|
-
e[35] !== q || e[36] !==
|
|
263
|
+
e[35] !== q || e[36] !== D ? (_ = {
|
|
264
264
|
lat: q,
|
|
265
|
-
lng:
|
|
266
|
-
}, e[35] = q, e[36] =
|
|
267
|
-
const
|
|
265
|
+
lng: D
|
|
266
|
+
}, e[35] = q, e[36] = D, e[37] = _) : _ = e[37];
|
|
267
|
+
const P = (g.initialViewState?.zoom ?? 0) + 1, c = (g.initialViewState?.maxZoom ?? 23) + 1, y = (g.initialViewState?.minZoom ?? 0) + 1, T = g.initialViewState?.pitch, O = g.initialViewState?.bearing;
|
|
268
268
|
let C;
|
|
269
|
-
e[38] !== V || e[39] !== a || e[40] !==
|
|
269
|
+
e[38] !== V || e[39] !== a || e[40] !== g.initialViewState ? (C = () => {
|
|
270
270
|
a({
|
|
271
271
|
type: "load",
|
|
272
272
|
value: !0
|
|
273
|
-
}), V(
|
|
274
|
-
}, e[38] = V, e[39] = a, e[40] =
|
|
273
|
+
}), V(g.initialViewState);
|
|
274
|
+
}, e[38] = V, e[39] = a, e[40] = g.initialViewState, e[41] = C) : C = e[41];
|
|
275
275
|
const E = typeof p.scrollZoom == "boolean" ? p.scrollZoom : !!p.scrollZoom, j = p.dragPan ? "greedy" : "none", I = !p.doubleClickZoom;
|
|
276
276
|
let N;
|
|
277
277
|
e[42] !== r || e[43] !== d ? (N = /* @__PURE__ */ G(xn, { id: r, overlayRef: d }), e[42] = r, e[43] = d, e[44] = N) : N = e[44];
|
|
@@ -288,23 +288,23 @@ function Fn(s) {
|
|
|
288
288
|
...m
|
|
289
289
|
}, e[47] = m, e[48] = Z) : Z = e[48];
|
|
290
290
|
let oe;
|
|
291
|
-
e[49] !==
|
|
291
|
+
e[49] !== w || e[50] !== r || e[51] !== o || e[52] !== g || e[53] !== U || e[54] !== Z ? (oe = /* @__PURE__ */ G(An, { id: r, instanceRef: o, layers: w, onLoad: U, parameters: Z, ...g }), e[49] = w, e[50] = r, e[51] = o, e[52] = g, e[53] = U, e[54] = Z, e[55] = oe) : oe = e[55];
|
|
292
292
|
let Q;
|
|
293
|
-
e[56] !== S || e[57] !== t || e[58] !== $ || e[59] !== r || e[60] !== _ || e[61] !==
|
|
293
|
+
e[56] !== S || e[57] !== t || e[58] !== $ || e[59] !== r || e[60] !== _ || e[61] !== P || e[62] !== c || e[63] !== y || e[64] !== T || e[65] !== O || e[66] !== C || e[67] !== E || e[68] !== j || e[69] !== I || e[70] !== N || e[71] !== oe ? (Q = /* @__PURE__ */ G("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(jt, { id: r, mapTypeId: t, disableDefaultUI: !0, ...S, center: _, zoom: P, maxZoom: c, minZoom: y, tilt: T, heading: O, onTilesLoaded: C, onBoundsChanged: $, onZoomChanged: $, scrollwheel: E, gestureHandling: j, disableDoubleClickZoom: I, children: [
|
|
294
294
|
N,
|
|
295
295
|
oe
|
|
296
|
-
] }) }), e[56] = S, e[57] = t, e[58] = $, e[59] = r, e[60] = _, e[61] =
|
|
296
|
+
] }) }), e[56] = S, e[57] = t, e[58] = $, e[59] = r, e[60] = _, e[61] = P, e[62] = c, e[63] = y, e[64] = T, e[65] = O, e[66] = C, e[67] = E, e[68] = j, e[69] = I, e[70] = N, e[71] = oe, e[72] = Q) : Q = e[72];
|
|
297
297
|
let le;
|
|
298
|
-
return e[73] !==
|
|
298
|
+
return e[73] !== M || e[74] !== L || e[75] !== Q ? (le = /* @__PURE__ */ G(It, { apiKey: L, ...M, children: Q }), e[73] = M, e[74] = L, e[75] = Q, e[76] = le) : le = e[76], le;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Dn(s) {
|
|
301
301
|
const {
|
|
302
302
|
type: e,
|
|
303
303
|
props: t
|
|
304
304
|
} = s;
|
|
305
305
|
return new e(t);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function Rn(s) {
|
|
308
308
|
return !!s?.type;
|
|
309
309
|
}
|
|
310
310
|
function xn(s) {
|
|
@@ -317,7 +317,7 @@ function xn(s) {
|
|
|
317
317
|
}
|
|
318
318
|
function $n(s) {
|
|
319
319
|
const e = B(46);
|
|
320
|
-
let t, n, r, o, i, a, l, d, m,
|
|
320
|
+
let t, n, r, o, i, a, l, d, m, g, b, f;
|
|
321
321
|
e[0] !== s ? ({
|
|
322
322
|
instanceRef: n,
|
|
323
323
|
overlayRef: o,
|
|
@@ -326,30 +326,30 @@ function $n(s) {
|
|
|
326
326
|
id: d,
|
|
327
327
|
layers: m,
|
|
328
328
|
gmapsProps: t,
|
|
329
|
-
getCursor:
|
|
329
|
+
getCursor: g,
|
|
330
330
|
getTooltip: b,
|
|
331
331
|
onLoad: r,
|
|
332
332
|
onViewStateChange: f,
|
|
333
333
|
...i
|
|
334
|
-
} = s, e[0] = s, e[1] = t, e[2] = n, e[3] = r, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] =
|
|
335
|
-
const
|
|
334
|
+
} = s, e[0] = s, e[1] = t, e[2] = n, e[3] = r, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] = g, e[11] = b, e[12] = f) : (t = e[1], n = e[2], r = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], m = e[9], g = e[10], b = e[11], f = e[12]);
|
|
335
|
+
const M = a === void 0 ? ae.positron : a, S = l === void 0 ? !0 : l, L = d === void 0 ? "deck-gl-map" : d;
|
|
336
336
|
let u;
|
|
337
337
|
e[13] !== m ? (u = m === void 0 ? [] : m, e[13] = m, e[14] = u) : u = e[14];
|
|
338
|
-
const p = u,
|
|
338
|
+
const p = u, h = g === void 0 ? En : g, w = b === void 0 ? Tn : b, v = f === void 0 ? Vn : f;
|
|
339
339
|
let k;
|
|
340
340
|
e[15] === Symbol.for("react.memo_cache_sentinel") ? (k = [!1, !1], e[15] = k) : k = e[15];
|
|
341
341
|
const [F, V] = ue(k), {
|
|
342
342
|
url: A,
|
|
343
343
|
type: $
|
|
344
|
-
} = we[
|
|
345
|
-
let
|
|
346
|
-
e[16] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
344
|
+
} = we[M], q = $ === ce.googleMaps;
|
|
345
|
+
let D;
|
|
346
|
+
e[16] === Symbol.for("react.memo_cache_sentinel") ? (D = (C) => {
|
|
347
347
|
const E = C.type === "deckgl" ? 0 : 1;
|
|
348
348
|
V((j) => j.map((I, N) => N === E ? C.value : I));
|
|
349
|
-
}, e[16] =
|
|
350
|
-
const _ =
|
|
351
|
-
let
|
|
352
|
-
e[17] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
349
|
+
}, e[16] = D) : D = e[16];
|
|
350
|
+
const _ = D;
|
|
351
|
+
let P, c;
|
|
352
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (P = () => () => {
|
|
353
353
|
_({
|
|
354
354
|
type: "load",
|
|
355
355
|
value: !1
|
|
@@ -357,17 +357,17 @@ function $n(s) {
|
|
|
357
357
|
type: "deckgl",
|
|
358
358
|
value: !1
|
|
359
359
|
});
|
|
360
|
-
}, c = [_], e[17] =
|
|
360
|
+
}, c = [_], e[17] = P, e[18] = c) : (P = e[17], c = e[18]), J(P, c);
|
|
361
361
|
let y, T;
|
|
362
362
|
if (e[19] !== F || e[20] !== r ? (y = () => {
|
|
363
363
|
const C = F.every(Un);
|
|
364
364
|
r?.(C);
|
|
365
365
|
}, T = [F, r], e[19] = F, e[20] = r, e[21] = y, e[22] = T) : (y = e[21], T = e[22]), J(y, T), q) {
|
|
366
366
|
let C;
|
|
367
|
-
return e[23] !==
|
|
367
|
+
return e[23] !== M || e[24] !== S || e[25] !== h || e[26] !== w || e[27] !== t || e[28] !== L || e[29] !== n || e[30] !== p || e[31] !== v || e[32] !== o || e[33] !== i ? (C = /* @__PURE__ */ G(Fn, { instanceRef: n, overlayRef: o, controller: S, id: L, basemap: M, layers: p, gmapsProps: t, getCursor: h, getTooltip: w, onLoad: _, onViewStateChange: v, ...i }), e[23] = M, e[24] = S, e[25] = h, e[26] = w, e[27] = t, e[28] = L, e[29] = n, e[30] = p, e[31] = v, e[32] = o, e[33] = i, e[34] = C) : C = e[34], C;
|
|
368
368
|
}
|
|
369
|
-
let
|
|
370
|
-
return e[35] !== S || e[36] !==
|
|
369
|
+
let O;
|
|
370
|
+
return e[35] !== S || e[36] !== h || e[37] !== w || e[38] !== L || e[39] !== n || e[40] !== p || e[41] !== A || e[42] !== v || e[43] !== o || e[44] !== i ? (O = /* @__PURE__ */ G(Ln, { instanceRef: n, overlayRef: o, controller: S, id: L, layers: p, mapStyle: A, getCursor: h, getTooltip: w, onLoad: _, onViewStateChange: v, ...i }), e[35] = S, e[36] = h, e[37] = w, e[38] = L, e[39] = n, e[40] = p, e[41] = A, e[42] = v, e[43] = o, e[44] = i, e[45] = O) : O = e[45], O;
|
|
371
371
|
}
|
|
372
372
|
function Un(s) {
|
|
373
373
|
return s;
|
|
@@ -409,23 +409,23 @@ function Bn() {
|
|
|
409
409
|
function a(u, p) {
|
|
410
410
|
return p.clone !== !1 && p.isMergeableObject(u) ? S(i(u), u, p) : u;
|
|
411
411
|
}
|
|
412
|
-
function l(u, p,
|
|
413
|
-
return u.concat(p).map(function(
|
|
414
|
-
return a(
|
|
412
|
+
function l(u, p, h) {
|
|
413
|
+
return u.concat(p).map(function(w) {
|
|
414
|
+
return a(w, h);
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
function d(u, p) {
|
|
418
418
|
if (!p.customMerge)
|
|
419
419
|
return S;
|
|
420
|
-
var
|
|
421
|
-
return typeof
|
|
420
|
+
var h = p.customMerge(u);
|
|
421
|
+
return typeof h == "function" ? h : S;
|
|
422
422
|
}
|
|
423
423
|
function m(u) {
|
|
424
424
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(p) {
|
|
425
425
|
return Object.propertyIsEnumerable.call(u, p);
|
|
426
426
|
}) : [];
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function g(u) {
|
|
429
429
|
return Object.keys(u).concat(m(u));
|
|
430
430
|
}
|
|
431
431
|
function b(u, p) {
|
|
@@ -438,24 +438,24 @@ function Bn() {
|
|
|
438
438
|
function f(u, p) {
|
|
439
439
|
return b(u, p) && !(Object.hasOwnProperty.call(u, p) && Object.propertyIsEnumerable.call(u, p));
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
var
|
|
443
|
-
return
|
|
444
|
-
|
|
445
|
-
}),
|
|
446
|
-
f(u, v) || (b(u, v) &&
|
|
447
|
-
}),
|
|
441
|
+
function M(u, p, h) {
|
|
442
|
+
var w = {};
|
|
443
|
+
return h.isMergeableObject(u) && g(u).forEach(function(v) {
|
|
444
|
+
w[v] = a(u[v], h);
|
|
445
|
+
}), g(p).forEach(function(v) {
|
|
446
|
+
f(u, v) || (b(u, v) && h.isMergeableObject(p[v]) ? w[v] = d(v, h)(u[v], p[v], h) : w[v] = a(p[v], h));
|
|
447
|
+
}), w;
|
|
448
448
|
}
|
|
449
|
-
function S(u, p,
|
|
450
|
-
|
|
451
|
-
var
|
|
452
|
-
return k ?
|
|
449
|
+
function S(u, p, h) {
|
|
450
|
+
h = h || {}, h.arrayMerge = h.arrayMerge || l, h.isMergeableObject = h.isMergeableObject || s, h.cloneUnlessOtherwiseSpecified = a;
|
|
451
|
+
var w = Array.isArray(p), v = Array.isArray(u), k = w === v;
|
|
452
|
+
return k ? w ? h.arrayMerge(u, p, h) : M(u, p, h) : a(p, h);
|
|
453
453
|
}
|
|
454
|
-
S.all = function(p,
|
|
454
|
+
S.all = function(p, h) {
|
|
455
455
|
if (!Array.isArray(p))
|
|
456
456
|
throw new Error("first argument should be an array");
|
|
457
|
-
return p.reduce(function(
|
|
458
|
-
return S(
|
|
457
|
+
return p.reduce(function(w, v) {
|
|
458
|
+
return S(w, v, h);
|
|
459
459
|
}, {});
|
|
460
460
|
};
|
|
461
461
|
var L = S;
|
|
@@ -525,10 +525,10 @@ const me = /* @__PURE__ */ Et(jn), In = (s) => {
|
|
|
525
525
|
if (!a.maps?.[r]?.isLoaded) return;
|
|
526
526
|
const l = a.getViewState(r), d = a.getDeckInstance(r);
|
|
527
527
|
if (!l || !d?.height || !d?.width) return;
|
|
528
|
-
const m = l?.height ?? d?.height,
|
|
528
|
+
const m = l?.height ?? d?.height, g = l?.width ?? d?.width, f = new gt({
|
|
529
529
|
...l,
|
|
530
530
|
height: m,
|
|
531
|
-
width:
|
|
531
|
+
width: g
|
|
532
532
|
}).fitBounds(o, i?.boundsOptions);
|
|
533
533
|
return {
|
|
534
534
|
latitude: f.latitude,
|
|
@@ -730,7 +730,7 @@ function x(s) {
|
|
|
730
730
|
throw new Error("Missing MapProvider in the tree");
|
|
731
731
|
return ze(e, s);
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function co(s) {
|
|
734
734
|
const e = B(9), {
|
|
735
735
|
children: t,
|
|
736
736
|
mapId: n
|
|
@@ -772,7 +772,7 @@ class Yn extends Zt {
|
|
|
772
772
|
}));
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
const he = "lassoLayer",
|
|
775
|
+
const he = "lassoLayer", Pe = "maskLayer", Jn = {
|
|
776
776
|
id: he,
|
|
777
777
|
billboard: !1,
|
|
778
778
|
editHandlePointRadiusUnits: "pixels",
|
|
@@ -808,7 +808,7 @@ const he = "lassoLayer", Oe = "maskLayer", Jn = {
|
|
|
808
808
|
}, Qn = [new nn({
|
|
809
809
|
filterSize: 1
|
|
810
810
|
})], Te = {
|
|
811
|
-
id:
|
|
811
|
+
id: Pe,
|
|
812
812
|
operation: "mask",
|
|
813
813
|
pickable: !1,
|
|
814
814
|
visible: !0,
|
|
@@ -873,7 +873,7 @@ const he = "lassoLayer", Oe = "maskLayer", Jn = {
|
|
|
873
873
|
layers: n
|
|
874
874
|
};
|
|
875
875
|
})
|
|
876
|
-
})), nt = ["click", "keyup", "panstart", "panmove", "panend", "pointermove"], Lt = {
|
|
876
|
+
})), nt = ["click", "dblclick", "keyup", "panstart", "panmove", "panend", "pointermove"], Lt = {
|
|
877
877
|
multipan: [Je, {
|
|
878
878
|
threshold: 10,
|
|
879
879
|
direction: rn.Vertical,
|
|
@@ -892,33 +892,31 @@ const he = "lassoLayer", Oe = "maskLayer", Jn = {
|
|
|
892
892
|
}, ["pinch"], ["multipan"]]
|
|
893
893
|
};
|
|
894
894
|
function kt(s) {
|
|
895
|
-
const e = B(
|
|
895
|
+
const e = B(13), {
|
|
896
896
|
mapId: t,
|
|
897
897
|
layerId: n
|
|
898
898
|
} = s;
|
|
899
899
|
let r;
|
|
900
|
-
e[0] !== t ? (r = (
|
|
900
|
+
e[0] !== t ? (r = (S) => S.maps[t]?.basemap, e[0] = t, e[1] = r) : r = e[1];
|
|
901
901
|
const o = x(r);
|
|
902
902
|
let i;
|
|
903
|
-
e[2] !== t ? (i = (
|
|
904
|
-
const a = x(i), l = x(
|
|
905
|
-
type:
|
|
906
|
-
} = we[o],
|
|
907
|
-
let
|
|
908
|
-
e[4] !== l || e[5] !==
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
}
|
|
916
|
-
d(n, {
|
|
903
|
+
e[2] !== t ? (i = (S) => S.maps[t]?.isLoaded, e[2] = t, e[3] = i) : i = e[3];
|
|
904
|
+
const a = x(i), l = x(ns), d = x(ts), m = Se(es), {
|
|
905
|
+
type: g
|
|
906
|
+
} = we[o], b = g === ce.googleMaps;
|
|
907
|
+
let f, M;
|
|
908
|
+
e[4] !== l || e[5] !== d || e[6] !== b || e[7] !== a || e[8] !== n || e[9] !== t || e[10] !== m ? (f = () => {
|
|
909
|
+
if (!a)
|
|
910
|
+
return;
|
|
911
|
+
let S, L;
|
|
912
|
+
b ? L = d(t)?.getDiv() ?? null : L = l(t)?.getCanvas() ?? null, L && (S = new on(L, {
|
|
913
|
+
recognizers: Object.keys(Lt).map(Xn)
|
|
914
|
+
}), m(n, {
|
|
917
915
|
props: {
|
|
918
|
-
eventManager:
|
|
916
|
+
eventManager: S
|
|
919
917
|
}
|
|
920
|
-
});
|
|
921
|
-
},
|
|
918
|
+
}));
|
|
919
|
+
}, M = [d, b, a, l, n, t, m], e[4] = l, e[5] = d, e[6] = b, e[7] = a, e[8] = n, e[9] = t, e[10] = m, e[11] = f, e[12] = M) : (f = e[11], M = e[12]), J(f, M);
|
|
922
920
|
}
|
|
923
921
|
function Xn(s) {
|
|
924
922
|
const [e, t, n, r] = Lt[s], o = {
|
|
@@ -937,6 +935,9 @@ function es(s) {
|
|
|
937
935
|
function ts(s) {
|
|
938
936
|
return s.getOverlayInstance;
|
|
939
937
|
}
|
|
938
|
+
function ns(s) {
|
|
939
|
+
return s.getDeckInstance;
|
|
940
|
+
}
|
|
940
941
|
class Ct extends Jt {
|
|
941
942
|
updateState({
|
|
942
943
|
props: e,
|
|
@@ -956,10 +957,7 @@ class Ct extends Jt {
|
|
|
956
957
|
eventHandler: t
|
|
957
958
|
} = this.state._editableLayerState;
|
|
958
959
|
for (const n of nt)
|
|
959
|
-
e.on(n, t
|
|
960
|
-
// give nebula a higher priority so that it can stop propagation to deck.gl's map panning handlers
|
|
961
|
-
priority: 100
|
|
962
|
-
});
|
|
960
|
+
e.on(n, t);
|
|
963
961
|
}
|
|
964
962
|
_removeEventHandlers(e) {
|
|
965
963
|
const t = e ?? this._getEventManager(), {
|
|
@@ -973,11 +971,11 @@ class Ct extends Jt {
|
|
|
973
971
|
this.context.deck.eventManager;
|
|
974
972
|
}
|
|
975
973
|
}
|
|
976
|
-
function
|
|
974
|
+
function ss({
|
|
977
975
|
mode: s,
|
|
978
976
|
...e
|
|
979
977
|
}) {
|
|
980
|
-
const t =
|
|
978
|
+
const t = rs(e);
|
|
981
979
|
return {
|
|
982
980
|
type: Ct,
|
|
983
981
|
props: {
|
|
@@ -986,7 +984,7 @@ function ns({
|
|
|
986
984
|
}
|
|
987
985
|
};
|
|
988
986
|
}
|
|
989
|
-
function
|
|
987
|
+
function rs({
|
|
990
988
|
layerProps: s,
|
|
991
989
|
onEdit: e,
|
|
992
990
|
getLineColor: t,
|
|
@@ -1013,7 +1011,7 @@ function ss({
|
|
|
1013
1011
|
});
|
|
1014
1012
|
return me(i, o);
|
|
1015
1013
|
}
|
|
1016
|
-
const
|
|
1014
|
+
const os = (s) => Ze()((e) => ({
|
|
1017
1015
|
data: s.reduce((n, r) => {
|
|
1018
1016
|
const {
|
|
1019
1017
|
enabled: o = !1,
|
|
@@ -1106,25 +1104,25 @@ const rs = (s) => Ze()((e) => ({
|
|
|
1106
1104
|
}
|
|
1107
1105
|
}));
|
|
1108
1106
|
}
|
|
1109
|
-
})),
|
|
1110
|
-
function
|
|
1107
|
+
})), Ot = Ne({});
|
|
1108
|
+
function is(s) {
|
|
1111
1109
|
const e = B(5), {
|
|
1112
1110
|
children: t,
|
|
1113
1111
|
values: n
|
|
1114
1112
|
} = s;
|
|
1115
1113
|
let r;
|
|
1116
|
-
e[0] !== n ? (r = () =>
|
|
1114
|
+
e[0] !== n ? (r = () => os(n), e[0] = n, e[1] = r) : r = e[1];
|
|
1117
1115
|
const [o] = ue(r);
|
|
1118
1116
|
let i;
|
|
1119
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ G(
|
|
1117
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ G(Ot.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1120
1118
|
}
|
|
1121
1119
|
function K(s) {
|
|
1122
|
-
const e = He(
|
|
1120
|
+
const e = He(Ot);
|
|
1123
1121
|
if (!Object.keys(e).length)
|
|
1124
1122
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
1125
1123
|
return ze(e, s);
|
|
1126
1124
|
}
|
|
1127
|
-
function
|
|
1125
|
+
function as({
|
|
1128
1126
|
mapId: s,
|
|
1129
1127
|
children: e
|
|
1130
1128
|
}) {
|
|
@@ -1132,12 +1130,12 @@ function is({
|
|
|
1132
1130
|
J(() => {
|
|
1133
1131
|
const f = d[a];
|
|
1134
1132
|
if (f && t) {
|
|
1135
|
-
const
|
|
1136
|
-
m(s, new
|
|
1133
|
+
const M = f.mode;
|
|
1134
|
+
m(s, new M());
|
|
1137
1135
|
}
|
|
1138
1136
|
}, [t, s, a, d, m]);
|
|
1139
1137
|
const [
|
|
1140
|
-
|
|
1138
|
+
g
|
|
1141
1139
|
// , draw
|
|
1142
1140
|
] = ge(() => {
|
|
1143
1141
|
const f = (L) => ({
|
|
@@ -1159,26 +1157,26 @@ function is({
|
|
|
1159
1157
|
modes: d,
|
|
1160
1158
|
modeSelected: a,
|
|
1161
1159
|
values: {
|
|
1162
|
-
mask:
|
|
1160
|
+
mask: g
|
|
1163
1161
|
// draw,
|
|
1164
1162
|
},
|
|
1165
|
-
setValue: se((f,
|
|
1163
|
+
setValue: se((f, M) => o(s, f, M), [s, o]),
|
|
1166
1164
|
setEnabled: se((f) => n(s, f), [s, n]),
|
|
1167
|
-
setVisibility: se((f,
|
|
1165
|
+
setVisibility: se((f, M) => i(s, f, M), [s, i]),
|
|
1168
1166
|
setModeSelected: b
|
|
1169
1167
|
});
|
|
1170
1168
|
}
|
|
1171
|
-
function
|
|
1169
|
+
function Pt({
|
|
1172
1170
|
values: s
|
|
1173
1171
|
}) {
|
|
1174
1172
|
return Object.values(s ?? {}).filter((e) => e.type === "mask");
|
|
1175
1173
|
}
|
|
1176
|
-
const
|
|
1174
|
+
const ls = Mt({
|
|
1177
1175
|
length: fn
|
|
1178
|
-
}),
|
|
1176
|
+
}), cs = Mt({
|
|
1179
1177
|
area: pn
|
|
1180
1178
|
});
|
|
1181
|
-
function
|
|
1179
|
+
function us(s) {
|
|
1182
1180
|
if (!(s in Ce)) {
|
|
1183
1181
|
const e = Object.keys(Ce);
|
|
1184
1182
|
throw new Error(`Unit "${s}" cannot be converted to area. Valid units are: ${e.join(", ")}`);
|
|
@@ -1188,12 +1186,12 @@ function st(s, e, t) {
|
|
|
1188
1186
|
switch (t) {
|
|
1189
1187
|
case "length": {
|
|
1190
1188
|
const n = it[H.meter], r = it[e];
|
|
1191
|
-
return
|
|
1189
|
+
return ls(s).from(n).to(r);
|
|
1192
1190
|
}
|
|
1193
1191
|
case "area": {
|
|
1194
|
-
|
|
1192
|
+
us(e);
|
|
1195
1193
|
const n = at[Ce[H.meter]], r = at[Ce[e]];
|
|
1196
|
-
return
|
|
1194
|
+
return cs(s).from(n).to(r);
|
|
1197
1195
|
}
|
|
1198
1196
|
default:
|
|
1199
1197
|
throw new Error(`Invalid dimension: ${t}, valid dimensions are: length, area`);
|
|
@@ -1214,14 +1212,14 @@ function Ae({
|
|
|
1214
1212
|
dimension: i = "length"
|
|
1215
1213
|
}) {
|
|
1216
1214
|
const a = e === je["m-km"], l = e === je["ft-mi"], d = a || l;
|
|
1217
|
-
let m,
|
|
1215
|
+
let m, g;
|
|
1218
1216
|
if (d) {
|
|
1219
1217
|
const f = s < (n ?? rt);
|
|
1220
|
-
let
|
|
1221
|
-
m = f ? ve.meter : ve.kilometer, l && (m = f ? ve.feet : ve.mile,
|
|
1218
|
+
let M = f ? H.meter : H.kilometer;
|
|
1219
|
+
m = f ? ve.meter : ve.kilometer, l && (m = f ? ve.feet : ve.mile, M = f ? H.feet : H.mile), g = st(s, M, i);
|
|
1222
1220
|
} else
|
|
1223
|
-
m = ve[e],
|
|
1224
|
-
let b = `${wt(
|
|
1221
|
+
m = ve[e], g = st(s, e, i);
|
|
1222
|
+
let b = `${wt(g, t, {
|
|
1225
1223
|
style: "unit",
|
|
1226
1224
|
unit: m,
|
|
1227
1225
|
unitDisplay: "short",
|
|
@@ -1232,7 +1230,7 @@ function Ae({
|
|
|
1232
1230
|
})}`;
|
|
1233
1231
|
return i === "area" && (b += "2"), r ? r(b) : b;
|
|
1234
1232
|
}
|
|
1235
|
-
function
|
|
1233
|
+
function uo(s, {
|
|
1236
1234
|
hasDoubleClickZoom: e
|
|
1237
1235
|
}) {
|
|
1238
1236
|
return typeof s == "boolean" ? {
|
|
@@ -1264,7 +1262,7 @@ function At(s, e, t) {
|
|
|
1264
1262
|
}
|
|
1265
1263
|
return [];
|
|
1266
1264
|
}
|
|
1267
|
-
class
|
|
1265
|
+
class ds extends Qt {
|
|
1268
1266
|
_isMeasuringSessionFinished = !1;
|
|
1269
1267
|
area = 0;
|
|
1270
1268
|
tooltips = [];
|
|
@@ -1383,7 +1381,7 @@ class us extends Qt {
|
|
|
1383
1381
|
});
|
|
1384
1382
|
}
|
|
1385
1383
|
}
|
|
1386
|
-
class
|
|
1384
|
+
class fs extends bt {
|
|
1387
1385
|
_isMeasuringSessionFinished = !1;
|
|
1388
1386
|
_currentArea = 0;
|
|
1389
1387
|
resultPolygon = {
|
|
@@ -1516,7 +1514,7 @@ class Ft extends en {
|
|
|
1516
1514
|
});
|
|
1517
1515
|
}
|
|
1518
1516
|
}
|
|
1519
|
-
const fe = "mapMeasureLayer",
|
|
1517
|
+
const fe = "mapMeasureLayer", ps = {
|
|
1520
1518
|
id: fe,
|
|
1521
1519
|
pickable: !1,
|
|
1522
1520
|
billboard: !1,
|
|
@@ -1570,7 +1568,7 @@ const fe = "mapMeasureLayer", fs = {
|
|
|
1570
1568
|
"m-km": "m-km",
|
|
1571
1569
|
"ft-mi": "ft-mi",
|
|
1572
1570
|
...H
|
|
1573
|
-
},
|
|
1571
|
+
}, ms = {
|
|
1574
1572
|
meters: "meters",
|
|
1575
1573
|
kilometer: "kilometers",
|
|
1576
1574
|
mile: "miles"
|
|
@@ -1637,25 +1635,25 @@ const fe = "mapMeasureLayer", fs = {
|
|
|
1637
1635
|
value: "feet",
|
|
1638
1636
|
system: "imperial"
|
|
1639
1637
|
}
|
|
1640
|
-
}, lt = [ne["m-km"], ne.kilometer, ne.meter, ne["ft-mi"], ne.mile, ne.feet],
|
|
1638
|
+
}, lt = [ne["m-km"], ne.kilometer, ne.meter, ne["ft-mi"], ne.mile, ne.feet], ys = [ne["m-km"], ne.kilometer, ne.meter, ne["ft-mi"], ne.mile, ne.feet], hs = {
|
|
1641
1639
|
distance: {
|
|
1642
1640
|
value: "distance",
|
|
1643
1641
|
mode: Ft
|
|
1644
1642
|
},
|
|
1645
1643
|
buffer: {
|
|
1646
1644
|
value: "buffer",
|
|
1647
|
-
mode:
|
|
1645
|
+
mode: fs
|
|
1648
1646
|
},
|
|
1649
1647
|
area: {
|
|
1650
1648
|
value: "area",
|
|
1651
|
-
mode:
|
|
1649
|
+
mode: ds
|
|
1652
1650
|
}
|
|
1653
|
-
},
|
|
1651
|
+
}, gs = {
|
|
1654
1652
|
distance: lt,
|
|
1655
1653
|
buffer: lt,
|
|
1656
|
-
area:
|
|
1657
|
-
},
|
|
1658
|
-
function
|
|
1654
|
+
area: ys
|
|
1655
|
+
}, bs = [he, Pe, fe];
|
|
1656
|
+
function Ss({
|
|
1659
1657
|
children: s,
|
|
1660
1658
|
mapId: e,
|
|
1661
1659
|
defaultProps: {
|
|
@@ -1668,14 +1666,14 @@ function bs({
|
|
|
1668
1666
|
layerProps: r = {},
|
|
1669
1667
|
defaultType: o = "mask"
|
|
1670
1668
|
}) {
|
|
1671
|
-
const i = K((_) => _.data[e]?.enabled), a = K((_) => _.setEnabled), l = K((_) => _.data[e]?.values), d = K((_) => _.setValue), m = K((_) => _.data[e]?.modeInstance),
|
|
1669
|
+
const i = K((_) => _.data[e]?.enabled), a = K((_) => _.setEnabled), l = K((_) => _.data[e]?.values), d = K((_) => _.setValue), m = K((_) => _.data[e]?.modeInstance), g = K((_) => _.data[e]?.modeSelected), b = Se((_) => _.setLayer), f = x((_) => _.addLayers), M = x((_) => _.removeLayers), S = x(St((_) => _.maps[e]?.layers.filter((P) => !bs.includes(P)))), L = x((_) => _.getDeckInstance), u = ke({});
|
|
1672
1670
|
kt({
|
|
1673
1671
|
mapId: e,
|
|
1674
1672
|
layerId: he
|
|
1675
1673
|
});
|
|
1676
|
-
const p = ge(() =>
|
|
1674
|
+
const p = ge(() => Pt({
|
|
1677
1675
|
values: l
|
|
1678
|
-
}), [l]),
|
|
1676
|
+
}), [l]), h = ge(() => ({
|
|
1679
1677
|
type: "FeatureCollection",
|
|
1680
1678
|
features: p.map((_) => ({
|
|
1681
1679
|
type: "Feature",
|
|
@@ -1683,31 +1681,31 @@ function bs({
|
|
|
1683
1681
|
properties: _.properties,
|
|
1684
1682
|
id: _.id
|
|
1685
1683
|
}))
|
|
1686
|
-
}), [p]),
|
|
1684
|
+
}), [p]), w = ge(() => p.filter((_) => _.properties.visible).map((_) => _.id), [p]), [v, k] = ue(h), [F, V] = ue([]), A = se(() => {
|
|
1687
1685
|
const _ = {
|
|
1688
|
-
...
|
|
1689
|
-
features:
|
|
1686
|
+
...h,
|
|
1687
|
+
features: h.features.filter((P) => P.properties?.visible)
|
|
1690
1688
|
};
|
|
1691
1689
|
k(_);
|
|
1692
|
-
}, [
|
|
1690
|
+
}, [h]);
|
|
1693
1691
|
J(() => {
|
|
1694
1692
|
A();
|
|
1695
1693
|
}, [A]);
|
|
1696
1694
|
const $ = ke(p.length);
|
|
1697
1695
|
J(() => (f(e, [he]), () => {
|
|
1698
|
-
|
|
1699
|
-
}), [f, e,
|
|
1696
|
+
M(e, [he]);
|
|
1697
|
+
}), [f, e, M]);
|
|
1700
1698
|
const q = se(() => {
|
|
1701
1699
|
A(), V([]), a(e, !1);
|
|
1702
|
-
}, [e, A, a]),
|
|
1700
|
+
}, [e, A, a]), D = se(({
|
|
1703
1701
|
editType: _,
|
|
1704
|
-
updatedData:
|
|
1702
|
+
updatedData: P
|
|
1705
1703
|
}) => {
|
|
1706
1704
|
if (_ === re.cancel) {
|
|
1707
1705
|
q();
|
|
1708
1706
|
return;
|
|
1709
1707
|
}
|
|
1710
|
-
k(
|
|
1708
|
+
k(P), _ !== re.updateTentativeFeature && _ === re.addFeature && (g !== "edit" && ($.current = $.current + 1), P.features.forEach((c, y) => {
|
|
1711
1709
|
c.properties.label ??= `${n?.mask} ${$.current}`, c.properties.index = y, c.properties.visible = c.properties.visible ?? !0;
|
|
1712
1710
|
const T = c.id ?? crypto.randomUUID();
|
|
1713
1711
|
d(e, T, {
|
|
@@ -1717,76 +1715,76 @@ function bs({
|
|
|
1717
1715
|
type: o
|
|
1718
1716
|
});
|
|
1719
1717
|
}), q());
|
|
1720
|
-
}, [o, q, n?.mask, e,
|
|
1718
|
+
}, [o, q, n?.mask, e, g, d]);
|
|
1721
1719
|
return J(() => {
|
|
1722
1720
|
const _ = i, {
|
|
1723
|
-
border:
|
|
1721
|
+
border: P,
|
|
1724
1722
|
point: c,
|
|
1725
1723
|
fill: y
|
|
1726
1724
|
} = t.colors.editing, {
|
|
1727
1725
|
border: T,
|
|
1728
|
-
fill:
|
|
1729
|
-
} = t.colors.finished, C =
|
|
1726
|
+
fill: O
|
|
1727
|
+
} = t.colors.finished, C = ss({
|
|
1730
1728
|
layerProps: {
|
|
1731
1729
|
...r.mask,
|
|
1732
1730
|
pickable: _,
|
|
1733
1731
|
data: v,
|
|
1734
1732
|
selectedFeatureIndexes: F,
|
|
1735
1733
|
updateTriggers: {
|
|
1736
|
-
getFilterValue:
|
|
1734
|
+
getFilterValue: w
|
|
1737
1735
|
},
|
|
1738
1736
|
onClick: (E) => {
|
|
1739
1737
|
const j = E;
|
|
1740
1738
|
j.isGuide || V([j.index]);
|
|
1741
1739
|
}
|
|
1742
1740
|
},
|
|
1743
|
-
getLineColor: (E) => F[0] === E.properties.index ?
|
|
1744
|
-
getFillColor: (E) => F[0] === E.properties.index ? y :
|
|
1741
|
+
getLineColor: (E) => F[0] === E.properties.index ? P : T,
|
|
1742
|
+
getFillColor: (E) => F[0] === E.properties.index ? y : O,
|
|
1745
1743
|
pointColor: {
|
|
1746
1744
|
fill: c,
|
|
1747
|
-
outline:
|
|
1745
|
+
outline: P
|
|
1748
1746
|
},
|
|
1749
|
-
onEdit:
|
|
1747
|
+
onEdit: D,
|
|
1750
1748
|
mode: _ ? m : new tn()
|
|
1751
1749
|
});
|
|
1752
1750
|
b(he, C);
|
|
1753
|
-
}, [v, i, r.mask,
|
|
1751
|
+
}, [v, i, r.mask, w, m, D, F, b, t.colors.editing, t.colors.finished]), J(() => {
|
|
1754
1752
|
const _ = {
|
|
1755
1753
|
...Te,
|
|
1756
|
-
data:
|
|
1757
|
-
getFilterValue: (
|
|
1754
|
+
data: h,
|
|
1755
|
+
getFilterValue: (P) => Number(w.includes(P.id)),
|
|
1758
1756
|
updateTriggers: {
|
|
1759
|
-
getFilterValue:
|
|
1757
|
+
getFilterValue: w
|
|
1760
1758
|
}
|
|
1761
1759
|
};
|
|
1762
1760
|
return b(Te.id, {
|
|
1763
1761
|
type: ln,
|
|
1764
1762
|
props: _
|
|
1765
1763
|
}), f(e, [Te.id]), () => {
|
|
1766
|
-
|
|
1764
|
+
M(e, [Te.id]);
|
|
1767
1765
|
};
|
|
1768
|
-
}, [f, e,
|
|
1766
|
+
}, [f, e, h, w, M, b]), J(() => {
|
|
1769
1767
|
S?.forEach((_) => {
|
|
1770
|
-
const
|
|
1771
|
-
if (!
|
|
1772
|
-
i && (u.current[_] =
|
|
1773
|
-
const c = !i && (u.current[_] ??
|
|
1768
|
+
const P = L(e)?.props.layers.find((y) => y.props.id === _);
|
|
1769
|
+
if (!P) return;
|
|
1770
|
+
i && (u.current[_] = P?.props.pickable);
|
|
1771
|
+
const c = !i && (u.current[_] ?? P?.props.pickable);
|
|
1774
1772
|
b(_, {
|
|
1775
1773
|
props: {
|
|
1776
1774
|
pickable: c,
|
|
1777
1775
|
extensions: [new sn()],
|
|
1778
|
-
maskId: !i &&
|
|
1776
|
+
maskId: !i && w.length ? Pe : void 0
|
|
1779
1777
|
}
|
|
1780
1778
|
});
|
|
1781
1779
|
});
|
|
1782
|
-
}, [i, L, e, S,
|
|
1780
|
+
}, [i, L, e, S, w.length, b]), s;
|
|
1783
1781
|
}
|
|
1784
|
-
|
|
1785
|
-
function
|
|
1782
|
+
Ss.Controls = as;
|
|
1783
|
+
function vs({
|
|
1786
1784
|
mode: s,
|
|
1787
1785
|
...e
|
|
1788
1786
|
}) {
|
|
1789
|
-
const t =
|
|
1787
|
+
const t = ws({
|
|
1790
1788
|
mode: s,
|
|
1791
1789
|
...e
|
|
1792
1790
|
});
|
|
@@ -1799,7 +1797,7 @@ function Ss({
|
|
|
1799
1797
|
}
|
|
1800
1798
|
};
|
|
1801
1799
|
}
|
|
1802
|
-
function
|
|
1800
|
+
function ws({
|
|
1803
1801
|
mode: s,
|
|
1804
1802
|
layerProps: e,
|
|
1805
1803
|
locale: t,
|
|
@@ -1817,7 +1815,7 @@ function vs({
|
|
|
1817
1815
|
// We force distance due to conversion is addressed at feature getText level
|
|
1818
1816
|
formatTooltip: (b) => b,
|
|
1819
1817
|
turfOptions: {
|
|
1820
|
-
units:
|
|
1818
|
+
units: ms.meters
|
|
1821
1819
|
}
|
|
1822
1820
|
},
|
|
1823
1821
|
...n && {
|
|
@@ -1843,7 +1841,7 @@ function vs({
|
|
|
1843
1841
|
}
|
|
1844
1842
|
}
|
|
1845
1843
|
}
|
|
1846
|
-
}), m = me(
|
|
1844
|
+
}), m = me(ps, {
|
|
1847
1845
|
_subLayerProps: {
|
|
1848
1846
|
guides: {
|
|
1849
1847
|
getLineColor: i,
|
|
@@ -1855,19 +1853,19 @@ function vs({
|
|
|
1855
1853
|
});
|
|
1856
1854
|
return me(m, d);
|
|
1857
1855
|
}
|
|
1858
|
-
const
|
|
1856
|
+
const Ms = (s) => Ze()((e) => ({
|
|
1859
1857
|
measurements: s.reduce((n, r) => {
|
|
1860
1858
|
const {
|
|
1861
1859
|
mapId: o,
|
|
1862
1860
|
modeSelected: i,
|
|
1863
|
-
modes: a =
|
|
1864
|
-
units: l =
|
|
1861
|
+
modes: a = hs,
|
|
1862
|
+
units: l = gs,
|
|
1865
1863
|
distance: d = 0,
|
|
1866
1864
|
finished: m = !1,
|
|
1867
|
-
locale:
|
|
1865
|
+
locale: g = "en",
|
|
1868
1866
|
positions: b = [],
|
|
1869
1867
|
clearLayerOnStart: f = !1,
|
|
1870
|
-
unit:
|
|
1868
|
+
unit: M = je["m-km"],
|
|
1871
1869
|
enabled: S = !1
|
|
1872
1870
|
} = r;
|
|
1873
1871
|
return n[o] = {
|
|
@@ -1876,9 +1874,9 @@ const ws = (s) => Ze()((e) => ({
|
|
|
1876
1874
|
modeSelected: i,
|
|
1877
1875
|
distance: d,
|
|
1878
1876
|
finished: m,
|
|
1879
|
-
locale:
|
|
1877
|
+
locale: g,
|
|
1880
1878
|
positions: b,
|
|
1881
|
-
unit:
|
|
1879
|
+
unit: M,
|
|
1882
1880
|
clearLayerOnStart: f,
|
|
1883
1881
|
enabled: S
|
|
1884
1882
|
}, n;
|
|
@@ -1972,86 +1970,86 @@ const ws = (s) => Ze()((e) => ({
|
|
|
1972
1970
|
}
|
|
1973
1971
|
}));
|
|
1974
1972
|
}
|
|
1975
|
-
})),
|
|
1976
|
-
function
|
|
1973
|
+
})), Dt = Ne({});
|
|
1974
|
+
function _s(s) {
|
|
1977
1975
|
const e = B(5), {
|
|
1978
1976
|
children: t,
|
|
1979
1977
|
values: n
|
|
1980
1978
|
} = s;
|
|
1981
1979
|
let r;
|
|
1982
|
-
e[0] !== n ? (r =
|
|
1980
|
+
e[0] !== n ? (r = Ms(n), e[0] = n, e[1] = r) : r = e[1];
|
|
1983
1981
|
const [o] = ue(r);
|
|
1984
1982
|
let i;
|
|
1985
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ G(
|
|
1983
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ G(Dt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1986
1984
|
}
|
|
1987
1985
|
function z(s) {
|
|
1988
|
-
const e = He(
|
|
1986
|
+
const e = He(Dt);
|
|
1989
1987
|
if (!Object.keys(e).length)
|
|
1990
1988
|
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1991
1989
|
return ze(e, s);
|
|
1992
1990
|
}
|
|
1993
|
-
function
|
|
1991
|
+
function Rt(s) {
|
|
1994
1992
|
const e = B(74), {
|
|
1995
1993
|
mapId: t
|
|
1996
1994
|
} = s;
|
|
1997
1995
|
let n;
|
|
1998
|
-
e[0] !== t ? (n = (
|
|
1996
|
+
e[0] !== t ? (n = (R) => R.measurements[t].modes, e[0] = t, e[1] = n) : n = e[1];
|
|
1999
1997
|
const r = z(n);
|
|
2000
1998
|
let o;
|
|
2001
|
-
e[2] !== t ? (o = (
|
|
1999
|
+
e[2] !== t ? (o = (R) => R.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
|
|
2002
2000
|
const i = z(o);
|
|
2003
2001
|
let a;
|
|
2004
|
-
e[4] !== t ? (a = (
|
|
2005
|
-
const l = z(a), d = z(
|
|
2002
|
+
e[4] !== t ? (a = (R) => R.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
2003
|
+
const l = z(a), d = z(As);
|
|
2006
2004
|
let m;
|
|
2007
|
-
e[6] !== d || e[7] !== t ? (m = (
|
|
2008
|
-
const
|
|
2005
|
+
e[6] !== d || e[7] !== t ? (m = (R) => d(t, R), e[6] = d, e[7] = t, e[8] = m) : m = e[8];
|
|
2006
|
+
const g = m;
|
|
2009
2007
|
let b;
|
|
2010
|
-
e[9] !== t ? (b = (
|
|
2008
|
+
e[9] !== t ? (b = (R) => R.measurements[t].clearLayerOnStart, e[9] = t, e[10] = b) : b = e[10];
|
|
2011
2009
|
const f = z(b);
|
|
2012
|
-
let
|
|
2013
|
-
e[11] !== t ? (
|
|
2014
|
-
const S = z(
|
|
2010
|
+
let M;
|
|
2011
|
+
e[11] !== t ? (M = (R) => R.measurements[t].enabled, e[11] = t, e[12] = M) : M = e[12];
|
|
2012
|
+
const S = z(M), L = z(Ps);
|
|
2015
2013
|
let u;
|
|
2016
|
-
e[13] !== L || e[14] !== t ? (u = (
|
|
2014
|
+
e[13] !== L || e[14] !== t ? (u = (R) => L(t, R), e[13] = L, e[14] = t, e[15] = u) : u = e[15];
|
|
2017
2015
|
const p = u;
|
|
2018
|
-
let
|
|
2019
|
-
e[16] !== t ? (
|
|
2020
|
-
const
|
|
2016
|
+
let h;
|
|
2017
|
+
e[16] !== t ? (h = (R) => R.measurements[t].modeSelected, e[16] = t, e[17] = h) : h = e[17];
|
|
2018
|
+
const w = z(h), v = z(Os);
|
|
2021
2019
|
let k;
|
|
2022
|
-
e[18] !== v || e[19] !== t || e[20] !== p ? (k = (
|
|
2023
|
-
p(!!
|
|
2020
|
+
e[18] !== v || e[19] !== t || e[20] !== p ? (k = (R) => {
|
|
2021
|
+
p(!!R), v(t, R);
|
|
2024
2022
|
}, e[18] = v, e[19] = t, e[20] = p, e[21] = k) : k = e[21];
|
|
2025
2023
|
const F = k;
|
|
2026
2024
|
let V;
|
|
2027
|
-
e[22] !== t ? (V = (
|
|
2028
|
-
const A = z(V), $ = z(
|
|
2025
|
+
e[22] !== t ? (V = (R) => R.measurements[t].finished, e[22] = t, e[23] = V) : V = e[23];
|
|
2026
|
+
const A = z(V), $ = z(Cs);
|
|
2029
2027
|
let q;
|
|
2030
|
-
e[24] !== $ || e[25] !== t ? (q = (
|
|
2031
|
-
const
|
|
2028
|
+
e[24] !== $ || e[25] !== t ? (q = (R) => $(t, R), e[24] = $, e[25] = t, e[26] = q) : q = e[26];
|
|
2029
|
+
const D = q;
|
|
2032
2030
|
let _;
|
|
2033
|
-
e[27] !== t ? (_ = (
|
|
2034
|
-
const
|
|
2031
|
+
e[27] !== t ? (_ = (R) => R.measurements[t].locale, e[27] = t, e[28] = _) : _ = e[28];
|
|
2032
|
+
const P = z(_), c = z(ks);
|
|
2035
2033
|
let y;
|
|
2036
|
-
e[29] !== c || e[30] !== t ? (y = (
|
|
2034
|
+
e[29] !== c || e[30] !== t ? (y = (R) => c(t, R), e[29] = c, e[30] = t, e[31] = y) : y = e[31];
|
|
2037
2035
|
const T = y;
|
|
2038
|
-
let
|
|
2039
|
-
e[32] !== t ? (
|
|
2040
|
-
const C = z(
|
|
2036
|
+
let O;
|
|
2037
|
+
e[32] !== t ? (O = (R) => R.measurements[t].modeInstance, e[32] = t, e[33] = O) : O = e[33];
|
|
2038
|
+
const C = z(O), E = z(Ls);
|
|
2041
2039
|
let j;
|
|
2042
|
-
e[34] !== E || e[35] !== t ? (j = (
|
|
2040
|
+
e[34] !== E || e[35] !== t ? (j = (R) => E(t, R), e[34] = E, e[35] = t, e[36] = j) : j = e[36];
|
|
2043
2041
|
const I = j;
|
|
2044
2042
|
let N;
|
|
2045
|
-
e[37] !== t ? (N = (
|
|
2046
|
-
const U = z(N), Z = z(
|
|
2043
|
+
e[37] !== t ? (N = (R) => R.measurements[t].positions, e[37] = t, e[38] = N) : N = e[38];
|
|
2044
|
+
const U = z(N), Z = z(Ts);
|
|
2047
2045
|
let oe;
|
|
2048
|
-
e[39] !== Z || e[40] !== t ? (oe = (
|
|
2046
|
+
e[39] !== Z || e[40] !== t ? (oe = (R) => Z(t, R), e[39] = Z, e[40] = t, e[41] = oe) : oe = e[41];
|
|
2049
2047
|
const Q = oe;
|
|
2050
2048
|
let le;
|
|
2051
|
-
e[42] !== t ? (le = (
|
|
2052
|
-
const X = z(le), te = z(
|
|
2049
|
+
e[42] !== t ? (le = (R) => R.measurements[t].unit, e[42] = t, e[43] = le) : le = e[43];
|
|
2050
|
+
const X = z(le), te = z(Es);
|
|
2053
2051
|
let Y;
|
|
2054
|
-
e[44] !== te || e[45] !== t ? (Y = (
|
|
2052
|
+
e[44] !== te || e[45] !== t ? (Y = (R) => te(t, R), e[44] = te, e[45] = t, e[46] = Y) : Y = e[46];
|
|
2055
2053
|
const W = Y;
|
|
2056
2054
|
let ee;
|
|
2057
2055
|
e[47] !== C || e[48] !== Q ? (ee = () => {
|
|
@@ -2059,26 +2057,26 @@ function Dt(s) {
|
|
|
2059
2057
|
}, e[47] = C, e[48] = Q, e[49] = ee) : ee = e[49];
|
|
2060
2058
|
const ie = ee;
|
|
2061
2059
|
let Me;
|
|
2062
|
-
e[50] !== p ? (Me = (
|
|
2063
|
-
p(
|
|
2060
|
+
e[50] !== p ? (Me = (R) => {
|
|
2061
|
+
p(R);
|
|
2064
2062
|
}, e[50] = p, e[51] = Me) : Me = e[51];
|
|
2065
2063
|
const Fe = Me;
|
|
2066
2064
|
let _e;
|
|
2067
|
-
return e[52] !== ie || e[53] !== f || e[54] !== l || e[55] !== S || e[56] !== A || e[57] !==
|
|
2065
|
+
return e[52] !== ie || e[53] !== f || e[54] !== l || e[55] !== S || e[56] !== A || e[57] !== P || e[58] !== C || e[59] !== w || e[60] !== r || e[61] !== U || e[62] !== g || e[63] !== p || e[64] !== D || e[65] !== T || e[66] !== I || e[67] !== F || e[68] !== Q || e[69] !== W || e[70] !== Fe || e[71] !== X || e[72] !== i ? (_e = {
|
|
2068
2066
|
modes: r,
|
|
2069
2067
|
units: i,
|
|
2070
2068
|
distance: l,
|
|
2071
2069
|
clearLayerOnStart: f,
|
|
2072
|
-
modeSelected:
|
|
2070
|
+
modeSelected: w,
|
|
2073
2071
|
enabled: S,
|
|
2074
2072
|
finished: A,
|
|
2075
|
-
locale:
|
|
2073
|
+
locale: P,
|
|
2076
2074
|
modeInstance: C,
|
|
2077
2075
|
positions: U,
|
|
2078
2076
|
unit: X,
|
|
2079
|
-
setDistance:
|
|
2077
|
+
setDistance: g,
|
|
2080
2078
|
setModeSelected: F,
|
|
2081
|
-
setFinished:
|
|
2079
|
+
setFinished: D,
|
|
2082
2080
|
setLocale: T,
|
|
2083
2081
|
setPositions: Q,
|
|
2084
2082
|
setUnit: W,
|
|
@@ -2086,33 +2084,33 @@ function Dt(s) {
|
|
|
2086
2084
|
toggleLayer: Fe,
|
|
2087
2085
|
clearLayer: ie,
|
|
2088
2086
|
setModeInstance: I
|
|
2089
|
-
}, e[52] = ie, e[53] = f, e[54] = l, e[55] = S, e[56] = A, e[57] =
|
|
2087
|
+
}, e[52] = ie, e[53] = f, e[54] = l, e[55] = S, e[56] = A, e[57] = P, e[58] = C, e[59] = w, e[60] = r, e[61] = U, e[62] = g, e[63] = p, e[64] = D, e[65] = T, e[66] = I, e[67] = F, e[68] = Q, e[69] = W, e[70] = Fe, e[71] = X, e[72] = i, e[73] = _e) : _e = e[73], _e;
|
|
2090
2088
|
}
|
|
2091
|
-
function
|
|
2089
|
+
function Es(s) {
|
|
2092
2090
|
return s.setUnit;
|
|
2093
2091
|
}
|
|
2094
|
-
function
|
|
2092
|
+
function Ts(s) {
|
|
2095
2093
|
return s.setPositions;
|
|
2096
2094
|
}
|
|
2097
|
-
function
|
|
2095
|
+
function Ls(s) {
|
|
2098
2096
|
return s.setModeInstance;
|
|
2099
2097
|
}
|
|
2100
|
-
function
|
|
2098
|
+
function ks(s) {
|
|
2101
2099
|
return s.setLocale;
|
|
2102
2100
|
}
|
|
2103
|
-
function
|
|
2101
|
+
function Cs(s) {
|
|
2104
2102
|
return s.setFinished;
|
|
2105
2103
|
}
|
|
2106
|
-
function
|
|
2104
|
+
function Os(s) {
|
|
2107
2105
|
return s.setModeSelected;
|
|
2108
2106
|
}
|
|
2109
2107
|
function Ps(s) {
|
|
2110
2108
|
return s.setEnabled;
|
|
2111
2109
|
}
|
|
2112
|
-
function
|
|
2110
|
+
function As(s) {
|
|
2113
2111
|
return s.setDistance;
|
|
2114
2112
|
}
|
|
2115
|
-
function
|
|
2113
|
+
function Fs(s) {
|
|
2116
2114
|
const e = B(42), {
|
|
2117
2115
|
mapId: t,
|
|
2118
2116
|
textOptions: n,
|
|
@@ -2128,42 +2126,42 @@ function As(s) {
|
|
|
2128
2126
|
distance: l,
|
|
2129
2127
|
setDistance: d,
|
|
2130
2128
|
clearLayerOnStart: m,
|
|
2131
|
-
modeSelected:
|
|
2129
|
+
modeSelected: g,
|
|
2132
2130
|
setModeSelected: b,
|
|
2133
2131
|
enabled: f,
|
|
2134
|
-
setEnabled:
|
|
2132
|
+
setEnabled: M,
|
|
2135
2133
|
finished: S,
|
|
2136
2134
|
setFinished: L,
|
|
2137
2135
|
locale: u,
|
|
2138
2136
|
setLocale: p,
|
|
2139
|
-
modeInstance:
|
|
2140
|
-
setModeInstance:
|
|
2137
|
+
modeInstance: h,
|
|
2138
|
+
setModeInstance: w,
|
|
2141
2139
|
positions: v,
|
|
2142
2140
|
setPositions: k,
|
|
2143
2141
|
unit: F,
|
|
2144
2142
|
setUnit: V,
|
|
2145
2143
|
clearLayer: A,
|
|
2146
2144
|
toggleLayer: $
|
|
2147
|
-
} =
|
|
2145
|
+
} = Rt(o);
|
|
2148
2146
|
let q;
|
|
2149
|
-
e[2] !==
|
|
2150
|
-
if (
|
|
2151
|
-
const T = i[
|
|
2152
|
-
|
|
2147
|
+
e[2] !== g || e[3] !== i || e[4] !== w || e[5] !== k ? (q = () => {
|
|
2148
|
+
if (g && i[g]) {
|
|
2149
|
+
const T = i[g].mode;
|
|
2150
|
+
w(new T());
|
|
2153
2151
|
}
|
|
2154
2152
|
return () => {
|
|
2155
2153
|
k([]);
|
|
2156
2154
|
};
|
|
2157
|
-
}, e[2] =
|
|
2158
|
-
let
|
|
2159
|
-
e[7] !==
|
|
2155
|
+
}, e[2] = g, e[3] = i, e[4] = w, e[5] = k, e[6] = q) : q = e[6];
|
|
2156
|
+
let D;
|
|
2157
|
+
e[7] !== g || e[8] !== i || e[9] !== M || e[10] !== w || e[11] !== k ? (D = [i, g, k, w, M], e[7] = g, e[8] = i, e[9] = M, e[10] = w, e[11] = k, e[12] = D) : D = e[12], J(q, D);
|
|
2160
2158
|
let _;
|
|
2161
2159
|
e[13] !== $ || e[14] !== A || e[15] !== m || e[16] !== S ? (_ = (T) => {
|
|
2162
2160
|
T && (m || !S) && A(), $(T);
|
|
2163
2161
|
}, e[13] = $, e[14] = A, e[15] = m, e[16] = S, e[17] = _) : _ = e[17];
|
|
2164
|
-
const
|
|
2162
|
+
const P = _, c = !!m;
|
|
2165
2163
|
let y;
|
|
2166
|
-
return e[18] !== r || e[19] !== A || e[20] !== l || e[21] !== f || e[22] !== S || e[23] !== u || e[24] !== t || e[25] !==
|
|
2164
|
+
return e[18] !== r || e[19] !== A || e[20] !== l || e[21] !== f || e[22] !== S || e[23] !== u || e[24] !== t || e[25] !== h || e[26] !== g || e[27] !== i || e[28] !== v || e[29] !== d || e[30] !== M || e[31] !== L || e[32] !== p || e[33] !== b || e[34] !== k || e[35] !== V || e[36] !== c || e[37] !== n || e[38] !== P || e[39] !== F || e[40] !== a ? (y = r({
|
|
2167
2165
|
mapId: t,
|
|
2168
2166
|
distance: l,
|
|
2169
2167
|
enabled: f,
|
|
@@ -2172,7 +2170,7 @@ function As(s) {
|
|
|
2172
2170
|
positions: v,
|
|
2173
2171
|
unit: F,
|
|
2174
2172
|
clearLayerOnStart: c,
|
|
2175
|
-
modeSelected:
|
|
2173
|
+
modeSelected: g,
|
|
2176
2174
|
modes: i,
|
|
2177
2175
|
units: a,
|
|
2178
2176
|
value: Ae({
|
|
@@ -2181,19 +2179,19 @@ function As(s) {
|
|
|
2181
2179
|
locale: u,
|
|
2182
2180
|
options: n
|
|
2183
2181
|
}),
|
|
2184
|
-
modeInstance:
|
|
2182
|
+
modeInstance: h,
|
|
2185
2183
|
setModeSelected: b,
|
|
2186
2184
|
setDistance: d,
|
|
2187
2185
|
setFinished: L,
|
|
2188
2186
|
setLocale: p,
|
|
2189
2187
|
setPositions: k,
|
|
2190
2188
|
setUnit: V,
|
|
2191
|
-
setEnabled:
|
|
2192
|
-
toggleLayer:
|
|
2189
|
+
setEnabled: M,
|
|
2190
|
+
toggleLayer: P,
|
|
2193
2191
|
clearLayer: A
|
|
2194
|
-
}), e[18] = r, e[19] = A, e[20] = l, e[21] = f, e[22] = S, e[23] = u, e[24] = t, e[25] =
|
|
2192
|
+
}), e[18] = r, e[19] = A, e[20] = l, e[21] = f, e[22] = S, e[23] = u, e[24] = t, e[25] = h, e[26] = g, e[27] = i, e[28] = v, e[29] = d, e[30] = M, e[31] = L, e[32] = p, e[33] = b, e[34] = k, e[35] = V, e[36] = c, e[37] = n, e[38] = P, e[39] = F, e[40] = a, e[41] = y) : y = e[41], y;
|
|
2195
2193
|
}
|
|
2196
|
-
const
|
|
2194
|
+
const Ds = [fe];
|
|
2197
2195
|
function Rs(s) {
|
|
2198
2196
|
const e = B(50), {
|
|
2199
2197
|
children: t,
|
|
@@ -2214,74 +2212,74 @@ function Rs(s) {
|
|
|
2214
2212
|
mapId: n
|
|
2215
2213
|
}, e[2] = n, e[3] = m) : m = e[3];
|
|
2216
2214
|
const {
|
|
2217
|
-
setDistance:
|
|
2215
|
+
setDistance: g,
|
|
2218
2216
|
clearLayerOnStart: b,
|
|
2219
2217
|
enabled: f,
|
|
2220
|
-
finished:
|
|
2218
|
+
finished: M,
|
|
2221
2219
|
setFinished: S,
|
|
2222
2220
|
locale: L,
|
|
2223
2221
|
setPositions: u,
|
|
2224
2222
|
unit: p,
|
|
2225
|
-
modeInstance:
|
|
2226
|
-
} =
|
|
2223
|
+
modeInstance: h
|
|
2224
|
+
} = Rt(m), w = Se(Bs), v = x(qs), k = x(Vs), F = x(Us);
|
|
2227
2225
|
let V;
|
|
2228
|
-
e[4] !== n ? (V = (I) => I.maps[n]?.layers.filter(
|
|
2229
|
-
const A = x(St(V)), $ = x(
|
|
2226
|
+
e[4] !== n ? (V = (I) => I.maps[n]?.layers.filter($s), e[4] = n, e[5] = V) : V = e[5];
|
|
2227
|
+
const A = x(St(V)), $ = x(xs);
|
|
2230
2228
|
let q;
|
|
2231
2229
|
e[6] === Symbol.for("react.memo_cache_sentinel") ? (q = {}, e[6] = q) : q = e[6];
|
|
2232
|
-
const
|
|
2230
|
+
const D = ke(q);
|
|
2233
2231
|
let _;
|
|
2234
2232
|
e[7] !== n ? (_ = {
|
|
2235
2233
|
mapId: n,
|
|
2236
2234
|
layerId: fe
|
|
2237
2235
|
}, e[7] = n, e[8] = _) : _ = e[8], kt(_);
|
|
2238
|
-
let
|
|
2239
|
-
e[9] !== k || e[10] !== f || e[11] !== $ || e[12] !== n || e[13] !== F || e[14] !== v ? (
|
|
2236
|
+
let P;
|
|
2237
|
+
e[9] !== k || e[10] !== f || e[11] !== $ || e[12] !== n || e[13] !== F || e[14] !== v ? (P = () => {
|
|
2240
2238
|
const I = $(n)?.props.controller;
|
|
2241
2239
|
return f && (k(n, [fe]), v(n, {
|
|
2242
2240
|
doubleClickZoom: !1
|
|
2243
2241
|
})), () => {
|
|
2244
2242
|
F(n, [fe]), v(n, I);
|
|
2245
2243
|
};
|
|
2246
|
-
}, e[9] = k, e[10] = f, e[11] = $, e[12] = n, e[13] = F, e[14] = v, e[15] =
|
|
2244
|
+
}, e[9] = k, e[10] = f, e[11] = $, e[12] = n, e[13] = F, e[14] = v, e[15] = P) : P = e[15];
|
|
2247
2245
|
let c;
|
|
2248
|
-
e[16] !== k || e[17] !== b || e[18] !== f || e[19] !== $ || e[20] !== n || e[21] !== F || e[22] !== v ? (c = [k, b, n, F, f, $, v], e[16] = k, e[17] = b, e[18] = f, e[19] = $, e[20] = n, e[21] = F, e[22] = v, e[23] = c) : c = e[23], J(
|
|
2246
|
+
e[16] !== k || e[17] !== b || e[18] !== f || e[19] !== $ || e[20] !== n || e[21] !== F || e[22] !== v ? (c = [k, b, n, F, f, $, v], e[16] = k, e[17] = b, e[18] = f, e[19] = $, e[20] = n, e[21] = F, e[22] = v, e[23] = c) : c = e[23], J(P, c);
|
|
2249
2247
|
let y, T;
|
|
2250
|
-
e[24] !== f || e[25] !== $ || e[26] !== n || e[27] !== A || e[28] !==
|
|
2248
|
+
e[24] !== f || e[25] !== $ || e[26] !== n || e[27] !== A || e[28] !== w ? (y = () => {
|
|
2251
2249
|
A?.forEach((I) => {
|
|
2252
2250
|
const N = $(n)?.props.layers.find((Z) => Z.props.id === I);
|
|
2253
2251
|
if (!N)
|
|
2254
2252
|
return;
|
|
2255
|
-
f && (
|
|
2256
|
-
const U = !f && (
|
|
2257
|
-
|
|
2253
|
+
f && (D.current[I] = N?.props.pickable);
|
|
2254
|
+
const U = !f && (D.current[I] ?? N?.props.pickable);
|
|
2255
|
+
w(I, {
|
|
2258
2256
|
props: {
|
|
2259
2257
|
pickable: U
|
|
2260
2258
|
}
|
|
2261
2259
|
});
|
|
2262
2260
|
});
|
|
2263
|
-
}, T = [f, $, n, A,
|
|
2264
|
-
let
|
|
2265
|
-
e[31] !==
|
|
2261
|
+
}, T = [f, $, n, A, w], e[24] = f, e[25] = $, e[26] = n, e[27] = A, e[28] = w, e[29] = y, e[30] = T) : (y = e[29], T = e[30]), J(y, T);
|
|
2262
|
+
let O;
|
|
2263
|
+
e[31] !== h || e[32] !== g || e[33] !== S || e[34] !== u ? (O = (I) => {
|
|
2266
2264
|
const {
|
|
2267
2265
|
editType: N,
|
|
2268
2266
|
editContext: U
|
|
2269
2267
|
} = I;
|
|
2270
2268
|
if (N === re.cancel) {
|
|
2271
|
-
|
|
2269
|
+
h.resetClickSequence();
|
|
2272
2270
|
return;
|
|
2273
2271
|
}
|
|
2274
|
-
N === re.addPosition &&
|
|
2272
|
+
N === re.addPosition && g(U.distance), S(!!U.finished);
|
|
2275
2273
|
const Z = U.positions;
|
|
2276
2274
|
Z?.length && u(Z);
|
|
2277
|
-
}, e[31] =
|
|
2278
|
-
const C =
|
|
2275
|
+
}, e[31] = h, e[32] = g, e[33] = S, e[34] = u, e[35] = O) : O = e[35];
|
|
2276
|
+
const C = O;
|
|
2279
2277
|
let E, j;
|
|
2280
|
-
return e[36] !== f || e[37] !==
|
|
2281
|
-
const I =
|
|
2278
|
+
return e[36] !== f || e[37] !== M || e[38] !== o || e[39] !== L || e[40] !== h || e[41] !== C || e[42] !== w || e[43] !== d.colors.editing || e[44] !== d.colors.finished || e[45] !== d.colors.point || e[46] !== i || e[47] !== p ? (E = () => {
|
|
2279
|
+
const I = M ? d.colors.finished : d.colors.editing, N = M ? d.colors.finished : d.colors.point, U = vs({
|
|
2282
2280
|
layerProps: {
|
|
2283
2281
|
...o,
|
|
2284
|
-
pickable: o?.pickable ?? !
|
|
2282
|
+
pickable: o?.pickable ?? !M
|
|
2285
2283
|
},
|
|
2286
2284
|
enabled: f,
|
|
2287
2285
|
guideColor: I,
|
|
@@ -2289,32 +2287,32 @@ function Rs(s) {
|
|
|
2289
2287
|
locale: L,
|
|
2290
2288
|
onEdit: C,
|
|
2291
2289
|
unit: p,
|
|
2292
|
-
mode:
|
|
2290
|
+
mode: h,
|
|
2293
2291
|
textOptions: i
|
|
2294
2292
|
});
|
|
2295
|
-
|
|
2296
|
-
}, j = [
|
|
2297
|
-
}
|
|
2298
|
-
function Ds(s) {
|
|
2299
|
-
return s.getDeckInstance;
|
|
2293
|
+
w(fe, U);
|
|
2294
|
+
}, j = [M, h, o, L, C, w, d.colors.editing, d.colors.finished, d.colors.point, i, p, f], e[36] = f, e[37] = M, e[38] = o, e[39] = L, e[40] = h, e[41] = C, e[42] = w, e[43] = d.colors.editing, e[44] = d.colors.finished, e[45] = d.colors.point, e[46] = i, e[47] = p, e[48] = E, e[49] = j) : (E = e[48], j = e[49]), J(E, j), t;
|
|
2300
2295
|
}
|
|
2301
2296
|
function xs(s) {
|
|
2302
|
-
return
|
|
2297
|
+
return s.getDeckInstance;
|
|
2303
2298
|
}
|
|
2304
2299
|
function $s(s) {
|
|
2305
|
-
return s
|
|
2300
|
+
return !Ds.includes(s);
|
|
2306
2301
|
}
|
|
2307
2302
|
function Us(s) {
|
|
2308
|
-
return s.
|
|
2303
|
+
return s.removeLayers;
|
|
2309
2304
|
}
|
|
2310
2305
|
function Vs(s) {
|
|
2311
|
-
return s.
|
|
2306
|
+
return s.addLayers;
|
|
2312
2307
|
}
|
|
2313
2308
|
function qs(s) {
|
|
2314
|
-
return s.
|
|
2309
|
+
return s.setController;
|
|
2315
2310
|
}
|
|
2316
|
-
Rs.Controls = As;
|
|
2317
2311
|
function Bs(s) {
|
|
2312
|
+
return s.setLayer;
|
|
2313
|
+
}
|
|
2314
|
+
Rs.Controls = Fs;
|
|
2315
|
+
function js(s) {
|
|
2318
2316
|
const e = B(7), {
|
|
2319
2317
|
mapId: t
|
|
2320
2318
|
} = s;
|
|
@@ -2322,28 +2320,28 @@ function Bs(s) {
|
|
|
2322
2320
|
e[0] !== t ? (n = (l) => l.maps[t], e[0] = t, e[1] = n) : n = e[1];
|
|
2323
2321
|
const {
|
|
2324
2322
|
layers: r
|
|
2325
|
-
} = x(n), o = Se(
|
|
2323
|
+
} = x(n), o = Se(Ns);
|
|
2326
2324
|
let i;
|
|
2327
2325
|
if (e[2] !== o || e[3] !== r) {
|
|
2328
2326
|
let l;
|
|
2329
|
-
e[5] !== o ? (l = (d) => o[d], e[5] = o, e[6] = l) : l = e[6], i = r.map(l).filter(
|
|
2327
|
+
e[5] !== o ? (l = (d) => o[d], e[5] = o, e[6] = l) : l = e[6], i = r.map(l).filter(Is), e[2] = o, e[3] = r, e[4] = i;
|
|
2330
2328
|
} else
|
|
2331
2329
|
i = e[4];
|
|
2332
2330
|
return i;
|
|
2333
2331
|
}
|
|
2334
|
-
function
|
|
2332
|
+
function Is(s) {
|
|
2335
2333
|
return !!s;
|
|
2336
2334
|
}
|
|
2337
|
-
function
|
|
2335
|
+
function Ns(s) {
|
|
2338
2336
|
return s.layers;
|
|
2339
2337
|
}
|
|
2340
|
-
const ct = [
|
|
2338
|
+
const ct = [Pe, he, fe];
|
|
2341
2339
|
function xt(s) {
|
|
2342
2340
|
const e = s.filter((n) => !ct.includes(n.props.id)).sort((n, r) => (n.order ?? 1 / 0) - (r.order ?? 1 / 0)), t = ct.map((n) => s.find((r) => r.props.id === n)).filter((n) => !!n);
|
|
2343
2341
|
return [...e, ...t];
|
|
2344
2342
|
}
|
|
2345
|
-
const
|
|
2346
|
-
function
|
|
2343
|
+
const Hs = 200;
|
|
2344
|
+
function fo(s) {
|
|
2347
2345
|
const e = B(51);
|
|
2348
2346
|
let t, n, r, o;
|
|
2349
2347
|
e[0] !== s ? ({
|
|
@@ -2360,18 +2358,18 @@ function uo(s) {
|
|
|
2360
2358
|
const d = x(l);
|
|
2361
2359
|
let m;
|
|
2362
2360
|
e[9] !== t ? (m = (E) => E.maps[t].overlayRef, e[9] = t, e[10] = m) : m = e[10];
|
|
2363
|
-
const
|
|
2361
|
+
const g = x(m), b = ke(null);
|
|
2364
2362
|
let f;
|
|
2365
2363
|
e[11] !== t ? (f = (E) => E.viewStates[t], e[11] = t, e[12] = f) : f = e[12];
|
|
2366
|
-
const
|
|
2364
|
+
const M = x(f);
|
|
2367
2365
|
let S;
|
|
2368
2366
|
e[13] !== t ? (S = (E) => E.maps[t].controller, e[13] = t, e[14] = S) : S = e[14];
|
|
2369
|
-
const L = x(S), u = x(
|
|
2367
|
+
const L = x(S), u = x(Ys), p = x(Ks), h = x(Ws), w = x(Gs), v = x(zs);
|
|
2370
2368
|
let k;
|
|
2371
2369
|
e[15] !== t ? (k = {
|
|
2372
2370
|
mapId: t
|
|
2373
2371
|
}, e[15] = t, e[16] = k) : k = e[16];
|
|
2374
|
-
const F =
|
|
2372
|
+
const F = js(k);
|
|
2375
2373
|
let V;
|
|
2376
2374
|
e[17] !== F ? (V = xt(F), e[17] = F, e[18] = V) : V = e[18];
|
|
2377
2375
|
const A = V;
|
|
@@ -2380,53 +2378,53 @@ function uo(s) {
|
|
|
2380
2378
|
const j = p;
|
|
2381
2379
|
if (b.current && clearInterval(b.current), b.current = setTimeout(() => {
|
|
2382
2380
|
v(t);
|
|
2383
|
-
},
|
|
2381
|
+
}, Hs), r) {
|
|
2384
2382
|
r(E, j);
|
|
2385
2383
|
return;
|
|
2386
2384
|
}
|
|
2387
2385
|
j(t, E.viewState);
|
|
2388
2386
|
}, e[19] = t, e[20] = r, e[21] = p, e[22] = v, e[23] = $) : $ = e[23];
|
|
2389
2387
|
const q = $;
|
|
2390
|
-
let
|
|
2391
|
-
e[24] !== t || e[25] !== n || e[26] !==
|
|
2392
|
-
|
|
2393
|
-
}, e[24] = t, e[25] = n, e[26] =
|
|
2394
|
-
const _ =
|
|
2395
|
-
let
|
|
2396
|
-
e[29] !== u || e[30] !== t || e[31] !== o || e[32] !==
|
|
2397
|
-
const I = !!u(t)?.props.layers?.every(
|
|
2398
|
-
|
|
2399
|
-
}, e[29] = u, e[30] = t, e[31] = o, e[32] =
|
|
2400
|
-
const c =
|
|
2388
|
+
let D;
|
|
2389
|
+
e[24] !== t || e[25] !== n || e[26] !== h || e[27] !== v ? (D = (E) => {
|
|
2390
|
+
h(t, E), n?.(E), v(t);
|
|
2391
|
+
}, e[24] = t, e[25] = n, e[26] = h, e[27] = v, e[28] = D) : D = e[28];
|
|
2392
|
+
const _ = D;
|
|
2393
|
+
let P;
|
|
2394
|
+
e[29] !== u || e[30] !== t || e[31] !== o || e[32] !== w ? (P = (E) => {
|
|
2395
|
+
const I = !!u(t)?.props.layers?.every(Zs);
|
|
2396
|
+
w(t, I), o.onAfterRender?.(E);
|
|
2397
|
+
}, e[29] = u, e[30] = t, e[31] = o, e[32] = w, e[33] = P) : P = e[33];
|
|
2398
|
+
const c = P, y = o.onDragEnd;
|
|
2401
2399
|
let T;
|
|
2402
2400
|
e[34] !== y || e[35] !== t || e[36] !== v ? (T = (...E) => {
|
|
2403
2401
|
const j = E;
|
|
2404
2402
|
v(t), y && y(...j);
|
|
2405
2403
|
}, e[34] = y, e[35] = t, e[36] = v, e[37] = T) : T = e[37];
|
|
2406
|
-
const
|
|
2404
|
+
const O = T;
|
|
2407
2405
|
let C;
|
|
2408
|
-
return e[38] !== a || e[39] !== A || e[40] !== L || e[41] !== c || e[42] !==
|
|
2406
|
+
return e[38] !== a || e[39] !== A || e[40] !== L || e[41] !== c || e[42] !== O || e[43] !== _ || e[44] !== q || e[45] !== t || e[46] !== d || e[47] !== g || e[48] !== o || e[49] !== M ? (C = /* @__PURE__ */ G($n, { ...o, controller: L, id: t, layers: A, instanceRef: d, overlayRef: g, basemap: a, initialViewState: M, onLoad: _, onViewStateChange: q, onAfterRender: c, onDragEnd: O }), e[38] = a, e[39] = A, e[40] = L, e[41] = c, e[42] = O, e[43] = _, e[44] = q, e[45] = t, e[46] = d, e[47] = g, e[48] = o, e[49] = M, e[50] = C) : C = e[50], C;
|
|
2409
2407
|
}
|
|
2410
|
-
function
|
|
2408
|
+
function Zs(s) {
|
|
2411
2409
|
return s?.isLoaded;
|
|
2412
2410
|
}
|
|
2413
|
-
function
|
|
2411
|
+
function zs(s) {
|
|
2414
2412
|
return s.updateViewPort;
|
|
2415
2413
|
}
|
|
2416
|
-
function
|
|
2414
|
+
function Gs(s) {
|
|
2417
2415
|
return s.setLayersLoad;
|
|
2418
2416
|
}
|
|
2419
|
-
function
|
|
2417
|
+
function Ws(s) {
|
|
2420
2418
|
return s.setLoad;
|
|
2421
2419
|
}
|
|
2422
|
-
function
|
|
2420
|
+
function Ks(s) {
|
|
2423
2421
|
return s.setViewState;
|
|
2424
2422
|
}
|
|
2425
|
-
function
|
|
2423
|
+
function Ys(s) {
|
|
2426
2424
|
return s.getDeckInstance;
|
|
2427
2425
|
}
|
|
2428
2426
|
var Le = { exports: {} }, ut;
|
|
2429
|
-
function
|
|
2427
|
+
function Js() {
|
|
2430
2428
|
return ut || (ut = 1, (function(s, e) {
|
|
2431
2429
|
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Ee < "u" && Ee, n = (function() {
|
|
2432
2430
|
function o() {
|
|
@@ -2464,7 +2462,7 @@ function Ys() {
|
|
|
2464
2462
|
"[object Uint32Array]",
|
|
2465
2463
|
"[object Float32Array]",
|
|
2466
2464
|
"[object Float64Array]"
|
|
2467
|
-
],
|
|
2465
|
+
], g = ArrayBuffer.isView || function(c) {
|
|
2468
2466
|
return c && m.indexOf(Object.prototype.toString.call(c)) > -1;
|
|
2469
2467
|
};
|
|
2470
2468
|
function b(c) {
|
|
@@ -2475,7 +2473,7 @@ function Ys() {
|
|
|
2475
2473
|
function f(c) {
|
|
2476
2474
|
return typeof c != "string" && (c = String(c)), c;
|
|
2477
2475
|
}
|
|
2478
|
-
function
|
|
2476
|
+
function M(c) {
|
|
2479
2477
|
var y = {
|
|
2480
2478
|
next: function() {
|
|
2481
2479
|
var T = c.shift();
|
|
@@ -2516,17 +2514,17 @@ function Ys() {
|
|
|
2516
2514
|
var c = [];
|
|
2517
2515
|
return this.forEach(function(y, T) {
|
|
2518
2516
|
c.push(T);
|
|
2519
|
-
}),
|
|
2517
|
+
}), M(c);
|
|
2520
2518
|
}, S.prototype.values = function() {
|
|
2521
2519
|
var c = [];
|
|
2522
2520
|
return this.forEach(function(y) {
|
|
2523
2521
|
c.push(y);
|
|
2524
|
-
}),
|
|
2522
|
+
}), M(c);
|
|
2525
2523
|
}, S.prototype.entries = function() {
|
|
2526
2524
|
var c = [];
|
|
2527
2525
|
return this.forEach(function(y, T) {
|
|
2528
2526
|
c.push([T, y]);
|
|
2529
|
-
}),
|
|
2527
|
+
}), M(c);
|
|
2530
2528
|
}, l.iterable && (S.prototype[Symbol.iterator] = S.prototype.entries);
|
|
2531
2529
|
function L(c) {
|
|
2532
2530
|
if (!c._noBody) {
|
|
@@ -2548,13 +2546,13 @@ function Ys() {
|
|
|
2548
2546
|
var y = new FileReader(), T = u(y);
|
|
2549
2547
|
return y.readAsArrayBuffer(c), T;
|
|
2550
2548
|
}
|
|
2551
|
-
function
|
|
2552
|
-
var y = new FileReader(), T = u(y),
|
|
2549
|
+
function h(c) {
|
|
2550
|
+
var y = new FileReader(), T = u(y), O = /charset=([A-Za-z0-9_-]+)/.exec(c.type), C = O ? O[1] : "utf-8";
|
|
2553
2551
|
return y.readAsText(c, C), T;
|
|
2554
2552
|
}
|
|
2555
|
-
function
|
|
2556
|
-
for (var y = new Uint8Array(c), T = new Array(y.length),
|
|
2557
|
-
T[
|
|
2553
|
+
function w(c) {
|
|
2554
|
+
for (var y = new Uint8Array(c), T = new Array(y.length), O = 0; O < y.length; O++)
|
|
2555
|
+
T[O] = String.fromCharCode(y[O]);
|
|
2558
2556
|
return T.join("");
|
|
2559
2557
|
}
|
|
2560
2558
|
function v(c) {
|
|
@@ -2565,7 +2563,7 @@ function Ys() {
|
|
|
2565
2563
|
}
|
|
2566
2564
|
function k() {
|
|
2567
2565
|
return this.bodyUsed = !1, this._initBody = function(c) {
|
|
2568
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit = c, c ? typeof c == "string" ? this._bodyText = c : l.blob && Blob.prototype.isPrototypeOf(c) ? this._bodyBlob = c : l.formData && FormData.prototype.isPrototypeOf(c) ? this._bodyFormData = c : l.searchParams && URLSearchParams.prototype.isPrototypeOf(c) ? this._bodyText = c.toString() : l.arrayBuffer && l.blob && d(c) ? (this._bodyArrayBuffer = v(c.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(c) ||
|
|
2566
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = c, c ? typeof c == "string" ? this._bodyText = c : l.blob && Blob.prototype.isPrototypeOf(c) ? this._bodyBlob = c : l.formData && FormData.prototype.isPrototypeOf(c) ? this._bodyFormData = c : l.searchParams && URLSearchParams.prototype.isPrototypeOf(c) ? this._bodyText = c.toString() : l.arrayBuffer && l.blob && d(c) ? (this._bodyArrayBuffer = v(c.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(c) || g(c)) ? this._bodyArrayBuffer = v(c) : this._bodyText = c = Object.prototype.toString.call(c) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof c == "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(c) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2569
2567
|
}, l.blob && (this.blob = function() {
|
|
2570
2568
|
var c = L(this);
|
|
2571
2569
|
if (c)
|
|
@@ -2596,9 +2594,9 @@ function Ys() {
|
|
|
2596
2594
|
if (c)
|
|
2597
2595
|
return c;
|
|
2598
2596
|
if (this._bodyBlob)
|
|
2599
|
-
return
|
|
2597
|
+
return h(this._bodyBlob);
|
|
2600
2598
|
if (this._bodyArrayBuffer)
|
|
2601
|
-
return Promise.resolve(
|
|
2599
|
+
return Promise.resolve(w(this._bodyArrayBuffer));
|
|
2602
2600
|
if (this._bodyFormData)
|
|
2603
2601
|
throw new Error("could not read FormData body as text");
|
|
2604
2602
|
return Promise.resolve(this._bodyText);
|
|
@@ -2632,9 +2630,9 @@ function Ys() {
|
|
|
2632
2630
|
})(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && T)
|
|
2633
2631
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2634
2632
|
if (this._initBody(T), (this.method === "GET" || this.method === "HEAD") && (y.cache === "no-store" || y.cache === "no-cache")) {
|
|
2635
|
-
var
|
|
2636
|
-
if (
|
|
2637
|
-
this.url = this.url.replace(
|
|
2633
|
+
var O = /([?&])_=[^&]*/;
|
|
2634
|
+
if (O.test(this.url))
|
|
2635
|
+
this.url = this.url.replace(O, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
2638
2636
|
else {
|
|
2639
2637
|
var C = /\?/;
|
|
2640
2638
|
this.url += (C.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
|
|
@@ -2648,18 +2646,18 @@ function Ys() {
|
|
|
2648
2646
|
var y = new FormData();
|
|
2649
2647
|
return c.trim().split("&").forEach(function(T) {
|
|
2650
2648
|
if (T) {
|
|
2651
|
-
var
|
|
2649
|
+
var O = T.split("="), C = O.shift().replace(/\+/g, " "), E = O.join("=").replace(/\+/g, " ");
|
|
2652
2650
|
y.append(decodeURIComponent(C), decodeURIComponent(E));
|
|
2653
2651
|
}
|
|
2654
2652
|
}), y;
|
|
2655
2653
|
}
|
|
2656
2654
|
function q(c) {
|
|
2657
2655
|
var y = new S(), T = c.replace(/\r?\n[\t ]+/g, " ");
|
|
2658
|
-
return T.split("\r").map(function(
|
|
2659
|
-
return
|
|
2660
|
-
`) === 0 ?
|
|
2661
|
-
}).forEach(function(
|
|
2662
|
-
var C =
|
|
2656
|
+
return T.split("\r").map(function(O) {
|
|
2657
|
+
return O.indexOf(`
|
|
2658
|
+
`) === 0 ? O.substr(1, O.length) : O;
|
|
2659
|
+
}).forEach(function(O) {
|
|
2660
|
+
var C = O.split(":"), E = C.shift().trim();
|
|
2663
2661
|
if (E) {
|
|
2664
2662
|
var j = C.join(":").trim();
|
|
2665
2663
|
try {
|
|
@@ -2671,44 +2669,44 @@ function Ys() {
|
|
|
2671
2669
|
}), y;
|
|
2672
2670
|
}
|
|
2673
2671
|
k.call(A.prototype);
|
|
2674
|
-
function
|
|
2675
|
-
if (!(this instanceof
|
|
2672
|
+
function D(c, y) {
|
|
2673
|
+
if (!(this instanceof D))
|
|
2676
2674
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2677
2675
|
if (y || (y = {}), this.type = "default", this.status = y.status === void 0 ? 200 : y.status, this.status < 200 || this.status > 599)
|
|
2678
2676
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2679
2677
|
this.ok = this.status >= 200 && this.status < 300, this.statusText = y.statusText === void 0 ? "" : "" + y.statusText, this.headers = new S(y.headers), this.url = y.url || "", this._initBody(c);
|
|
2680
2678
|
}
|
|
2681
|
-
k.call(
|
|
2682
|
-
return new
|
|
2679
|
+
k.call(D.prototype), D.prototype.clone = function() {
|
|
2680
|
+
return new D(this._bodyInit, {
|
|
2683
2681
|
status: this.status,
|
|
2684
2682
|
statusText: this.statusText,
|
|
2685
2683
|
headers: new S(this.headers),
|
|
2686
2684
|
url: this.url
|
|
2687
2685
|
});
|
|
2688
|
-
},
|
|
2689
|
-
var c = new
|
|
2686
|
+
}, D.error = function() {
|
|
2687
|
+
var c = new D(null, { status: 200, statusText: "" });
|
|
2690
2688
|
return c.ok = !1, c.status = 0, c.type = "error", c;
|
|
2691
2689
|
};
|
|
2692
2690
|
var _ = [301, 302, 303, 307, 308];
|
|
2693
|
-
|
|
2691
|
+
D.redirect = function(c, y) {
|
|
2694
2692
|
if (_.indexOf(y) === -1)
|
|
2695
2693
|
throw new RangeError("Invalid status code");
|
|
2696
|
-
return new
|
|
2694
|
+
return new D(null, { status: y, headers: { location: c } });
|
|
2697
2695
|
}, i.DOMException = a.DOMException;
|
|
2698
2696
|
try {
|
|
2699
2697
|
new i.DOMException();
|
|
2700
2698
|
} catch {
|
|
2701
2699
|
i.DOMException = function(y, T) {
|
|
2702
2700
|
this.message = y, this.name = T;
|
|
2703
|
-
var
|
|
2704
|
-
this.stack =
|
|
2701
|
+
var O = Error(y);
|
|
2702
|
+
this.stack = O.stack;
|
|
2705
2703
|
}, i.DOMException.prototype = Object.create(Error.prototype), i.DOMException.prototype.constructor = i.DOMException;
|
|
2706
2704
|
}
|
|
2707
|
-
function
|
|
2708
|
-
return new Promise(function(T,
|
|
2705
|
+
function P(c, y) {
|
|
2706
|
+
return new Promise(function(T, O) {
|
|
2709
2707
|
var C = new A(c, y);
|
|
2710
2708
|
if (C.signal && C.signal.aborted)
|
|
2711
|
-
return
|
|
2709
|
+
return O(new i.DOMException("Aborted", "AbortError"));
|
|
2712
2710
|
var E = new XMLHttpRequest();
|
|
2713
2711
|
function j() {
|
|
2714
2712
|
E.abort();
|
|
@@ -2721,19 +2719,19 @@ function Ys() {
|
|
|
2721
2719
|
C.url.indexOf("file://") === 0 && (E.status < 200 || E.status > 599) ? U.status = 200 : U.status = E.status, U.url = "responseURL" in E ? E.responseURL : U.headers.get("X-Request-URL");
|
|
2722
2720
|
var Z = "response" in E ? E.response : E.responseText;
|
|
2723
2721
|
setTimeout(function() {
|
|
2724
|
-
T(new
|
|
2722
|
+
T(new D(Z, U));
|
|
2725
2723
|
}, 0);
|
|
2726
2724
|
}, E.onerror = function() {
|
|
2727
2725
|
setTimeout(function() {
|
|
2728
|
-
|
|
2726
|
+
O(new TypeError("Network request failed"));
|
|
2729
2727
|
}, 0);
|
|
2730
2728
|
}, E.ontimeout = function() {
|
|
2731
2729
|
setTimeout(function() {
|
|
2732
|
-
|
|
2730
|
+
O(new TypeError("Network request timed out"));
|
|
2733
2731
|
}, 0);
|
|
2734
2732
|
}, E.onabort = function() {
|
|
2735
2733
|
setTimeout(function() {
|
|
2736
|
-
|
|
2734
|
+
O(new i.DOMException("Aborted", "AbortError"));
|
|
2737
2735
|
}, 0);
|
|
2738
2736
|
};
|
|
2739
2737
|
function I(U) {
|
|
@@ -2759,34 +2757,34 @@ function Ys() {
|
|
|
2759
2757
|
}), E.send(typeof C._bodyInit > "u" ? null : C._bodyInit);
|
|
2760
2758
|
});
|
|
2761
2759
|
}
|
|
2762
|
-
return
|
|
2760
|
+
return P.polyfill = !0, a.fetch || (a.fetch = P, a.Headers = S, a.Request = A, a.Response = D), i.Headers = S, i.Request = A, i.Response = D, i.fetch = P, i;
|
|
2763
2761
|
})({});
|
|
2764
2762
|
})(n), n.fetch.ponyfill = !0, delete n.fetch.polyfill;
|
|
2765
2763
|
var r = t.fetch ? t : n;
|
|
2766
2764
|
e = r.fetch, e.default = r.fetch, e.fetch = r.fetch, e.Headers = r.Headers, e.Request = r.Request, e.Response = r.Response, s.exports = e;
|
|
2767
2765
|
})(Le, Le.exports)), Le.exports;
|
|
2768
2766
|
}
|
|
2769
|
-
var
|
|
2770
|
-
const
|
|
2767
|
+
var Qs = Js();
|
|
2768
|
+
const Xs = /* @__PURE__ */ Et(Qs), We = "https://gcp-us-east1.api.carto.com", Ke = "v3", er = "ps", be = {
|
|
2771
2769
|
get: "GET",
|
|
2772
2770
|
post: "POST"
|
|
2773
2771
|
};
|
|
2774
|
-
function
|
|
2772
|
+
function tr(s, e) {
|
|
2775
2773
|
return Array.isArray(e) ? `${s}=${encodeURIComponent(JSON.stringify(e))}` : e == null || e === "" ? "" : typeof e == "object" ? `${s}=${encodeURIComponent(JSON.stringify(e))}` : `${s}=${encodeURIComponent(e)}`;
|
|
2776
2774
|
}
|
|
2777
|
-
function
|
|
2775
|
+
function nr({
|
|
2778
2776
|
params: s,
|
|
2779
2777
|
url: e
|
|
2780
2778
|
}) {
|
|
2781
2779
|
if (!s) return e;
|
|
2782
|
-
const t = Object.entries(s).map(([n, r]) =>
|
|
2780
|
+
const t = Object.entries(s).map(([n, r]) => tr(n, r));
|
|
2783
2781
|
return `${e}?${t.filter(Boolean).join("&")}`;
|
|
2784
2782
|
}
|
|
2785
|
-
function
|
|
2783
|
+
function sr(s) {
|
|
2786
2784
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
2787
2785
|
}
|
|
2788
2786
|
var qe, dt;
|
|
2789
|
-
function
|
|
2787
|
+
function rr() {
|
|
2790
2788
|
if (dt) return qe;
|
|
2791
2789
|
dt = 1;
|
|
2792
2790
|
var s = function(u) {
|
|
@@ -2809,22 +2807,22 @@ function sr() {
|
|
|
2809
2807
|
function a(u, p) {
|
|
2810
2808
|
return p.clone !== !1 && p.isMergeableObject(u) ? S(i(u), u, p) : u;
|
|
2811
2809
|
}
|
|
2812
|
-
function l(u, p,
|
|
2813
|
-
return u.concat(p).map(function(
|
|
2814
|
-
return a(
|
|
2810
|
+
function l(u, p, h) {
|
|
2811
|
+
return u.concat(p).map(function(w) {
|
|
2812
|
+
return a(w, h);
|
|
2815
2813
|
});
|
|
2816
2814
|
}
|
|
2817
2815
|
function d(u, p) {
|
|
2818
2816
|
if (!p.customMerge) return S;
|
|
2819
|
-
var
|
|
2820
|
-
return typeof
|
|
2817
|
+
var h = p.customMerge(u);
|
|
2818
|
+
return typeof h == "function" ? h : S;
|
|
2821
2819
|
}
|
|
2822
2820
|
function m(u) {
|
|
2823
2821
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(p) {
|
|
2824
2822
|
return Object.propertyIsEnumerable.call(u, p);
|
|
2825
2823
|
}) : [];
|
|
2826
2824
|
}
|
|
2827
|
-
function
|
|
2825
|
+
function g(u) {
|
|
2828
2826
|
return Object.keys(u).concat(m(u));
|
|
2829
2827
|
}
|
|
2830
2828
|
function b(u, p) {
|
|
@@ -2837,30 +2835,30 @@ function sr() {
|
|
|
2837
2835
|
function f(u, p) {
|
|
2838
2836
|
return b(u, p) && !(Object.hasOwnProperty.call(u, p) && Object.propertyIsEnumerable.call(u, p));
|
|
2839
2837
|
}
|
|
2840
|
-
function
|
|
2841
|
-
var
|
|
2842
|
-
return
|
|
2843
|
-
|
|
2844
|
-
}),
|
|
2845
|
-
f(u, v) || (b(u, v) &&
|
|
2846
|
-
}),
|
|
2838
|
+
function M(u, p, h) {
|
|
2839
|
+
var w = {};
|
|
2840
|
+
return h.isMergeableObject(u) && g(u).forEach(function(v) {
|
|
2841
|
+
w[v] = a(u[v], h);
|
|
2842
|
+
}), g(p).forEach(function(v) {
|
|
2843
|
+
f(u, v) || (b(u, v) && h.isMergeableObject(p[v]) ? w[v] = d(v, h)(u[v], p[v], h) : w[v] = a(p[v], h));
|
|
2844
|
+
}), w;
|
|
2847
2845
|
}
|
|
2848
|
-
function S(u, p,
|
|
2849
|
-
|
|
2850
|
-
var
|
|
2851
|
-
return k ?
|
|
2846
|
+
function S(u, p, h) {
|
|
2847
|
+
h = h || {}, h.arrayMerge = h.arrayMerge || l, h.isMergeableObject = h.isMergeableObject || s, h.cloneUnlessOtherwiseSpecified = a;
|
|
2848
|
+
var w = Array.isArray(p), v = Array.isArray(u), k = w === v;
|
|
2849
|
+
return k ? w ? h.arrayMerge(u, p, h) : M(u, p, h) : a(p, h);
|
|
2852
2850
|
}
|
|
2853
2851
|
S.all = function(u, p) {
|
|
2854
2852
|
if (!Array.isArray(u)) throw new Error("first argument should be an array");
|
|
2855
|
-
return u.reduce(function(
|
|
2856
|
-
return S(
|
|
2853
|
+
return u.reduce(function(h, w) {
|
|
2854
|
+
return S(h, w, p);
|
|
2857
2855
|
}, {});
|
|
2858
2856
|
};
|
|
2859
2857
|
var L = S;
|
|
2860
2858
|
return qe = L, qe;
|
|
2861
2859
|
}
|
|
2862
|
-
var
|
|
2863
|
-
const Ye = /* @__PURE__ */
|
|
2860
|
+
var or = rr();
|
|
2861
|
+
const Ye = /* @__PURE__ */ sr(or);
|
|
2864
2862
|
function ft(s) {
|
|
2865
2863
|
return Ye({
|
|
2866
2864
|
method: be.get,
|
|
@@ -2879,21 +2877,21 @@ function Be(s, e) {
|
|
|
2879
2877
|
body: JSON.stringify(e)
|
|
2880
2878
|
}, s);
|
|
2881
2879
|
}
|
|
2882
|
-
const
|
|
2880
|
+
const ir = {
|
|
2883
2881
|
GET: ft,
|
|
2884
2882
|
POST: Be,
|
|
2885
2883
|
PUT: Be,
|
|
2886
2884
|
PATCH: Be,
|
|
2887
2885
|
DELETE: ft
|
|
2888
2886
|
};
|
|
2889
|
-
function
|
|
2887
|
+
function ar({
|
|
2890
2888
|
body: s,
|
|
2891
2889
|
accessToken: e,
|
|
2892
2890
|
method: t,
|
|
2893
2891
|
...n
|
|
2894
2892
|
}) {
|
|
2895
2893
|
let r = e;
|
|
2896
|
-
return r && !r.includes("Bearer") && (r = "Bearer " + r),
|
|
2894
|
+
return r && !r.includes("Bearer") && (r = "Bearer " + r), ir[t](Ye({
|
|
2897
2895
|
method: t,
|
|
2898
2896
|
headers: {
|
|
2899
2897
|
...!!r && {
|
|
@@ -2902,7 +2900,7 @@ function ir({
|
|
|
2902
2900
|
}
|
|
2903
2901
|
}, n), s);
|
|
2904
2902
|
}
|
|
2905
|
-
const
|
|
2903
|
+
const lr = 6144;
|
|
2906
2904
|
async function $t({
|
|
2907
2905
|
signal: s,
|
|
2908
2906
|
body: e,
|
|
@@ -2914,30 +2912,30 @@ async function $t({
|
|
|
2914
2912
|
requestOptions: {
|
|
2915
2913
|
getMaxUrlLength: a
|
|
2916
2914
|
} = {
|
|
2917
|
-
getMaxUrlLength:
|
|
2915
|
+
getMaxUrlLength: lr
|
|
2918
2916
|
},
|
|
2919
2917
|
...l
|
|
2920
2918
|
}) {
|
|
2921
|
-
let d =
|
|
2919
|
+
let d = nr({
|
|
2922
2920
|
url: i,
|
|
2923
2921
|
params: o
|
|
2924
|
-
}), m = e,
|
|
2925
|
-
r === be.get && d.length > a && (m = o,
|
|
2926
|
-
const b =
|
|
2922
|
+
}), m = e, g = r;
|
|
2923
|
+
r === be.get && d.length > a && (m = o, g = be.post, d = i);
|
|
2924
|
+
const b = ar({
|
|
2927
2925
|
body: m,
|
|
2928
2926
|
accessToken: t ?? n?.accessToken,
|
|
2929
|
-
method:
|
|
2927
|
+
method: g,
|
|
2930
2928
|
...l
|
|
2931
2929
|
});
|
|
2932
2930
|
s && (b.signal = s);
|
|
2933
|
-
const f = await
|
|
2931
|
+
const f = await Xs(d, b);
|
|
2934
2932
|
if (!f.ok) {
|
|
2935
|
-
const
|
|
2936
|
-
throw new Error(
|
|
2933
|
+
const M = await f.text();
|
|
2934
|
+
throw new Error(M);
|
|
2937
2935
|
}
|
|
2938
2936
|
return f.status === 204 ? Promise.resolve() : await f.json();
|
|
2939
2937
|
}
|
|
2940
|
-
const
|
|
2938
|
+
const Oe = ht()(Mn((s, e) => ({
|
|
2941
2939
|
sources: {},
|
|
2942
2940
|
filters: {},
|
|
2943
2941
|
setSource: (t, n) => s((r) => {
|
|
@@ -2947,12 +2945,12 @@ const Pe = ht()(Mn((s, e) => ({
|
|
|
2947
2945
|
i && (i.destroy(), delete o[t].widgets);
|
|
2948
2946
|
const a = o[t], l = {
|
|
2949
2947
|
apiBaseUrl: We,
|
|
2950
|
-
clientId:
|
|
2948
|
+
clientId: er,
|
|
2951
2949
|
apiVersion: Ke,
|
|
2952
2950
|
...a,
|
|
2953
2951
|
...n
|
|
2954
2952
|
};
|
|
2955
|
-
return l.widgets =
|
|
2953
|
+
return l.widgets = fr({
|
|
2956
2954
|
source: l
|
|
2957
2955
|
}), o[t] = l, {
|
|
2958
2956
|
sources: o
|
|
@@ -3014,24 +3012,24 @@ const Pe = ht()(Mn((s, e) => ({
|
|
|
3014
3012
|
}, n);
|
|
3015
3013
|
}
|
|
3016
3014
|
})));
|
|
3017
|
-
function
|
|
3015
|
+
function cr(s) {
|
|
3018
3016
|
const e = B(2);
|
|
3019
3017
|
let t;
|
|
3020
|
-
return e[0] !== s ? (t = (n) => n.sources[s], e[0] = s, e[1] = t) : t = e[1],
|
|
3018
|
+
return e[0] !== s ? (t = (n) => n.sources[s], e[0] = s, e[1] = t) : t = e[1], Oe(t);
|
|
3021
3019
|
}
|
|
3022
|
-
function
|
|
3020
|
+
function ur(s) {
|
|
3023
3021
|
const e = B(2);
|
|
3024
3022
|
let t;
|
|
3025
|
-
return e[0] !== s ? (t = (n) => n.filters[s], e[0] = s, e[1] = t) : t = e[1],
|
|
3023
|
+
return e[0] !== s ? (t = (n) => n.filters[s], e[0] = s, e[1] = t) : t = e[1], Oe(t);
|
|
3026
3024
|
}
|
|
3027
|
-
function
|
|
3025
|
+
function po(s) {
|
|
3028
3026
|
const e = B(9);
|
|
3029
3027
|
let t;
|
|
3030
3028
|
e[0] !== s ? (t = (a) => a.sources[s], e[0] = s, e[1] = t) : t = e[1];
|
|
3031
|
-
const n =
|
|
3029
|
+
const n = Oe(t);
|
|
3032
3030
|
let r;
|
|
3033
3031
|
e[2] !== s ? (r = (a) => a.filters[s], e[2] = s, e[3] = r) : r = e[3];
|
|
3034
|
-
const o =
|
|
3032
|
+
const o = Oe(r);
|
|
3035
3033
|
let i;
|
|
3036
3034
|
e: {
|
|
3037
3035
|
if (!n) {
|
|
@@ -3048,26 +3046,26 @@ function fo(s) {
|
|
|
3048
3046
|
}
|
|
3049
3047
|
return i;
|
|
3050
3048
|
}
|
|
3051
|
-
function
|
|
3049
|
+
function mo(s, {
|
|
3052
3050
|
column: e,
|
|
3053
3051
|
type: t
|
|
3054
3052
|
}) {
|
|
3055
3053
|
return s?.[e]?.[t]?.values ?? [];
|
|
3056
3054
|
}
|
|
3057
|
-
function
|
|
3055
|
+
function dr(s) {
|
|
3058
3056
|
const [, e] = s.type.split("+", 2);
|
|
3059
3057
|
return {
|
|
3060
3058
|
spatialDataType: s.spatialDataType ?? e ?? "geo",
|
|
3061
3059
|
spatialDataColumn: s.spatialDataColumn ?? e ?? "geom"
|
|
3062
3060
|
};
|
|
3063
3061
|
}
|
|
3064
|
-
function
|
|
3062
|
+
function fr({
|
|
3065
3063
|
source: s
|
|
3066
3064
|
}) {
|
|
3067
3065
|
const {
|
|
3068
3066
|
spatialDataType: e,
|
|
3069
3067
|
spatialDataColumn: t
|
|
3070
|
-
} =
|
|
3068
|
+
} = dr(s), n = {
|
|
3071
3069
|
query: () => {
|
|
3072
3070
|
const i = s;
|
|
3073
3071
|
return new Sn({
|
|
@@ -3115,8 +3113,8 @@ function dr({
|
|
|
3115
3113
|
}, r = s.type.split("+")[0], o = n[r];
|
|
3116
3114
|
return o?.();
|
|
3117
3115
|
}
|
|
3118
|
-
function
|
|
3119
|
-
const t = B(5), n =
|
|
3116
|
+
function pr(s, e) {
|
|
3117
|
+
const t = B(5), n = ur(s);
|
|
3120
3118
|
let r;
|
|
3121
3119
|
e: {
|
|
3122
3120
|
if (!e?.length) {
|
|
@@ -3125,12 +3123,12 @@ function fr(s, e) {
|
|
|
3125
3123
|
}
|
|
3126
3124
|
if (!n) {
|
|
3127
3125
|
let i;
|
|
3128
|
-
t[0] !== e ? (i = e.reduce(
|
|
3126
|
+
t[0] !== e ? (i = e.reduce(yr, {}), t[0] = e, t[1] = i) : i = t[1], r = i;
|
|
3129
3127
|
break e;
|
|
3130
3128
|
}
|
|
3131
3129
|
let o;
|
|
3132
3130
|
if (t[2] !== e || t[3] !== n) {
|
|
3133
|
-
const i = e.reduce(
|
|
3131
|
+
const i = e.reduce(mr, {});
|
|
3134
3132
|
o = me(n, i), t[2] = e, t[3] = n, t[4] = o;
|
|
3135
3133
|
} else
|
|
3136
3134
|
o = t[4];
|
|
@@ -3138,43 +3136,43 @@ function fr(s, e) {
|
|
|
3138
3136
|
}
|
|
3139
3137
|
return r;
|
|
3140
3138
|
}
|
|
3141
|
-
function pr(s, e) {
|
|
3142
|
-
return Ge(s, e);
|
|
3143
|
-
}
|
|
3144
3139
|
function mr(s, e) {
|
|
3145
3140
|
return Ge(s, e);
|
|
3146
3141
|
}
|
|
3147
3142
|
function yr(s, e) {
|
|
3148
|
-
|
|
3143
|
+
return Ge(s, e);
|
|
3144
|
+
}
|
|
3145
|
+
function hr(s, e) {
|
|
3146
|
+
const t = cr(e);
|
|
3149
3147
|
return ge(() => {
|
|
3150
3148
|
const n = t?.widgets;
|
|
3151
3149
|
return !n || !s ? null : (n.props.accessToken = s, n);
|
|
3152
3150
|
}, [s, t]);
|
|
3153
3151
|
}
|
|
3154
|
-
const
|
|
3155
|
-
function
|
|
3152
|
+
const gr = ["authorization", "cache-control"];
|
|
3153
|
+
function br(s) {
|
|
3156
3154
|
if (!s || typeof s != "object")
|
|
3157
3155
|
return "";
|
|
3158
3156
|
const e = {};
|
|
3159
3157
|
for (const [t, n] of Object.entries(s)) {
|
|
3160
3158
|
const r = t.toLowerCase();
|
|
3161
|
-
|
|
3159
|
+
gr.includes(r) && (e[r] = n);
|
|
3162
3160
|
}
|
|
3163
3161
|
return Object.keys(e).length > 0 ? JSON.stringify(e) : "";
|
|
3164
3162
|
}
|
|
3165
|
-
function
|
|
3163
|
+
function Sr(s) {
|
|
3166
3164
|
const e = B(12), {
|
|
3167
3165
|
accessToken: t,
|
|
3168
3166
|
sourceId: n,
|
|
3169
3167
|
widgetProps: r,
|
|
3170
3168
|
additionalFilter: o
|
|
3171
|
-
} = s, i =
|
|
3169
|
+
} = s, i = pr(n, o), a = hr(t, n);
|
|
3172
3170
|
let l;
|
|
3173
3171
|
if (e[0] !== t || e[1] !== i || e[2] !== n || e[3] !== a || e[4] !== r) {
|
|
3174
3172
|
l = [n, r], a?.props && "queryParameters" in a.props && a.props.queryParameters && l.push(a.props.queryParameters), i && l.push(i);
|
|
3175
|
-
const
|
|
3173
|
+
const g = a?.props.headers;
|
|
3176
3174
|
let b;
|
|
3177
|
-
e[6] !==
|
|
3175
|
+
e[6] !== g ? (b = br(g), e[6] = g, e[7] = b) : b = e[7];
|
|
3178
3176
|
const f = b;
|
|
3179
3177
|
f && l.push(f), l.push(t), e[0] = t, e[1] = i, e[2] = n, e[3] = a, e[4] = r, e[5] = l;
|
|
3180
3178
|
} else
|
|
@@ -3199,14 +3197,14 @@ function de({
|
|
|
3199
3197
|
additionalFilter: d,
|
|
3200
3198
|
useQueryProps: m
|
|
3201
3199
|
} = r;
|
|
3202
|
-
let
|
|
3203
|
-
o[0] !== m ? (
|
|
3200
|
+
let g;
|
|
3201
|
+
o[0] !== m ? (g = m === void 0 ? {} : m, o[0] = m, o[1] = g) : g = o[1];
|
|
3204
3202
|
let b, f;
|
|
3205
|
-
o[2] !==
|
|
3203
|
+
o[2] !== g ? ({
|
|
3206
3204
|
enabled: b,
|
|
3207
3205
|
...f
|
|
3208
|
-
} =
|
|
3209
|
-
const
|
|
3206
|
+
} = g, o[2] = g, o[3] = b, o[4] = f) : (b = o[3], f = o[4]);
|
|
3207
|
+
const M = b === void 0 ? !0 : b;
|
|
3210
3208
|
let S;
|
|
3211
3209
|
o[5] !== i || o[6] !== d || o[7] !== a || o[8] !== l ? (S = {
|
|
3212
3210
|
accessToken: i,
|
|
@@ -3218,11 +3216,11 @@ function de({
|
|
|
3218
3216
|
mergedFilters: L,
|
|
3219
3217
|
queryKey: u,
|
|
3220
3218
|
widgetModel: p
|
|
3221
|
-
} =
|
|
3222
|
-
let
|
|
3223
|
-
o[10] !== u ? (
|
|
3224
|
-
let
|
|
3225
|
-
o[12] !== L || o[13] !== p || o[14] !== l ? (
|
|
3219
|
+
} = Sr(S);
|
|
3220
|
+
let h;
|
|
3221
|
+
o[10] !== u ? (h = [...s, ...u], o[10] = u, o[11] = h) : h = o[11];
|
|
3222
|
+
let w;
|
|
3223
|
+
o[12] !== L || o[13] !== p || o[14] !== l ? (w = (F) => {
|
|
3226
3224
|
const {
|
|
3227
3225
|
signal: V
|
|
3228
3226
|
} = F;
|
|
@@ -3233,15 +3231,15 @@ function de({
|
|
|
3233
3231
|
filters: L,
|
|
3234
3232
|
signal: V
|
|
3235
3233
|
});
|
|
3236
|
-
}, o[12] = L, o[13] = p, o[14] = l, o[15] =
|
|
3237
|
-
const v = !!p &&
|
|
3234
|
+
}, o[12] = L, o[13] = p, o[14] = l, o[15] = w) : w = o[15];
|
|
3235
|
+
const v = !!p && M;
|
|
3238
3236
|
let k;
|
|
3239
|
-
return o[16] !==
|
|
3240
|
-
queryKey:
|
|
3241
|
-
queryFn:
|
|
3237
|
+
return o[16] !== h || o[17] !== w || o[18] !== v || o[19] !== f ? (k = {
|
|
3238
|
+
queryKey: h,
|
|
3239
|
+
queryFn: w,
|
|
3242
3240
|
enabled: v,
|
|
3243
3241
|
...f
|
|
3244
|
-
}, o[16] =
|
|
3242
|
+
}, o[16] = h, o[17] = w, o[18] = v, o[19] = f, o[20] = k) : k = o[20], _t(k);
|
|
3245
3243
|
};
|
|
3246
3244
|
return {
|
|
3247
3245
|
useModelHook: t,
|
|
@@ -3259,13 +3257,13 @@ function de({
|
|
|
3259
3257
|
};
|
|
3260
3258
|
}
|
|
3261
3259
|
const {
|
|
3262
|
-
useModelHook:
|
|
3263
|
-
ModelComponent:
|
|
3260
|
+
useModelHook: yo,
|
|
3261
|
+
ModelComponent: ho
|
|
3264
3262
|
} = de({
|
|
3265
3263
|
queryKeyPrefix: ["aggregations"],
|
|
3266
3264
|
getWidgetMethod: (s) => (e) => {
|
|
3267
3265
|
let t = e.aggregations.filter((r) => r.operation !== "custom");
|
|
3268
|
-
e.aggregations.some((r) => r.operation === "custom") && (t =
|
|
3266
|
+
e.aggregations.some((r) => r.operation === "custom") && (t = vr(e.aggregations).join(","));
|
|
3269
3267
|
const n = {
|
|
3270
3268
|
...e,
|
|
3271
3269
|
aggregations: t
|
|
@@ -3273,7 +3271,7 @@ const {
|
|
|
3273
3271
|
return s.getAggregations(n);
|
|
3274
3272
|
}
|
|
3275
3273
|
});
|
|
3276
|
-
function
|
|
3274
|
+
function vr(s) {
|
|
3277
3275
|
return s.map((e) => {
|
|
3278
3276
|
if (e.operation === "custom")
|
|
3279
3277
|
return `${e.aggregationExp} AS ${e.alias}`;
|
|
@@ -3299,54 +3297,54 @@ function Sr(s) {
|
|
|
3299
3297
|
});
|
|
3300
3298
|
}
|
|
3301
3299
|
const {
|
|
3302
|
-
useModelHook:
|
|
3303
|
-
ModelComponent:
|
|
3300
|
+
useModelHook: go,
|
|
3301
|
+
ModelComponent: bo
|
|
3304
3302
|
} = de({
|
|
3305
3303
|
queryKeyPrefix: ["categories"],
|
|
3306
3304
|
getWidgetMethod: (s) => s.getCategories.bind(s)
|
|
3307
3305
|
}), {
|
|
3308
|
-
useModelHook:
|
|
3309
|
-
ModelComponent:
|
|
3306
|
+
useModelHook: So,
|
|
3307
|
+
ModelComponent: vo
|
|
3310
3308
|
} = de({
|
|
3311
3309
|
queryKeyPrefix: ["features"],
|
|
3312
3310
|
getWidgetMethod: (s) => s.getFeatures.bind(s)
|
|
3313
3311
|
}), {
|
|
3314
|
-
useModelHook:
|
|
3315
|
-
ModelComponent:
|
|
3312
|
+
useModelHook: wo,
|
|
3313
|
+
ModelComponent: Mo
|
|
3316
3314
|
} = de({
|
|
3317
3315
|
queryKeyPrefix: ["formula"],
|
|
3318
3316
|
getWidgetMethod: (s) => s.getFormula.bind(s)
|
|
3319
3317
|
}), {
|
|
3320
|
-
useModelHook:
|
|
3321
|
-
ModelComponent:
|
|
3318
|
+
useModelHook: _o,
|
|
3319
|
+
ModelComponent: Eo
|
|
3322
3320
|
} = de({
|
|
3323
3321
|
queryKeyPrefix: ["histogram"],
|
|
3324
3322
|
getWidgetMethod: (s) => s.getHistogram.bind(s)
|
|
3325
3323
|
}), {
|
|
3326
|
-
useModelHook:
|
|
3327
|
-
ModelComponent:
|
|
3324
|
+
useModelHook: To,
|
|
3325
|
+
ModelComponent: Lo
|
|
3328
3326
|
} = de({
|
|
3329
3327
|
queryKeyPrefix: ["range"],
|
|
3330
3328
|
getWidgetMethod: (s) => s.getRange.bind(s)
|
|
3331
3329
|
}), {
|
|
3332
|
-
useModelHook:
|
|
3333
|
-
ModelComponent:
|
|
3330
|
+
useModelHook: ko,
|
|
3331
|
+
ModelComponent: Co
|
|
3334
3332
|
} = de({
|
|
3335
3333
|
queryKeyPrefix: ["scatter"],
|
|
3336
3334
|
getWidgetMethod: (s) => s.getScatter.bind(s)
|
|
3337
3335
|
}), {
|
|
3338
|
-
useModelHook:
|
|
3336
|
+
useModelHook: Oo,
|
|
3339
3337
|
ModelComponent: Po
|
|
3340
3338
|
} = de({
|
|
3341
3339
|
queryKeyPrefix: ["table"],
|
|
3342
3340
|
getWidgetMethod: (s) => s.getTable.bind(s)
|
|
3343
3341
|
}), {
|
|
3344
|
-
useModelHook:
|
|
3345
|
-
ModelComponent:
|
|
3342
|
+
useModelHook: Ao,
|
|
3343
|
+
ModelComponent: Fo
|
|
3346
3344
|
} = de({
|
|
3347
3345
|
queryKeyPrefix: ["timeSeries"],
|
|
3348
3346
|
getWidgetMethod: (s) => s.getTimeSeries.bind(s)
|
|
3349
|
-
}),
|
|
3347
|
+
}), Do = "ps";
|
|
3350
3348
|
function Ro(s) {
|
|
3351
3349
|
const e = B(13), {
|
|
3352
3350
|
children: t,
|
|
@@ -3361,23 +3359,23 @@ function Ro(s) {
|
|
|
3361
3359
|
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
3362
3360
|
const d = l;
|
|
3363
3361
|
let m;
|
|
3364
|
-
e[4] !== t || e[5] !== d ? (m = /* @__PURE__ */ G(
|
|
3365
|
-
let
|
|
3366
|
-
e[7] !== a || e[8] !== m ? (
|
|
3362
|
+
e[4] !== t || e[5] !== d ? (m = /* @__PURE__ */ G(_s, { values: d, children: t }), e[4] = t, e[5] = d, e[6] = m) : m = e[6];
|
|
3363
|
+
let g;
|
|
3364
|
+
e[7] !== a || e[8] !== m ? (g = /* @__PURE__ */ G(is, { values: a, children: m }), e[7] = a, e[8] = m, e[9] = g) : g = e[9];
|
|
3367
3365
|
let b;
|
|
3368
|
-
return e[10] !== n || e[11] !==
|
|
3366
|
+
return e[10] !== n || e[11] !== g ? (b = /* @__PURE__ */ G(Wn, { values: n, children: g }), e[10] = n, e[11] = g, e[12] = b) : b = e[12], b;
|
|
3369
3367
|
}
|
|
3370
|
-
function
|
|
3368
|
+
function xo(s, e) {
|
|
3371
3369
|
const t = Se((d) => d.layers), n = Se((d) => d.setLayer), r = ge(() => xt(s.map((d) => t[d]).filter((d) => !!d?.legend)).toReversed(), [t, s]), o = ge(() => r.map(e), [e, r]), i = se(({
|
|
3372
3370
|
id: d,
|
|
3373
3371
|
visible: m,
|
|
3374
|
-
...
|
|
3372
|
+
...g
|
|
3375
3373
|
}) => {
|
|
3376
3374
|
n(d, {
|
|
3377
3375
|
props: {
|
|
3378
3376
|
visible: m
|
|
3379
3377
|
},
|
|
3380
|
-
legend:
|
|
3378
|
+
legend: g
|
|
3381
3379
|
});
|
|
3382
3380
|
}, [n]), a = se(({
|
|
3383
3381
|
id: d,
|
|
@@ -3405,38 +3403,38 @@ function Do(s, e) {
|
|
|
3405
3403
|
onChangeRowCollapse: a
|
|
3406
3404
|
};
|
|
3407
3405
|
}
|
|
3408
|
-
function
|
|
3406
|
+
function $o({
|
|
3409
3407
|
mapId: s
|
|
3410
3408
|
}) {
|
|
3411
3409
|
const [e, t] = ue(void 0), [n, r] = ue(!1), [o, i] = ue(void 0), a = x((u) => u.maps[s]?.basemap), l = x((u) => u.getDeckInstance), d = x((u) => u.getOverlayInstance), m = x((u) => u.areLayersLoaded[s]), b = x((u) => u.maps[s]?.isLoaded) && m, {
|
|
3412
3410
|
type: f
|
|
3413
|
-
} = we[a],
|
|
3411
|
+
} = we[a], M = f === ce.googleMaps, S = se(async () => {
|
|
3414
3412
|
const u = l(s), p = d(s);
|
|
3415
3413
|
try {
|
|
3416
|
-
const
|
|
3417
|
-
|
|
3418
|
-
const
|
|
3419
|
-
if (
|
|
3414
|
+
const h = document.createElement("canvas");
|
|
3415
|
+
h.width = u.width ?? 0, h.height = u.height ?? 0;
|
|
3416
|
+
const w = h.getContext("2d");
|
|
3417
|
+
if (M) {
|
|
3420
3418
|
const k = p;
|
|
3421
3419
|
if (k.getRenderingType() !== "RASTER")
|
|
3422
3420
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3423
3421
|
const F = await _n(k.getDiv(), {
|
|
3424
3422
|
useCORS: !0
|
|
3425
3423
|
});
|
|
3426
|
-
|
|
3424
|
+
w?.drawImage(F, 0, 0, u.width, u.height);
|
|
3427
3425
|
} else {
|
|
3428
3426
|
const k = p;
|
|
3429
|
-
k.redraw(),
|
|
3427
|
+
k.redraw(), w?.drawImage(k.getMap().getCanvas(), 0, 0, u.width, u.height);
|
|
3430
3428
|
}
|
|
3431
|
-
u?.redraw("screenshot"),
|
|
3432
|
-
const v =
|
|
3429
|
+
u?.redraw("screenshot"), w?.drawImage(u.getCanvas(), 0, 0, u.width, u.height);
|
|
3430
|
+
const v = h.toDataURL();
|
|
3433
3431
|
t(v);
|
|
3434
|
-
} catch (
|
|
3435
|
-
i(
|
|
3432
|
+
} catch (h) {
|
|
3433
|
+
i(h), console.error(h);
|
|
3436
3434
|
} finally {
|
|
3437
3435
|
r(!1);
|
|
3438
3436
|
}
|
|
3439
|
-
}, [l,
|
|
3437
|
+
}, [l, M, s, d]);
|
|
3440
3438
|
return {
|
|
3441
3439
|
takeScreenshot: se(() => {
|
|
3442
3440
|
i(void 0), r(!0), b && S();
|
|
@@ -3446,7 +3444,7 @@ function xo({
|
|
|
3446
3444
|
error: o
|
|
3447
3445
|
};
|
|
3448
3446
|
}
|
|
3449
|
-
function
|
|
3447
|
+
function Uo(s) {
|
|
3450
3448
|
const e = B(11), {
|
|
3451
3449
|
mapId: t
|
|
3452
3450
|
} = s;
|
|
@@ -3454,17 +3452,17 @@ function $o(s) {
|
|
|
3454
3452
|
e[0] !== t ? (n = {
|
|
3455
3453
|
mapId: t
|
|
3456
3454
|
}, e[0] = t, e[1] = n) : n = e[1];
|
|
3457
|
-
const r =
|
|
3455
|
+
const r = wr(n);
|
|
3458
3456
|
let o;
|
|
3459
3457
|
e[2] !== t ? (o = {
|
|
3460
3458
|
mapId: t
|
|
3461
3459
|
}, e[2] = t, e[3] = o) : o = e[3];
|
|
3462
|
-
const i =
|
|
3460
|
+
const i = Mr(o);
|
|
3463
3461
|
let a;
|
|
3464
3462
|
e[4] !== t ? (a = {
|
|
3465
3463
|
mapId: t
|
|
3466
3464
|
}, e[4] = t, e[5] = a) : a = e[5];
|
|
3467
|
-
const l =
|
|
3465
|
+
const l = Tr(a), d = i ?? l ?? r;
|
|
3468
3466
|
let m;
|
|
3469
3467
|
return e[6] !== i || e[7] !== l || e[8] !== d || e[9] !== r ? (m = {
|
|
3470
3468
|
spatialFilter: d,
|
|
@@ -3473,7 +3471,7 @@ function $o(s) {
|
|
|
3473
3471
|
viewportSpatialFilter: r
|
|
3474
3472
|
}, e[6] = i, e[7] = l, e[8] = d, e[9] = r, e[10] = m) : m = e[10], m;
|
|
3475
3473
|
}
|
|
3476
|
-
function
|
|
3474
|
+
function wr(s) {
|
|
3477
3475
|
const e = B(4), {
|
|
3478
3476
|
mapId: t
|
|
3479
3477
|
} = s;
|
|
@@ -3491,7 +3489,7 @@ function vr(s) {
|
|
|
3491
3489
|
}
|
|
3492
3490
|
return o;
|
|
3493
3491
|
}
|
|
3494
|
-
function
|
|
3492
|
+
function Mr(s) {
|
|
3495
3493
|
const e = B(5), {
|
|
3496
3494
|
mapId: t
|
|
3497
3495
|
} = s;
|
|
@@ -3502,27 +3500,27 @@ function wr(s) {
|
|
|
3502
3500
|
e: {
|
|
3503
3501
|
let i;
|
|
3504
3502
|
if (e[2] !== r) {
|
|
3505
|
-
const a =
|
|
3503
|
+
const a = Pt({
|
|
3506
3504
|
values: r
|
|
3507
|
-
}).filter(
|
|
3505
|
+
}).filter(Er);
|
|
3508
3506
|
if (!a?.length) {
|
|
3509
3507
|
o = void 0;
|
|
3510
3508
|
break e;
|
|
3511
3509
|
}
|
|
3512
|
-
i = vt(a.map(
|
|
3510
|
+
i = vt(a.map(_r)), e[2] = r, e[3] = i, e[4] = o;
|
|
3513
3511
|
} else
|
|
3514
3512
|
i = e[3], o = e[4];
|
|
3515
3513
|
o = i.geometry;
|
|
3516
3514
|
}
|
|
3517
3515
|
return o;
|
|
3518
3516
|
}
|
|
3519
|
-
function
|
|
3517
|
+
function _r(s) {
|
|
3520
3518
|
return s.geometry.coordinates;
|
|
3521
3519
|
}
|
|
3522
|
-
function
|
|
3520
|
+
function Er(s) {
|
|
3523
3521
|
return s.properties.visible;
|
|
3524
3522
|
}
|
|
3525
|
-
function
|
|
3523
|
+
function Tr(s) {
|
|
3526
3524
|
const e = B(4), {
|
|
3527
3525
|
mapId: t
|
|
3528
3526
|
} = s;
|
|
@@ -3537,7 +3535,7 @@ function Er(s) {
|
|
|
3537
3535
|
}
|
|
3538
3536
|
let i;
|
|
3539
3537
|
if (e[2] !== r) {
|
|
3540
|
-
const a = Object.values(r).filter(
|
|
3538
|
+
const a = Object.values(r).filter(kr).flatMap(Lr);
|
|
3541
3539
|
i = vt(a), e[2] = r, e[3] = i;
|
|
3542
3540
|
} else
|
|
3543
3541
|
i = e[3];
|
|
@@ -3545,10 +3543,10 @@ function Er(s) {
|
|
|
3545
3543
|
}
|
|
3546
3544
|
return o;
|
|
3547
3545
|
}
|
|
3548
|
-
function
|
|
3546
|
+
function Lr(s) {
|
|
3549
3547
|
return s.type === "Polygon" ? [s.coordinates] : s.coordinates;
|
|
3550
3548
|
}
|
|
3551
|
-
function
|
|
3549
|
+
function kr(s) {
|
|
3552
3550
|
return s != null;
|
|
3553
3551
|
}
|
|
3554
3552
|
const ye = {
|
|
@@ -3569,44 +3567,44 @@ const ye = {
|
|
|
3569
3567
|
format: (s) => s.toLocaleString()
|
|
3570
3568
|
}
|
|
3571
3569
|
};
|
|
3572
|
-
function
|
|
3570
|
+
function Vo({
|
|
3573
3571
|
properties: s,
|
|
3574
3572
|
formatters: e = {},
|
|
3575
3573
|
includeColumns: t = Object.keys(s),
|
|
3576
3574
|
locale: n = "en-US",
|
|
3577
3575
|
showColumnName: r = !0,
|
|
3578
3576
|
title: o,
|
|
3579
|
-
getColumnName: i =
|
|
3580
|
-
getFieldHtml: a =
|
|
3581
|
-
getTitle: l =
|
|
3577
|
+
getColumnName: i = Fr,
|
|
3578
|
+
getFieldHtml: a = Or,
|
|
3579
|
+
getTitle: l = Cr,
|
|
3582
3580
|
getValue: d = Pr
|
|
3583
3581
|
}) {
|
|
3584
|
-
const m = o ? l(o) : "", b = t.reduce((f,
|
|
3585
|
-
const S = e[
|
|
3582
|
+
const m = o ? l(o) : "", b = t.reduce((f, M) => {
|
|
3583
|
+
const S = e[M], L = s[M], u = d(L, n, S), p = r ? i(M) : "";
|
|
3586
3584
|
return f + a(p, u);
|
|
3587
3585
|
}, "");
|
|
3588
3586
|
return m + b;
|
|
3589
3587
|
}
|
|
3590
|
-
function
|
|
3588
|
+
function Cr(s) {
|
|
3591
3589
|
return `<h3 style="margin: 0"><strong>${s}</strong></h3></br>`;
|
|
3592
3590
|
}
|
|
3593
|
-
function
|
|
3591
|
+
function Or(s, e) {
|
|
3594
3592
|
return `${s}${e}</br>`;
|
|
3595
3593
|
}
|
|
3596
3594
|
function Pr(s, e, t) {
|
|
3597
3595
|
try {
|
|
3598
|
-
return
|
|
3596
|
+
return Ar(t)(s, e);
|
|
3599
3597
|
} catch {
|
|
3600
3598
|
return s;
|
|
3601
3599
|
}
|
|
3602
3600
|
}
|
|
3603
|
-
function
|
|
3601
|
+
function Ar(s) {
|
|
3604
3602
|
return typeof s == "function" ? s : ((s && pt[s]) ?? pt[ye.default]).format;
|
|
3605
3603
|
}
|
|
3606
|
-
function
|
|
3604
|
+
function Fr(s) {
|
|
3607
3605
|
return `<strong>${s}</strong>: `;
|
|
3608
3606
|
}
|
|
3609
|
-
function
|
|
3607
|
+
function qo(s) {
|
|
3610
3608
|
return {
|
|
3611
3609
|
collapsed: s.legend?.collapsed,
|
|
3612
3610
|
collapsible: s.legend?.collapsible,
|
|
@@ -3622,7 +3620,7 @@ function Vo(s) {
|
|
|
3622
3620
|
visible: s.props.visible ?? !0
|
|
3623
3621
|
};
|
|
3624
3622
|
}
|
|
3625
|
-
function
|
|
3623
|
+
function Bo(s) {
|
|
3626
3624
|
const e = B(22), {
|
|
3627
3625
|
children: t,
|
|
3628
3626
|
mapId: n
|
|
@@ -3636,37 +3634,37 @@ function qo(s) {
|
|
|
3636
3634
|
} = x(r);
|
|
3637
3635
|
let l;
|
|
3638
3636
|
e[2] !== n ? (l = (v) => v.areLayersLoaded[n], e[2] = n, e[3] = l) : l = e[3];
|
|
3639
|
-
const d = x(l), m = x(
|
|
3640
|
-
let
|
|
3641
|
-
e[4] !== n || e[5] !== m ? (
|
|
3642
|
-
const S =
|
|
3637
|
+
const d = x(l), m = x(xr), g = x(Rr), b = x(Dr), f = !d;
|
|
3638
|
+
let M;
|
|
3639
|
+
e[4] !== n || e[5] !== m ? (M = (v) => m(n, v), e[4] = n, e[5] = m, e[6] = M) : M = e[6];
|
|
3640
|
+
const S = M;
|
|
3643
3641
|
let L;
|
|
3644
|
-
e[7] !==
|
|
3642
|
+
e[7] !== g || e[8] !== n ? (L = (v) => g(n, v), e[7] = g, e[8] = n, e[9] = L) : L = e[9];
|
|
3645
3643
|
const u = L;
|
|
3646
3644
|
let p;
|
|
3647
3645
|
e[10] !== n || e[11] !== b ? (p = () => b(n), e[10] = n, e[11] = b, e[12] = p) : p = e[12];
|
|
3648
|
-
const
|
|
3649
|
-
let
|
|
3650
|
-
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== f || e[17] !== S || e[18] !== u || e[19] !==
|
|
3646
|
+
const h = p;
|
|
3647
|
+
let w;
|
|
3648
|
+
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== f || e[17] !== S || e[18] !== u || e[19] !== h || e[20] !== o ? (w = t({
|
|
3651
3649
|
zoom: o,
|
|
3652
3650
|
maxZoom: i,
|
|
3653
3651
|
minZoom: a,
|
|
3654
3652
|
isLoading: f,
|
|
3655
3653
|
setZoom: S,
|
|
3656
3654
|
flyTo: u,
|
|
3657
|
-
resetViewState:
|
|
3658
|
-
}), e[13] = t, e[14] = i, e[15] = a, e[16] = f, e[17] = S, e[18] = u, e[19] =
|
|
3655
|
+
resetViewState: h
|
|
3656
|
+
}), e[13] = t, e[14] = i, e[15] = a, e[16] = f, e[17] = S, e[18] = u, e[19] = h, e[20] = o, e[21] = w) : w = e[21], w;
|
|
3659
3657
|
}
|
|
3660
|
-
function
|
|
3658
|
+
function Dr(s) {
|
|
3661
3659
|
return s.resetViewState;
|
|
3662
3660
|
}
|
|
3663
3661
|
function Rr(s) {
|
|
3664
3662
|
return s.flyTo;
|
|
3665
3663
|
}
|
|
3666
|
-
function
|
|
3664
|
+
function xr(s) {
|
|
3667
3665
|
return s.setZoom;
|
|
3668
3666
|
}
|
|
3669
|
-
async function
|
|
3667
|
+
async function $r({
|
|
3670
3668
|
baseUrl: s = We,
|
|
3671
3669
|
connection: e,
|
|
3672
3670
|
accessToken: t,
|
|
@@ -3694,7 +3692,7 @@ async function xr({
|
|
|
3694
3692
|
...i
|
|
3695
3693
|
});
|
|
3696
3694
|
}
|
|
3697
|
-
async function
|
|
3695
|
+
async function Ur({
|
|
3698
3696
|
baseUrl: s = We,
|
|
3699
3697
|
connection: e,
|
|
3700
3698
|
accessToken: t,
|
|
@@ -3719,7 +3717,7 @@ async function $r({
|
|
|
3719
3717
|
...a
|
|
3720
3718
|
});
|
|
3721
3719
|
}
|
|
3722
|
-
function
|
|
3720
|
+
function jo(s) {
|
|
3723
3721
|
const e = B(20), {
|
|
3724
3722
|
source: t,
|
|
3725
3723
|
attribute: n,
|
|
@@ -3735,19 +3733,19 @@ function Bo(s) {
|
|
|
3735
3733
|
enabled: d,
|
|
3736
3734
|
...m
|
|
3737
3735
|
} = l, e[2] = l, e[3] = d, e[4] = m) : (d = e[3], m = e[4]);
|
|
3738
|
-
const
|
|
3736
|
+
const g = d === void 0 ? !0 : d;
|
|
3739
3737
|
let b;
|
|
3740
3738
|
e[5] !== n || e[6] !== t ? (b = [t, n], e[5] = n, e[6] = t, e[7] = b) : b = e[7];
|
|
3741
3739
|
let f;
|
|
3742
|
-
e[8] !== r || e[9] !== n || e[10] !== i || e[11] !== o || e[12] !== t ? (f = () =>
|
|
3740
|
+
e[8] !== r || e[9] !== n || e[10] !== i || e[11] !== o || e[12] !== t ? (f = () => Vr({
|
|
3743
3741
|
source: t,
|
|
3744
3742
|
params: o,
|
|
3745
3743
|
attribute: n,
|
|
3746
3744
|
accessToken: r,
|
|
3747
3745
|
fetcherOptions: i
|
|
3748
3746
|
}), e[8] = r, e[9] = n, e[10] = i, e[11] = o, e[12] = t, e[13] = f) : f = e[13];
|
|
3749
|
-
let
|
|
3750
|
-
return e[14] !==
|
|
3747
|
+
let M;
|
|
3748
|
+
return e[14] !== g || e[15] !== t || e[16] !== b || e[17] !== f || e[18] !== m ? (M = {
|
|
3751
3749
|
queryKey: b,
|
|
3752
3750
|
queryFn: f,
|
|
3753
3751
|
select(S) {
|
|
@@ -3756,11 +3754,11 @@ function Bo(s) {
|
|
|
3756
3754
|
type: S.type.toLowerCase()
|
|
3757
3755
|
};
|
|
3758
3756
|
},
|
|
3759
|
-
enabled: !!t &&
|
|
3757
|
+
enabled: !!t && g,
|
|
3760
3758
|
...m
|
|
3761
|
-
}, e[14] =
|
|
3759
|
+
}, e[14] = g, e[15] = t, e[16] = b, e[17] = f, e[18] = m, e[19] = M) : M = e[19], _t(M);
|
|
3762
3760
|
}
|
|
3763
|
-
function
|
|
3761
|
+
function Vr({
|
|
3764
3762
|
source: s,
|
|
3765
3763
|
params: e,
|
|
3766
3764
|
attribute: t,
|
|
@@ -3768,7 +3766,7 @@ function Ur({
|
|
|
3768
3766
|
fetcherOptions: r
|
|
3769
3767
|
}) {
|
|
3770
3768
|
if (s.type.startsWith("query"))
|
|
3771
|
-
return
|
|
3769
|
+
return $r({
|
|
3772
3770
|
connection: s.connectionName,
|
|
3773
3771
|
baseUrl: s.apiBaseUrl,
|
|
3774
3772
|
apiVersion: s.apiVersion,
|
|
@@ -3780,7 +3778,7 @@ function Ur({
|
|
|
3780
3778
|
fetcherOptions: r
|
|
3781
3779
|
});
|
|
3782
3780
|
if (s.type.startsWith("table"))
|
|
3783
|
-
return
|
|
3781
|
+
return Ur({
|
|
3784
3782
|
connection: s.connectionName,
|
|
3785
3783
|
baseUrl: s.apiBaseUrl,
|
|
3786
3784
|
apiVersion: s.apiVersion,
|
|
@@ -3791,7 +3789,7 @@ function Ur({
|
|
|
3791
3789
|
fetcherOptions: r
|
|
3792
3790
|
});
|
|
3793
3791
|
if (s.type.startsWith("tileset"))
|
|
3794
|
-
return
|
|
3792
|
+
return qr({
|
|
3795
3793
|
source: s,
|
|
3796
3794
|
accessToken: n,
|
|
3797
3795
|
target: s.data,
|
|
@@ -3799,7 +3797,7 @@ function Ur({
|
|
|
3799
3797
|
});
|
|
3800
3798
|
throw new Error(`Unsupported source type: ${s.type}`);
|
|
3801
3799
|
}
|
|
3802
|
-
async function
|
|
3800
|
+
async function qr({
|
|
3803
3801
|
source: s,
|
|
3804
3802
|
accessToken: e,
|
|
3805
3803
|
target: t,
|
|
@@ -3820,96 +3818,96 @@ async function Vr({
|
|
|
3820
3818
|
return i;
|
|
3821
3819
|
}
|
|
3822
3820
|
export {
|
|
3823
|
-
|
|
3824
|
-
|
|
3821
|
+
ho as AggregationsModel,
|
|
3822
|
+
co as BasemapsControls,
|
|
3825
3823
|
it as CONVERSIONS_UNITS,
|
|
3826
|
-
|
|
3824
|
+
Re as CartoBasemapURL,
|
|
3827
3825
|
ae as CartoBasemaps,
|
|
3828
|
-
|
|
3826
|
+
bo as CategoriesModel,
|
|
3829
3827
|
Yn as CustomCompositeEditMode,
|
|
3830
3828
|
Ct as CustomEditableGeojsonLayer,
|
|
3831
|
-
|
|
3832
|
-
|
|
3829
|
+
ds as CustomMeasureAreaMode,
|
|
3830
|
+
fs as CustomMeasureBufferMode,
|
|
3833
3831
|
Ft as CustomMeasureDistanceMode,
|
|
3834
3832
|
tt as DEFAULT_LASSO_TOOLS_COLORS,
|
|
3835
3833
|
Jn as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
3836
3834
|
Ue as DEFAULT_LASSO_TOOLS_MODES,
|
|
3837
3835
|
$e as DEFAULT_LASSO_TOOLS_PROPS,
|
|
3838
3836
|
Te as DEFAULT_MASK_LAYER_PROPS,
|
|
3839
|
-
|
|
3840
|
-
|
|
3837
|
+
hs as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
3838
|
+
gs as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
3841
3839
|
Ve as DEFAULT_MEASURE_COLORS,
|
|
3842
3840
|
$n as DeckGLComponent,
|
|
3843
3841
|
re as EditableEditType,
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3842
|
+
vo as FeaturesModel,
|
|
3843
|
+
Mo as FormulaModel,
|
|
3844
|
+
De as GmapsBasemap,
|
|
3845
|
+
Eo as HistogramModel,
|
|
3848
3846
|
ve as INTL_UNITS,
|
|
3849
|
-
|
|
3850
|
-
|
|
3847
|
+
Ss as LassoTools,
|
|
3848
|
+
is as LassoToolsProvider,
|
|
3851
3849
|
we as MAPS_BASEMAP,
|
|
3852
3850
|
he as MAP_LASSO_TOOLS_LAYER_ID,
|
|
3853
|
-
|
|
3851
|
+
Pe as MAP_MASK_LAYER_ID,
|
|
3854
3852
|
fe as MAP_MEASURE_LAYER_ID,
|
|
3855
|
-
|
|
3853
|
+
ys as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
3856
3854
|
lt as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
3857
3855
|
ne as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
3858
|
-
|
|
3856
|
+
fo as MapComponent,
|
|
3859
3857
|
je as MapMeasurementUnitAuto,
|
|
3860
|
-
|
|
3858
|
+
ms as MapMeasurementUnitTurf,
|
|
3861
3859
|
Wn as MapProvider,
|
|
3862
3860
|
Ro as MapsProvider,
|
|
3863
3861
|
ce as MapsTypes,
|
|
3864
3862
|
Rs as MeasurementTools,
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3863
|
+
_s as MeasurementToolsProvider,
|
|
3864
|
+
Lo as RangeModel,
|
|
3865
|
+
Co as ScatterModel,
|
|
3868
3866
|
Po as TableModel,
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3867
|
+
Fo as TimeSeriesModel,
|
|
3868
|
+
Bo as ZoomControls,
|
|
3869
|
+
Do as clientID,
|
|
3872
3870
|
st as convertMetersTo,
|
|
3873
|
-
|
|
3871
|
+
os as createLassoToolsStore,
|
|
3874
3872
|
Gn as createMapStore,
|
|
3875
|
-
|
|
3873
|
+
Ms as createMeasurementToolsStore,
|
|
3876
3874
|
ye as formatterTypes,
|
|
3877
3875
|
En as getCursorDefault,
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3876
|
+
uo as getDeckController,
|
|
3877
|
+
mo as getFilterValues,
|
|
3878
|
+
ss as getLassoToolsLayer,
|
|
3879
|
+
vs as getMeasurementToolsLayer,
|
|
3882
3880
|
Ae as getTextLayerFormattedDistance,
|
|
3883
3881
|
Tn as getTooltipDefault,
|
|
3884
|
-
|
|
3885
|
-
|
|
3882
|
+
qo as mappingLegendMeridian,
|
|
3883
|
+
Vo as objectToHtml,
|
|
3886
3884
|
xt as sortLayers,
|
|
3887
3885
|
qn as transitionFlyConfig,
|
|
3888
|
-
|
|
3889
|
-
|
|
3886
|
+
yo as useAggregations,
|
|
3887
|
+
go as useCategories,
|
|
3890
3888
|
kt as useEventManager,
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3889
|
+
So as useFeatures,
|
|
3890
|
+
ur as useFilters,
|
|
3891
|
+
wo as useFormula,
|
|
3892
|
+
_o as useHistogram,
|
|
3893
|
+
Mr as useLassoToolsSpatialFilter,
|
|
3896
3894
|
K as useLassoToolsState,
|
|
3897
3895
|
Se as useLayerStore,
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3896
|
+
js as useLayers,
|
|
3897
|
+
xo as useLegend,
|
|
3898
|
+
$o as useMapScreenshot,
|
|
3901
3899
|
x as useMapStore,
|
|
3902
3900
|
z as useMeasurementToolsState,
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3901
|
+
To as useRange,
|
|
3902
|
+
ko as useScatter,
|
|
3903
|
+
cr as useSource,
|
|
3904
|
+
Oe as useSourceStore,
|
|
3905
|
+
po as useSourceWithFilters,
|
|
3906
|
+
Uo as useSpatialFilter,
|
|
3907
|
+
jo as useStats,
|
|
3908
|
+
Oo as useTable,
|
|
3909
|
+
Ao as useTimeSeries,
|
|
3910
|
+
wr as useViewportSpatialFilter,
|
|
3911
|
+
hr as useWidgetModel
|
|
3914
3912
|
};
|
|
3915
3913
|
//# sourceMappingURL=index.js.map
|