@carto/ps-react-maps 3.9.0 → 3.9.2
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 +929 -922
- package/dist/index.js.map +1 -1
- package/dist/types/providers/map/types.d.ts +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -79,7 +79,7 @@ function vs(r) {
|
|
|
79
79
|
}
|
|
80
80
|
function Ss(r) {
|
|
81
81
|
const e = D(42);
|
|
82
|
-
let t,
|
|
82
|
+
let t, s, n, o, i, a, l, c, m, p, y, d;
|
|
83
83
|
e[0] !== r ? ({
|
|
84
84
|
instanceRef: i,
|
|
85
85
|
overlayRef: p,
|
|
@@ -87,15 +87,15 @@ function Ss(r) {
|
|
|
87
87
|
id: o,
|
|
88
88
|
layers: a,
|
|
89
89
|
mapStyle: l,
|
|
90
|
-
parameters:
|
|
91
|
-
getCursor:
|
|
92
|
-
getTooltip:
|
|
90
|
+
parameters: y,
|
|
91
|
+
getCursor: s,
|
|
92
|
+
getTooltip: n,
|
|
93
93
|
onLoad: c,
|
|
94
|
-
onViewStateChange:
|
|
94
|
+
onViewStateChange: m,
|
|
95
95
|
...d
|
|
96
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
97
|
-
let
|
|
98
|
-
e[13] !== c ? (
|
|
96
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = m, e[10] = p, e[11] = y, e[12] = d) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], m = e[9], p = e[10], y = e[11], d = e[12]);
|
|
97
|
+
let g, h;
|
|
98
|
+
e[13] !== c ? (g = () => {
|
|
99
99
|
c({
|
|
100
100
|
type: "load",
|
|
101
101
|
value: !1
|
|
@@ -103,7 +103,7 @@ function Ss(r) {
|
|
|
103
103
|
type: "deckgl",
|
|
104
104
|
value: !1
|
|
105
105
|
});
|
|
106
|
-
},
|
|
106
|
+
}, h = [c], e[13] = c, e[14] = g, e[15] = h) : (g = e[14], h = e[15]), z(g, h);
|
|
107
107
|
let T, f;
|
|
108
108
|
e[16] !== a ? (f = a.filter(Es).map(Ts), e[16] = a, e[17] = f) : f = e[17], T = f;
|
|
109
109
|
const b = T, S = i;
|
|
@@ -113,10 +113,10 @@ function Ss(r) {
|
|
|
113
113
|
value: !0
|
|
114
114
|
}), e[18] = c, e[19] = E) : E = e[19];
|
|
115
115
|
let w;
|
|
116
|
-
e[20] !==
|
|
116
|
+
e[20] !== y ? (w = {
|
|
117
117
|
depthTest: !1,
|
|
118
|
-
...
|
|
119
|
-
}, e[20] =
|
|
118
|
+
...y
|
|
119
|
+
}, e[20] = y, e[21] = w) : w = e[21];
|
|
120
120
|
let _;
|
|
121
121
|
e[22] !== p ? (_ = /* @__PURE__ */ N(_s, { overlayRef: p }), e[22] = p, e[23] = _) : _ = e[23];
|
|
122
122
|
let k;
|
|
@@ -127,10 +127,10 @@ function Ss(r) {
|
|
|
127
127
|
let U;
|
|
128
128
|
e[26] !== l || e[27] !== k ? (U = /* @__PURE__ */ N($t, { reuseMaps: !0, mapStyle: l, onLoad: k, onRender: ws }), e[26] = l, e[27] = k, e[28] = U) : U = e[28];
|
|
129
129
|
let C;
|
|
130
|
-
return e[29] !== b || e[30] !== t || e[31] !==
|
|
130
|
+
return e[29] !== b || e[30] !== t || e[31] !== s || e[32] !== n || e[33] !== o || e[34] !== m || e[35] !== d || e[36] !== U || e[37] !== S || e[38] !== E || e[39] !== w || e[40] !== _ ? (C = /* @__PURE__ */ N(Rt, { children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(xt, { controller: t, id: o, ref: S, layers: b, getCursor: s, getTooltip: n, onLoad: E, onViewStateChange: m, parameters: w, ...d, children: [
|
|
131
131
|
_,
|
|
132
132
|
U
|
|
133
|
-
] }) }) }), e[29] = b, e[30] = t, e[31] =
|
|
133
|
+
] }) }) }), e[29] = b, e[30] = t, e[31] = s, e[32] = n, e[33] = o, e[34] = m, e[35] = d, e[36] = U, e[37] = S, e[38] = E, e[39] = w, e[40] = _, e[41] = C) : C = e[41], C;
|
|
134
134
|
}
|
|
135
135
|
function ws() {
|
|
136
136
|
const r = document.querySelector(".maplibregl-compact-show");
|
|
@@ -150,36 +150,36 @@ function _s(r) {
|
|
|
150
150
|
const e = D(3), {
|
|
151
151
|
overlayRef: t
|
|
152
152
|
} = r, {
|
|
153
|
-
default:
|
|
153
|
+
default: s
|
|
154
154
|
} = Ut();
|
|
155
|
-
let
|
|
156
|
-
return e[0] !==
|
|
155
|
+
let n, o;
|
|
156
|
+
return e[0] !== s ? (n = () => s, o = [s], e[0] = s, e[1] = n, e[2] = o) : (n = e[1], o = e[2]), Ne(t, n, o), null;
|
|
157
157
|
}
|
|
158
158
|
const Ms = (r) => {
|
|
159
159
|
const e = D(9);
|
|
160
|
-
let t,
|
|
161
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
160
|
+
let t, s;
|
|
161
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = new qt({
|
|
162
162
|
interleaved: !0
|
|
163
|
-
}), e[0] =
|
|
164
|
-
const
|
|
163
|
+
}), e[0] = s) : s = e[0], t = s;
|
|
164
|
+
const n = t, o = pt();
|
|
165
165
|
let i, a;
|
|
166
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () =>
|
|
166
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => n, a = [n], e[1] = i, e[2] = a) : (i = e[1], a = e[2]), Ne(r.instanceRef, i, a);
|
|
167
167
|
let l, c;
|
|
168
|
-
e[3] !== o ? (l = () => (
|
|
169
|
-
|
|
170
|
-
}), c = [
|
|
171
|
-
let
|
|
172
|
-
return e[6] !== r ? (
|
|
173
|
-
|
|
174
|
-
}, p = [
|
|
168
|
+
e[3] !== o ? (l = () => (n.setMap(o), () => {
|
|
169
|
+
n.finalize();
|
|
170
|
+
}), c = [n, o], e[3] = o, e[4] = l, e[5] = c) : (l = e[4], c = e[5]), z(l, c);
|
|
171
|
+
let m, p;
|
|
172
|
+
return e[6] !== r ? (m = () => {
|
|
173
|
+
n.setProps(r);
|
|
174
|
+
}, p = [n, r], e[6] = r, e[7] = m, e[8] = p) : (m = e[7], p = e[8]), z(m, p), null;
|
|
175
175
|
};
|
|
176
176
|
function Ps({
|
|
177
177
|
id: r,
|
|
178
178
|
instanceRef: e,
|
|
179
179
|
basemap: t,
|
|
180
|
-
layers:
|
|
180
|
+
layers: s,
|
|
181
181
|
gmapsProps: {
|
|
182
|
-
apiKey:
|
|
182
|
+
apiKey: n,
|
|
183
183
|
APIProviderProps: o,
|
|
184
184
|
...i
|
|
185
185
|
} = {
|
|
@@ -188,10 +188,10 @@ function Ps({
|
|
|
188
188
|
overlayRef: a,
|
|
189
189
|
parameters: l,
|
|
190
190
|
onLoad: c,
|
|
191
|
-
onViewStateChange:
|
|
191
|
+
onViewStateChange: m,
|
|
192
192
|
...p
|
|
193
193
|
}) {
|
|
194
|
-
var
|
|
194
|
+
var h, T, f, b, S;
|
|
195
195
|
z(() => {
|
|
196
196
|
c({
|
|
197
197
|
type: "load",
|
|
@@ -201,10 +201,10 @@ function Ps({
|
|
|
201
201
|
value: !1
|
|
202
202
|
});
|
|
203
203
|
}, [c]);
|
|
204
|
-
const
|
|
204
|
+
const y = re(() => s.filter((E) => !!(E != null && E.type)).map(({
|
|
205
205
|
type: E,
|
|
206
206
|
props: w
|
|
207
|
-
}) => new E(w)), [
|
|
207
|
+
}) => new E(w)), [s]), d = Q(({
|
|
208
208
|
detail: {
|
|
209
209
|
center: E,
|
|
210
210
|
zoom: w,
|
|
@@ -217,7 +217,7 @@ function Ps({
|
|
|
217
217
|
zoom: w - 1,
|
|
218
218
|
bearing: _,
|
|
219
219
|
pitch: k
|
|
220
|
-
}), []),
|
|
220
|
+
}), []), g = Q((E) => {
|
|
221
221
|
const w = e == null ? void 0 : e.current, _ = w == null ? void 0 : w._deck, k = {
|
|
222
222
|
// @ts-expect-error accessing protected props
|
|
223
223
|
..._ == null ? void 0 : _.viewState,
|
|
@@ -232,24 +232,24 @@ function Ps({
|
|
|
232
232
|
width: _ == null ? void 0 : _.width,
|
|
233
233
|
height: _ == null ? void 0 : _.height
|
|
234
234
|
};
|
|
235
|
-
|
|
235
|
+
m == null || m({
|
|
236
236
|
viewState: U,
|
|
237
237
|
interactionState: {
|
|
238
238
|
isZooming: !0
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
|
-
}, [e,
|
|
242
|
-
return /* @__PURE__ */ N(Bt, { apiKey:
|
|
243
|
-
lat: ((
|
|
241
|
+
}, [e, m]);
|
|
242
|
+
return /* @__PURE__ */ N(Bt, { apiKey: n, ...o, children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(jt, { id: r, mapTypeId: t, disableDefaultUI: !0, gestureHandling: "greedy", ...i, center: {
|
|
243
|
+
lat: ((h = p.initialViewState) == null ? void 0 : h.latitude) ?? 0,
|
|
244
244
|
lng: ((T = p.initialViewState) == null ? void 0 : T.longitude) ?? 0
|
|
245
245
|
}, zoom: (((f = p.initialViewState) == null ? void 0 : f.zoom) ?? 0) + 1, tilt: (b = p.initialViewState) == null ? void 0 : b.pitch, heading: (S = p.initialViewState) == null ? void 0 : S.bearing, onTilesLoaded: () => {
|
|
246
246
|
c({
|
|
247
247
|
type: "load",
|
|
248
248
|
value: !0
|
|
249
|
-
}),
|
|
250
|
-
}, onBoundsChanged: (E) =>
|
|
249
|
+
}), g(p.initialViewState);
|
|
250
|
+
}, onBoundsChanged: (E) => g(d(E)), onZoomChanged: (E) => g(d(E)), children: [
|
|
251
251
|
/* @__PURE__ */ N(Ls, { id: r, overlayRef: a }),
|
|
252
|
-
/* @__PURE__ */ N(Ms, { id: r, instanceRef: e, layers:
|
|
252
|
+
/* @__PURE__ */ N(Ms, { id: r, instanceRef: e, layers: y, onLoad: () => {
|
|
253
253
|
c({
|
|
254
254
|
type: "deckgl",
|
|
255
255
|
value: !0
|
|
@@ -264,32 +264,32 @@ function Ps({
|
|
|
264
264
|
function Ls(r) {
|
|
265
265
|
const e = D(3), {
|
|
266
266
|
id: t,
|
|
267
|
-
overlayRef:
|
|
268
|
-
} = r,
|
|
267
|
+
overlayRef: s
|
|
268
|
+
} = r, n = pt(t);
|
|
269
269
|
let o, i;
|
|
270
|
-
return e[0] !==
|
|
270
|
+
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;
|
|
271
271
|
}
|
|
272
272
|
function Os(r) {
|
|
273
273
|
const e = D(46);
|
|
274
|
-
let t,
|
|
274
|
+
let t, s, n, o, i, a, l, c, m, p, y, d;
|
|
275
275
|
e[0] !== r ? ({
|
|
276
|
-
instanceRef:
|
|
276
|
+
instanceRef: s,
|
|
277
277
|
overlayRef: o,
|
|
278
278
|
basemap: a,
|
|
279
279
|
controller: l,
|
|
280
280
|
id: c,
|
|
281
|
-
layers:
|
|
281
|
+
layers: m,
|
|
282
282
|
gmapsProps: t,
|
|
283
283
|
getCursor: p,
|
|
284
|
-
getTooltip:
|
|
285
|
-
onLoad:
|
|
284
|
+
getTooltip: y,
|
|
285
|
+
onLoad: n,
|
|
286
286
|
onViewStateChange: d,
|
|
287
287
|
...i
|
|
288
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
289
|
-
const
|
|
288
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = m, e[10] = p, e[11] = y, e[12] = d) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], m = e[9], p = e[10], y = e[11], d = e[12]);
|
|
289
|
+
const g = a === void 0 ? J.positron : a, h = l === void 0 ? !0 : l, T = c === void 0 ? "deck-gl-map" : c;
|
|
290
290
|
let f;
|
|
291
|
-
e[13] !==
|
|
292
|
-
const b = f, S = p === void 0 ? bs : p, E =
|
|
291
|
+
e[13] !== m ? (f = m === void 0 ? [] : m, e[13] = m, e[14] = f) : f = e[14];
|
|
292
|
+
const b = f, S = p === void 0 ? bs : p, E = y === void 0 ? vs : y, w = d === void 0 ? ks : d;
|
|
293
293
|
let _;
|
|
294
294
|
e[15] === Symbol.for("react.memo_cache_sentinel") ? (_ = [!1, !1], e[15] = _) : _ = e[15];
|
|
295
295
|
const [k, U] = oe(_);
|
|
@@ -298,7 +298,7 @@ function Os(r) {
|
|
|
298
298
|
const j = C, {
|
|
299
299
|
url: B,
|
|
300
300
|
type: x
|
|
301
|
-
} = ye[
|
|
301
|
+
} = ye[g], M = x === te.googleMaps;
|
|
302
302
|
let F;
|
|
303
303
|
e[18] === Symbol.for("react.memo_cache_sentinel") ? (F = (L) => {
|
|
304
304
|
const O = L.type === "deckgl" ? 0 : 1;
|
|
@@ -306,14 +306,14 @@ function Os(r) {
|
|
|
306
306
|
}, e[18] = F) : F = e[18];
|
|
307
307
|
const u = F;
|
|
308
308
|
let v, P;
|
|
309
|
-
if (e[19] !== j || e[20] !==
|
|
310
|
-
|
|
311
|
-
}, P = [j,
|
|
309
|
+
if (e[19] !== j || e[20] !== n ? (v = () => {
|
|
310
|
+
n == null || n(j);
|
|
311
|
+
}, P = [j, n], e[19] = j, e[20] = n, e[21] = v, e[22] = P) : (v = e[21], P = e[22]), z(v, P), M) {
|
|
312
312
|
let L;
|
|
313
|
-
return e[23] !==
|
|
313
|
+
return e[23] !== g || e[24] !== h || e[25] !== S || e[26] !== E || e[27] !== t || e[28] !== T || e[29] !== s || e[30] !== b || e[31] !== w || e[32] !== o || e[33] !== i ? (L = /* @__PURE__ */ N(Ps, { instanceRef: s, overlayRef: o, controller: h, id: T, basemap: g, layers: b, gmapsProps: t, getCursor: S, getTooltip: E, onLoad: u, onViewStateChange: w, ...i }), e[23] = g, e[24] = h, e[25] = S, e[26] = E, e[27] = t, e[28] = T, e[29] = s, e[30] = b, e[31] = w, e[32] = o, e[33] = i, e[34] = L) : L = e[34], L;
|
|
314
314
|
}
|
|
315
315
|
let A;
|
|
316
|
-
return e[35] !==
|
|
316
|
+
return e[35] !== h || e[36] !== S || e[37] !== E || e[38] !== T || e[39] !== s || e[40] !== b || e[41] !== B || e[42] !== w || e[43] !== o || e[44] !== i ? (A = /* @__PURE__ */ N(Ss, { instanceRef: s, overlayRef: o, controller: h, id: T, layers: b, mapStyle: B, getCursor: S, getTooltip: E, onLoad: u, onViewStateChange: w, ...i }), e[35] = h, e[36] = S, e[37] = E, e[38] = T, e[39] = s, e[40] = b, e[41] = B, e[42] = w, e[43] = o, e[44] = i, e[45] = A) : A = e[45], A;
|
|
317
317
|
}
|
|
318
318
|
function Fs(r) {
|
|
319
319
|
return r;
|
|
@@ -327,12 +327,12 @@ const As = {
|
|
|
327
327
|
curve: 2
|
|
328
328
|
})
|
|
329
329
|
}, Cs = (r) => {
|
|
330
|
-
const e = r.reduce((t,
|
|
330
|
+
const e = r.reduce((t, s) => {
|
|
331
331
|
const {
|
|
332
|
-
id:
|
|
332
|
+
id: n,
|
|
333
333
|
basemap: o
|
|
334
|
-
} =
|
|
335
|
-
return t[
|
|
334
|
+
} = s;
|
|
335
|
+
return t[n] = {
|
|
336
336
|
isLoaded: !1,
|
|
337
337
|
basemap: o,
|
|
338
338
|
instanceRef: {
|
|
@@ -341,210 +341,217 @@ const As = {
|
|
|
341
341
|
overlayRef: {
|
|
342
342
|
current: null
|
|
343
343
|
},
|
|
344
|
-
layers:
|
|
344
|
+
layers: s.layers ?? []
|
|
345
345
|
}, t;
|
|
346
346
|
}, {});
|
|
347
|
-
return (t,
|
|
347
|
+
return (t, s) => ({
|
|
348
348
|
maps: e,
|
|
349
|
-
setBasemap: (
|
|
350
|
-
var
|
|
349
|
+
setBasemap: (n, o) => t((i) => {
|
|
350
|
+
var m;
|
|
351
351
|
const {
|
|
352
352
|
type: a
|
|
353
|
-
} = ye[i.maps[
|
|
353
|
+
} = ye[i.maps[n].basemap], {
|
|
354
354
|
type: l
|
|
355
|
-
} = ye[o], c = a === l && !!((
|
|
355
|
+
} = ye[o], c = a === l && !!((m = i.maps[n]) != null && m.isLoaded);
|
|
356
356
|
return {
|
|
357
357
|
maps: {
|
|
358
358
|
...i.maps,
|
|
359
|
-
[
|
|
360
|
-
...i.maps[
|
|
359
|
+
[n]: {
|
|
360
|
+
...i.maps[n],
|
|
361
361
|
isLoaded: c,
|
|
362
362
|
basemap: o
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
};
|
|
366
366
|
}),
|
|
367
|
-
setLoad: (
|
|
367
|
+
setLoad: (n, o) => t((i) => ({
|
|
368
368
|
maps: {
|
|
369
369
|
...i.maps,
|
|
370
|
-
[
|
|
371
|
-
...i.maps[
|
|
370
|
+
[n]: {
|
|
371
|
+
...i.maps[n],
|
|
372
372
|
isLoaded: o
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
})),
|
|
376
|
-
getOverlayInstance: (
|
|
376
|
+
getOverlayInstance: (n) => {
|
|
377
377
|
var i, a;
|
|
378
|
-
return (a = (i =
|
|
378
|
+
return (a = (i = s().maps[n]) == null ? void 0 : i.overlayRef) == null ? void 0 : a.current;
|
|
379
379
|
},
|
|
380
|
-
getDeckInstance: (
|
|
380
|
+
getDeckInstance: (n) => {
|
|
381
381
|
var a, l;
|
|
382
|
-
const i = (l = (a =
|
|
382
|
+
const i = (l = (a = s().maps[n]) == null ? void 0 : a.instanceRef) == null ? void 0 : l.current;
|
|
383
383
|
return (
|
|
384
384
|
// @ts-expect-error accessing protected props
|
|
385
385
|
(i == null ? void 0 : i.deck) ?? i._deck
|
|
386
386
|
);
|
|
387
387
|
},
|
|
388
|
-
getViewState: (
|
|
389
|
-
const i =
|
|
388
|
+
getViewState: (n) => {
|
|
389
|
+
const i = s().getDeckInstance(n);
|
|
390
390
|
return i == null ? void 0 : i.viewState;
|
|
391
391
|
},
|
|
392
|
-
getViewports: (
|
|
393
|
-
const a =
|
|
392
|
+
getViewports: (n, o) => {
|
|
393
|
+
const a = s().getDeckInstance(n);
|
|
394
394
|
return a == null ? void 0 : a.getViewports(o);
|
|
395
395
|
},
|
|
396
|
-
getViewport: (
|
|
396
|
+
getViewport: (n, o = 0, i) => {
|
|
397
397
|
var c;
|
|
398
|
-
const l =
|
|
398
|
+
const l = s().getDeckInstance(n);
|
|
399
399
|
return (c = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : c[o];
|
|
400
400
|
},
|
|
401
|
-
|
|
402
|
-
var
|
|
401
|
+
getBounds: (n, o, i) => {
|
|
402
|
+
var m;
|
|
403
|
+
const a = s(), l = (m = a.getViewport) == null ? void 0 : m.call(a, n);
|
|
404
|
+
return l ? {
|
|
405
|
+
...l == null ? void 0 : l.fitBounds(o, i == null ? void 0 : i.boundsOptions),
|
|
406
|
+
...i == null ? void 0 : i.viewStateOptions
|
|
407
|
+
} : void 0;
|
|
408
|
+
},
|
|
409
|
+
addLayers: (n, o) => t((i) => {
|
|
410
|
+
var m;
|
|
403
411
|
const a = {
|
|
404
412
|
...i.maps
|
|
405
|
-
}, l = ((
|
|
406
|
-
return a[
|
|
407
|
-
...a[
|
|
413
|
+
}, l = ((m = a[n]) == null ? void 0 : m.layers) ?? [], c = /* @__PURE__ */ new Set([...l, ...o]);
|
|
414
|
+
return a[n] = {
|
|
415
|
+
...a[n],
|
|
408
416
|
layers: [...c]
|
|
409
417
|
}, {
|
|
410
418
|
maps: a
|
|
411
419
|
};
|
|
412
420
|
}),
|
|
413
|
-
removeLayers: (
|
|
421
|
+
removeLayers: (n, o) => t((i) => {
|
|
414
422
|
var c;
|
|
415
423
|
const a = {
|
|
416
424
|
...i.maps
|
|
417
|
-
}, l = ((c = a[
|
|
418
|
-
return a[
|
|
419
|
-
...a[
|
|
420
|
-
layers: l.filter((
|
|
425
|
+
}, l = ((c = a[n]) == null ? void 0 : c.layers) ?? [];
|
|
426
|
+
return a[n] = {
|
|
427
|
+
...a[n],
|
|
428
|
+
layers: l.filter((m) => !o.includes(m))
|
|
421
429
|
}, {
|
|
422
430
|
maps: a
|
|
423
431
|
};
|
|
424
432
|
})
|
|
425
433
|
});
|
|
426
434
|
}, Ds = (r) => {
|
|
427
|
-
const e = r.reduce((t,
|
|
435
|
+
const e = r.reduce((t, s) => {
|
|
428
436
|
const {
|
|
429
|
-
id:
|
|
430
|
-
} =
|
|
431
|
-
return t[
|
|
437
|
+
id: n
|
|
438
|
+
} = s;
|
|
439
|
+
return t[n] = !1, t;
|
|
432
440
|
}, {});
|
|
433
441
|
return (t) => ({
|
|
434
442
|
areLayersLoaded: e,
|
|
435
|
-
setLayersLoad: (
|
|
443
|
+
setLayersLoad: (s, n) => t((o) => ({
|
|
436
444
|
areLayersLoaded: {
|
|
437
445
|
...o.areLayersLoaded,
|
|
438
|
-
[
|
|
446
|
+
[s]: n
|
|
439
447
|
}
|
|
440
448
|
}))
|
|
441
449
|
});
|
|
442
450
|
}, Rs = (r) => {
|
|
443
|
-
const e = r.reduce((t,
|
|
444
|
-
const
|
|
445
|
-
return t.initialViewStates[
|
|
451
|
+
const e = r.reduce((t, s) => {
|
|
452
|
+
const n = s.initialViewState ?? s.viewState;
|
|
453
|
+
return t.initialViewStates[s.id] = n, t.viewStates[s.id] = n, t.viewports[s.id] = null, t;
|
|
446
454
|
}, {
|
|
447
455
|
viewStates: {},
|
|
448
456
|
viewports: {},
|
|
449
457
|
initialViewStates: {}
|
|
450
458
|
});
|
|
451
|
-
return (t,
|
|
459
|
+
return (t, s) => ({
|
|
452
460
|
viewports: e.viewports,
|
|
453
461
|
initialViewStates: e.initialViewStates,
|
|
454
|
-
updateViewPort: (
|
|
462
|
+
updateViewPort: (n) => {
|
|
455
463
|
var a;
|
|
456
|
-
const o =
|
|
457
|
-
if (!((a = o.maps[
|
|
458
|
-
const i = new It(o.viewStates[
|
|
464
|
+
const o = s();
|
|
465
|
+
if (!((a = o.maps[n]) != null && a.isLoaded)) return;
|
|
466
|
+
const i = new It(o.viewStates[n]);
|
|
459
467
|
t((l) => ({
|
|
460
468
|
viewports: {
|
|
461
469
|
...l.viewports,
|
|
462
|
-
[
|
|
470
|
+
[n]: i
|
|
463
471
|
}
|
|
464
472
|
}));
|
|
465
473
|
},
|
|
466
474
|
viewStates: e.viewStates,
|
|
467
|
-
setViewState: (
|
|
475
|
+
setViewState: (n, o) => t((i) => ({
|
|
468
476
|
viewStates: {
|
|
469
477
|
...i.viewStates,
|
|
470
|
-
[
|
|
471
|
-
...i.viewStates[
|
|
478
|
+
[n]: {
|
|
479
|
+
...i.viewStates[n],
|
|
472
480
|
...o
|
|
473
481
|
}
|
|
474
482
|
}
|
|
475
483
|
})),
|
|
476
|
-
|
|
477
|
-
viewStates: {
|
|
478
|
-
...o.viewStates,
|
|
479
|
-
[s]: o.initialViewStates[s]
|
|
480
|
-
}
|
|
481
|
-
})),
|
|
482
|
-
setInitialViewState: (s, o) => t((i) => ({
|
|
484
|
+
setInitialViewState: (n, o) => t((i) => ({
|
|
483
485
|
initialViewStates: {
|
|
484
486
|
...i.initialViewStates,
|
|
485
|
-
[
|
|
487
|
+
[n]: o
|
|
486
488
|
}
|
|
487
489
|
})),
|
|
488
|
-
setZoom: (
|
|
490
|
+
setZoom: (n, o) => t((i) => ({
|
|
489
491
|
viewStates: {
|
|
490
492
|
...i.viewStates,
|
|
491
|
-
[
|
|
492
|
-
...i.viewStates[
|
|
493
|
+
[n]: {
|
|
494
|
+
...i.viewStates[n],
|
|
493
495
|
zoom: o
|
|
494
496
|
}
|
|
495
497
|
}
|
|
496
498
|
})),
|
|
497
|
-
setMinZoom: (
|
|
499
|
+
setMinZoom: (n, o) => t((i) => ({
|
|
498
500
|
viewStates: {
|
|
499
501
|
...i.viewStates,
|
|
500
|
-
[
|
|
501
|
-
...i.viewStates[
|
|
502
|
+
[n]: {
|
|
503
|
+
...i.viewStates[n],
|
|
502
504
|
minZoom: o
|
|
503
505
|
}
|
|
504
506
|
}
|
|
505
507
|
})),
|
|
506
|
-
setMaxZoom: (
|
|
508
|
+
setMaxZoom: (n, o) => t((i) => ({
|
|
507
509
|
viewStates: {
|
|
508
510
|
...i.viewStates,
|
|
509
|
-
[
|
|
510
|
-
...i.viewStates[
|
|
511
|
+
[n]: {
|
|
512
|
+
...i.viewStates[n],
|
|
511
513
|
maxZoom: o
|
|
512
514
|
}
|
|
513
515
|
}
|
|
514
516
|
}))
|
|
515
517
|
});
|
|
516
518
|
}, $s = (r, e) => ({
|
|
517
|
-
fitBounds: (t,
|
|
518
|
-
const o = e(), i = o.
|
|
519
|
-
|
|
520
|
-
const l = {
|
|
521
|
-
...i == null ? void 0 : i.fitBounds(n, s == null ? void 0 : s.boundsOptions),
|
|
522
|
-
...s == null ? void 0 : s.viewStateOptions
|
|
523
|
-
};
|
|
524
|
-
o.setViewState(t, l), o.updateViewPort(t);
|
|
519
|
+
fitBounds: (t, s, n) => {
|
|
520
|
+
const o = e(), i = o.getBounds(t, s, n);
|
|
521
|
+
i && (o.setViewState(t, i), o.updateViewPort(t));
|
|
525
522
|
},
|
|
526
|
-
flyTo: (t,
|
|
527
|
-
const o = e()
|
|
528
|
-
if (!o.getViewport(t)) return;
|
|
529
|
-
const a = {
|
|
523
|
+
flyTo: (t, s, n = {}) => {
|
|
524
|
+
const o = e(), i = {
|
|
530
525
|
...As,
|
|
531
|
-
...
|
|
532
|
-
},
|
|
533
|
-
...
|
|
534
|
-
...
|
|
526
|
+
...n == null ? void 0 : n.viewStateOptions
|
|
527
|
+
}, a = {
|
|
528
|
+
...s,
|
|
529
|
+
...i
|
|
535
530
|
};
|
|
536
|
-
o.setViewState(t,
|
|
531
|
+
o.setViewState(t, a), o.updateViewPort(t);
|
|
532
|
+
},
|
|
533
|
+
loadInitialViewState: (t, s) => {
|
|
534
|
+
const n = e();
|
|
535
|
+
n.setInitialViewState(t, s), n.flyTo(t, s, {
|
|
536
|
+
viewStateOptions: {
|
|
537
|
+
transitionDuration: 0
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
},
|
|
541
|
+
resetViewState: (t) => {
|
|
542
|
+
const s = e(), n = s.initialViewStates;
|
|
543
|
+
n[t] && s.flyTo(t, n[t]);
|
|
537
544
|
}
|
|
538
545
|
}), Us = (r) => {
|
|
539
|
-
const e = r.reduce((t,
|
|
546
|
+
const e = r.reduce((t, s) => (t[s.id] = s.spatialFilter ?? {}, t), {});
|
|
540
547
|
return (t) => ({
|
|
541
548
|
spatialFilter: e,
|
|
542
|
-
setSpatialFilter: (
|
|
549
|
+
setSpatialFilter: (s, n, o) => {
|
|
543
550
|
t((i) => {
|
|
544
551
|
const a = structuredClone(i.spatialFilter);
|
|
545
|
-
return o == null ? a[
|
|
546
|
-
...a[
|
|
547
|
-
[
|
|
552
|
+
return o == null ? a[s] && delete a[s][n] : a[s] = {
|
|
553
|
+
...a[s],
|
|
554
|
+
[n]: o
|
|
548
555
|
}, {
|
|
549
556
|
spatialFilter: a
|
|
550
557
|
};
|
|
@@ -561,11 +568,11 @@ const As = {
|
|
|
561
568
|
function Bs(r) {
|
|
562
569
|
const e = D(5), {
|
|
563
570
|
children: t,
|
|
564
|
-
values:
|
|
571
|
+
values: s
|
|
565
572
|
} = r;
|
|
566
|
-
let
|
|
567
|
-
e[0] !==
|
|
568
|
-
const [o] = oe(
|
|
573
|
+
let n;
|
|
574
|
+
e[0] !== s ? (n = xs(s), e[0] = s, e[1] = n) : n = e[1];
|
|
575
|
+
const [o] = oe(n);
|
|
569
576
|
let i;
|
|
570
577
|
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(St.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
571
578
|
}
|
|
@@ -578,15 +585,15 @@ function $(r) {
|
|
|
578
585
|
function zr(r) {
|
|
579
586
|
const e = D(9), {
|
|
580
587
|
children: t,
|
|
581
|
-
mapId:
|
|
588
|
+
mapId: s
|
|
582
589
|
} = r;
|
|
583
|
-
let
|
|
584
|
-
e[0] !==
|
|
590
|
+
let n;
|
|
591
|
+
e[0] !== s ? (n = (m) => m.maps[s], e[0] = s, e[1] = n) : n = e[1];
|
|
585
592
|
const {
|
|
586
593
|
basemap: o
|
|
587
|
-
} = $(
|
|
594
|
+
} = $(n), i = $(js);
|
|
588
595
|
let a;
|
|
589
|
-
e[2] !==
|
|
596
|
+
e[2] !== s || e[3] !== i ? (a = (m) => i(s, m), e[2] = s, e[3] = i, e[4] = a) : a = e[4];
|
|
590
597
|
const l = a;
|
|
591
598
|
let c;
|
|
592
599
|
return e[5] !== o || e[6] !== t || e[7] !== l ? (c = t({
|
|
@@ -682,23 +689,23 @@ const ce = "lassoLayer", Le = "maskLayer", Vs = {
|
|
|
682
689
|
}
|
|
683
690
|
}, pe = mt((r) => ({
|
|
684
691
|
layers: {},
|
|
685
|
-
setLayer: (e, t) => r((
|
|
692
|
+
setLayer: (e, t) => r((s) => {
|
|
686
693
|
var l, c;
|
|
687
|
-
const
|
|
688
|
-
...
|
|
694
|
+
const n = {
|
|
695
|
+
...s.layers
|
|
689
696
|
};
|
|
690
697
|
if (!t)
|
|
691
|
-
return delete
|
|
692
|
-
layers:
|
|
698
|
+
return delete n[e], {
|
|
699
|
+
layers: n
|
|
693
700
|
};
|
|
694
|
-
const o =
|
|
701
|
+
const o = n[e] ?? {
|
|
695
702
|
type: null,
|
|
696
703
|
props: {}
|
|
697
|
-
}, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((
|
|
704
|
+
}, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((m, p) => (m.some((y) => y.equals(p)) || m.push(p), m), []), a = o.legend || t.legend ? {
|
|
698
705
|
...o.legend,
|
|
699
706
|
...t.legend
|
|
700
707
|
} : void 0;
|
|
701
|
-
return
|
|
708
|
+
return n[e] = {
|
|
702
709
|
...o,
|
|
703
710
|
...t,
|
|
704
711
|
props: {
|
|
@@ -713,15 +720,15 @@ const ce = "lassoLayer", Le = "maskLayer", Vs = {
|
|
|
713
720
|
},
|
|
714
721
|
legend: a
|
|
715
722
|
}, {
|
|
716
|
-
layers:
|
|
723
|
+
layers: n
|
|
717
724
|
};
|
|
718
725
|
}),
|
|
719
726
|
removeLayer: (e) => r((t) => {
|
|
720
|
-
const
|
|
727
|
+
const s = {
|
|
721
728
|
...t.layers
|
|
722
729
|
};
|
|
723
|
-
return delete
|
|
724
|
-
layers:
|
|
730
|
+
return delete s[e], {
|
|
731
|
+
layers: s
|
|
725
732
|
};
|
|
726
733
|
})
|
|
727
734
|
}));
|
|
@@ -743,15 +750,15 @@ function Ns() {
|
|
|
743
750
|
var b = Object.prototype.toString.call(f);
|
|
744
751
|
return b === "[object RegExp]" || b === "[object Date]" || o(f);
|
|
745
752
|
}
|
|
746
|
-
var
|
|
753
|
+
var s = typeof Symbol == "function" && Symbol.for, n = s ? Symbol.for("react.element") : 60103;
|
|
747
754
|
function o(f) {
|
|
748
|
-
return f.$$typeof ===
|
|
755
|
+
return f.$$typeof === n;
|
|
749
756
|
}
|
|
750
757
|
function i(f) {
|
|
751
758
|
return Array.isArray(f) ? [] : {};
|
|
752
759
|
}
|
|
753
760
|
function a(f, b) {
|
|
754
|
-
return b.clone !== !1 && b.isMergeableObject(f) ?
|
|
761
|
+
return b.clone !== !1 && b.isMergeableObject(f) ? h(i(f), f, b) : f;
|
|
755
762
|
}
|
|
756
763
|
function l(f, b, S) {
|
|
757
764
|
return f.concat(b).map(function(E) {
|
|
@@ -760,19 +767,19 @@ function Ns() {
|
|
|
760
767
|
}
|
|
761
768
|
function c(f, b) {
|
|
762
769
|
if (!b.customMerge)
|
|
763
|
-
return
|
|
770
|
+
return h;
|
|
764
771
|
var S = b.customMerge(f);
|
|
765
|
-
return typeof S == "function" ? S :
|
|
772
|
+
return typeof S == "function" ? S : h;
|
|
766
773
|
}
|
|
767
|
-
function
|
|
774
|
+
function m(f) {
|
|
768
775
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(b) {
|
|
769
776
|
return Object.propertyIsEnumerable.call(f, b);
|
|
770
777
|
}) : [];
|
|
771
778
|
}
|
|
772
779
|
function p(f) {
|
|
773
|
-
return Object.keys(f).concat(
|
|
780
|
+
return Object.keys(f).concat(m(f));
|
|
774
781
|
}
|
|
775
|
-
function
|
|
782
|
+
function y(f, b) {
|
|
776
783
|
try {
|
|
777
784
|
return b in f;
|
|
778
785
|
} catch {
|
|
@@ -780,29 +787,29 @@ function Ns() {
|
|
|
780
787
|
}
|
|
781
788
|
}
|
|
782
789
|
function d(f, b) {
|
|
783
|
-
return
|
|
790
|
+
return y(f, b) && !(Object.hasOwnProperty.call(f, b) && Object.propertyIsEnumerable.call(f, b));
|
|
784
791
|
}
|
|
785
|
-
function
|
|
792
|
+
function g(f, b, S) {
|
|
786
793
|
var E = {};
|
|
787
794
|
return S.isMergeableObject(f) && p(f).forEach(function(w) {
|
|
788
795
|
E[w] = a(f[w], S);
|
|
789
796
|
}), p(b).forEach(function(w) {
|
|
790
|
-
d(f, w) || (
|
|
797
|
+
d(f, w) || (y(f, w) && S.isMergeableObject(b[w]) ? E[w] = c(w, S)(f[w], b[w], S) : E[w] = a(b[w], S));
|
|
791
798
|
}), E;
|
|
792
799
|
}
|
|
793
|
-
function
|
|
800
|
+
function h(f, b, S) {
|
|
794
801
|
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
795
802
|
var E = Array.isArray(b), w = Array.isArray(f), _ = E === w;
|
|
796
|
-
return _ ? E ? S.arrayMerge(f, b, S) :
|
|
803
|
+
return _ ? E ? S.arrayMerge(f, b, S) : g(f, b, S) : a(b, S);
|
|
797
804
|
}
|
|
798
|
-
|
|
805
|
+
h.all = function(b, S) {
|
|
799
806
|
if (!Array.isArray(b))
|
|
800
807
|
throw new Error("first argument should be an array");
|
|
801
808
|
return b.reduce(function(E, w) {
|
|
802
|
-
return
|
|
809
|
+
return h(E, w, S);
|
|
803
810
|
}, {});
|
|
804
811
|
};
|
|
805
|
-
var T =
|
|
812
|
+
var T = h;
|
|
806
813
|
return Be = T, Be;
|
|
807
814
|
}
|
|
808
815
|
var Hs = Ns();
|
|
@@ -811,32 +818,32 @@ class Tt extends Kt {
|
|
|
811
818
|
updateState({
|
|
812
819
|
props: e,
|
|
813
820
|
oldProps: t,
|
|
814
|
-
context:
|
|
815
|
-
changeFlags:
|
|
821
|
+
context: s,
|
|
822
|
+
changeFlags: n
|
|
816
823
|
}) {
|
|
817
824
|
e.eventManager !== t.eventManager && (this._removeEventHandlers(e.eventManager), this._removeEventHandlers(t.eventManager), this._addEventHandlers()), super.updateState({
|
|
818
825
|
props: e,
|
|
819
826
|
oldProps: t,
|
|
820
|
-
context:
|
|
821
|
-
changeFlags:
|
|
827
|
+
context: s,
|
|
828
|
+
changeFlags: n
|
|
822
829
|
});
|
|
823
830
|
}
|
|
824
831
|
_addEventHandlers() {
|
|
825
832
|
const e = this._getEventManager(), {
|
|
826
833
|
eventHandler: t
|
|
827
834
|
} = this.state._editableLayerState;
|
|
828
|
-
for (const
|
|
829
|
-
e.on(
|
|
835
|
+
for (const s of tt)
|
|
836
|
+
e.on(s, t, {
|
|
830
837
|
// give nebula a higher priority so that it can stop propagation to deck.gl's map panning handlers
|
|
831
838
|
priority: 100
|
|
832
839
|
});
|
|
833
840
|
}
|
|
834
841
|
_removeEventHandlers(e) {
|
|
835
842
|
const t = e ?? this._getEventManager(), {
|
|
836
|
-
eventHandler:
|
|
843
|
+
eventHandler: s
|
|
837
844
|
} = this.state._editableLayerState;
|
|
838
|
-
for (const
|
|
839
|
-
t.off(
|
|
845
|
+
for (const n of tt)
|
|
846
|
+
t.off(n, s);
|
|
840
847
|
}
|
|
841
848
|
_getEventManager() {
|
|
842
849
|
return this.props.eventManager ?? // @ts-expect-error accessing protected props
|
|
@@ -860,8 +867,8 @@ function zs({
|
|
|
860
867
|
layerProps: r,
|
|
861
868
|
onEdit: e,
|
|
862
869
|
getLineColor: t,
|
|
863
|
-
getFillColor:
|
|
864
|
-
pointColor:
|
|
870
|
+
getFillColor: s,
|
|
871
|
+
pointColor: n
|
|
865
872
|
}) {
|
|
866
873
|
const o = ue(r, {
|
|
867
874
|
modeConfig: {
|
|
@@ -874,104 +881,104 @@ function zs({
|
|
|
874
881
|
onEdit: e
|
|
875
882
|
}), i = ue(Vs, {
|
|
876
883
|
getTentativeLineColor: t,
|
|
877
|
-
getTentativeFillColor:
|
|
884
|
+
getTentativeFillColor: s,
|
|
878
885
|
getLineColor: t,
|
|
879
|
-
getFillColor:
|
|
880
|
-
getEditHandlePointColor:
|
|
881
|
-
getEditHandlePointOutlineColor:
|
|
886
|
+
getFillColor: s,
|
|
887
|
+
getEditHandlePointColor: n.fill,
|
|
888
|
+
getEditHandlePointOutlineColor: n.outline,
|
|
882
889
|
dataComparator: (l, c) => l.features[0] === c.features[0]
|
|
883
890
|
});
|
|
884
891
|
return ue(i, o);
|
|
885
892
|
}
|
|
886
893
|
const Qs = (r) => ze()((e) => ({
|
|
887
|
-
data: r.reduce((
|
|
894
|
+
data: r.reduce((s, n) => {
|
|
888
895
|
const {
|
|
889
896
|
enabled: o = !1,
|
|
890
897
|
mapId: i,
|
|
891
898
|
modeInstance: a = new xe.polygon.mode(),
|
|
892
899
|
modes: l = xe,
|
|
893
900
|
modeSelected: c = xe.polygon.value,
|
|
894
|
-
values:
|
|
895
|
-
} =
|
|
896
|
-
return
|
|
901
|
+
values: m = {}
|
|
902
|
+
} = n;
|
|
903
|
+
return s[i] = {
|
|
897
904
|
enabled: o,
|
|
898
905
|
modeInstance: a,
|
|
899
906
|
modes: l,
|
|
900
907
|
modeSelected: c,
|
|
901
|
-
values:
|
|
902
|
-
},
|
|
908
|
+
values: m
|
|
909
|
+
}, s;
|
|
903
910
|
}, {}),
|
|
904
|
-
setEnabled: (
|
|
911
|
+
setEnabled: (s, n) => {
|
|
905
912
|
e((o) => ({
|
|
906
913
|
data: {
|
|
907
914
|
...o.data,
|
|
908
|
-
[
|
|
909
|
-
...o.data[
|
|
910
|
-
enabled:
|
|
911
|
-
visible:
|
|
915
|
+
[s]: {
|
|
916
|
+
...o.data[s],
|
|
917
|
+
enabled: n,
|
|
918
|
+
visible: n
|
|
912
919
|
}
|
|
913
920
|
}
|
|
914
921
|
}));
|
|
915
922
|
},
|
|
916
|
-
setValue: (
|
|
923
|
+
setValue: (s, n, o) => {
|
|
917
924
|
e((i) => {
|
|
918
925
|
const a = {
|
|
919
|
-
...i.data[
|
|
920
|
-
}, l = a[
|
|
926
|
+
...i.data[s].values
|
|
927
|
+
}, l = a[n] ?? {
|
|
921
928
|
type: "mask"
|
|
922
929
|
};
|
|
923
|
-
return a[
|
|
930
|
+
return a[n] = {
|
|
924
931
|
...l,
|
|
925
932
|
...o,
|
|
926
|
-
id:
|
|
927
|
-
}, o || delete a[
|
|
933
|
+
id: n
|
|
934
|
+
}, o || delete a[n], {
|
|
928
935
|
data: {
|
|
929
936
|
...i.data,
|
|
930
|
-
[
|
|
931
|
-
...i.data[
|
|
937
|
+
[s]: {
|
|
938
|
+
...i.data[s],
|
|
932
939
|
values: a
|
|
933
940
|
}
|
|
934
941
|
}
|
|
935
942
|
};
|
|
936
943
|
});
|
|
937
944
|
},
|
|
938
|
-
setVisibility: (
|
|
945
|
+
setVisibility: (s, n, o) => {
|
|
939
946
|
e((i) => {
|
|
940
947
|
const a = {
|
|
941
|
-
...i.data[
|
|
942
|
-
}, l = a[
|
|
948
|
+
...i.data[s].values
|
|
949
|
+
}, l = a[n] ?? {};
|
|
943
950
|
return l.properties.visible = o, {
|
|
944
951
|
data: {
|
|
945
952
|
...i.data,
|
|
946
|
-
[
|
|
947
|
-
...i.data[
|
|
953
|
+
[s]: {
|
|
954
|
+
...i.data[s],
|
|
948
955
|
values: {
|
|
949
956
|
...a,
|
|
950
|
-
[
|
|
957
|
+
[n]: l
|
|
951
958
|
}
|
|
952
959
|
}
|
|
953
960
|
}
|
|
954
961
|
};
|
|
955
962
|
});
|
|
956
963
|
},
|
|
957
|
-
setModeSelected: (
|
|
964
|
+
setModeSelected: (s, n) => {
|
|
958
965
|
e((o) => ({
|
|
959
966
|
data: {
|
|
960
967
|
...o.data,
|
|
961
|
-
[
|
|
962
|
-
...o.data[
|
|
963
|
-
modeSelected:
|
|
968
|
+
[s]: {
|
|
969
|
+
...o.data[s],
|
|
970
|
+
modeSelected: n
|
|
964
971
|
}
|
|
965
972
|
}
|
|
966
973
|
}));
|
|
967
974
|
},
|
|
968
|
-
setModeInstance: (
|
|
975
|
+
setModeInstance: (s, n) => {
|
|
969
976
|
e((o) => ({
|
|
970
977
|
data: {
|
|
971
978
|
...o.data,
|
|
972
|
-
[
|
|
973
|
-
...o.data[
|
|
974
|
-
modeInstance:
|
|
979
|
+
[s]: {
|
|
980
|
+
...o.data[s],
|
|
981
|
+
modeInstance: n
|
|
975
982
|
}
|
|
976
983
|
}
|
|
977
984
|
}));
|
|
@@ -980,11 +987,11 @@ const Qs = (r) => ze()((e) => ({
|
|
|
980
987
|
function Ws(r) {
|
|
981
988
|
const e = D(5), {
|
|
982
989
|
children: t,
|
|
983
|
-
values:
|
|
990
|
+
values: s
|
|
984
991
|
} = r;
|
|
985
|
-
let
|
|
986
|
-
e[0] !==
|
|
987
|
-
const [o] = oe(
|
|
992
|
+
let n;
|
|
993
|
+
e[0] !== s ? (n = () => Qs(s), e[0] = s, e[1] = n) : n = e[1];
|
|
994
|
+
const [o] = oe(n);
|
|
988
995
|
let i;
|
|
989
996
|
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(Et.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
990
997
|
}
|
|
@@ -999,25 +1006,25 @@ function Ks({
|
|
|
999
1006
|
children: e
|
|
1000
1007
|
}) {
|
|
1001
1008
|
const t = G((d) => {
|
|
1002
|
-
var
|
|
1003
|
-
return (
|
|
1004
|
-
}),
|
|
1005
|
-
var
|
|
1006
|
-
return (
|
|
1009
|
+
var g;
|
|
1010
|
+
return (g = d.data[r]) == null ? void 0 : g.enabled;
|
|
1011
|
+
}), s = G((d) => d.setEnabled), n = G((d) => {
|
|
1012
|
+
var g;
|
|
1013
|
+
return (g = d.data[r]) == null ? void 0 : g.values;
|
|
1007
1014
|
}), o = G((d) => d.setValue), i = G((d) => d.setVisibility), a = G((d) => {
|
|
1008
|
-
var
|
|
1009
|
-
return (
|
|
1015
|
+
var g;
|
|
1016
|
+
return (g = d.data[r]) == null ? void 0 : g.modeSelected;
|
|
1010
1017
|
}), l = G((d) => d.setModeSelected), c = G((d) => {
|
|
1011
|
-
var
|
|
1012
|
-
return (
|
|
1013
|
-
}),
|
|
1018
|
+
var g;
|
|
1019
|
+
return (g = d.data[r]) == null ? void 0 : g.modes;
|
|
1020
|
+
}), m = G((d) => d.setModeInstance);
|
|
1014
1021
|
z(() => {
|
|
1015
1022
|
const d = c[a];
|
|
1016
1023
|
if (d && t) {
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1024
|
+
const g = d.mode;
|
|
1025
|
+
m(r, new g());
|
|
1019
1026
|
}
|
|
1020
|
-
}, [t, r, a, c,
|
|
1027
|
+
}, [t, r, a, c, m]);
|
|
1021
1028
|
const [
|
|
1022
1029
|
p
|
|
1023
1030
|
// , draw
|
|
@@ -1031,12 +1038,12 @@ function Ks({
|
|
|
1031
1038
|
};
|
|
1032
1039
|
};
|
|
1033
1040
|
return [
|
|
1034
|
-
Object.values(
|
|
1041
|
+
Object.values(n).filter((T) => T.type === "mask").map(d)
|
|
1035
1042
|
// , draw
|
|
1036
1043
|
];
|
|
1037
|
-
}, [
|
|
1038
|
-
|
|
1039
|
-
}, [r,
|
|
1044
|
+
}, [n]), y = Q((d) => {
|
|
1045
|
+
s(r, !!d), l(r, d);
|
|
1046
|
+
}, [r, s, l]);
|
|
1040
1047
|
return e({
|
|
1041
1048
|
mapId: r,
|
|
1042
1049
|
enabled: t,
|
|
@@ -1047,9 +1054,9 @@ function Ks({
|
|
|
1047
1054
|
// draw,
|
|
1048
1055
|
},
|
|
1049
1056
|
setValue: Q((d) => o(r, d), [r, o]),
|
|
1050
|
-
setEnabled: Q((d) =>
|
|
1051
|
-
setVisibility: Q((d,
|
|
1052
|
-
setModeSelected:
|
|
1057
|
+
setEnabled: Q((d) => s(r, d), [r, s]),
|
|
1058
|
+
setVisibility: Q((d, g) => i(r, d, g), [r, i]),
|
|
1059
|
+
setModeSelected: y
|
|
1053
1060
|
});
|
|
1054
1061
|
}
|
|
1055
1062
|
function _t({
|
|
@@ -1069,8 +1076,8 @@ function Oe({
|
|
|
1069
1076
|
unit: e,
|
|
1070
1077
|
locale: t,
|
|
1071
1078
|
options: {
|
|
1072
|
-
autoSplitNumber:
|
|
1073
|
-
...
|
|
1079
|
+
autoSplitNumber: s,
|
|
1080
|
+
...n
|
|
1074
1081
|
} = {
|
|
1075
1082
|
autoSplitNumber: nt
|
|
1076
1083
|
}
|
|
@@ -1078,9 +1085,9 @@ function Oe({
|
|
|
1078
1085
|
const o = e === Ie["m-km"], i = e === Ie["ft-mi"], a = o || i;
|
|
1079
1086
|
let l, c;
|
|
1080
1087
|
if (a) {
|
|
1081
|
-
const
|
|
1082
|
-
let p =
|
|
1083
|
-
l =
|
|
1088
|
+
const m = r < (s ?? nt);
|
|
1089
|
+
let p = m ? V.meter : V.kilometer;
|
|
1090
|
+
l = m ? me.meter : me.kilometer, i && (l = m ? me.feet : me.mile, p = m ? V.feet : V.mile), c = st(r, p);
|
|
1084
1091
|
} else
|
|
1085
1092
|
l = me[e], c = st(r, e);
|
|
1086
1093
|
return `${bt(c, t, {
|
|
@@ -1090,7 +1097,7 @@ function Oe({
|
|
|
1090
1097
|
notation: "standard",
|
|
1091
1098
|
minimumFractionDigits: 2,
|
|
1092
1099
|
maximumFractionDigits: 2,
|
|
1093
|
-
...
|
|
1100
|
+
...n
|
|
1094
1101
|
})}`;
|
|
1095
1102
|
}
|
|
1096
1103
|
function Qr(r, {
|
|
@@ -1106,15 +1113,15 @@ function Qr(r, {
|
|
|
1106
1113
|
function Mt(r, e, t) {
|
|
1107
1114
|
if (r > 0) {
|
|
1108
1115
|
const {
|
|
1109
|
-
formatTooltip:
|
|
1110
|
-
turfOptions:
|
|
1116
|
+
formatTooltip: s,
|
|
1117
|
+
turfOptions: n
|
|
1111
1118
|
} = t ?? {
|
|
1112
1119
|
turfOptions: {
|
|
1113
1120
|
units: "kilometers"
|
|
1114
1121
|
}
|
|
1115
|
-
}, o =
|
|
1122
|
+
}, o = n == null ? void 0 : n.units;
|
|
1116
1123
|
let i;
|
|
1117
|
-
|
|
1124
|
+
s ? i = s(r) : i = `${parseFloat(r.toString()).toFixed(2)} ${o}`;
|
|
1118
1125
|
const {
|
|
1119
1126
|
measurementCallback: a
|
|
1120
1127
|
} = t;
|
|
@@ -1136,35 +1143,35 @@ class Ys extends Zt {
|
|
|
1136
1143
|
features: []
|
|
1137
1144
|
});
|
|
1138
1145
|
}
|
|
1139
|
-
handleClick(t,
|
|
1146
|
+
handleClick(t, s) {
|
|
1140
1147
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
1141
1148
|
const {
|
|
1142
|
-
picks:
|
|
1143
|
-
} = t, o = Yt(
|
|
1149
|
+
picks: n
|
|
1150
|
+
} = t, o = Yt(n), i = this.getClickSequence();
|
|
1144
1151
|
let a = !1;
|
|
1145
|
-
!o && !this.allowOverlapping(
|
|
1152
|
+
!o && !this.allowOverlapping(s) && (this.addClickSequence(t), a = !0), this.area = Ye({
|
|
1146
1153
|
type: "Polygon",
|
|
1147
1154
|
coordinates: [this.getClickSequence()]
|
|
1148
|
-
}), this.isFinalizedEdition(i, o) ? this.finalizeEdition(
|
|
1155
|
+
}), this.isFinalizedEdition(i, o) ? this.finalizeEdition(s) : a && s.onEdit({
|
|
1149
1156
|
// data is the same
|
|
1150
|
-
updatedData:
|
|
1157
|
+
updatedData: s.data,
|
|
1151
1158
|
editType: "addTentativePosition",
|
|
1152
1159
|
editContext: {
|
|
1153
1160
|
position: t.mapCoords
|
|
1154
1161
|
}
|
|
1155
1162
|
});
|
|
1156
1163
|
}
|
|
1157
|
-
handleKeyUp(t,
|
|
1158
|
-
t.key === "Enter" ? this.getClickSequence().length > 2 ? this.finalizeEdition(
|
|
1164
|
+
handleKeyUp(t, s) {
|
|
1165
|
+
t.key === "Enter" ? this.getClickSequence().length > 2 ? this.finalizeEdition(s) : this.resetEdition(s) : t.key === "Escape" && this.resetEdition(s);
|
|
1159
1166
|
}
|
|
1160
|
-
handlePointerMove(t,
|
|
1167
|
+
handlePointerMove(t, s) {
|
|
1161
1168
|
if (this._isMeasuringSessionFinished)
|
|
1162
1169
|
return;
|
|
1163
|
-
super.handlePointerMove(t,
|
|
1164
|
-
const
|
|
1165
|
-
if (
|
|
1166
|
-
const o = rs(
|
|
1167
|
-
this.area = Ye(
|
|
1170
|
+
super.handlePointerMove(t, s);
|
|
1171
|
+
const n = this.getTentativeGuide(s);
|
|
1172
|
+
if (n && n.geometry.type === "Polygon") {
|
|
1173
|
+
const o = rs(n);
|
|
1174
|
+
this.area = Ye(n), this.tooltips = Mt(this.area, o.geometry.coordinates, s.modeConfig);
|
|
1168
1175
|
}
|
|
1169
1176
|
}
|
|
1170
1177
|
resetClickSequence() {
|
|
@@ -1176,41 +1183,41 @@ class Ys extends Zt {
|
|
|
1176
1183
|
getTooltips() {
|
|
1177
1184
|
return this.tooltips;
|
|
1178
1185
|
}
|
|
1179
|
-
isFinalizedEdition(t,
|
|
1186
|
+
isFinalizedEdition(t, s) {
|
|
1180
1187
|
const {
|
|
1181
|
-
positionIndexes:
|
|
1182
|
-
} = (
|
|
1188
|
+
positionIndexes: n
|
|
1189
|
+
} = (s == null ? void 0 : s.properties) ?? {
|
|
1183
1190
|
positionIndexes: []
|
|
1184
1191
|
};
|
|
1185
|
-
return t.length > 2 &&
|
|
1192
|
+
return t.length > 2 && s !== void 0 && (n[0] === 0 || n[0] === t.length - 1);
|
|
1186
1193
|
}
|
|
1187
1194
|
allowOverlapping(t) {
|
|
1188
1195
|
var o;
|
|
1189
|
-
let
|
|
1190
|
-
const
|
|
1191
|
-
if (
|
|
1196
|
+
let s = !1;
|
|
1197
|
+
const n = this.getClickSequence();
|
|
1198
|
+
if (n.length > 2 && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
1192
1199
|
((o = t.modeConfig) != null && o.preventOverlappingLines)) {
|
|
1193
1200
|
const i = {
|
|
1194
1201
|
type: "LineString",
|
|
1195
|
-
coordinates: [...
|
|
1202
|
+
coordinates: [...n, n[0]]
|
|
1196
1203
|
}, a = {
|
|
1197
1204
|
type: "LineString",
|
|
1198
|
-
coordinates: [...
|
|
1205
|
+
coordinates: [...n.slice(0, n.length - 1)]
|
|
1199
1206
|
};
|
|
1200
|
-
os(i, a).features.length > 0 && (
|
|
1207
|
+
os(i, a).features.length > 0 && (s = !0);
|
|
1201
1208
|
}
|
|
1202
|
-
return
|
|
1209
|
+
return s;
|
|
1203
1210
|
}
|
|
1204
1211
|
finalizeEdition(t) {
|
|
1205
|
-
const
|
|
1212
|
+
const s = this.getClickSequence(), n = {
|
|
1206
1213
|
type: "Polygon",
|
|
1207
|
-
coordinates: [[...
|
|
1214
|
+
coordinates: [[...s, s[0]]]
|
|
1208
1215
|
};
|
|
1209
1216
|
t.selectedIndexes = [], t.data = {
|
|
1210
1217
|
type: "FeatureCollection",
|
|
1211
1218
|
features: []
|
|
1212
1219
|
};
|
|
1213
|
-
const o = this.getAddFeatureOrBooleanPolygonAction(
|
|
1220
|
+
const o = this.getAddFeatureOrBooleanPolygonAction(n, t);
|
|
1214
1221
|
this._isMeasuringSessionFinished = !0, o && (this.resultPolygon = o.updatedData, t.onEdit({
|
|
1215
1222
|
...o,
|
|
1216
1223
|
editType: Y.addPosition,
|
|
@@ -1232,14 +1239,14 @@ class Ys extends Zt {
|
|
|
1232
1239
|
}
|
|
1233
1240
|
getTooltipText({
|
|
1234
1241
|
meters: t,
|
|
1235
|
-
locale:
|
|
1236
|
-
unit:
|
|
1242
|
+
locale: s,
|
|
1243
|
+
unit: n,
|
|
1237
1244
|
options: o
|
|
1238
1245
|
}) {
|
|
1239
1246
|
return Oe({
|
|
1240
1247
|
meters: t,
|
|
1241
|
-
locale:
|
|
1242
|
-
unit:
|
|
1248
|
+
locale: s,
|
|
1249
|
+
unit: n,
|
|
1243
1250
|
options: o
|
|
1244
1251
|
}) + "2";
|
|
1245
1252
|
}
|
|
@@ -1255,37 +1262,37 @@ class Xs extends yt {
|
|
|
1255
1262
|
});
|
|
1256
1263
|
ee(this, "tooltips", []);
|
|
1257
1264
|
}
|
|
1258
|
-
handleClick(t,
|
|
1259
|
-
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(t,
|
|
1265
|
+
handleClick(t, s) {
|
|
1266
|
+
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(t, s);
|
|
1260
1267
|
}
|
|
1261
|
-
handlePointerMove(t,
|
|
1262
|
-
this._isMeasuringSessionFinished || (super.handlePointerMove(t,
|
|
1268
|
+
handlePointerMove(t, s) {
|
|
1269
|
+
this._isMeasuringSessionFinished || (super.handlePointerMove(t, s), this.tooltips = Mt(this.areaCircle, this.position, s.modeConfig));
|
|
1263
1270
|
}
|
|
1264
1271
|
checkAndFinishPolygon(t) {
|
|
1265
|
-
const
|
|
1266
|
-
this.isFinalizedEdition(
|
|
1272
|
+
const s = this.getClickSequence(), n = this.getTentativeGuide(t);
|
|
1273
|
+
this.isFinalizedEdition(s, n) && this.finalizeEdition(t);
|
|
1267
1274
|
}
|
|
1268
|
-
handleKeyUp(t,
|
|
1269
|
-
t.key === "Enter" ? this.finalizeEdition(
|
|
1275
|
+
handleKeyUp(t, s) {
|
|
1276
|
+
t.key === "Enter" ? this.finalizeEdition(s) : t.key === "Escape" && this.resetEdition(s);
|
|
1270
1277
|
}
|
|
1271
1278
|
getGuides(t) {
|
|
1272
1279
|
return this._isMeasuringSessionFinished ? this.resultPolygon : super.getGuides(t);
|
|
1273
1280
|
}
|
|
1274
|
-
isFinalizedEdition(t,
|
|
1275
|
-
return t.length > 1 &&
|
|
1281
|
+
isFinalizedEdition(t, s) {
|
|
1282
|
+
return t.length > 1 && s && s.geometry.type === "Polygon";
|
|
1276
1283
|
}
|
|
1277
1284
|
finalizeEdition(t) {
|
|
1278
|
-
const
|
|
1285
|
+
const s = this.getTentativeGuide(t);
|
|
1279
1286
|
t.selectedIndexes = [], t.data = {
|
|
1280
1287
|
type: "FeatureCollection",
|
|
1281
1288
|
features: []
|
|
1282
1289
|
};
|
|
1283
|
-
const
|
|
1284
|
-
this._isMeasuringSessionFinished = !0, t.onUpdateCursor("cell"),
|
|
1285
|
-
...
|
|
1290
|
+
const n = this.getAddFeatureOrBooleanPolygonAction(s, t);
|
|
1291
|
+
this._isMeasuringSessionFinished = !0, t.onUpdateCursor("cell"), n && (this.resultPolygon = n.updatedData, t.onEdit({
|
|
1292
|
+
...n,
|
|
1286
1293
|
editType: Y.addPosition,
|
|
1287
1294
|
editContext: {
|
|
1288
|
-
...
|
|
1295
|
+
...n.editContext,
|
|
1289
1296
|
distance: this._currentArea,
|
|
1290
1297
|
positions: this.getClickSequence(),
|
|
1291
1298
|
finished: this._isMeasuringSessionFinished
|
|
@@ -1308,14 +1315,14 @@ class Xs extends yt {
|
|
|
1308
1315
|
}
|
|
1309
1316
|
getTooltipText({
|
|
1310
1317
|
meters: t,
|
|
1311
|
-
locale:
|
|
1312
|
-
unit:
|
|
1318
|
+
locale: s,
|
|
1319
|
+
unit: n,
|
|
1313
1320
|
options: o
|
|
1314
1321
|
}) {
|
|
1315
1322
|
return Oe({
|
|
1316
1323
|
meters: t,
|
|
1317
|
-
locale:
|
|
1318
|
-
unit:
|
|
1324
|
+
locale: s,
|
|
1325
|
+
unit: n,
|
|
1319
1326
|
options: o
|
|
1320
1327
|
}) + "2";
|
|
1321
1328
|
}
|
|
@@ -1337,10 +1344,10 @@ class Pt extends Xt {
|
|
|
1337
1344
|
if (this._isMeasuringSessionFinished) return;
|
|
1338
1345
|
e.stopPropagation();
|
|
1339
1346
|
const {
|
|
1340
|
-
key:
|
|
1341
|
-
} = e,
|
|
1347
|
+
key: s
|
|
1348
|
+
} = e, n = this.getClickSequence().length;
|
|
1342
1349
|
let o = Y.finish;
|
|
1343
|
-
switch (
|
|
1350
|
+
switch (s) {
|
|
1344
1351
|
case "Escape":
|
|
1345
1352
|
t.onEdit({
|
|
1346
1353
|
updatedData: {
|
|
@@ -1352,7 +1359,7 @@ class Pt extends Xt {
|
|
|
1352
1359
|
});
|
|
1353
1360
|
break;
|
|
1354
1361
|
case "Enter":
|
|
1355
|
-
this._isMeasuringSessionFinished = !0,
|
|
1362
|
+
this._isMeasuringSessionFinished = !0, n === 1 && (this.resetClickSequence(), o = Y.cancel), t.onUpdateCursor("cell"), t.onEdit({
|
|
1356
1363
|
updatedData: t.data,
|
|
1357
1364
|
editType: o,
|
|
1358
1365
|
editContext: {
|
|
@@ -1368,14 +1375,14 @@ class Pt extends Xt {
|
|
|
1368
1375
|
getTooltipText({
|
|
1369
1376
|
meters: e,
|
|
1370
1377
|
locale: t,
|
|
1371
|
-
unit:
|
|
1372
|
-
options:
|
|
1378
|
+
unit: s,
|
|
1379
|
+
options: n
|
|
1373
1380
|
}) {
|
|
1374
1381
|
return Oe({
|
|
1375
1382
|
meters: e,
|
|
1376
1383
|
locale: t,
|
|
1377
|
-
unit:
|
|
1378
|
-
options:
|
|
1384
|
+
unit: s,
|
|
1385
|
+
options: n
|
|
1379
1386
|
});
|
|
1380
1387
|
}
|
|
1381
1388
|
}
|
|
@@ -1506,35 +1513,35 @@ const ne = "mapMeasureLayer", Js = {
|
|
|
1506
1513
|
function Lt(r) {
|
|
1507
1514
|
const e = D(12), {
|
|
1508
1515
|
mapId: t,
|
|
1509
|
-
layerId:
|
|
1516
|
+
layerId: s
|
|
1510
1517
|
} = r;
|
|
1511
|
-
let
|
|
1512
|
-
e[0] !== t ? (
|
|
1513
|
-
var
|
|
1514
|
-
return (
|
|
1515
|
-
}, e[0] = t, e[1] =
|
|
1516
|
-
const o = $(
|
|
1518
|
+
let n;
|
|
1519
|
+
e[0] !== t ? (n = (g) => {
|
|
1520
|
+
var h;
|
|
1521
|
+
return (h = g.maps[t]) == null ? void 0 : h.basemap;
|
|
1522
|
+
}, e[0] = t, e[1] = n) : n = e[1];
|
|
1523
|
+
const o = $(n);
|
|
1517
1524
|
let i;
|
|
1518
|
-
e[2] !== t ? (i = (
|
|
1519
|
-
var
|
|
1520
|
-
return (
|
|
1525
|
+
e[2] !== t ? (i = (g) => {
|
|
1526
|
+
var h;
|
|
1527
|
+
return (h = g.maps[t]) == null ? void 0 : h.isLoaded;
|
|
1521
1528
|
}, e[2] = t, e[3] = i) : i = e[3];
|
|
1522
1529
|
const a = $(i), l = $(on), c = pe(rn), {
|
|
1523
|
-
type:
|
|
1524
|
-
} = ye[o], p =
|
|
1525
|
-
let
|
|
1526
|
-
e[4] !== l || e[5] !== p || e[6] !== a || e[7] !==
|
|
1527
|
-
let
|
|
1530
|
+
type: m
|
|
1531
|
+
} = ye[o], p = m === te.googleMaps;
|
|
1532
|
+
let y, d;
|
|
1533
|
+
e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (y = () => {
|
|
1534
|
+
let g = null;
|
|
1528
1535
|
if (p && a) {
|
|
1529
|
-
const
|
|
1530
|
-
|
|
1536
|
+
const h = l(t);
|
|
1537
|
+
g = new ss(h.getDiv(), {});
|
|
1531
1538
|
}
|
|
1532
|
-
c(
|
|
1539
|
+
c(s, {
|
|
1533
1540
|
props: {
|
|
1534
|
-
eventManager:
|
|
1541
|
+
eventManager: g
|
|
1535
1542
|
}
|
|
1536
1543
|
});
|
|
1537
|
-
}, d = [l, p, a,
|
|
1544
|
+
}, d = [l, p, a, s, t, c], e[4] = l, e[5] = p, e[6] = a, e[7] = s, e[8] = t, e[9] = c, e[10] = y, e[11] = d) : (y = e[10], d = e[11]), z(y, d);
|
|
1538
1545
|
}
|
|
1539
1546
|
function rn(r) {
|
|
1540
1547
|
return r.setLayer;
|
|
@@ -1548,12 +1555,12 @@ function ln({
|
|
|
1548
1555
|
mapId: e,
|
|
1549
1556
|
defaultProps: {
|
|
1550
1557
|
styles: t = Ue.styles,
|
|
1551
|
-
labels:
|
|
1558
|
+
labels: s
|
|
1552
1559
|
} = {
|
|
1553
1560
|
styles: Ue.styles,
|
|
1554
1561
|
labels: Ue.labels
|
|
1555
1562
|
},
|
|
1556
|
-
layerProps:
|
|
1563
|
+
layerProps: n = {},
|
|
1557
1564
|
defaultType: o = "mask"
|
|
1558
1565
|
}) {
|
|
1559
1566
|
const i = G((M) => {
|
|
@@ -1562,13 +1569,13 @@ function ln({
|
|
|
1562
1569
|
}), a = G((M) => M.setEnabled), l = G((M) => {
|
|
1563
1570
|
var F;
|
|
1564
1571
|
return (F = M.data[e]) == null ? void 0 : F.values;
|
|
1565
|
-
}), c = G((M) => M.setValue),
|
|
1572
|
+
}), c = G((M) => M.setValue), m = G((M) => {
|
|
1566
1573
|
var F;
|
|
1567
1574
|
return (F = M.data[e]) == null ? void 0 : F.modeInstance;
|
|
1568
1575
|
}), p = G((M) => {
|
|
1569
1576
|
var F;
|
|
1570
1577
|
return (F = M.data[e]) == null ? void 0 : F.modeSelected;
|
|
1571
|
-
}),
|
|
1578
|
+
}), y = pe((M) => M.setLayer), d = $((M) => M.addLayers), g = $((M) => M.removeLayers), h = $(ht((M) => {
|
|
1572
1579
|
var F;
|
|
1573
1580
|
return (F = M.maps[e]) == null ? void 0 : F.layers.filter((u) => !an.includes(u));
|
|
1574
1581
|
})), T = $((M) => M.getDeckInstance), f = Me({});
|
|
@@ -1601,8 +1608,8 @@ function ln({
|
|
|
1601
1608
|
}, [C]);
|
|
1602
1609
|
const j = Me(b.length);
|
|
1603
1610
|
z(() => (d(e, [ce]), () => {
|
|
1604
|
-
|
|
1605
|
-
}), [d, e,
|
|
1611
|
+
g(e, [ce]);
|
|
1612
|
+
}), [d, e, g]);
|
|
1606
1613
|
const B = Q(() => {
|
|
1607
1614
|
C(), U([]), a(e, !1);
|
|
1608
1615
|
}, [e, C, a]), x = Q(({
|
|
@@ -1615,7 +1622,7 @@ function ln({
|
|
|
1615
1622
|
}
|
|
1616
1623
|
_(F), M !== Y.updateTentativeFeature && M === Y.addFeature && (p !== "edit" && (j.current = j.current + 1), F.features.forEach((u, v) => {
|
|
1617
1624
|
var A;
|
|
1618
|
-
(A = u.properties).label ?? (A.label = `${
|
|
1625
|
+
(A = u.properties).label ?? (A.label = `${s == null ? void 0 : s.mask} ${j.current}`), u.properties.index = v, u.properties.visible = u.properties.visible ?? !0;
|
|
1619
1626
|
const P = u.id ?? crypto.randomUUID();
|
|
1620
1627
|
c(e, P, {
|
|
1621
1628
|
geometry: u.geometry,
|
|
@@ -1624,7 +1631,7 @@ function ln({
|
|
|
1624
1631
|
type: o
|
|
1625
1632
|
});
|
|
1626
1633
|
}), B());
|
|
1627
|
-
}, [o, B,
|
|
1634
|
+
}, [o, B, s == null ? void 0 : s.mask, e, p, c]);
|
|
1628
1635
|
return z(() => {
|
|
1629
1636
|
const M = i, {
|
|
1630
1637
|
border: F,
|
|
@@ -1635,7 +1642,7 @@ function ln({
|
|
|
1635
1642
|
fill: A
|
|
1636
1643
|
} = t.colors.finished, L = Gs({
|
|
1637
1644
|
layerProps: {
|
|
1638
|
-
...
|
|
1645
|
+
...n.mask,
|
|
1639
1646
|
pickable: M,
|
|
1640
1647
|
data: w,
|
|
1641
1648
|
selectedFeatureIndexes: k,
|
|
@@ -1654,10 +1661,10 @@ function ln({
|
|
|
1654
1661
|
outline: F
|
|
1655
1662
|
},
|
|
1656
1663
|
onEdit: x,
|
|
1657
|
-
mode: M ?
|
|
1664
|
+
mode: M ? m : new Jt()
|
|
1658
1665
|
});
|
|
1659
|
-
|
|
1660
|
-
}, [w, i,
|
|
1666
|
+
y(ce, L);
|
|
1667
|
+
}, [w, i, n.mask, E, m, x, k, y, t.colors.editing, t.colors.finished]), z(() => {
|
|
1661
1668
|
const M = {
|
|
1662
1669
|
...Te,
|
|
1663
1670
|
data: S,
|
|
@@ -1666,19 +1673,19 @@ function ln({
|
|
|
1666
1673
|
getFilterValue: E
|
|
1667
1674
|
}
|
|
1668
1675
|
};
|
|
1669
|
-
return
|
|
1676
|
+
return y(Te.id, {
|
|
1670
1677
|
type: ns,
|
|
1671
1678
|
props: M
|
|
1672
1679
|
}), d(e, [Te.id]), () => {
|
|
1673
|
-
|
|
1680
|
+
g(e, [Te.id]);
|
|
1674
1681
|
};
|
|
1675
|
-
}, [d, e, S, E,
|
|
1676
|
-
|
|
1682
|
+
}, [d, e, S, E, g, y]), z(() => {
|
|
1683
|
+
h == null || h.forEach((M) => {
|
|
1677
1684
|
var v;
|
|
1678
1685
|
const F = (v = T(e)) == null ? void 0 : v.props.layers.find((P) => P.props.id === M);
|
|
1679
1686
|
i && (f.current[M] = F == null ? void 0 : F.props.pickable);
|
|
1680
1687
|
const u = !i && (f.current[M] ?? (F == null ? void 0 : F.props.pickable));
|
|
1681
|
-
|
|
1688
|
+
y(M, {
|
|
1682
1689
|
props: {
|
|
1683
1690
|
pickable: u,
|
|
1684
1691
|
extensions: [new ts()],
|
|
@@ -1686,7 +1693,7 @@ function ln({
|
|
|
1686
1693
|
}
|
|
1687
1694
|
});
|
|
1688
1695
|
});
|
|
1689
|
-
}, [i, T, e,
|
|
1696
|
+
}, [i, T, e, h, E.length, y]), r;
|
|
1690
1697
|
}
|
|
1691
1698
|
ln.Controls = Ks;
|
|
1692
1699
|
function cn({
|
|
@@ -1710,24 +1717,24 @@ function un({
|
|
|
1710
1717
|
mode: r,
|
|
1711
1718
|
layerProps: e,
|
|
1712
1719
|
locale: t,
|
|
1713
|
-
enabled:
|
|
1714
|
-
unit:
|
|
1720
|
+
enabled: s,
|
|
1721
|
+
unit: n,
|
|
1715
1722
|
onEdit: o,
|
|
1716
1723
|
guideColor: i,
|
|
1717
1724
|
pointColor: a,
|
|
1718
1725
|
textOptions: l
|
|
1719
1726
|
}) {
|
|
1720
1727
|
const c = ue(e, {
|
|
1721
|
-
visible:
|
|
1722
|
-
pickable:
|
|
1728
|
+
visible: s,
|
|
1729
|
+
pickable: s,
|
|
1723
1730
|
modeConfig: {
|
|
1724
1731
|
// We force distance due to conversion is addressed at feature getText level
|
|
1725
|
-
formatTooltip: (
|
|
1732
|
+
formatTooltip: (y) => y,
|
|
1726
1733
|
turfOptions: {
|
|
1727
1734
|
units: en.meters
|
|
1728
1735
|
}
|
|
1729
1736
|
},
|
|
1730
|
-
...
|
|
1737
|
+
...s && {
|
|
1731
1738
|
onEdit: o
|
|
1732
1739
|
},
|
|
1733
1740
|
_subLayerProps: {
|
|
@@ -1739,21 +1746,21 @@ function un({
|
|
|
1739
1746
|
// needed for the outlineWidth and outlineColor attributes to be effective
|
|
1740
1747
|
smoothing: 0.2
|
|
1741
1748
|
},
|
|
1742
|
-
getText: (
|
|
1749
|
+
getText: (y) => {
|
|
1743
1750
|
var d;
|
|
1744
1751
|
return (d = r == null ? void 0 : r.getTooltipText) == null ? void 0 : d.call(r, {
|
|
1745
|
-
meters:
|
|
1752
|
+
meters: y.text,
|
|
1746
1753
|
locale: t,
|
|
1747
|
-
unit:
|
|
1754
|
+
unit: n,
|
|
1748
1755
|
options: l
|
|
1749
1756
|
});
|
|
1750
1757
|
},
|
|
1751
1758
|
updateTriggers: {
|
|
1752
|
-
getText: [
|
|
1759
|
+
getText: [n, t, l]
|
|
1753
1760
|
}
|
|
1754
1761
|
}
|
|
1755
1762
|
}
|
|
1756
|
-
}),
|
|
1763
|
+
}), m = ue(Js, {
|
|
1757
1764
|
_subLayerProps: {
|
|
1758
1765
|
guides: {
|
|
1759
1766
|
getLineColor: i,
|
|
@@ -1763,121 +1770,121 @@ function un({
|
|
|
1763
1770
|
getEditHandlePointColor: a,
|
|
1764
1771
|
getEditHandlePointOutlineColor: i
|
|
1765
1772
|
});
|
|
1766
|
-
return ue(
|
|
1773
|
+
return ue(m, c);
|
|
1767
1774
|
}
|
|
1768
1775
|
const dn = (r) => ze()((e) => ({
|
|
1769
|
-
measurements: r.reduce((
|
|
1776
|
+
measurements: r.reduce((s, n) => {
|
|
1770
1777
|
const {
|
|
1771
1778
|
mapId: o,
|
|
1772
1779
|
modeSelected: i,
|
|
1773
1780
|
modes: a = sn,
|
|
1774
1781
|
units: l = nn,
|
|
1775
1782
|
distance: c = 0,
|
|
1776
|
-
finished:
|
|
1783
|
+
finished: m = !1,
|
|
1777
1784
|
locale: p = "en",
|
|
1778
|
-
positions:
|
|
1785
|
+
positions: y = [],
|
|
1779
1786
|
clearLayerOnStart: d = !1,
|
|
1780
|
-
unit:
|
|
1781
|
-
enabled:
|
|
1782
|
-
} =
|
|
1783
|
-
return
|
|
1787
|
+
unit: g = Ie["m-km"],
|
|
1788
|
+
enabled: h = !1
|
|
1789
|
+
} = n;
|
|
1790
|
+
return s[o] = {
|
|
1784
1791
|
modes: a,
|
|
1785
1792
|
units: l,
|
|
1786
1793
|
modeSelected: i,
|
|
1787
1794
|
distance: c,
|
|
1788
|
-
finished:
|
|
1795
|
+
finished: m,
|
|
1789
1796
|
locale: p,
|
|
1790
|
-
positions:
|
|
1791
|
-
unit:
|
|
1797
|
+
positions: y,
|
|
1798
|
+
unit: g,
|
|
1792
1799
|
clearLayerOnStart: d,
|
|
1793
|
-
enabled:
|
|
1794
|
-
},
|
|
1800
|
+
enabled: h
|
|
1801
|
+
}, s;
|
|
1795
1802
|
}, {}),
|
|
1796
1803
|
mode: Pt,
|
|
1797
|
-
setModeInstance: (
|
|
1804
|
+
setModeInstance: (s, n) => {
|
|
1798
1805
|
e((o) => ({
|
|
1799
1806
|
measurements: {
|
|
1800
1807
|
...o.measurements,
|
|
1801
|
-
[
|
|
1802
|
-
...o.measurements[
|
|
1803
|
-
modeInstance:
|
|
1808
|
+
[s]: {
|
|
1809
|
+
...o.measurements[s],
|
|
1810
|
+
modeInstance: n
|
|
1804
1811
|
}
|
|
1805
1812
|
}
|
|
1806
1813
|
}));
|
|
1807
1814
|
},
|
|
1808
|
-
setModeSelected: (
|
|
1815
|
+
setModeSelected: (s, n) => {
|
|
1809
1816
|
e((o) => ({
|
|
1810
1817
|
measurements: {
|
|
1811
1818
|
...o.measurements,
|
|
1812
|
-
[
|
|
1813
|
-
...o.measurements[
|
|
1814
|
-
modeSelected:
|
|
1819
|
+
[s]: {
|
|
1820
|
+
...o.measurements[s],
|
|
1821
|
+
modeSelected: n
|
|
1815
1822
|
}
|
|
1816
1823
|
}
|
|
1817
1824
|
}));
|
|
1818
1825
|
},
|
|
1819
|
-
setFinished: (
|
|
1826
|
+
setFinished: (s, n) => {
|
|
1820
1827
|
e((o) => ({
|
|
1821
1828
|
measurements: {
|
|
1822
1829
|
...o.measurements,
|
|
1823
|
-
[
|
|
1824
|
-
...o.measurements[
|
|
1825
|
-
finished:
|
|
1830
|
+
[s]: {
|
|
1831
|
+
...o.measurements[s],
|
|
1832
|
+
finished: n
|
|
1826
1833
|
}
|
|
1827
1834
|
}
|
|
1828
1835
|
}));
|
|
1829
1836
|
},
|
|
1830
|
-
setDistance: (
|
|
1837
|
+
setDistance: (s, n) => {
|
|
1831
1838
|
e((o) => ({
|
|
1832
1839
|
measurements: {
|
|
1833
1840
|
...o.measurements,
|
|
1834
|
-
[
|
|
1835
|
-
...o.measurements[
|
|
1836
|
-
distance:
|
|
1841
|
+
[s]: {
|
|
1842
|
+
...o.measurements[s],
|
|
1843
|
+
distance: n
|
|
1837
1844
|
}
|
|
1838
1845
|
}
|
|
1839
1846
|
}));
|
|
1840
1847
|
},
|
|
1841
|
-
setUnit: (
|
|
1848
|
+
setUnit: (s, n) => {
|
|
1842
1849
|
e((o) => ({
|
|
1843
1850
|
measurements: {
|
|
1844
1851
|
...o.measurements,
|
|
1845
|
-
[
|
|
1846
|
-
...o.measurements[
|
|
1847
|
-
unit:
|
|
1852
|
+
[s]: {
|
|
1853
|
+
...o.measurements[s],
|
|
1854
|
+
unit: n
|
|
1848
1855
|
}
|
|
1849
1856
|
}
|
|
1850
1857
|
}));
|
|
1851
1858
|
},
|
|
1852
|
-
setLocale: (
|
|
1859
|
+
setLocale: (s, n) => {
|
|
1853
1860
|
e((o) => ({
|
|
1854
1861
|
measurements: {
|
|
1855
1862
|
...o.measurements,
|
|
1856
|
-
[
|
|
1857
|
-
...o.measurements[
|
|
1858
|
-
locale:
|
|
1863
|
+
[s]: {
|
|
1864
|
+
...o.measurements[s],
|
|
1865
|
+
locale: n
|
|
1859
1866
|
}
|
|
1860
1867
|
}
|
|
1861
1868
|
}));
|
|
1862
1869
|
},
|
|
1863
|
-
setPositions: (
|
|
1870
|
+
setPositions: (s, n) => {
|
|
1864
1871
|
e((o) => ({
|
|
1865
1872
|
measurements: {
|
|
1866
1873
|
...o.measurements,
|
|
1867
|
-
[
|
|
1868
|
-
...o.measurements[
|
|
1869
|
-
positions: [...
|
|
1874
|
+
[s]: {
|
|
1875
|
+
...o.measurements[s],
|
|
1876
|
+
positions: [...n]
|
|
1870
1877
|
}
|
|
1871
1878
|
}
|
|
1872
1879
|
}));
|
|
1873
1880
|
},
|
|
1874
|
-
setEnabled: (
|
|
1881
|
+
setEnabled: (s, n) => {
|
|
1875
1882
|
e((o) => ({
|
|
1876
1883
|
measurements: {
|
|
1877
1884
|
...o.measurements,
|
|
1878
|
-
[
|
|
1879
|
-
...o.measurements[
|
|
1880
|
-
enabled:
|
|
1885
|
+
[s]: {
|
|
1886
|
+
...o.measurements[s],
|
|
1887
|
+
enabled: n
|
|
1881
1888
|
}
|
|
1882
1889
|
}
|
|
1883
1890
|
}));
|
|
@@ -1886,11 +1893,11 @@ const dn = (r) => ze()((e) => ({
|
|
|
1886
1893
|
function fn(r) {
|
|
1887
1894
|
const e = D(5), {
|
|
1888
1895
|
children: t,
|
|
1889
|
-
values:
|
|
1896
|
+
values: s
|
|
1890
1897
|
} = r;
|
|
1891
|
-
let
|
|
1892
|
-
e[0] !==
|
|
1893
|
-
const [o] = oe(
|
|
1898
|
+
let n;
|
|
1899
|
+
e[0] !== s ? (n = dn(s), e[0] = s, e[1] = n) : n = e[1];
|
|
1900
|
+
const [o] = oe(n);
|
|
1894
1901
|
let i;
|
|
1895
1902
|
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(Ot.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1896
1903
|
}
|
|
@@ -1904,24 +1911,24 @@ function Ft(r) {
|
|
|
1904
1911
|
const e = D(74), {
|
|
1905
1912
|
mapId: t
|
|
1906
1913
|
} = r;
|
|
1907
|
-
let
|
|
1908
|
-
e[0] !== t ? (
|
|
1909
|
-
const
|
|
1914
|
+
let s;
|
|
1915
|
+
e[0] !== t ? (s = (R) => R.measurements[t].modes, e[0] = t, e[1] = s) : s = e[1];
|
|
1916
|
+
const n = I(s);
|
|
1910
1917
|
let o;
|
|
1911
1918
|
e[2] !== t ? (o = (R) => R.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
|
|
1912
1919
|
const i = I(o);
|
|
1913
1920
|
let a;
|
|
1914
1921
|
e[4] !== t ? (a = (R) => R.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1915
1922
|
const l = I(a), c = I(Sn);
|
|
1916
|
-
let g;
|
|
1917
|
-
e[6] !== c || e[7] !== t ? (g = (R) => c(t, R), e[6] = c, e[7] = t, e[8] = g) : g = e[8];
|
|
1918
|
-
const p = g;
|
|
1919
1923
|
let m;
|
|
1920
|
-
e[
|
|
1921
|
-
const
|
|
1922
|
-
let
|
|
1923
|
-
e[
|
|
1924
|
-
const
|
|
1924
|
+
e[6] !== c || e[7] !== t ? (m = (R) => c(t, R), e[6] = c, e[7] = t, e[8] = m) : m = e[8];
|
|
1925
|
+
const p = m;
|
|
1926
|
+
let y;
|
|
1927
|
+
e[9] !== t ? (y = (R) => R.measurements[t].clearLayerOnStart, e[9] = t, e[10] = y) : y = e[10];
|
|
1928
|
+
const d = I(y);
|
|
1929
|
+
let g;
|
|
1930
|
+
e[11] !== t ? (g = (R) => R.measurements[t].enabled, e[11] = t, e[12] = g) : g = e[12];
|
|
1931
|
+
const h = I(g), T = I(vn);
|
|
1925
1932
|
let f;
|
|
1926
1933
|
e[13] !== T || e[14] !== t ? (f = (R) => T(t, R), e[13] = T, e[14] = t, e[15] = f) : f = e[15];
|
|
1927
1934
|
const b = f;
|
|
@@ -1974,13 +1981,13 @@ function Ft(r) {
|
|
|
1974
1981
|
}, e[50] = b, e[51] = Se) : Se = e[51];
|
|
1975
1982
|
const De = Se;
|
|
1976
1983
|
let we;
|
|
1977
|
-
return e[52] !== Ce || e[53] !== d || e[54] !== l || e[55] !==
|
|
1978
|
-
modes:
|
|
1984
|
+
return e[52] !== Ce || e[53] !== d || e[54] !== l || e[55] !== h || e[56] !== C || e[57] !== F || e[58] !== L || e[59] !== E || e[60] !== n || e[61] !== q || e[62] !== p || e[63] !== b || e[64] !== x || e[65] !== P || e[66] !== W || e[67] !== k || e[68] !== fe || e[69] !== Ae || e[70] !== De || e[71] !== Fe || e[72] !== i ? (we = {
|
|
1985
|
+
modes: n,
|
|
1979
1986
|
units: i,
|
|
1980
1987
|
distance: l,
|
|
1981
1988
|
clearLayerOnStart: d,
|
|
1982
1989
|
modeSelected: E,
|
|
1983
|
-
enabled:
|
|
1990
|
+
enabled: h,
|
|
1984
1991
|
finished: C,
|
|
1985
1992
|
locale: F,
|
|
1986
1993
|
modeInstance: L,
|
|
@@ -1996,7 +2003,7 @@ function Ft(r) {
|
|
|
1996
2003
|
toggleLayer: De,
|
|
1997
2004
|
clearLayer: Ce,
|
|
1998
2005
|
setModeInstance: W
|
|
1999
|
-
}, e[52] = Ce, e[53] = d, e[54] = l, e[55] =
|
|
2006
|
+
}, e[52] = Ce, e[53] = d, e[54] = l, e[55] = h, e[56] = C, e[57] = F, e[58] = L, e[59] = E, e[60] = n, e[61] = q, e[62] = p, e[63] = b, e[64] = x, e[65] = P, e[66] = W, e[67] = k, e[68] = fe, e[69] = Ae, e[70] = De, e[71] = Fe, e[72] = i, e[73] = we) : we = e[73], we;
|
|
2000
2007
|
}
|
|
2001
2008
|
function pn(r) {
|
|
2002
2009
|
return r.setUnit;
|
|
@@ -2025,8 +2032,8 @@ function Sn(r) {
|
|
|
2025
2032
|
function wn(r) {
|
|
2026
2033
|
const e = D(42), {
|
|
2027
2034
|
mapId: t,
|
|
2028
|
-
textOptions:
|
|
2029
|
-
children:
|
|
2035
|
+
textOptions: s,
|
|
2036
|
+
children: n
|
|
2030
2037
|
} = r;
|
|
2031
2038
|
let o;
|
|
2032
2039
|
e[0] !== t ? (o = {
|
|
@@ -2037,12 +2044,12 @@ function wn(r) {
|
|
|
2037
2044
|
units: a,
|
|
2038
2045
|
distance: l,
|
|
2039
2046
|
setDistance: c,
|
|
2040
|
-
clearLayerOnStart:
|
|
2047
|
+
clearLayerOnStart: m,
|
|
2041
2048
|
modeSelected: p,
|
|
2042
|
-
setModeSelected:
|
|
2049
|
+
setModeSelected: y,
|
|
2043
2050
|
enabled: d,
|
|
2044
|
-
setEnabled:
|
|
2045
|
-
finished:
|
|
2051
|
+
setEnabled: g,
|
|
2052
|
+
finished: h,
|
|
2046
2053
|
setFinished: T,
|
|
2047
2054
|
locale: f,
|
|
2048
2055
|
setLocale: b,
|
|
@@ -2066,18 +2073,18 @@ function wn(r) {
|
|
|
2066
2073
|
};
|
|
2067
2074
|
}, e[2] = p, e[3] = i, e[4] = E, e[5] = _, e[6] = B) : B = e[6];
|
|
2068
2075
|
let x;
|
|
2069
|
-
e[7] !== p || e[8] !== i || e[9] !==
|
|
2076
|
+
e[7] !== p || e[8] !== i || e[9] !== g || e[10] !== E || e[11] !== _ ? (x = [i, p, _, E, g], e[7] = p, e[8] = i, e[9] = g, e[10] = E, e[11] = _, e[12] = x) : x = e[12], z(B, x);
|
|
2070
2077
|
let M;
|
|
2071
|
-
e[13] !== j || e[14] !== C || e[15] !==
|
|
2072
|
-
P && (
|
|
2073
|
-
}, e[13] = j, e[14] = C, e[15] =
|
|
2074
|
-
const F = M, u = !!
|
|
2078
|
+
e[13] !== j || e[14] !== C || e[15] !== m || e[16] !== h ? (M = (P) => {
|
|
2079
|
+
P && (m || !h) && C(), j(P);
|
|
2080
|
+
}, e[13] = j, e[14] = C, e[15] = m, e[16] = h, e[17] = M) : M = e[17];
|
|
2081
|
+
const F = M, u = !!m;
|
|
2075
2082
|
let v;
|
|
2076
|
-
return e[18] !==
|
|
2083
|
+
return e[18] !== n || e[19] !== C || e[20] !== l || e[21] !== d || e[22] !== h || e[23] !== f || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== w || e[29] !== c || e[30] !== g || e[31] !== T || e[32] !== b || e[33] !== y || e[34] !== _ || e[35] !== U || e[36] !== u || e[37] !== s || e[38] !== F || e[39] !== k || e[40] !== a ? (v = n({
|
|
2077
2084
|
mapId: t,
|
|
2078
2085
|
distance: l,
|
|
2079
2086
|
enabled: d,
|
|
2080
|
-
finished:
|
|
2087
|
+
finished: h,
|
|
2081
2088
|
locale: f,
|
|
2082
2089
|
positions: w,
|
|
2083
2090
|
unit: k,
|
|
@@ -2089,19 +2096,19 @@ function wn(r) {
|
|
|
2089
2096
|
meters: l,
|
|
2090
2097
|
unit: k,
|
|
2091
2098
|
locale: f,
|
|
2092
|
-
options:
|
|
2099
|
+
options: s
|
|
2093
2100
|
}),
|
|
2094
2101
|
modeInstance: S,
|
|
2095
|
-
setModeSelected:
|
|
2102
|
+
setModeSelected: y,
|
|
2096
2103
|
setDistance: c,
|
|
2097
2104
|
setFinished: T,
|
|
2098
2105
|
setLocale: b,
|
|
2099
2106
|
setPositions: _,
|
|
2100
2107
|
setUnit: U,
|
|
2101
|
-
setEnabled:
|
|
2108
|
+
setEnabled: g,
|
|
2102
2109
|
toggleLayer: F,
|
|
2103
2110
|
clearLayer: C
|
|
2104
|
-
}), e[18] =
|
|
2111
|
+
}), e[18] = n, e[19] = C, e[20] = l, e[21] = d, e[22] = h, e[23] = f, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = w, e[29] = c, e[30] = g, e[31] = T, e[32] = b, e[33] = y, e[34] = _, e[35] = U, e[36] = u, e[37] = s, e[38] = F, e[39] = k, e[40] = a, e[41] = v) : v = e[41], v;
|
|
2105
2112
|
}
|
|
2106
2113
|
const Tn = [ne];
|
|
2107
2114
|
function En({
|
|
@@ -2112,8 +2119,8 @@ function En({
|
|
|
2112
2119
|
} = {
|
|
2113
2120
|
styles: rt.styles
|
|
2114
2121
|
},
|
|
2115
|
-
layerProps:
|
|
2116
|
-
textOptions:
|
|
2122
|
+
layerProps: s = {},
|
|
2123
|
+
textOptions: n
|
|
2117
2124
|
}) {
|
|
2118
2125
|
const {
|
|
2119
2126
|
setDistance: o,
|
|
@@ -2121,34 +2128,34 @@ function En({
|
|
|
2121
2128
|
enabled: a,
|
|
2122
2129
|
finished: l,
|
|
2123
2130
|
setFinished: c,
|
|
2124
|
-
locale:
|
|
2131
|
+
locale: m,
|
|
2125
2132
|
setPositions: p,
|
|
2126
|
-
unit:
|
|
2133
|
+
unit: y,
|
|
2127
2134
|
modeInstance: d
|
|
2128
2135
|
} = Ft({
|
|
2129
2136
|
mapId: e
|
|
2130
|
-
}),
|
|
2137
|
+
}), g = pe((w) => w.setLayer), h = $((w) => w.addLayers), T = $((w) => w.removeLayers), f = $(ht((w) => {
|
|
2131
2138
|
var _;
|
|
2132
2139
|
return (_ = w.maps[e]) == null ? void 0 : _.layers.filter((k) => !Tn.includes(k));
|
|
2133
2140
|
})), b = $((w) => w.getDeckInstance), S = Me({});
|
|
2134
2141
|
Lt({
|
|
2135
2142
|
mapId: e,
|
|
2136
2143
|
layerId: ne
|
|
2137
|
-
}), z(() => (a &&
|
|
2144
|
+
}), z(() => (a && h(e, [ne]), () => {
|
|
2138
2145
|
T(e, [ne]);
|
|
2139
|
-
}), [
|
|
2146
|
+
}), [h, i, e, T, a]), z(() => {
|
|
2140
2147
|
f == null || f.forEach((w) => {
|
|
2141
2148
|
var U;
|
|
2142
2149
|
const _ = (U = b(e)) == null ? void 0 : U.props.layers.find((C) => C.props.id === w);
|
|
2143
2150
|
a && (S.current[w] = _ == null ? void 0 : _.props.pickable);
|
|
2144
2151
|
const k = !a && (S.current[w] ?? (_ == null ? void 0 : _.props.pickable));
|
|
2145
|
-
|
|
2152
|
+
g(w, {
|
|
2146
2153
|
props: {
|
|
2147
2154
|
pickable: k
|
|
2148
2155
|
}
|
|
2149
2156
|
});
|
|
2150
2157
|
});
|
|
2151
|
-
}, [a, b, e, f,
|
|
2158
|
+
}, [a, b, e, f, g]);
|
|
2152
2159
|
const E = Q(({
|
|
2153
2160
|
editType: w,
|
|
2154
2161
|
editContext: _
|
|
@@ -2164,35 +2171,35 @@ function En({
|
|
|
2164
2171
|
return z(() => {
|
|
2165
2172
|
const w = l ? t.colors.finished : t.colors.editing, _ = l ? t.colors.finished : t.colors.point, k = cn({
|
|
2166
2173
|
layerProps: {
|
|
2167
|
-
...
|
|
2168
|
-
pickable:
|
|
2174
|
+
...s,
|
|
2175
|
+
pickable: s.pickable ?? !l
|
|
2169
2176
|
},
|
|
2170
2177
|
enabled: a,
|
|
2171
2178
|
guideColor: w,
|
|
2172
2179
|
pointColor: _,
|
|
2173
|
-
locale:
|
|
2180
|
+
locale: m,
|
|
2174
2181
|
onEdit: E,
|
|
2175
|
-
unit:
|
|
2182
|
+
unit: y,
|
|
2176
2183
|
mode: d,
|
|
2177
|
-
textOptions:
|
|
2184
|
+
textOptions: n
|
|
2178
2185
|
});
|
|
2179
|
-
|
|
2180
|
-
}, [l, d,
|
|
2186
|
+
g(ne, k);
|
|
2187
|
+
}, [l, d, s, m, E, g, t.colors.editing, t.colors.finished, t.colors.point, n, y, a]), r;
|
|
2181
2188
|
}
|
|
2182
2189
|
En.Controls = wn;
|
|
2183
2190
|
function _n(r) {
|
|
2184
2191
|
const e = D(7), {
|
|
2185
2192
|
mapId: t
|
|
2186
2193
|
} = r;
|
|
2187
|
-
let
|
|
2188
|
-
e[0] !== t ? (
|
|
2194
|
+
let s;
|
|
2195
|
+
e[0] !== t ? (s = (c) => c.maps[t], e[0] = t, e[1] = s) : s = e[1];
|
|
2189
2196
|
const {
|
|
2190
|
-
layers:
|
|
2191
|
-
} = $(
|
|
2197
|
+
layers: n
|
|
2198
|
+
} = $(s), o = pe(Pn);
|
|
2192
2199
|
let i, a;
|
|
2193
|
-
if (e[2] !== o || e[3] !==
|
|
2200
|
+
if (e[2] !== o || e[3] !== n) {
|
|
2194
2201
|
let c;
|
|
2195
|
-
e[5] !== o ? (c = (
|
|
2202
|
+
e[5] !== o ? (c = (m) => o[m], e[5] = o, e[6] = c) : c = e[6], a = n.map(c).filter(Mn), e[2] = o, e[3] = n, e[4] = a;
|
|
2196
2203
|
} else
|
|
2197
2204
|
a = e[4];
|
|
2198
2205
|
return i = a, i;
|
|
@@ -2205,31 +2212,31 @@ function Pn(r) {
|
|
|
2205
2212
|
}
|
|
2206
2213
|
const at = [Le, ce, ne];
|
|
2207
2214
|
function kt(r) {
|
|
2208
|
-
const e = r.filter((
|
|
2215
|
+
const e = r.filter((s) => !at.includes(s.props.id)).sort((s, n) => (s.order ?? 1 / 0) - (n.order ?? 1 / 0)), t = at.map((s) => r.find((n) => n.props.id === s)).filter((s) => !!s);
|
|
2209
2216
|
return [...e, ...t];
|
|
2210
2217
|
}
|
|
2211
2218
|
const Ln = 200;
|
|
2212
2219
|
function Wr(r) {
|
|
2213
2220
|
const e = D(48);
|
|
2214
|
-
let t,
|
|
2221
|
+
let t, s, n, o;
|
|
2215
2222
|
e[0] !== r ? ({
|
|
2216
2223
|
id: t,
|
|
2217
|
-
onLoad:
|
|
2218
|
-
onViewStateChange:
|
|
2224
|
+
onLoad: s,
|
|
2225
|
+
onViewStateChange: n,
|
|
2219
2226
|
...o
|
|
2220
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
2227
|
+
} = 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]);
|
|
2221
2228
|
let i;
|
|
2222
2229
|
e[5] !== t ? (i = (L) => L.maps[t].basemap, e[5] = t, e[6] = i) : i = e[6];
|
|
2223
2230
|
const a = $(i);
|
|
2224
2231
|
let l;
|
|
2225
2232
|
e[7] !== t ? (l = (L) => L.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
|
|
2226
2233
|
const c = $(l);
|
|
2227
|
-
let
|
|
2228
|
-
e[9] !== t ? (
|
|
2229
|
-
const p = $(
|
|
2234
|
+
let m;
|
|
2235
|
+
e[9] !== t ? (m = (L) => L.maps[t].overlayRef, e[9] = t, e[10] = m) : m = e[10];
|
|
2236
|
+
const p = $(m), y = Me(null);
|
|
2230
2237
|
let d;
|
|
2231
2238
|
e[11] !== t ? (d = (L) => L.viewStates[t], e[11] = t, e[12] = d) : d = e[12];
|
|
2232
|
-
const
|
|
2239
|
+
const g = $(d), h = $(Dn), T = $(Cn), f = $(An), b = $(kn), S = $(Fn);
|
|
2233
2240
|
let E;
|
|
2234
2241
|
e[13] !== t ? (E = {
|
|
2235
2242
|
mapId: t
|
|
@@ -2239,28 +2246,28 @@ function Wr(r) {
|
|
|
2239
2246
|
e[15] !== w ? (k = kt(w), e[15] = w, e[16] = k) : k = e[16], _ = k;
|
|
2240
2247
|
const U = _;
|
|
2241
2248
|
let C;
|
|
2242
|
-
e[17] !== t || e[18] !==
|
|
2249
|
+
e[17] !== t || e[18] !== n || e[19] !== T || e[20] !== S ? (C = (L) => {
|
|
2243
2250
|
const O = T;
|
|
2244
|
-
if (
|
|
2251
|
+
if (y.current && clearInterval(y.current), y.current = setTimeout(() => {
|
|
2245
2252
|
S(t);
|
|
2246
|
-
}, Ln),
|
|
2247
|
-
|
|
2253
|
+
}, Ln), n) {
|
|
2254
|
+
n(L, O);
|
|
2248
2255
|
return;
|
|
2249
2256
|
}
|
|
2250
2257
|
O(t, L.viewState);
|
|
2251
|
-
}, e[17] = t, e[18] =
|
|
2258
|
+
}, e[17] = t, e[18] = n, e[19] = T, e[20] = S, e[21] = C) : C = e[21];
|
|
2252
2259
|
const j = C;
|
|
2253
2260
|
let B;
|
|
2254
|
-
e[22] !== t || e[23] !==
|
|
2255
|
-
f(t, L),
|
|
2256
|
-
}, e[22] = t, e[23] =
|
|
2261
|
+
e[22] !== t || e[23] !== s || e[24] !== f || e[25] !== S ? (B = (L) => {
|
|
2262
|
+
f(t, L), s == null || s(L), S(t);
|
|
2263
|
+
}, e[22] = t, e[23] = s, e[24] = f, e[25] = S, e[26] = B) : B = e[26];
|
|
2257
2264
|
const x = B;
|
|
2258
2265
|
let M;
|
|
2259
|
-
e[27] !==
|
|
2266
|
+
e[27] !== h || e[28] !== t || e[29] !== o || e[30] !== b ? (M = (L) => {
|
|
2260
2267
|
var W, K;
|
|
2261
|
-
const O = (W =
|
|
2268
|
+
const O = (W = h(t)) == null ? void 0 : W.props.layers, H = !!(O != null && O.every(On));
|
|
2262
2269
|
b(t, H), (K = o.onAfterRender) == null || K.call(o, L);
|
|
2263
|
-
}, e[27] =
|
|
2270
|
+
}, e[27] = h, e[28] = t, e[29] = o, e[30] = b, e[31] = M) : M = e[31];
|
|
2264
2271
|
const F = M, u = o.onDragEnd;
|
|
2265
2272
|
let v;
|
|
2266
2273
|
e[32] !== u || e[33] !== t || e[34] !== S ? (v = (...L) => {
|
|
@@ -2269,7 +2276,7 @@ function Wr(r) {
|
|
|
2269
2276
|
}, e[32] = u, e[33] = t, e[34] = S, e[35] = v) : v = e[35];
|
|
2270
2277
|
const P = v;
|
|
2271
2278
|
let A;
|
|
2272
|
-
return e[36] !== a || e[37] !== U || e[38] !== F || e[39] !== P || e[40] !== x || e[41] !== j || e[42] !== t || e[43] !== c || e[44] !== p || e[45] !== o || e[46] !==
|
|
2279
|
+
return e[36] !== a || e[37] !== U || e[38] !== F || e[39] !== P || e[40] !== x || e[41] !== j || e[42] !== t || e[43] !== c || e[44] !== p || e[45] !== o || e[46] !== g ? (A = /* @__PURE__ */ N(Os, { ...o, id: t, layers: U, instanceRef: c, overlayRef: p, basemap: a, initialViewState: g, onLoad: x, onViewStateChange: j, onAfterRender: F, onDragEnd: P }), e[36] = a, e[37] = U, e[38] = F, e[39] = P, e[40] = x, e[41] = j, e[42] = t, e[43] = c, e[44] = p, e[45] = o, e[46] = g, e[47] = A) : A = e[47], A;
|
|
2273
2280
|
}
|
|
2274
2281
|
function On(r) {
|
|
2275
2282
|
return r == null ? void 0 : r.isLoaded;
|
|
@@ -2292,7 +2299,7 @@ function Dn(r) {
|
|
|
2292
2299
|
var _e = { exports: {} }, lt;
|
|
2293
2300
|
function Rn() {
|
|
2294
2301
|
return lt || (lt = 1, function(r, e) {
|
|
2295
|
-
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Ee < "u" && Ee,
|
|
2302
|
+
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Ee < "u" && Ee, s = function() {
|
|
2296
2303
|
function o() {
|
|
2297
2304
|
this.fetch = !1, this.DOMException = t.DOMException;
|
|
2298
2305
|
}
|
|
@@ -2318,7 +2325,7 @@ function Rn() {
|
|
|
2318
2325
|
return u && DataView.prototype.isPrototypeOf(u);
|
|
2319
2326
|
}
|
|
2320
2327
|
if (l.arrayBuffer)
|
|
2321
|
-
var
|
|
2328
|
+
var m = [
|
|
2322
2329
|
"[object Int8Array]",
|
|
2323
2330
|
"[object Uint8Array]",
|
|
2324
2331
|
"[object Uint8ClampedArray]",
|
|
@@ -2329,9 +2336,9 @@ function Rn() {
|
|
|
2329
2336
|
"[object Float32Array]",
|
|
2330
2337
|
"[object Float64Array]"
|
|
2331
2338
|
], p = ArrayBuffer.isView || function(u) {
|
|
2332
|
-
return u &&
|
|
2339
|
+
return u && m.indexOf(Object.prototype.toString.call(u)) > -1;
|
|
2333
2340
|
};
|
|
2334
|
-
function
|
|
2341
|
+
function y(u) {
|
|
2335
2342
|
if (typeof u != "string" && (u = String(u)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(u) || u === "")
|
|
2336
2343
|
throw new TypeError('Invalid character in header field name: "' + u + '"');
|
|
2337
2344
|
return u.toLowerCase();
|
|
@@ -2339,7 +2346,7 @@ function Rn() {
|
|
|
2339
2346
|
function d(u) {
|
|
2340
2347
|
return typeof u != "string" && (u = String(u)), u;
|
|
2341
2348
|
}
|
|
2342
|
-
function
|
|
2349
|
+
function g(u) {
|
|
2343
2350
|
var v = {
|
|
2344
2351
|
next: function() {
|
|
2345
2352
|
var P = u.shift();
|
|
@@ -2350,8 +2357,8 @@ function Rn() {
|
|
|
2350
2357
|
return v;
|
|
2351
2358
|
}), v;
|
|
2352
2359
|
}
|
|
2353
|
-
function
|
|
2354
|
-
this.map = {}, u instanceof
|
|
2360
|
+
function h(u) {
|
|
2361
|
+
this.map = {}, u instanceof h ? u.forEach(function(v, P) {
|
|
2355
2362
|
this.append(P, v);
|
|
2356
2363
|
}, this) : Array.isArray(u) ? u.forEach(function(v) {
|
|
2357
2364
|
if (v.length != 2)
|
|
@@ -2361,37 +2368,37 @@ function Rn() {
|
|
|
2361
2368
|
this.append(v, u[v]);
|
|
2362
2369
|
}, this);
|
|
2363
2370
|
}
|
|
2364
|
-
|
|
2365
|
-
u =
|
|
2371
|
+
h.prototype.append = function(u, v) {
|
|
2372
|
+
u = y(u), v = d(v);
|
|
2366
2373
|
var P = this.map[u];
|
|
2367
2374
|
this.map[u] = P ? P + ", " + v : v;
|
|
2368
|
-
},
|
|
2369
|
-
delete this.map[
|
|
2370
|
-
},
|
|
2371
|
-
return u =
|
|
2372
|
-
},
|
|
2373
|
-
return this.map.hasOwnProperty(
|
|
2374
|
-
},
|
|
2375
|
-
this.map[
|
|
2376
|
-
},
|
|
2375
|
+
}, h.prototype.delete = function(u) {
|
|
2376
|
+
delete this.map[y(u)];
|
|
2377
|
+
}, h.prototype.get = function(u) {
|
|
2378
|
+
return u = y(u), this.has(u) ? this.map[u] : null;
|
|
2379
|
+
}, h.prototype.has = function(u) {
|
|
2380
|
+
return this.map.hasOwnProperty(y(u));
|
|
2381
|
+
}, h.prototype.set = function(u, v) {
|
|
2382
|
+
this.map[y(u)] = d(v);
|
|
2383
|
+
}, h.prototype.forEach = function(u, v) {
|
|
2377
2384
|
for (var P in this.map)
|
|
2378
2385
|
this.map.hasOwnProperty(P) && u.call(v, this.map[P], P, this);
|
|
2379
|
-
},
|
|
2386
|
+
}, h.prototype.keys = function() {
|
|
2380
2387
|
var u = [];
|
|
2381
2388
|
return this.forEach(function(v, P) {
|
|
2382
2389
|
u.push(P);
|
|
2383
|
-
}),
|
|
2384
|
-
},
|
|
2390
|
+
}), g(u);
|
|
2391
|
+
}, h.prototype.values = function() {
|
|
2385
2392
|
var u = [];
|
|
2386
2393
|
return this.forEach(function(v) {
|
|
2387
2394
|
u.push(v);
|
|
2388
|
-
}),
|
|
2389
|
-
},
|
|
2395
|
+
}), g(u);
|
|
2396
|
+
}, h.prototype.entries = function() {
|
|
2390
2397
|
var u = [];
|
|
2391
2398
|
return this.forEach(function(v, P) {
|
|
2392
2399
|
u.push([P, v]);
|
|
2393
|
-
}),
|
|
2394
|
-
}, l.iterable && (
|
|
2400
|
+
}), g(u);
|
|
2401
|
+
}, l.iterable && (h.prototype[Symbol.iterator] = h.prototype.entries);
|
|
2395
2402
|
function T(u) {
|
|
2396
2403
|
if (!u._noBody) {
|
|
2397
2404
|
if (u.bodyUsed)
|
|
@@ -2485,10 +2492,10 @@ function Rn() {
|
|
|
2485
2492
|
if (u instanceof C) {
|
|
2486
2493
|
if (u.bodyUsed)
|
|
2487
2494
|
throw new TypeError("Already read");
|
|
2488
|
-
this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new
|
|
2495
|
+
this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new h(u.headers)), this.method = u.method, this.mode = u.mode, this.signal = u.signal, !P && u._bodyInit != null && (P = u._bodyInit, u.bodyUsed = !0);
|
|
2489
2496
|
} else
|
|
2490
2497
|
this.url = String(u);
|
|
2491
|
-
if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new
|
|
2498
|
+
if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new h(v.headers)), this.method = U(v.method || this.method || "GET"), this.mode = v.mode || this.mode || null, this.signal = v.signal || this.signal || function() {
|
|
2492
2499
|
if ("AbortController" in a) {
|
|
2493
2500
|
var O = new AbortController();
|
|
2494
2501
|
return O.signal;
|
|
@@ -2518,7 +2525,7 @@ function Rn() {
|
|
|
2518
2525
|
}), v;
|
|
2519
2526
|
}
|
|
2520
2527
|
function B(u) {
|
|
2521
|
-
var v = new
|
|
2528
|
+
var v = new h(), P = u.replace(/\r?\n[\t ]+/g, " ");
|
|
2522
2529
|
return P.split("\r").map(function(A) {
|
|
2523
2530
|
return A.indexOf(`
|
|
2524
2531
|
`) === 0 ? A.substr(1, A.length) : A;
|
|
@@ -2540,13 +2547,13 @@ function Rn() {
|
|
|
2540
2547
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2541
2548
|
if (v || (v = {}), this.type = "default", this.status = v.status === void 0 ? 200 : v.status, this.status < 200 || this.status > 599)
|
|
2542
2549
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2543
|
-
this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new
|
|
2550
|
+
this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new h(v.headers), this.url = v.url || "", this._initBody(u);
|
|
2544
2551
|
}
|
|
2545
2552
|
_.call(x.prototype), x.prototype.clone = function() {
|
|
2546
2553
|
return new x(this._bodyInit, {
|
|
2547
2554
|
status: this.status,
|
|
2548
2555
|
statusText: this.statusText,
|
|
2549
|
-
headers: new
|
|
2556
|
+
headers: new h(this.headers),
|
|
2550
2557
|
url: this.url
|
|
2551
2558
|
});
|
|
2552
2559
|
}, x.error = function() {
|
|
@@ -2607,10 +2614,10 @@ function Rn() {
|
|
|
2607
2614
|
return q;
|
|
2608
2615
|
}
|
|
2609
2616
|
}
|
|
2610
|
-
if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof
|
|
2617
|
+
if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof h || a.Headers && v.headers instanceof a.Headers)) {
|
|
2611
2618
|
var K = [];
|
|
2612
2619
|
Object.getOwnPropertyNames(v.headers).forEach(function(q) {
|
|
2613
|
-
K.push(
|
|
2620
|
+
K.push(y(q)), O.setRequestHeader(q, d(v.headers[q]));
|
|
2614
2621
|
}), L.headers.forEach(function(q, X) {
|
|
2615
2622
|
K.indexOf(X) === -1 && O.setRequestHeader(X, q);
|
|
2616
2623
|
});
|
|
@@ -2623,11 +2630,11 @@ function Rn() {
|
|
|
2623
2630
|
}), O.send(typeof L._bodyInit > "u" ? null : L._bodyInit);
|
|
2624
2631
|
});
|
|
2625
2632
|
}
|
|
2626
|
-
return F.polyfill = !0, a.fetch || (a.fetch = F, a.Headers =
|
|
2633
|
+
return F.polyfill = !0, a.fetch || (a.fetch = F, a.Headers = h, a.Request = C, a.Response = x), i.Headers = h, i.Request = C, i.Response = x, i.fetch = F, i;
|
|
2627
2634
|
})({});
|
|
2628
|
-
})(
|
|
2629
|
-
var
|
|
2630
|
-
e =
|
|
2635
|
+
})(s), s.fetch.ponyfill = !0, delete s.fetch.polyfill;
|
|
2636
|
+
var n = t.fetch ? t : s;
|
|
2637
|
+
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;
|
|
2631
2638
|
}(_e, _e.exports)), _e.exports;
|
|
2632
2639
|
}
|
|
2633
2640
|
var $n = Rn();
|
|
@@ -2643,7 +2650,7 @@ function jn({
|
|
|
2643
2650
|
url: e
|
|
2644
2651
|
}) {
|
|
2645
2652
|
if (!r) return e;
|
|
2646
|
-
const t = Object.entries(r).map(([
|
|
2653
|
+
const t = Object.entries(r).map(([s, n]) => Bn(s, n));
|
|
2647
2654
|
return `${e}?${t.filter(Boolean).join("&")}`;
|
|
2648
2655
|
}
|
|
2649
2656
|
function qn(r) {
|
|
@@ -2663,15 +2670,15 @@ function Vn() {
|
|
|
2663
2670
|
var b = Object.prototype.toString.call(f);
|
|
2664
2671
|
return b === "[object RegExp]" || b === "[object Date]" || o(f);
|
|
2665
2672
|
}
|
|
2666
|
-
var
|
|
2673
|
+
var s = typeof Symbol == "function" && Symbol.for, n = s ? Symbol.for("react.element") : 60103;
|
|
2667
2674
|
function o(f) {
|
|
2668
|
-
return f.$$typeof ===
|
|
2675
|
+
return f.$$typeof === n;
|
|
2669
2676
|
}
|
|
2670
2677
|
function i(f) {
|
|
2671
2678
|
return Array.isArray(f) ? [] : {};
|
|
2672
2679
|
}
|
|
2673
2680
|
function a(f, b) {
|
|
2674
|
-
return b.clone !== !1 && b.isMergeableObject(f) ?
|
|
2681
|
+
return b.clone !== !1 && b.isMergeableObject(f) ? h(i(f), f, b) : f;
|
|
2675
2682
|
}
|
|
2676
2683
|
function l(f, b, S) {
|
|
2677
2684
|
return f.concat(b).map(function(E) {
|
|
@@ -2679,19 +2686,19 @@ function Vn() {
|
|
|
2679
2686
|
});
|
|
2680
2687
|
}
|
|
2681
2688
|
function c(f, b) {
|
|
2682
|
-
if (!b.customMerge) return
|
|
2689
|
+
if (!b.customMerge) return h;
|
|
2683
2690
|
var S = b.customMerge(f);
|
|
2684
|
-
return typeof S == "function" ? S :
|
|
2691
|
+
return typeof S == "function" ? S : h;
|
|
2685
2692
|
}
|
|
2686
|
-
function
|
|
2693
|
+
function m(f) {
|
|
2687
2694
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(b) {
|
|
2688
2695
|
return Object.propertyIsEnumerable.call(f, b);
|
|
2689
2696
|
}) : [];
|
|
2690
2697
|
}
|
|
2691
2698
|
function p(f) {
|
|
2692
|
-
return Object.keys(f).concat(
|
|
2699
|
+
return Object.keys(f).concat(m(f));
|
|
2693
2700
|
}
|
|
2694
|
-
function
|
|
2701
|
+
function y(f, b) {
|
|
2695
2702
|
try {
|
|
2696
2703
|
return b in f;
|
|
2697
2704
|
} catch {
|
|
@@ -2699,28 +2706,28 @@ function Vn() {
|
|
|
2699
2706
|
}
|
|
2700
2707
|
}
|
|
2701
2708
|
function d(f, b) {
|
|
2702
|
-
return
|
|
2709
|
+
return y(f, b) && !(Object.hasOwnProperty.call(f, b) && Object.propertyIsEnumerable.call(f, b));
|
|
2703
2710
|
}
|
|
2704
|
-
function
|
|
2711
|
+
function g(f, b, S) {
|
|
2705
2712
|
var E = {};
|
|
2706
2713
|
return S.isMergeableObject(f) && p(f).forEach(function(w) {
|
|
2707
2714
|
E[w] = a(f[w], S);
|
|
2708
2715
|
}), p(b).forEach(function(w) {
|
|
2709
|
-
d(f, w) || (
|
|
2716
|
+
d(f, w) || (y(f, w) && S.isMergeableObject(b[w]) ? E[w] = c(w, S)(f[w], b[w], S) : E[w] = a(b[w], S));
|
|
2710
2717
|
}), E;
|
|
2711
2718
|
}
|
|
2712
|
-
function
|
|
2719
|
+
function h(f, b, S) {
|
|
2713
2720
|
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
2714
2721
|
var E = Array.isArray(b), w = Array.isArray(f), _ = E === w;
|
|
2715
|
-
return _ ? E ? S.arrayMerge(f, b, S) :
|
|
2722
|
+
return _ ? E ? S.arrayMerge(f, b, S) : g(f, b, S) : a(b, S);
|
|
2716
2723
|
}
|
|
2717
|
-
|
|
2724
|
+
h.all = function(f, b) {
|
|
2718
2725
|
if (!Array.isArray(f)) throw new Error("first argument should be an array");
|
|
2719
2726
|
return f.reduce(function(S, E) {
|
|
2720
|
-
return
|
|
2727
|
+
return h(S, E, b);
|
|
2721
2728
|
}, {});
|
|
2722
2729
|
};
|
|
2723
|
-
var T =
|
|
2730
|
+
var T = h;
|
|
2724
2731
|
return qe = T, qe;
|
|
2725
2732
|
}
|
|
2726
2733
|
var In = Vn();
|
|
@@ -2754,25 +2761,25 @@ function Hn({
|
|
|
2754
2761
|
body: r,
|
|
2755
2762
|
accessToken: e,
|
|
2756
2763
|
method: t,
|
|
2757
|
-
...
|
|
2764
|
+
...s
|
|
2758
2765
|
}) {
|
|
2759
|
-
let
|
|
2760
|
-
return
|
|
2766
|
+
let n = e;
|
|
2767
|
+
return n && !n.includes("Bearer") && (n = "Bearer " + n), Nn[t](Ze({
|
|
2761
2768
|
method: t,
|
|
2762
2769
|
headers: {
|
|
2763
|
-
...!!
|
|
2764
|
-
authorization:
|
|
2770
|
+
...!!n && {
|
|
2771
|
+
authorization: n
|
|
2765
2772
|
}
|
|
2766
2773
|
}
|
|
2767
|
-
},
|
|
2774
|
+
}, s), r);
|
|
2768
2775
|
}
|
|
2769
2776
|
const Gn = 6144;
|
|
2770
2777
|
async function At({
|
|
2771
2778
|
signal: r,
|
|
2772
2779
|
body: e,
|
|
2773
2780
|
accessToken: t,
|
|
2774
|
-
credentials:
|
|
2775
|
-
method:
|
|
2781
|
+
credentials: s,
|
|
2782
|
+
method: n = de.get,
|
|
2776
2783
|
params: o,
|
|
2777
2784
|
url: i,
|
|
2778
2785
|
requestOptions: {
|
|
@@ -2785,88 +2792,88 @@ async function At({
|
|
|
2785
2792
|
let c = jn({
|
|
2786
2793
|
url: i,
|
|
2787
2794
|
params: o
|
|
2788
|
-
}),
|
|
2789
|
-
|
|
2790
|
-
const
|
|
2791
|
-
body:
|
|
2792
|
-
accessToken: t ?? (
|
|
2795
|
+
}), m = e, p = n;
|
|
2796
|
+
n === de.get && c.length > a && (m = o, p = de.post, c = i);
|
|
2797
|
+
const y = Hn({
|
|
2798
|
+
body: m,
|
|
2799
|
+
accessToken: t ?? (s == null ? void 0 : s.accessToken),
|
|
2793
2800
|
method: p,
|
|
2794
2801
|
...l
|
|
2795
2802
|
});
|
|
2796
|
-
r && (
|
|
2797
|
-
const d = await Un(c,
|
|
2803
|
+
r && (y.signal = r);
|
|
2804
|
+
const d = await Un(c, y);
|
|
2798
2805
|
if (!d.ok) {
|
|
2799
|
-
const
|
|
2800
|
-
return Promise.reject(new Error(
|
|
2806
|
+
const g = await d.text();
|
|
2807
|
+
return Promise.reject(new Error(g));
|
|
2801
2808
|
}
|
|
2802
2809
|
return d.status === 204 ? Promise.resolve() : await d.json();
|
|
2803
2810
|
}
|
|
2804
2811
|
const Pe = mt()(hs((r) => ({
|
|
2805
2812
|
sources: {},
|
|
2806
2813
|
filters: {},
|
|
2807
|
-
setSource: (e, t) => r((
|
|
2814
|
+
setSource: (e, t) => r((s) => {
|
|
2808
2815
|
var d;
|
|
2809
|
-
const
|
|
2810
|
-
...
|
|
2811
|
-
}, o = (d =
|
|
2812
|
-
if (o && (o.destroy(), delete
|
|
2813
|
-
return delete
|
|
2814
|
-
sources:
|
|
2816
|
+
const n = {
|
|
2817
|
+
...s.sources
|
|
2818
|
+
}, o = (d = n[e]) == null ? void 0 : d.widgets;
|
|
2819
|
+
if (o && (o.destroy(), delete n[e].widgets), !t)
|
|
2820
|
+
return delete n[e], {
|
|
2821
|
+
sources: n
|
|
2815
2822
|
};
|
|
2816
|
-
const i =
|
|
2823
|
+
const i = n[e], {
|
|
2817
2824
|
apiBaseUrl: a = We,
|
|
2818
2825
|
clientId: l = xn,
|
|
2819
2826
|
apiVersion: c = Ke,
|
|
2820
|
-
...
|
|
2827
|
+
...m
|
|
2821
2828
|
} = t, p = {
|
|
2822
2829
|
...i,
|
|
2823
|
-
...
|
|
2830
|
+
...m,
|
|
2824
2831
|
apiBaseUrl: a,
|
|
2825
2832
|
apiVersion: c,
|
|
2826
2833
|
clientId: l
|
|
2827
|
-
},
|
|
2834
|
+
}, y = Wn({
|
|
2828
2835
|
source: p
|
|
2829
2836
|
});
|
|
2830
|
-
return p.widgets =
|
|
2831
|
-
sources:
|
|
2837
|
+
return p.widgets = y, n[e] = p, {
|
|
2838
|
+
sources: n
|
|
2832
2839
|
};
|
|
2833
2840
|
}, void 0, "setSource"),
|
|
2834
2841
|
removeSource: (e) => r((t) => {
|
|
2835
2842
|
var o;
|
|
2836
|
-
const
|
|
2843
|
+
const s = {
|
|
2837
2844
|
...t.sources
|
|
2838
|
-
},
|
|
2839
|
-
return
|
|
2840
|
-
sources:
|
|
2845
|
+
}, n = (o = s[e]) == null ? void 0 : o.widgets;
|
|
2846
|
+
return n && (n.destroy(), delete s[e].widgets), delete s[e], {
|
|
2847
|
+
sources: s
|
|
2841
2848
|
};
|
|
2842
2849
|
}, void 0, "removeSource"),
|
|
2843
|
-
setFilters: (e, t) => r((
|
|
2844
|
-
let
|
|
2845
|
-
const o =
|
|
2846
|
-
return t.length !== 0 && (
|
|
2850
|
+
setFilters: (e, t) => r((s) => {
|
|
2851
|
+
let n = {};
|
|
2852
|
+
const o = s.filters[e] ?? {};
|
|
2853
|
+
return t.length !== 0 && (n = t.reduce((i, a) => {
|
|
2847
2854
|
var l;
|
|
2848
2855
|
return !("values" in a) || !((l = a.values) != null && l.length) ? Xe(i, a) : vt(i, a);
|
|
2849
2856
|
}, o)), {
|
|
2850
2857
|
filters: {
|
|
2851
|
-
...
|
|
2858
|
+
...s.filters,
|
|
2852
2859
|
[e]: {
|
|
2853
|
-
...
|
|
2860
|
+
...n
|
|
2854
2861
|
}
|
|
2855
2862
|
// important: destructuring here to not conservere the reference to the same object
|
|
2856
2863
|
}
|
|
2857
2864
|
};
|
|
2858
2865
|
}, void 0, "setFilters"),
|
|
2859
|
-
removeFilters: (e, t,
|
|
2860
|
-
const o =
|
|
2866
|
+
removeFilters: (e, t, s) => r((n) => {
|
|
2867
|
+
const o = n.filters[e] ?? {};
|
|
2861
2868
|
if (!o)
|
|
2862
|
-
return
|
|
2869
|
+
return n;
|
|
2863
2870
|
let i = {};
|
|
2864
2871
|
return t && (i = Xe(o, {
|
|
2865
2872
|
column: t,
|
|
2866
|
-
owner:
|
|
2873
|
+
owner: s
|
|
2867
2874
|
})), {
|
|
2868
2875
|
filters: {
|
|
2869
|
-
...
|
|
2876
|
+
...n.filters,
|
|
2870
2877
|
[e]: {
|
|
2871
2878
|
...i
|
|
2872
2879
|
}
|
|
@@ -2878,34 +2885,34 @@ const Pe = mt()(hs((r) => ({
|
|
|
2878
2885
|
function zn(r) {
|
|
2879
2886
|
const e = D(2);
|
|
2880
2887
|
let t;
|
|
2881
|
-
return e[0] !== r ? (t = (
|
|
2888
|
+
return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1], Pe(t);
|
|
2882
2889
|
}
|
|
2883
2890
|
function Qn(r) {
|
|
2884
2891
|
const e = D(2);
|
|
2885
2892
|
let t;
|
|
2886
|
-
return e[0] !== r ? (t = (
|
|
2893
|
+
return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1], Pe(t);
|
|
2887
2894
|
}
|
|
2888
2895
|
function Kr(r) {
|
|
2889
2896
|
const e = D(9);
|
|
2890
2897
|
let t;
|
|
2891
2898
|
e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
|
|
2892
|
-
const
|
|
2893
|
-
let
|
|
2894
|
-
e[2] !== r ? (
|
|
2895
|
-
const o = Pe(
|
|
2899
|
+
const s = Pe(t);
|
|
2900
|
+
let n;
|
|
2901
|
+
e[2] !== r ? (n = (a) => a.filters[r], e[2] = r, e[3] = n) : n = e[3];
|
|
2902
|
+
const o = Pe(n);
|
|
2896
2903
|
let i;
|
|
2897
2904
|
e: {
|
|
2898
|
-
if (!
|
|
2905
|
+
if (!s) {
|
|
2899
2906
|
i = void 0;
|
|
2900
2907
|
break e;
|
|
2901
2908
|
}
|
|
2902
2909
|
let a;
|
|
2903
2910
|
e[4] !== o ? (a = o ?? {}, e[4] = o, e[5] = a) : a = e[5];
|
|
2904
2911
|
let l;
|
|
2905
|
-
e[6] !==
|
|
2906
|
-
...
|
|
2912
|
+
e[6] !== s || e[7] !== a ? (l = {
|
|
2913
|
+
...s,
|
|
2907
2914
|
filters: a
|
|
2908
|
-
}, e[6] =
|
|
2915
|
+
}, e[6] = s, e[7] = a, e[8] = l) : l = e[8], i = l;
|
|
2909
2916
|
}
|
|
2910
2917
|
return i;
|
|
2911
2918
|
}
|
|
@@ -2913,79 +2920,79 @@ function Zr(r, {
|
|
|
2913
2920
|
column: e,
|
|
2914
2921
|
type: t
|
|
2915
2922
|
}) {
|
|
2916
|
-
var
|
|
2917
|
-
return ((
|
|
2923
|
+
var s, n;
|
|
2924
|
+
return ((n = (s = r == null ? void 0 : r[e]) == null ? void 0 : s[t]) == null ? void 0 : n.values) ?? [];
|
|
2918
2925
|
}
|
|
2919
2926
|
function Wn({
|
|
2920
2927
|
source: r
|
|
2921
2928
|
}) {
|
|
2922
2929
|
const e = {
|
|
2923
2930
|
query: () => {
|
|
2924
|
-
const
|
|
2931
|
+
const n = r;
|
|
2925
2932
|
return new ps({
|
|
2926
|
-
...
|
|
2933
|
+
...n,
|
|
2927
2934
|
accessToken: "",
|
|
2928
|
-
sqlQuery:
|
|
2929
|
-
spatialDataType:
|
|
2935
|
+
sqlQuery: n.data,
|
|
2936
|
+
spatialDataType: n.spatialDataType ?? "geo"
|
|
2930
2937
|
});
|
|
2931
2938
|
},
|
|
2932
2939
|
table: () => {
|
|
2933
|
-
const
|
|
2940
|
+
const n = r;
|
|
2934
2941
|
return new fs({
|
|
2935
|
-
...
|
|
2942
|
+
...n,
|
|
2936
2943
|
accessToken: "",
|
|
2937
|
-
tableName:
|
|
2938
|
-
spatialDataType:
|
|
2944
|
+
tableName: n.data,
|
|
2945
|
+
spatialDataType: n.spatialDataType ?? "geo"
|
|
2939
2946
|
});
|
|
2940
2947
|
},
|
|
2941
2948
|
tileset: () => {
|
|
2942
|
-
const
|
|
2949
|
+
const n = r;
|
|
2943
2950
|
return new us({
|
|
2944
|
-
...
|
|
2951
|
+
...n,
|
|
2945
2952
|
accessToken: "",
|
|
2946
|
-
tableName:
|
|
2947
|
-
tileFormat:
|
|
2948
|
-
spatialDataType:
|
|
2953
|
+
tableName: n.data,
|
|
2954
|
+
tileFormat: n.tileFormat ?? ds.BINARY,
|
|
2955
|
+
spatialDataType: n.spatialDataType ?? "geo"
|
|
2949
2956
|
});
|
|
2950
2957
|
},
|
|
2951
2958
|
raster: () => {
|
|
2952
|
-
const
|
|
2953
|
-
return
|
|
2954
|
-
...
|
|
2959
|
+
const n = r;
|
|
2960
|
+
return n.rasterMetadata ? new cs({
|
|
2961
|
+
...n,
|
|
2955
2962
|
accessToken: "",
|
|
2956
|
-
tableName:
|
|
2963
|
+
tableName: n.data,
|
|
2957
2964
|
spatialDataType: "quadbin",
|
|
2958
|
-
rasterMetadata:
|
|
2965
|
+
rasterMetadata: n.rasterMetadata
|
|
2959
2966
|
}) : null;
|
|
2960
2967
|
}
|
|
2961
|
-
}, t = r.type.split("+")[0],
|
|
2962
|
-
return
|
|
2968
|
+
}, t = r.type.split("+")[0], s = e[t];
|
|
2969
|
+
return s == null ? void 0 : s();
|
|
2963
2970
|
}
|
|
2964
2971
|
function ie(r, e) {
|
|
2965
2972
|
const t = zn(e);
|
|
2966
2973
|
return re(() => {
|
|
2967
|
-
const
|
|
2968
|
-
return !
|
|
2974
|
+
const s = t == null ? void 0 : t.widgets;
|
|
2975
|
+
return !s || !r ? null : (s.props.accessToken = r, s);
|
|
2969
2976
|
}, [r, t]);
|
|
2970
2977
|
}
|
|
2971
2978
|
function ae(r, e) {
|
|
2972
|
-
const t = D(5),
|
|
2973
|
-
let
|
|
2979
|
+
const t = D(5), s = Qn(r);
|
|
2980
|
+
let n;
|
|
2974
2981
|
e: {
|
|
2975
2982
|
if (!(e != null && e.length)) {
|
|
2976
|
-
|
|
2983
|
+
n = s;
|
|
2977
2984
|
break e;
|
|
2978
2985
|
}
|
|
2979
2986
|
let o;
|
|
2980
|
-
if (t[0] !== e || t[1] !==
|
|
2987
|
+
if (t[0] !== e || t[1] !== s) {
|
|
2981
2988
|
const i = e.reduce(Kn, {});
|
|
2982
2989
|
let a;
|
|
2983
|
-
t[3] !==
|
|
2990
|
+
t[3] !== s ? (a = s ?? {}, t[3] = s, t[4] = a) : a = t[4], o = ue(a, i), t[0] = e, t[1] = s, t[2] = o;
|
|
2984
2991
|
} else
|
|
2985
2992
|
o = t[2];
|
|
2986
|
-
|
|
2993
|
+
n = o;
|
|
2987
2994
|
}
|
|
2988
|
-
return
|
|
2995
|
+
return n;
|
|
2989
2996
|
}
|
|
2990
2997
|
function Kn(r, e) {
|
|
2991
2998
|
return vt(r, e);
|
|
@@ -2993,8 +3000,8 @@ function Kn(r, e) {
|
|
|
2993
3000
|
function Zn(r) {
|
|
2994
3001
|
const e = D(19), {
|
|
2995
3002
|
accessToken: t,
|
|
2996
|
-
sourceId:
|
|
2997
|
-
widgetProps:
|
|
3003
|
+
sourceId: s,
|
|
3004
|
+
widgetProps: n,
|
|
2998
3005
|
additionalFilter: o,
|
|
2999
3006
|
useQueryProps: i
|
|
3000
3007
|
} = r;
|
|
@@ -3005,45 +3012,45 @@ function Zn(r) {
|
|
|
3005
3012
|
enabled: l,
|
|
3006
3013
|
...c
|
|
3007
3014
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3008
|
-
const
|
|
3015
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3009
3016
|
let d;
|
|
3010
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3011
|
-
let
|
|
3012
|
-
e[10] !== p || e[11] !==
|
|
3017
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["categories", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3018
|
+
let g;
|
|
3019
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3013
3020
|
const {
|
|
3014
3021
|
signal: b
|
|
3015
3022
|
} = f;
|
|
3016
|
-
return
|
|
3017
|
-
...
|
|
3023
|
+
return y == null ? void 0 : y.getCategories({
|
|
3024
|
+
...n,
|
|
3018
3025
|
filters: p,
|
|
3019
3026
|
signal: b
|
|
3020
3027
|
});
|
|
3021
|
-
}, e[10] = p, e[11] =
|
|
3022
|
-
const
|
|
3028
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3029
|
+
const h = !!y && m;
|
|
3023
3030
|
let T;
|
|
3024
|
-
return e[14] !== d || e[15] !==
|
|
3031
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3025
3032
|
queryKey: d,
|
|
3026
|
-
queryFn:
|
|
3027
|
-
enabled:
|
|
3033
|
+
queryFn: g,
|
|
3034
|
+
enabled: h,
|
|
3028
3035
|
...c
|
|
3029
|
-
}, e[14] = d, e[15] =
|
|
3036
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3030
3037
|
}
|
|
3031
3038
|
function Yr(r) {
|
|
3032
3039
|
const e = D(6);
|
|
3033
|
-
let t,
|
|
3040
|
+
let t, s;
|
|
3034
3041
|
e[0] !== r ? ({
|
|
3035
3042
|
children: t,
|
|
3036
|
-
...
|
|
3037
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3038
|
-
const
|
|
3043
|
+
...s
|
|
3044
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3045
|
+
const n = Zn(s);
|
|
3039
3046
|
let o;
|
|
3040
|
-
return e[3] !== t || e[4] !==
|
|
3047
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3041
3048
|
}
|
|
3042
3049
|
function Yn(r) {
|
|
3043
3050
|
const e = D(19), {
|
|
3044
3051
|
accessToken: t,
|
|
3045
|
-
sourceId:
|
|
3046
|
-
widgetProps:
|
|
3052
|
+
sourceId: s,
|
|
3053
|
+
widgetProps: n,
|
|
3047
3054
|
additionalFilter: o,
|
|
3048
3055
|
useQueryProps: i
|
|
3049
3056
|
} = r;
|
|
@@ -3054,45 +3061,45 @@ function Yn(r) {
|
|
|
3054
3061
|
enabled: l,
|
|
3055
3062
|
...c
|
|
3056
3063
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3057
|
-
const
|
|
3064
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3058
3065
|
let d;
|
|
3059
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3060
|
-
let
|
|
3061
|
-
e[10] !== p || e[11] !==
|
|
3066
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["features", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3067
|
+
let g;
|
|
3068
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3062
3069
|
const {
|
|
3063
3070
|
signal: b
|
|
3064
3071
|
} = f;
|
|
3065
|
-
return
|
|
3066
|
-
...
|
|
3072
|
+
return y == null ? void 0 : y.getFeatures({
|
|
3073
|
+
...n,
|
|
3067
3074
|
filters: p,
|
|
3068
3075
|
signal: b
|
|
3069
3076
|
});
|
|
3070
|
-
}, e[10] = p, e[11] =
|
|
3071
|
-
const
|
|
3077
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3078
|
+
const h = !!y && m;
|
|
3072
3079
|
let T;
|
|
3073
|
-
return e[14] !== d || e[15] !==
|
|
3080
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3074
3081
|
queryKey: d,
|
|
3075
|
-
queryFn:
|
|
3076
|
-
enabled:
|
|
3082
|
+
queryFn: g,
|
|
3083
|
+
enabled: h,
|
|
3077
3084
|
...c
|
|
3078
|
-
}, e[14] = d, e[15] =
|
|
3085
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3079
3086
|
}
|
|
3080
3087
|
function Xr(r) {
|
|
3081
3088
|
const e = D(6);
|
|
3082
|
-
let t,
|
|
3089
|
+
let t, s;
|
|
3083
3090
|
e[0] !== r ? ({
|
|
3084
3091
|
children: t,
|
|
3085
|
-
...
|
|
3086
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3087
|
-
const
|
|
3092
|
+
...s
|
|
3093
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3094
|
+
const n = Yn(s);
|
|
3088
3095
|
let o;
|
|
3089
|
-
return e[3] !== t || e[4] !==
|
|
3096
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3090
3097
|
}
|
|
3091
3098
|
function Xn(r) {
|
|
3092
3099
|
const e = D(19), {
|
|
3093
3100
|
accessToken: t,
|
|
3094
|
-
sourceId:
|
|
3095
|
-
widgetProps:
|
|
3101
|
+
sourceId: s,
|
|
3102
|
+
widgetProps: n,
|
|
3096
3103
|
additionalFilter: o,
|
|
3097
3104
|
useQueryProps: i
|
|
3098
3105
|
} = r;
|
|
@@ -3103,45 +3110,45 @@ function Xn(r) {
|
|
|
3103
3110
|
enabled: l,
|
|
3104
3111
|
...c
|
|
3105
3112
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3106
|
-
const
|
|
3113
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3107
3114
|
let d;
|
|
3108
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3109
|
-
let
|
|
3110
|
-
e[10] !== p || e[11] !==
|
|
3115
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["formula", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3116
|
+
let g;
|
|
3117
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3111
3118
|
const {
|
|
3112
3119
|
signal: b
|
|
3113
3120
|
} = f;
|
|
3114
|
-
return
|
|
3115
|
-
...
|
|
3121
|
+
return y == null ? void 0 : y.getFormula({
|
|
3122
|
+
...n,
|
|
3116
3123
|
filters: p,
|
|
3117
3124
|
signal: b
|
|
3118
3125
|
});
|
|
3119
|
-
}, e[10] = p, e[11] =
|
|
3120
|
-
const
|
|
3126
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3127
|
+
const h = !!y && m;
|
|
3121
3128
|
let T;
|
|
3122
|
-
return e[14] !== d || e[15] !==
|
|
3129
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3123
3130
|
queryKey: d,
|
|
3124
|
-
queryFn:
|
|
3125
|
-
enabled:
|
|
3131
|
+
queryFn: g,
|
|
3132
|
+
enabled: h,
|
|
3126
3133
|
...c
|
|
3127
|
-
}, e[14] = d, e[15] =
|
|
3134
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3128
3135
|
}
|
|
3129
3136
|
function Jr(r) {
|
|
3130
3137
|
const e = D(6);
|
|
3131
|
-
let t,
|
|
3138
|
+
let t, s;
|
|
3132
3139
|
e[0] !== r ? ({
|
|
3133
3140
|
children: t,
|
|
3134
|
-
...
|
|
3135
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3136
|
-
const
|
|
3141
|
+
...s
|
|
3142
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3143
|
+
const n = Xn(s);
|
|
3137
3144
|
let o;
|
|
3138
|
-
return e[3] !== t || e[4] !==
|
|
3145
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3139
3146
|
}
|
|
3140
3147
|
function Jn(r) {
|
|
3141
3148
|
const e = D(19), {
|
|
3142
3149
|
accessToken: t,
|
|
3143
|
-
sourceId:
|
|
3144
|
-
widgetProps:
|
|
3150
|
+
sourceId: s,
|
|
3151
|
+
widgetProps: n,
|
|
3145
3152
|
additionalFilter: o,
|
|
3146
3153
|
useQueryProps: i
|
|
3147
3154
|
} = r;
|
|
@@ -3152,45 +3159,45 @@ function Jn(r) {
|
|
|
3152
3159
|
enabled: l,
|
|
3153
3160
|
...c
|
|
3154
3161
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3155
|
-
const
|
|
3162
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3156
3163
|
let d;
|
|
3157
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3158
|
-
let
|
|
3159
|
-
e[10] !== p || e[11] !==
|
|
3164
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["histogram", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3165
|
+
let g;
|
|
3166
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3160
3167
|
const {
|
|
3161
3168
|
signal: b
|
|
3162
3169
|
} = f;
|
|
3163
|
-
return
|
|
3164
|
-
...
|
|
3170
|
+
return y == null ? void 0 : y.getHistogram({
|
|
3171
|
+
...n,
|
|
3165
3172
|
filters: p,
|
|
3166
3173
|
signal: b
|
|
3167
3174
|
});
|
|
3168
|
-
}, e[10] = p, e[11] =
|
|
3169
|
-
const
|
|
3175
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3176
|
+
const h = !!y && m;
|
|
3170
3177
|
let T;
|
|
3171
|
-
return e[14] !== d || e[15] !==
|
|
3178
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3172
3179
|
queryKey: d,
|
|
3173
|
-
queryFn:
|
|
3174
|
-
enabled:
|
|
3180
|
+
queryFn: g,
|
|
3181
|
+
enabled: h,
|
|
3175
3182
|
...c
|
|
3176
|
-
}, e[14] = d, e[15] =
|
|
3183
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3177
3184
|
}
|
|
3178
3185
|
function eo(r) {
|
|
3179
3186
|
const e = D(6);
|
|
3180
|
-
let t,
|
|
3187
|
+
let t, s;
|
|
3181
3188
|
e[0] !== r ? ({
|
|
3182
3189
|
children: t,
|
|
3183
|
-
...
|
|
3184
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3185
|
-
const
|
|
3190
|
+
...s
|
|
3191
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3192
|
+
const n = Jn(s);
|
|
3186
3193
|
let o;
|
|
3187
|
-
return e[3] !== t || e[4] !==
|
|
3194
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3188
3195
|
}
|
|
3189
3196
|
function er(r) {
|
|
3190
3197
|
const e = D(19), {
|
|
3191
3198
|
accessToken: t,
|
|
3192
|
-
sourceId:
|
|
3193
|
-
widgetProps:
|
|
3199
|
+
sourceId: s,
|
|
3200
|
+
widgetProps: n,
|
|
3194
3201
|
additionalFilter: o,
|
|
3195
3202
|
useQueryProps: i
|
|
3196
3203
|
} = r;
|
|
@@ -3201,45 +3208,45 @@ function er(r) {
|
|
|
3201
3208
|
enabled: l,
|
|
3202
3209
|
...c
|
|
3203
3210
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3204
|
-
const
|
|
3211
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3205
3212
|
let d;
|
|
3206
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3207
|
-
let
|
|
3208
|
-
e[10] !== p || e[11] !==
|
|
3213
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["range", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3214
|
+
let g;
|
|
3215
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3209
3216
|
const {
|
|
3210
3217
|
signal: b
|
|
3211
3218
|
} = f;
|
|
3212
|
-
return
|
|
3213
|
-
...
|
|
3219
|
+
return y == null ? void 0 : y.getRange({
|
|
3220
|
+
...n,
|
|
3214
3221
|
filters: p,
|
|
3215
3222
|
signal: b
|
|
3216
3223
|
});
|
|
3217
|
-
}, e[10] = p, e[11] =
|
|
3218
|
-
const
|
|
3224
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3225
|
+
const h = !!y && m;
|
|
3219
3226
|
let T;
|
|
3220
|
-
return e[14] !== d || e[15] !==
|
|
3227
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3221
3228
|
queryKey: d,
|
|
3222
|
-
queryFn:
|
|
3223
|
-
enabled:
|
|
3229
|
+
queryFn: g,
|
|
3230
|
+
enabled: h,
|
|
3224
3231
|
...c
|
|
3225
|
-
}, e[14] = d, e[15] =
|
|
3232
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3226
3233
|
}
|
|
3227
3234
|
function to(r) {
|
|
3228
3235
|
const e = D(6);
|
|
3229
|
-
let t,
|
|
3236
|
+
let t, s;
|
|
3230
3237
|
e[0] !== r ? ({
|
|
3231
3238
|
children: t,
|
|
3232
|
-
...
|
|
3233
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3234
|
-
const
|
|
3239
|
+
...s
|
|
3240
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3241
|
+
const n = er(s);
|
|
3235
3242
|
let o;
|
|
3236
|
-
return e[3] !== t || e[4] !==
|
|
3243
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3237
3244
|
}
|
|
3238
3245
|
function tr(r) {
|
|
3239
3246
|
const e = D(19), {
|
|
3240
3247
|
accessToken: t,
|
|
3241
|
-
sourceId:
|
|
3242
|
-
widgetProps:
|
|
3248
|
+
sourceId: s,
|
|
3249
|
+
widgetProps: n,
|
|
3243
3250
|
additionalFilter: o,
|
|
3244
3251
|
useQueryProps: i
|
|
3245
3252
|
} = r;
|
|
@@ -3250,45 +3257,45 @@ function tr(r) {
|
|
|
3250
3257
|
enabled: l,
|
|
3251
3258
|
...c
|
|
3252
3259
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3253
|
-
const
|
|
3260
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3254
3261
|
let d;
|
|
3255
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3256
|
-
let
|
|
3257
|
-
e[10] !== p || e[11] !==
|
|
3262
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["scatter", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3263
|
+
let g;
|
|
3264
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3258
3265
|
const {
|
|
3259
3266
|
signal: b
|
|
3260
3267
|
} = f;
|
|
3261
|
-
return
|
|
3262
|
-
...
|
|
3268
|
+
return y == null ? void 0 : y.getScatter({
|
|
3269
|
+
...n,
|
|
3263
3270
|
filters: p,
|
|
3264
3271
|
signal: b
|
|
3265
3272
|
});
|
|
3266
|
-
}, e[10] = p, e[11] =
|
|
3267
|
-
const
|
|
3273
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3274
|
+
const h = !!y && m;
|
|
3268
3275
|
let T;
|
|
3269
|
-
return e[14] !== d || e[15] !==
|
|
3276
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3270
3277
|
queryKey: d,
|
|
3271
|
-
queryFn:
|
|
3272
|
-
enabled:
|
|
3278
|
+
queryFn: g,
|
|
3279
|
+
enabled: h,
|
|
3273
3280
|
...c
|
|
3274
|
-
}, e[14] = d, e[15] =
|
|
3281
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3275
3282
|
}
|
|
3276
3283
|
function so(r) {
|
|
3277
3284
|
const e = D(6);
|
|
3278
|
-
let t,
|
|
3285
|
+
let t, s;
|
|
3279
3286
|
e[0] !== r ? ({
|
|
3280
3287
|
children: t,
|
|
3281
|
-
...
|
|
3282
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3283
|
-
const
|
|
3288
|
+
...s
|
|
3289
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3290
|
+
const n = tr(s);
|
|
3284
3291
|
let o;
|
|
3285
|
-
return e[3] !== t || e[4] !==
|
|
3292
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3286
3293
|
}
|
|
3287
3294
|
function sr(r) {
|
|
3288
3295
|
const e = D(19), {
|
|
3289
3296
|
accessToken: t,
|
|
3290
|
-
sourceId:
|
|
3291
|
-
widgetProps:
|
|
3297
|
+
sourceId: s,
|
|
3298
|
+
widgetProps: n,
|
|
3292
3299
|
additionalFilter: o,
|
|
3293
3300
|
useQueryProps: i
|
|
3294
3301
|
} = r;
|
|
@@ -3299,45 +3306,45 @@ function sr(r) {
|
|
|
3299
3306
|
enabled: l,
|
|
3300
3307
|
...c
|
|
3301
3308
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3302
|
-
const
|
|
3309
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3303
3310
|
let d;
|
|
3304
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3305
|
-
let
|
|
3306
|
-
e[10] !== p || e[11] !==
|
|
3311
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["table", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3312
|
+
let g;
|
|
3313
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3307
3314
|
const {
|
|
3308
3315
|
signal: b
|
|
3309
3316
|
} = f;
|
|
3310
|
-
return
|
|
3311
|
-
...
|
|
3317
|
+
return y == null ? void 0 : y.getTable({
|
|
3318
|
+
...n,
|
|
3312
3319
|
filters: p,
|
|
3313
3320
|
signal: b
|
|
3314
3321
|
});
|
|
3315
|
-
}, e[10] = p, e[11] =
|
|
3316
|
-
const
|
|
3322
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3323
|
+
const h = !!y && m;
|
|
3317
3324
|
let T;
|
|
3318
|
-
return e[14] !== d || e[15] !==
|
|
3325
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3319
3326
|
queryKey: d,
|
|
3320
|
-
queryFn:
|
|
3321
|
-
enabled:
|
|
3327
|
+
queryFn: g,
|
|
3328
|
+
enabled: h,
|
|
3322
3329
|
...c
|
|
3323
|
-
}, e[14] = d, e[15] =
|
|
3330
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3324
3331
|
}
|
|
3325
3332
|
function no(r) {
|
|
3326
3333
|
const e = D(6);
|
|
3327
|
-
let t,
|
|
3334
|
+
let t, s;
|
|
3328
3335
|
e[0] !== r ? ({
|
|
3329
3336
|
children: t,
|
|
3330
|
-
...
|
|
3331
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3332
|
-
const
|
|
3337
|
+
...s
|
|
3338
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3339
|
+
const n = sr(s);
|
|
3333
3340
|
let o;
|
|
3334
|
-
return e[3] !== t || e[4] !==
|
|
3341
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3335
3342
|
}
|
|
3336
3343
|
function nr(r) {
|
|
3337
3344
|
const e = D(19), {
|
|
3338
3345
|
accessToken: t,
|
|
3339
|
-
sourceId:
|
|
3340
|
-
widgetProps:
|
|
3346
|
+
sourceId: s,
|
|
3347
|
+
widgetProps: n,
|
|
3341
3348
|
additionalFilter: o,
|
|
3342
3349
|
useQueryProps: i
|
|
3343
3350
|
} = r;
|
|
@@ -3348,92 +3355,92 @@ function nr(r) {
|
|
|
3348
3355
|
enabled: l,
|
|
3349
3356
|
...c
|
|
3350
3357
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3351
|
-
const
|
|
3358
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3352
3359
|
let d;
|
|
3353
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3354
|
-
let
|
|
3355
|
-
e[10] !== p || e[11] !==
|
|
3360
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["timeSeries", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3361
|
+
let g;
|
|
3362
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3356
3363
|
const {
|
|
3357
3364
|
signal: b
|
|
3358
3365
|
} = f;
|
|
3359
|
-
return
|
|
3360
|
-
...
|
|
3366
|
+
return y == null ? void 0 : y.getTimeSeries({
|
|
3367
|
+
...n,
|
|
3361
3368
|
filters: p,
|
|
3362
3369
|
signal: b
|
|
3363
3370
|
});
|
|
3364
|
-
}, e[10] = p, e[11] =
|
|
3365
|
-
const
|
|
3371
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3372
|
+
const h = !!y && m;
|
|
3366
3373
|
let T;
|
|
3367
|
-
return e[14] !== d || e[15] !==
|
|
3374
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3368
3375
|
queryKey: d,
|
|
3369
|
-
queryFn:
|
|
3370
|
-
enabled:
|
|
3376
|
+
queryFn: g,
|
|
3377
|
+
enabled: h,
|
|
3371
3378
|
...c
|
|
3372
|
-
}, e[14] = d, e[15] =
|
|
3379
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3373
3380
|
}
|
|
3374
3381
|
function ro(r) {
|
|
3375
3382
|
const e = D(6);
|
|
3376
|
-
let t,
|
|
3383
|
+
let t, s;
|
|
3377
3384
|
e[0] !== r ? ({
|
|
3378
3385
|
children: t,
|
|
3379
|
-
...
|
|
3380
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3381
|
-
const
|
|
3386
|
+
...s
|
|
3387
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3388
|
+
const n = nr(s);
|
|
3382
3389
|
let o;
|
|
3383
|
-
return e[3] !== t || e[4] !==
|
|
3390
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3384
3391
|
}
|
|
3385
3392
|
const oo = "ps";
|
|
3386
3393
|
function io(r) {
|
|
3387
3394
|
const e = D(13), {
|
|
3388
3395
|
children: t,
|
|
3389
|
-
maps:
|
|
3390
|
-
lassoTools:
|
|
3396
|
+
maps: s,
|
|
3397
|
+
lassoTools: n,
|
|
3391
3398
|
measureTools: o
|
|
3392
3399
|
} = r;
|
|
3393
3400
|
let i;
|
|
3394
|
-
e[0] !==
|
|
3401
|
+
e[0] !== n ? (i = n === void 0 ? [] : n, e[0] = n, e[1] = i) : i = e[1];
|
|
3395
3402
|
const a = i;
|
|
3396
3403
|
let l;
|
|
3397
3404
|
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
3398
3405
|
const c = l;
|
|
3399
|
-
let g;
|
|
3400
|
-
e[4] !== t || e[5] !== c ? (g = /* @__PURE__ */ N(fn, { values: c, children: t }), e[4] = t, e[5] = c, e[6] = g) : g = e[6];
|
|
3401
|
-
let p;
|
|
3402
|
-
e[7] !== a || e[8] !== g ? (p = /* @__PURE__ */ N(Ws, { values: a, children: g }), e[7] = a, e[8] = g, e[9] = p) : p = e[9];
|
|
3403
3406
|
let m;
|
|
3404
|
-
|
|
3407
|
+
e[4] !== t || e[5] !== c ? (m = /* @__PURE__ */ N(fn, { values: c, children: t }), e[4] = t, e[5] = c, e[6] = m) : m = e[6];
|
|
3408
|
+
let p;
|
|
3409
|
+
e[7] !== a || e[8] !== m ? (p = /* @__PURE__ */ N(Ws, { values: a, children: m }), e[7] = a, e[8] = m, e[9] = p) : p = e[9];
|
|
3410
|
+
let y;
|
|
3411
|
+
return e[10] !== s || e[11] !== p ? (y = /* @__PURE__ */ N(Bs, { values: s, children: p }), e[10] = s, e[11] = p, e[12] = y) : y = e[12], y;
|
|
3405
3412
|
}
|
|
3406
3413
|
function ao(r, e) {
|
|
3407
|
-
const t = pe((c) => c.layers),
|
|
3414
|
+
const t = pe((c) => c.layers), s = pe((c) => c.setLayer), n = re(() => kt(r.map((c) => t[c]).filter((c) => !!(c != null && c.legend))).toReversed(), [t, r]), o = re(() => n.map(e), [e, n]), i = Q(({
|
|
3408
3415
|
id: c,
|
|
3409
|
-
visible:
|
|
3416
|
+
visible: m,
|
|
3410
3417
|
...p
|
|
3411
3418
|
}) => {
|
|
3412
|
-
|
|
3419
|
+
s(c, {
|
|
3413
3420
|
props: {
|
|
3414
|
-
visible:
|
|
3421
|
+
visible: m
|
|
3415
3422
|
},
|
|
3416
3423
|
legend: p
|
|
3417
3424
|
});
|
|
3418
|
-
}, [
|
|
3425
|
+
}, [s]), a = Q(({
|
|
3419
3426
|
id: c,
|
|
3420
|
-
collapsed:
|
|
3427
|
+
collapsed: m
|
|
3421
3428
|
}) => {
|
|
3422
|
-
|
|
3429
|
+
s(c, {
|
|
3423
3430
|
legend: {
|
|
3424
|
-
collapsed:
|
|
3431
|
+
collapsed: m
|
|
3425
3432
|
}
|
|
3426
3433
|
});
|
|
3427
|
-
}, [
|
|
3434
|
+
}, [s]), l = Q(({
|
|
3428
3435
|
id: c,
|
|
3429
|
-
opacity:
|
|
3436
|
+
opacity: m
|
|
3430
3437
|
}) => {
|
|
3431
|
-
|
|
3438
|
+
s(c, {
|
|
3432
3439
|
props: {
|
|
3433
|
-
opacity:
|
|
3440
|
+
opacity: m
|
|
3434
3441
|
}
|
|
3435
3442
|
});
|
|
3436
|
-
}, [
|
|
3443
|
+
}, [s]);
|
|
3437
3444
|
return {
|
|
3438
3445
|
legend: o,
|
|
3439
3446
|
onChangeVisibility: i,
|
|
@@ -3444,46 +3451,46 @@ function ao(r, e) {
|
|
|
3444
3451
|
function lo({
|
|
3445
3452
|
mapId: r
|
|
3446
3453
|
}) {
|
|
3447
|
-
const [e, t] = oe(void 0), [
|
|
3454
|
+
const [e, t] = oe(void 0), [s, n] = oe(!1), o = $((h) => {
|
|
3448
3455
|
var T;
|
|
3449
|
-
return (T =
|
|
3450
|
-
}), i = $((
|
|
3456
|
+
return (T = h.maps[r]) == null ? void 0 : T.basemap;
|
|
3457
|
+
}), i = $((h) => h.getDeckInstance), a = $((h) => h.getOverlayInstance), l = $((h) => h.areLayersLoaded[r]), m = $((h) => {
|
|
3451
3458
|
var T;
|
|
3452
|
-
return (T =
|
|
3459
|
+
return (T = h.maps[r]) == null ? void 0 : T.isLoaded;
|
|
3453
3460
|
}) && l, {
|
|
3454
3461
|
type: p
|
|
3455
|
-
} = ye[o],
|
|
3456
|
-
const
|
|
3462
|
+
} = ye[o], y = p === te.googleMaps, d = Q(async () => {
|
|
3463
|
+
const h = i(r), T = a(r);
|
|
3457
3464
|
try {
|
|
3458
3465
|
const f = document.createElement("canvas");
|
|
3459
|
-
f.width =
|
|
3466
|
+
f.width = h.width ?? 0, f.height = h.height ?? 0;
|
|
3460
3467
|
const b = f.getContext("2d");
|
|
3461
|
-
if (
|
|
3468
|
+
if (y) {
|
|
3462
3469
|
const E = T;
|
|
3463
3470
|
if (E.getRenderingType() !== "RASTER")
|
|
3464
3471
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3465
3472
|
const w = await gs(E.getDiv(), {
|
|
3466
3473
|
useCORS: !0
|
|
3467
3474
|
});
|
|
3468
|
-
b == null || b.drawImage(w, 0, 0,
|
|
3475
|
+
b == null || b.drawImage(w, 0, 0, h.width, h.height);
|
|
3469
3476
|
} else {
|
|
3470
3477
|
const E = T;
|
|
3471
|
-
E.redraw(), b == null || b.drawImage(E.getMap().getCanvas(), 0, 0,
|
|
3478
|
+
E.redraw(), b == null || b.drawImage(E.getMap().getCanvas(), 0, 0, h.width, h.height);
|
|
3472
3479
|
}
|
|
3473
|
-
|
|
3480
|
+
h == null || h.redraw("screenshot"), b == null || b.drawImage(h.getCanvas(), 0, 0, h.width, h.height);
|
|
3474
3481
|
const S = f.toDataURL();
|
|
3475
3482
|
t(S);
|
|
3476
3483
|
} catch (f) {
|
|
3477
3484
|
console.error(f);
|
|
3478
3485
|
} finally {
|
|
3479
|
-
|
|
3486
|
+
n(!1);
|
|
3480
3487
|
}
|
|
3481
|
-
}, [i,
|
|
3488
|
+
}, [i, y, r, a]);
|
|
3482
3489
|
return {
|
|
3483
3490
|
takeScreenshot: Q(() => {
|
|
3484
|
-
|
|
3485
|
-
}, [d,
|
|
3486
|
-
isLoading:
|
|
3491
|
+
n(!0), m && d();
|
|
3492
|
+
}, [d, m]),
|
|
3493
|
+
isLoading: s,
|
|
3487
3494
|
screenshot: e
|
|
3488
3495
|
};
|
|
3489
3496
|
}
|
|
@@ -3491,11 +3498,11 @@ function co(r) {
|
|
|
3491
3498
|
const e = D(11), {
|
|
3492
3499
|
mapId: t
|
|
3493
3500
|
} = r;
|
|
3494
|
-
let
|
|
3495
|
-
e[0] !== t ? (
|
|
3501
|
+
let s;
|
|
3502
|
+
e[0] !== t ? (s = {
|
|
3496
3503
|
mapId: t
|
|
3497
|
-
}, e[0] = t, e[1] =
|
|
3498
|
-
const
|
|
3504
|
+
}, e[0] = t, e[1] = s) : s = e[1];
|
|
3505
|
+
const n = rr(s);
|
|
3499
3506
|
let o;
|
|
3500
3507
|
e[2] !== t ? (o = {
|
|
3501
3508
|
mapId: t
|
|
@@ -3505,30 +3512,30 @@ function co(r) {
|
|
|
3505
3512
|
e[4] !== t ? (a = {
|
|
3506
3513
|
mapId: t
|
|
3507
3514
|
}, e[4] = t, e[5] = a) : a = e[5];
|
|
3508
|
-
const l = lr(a), c = i ?? l ??
|
|
3509
|
-
let
|
|
3510
|
-
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !==
|
|
3515
|
+
const l = lr(a), c = i ?? l ?? n;
|
|
3516
|
+
let m;
|
|
3517
|
+
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !== n ? (m = {
|
|
3511
3518
|
spatialFilter: c,
|
|
3512
3519
|
staticSpatialFilter: l,
|
|
3513
3520
|
lassoToolsSpatialFilter: i,
|
|
3514
|
-
viewportSpatialFilter:
|
|
3515
|
-
}, e[6] = i, e[7] = l, e[8] = c, e[9] =
|
|
3521
|
+
viewportSpatialFilter: n
|
|
3522
|
+
}, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] = m) : m = e[10], m;
|
|
3516
3523
|
}
|
|
3517
3524
|
function rr(r) {
|
|
3518
3525
|
const e = D(4), {
|
|
3519
3526
|
mapId: t
|
|
3520
3527
|
} = r;
|
|
3521
|
-
let
|
|
3522
|
-
e[0] !== t ? (
|
|
3523
|
-
const
|
|
3528
|
+
let s;
|
|
3529
|
+
e[0] !== t ? (s = (i) => i.viewports[t], e[0] = t, e[1] = s) : s = e[1];
|
|
3530
|
+
const n = $(s);
|
|
3524
3531
|
let o;
|
|
3525
3532
|
e: {
|
|
3526
|
-
if (!
|
|
3533
|
+
if (!n) {
|
|
3527
3534
|
o = void 0;
|
|
3528
3535
|
break e;
|
|
3529
3536
|
}
|
|
3530
3537
|
let i;
|
|
3531
|
-
e[2] !==
|
|
3538
|
+
e[2] !== n ? (i = ms(n.getBounds()), e[2] = n, e[3] = i) : i = e[3], o = i;
|
|
3532
3539
|
}
|
|
3533
3540
|
return o;
|
|
3534
3541
|
}
|
|
@@ -3536,24 +3543,24 @@ function or(r) {
|
|
|
3536
3543
|
const e = D(5), {
|
|
3537
3544
|
mapId: t
|
|
3538
3545
|
} = r;
|
|
3539
|
-
let
|
|
3540
|
-
e[0] !== t ? (
|
|
3546
|
+
let s;
|
|
3547
|
+
e[0] !== t ? (s = (i) => {
|
|
3541
3548
|
var a;
|
|
3542
3549
|
return (a = i.data[t]) == null ? void 0 : a.values;
|
|
3543
|
-
}, e[0] = t, e[1] =
|
|
3544
|
-
const
|
|
3550
|
+
}, e[0] = t, e[1] = s) : s = e[1];
|
|
3551
|
+
const n = G(s);
|
|
3545
3552
|
let o;
|
|
3546
3553
|
e: {
|
|
3547
3554
|
let i;
|
|
3548
|
-
if (e[2] !==
|
|
3555
|
+
if (e[2] !== n) {
|
|
3549
3556
|
const a = _t({
|
|
3550
|
-
values:
|
|
3557
|
+
values: n
|
|
3551
3558
|
}).filter(ar);
|
|
3552
3559
|
if (!(a != null && a.length)) {
|
|
3553
3560
|
o = void 0;
|
|
3554
3561
|
break e;
|
|
3555
3562
|
}
|
|
3556
|
-
i = gt(a.map(ir)), e[2] =
|
|
3563
|
+
i = gt(a.map(ir)), e[2] = n, e[3] = i, e[4] = o;
|
|
3557
3564
|
} else
|
|
3558
3565
|
i = e[3], o = e[4];
|
|
3559
3566
|
o = i.geometry;
|
|
@@ -3570,19 +3577,19 @@ function lr(r) {
|
|
|
3570
3577
|
const e = D(4), {
|
|
3571
3578
|
mapId: t
|
|
3572
3579
|
} = r;
|
|
3573
|
-
let
|
|
3574
|
-
e[0] !== t ? (
|
|
3575
|
-
const
|
|
3580
|
+
let s;
|
|
3581
|
+
e[0] !== t ? (s = (i) => i.spatialFilter[t], e[0] = t, e[1] = s) : s = e[1];
|
|
3582
|
+
const n = $(s);
|
|
3576
3583
|
let o;
|
|
3577
3584
|
e: {
|
|
3578
|
-
if (!
|
|
3585
|
+
if (!n || !Object.keys(n).length) {
|
|
3579
3586
|
o = void 0;
|
|
3580
3587
|
break e;
|
|
3581
3588
|
}
|
|
3582
3589
|
let i;
|
|
3583
|
-
if (e[2] !==
|
|
3584
|
-
const a = Object.values(
|
|
3585
|
-
i = gt(a), e[2] =
|
|
3590
|
+
if (e[2] !== n) {
|
|
3591
|
+
const a = Object.values(n).filter(ur).flatMap(cr);
|
|
3592
|
+
i = gt(a), e[2] = n, e[3] = i;
|
|
3586
3593
|
} else
|
|
3587
3594
|
i = e[3];
|
|
3588
3595
|
o = i.geometry;
|
|
@@ -3617,19 +3624,19 @@ function uo({
|
|
|
3617
3624
|
properties: r,
|
|
3618
3625
|
formatters: e = {},
|
|
3619
3626
|
includeColumns: t = Object.keys(r),
|
|
3620
|
-
locale:
|
|
3621
|
-
showColumnName:
|
|
3627
|
+
locale: s = "en-US",
|
|
3628
|
+
showColumnName: n = !0,
|
|
3622
3629
|
title: o,
|
|
3623
3630
|
getColumnName: i = yr,
|
|
3624
3631
|
getFieldHtml: a = fr,
|
|
3625
3632
|
getTitle: l = dr,
|
|
3626
3633
|
getValue: c = pr
|
|
3627
3634
|
}) {
|
|
3628
|
-
const
|
|
3629
|
-
const
|
|
3635
|
+
const m = o ? l(o) : "", y = t.reduce((d, g) => {
|
|
3636
|
+
const h = e[g], T = r[g], f = c(T, s, h), b = n ? i(g) : "";
|
|
3630
3637
|
return d + a(b, f);
|
|
3631
3638
|
}, "");
|
|
3632
|
-
return
|
|
3639
|
+
return m + y;
|
|
3633
3640
|
}
|
|
3634
3641
|
function dr(r) {
|
|
3635
3642
|
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
@@ -3651,13 +3658,13 @@ function yr(r) {
|
|
|
3651
3658
|
return `<strong>${r}</strong>: `;
|
|
3652
3659
|
}
|
|
3653
3660
|
function fo(r) {
|
|
3654
|
-
var e, t,
|
|
3661
|
+
var e, t, s, n, o, i, a, l;
|
|
3655
3662
|
return {
|
|
3656
3663
|
collapsed: (e = r.legend) == null ? void 0 : e.collapsed,
|
|
3657
3664
|
collapsible: (t = r.legend) == null ? void 0 : t.collapsible,
|
|
3658
|
-
helperText: (
|
|
3665
|
+
helperText: (s = r.legend) == null ? void 0 : s.helperText,
|
|
3659
3666
|
id: r.props.id,
|
|
3660
|
-
legend: (
|
|
3667
|
+
legend: (n = r.legend) == null ? void 0 : n.variables,
|
|
3661
3668
|
maxZoom: (o = r.legend) == null ? void 0 : o.maxZoom,
|
|
3662
3669
|
minZoom: (i = r.legend) == null ? void 0 : i.minZoom,
|
|
3663
3670
|
opacity: r.props.opacity ?? 1,
|
|
@@ -3670,37 +3677,37 @@ function fo(r) {
|
|
|
3670
3677
|
function po(r) {
|
|
3671
3678
|
const e = D(22), {
|
|
3672
3679
|
children: t,
|
|
3673
|
-
mapId:
|
|
3680
|
+
mapId: s
|
|
3674
3681
|
} = r;
|
|
3675
|
-
let
|
|
3676
|
-
e[0] !==
|
|
3682
|
+
let n;
|
|
3683
|
+
e[0] !== s ? (n = (w) => w.viewStates[s], e[0] = s, e[1] = n) : n = e[1];
|
|
3677
3684
|
const {
|
|
3678
3685
|
zoom: o,
|
|
3679
3686
|
maxZoom: i,
|
|
3680
3687
|
minZoom: a
|
|
3681
|
-
} = $(
|
|
3688
|
+
} = $(n);
|
|
3682
3689
|
let l;
|
|
3683
|
-
e[2] !==
|
|
3684
|
-
const c = $(l),
|
|
3685
|
-
let
|
|
3686
|
-
e[4] !==
|
|
3687
|
-
const
|
|
3690
|
+
e[2] !== s ? (l = (w) => w.areLayersLoaded[s], e[2] = s, e[3] = l) : l = e[3];
|
|
3691
|
+
const c = $(l), m = $(br), p = $(gr), y = $(hr), d = !c;
|
|
3692
|
+
let g;
|
|
3693
|
+
e[4] !== s || e[5] !== m ? (g = (w) => m(s, w), e[4] = s, e[5] = m, e[6] = g) : g = e[6];
|
|
3694
|
+
const h = g;
|
|
3688
3695
|
let T;
|
|
3689
|
-
e[7] !== p || e[8] !==
|
|
3696
|
+
e[7] !== p || e[8] !== s ? (T = (w) => p(s, w), e[7] = p, e[8] = s, e[9] = T) : T = e[9];
|
|
3690
3697
|
const f = T;
|
|
3691
3698
|
let b;
|
|
3692
|
-
e[10] !==
|
|
3699
|
+
e[10] !== s || e[11] !== y ? (b = () => y(s), e[10] = s, e[11] = y, e[12] = b) : b = e[12];
|
|
3693
3700
|
const S = b;
|
|
3694
3701
|
let E;
|
|
3695
|
-
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== d || e[17] !==
|
|
3702
|
+
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== d || e[17] !== h || e[18] !== f || e[19] !== S || e[20] !== o ? (E = t({
|
|
3696
3703
|
zoom: o,
|
|
3697
3704
|
maxZoom: i,
|
|
3698
3705
|
minZoom: a,
|
|
3699
3706
|
isLoading: d,
|
|
3700
|
-
setZoom:
|
|
3707
|
+
setZoom: h,
|
|
3701
3708
|
flyTo: f,
|
|
3702
3709
|
resetViewState: S
|
|
3703
|
-
}), e[13] = t, e[14] = i, e[15] = a, e[16] = d, e[17] =
|
|
3710
|
+
}), e[13] = t, e[14] = i, e[15] = a, e[16] = d, e[17] = h, e[18] = f, e[19] = S, e[20] = o, e[21] = E) : E = e[21], E;
|
|
3704
3711
|
}
|
|
3705
3712
|
function hr(r) {
|
|
3706
3713
|
return r.resetViewState;
|
|
@@ -3715,8 +3722,8 @@ async function vr({
|
|
|
3715
3722
|
baseUrl: r = We,
|
|
3716
3723
|
connection: e,
|
|
3717
3724
|
accessToken: t,
|
|
3718
|
-
query:
|
|
3719
|
-
attribute:
|
|
3725
|
+
query: s,
|
|
3726
|
+
attribute: n,
|
|
3720
3727
|
fetcherOptions: {
|
|
3721
3728
|
signal: o,
|
|
3722
3729
|
...i
|
|
@@ -3725,14 +3732,14 @@ async function vr({
|
|
|
3725
3732
|
params: l,
|
|
3726
3733
|
apiVersion: c = Ke
|
|
3727
3734
|
}) {
|
|
3728
|
-
const
|
|
3735
|
+
const m = `${r}/${c}/stats/${e}/${n}`;
|
|
3729
3736
|
return At({
|
|
3730
3737
|
accessToken: t,
|
|
3731
3738
|
signal: o,
|
|
3732
|
-
url:
|
|
3739
|
+
url: m,
|
|
3733
3740
|
method: de.get,
|
|
3734
3741
|
params: {
|
|
3735
|
-
q:
|
|
3742
|
+
q: s,
|
|
3736
3743
|
...a,
|
|
3737
3744
|
...l
|
|
3738
3745
|
},
|
|
@@ -3743,8 +3750,8 @@ async function Sr({
|
|
|
3743
3750
|
baseUrl: r = We,
|
|
3744
3751
|
connection: e,
|
|
3745
3752
|
accessToken: t,
|
|
3746
|
-
table:
|
|
3747
|
-
attribute:
|
|
3753
|
+
table: s,
|
|
3754
|
+
attribute: n,
|
|
3748
3755
|
params: o,
|
|
3749
3756
|
fetcherOptions: {
|
|
3750
3757
|
signal: i,
|
|
@@ -3752,7 +3759,7 @@ async function Sr({
|
|
|
3752
3759
|
} = {},
|
|
3753
3760
|
apiVersion: l = Ke
|
|
3754
3761
|
}) {
|
|
3755
|
-
const c = `${r}/${l}/stats/${e}/${
|
|
3762
|
+
const c = `${r}/${l}/stats/${e}/${s}/${n}`;
|
|
3756
3763
|
return At({
|
|
3757
3764
|
accessToken: t,
|
|
3758
3765
|
signal: i,
|
|
@@ -3767,62 +3774,62 @@ async function Sr({
|
|
|
3767
3774
|
function mo(r) {
|
|
3768
3775
|
const e = D(20), {
|
|
3769
3776
|
source: t,
|
|
3770
|
-
attribute:
|
|
3771
|
-
accessToken:
|
|
3777
|
+
attribute: s,
|
|
3778
|
+
accessToken: n,
|
|
3772
3779
|
params: o,
|
|
3773
3780
|
fetcherOptions: i,
|
|
3774
3781
|
useQueryProps: a
|
|
3775
3782
|
} = r;
|
|
3776
3783
|
let l;
|
|
3777
3784
|
e[0] !== a ? (l = a === void 0 ? {} : a, e[0] = a, e[1] = l) : l = e[1];
|
|
3778
|
-
let c,
|
|
3785
|
+
let c, m;
|
|
3779
3786
|
e[2] !== l ? ({
|
|
3780
3787
|
enabled: c,
|
|
3781
|
-
...
|
|
3782
|
-
} = l, e[2] = l, e[3] = c, e[4] =
|
|
3788
|
+
...m
|
|
3789
|
+
} = l, e[2] = l, e[3] = c, e[4] = m) : (c = e[3], m = e[4]);
|
|
3783
3790
|
const p = c === void 0 ? !0 : c;
|
|
3784
|
-
let
|
|
3785
|
-
e[5] !==
|
|
3791
|
+
let y;
|
|
3792
|
+
e[5] !== s || e[6] !== t ? (y = [t, s], e[5] = s, e[6] = t, e[7] = y) : y = e[7];
|
|
3786
3793
|
let d;
|
|
3787
|
-
e[8] !==
|
|
3794
|
+
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (d = () => wr({
|
|
3788
3795
|
source: t,
|
|
3789
3796
|
params: o,
|
|
3790
|
-
attribute:
|
|
3791
|
-
accessToken:
|
|
3797
|
+
attribute: s,
|
|
3798
|
+
accessToken: n,
|
|
3792
3799
|
fetcherOptions: i
|
|
3793
|
-
}), e[8] =
|
|
3794
|
-
let
|
|
3795
|
-
return e[14] !== p || e[15] !== t || e[16] !==
|
|
3796
|
-
queryKey:
|
|
3800
|
+
}), e[8] = n, e[9] = s, e[10] = i, e[11] = o, e[12] = t, e[13] = d) : d = e[13];
|
|
3801
|
+
let g;
|
|
3802
|
+
return e[14] !== p || e[15] !== t || e[16] !== y || e[17] !== d || e[18] !== m ? (g = {
|
|
3803
|
+
queryKey: y,
|
|
3797
3804
|
queryFn: d,
|
|
3798
|
-
select(
|
|
3805
|
+
select(h) {
|
|
3799
3806
|
return {
|
|
3800
|
-
...
|
|
3801
|
-
type:
|
|
3807
|
+
...h,
|
|
3808
|
+
type: h.type.toLowerCase()
|
|
3802
3809
|
};
|
|
3803
3810
|
},
|
|
3804
3811
|
enabled: !!t && p,
|
|
3805
|
-
...
|
|
3806
|
-
}, e[14] = p, e[15] = t, e[16] =
|
|
3812
|
+
...m
|
|
3813
|
+
}, e[14] = p, e[15] = t, e[16] = y, e[17] = d, e[18] = m, e[19] = g) : g = e[19], se(g);
|
|
3807
3814
|
}
|
|
3808
3815
|
function wr({
|
|
3809
3816
|
source: r,
|
|
3810
3817
|
params: e,
|
|
3811
3818
|
attribute: t,
|
|
3812
|
-
accessToken:
|
|
3813
|
-
fetcherOptions:
|
|
3819
|
+
accessToken: s,
|
|
3820
|
+
fetcherOptions: n
|
|
3814
3821
|
}) {
|
|
3815
3822
|
if (r.type.startsWith("query"))
|
|
3816
3823
|
return vr({
|
|
3817
3824
|
connection: r.connectionName,
|
|
3818
3825
|
baseUrl: r.apiBaseUrl,
|
|
3819
3826
|
apiVersion: r.apiVersion,
|
|
3820
|
-
accessToken:
|
|
3827
|
+
accessToken: s,
|
|
3821
3828
|
params: e,
|
|
3822
3829
|
query: r.data,
|
|
3823
3830
|
queryParameters: r.queryParameters,
|
|
3824
3831
|
attribute: t,
|
|
3825
|
-
fetcherOptions:
|
|
3832
|
+
fetcherOptions: n
|
|
3826
3833
|
});
|
|
3827
3834
|
if (r.type.startsWith("table"))
|
|
3828
3835
|
return Sr({
|
|
@@ -3830,15 +3837,15 @@ function wr({
|
|
|
3830
3837
|
baseUrl: r.apiBaseUrl,
|
|
3831
3838
|
apiVersion: r.apiVersion,
|
|
3832
3839
|
params: e,
|
|
3833
|
-
accessToken:
|
|
3840
|
+
accessToken: s,
|
|
3834
3841
|
table: r.data,
|
|
3835
3842
|
attribute: t,
|
|
3836
|
-
fetcherOptions:
|
|
3843
|
+
fetcherOptions: n
|
|
3837
3844
|
});
|
|
3838
3845
|
if (r.type.startsWith("tileset"))
|
|
3839
3846
|
return Tr({
|
|
3840
3847
|
source: r,
|
|
3841
|
-
accessToken:
|
|
3848
|
+
accessToken: s,
|
|
3842
3849
|
target: r.data,
|
|
3843
3850
|
attribute: t
|
|
3844
3851
|
});
|
|
@@ -3848,21 +3855,21 @@ async function Tr({
|
|
|
3848
3855
|
source: r,
|
|
3849
3856
|
accessToken: e,
|
|
3850
3857
|
target: t,
|
|
3851
|
-
attribute:
|
|
3858
|
+
attribute: s
|
|
3852
3859
|
}) {
|
|
3853
3860
|
var a, l, c;
|
|
3854
|
-
const
|
|
3861
|
+
const n = await ys({
|
|
3855
3862
|
connectionName: r.connectionName,
|
|
3856
3863
|
apiBaseUrl: r.apiBaseUrl,
|
|
3857
3864
|
accessToken: e,
|
|
3858
3865
|
clientId: r.clientId,
|
|
3859
3866
|
tableName: t
|
|
3860
3867
|
});
|
|
3861
|
-
if (!((c = (l = (a =
|
|
3862
|
-
throw new Error(`${
|
|
3863
|
-
const i =
|
|
3868
|
+
if (!((c = (l = (a = n == null ? void 0 : n.tilestats) == null ? void 0 : a.layers) == null ? void 0 : l[0]) != null && c.attributes))
|
|
3869
|
+
throw new Error(`${s} not found in tileset attributes`);
|
|
3870
|
+
const i = n.tilestats.layers[0].attributes.find((m) => m.attribute === s);
|
|
3864
3871
|
if (!i)
|
|
3865
|
-
throw new Error(`${
|
|
3872
|
+
throw new Error(`${s} not found in tileset attributes`);
|
|
3866
3873
|
return i;
|
|
3867
3874
|
}
|
|
3868
3875
|
export {
|