@carto/ps-react-maps 4.0.2 → 4.0.3
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 +701 -701
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useImperativeHandle as Ne, useEffect as
|
|
1
|
+
import { jsx as K, jsxs as mt } from "react/jsx-runtime";
|
|
2
|
+
import { c as F } from "react/compiler-runtime";
|
|
3
|
+
import { useImperativeHandle as Ne, useEffect as Q, useState as ae, createContext as He, useContext as ze, useMemo as ye, useCallback as ee, useRef as Le } from "react";
|
|
4
4
|
import { MapProvider as xt, Map as Ut, useMap as Vt } from "react-map-gl/maplibre";
|
|
5
5
|
import Bt from "@deck.gl/react";
|
|
6
6
|
import { useMap as yt, Map as jt, APIProvider as It } from "@vis.gl/react-google-maps";
|
|
@@ -36,7 +36,7 @@ const De = {
|
|
|
36
36
|
}, ie = {
|
|
37
37
|
maplibre: "maplibre",
|
|
38
38
|
googleMaps: "google-maps"
|
|
39
|
-
},
|
|
39
|
+
}, ve = {
|
|
40
40
|
[re.positron]: {
|
|
41
41
|
url: $e[re.positron],
|
|
42
42
|
type: ie.maplibre
|
|
@@ -76,8 +76,8 @@ function Es(r) {
|
|
|
76
76
|
} : null;
|
|
77
77
|
}
|
|
78
78
|
function Ts(r) {
|
|
79
|
-
const e =
|
|
80
|
-
let t, s, n, o, i, a, l, c, h, y,
|
|
79
|
+
const e = F(39);
|
|
80
|
+
let t, s, n, o, i, a, l, c, h, y, g, p;
|
|
81
81
|
e[0] !== r ? ({
|
|
82
82
|
instanceRef: i,
|
|
83
83
|
overlayRef: y,
|
|
@@ -85,13 +85,13 @@ function Ts(r) {
|
|
|
85
85
|
id: o,
|
|
86
86
|
layers: a,
|
|
87
87
|
mapStyle: l,
|
|
88
|
-
parameters:
|
|
88
|
+
parameters: g,
|
|
89
89
|
getCursor: s,
|
|
90
90
|
getTooltip: n,
|
|
91
91
|
onLoad: c,
|
|
92
92
|
onViewStateChange: h,
|
|
93
93
|
...p
|
|
94
|
-
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = h, e[10] = y, e[11] =
|
|
94
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = h, e[10] = y, e[11] = g, e[12] = p) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], h = e[9], y = e[10], g = e[11], p = e[12]);
|
|
95
95
|
let b;
|
|
96
96
|
e[13] !== a ? (b = a.filter(ks).map(Ps), e[13] = a, e[14] = b) : b = e[14];
|
|
97
97
|
const m = b, w = i;
|
|
@@ -101,24 +101,24 @@ function Ts(r) {
|
|
|
101
101
|
value: !0
|
|
102
102
|
}), e[15] = c, e[16] = u) : u = e[16];
|
|
103
103
|
let f;
|
|
104
|
-
e[17] !==
|
|
104
|
+
e[17] !== g ? (f = {
|
|
105
105
|
depthTest: !1,
|
|
106
|
-
...
|
|
107
|
-
}, e[17] =
|
|
108
|
-
let
|
|
109
|
-
e[19] !== y ? (
|
|
110
|
-
let
|
|
111
|
-
e[21] !== c ? (
|
|
106
|
+
...g
|
|
107
|
+
}, e[17] = g, e[18] = f) : f = e[18];
|
|
108
|
+
let v;
|
|
109
|
+
e[19] !== y ? (v = /* @__PURE__ */ K(Cs, { overlayRef: y }), e[19] = y, e[20] = v) : v = e[20];
|
|
110
|
+
let _;
|
|
111
|
+
e[21] !== c ? (_ = () => c({
|
|
112
112
|
type: "load",
|
|
113
113
|
value: !0
|
|
114
|
-
}), e[21] = c, e[22] =
|
|
115
|
-
let
|
|
116
|
-
e[23] !== l || e[24] !==
|
|
114
|
+
}), e[21] = c, e[22] = _) : _ = e[22];
|
|
115
|
+
let M;
|
|
116
|
+
e[23] !== l || e[24] !== _ ? (M = /* @__PURE__ */ K(Ut, { reuseMaps: !1, mapStyle: l, onLoad: _, onRender: Ls }), e[23] = l, e[24] = _, e[25] = M) : M = e[25];
|
|
117
117
|
let P;
|
|
118
|
-
return e[26] !== m || e[27] !== t || e[28] !== s || e[29] !== n || e[30] !== o || e[31] !== h || e[32] !== p || e[33] !== w || e[34] !== u || e[35] !== f || e[36] !==
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
] }) }) }), e[26] = m, e[27] = t, e[28] = s, e[29] = n, e[30] = o, e[31] = h, e[32] = p, e[33] = w, e[34] = u, e[35] = f, e[36] =
|
|
118
|
+
return e[26] !== m || e[27] !== t || e[28] !== s || e[29] !== n || e[30] !== o || e[31] !== h || e[32] !== p || e[33] !== w || e[34] !== u || e[35] !== f || e[36] !== v || e[37] !== M ? (P = /* @__PURE__ */ K(xt, { children: /* @__PURE__ */ K("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(Bt, { controller: t, id: o, ref: w, layers: m, getCursor: s, getTooltip: n, onLoad: u, onViewStateChange: h, parameters: f, ...p, children: [
|
|
119
|
+
v,
|
|
120
|
+
M
|
|
121
|
+
] }) }) }), e[26] = m, e[27] = t, e[28] = s, e[29] = n, e[30] = o, e[31] = h, e[32] = p, e[33] = w, e[34] = u, e[35] = f, e[36] = v, e[37] = M, e[38] = P) : P = e[38], P;
|
|
122
122
|
}
|
|
123
123
|
function Ls() {
|
|
124
124
|
document.querySelector(".maplibregl-compact-show")?.classList.remove("maplibregl-compact-show");
|
|
@@ -134,7 +134,7 @@ function ks(r) {
|
|
|
134
134
|
return !!r?.type;
|
|
135
135
|
}
|
|
136
136
|
function Cs(r) {
|
|
137
|
-
const e =
|
|
137
|
+
const e = F(3), {
|
|
138
138
|
overlayRef: t
|
|
139
139
|
} = r, {
|
|
140
140
|
default: s
|
|
@@ -143,7 +143,7 @@ function Cs(r) {
|
|
|
143
143
|
return e[0] !== s ? (n = () => s, o = [s], e[0] = s, e[1] = n, e[2] = o) : (n = e[1], o = e[2]), Ne(t, n, o), null;
|
|
144
144
|
}
|
|
145
145
|
const Os = (r) => {
|
|
146
|
-
const e =
|
|
146
|
+
const e = F(9);
|
|
147
147
|
let t;
|
|
148
148
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = new Nt({
|
|
149
149
|
interleaved: !0
|
|
@@ -154,32 +154,32 @@ const Os = (r) => {
|
|
|
154
154
|
let a, l;
|
|
155
155
|
e[3] !== n ? (a = () => (s.setMap(n), () => {
|
|
156
156
|
s.finalize();
|
|
157
|
-
}), l = [s, n], e[3] = n, e[4] = a, e[5] = l) : (a = e[4], l = e[5]),
|
|
157
|
+
}), l = [s, n], e[3] = n, e[4] = a, e[5] = l) : (a = e[4], l = e[5]), Q(a, l);
|
|
158
158
|
let c, h;
|
|
159
159
|
return e[6] !== r ? (c = () => {
|
|
160
160
|
s.setProps(r);
|
|
161
|
-
}, h = [s, r], e[6] = r, e[7] = c, e[8] = h) : (c = e[7], h = e[8]),
|
|
161
|
+
}, h = [s, r], e[6] = r, e[7] = c, e[8] = h) : (c = e[7], h = e[8]), Q(c, h), null;
|
|
162
162
|
};
|
|
163
163
|
function Fs(r) {
|
|
164
|
-
const e =
|
|
165
|
-
let t, s, n, o, i, a, l, c, h, y,
|
|
164
|
+
const e = F(73);
|
|
165
|
+
let t, s, n, o, i, a, l, c, h, y, g;
|
|
166
166
|
e[0] !== r ? ({
|
|
167
167
|
id: n,
|
|
168
168
|
instanceRef: o,
|
|
169
169
|
basemap: t,
|
|
170
170
|
layers: i,
|
|
171
|
-
gmapsProps:
|
|
171
|
+
gmapsProps: g,
|
|
172
172
|
overlayRef: c,
|
|
173
173
|
parameters: h,
|
|
174
174
|
controller: s,
|
|
175
175
|
onLoad: a,
|
|
176
176
|
onViewStateChange: l,
|
|
177
177
|
...y
|
|
178
|
-
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = h, e[10] = y, e[11] =
|
|
178
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = h, e[10] = y, e[11] = g) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], h = e[9], y = e[10], g = e[11]);
|
|
179
179
|
let p;
|
|
180
|
-
e[12] !==
|
|
180
|
+
e[12] !== g ? (p = g === void 0 ? {
|
|
181
181
|
apiKey: ""
|
|
182
|
-
} :
|
|
182
|
+
} : g, e[12] = g, e[13] = p) : p = e[13];
|
|
183
183
|
let b, m, w;
|
|
184
184
|
e[14] !== p ? ({
|
|
185
185
|
apiKey: w,
|
|
@@ -197,7 +197,7 @@ function Fs(r) {
|
|
|
197
197
|
}, e[18] = s, e[19] = oe) : oe = e[19], u = oe;
|
|
198
198
|
break e;
|
|
199
199
|
}
|
|
200
|
-
const
|
|
200
|
+
const W = s, se = W?.dragPan ?? !0, J = W?.doubleClickZoom ?? !0, Y = W?.scrollZoom ?? !0;
|
|
201
201
|
let ne;
|
|
202
202
|
e[20] !== se || e[21] !== J || e[22] !== Y ? (ne = {
|
|
203
203
|
dragPan: se,
|
|
@@ -206,14 +206,14 @@ function Fs(r) {
|
|
|
206
206
|
}, e[20] = se, e[21] = J, e[22] = Y, e[23] = ne) : ne = e[23], u = ne;
|
|
207
207
|
}
|
|
208
208
|
const f = u;
|
|
209
|
-
let
|
|
210
|
-
e[24] !== i ? (
|
|
211
|
-
const
|
|
209
|
+
let v;
|
|
210
|
+
e[24] !== i ? (v = i.filter(Ds).map(Rs), e[24] = i, e[25] = v) : v = e[25];
|
|
211
|
+
const _ = v, M = As;
|
|
212
212
|
let P;
|
|
213
|
-
e[26] !== o || e[27] !== l ? (P = (
|
|
213
|
+
e[26] !== o || e[27] !== l ? (P = (W) => {
|
|
214
214
|
const J = o?.current?._deck, Y = {
|
|
215
215
|
...J?.viewState,
|
|
216
|
-
...
|
|
216
|
+
...W
|
|
217
217
|
}, ne = {
|
|
218
218
|
latitude: Y.latitude,
|
|
219
219
|
longitude: Y.longitude,
|
|
@@ -230,46 +230,46 @@ function Fs(r) {
|
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
}, e[26] = o, e[27] = l, e[28] = P) : P = e[28];
|
|
233
|
-
const
|
|
234
|
-
let
|
|
235
|
-
e[29] !==
|
|
236
|
-
lat:
|
|
237
|
-
lng:
|
|
238
|
-
}, e[29] =
|
|
239
|
-
const
|
|
240
|
-
let
|
|
241
|
-
e[32] !==
|
|
233
|
+
const A = P, I = y.initialViewState?.latitude ?? 0, R = y.initialViewState?.longitude ?? 0;
|
|
234
|
+
let q;
|
|
235
|
+
e[29] !== I || e[30] !== R ? (q = {
|
|
236
|
+
lat: I,
|
|
237
|
+
lng: R
|
|
238
|
+
}, e[29] = I, e[30] = R, e[31] = q) : q = e[31];
|
|
239
|
+
const j = (y.initialViewState?.zoom ?? 0) + 1, D = y.initialViewState?.pitch, T = y.initialViewState?.bearing;
|
|
240
|
+
let O;
|
|
241
|
+
e[32] !== A || e[33] !== a || e[34] !== y.initialViewState ? (O = () => {
|
|
242
242
|
a({
|
|
243
243
|
type: "load",
|
|
244
244
|
value: !0
|
|
245
|
-
}),
|
|
246
|
-
}, e[32] =
|
|
247
|
-
let d,
|
|
248
|
-
e[36] !==
|
|
245
|
+
}), A(y.initialViewState);
|
|
246
|
+
}, e[32] = A, e[33] = a, e[34] = y.initialViewState, e[35] = O) : O = e[35];
|
|
247
|
+
let d, S;
|
|
248
|
+
e[36] !== A ? (d = (W) => A(M(W)), S = (W) => A(M(W)), e[36] = A, e[37] = d, e[38] = S) : (d = e[37], S = e[38]);
|
|
249
249
|
const L = typeof f.scrollZoom == "boolean" ? f.scrollZoom : !!f.scrollZoom, C = f.dragPan ? "greedy" : "none", k = !f.doubleClickZoom;
|
|
250
|
-
let
|
|
251
|
-
e[39] !== n || e[40] !== c ? (
|
|
252
|
-
let
|
|
253
|
-
e[42] !== a ? (
|
|
250
|
+
let E;
|
|
251
|
+
e[39] !== n || e[40] !== c ? (E = /* @__PURE__ */ K($s, { id: n, overlayRef: c }), e[39] = n, e[40] = c, e[41] = E) : E = e[41];
|
|
252
|
+
let V;
|
|
253
|
+
e[42] !== a ? (V = () => {
|
|
254
254
|
a({
|
|
255
255
|
type: "deckgl",
|
|
256
256
|
value: !0
|
|
257
257
|
});
|
|
258
|
-
}, e[42] = a, e[43] =
|
|
259
|
-
let
|
|
260
|
-
e[44] !== h ? (
|
|
258
|
+
}, e[42] = a, e[43] = V) : V = e[43];
|
|
259
|
+
let B;
|
|
260
|
+
e[44] !== h ? (B = {
|
|
261
261
|
depthTest: !1,
|
|
262
262
|
...h
|
|
263
|
-
}, e[44] = h, e[45] =
|
|
264
|
-
let
|
|
265
|
-
e[46] !==
|
|
266
|
-
let
|
|
267
|
-
e[53] !== m || e[54] !== t || e[55] !== n || e[56] !==
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
] }) }), e[53] = m, e[54] = t, e[55] = n, e[56] =
|
|
263
|
+
}, e[44] = h, e[45] = B) : B = e[45];
|
|
264
|
+
let N;
|
|
265
|
+
e[46] !== _ || e[47] !== n || e[48] !== o || e[49] !== y || e[50] !== V || e[51] !== B ? (N = /* @__PURE__ */ K(Os, { id: n, instanceRef: o, layers: _, onLoad: V, parameters: B, ...y }), e[46] = _, e[47] = n, e[48] = o, e[49] = y, e[50] = V, e[51] = B, e[52] = N) : N = e[52];
|
|
266
|
+
let U;
|
|
267
|
+
e[53] !== m || e[54] !== t || e[55] !== n || e[56] !== D || e[57] !== T || e[58] !== O || e[59] !== d || e[60] !== S || e[61] !== L || e[62] !== C || e[63] !== k || e[64] !== E || e[65] !== N || e[66] !== q || e[67] !== j ? (U = /* @__PURE__ */ K("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(jt, { id: n, mapTypeId: t, disableDefaultUI: !0, ...m, center: q, zoom: j, tilt: D, heading: T, onTilesLoaded: O, onBoundsChanged: d, onZoomChanged: S, scrollwheel: L, gestureHandling: C, disableDoubleClickZoom: k, children: [
|
|
268
|
+
E,
|
|
269
|
+
N
|
|
270
|
+
] }) }), e[53] = m, e[54] = t, e[55] = n, e[56] = D, e[57] = T, e[58] = O, e[59] = d, e[60] = S, e[61] = L, e[62] = C, e[63] = k, e[64] = E, e[65] = N, e[66] = q, e[67] = j, e[68] = U) : U = e[68];
|
|
271
271
|
let z;
|
|
272
|
-
return e[69] !== b || e[70] !== w || e[71] !==
|
|
272
|
+
return e[69] !== b || e[70] !== w || e[71] !== U ? (z = /* @__PURE__ */ K(It, { apiKey: w, ...b, children: U }), e[69] = b, e[70] = w, e[71] = U, e[72] = z) : z = e[72], z;
|
|
273
273
|
}
|
|
274
274
|
function As(r) {
|
|
275
275
|
const {
|
|
@@ -299,7 +299,7 @@ function Ds(r) {
|
|
|
299
299
|
return !!r?.type;
|
|
300
300
|
}
|
|
301
301
|
function $s(r) {
|
|
302
|
-
const e =
|
|
302
|
+
const e = F(3), {
|
|
303
303
|
id: t,
|
|
304
304
|
overlayRef: s
|
|
305
305
|
} = r, n = yt(t);
|
|
@@ -307,8 +307,8 @@ function $s(r) {
|
|
|
307
307
|
return e[0] !== n ? (o = () => n, i = [n], e[0] = n, e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ne(s, o, i), null;
|
|
308
308
|
}
|
|
309
309
|
function qs(r) {
|
|
310
|
-
const e =
|
|
311
|
-
let t, s, n, o, i, a, l, c, h, y,
|
|
310
|
+
const e = F(46);
|
|
311
|
+
let t, s, n, o, i, a, l, c, h, y, g, p;
|
|
312
312
|
e[0] !== r ? ({
|
|
313
313
|
instanceRef: s,
|
|
314
314
|
overlayRef: o,
|
|
@@ -318,47 +318,47 @@ function qs(r) {
|
|
|
318
318
|
layers: h,
|
|
319
319
|
gmapsProps: t,
|
|
320
320
|
getCursor: y,
|
|
321
|
-
getTooltip:
|
|
321
|
+
getTooltip: g,
|
|
322
322
|
onLoad: n,
|
|
323
323
|
onViewStateChange: p,
|
|
324
324
|
...i
|
|
325
|
-
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = h, e[10] = y, e[11] =
|
|
325
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = h, e[10] = y, e[11] = g, e[12] = p) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], h = e[9], y = e[10], g = e[11], p = e[12]);
|
|
326
326
|
const b = a === void 0 ? re.positron : a, m = l === void 0 ? !0 : l, w = c === void 0 ? "deck-gl-map" : c;
|
|
327
327
|
let u;
|
|
328
328
|
e[13] !== h ? (u = h === void 0 ? [] : h, e[13] = h, e[14] = u) : u = e[14];
|
|
329
|
-
const f = u,
|
|
329
|
+
const f = u, v = y === void 0 ? Ms : y, _ = g === void 0 ? Es : g, M = p === void 0 ? Us : p;
|
|
330
330
|
let P;
|
|
331
331
|
e[15] === Symbol.for("react.memo_cache_sentinel") ? (P = [!1, !1], e[15] = P) : P = e[15];
|
|
332
|
-
const [
|
|
333
|
-
url:
|
|
334
|
-
type:
|
|
335
|
-
} =
|
|
336
|
-
let
|
|
337
|
-
e[16] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
338
|
-
const
|
|
339
|
-
|
|
340
|
-
}, e[16] =
|
|
341
|
-
const
|
|
342
|
-
let
|
|
343
|
-
e[17] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
344
|
-
|
|
332
|
+
const [A, I] = ae(P), {
|
|
333
|
+
url: R,
|
|
334
|
+
type: q
|
|
335
|
+
} = ve[b], j = q === ie.googleMaps;
|
|
336
|
+
let D;
|
|
337
|
+
e[16] === Symbol.for("react.memo_cache_sentinel") ? (D = (k) => {
|
|
338
|
+
const E = k.type === "deckgl" ? 0 : 1;
|
|
339
|
+
I((V) => V.map((B, N) => N === E ? k.value : B));
|
|
340
|
+
}, e[16] = D) : D = e[16];
|
|
341
|
+
const T = D;
|
|
342
|
+
let O, d;
|
|
343
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (O = () => () => {
|
|
344
|
+
T({
|
|
345
345
|
type: "load",
|
|
346
346
|
value: !1
|
|
347
|
-
}),
|
|
347
|
+
}), T({
|
|
348
348
|
type: "deckgl",
|
|
349
349
|
value: !1
|
|
350
350
|
});
|
|
351
|
-
}, d = [
|
|
352
|
-
let
|
|
353
|
-
if (e[19] !==
|
|
354
|
-
const k =
|
|
351
|
+
}, d = [T], e[17] = O, e[18] = d) : (O = e[17], d = e[18]), Q(O, d);
|
|
352
|
+
let S, L;
|
|
353
|
+
if (e[19] !== A || e[20] !== n ? (S = () => {
|
|
354
|
+
const k = A.every(xs);
|
|
355
355
|
n?.(k);
|
|
356
|
-
}, L = [
|
|
356
|
+
}, L = [A, n], e[19] = A, e[20] = n, e[21] = S, e[22] = L) : (S = e[21], L = e[22]), Q(S, L), j) {
|
|
357
357
|
let k;
|
|
358
|
-
return e[23] !== b || e[24] !== m || e[25] !==
|
|
358
|
+
return e[23] !== b || e[24] !== m || e[25] !== v || e[26] !== _ || e[27] !== t || e[28] !== w || e[29] !== s || e[30] !== f || e[31] !== M || e[32] !== o || e[33] !== i ? (k = /* @__PURE__ */ K(Fs, { instanceRef: s, overlayRef: o, controller: m, id: w, basemap: b, layers: f, gmapsProps: t, getCursor: v, getTooltip: _, onLoad: T, onViewStateChange: M, ...i }), e[23] = b, e[24] = m, e[25] = v, e[26] = _, e[27] = t, e[28] = w, e[29] = s, e[30] = f, e[31] = M, e[32] = o, e[33] = i, e[34] = k) : k = e[34], k;
|
|
359
359
|
}
|
|
360
360
|
let C;
|
|
361
|
-
return e[35] !== m || e[36] !==
|
|
361
|
+
return e[35] !== m || e[36] !== v || e[37] !== _ || e[38] !== w || e[39] !== s || e[40] !== f || e[41] !== R || e[42] !== M || e[43] !== o || e[44] !== i ? (C = /* @__PURE__ */ K(Ts, { instanceRef: s, overlayRef: o, controller: m, id: w, layers: f, mapStyle: R, getCursor: v, getTooltip: _, onLoad: T, onViewStateChange: M, ...i }), e[35] = m, e[36] = v, e[37] = _, e[38] = w, e[39] = s, e[40] = f, e[41] = R, e[42] = M, e[43] = o, e[44] = i, e[45] = C) : C = e[45], C;
|
|
362
362
|
}
|
|
363
363
|
function xs(r) {
|
|
364
364
|
return r;
|
|
@@ -372,7 +372,7 @@ const Vs = {
|
|
|
372
372
|
curve: 2
|
|
373
373
|
})
|
|
374
374
|
};
|
|
375
|
-
var
|
|
375
|
+
var Me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
376
376
|
function Et(r) {
|
|
377
377
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
378
378
|
}
|
|
@@ -400,16 +400,16 @@ function Bs() {
|
|
|
400
400
|
function a(u, f) {
|
|
401
401
|
return f.clone !== !1 && f.isMergeableObject(u) ? m(i(u), u, f) : u;
|
|
402
402
|
}
|
|
403
|
-
function l(u, f,
|
|
404
|
-
return u.concat(f).map(function(
|
|
405
|
-
return a(
|
|
403
|
+
function l(u, f, v) {
|
|
404
|
+
return u.concat(f).map(function(_) {
|
|
405
|
+
return a(_, v);
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
function c(u, f) {
|
|
409
409
|
if (!f.customMerge)
|
|
410
410
|
return m;
|
|
411
|
-
var
|
|
412
|
-
return typeof
|
|
411
|
+
var v = f.customMerge(u);
|
|
412
|
+
return typeof v == "function" ? v : m;
|
|
413
413
|
}
|
|
414
414
|
function h(u) {
|
|
415
415
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(f) {
|
|
@@ -419,7 +419,7 @@ function Bs() {
|
|
|
419
419
|
function y(u) {
|
|
420
420
|
return Object.keys(u).concat(h(u));
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function g(u, f) {
|
|
423
423
|
try {
|
|
424
424
|
return f in u;
|
|
425
425
|
} catch {
|
|
@@ -427,26 +427,26 @@ function Bs() {
|
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
function p(u, f) {
|
|
430
|
-
return
|
|
430
|
+
return g(u, f) && !(Object.hasOwnProperty.call(u, f) && Object.propertyIsEnumerable.call(u, f));
|
|
431
431
|
}
|
|
432
|
-
function b(u, f,
|
|
433
|
-
var
|
|
434
|
-
return
|
|
435
|
-
M
|
|
436
|
-
}), y(f).forEach(function(
|
|
437
|
-
p(u,
|
|
438
|
-
}),
|
|
432
|
+
function b(u, f, v) {
|
|
433
|
+
var _ = {};
|
|
434
|
+
return v.isMergeableObject(u) && y(u).forEach(function(M) {
|
|
435
|
+
_[M] = a(u[M], v);
|
|
436
|
+
}), y(f).forEach(function(M) {
|
|
437
|
+
p(u, M) || (g(u, M) && v.isMergeableObject(f[M]) ? _[M] = c(M, v)(u[M], f[M], v) : _[M] = a(f[M], v));
|
|
438
|
+
}), _;
|
|
439
439
|
}
|
|
440
|
-
function m(u, f,
|
|
441
|
-
|
|
442
|
-
var
|
|
443
|
-
return P ?
|
|
440
|
+
function m(u, f, v) {
|
|
441
|
+
v = v || {}, v.arrayMerge = v.arrayMerge || l, v.isMergeableObject = v.isMergeableObject || r, v.cloneUnlessOtherwiseSpecified = a;
|
|
442
|
+
var _ = Array.isArray(f), M = Array.isArray(u), P = _ === M;
|
|
443
|
+
return P ? _ ? v.arrayMerge(u, f, v) : b(u, f, v) : a(f, v);
|
|
444
444
|
}
|
|
445
|
-
m.all = function(f,
|
|
445
|
+
m.all = function(f, v) {
|
|
446
446
|
if (!Array.isArray(f))
|
|
447
447
|
throw new Error("first argument should be an array");
|
|
448
|
-
return f.reduce(function(
|
|
449
|
-
return m(
|
|
448
|
+
return f.reduce(function(_, M) {
|
|
449
|
+
return m(_, M, v);
|
|
450
450
|
}, {});
|
|
451
451
|
};
|
|
452
452
|
var w = m;
|
|
@@ -477,9 +477,9 @@ const de = /* @__PURE__ */ Et(js), Is = (r) => {
|
|
|
477
477
|
setBasemap: (n, o) => t((i) => {
|
|
478
478
|
const {
|
|
479
479
|
type: a
|
|
480
|
-
} =
|
|
480
|
+
} = ve[i.maps[n].basemap], {
|
|
481
481
|
type: l
|
|
482
|
-
} =
|
|
482
|
+
} = ve[o], c = a === l && !!i.maps[n]?.isLoaded;
|
|
483
483
|
return {
|
|
484
484
|
maps: {
|
|
485
485
|
...i.maps,
|
|
@@ -701,7 +701,7 @@ const de = /* @__PURE__ */ Et(js), Is = (r) => {
|
|
|
701
701
|
...zs(...e)
|
|
702
702
|
})), Tt = He({});
|
|
703
703
|
function Zs(r) {
|
|
704
|
-
const e =
|
|
704
|
+
const e = F(5), {
|
|
705
705
|
children: t,
|
|
706
706
|
values: s
|
|
707
707
|
} = r;
|
|
@@ -709,16 +709,16 @@ function Zs(r) {
|
|
|
709
709
|
e[0] !== s ? (n = Ks(s), e[0] = s, e[1] = n) : n = e[1];
|
|
710
710
|
const [o] = ae(n);
|
|
711
711
|
let i;
|
|
712
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
712
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ K(Tt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function x(r) {
|
|
715
715
|
const e = ze(Tt);
|
|
716
716
|
if (!Object.keys(e).length)
|
|
717
717
|
throw new Error("Missing MapProvider in the tree");
|
|
718
718
|
return Ke(e, r);
|
|
719
719
|
}
|
|
720
720
|
function yo(r) {
|
|
721
|
-
const e =
|
|
721
|
+
const e = F(9), {
|
|
722
722
|
children: t,
|
|
723
723
|
mapId: s
|
|
724
724
|
} = r;
|
|
@@ -726,7 +726,7 @@ function yo(r) {
|
|
|
726
726
|
e[0] !== s ? (n = (h) => h.maps[s], e[0] = s, e[1] = n) : n = e[1];
|
|
727
727
|
const {
|
|
728
728
|
basemap: o
|
|
729
|
-
} =
|
|
729
|
+
} = x(n), i = x(Qs);
|
|
730
730
|
let a;
|
|
731
731
|
e[2] !== s || e[3] !== i ? (a = (h) => i(s, h), e[2] = s, e[3] = i, e[4] = a) : a = e[4];
|
|
732
732
|
const l = a;
|
|
@@ -794,7 +794,7 @@ const me = "lassoLayer", Ce = "maskLayer", Ys = {
|
|
|
794
794
|
}
|
|
795
795
|
}, Js = [new ss({
|
|
796
796
|
filterSize: 1
|
|
797
|
-
})],
|
|
797
|
+
})], Ee = {
|
|
798
798
|
id: Ce,
|
|
799
799
|
operation: "mask",
|
|
800
800
|
pickable: !1,
|
|
@@ -822,7 +822,7 @@ const me = "lassoLayer", Ce = "maskLayer", Ys = {
|
|
|
822
822
|
value: "edit",
|
|
823
823
|
mode: Ws
|
|
824
824
|
}
|
|
825
|
-
},
|
|
825
|
+
}, ge = ht((r) => ({
|
|
826
826
|
layers: {},
|
|
827
827
|
setLayer: (e, t) => r((s) => {
|
|
828
828
|
const n = {
|
|
@@ -879,20 +879,20 @@ const me = "lassoLayer", Ce = "maskLayer", Ys = {
|
|
|
879
879
|
}, ["pinch"], ["multipan"]]
|
|
880
880
|
};
|
|
881
881
|
function Pt(r) {
|
|
882
|
-
const e =
|
|
882
|
+
const e = F(12), {
|
|
883
883
|
mapId: t,
|
|
884
884
|
layerId: s
|
|
885
885
|
} = r;
|
|
886
886
|
let n;
|
|
887
887
|
e[0] !== t ? (n = (b) => b.maps[t]?.basemap, e[0] = t, e[1] = n) : n = e[1];
|
|
888
|
-
const o =
|
|
888
|
+
const o = x(n);
|
|
889
889
|
let i;
|
|
890
890
|
e[2] !== t ? (i = (b) => b.maps[t]?.isLoaded, e[2] = t, e[3] = i) : i = e[3];
|
|
891
|
-
const a =
|
|
891
|
+
const a = x(i), l = x(tn), c = ge(en), {
|
|
892
892
|
type: h
|
|
893
|
-
} =
|
|
894
|
-
let
|
|
895
|
-
e[4] !== l || e[5] !== y || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (
|
|
893
|
+
} = ve[o], y = h === ie.googleMaps;
|
|
894
|
+
let g, p;
|
|
895
|
+
e[4] !== l || e[5] !== y || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (g = () => {
|
|
896
896
|
let b = null;
|
|
897
897
|
if (y && a) {
|
|
898
898
|
const m = l(t);
|
|
@@ -905,7 +905,7 @@ function Pt(r) {
|
|
|
905
905
|
eventManager: b
|
|
906
906
|
}
|
|
907
907
|
});
|
|
908
|
-
}, p = [l, y, a, s, t, c], e[4] = l, e[5] = y, e[6] = a, e[7] = s, e[8] = t, e[9] = c, e[10] =
|
|
908
|
+
}, p = [l, y, a, s, t, c], e[4] = l, e[5] = y, e[6] = a, e[7] = s, e[8] = t, e[9] = c, e[10] = g, e[11] = p) : (g = e[10], p = e[11]), Q(g, p);
|
|
909
909
|
}
|
|
910
910
|
function Xs(r) {
|
|
911
911
|
const [e, t, s, n] = Lt[r], o = {
|
|
@@ -1095,7 +1095,7 @@ const rn = (r) => Ge()((e) => ({
|
|
|
1095
1095
|
}
|
|
1096
1096
|
})), Ct = He({});
|
|
1097
1097
|
function on(r) {
|
|
1098
|
-
const e =
|
|
1098
|
+
const e = F(5), {
|
|
1099
1099
|
children: t,
|
|
1100
1100
|
values: s
|
|
1101
1101
|
} = r;
|
|
@@ -1103,9 +1103,9 @@ function on(r) {
|
|
|
1103
1103
|
e[0] !== s ? (n = () => rn(s), e[0] = s, e[1] = n) : n = e[1];
|
|
1104
1104
|
const [o] = ae(n);
|
|
1105
1105
|
let i;
|
|
1106
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
1106
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ K(Ct.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function Z(r) {
|
|
1109
1109
|
const e = ze(Ct);
|
|
1110
1110
|
if (!Object.keys(e).length)
|
|
1111
1111
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
@@ -1115,8 +1115,8 @@ function an({
|
|
|
1115
1115
|
mapId: r,
|
|
1116
1116
|
children: e
|
|
1117
1117
|
}) {
|
|
1118
|
-
const t =
|
|
1119
|
-
|
|
1118
|
+
const t = Z((p) => p.data[r]?.enabled), s = Z((p) => p.setEnabled), n = Z((p) => p.data[r]?.values), o = Z((p) => p.setValue), i = Z((p) => p.setVisibility), a = Z((p) => p.data[r]?.modeSelected), l = Z((p) => p.setModeSelected), c = Z((p) => p.data[r]?.modes), h = Z((p) => p.setModeInstance);
|
|
1119
|
+
Q(() => {
|
|
1120
1120
|
const p = c[a];
|
|
1121
1121
|
if (p && t) {
|
|
1122
1122
|
const b = p.mode;
|
|
@@ -1137,7 +1137,7 @@ function an({
|
|
|
1137
1137
|
Object.values(n).filter((w) => w.type === "mask").map(p)
|
|
1138
1138
|
// , draw
|
|
1139
1139
|
];
|
|
1140
|
-
}, [n]),
|
|
1140
|
+
}, [n]), g = ee((p) => {
|
|
1141
1141
|
s(r, !!p), l(r, p);
|
|
1142
1142
|
}, [r, s, l]);
|
|
1143
1143
|
return e({
|
|
@@ -1152,7 +1152,7 @@ function an({
|
|
|
1152
1152
|
setValue: ee((p, b) => o(r, p, b), [r, o]),
|
|
1153
1153
|
setEnabled: ee((p) => s(r, p), [r, s]),
|
|
1154
1154
|
setVisibility: ee((p, b) => i(r, p, b), [r, i]),
|
|
1155
|
-
setModeSelected:
|
|
1155
|
+
setModeSelected: g
|
|
1156
1156
|
});
|
|
1157
1157
|
}
|
|
1158
1158
|
function Ot({
|
|
@@ -1205,10 +1205,10 @@ function Oe({
|
|
|
1205
1205
|
if (c) {
|
|
1206
1206
|
const p = r < (s ?? rt);
|
|
1207
1207
|
let b = p ? H.meter : H.kilometer;
|
|
1208
|
-
h = p ?
|
|
1208
|
+
h = p ? be.meter : be.kilometer, l && (h = p ? be.feet : be.mile, b = p ? H.feet : H.mile), y = nt(r, b, i);
|
|
1209
1209
|
} else
|
|
1210
|
-
h =
|
|
1211
|
-
let
|
|
1210
|
+
h = be[e], y = nt(r, e, i);
|
|
1211
|
+
let g = `${wt(y, t, {
|
|
1212
1212
|
style: "unit",
|
|
1213
1213
|
unit: h,
|
|
1214
1214
|
unitDisplay: "short",
|
|
@@ -1217,7 +1217,7 @@ function Oe({
|
|
|
1217
1217
|
maximumFractionDigits: 2,
|
|
1218
1218
|
...o
|
|
1219
1219
|
})}`;
|
|
1220
|
-
return i === "area" && (
|
|
1220
|
+
return i === "area" && (g += "2"), n ? n(g) : g;
|
|
1221
1221
|
}
|
|
1222
1222
|
function ho(r, {
|
|
1223
1223
|
hasDoubleClickZoom: e
|
|
@@ -1579,7 +1579,7 @@ const ce = "mapMeasureLayer", pn = {
|
|
|
1579
1579
|
[H.kilometer]: ue.squareKilometer,
|
|
1580
1580
|
[H.mile]: ue.squareMile,
|
|
1581
1581
|
[H.feet]: ue.squareFeet
|
|
1582
|
-
},
|
|
1582
|
+
}, be = {
|
|
1583
1583
|
[H.kilometer]: "kilometer",
|
|
1584
1584
|
[H.meter]: "meter",
|
|
1585
1585
|
[H.centimeter]: "centimeter",
|
|
@@ -1655,118 +1655,118 @@ function vn({
|
|
|
1655
1655
|
layerProps: n = {},
|
|
1656
1656
|
defaultType: o = "mask"
|
|
1657
1657
|
}) {
|
|
1658
|
-
const i =
|
|
1658
|
+
const i = Z((T) => T.data[e]?.enabled), a = Z((T) => T.setEnabled), l = Z((T) => T.data[e]?.values), c = Z((T) => T.setValue), h = Z((T) => T.data[e]?.modeInstance), y = Z((T) => T.data[e]?.modeSelected), g = ge((T) => T.setLayer), p = x((T) => T.addLayers), b = x((T) => T.removeLayers), m = x(vt((T) => T.maps[e]?.layers.filter((O) => !bn.includes(O)))), w = x((T) => T.getDeckInstance), u = Le({});
|
|
1659
1659
|
Pt({
|
|
1660
1660
|
mapId: e,
|
|
1661
1661
|
layerId: me
|
|
1662
1662
|
});
|
|
1663
|
-
const
|
|
1664
|
-
values:
|
|
1665
|
-
}), [
|
|
1663
|
+
const f = ye(() => Ot({
|
|
1664
|
+
values: l
|
|
1665
|
+
}), [l]), v = ye(() => ({
|
|
1666
1666
|
type: "FeatureCollection",
|
|
1667
|
-
features:
|
|
1667
|
+
features: f.map((T) => ({
|
|
1668
1668
|
type: "Feature",
|
|
1669
|
-
geometry:
|
|
1670
|
-
properties:
|
|
1671
|
-
id:
|
|
1669
|
+
geometry: T.geometry,
|
|
1670
|
+
properties: T.properties,
|
|
1671
|
+
id: T.id
|
|
1672
1672
|
}))
|
|
1673
|
-
}), [
|
|
1674
|
-
const
|
|
1675
|
-
...
|
|
1676
|
-
features:
|
|
1673
|
+
}), [f]), _ = ye(() => f.filter((T) => T.properties.visible).map((T) => T.id), [f]), [M, P] = ae(v), [A, I] = ae([]), R = ee(() => {
|
|
1674
|
+
const T = {
|
|
1675
|
+
...v,
|
|
1676
|
+
features: v.features.filter((O) => O.properties?.visible)
|
|
1677
1677
|
};
|
|
1678
|
-
|
|
1679
|
-
}, [
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
}, [
|
|
1683
|
-
const
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
}), [
|
|
1687
|
-
const
|
|
1688
|
-
|
|
1689
|
-
}, [e,
|
|
1690
|
-
editType:
|
|
1691
|
-
updatedData:
|
|
1678
|
+
P(T);
|
|
1679
|
+
}, [v]);
|
|
1680
|
+
Q(() => {
|
|
1681
|
+
R();
|
|
1682
|
+
}, [R]);
|
|
1683
|
+
const q = Le(f.length);
|
|
1684
|
+
Q(() => (p(e, [me]), () => {
|
|
1685
|
+
b(e, [me]);
|
|
1686
|
+
}), [p, e, b]);
|
|
1687
|
+
const j = ee(() => {
|
|
1688
|
+
R(), I([]), a(e, !1);
|
|
1689
|
+
}, [e, R, a]), D = ee(({
|
|
1690
|
+
editType: T,
|
|
1691
|
+
updatedData: O
|
|
1692
1692
|
}) => {
|
|
1693
|
-
if (
|
|
1694
|
-
|
|
1693
|
+
if (T === te.cancel) {
|
|
1694
|
+
j();
|
|
1695
1695
|
return;
|
|
1696
1696
|
}
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
const
|
|
1700
|
-
|
|
1701
|
-
geometry:
|
|
1702
|
-
properties:
|
|
1697
|
+
P(O), T !== te.updateTentativeFeature && T === te.addFeature && (y !== "edit" && (q.current = q.current + 1), O.features.forEach((d, S) => {
|
|
1698
|
+
d.properties.label ??= `${s?.mask} ${q.current}`, d.properties.index = S, d.properties.visible = d.properties.visible ?? !0;
|
|
1699
|
+
const L = d.id ?? crypto.randomUUID();
|
|
1700
|
+
c(e, L, {
|
|
1701
|
+
geometry: d.geometry,
|
|
1702
|
+
properties: d.properties,
|
|
1703
1703
|
// visible: true,
|
|
1704
1704
|
type: o
|
|
1705
1705
|
});
|
|
1706
|
-
}),
|
|
1707
|
-
}, [o,
|
|
1708
|
-
return
|
|
1709
|
-
const
|
|
1710
|
-
border:
|
|
1711
|
-
point:
|
|
1712
|
-
fill:
|
|
1706
|
+
}), j());
|
|
1707
|
+
}, [o, j, s?.mask, e, y, c]);
|
|
1708
|
+
return Q(() => {
|
|
1709
|
+
const T = i, {
|
|
1710
|
+
border: O,
|
|
1711
|
+
point: d,
|
|
1712
|
+
fill: S
|
|
1713
1713
|
} = t.colors.editing, {
|
|
1714
|
-
border:
|
|
1715
|
-
fill:
|
|
1716
|
-
} = t.colors.finished,
|
|
1714
|
+
border: L,
|
|
1715
|
+
fill: C
|
|
1716
|
+
} = t.colors.finished, k = sn({
|
|
1717
1717
|
layerProps: {
|
|
1718
1718
|
...n.mask,
|
|
1719
|
-
pickable:
|
|
1720
|
-
data:
|
|
1721
|
-
selectedFeatureIndexes:
|
|
1719
|
+
pickable: T,
|
|
1720
|
+
data: M,
|
|
1721
|
+
selectedFeatureIndexes: A,
|
|
1722
1722
|
updateTriggers: {
|
|
1723
1723
|
getFilterValue: _
|
|
1724
1724
|
},
|
|
1725
|
-
onClick: (
|
|
1726
|
-
const
|
|
1727
|
-
|
|
1725
|
+
onClick: (E) => {
|
|
1726
|
+
const V = E;
|
|
1727
|
+
V.isGuide || I([V.index]);
|
|
1728
1728
|
}
|
|
1729
1729
|
},
|
|
1730
|
-
getLineColor: (
|
|
1731
|
-
getFillColor: (
|
|
1730
|
+
getLineColor: (E) => A[0] === E.properties.index ? O : L,
|
|
1731
|
+
getFillColor: (E) => A[0] === E.properties.index ? S : C,
|
|
1732
1732
|
pointColor: {
|
|
1733
|
-
fill:
|
|
1734
|
-
outline:
|
|
1733
|
+
fill: d,
|
|
1734
|
+
outline: O
|
|
1735
1735
|
},
|
|
1736
|
-
onEdit:
|
|
1737
|
-
mode:
|
|
1736
|
+
onEdit: D,
|
|
1737
|
+
mode: T ? h : new ts()
|
|
1738
1738
|
});
|
|
1739
|
-
|
|
1740
|
-
}, [
|
|
1741
|
-
const
|
|
1742
|
-
...
|
|
1743
|
-
data:
|
|
1744
|
-
getFilterValue: (
|
|
1739
|
+
g(me, k);
|
|
1740
|
+
}, [M, i, n.mask, _, h, D, A, g, t.colors.editing, t.colors.finished]), Q(() => {
|
|
1741
|
+
const T = {
|
|
1742
|
+
...Ee,
|
|
1743
|
+
data: v,
|
|
1744
|
+
getFilterValue: (O) => Number(_.includes(O.id)),
|
|
1745
1745
|
updateTriggers: {
|
|
1746
1746
|
getFilterValue: _
|
|
1747
1747
|
}
|
|
1748
1748
|
};
|
|
1749
|
-
return
|
|
1749
|
+
return g(Ee.id, {
|
|
1750
1750
|
type: as,
|
|
1751
|
-
props:
|
|
1752
|
-
}),
|
|
1753
|
-
|
|
1751
|
+
props: T
|
|
1752
|
+
}), p(e, [Ee.id]), () => {
|
|
1753
|
+
b(e, [Ee.id]);
|
|
1754
1754
|
};
|
|
1755
|
-
}, [
|
|
1756
|
-
|
|
1757
|
-
const
|
|
1758
|
-
if (!
|
|
1759
|
-
i && (
|
|
1760
|
-
const
|
|
1761
|
-
|
|
1755
|
+
}, [p, e, v, _, b, g]), Q(() => {
|
|
1756
|
+
m?.forEach((T) => {
|
|
1757
|
+
const O = w(e)?.props.layers.find((S) => S.props.id === T);
|
|
1758
|
+
if (!O) return;
|
|
1759
|
+
i && (u.current[T] = O?.props.pickable);
|
|
1760
|
+
const d = !i && (u.current[T] ?? O?.props.pickable);
|
|
1761
|
+
g(T, {
|
|
1762
1762
|
props: {
|
|
1763
|
-
pickable:
|
|
1763
|
+
pickable: d,
|
|
1764
1764
|
extensions: [new ns()],
|
|
1765
1765
|
maskId: !i && _.length ? Ce : void 0
|
|
1766
1766
|
}
|
|
1767
|
-
})
|
|
1767
|
+
});
|
|
1768
1768
|
});
|
|
1769
|
-
}, [i,
|
|
1769
|
+
}, [i, w, e, m, _.length, g]), r;
|
|
1770
1770
|
}
|
|
1771
1771
|
vn.Controls = an;
|
|
1772
1772
|
function Sn({
|
|
@@ -1802,7 +1802,7 @@ function wn({
|
|
|
1802
1802
|
pickable: s,
|
|
1803
1803
|
modeConfig: {
|
|
1804
1804
|
// We force distance due to conversion is addressed at feature getText level
|
|
1805
|
-
formatTooltip: (
|
|
1805
|
+
formatTooltip: (g) => g,
|
|
1806
1806
|
turfOptions: {
|
|
1807
1807
|
units: mn.meters
|
|
1808
1808
|
}
|
|
@@ -1819,8 +1819,8 @@ function wn({
|
|
|
1819
1819
|
// needed for the outlineWidth and outlineColor attributes to be effective
|
|
1820
1820
|
smoothing: 0.2
|
|
1821
1821
|
},
|
|
1822
|
-
getText: (
|
|
1823
|
-
meters:
|
|
1822
|
+
getText: (g) => r?.getTooltipText?.({
|
|
1823
|
+
meters: g.text,
|
|
1824
1824
|
locale: t,
|
|
1825
1825
|
unit: n,
|
|
1826
1826
|
options: l
|
|
@@ -1852,7 +1852,7 @@ const _n = (r) => Ge()((e) => ({
|
|
|
1852
1852
|
distance: c = 0,
|
|
1853
1853
|
finished: h = !1,
|
|
1854
1854
|
locale: y = "en",
|
|
1855
|
-
positions:
|
|
1855
|
+
positions: g = [],
|
|
1856
1856
|
clearLayerOnStart: p = !1,
|
|
1857
1857
|
unit: b = Ie["m-km"],
|
|
1858
1858
|
enabled: m = !1
|
|
@@ -1864,7 +1864,7 @@ const _n = (r) => Ge()((e) => ({
|
|
|
1864
1864
|
distance: c,
|
|
1865
1865
|
finished: h,
|
|
1866
1866
|
locale: y,
|
|
1867
|
-
positions:
|
|
1867
|
+
positions: g,
|
|
1868
1868
|
unit: b,
|
|
1869
1869
|
clearLayerOnStart: p,
|
|
1870
1870
|
enabled: m
|
|
@@ -1961,7 +1961,7 @@ const _n = (r) => Ge()((e) => ({
|
|
|
1961
1961
|
}
|
|
1962
1962
|
})), Rt = He({});
|
|
1963
1963
|
function Mn(r) {
|
|
1964
|
-
const e =
|
|
1964
|
+
const e = F(5), {
|
|
1965
1965
|
children: t,
|
|
1966
1966
|
values: s
|
|
1967
1967
|
} = r;
|
|
@@ -1969,111 +1969,111 @@ function Mn(r) {
|
|
|
1969
1969
|
e[0] !== s ? (n = _n(s), e[0] = s, e[1] = n) : n = e[1];
|
|
1970
1970
|
const [o] = ae(n);
|
|
1971
1971
|
let i;
|
|
1972
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
1972
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ K(Rt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1973
1973
|
}
|
|
1974
|
-
function
|
|
1974
|
+
function G(r) {
|
|
1975
1975
|
const e = ze(Rt);
|
|
1976
1976
|
if (!Object.keys(e).length)
|
|
1977
1977
|
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1978
1978
|
return Ke(e, r);
|
|
1979
1979
|
}
|
|
1980
1980
|
function Dt(r) {
|
|
1981
|
-
const e =
|
|
1981
|
+
const e = F(74), {
|
|
1982
1982
|
mapId: t
|
|
1983
1983
|
} = r;
|
|
1984
1984
|
let s;
|
|
1985
|
-
e[0] !== t ? (s = (
|
|
1986
|
-
const n =
|
|
1985
|
+
e[0] !== t ? (s = ($) => $.measurements[t].modes, e[0] = t, e[1] = s) : s = e[1];
|
|
1986
|
+
const n = G(s);
|
|
1987
1987
|
let o;
|
|
1988
|
-
e[2] !== t ? (o = (
|
|
1989
|
-
const i =
|
|
1988
|
+
e[2] !== t ? (o = ($) => $.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
|
|
1989
|
+
const i = G(o);
|
|
1990
1990
|
let a;
|
|
1991
|
-
e[4] !== t ? (a = (
|
|
1992
|
-
const l =
|
|
1991
|
+
e[4] !== t ? (a = ($) => $.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1992
|
+
const l = G(a), c = G(Fn);
|
|
1993
1993
|
let h;
|
|
1994
|
-
e[6] !== c || e[7] !== t ? (h = (
|
|
1994
|
+
e[6] !== c || e[7] !== t ? (h = ($) => c(t, $), e[6] = c, e[7] = t, e[8] = h) : h = e[8];
|
|
1995
1995
|
const y = h;
|
|
1996
|
-
let
|
|
1997
|
-
e[9] !== t ? (
|
|
1998
|
-
const p =
|
|
1996
|
+
let g;
|
|
1997
|
+
e[9] !== t ? (g = ($) => $.measurements[t].clearLayerOnStart, e[9] = t, e[10] = g) : g = e[10];
|
|
1998
|
+
const p = G(g);
|
|
1999
1999
|
let b;
|
|
2000
|
-
e[11] !== t ? (b = (
|
|
2001
|
-
const m =
|
|
2000
|
+
e[11] !== t ? (b = ($) => $.measurements[t].enabled, e[11] = t, e[12] = b) : b = e[12];
|
|
2001
|
+
const m = G(b), w = G(On);
|
|
2002
2002
|
let u;
|
|
2003
|
-
e[13] !== w || e[14] !== t ? (u = (
|
|
2003
|
+
e[13] !== w || e[14] !== t ? (u = ($) => w(t, $), e[13] = w, e[14] = t, e[15] = u) : u = e[15];
|
|
2004
2004
|
const f = u;
|
|
2005
|
-
let
|
|
2006
|
-
e[16] !== t ? (
|
|
2007
|
-
const
|
|
2005
|
+
let v;
|
|
2006
|
+
e[16] !== t ? (v = ($) => $.measurements[t].modeSelected, e[16] = t, e[17] = v) : v = e[17];
|
|
2007
|
+
const _ = G(v), M = G(Cn);
|
|
2008
2008
|
let P;
|
|
2009
|
-
e[18] !==
|
|
2010
|
-
f(
|
|
2011
|
-
}, e[18] =
|
|
2012
|
-
const
|
|
2013
|
-
let
|
|
2014
|
-
e[22] !== t ? (
|
|
2015
|
-
const
|
|
2016
|
-
let x;
|
|
2017
|
-
e[24] !== B || e[25] !== t ? (x = (A) => B(t, A), e[24] = B, e[25] = t, e[26] = x) : x = e[26];
|
|
2018
|
-
const F = x;
|
|
2009
|
+
e[18] !== M || e[19] !== t || e[20] !== f ? (P = ($) => {
|
|
2010
|
+
f(!!$), M(t, $);
|
|
2011
|
+
}, e[18] = M, e[19] = t, e[20] = f, e[21] = P) : P = e[21];
|
|
2012
|
+
const A = P;
|
|
2013
|
+
let I;
|
|
2014
|
+
e[22] !== t ? (I = ($) => $.measurements[t].finished, e[22] = t, e[23] = I) : I = e[23];
|
|
2015
|
+
const R = G(I), q = G(kn);
|
|
2019
2016
|
let j;
|
|
2020
|
-
e[
|
|
2021
|
-
const
|
|
2022
|
-
let
|
|
2023
|
-
e[
|
|
2024
|
-
const
|
|
2017
|
+
e[24] !== q || e[25] !== t ? (j = ($) => q(t, $), e[24] = q, e[25] = t, e[26] = j) : j = e[26];
|
|
2018
|
+
const D = j;
|
|
2019
|
+
let T;
|
|
2020
|
+
e[27] !== t ? (T = ($) => $.measurements[t].locale, e[27] = t, e[28] = T) : T = e[28];
|
|
2021
|
+
const O = G(T), d = G(Pn);
|
|
2022
|
+
let S;
|
|
2023
|
+
e[29] !== d || e[30] !== t ? (S = ($) => d(t, $), e[29] = d, e[30] = t, e[31] = S) : S = e[31];
|
|
2024
|
+
const L = S;
|
|
2025
2025
|
let C;
|
|
2026
|
-
e[32] !== t ? (C = (
|
|
2027
|
-
const k =
|
|
2028
|
-
let
|
|
2029
|
-
e[34] !==
|
|
2030
|
-
const
|
|
2031
|
-
let
|
|
2032
|
-
e[37] !== t ? (
|
|
2033
|
-
const
|
|
2034
|
-
let
|
|
2035
|
-
e[39] !== z || e[40] !== t ? (
|
|
2036
|
-
const se =
|
|
2026
|
+
e[32] !== t ? (C = ($) => $.measurements[t].modeInstance, e[32] = t, e[33] = C) : C = e[33];
|
|
2027
|
+
const k = G(C), E = G(Ln);
|
|
2028
|
+
let V;
|
|
2029
|
+
e[34] !== E || e[35] !== t ? (V = ($) => E(t, $), e[34] = E, e[35] = t, e[36] = V) : V = e[36];
|
|
2030
|
+
const B = V;
|
|
2031
|
+
let N;
|
|
2032
|
+
e[37] !== t ? (N = ($) => $.measurements[t].positions, e[37] = t, e[38] = N) : N = e[38];
|
|
2033
|
+
const U = G(N), z = G(Tn);
|
|
2034
|
+
let W;
|
|
2035
|
+
e[39] !== z || e[40] !== t ? (W = ($) => z(t, $), e[39] = z, e[40] = t, e[41] = W) : W = e[41];
|
|
2036
|
+
const se = W;
|
|
2037
2037
|
let J;
|
|
2038
|
-
e[42] !== t ? (J = (
|
|
2039
|
-
const Y =
|
|
2038
|
+
e[42] !== t ? (J = ($) => $.measurements[t].unit, e[42] = t, e[43] = J) : J = e[43];
|
|
2039
|
+
const Y = G(J), ne = G(En);
|
|
2040
2040
|
let oe;
|
|
2041
|
-
e[44] !== ne || e[45] !== t ? (oe = (
|
|
2041
|
+
e[44] !== ne || e[45] !== t ? (oe = ($) => ne(t, $), e[44] = ne, e[45] = t, e[46] = oe) : oe = e[46];
|
|
2042
2042
|
const Fe = oe;
|
|
2043
|
-
let
|
|
2044
|
-
e[47] !== k || e[48] !== se ? (
|
|
2043
|
+
let Se;
|
|
2044
|
+
e[47] !== k || e[48] !== se ? (Se = () => {
|
|
2045
2045
|
k?.resetClickSequence(), se([]);
|
|
2046
|
-
}, e[47] = k, e[48] = se, e[49] =
|
|
2047
|
-
const Ae =
|
|
2046
|
+
}, e[47] = k, e[48] = se, e[49] = Se) : Se = e[49];
|
|
2047
|
+
const Ae = Se;
|
|
2048
|
+
let we;
|
|
2049
|
+
e[50] !== f ? (we = ($) => {
|
|
2050
|
+
f($);
|
|
2051
|
+
}, e[50] = f, e[51] = we) : we = e[51];
|
|
2052
|
+
const Re = we;
|
|
2048
2053
|
let _e;
|
|
2049
|
-
e[
|
|
2050
|
-
f(A);
|
|
2051
|
-
}, e[50] = f, e[51] = _e) : _e = e[51];
|
|
2052
|
-
const Re = _e;
|
|
2053
|
-
let Me;
|
|
2054
|
-
return e[52] !== Ae || e[53] !== p || e[54] !== l || e[55] !== m || e[56] !== D || e[57] !== E || e[58] !== k || e[59] !== M || e[60] !== n || e[61] !== $ || e[62] !== y || e[63] !== f || e[64] !== F || e[65] !== L || e[66] !== N || e[67] !== R || e[68] !== se || e[69] !== Fe || e[70] !== Re || e[71] !== Y || e[72] !== i ? (Me = {
|
|
2054
|
+
return e[52] !== Ae || e[53] !== p || e[54] !== l || e[55] !== m || e[56] !== R || e[57] !== O || e[58] !== k || e[59] !== _ || e[60] !== n || e[61] !== U || e[62] !== y || e[63] !== f || e[64] !== D || e[65] !== L || e[66] !== B || e[67] !== A || e[68] !== se || e[69] !== Fe || e[70] !== Re || e[71] !== Y || e[72] !== i ? (_e = {
|
|
2055
2055
|
modes: n,
|
|
2056
2056
|
units: i,
|
|
2057
2057
|
distance: l,
|
|
2058
2058
|
clearLayerOnStart: p,
|
|
2059
|
-
modeSelected:
|
|
2059
|
+
modeSelected: _,
|
|
2060
2060
|
enabled: m,
|
|
2061
|
-
finished:
|
|
2062
|
-
locale:
|
|
2061
|
+
finished: R,
|
|
2062
|
+
locale: O,
|
|
2063
2063
|
modeInstance: k,
|
|
2064
|
-
positions:
|
|
2064
|
+
positions: U,
|
|
2065
2065
|
unit: Y,
|
|
2066
2066
|
setDistance: y,
|
|
2067
|
-
setModeSelected:
|
|
2068
|
-
setFinished:
|
|
2067
|
+
setModeSelected: A,
|
|
2068
|
+
setFinished: D,
|
|
2069
2069
|
setLocale: L,
|
|
2070
2070
|
setPositions: se,
|
|
2071
2071
|
setUnit: Fe,
|
|
2072
2072
|
setEnabled: f,
|
|
2073
2073
|
toggleLayer: Re,
|
|
2074
2074
|
clearLayer: Ae,
|
|
2075
|
-
setModeInstance:
|
|
2076
|
-
}, e[52] = Ae, e[53] = p, e[54] = l, e[55] = m, e[56] =
|
|
2075
|
+
setModeInstance: B
|
|
2076
|
+
}, e[52] = Ae, e[53] = p, e[54] = l, e[55] = m, e[56] = R, e[57] = O, e[58] = k, e[59] = _, e[60] = n, e[61] = U, e[62] = y, e[63] = f, e[64] = D, e[65] = L, e[66] = B, e[67] = A, e[68] = se, e[69] = Fe, e[70] = Re, e[71] = Y, e[72] = i, e[73] = _e) : _e = e[73], _e;
|
|
2077
2077
|
}
|
|
2078
2078
|
function En(r) {
|
|
2079
2079
|
return r.setUnit;
|
|
@@ -2100,7 +2100,7 @@ function Fn(r) {
|
|
|
2100
2100
|
return r.setDistance;
|
|
2101
2101
|
}
|
|
2102
2102
|
function An(r) {
|
|
2103
|
-
const e =
|
|
2103
|
+
const e = F(42), {
|
|
2104
2104
|
mapId: t,
|
|
2105
2105
|
textOptions: s,
|
|
2106
2106
|
children: n
|
|
@@ -2116,73 +2116,73 @@ function An(r) {
|
|
|
2116
2116
|
setDistance: c,
|
|
2117
2117
|
clearLayerOnStart: h,
|
|
2118
2118
|
modeSelected: y,
|
|
2119
|
-
setModeSelected:
|
|
2119
|
+
setModeSelected: g,
|
|
2120
2120
|
enabled: p,
|
|
2121
2121
|
setEnabled: b,
|
|
2122
2122
|
finished: m,
|
|
2123
2123
|
setFinished: w,
|
|
2124
2124
|
locale: u,
|
|
2125
2125
|
setLocale: f,
|
|
2126
|
-
modeInstance:
|
|
2127
|
-
setModeInstance:
|
|
2128
|
-
positions:
|
|
2126
|
+
modeInstance: v,
|
|
2127
|
+
setModeInstance: _,
|
|
2128
|
+
positions: M,
|
|
2129
2129
|
setPositions: P,
|
|
2130
|
-
unit:
|
|
2131
|
-
setUnit:
|
|
2132
|
-
clearLayer:
|
|
2133
|
-
toggleLayer:
|
|
2130
|
+
unit: A,
|
|
2131
|
+
setUnit: I,
|
|
2132
|
+
clearLayer: R,
|
|
2133
|
+
toggleLayer: q
|
|
2134
2134
|
} = Dt(o);
|
|
2135
|
-
let
|
|
2136
|
-
e[2] !== y || e[3] !== i || e[4] !==
|
|
2135
|
+
let j;
|
|
2136
|
+
e[2] !== y || e[3] !== i || e[4] !== _ || e[5] !== P ? (j = () => {
|
|
2137
2137
|
if (y && i[y]) {
|
|
2138
2138
|
const L = i[y].mode;
|
|
2139
|
-
|
|
2139
|
+
_(new L());
|
|
2140
2140
|
}
|
|
2141
2141
|
return () => {
|
|
2142
2142
|
P([]);
|
|
2143
2143
|
};
|
|
2144
|
-
}, e[2] = y, e[3] = i, e[4] =
|
|
2145
|
-
let
|
|
2146
|
-
e[7] !== y || e[8] !== i || e[9] !== b || e[10] !==
|
|
2147
|
-
let
|
|
2148
|
-
e[13] !==
|
|
2149
|
-
L && (h || !m) &&
|
|
2150
|
-
}, e[13] =
|
|
2151
|
-
const
|
|
2152
|
-
let
|
|
2153
|
-
return e[18] !== n || e[19] !==
|
|
2144
|
+
}, e[2] = y, e[3] = i, e[4] = _, e[5] = P, e[6] = j) : j = e[6];
|
|
2145
|
+
let D;
|
|
2146
|
+
e[7] !== y || e[8] !== i || e[9] !== b || e[10] !== _ || e[11] !== P ? (D = [i, y, P, _, b], e[7] = y, e[8] = i, e[9] = b, e[10] = _, e[11] = P, e[12] = D) : D = e[12], Q(j, D);
|
|
2147
|
+
let T;
|
|
2148
|
+
e[13] !== q || e[14] !== R || e[15] !== h || e[16] !== m ? (T = (L) => {
|
|
2149
|
+
L && (h || !m) && R(), q(L);
|
|
2150
|
+
}, e[13] = q, e[14] = R, e[15] = h, e[16] = m, e[17] = T) : T = e[17];
|
|
2151
|
+
const O = T, d = !!h;
|
|
2152
|
+
let S;
|
|
2153
|
+
return e[18] !== n || e[19] !== R || e[20] !== l || e[21] !== p || e[22] !== m || e[23] !== u || e[24] !== t || e[25] !== v || e[26] !== y || e[27] !== i || e[28] !== M || e[29] !== c || e[30] !== b || e[31] !== w || e[32] !== f || e[33] !== g || e[34] !== P || e[35] !== I || e[36] !== d || e[37] !== s || e[38] !== O || e[39] !== A || e[40] !== a ? (S = n({
|
|
2154
2154
|
mapId: t,
|
|
2155
2155
|
distance: l,
|
|
2156
2156
|
enabled: p,
|
|
2157
2157
|
finished: m,
|
|
2158
2158
|
locale: u,
|
|
2159
|
-
positions:
|
|
2160
|
-
unit:
|
|
2159
|
+
positions: M,
|
|
2160
|
+
unit: A,
|
|
2161
2161
|
clearLayerOnStart: d,
|
|
2162
2162
|
modeSelected: y,
|
|
2163
2163
|
modes: i,
|
|
2164
2164
|
units: a,
|
|
2165
2165
|
value: Oe({
|
|
2166
2166
|
meters: l,
|
|
2167
|
-
unit:
|
|
2167
|
+
unit: A,
|
|
2168
2168
|
locale: u,
|
|
2169
2169
|
options: s
|
|
2170
2170
|
}),
|
|
2171
|
-
modeInstance:
|
|
2172
|
-
setModeSelected:
|
|
2171
|
+
modeInstance: v,
|
|
2172
|
+
setModeSelected: g,
|
|
2173
2173
|
setDistance: c,
|
|
2174
2174
|
setFinished: w,
|
|
2175
2175
|
setLocale: f,
|
|
2176
2176
|
setPositions: P,
|
|
2177
|
-
setUnit:
|
|
2177
|
+
setUnit: I,
|
|
2178
2178
|
setEnabled: b,
|
|
2179
|
-
toggleLayer:
|
|
2180
|
-
clearLayer:
|
|
2181
|
-
}), e[18] = n, e[19] =
|
|
2179
|
+
toggleLayer: O,
|
|
2180
|
+
clearLayer: R
|
|
2181
|
+
}), e[18] = n, e[19] = R, e[20] = l, e[21] = p, e[22] = m, e[23] = u, e[24] = t, e[25] = v, e[26] = y, e[27] = i, e[28] = M, e[29] = c, e[30] = b, e[31] = w, e[32] = f, e[33] = g, e[34] = P, e[35] = I, e[36] = d, e[37] = s, e[38] = O, e[39] = A, e[40] = a, e[41] = S) : S = e[41], S;
|
|
2182
2182
|
}
|
|
2183
2183
|
const Rn = [ce];
|
|
2184
2184
|
function Dn(r) {
|
|
2185
|
-
const e =
|
|
2185
|
+
const e = F(50), {
|
|
2186
2186
|
children: t,
|
|
2187
2187
|
mapId: s,
|
|
2188
2188
|
defaultProps: n,
|
|
@@ -2202,85 +2202,85 @@ function Dn(r) {
|
|
|
2202
2202
|
}, e[2] = s, e[3] = h) : h = e[3];
|
|
2203
2203
|
const {
|
|
2204
2204
|
setDistance: y,
|
|
2205
|
-
clearLayerOnStart:
|
|
2205
|
+
clearLayerOnStart: g,
|
|
2206
2206
|
enabled: p,
|
|
2207
2207
|
finished: b,
|
|
2208
2208
|
setFinished: m,
|
|
2209
2209
|
locale: w,
|
|
2210
2210
|
setPositions: u,
|
|
2211
2211
|
unit: f,
|
|
2212
|
-
modeInstance:
|
|
2213
|
-
} = Dt(h),
|
|
2214
|
-
let
|
|
2215
|
-
e[4] !== s ? (
|
|
2216
|
-
const
|
|
2217
|
-
let
|
|
2218
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2219
|
-
const
|
|
2220
|
-
let
|
|
2221
|
-
e[7] !== s ? (
|
|
2212
|
+
modeInstance: v
|
|
2213
|
+
} = Dt(h), _ = ge(Bn), M = x(Vn), P = x(Un), A = x(xn);
|
|
2214
|
+
let I;
|
|
2215
|
+
e[4] !== s ? (I = (B) => B.maps[s]?.layers.filter(qn), e[4] = s, e[5] = I) : I = e[5];
|
|
2216
|
+
const R = x(vt(I)), q = x($n);
|
|
2217
|
+
let j;
|
|
2218
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (j = {}, e[6] = j) : j = e[6];
|
|
2219
|
+
const D = Le(j);
|
|
2220
|
+
let T;
|
|
2221
|
+
e[7] !== s ? (T = {
|
|
2222
2222
|
mapId: s,
|
|
2223
2223
|
layerId: ce
|
|
2224
|
-
}, e[7] = s, e[8] =
|
|
2225
|
-
let
|
|
2226
|
-
e[9] !==
|
|
2227
|
-
const
|
|
2228
|
-
return p && (
|
|
2224
|
+
}, e[7] = s, e[8] = T) : T = e[8], Pt(T);
|
|
2225
|
+
let O;
|
|
2226
|
+
e[9] !== P || e[10] !== p || e[11] !== q || e[12] !== s || e[13] !== A || e[14] !== M ? (O = () => {
|
|
2227
|
+
const B = q(s)?.props.controller;
|
|
2228
|
+
return p && (P(s, [ce]), M(s, {
|
|
2229
2229
|
doubleClickZoom: !1
|
|
2230
2230
|
})), () => {
|
|
2231
|
-
|
|
2231
|
+
A(s, [ce]), M(s, B);
|
|
2232
2232
|
};
|
|
2233
|
-
}, e[9] =
|
|
2234
|
-
let
|
|
2235
|
-
e[16] !==
|
|
2236
|
-
let
|
|
2237
|
-
e[24] !== p || e[25] !==
|
|
2238
|
-
|
|
2239
|
-
const
|
|
2240
|
-
if (
|
|
2233
|
+
}, e[9] = P, e[10] = p, e[11] = q, e[12] = s, e[13] = A, e[14] = M, e[15] = O) : O = e[15];
|
|
2234
|
+
let d;
|
|
2235
|
+
e[16] !== P || e[17] !== g || e[18] !== p || e[19] !== q || e[20] !== s || e[21] !== A || e[22] !== M ? (d = [P, g, s, A, p, q, M], e[16] = P, e[17] = g, e[18] = p, e[19] = q, e[20] = s, e[21] = A, e[22] = M, e[23] = d) : d = e[23], Q(O, d);
|
|
2236
|
+
let S, L;
|
|
2237
|
+
e[24] !== p || e[25] !== q || e[26] !== s || e[27] !== R || e[28] !== _ ? (S = () => {
|
|
2238
|
+
R?.forEach((B) => {
|
|
2239
|
+
const N = q(s)?.props.layers.find((z) => z.props.id === B);
|
|
2240
|
+
if (!N)
|
|
2241
2241
|
return;
|
|
2242
|
-
p && (
|
|
2243
|
-
const
|
|
2244
|
-
_(
|
|
2242
|
+
p && (D.current[B] = N?.props.pickable);
|
|
2243
|
+
const U = !p && (D.current[B] ?? N?.props.pickable);
|
|
2244
|
+
_(B, {
|
|
2245
2245
|
props: {
|
|
2246
|
-
pickable:
|
|
2246
|
+
pickable: U
|
|
2247
2247
|
}
|
|
2248
|
-
})
|
|
2248
|
+
});
|
|
2249
2249
|
});
|
|
2250
|
-
},
|
|
2251
|
-
let
|
|
2252
|
-
e[31] !==
|
|
2250
|
+
}, L = [p, q, s, R, _], e[24] = p, e[25] = q, e[26] = s, e[27] = R, e[28] = _, e[29] = S, e[30] = L) : (S = e[29], L = e[30]), Q(S, L);
|
|
2251
|
+
let C;
|
|
2252
|
+
e[31] !== v || e[32] !== y || e[33] !== m || e[34] !== u ? (C = (B) => {
|
|
2253
2253
|
const {
|
|
2254
|
-
editType:
|
|
2255
|
-
editContext:
|
|
2256
|
-
} =
|
|
2257
|
-
if (
|
|
2258
|
-
|
|
2254
|
+
editType: N,
|
|
2255
|
+
editContext: U
|
|
2256
|
+
} = B;
|
|
2257
|
+
if (N === te.cancel) {
|
|
2258
|
+
v.resetClickSequence();
|
|
2259
2259
|
return;
|
|
2260
2260
|
}
|
|
2261
|
-
|
|
2262
|
-
const
|
|
2263
|
-
|
|
2264
|
-
}, e[31] =
|
|
2265
|
-
const
|
|
2266
|
-
let
|
|
2267
|
-
return e[36] !== p || e[37] !== b || e[38] !== o || e[39] !== w || e[40] !==
|
|
2268
|
-
const
|
|
2261
|
+
N === te.addPosition && y(U.distance), m(!!U.finished);
|
|
2262
|
+
const z = U.positions;
|
|
2263
|
+
z?.length && u(z);
|
|
2264
|
+
}, e[31] = v, e[32] = y, e[33] = m, e[34] = u, e[35] = C) : C = e[35];
|
|
2265
|
+
const k = C;
|
|
2266
|
+
let E, V;
|
|
2267
|
+
return e[36] !== p || e[37] !== b || e[38] !== o || e[39] !== w || e[40] !== v || e[41] !== k || e[42] !== _ || e[43] !== c.colors.editing || e[44] !== c.colors.finished || e[45] !== c.colors.point || e[46] !== i || e[47] !== f ? (E = () => {
|
|
2268
|
+
const B = b ? c.colors.finished : c.colors.editing, N = b ? c.colors.finished : c.colors.point, U = Sn({
|
|
2269
2269
|
layerProps: {
|
|
2270
2270
|
...o,
|
|
2271
2271
|
pickable: o?.pickable ?? !b
|
|
2272
2272
|
},
|
|
2273
2273
|
enabled: p,
|
|
2274
|
-
guideColor:
|
|
2275
|
-
pointColor:
|
|
2274
|
+
guideColor: B,
|
|
2275
|
+
pointColor: N,
|
|
2276
2276
|
locale: w,
|
|
2277
|
-
onEdit:
|
|
2277
|
+
onEdit: k,
|
|
2278
2278
|
unit: f,
|
|
2279
|
-
mode:
|
|
2279
|
+
mode: v,
|
|
2280
2280
|
textOptions: i
|
|
2281
2281
|
});
|
|
2282
|
-
_(ce,
|
|
2283
|
-
},
|
|
2282
|
+
_(ce, U);
|
|
2283
|
+
}, V = [b, v, o, w, k, _, c.colors.editing, c.colors.finished, c.colors.point, i, f, p], e[36] = p, e[37] = b, e[38] = o, e[39] = w, e[40] = v, e[41] = k, e[42] = _, e[43] = c.colors.editing, e[44] = c.colors.finished, e[45] = c.colors.point, e[46] = i, e[47] = f, e[48] = E, e[49] = V) : (E = e[48], V = e[49]), Q(E, V), t;
|
|
2284
2284
|
}
|
|
2285
2285
|
function $n(r) {
|
|
2286
2286
|
return r.getDeckInstance;
|
|
@@ -2302,14 +2302,14 @@ function Bn(r) {
|
|
|
2302
2302
|
}
|
|
2303
2303
|
Dn.Controls = An;
|
|
2304
2304
|
function jn(r) {
|
|
2305
|
-
const e =
|
|
2305
|
+
const e = F(7), {
|
|
2306
2306
|
mapId: t
|
|
2307
2307
|
} = r;
|
|
2308
2308
|
let s;
|
|
2309
2309
|
e[0] !== t ? (s = (l) => l.maps[t], e[0] = t, e[1] = s) : s = e[1];
|
|
2310
2310
|
const {
|
|
2311
2311
|
layers: n
|
|
2312
|
-
} =
|
|
2312
|
+
} = x(s), o = ge(Nn);
|
|
2313
2313
|
let i;
|
|
2314
2314
|
if (e[2] !== o || e[3] !== n) {
|
|
2315
2315
|
let l;
|
|
@@ -2331,7 +2331,7 @@ function $t(r) {
|
|
|
2331
2331
|
}
|
|
2332
2332
|
const Hn = 200;
|
|
2333
2333
|
function go(r) {
|
|
2334
|
-
const e =
|
|
2334
|
+
const e = F(51);
|
|
2335
2335
|
let t, s, n, o;
|
|
2336
2336
|
e[0] !== r ? ({
|
|
2337
2337
|
id: t,
|
|
@@ -2340,59 +2340,59 @@ function go(r) {
|
|
|
2340
2340
|
...o
|
|
2341
2341
|
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o) : (t = e[1], s = e[2], n = e[3], o = e[4]);
|
|
2342
2342
|
let i;
|
|
2343
|
-
e[5] !== t ? (i = (
|
|
2344
|
-
const a =
|
|
2343
|
+
e[5] !== t ? (i = (E) => E.maps[t].basemap, e[5] = t, e[6] = i) : i = e[6];
|
|
2344
|
+
const a = x(i);
|
|
2345
2345
|
let l;
|
|
2346
|
-
e[7] !== t ? (l = (
|
|
2347
|
-
const c =
|
|
2346
|
+
e[7] !== t ? (l = (E) => E.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
|
|
2347
|
+
const c = x(l);
|
|
2348
2348
|
let h;
|
|
2349
|
-
e[9] !== t ? (h = (
|
|
2350
|
-
const y =
|
|
2349
|
+
e[9] !== t ? (h = (E) => E.maps[t].overlayRef, e[9] = t, e[10] = h) : h = e[10];
|
|
2350
|
+
const y = x(h), g = Le(null);
|
|
2351
2351
|
let p;
|
|
2352
|
-
e[11] !== t ? (p = (
|
|
2353
|
-
const b =
|
|
2352
|
+
e[11] !== t ? (p = (E) => E.viewStates[t], e[11] = t, e[12] = p) : p = e[12];
|
|
2353
|
+
const b = x(p);
|
|
2354
2354
|
let m;
|
|
2355
|
-
e[13] !== t ? (m = (
|
|
2356
|
-
const w =
|
|
2355
|
+
e[13] !== t ? (m = (E) => E.maps[t].controller, e[13] = t, e[14] = m) : m = e[14];
|
|
2356
|
+
const w = x(m), u = x(Wn), f = x(Qn), v = x(Zn), _ = x(Kn), M = x(Gn);
|
|
2357
2357
|
let P;
|
|
2358
2358
|
e[15] !== t ? (P = {
|
|
2359
2359
|
mapId: t
|
|
2360
2360
|
}, e[15] = t, e[16] = P) : P = e[16];
|
|
2361
|
-
const
|
|
2362
|
-
let
|
|
2363
|
-
e[17] !==
|
|
2364
|
-
const
|
|
2365
|
-
let
|
|
2366
|
-
e[19] !== t || e[20] !== n || e[21] !== f || e[22] !==
|
|
2367
|
-
const
|
|
2368
|
-
if (
|
|
2369
|
-
|
|
2361
|
+
const A = jn(P);
|
|
2362
|
+
let I;
|
|
2363
|
+
e[17] !== A ? (I = $t(A), e[17] = A, e[18] = I) : I = e[18];
|
|
2364
|
+
const R = I;
|
|
2365
|
+
let q;
|
|
2366
|
+
e[19] !== t || e[20] !== n || e[21] !== f || e[22] !== M ? (q = (E) => {
|
|
2367
|
+
const V = f;
|
|
2368
|
+
if (g.current && clearInterval(g.current), g.current = setTimeout(() => {
|
|
2369
|
+
M(t);
|
|
2370
2370
|
}, Hn), n) {
|
|
2371
|
-
n(
|
|
2371
|
+
n(E, V);
|
|
2372
2372
|
return;
|
|
2373
2373
|
}
|
|
2374
|
-
|
|
2375
|
-
}, e[19] = t, e[20] = n, e[21] = f, e[22] =
|
|
2376
|
-
const
|
|
2377
|
-
let
|
|
2378
|
-
e[24] !== t || e[25] !== s || e[26] !==
|
|
2379
|
-
|
|
2380
|
-
}, e[24] = t, e[25] = s, e[26] =
|
|
2381
|
-
const
|
|
2382
|
-
let
|
|
2383
|
-
e[29] !== u || e[30] !== t || e[31] !== o || e[32] !==
|
|
2384
|
-
const
|
|
2385
|
-
|
|
2386
|
-
}, e[29] = u, e[30] = t, e[31] = o, e[32] =
|
|
2387
|
-
const d =
|
|
2374
|
+
V(t, E.viewState);
|
|
2375
|
+
}, e[19] = t, e[20] = n, e[21] = f, e[22] = M, e[23] = q) : q = e[23];
|
|
2376
|
+
const j = q;
|
|
2377
|
+
let D;
|
|
2378
|
+
e[24] !== t || e[25] !== s || e[26] !== v || e[27] !== M ? (D = (E) => {
|
|
2379
|
+
v(t, E), s?.(E), M(t);
|
|
2380
|
+
}, e[24] = t, e[25] = s, e[26] = v, e[27] = M, e[28] = D) : D = e[28];
|
|
2381
|
+
const T = D;
|
|
2382
|
+
let O;
|
|
2383
|
+
e[29] !== u || e[30] !== t || e[31] !== o || e[32] !== _ ? (O = (E) => {
|
|
2384
|
+
const B = !!u(t)?.props.layers?.every(zn);
|
|
2385
|
+
_(t, B), o.onAfterRender?.(E);
|
|
2386
|
+
}, e[29] = u, e[30] = t, e[31] = o, e[32] = _, e[33] = O) : O = e[33];
|
|
2387
|
+
const d = O, S = o.onDragEnd;
|
|
2388
2388
|
let L;
|
|
2389
|
-
e[34] !==
|
|
2390
|
-
const
|
|
2391
|
-
|
|
2392
|
-
}, e[34] =
|
|
2389
|
+
e[34] !== S || e[35] !== t || e[36] !== M ? (L = (...E) => {
|
|
2390
|
+
const V = E;
|
|
2391
|
+
M(t), S && S(...V);
|
|
2392
|
+
}, e[34] = S, e[35] = t, e[36] = M, e[37] = L) : L = e[37];
|
|
2393
2393
|
const C = L;
|
|
2394
2394
|
let k;
|
|
2395
|
-
return e[38] !== a || e[39] !==
|
|
2395
|
+
return e[38] !== a || e[39] !== R || e[40] !== w || e[41] !== d || e[42] !== C || e[43] !== T || e[44] !== j || e[45] !== t || e[46] !== c || e[47] !== y || e[48] !== o || e[49] !== b ? (k = /* @__PURE__ */ K(qs, { ...o, controller: w, id: t, layers: R, instanceRef: c, overlayRef: y, basemap: a, initialViewState: b, onLoad: T, onViewStateChange: j, onAfterRender: d, onDragEnd: C }), e[38] = a, e[39] = R, e[40] = w, e[41] = d, e[42] = C, e[43] = T, e[44] = j, e[45] = t, e[46] = c, e[47] = y, e[48] = o, e[49] = b, e[50] = k) : k = e[50], k;
|
|
2396
2396
|
}
|
|
2397
2397
|
function zn(r) {
|
|
2398
2398
|
return r?.isLoaded;
|
|
@@ -2412,10 +2412,10 @@ function Qn(r) {
|
|
|
2412
2412
|
function Wn(r) {
|
|
2413
2413
|
return r.getDeckInstance;
|
|
2414
2414
|
}
|
|
2415
|
-
var
|
|
2415
|
+
var Te = { exports: {} }, ut;
|
|
2416
2416
|
function Yn() {
|
|
2417
2417
|
return ut || (ut = 1, (function(r, e) {
|
|
2418
|
-
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof
|
|
2418
|
+
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Me < "u" && Me, s = (function() {
|
|
2419
2419
|
function o() {
|
|
2420
2420
|
this.fetch = !1, this.DOMException = t.DOMException;
|
|
2421
2421
|
}
|
|
@@ -2424,7 +2424,7 @@ function Yn() {
|
|
|
2424
2424
|
(function(o) {
|
|
2425
2425
|
(function(i) {
|
|
2426
2426
|
var a = typeof o < "u" && o || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
2427
|
-
typeof
|
|
2427
|
+
typeof Me < "u" && Me || {}, l = {
|
|
2428
2428
|
searchParams: "URLSearchParams" in a,
|
|
2429
2429
|
iterable: "Symbol" in a && "iterator" in Symbol,
|
|
2430
2430
|
blob: "FileReader" in a && "Blob" in a && (function() {
|
|
@@ -2454,7 +2454,7 @@ function Yn() {
|
|
|
2454
2454
|
], y = ArrayBuffer.isView || function(d) {
|
|
2455
2455
|
return d && h.indexOf(Object.prototype.toString.call(d)) > -1;
|
|
2456
2456
|
};
|
|
2457
|
-
function
|
|
2457
|
+
function g(d) {
|
|
2458
2458
|
if (typeof d != "string" && (d = String(d)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(d) || d === "")
|
|
2459
2459
|
throw new TypeError('Invalid character in header field name: "' + d + '"');
|
|
2460
2460
|
return d.toLowerCase();
|
|
@@ -2463,56 +2463,56 @@ function Yn() {
|
|
|
2463
2463
|
return typeof d != "string" && (d = String(d)), d;
|
|
2464
2464
|
}
|
|
2465
2465
|
function b(d) {
|
|
2466
|
-
var
|
|
2466
|
+
var S = {
|
|
2467
2467
|
next: function() {
|
|
2468
2468
|
var L = d.shift();
|
|
2469
2469
|
return { done: L === void 0, value: L };
|
|
2470
2470
|
}
|
|
2471
2471
|
};
|
|
2472
|
-
return l.iterable && (
|
|
2473
|
-
return
|
|
2474
|
-
}),
|
|
2472
|
+
return l.iterable && (S[Symbol.iterator] = function() {
|
|
2473
|
+
return S;
|
|
2474
|
+
}), S;
|
|
2475
2475
|
}
|
|
2476
2476
|
function m(d) {
|
|
2477
|
-
this.map = {}, d instanceof m ? d.forEach(function(
|
|
2478
|
-
this.append(L,
|
|
2479
|
-
}, this) : Array.isArray(d) ? d.forEach(function(
|
|
2480
|
-
if (
|
|
2481
|
-
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" +
|
|
2482
|
-
this.append(
|
|
2483
|
-
}, this) : d && Object.getOwnPropertyNames(d).forEach(function(
|
|
2484
|
-
this.append(
|
|
2477
|
+
this.map = {}, d instanceof m ? d.forEach(function(S, L) {
|
|
2478
|
+
this.append(L, S);
|
|
2479
|
+
}, this) : Array.isArray(d) ? d.forEach(function(S) {
|
|
2480
|
+
if (S.length != 2)
|
|
2481
|
+
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + S.length);
|
|
2482
|
+
this.append(S[0], S[1]);
|
|
2483
|
+
}, this) : d && Object.getOwnPropertyNames(d).forEach(function(S) {
|
|
2484
|
+
this.append(S, d[S]);
|
|
2485
2485
|
}, this);
|
|
2486
2486
|
}
|
|
2487
|
-
m.prototype.append = function(d,
|
|
2488
|
-
d =
|
|
2487
|
+
m.prototype.append = function(d, S) {
|
|
2488
|
+
d = g(d), S = p(S);
|
|
2489
2489
|
var L = this.map[d];
|
|
2490
|
-
this.map[d] = L ? L + ", " +
|
|
2490
|
+
this.map[d] = L ? L + ", " + S : S;
|
|
2491
2491
|
}, m.prototype.delete = function(d) {
|
|
2492
|
-
delete this.map[
|
|
2492
|
+
delete this.map[g(d)];
|
|
2493
2493
|
}, m.prototype.get = function(d) {
|
|
2494
|
-
return d =
|
|
2494
|
+
return d = g(d), this.has(d) ? this.map[d] : null;
|
|
2495
2495
|
}, m.prototype.has = function(d) {
|
|
2496
|
-
return this.map.hasOwnProperty(
|
|
2497
|
-
}, m.prototype.set = function(d,
|
|
2498
|
-
this.map[
|
|
2499
|
-
}, m.prototype.forEach = function(d,
|
|
2496
|
+
return this.map.hasOwnProperty(g(d));
|
|
2497
|
+
}, m.prototype.set = function(d, S) {
|
|
2498
|
+
this.map[g(d)] = p(S);
|
|
2499
|
+
}, m.prototype.forEach = function(d, S) {
|
|
2500
2500
|
for (var L in this.map)
|
|
2501
|
-
this.map.hasOwnProperty(L) && d.call(
|
|
2501
|
+
this.map.hasOwnProperty(L) && d.call(S, this.map[L], L, this);
|
|
2502
2502
|
}, m.prototype.keys = function() {
|
|
2503
2503
|
var d = [];
|
|
2504
|
-
return this.forEach(function(
|
|
2504
|
+
return this.forEach(function(S, L) {
|
|
2505
2505
|
d.push(L);
|
|
2506
2506
|
}), b(d);
|
|
2507
2507
|
}, m.prototype.values = function() {
|
|
2508
2508
|
var d = [];
|
|
2509
|
-
return this.forEach(function(
|
|
2510
|
-
d.push(
|
|
2509
|
+
return this.forEach(function(S) {
|
|
2510
|
+
d.push(S);
|
|
2511
2511
|
}), b(d);
|
|
2512
2512
|
}, m.prototype.entries = function() {
|
|
2513
2513
|
var d = [];
|
|
2514
|
-
return this.forEach(function(
|
|
2515
|
-
d.push([L,
|
|
2514
|
+
return this.forEach(function(S, L) {
|
|
2515
|
+
d.push([L, S]);
|
|
2516
2516
|
}), b(d);
|
|
2517
2517
|
}, l.iterable && (m.prototype[Symbol.iterator] = m.prototype.entries);
|
|
2518
2518
|
function w(d) {
|
|
@@ -2523,36 +2523,36 @@ function Yn() {
|
|
|
2523
2523
|
}
|
|
2524
2524
|
}
|
|
2525
2525
|
function u(d) {
|
|
2526
|
-
return new Promise(function(
|
|
2526
|
+
return new Promise(function(S, L) {
|
|
2527
2527
|
d.onload = function() {
|
|
2528
|
-
|
|
2528
|
+
S(d.result);
|
|
2529
2529
|
}, d.onerror = function() {
|
|
2530
2530
|
L(d.error);
|
|
2531
2531
|
};
|
|
2532
2532
|
});
|
|
2533
2533
|
}
|
|
2534
2534
|
function f(d) {
|
|
2535
|
-
var
|
|
2536
|
-
return
|
|
2535
|
+
var S = new FileReader(), L = u(S);
|
|
2536
|
+
return S.readAsArrayBuffer(d), L;
|
|
2537
2537
|
}
|
|
2538
|
-
function
|
|
2539
|
-
var
|
|
2540
|
-
return
|
|
2538
|
+
function v(d) {
|
|
2539
|
+
var S = new FileReader(), L = u(S), C = /charset=([A-Za-z0-9_-]+)/.exec(d.type), k = C ? C[1] : "utf-8";
|
|
2540
|
+
return S.readAsText(d, k), L;
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2543
|
-
for (var
|
|
2544
|
-
L[C] = String.fromCharCode(
|
|
2542
|
+
function _(d) {
|
|
2543
|
+
for (var S = new Uint8Array(d), L = new Array(S.length), C = 0; C < S.length; C++)
|
|
2544
|
+
L[C] = String.fromCharCode(S[C]);
|
|
2545
2545
|
return L.join("");
|
|
2546
2546
|
}
|
|
2547
|
-
function
|
|
2547
|
+
function M(d) {
|
|
2548
2548
|
if (d.slice)
|
|
2549
2549
|
return d.slice(0);
|
|
2550
|
-
var
|
|
2551
|
-
return
|
|
2550
|
+
var S = new Uint8Array(d.byteLength);
|
|
2551
|
+
return S.set(new Uint8Array(d)), S.buffer;
|
|
2552
2552
|
}
|
|
2553
2553
|
function P() {
|
|
2554
2554
|
return this.bodyUsed = !1, this._initBody = function(d) {
|
|
2555
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit = d, d ? typeof d == "string" ? this._bodyText = d : l.blob && Blob.prototype.isPrototypeOf(d) ? this._bodyBlob = d : l.formData && FormData.prototype.isPrototypeOf(d) ? this._bodyFormData = d : l.searchParams && URLSearchParams.prototype.isPrototypeOf(d) ? this._bodyText = d.toString() : l.arrayBuffer && l.blob && c(d) ? (this._bodyArrayBuffer =
|
|
2555
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = d, d ? typeof d == "string" ? this._bodyText = d : l.blob && Blob.prototype.isPrototypeOf(d) ? this._bodyBlob = d : l.formData && FormData.prototype.isPrototypeOf(d) ? this._bodyFormData = d : l.searchParams && URLSearchParams.prototype.isPrototypeOf(d) ? this._bodyText = d.toString() : l.arrayBuffer && l.blob && c(d) ? (this._bodyArrayBuffer = M(d.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(d) || y(d)) ? this._bodyArrayBuffer = M(d) : this._bodyText = d = Object.prototype.toString.call(d) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof d == "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(d) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2556
2556
|
}, l.blob && (this.blob = function() {
|
|
2557
2557
|
var d = w(this);
|
|
2558
2558
|
if (d)
|
|
@@ -2583,42 +2583,42 @@ function Yn() {
|
|
|
2583
2583
|
if (d)
|
|
2584
2584
|
return d;
|
|
2585
2585
|
if (this._bodyBlob)
|
|
2586
|
-
return
|
|
2586
|
+
return v(this._bodyBlob);
|
|
2587
2587
|
if (this._bodyArrayBuffer)
|
|
2588
|
-
return Promise.resolve(
|
|
2588
|
+
return Promise.resolve(_(this._bodyArrayBuffer));
|
|
2589
2589
|
if (this._bodyFormData)
|
|
2590
2590
|
throw new Error("could not read FormData body as text");
|
|
2591
2591
|
return Promise.resolve(this._bodyText);
|
|
2592
2592
|
}, l.formData && (this.formData = function() {
|
|
2593
|
-
return this.text().then(
|
|
2593
|
+
return this.text().then(q);
|
|
2594
2594
|
}), this.json = function() {
|
|
2595
2595
|
return this.text().then(JSON.parse);
|
|
2596
2596
|
}, this;
|
|
2597
2597
|
}
|
|
2598
|
-
var
|
|
2599
|
-
function
|
|
2600
|
-
var
|
|
2601
|
-
return
|
|
2598
|
+
var A = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
2599
|
+
function I(d) {
|
|
2600
|
+
var S = d.toUpperCase();
|
|
2601
|
+
return A.indexOf(S) > -1 ? S : d;
|
|
2602
2602
|
}
|
|
2603
|
-
function
|
|
2604
|
-
if (!(this instanceof
|
|
2603
|
+
function R(d, S) {
|
|
2604
|
+
if (!(this instanceof R))
|
|
2605
2605
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2606
|
-
|
|
2607
|
-
var L =
|
|
2608
|
-
if (d instanceof
|
|
2606
|
+
S = S || {};
|
|
2607
|
+
var L = S.body;
|
|
2608
|
+
if (d instanceof R) {
|
|
2609
2609
|
if (d.bodyUsed)
|
|
2610
2610
|
throw new TypeError("Already read");
|
|
2611
|
-
this.url = d.url, this.credentials = d.credentials,
|
|
2611
|
+
this.url = d.url, this.credentials = d.credentials, S.headers || (this.headers = new m(d.headers)), this.method = d.method, this.mode = d.mode, this.signal = d.signal, !L && d._bodyInit != null && (L = d._bodyInit, d.bodyUsed = !0);
|
|
2612
2612
|
} else
|
|
2613
2613
|
this.url = String(d);
|
|
2614
|
-
if (this.credentials =
|
|
2614
|
+
if (this.credentials = S.credentials || this.credentials || "same-origin", (S.headers || !this.headers) && (this.headers = new m(S.headers)), this.method = I(S.method || this.method || "GET"), this.mode = S.mode || this.mode || null, this.signal = S.signal || this.signal || (function() {
|
|
2615
2615
|
if ("AbortController" in a) {
|
|
2616
|
-
var
|
|
2617
|
-
return
|
|
2616
|
+
var E = new AbortController();
|
|
2617
|
+
return E.signal;
|
|
2618
2618
|
}
|
|
2619
2619
|
})(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && L)
|
|
2620
2620
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2621
|
-
if (this._initBody(L), (this.method === "GET" || this.method === "HEAD") && (
|
|
2621
|
+
if (this._initBody(L), (this.method === "GET" || this.method === "HEAD") && (S.cache === "no-store" || S.cache === "no-cache")) {
|
|
2622
2622
|
var C = /([?&])_=[^&]*/;
|
|
2623
2623
|
if (C.test(this.url))
|
|
2624
2624
|
this.url = this.url.replace(C, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
@@ -2628,130 +2628,130 @@ function Yn() {
|
|
|
2628
2628
|
}
|
|
2629
2629
|
}
|
|
2630
2630
|
}
|
|
2631
|
-
|
|
2632
|
-
return new
|
|
2631
|
+
R.prototype.clone = function() {
|
|
2632
|
+
return new R(this, { body: this._bodyInit });
|
|
2633
2633
|
};
|
|
2634
|
-
function
|
|
2635
|
-
var
|
|
2634
|
+
function q(d) {
|
|
2635
|
+
var S = new FormData();
|
|
2636
2636
|
return d.trim().split("&").forEach(function(L) {
|
|
2637
2637
|
if (L) {
|
|
2638
|
-
var C = L.split("="), k = C.shift().replace(/\+/g, " "),
|
|
2639
|
-
|
|
2638
|
+
var C = L.split("="), k = C.shift().replace(/\+/g, " "), E = C.join("=").replace(/\+/g, " ");
|
|
2639
|
+
S.append(decodeURIComponent(k), decodeURIComponent(E));
|
|
2640
2640
|
}
|
|
2641
|
-
}),
|
|
2641
|
+
}), S;
|
|
2642
2642
|
}
|
|
2643
|
-
function
|
|
2644
|
-
var
|
|
2643
|
+
function j(d) {
|
|
2644
|
+
var S = new m(), L = d.replace(/\r?\n[\t ]+/g, " ");
|
|
2645
2645
|
return L.split("\r").map(function(C) {
|
|
2646
2646
|
return C.indexOf(`
|
|
2647
2647
|
`) === 0 ? C.substr(1, C.length) : C;
|
|
2648
2648
|
}).forEach(function(C) {
|
|
2649
|
-
var k = C.split(":"),
|
|
2650
|
-
if (
|
|
2651
|
-
var
|
|
2649
|
+
var k = C.split(":"), E = k.shift().trim();
|
|
2650
|
+
if (E) {
|
|
2651
|
+
var V = k.join(":").trim();
|
|
2652
2652
|
try {
|
|
2653
|
-
|
|
2654
|
-
} catch (
|
|
2655
|
-
console.warn("Response " +
|
|
2653
|
+
S.append(E, V);
|
|
2654
|
+
} catch (B) {
|
|
2655
|
+
console.warn("Response " + B.message);
|
|
2656
2656
|
}
|
|
2657
2657
|
}
|
|
2658
|
-
}),
|
|
2658
|
+
}), S;
|
|
2659
2659
|
}
|
|
2660
|
-
P.call(
|
|
2661
|
-
function
|
|
2662
|
-
if (!(this instanceof
|
|
2660
|
+
P.call(R.prototype);
|
|
2661
|
+
function D(d, S) {
|
|
2662
|
+
if (!(this instanceof D))
|
|
2663
2663
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2664
|
-
if (
|
|
2664
|
+
if (S || (S = {}), this.type = "default", this.status = S.status === void 0 ? 200 : S.status, this.status < 200 || this.status > 599)
|
|
2665
2665
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2666
|
-
this.ok = this.status >= 200 && this.status < 300, this.statusText =
|
|
2666
|
+
this.ok = this.status >= 200 && this.status < 300, this.statusText = S.statusText === void 0 ? "" : "" + S.statusText, this.headers = new m(S.headers), this.url = S.url || "", this._initBody(d);
|
|
2667
2667
|
}
|
|
2668
|
-
P.call(
|
|
2669
|
-
return new
|
|
2668
|
+
P.call(D.prototype), D.prototype.clone = function() {
|
|
2669
|
+
return new D(this._bodyInit, {
|
|
2670
2670
|
status: this.status,
|
|
2671
2671
|
statusText: this.statusText,
|
|
2672
2672
|
headers: new m(this.headers),
|
|
2673
2673
|
url: this.url
|
|
2674
2674
|
});
|
|
2675
|
-
},
|
|
2676
|
-
var d = new
|
|
2675
|
+
}, D.error = function() {
|
|
2676
|
+
var d = new D(null, { status: 200, statusText: "" });
|
|
2677
2677
|
return d.ok = !1, d.status = 0, d.type = "error", d;
|
|
2678
2678
|
};
|
|
2679
|
-
var
|
|
2680
|
-
|
|
2681
|
-
if (
|
|
2679
|
+
var T = [301, 302, 303, 307, 308];
|
|
2680
|
+
D.redirect = function(d, S) {
|
|
2681
|
+
if (T.indexOf(S) === -1)
|
|
2682
2682
|
throw new RangeError("Invalid status code");
|
|
2683
|
-
return new
|
|
2683
|
+
return new D(null, { status: S, headers: { location: d } });
|
|
2684
2684
|
}, i.DOMException = a.DOMException;
|
|
2685
2685
|
try {
|
|
2686
2686
|
new i.DOMException();
|
|
2687
2687
|
} catch {
|
|
2688
|
-
i.DOMException = function(
|
|
2689
|
-
this.message =
|
|
2690
|
-
var C = Error(
|
|
2688
|
+
i.DOMException = function(S, L) {
|
|
2689
|
+
this.message = S, this.name = L;
|
|
2690
|
+
var C = Error(S);
|
|
2691
2691
|
this.stack = C.stack;
|
|
2692
2692
|
}, i.DOMException.prototype = Object.create(Error.prototype), i.DOMException.prototype.constructor = i.DOMException;
|
|
2693
2693
|
}
|
|
2694
|
-
function
|
|
2694
|
+
function O(d, S) {
|
|
2695
2695
|
return new Promise(function(L, C) {
|
|
2696
|
-
var k = new
|
|
2696
|
+
var k = new R(d, S);
|
|
2697
2697
|
if (k.signal && k.signal.aborted)
|
|
2698
2698
|
return C(new i.DOMException("Aborted", "AbortError"));
|
|
2699
|
-
var
|
|
2700
|
-
function
|
|
2701
|
-
|
|
2699
|
+
var E = new XMLHttpRequest();
|
|
2700
|
+
function V() {
|
|
2701
|
+
E.abort();
|
|
2702
2702
|
}
|
|
2703
|
-
|
|
2704
|
-
var
|
|
2705
|
-
statusText:
|
|
2706
|
-
headers:
|
|
2703
|
+
E.onload = function() {
|
|
2704
|
+
var U = {
|
|
2705
|
+
statusText: E.statusText,
|
|
2706
|
+
headers: j(E.getAllResponseHeaders() || "")
|
|
2707
2707
|
};
|
|
2708
|
-
k.url.indexOf("file://") === 0 && (
|
|
2709
|
-
var z = "response" in
|
|
2708
|
+
k.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");
|
|
2709
|
+
var z = "response" in E ? E.response : E.responseText;
|
|
2710
2710
|
setTimeout(function() {
|
|
2711
|
-
L(new
|
|
2711
|
+
L(new D(z, U));
|
|
2712
2712
|
}, 0);
|
|
2713
|
-
},
|
|
2713
|
+
}, E.onerror = function() {
|
|
2714
2714
|
setTimeout(function() {
|
|
2715
2715
|
C(new TypeError("Network request failed"));
|
|
2716
2716
|
}, 0);
|
|
2717
|
-
},
|
|
2717
|
+
}, E.ontimeout = function() {
|
|
2718
2718
|
setTimeout(function() {
|
|
2719
2719
|
C(new TypeError("Network request timed out"));
|
|
2720
2720
|
}, 0);
|
|
2721
|
-
},
|
|
2721
|
+
}, E.onabort = function() {
|
|
2722
2722
|
setTimeout(function() {
|
|
2723
2723
|
C(new i.DOMException("Aborted", "AbortError"));
|
|
2724
2724
|
}, 0);
|
|
2725
2725
|
};
|
|
2726
|
-
function
|
|
2726
|
+
function B(U) {
|
|
2727
2727
|
try {
|
|
2728
|
-
return
|
|
2728
|
+
return U === "" && a.location.href ? a.location.href : U;
|
|
2729
2729
|
} catch {
|
|
2730
|
-
return
|
|
2730
|
+
return U;
|
|
2731
2731
|
}
|
|
2732
2732
|
}
|
|
2733
|
-
if (
|
|
2734
|
-
var
|
|
2735
|
-
Object.getOwnPropertyNames(
|
|
2736
|
-
|
|
2737
|
-
}), k.headers.forEach(function(
|
|
2738
|
-
|
|
2733
|
+
if (E.open(k.method, B(k.url), !0), k.credentials === "include" ? E.withCredentials = !0 : k.credentials === "omit" && (E.withCredentials = !1), "responseType" in E && (l.blob ? E.responseType = "blob" : l.arrayBuffer && (E.responseType = "arraybuffer")), S && typeof S.headers == "object" && !(S.headers instanceof m || a.Headers && S.headers instanceof a.Headers)) {
|
|
2734
|
+
var N = [];
|
|
2735
|
+
Object.getOwnPropertyNames(S.headers).forEach(function(U) {
|
|
2736
|
+
N.push(g(U)), E.setRequestHeader(U, p(S.headers[U]));
|
|
2737
|
+
}), k.headers.forEach(function(U, z) {
|
|
2738
|
+
N.indexOf(z) === -1 && E.setRequestHeader(z, U);
|
|
2739
2739
|
});
|
|
2740
2740
|
} else
|
|
2741
|
-
k.headers.forEach(function(
|
|
2742
|
-
|
|
2741
|
+
k.headers.forEach(function(U, z) {
|
|
2742
|
+
E.setRequestHeader(z, U);
|
|
2743
2743
|
});
|
|
2744
|
-
k.signal && (k.signal.addEventListener("abort",
|
|
2745
|
-
|
|
2746
|
-
}),
|
|
2744
|
+
k.signal && (k.signal.addEventListener("abort", V), E.onreadystatechange = function() {
|
|
2745
|
+
E.readyState === 4 && k.signal.removeEventListener("abort", V);
|
|
2746
|
+
}), E.send(typeof k._bodyInit > "u" ? null : k._bodyInit);
|
|
2747
2747
|
});
|
|
2748
2748
|
}
|
|
2749
|
-
return
|
|
2749
|
+
return O.polyfill = !0, a.fetch || (a.fetch = O, a.Headers = m, a.Request = R, a.Response = D), i.Headers = m, i.Request = R, i.Response = D, i.fetch = O, i;
|
|
2750
2750
|
})({});
|
|
2751
2751
|
})(s), s.fetch.ponyfill = !0, delete s.fetch.polyfill;
|
|
2752
2752
|
var n = t.fetch ? t : s;
|
|
2753
2753
|
e = n.fetch, e.default = n.fetch, e.fetch = n.fetch, e.Headers = n.Headers, e.Request = n.Request, e.Response = n.Response, r.exports = e;
|
|
2754
|
-
})(
|
|
2754
|
+
})(Te, Te.exports)), Te.exports;
|
|
2755
2755
|
}
|
|
2756
2756
|
var Jn = Yn();
|
|
2757
2757
|
const Xn = /* @__PURE__ */ Et(Jn), Ze = "https://gcp-us-east1.api.carto.com", Qe = "v3", er = "ps", he = {
|
|
@@ -2796,15 +2796,15 @@ function rr() {
|
|
|
2796
2796
|
function a(u, f) {
|
|
2797
2797
|
return f.clone !== !1 && f.isMergeableObject(u) ? m(i(u), u, f) : u;
|
|
2798
2798
|
}
|
|
2799
|
-
function l(u, f,
|
|
2800
|
-
return u.concat(f).map(function(
|
|
2801
|
-
return a(
|
|
2799
|
+
function l(u, f, v) {
|
|
2800
|
+
return u.concat(f).map(function(_) {
|
|
2801
|
+
return a(_, v);
|
|
2802
2802
|
});
|
|
2803
2803
|
}
|
|
2804
2804
|
function c(u, f) {
|
|
2805
2805
|
if (!f.customMerge) return m;
|
|
2806
|
-
var
|
|
2807
|
-
return typeof
|
|
2806
|
+
var v = f.customMerge(u);
|
|
2807
|
+
return typeof v == "function" ? v : m;
|
|
2808
2808
|
}
|
|
2809
2809
|
function h(u) {
|
|
2810
2810
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(f) {
|
|
@@ -2814,7 +2814,7 @@ function rr() {
|
|
|
2814
2814
|
function y(u) {
|
|
2815
2815
|
return Object.keys(u).concat(h(u));
|
|
2816
2816
|
}
|
|
2817
|
-
function
|
|
2817
|
+
function g(u, f) {
|
|
2818
2818
|
try {
|
|
2819
2819
|
return f in u;
|
|
2820
2820
|
} catch {
|
|
@@ -2822,25 +2822,25 @@ function rr() {
|
|
|
2822
2822
|
}
|
|
2823
2823
|
}
|
|
2824
2824
|
function p(u, f) {
|
|
2825
|
-
return
|
|
2825
|
+
return g(u, f) && !(Object.hasOwnProperty.call(u, f) && Object.propertyIsEnumerable.call(u, f));
|
|
2826
2826
|
}
|
|
2827
|
-
function b(u, f,
|
|
2828
|
-
var
|
|
2829
|
-
return
|
|
2830
|
-
M
|
|
2831
|
-
}), y(f).forEach(function(
|
|
2832
|
-
p(u,
|
|
2833
|
-
}),
|
|
2827
|
+
function b(u, f, v) {
|
|
2828
|
+
var _ = {};
|
|
2829
|
+
return v.isMergeableObject(u) && y(u).forEach(function(M) {
|
|
2830
|
+
_[M] = a(u[M], v);
|
|
2831
|
+
}), y(f).forEach(function(M) {
|
|
2832
|
+
p(u, M) || (g(u, M) && v.isMergeableObject(f[M]) ? _[M] = c(M, v)(u[M], f[M], v) : _[M] = a(f[M], v));
|
|
2833
|
+
}), _;
|
|
2834
2834
|
}
|
|
2835
|
-
function m(u, f,
|
|
2836
|
-
|
|
2837
|
-
var
|
|
2838
|
-
return P ?
|
|
2835
|
+
function m(u, f, v) {
|
|
2836
|
+
v = v || {}, v.arrayMerge = v.arrayMerge || l, v.isMergeableObject = v.isMergeableObject || r, v.cloneUnlessOtherwiseSpecified = a;
|
|
2837
|
+
var _ = Array.isArray(f), M = Array.isArray(u), P = _ === M;
|
|
2838
|
+
return P ? _ ? v.arrayMerge(u, f, v) : b(u, f, v) : a(f, v);
|
|
2839
2839
|
}
|
|
2840
2840
|
m.all = function(u, f) {
|
|
2841
2841
|
if (!Array.isArray(u)) throw new Error("first argument should be an array");
|
|
2842
|
-
return u.reduce(function(
|
|
2843
|
-
return m(
|
|
2842
|
+
return u.reduce(function(v, _) {
|
|
2843
|
+
return m(v, _, f);
|
|
2844
2844
|
}, {});
|
|
2845
2845
|
};
|
|
2846
2846
|
var w = m;
|
|
@@ -2910,14 +2910,14 @@ async function qt({
|
|
|
2910
2910
|
params: o
|
|
2911
2911
|
}), h = e, y = n;
|
|
2912
2912
|
n === he.get && c.length > a && (h = o, y = he.post, c = i);
|
|
2913
|
-
const
|
|
2913
|
+
const g = ar({
|
|
2914
2914
|
body: h,
|
|
2915
2915
|
accessToken: t ?? s?.accessToken,
|
|
2916
2916
|
method: y,
|
|
2917
2917
|
...l
|
|
2918
2918
|
});
|
|
2919
|
-
r && (
|
|
2920
|
-
const p = await Xn(c,
|
|
2919
|
+
r && (g.signal = r);
|
|
2920
|
+
const p = await Xn(c, g);
|
|
2921
2921
|
if (!p.ok) {
|
|
2922
2922
|
const b = await p.text();
|
|
2923
2923
|
throw new Error(b);
|
|
@@ -3002,17 +3002,17 @@ const ke = ht()(ws((r, e) => ({
|
|
|
3002
3002
|
}
|
|
3003
3003
|
})));
|
|
3004
3004
|
function cr(r) {
|
|
3005
|
-
const e =
|
|
3005
|
+
const e = F(2);
|
|
3006
3006
|
let t;
|
|
3007
3007
|
return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1], ke(t);
|
|
3008
3008
|
}
|
|
3009
3009
|
function ur(r) {
|
|
3010
|
-
const e =
|
|
3010
|
+
const e = F(2);
|
|
3011
3011
|
let t;
|
|
3012
3012
|
return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1], ke(t);
|
|
3013
3013
|
}
|
|
3014
3014
|
function bo(r) {
|
|
3015
|
-
const e =
|
|
3015
|
+
const e = F(9);
|
|
3016
3016
|
let t;
|
|
3017
3017
|
e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
|
|
3018
3018
|
const s = ke(t);
|
|
@@ -3103,7 +3103,7 @@ function fr({
|
|
|
3103
3103
|
return o?.();
|
|
3104
3104
|
}
|
|
3105
3105
|
function pr(r, e) {
|
|
3106
|
-
const t =
|
|
3106
|
+
const t = F(3), s = ur(r);
|
|
3107
3107
|
let n;
|
|
3108
3108
|
e: {
|
|
3109
3109
|
if (!e?.length) {
|
|
@@ -3138,7 +3138,7 @@ function gr(r) {
|
|
|
3138
3138
|
return JSON.stringify(e);
|
|
3139
3139
|
}
|
|
3140
3140
|
function fe(r) {
|
|
3141
|
-
const e =
|
|
3141
|
+
const e = F(12), {
|
|
3142
3142
|
accessToken: t,
|
|
3143
3143
|
sourceId: s,
|
|
3144
3144
|
widgetProps: n,
|
|
@@ -3150,8 +3150,8 @@ function fe(r) {
|
|
|
3150
3150
|
const h = a?.props.headers;
|
|
3151
3151
|
let y;
|
|
3152
3152
|
e[6] !== h ? (y = gr(h), e[6] = h, e[7] = y) : y = e[7];
|
|
3153
|
-
const
|
|
3154
|
-
|
|
3153
|
+
const g = y;
|
|
3154
|
+
g && l.push(g), l.push(t), e[0] = t, e[1] = i, e[2] = s, e[3] = a, e[4] = n, e[5] = l;
|
|
3155
3155
|
} else
|
|
3156
3156
|
l = e[5];
|
|
3157
3157
|
let c;
|
|
@@ -3162,7 +3162,7 @@ function fe(r) {
|
|
|
3162
3162
|
}, e[8] = i, e[9] = l, e[10] = a, e[11] = c) : c = e[11], c;
|
|
3163
3163
|
}
|
|
3164
3164
|
function br(r) {
|
|
3165
|
-
const e =
|
|
3165
|
+
const e = F(21), {
|
|
3166
3166
|
accessToken: t,
|
|
3167
3167
|
sourceId: s,
|
|
3168
3168
|
widgetProps: n,
|
|
@@ -3185,23 +3185,23 @@ function br(r) {
|
|
|
3185
3185
|
widgetProps: n
|
|
3186
3186
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3187
3187
|
const {
|
|
3188
|
-
mergedFilters:
|
|
3188
|
+
mergedFilters: g,
|
|
3189
3189
|
queryKey: p,
|
|
3190
3190
|
widgetModel: b
|
|
3191
3191
|
} = fe(y);
|
|
3192
3192
|
let m;
|
|
3193
3193
|
e[10] !== p ? (m = ["categories", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3194
3194
|
let w;
|
|
3195
|
-
e[12] !==
|
|
3195
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3196
3196
|
const {
|
|
3197
|
-
signal:
|
|
3198
|
-
} =
|
|
3197
|
+
signal: _
|
|
3198
|
+
} = v;
|
|
3199
3199
|
return b.getCategories({
|
|
3200
3200
|
...n,
|
|
3201
|
-
filters:
|
|
3202
|
-
signal:
|
|
3201
|
+
filters: g,
|
|
3202
|
+
signal: _
|
|
3203
3203
|
});
|
|
3204
|
-
}, e[12] =
|
|
3204
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3205
3205
|
const u = !!b && h;
|
|
3206
3206
|
let f;
|
|
3207
3207
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3212,7 +3212,7 @@ function br(r) {
|
|
|
3212
3212
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3213
3213
|
}
|
|
3214
3214
|
function So(r) {
|
|
3215
|
-
const e =
|
|
3215
|
+
const e = F(6);
|
|
3216
3216
|
let t, s;
|
|
3217
3217
|
e[0] !== r ? ({
|
|
3218
3218
|
children: t,
|
|
@@ -3223,7 +3223,7 @@ function So(r) {
|
|
|
3223
3223
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3224
3224
|
}
|
|
3225
3225
|
function vr(r) {
|
|
3226
|
-
const e =
|
|
3226
|
+
const e = F(21), {
|
|
3227
3227
|
accessToken: t,
|
|
3228
3228
|
sourceId: s,
|
|
3229
3229
|
widgetProps: n,
|
|
@@ -3246,23 +3246,23 @@ function vr(r) {
|
|
|
3246
3246
|
widgetProps: n
|
|
3247
3247
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3248
3248
|
const {
|
|
3249
|
-
mergedFilters:
|
|
3249
|
+
mergedFilters: g,
|
|
3250
3250
|
queryKey: p,
|
|
3251
3251
|
widgetModel: b
|
|
3252
3252
|
} = fe(y);
|
|
3253
3253
|
let m;
|
|
3254
3254
|
e[10] !== p ? (m = ["features", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3255
3255
|
let w;
|
|
3256
|
-
e[12] !==
|
|
3256
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3257
3257
|
const {
|
|
3258
|
-
signal:
|
|
3259
|
-
} =
|
|
3258
|
+
signal: _
|
|
3259
|
+
} = v;
|
|
3260
3260
|
return b.getFeatures({
|
|
3261
3261
|
...n,
|
|
3262
|
-
filters:
|
|
3263
|
-
signal:
|
|
3262
|
+
filters: g,
|
|
3263
|
+
signal: _
|
|
3264
3264
|
});
|
|
3265
|
-
}, e[12] =
|
|
3265
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3266
3266
|
const u = !!b && h;
|
|
3267
3267
|
let f;
|
|
3268
3268
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3273,7 +3273,7 @@ function vr(r) {
|
|
|
3273
3273
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3274
3274
|
}
|
|
3275
3275
|
function wo(r) {
|
|
3276
|
-
const e =
|
|
3276
|
+
const e = F(6);
|
|
3277
3277
|
let t, s;
|
|
3278
3278
|
e[0] !== r ? ({
|
|
3279
3279
|
children: t,
|
|
@@ -3284,7 +3284,7 @@ function wo(r) {
|
|
|
3284
3284
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3285
3285
|
}
|
|
3286
3286
|
function Sr(r) {
|
|
3287
|
-
const e =
|
|
3287
|
+
const e = F(21), {
|
|
3288
3288
|
accessToken: t,
|
|
3289
3289
|
sourceId: s,
|
|
3290
3290
|
widgetProps: n,
|
|
@@ -3307,23 +3307,23 @@ function Sr(r) {
|
|
|
3307
3307
|
widgetProps: n
|
|
3308
3308
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3309
3309
|
const {
|
|
3310
|
-
mergedFilters:
|
|
3310
|
+
mergedFilters: g,
|
|
3311
3311
|
queryKey: p,
|
|
3312
3312
|
widgetModel: b
|
|
3313
3313
|
} = fe(y);
|
|
3314
3314
|
let m;
|
|
3315
3315
|
e[10] !== p ? (m = ["formula", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3316
3316
|
let w;
|
|
3317
|
-
e[12] !==
|
|
3317
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3318
3318
|
const {
|
|
3319
|
-
signal:
|
|
3320
|
-
} =
|
|
3319
|
+
signal: _
|
|
3320
|
+
} = v;
|
|
3321
3321
|
return b.getFormula({
|
|
3322
3322
|
...n,
|
|
3323
|
-
filters:
|
|
3324
|
-
signal:
|
|
3323
|
+
filters: g,
|
|
3324
|
+
signal: _
|
|
3325
3325
|
});
|
|
3326
|
-
}, e[12] =
|
|
3326
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3327
3327
|
const u = !!b && h;
|
|
3328
3328
|
let f;
|
|
3329
3329
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3334,7 +3334,7 @@ function Sr(r) {
|
|
|
3334
3334
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3335
3335
|
}
|
|
3336
3336
|
function _o(r) {
|
|
3337
|
-
const e =
|
|
3337
|
+
const e = F(6);
|
|
3338
3338
|
let t, s;
|
|
3339
3339
|
e[0] !== r ? ({
|
|
3340
3340
|
children: t,
|
|
@@ -3345,7 +3345,7 @@ function _o(r) {
|
|
|
3345
3345
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3346
3346
|
}
|
|
3347
3347
|
function wr(r) {
|
|
3348
|
-
const e =
|
|
3348
|
+
const e = F(21), {
|
|
3349
3349
|
accessToken: t,
|
|
3350
3350
|
sourceId: s,
|
|
3351
3351
|
widgetProps: n,
|
|
@@ -3368,23 +3368,23 @@ function wr(r) {
|
|
|
3368
3368
|
widgetProps: n
|
|
3369
3369
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3370
3370
|
const {
|
|
3371
|
-
mergedFilters:
|
|
3371
|
+
mergedFilters: g,
|
|
3372
3372
|
queryKey: p,
|
|
3373
3373
|
widgetModel: b
|
|
3374
3374
|
} = fe(y);
|
|
3375
3375
|
let m;
|
|
3376
3376
|
e[10] !== p ? (m = ["histogram", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3377
3377
|
let w;
|
|
3378
|
-
e[12] !==
|
|
3378
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3379
3379
|
const {
|
|
3380
|
-
signal:
|
|
3381
|
-
} =
|
|
3380
|
+
signal: _
|
|
3381
|
+
} = v;
|
|
3382
3382
|
return b.getHistogram({
|
|
3383
3383
|
...n,
|
|
3384
|
-
filters:
|
|
3385
|
-
signal:
|
|
3384
|
+
filters: g,
|
|
3385
|
+
signal: _
|
|
3386
3386
|
});
|
|
3387
|
-
}, e[12] =
|
|
3387
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3388
3388
|
const u = !!b && h;
|
|
3389
3389
|
let f;
|
|
3390
3390
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3395,7 +3395,7 @@ function wr(r) {
|
|
|
3395
3395
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3396
3396
|
}
|
|
3397
3397
|
function Mo(r) {
|
|
3398
|
-
const e =
|
|
3398
|
+
const e = F(6);
|
|
3399
3399
|
let t, s;
|
|
3400
3400
|
e[0] !== r ? ({
|
|
3401
3401
|
children: t,
|
|
@@ -3406,7 +3406,7 @@ function Mo(r) {
|
|
|
3406
3406
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3407
3407
|
}
|
|
3408
3408
|
function _r(r) {
|
|
3409
|
-
const e =
|
|
3409
|
+
const e = F(21), {
|
|
3410
3410
|
accessToken: t,
|
|
3411
3411
|
sourceId: s,
|
|
3412
3412
|
widgetProps: n,
|
|
@@ -3429,23 +3429,23 @@ function _r(r) {
|
|
|
3429
3429
|
widgetProps: n
|
|
3430
3430
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3431
3431
|
const {
|
|
3432
|
-
mergedFilters:
|
|
3432
|
+
mergedFilters: g,
|
|
3433
3433
|
queryKey: p,
|
|
3434
3434
|
widgetModel: b
|
|
3435
3435
|
} = fe(y);
|
|
3436
3436
|
let m;
|
|
3437
3437
|
e[10] !== p ? (m = ["range", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3438
3438
|
let w;
|
|
3439
|
-
e[12] !==
|
|
3439
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3440
3440
|
const {
|
|
3441
|
-
signal:
|
|
3442
|
-
} =
|
|
3441
|
+
signal: _
|
|
3442
|
+
} = v;
|
|
3443
3443
|
return b.getRange({
|
|
3444
3444
|
...n,
|
|
3445
|
-
filters:
|
|
3446
|
-
signal:
|
|
3445
|
+
filters: g,
|
|
3446
|
+
signal: _
|
|
3447
3447
|
});
|
|
3448
|
-
}, e[12] =
|
|
3448
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3449
3449
|
const u = !!b && h;
|
|
3450
3450
|
let f;
|
|
3451
3451
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3456,7 +3456,7 @@ function _r(r) {
|
|
|
3456
3456
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3457
3457
|
}
|
|
3458
3458
|
function Eo(r) {
|
|
3459
|
-
const e =
|
|
3459
|
+
const e = F(6);
|
|
3460
3460
|
let t, s;
|
|
3461
3461
|
e[0] !== r ? ({
|
|
3462
3462
|
children: t,
|
|
@@ -3467,7 +3467,7 @@ function Eo(r) {
|
|
|
3467
3467
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3468
3468
|
}
|
|
3469
3469
|
function Mr(r) {
|
|
3470
|
-
const e =
|
|
3470
|
+
const e = F(21), {
|
|
3471
3471
|
accessToken: t,
|
|
3472
3472
|
sourceId: s,
|
|
3473
3473
|
widgetProps: n,
|
|
@@ -3490,23 +3490,23 @@ function Mr(r) {
|
|
|
3490
3490
|
widgetProps: n
|
|
3491
3491
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3492
3492
|
const {
|
|
3493
|
-
mergedFilters:
|
|
3493
|
+
mergedFilters: g,
|
|
3494
3494
|
queryKey: p,
|
|
3495
3495
|
widgetModel: b
|
|
3496
3496
|
} = fe(y);
|
|
3497
3497
|
let m;
|
|
3498
3498
|
e[10] !== p ? (m = ["scatter", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3499
3499
|
let w;
|
|
3500
|
-
e[12] !==
|
|
3500
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3501
3501
|
const {
|
|
3502
|
-
signal:
|
|
3503
|
-
} =
|
|
3502
|
+
signal: _
|
|
3503
|
+
} = v;
|
|
3504
3504
|
return b.getScatter({
|
|
3505
3505
|
...n,
|
|
3506
|
-
filters:
|
|
3507
|
-
signal:
|
|
3506
|
+
filters: g,
|
|
3507
|
+
signal: _
|
|
3508
3508
|
});
|
|
3509
|
-
}, e[12] =
|
|
3509
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3510
3510
|
const u = !!b && h;
|
|
3511
3511
|
let f;
|
|
3512
3512
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3517,7 +3517,7 @@ function Mr(r) {
|
|
|
3517
3517
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3518
3518
|
}
|
|
3519
3519
|
function To(r) {
|
|
3520
|
-
const e =
|
|
3520
|
+
const e = F(6);
|
|
3521
3521
|
let t, s;
|
|
3522
3522
|
e[0] !== r ? ({
|
|
3523
3523
|
children: t,
|
|
@@ -3528,7 +3528,7 @@ function To(r) {
|
|
|
3528
3528
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3529
3529
|
}
|
|
3530
3530
|
function Er(r) {
|
|
3531
|
-
const e =
|
|
3531
|
+
const e = F(21), {
|
|
3532
3532
|
accessToken: t,
|
|
3533
3533
|
sourceId: s,
|
|
3534
3534
|
widgetProps: n,
|
|
@@ -3551,23 +3551,23 @@ function Er(r) {
|
|
|
3551
3551
|
widgetProps: n
|
|
3552
3552
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3553
3553
|
const {
|
|
3554
|
-
mergedFilters:
|
|
3554
|
+
mergedFilters: g,
|
|
3555
3555
|
queryKey: p,
|
|
3556
3556
|
widgetModel: b
|
|
3557
3557
|
} = fe(y);
|
|
3558
3558
|
let m;
|
|
3559
3559
|
e[10] !== p ? (m = ["table", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3560
3560
|
let w;
|
|
3561
|
-
e[12] !==
|
|
3561
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3562
3562
|
const {
|
|
3563
|
-
signal:
|
|
3564
|
-
} =
|
|
3563
|
+
signal: _
|
|
3564
|
+
} = v;
|
|
3565
3565
|
return b.getTable({
|
|
3566
3566
|
...n,
|
|
3567
|
-
filters:
|
|
3568
|
-
signal:
|
|
3567
|
+
filters: g,
|
|
3568
|
+
signal: _
|
|
3569
3569
|
});
|
|
3570
|
-
}, e[12] =
|
|
3570
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3571
3571
|
const u = !!b && h;
|
|
3572
3572
|
let f;
|
|
3573
3573
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3578,7 +3578,7 @@ function Er(r) {
|
|
|
3578
3578
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3579
3579
|
}
|
|
3580
3580
|
function Lo(r) {
|
|
3581
|
-
const e =
|
|
3581
|
+
const e = F(6);
|
|
3582
3582
|
let t, s;
|
|
3583
3583
|
e[0] !== r ? ({
|
|
3584
3584
|
children: t,
|
|
@@ -3589,7 +3589,7 @@ function Lo(r) {
|
|
|
3589
3589
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3590
3590
|
}
|
|
3591
3591
|
function Tr(r) {
|
|
3592
|
-
const e =
|
|
3592
|
+
const e = F(21), {
|
|
3593
3593
|
accessToken: t,
|
|
3594
3594
|
sourceId: s,
|
|
3595
3595
|
widgetProps: n,
|
|
@@ -3612,23 +3612,23 @@ function Tr(r) {
|
|
|
3612
3612
|
widgetProps: n
|
|
3613
3613
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3614
3614
|
const {
|
|
3615
|
-
mergedFilters:
|
|
3615
|
+
mergedFilters: g,
|
|
3616
3616
|
queryKey: p,
|
|
3617
3617
|
widgetModel: b
|
|
3618
3618
|
} = fe(y);
|
|
3619
3619
|
let m;
|
|
3620
3620
|
e[10] !== p ? (m = ["timeSeries", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3621
3621
|
let w;
|
|
3622
|
-
e[12] !==
|
|
3622
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3623
3623
|
const {
|
|
3624
|
-
signal:
|
|
3625
|
-
} =
|
|
3624
|
+
signal: _
|
|
3625
|
+
} = v;
|
|
3626
3626
|
return b.getTimeSeries({
|
|
3627
3627
|
...n,
|
|
3628
|
-
filters:
|
|
3629
|
-
signal:
|
|
3628
|
+
filters: g,
|
|
3629
|
+
signal: _
|
|
3630
3630
|
});
|
|
3631
|
-
}, e[12] =
|
|
3631
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3632
3632
|
const u = !!b && h;
|
|
3633
3633
|
let f;
|
|
3634
3634
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3639,7 +3639,7 @@ function Tr(r) {
|
|
|
3639
3639
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3640
3640
|
}
|
|
3641
3641
|
function Po(r) {
|
|
3642
|
-
const e =
|
|
3642
|
+
const e = F(6);
|
|
3643
3643
|
let t, s;
|
|
3644
3644
|
e[0] !== r ? ({
|
|
3645
3645
|
children: t,
|
|
@@ -3651,7 +3651,7 @@ function Po(r) {
|
|
|
3651
3651
|
}
|
|
3652
3652
|
const ko = "ps";
|
|
3653
3653
|
function Co(r) {
|
|
3654
|
-
const e =
|
|
3654
|
+
const e = F(13), {
|
|
3655
3655
|
children: t,
|
|
3656
3656
|
maps: s,
|
|
3657
3657
|
lassoTools: n,
|
|
@@ -3664,14 +3664,14 @@ function Co(r) {
|
|
|
3664
3664
|
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
3665
3665
|
const c = l;
|
|
3666
3666
|
let h;
|
|
3667
|
-
e[4] !== t || e[5] !== c ? (h = /* @__PURE__ */
|
|
3667
|
+
e[4] !== t || e[5] !== c ? (h = /* @__PURE__ */ K(Mn, { values: c, children: t }), e[4] = t, e[5] = c, e[6] = h) : h = e[6];
|
|
3668
3668
|
let y;
|
|
3669
|
-
e[7] !== a || e[8] !== h ? (y = /* @__PURE__ */
|
|
3670
|
-
let
|
|
3671
|
-
return e[10] !== s || e[11] !== y ? (
|
|
3669
|
+
e[7] !== a || e[8] !== h ? (y = /* @__PURE__ */ K(on, { values: a, children: h }), e[7] = a, e[8] = h, e[9] = y) : y = e[9];
|
|
3670
|
+
let g;
|
|
3671
|
+
return e[10] !== s || e[11] !== y ? (g = /* @__PURE__ */ K(Zs, { values: s, children: y }), e[10] = s, e[11] = y, e[12] = g) : g = e[12], g;
|
|
3672
3672
|
}
|
|
3673
3673
|
function Oo(r, e) {
|
|
3674
|
-
const t =
|
|
3674
|
+
const t = ge((c) => c.layers), s = ge((c) => c.setLayer), n = ye(() => $t(r.map((c) => t[c]).filter((c) => !!c?.legend)).toReversed(), [t, r]), o = ye(() => n.map(e), [e, n]), i = ee(({
|
|
3675
3675
|
id: c,
|
|
3676
3676
|
visible: h,
|
|
3677
3677
|
...y
|
|
@@ -3711,46 +3711,46 @@ function Oo(r, e) {
|
|
|
3711
3711
|
function Fo({
|
|
3712
3712
|
mapId: r
|
|
3713
3713
|
}) {
|
|
3714
|
-
const [e, t] = ae(void 0), [s, n] = ae(!1), [o, i] = ae(void 0), a =
|
|
3714
|
+
const [e, t] = ae(void 0), [s, n] = ae(!1), [o, i] = ae(void 0), a = x((u) => u.maps[r]?.basemap), l = x((u) => u.getDeckInstance), c = x((u) => u.getOverlayInstance), h = x((u) => u.areLayersLoaded[r]), g = x((u) => u.maps[r]?.isLoaded) && h, {
|
|
3715
3715
|
type: p
|
|
3716
|
-
} =
|
|
3716
|
+
} = ve[a], b = p === ie.googleMaps, m = ee(async () => {
|
|
3717
3717
|
const u = l(r), f = c(r);
|
|
3718
3718
|
try {
|
|
3719
|
-
const
|
|
3720
|
-
|
|
3721
|
-
const
|
|
3719
|
+
const v = document.createElement("canvas");
|
|
3720
|
+
v.width = u.width ?? 0, v.height = u.height ?? 0;
|
|
3721
|
+
const _ = v.getContext("2d");
|
|
3722
3722
|
if (b) {
|
|
3723
3723
|
const P = f;
|
|
3724
3724
|
if (P.getRenderingType() !== "RASTER")
|
|
3725
3725
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3726
|
-
const
|
|
3726
|
+
const A = await _s(P.getDiv(), {
|
|
3727
3727
|
useCORS: !0
|
|
3728
3728
|
});
|
|
3729
|
-
|
|
3729
|
+
_?.drawImage(A, 0, 0, u.width, u.height);
|
|
3730
3730
|
} else {
|
|
3731
3731
|
const P = f;
|
|
3732
|
-
P.redraw(),
|
|
3732
|
+
P.redraw(), _?.drawImage(P.getMap().getCanvas(), 0, 0, u.width, u.height);
|
|
3733
3733
|
}
|
|
3734
|
-
u?.redraw("screenshot"),
|
|
3735
|
-
const
|
|
3736
|
-
t(
|
|
3737
|
-
} catch (
|
|
3738
|
-
i(
|
|
3734
|
+
u?.redraw("screenshot"), _?.drawImage(u.getCanvas(), 0, 0, u.width, u.height);
|
|
3735
|
+
const M = v.toDataURL();
|
|
3736
|
+
t(M);
|
|
3737
|
+
} catch (v) {
|
|
3738
|
+
i(v), console.error(v);
|
|
3739
3739
|
} finally {
|
|
3740
3740
|
n(!1);
|
|
3741
3741
|
}
|
|
3742
3742
|
}, [l, b, r, c]);
|
|
3743
3743
|
return {
|
|
3744
3744
|
takeScreenshot: ee(() => {
|
|
3745
|
-
i(void 0), n(!0),
|
|
3746
|
-
}, [m,
|
|
3745
|
+
i(void 0), n(!0), g && m();
|
|
3746
|
+
}, [m, g]),
|
|
3747
3747
|
isLoading: s,
|
|
3748
3748
|
screenshot: e,
|
|
3749
3749
|
error: o
|
|
3750
3750
|
};
|
|
3751
3751
|
}
|
|
3752
3752
|
function Ao(r) {
|
|
3753
|
-
const e =
|
|
3753
|
+
const e = F(11), {
|
|
3754
3754
|
mapId: t
|
|
3755
3755
|
} = r;
|
|
3756
3756
|
let s;
|
|
@@ -3777,12 +3777,12 @@ function Ao(r) {
|
|
|
3777
3777
|
}, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] = h) : h = e[10], h;
|
|
3778
3778
|
}
|
|
3779
3779
|
function Lr(r) {
|
|
3780
|
-
const e =
|
|
3780
|
+
const e = F(4), {
|
|
3781
3781
|
mapId: t
|
|
3782
3782
|
} = r;
|
|
3783
3783
|
let s;
|
|
3784
3784
|
e[0] !== t ? (s = (i) => i.viewports[t], e[0] = t, e[1] = s) : s = e[1];
|
|
3785
|
-
const n =
|
|
3785
|
+
const n = x(s);
|
|
3786
3786
|
let o;
|
|
3787
3787
|
e: {
|
|
3788
3788
|
if (!n) {
|
|
@@ -3795,12 +3795,12 @@ function Lr(r) {
|
|
|
3795
3795
|
return o;
|
|
3796
3796
|
}
|
|
3797
3797
|
function Pr(r) {
|
|
3798
|
-
const e =
|
|
3798
|
+
const e = F(5), {
|
|
3799
3799
|
mapId: t
|
|
3800
3800
|
} = r;
|
|
3801
3801
|
let s;
|
|
3802
3802
|
e[0] !== t ? (s = (i) => i.data[t]?.values, e[0] = t, e[1] = s) : s = e[1];
|
|
3803
|
-
const n =
|
|
3803
|
+
const n = Z(s);
|
|
3804
3804
|
let o;
|
|
3805
3805
|
e: {
|
|
3806
3806
|
let i;
|
|
@@ -3826,12 +3826,12 @@ function Cr(r) {
|
|
|
3826
3826
|
return r.properties.visible;
|
|
3827
3827
|
}
|
|
3828
3828
|
function Or(r) {
|
|
3829
|
-
const e =
|
|
3829
|
+
const e = F(4), {
|
|
3830
3830
|
mapId: t
|
|
3831
3831
|
} = r;
|
|
3832
3832
|
let s;
|
|
3833
3833
|
e[0] !== t ? (s = (i) => i.spatialFilter[t], e[0] = t, e[1] = s) : s = e[1];
|
|
3834
|
-
const n =
|
|
3834
|
+
const n = x(s);
|
|
3835
3835
|
let o;
|
|
3836
3836
|
e: {
|
|
3837
3837
|
if (!n || !Object.keys(n).length) {
|
|
@@ -3884,11 +3884,11 @@ function Ro({
|
|
|
3884
3884
|
getTitle: l = Rr,
|
|
3885
3885
|
getValue: c = $r
|
|
3886
3886
|
}) {
|
|
3887
|
-
const h = o ? l(o) : "",
|
|
3887
|
+
const h = o ? l(o) : "", g = t.reduce((p, b) => {
|
|
3888
3888
|
const m = e[b], w = r[b], u = c(w, s, m), f = n ? i(b) : "";
|
|
3889
3889
|
return p + a(f, u);
|
|
3890
3890
|
}, "");
|
|
3891
|
-
return h +
|
|
3891
|
+
return h + g;
|
|
3892
3892
|
}
|
|
3893
3893
|
function Rr(r) {
|
|
3894
3894
|
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
@@ -3926,39 +3926,39 @@ function Do(r) {
|
|
|
3926
3926
|
};
|
|
3927
3927
|
}
|
|
3928
3928
|
function $o(r) {
|
|
3929
|
-
const e =
|
|
3929
|
+
const e = F(22), {
|
|
3930
3930
|
children: t,
|
|
3931
3931
|
mapId: s
|
|
3932
3932
|
} = r;
|
|
3933
3933
|
let n;
|
|
3934
|
-
e[0] !== s ? (n = (
|
|
3934
|
+
e[0] !== s ? (n = (M) => M.viewStates[s], e[0] = s, e[1] = n) : n = e[1];
|
|
3935
3935
|
const {
|
|
3936
3936
|
zoom: o,
|
|
3937
3937
|
maxZoom: i,
|
|
3938
3938
|
minZoom: a
|
|
3939
|
-
} =
|
|
3939
|
+
} = x(n);
|
|
3940
3940
|
let l;
|
|
3941
|
-
e[2] !== s ? (l = (
|
|
3942
|
-
const c =
|
|
3941
|
+
e[2] !== s ? (l = (M) => M.areLayersLoaded[s], e[2] = s, e[3] = l) : l = e[3];
|
|
3942
|
+
const c = x(l), h = x(Br), y = x(Vr), g = x(Ur), p = !c;
|
|
3943
3943
|
let b;
|
|
3944
|
-
e[4] !== s || e[5] !== h ? (b = (
|
|
3944
|
+
e[4] !== s || e[5] !== h ? (b = (M) => h(s, M), e[4] = s, e[5] = h, e[6] = b) : b = e[6];
|
|
3945
3945
|
const m = b;
|
|
3946
3946
|
let w;
|
|
3947
|
-
e[7] !== y || e[8] !== s ? (w = (
|
|
3947
|
+
e[7] !== y || e[8] !== s ? (w = (M) => y(s, M), e[7] = y, e[8] = s, e[9] = w) : w = e[9];
|
|
3948
3948
|
const u = w;
|
|
3949
3949
|
let f;
|
|
3950
|
-
e[10] !== s || e[11] !==
|
|
3951
|
-
const
|
|
3952
|
-
let
|
|
3953
|
-
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== p || e[17] !== m || e[18] !== u || e[19] !==
|
|
3950
|
+
e[10] !== s || e[11] !== g ? (f = () => g(s), e[10] = s, e[11] = g, e[12] = f) : f = e[12];
|
|
3951
|
+
const v = f;
|
|
3952
|
+
let _;
|
|
3953
|
+
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== p || e[17] !== m || e[18] !== u || e[19] !== v || e[20] !== o ? (_ = t({
|
|
3954
3954
|
zoom: o,
|
|
3955
3955
|
maxZoom: i,
|
|
3956
3956
|
minZoom: a,
|
|
3957
3957
|
isLoading: p,
|
|
3958
3958
|
setZoom: m,
|
|
3959
3959
|
flyTo: u,
|
|
3960
|
-
resetViewState:
|
|
3961
|
-
}), e[13] = t, e[14] = i, e[15] = a, e[16] = p, e[17] = m, e[18] = u, e[19] =
|
|
3960
|
+
resetViewState: v
|
|
3961
|
+
}), e[13] = t, e[14] = i, e[15] = a, e[16] = p, e[17] = m, e[18] = u, e[19] = v, e[20] = o, e[21] = _) : _ = e[21], _;
|
|
3962
3962
|
}
|
|
3963
3963
|
function Ur(r) {
|
|
3964
3964
|
return r.resetViewState;
|
|
@@ -4023,7 +4023,7 @@ async function Ir({
|
|
|
4023
4023
|
});
|
|
4024
4024
|
}
|
|
4025
4025
|
function qo(r) {
|
|
4026
|
-
const e =
|
|
4026
|
+
const e = F(20), {
|
|
4027
4027
|
source: t,
|
|
4028
4028
|
attribute: s,
|
|
4029
4029
|
accessToken: n,
|
|
@@ -4039,8 +4039,8 @@ function qo(r) {
|
|
|
4039
4039
|
...h
|
|
4040
4040
|
} = l, e[2] = l, e[3] = c, e[4] = h) : (c = e[3], h = e[4]);
|
|
4041
4041
|
const y = c === void 0 ? !0 : c;
|
|
4042
|
-
let
|
|
4043
|
-
e[5] !== s || e[6] !== t ? (
|
|
4042
|
+
let g;
|
|
4043
|
+
e[5] !== s || e[6] !== t ? (g = [t, s], e[5] = s, e[6] = t, e[7] = g) : g = e[7];
|
|
4044
4044
|
let p;
|
|
4045
4045
|
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (p = () => Nr({
|
|
4046
4046
|
source: t,
|
|
@@ -4050,8 +4050,8 @@ function qo(r) {
|
|
|
4050
4050
|
fetcherOptions: i
|
|
4051
4051
|
}), e[8] = n, e[9] = s, e[10] = i, e[11] = o, e[12] = t, e[13] = p) : p = e[13];
|
|
4052
4052
|
let b;
|
|
4053
|
-
return e[14] !== y || e[15] !== t || e[16] !==
|
|
4054
|
-
queryKey:
|
|
4053
|
+
return e[14] !== y || e[15] !== t || e[16] !== g || e[17] !== p || e[18] !== h ? (b = {
|
|
4054
|
+
queryKey: g,
|
|
4055
4055
|
queryFn: p,
|
|
4056
4056
|
select(m) {
|
|
4057
4057
|
return {
|
|
@@ -4061,7 +4061,7 @@ function qo(r) {
|
|
|
4061
4061
|
},
|
|
4062
4062
|
enabled: !!t && y,
|
|
4063
4063
|
...h
|
|
4064
|
-
}, e[14] = y, e[15] = t, e[16] =
|
|
4064
|
+
}, e[14] = y, e[15] = t, e[16] = g, e[17] = p, e[18] = h, e[19] = b) : b = e[19], le(b);
|
|
4065
4065
|
}
|
|
4066
4066
|
function Nr({
|
|
4067
4067
|
source: r,
|
|
@@ -4137,7 +4137,7 @@ export {
|
|
|
4137
4137
|
Ys as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
4138
4138
|
Ue as DEFAULT_LASSO_TOOLS_MODES,
|
|
4139
4139
|
xe as DEFAULT_LASSO_TOOLS_PROPS,
|
|
4140
|
-
|
|
4140
|
+
Ee as DEFAULT_MASK_LAYER_PROPS,
|
|
4141
4141
|
hn as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
4142
4142
|
gn as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
4143
4143
|
Ve as DEFAULT_MEASURE_COLORS,
|
|
@@ -4147,10 +4147,10 @@ export {
|
|
|
4147
4147
|
_o as FormulaModel,
|
|
4148
4148
|
De as GmapsBasemap,
|
|
4149
4149
|
Mo as HistogramModel,
|
|
4150
|
-
|
|
4150
|
+
be as INTL_UNITS,
|
|
4151
4151
|
vn as LassoTools,
|
|
4152
4152
|
on as LassoToolsProvider,
|
|
4153
|
-
|
|
4153
|
+
ve as MAPS_BASEMAP,
|
|
4154
4154
|
me as MAP_LASSO_TOOLS_LAYER_ID,
|
|
4155
4155
|
Ce as MAP_MASK_LAYER_ID,
|
|
4156
4156
|
ce as MAP_MEASURE_LAYER_ID,
|
|
@@ -4194,13 +4194,13 @@ export {
|
|
|
4194
4194
|
Sr as useFormula,
|
|
4195
4195
|
wr as useHistogram,
|
|
4196
4196
|
Pr as useLassoToolsSpatialFilter,
|
|
4197
|
-
|
|
4198
|
-
|
|
4197
|
+
Z as useLassoToolsState,
|
|
4198
|
+
ge as useLayerStore,
|
|
4199
4199
|
jn as useLayers,
|
|
4200
4200
|
Oo as useLegend,
|
|
4201
4201
|
Fo as useMapScreenshot,
|
|
4202
|
-
|
|
4203
|
-
|
|
4202
|
+
x as useMapStore,
|
|
4203
|
+
G as useMeasurementToolsState,
|
|
4204
4204
|
_r as useRange,
|
|
4205
4205
|
Mr as useScatter,
|
|
4206
4206
|
cr as useSource,
|